playbook_ui 13.33.0.pre.alpha.PLAY14143305 → 13.33.0.pre.alpha.PLAY14143306

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +3 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/SubRowHeaderRow.tsx +2 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/Components/ToggleIconButton.tsx +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +1 -1
  8. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +1 -2
  9. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +3 -4
  10. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +3 -1
  11. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +2 -2
  12. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +4 -1
  13. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +3 -2
  14. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +5 -2
  15. data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +3 -1
  16. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.tsx +2 -1
  17. data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.tsx +3 -1
  18. data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.tsx +1 -1
  19. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.tsx +3 -1
  20. data/app/pb_kits/playbook/pb_filter/Filter/ResultsCount.tsx +2 -1
  21. data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +5 -1
  22. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slide.tsx +1 -1
  23. data/app/pb_kits/playbook/pb_lightbox/Carousel/Slides.tsx +1 -1
  24. data/app/pb_kits/playbook/pb_lightbox/Carousel/Thumbnail.tsx +1 -1
  25. data/app/pb_kits/playbook/pb_lightbox/Header/_lightbox_header.tsx +6 -1
  26. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx +5 -1
  27. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +5 -1
  28. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +4 -2
  29. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +6 -1
  30. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarHistory.tsx +1 -1
  31. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +7 -8
  32. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js +1 -1
  33. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js +2 -1
  34. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +2 -1
  36. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +2 -1
  37. data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +1 -1
  38. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +2 -1
  39. data/dist/chunks/_typeahead.js +41 -0
  40. data/dist/chunks/_weekday_stacked.js +45 -1
  41. data/dist/chunks/lazysizes.js +1 -0
  42. data/dist/chunks/vendor.js +1 -1
  43. data/dist/playbook-doc.js +1 -1
  44. data/dist/playbook-rails-react-bindings.js +1 -1
  45. data/dist/playbook-rails.js +1 -1
  46. data/lib/playbook/version.rb +1 -1
  47. metadata +3 -2
  48. data/dist/chunks/_walkthrough.js +0 -66
@@ -1,66 +0,0 @@
1
- import{jsx as jsx$1,Fragment,jsxs}from"react/jsx-runtime";import*as React$1 from"react";import React__default,{useEffect,createContext,useContext,useState,useCallback,useReducer,useMemo,createElement,useRef,forwardRef,useImperativeHandle,Fragment as Fragment$1,useLayoutEffect,Component,isValidElement}from"react";import{i as getDefaultExportFromCjs,l as lodashExports,f as PbTable,j as commonjsGlobal,h as colors$1,t as typography,u as useCollapsible,D as DateTime,k as getAugmentedNamespace,m as useDropdown,n as createPopper,g as PbTextarea}from"./lib.js";import require$$0,{isValidElementType,Element as Element$1,ForwardRef,typeOf}from"react-is";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";var ls_attrchange={exports:{}};var lazysizes={exports:{}};var hasRequiredLazysizes;function requireLazysizes(){if(hasRequiredLazysizes)return lazysizes.exports;hasRequiredLazysizes=1;(function(module){(function(window2,factory){var lazySizes=factory(window2,window2.document,Date);window2.lazySizes=lazySizes;if(module.exports){module.exports=lazySizes}})(typeof window!="undefined"?window:{},(function l2(window2,document2,Date2){var lazysizes2,lazySizesCfg;(function(){var prop;var lazySizesDefaults={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};lazySizesCfg=window2.lazySizesConfig||window2.lazysizesConfig||{};for(prop in lazySizesDefaults){if(!(prop in lazySizesCfg)){lazySizesCfg[prop]=lazySizesDefaults[prop]}}})();if(!document2||!document2.getElementsByClassName){return{init:function(){},cfg:lazySizesCfg,noSupport:true}}var docElem=document2.documentElement;var supportPicture=window2.HTMLPictureElement;var _addEventListener="addEventListener";var _getAttribute="getAttribute";var addEventListener2=window2[_addEventListener].bind(window2);var setTimeout2=window2.setTimeout;var requestAnimationFrame2=window2.requestAnimationFrame||setTimeout2;var requestIdleCallback=window2.requestIdleCallback;var regPicture=/^picture$/i;var loadEvents=["load","error","lazyincluded","_lazyloaded"];var regClassCache={};var forEach=Array.prototype.forEach;var hasClass=function(ele,cls){if(!regClassCache[cls]){regClassCache[cls]=new RegExp("(\\s|^)"+cls+"(\\s|$)")}return regClassCache[cls].test(ele[_getAttribute]("class")||"")&&regClassCache[cls]};var addClass=function(ele,cls){if(!hasClass(ele,cls)){ele.setAttribute("class",(ele[_getAttribute]("class")||"").trim()+" "+cls)}};var removeClass2=function(ele,cls){var reg;if(reg=hasClass(ele,cls)){ele.setAttribute("class",(ele[_getAttribute]("class")||"").replace(reg," "))}};var addRemoveLoadEvents=function(dom,fn,add){var action=add?_addEventListener:"removeEventListener";if(add){addRemoveLoadEvents(dom,fn)}loadEvents.forEach((function(evt){dom[action](evt,fn)}))};var triggerEvent=function(elem,name2,detail,noBubbles,noCancelable){var event2=document2.createEvent("Event");if(!detail){detail={}}detail.instance=lazysizes2;event2.initEvent(name2,!noBubbles,!noCancelable);event2.detail=detail;elem.dispatchEvent(event2);return event2};var updatePolyfill=function(el,full){var polyfill2;if(!supportPicture&&(polyfill2=window2.picturefill||lazySizesCfg.pf)){if(full&&full.src&&!el[_getAttribute]("srcset")){el.setAttribute("srcset",full.src)}polyfill2({reevaluate:true,elements:[el]})}else if(full&&full.src){el.src=full.src}};var getCSS=function(elem,style){return(getComputedStyle(elem,null)||{})[style]};var getWidth=function(elem,parent,width){width=width||elem.offsetWidth;while(width<lazySizesCfg.minSize&&parent&&!elem._lazysizesWidth){width=parent.offsetWidth;parent=parent.parentNode}return width};var rAF=function(){var running,waiting;var firstFns=[];var secondFns=[];var fns=firstFns;var run=function(){var runFns=fns;fns=firstFns.length?secondFns:firstFns;running=true;waiting=false;while(runFns.length){runFns.shift()()}running=false};var rafBatch=function(fn,queue){if(running&&!queue){fn.apply(this,arguments)}else{fns.push(fn);if(!waiting){waiting=true;(document2.hidden?setTimeout2:requestAnimationFrame2)(run)}}};rafBatch._lsFlush=run;return rafBatch}();var rAFIt=function(fn,simple){return simple?function(){rAF(fn)}:function(){var that=this;var args=arguments;rAF((function(){fn.apply(that,args)}))}};var throttle=function(fn){var running;var lastTime=0;var gDelay=lazySizesCfg.throttleDelay;var rICTimeout=lazySizesCfg.ricTimeout;var run=function(){running=false;lastTime=Date2.now();fn()};var idleCallback=requestIdleCallback&&rICTimeout>49?function(){requestIdleCallback(run,{timeout:rICTimeout});if(rICTimeout!==lazySizesCfg.ricTimeout){rICTimeout=lazySizesCfg.ricTimeout}}:rAFIt((function(){setTimeout2(run)}),true);return function(isPriority){var delay;if(isPriority=isPriority===true){rICTimeout=33}if(running){return}running=true;delay=gDelay-(Date2.now()-lastTime);if(delay<0){delay=0}if(isPriority||delay<9){idleCallback()}else{setTimeout2(idleCallback,delay)}}};var debounce2=function(func){var timeout,timestamp;var wait=99;var run=function(){timeout=null;func()};var later=function(){var last=Date2.now()-timestamp;if(last<wait){setTimeout2(later,wait-last)}else{(requestIdleCallback||run)(run)}};return function(){timestamp=Date2.now();if(!timeout){timeout=setTimeout2(later,wait)}}};var loader=function(){var preloadElems,isCompleted,resetPreloadingTimer,loadMode,started;var eLvW,elvH,eLtop,eLleft,eLright,eLbottom,isBodyHidden;var regImg=/^img$/i;var regIframe=/^iframe$/i;var supportScroll="onscroll"in window2&&!/(gle|ing)bot/.test(navigator.userAgent);var shrinkExpand=0;var currentExpand=0;var isLoading=0;var lowRuns=-1;var resetPreloading=function(e2){isLoading--;if(!e2||isLoading<0||!e2.target){isLoading=0}};var isVisible=function(elem){if(isBodyHidden==null){isBodyHidden=getCSS(document2.body,"visibility")=="hidden"}return isBodyHidden||!(getCSS(elem.parentNode,"visibility")=="hidden"&&getCSS(elem,"visibility")=="hidden")};var isNestedVisible=function(elem,elemExpand){var outerRect;var parent=elem;var visible=isVisible(elem);eLtop-=elemExpand;eLbottom+=elemExpand;eLleft-=elemExpand;eLright+=elemExpand;while(visible&&(parent=parent.offsetParent)&&parent!=document2.body&&parent!=docElem){visible=(getCSS(parent,"opacity")||1)>0;if(visible&&getCSS(parent,"overflow")!="visible"){outerRect=parent.getBoundingClientRect();visible=eLright>outerRect.left&&eLleft<outerRect.right&&eLbottom>outerRect.top-1&&eLtop<outerRect.bottom+1}}return visible};var checkElements=function(){var eLlen,i,rect,autoLoadElem,loadedSomething,elemExpand,elemNegativeExpand,elemExpandVal,beforeExpandVal,defaultExpand,preloadExpand,hFac;var lazyloadElems=lazysizes2.elements;if((loadMode=lazySizesCfg.loadMode)&&isLoading<8&&(eLlen=lazyloadElems.length)){i=0;lowRuns++;for(;i<eLlen;i++){if(!lazyloadElems[i]||lazyloadElems[i]._lazyRace){continue}if(!supportScroll||lazysizes2.prematureUnveil&&lazysizes2.prematureUnveil(lazyloadElems[i])){unveilElement(lazyloadElems[i]);continue}if(!(elemExpandVal=lazyloadElems[i][_getAttribute]("data-expand"))||!(elemExpand=elemExpandVal*1)){elemExpand=currentExpand}if(!defaultExpand){defaultExpand=!lazySizesCfg.expand||lazySizesCfg.expand<1?docElem.clientHeight>500&&docElem.clientWidth>500?500:370:lazySizesCfg.expand;lazysizes2._defEx=defaultExpand;preloadExpand=defaultExpand*lazySizesCfg.expFactor;hFac=lazySizesCfg.hFac;isBodyHidden=null;if(currentExpand<preloadExpand&&isLoading<1&&lowRuns>2&&loadMode>2&&!document2.hidden){currentExpand=preloadExpand;lowRuns=0}else if(loadMode>1&&lowRuns>1&&isLoading<6){currentExpand=defaultExpand}else{currentExpand=shrinkExpand}}if(beforeExpandVal!==elemExpand){eLvW=innerWidth+elemExpand*hFac;elvH=innerHeight+elemExpand;elemNegativeExpand=elemExpand*-1;beforeExpandVal=elemExpand}rect=lazyloadElems[i].getBoundingClientRect();if((eLbottom=rect.bottom)>=elemNegativeExpand&&(eLtop=rect.top)<=elvH&&(eLright=rect.right)>=elemNegativeExpand*hFac&&(eLleft=rect.left)<=eLvW&&(eLbottom||eLright||eLleft||eLtop)&&(lazySizesCfg.loadHidden||isVisible(lazyloadElems[i]))&&(isCompleted&&isLoading<3&&!elemExpandVal&&(loadMode<3||lowRuns<4)||isNestedVisible(lazyloadElems[i],elemExpand))){unveilElement(lazyloadElems[i]);loadedSomething=true;if(isLoading>9){break}}else if(!loadedSomething&&isCompleted&&!autoLoadElem&&isLoading<4&&lowRuns<4&&loadMode>2&&(preloadElems[0]||lazySizesCfg.preloadAfterLoad)&&(preloadElems[0]||!elemExpandVal&&(eLbottom||eLright||eLleft||eLtop||lazyloadElems[i][_getAttribute](lazySizesCfg.sizesAttr)!="auto"))){autoLoadElem=preloadElems[0]||lazyloadElems[i]}}if(autoLoadElem&&!loadedSomething){unveilElement(autoLoadElem)}}};var throttledCheckElements=throttle(checkElements);var switchLoadingClass=function(e2){var elem=e2.target;if(elem._lazyCache){delete elem._lazyCache;return}resetPreloading(e2);addClass(elem,lazySizesCfg.loadedClass);removeClass2(elem,lazySizesCfg.loadingClass);addRemoveLoadEvents(elem,rafSwitchLoadingClass);triggerEvent(elem,"lazyloaded")};var rafedSwitchLoadingClass=rAFIt(switchLoadingClass);var rafSwitchLoadingClass=function(e2){rafedSwitchLoadingClass({target:e2.target})};var changeIframeSrc=function(elem,src){var loadMode2=elem.getAttribute("data-load-mode")||lazySizesCfg.iframeLoadMode;if(loadMode2==0){elem.contentWindow.location.replace(src)}else if(loadMode2==1){elem.src=src}};var handleSources=function(source){var customMedia;var sourceSrcset=source[_getAttribute](lazySizesCfg.srcsetAttr);if(customMedia=lazySizesCfg.customMedia[source[_getAttribute]("data-media")||source[_getAttribute]("media")]){source.setAttribute("media",customMedia)}if(sourceSrcset){source.setAttribute("srcset",sourceSrcset)}};var lazyUnveil=rAFIt((function(elem,detail,isAuto,sizes2,isImg){var src,srcset,parent,isPicture,event2,firesLoad;if(!(event2=triggerEvent(elem,"lazybeforeunveil",detail)).defaultPrevented){if(sizes2){if(isAuto){addClass(elem,lazySizesCfg.autosizesClass)}else{elem.setAttribute("sizes",sizes2)}}srcset=elem[_getAttribute](lazySizesCfg.srcsetAttr);src=elem[_getAttribute](lazySizesCfg.srcAttr);if(isImg){parent=elem.parentNode;isPicture=parent&&regPicture.test(parent.nodeName||"")}firesLoad=detail.firesLoad||"src"in elem&&(srcset||src||isPicture);event2={target:elem};addClass(elem,lazySizesCfg.loadingClass);if(firesLoad){clearTimeout(resetPreloadingTimer);resetPreloadingTimer=setTimeout2(resetPreloading,2500);addRemoveLoadEvents(elem,rafSwitchLoadingClass,true)}if(isPicture){forEach.call(parent.getElementsByTagName("source"),handleSources)}if(srcset){elem.setAttribute("srcset",srcset)}else if(src&&!isPicture){if(regIframe.test(elem.nodeName)){changeIframeSrc(elem,src)}else{elem.src=src}}if(isImg&&(srcset||isPicture)){updatePolyfill(elem,{src:src})}}if(elem._lazyRace){delete elem._lazyRace}removeClass2(elem,lazySizesCfg.lazyClass);rAF((function(){var isLoaded=elem.complete&&elem.naturalWidth>1;if(!firesLoad||isLoaded){if(isLoaded){addClass(elem,lazySizesCfg.fastLoadedClass)}switchLoadingClass(event2);elem._lazyCache=true;setTimeout2((function(){if("_lazyCache"in elem){delete elem._lazyCache}}),9)}if(elem.loading=="lazy"){isLoading--}}),true)}));var unveilElement=function(elem){if(elem._lazyRace){return}var detail;var isImg=regImg.test(elem.nodeName);var sizes2=isImg&&(elem[_getAttribute](lazySizesCfg.sizesAttr)||elem[_getAttribute]("sizes"));var isAuto=sizes2=="auto";if((isAuto||!isCompleted)&&isImg&&(elem[_getAttribute]("src")||elem.srcset)&&!elem.complete&&!hasClass(elem,lazySizesCfg.errorClass)&&hasClass(elem,lazySizesCfg.lazyClass)){return}detail=triggerEvent(elem,"lazyunveilread").detail;if(isAuto){autoSizer.updateElem(elem,true,elem.offsetWidth)}elem._lazyRace=true;isLoading++;lazyUnveil(elem,detail,isAuto,sizes2,isImg)};var afterScroll=debounce2((function(){lazySizesCfg.loadMode=3;throttledCheckElements()}));var altLoadmodeScrollListner=function(){if(lazySizesCfg.loadMode==3){lazySizesCfg.loadMode=2}afterScroll()};var onload=function(){if(isCompleted){return}if(Date2.now()-started<999){setTimeout2(onload,999);return}isCompleted=true;lazySizesCfg.loadMode=3;throttledCheckElements();addEventListener2("scroll",altLoadmodeScrollListner,true)};return{_:function(){started=Date2.now();lazysizes2.elements=document2.getElementsByClassName(lazySizesCfg.lazyClass);preloadElems=document2.getElementsByClassName(lazySizesCfg.lazyClass+" "+lazySizesCfg.preloadClass);addEventListener2("scroll",throttledCheckElements,true);addEventListener2("resize",throttledCheckElements,true);addEventListener2("pageshow",(function(e2){if(e2.persisted){var loadingElements=document2.querySelectorAll("."+lazySizesCfg.loadingClass);if(loadingElements.length&&loadingElements.forEach){requestAnimationFrame2((function(){loadingElements.forEach((function(img){if(img.complete){unveilElement(img)}}))}))}}}));if(window2.MutationObserver){new MutationObserver(throttledCheckElements).observe(docElem,{childList:true,subtree:true,attributes:true})}else{docElem[_addEventListener]("DOMNodeInserted",throttledCheckElements,true);docElem[_addEventListener]("DOMAttrModified",throttledCheckElements,true);setInterval(throttledCheckElements,999)}addEventListener2("hashchange",throttledCheckElements,true);["focus","mouseover","click","load","transitionend","animationend"].forEach((function(name2){document2[_addEventListener](name2,throttledCheckElements,true)}));if(/d$|^c/.test(document2.readyState)){onload()}else{addEventListener2("load",onload);document2[_addEventListener]("DOMContentLoaded",throttledCheckElements);setTimeout2(onload,2e4)}if(lazysizes2.elements.length){checkElements();rAF._lsFlush()}else{throttledCheckElements()}},checkElems:throttledCheckElements,unveil:unveilElement,_aLSL:altLoadmodeScrollListner}}();var autoSizer=function(){var autosizesElems;var sizeElement=rAFIt((function(elem,parent,event2,width){var sources,i,len;elem._lazysizesWidth=width;width+="px";elem.setAttribute("sizes",width);if(regPicture.test(parent.nodeName||"")){sources=parent.getElementsByTagName("source");for(i=0,len=sources.length;i<len;i++){sources[i].setAttribute("sizes",width)}}if(!event2.detail.dataAttr){updatePolyfill(elem,event2.detail)}}));var getSizeElement=function(elem,dataAttr,width){var event2;var parent=elem.parentNode;if(parent){width=getWidth(elem,parent,width);event2=triggerEvent(elem,"lazybeforesizes",{width:width,dataAttr:!!dataAttr});if(!event2.defaultPrevented){width=event2.detail.width;if(width&&width!==elem._lazysizesWidth){sizeElement(elem,parent,event2,width)}}}};var updateElementsSizes=function(){var i;var len=autosizesElems.length;if(len){i=0;for(;i<len;i++){getSizeElement(autosizesElems[i])}}};var debouncedUpdateElementsSizes=debounce2(updateElementsSizes);return{_:function(){autosizesElems=document2.getElementsByClassName(lazySizesCfg.autosizesClass);addEventListener2("resize",debouncedUpdateElementsSizes)},checkElems:debouncedUpdateElementsSizes,updateElem:getSizeElement}}();var init=function(){if(!init.i&&document2.getElementsByClassName){init.i=true;autoSizer._();loader._()}};setTimeout2((function(){if(lazySizesCfg.init){init()}}));lazysizes2={cfg:lazySizesCfg,autoSizer:autoSizer,loader:loader,init:init,uP:updatePolyfill,aC:addClass,rC:removeClass2,hC:hasClass,fire:triggerEvent,gW:getWidth,rAF:rAF};return lazysizes2}))})(lazysizes);return lazysizes.exports}(function(module){(function(window2,factory){if(!window2){return}var globalInstall=function(){factory(window2.lazySizes);window2.removeEventListener("lazyunveilread",globalInstall,true)};factory=factory.bind(null,window2,window2.document);if(module.exports){factory(requireLazysizes())}else if(window2.lazySizes){globalInstall()}else{window2.addEventListener("lazyunveilread",globalInstall,true)}})(typeof window!="undefined"?window:0,(function(window2,document2,lazySizes){var addObserver=function(){var connect,disconnect,observer,connected;var lsCfg=lazySizes.cfg;var attributes={"data-bgset":1,"data-include":1,"data-poster":1,"data-bg":1,"data-script":1};var regClassTest="(\\s|^)("+lsCfg.loadedClass;var docElem=document2.documentElement;var setClass=function(target){lazySizes.rAF((function(){lazySizes.rC(target,lsCfg.loadedClass);if(lsCfg.unloadedClass){lazySizes.rC(target,lsCfg.unloadedClass)}lazySizes.aC(target,lsCfg.lazyClass);if(target.style.display=="none"||target.parentNode&&target.parentNode.style.display=="none"){setTimeout((function(){lazySizes.loader.unveil(target)}),0)}}))};var onMutation=function(mutations){var i,len,mutation,target;for(i=0,len=mutations.length;i<len;i++){mutation=mutations[i];target=mutation.target;if(!target.getAttribute(mutation.attributeName)){continue}if(target.localName=="source"&&target.parentNode){target=target.parentNode.querySelector("img")}if(target&&regClassTest.test(target.className)){setClass(target)}}};if(lsCfg.unloadedClass){regClassTest+="|"+lsCfg.unloadedClass}regClassTest+="|"+lsCfg.loadingClass+")(\\s|$)";regClassTest=new RegExp(regClassTest);attributes[lsCfg.srcAttr]=1;attributes[lsCfg.srcsetAttr]=1;if(window2.MutationObserver){observer=new MutationObserver(onMutation);connect=function(){if(!connected){connected=true;observer.observe(docElem,{subtree:true,attributes:true,attributeFilter:Object.keys(attributes)})}};disconnect=function(){if(connected){connected=false;observer.disconnect()}}}else{docElem.addEventListener("DOMAttrModified",function(){var runs;var modifications=[];var callMutations=function(){onMutation(modifications);modifications=[];runs=false};return function(e2){if(connected&&attributes[e2.attrName]&&e2.newValue){modifications.push({target:e2.target,attributeName:e2.attrName});if(!runs){setTimeout(callMutations);runs=true}}}}(),true);connect=function(){connected=true};disconnect=function(){connected=false}}addEventListener("lazybeforeunveil",disconnect,true);addEventListener("lazybeforeunveil",connect);addEventListener("lazybeforesizes",disconnect,true);addEventListener("lazybeforesizes",connect);connect();removeEventListener("lazybeforeunveil",addObserver)};addEventListener("lazybeforeunveil",addObserver)}))})(ls_attrchange);requireLazysizes();var classnames$1={exports:{}};
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */(function(module){(function(){var hasOwn={}.hasOwnProperty;function classNames2(){var classes=[];for(var i=0;i<arguments.length;i++){var arg=arguments[i];if(!arg)continue;var argType=typeof arg;if(argType==="string"||argType==="number"){classes.push(arg)}else if(Array.isArray(arg)){if(arg.length){var inner2=classNames2.apply(null,arg);if(inner2){classes.push(inner2)}}}else if(argType==="object"){if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]")){classes.push(arg.toString());continue}for(var key in arg){if(hasOwn.call(arg,key)&&arg[key]){classes.push(key)}}}}return classes.join(" ")}if(module.exports){classNames2.default=classNames2;module.exports=classNames2}else{window.classNames=classNames2}})()})(classnames$1);var classnamesExports=classnames$1.exports;const classnames=getDefaultExportFromCjs(classnamesExports);
7
- /**
8
- * table-core
9
- *
10
- * Copyright (c) TanStack
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE.md file in the root directory of this source tree.
14
- *
15
- * @license MIT
16
- */function functionalUpdate(updater,input){return typeof updater==="function"?updater(input):updater}function makeStateUpdater(key,instance){return updater=>{instance.setState((old=>({...old,[key]:functionalUpdate(updater,old[key])})))}}function isFunction$2(d2){return d2 instanceof Function}function isNumberArray(d2){return Array.isArray(d2)&&d2.every((val=>typeof val==="number"))}function flattenBy(arr,getChildren2){const flat=[];const recurse=subArr=>{subArr.forEach((item=>{flat.push(item);const children=getChildren2(item);if(children!=null&&children.length){recurse(children)}}))};recurse(arr);return flat}function memo(getDeps,fn,opts){let deps=[];let result;return()=>{let depTime;if(opts.key&&opts.debug)depTime=Date.now();const newDeps=getDeps();const depsChanged=newDeps.length!==deps.length||newDeps.some(((dep,index2)=>deps[index2]!==dep));if(!depsChanged){return result}deps=newDeps;let resultTime;if(opts.key&&opts.debug)resultTime=Date.now();result=fn(...newDeps);opts==null?void 0:opts.onChange==null?void 0:opts.onChange(result);if(opts.key&&opts.debug){if(opts!=null&&opts.debug()){const depEndTime=Math.round((Date.now()-depTime)*100)/100;const resultEndTime=Math.round((Date.now()-resultTime)*100)/100;const resultFpsPercentage=resultEndTime/16;const pad=(str,num)=>{str=String(str);while(str.length<num){str=" "+str}return str};console.info(`%c⏱ ${pad(resultEndTime,5)} /${pad(depEndTime,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*resultFpsPercentage,120))}deg 100% 31%);`,opts==null?void 0:opts.key)}}return result}}function createColumn(table,columnDef,depth,parent){var _ref3,_resolvedColumnDef$id;const defaultColumn=table._getDefaultColumnDef();const resolvedColumnDef={...defaultColumn,...columnDef};const accessorKey=resolvedColumnDef.accessorKey;let id=(_ref3=(_resolvedColumnDef$id=resolvedColumnDef.id)!=null?_resolvedColumnDef$id:accessorKey?accessorKey.replace(".","_"):void 0)!=null?_ref3:typeof resolvedColumnDef.header==="string"?resolvedColumnDef.header:void 0;let accessorFn;if(resolvedColumnDef.accessorFn){accessorFn=resolvedColumnDef.accessorFn}else if(accessorKey){if(accessorKey.includes(".")){accessorFn=originalRow=>{let result=originalRow;for(const key of accessorKey.split(".")){var _result;result=(_result=result)==null?void 0:_result[key]}return result}}else{accessorFn=originalRow=>originalRow[resolvedColumnDef.accessorKey]}}if(!id){throw new Error}let column2={id:`${String(id)}`,accessorFn:accessorFn,parent:parent,depth:depth,columnDef:resolvedColumnDef,columns:[],getFlatColumns:memo((()=>[true]),(()=>{var _column$columns;return[column2,...(_column$columns=column2.columns)==null?void 0:_column$columns.flatMap((d2=>d2.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugColumns}}),getLeafColumns:memo((()=>[table._getOrderColumnsFn()]),(orderColumns2=>{var _column$columns2;if((_column$columns2=column2.columns)!=null&&_column$columns2.length){let leafColumns=column2.columns.flatMap((column22=>column22.getLeafColumns()));return orderColumns2(leafColumns)}return[column2]}),{key:"column.getLeafColumns",debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugColumns}})};column2=table._features.reduce(((obj,feature)=>Object.assign(obj,feature.createColumn==null?void 0:feature.createColumn(column2,table))),column2);return column2}function createHeader(table,column2,options2){var _options$id;const id=(_options$id=options2.id)!=null?_options$id:column2.id;let header={id:id,column:column2,index:options2.index,isPlaceholder:!!options2.isPlaceholder,placeholderId:options2.placeholderId,depth:options2.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const leafHeaders=[];const recurseHeader=h2=>{if(h2.subHeaders&&h2.subHeaders.length){h2.subHeaders.map(recurseHeader)}leafHeaders.push(h2)};recurseHeader(header);return leafHeaders},getContext:()=>({table:table,header:header,column:column2})};table._features.forEach((feature=>{Object.assign(header,feature.createHeader==null?void 0:feature.createHeader(header,table))}));return header}const Headers={createTable:table=>({getHeaderGroups:memo((()=>[table.getAllColumns(),table.getVisibleLeafColumns(),table.getState().columnPinning.left,table.getState().columnPinning.right]),((allColumns,leafColumns,left,right)=>{var _left$map$filter,_right$map$filter;const leftColumns=(_left$map$filter=left==null?void 0:left.map((columnId=>leafColumns.find((d2=>d2.id===columnId)))).filter(Boolean))!=null?_left$map$filter:[];const rightColumns=(_right$map$filter=right==null?void 0:right.map((columnId=>leafColumns.find((d2=>d2.id===columnId)))).filter(Boolean))!=null?_right$map$filter:[];const centerColumns=leafColumns.filter((column2=>!(left!=null&&left.includes(column2.id))&&!(right!=null&&right.includes(column2.id))));const headerGroups=buildHeaderGroups(allColumns,[...leftColumns,...centerColumns,...rightColumns],table);return headerGroups}),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugHeaders}}),getCenterHeaderGroups:memo((()=>[table.getAllColumns(),table.getVisibleLeafColumns(),table.getState().columnPinning.left,table.getState().columnPinning.right]),((allColumns,leafColumns,left,right)=>{leafColumns=leafColumns.filter((column2=>!(left!=null&&left.includes(column2.id))&&!(right!=null&&right.includes(column2.id))));return buildHeaderGroups(allColumns,leafColumns,table,"center")}),{key:false,debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugHeaders}}),getLeftHeaderGroups:memo((()=>[table.getAllColumns(),table.getVisibleLeafColumns(),table.getState().columnPinning.left]),((allColumns,leafColumns,left)=>{var _left$map$filter2;const orderedLeafColumns=(_left$map$filter2=left==null?void 0:left.map((columnId=>leafColumns.find((d2=>d2.id===columnId)))).filter(Boolean))!=null?_left$map$filter2:[];return buildHeaderGroups(allColumns,orderedLeafColumns,table,"left")}),{key:false,debug:()=>{var _table$options$debugA3;return(_table$options$debugA3=table.options.debugAll)!=null?_table$options$debugA3:table.options.debugHeaders}}),getRightHeaderGroups:memo((()=>[table.getAllColumns(),table.getVisibleLeafColumns(),table.getState().columnPinning.right]),((allColumns,leafColumns,right)=>{var _right$map$filter2;const orderedLeafColumns=(_right$map$filter2=right==null?void 0:right.map((columnId=>leafColumns.find((d2=>d2.id===columnId)))).filter(Boolean))!=null?_right$map$filter2:[];return buildHeaderGroups(allColumns,orderedLeafColumns,table,"right")}),{key:false,debug:()=>{var _table$options$debugA4;return(_table$options$debugA4=table.options.debugAll)!=null?_table$options$debugA4:table.options.debugHeaders}}),getFooterGroups:memo((()=>[table.getHeaderGroups()]),(headerGroups=>[...headerGroups].reverse()),{key:false,debug:()=>{var _table$options$debugA5;return(_table$options$debugA5=table.options.debugAll)!=null?_table$options$debugA5:table.options.debugHeaders}}),getLeftFooterGroups:memo((()=>[table.getLeftHeaderGroups()]),(headerGroups=>[...headerGroups].reverse()),{key:false,debug:()=>{var _table$options$debugA6;return(_table$options$debugA6=table.options.debugAll)!=null?_table$options$debugA6:table.options.debugHeaders}}),getCenterFooterGroups:memo((()=>[table.getCenterHeaderGroups()]),(headerGroups=>[...headerGroups].reverse()),{key:false,debug:()=>{var _table$options$debugA7;return(_table$options$debugA7=table.options.debugAll)!=null?_table$options$debugA7:table.options.debugHeaders}}),getRightFooterGroups:memo((()=>[table.getRightHeaderGroups()]),(headerGroups=>[...headerGroups].reverse()),{key:false,debug:()=>{var _table$options$debugA8;return(_table$options$debugA8=table.options.debugAll)!=null?_table$options$debugA8:table.options.debugHeaders}}),getFlatHeaders:memo((()=>[table.getHeaderGroups()]),(headerGroups=>headerGroups.map((headerGroup=>headerGroup.headers)).flat()),{key:false,debug:()=>{var _table$options$debugA9;return(_table$options$debugA9=table.options.debugAll)!=null?_table$options$debugA9:table.options.debugHeaders}}),getLeftFlatHeaders:memo((()=>[table.getLeftHeaderGroups()]),(left=>left.map((headerGroup=>headerGroup.headers)).flat()),{key:false,debug:()=>{var _table$options$debugA10;return(_table$options$debugA10=table.options.debugAll)!=null?_table$options$debugA10:table.options.debugHeaders}}),getCenterFlatHeaders:memo((()=>[table.getCenterHeaderGroups()]),(left=>left.map((headerGroup=>headerGroup.headers)).flat()),{key:false,debug:()=>{var _table$options$debugA11;return(_table$options$debugA11=table.options.debugAll)!=null?_table$options$debugA11:table.options.debugHeaders}}),getRightFlatHeaders:memo((()=>[table.getRightHeaderGroups()]),(left=>left.map((headerGroup=>headerGroup.headers)).flat()),{key:false,debug:()=>{var _table$options$debugA12;return(_table$options$debugA12=table.options.debugAll)!=null?_table$options$debugA12:table.options.debugHeaders}}),getCenterLeafHeaders:memo((()=>[table.getCenterFlatHeaders()]),(flatHeaders=>flatHeaders.filter((header=>{var _header$subHeaders;return!((_header$subHeaders=header.subHeaders)!=null&&_header$subHeaders.length)}))),{key:false,debug:()=>{var _table$options$debugA13;return(_table$options$debugA13=table.options.debugAll)!=null?_table$options$debugA13:table.options.debugHeaders}}),getLeftLeafHeaders:memo((()=>[table.getLeftFlatHeaders()]),(flatHeaders=>flatHeaders.filter((header=>{var _header$subHeaders2;return!((_header$subHeaders2=header.subHeaders)!=null&&_header$subHeaders2.length)}))),{key:false,debug:()=>{var _table$options$debugA14;return(_table$options$debugA14=table.options.debugAll)!=null?_table$options$debugA14:table.options.debugHeaders}}),getRightLeafHeaders:memo((()=>[table.getRightFlatHeaders()]),(flatHeaders=>flatHeaders.filter((header=>{var _header$subHeaders3;return!((_header$subHeaders3=header.subHeaders)!=null&&_header$subHeaders3.length)}))),{key:false,debug:()=>{var _table$options$debugA15;return(_table$options$debugA15=table.options.debugAll)!=null?_table$options$debugA15:table.options.debugHeaders}}),getLeafHeaders:memo((()=>[table.getLeftHeaderGroups(),table.getCenterHeaderGroups(),table.getRightHeaderGroups()]),((left,center,right)=>{var _left$0$headers,_left$,_center$0$headers,_center$,_right$0$headers,_right$;return[...(_left$0$headers=(_left$=left[0])==null?void 0:_left$.headers)!=null?_left$0$headers:[],...(_center$0$headers=(_center$=center[0])==null?void 0:_center$.headers)!=null?_center$0$headers:[],...(_right$0$headers=(_right$=right[0])==null?void 0:_right$.headers)!=null?_right$0$headers:[]].map((header=>header.getLeafHeaders())).flat()}),{key:false,debug:()=>{var _table$options$debugA16;return(_table$options$debugA16=table.options.debugAll)!=null?_table$options$debugA16:table.options.debugHeaders}})})};function buildHeaderGroups(allColumns,columnsToGroup,table,headerFamily){var _headerGroups$0$heade,_headerGroups$;let maxDepth=0;const findMaxDepth=function(columns,depth){if(depth===void 0){depth=1}maxDepth=Math.max(maxDepth,depth);columns.filter((column2=>column2.getIsVisible())).forEach((column2=>{var _column$columns;if((_column$columns=column2.columns)!=null&&_column$columns.length){findMaxDepth(column2.columns,depth+1)}}),0)};findMaxDepth(allColumns);let headerGroups=[];const createHeaderGroup=(headersToGroup,depth)=>{const headerGroup={depth:depth,id:[headerFamily,`${depth}`].filter(Boolean).join("_"),headers:[]};const pendingParentHeaders=[];headersToGroup.forEach((headerToGroup=>{const latestPendingParentHeader=[...pendingParentHeaders].reverse()[0];const isLeafHeader=headerToGroup.column.depth===headerGroup.depth;let column2;let isPlaceholder=false;if(isLeafHeader&&headerToGroup.column.parent){column2=headerToGroup.column.parent}else{column2=headerToGroup.column;isPlaceholder=true}if(latestPendingParentHeader&&(latestPendingParentHeader==null?void 0:latestPendingParentHeader.column)===column2){latestPendingParentHeader.subHeaders.push(headerToGroup)}else{const header=createHeader(table,column2,{id:[headerFamily,depth,column2.id,headerToGroup==null?void 0:headerToGroup.id].filter(Boolean).join("_"),isPlaceholder:isPlaceholder,placeholderId:isPlaceholder?`${pendingParentHeaders.filter((d2=>d2.column===column2)).length}`:void 0,depth:depth,index:pendingParentHeaders.length});header.subHeaders.push(headerToGroup);pendingParentHeaders.push(header)}headerGroup.headers.push(headerToGroup);headerToGroup.headerGroup=headerGroup}));headerGroups.push(headerGroup);if(depth>0){createHeaderGroup(pendingParentHeaders,depth-1)}};const bottomHeaders=columnsToGroup.map(((column2,index2)=>createHeader(table,column2,{depth:maxDepth,index:index2})));createHeaderGroup(bottomHeaders,maxDepth-1);headerGroups.reverse();const recurseHeadersForSpans=headers=>{const filteredHeaders=headers.filter((header=>header.column.getIsVisible()));return filteredHeaders.map((header=>{let colSpan=0;let rowSpan=0;let childRowSpans=[0];if(header.subHeaders&&header.subHeaders.length){childRowSpans=[];recurseHeadersForSpans(header.subHeaders).forEach((_ref3=>{let{colSpan:childColSpan,rowSpan:childRowSpan}=_ref3;colSpan+=childColSpan;childRowSpans.push(childRowSpan)}))}else{colSpan=1}const minChildRowSpan=Math.min(...childRowSpans);rowSpan=rowSpan+minChildRowSpan;header.colSpan=colSpan;header.rowSpan=rowSpan;return{colSpan:colSpan,rowSpan:rowSpan}}))};recurseHeadersForSpans((_headerGroups$0$heade=(_headerGroups$=headerGroups[0])==null?void 0:_headerGroups$.headers)!=null?_headerGroups$0$heade:[]);return headerGroups}const defaultColumnSizing={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER};const getDefaultColumnSizingInfoState=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:false,columnSizingStart:[]});const ColumnSizing={getDefaultColumnDef:()=>defaultColumnSizing,getInitialState:state=>({columnSizing:{},columnSizingInfo:getDefaultColumnSizingInfoState(),...state}),getDefaultOptions:table=>({columnResizeMode:"onEnd",onColumnSizingChange:makeStateUpdater("columnSizing",table),onColumnSizingInfoChange:makeStateUpdater("columnSizingInfo",table)}),createColumn:(column2,table)=>({getSize:()=>{var _column$columnDef$min,_ref3,_column$columnDef$max;const columnSize=table.getState().columnSizing[column2.id];return Math.min(Math.max((_column$columnDef$min=column2.columnDef.minSize)!=null?_column$columnDef$min:defaultColumnSizing.minSize,(_ref3=columnSize!=null?columnSize:column2.columnDef.size)!=null?_ref3:defaultColumnSizing.size),(_column$columnDef$max=column2.columnDef.maxSize)!=null?_column$columnDef$max:defaultColumnSizing.maxSize)},getStart:position2=>{const columns=!position2?table.getVisibleLeafColumns():position2==="left"?table.getLeftVisibleLeafColumns():table.getRightVisibleLeafColumns();const index2=columns.findIndex((d2=>d2.id===column2.id));if(index2>0){const prevSiblingColumn=columns[index2-1];return prevSiblingColumn.getStart(position2)+prevSiblingColumn.getSize()}return 0},resetSize:()=>{table.setColumnSizing((_ref22=>{let{[column2.id]:_,...rest}=_ref22;return rest}))},getCanResize:()=>{var _column$columnDef$ena,_table$options$enable;return((_column$columnDef$ena=column2.columnDef.enableResizing)!=null?_column$columnDef$ena:true)&&((_table$options$enable=table.options.enableColumnResizing)!=null?_table$options$enable:true)},getIsResizing:()=>table.getState().columnSizingInfo.isResizingColumn===column2.id}),createHeader:(header,table)=>({getSize:()=>{let sum2=0;const recurse=header2=>{if(header2.subHeaders.length){header2.subHeaders.forEach(recurse)}else{var _header$column$getSiz;sum2+=(_header$column$getSiz=header2.column.getSize())!=null?_header$column$getSiz:0}};recurse(header);return sum2},getStart:()=>{if(header.index>0){const prevSiblingHeader=header.headerGroup.headers[header.index-1];return prevSiblingHeader.getStart()+prevSiblingHeader.getSize()}return 0},getResizeHandler:()=>{const column2=table.getColumn(header.column.id);const canResize=column2==null?void 0:column2.getCanResize();return e2=>{if(!column2||!canResize){return}e2.persist==null?void 0:e2.persist();if(isTouchStartEvent(e2)){if(e2.touches&&e2.touches.length>1){return}}const startSize=header.getSize();const columnSizingStart=header?header.getLeafHeaders().map((d2=>[d2.column.id,d2.column.getSize()])):[[column2.id,column2.getSize()]];const clientX=isTouchStartEvent(e2)?Math.round(e2.touches[0].clientX):e2.clientX;const newColumnSizing={};const updateOffset=(eventType,clientXPos)=>{if(typeof clientXPos!=="number"){return}table.setColumnSizingInfo((old=>{var _old$startOffset,_old$startSize;const deltaOffset=clientXPos-((_old$startOffset=old==null?void 0:old.startOffset)!=null?_old$startOffset:0);const deltaPercentage=Math.max(deltaOffset/((_old$startSize=old==null?void 0:old.startSize)!=null?_old$startSize:0),-.999999);old.columnSizingStart.forEach((_ref3=>{let[columnId,headerSize]=_ref3;newColumnSizing[columnId]=Math.round(Math.max(headerSize+headerSize*deltaPercentage,0)*100)/100}));return{...old,deltaOffset:deltaOffset,deltaPercentage:deltaPercentage}}));if(table.options.columnResizeMode==="onChange"||eventType==="end"){table.setColumnSizing((old=>({...old,...newColumnSizing})))}};const onMove=clientXPos=>updateOffset("move",clientXPos);const onEnd=clientXPos=>{updateOffset("end",clientXPos);table.setColumnSizingInfo((old=>({...old,isResizingColumn:false,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))};const mouseEvents={moveHandler:e22=>onMove(e22.clientX),upHandler:e22=>{document.removeEventListener("mousemove",mouseEvents.moveHandler);document.removeEventListener("mouseup",mouseEvents.upHandler);onEnd(e22.clientX)}};const touchEvents={moveHandler:e22=>{if(e22.cancelable){e22.preventDefault();e22.stopPropagation()}onMove(e22.touches[0].clientX);return false},upHandler:e22=>{var _e$touches$;document.removeEventListener("touchmove",touchEvents.moveHandler);document.removeEventListener("touchend",touchEvents.upHandler);if(e22.cancelable){e22.preventDefault();e22.stopPropagation()}onEnd((_e$touches$=e22.touches[0])==null?void 0:_e$touches$.clientX)}};const passiveIfSupported=passiveEventSupported()?{passive:false}:false;if(isTouchStartEvent(e2)){document.addEventListener("touchmove",touchEvents.moveHandler,passiveIfSupported);document.addEventListener("touchend",touchEvents.upHandler,passiveIfSupported)}else{document.addEventListener("mousemove",mouseEvents.moveHandler,passiveIfSupported);document.addEventListener("mouseup",mouseEvents.upHandler,passiveIfSupported)}table.setColumnSizingInfo((old=>({...old,startOffset:clientX,startSize:startSize,deltaOffset:0,deltaPercentage:0,columnSizingStart:columnSizingStart,isResizingColumn:column2.id})))}}}),createTable:table=>({setColumnSizing:updater=>table.options.onColumnSizingChange==null?void 0:table.options.onColumnSizingChange(updater),setColumnSizingInfo:updater=>table.options.onColumnSizingInfoChange==null?void 0:table.options.onColumnSizingInfoChange(updater),resetColumnSizing:defaultState2=>{var _table$initialState$c;table.setColumnSizing(defaultState2?{}:(_table$initialState$c=table.initialState.columnSizing)!=null?_table$initialState$c:{})},resetHeaderSizeInfo:defaultState2=>{var _table$initialState$c2;table.setColumnSizingInfo(defaultState2?getDefaultColumnSizingInfoState():(_table$initialState$c2=table.initialState.columnSizingInfo)!=null?_table$initialState$c2:getDefaultColumnSizingInfoState())},getTotalSize:()=>{var _table$getHeaderGroup,_table$getHeaderGroup2;return(_table$getHeaderGroup=(_table$getHeaderGroup2=table.getHeaderGroups()[0])==null?void 0:_table$getHeaderGroup2.headers.reduce(((sum2,header)=>sum2+header.getSize()),0))!=null?_table$getHeaderGroup:0},getLeftTotalSize:()=>{var _table$getLeftHeaderG,_table$getLeftHeaderG2;return(_table$getLeftHeaderG=(_table$getLeftHeaderG2=table.getLeftHeaderGroups()[0])==null?void 0:_table$getLeftHeaderG2.headers.reduce(((sum2,header)=>sum2+header.getSize()),0))!=null?_table$getLeftHeaderG:0},getCenterTotalSize:()=>{var _table$getCenterHeade,_table$getCenterHeade2;return(_table$getCenterHeade=(_table$getCenterHeade2=table.getCenterHeaderGroups()[0])==null?void 0:_table$getCenterHeade2.headers.reduce(((sum2,header)=>sum2+header.getSize()),0))!=null?_table$getCenterHeade:0},getRightTotalSize:()=>{var _table$getRightHeader,_table$getRightHeader2;return(_table$getRightHeader=(_table$getRightHeader2=table.getRightHeaderGroups()[0])==null?void 0:_table$getRightHeader2.headers.reduce(((sum2,header)=>sum2+header.getSize()),0))!=null?_table$getRightHeader:0}})};let passiveSupported$1=null;function passiveEventSupported(){if(typeof passiveSupported$1==="boolean")return passiveSupported$1;let supported=false;try{const options2={get passive(){supported=true;return false}};const noop22=()=>{};window.addEventListener("test",noop22,options2);window.removeEventListener("test",noop22)}catch(err){supported=false}passiveSupported$1=supported;return passiveSupported$1}function isTouchStartEvent(e2){return e2.type==="touchstart"}const Expanding={getInitialState:state=>({expanded:{},...state}),getDefaultOptions:table=>({onExpandedChange:makeStateUpdater("expanded",table),paginateExpandedRows:true}),createTable:table=>{let registered=false;let queued=false;return{_autoResetExpanded:()=>{var _ref3,_table$options$autoRe;if(!registered){table._queue((()=>{registered=true}));return}if((_ref3=(_table$options$autoRe=table.options.autoResetAll)!=null?_table$options$autoRe:table.options.autoResetExpanded)!=null?_ref3:!table.options.manualExpanding){if(queued)return;queued=true;table._queue((()=>{table.resetExpanded();queued=false}))}},setExpanded:updater=>table.options.onExpandedChange==null?void 0:table.options.onExpandedChange(updater),toggleAllRowsExpanded:expanded=>{if(expanded!=null?expanded:!table.getIsAllRowsExpanded()){table.setExpanded(true)}else{table.setExpanded({})}},resetExpanded:defaultState2=>{var _table$initialState$e,_table$initialState;table.setExpanded(defaultState2?{}:(_table$initialState$e=(_table$initialState=table.initialState)==null?void 0:_table$initialState.expanded)!=null?_table$initialState$e:{})},getCanSomeRowsExpand:()=>table.getPrePaginationRowModel().flatRows.some((row=>row.getCanExpand())),getToggleAllRowsExpandedHandler:()=>e2=>{e2.persist==null?void 0:e2.persist();table.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const expanded=table.getState().expanded;return expanded===true||Object.values(expanded).some(Boolean)},getIsAllRowsExpanded:()=>{const expanded=table.getState().expanded;if(typeof expanded==="boolean"){return expanded===true}if(!Object.keys(expanded).length){return false}if(table.getRowModel().flatRows.some((row=>!row.getIsExpanded()))){return false}return true},getExpandedDepth:()=>{let maxDepth=0;const rowIds=table.getState().expanded===true?Object.keys(table.getRowModel().rowsById):Object.keys(table.getState().expanded);rowIds.forEach((id=>{const splitId=id.split(".");maxDepth=Math.max(maxDepth,splitId.length)}));return maxDepth},getPreExpandedRowModel:()=>table.getSortedRowModel(),getExpandedRowModel:()=>{if(!table._getExpandedRowModel&&table.options.getExpandedRowModel){table._getExpandedRowModel=table.options.getExpandedRowModel(table)}if(table.options.manualExpanding||!table._getExpandedRowModel){return table.getPreExpandedRowModel()}return table._getExpandedRowModel()}}},createRow:(row,table)=>({toggleExpanded:expanded=>{table.setExpanded((old=>{var _expanded;const exists=old===true?true:!!(old!=null&&old[row.id]);let oldExpanded={};if(old===true){Object.keys(table.getRowModel().rowsById).forEach((rowId=>{oldExpanded[rowId]=true}))}else{oldExpanded=old}expanded=(_expanded=expanded)!=null?_expanded:!exists;if(!exists&&expanded){return{...oldExpanded,[row.id]:true}}if(exists&&!expanded){const{[row.id]:_,...rest}=oldExpanded;return rest}return old}))},getIsExpanded:()=>{var _table$options$getIsR;const expanded=table.getState().expanded;return!!((_table$options$getIsR=table.options.getIsRowExpanded==null?void 0:table.options.getIsRowExpanded(row))!=null?_table$options$getIsR:expanded===true||(expanded==null?void 0:expanded[row.id]))},getCanExpand:()=>{var _table$options$getRow,_table$options$enable,_row$subRows;return(_table$options$getRow=table.options.getRowCanExpand==null?void 0:table.options.getRowCanExpand(row))!=null?_table$options$getRow:((_table$options$enable=table.options.enableExpanding)!=null?_table$options$enable:true)&&!!((_row$subRows=row.subRows)!=null&&_row$subRows.length)},getToggleExpandedHandler:()=>{const canExpand=row.getCanExpand();return()=>{if(!canExpand)return;row.toggleExpanded()}}})};const includesString=(row,columnId,filterValue)=>{var _row$getValue,_row$getValue$toStrin,_row$getValue$toStrin2;const search=filterValue.toLowerCase();return Boolean((_row$getValue=row.getValue(columnId))==null?void 0:(_row$getValue$toStrin=_row$getValue.toString())==null?void 0:(_row$getValue$toStrin2=_row$getValue$toStrin.toLowerCase())==null?void 0:_row$getValue$toStrin2.includes(search))};includesString.autoRemove=val=>testFalsey(val);const includesStringSensitive=(row,columnId,filterValue)=>{var _row$getValue2,_row$getValue2$toStri;return Boolean((_row$getValue2=row.getValue(columnId))==null?void 0:(_row$getValue2$toStri=_row$getValue2.toString())==null?void 0:_row$getValue2$toStri.includes(filterValue))};includesStringSensitive.autoRemove=val=>testFalsey(val);const equalsString=(row,columnId,filterValue)=>{var _row$getValue3,_row$getValue3$toStri;return((_row$getValue3=row.getValue(columnId))==null?void 0:(_row$getValue3$toStri=_row$getValue3.toString())==null?void 0:_row$getValue3$toStri.toLowerCase())===(filterValue==null?void 0:filterValue.toLowerCase())};equalsString.autoRemove=val=>testFalsey(val);const arrIncludes=(row,columnId,filterValue)=>{var _row$getValue4;return(_row$getValue4=row.getValue(columnId))==null?void 0:_row$getValue4.includes(filterValue)};arrIncludes.autoRemove=val=>testFalsey(val)||!(val!=null&&val.length);const arrIncludesAll=(row,columnId,filterValue)=>!filterValue.some((val=>{var _row$getValue5;return!((_row$getValue5=row.getValue(columnId))!=null&&_row$getValue5.includes(val))}));arrIncludesAll.autoRemove=val=>testFalsey(val)||!(val!=null&&val.length);const arrIncludesSome=(row,columnId,filterValue)=>filterValue.some((val=>{var _row$getValue6;return(_row$getValue6=row.getValue(columnId))==null?void 0:_row$getValue6.includes(val)}));arrIncludesSome.autoRemove=val=>testFalsey(val)||!(val!=null&&val.length);const equals=(row,columnId,filterValue)=>row.getValue(columnId)===filterValue;equals.autoRemove=val=>testFalsey(val);const weakEquals=(row,columnId,filterValue)=>row.getValue(columnId)==filterValue;weakEquals.autoRemove=val=>testFalsey(val);const inNumberRange=(row,columnId,filterValue)=>{let[min2,max2]=filterValue;const rowValue=row.getValue(columnId);return rowValue>=min2&&rowValue<=max2};inNumberRange.resolveFilterValue=val=>{let[unsafeMin,unsafeMax]=val;let parsedMin=typeof unsafeMin!=="number"?parseFloat(unsafeMin):unsafeMin;let parsedMax=typeof unsafeMax!=="number"?parseFloat(unsafeMax):unsafeMax;let min2=unsafeMin===null||Number.isNaN(parsedMin)?-Infinity:parsedMin;let max2=unsafeMax===null||Number.isNaN(parsedMax)?Infinity:parsedMax;if(min2>max2){const temp=min2;min2=max2;max2=temp}return[min2,max2]};inNumberRange.autoRemove=val=>testFalsey(val)||testFalsey(val[0])&&testFalsey(val[1]);const filterFns={includesString:includesString,includesStringSensitive:includesStringSensitive,equalsString:equalsString,arrIncludes:arrIncludes,arrIncludesAll:arrIncludesAll,arrIncludesSome:arrIncludesSome,equals:equals,weakEquals:weakEquals,inNumberRange:inNumberRange};function testFalsey(val){return val===void 0||val===null||val===""}const Filters={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:state=>({columnFilters:[],globalFilter:void 0,...state}),getDefaultOptions:table=>({onColumnFiltersChange:makeStateUpdater("columnFilters",table),onGlobalFilterChange:makeStateUpdater("globalFilter",table),filterFromLeafRows:false,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:column2=>{var _table$getCoreRowMode,_table$getCoreRowMode2;const value=(_table$getCoreRowMode=table.getCoreRowModel().flatRows[0])==null?void 0:(_table$getCoreRowMode2=_table$getCoreRowMode._getAllCellsByColumnId()[column2.id])==null?void 0:_table$getCoreRowMode2.getValue();return typeof value==="string"||typeof value==="number"}}),createColumn:(column2,table)=>({getAutoFilterFn:()=>{const firstRow=table.getCoreRowModel().flatRows[0];const value=firstRow==null?void 0:firstRow.getValue(column2.id);if(typeof value==="string"){return filterFns.includesString}if(typeof value==="number"){return filterFns.inNumberRange}if(typeof value==="boolean"){return filterFns.equals}if(value!==null&&typeof value==="object"){return filterFns.equals}if(Array.isArray(value)){return filterFns.arrIncludes}return filterFns.weakEquals},getFilterFn:()=>{var _table$options$filter,_table$options$filter2;return isFunction$2(column2.columnDef.filterFn)?column2.columnDef.filterFn:column2.columnDef.filterFn==="auto"?column2.getAutoFilterFn():(_table$options$filter=(_table$options$filter2=table.options.filterFns)==null?void 0:_table$options$filter2[column2.columnDef.filterFn])!=null?_table$options$filter:filterFns[column2.columnDef.filterFn]},getCanFilter:()=>{var _column$columnDef$ena,_table$options$enable,_table$options$enable2;return((_column$columnDef$ena=column2.columnDef.enableColumnFilter)!=null?_column$columnDef$ena:true)&&((_table$options$enable=table.options.enableColumnFilters)!=null?_table$options$enable:true)&&((_table$options$enable2=table.options.enableFilters)!=null?_table$options$enable2:true)&&!!column2.accessorFn},getCanGlobalFilter:()=>{var _column$columnDef$ena2,_table$options$enable3,_table$options$enable4,_table$options$getCol;return((_column$columnDef$ena2=column2.columnDef.enableGlobalFilter)!=null?_column$columnDef$ena2:true)&&((_table$options$enable3=table.options.enableGlobalFilter)!=null?_table$options$enable3:true)&&((_table$options$enable4=table.options.enableFilters)!=null?_table$options$enable4:true)&&((_table$options$getCol=table.options.getColumnCanGlobalFilter==null?void 0:table.options.getColumnCanGlobalFilter(column2))!=null?_table$options$getCol:true)&&!!column2.accessorFn},getIsFiltered:()=>column2.getFilterIndex()>-1,getFilterValue:()=>{var _table$getState$colum,_table$getState$colum2;return(_table$getState$colum=table.getState().columnFilters)==null?void 0:(_table$getState$colum2=_table$getState$colum.find((d2=>d2.id===column2.id)))==null?void 0:_table$getState$colum2.value},getFilterIndex:()=>{var _table$getState$colum3,_table$getState$colum4;return(_table$getState$colum3=(_table$getState$colum4=table.getState().columnFilters)==null?void 0:_table$getState$colum4.findIndex((d2=>d2.id===column2.id)))!=null?_table$getState$colum3:-1},setFilterValue:value=>{table.setColumnFilters((old=>{const filterFn=column2.getFilterFn();const previousfilter=old==null?void 0:old.find((d2=>d2.id===column2.id));const newFilter=functionalUpdate(value,previousfilter?previousfilter.value:void 0);if(shouldAutoRemoveFilter(filterFn,newFilter,column2)){var _old$filter;return(_old$filter=old==null?void 0:old.filter((d2=>d2.id!==column2.id)))!=null?_old$filter:[]}const newFilterObj={id:column2.id,value:newFilter};if(previousfilter){var _old$map;return(_old$map=old==null?void 0:old.map((d2=>{if(d2.id===column2.id){return newFilterObj}return d2})))!=null?_old$map:[]}if(old!=null&&old.length){return[...old,newFilterObj]}return[newFilterObj]}))},_getFacetedRowModel:table.options.getFacetedRowModel&&table.options.getFacetedRowModel(table,column2.id),getFacetedRowModel:()=>{if(!column2._getFacetedRowModel){return table.getPreFilteredRowModel()}return column2._getFacetedRowModel()},_getFacetedUniqueValues:table.options.getFacetedUniqueValues&&table.options.getFacetedUniqueValues(table,column2.id),getFacetedUniqueValues:()=>{if(!column2._getFacetedUniqueValues){return new Map}return column2._getFacetedUniqueValues()},_getFacetedMinMaxValues:table.options.getFacetedMinMaxValues&&table.options.getFacetedMinMaxValues(table,column2.id),getFacetedMinMaxValues:()=>{if(!column2._getFacetedMinMaxValues){return void 0}return column2._getFacetedMinMaxValues()}}),createRow:(row,table)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:table=>({getGlobalAutoFilterFn:()=>filterFns.includesString,getGlobalFilterFn:()=>{var _table$options$filter3,_table$options$filter4;const{globalFilterFn:globalFilterFn}=table.options;return isFunction$2(globalFilterFn)?globalFilterFn:globalFilterFn==="auto"?table.getGlobalAutoFilterFn():(_table$options$filter3=(_table$options$filter4=table.options.filterFns)==null?void 0:_table$options$filter4[globalFilterFn])!=null?_table$options$filter3:filterFns[globalFilterFn]},setColumnFilters:updater=>{const leafColumns=table.getAllLeafColumns();const updateFn=old=>{var _functionalUpdate;return(_functionalUpdate=functionalUpdate(updater,old))==null?void 0:_functionalUpdate.filter((filter=>{const column2=leafColumns.find((d2=>d2.id===filter.id));if(column2){const filterFn=column2.getFilterFn();if(shouldAutoRemoveFilter(filterFn,filter.value,column2)){return false}}return true}))};table.options.onColumnFiltersChange==null?void 0:table.options.onColumnFiltersChange(updateFn)},setGlobalFilter:updater=>{table.options.onGlobalFilterChange==null?void 0:table.options.onGlobalFilterChange(updater)},resetGlobalFilter:defaultState2=>{table.setGlobalFilter(defaultState2?void 0:table.initialState.globalFilter)},resetColumnFilters:defaultState2=>{var _table$initialState$c,_table$initialState;table.setColumnFilters(defaultState2?[]:(_table$initialState$c=(_table$initialState=table.initialState)==null?void 0:_table$initialState.columnFilters)!=null?_table$initialState$c:[])},getPreFilteredRowModel:()=>table.getCoreRowModel(),getFilteredRowModel:()=>{if(!table._getFilteredRowModel&&table.options.getFilteredRowModel){table._getFilteredRowModel=table.options.getFilteredRowModel(table)}if(table.options.manualFiltering||!table._getFilteredRowModel){return table.getPreFilteredRowModel()}return table._getFilteredRowModel()},_getGlobalFacetedRowModel:table.options.getFacetedRowModel&&table.options.getFacetedRowModel(table,"__global__"),getGlobalFacetedRowModel:()=>{if(table.options.manualFiltering||!table._getGlobalFacetedRowModel){return table.getPreFilteredRowModel()}return table._getGlobalFacetedRowModel()},_getGlobalFacetedUniqueValues:table.options.getFacetedUniqueValues&&table.options.getFacetedUniqueValues(table,"__global__"),getGlobalFacetedUniqueValues:()=>{if(!table._getGlobalFacetedUniqueValues){return new Map}return table._getGlobalFacetedUniqueValues()},_getGlobalFacetedMinMaxValues:table.options.getFacetedMinMaxValues&&table.options.getFacetedMinMaxValues(table,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(!table._getGlobalFacetedMinMaxValues){return}return table._getGlobalFacetedMinMaxValues()}})};function shouldAutoRemoveFilter(filterFn,value,column2){return(filterFn&&filterFn.autoRemove?filterFn.autoRemove(value,column2):false)||typeof value==="undefined"||typeof value==="string"&&!value}const sum=(columnId,_leafRows,childRows)=>childRows.reduce(((sum2,next2)=>{const nextValue=next2.getValue(columnId);return sum2+(typeof nextValue==="number"?nextValue:0)}),0);const min$2=(columnId,_leafRows,childRows)=>{let min2;childRows.forEach((row=>{const value=row.getValue(columnId);if(value!=null&&(min2>value||min2===void 0&&value>=value)){min2=value}}));return min2};const max$1=(columnId,_leafRows,childRows)=>{let max2;childRows.forEach((row=>{const value=row.getValue(columnId);if(value!=null&&(max2<value||max2===void 0&&value>=value)){max2=value}}));return max2};const extent=(columnId,_leafRows,childRows)=>{let min2;let max2;childRows.forEach((row=>{const value=row.getValue(columnId);if(value!=null){if(min2===void 0){if(value>=value)min2=max2=value}else{if(min2>value)min2=value;if(max2<value)max2=value}}}));return[min2,max2]};const mean=(columnId,leafRows)=>{let count2=0;let sum2=0;leafRows.forEach((row=>{let value=row.getValue(columnId);if(value!=null&&(value=+value)>=value){++count2,sum2+=value}}));if(count2)return sum2/count2;return};const median=(columnId,leafRows)=>{if(!leafRows.length){return}const values=leafRows.map((row=>row.getValue(columnId)));if(!isNumberArray(values)){return}if(values.length===1){return values[0]}const mid=Math.floor(values.length/2);const nums=values.sort(((a2,b2)=>a2-b2));return values.length%2!==0?nums[mid]:(nums[mid-1]+nums[mid])/2};const unique=(columnId,leafRows)=>Array.from(new Set(leafRows.map((d2=>d2.getValue(columnId)))).values());const uniqueCount=(columnId,leafRows)=>new Set(leafRows.map((d2=>d2.getValue(columnId)))).size;const count$1=(_columnId,leafRows)=>leafRows.length;const aggregationFns={sum:sum,min:min$2,max:max$1,extent:extent,mean:mean,median:median,unique:unique,uniqueCount:uniqueCount,count:count$1};const Grouping={getDefaultColumnDef:()=>({aggregatedCell:props=>{var _toString,_props$getValue;return(_toString=(_props$getValue=props.getValue())==null?void 0:_props$getValue.toString==null?void 0:_props$getValue.toString())!=null?_toString:null},aggregationFn:"auto"}),getInitialState:state=>({grouping:[],...state}),getDefaultOptions:table=>({onGroupingChange:makeStateUpdater("grouping",table),groupedColumnMode:"reorder"}),createColumn:(column2,table)=>({toggleGrouping:()=>{table.setGrouping((old=>{if(old!=null&&old.includes(column2.id)){return old.filter((d2=>d2!==column2.id))}return[...old!=null?old:[],column2.id]}))},getCanGroup:()=>{var _ref3,_ref22,_ref32,_column$columnDef$ena;return(_ref3=(_ref22=(_ref32=(_column$columnDef$ena=column2.columnDef.enableGrouping)!=null?_column$columnDef$ena:true)!=null?_ref32:table.options.enableGrouping)!=null?_ref22:true)!=null?_ref3:!!column2.accessorFn},getIsGrouped:()=>{var _table$getState$group;return(_table$getState$group=table.getState().grouping)==null?void 0:_table$getState$group.includes(column2.id)},getGroupedIndex:()=>{var _table$getState$group2;return(_table$getState$group2=table.getState().grouping)==null?void 0:_table$getState$group2.indexOf(column2.id)},getToggleGroupingHandler:()=>{const canGroup=column2.getCanGroup();return()=>{if(!canGroup)return;column2.toggleGrouping()}},getAutoAggregationFn:()=>{const firstRow=table.getCoreRowModel().flatRows[0];const value=firstRow==null?void 0:firstRow.getValue(column2.id);if(typeof value==="number"){return aggregationFns.sum}if(Object.prototype.toString.call(value)==="[object Date]"){return aggregationFns.extent}},getAggregationFn:()=>{var _table$options$aggreg,_table$options$aggreg2;if(!column2){throw new Error}return isFunction$2(column2.columnDef.aggregationFn)?column2.columnDef.aggregationFn:column2.columnDef.aggregationFn==="auto"?column2.getAutoAggregationFn():(_table$options$aggreg=(_table$options$aggreg2=table.options.aggregationFns)==null?void 0:_table$options$aggreg2[column2.columnDef.aggregationFn])!=null?_table$options$aggreg:aggregationFns[column2.columnDef.aggregationFn]}}),createTable:table=>({setGrouping:updater=>table.options.onGroupingChange==null?void 0:table.options.onGroupingChange(updater),resetGrouping:defaultState2=>{var _table$initialState$g,_table$initialState;table.setGrouping(defaultState2?[]:(_table$initialState$g=(_table$initialState=table.initialState)==null?void 0:_table$initialState.grouping)!=null?_table$initialState$g:[])},getPreGroupedRowModel:()=>table.getFilteredRowModel(),getGroupedRowModel:()=>{if(!table._getGroupedRowModel&&table.options.getGroupedRowModel){table._getGroupedRowModel=table.options.getGroupedRowModel(table)}if(table.options.manualGrouping||!table._getGroupedRowModel){return table.getPreGroupedRowModel()}return table._getGroupedRowModel()}}),createRow:(row,table)=>({getIsGrouped:()=>!!row.groupingColumnId,getGroupingValue:columnId=>{if(row._groupingValuesCache.hasOwnProperty(columnId)){return row._groupingValuesCache[columnId]}const column2=table.getColumn(columnId);if(!(column2!=null&&column2.columnDef.getGroupingValue)){return row.getValue(columnId)}row._groupingValuesCache[columnId]=column2.columnDef.getGroupingValue(row.original);return row._groupingValuesCache[columnId]},_groupingValuesCache:{}}),createCell:(cell,column2,row,table)=>({getIsGrouped:()=>column2.getIsGrouped()&&column2.id===row.groupingColumnId,getIsPlaceholder:()=>!cell.getIsGrouped()&&column2.getIsGrouped(),getIsAggregated:()=>{var _row$subRows;return!cell.getIsGrouped()&&!cell.getIsPlaceholder()&&!!((_row$subRows=row.subRows)!=null&&_row$subRows.length)}})};function orderColumns(leafColumns,grouping,groupedColumnMode){if(!(grouping!=null&&grouping.length)||!groupedColumnMode){return leafColumns}const nonGroupingColumns=leafColumns.filter((col=>!grouping.includes(col.id)));if(groupedColumnMode==="remove"){return nonGroupingColumns}const groupingColumns=grouping.map((g2=>leafColumns.find((col=>col.id===g2)))).filter(Boolean);return[...groupingColumns,...nonGroupingColumns]}const Ordering={getInitialState:state=>({columnOrder:[],...state}),getDefaultOptions:table=>({onColumnOrderChange:makeStateUpdater("columnOrder",table)}),createTable:table=>({setColumnOrder:updater=>table.options.onColumnOrderChange==null?void 0:table.options.onColumnOrderChange(updater),resetColumnOrder:defaultState2=>{var _table$initialState$c;table.setColumnOrder(defaultState2?[]:(_table$initialState$c=table.initialState.columnOrder)!=null?_table$initialState$c:[])},_getOrderColumnsFn:memo((()=>[table.getState().columnOrder,table.getState().grouping,table.options.groupedColumnMode]),((columnOrder,grouping,groupedColumnMode)=>columns=>{let orderedColumns=[];if(!(columnOrder!=null&&columnOrder.length)){orderedColumns=columns}else{const columnOrderCopy=[...columnOrder];const columnsCopy=[...columns];while(columnsCopy.length&&columnOrderCopy.length){const targetColumnId=columnOrderCopy.shift();const foundIndex=columnsCopy.findIndex((d2=>d2.id===targetColumnId));if(foundIndex>-1){orderedColumns.push(columnsCopy.splice(foundIndex,1)[0])}}orderedColumns=[...orderedColumns,...columnsCopy]}return orderColumns(orderedColumns,grouping,groupedColumnMode)}),{key:false})})};const defaultPageIndex=0;const defaultPageSize=10;const getDefaultPaginationState=()=>({pageIndex:defaultPageIndex,pageSize:defaultPageSize});const Pagination={getInitialState:state=>({...state,pagination:{...getDefaultPaginationState(),...state==null?void 0:state.pagination}}),getDefaultOptions:table=>({onPaginationChange:makeStateUpdater("pagination",table)}),createTable:table=>{let registered=false;let queued=false;return{_autoResetPageIndex:()=>{var _ref3,_table$options$autoRe;if(!registered){table._queue((()=>{registered=true}));return}if((_ref3=(_table$options$autoRe=table.options.autoResetAll)!=null?_table$options$autoRe:table.options.autoResetPageIndex)!=null?_ref3:!table.options.manualPagination){if(queued)return;queued=true;table._queue((()=>{table.resetPageIndex();queued=false}))}},setPagination:updater=>{const safeUpdater=old=>{let newState=functionalUpdate(updater,old);return newState};return table.options.onPaginationChange==null?void 0:table.options.onPaginationChange(safeUpdater)},resetPagination:defaultState2=>{var _table$initialState$p;table.setPagination(defaultState2?getDefaultPaginationState():(_table$initialState$p=table.initialState.pagination)!=null?_table$initialState$p:getDefaultPaginationState())},setPageIndex:updater=>{table.setPagination((old=>{let pageIndex=functionalUpdate(updater,old.pageIndex);const maxPageIndex=typeof table.options.pageCount==="undefined"||table.options.pageCount===-1?Number.MAX_SAFE_INTEGER:table.options.pageCount-1;pageIndex=Math.max(0,Math.min(pageIndex,maxPageIndex));return{...old,pageIndex:pageIndex}}))},resetPageIndex:defaultState2=>{var _table$initialState$p2,_table$initialState,_table$initialState$p3;table.setPageIndex(defaultState2?defaultPageIndex:(_table$initialState$p2=(_table$initialState=table.initialState)==null?void 0:(_table$initialState$p3=_table$initialState.pagination)==null?void 0:_table$initialState$p3.pageIndex)!=null?_table$initialState$p2:defaultPageIndex)},resetPageSize:defaultState2=>{var _table$initialState$p4,_table$initialState2,_table$initialState2$;table.setPageSize(defaultState2?defaultPageSize:(_table$initialState$p4=(_table$initialState2=table.initialState)==null?void 0:(_table$initialState2$=_table$initialState2.pagination)==null?void 0:_table$initialState2$.pageSize)!=null?_table$initialState$p4:defaultPageSize)},setPageSize:updater=>{table.setPagination((old=>{const pageSize=Math.max(1,functionalUpdate(updater,old.pageSize));const topRowIndex=old.pageSize*old.pageIndex;const pageIndex=Math.floor(topRowIndex/pageSize);return{...old,pageIndex:pageIndex,pageSize:pageSize}}))},setPageCount:updater=>table.setPagination((old=>{var _table$options$pageCo;let newPageCount=functionalUpdate(updater,(_table$options$pageCo=table.options.pageCount)!=null?_table$options$pageCo:-1);if(typeof newPageCount==="number"){newPageCount=Math.max(-1,newPageCount)}return{...old,pageCount:newPageCount}})),getPageOptions:memo((()=>[table.getPageCount()]),(pageCount=>{let pageOptions=[];if(pageCount&&pageCount>0){pageOptions=[...new Array(pageCount)].fill(null).map(((_,i)=>i))}return pageOptions}),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugTable}}),getCanPreviousPage:()=>table.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:pageIndex}=table.getState().pagination;const pageCount=table.getPageCount();if(pageCount===-1){return true}if(pageCount===0){return false}return pageIndex<pageCount-1},previousPage:()=>table.setPageIndex((old=>old-1)),nextPage:()=>table.setPageIndex((old=>old+1)),getPrePaginationRowModel:()=>table.getExpandedRowModel(),getPaginationRowModel:()=>{if(!table._getPaginationRowModel&&table.options.getPaginationRowModel){table._getPaginationRowModel=table.options.getPaginationRowModel(table)}if(table.options.manualPagination||!table._getPaginationRowModel){return table.getPrePaginationRowModel()}return table._getPaginationRowModel()},getPageCount:()=>{var _table$options$pageCo2;return(_table$options$pageCo2=table.options.pageCount)!=null?_table$options$pageCo2:Math.ceil(table.getPrePaginationRowModel().rows.length/table.getState().pagination.pageSize)}}}};const getDefaultPinningState=()=>({left:[],right:[]});const Pinning={getInitialState:state=>({columnPinning:getDefaultPinningState(),...state}),getDefaultOptions:table=>({onColumnPinningChange:makeStateUpdater("columnPinning",table)}),createColumn:(column2,table)=>({pin:position2=>{const columnIds=column2.getLeafColumns().map((d2=>d2.id)).filter(Boolean);table.setColumnPinning((old=>{var _old$left3,_old$right3;if(position2==="right"){var _old$left,_old$right;return{left:((_old$left=old==null?void 0:old.left)!=null?_old$left:[]).filter((d2=>!(columnIds!=null&&columnIds.includes(d2)))),right:[...((_old$right=old==null?void 0:old.right)!=null?_old$right:[]).filter((d2=>!(columnIds!=null&&columnIds.includes(d2)))),...columnIds]}}if(position2==="left"){var _old$left2,_old$right2;return{left:[...((_old$left2=old==null?void 0:old.left)!=null?_old$left2:[]).filter((d2=>!(columnIds!=null&&columnIds.includes(d2)))),...columnIds],right:((_old$right2=old==null?void 0:old.right)!=null?_old$right2:[]).filter((d2=>!(columnIds!=null&&columnIds.includes(d2))))}}return{left:((_old$left3=old==null?void 0:old.left)!=null?_old$left3:[]).filter((d2=>!(columnIds!=null&&columnIds.includes(d2)))),right:((_old$right3=old==null?void 0:old.right)!=null?_old$right3:[]).filter((d2=>!(columnIds!=null&&columnIds.includes(d2))))}}))},getCanPin:()=>{const leafColumns=column2.getLeafColumns();return leafColumns.some((d2=>{var _d$columnDef$enablePi,_table$options$enable;return((_d$columnDef$enablePi=d2.columnDef.enablePinning)!=null?_d$columnDef$enablePi:true)&&((_table$options$enable=table.options.enablePinning)!=null?_table$options$enable:true)}))},getIsPinned:()=>{const leafColumnIds=column2.getLeafColumns().map((d2=>d2.id));const{left:left,right:right}=table.getState().columnPinning;const isLeft=leafColumnIds.some((d2=>left==null?void 0:left.includes(d2)));const isRight=leafColumnIds.some((d2=>right==null?void 0:right.includes(d2)));return isLeft?"left":isRight?"right":false},getPinnedIndex:()=>{var _table$getState$colum,_table$getState$colum2,_table$getState$colum3;const position2=column2.getIsPinned();return position2?(_table$getState$colum=(_table$getState$colum2=table.getState().columnPinning)==null?void 0:(_table$getState$colum3=_table$getState$colum2[position2])==null?void 0:_table$getState$colum3.indexOf(column2.id))!=null?_table$getState$colum:-1:0}}),createRow:(row,table)=>({getCenterVisibleCells:memo((()=>[row._getAllVisibleCells(),table.getState().columnPinning.left,table.getState().columnPinning.right]),((allCells,left,right)=>{const leftAndRight=[...left!=null?left:[],...right!=null?right:[]];return allCells.filter((d2=>!leftAndRight.includes(d2.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugRows}}),getLeftVisibleCells:memo((()=>[row._getAllVisibleCells(),table.getState().columnPinning.left,,]),((allCells,left)=>{const cells=(left!=null?left:[]).map((columnId=>allCells.find((cell=>cell.column.id===columnId)))).filter(Boolean).map((d2=>({...d2,position:"left"})));return cells}),{key:"row.getLeftVisibleCells",debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugRows}}),getRightVisibleCells:memo((()=>[row._getAllVisibleCells(),table.getState().columnPinning.right]),((allCells,right)=>{const cells=(right!=null?right:[]).map((columnId=>allCells.find((cell=>cell.column.id===columnId)))).filter(Boolean).map((d2=>({...d2,position:"right"})));return cells}),{key:"row.getRightVisibleCells",debug:()=>{var _table$options$debugA3;return(_table$options$debugA3=table.options.debugAll)!=null?_table$options$debugA3:table.options.debugRows}})}),createTable:table=>({setColumnPinning:updater=>table.options.onColumnPinningChange==null?void 0:table.options.onColumnPinningChange(updater),resetColumnPinning:defaultState2=>{var _table$initialState$c,_table$initialState;return table.setColumnPinning(defaultState2?getDefaultPinningState():(_table$initialState$c=(_table$initialState=table.initialState)==null?void 0:_table$initialState.columnPinning)!=null?_table$initialState$c:getDefaultPinningState())},getIsSomeColumnsPinned:position2=>{var _pinningState$positio;const pinningState=table.getState().columnPinning;if(!position2){var _pinningState$left,_pinningState$right;return Boolean(((_pinningState$left=pinningState.left)==null?void 0:_pinningState$left.length)||((_pinningState$right=pinningState.right)==null?void 0:_pinningState$right.length))}return Boolean((_pinningState$positio=pinningState[position2])==null?void 0:_pinningState$positio.length)},getLeftLeafColumns:memo((()=>[table.getAllLeafColumns(),table.getState().columnPinning.left]),((allColumns,left)=>(left!=null?left:[]).map((columnId=>allColumns.find((column2=>column2.id===columnId)))).filter(Boolean)),{key:false,debug:()=>{var _table$options$debugA4;return(_table$options$debugA4=table.options.debugAll)!=null?_table$options$debugA4:table.options.debugColumns}}),getRightLeafColumns:memo((()=>[table.getAllLeafColumns(),table.getState().columnPinning.right]),((allColumns,right)=>(right!=null?right:[]).map((columnId=>allColumns.find((column2=>column2.id===columnId)))).filter(Boolean)),{key:false,debug:()=>{var _table$options$debugA5;return(_table$options$debugA5=table.options.debugAll)!=null?_table$options$debugA5:table.options.debugColumns}}),getCenterLeafColumns:memo((()=>[table.getAllLeafColumns(),table.getState().columnPinning.left,table.getState().columnPinning.right]),((allColumns,left,right)=>{const leftAndRight=[...left!=null?left:[],...right!=null?right:[]];return allColumns.filter((d2=>!leftAndRight.includes(d2.id)))}),{key:false,debug:()=>{var _table$options$debugA6;return(_table$options$debugA6=table.options.debugAll)!=null?_table$options$debugA6:table.options.debugColumns}})})};const RowSelection={getInitialState:state=>({rowSelection:{},...state}),getDefaultOptions:table=>({onRowSelectionChange:makeStateUpdater("rowSelection",table),enableRowSelection:true,enableMultiRowSelection:true,enableSubRowSelection:true}),createTable:table=>({setRowSelection:updater=>table.options.onRowSelectionChange==null?void 0:table.options.onRowSelectionChange(updater),resetRowSelection:defaultState2=>{var _table$initialState$r;return table.setRowSelection(defaultState2?{}:(_table$initialState$r=table.initialState.rowSelection)!=null?_table$initialState$r:{})},toggleAllRowsSelected:value=>{table.setRowSelection((old=>{value=typeof value!=="undefined"?value:!table.getIsAllRowsSelected();const rowSelection={...old};const preGroupedFlatRows=table.getPreGroupedRowModel().flatRows;if(value){preGroupedFlatRows.forEach((row=>{if(!row.getCanSelect()){return}rowSelection[row.id]=true}))}else{preGroupedFlatRows.forEach((row=>{delete rowSelection[row.id]}))}return rowSelection}))},toggleAllPageRowsSelected:value=>table.setRowSelection((old=>{const resolvedValue=typeof value!=="undefined"?value:!table.getIsAllPageRowsSelected();const rowSelection={...old};table.getRowModel().rows.forEach((row=>{mutateRowIsSelected(rowSelection,row.id,resolvedValue,table)}));return rowSelection})),getPreSelectedRowModel:()=>table.getCoreRowModel(),getSelectedRowModel:memo((()=>[table.getState().rowSelection,table.getCoreRowModel()]),((rowSelection,rowModel)=>{if(!Object.keys(rowSelection).length){return{rows:[],flatRows:[],rowsById:{}}}return selectRowsFn(table,rowModel)}),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugTable}}),getFilteredSelectedRowModel:memo((()=>[table.getState().rowSelection,table.getFilteredRowModel()]),((rowSelection,rowModel)=>{if(!Object.keys(rowSelection).length){return{rows:[],flatRows:[],rowsById:{}}}return selectRowsFn(table,rowModel)}),{key:"getFilteredSelectedRowModel",debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugTable}}),getGroupedSelectedRowModel:memo((()=>[table.getState().rowSelection,table.getSortedRowModel()]),((rowSelection,rowModel)=>{if(!Object.keys(rowSelection).length){return{rows:[],flatRows:[],rowsById:{}}}return selectRowsFn(table,rowModel)}),{key:"getGroupedSelectedRowModel",debug:()=>{var _table$options$debugA3;return(_table$options$debugA3=table.options.debugAll)!=null?_table$options$debugA3:table.options.debugTable}}),getIsAllRowsSelected:()=>{const preGroupedFlatRows=table.getFilteredRowModel().flatRows;const{rowSelection:rowSelection}=table.getState();let isAllRowsSelected=Boolean(preGroupedFlatRows.length&&Object.keys(rowSelection).length);if(isAllRowsSelected){if(preGroupedFlatRows.some((row=>row.getCanSelect()&&!rowSelection[row.id]))){isAllRowsSelected=false}}return isAllRowsSelected},getIsAllPageRowsSelected:()=>{const paginationFlatRows=table.getPaginationRowModel().flatRows.filter((row=>row.getCanSelect()));const{rowSelection:rowSelection}=table.getState();let isAllPageRowsSelected=!!paginationFlatRows.length;if(isAllPageRowsSelected&&paginationFlatRows.some((row=>!rowSelection[row.id]))){isAllPageRowsSelected=false}return isAllPageRowsSelected},getIsSomeRowsSelected:()=>{var _table$getState$rowSe;const totalSelected=Object.keys((_table$getState$rowSe=table.getState().rowSelection)!=null?_table$getState$rowSe:{}).length;return totalSelected>0&&totalSelected<table.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const paginationFlatRows=table.getPaginationRowModel().flatRows;return table.getIsAllPageRowsSelected()?false:paginationFlatRows.filter((row=>row.getCanSelect())).some((d2=>d2.getIsSelected()||d2.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>e2=>{table.toggleAllRowsSelected(e2.target.checked)},getToggleAllPageRowsSelectedHandler:()=>e2=>{table.toggleAllPageRowsSelected(e2.target.checked)}}),createRow:(row,table)=>({toggleSelected:value=>{const isSelected=row.getIsSelected();table.setRowSelection((old=>{value=typeof value!=="undefined"?value:!isSelected;if(isSelected===value){return old}const selectedRowIds={...old};mutateRowIsSelected(selectedRowIds,row.id,value,table);return selectedRowIds}))},getIsSelected:()=>{const{rowSelection:rowSelection}=table.getState();return isRowSelected(row,rowSelection)},getIsSomeSelected:()=>{const{rowSelection:rowSelection}=table.getState();return isSubRowSelected(row,rowSelection)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:rowSelection}=table.getState();return isSubRowSelected(row,rowSelection)==="all"},getCanSelect:()=>{var _table$options$enable;if(typeof table.options.enableRowSelection==="function"){return table.options.enableRowSelection(row)}return(_table$options$enable=table.options.enableRowSelection)!=null?_table$options$enable:true},getCanSelectSubRows:()=>{var _table$options$enable2;if(typeof table.options.enableSubRowSelection==="function"){return table.options.enableSubRowSelection(row)}return(_table$options$enable2=table.options.enableSubRowSelection)!=null?_table$options$enable2:true},getCanMultiSelect:()=>{var _table$options$enable3;if(typeof table.options.enableMultiRowSelection==="function"){return table.options.enableMultiRowSelection(row)}return(_table$options$enable3=table.options.enableMultiRowSelection)!=null?_table$options$enable3:true},getToggleSelectedHandler:()=>{const canSelect=row.getCanSelect();return e2=>{var _target;if(!canSelect)return;row.toggleSelected((_target=e2.target)==null?void 0:_target.checked)}}})};const mutateRowIsSelected=(selectedRowIds,id,value,table)=>{var _row$subRows;const row=table.getRow(id);if(value){if(!row.getCanMultiSelect()){Object.keys(selectedRowIds).forEach((key=>delete selectedRowIds[key]))}if(row.getCanSelect()){selectedRowIds[id]=true}}else{delete selectedRowIds[id]}if((_row$subRows=row.subRows)!=null&&_row$subRows.length&&row.getCanSelectSubRows()){row.subRows.forEach((row2=>mutateRowIsSelected(selectedRowIds,row2.id,value,table)))}};function selectRowsFn(table,rowModel){const rowSelection=table.getState().rowSelection;const newSelectedFlatRows=[];const newSelectedRowsById={};const recurseRows=function(rows,depth){return rows.map((row=>{var _row$subRows2;const isSelected=isRowSelected(row,rowSelection);if(isSelected){newSelectedFlatRows.push(row);newSelectedRowsById[row.id]=row}if((_row$subRows2=row.subRows)!=null&&_row$subRows2.length){row={...row,subRows:recurseRows(row.subRows)}}if(isSelected){return row}})).filter(Boolean)};return{rows:recurseRows(rowModel.rows),flatRows:newSelectedFlatRows,rowsById:newSelectedRowsById}}function isRowSelected(row,selection){var _selection$row$id;return(_selection$row$id=selection[row.id])!=null?_selection$row$id:false}function isSubRowSelected(row,selection,table){if(row.subRows&&row.subRows.length){let allChildrenSelected=true;let someSelected=false;row.subRows.forEach((subRow=>{if(someSelected&&!allChildrenSelected){return}if(isRowSelected(subRow,selection)){someSelected=true}else{allChildrenSelected=false}}));return allChildrenSelected?"all":someSelected?"some":false}return false}const reSplitAlphaNumeric=/([0-9]+)/gm;const alphanumeric=(rowA,rowB,columnId)=>compareAlphanumeric(toString$2(rowA.getValue(columnId)).toLowerCase(),toString$2(rowB.getValue(columnId)).toLowerCase());const alphanumericCaseSensitive=(rowA,rowB,columnId)=>compareAlphanumeric(toString$2(rowA.getValue(columnId)),toString$2(rowB.getValue(columnId)));const text=(rowA,rowB,columnId)=>compareBasic(toString$2(rowA.getValue(columnId)).toLowerCase(),toString$2(rowB.getValue(columnId)).toLowerCase());const textCaseSensitive=(rowA,rowB,columnId)=>compareBasic(toString$2(rowA.getValue(columnId)),toString$2(rowB.getValue(columnId)));const datetime=(rowA,rowB,columnId)=>{const a2=rowA.getValue(columnId);const b2=rowB.getValue(columnId);return a2>b2?1:a2<b2?-1:0};const basic=(rowA,rowB,columnId)=>compareBasic(rowA.getValue(columnId),rowB.getValue(columnId));function compareBasic(a2,b2){return a2===b2?0:a2>b2?1:-1}function toString$2(a2){if(typeof a2==="number"){if(isNaN(a2)||a2===Infinity||a2===-Infinity){return""}return String(a2)}if(typeof a2==="string"){return a2}return""}function compareAlphanumeric(aStr,bStr){const a2=aStr.split(reSplitAlphaNumeric).filter(Boolean);const b2=bStr.split(reSplitAlphaNumeric).filter(Boolean);while(a2.length&&b2.length){const aa=a2.shift();const bb=b2.shift();const an=parseInt(aa,10);const bn=parseInt(bb,10);const combo=[an,bn].sort();if(isNaN(combo[0])){if(aa>bb){return 1}if(bb>aa){return-1}continue}if(isNaN(combo[1])){return isNaN(an)?-1:1}if(an>bn){return 1}if(bn>an){return-1}}return a2.length-b2.length}const sortingFns={alphanumeric:alphanumeric,alphanumericCaseSensitive:alphanumericCaseSensitive,text:text,textCaseSensitive:textCaseSensitive,datetime:datetime,basic:basic};const Sorting={getInitialState:state=>({sorting:[],...state}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:table=>({onSortingChange:makeStateUpdater("sorting",table),isMultiSortEvent:e2=>e2.shiftKey}),createColumn:(column2,table)=>({getAutoSortingFn:()=>{const firstRows=table.getFilteredRowModel().flatRows.slice(10);let isString=false;for(const row of firstRows){const value=row==null?void 0:row.getValue(column2.id);if(Object.prototype.toString.call(value)==="[object Date]"){return sortingFns.datetime}if(typeof value==="string"){isString=true;if(value.split(reSplitAlphaNumeric).length>1){return sortingFns.alphanumeric}}}if(isString){return sortingFns.text}return sortingFns.basic},getAutoSortDir:()=>{const firstRow=table.getFilteredRowModel().flatRows[0];const value=firstRow==null?void 0:firstRow.getValue(column2.id);if(typeof value==="string"){return"asc"}return"desc"},getSortingFn:()=>{var _table$options$sortin,_table$options$sortin2;if(!column2){throw new Error}return isFunction$2(column2.columnDef.sortingFn)?column2.columnDef.sortingFn:column2.columnDef.sortingFn==="auto"?column2.getAutoSortingFn():(_table$options$sortin=(_table$options$sortin2=table.options.sortingFns)==null?void 0:_table$options$sortin2[column2.columnDef.sortingFn])!=null?_table$options$sortin:sortingFns[column2.columnDef.sortingFn]},toggleSorting:(desc,multi)=>{const nextSortingOrder=column2.getNextSortingOrder();const hasManualValue=typeof desc!=="undefined"&&desc!==null;table.setSorting((old=>{const existingSorting=old==null?void 0:old.find((d2=>d2.id===column2.id));const existingIndex=old==null?void 0:old.findIndex((d2=>d2.id===column2.id));let newSorting=[];let sortAction;let nextDesc=hasManualValue?desc:nextSortingOrder==="desc";if(old!=null&&old.length&&column2.getCanMultiSort()&&multi){if(existingSorting){sortAction="toggle"}else{sortAction="add"}}else{if(old!=null&&old.length&&existingIndex!==old.length-1){sortAction="replace"}else if(existingSorting){sortAction="toggle"}else{sortAction="replace"}}if(sortAction==="toggle"){if(!hasManualValue){if(!nextSortingOrder){sortAction="remove"}}}if(sortAction==="add"){var _table$options$maxMul;newSorting=[...old,{id:column2.id,desc:nextDesc}];newSorting.splice(0,newSorting.length-((_table$options$maxMul=table.options.maxMultiSortColCount)!=null?_table$options$maxMul:Number.MAX_SAFE_INTEGER))}else if(sortAction==="toggle"){newSorting=old.map((d2=>{if(d2.id===column2.id){return{...d2,desc:nextDesc}}return d2}))}else if(sortAction==="remove"){newSorting=old.filter((d2=>d2.id!==column2.id))}else{newSorting=[{id:column2.id,desc:nextDesc}]}return newSorting}))},getFirstSortDir:()=>{var _ref3,_column$columnDef$sor;const sortDescFirst=(_ref3=(_column$columnDef$sor=column2.columnDef.sortDescFirst)!=null?_column$columnDef$sor:table.options.sortDescFirst)!=null?_ref3:column2.getAutoSortDir()==="desc";return sortDescFirst?"desc":"asc"},getNextSortingOrder:multi=>{var _table$options$enable,_table$options$enable2;const firstSortDirection=column2.getFirstSortDir();const isSorted=column2.getIsSorted();if(!isSorted){return firstSortDirection}if(isSorted!==firstSortDirection&&((_table$options$enable=table.options.enableSortingRemoval)!=null?_table$options$enable:true)&&(multi?(_table$options$enable2=table.options.enableMultiRemove)!=null?_table$options$enable2:true:true)){return false}return isSorted==="desc"?"asc":"desc"},getCanSort:()=>{var _column$columnDef$ena,_table$options$enable3;return((_column$columnDef$ena=column2.columnDef.enableSorting)!=null?_column$columnDef$ena:true)&&((_table$options$enable3=table.options.enableSorting)!=null?_table$options$enable3:true)&&!!column2.accessorFn},getCanMultiSort:()=>{var _ref22,_column$columnDef$ena2;return(_ref22=(_column$columnDef$ena2=column2.columnDef.enableMultiSort)!=null?_column$columnDef$ena2:table.options.enableMultiSort)!=null?_ref22:!!column2.accessorFn},getIsSorted:()=>{var _table$getState$sorti;const columnSort=(_table$getState$sorti=table.getState().sorting)==null?void 0:_table$getState$sorti.find((d2=>d2.id===column2.id));return!columnSort?false:columnSort.desc?"desc":"asc"},getSortIndex:()=>{var _table$getState$sorti2,_table$getState$sorti3;return(_table$getState$sorti2=(_table$getState$sorti3=table.getState().sorting)==null?void 0:_table$getState$sorti3.findIndex((d2=>d2.id===column2.id)))!=null?_table$getState$sorti2:-1},clearSorting:()=>{table.setSorting((old=>old!=null&&old.length?old.filter((d2=>d2.id!==column2.id)):[]))},getToggleSortingHandler:()=>{const canSort=column2.getCanSort();return e2=>{if(!canSort)return;e2.persist==null?void 0:e2.persist();column2.toggleSorting==null?void 0:column2.toggleSorting(void 0,column2.getCanMultiSort()?table.options.isMultiSortEvent==null?void 0:table.options.isMultiSortEvent(e2):false)}}}),createTable:table=>({setSorting:updater=>table.options.onSortingChange==null?void 0:table.options.onSortingChange(updater),resetSorting:defaultState2=>{var _table$initialState$s,_table$initialState;table.setSorting(defaultState2?[]:(_table$initialState$s=(_table$initialState=table.initialState)==null?void 0:_table$initialState.sorting)!=null?_table$initialState$s:[])},getPreSortedRowModel:()=>table.getGroupedRowModel(),getSortedRowModel:()=>{if(!table._getSortedRowModel&&table.options.getSortedRowModel){table._getSortedRowModel=table.options.getSortedRowModel(table)}if(table.options.manualSorting||!table._getSortedRowModel){return table.getPreSortedRowModel()}return table._getSortedRowModel()}})};const Visibility={getInitialState:state=>({columnVisibility:{},...state}),getDefaultOptions:table=>({onColumnVisibilityChange:makeStateUpdater("columnVisibility",table)}),createColumn:(column2,table)=>({toggleVisibility:value=>{if(column2.getCanHide()){table.setColumnVisibility((old=>({...old,[column2.id]:value!=null?value:!column2.getIsVisible()})))}},getIsVisible:()=>{var _table$getState$colum,_table$getState$colum2;return(_table$getState$colum=(_table$getState$colum2=table.getState().columnVisibility)==null?void 0:_table$getState$colum2[column2.id])!=null?_table$getState$colum:true},getCanHide:()=>{var _column$columnDef$ena,_table$options$enable;return((_column$columnDef$ena=column2.columnDef.enableHiding)!=null?_column$columnDef$ena:true)&&((_table$options$enable=table.options.enableHiding)!=null?_table$options$enable:true)},getToggleVisibilityHandler:()=>e2=>{column2.toggleVisibility==null?void 0:column2.toggleVisibility(e2.target.checked)}}),createRow:(row,table)=>({_getAllVisibleCells:memo((()=>[row.getAllCells(),table.getState().columnVisibility]),(cells=>cells.filter((cell=>cell.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugRows}}),getVisibleCells:memo((()=>[row.getLeftVisibleCells(),row.getCenterVisibleCells(),row.getRightVisibleCells()]),((left,center,right)=>[...left,...center,...right]),{key:false,debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugRows}})}),createTable:table=>{const makeVisibleColumnsMethod=(key,getColumns)=>memo((()=>[getColumns(),getColumns().filter((d2=>d2.getIsVisible())).map((d2=>d2.id)).join("_")]),(columns=>columns.filter((d2=>d2.getIsVisible==null?void 0:d2.getIsVisible()))),{key:key,debug:()=>{var _table$options$debugA3;return(_table$options$debugA3=table.options.debugAll)!=null?_table$options$debugA3:table.options.debugColumns}});return{getVisibleFlatColumns:makeVisibleColumnsMethod("getVisibleFlatColumns",(()=>table.getAllFlatColumns())),getVisibleLeafColumns:makeVisibleColumnsMethod("getVisibleLeafColumns",(()=>table.getAllLeafColumns())),getLeftVisibleLeafColumns:makeVisibleColumnsMethod("getLeftVisibleLeafColumns",(()=>table.getLeftLeafColumns())),getRightVisibleLeafColumns:makeVisibleColumnsMethod("getRightVisibleLeafColumns",(()=>table.getRightLeafColumns())),getCenterVisibleLeafColumns:makeVisibleColumnsMethod("getCenterVisibleLeafColumns",(()=>table.getCenterLeafColumns())),setColumnVisibility:updater=>table.options.onColumnVisibilityChange==null?void 0:table.options.onColumnVisibilityChange(updater),resetColumnVisibility:defaultState2=>{var _table$initialState$c;table.setColumnVisibility(defaultState2?{}:(_table$initialState$c=table.initialState.columnVisibility)!=null?_table$initialState$c:{})},toggleAllColumnsVisible:value=>{var _value;value=(_value=value)!=null?_value:!table.getIsAllColumnsVisible();table.setColumnVisibility(table.getAllLeafColumns().reduce(((obj,column2)=>({...obj,[column2.id]:!value?!(column2.getCanHide!=null&&column2.getCanHide()):value})),{}))},getIsAllColumnsVisible:()=>!table.getAllLeafColumns().some((column2=>!(column2.getIsVisible!=null&&column2.getIsVisible()))),getIsSomeColumnsVisible:()=>table.getAllLeafColumns().some((column2=>column2.getIsVisible==null?void 0:column2.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>e2=>{var _target;table.toggleAllColumnsVisible((_target=e2.target)==null?void 0:_target.checked)}}}};const features=[Headers,Visibility,Ordering,Pinning,Filters,Sorting,Grouping,Expanding,Pagination,RowSelection,ColumnSizing];function createTable(options2){var _options$initialState;if(options2.debugAll||options2.debugTable){console.info("Creating Table Instance...")}let table={_features:features};const defaultOptions2=table._features.reduce(((obj,feature)=>Object.assign(obj,feature.getDefaultOptions==null?void 0:feature.getDefaultOptions(table))),{});const mergeOptions=options22=>{if(table.options.mergeOptions){return table.options.mergeOptions(defaultOptions2,options22)}return{...defaultOptions2,...options22}};const coreInitialState={};let initialState2={...coreInitialState,...(_options$initialState=options2.initialState)!=null?_options$initialState:{}};table._features.forEach((feature=>{var _feature$getInitialSt;initialState2=(_feature$getInitialSt=feature.getInitialState==null?void 0:feature.getInitialState(initialState2))!=null?_feature$getInitialSt:initialState2}));const queued=[];let queuedTimeout=false;const coreInstance={_features:features,options:{...defaultOptions2,...options2},initialState:initialState2,_queue:cb=>{queued.push(cb);if(!queuedTimeout){queuedTimeout=true;Promise.resolve().then((()=>{while(queued.length){queued.shift()()}queuedTimeout=false})).catch((error=>setTimeout((()=>{throw error}))))}},reset:()=>{table.setState(table.initialState)},setOptions:updater=>{const newOptions=functionalUpdate(updater,table.options);table.options=mergeOptions(newOptions)},getState:()=>table.options.state,setState:updater=>{table.options.onStateChange==null?void 0:table.options.onStateChange(updater)},_getRowId:(row,index2,parent)=>{var _table$options$getRow;return(_table$options$getRow=table.options.getRowId==null?void 0:table.options.getRowId(row,index2,parent))!=null?_table$options$getRow:`${parent?[parent.id,index2].join("."):index2}`},getCoreRowModel:()=>{if(!table._getCoreRowModel){table._getCoreRowModel=table.options.getCoreRowModel(table)}return table._getCoreRowModel()},getRowModel:()=>table.getPaginationRowModel(),getRow:id=>{const row=table.getRowModel().rowsById[id];if(!row){throw new Error}return row},_getDefaultColumnDef:memo((()=>[table.options.defaultColumn]),(defaultColumn=>{var _defaultColumn;defaultColumn=(_defaultColumn=defaultColumn)!=null?_defaultColumn:{};return{header:props=>{const resolvedColumnDef=props.header.column.columnDef;if(resolvedColumnDef.accessorKey){return resolvedColumnDef.accessorKey}if(resolvedColumnDef.accessorFn){return resolvedColumnDef.id}return null},cell:props=>{var _props$renderValue$to,_props$renderValue;return(_props$renderValue$to=(_props$renderValue=props.renderValue())==null?void 0:_props$renderValue.toString==null?void 0:_props$renderValue.toString())!=null?_props$renderValue$to:null},...table._features.reduce(((obj,feature)=>Object.assign(obj,feature.getDefaultColumnDef==null?void 0:feature.getDefaultColumnDef())),{}),...defaultColumn}}),{debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugColumns},key:false}),_getColumnDefs:()=>table.options.columns,getAllColumns:memo((()=>[table._getColumnDefs()]),(columnDefs=>{const recurseColumns=function(columnDefs2,parent,depth){if(depth===void 0){depth=0}return columnDefs2.map((columnDef=>{const column2=createColumn(table,columnDef,depth,parent);const groupingColumnDef=columnDef;column2.columns=groupingColumnDef.columns?recurseColumns(groupingColumnDef.columns,column2,depth+1):[];return column2}))};return recurseColumns(columnDefs)}),{key:false,debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugColumns}}),getAllFlatColumns:memo((()=>[table.getAllColumns()]),(allColumns=>allColumns.flatMap((column2=>column2.getFlatColumns()))),{key:false,debug:()=>{var _table$options$debugA3;return(_table$options$debugA3=table.options.debugAll)!=null?_table$options$debugA3:table.options.debugColumns}}),_getAllFlatColumnsById:memo((()=>[table.getAllFlatColumns()]),(flatColumns=>flatColumns.reduce(((acc,column2)=>{acc[column2.id]=column2;return acc}),{})),{key:false,debug:()=>{var _table$options$debugA4;return(_table$options$debugA4=table.options.debugAll)!=null?_table$options$debugA4:table.options.debugColumns}}),getAllLeafColumns:memo((()=>[table.getAllColumns(),table._getOrderColumnsFn()]),((allColumns,orderColumns2)=>{let leafColumns=allColumns.flatMap((column2=>column2.getLeafColumns()));return orderColumns2(leafColumns)}),{key:false,debug:()=>{var _table$options$debugA5;return(_table$options$debugA5=table.options.debugAll)!=null?_table$options$debugA5:table.options.debugColumns}}),getColumn:columnId=>{const column2=table._getAllFlatColumnsById()[columnId];return column2}};Object.assign(table,coreInstance);table._features.forEach((feature=>Object.assign(table,feature.createTable==null?void 0:feature.createTable(table))));return table}function createCell(table,row,column2,columnId){const getRenderValue=()=>{var _cell$getValue;return(_cell$getValue=cell.getValue())!=null?_cell$getValue:table.options.renderFallbackValue};const cell={id:`${row.id}_${column2.id}`,row:row,column:column2,getValue:()=>row.getValue(columnId),renderValue:getRenderValue,getContext:memo((()=>[table,column2,row,cell]),((table2,column22,row2,cell2)=>({table:table2,column:column22,row:row2,cell:cell2,getValue:cell2.getValue,renderValue:cell2.renderValue})),{key:false,debug:()=>table.options.debugAll})};table._features.forEach((feature=>{Object.assign(cell,feature.createCell==null?void 0:feature.createCell(cell,column2,row,table))}),{});return cell}const createRow=(table,id,original,rowIndex,depth,subRows,parentId)=>{let row={id:id,index:rowIndex,original:original,depth:depth,parentId:parentId,_valuesCache:{},_uniqueValuesCache:{},getValue:columnId=>{if(row._valuesCache.hasOwnProperty(columnId)){return row._valuesCache[columnId]}const column2=table.getColumn(columnId);if(!(column2!=null&&column2.accessorFn)){return void 0}row._valuesCache[columnId]=column2.accessorFn(row.original,rowIndex);return row._valuesCache[columnId]},getUniqueValues:columnId=>{if(row._uniqueValuesCache.hasOwnProperty(columnId)){return row._uniqueValuesCache[columnId]}const column2=table.getColumn(columnId);if(!(column2!=null&&column2.accessorFn)){return void 0}if(!column2.columnDef.getUniqueValues){row._uniqueValuesCache[columnId]=[row.getValue(columnId)];return row._uniqueValuesCache[columnId]}row._uniqueValuesCache[columnId]=column2.columnDef.getUniqueValues(row.original,rowIndex);return row._uniqueValuesCache[columnId]},renderValue:columnId=>{var _row$getValue;return(_row$getValue=row.getValue(columnId))!=null?_row$getValue:table.options.renderFallbackValue},subRows:[],getLeafRows:()=>flattenBy(row.subRows,(d2=>d2.subRows)),getParentRow:()=>row.parentId?table.getRow(row.parentId):void 0,getParentRows:()=>{let parentRows=[];let currentRow=row;while(true){const parentRow=currentRow.getParentRow();if(!parentRow)break;parentRows.push(parentRow);currentRow=parentRow}return parentRows.reverse()},getAllCells:memo((()=>[table.getAllLeafColumns()]),(leafColumns=>leafColumns.map((column2=>createCell(table,row,column2,column2.id)))),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugRows}}),_getAllCellsByColumnId:memo((()=>[row.getAllCells()]),(allCells=>allCells.reduce(((acc,cell)=>{acc[cell.column.id]=cell;return acc}),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var _table$options$debugA2;return(_table$options$debugA2=table.options.debugAll)!=null?_table$options$debugA2:table.options.debugRows}})};for(let i=0;i<table._features.length;i++){const feature=table._features[i];Object.assign(row,feature==null?void 0:feature.createRow==null?void 0:feature.createRow(row,table))}return row};function createColumnHelper(){return{accessor:(accessor,column2)=>typeof accessor==="function"?{...column2,accessorFn:accessor}:{...column2,accessorKey:accessor},display:column2=>column2,group:column2=>column2}}function getCoreRowModel(){return table=>memo((()=>[table.options.data]),(data=>{const rowModel={rows:[],flatRows:[],rowsById:{}};const accessRows=function(originalRows,depth,parentRow){if(depth===void 0){depth=0}const rows=[];for(let i=0;i<originalRows.length;i++){const row=createRow(table,table._getRowId(originalRows[i],i,parentRow),originalRows[i],i,depth,void 0,parentRow==null?void 0:parentRow.id);rowModel.flatRows.push(row);rowModel.rowsById[row.id]=row;rows.push(row);if(table.options.getSubRows){var _row$originalSubRows;row.originalSubRows=table.options.getSubRows(originalRows[i],i);if((_row$originalSubRows=row.originalSubRows)!=null&&_row$originalSubRows.length){row.subRows=accessRows(row.originalSubRows,depth+1,row)}}}return rows};rowModel.rows=accessRows(data);return rowModel}),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugTable},onChange:()=>{table._autoResetPageIndex()}})}function getSortedRowModel(){return table=>memo((()=>[table.getState().sorting,table.getPreSortedRowModel()]),((sorting,rowModel)=>{if(!rowModel.rows.length||!(sorting!=null&&sorting.length)){return rowModel}const sortingState=table.getState().sorting;const sortedFlatRows=[];const availableSorting=sortingState.filter((sort=>{var _table$getColumn;return(_table$getColumn=table.getColumn(sort.id))==null?void 0:_table$getColumn.getCanSort()}));const columnInfoById={};availableSorting.forEach((sortEntry=>{const column2=table.getColumn(sortEntry.id);if(!column2)return;columnInfoById[sortEntry.id]={sortUndefined:column2.columnDef.sortUndefined,invertSorting:column2.columnDef.invertSorting,sortingFn:column2.getSortingFn()}}));const sortData=rows=>{const sortedData=[...rows];sortedData.sort(((rowA,rowB)=>{for(let i=0;i<availableSorting.length;i+=1){var _sortEntry$desc;const sortEntry=availableSorting[i];const columnInfo=columnInfoById[sortEntry.id];const isDesc=(_sortEntry$desc=sortEntry==null?void 0:sortEntry.desc)!=null?_sortEntry$desc:false;if(columnInfo.sortUndefined){const aValue=rowA.getValue(sortEntry.id);const bValue=rowB.getValue(sortEntry.id);const aUndefined=typeof aValue==="undefined";const bUndefined=typeof bValue==="undefined";if(aUndefined||bUndefined){let undefinedSort=aUndefined&&bUndefined?0:aUndefined?columnInfo.sortUndefined:-columnInfo.sortUndefined;if(isDesc&&undefinedSort!==0){undefinedSort*=-1}return undefinedSort}}let sortInt=columnInfo.sortingFn(rowA,rowB,sortEntry.id);if(sortInt!==0){if(isDesc){sortInt*=-1}if(columnInfo.invertSorting){sortInt*=-1}return sortInt}}return rowA.index-rowB.index}));sortedData.forEach((row=>{var _row$subRows;sortedFlatRows.push(row);if((_row$subRows=row.subRows)!=null&&_row$subRows.length){row.subRows=sortData(row.subRows)}}));return sortedData};return{rows:sortData(rowModel.rows),flatRows:sortedFlatRows,rowsById:rowModel.rowsById}}),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugTable},onChange:()=>{table._autoResetPageIndex()}})}function getExpandedRowModel(){return table=>memo((()=>[table.getState().expanded,table.getPreExpandedRowModel(),table.options.paginateExpandedRows]),((expanded,rowModel,paginateExpandedRows)=>{if(!rowModel.rows.length||expanded!==true&&!Object.keys(expanded!=null?expanded:{}).length){return rowModel}if(!paginateExpandedRows){return rowModel}return expandRows(rowModel)}),{key:false,debug:()=>{var _table$options$debugA;return(_table$options$debugA=table.options.debugAll)!=null?_table$options$debugA:table.options.debugTable}})}function expandRows(rowModel){const expandedRows=[];const handleRow=row=>{var _row$subRows;expandedRows.push(row);if((_row$subRows=row.subRows)!=null&&_row$subRows.length&&row.getIsExpanded()){row.subRows.forEach(handleRow)}};rowModel.rows.forEach(handleRow);return{rows:expandedRows,flatRows:rowModel.flatRows,rowsById:rowModel.rowsById}}
17
- /**
18
- * react-table
19
- *
20
- * Copyright (c) TanStack
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE.md file in the root directory of this source tree.
24
- *
25
- * @license MIT
26
- */function flexRender(Comp,props){return!Comp?null:isReactComponent(Comp)?React$1.createElement(Comp,props):Comp}function isReactComponent(component){return isClassComponent(component)||typeof component==="function"||isExoticComponent(component)}function isClassComponent(component){return typeof component==="function"&&(()=>{const proto=Object.getPrototypeOf(component);return proto.prototype&&proto.prototype.isReactComponent})()}function isExoticComponent(component){return typeof component==="object"&&typeof component.$$typeof==="symbol"&&["react.memo","react.forward_ref"].includes(component.$$typeof.description)}function useReactTable(options2){const resolvedOptions={state:{},onStateChange:()=>{},renderFallbackValue:null,...options2};const[tableRef]=React$1.useState((()=>({current:createTable(resolvedOptions)})));const[state,setState]=React$1.useState((()=>tableRef.current.initialState));tableRef.current.setOptions((prev2=>({...prev2,...options2,state:{...state,...options2.state},onStateChange:updater=>{setState(updater);options2.onStateChange==null?void 0:options2.onStateChange(updater)}})));return tableRef.current}const buildPrefixedProps=(prefix2,data)=>Object.keys(data).reduce(((props,key)=>{props[`${prefix2}-${key}`]=data[key];return props}),{});const noop$3=()=>{};const buildAriaProps=aria=>buildPrefixedProps("aria",aria);const buildDataProps=data=>buildPrefixedProps("data",data);const buildCss=(...rules)=>classnames(rules).replace(/\s/g,"_");const buildHtmlProps=htmlOptions=>{const htmlProps={};Object.keys(htmlOptions).forEach((key=>{htmlProps[key]=htmlOptions[key]}));return htmlProps};const titleizedWord=word=>word.charAt(0).toUpperCase()+word.slice(1).toLowerCase();const titleize=sentence=>lodashExports.isEmpty(sentence)?sentence:sentence.split(" ").map(titleizedWord).join(" ");const notEmpty=value=>!lodashExports.isEmpty(value);const joinPresent=(array,separator)=>lodashExports.filter(array,notEmpty).join(separator);const camelToSnakeCase=word=>word.split(/([A-Z])/g).map(((w2,i)=>{const prefix2=i>0?"_":"";return w2===w2.toLowerCase()?w2:prefix2+w2.toLowerCase()})).join("");const BitValues=[0,1];const getResponsivePropClasses=(prop,classPrefix)=>{const keys=Object.keys(prop);return keys.map((size=>{const propValue=typeof prop[size]==="string"?camelToSnakeCase(prop[size]):prop[size];return`${classPrefix}_${size}_${propValue}`})).join(" ")};const getPositioningPropsClasses=(position2,value)=>{let css4="";if(typeof value==="string"){css4+=`${position2}_${value}`}else if(typeof value==="object"&&value.inset){css4+=`${position2}_${value.value}_inset`}else if(typeof value==="object"){css4+=`${position2}_${value.value}`}return css4};const PROP_CATEGORIES={hoverProps:({hover:hover})=>{let css4="";if(!hover)return css4;css4+=hover.shadow?`hover_shadow_${hover.shadow} `:"";css4+=hover.background?`hover_background_${hover.background} `:"";css4+=hover.scale?`hover_scale_${hover.scale} `:"";css4+=hover.color?`hover_color_${hover.color} `:"";return css4},spacingProps:({marginRight:marginRight,marginLeft:marginLeft,marginTop:marginTop,marginBottom:marginBottom,marginX:marginX,marginY:marginY,margin:margin,paddingRight:paddingRight,paddingLeft:paddingLeft,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingX:paddingX,paddingY:paddingY,padding:padding})=>{let css4="";const spacingProps={marginRight:marginRight,marginLeft:marginLeft,marginTop:marginTop,marginBottom:marginBottom,marginX:marginX,marginY:marginY,margin:margin,paddingRight:paddingRight,paddingLeft:paddingLeft,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingX:paddingX,paddingY:paddingY,padding:padding};const screenSizeValues=["xs","sm","md","lg","xl"];function handleObjectValue(properties,prefix2){let classResult="";const breakValue=properties.break||"on";const defaultValue=properties.default||null;Object.entries(properties).forEach((([key,value])=>{if(screenSizeValues.includes(key)){classResult+=`break_${breakValue}_${key}:${prefix2}_${value} `}}));if(defaultValue){classResult+=`${prefix2}_${defaultValue} `}return classResult}function getPrefix(key){const prefixes={marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"};return prefixes[key]}Object.entries(spacingProps).forEach((([key,value])=>{if(value){if(typeof value==="object"){css4+=handleObjectValue(value,getPrefix(key))}else{const prefix2=getPrefix(key);css4+=`${prefix2}_${value} `}}}));return css4.trim()},borderRadiusProps:({borderRadius:borderRadius2})=>{let css4="";css4+=borderRadius2?`border_radius_${borderRadius2} `:"";return css4},overflowProps:({overflow:overflow,overflowX:overflowX,overflowY:overflowY})=>{let css4="";css4+=overflow?`overflow_${overflow}`:"";css4+=overflowX?`overflow_x_${overflowX}`:"";css4+=overflowY?`overflow_y_${overflowY}`:"";return css4},truncateProps:({truncate:truncate})=>{if(typeof truncate==="object"){return""}else{return truncate?`truncate_${truncate}`:""}},darkProps:({dark:dark})=>dark?"dark":"",numberSpacingProps:({numberSpacing:numberSpacing})=>{let css4="";css4+=numberSpacing?`ns_${numberSpacing} `:"";return css4},maxWidthProps:({maxWidth:maxWidth})=>{let css4="";css4+=maxWidth?`max_width_${maxWidth} `:"";return css4},zIndexProps:zIndex=>{let css4="";Object.entries(zIndex).forEach((zIndexEntry=>{if(zIndexEntry[0]=="zIndex"){if(typeof zIndexEntry[1]=="number"){css4+=`z_index_${zIndexEntry[1]} `}else if(typeof zIndexEntry[1]=="object"){Object.entries(zIndexEntry[1]).forEach((zIndexObj=>{css4+=`z_index_${zIndexObj[0]}_${zIndexObj[1]} `}))}}}));return css4},shadowProps:({shadow:shadow})=>{let css4="";css4+=shadow?`shadow_${shadow} `:"";return css4},lineHeightProps:({lineHeight:lineHeight})=>{let css4="";css4+=lineHeight?`line_height_${lineHeight} `:"";return css4},displayProps:display=>{let css4="";Object.entries(display).forEach((displayEntry=>{if(displayEntry[0]=="display"){if(typeof displayEntry[1]=="string"){css4+=`display_${displayEntry[1]} `}else if(typeof displayEntry[1]=="object"){Object.entries(displayEntry[1]).forEach((displayObj=>{css4+=`display_${displayObj[0]}_${displayObj[1]} `}))}else;}}));return css4},cursorProps:({cursor:cursor2})=>{let css4="";css4+=cursor2?`cursor_${camelToSnakeCase(cursor2)}`:"";return css4},alignContentProps:({alignContent:alignContent})=>{if(typeof alignContent==="object"){return getResponsivePropClasses(alignContent,"align_content")}return alignContent?`align_content_${camelToSnakeCase(alignContent)}`:""},alignItemsProps:({alignItems:alignItems})=>{if(typeof alignItems==="object"){return getResponsivePropClasses(alignItems,"align_items")}else{return alignItems?`align_items_${camelToSnakeCase(alignItems)}`:""}},alignSelfProps:({alignSelf:alignSelf})=>{if(typeof alignSelf==="object"){return getResponsivePropClasses(alignSelf,"align_self")}else{return alignSelf?`align_self_${alignSelf}`:""}},flexDirectionProps:({flexDirection:flexDirection})=>{if(typeof flexDirection=="object"){return getResponsivePropClasses(flexDirection,"flex_direction")}else{return flexDirection?`flex_direction_${camelToSnakeCase(flexDirection)}`:""}},flexWrapProps:({flexWrap:flexWrap})=>{if(typeof flexWrap=="object"){return getResponsivePropClasses(flexWrap,"flex_wrap")}else{return flexWrap?`flex_wrap_${camelToSnakeCase(flexWrap)}`:""}},flexProps:({flex:flex})=>{if(typeof flex==="object"){return getResponsivePropClasses(flex,"flex")}else{return flex?`flex_${flex}`:""}},flexGrowProps:({flexGrow:flexGrow})=>{if(typeof flexGrow=="object"){return getResponsivePropClasses(flexGrow,"flex_grow")}else if(BitValues.includes(flexGrow)){return`flex_grow_${flexGrow}`}else{return""}},flexShrinkProps:({flexShrink:flexShrink})=>{if(typeof flexShrink=="object"){return getResponsivePropClasses(flexShrink,"flex_shrink")}else if(BitValues.includes(flexShrink)){return`flex_shrink_${flexShrink}`}else{return""}},justifyContentProps:({justifyContent:justifyContent})=>{if(typeof justifyContent==="object"){return getResponsivePropClasses(justifyContent,"justify_content")}else{return justifyContent?`justify_content_${camelToSnakeCase(justifyContent)}`:""}},justifySelfProps:({justifySelf:justifySelf})=>{if(typeof justifySelf==="object"){return getResponsivePropClasses(justifySelf,"justify_self")}else{return justifySelf?`justify_self_${justifySelf}`:""}},orderProps:({order:order})=>{if(typeof order==="object"){return getResponsivePropClasses(order,"flex_order")}else{return order?`flex_order_${order}`:""}},positionProps:({position:position2})=>{let css4="";css4+=position2&&position2!=="static"?`position_${position2}`:"";return css4},topProps:({top:top})=>getPositioningPropsClasses("top",top),rightProps:({right:right})=>getPositioningPropsClasses("right",right),bottomProps:({bottom:bottom})=>getPositioningPropsClasses("bottom",bottom),leftProps:({left:left})=>getPositioningPropsClasses("left",left),textAlignProps:({textAlign:textAlign})=>{if(typeof textAlign==="object"){return getResponsivePropClasses(textAlign,"text_align")}else{return textAlign?`text_align_${textAlign} `:""}},verticalAlignProps:({verticalAlign:verticalAlign})=>{if(typeof verticalAlign==="object"){return getResponsivePropClasses(verticalAlign,"vertical_align")}else{return verticalAlign?`vertical_align_${verticalAlign} `:""}}};const globalProps=(props,defaultProps2={})=>{const allProps=Object.assign(Object.assign({},props),defaultProps2);return Object.keys(PROP_CATEGORIES).map((key=>PROP_CATEGORIES[key](allProps))).filter((value=>(value===null||value===void 0?void 0:value.length)>0)).join(" ")};const domSafeProps=props=>{const notSafeProps=["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark","enableDrag"];return lodashExports.omit(props,notSafeProps)};const TableHead=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_thead",globalProps(props),className);const isTableTag=tag==="table";return jsx$1(Fragment,{children:isTableTag?jsx$1("thead",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableHeader$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table",text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_th",globalProps(props),className);const isTableTag=tag==="table";return jsx$1(Fragment,{children:isTableTag?jsx$1("th",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children}):jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})})};const TableBody$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_tbody",globalProps(props),className);const isTableTag=tag==="table";return jsx$1(Fragment,{children:isTableTag?jsx$1("tbody",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableRow=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,sideHighlightColor:sideHighlightColor="none",tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const sideHighlightClass=sideHighlightColor!=""?`side_highlight_${sideHighlightColor}`:null;const classes=classnames(buildCss("pb_table_row_kit",sideHighlightClass),"pb_table_tr",globalProps(props),className);const isTableTag=tag==="table";return jsx$1(Fragment,{children:isTableTag?jsx$1("tr",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableCell=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table",text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_td",globalProps(props),className);const isTableTag=tag==="table";return jsx$1(Fragment,{children:isTableTag?jsx$1("td",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children}):jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})})};const Table=props=>{const{aria:aria={},children:children,className:className,collapse:collapse="sm",container:container=true,dark:dark,data:data={},dataTable:dataTable=false,disableHover:disableHover=false,htmlOptions:htmlOptions={},id:id,outerPadding:outerPadding="",responsive:responsive="collapse",singleLine:singleLine=false,size:size="sm",sticky:sticky=false,striped:striped=false,tag:tag="table",verticalBorder:verticalBorder=false}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const tableCollapseCss=responsive!=="none"?`table-collapse-${collapse}`:"";const verticalBorderCss=verticalBorder?"vertical-border":"";const spaceCssName=outerPadding!=="none"?"space_":"";const outerPaddingCss=outerPadding?`outer_padding_${spaceCssName}${outerPadding}`:"";const isTableTag=tag==="table";const classNames2=classnames("pb_table",`table-${size}`,`table-responsive-${responsive}`,{"table-card":container,"table-dark":dark,data_table:dataTable,"single-line":singleLine,"no-hover":disableHover,"sticky-header":sticky,striped:striped,[outerPaddingCss]:outerPadding!==""},globalProps(props),tableCollapseCss,verticalBorderCss,className);useEffect((()=>{const instance=new PbTable;instance.connect()}),[]);return jsx$1(Fragment,{children:isTableTag?jsx$1("table",{...ariaProps,...dataProps,...htmlProps,className:classNames2,id:id,children:children}):jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classNames2,id:id,children:children})})};Table.Head=TableHead;Table.Header=TableHeader$1;Table.Body=TableBody$1;Table.Row=TableRow;Table.Cell=TableCell;const AdvancedTableContext=createContext({});const filterExpandableRows=expandedState=>{for(const expandedRow in expandedState){if(expandedState[expandedRow]===false){delete expandedState[expandedRow]}}return expandedState};const updateExpandAndCollapseState=(tableRows,expanded,targetParent)=>{const updateExpandedRows={};const rows=tableRows.rows;let isExpansionConsistent=true;const areRowsExpanded=new Set;for(const row of rows){const shouldBeUpdated=targetParent===void 0?row.depth===0:targetParent===row.parentId;if(shouldBeUpdated){const isExpanded=row.getIsExpanded();areRowsExpanded.add(isExpanded);updateExpandedRows[row.id]=!isExpansionConsistent?true:!isExpanded;if(areRowsExpanded.size>1){isExpansionConsistent=false;for(const key in updateExpandedRows){updateExpandedRows[key]=true}}}}return filterExpandableRows({...expanded,...updateExpandedRows})};const CustomCell=({getValue:getValue,onRowToggleClick:onRowToggleClick,row:row,value:value})=>{const{setExpanded:setExpanded,expanded:expanded,expandedControl:expandedControl,inlineRowLoading:inlineRowLoading}=useContext(AdvancedTableContext);const handleOnExpand=row2=>{onRowToggleClick&&onRowToggleClick(row2);if(!expandedControl){setExpanded({...expanded,[row2.id]:!row2.getIsExpanded()})}};const RowHasChildren=row.original.children?true:false;const renderButton=inlineRowLoading?RowHasChildren:row.getCanExpand();return jsx$1("div",{style:{paddingLeft:`${row.depth*1.25}em`},children:jsxs(Flex,{alignItems:"center",columnGap:"xs",orientation:"row",children:[renderButton?jsx$1("button",{className:"gray-icon expand-toggle-icon",onClick:()=>handleOnExpand(row),children:row.getIsExpanded()?jsx$1(Icon,{cursor:"pointer",icon:"circle-play",rotation:90}):jsx$1(Icon,{cursor:"pointer",icon:"circle-play"})}):null,jsx$1(FlexItem,{paddingLeft:renderButton?"none":"xs",children:row.depth===0?getValue():value})]})})};const displayIcon=icon=>{if(typeof icon==="string"){return[icon,icon]}return icon};const SortIconButton=({header:header,sortIcon:sortIcon})=>jsx$1(Fragment,{children:header.column.getIsSorted()==="desc"?jsx$1("div",{className:"sort-button-icon",children:jsx$1(Icon,{icon:displayIcon(sortIcon)[0]})},displayIcon(sortIcon)[0]):jsx$1("div",{className:"sort-button-icon",children:jsx$1(Icon,{icon:displayIcon(sortIcon)[1]})},displayIcon(sortIcon)[1])});const ToggleIconButton=({row:row,onClick:onClick})=>{const{toggleExpansionIcon:toggleExpansionIcon}=useContext(AdvancedTableContext);return jsx$1("button",{className:"gray-icon toggle-all-icon",onClick:()=>onClick(row),children:jsx$1(Icon,{cursor:"pointer",fixedWidth:true,icon:displayIcon(toggleExpansionIcon)[0]})},displayIcon(toggleExpansionIcon)[0])};const isChrome=()=>{const userAgent=navigator.userAgent.toLowerCase();return userAgent.includes("chrome")&&!userAgent.includes("edg")};const TableHeaderCell=({enableSorting:enableSorting,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,header:header,headerChildren:headerChildren,loading:loading,sortIcon:sortIcon})=>{const{sortControl:sortControl}=useContext(AdvancedTableContext);const toggleSortButton=event2=>{if(sortControl){const sortIsDesc=header.column.getIsSorted()==="desc";sortIsDesc?sortControl.onChange({desc:true}):sortControl.onChange({desc:false})}else{header.column.getToggleSortingHandler()(event2)}};const cellClassName=classnames("table-header-cells",`${isChrome()?"chrome-styles":""}`,`${enableSorting?"table-header-cells-active":""}`);const cellId=`${loading?`loading-${header.id}`:`${header.id}`}`;const isToggleExpansionEnabledLoading=header.index===0&&loading&&(enableToggleExpansion==="all"||"header")&&enableToggleExpansion!=="none";const isToggleExpansionEnabled=header.index===0&&!loading&&(enableToggleExpansion==="all"||"header")&&enableToggleExpansion!=="none";return jsx$1("th",{align:"right",className:cellClassName,id:cellId,children:header.isPlaceholder?null:headerChildren&&header.index===0?jsxs(Flex,{alignItems:"center",children:[headerChildren,jsx$1("div",{children:flexRender(header.column.columnDef.header,header.getContext())})]}):jsxs(Flex,{alignItems:"center",justify:header.index===0&&enableSorting?"between":header.index===0&&!enableSorting?"start":"end",children:[isToggleExpansionEnabled&&jsx$1(ToggleIconButton,{onClick:handleExpandOrCollapse}),isToggleExpansionEnabledLoading&&jsx$1("div",{className:"loading-toggle-icon header-toggle-icon"}),jsxs(Flex,{className:`${header.index===0&&enableSorting&&"header-sort-button pb_th_link"}`,cursor:header.index===0&&enableSorting?"pointer":"default",...header.index===0&&enableSorting&&{htmlOptions:{onClick:event2=>toggleSortButton(event2),onKeyDown:event2=>{if(event2.key==="Enter"){toggleSortButton(event2)}},tabIndex:0}},justify:header.index===0&&enableSorting?"between":"none",paddingLeft:enableSorting?"xxs":"xs",children:[jsx$1("div",{children:flexRender(header.column.columnDef.header,header.getContext())}),header.index===0&&header.column.getCanSort()&&enableSorting&&(loading?jsx$1("div",{className:"loading-toggle-icon"}):jsx$1(SortIconButton,{header:header,sortIcon:sortIcon}))]})]})},`${header.id}-header`)};const TableHeader=({children:children,className:className,dark:dark=false,enableSorting:enableSorting=false,id:id,sortIcon:sortIcon=["arrow-up-short-wide","arrow-down-short-wide"],...props})=>{const{enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,loading:loading,table:table}=useContext(AdvancedTableContext);const classes=classnames(buildCss("pb_advanced_table_header"),globalProps(props),className);return jsx$1(Fragment,{children:jsx$1("thead",{className:classes,id:id,children:table.getHeaderGroups().map((headerGroup=>jsx$1("tr",{children:headerGroup.headers.map((header=>jsx$1(TableHeaderCell,{enableSorting:enableSorting,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,header:header,headerChildren:children,loading:loading,sortIcon:sortIcon},`${header.id}-header`)))},`${headerGroup.id}-headerGroup`)))})})};const CollapsibleTrail=({leftOffset:leftOffset})=>{const style={position:"absolute",left:`${leftOffset}em`,top:0,bottom:0,width:"2px",backgroundColor:"#E4E8F0"};return jsx$1("div",{className:"collapsible-trail",style:style})};const renderCollapsibleTrail=currentDepth=>{const lines=[];for(let i=1;i<=currentDepth;i++){const additionalOffset=i>1?(i-1)*.25:0;const leftOffset=i*1+additionalOffset;lines.push(jsx$1(CollapsibleTrail,{leftOffset:leftOffset},i))}return lines};const SubRowHeaderRow=({collapsibleTrail:collapsibleTrail,enableToggleExpansion:enableToggleExpansion,onClick:onClick,row:row,subRowHeaders:subRowHeaders,table:table})=>{const{inlineRowLoading:inlineRowLoading}=useContext(AdvancedTableContext);const numberOfColumns=table.getAllFlatColumns().length;const rowHasChildren=row.original.children?true:false;const canExpand=inlineRowLoading?rowHasChildren:row.getCanExpand();return jsxs("tr",{className:"custom-row bg-silver",children:[jsxs("td",{className:`custom-row-first-column ${isChrome()?"chrome-styles":""}`,colSpan:1,children:[collapsibleTrail&&row.depth>0&&renderCollapsibleTrail(row.depth),jsx$1("div",{style:{paddingLeft:`${row.depth*1.25}em`},children:jsxs(Flex,{align:"center",columnGap:"xs",children:[enableToggleExpansion==="all"&&canExpand?jsx$1(ToggleIconButton,{onClick:onClick,row:row}):null,jsx$1(Caption,{marginLeft:canExpand?"none":"xs",text:subRowHeaders[row.depth-1]})]})})]}),jsx$1("td",{colSpan:numberOfColumns-1})]})};const LoadingCell=()=>jsx$1("div",{className:"loading-cell"});const TableBody=({className:className,collapsibleTrail:collapsibleTrail=true,dark:dark=false,id:id,subRowHeaders:subRowHeaders,...props})=>{const{columnDefinitions:columnDefinitions,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,inlineRowLoading:inlineRowLoading,loading:loading,table:table}=useContext(AdvancedTableContext);const classes=classnames(buildCss("pb_advanced_table_body"),globalProps(props),className);return jsx$1(Fragment,{children:jsx$1("tbody",{className:classes,id:id,children:table.getRowModel().rows.map((row=>{var _a;const isExpandable=row.getIsExpanded();const isFirstChildofSubrow=row.depth>0&&row.index===0;const rowHasNoChildren=row.original.children&&!row.original.children.length?true:false;const numberOfColumns=table.getAllFlatColumns().length;const isDataLoading=isExpandable&&(inlineRowLoading&&rowHasNoChildren)&&row.depth<((_a=columnDefinitions[0].cellAccessors)==null?void 0:_a.length);const rowBackground=isExpandable&&(!inlineRowLoading&&row.getCanExpand()||inlineRowLoading&&rowHasNoChildren);return jsxs(React__default.Fragment,{children:[isFirstChildofSubrow&&subRowHeaders&&jsx$1(SubRowHeaderRow,{collapsibleTrail:collapsibleTrail,enableToggleExpansion:enableToggleExpansion,onClick:handleExpandOrCollapse,row:row,subRowHeaders:subRowHeaders,table:table}),jsx$1("tr",{className:`${rowBackground?"bg-silver":"bg-white"} ${row.depth>0?`depth-sub-row-${row.depth}`:""}`,id:`${row.index}-${row.id}-${row.depth}-row`,children:row.getVisibleCells().map(((cell,i)=>jsxs("td",{align:"right",className:`${cell.id}-cell position_relative ${isChrome()?"chrome-styles":""}`,children:[collapsibleTrail&&i===0&&row.depth>0&&renderCollapsibleTrail(row.depth),jsx$1("span",{id:`${cell.id}-span`,children:loading?jsx$1(LoadingCell,{}):flexRender(cell.column.columnDef.cell,cell.getContext())})]},`${cell.id}-data`)))}),isDataLoading?jsx$1("tr",{children:jsx$1("td",{colSpan:numberOfColumns,style:{paddingLeft:`${row.depth===0?.5:row.depth*2}em`},children:jsx$1(LoadingInline,{})})},`${row.id}-row`):null]},`${row.index}-${row.id}-${row.depth}-row`)}))})})};const AdvancedTable=props=>{const{aria:aria={},children:children,className:className,columnDefinitions:columnDefinitions,dark:dark=false,data:data={},enableToggleExpansion:enableToggleExpansion="header",expandedControl:expandedControl,htmlOptions:htmlOptions={},id:id,initialLoadingRowsCount:initialLoadingRowsCount=10,inlineRowLoading:inlineRowLoading=false,loading:loading,onRowToggleClick:onRowToggleClick,onToggleExpansionClick:onToggleExpansionClick,sortControl:sortControl,tableData:tableData,tableOptions:tableOptions,tableProps:tableProps,toggleExpansionIcon:toggleExpansionIcon="arrows-from-line"}=props;const[loadingStateRowCount,setLoadingStateRowCount]=useState(initialLoadingRowsCount);const[localExpanded,setLocalExpanded]=useState({});const expanded=expandedControl?expandedControl.value:localExpanded;const setExpanded=expandedControl?expandedControl.onChange:setLocalExpanded;const columnHelper=createColumnHelper();const createCellFunction=cellAccessors=>{const columnCells=({row:row,getValue:getValue})=>{const rowData=row.original;switch(row.depth){case 0:{return jsx$1(CustomCell,{getValue:getValue,onRowToggleClick:onRowToggleClick,row:row})}default:{const depthAccessor=cellAccessors[row.depth-1];const accessorValue=rowData[depthAccessor];return accessorValue?jsx$1(CustomCell,{onRowToggleClick:onRowToggleClick,row:row,value:accessorValue}):"N/A"}}};return columnCells};const columns=columnDefinitions&&columnDefinitions.map((column2=>{const columnStructure={...columnHelper.accessor(column2.accessor,{header:column2.label})};if(column2.cellAccessors){columnStructure.cell=createCellFunction(column2.cellAccessors)}return columnStructure}));const sorting=[{id:columnDefinitions[0].accessor,desc:sortControl&&sortControl.value!==null?!sortControl.value.desc:false}];const expandAndSortState=()=>{if(sortControl){return{state:{expanded:expanded,sorting:sorting}}}else{return{state:{expanded:expanded}}}};const table=useReactTable({data:loading?Array(loadingStateRowCount).fill({}):tableData,columns:columns,onExpandedChange:setExpanded,getSubRows:row=>row.children,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),getSortedRowModel:getSortedRowModel(),enableSortingRemoval:false,sortDescFirst:true,...expandAndSortState(),...tableOptions});const tableRows=table.getRowModel();const updateLoadingStateRowCount=useCallback((()=>{const rowsCount=table.getRowModel().rows.length;if(rowsCount!==loadingStateRowCount&&rowsCount!==0){setLoadingStateRowCount(rowsCount)}}),[tableData,loadingStateRowCount]);useEffect((()=>{if(!loading){updateLoadingStateRowCount()}}),[loading,updateLoadingStateRowCount]);const handleExpandOrCollapse=async row=>{onToggleExpansionClick&&onToggleExpansionClick(row);const expandedState=expanded;const targetParent=row==null?void 0:row.parentId;const updatedRows=await updateExpandAndCollapseState(tableRows,expandedState,targetParent);setExpanded(updatedRows)};const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_advanced_table"),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(AdvancedTableContext.Provider,{value:{columnDefinitions:columnDefinitions,enableToggleExpansion:enableToggleExpansion,expanded:expanded,expandedControl:expandedControl,handleExpandOrCollapse:handleExpandOrCollapse,inlineRowLoading:inlineRowLoading,loading:loading,setExpanded:setExpanded,sortControl:sortControl,table:table,toggleExpansionIcon:toggleExpansionIcon},children:jsx$1(Table,{className:`${loading?"content-loading":""}`,dark:dark,dataTable:true,numberSpacing:"tabular",responsive:"none",...tableProps,children:children?children:jsxs(Fragment,{children:[jsx$1(TableHeader,{}),jsx$1(TableBody,{})]})})})})};AdvancedTable.Header=TableHeader;AdvancedTable.Body=TableBody;const getPlacementProps=(placement,size)=>{let placementMapping={};switch(size){case"xxs":case"xs":placementMapping={"top-right":{top:"xs",right:"xs"},"bottom-left":{bottom:"xs",left:"xs"},"top-left":{top:"xs",left:"xs"},"bottom-right":{bottom:"xs",right:"xs"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"sm":placementMapping={"top-right":{top:"0",right:"xs"},"bottom-left":{bottom:"0",left:"xs"},"top-left":{top:"0",left:"xs"},"bottom-right":{bottom:"0",right:"xs"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"md":case"lg":placementMapping={"top-right":{top:"0",right:"0"},"bottom-left":{bottom:"0",left:"0"},"top-left":{top:"0",left:"0"},"bottom-right":{bottom:"0",right:"0"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"xl":placementMapping={"top-right":{top:{value:"xxs",inset:true},right:{value:"xxs",inset:true}},"bottom-left":{bottom:{value:"xxs",inset:true},left:{value:"xxs",inset:true}},"top-left":{top:{value:"xxs",inset:true},left:{value:"xxs",inset:true}},"bottom-right":{bottom:{value:"xxs",inset:true},right:{value:"xxs",inset:true}},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break}return placementMapping[placement]||{}};const Image=props=>{const{alt:alt="",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,onError:onError=null,rounded:rounded=false,size:size="",transition:transition="fade",url:url=""}=props;const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_image_kit",size?`size_${size}`:null),"lazyload",transition,{rounded:rounded},globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("img",{...ariaProps,...dataProps,...htmlProps,alt:alt,className:classes,"data-src":url,id:id,onError:onError,src:url})};const OnlineStatus=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,status:status="offline"}=props;aria.label=status;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_online_status_kit",status),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id})};const Flex=props=>{const{align:align="none",children:children,className:className,data:data={},inline:inline=false,horizontal:horizontal="left",htmlOptions:htmlOptions={},justify:justify="none",orientation:orientation="row",spacing:spacing2="none",gap:gap="none",rowGap:rowGap="none",columnGap:columnGap="none",reverse:reverse=false,vertical:vertical="top",wrap:wrap=false,alignSelf:alignSelf="none"}=props;const orientationClass=orientation!==void 0?`orientation_${orientation}`:"";const justifyClass=justify!=="none"?`justify_content_${justify}`:`justify_content_${horizontal}`;const alignClass=align!=="none"?`align_items_${align}`:`align_items_${vertical}`;const inlineClass=inline===true?"inline":"";const spacingClass=spacing2!==void 0?`spacing_${spacing2}`:"";const gapClass=gap!=="none"?`gap_${gap}`:"";const rowGapClass=rowGap!=="none"?`rowGap_${rowGap}`:"";const columnGapClass=columnGap!=="none"?`columnGap_${columnGap}`:"";const wrapClass=wrap===true?"wrap":"";const reverseClass=reverse===true?"reverse":"";const alignSelfClass=alignSelf!=="none"?`align_self_${alignSelf}`:"";const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",{className:classnames(buildCss("pb_flex_kit",orientationClass,justifyClass,alignClass,inlineClass,reverseClass,wrapClass,spacingClass,gapClass,rowGapClass,columnGapClass,alignSelfClass),globalProps(props),className),...dataProps,...htmlProps,children:children})};const isValidEmoji=emoji=>{const emojiRegex=new RegExp("^(\\p{Emoji}|\\uFE0F|\\u200D|\\u20E3)+$","u");return emojiRegex.test(emoji)};const flipMap={fa:{horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""},svg:{horizontal:"flip_horizontal",vertical:"flip_vertical",both:"flip_horizontal flip_vertical",none:""}};const pulseMap={fa:"fa-pulse",svg:"pulse"};const spinMap={fa:"fa-spin",svg:"spin"};const rotateMap={fa:{90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},svg:{90:"rotate_90",180:"rotate_180",270:"rotate_270"}};const sizeMap={fa:{lg:"fa-lg",xs:"fa-xs",sm:"fa-sm","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x","":""},svg:{lg:"svg_lg",xs:"svg_xs",sm:"svg_sm","1x":"svg_1x","2x":"svg_2x","3x":"svg_3x","4x":"svg_4x","5x":"svg_5x","6x":"svg_6x","7x":"svg_7x","8x":"svg_8x","9x":"svg_9x","10x":"svg_10x","":""}};const Icon=props=>{const{aria:aria={},border:border=false,className:className,customIcon:customIcon,data:data={},fixedWidth:fixedWidth=true,flip:flip2="none",htmlOptions:htmlOptions={},icon:icon="",id:id,inverse:inverse=false,listItem:listItem=false,pull:pull,pulse:pulse=false,rotation:rotation,size:size,fontStyle:fontStyle="far",spin:spin=false}=props;let iconElement=typeof icon==="object"?icon:null;if(!customIcon&&!iconElement){const PowerIcon=window.PB_ICONS?window.PB_ICONS[icon]:null;if(PowerIcon){iconElement=jsx$1(PowerIcon,{})}}const isFA=!iconElement&&!customIcon;let classes=classnames(!iconElement&&!customIcon?"pb_icon_kit":"",iconElement||customIcon?"pb_custom_icon":fontStyle,iconElement?"svg-inline--fa":"",globalProps(props),className);const transformClasses=classnames(flip2?flipMap[isFA?"fa":"svg"][flip2]:null,pulse?pulseMap[isFA?"fa":"svg"]:null,rotation?rotateMap[isFA?"fa":"svg"][rotation]:null,spin?spinMap[isFA?"fa":"svg"]:null,size?sizeMap[isFA?"fa":"svg"][size]:null,border?isFA?"fa-border":"svg_border":null,fixedWidth?isFA?"fa-fw":"svg_fw":null,inverse?isFA?"fa-inverse":"svg_inverse":null,listItem?isFA?"fa-li":"svg_li":null,pull?isFA?`fa-pull-${pull}`:`pull_${pull}`:null);classes+=` ${transformClasses}`;if(isFA){const faClassList={"fa-border":border,"fa-inverse":inverse,"fa-li":listItem,[`fa-${size}`]:size,[`fa-pull-${pull}`]:pull};faClassList[`fa-${icon}`]=icon;classes+=` ${classnames(faClassList)}`}const classesEmoji=classnames("pb_icon_kit_emoji",globalProps(props),className);aria.label?null:aria.label=`${icon} icon`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const displaySVG=customIcon2=>{if(iconElement||customIcon2)return jsx$1(Fragment,{children:React__default.cloneElement(iconElement||customIcon2,{...dataProps,...htmlProps,className:classes,id:id,width:"auto",height:"auto"})});else if(isValidEmoji(icon))return jsx$1(Fragment,{children:jsx$1("span",{...dataProps,...htmlProps,className:classesEmoji,id:id,children:icon})});else return jsxs(Fragment,{children:[jsx$1("i",{...dataProps,...htmlProps,className:classes,id:id}),jsx$1("span",{...ariaProps,hidden:true})]})};return jsx$1(Fragment,{children:displaySVG(customIcon)})};const Badge=props=>{const{aria:aria={},className:className,closeProps:closeProps={},data:data={},htmlOptions:htmlOptions={},id:id,removeIcon:removeIcon=false,removeOnClick:removeOnClick,rounded:rounded=false,text:text2,variant:variant="neutral"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buildCss("pb_badge_kit",variant==="success"?"success_sm":variant,rounded?"rounded":null),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:css4,id:id,children:jsxs("span",{children:[text2,removeIcon&&jsx$1("span",{onClick:removeOnClick,style:{cursor:"pointer"},...closeProps,children:jsx$1(Icon,{fixedWidth:true,icon:"times"})})]})})};const IconCircle=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},icon:icon,id:id,size:size="md",variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_circle_kit",`size_${size}`,variant),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Icon,{dark:dark,icon:icon})})};const initialState$2={items:[],dragData:{id:"",initialGroup:""},isDragging:"",activeContainer:""};const reducer$1=(state,action)=>{switch(action.type){case"SET_ITEMS":return{...state,items:action.payload};case"SET_DRAG_DATA":return{...state,dragData:action.payload};case"SET_IS_DRAGGING":return{...state,isDragging:action.payload};case"SET_ACTIVE_CONTAINER":return{...state,activeContainer:action.payload};case"CHANGE_CATEGORY":return{...state,items:state.items.map((item=>item.id===action.payload.itemId?{...item,container:action.payload.container}:item))};case"REORDER_ITEMS":{const{dragId:dragId,targetId:targetId}=action.payload;const newItems=[...state.items];const draggedItem=newItems.find((item=>item.id===dragId));const draggedIndex=newItems.indexOf(draggedItem);const targetIndex=newItems.findIndex((item=>item.id===targetId));newItems.splice(draggedIndex,1);newItems.splice(targetIndex,0,draggedItem);return{...state,items:newItems}}default:return state}};const DragContext=createContext({});const DraggableContext=()=>useContext(DragContext);const DraggableProvider=({children:children,initialItems:initialItems,onReorder:onReorder,onDragStart:onDragStart,onDragEnter:onDragEnter,onDragEnd:onDragEnd,onDrop:onDrop,onDragOver:onDragOver})=>{const[state,dispatch]=useReducer(reducer$1,initialState$2);useEffect((()=>{dispatch({type:"SET_ITEMS",payload:initialItems})}),[initialItems]);useEffect((()=>{onReorder(state.items)}),[state.items]);const handleDragStart=(id,container)=>{dispatch({type:"SET_DRAG_DATA",payload:{id:id,initialGroup:container}});dispatch({type:"SET_IS_DRAGGING",payload:id});if(onDragStart)onDragStart(id,container)};const handleDragEnter=(id,container)=>{if(state.dragData.id!==id){dispatch({type:"REORDER_ITEMS",payload:{dragId:state.dragData.id,targetId:id}});dispatch({type:"SET_DRAG_DATA",payload:{id:state.dragData.id,initialGroup:container}})}if(onDragEnter)onDragEnter(id,container)};const handleDragEnd=()=>{dispatch({type:"SET_IS_DRAGGING",payload:""});dispatch({type:"SET_ACTIVE_CONTAINER",payload:""});if(onDragEnd)onDragEnd()};const changeCategory=(itemId,container)=>{dispatch({type:"CHANGE_CATEGORY",payload:{itemId:itemId,container:container}})};const handleDrop=container=>{dispatch({type:"SET_IS_DRAGGING",payload:""});dispatch({type:"SET_ACTIVE_CONTAINER",payload:""});changeCategory(state.dragData.id,container);if(onDrop)onDrop(container)};const handleDragOver=(e2,container)=>{e2.preventDefault();dispatch({type:"SET_ACTIVE_CONTAINER",payload:container});if(onDragOver)onDragOver(e2,container)};const contextValue=useMemo((()=>({items:state.items,dragData:state.dragData,isDragging:state.isDragging,activeContainer:state.activeContainer,handleDragStart:handleDragStart,handleDragEnter:handleDragEnter,handleDragEnd:handleDragEnd,handleDrop:handleDrop,handleDragOver:handleDragOver})),[state]);return jsx$1(DragContext.Provider,{value:contextValue,children:children})};const DraggableContainer=props=>{const{aria:aria={},children:children,className:className,container:container,data:data={},htmlOptions:htmlOptions={},id:id}=props;const{handleDragOver:handleDragOver,handleDrop:handleDrop,activeContainer:activeContainer}=DraggableContext();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable_container"),`${activeContainer===container?"active":""}`,globalProps(props),className);return createElement("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,key:container,onDragOver:e2=>handleDragOver(e2,container),onDrop:()=>handleDrop(container)},children)};const DraggableItem=props=>{const{aria:aria={},children:children,className:className,container:container,data:data={},htmlOptions:htmlOptions={},id:id,dragId:dragId}=props;const{isDragging:isDragging,handleDragStart:handleDragStart,handleDragEnter:handleDragEnter,handleDragEnd:handleDragEnd}=DraggableContext();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable_item"),`${isDragging===dragId?"is_dragging":""}`,globalProps(props),className);return createElement("div",{...ariaProps,...dataProps,...htmlProps,className:classes,draggable:true,id:id,key:dragId,onDragEnd:()=>handleDragEnd(),onDragEnter:()=>handleDragEnter(dragId,container),onDragStart:()=>handleDragStart(dragId,container)},children)};const Draggable=props=>{const{aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable"),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})};Draggable.Container=DraggableContainer;Draggable.Item=DraggableItem;const Header$1=props=>{const{children:children,className:className,headerColor:headerColor="category_1",headerColorStriped:headerColorStriped=false}=props;const headerCSS=buildCss("pb_card_header_kit",`${headerColor}`,headerColorStriped?"striped":"");const headerSpacing=globalProps(props);return jsx$1("div",{className:classnames(headerCSS,headerSpacing,className),children:children})};const Body$2=props=>{const{children:children,className:className}=props;const bodyCSS=buildCss("pb_card_body_kit");const bodySpacing=globalProps(props);return jsx$1("div",{className:classnames(bodyCSS,bodySpacing,className),children:children})};const Card=props=>{const{aria:aria={},background:background="none",borderNone:borderNone=false,borderRadius:borderRadius2="md",children:children,className:className,data:data={},dragId:dragId,dragHandle:dragHandle=true,draggableItem:draggableItem=false,highlight:highlight={},htmlOptions:htmlOptions={},selected:selected=false,tag:tag="div"}=props;const borderCSS=borderNone==true?"border_none":"";const selectedCSS=selected==true?"selected":"deselected";const backgroundCSS=background=="none"?"":`background_${background}`;const cardCss=buildCss("pb_card_kit",selectedCSS,borderCSS,`border_radius_${borderRadius2}`,backgroundCSS,{[`highlight_${highlight.position}`]:highlight.position,[`highlight_${highlight.color}`]:highlight.color});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const cardChildren=React__default.Children.toArray(children);const subComponentTags=tagName=>cardChildren.filter((c2=>lodashExports.get(c2,"type.displayName")===tagName)).map(((child,i)=>{if(React__default.isValidElement(child)){return React__default.cloneElement(child,{key:`${tagName.toLowerCase()}-${i}`})}}));const nonHeaderChildren=cardChildren.filter((child=>lodashExports.get(child,"type.displayName")!=="Header"));const tagOptions=["div","section","footer","header","article","aside","main","nav"];const Tag=tagOptions.includes(tag)?tag:"div";return jsx$1(Fragment,{children:draggableItem?jsx$1(Draggable.Item,{dragId:dragId,children:jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classnames(cardCss,globalProps(props),className),children:[subComponentTags("Header"),dragHandle?jsxs(Flex,{children:[jsx$1("span",{className:"card_draggable_handle",children:jsx$1(Icon,{icon:"grip-dots-vertical",paddingRight:"xs",verticalAlign:"middle"})}),jsx$1("div",{style:{width:"100%"},children:nonHeaderChildren})]}):nonHeaderChildren]})},dragId):jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classnames(cardCss,globalProps(props),className),children:[subComponentTags("Header"),nonHeaderChildren]})})};Card.Header=Header$1;Card.Body=Body$2;const firstTwoInitials=name2=>name2.split(/\s/).map((name22=>name22[0])).join("").substring(0,2);const Avatar=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},name:name2=void 0,componentOverlay:componentOverlay,id:id="",imageAlt:imageAlt="",imageUrl:imageUrl,size:size="md",status:status=null,dark:dark=false}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_avatar_kit",`size_${size}`),globalProps(props),className);const initials=name2&&firstTwoInitials(name2);dataProps["data-initials"]=initials;const[error,setError]=useState(false);const handleError=()=>setError(true);const canShowImage=imageUrl&&!error;return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:componentOverlay?jsxs(Flex,{display:"display_inline_block",position:"relative",children:[jsx$1("div",{className:"avatar_wrapper","data-initials":initials,children:canShowImage&&jsx$1(Image,{alt:imageAlt?imageAlt:name2,onError:handleError,url:imageUrl})}),componentOverlay.component==="badge"&&jsx$1(Card,{borderNone:true,borderRadius:"rounded",padding:"none",position:"absolute",...getPlacementProps(componentOverlay.placement,size),children:jsx$1(Badge,{rounded:true,text:componentOverlay.text,variant:componentOverlay.variant})}),componentOverlay.component==="iconCircle"&&jsx$1(Card,{borderNone:true,borderRadius:"rounded",htmlOptions:{style:{padding:"2px"}},position:"absolute",...getPlacementProps(componentOverlay.placement,size),children:jsx$1(IconCircle,{icon:componentOverlay.icon,size:"xxs",variant:componentOverlay.variant})})]}):jsxs(Fragment,{children:[jsx$1("div",{className:"avatar_wrapper","data-initials":initials,children:canShowImage&&jsx$1(Image,{alt:imageAlt?imageAlt:name2,onError:handleError,url:imageUrl})}),status&&jsx$1(OnlineStatus,{className:`size_${size}`,dark:dark,status:status})]})})};const breakpoints={xs:"(max-width: 575px)",sm:"(min-width: 576px) and (max-width: 767px)",md:"(min-width: 768px) and (max-width: 991px)",lg:"(min-width: 992px) and (max-width: 1199px)",xl:"(min-width: 1200px)"};const getResponsiveValue=prop=>{if(typeof prop==="string"){return prop}for(const[bp,value]of Object.entries(prop||{})){if(bp!=="default"&&window.matchMedia(breakpoints[bp]).matches){return value}}return(prop==null?void 0:prop.default)||void 0};const Background=props=>{const{alt:alt=void 0,aria:aria={},backgroundColor:backgroundColor="light",backgroundPosition:backgroundPosition="",backgroundRepeat:backgroundRepeat="initial",backgroundSize:backgroundSize="cover",children:children,className:className,customColor:customColor,data:data={},htmlOptions:htmlOptions={},id:id,imageUrl:imageUrl="",tag:tag="div",transition:transition=""}=props;const[responsiveProps,setResponsiveProps]=useState({backgroundSize:getResponsiveValue(backgroundSize),backgroundPosition:getResponsiveValue(backgroundPosition),backgroundRepeat:getResponsiveValue(backgroundRepeat),backgroundColor:getResponsiveValue(backgroundColor),imageUrl:getResponsiveValue(imageUrl)});useEffect((()=>{const updateResponsiveProps=()=>{setResponsiveProps({backgroundSize:getResponsiveValue(props.backgroundSize),backgroundPosition:getResponsiveValue(props.backgroundPosition),backgroundRepeat:getResponsiveValue(props.backgroundRepeat),backgroundColor:getResponsiveValue(props.backgroundColor),imageUrl:getResponsiveValue(props.imageUrl)})};window.addEventListener("resize",updateResponsiveProps);return()=>window.removeEventListener("resize",updateResponsiveProps)}),[props]);const{backgroundColor:resBackgroundColor,backgroundPosition:resBackgroundPosition,backgroundRepeat:resBackgroundRepeat,backgroundSize:resBackgroundSize,imageUrl:resImageUrl}=responsiveProps;const classes=classnames(buildCss("pb_background_kit"),"lazyload",globalProps(props),transition,{[`pb_background_color_${resBackgroundColor}`]:resBackgroundColor&&!customColor,[`pb_background_custom_color`]:!!customColor},className);const backgroundStyle={backgroundColor:customColor||void 0,...resImageUrl!==""?{backgroundImage:resImageUrl?`url(${resImageUrl})`:void 0,backgroundRepeat:resBackgroundRepeat||void 0,backgroundPosition:resBackgroundPosition||void 0,backgroundSize:resBackgroundSize||void 0}:{}};const Tag=`${tag}`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,alt:alt,className:classes,id:id,style:backgroundStyle,children:children})};var highchartsReact_min={exports:{}};(function(module,exports){!function(t2,e2){module.exports=e2(React__default)}("undefined"!=typeof self?self:commonjsGlobal,(function(t2){return function(t3){function e2(n2){if(r2[n2])return r2[n2].exports;var o2=r2[n2]={i:n2,l:false,exports:{}};return t3[n2].call(o2.exports,o2,o2.exports,e2),o2.l=true,o2.exports}var r2={};return e2.m=t3,e2.c=r2,e2.d=function(t4,r3,n2){e2.o(t4,r3)||Object.defineProperty(t4,r3,{configurable:false,enumerable:true,get:n2})},e2.n=function(t4){var r3=t4&&t4.__esModule?function(){return t4.default}:function(){return t4};return e2.d(r3,"a",r3),r3},e2.o=function(t4,e3){return Object.prototype.hasOwnProperty.call(t4,e3)},e2.p="",e2(e2.s=0)}([function(t3,e2,r2){function n2(){return n2=Object.assign?Object.assign.bind():function(t4){for(var e3=1;e3<arguments.length;e3++){var r3=arguments[e3];for(var n3 in r3)Object.prototype.hasOwnProperty.call(r3,n3)&&(t4[n3]=r3[n3])}return t4},n2.apply(this,arguments)}function o2(t4){return a2(t4)||i(t4)||u2(t4)||c2()}function c2(){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 u2(t4,e3){if(t4){if("string"==typeof t4)return f2(t4,e3);var r3=Object.prototype.toString.call(t4).slice(8,-1);return"Object"===r3&&t4.constructor&&(r3=t4.constructor.name),"Map"===r3||"Set"===r3?Array.from(t4):"Arguments"===r3||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r3)?f2(t4,e3):void 0}}function i(t4){if("undefined"!=typeof Symbol&&null!=t4[Symbol.iterator]||null!=t4["@@iterator"])return Array.from(t4)}function a2(t4){if(Array.isArray(t4))return f2(t4)}function f2(t4,e3){(null==e3||e3>t4.length)&&(e3=t4.length);for(var r3=0,n3=new Array(e3);r3<e3;r3++)n3[r3]=t4[r3];return n3}function s2(t4){"@babel/helpers - typeof";return(s2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t5){return typeof t5}:function(t5){return t5&&"function"==typeof Symbol&&t5.constructor===Symbol&&t5!==Symbol.prototype?"symbol":typeof t5})(t4)}Object.defineProperty(e2,"__esModule",{value:true}),r2.d(e2,"HighchartsReact",(function(){return d2}));var p2=r2(1),l2=r2.n(p2),y2="undefined"!=typeof window?p2.useLayoutEffect:p2.useEffect,d2=Object(p2.memo)(Object(p2.forwardRef)((function(t4,e3){var r3=Object(p2.useRef)(),c3=Object(p2.useRef)(),u3=Object(p2.useRef)(t4.constructorType),i2=Object(p2.useRef)(t4.highcharts);return y2((function(){function e4(){var e5=t4.highcharts||"object"===("undefined"==typeof window?"undefined":s2(window))&&window.Highcharts,n4=t4.constructorType||"chart";e5?e5[n4]?t4.options?c3.current=e5[n4](r3.current,t4.options,t4.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(c3.current){if(false!==t4.allowChartUpdate)if(t4.constructorType!==u3.current||t4.highcharts!==i2.current)u3.current=t4.constructorType,i2.current=t4.highcharts,e4();else if(!t4.immutable&&c3.current){var n3;(n3=c3.current).update.apply(n3,[t4.options].concat(o2(t4.updateArgs||[true,true])))}else e4()}else e4()}),[t4.options,t4.allowChartUpdate,t4.updateArgs,t4.containerProps,t4.highcharts,t4.constructorType]),y2((function(){return function(){c3.current&&(c3.current.destroy(),c3.current=null)}}),[]),Object(p2.useImperativeHandle)(e3,(function(){return{get chart(){return c3.current},container:r3}}),[]),l2.a.createElement("div",n2({},t4.containerProps,{ref:r3}))})));e2.default=d2},function(e2,r2){e2.exports=t2}])}))})(highchartsReact_min);var highchartsReact_minExports=highchartsReact_min.exports;const HighchartsReact=getDefaultExportFromCjs(highchartsReact_minExports);var highcharts={exports:{}};(function(module){(function(aa,K){module.exports?(K["default"]=K,module.exports=aa.document?K(aa):K):(aa.Highcharts&&aa.Highcharts.error(16,true),aa.Highcharts=K(aa))})("undefined"!==typeof window?window:commonjsGlobal,(function(aa){function K(a2,A2,g3,F2){a2.hasOwnProperty(A2)||(a2[A2]=F2.apply(null,g3),"function"===typeof CustomEvent&&aa.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:A2,module:a2[A2]}})))}var g2={};K(g2,"Core/Globals.js",[],(function(){var a2;(function(a3){a3.SVG_NS="http://www.w3.org/2000/svg";a3.product="Highcharts";a3.version="10.3.3";a3.win="undefined"!==typeof aa?aa:{};a3.doc=a3.win.document;a3.svg=a3.doc&&a3.doc.createElementNS&&!!a3.doc.createElementNS(a3.SVG_NS,"svg").createSVGRect;a3.userAgent=a3.win.navigator&&a3.win.navigator.userAgent||"";a3.isChrome=-1!==a3.userAgent.indexOf("Chrome");a3.isFirefox=-1!==a3.userAgent.indexOf("Firefox");a3.isMS=/(edge|msie|trident)/i.test(a3.userAgent)&&!a3.win.opera;a3.isSafari=!a3.isChrome&&-1!==a3.userAgent.indexOf("Safari");a3.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a3.userAgent);a3.isWebKit=-1!==a3.userAgent.indexOf("AppleWebKit");a3.deg2rad=2*Math.PI/360;a3.hasBidiBug=a3.isFirefox&&4>parseInt(a3.userAgent.split("Firefox/")[1],10);a3.hasTouch=!!a3.win.TouchEvent;a3.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a3.noop=function(){};a3.supportsPassiveEvents=function(){var g3=false;if(!a3.isMS){var A2=Object.defineProperty({},"passive",{get:function(){g3=true}});a3.win.addEventListener&&a3.win.removeEventListener&&(a3.win.addEventListener("testPassive",a3.noop,A2),a3.win.removeEventListener("testPassive",a3.noop,A2))}return g3}();a3.charts=[];a3.dateFormats={};a3.seriesTypes={};a3.symbolSizes={};a3.chartCount=0})(a2||(a2={}));return a2}));K(g2,"Core/Utilities.js",[g2["Core/Globals.js"]],(function(a2){function g3(b3,c3,n3,J){var z2=c3?"Highcharts error":"Highcharts warning";32===b3&&(b3=""+z2+": Deprecated member");var q=l2(b3),u3=q?""+z2+" #"+b3+": www.highcharts.com/errors/"+b3+"/":b3.toString();if("undefined"!==typeof J){var N="";q&&(u3+="?");E2(J,(function(b4,z3){N+="\n - ".concat(z3,": ").concat(b4);q&&(u3+=encodeURI(z3)+"="+encodeURI(b4))}));u3+=N}y2(a2,"displayError",{chart:n3,code:b3,message:u3,params:J},(function(){if(c3)throw Error(u3);f2.console&&-1===g3.messages.indexOf(u3)&&console.warn(u3)}));g3.messages.push(u3)}function x2(b3,f3){var z2={};E2(b3,(function(c3,q){if(H2(b3[q],true)&&!b3.nodeType&&f3[q])c3=x2(b3[q],f3[q]),Object.keys(c3).length&&(z2[q]=c3);else if(H2(b3[q])||b3[q]!==f3[q]||q in b3&&!(q in f3))z2[q]=b3[q]}));return z2}function F2(b3,f3){return parseInt(b3,f3||10)}function C2(b3){return"string"===typeof b3}function B(b3){b3=Object.prototype.toString.call(b3);return"[object Array]"===b3||"[object Array Iterator]"===b3}function H2(b3,f3){return!!b3&&"object"===typeof b3&&(!f3||!B(b3))}function t2(b3){return H2(b3)&&"number"===typeof b3.nodeType}function r2(b3){var f3=b3&&b3.constructor;return!(!H2(b3,true)||t2(b3)||!f3||!f3.name||"Object"===f3.name)}function l2(b3){return"number"===typeof b3&&!isNaN(b3)&&Infinity>b3&&-Infinity<b3}function e2(b3){return"undefined"!==typeof b3&&null!==b3}function d2(b3,f3,c3){var z2=C2(f3)&&!e2(c3),q,n3=function(f4,c4){e2(f4)?b3.setAttribute(c4,f4):z2?(q=b3.getAttribute(c4))||"class"!==c4||(q=b3.getAttribute(c4+"Name")):b3.removeAttribute(c4)};C2(f3)?n3(c3,f3):E2(f3,n3);return q}function h2(b3,f3){var c3;b3||(b3={});for(c3 in f3)b3[c3]=f3[c3];return b3}function m2(){for(var b3=arguments,f3=b3.length,c3=0;c3<f3;c3++){var J=b3[c3];if("undefined"!==typeof J&&null!==J)return J}}function k2(b3,f3){a2.isMS&&!a2.svg&&f3&&e2(f3.opacity)&&(f3.filter="alpha(opacity=".concat(100*f3.opacity,")"));h2(b3.style,f3)}function p2(b3){return Math.pow(10,Math.floor(Math.log(b3)/Math.LN10))}function D2(b3,f3){return 1e14<b3?b3:parseFloat(b3.toPrecision(f3||14))}function I(b3,c3,n3){var z2=a2.getStyle||I;if("width"===c3)return c3=Math.min(b3.offsetWidth,b3.scrollWidth),n3=b3.getBoundingClientRect&&b3.getBoundingClientRect().width,n3<c3&&n3>=c3-1&&(c3=Math.floor(n3)),Math.max(0,c3-(z2(b3,"padding-left",true)||0)-(z2(b3,"padding-right",true)||0));if("height"===c3)return Math.max(0,Math.min(b3.offsetHeight,b3.scrollHeight)-(z2(b3,"padding-top",true)||0)-(z2(b3,"padding-bottom",true)||0));f2.getComputedStyle||g3(27,true);if(b3=f2.getComputedStyle(b3,void 0)){var q=b3.getPropertyValue(c3);m2(n3,"opacity"!==c3)&&(q=F2(q))}return q}function E2(b3,f3,c3){for(var z2 in b3)Object.hasOwnProperty.call(b3,z2)&&f3.call(c3||b3[z2],b3[z2],z2,b3)}function L2(b3,f3,c3){function z2(f4,c4){var v2=b3.removeEventListener||a2.removeEventListenerPolyfill;v2&&v2.call(b3,f4,c4,false)}function q(c4){var v2;if(b3.nodeName){if(f3){var q2={};q2[f3]=true}else q2=c4;E2(q2,(function(b4,f4){if(c4[f4])for(v2=c4[f4].length;v2--;)z2(f4,c4[f4][v2].fn)}))}}var n3="function"===typeof b3&&b3.prototype||b3;if(Object.hasOwnProperty.call(n3,"hcEvents")){var u3=n3.hcEvents;f3?(n3=u3[f3]||[],c3?(u3[f3]=n3.filter((function(b4){return c3!==b4.fn})),z2(f3,c3)):(q(u3),u3[f3]=[])):(q(u3),delete n3.hcEvents)}}function y2(b3,f3,c3,J){c3=c3||{};if(w2.createEvent&&(b3.dispatchEvent||b3.fireEvent&&b3!==a2)){var z2=w2.createEvent("Events");z2.initEvent(f3,true,true);c3=h2(z2,c3);b3.dispatchEvent?b3.dispatchEvent(c3):b3.fireEvent(f3,c3)}else if(b3.hcEvents){c3.target||h2(c3,{preventDefault:function(){c3.defaultPrevented=true},target:b3,type:f3});z2=[];for(var q=b3,n3=false;q.hcEvents;)Object.hasOwnProperty.call(q,"hcEvents")&&q.hcEvents[f3]&&(z2.length&&(n3=true),z2.unshift.apply(z2,q.hcEvents[f3])),q=Object.getPrototypeOf(q);n3&&z2.sort((function(b4,f4){return b4.order-f4.order}));z2.forEach((function(f4){false===f4.fn.call(b3,c3)&&c3.preventDefault()}))}J&&!c3.defaultPrevented&&J.call(b3,c3)}var c2=a2.charts,w2=a2.doc,f2=a2.win;(g3||(g3={})).messages=[];Math.easeInOutSine=function(b3){return-.5*(Math.cos(Math.PI*b3)-1)};var n2=Array.prototype.find?function(b3,f3){return b3.find(f3)}:function(b3,f3){var c3,q=b3.length;for(c3=0;c3<q;c3++)if(f3(b3[c3],c3))return b3[c3]};E2({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(b3,f3){a2[f3]=function(c3){var q;g3(32,false,void 0,(q={},q["Highcharts.".concat(f3)]="use Array.".concat(b3),q));return Array.prototype[b3].apply(c3,[].slice.call(arguments,1))}}));var b2,u2=function(){var f3=Math.random().toString(36).substring(2,9)+"-",c3=0;return function(){return"highcharts-"+(b2?"":f3)+c3++}}();f2.jQuery&&(f2.jQuery.fn.highcharts=function(){var b3=[].slice.call(arguments);if(this[0])return b3[0]?(new(a2[C2(b3[0])?b3.shift():"Chart"])(this[0],b3[0],b3[1]),this):c2[d2(this[0],"data-highcharts-chart")]});n2={addEvent:function(b3,f3,c3,J){void 0===J&&(J={});var q="function"===typeof b3&&b3.prototype||b3;Object.hasOwnProperty.call(q,"hcEvents")||(q.hcEvents={});q=q.hcEvents;a2.Point&&b3 instanceof a2.Point&&b3.series&&b3.series.chart&&(b3.series.chart.runTrackerClick=true);var z2=b3.addEventListener||a2.addEventListenerPolyfill;z2&&z2.call(b3,f3,c3,a2.supportsPassiveEvents?{passive:void 0===J.passive?-1!==f3.indexOf("touch"):J.passive,capture:false}:false);q[f3]||(q[f3]=[]);q[f3].push({fn:c3,order:"number"===typeof J.order?J.order:Infinity});q[f3].sort((function(b4,f4){return b4.order-f4.order}));return function(){L2(b3,f3,c3)}},arrayMax:function(b3){for(var f3=b3.length,c3=b3[0];f3--;)b3[f3]>c3&&(c3=b3[f3]);return c3},arrayMin:function(b3){for(var f3=b3.length,c3=b3[0];f3--;)b3[f3]<c3&&(c3=b3[f3]);return c3},attr:d2,clamp:function(b3,f3,c3){return b3>f3?b3<c3?b3:c3:f3},cleanRecursively:x2,clearTimeout:function(b3){e2(b3)&&clearTimeout(b3)},correctFloat:D2,createElement:function(b3,f3,c3,J,n3){b3=w2.createElement(b3);f3&&h2(b3,f3);n3&&k2(b3,{padding:"0",border:"none",margin:"0"});c3&&k2(b3,c3);J&&J.appendChild(b3);return b3},css:k2,defined:e2,destroyObjectProperties:function(b3,f3){E2(b3,(function(c3,q){c3&&c3!==f3&&c3.destroy&&c3.destroy();delete b3[q]}))},discardElement:function(b3){b3&&b3.parentElement&&b3.parentElement.removeChild(b3)},erase:function(b3,f3){for(var c3=b3.length;c3--;)if(b3[c3]===f3){b3.splice(c3,1);break}},error:g3,extend:h2,extendClass:function(b3,f3){var c3=function(){};c3.prototype=new b3;h2(c3.prototype,f3);return c3},find:n2,fireEvent:y2,getMagnitude:p2,getNestedProperty:function(b3,c3){for(b3=b3.split(".");b3.length&&e2(c3);){var q=b3.shift();if("undefined"===typeof q||"__proto__"===q)return;c3=c3[q];if(!e2(c3)||"function"===typeof c3||"number"===typeof c3.nodeType||c3===f2)return}return c3},getStyle:I,inArray:function(b3,c3,f3){g3(32,false,void 0,{"Highcharts.inArray":"use Array.indexOf"});return c3.indexOf(b3,f3)},isArray:B,isClass:r2,isDOMElement:t2,isFunction:function(b3){return"function"===typeof b3},isNumber:l2,isObject:H2,isString:C2,keys:function(b3){g3(32,false,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b3)},merge:function(){var b3,c3=arguments,f3={},J=function(b4,c4){"object"!==typeof b4&&(b4={});E2(c4,(function(f4,v2){"__proto__"!==v2&&"constructor"!==v2&&(!H2(f4,true)||r2(f4)||t2(f4)?b4[v2]=c4[v2]:b4[v2]=J(b4[v2]||{},f4))}));return b4};true===c3[0]&&(f3=c3[1],c3=Array.prototype.slice.call(c3,2));var n3=c3.length;for(b3=0;b3<n3;b3++)f3=J(f3,c3[b3]);return f3},normalizeTickInterval:function(b3,c3,f3,J,n3){var q=b3;f3=m2(f3,p2(b3));var u3=b3/f3;c3||(c3=n3?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],false===J&&(1===f3?c3=c3.filter((function(b4){return 0===b4%1})):.1>=f3&&(c3=[1/f3])));for(J=0;J<c3.length&&!(q=c3[J],n3&&q*f3>=b3||!n3&&u3<=(c3[J]+(c3[J+1]||c3[J]))/2);J++);return q=D2(q*f3,-Math.round(Math.log(.001)/Math.LN10))},objectEach:E2,offset:function(b3){var c3=w2.documentElement;b3=b3.parentElement||b3.parentNode?b3.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b3.top+(f2.pageYOffset||c3.scrollTop)-(c3.clientTop||0),left:b3.left+(f2.pageXOffset||c3.scrollLeft)-(c3.clientLeft||0),width:b3.width,height:b3.height}},pad:function(b3,c3,f3){return Array((c3||2)+1-String(b3).replace("-","").length).join(f3||"0")+b3},pick:m2,pInt:F2,relativeLength:function(b3,c3,f3){return/%$/.test(b3)?c3*parseFloat(b3)/100+(f3||0):parseFloat(b3)},removeEvent:L2,splat:function(b3){return B(b3)?b3:[b3]},stableSort:function(b3,c3){var f3=b3.length,J,n3;for(n3=0;n3<f3;n3++)b3[n3].safeI=n3;b3.sort((function(b4,f4){J=c3(b4,f4);return 0===J?b4.safeI-f4.safeI:J}));for(n3=0;n3<f3;n3++)delete b3[n3].safeI},syncTimeout:function(b3,c3,f3){if(0<c3)return setTimeout(b3,c3,f3);b3.call(0,f3);return-1},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:u2,useSerialIds:function(c3){return b2=m2(c3,b2)},wrap:function(b3,c3,f3){var n3=b3[c3];b3[c3]=function(){var b4=arguments,c4=this;return f3.apply(this,[function(){return n3.apply(c4,arguments.length?arguments:b4)}].concat([].slice.call(arguments)))}}};return n2}));K(g2,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:false,panning:{enabled:false,type:"x"},styledMode:false,borderRadius:0,colorCount:10,allowMutatingData:true,defaultSeriesType:"line",ignoreHiddenSeries:true,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:false,zooming:{singleTouch:false,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}));K(g2,"Core/Color/Color.js",[g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=g3.isNumber,F2=g3.merge,C2=g3.pInt;g3=function(){function g4(A3){this.rgba=[NaN,NaN,NaN,NaN];this.input=A3;var t2=a2.Color;if(t2&&t2!==g4)return new t2(A3);if(!(this instanceof g4))return new g4(A3);this.init(A3)}g4.parse=function(a3){return a3?new g4(a3):g4.None};g4.prototype.init=function(a3){var t2;if("object"===typeof a3&&"undefined"!==typeof a3.stops)this.stops=a3.stops.map((function(d2){return new g4(d2[1])}));else if("string"===typeof a3){this.input=a3=g4.names[a3.toLowerCase()]||a3;if("#"===a3.charAt(0)){var r2=a3.length;var l2=parseInt(a3.substr(1),16);7===r2?t2=[(l2&16711680)>>16,(l2&65280)>>8,l2&255,1]:4===r2&&(t2=[(l2&3840)>>4|(l2&3840)>>8,(l2&240)>>4|l2&240,(l2&15)<<4|l2&15,1])}if(!t2)for(l2=g4.parsers.length;l2--&&!t2;){var e2=g4.parsers[l2];(r2=e2.regex.exec(a3))&&(t2=e2.parse(r2))}}t2&&(this.rgba=t2)};g4.prototype.get=function(a3){var t2=this.input,r2=this.rgba;if("object"===typeof t2&&"undefined"!==typeof this.stops){var l2=F2(t2);l2.stops=[].slice.call(l2.stops);this.stops.forEach((function(e2,d2){l2.stops[d2]=[l2.stops[d2][0],e2.get(a3)]}));return l2}return r2&&A2(r2[0])?"rgb"===a3||!a3&&1===r2[3]?"rgb("+r2[0]+","+r2[1]+","+r2[2]+")":"a"===a3?"".concat(r2[3]):"rgba("+r2.join(",")+")":t2};g4.prototype.brighten=function(a3){var t2=this.rgba;if(this.stops)this.stops.forEach((function(l2){l2.brighten(a3)}));else if(A2(a3)&&0!==a3)for(var r2=0;3>r2;r2++)t2[r2]+=C2(255*a3),0>t2[r2]&&(t2[r2]=0),255<t2[r2]&&(t2[r2]=255);return this};g4.prototype.setOpacity=function(a3){this.rgba[3]=a3;return this};g4.prototype.tweenTo=function(a3,t2){var r2=this.rgba,l2=a3.rgba;if(!A2(r2[0])||!A2(l2[0]))return a3.input||"none";a3=1!==l2[3]||1!==r2[3];return(a3?"rgba(":"rgb(")+Math.round(l2[0]+(r2[0]-l2[0])*(1-t2))+","+Math.round(l2[1]+(r2[1]-l2[1])*(1-t2))+","+Math.round(l2[2]+(r2[2]-l2[2])*(1-t2))+(a3?","+(l2[3]+(r2[3]-l2[3])*(1-t2)):"")+")"};g4.names={white:"#ffffff",black:"#000000"};g4.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a3){return[C2(a3[1]),C2(a3[2]),C2(a3[3]),parseFloat(a3[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a3){return[C2(a3[1]),C2(a3[2]),C2(a3[3]),1]}}];g4.None=new g4("");return g4}();return g3}));K(g2,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}));K(g2,"Core/Time.js",[g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=a2.win,F2=g3.defined,C2=g3.error,B=g3.extend,H2=g3.isObject,t2=g3.merge,r2=g3.objectEach,l2=g3.pad,e2=g3.pick,d2=g3.splat,h2=g3.timeUnits,m2=a2.isSafari&&A2.Intl&&A2.Intl.DateTimeFormat.prototype.formatRange,k2=a2.isSafari&&A2.Intl&&!A2.Intl.DateTimeFormat.prototype.formatRange;g3=function(){function p2(d3){this.options={};this.variableTimezone=this.useUTC=false;this.Date=A2.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(d3)}p2.prototype.get=function(d3,e3){if(this.variableTimezone||this.timezoneOffset){var h3=e3.getTime(),k3=h3-this.getTimezoneOffset(e3);e3.setTime(k3);d3=e3["getUTC"+d3]();e3.setTime(h3);return d3}return this.useUTC?e3["getUTC"+d3]():e3["get"+d3]()};p2.prototype.set=function(d3,e3,h3){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===d3||"Seconds"===d3||"Minutes"===d3&&0===this.getTimezoneOffset(e3)%36e5)return e3["setUTC"+d3](h3);var k3=this.getTimezoneOffset(e3);k3=e3.getTime()-k3;e3.setTime(k3);e3["setUTC"+d3](h3);d3=this.getTimezoneOffset(e3);k3=e3.getTime()+d3;return e3.setTime(k3)}return this.useUTC||m2&&"FullYear"===d3?e3["setUTC"+d3](h3):e3["set"+d3](h3)};p2.prototype.update=function(d3){void 0===d3&&(d3={});var h3=e2(d3.useUTC,true);this.options=d3=t2(true,this.options,d3);this.Date=d3.Date||A2.Date||Date;this.timezoneOffset=(this.useUTC=h3)&&d3.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=h3&&!(!d3.getTimezoneOffset&&!d3.timezone)};p2.prototype.makeTime=function(d3,h3,m3,p3,y2,c2){if(this.useUTC){var w2=this.Date.UTC.apply(0,arguments);var f2=this.getTimezoneOffset(w2);w2+=f2;var n2=this.getTimezoneOffset(w2);f2!==n2?w2+=n2-f2:f2-36e5!==this.getTimezoneOffset(w2-36e5)||k2||(w2-=36e5)}else w2=new this.Date(d3,h3,e2(m3,1),e2(p3,0),e2(y2,0),e2(c2,0)).getTime();return w2};p2.prototype.timezoneOffsetFunction=function(){var d3=this,e3=this.options,h3=e3.getTimezoneOffset,k3=e3.moment||A2.moment;if(!this.useUTC)return function(d4){return 6e4*new Date(d4.toString()).getTimezoneOffset()};if(e3.timezone){if(k3)return function(d4){return 6e4*-k3.tz(d4,e3.timezone).utcOffset()};C2(25)}return this.useUTC&&h3?function(d4){return 6e4*h3(d4.valueOf())}:function(){return 6e4*(d3.timezoneOffset||0)}};p2.prototype.dateFormat=function(d3,h3,k3){if(!F2(h3)||isNaN(h3))return a2.defaultOptions.lang&&a2.defaultOptions.lang.invalidDate||"";d3=e2(d3,"%Y-%m-%d %H:%M:%S");var m3=this,p3=new this.Date(h3),c2=this.get("Hours",p3),w2=this.get("Day",p3),f2=this.get("Date",p3),n2=this.get("Month",p3),b2=this.get("FullYear",p3),u2=a2.defaultOptions.lang,z2=u2&&u2.weekdays,q=u2&&u2.shortWeekdays;p3=B({a:q?q[w2]:z2[w2].substr(0,3),A:z2[w2],d:l2(f2),e:l2(f2,2," "),w:w2,b:u2.shortMonths[n2],B:u2.months[n2],m:l2(n2+1),o:n2+1,y:b2.toString().substr(2,2),Y:b2,H:l2(c2),k:c2,I:l2(c2%12||12),l:c2%12||12,M:l2(this.get("Minutes",p3)),p:12>c2?"AM":"PM",P:12>c2?"am":"pm",S:l2(p3.getSeconds()),L:l2(Math.floor(h3%1e3),3)},a2.dateFormats);r2(p3,(function(b3,c3){for(;-1!==d3.indexOf("%"+c3);)d3=d3.replace("%"+c3,"function"===typeof b3?b3.call(m3,h3):b3)}));return k3?d3.substr(0,1).toUpperCase()+d3.substr(1):d3};p2.prototype.resolveDTLFormat=function(e3){return H2(e3,true)?e3:(e3=d2(e3),{main:e3[0],from:e3[1],to:e3[2]})};p2.prototype.getTimeTicks=function(d3,k3,p3,m3){var y2=this,c2=[],w2={},f2=new y2.Date(k3),n2=d3.unitRange,b2=d3.count||1,u2;m3=e2(m3,1);if(F2(k3)){y2.set("Milliseconds",f2,n2>=h2.second?0:b2*Math.floor(y2.get("Milliseconds",f2)/b2));n2>=h2.second&&y2.set("Seconds",f2,n2>=h2.minute?0:b2*Math.floor(y2.get("Seconds",f2)/b2));n2>=h2.minute&&y2.set("Minutes",f2,n2>=h2.hour?0:b2*Math.floor(y2.get("Minutes",f2)/b2));n2>=h2.hour&&y2.set("Hours",f2,n2>=h2.day?0:b2*Math.floor(y2.get("Hours",f2)/b2));n2>=h2.day&&y2.set("Date",f2,n2>=h2.month?1:Math.max(1,b2*Math.floor(y2.get("Date",f2)/b2)));if(n2>=h2.month){y2.set("Month",f2,n2>=h2.year?0:b2*Math.floor(y2.get("Month",f2)/b2));var z2=y2.get("FullYear",f2)}n2>=h2.year&&y2.set("FullYear",f2,z2-z2%b2);n2===h2.week&&(z2=y2.get("Day",f2),y2.set("Date",f2,y2.get("Date",f2)-z2+m3+(z2<m3?-7:0)));z2=y2.get("FullYear",f2);m3=y2.get("Month",f2);var q=y2.get("Date",f2),N=y2.get("Hours",f2);k3=f2.getTime();!y2.variableTimezone&&y2.useUTC||!F2(p3)||(u2=p3-k3>4*h2.month||y2.getTimezoneOffset(k3)!==y2.getTimezoneOffset(p3));k3=f2.getTime();for(f2=1;k3<p3;)c2.push(k3),k3=n2===h2.year?y2.makeTime(z2+f2*b2,0):n2===h2.month?y2.makeTime(z2,m3+f2*b2):!u2||n2!==h2.day&&n2!==h2.week?u2&&n2===h2.hour&&1<b2?y2.makeTime(z2,m3,q,N+f2*b2):k3+n2*b2:y2.makeTime(z2,m3,q+f2*b2*(n2===h2.day?1:7)),f2++;c2.push(k3);n2<=h2.hour&&1e4>c2.length&&c2.forEach((function(b3){0===b3%18e5&&"000000000"===y2.dateFormat("%H%M%S%L",b3)&&(w2[b3]="day")}))}c2.info=B(d3,{higherRanks:w2,totalRange:n2*b2});return c2};p2.prototype.getDateFormat=function(d3,e3,k3,p3){var m3=this.dateFormat("%m-%d %H:%M:%S.%L",e3),c2={millisecond:15,second:12,minute:9,hour:6,day:3},w2="millisecond";for(f2 in h2){if(d3===h2.week&&+this.dateFormat("%w",e3)===k3&&"00:00:00.000"===m3.substr(6)){var f2="week";break}if(h2[f2]>d3){f2=w2;break}if(c2[f2]&&m3.substr(c2[f2])!=="01-01 00:00:00.000".substr(c2[f2]))break;"week"!==f2&&(w2=f2)}return this.resolveDTLFormat(p3[f2]).main};return p2}();return g3}));K(g2,"Core/Defaults.js",[g2["Core/Chart/ChartDefaults.js"],g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Color/Palettes.js"],g2["Core/Time.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B){g3=g3.parse;var A2=B.merge,t2={colors:F2.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:true},chart:a2,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:true,align:"center",alignColumns:true,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:false,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:true,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:true,animation:x2.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:false,snap:x2.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:g3("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:true,stickOnContact:false,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:false},credits:{enabled:true,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};t2.chart.styledMode=false;var r2=new C2(A2(t2.global,t2.time));a2={defaultOptions:t2,defaultTime:r2,getOptions:function(){return t2},setOptions:function(l2){A2(true,t2,l2);if(l2.time||l2.global)x2.time?x2.time.update(A2(t2.global,t2.time,l2.global,l2.time)):x2.time=r2;return t2}};return a2}));K(g2,"Core/Animation/Fx.js",[g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=a2.parse,C2=g3.win,B=x2.isNumber,H2=x2.objectEach;return function(){function a3(a4,l2,e2){this.pos=NaN;this.options=l2;this.elem=a4;this.prop=e2}a3.prototype.dSetter=function(){var a4=this.paths,l2=a4&&a4[0];a4=a4&&a4[1];var e2=this.now||0,d2=[];if(1!==e2&&l2&&a4)if(l2.length===a4.length&&1>e2)for(var h2=0;h2<a4.length;h2++){for(var m2=l2[h2],k2=a4[h2],p2=[],D2=0;D2<k2.length;D2++){var I=m2[D2],E2=k2[D2];B(I)&&B(E2)&&("A"!==k2[0]||4!==D2&&5!==D2)?p2[D2]=I+e2*(E2-I):p2[D2]=E2}d2.push(p2)}else d2=a4;else d2=this.toD||[];this.elem.attr("d",d2,void 0,true)};a3.prototype.update=function(){var a4=this.elem,l2=this.prop,e2=this.now,d2=this.options.step;if(this[l2+"Setter"])this[l2+"Setter"]();else a4.attr?a4.element&&a4.attr(l2,e2,null,true):a4.style[l2]=e2+this.unit;d2&&d2.call(a4,e2,this)};a3.prototype.run=function(r2,l2,e2){var d2=this,h2=d2.options,m2=function(e3){return m2.stopped?false:d2.step(e3)},k2=C2.requestAnimationFrame||function(d3){setTimeout(d3,13)},p2=function(){for(var d3=0;d3<a3.timers.length;d3++)a3.timers[d3]()||a3.timers.splice(d3--,1);a3.timers.length&&k2(p2)};r2!==l2||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=r2,this.end=l2,this.unit=e2,this.now=this.start,this.pos=0,m2.elem=this.elem,m2.prop=this.prop,m2()&&1===a3.timers.push(m2)&&k2(p2)):(delete h2.curAnim[this.prop],h2.complete&&0===Object.keys(h2.curAnim).length&&h2.complete.call(this.elem))};a3.prototype.step=function(a4){var l2=+new Date,e2=this.options,d2=this.elem,h2=e2.complete,m2=e2.duration,k2=e2.curAnim;if(d2.attr&&!d2.element)a4=false;else if(a4||l2>=m2+this.startTime){this.now=this.end;this.pos=1;this.update();var p2=k2[this.prop]=true;H2(k2,(function(d3){true!==d3&&(p2=false)}));p2&&h2&&h2.call(d2);a4=false}else this.pos=e2.easing((l2-this.startTime)/m2),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a4=true;return a4};a3.prototype.initPath=function(a4,l2,e2){function d2(d3,c2){for(;d3.length<L2;){var e3=d3[0],f2=c2[L2-d3.length];f2&&"M"===e3[0]&&(d3[0]="C"===f2[0]?["C",e3[1],e3[2],e3[1],e3[2],e3[1],e3[2]]:["L",e3[1],e3[2]]);d3.unshift(e3);p2&&(e3=d3.pop(),d3.push(d3[d3.length-1],e3))}}function h2(d3,c2){for(;d3.length<L2;)if(c2=d3[Math.floor(d3.length/D2)-1].slice(),"C"===c2[0]&&(c2[1]=c2[5],c2[2]=c2[6]),p2){var e3=d3[Math.floor(d3.length/D2)].slice();d3.splice(d3.length/2,0,c2,e3)}else d3.push(c2)}var m2=a4.startX,k2=a4.endX;e2=e2.slice();var p2=a4.isArea,D2=p2?2:1;l2=l2&&l2.slice();if(!l2)return[e2,e2];if(m2&&k2&&k2.length){for(a4=0;a4<m2.length;a4++)if(m2[a4]===k2[0]){var I=a4;break}else if(m2[0]===k2[k2.length-m2.length+a4]){I=a4;var E2=true;break}else if(m2[m2.length-1]===k2[k2.length-m2.length+a4]){I=m2.length-a4;break}"undefined"===typeof I&&(l2=[])}if(l2.length&&B(I)){var L2=e2.length+I*D2;E2?(d2(l2,e2),h2(e2,l2)):(d2(e2,l2),h2(l2,e2))}return[l2,e2]};a3.prototype.fillSetter=function(){a3.prototype.strokeSetter.apply(this,arguments)};a3.prototype.strokeSetter=function(){this.elem.attr(this.prop,A2(this.start).tweenTo(A2(this.end),this.pos),void 0,true)};a3.timers=[];return a3}()}));K(g2,"Core/Animation/AnimationUtilities.js",[g2["Core/Animation/Fx.js"],g2["Core/Utilities.js"]],(function(a2,g3){function A2(d3){return r2(d3)?l2({duration:500,defer:0},d3):{duration:d3?500:0,defer:0}}function F2(d3,e3){for(var k2=a2.timers.length;k2--;)a2.timers[k2].elem!==d3||e3&&e3!==a2.timers[k2].prop||(a2.timers[k2].stopped=true)}var C2=g3.defined,B=g3.getStyle,H2=g3.isArray,t2=g3.isNumber,r2=g3.isObject,l2=g3.merge,e2=g3.objectEach,d2=g3.pick;return{animate:function(d3,m2,k2){var p2,h2="",I,E2;if(!r2(k2)){var g4=arguments;k2={duration:g4[2],easing:g4[3],complete:g4[4]}}t2(k2.duration)||(k2.duration=400);k2.easing="function"===typeof k2.easing?k2.easing:Math[k2.easing]||Math.easeInOutSine;k2.curAnim=l2(m2);e2(m2,(function(e3,c2){F2(d3,c2);E2=new a2(d3,k2,c2);I=void 0;"d"===c2&&H2(m2.d)?(E2.paths=E2.initPath(d3,d3.pathArray,m2.d),E2.toD=m2.d,p2=0,I=1):d3.attr?p2=d3.attr(c2):(p2=parseFloat(B(d3,c2))||0,"opacity"!==c2&&(h2="px"));I||(I=e3);"string"===typeof I&&I.match("px")&&(I=I.replace(/px/g,""));E2.run(p2,I,h2)}))},animObject:A2,getDeferredAnimation:function(d3,e3,k2){var p2=A2(e3),h2=0,m2=0;(k2?[k2]:d3.series).forEach((function(d4){d4=A2(d4.options.animation);h2=e3&&C2(e3.defer)?p2.defer:Math.max(h2,d4.duration+d4.defer);m2=Math.min(p2.duration,d4.duration)}));d3.renderer.forExport&&(h2=0);return{defer:Math.max(0,h2-m2),duration:Math.min(h2,m2)}},setAnimation:function(e3,m2){m2.renderer.globalAnimation=d2(e3,m2.options.chart.animation,true)},stop:F2}}));K(g2,"Core/Renderer/HTML/AST.js",[g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=a2.SVG_NS,F2=g3.attr,C2=g3.createElement,B=g3.css,H2=g3.error,t2=g3.isFunction,r2=g3.isString,l2=g3.objectEach,e2=g3.splat,d2=(g3=a2.win.trustedTypes)&&t2(g3.createPolicy)&&g3.createPolicy("highcharts",{createHTML:function(d3){return d3}}),h2=d2?d2.createHTML(""):"";try{var m2=!!(new DOMParser).parseFromString(h2,"text/html")}catch(k2){m2=false}t2=function(){function k2(d3){this.nodes="string"===typeof d3?this.parseMarkup(d3):d3}k2.filterUserAttributes=function(d3){l2(d3,(function(e3,h3){var m3=true;-1===k2.allowedAttributes.indexOf(h3)&&(m3=false);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(h3)&&(m3=r2(e3)&&k2.allowedReferences.some((function(d4){return 0===e3.indexOf(d4)})));m3||(H2(33,false,void 0,{"Invalid attribute in config":"".concat(h3)}),delete d3[h3]);r2(e3)&&d3[h3]&&(d3[h3]=e3.replace(/</g,"&lt;"))}));return d3};k2.parseStyle=function(d3){return d3.split(";").reduce((function(d4,e3){e3=e3.split(":").map((function(d5){return d5.trim()}));var k3=e3.shift();k3&&e3.length&&(d4[k3.replace(/-([a-z])/g,(function(d5){return d5[1].toUpperCase()}))]=e3.join(":"));return d4}),{})};k2.setElementHTML=function(d3,e3){d3.innerHTML=k2.emptyHTML;e3&&new k2(e3).addToDOM(d3)};k2.prototype.addToDOM=function(d3){function h3(d4,m3){var p2;e2(d4).forEach((function(d5){var c2=d5.tagName,e3=d5.textContent?a2.doc.createTextNode(d5.textContent):void 0,f2=k2.bypassHTMLFiltering;if(c2)if("#text"===c2)var n2=e3;else if(-1!==k2.allowedTags.indexOf(c2)||f2){c2=a2.doc.createElementNS("svg"===c2?A2:m3.namespaceURI||A2,c2);var b2=d5.attributes||{};l2(d5,(function(c3,f3){"tagName"!==f3&&"attributes"!==f3&&"children"!==f3&&"style"!==f3&&"textContent"!==f3&&(b2[f3]=c3)}));F2(c2,f2?b2:k2.filterUserAttributes(b2));d5.style&&B(c2,d5.style);e3&&c2.appendChild(e3);h3(d5.children||[],c2);n2=c2}else H2(33,false,void 0,{"Invalid tagName in config":c2});n2&&m3.appendChild(n2);p2=n2}));return p2}return h3(this.nodes,d3)};k2.prototype.parseMarkup=function(e3){var h3=[];e3=e3.trim().replace(/ style=(["'])/g," data-style=$1");if(m2)e3=(new DOMParser).parseFromString(d2?d2.createHTML(e3):e3,"text/html");else{var p2=C2("div");p2.innerHTML=e3;e3={body:p2}}var a3=function(d3,e4){var c2=d3.nodeName.toLowerCase(),h4={tagName:c2};"#text"===c2&&(h4.textContent=d3.textContent||"");if(c2=d3.attributes){var f2={};[].forEach.call(c2,(function(b2){"data-style"===b2.name?h4.style=k2.parseStyle(b2.value):f2[b2.name]=b2.value}));h4.attributes=f2}if(d3.childNodes.length){var n2=[];[].forEach.call(d3.childNodes,(function(b2){a3(b2,n2)}));n2.length&&(h4.children=n2)}e4.push(h4)};[].forEach.call(e3.body.childNodes,(function(d3){return a3(d3,h3)}));return h3};k2.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" ");k2.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k2.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" ");k2.emptyHTML=h2;k2.bypassHTMLFiltering=false;return k2}();return t2}));K(g2,"Core/FormatUtilities.js",[g2["Core/Defaults.js"],g2["Core/Utilities.js"]],(function(a2,g3){function A2(a3,e2,d2,h2){a3=+a3||0;e2=+e2;var m2=F2.lang,k2=(a3.toString().split(".")[1]||"").split("e")[0].length,p2=a3.toString().split("e"),l2=e2;if(-1===e2)e2=Math.min(k2,20);else if(!H2(e2))e2=2;else if(e2&&p2[1]&&0>p2[1]){var g4=e2+ +p2[1];0<=g4?(p2[0]=(+p2[0]).toExponential(g4).split("e")[0],e2=g4):(p2[0]=p2[0].split(".")[0]||0,a3=20>e2?(p2[0]*Math.pow(10,p2[1])).toFixed(e2):0,p2[1]=0)}g4=(Math.abs(p2[1]?p2[0]:a3)+Math.pow(10,-Math.max(e2,k2)-1)).toFixed(e2);k2=String(r2(g4));var E2=3<k2.length?k2.length%3:0;d2=t2(d2,m2.decimalPoint);h2=t2(h2,m2.thousandsSep);a3=(0>a3?"-":"")+(E2?k2.substr(0,E2)+h2:"");a3=0>+p2[1]&&!l2?"0":a3+k2.substr(E2).replace(/(\d{3})(?=\d)/g,"$1"+h2);e2&&(a3+=d2+g4.slice(-e2));p2[1]&&0!==+a3&&(a3+="e"+p2[1]);return a3}var F2=a2.defaultOptions,C2=a2.defaultTime,B=g3.getNestedProperty,H2=g3.isNumber,t2=g3.pick,r2=g3.pInt;return{dateFormat:function(a3,e2,d2){return C2.dateFormat(a3,e2,d2)},format:function(a3,e2,d2){var h2="{",m2=false,k2=/f$/,p2=/\.([0-9])/,l2=F2.lang,g4=d2&&d2.time||C2;d2=d2&&d2.numberFormatter||A2;for(var E2=[];a3;){var t3=a3.indexOf(h2);if(-1===t3)break;var y2=a3.slice(0,t3);if(m2){y2=y2.split(":");h2=B(y2.shift()||"",e2);if(y2.length&&"number"===typeof h2)if(y2=y2.join(":"),k2.test(y2)){var c2=parseInt((y2.match(p2)||["","-1"])[1],10);null!==h2&&(h2=d2(h2,c2,l2.decimalPoint,-1<y2.indexOf(",")?l2.thousandsSep:""))}else h2=g4.dateFormat(y2,h2);E2.push(h2)}else E2.push(y2);a3=a3.slice(t3+1);h2=(m2=!m2)?"}":"{"}E2.push(a3);return E2.join("")},numberFormat:A2}}));K(g2,"Core/Renderer/RendererUtilities.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.clamp,x2=a2.pick,F2=a2.stableSort,C2;(function(a3){function A2(a4,r2,l2){var e2=a4,d2=e2.reducedLen||r2,h2=function(d3,e3){return(e3.rank||0)-(d3.rank||0)},m2=function(d3,e3){return d3.target-e3.target},k2,p2=true,D2=[],I=0;for(k2=a4.length;k2--;)I+=a4[k2].size;if(I>d2){F2(a4,h2);for(I=k2=0;I<=d2;)I+=a4[k2].size,k2++;D2=a4.splice(k2-1,a4.length)}F2(a4,m2);for(a4=a4.map((function(d3){return{size:d3.size,targets:[d3.target],align:x2(d3.align,.5)}}));p2;){for(k2=a4.length;k2--;)d2=a4[k2],h2=(Math.min.apply(0,d2.targets)+Math.max.apply(0,d2.targets))/2,d2.pos=g3(h2-d2.size*d2.align,0,r2-d2.size);k2=a4.length;for(p2=false;k2--;)0<k2&&a4[k2-1].pos+a4[k2-1].size>a4[k2].pos&&(a4[k2-1].size+=a4[k2].size,a4[k2-1].targets=a4[k2-1].targets.concat(a4[k2].targets),a4[k2-1].align=.5,a4[k2-1].pos+a4[k2-1].size>r2&&(a4[k2-1].pos=r2-a4[k2-1].size),a4.splice(k2,1),p2=true)}e2.push.apply(e2,D2);k2=0;a4.some((function(d3){var h3=0;return(d3.targets||[]).some((function(){e2[k2].pos=d3.pos+h3;if("undefined"!==typeof l2&&Math.abs(e2[k2].pos-e2[k2].target)>l2)return e2.slice(0,k2+1).forEach((function(d4){return delete d4.pos})),e2.reducedLen=(e2.reducedLen||r2)-.1*r2,e2.reducedLen>.1*r2&&A2(e2,r2,l2),true;h3+=e2[k2].size;k2++;return false}))}));F2(e2,m2);return e2}a3.distribute=A2})(C2||(C2={}));return C2}));K(g2,"Core/Renderer/SVG/SVGElement.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=a2.animate,B=a2.animObject,H2=a2.stop,t2=x2.deg2rad,r2=x2.doc,l2=x2.svg,e2=x2.SVG_NS,d2=x2.win,h2=F2.addEvent,m2=F2.attr,k2=F2.createElement,p2=F2.css,D2=F2.defined,I=F2.erase,E2=F2.extend,L2=F2.fireEvent,y2=F2.isArray,c2=F2.isFunction,w2=F2.isString,f2=F2.merge,n2=F2.objectEach,b2=F2.pick,u2=F2.pInt,z2=F2.syncTimeout,q=F2.uniqueKey;a2=function(){function a3(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=e2;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a3.prototype._defaultGetter=function(c3){c3=b2(this[c3+"Value"],this[c3],this.element?this.element.getAttribute(c3):null,0);/^[\-0-9\.]+$/.test(c3)&&(c3=parseFloat(c3));return c3};a3.prototype._defaultSetter=function(b3,c3,f3){f3.setAttribute(c3,b3)};a3.prototype.add=function(b3){var c3=this.renderer,f3=this.element;b3&&(this.parentGroup=b3);"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c3.buildText(this);this.added=true;if(!b3||b3.handleZ||this.zIndex)var d3=this.zIndexSetter();d3||(b3?b3.element:c3.box).appendChild(f3);if(this.onAdd)this.onAdd();return this};a3.prototype.addClass=function(b3,c3){var f3=c3?"":this.attr("class")||"";b3=(b3||"").split(/ /g).reduce((function(b4,c4){-1===f3.indexOf(c4)&&b4.push(c4);return b4}),f3?[f3]:[]).join(" ");b3!==f3&&this.attr("class",b3);return this};a3.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=false)};a3.prototype.align=function(c3,f3,d3){var n3={},e3=this.renderer,v2=e3.alignedObjects,q2,J,u3;if(c3){if(this.alignOptions=c3,this.alignByTranslate=f3,!d3||w2(d3))this.alignTo=q2=d3||"renderer",I(v2,this),v2.push(this),d3=void 0}else c3=this.alignOptions,f3=this.alignByTranslate,q2=this.alignTo;d3=b2(d3,e3[q2],"scrollablePlotBox"===q2?e3.plotBox:void 0,e3);q2=c3.align;var a4=c3.verticalAlign;e3=(d3.x||0)+(c3.x||0);v2=(d3.y||0)+(c3.y||0);"right"===q2?J=1:"center"===q2&&(J=2);J&&(e3+=(d3.width-(c3.width||0))/J);n3[f3?"translateX":"x"]=Math.round(e3);"bottom"===a4?u3=1:"middle"===a4&&(u3=2);u3&&(v2+=(d3.height-(c3.height||0))/u3);n3[f3?"translateY":"y"]=Math.round(v2);this[this.placed?"animate":"attr"](n3);this.placed=true;this.alignAttr=n3;return this};a3.prototype.alignSetter=function(b3){var c3={left:"start",center:"middle",right:"end"};c3[b3]&&(this.alignValue=b3,this.element.setAttribute("text-anchor",c3[b3]))};a3.prototype.animate=function(c3,f3,d3){var e3=this,q2=B(b2(f3,this.renderer.globalAnimation,true));f3=q2.defer;b2(r2.hidden,r2.msHidden,r2.webkitHidden,false)&&(q2.duration=0);0!==q2.duration?(d3&&(q2.complete=d3),z2((function(){e3.element&&A2(e3,c3,q2)}),f3)):(this.attr(c3,void 0,d3||q2.complete),n2(c3,(function(b3,c4){q2.step&&q2.step.call(this,b3,{prop:c4,pos:1,elem:this})}),this));return this};a3.prototype.applyTextOutline=function(b3){var c3=this.element;-1!==b3.indexOf("contrast")&&(b3=b3.replace(/contrast/g,this.renderer.getContrast(c3.style.fill)));var f3=b3.split(" ");b3=f3[f3.length-1];if((f3=f3[0])&&"none"!==f3&&x2.svg){this.fakeTS=true;f3=f3.replace(/(^[\d\.]+)(.*?)$/g,(function(b4,c4,f4){return 2*Number(c4)+f4}));this.removeTextOutline();var d3=r2.createElementNS(e2,"tspan");m2(d3,{class:"highcharts-text-outline",fill:b3,stroke:b3,"stroke-width":f3,"stroke-linejoin":"round"});b3=c3.querySelector("textPath")||c3;[].forEach.call(b3.childNodes,(function(b4){var c4=b4.cloneNode(true);c4.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(b5){return c4.removeAttribute(b5)}));d3.appendChild(c4)}));var n3=0;[].forEach.call(b3.querySelectorAll("text tspan"),(function(b4){n3+=Number(b4.getAttribute("dy"))}));f3=r2.createElementNS(e2,"tspan");f3.textContent="​";m2(f3,{x:Number(c3.getAttribute("x")),dy:-n3});d3.appendChild(f3);b3.insertBefore(d3,b3.firstChild)}};a3.prototype.attr=function(b3,c3,f3,d3){var e3=this.element,v2=this.symbolCustomAttribs,q2,u3=this,J,a4;if("string"===typeof b3&&"undefined"!==typeof c3){var G=b3;b3={};b3[G]=c3}"string"===typeof b3?u3=(this[b3+"Getter"]||this._defaultGetter).call(this,b3,e3):(n2(b3,(function(c4,f4){J=false;d3||H2(this,f4);this.symbolName&&-1!==v2.indexOf(f4)&&(q2||(this.symbolAttr(b3),q2=true),J=true);!this.rotation||"x"!==f4&&"y"!==f4||(this.doTransform=true);J||(a4=this[f4+"Setter"]||this._defaultSetter,a4.call(this,c4,f4,e3),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f4)&&this.updateShadows(f4,c4,a4))}),this),this.afterSetters());f3&&f3.call(this);return u3};a3.prototype.clip=function(b3){return this.attr("clip-path",b3?"url("+this.renderer.url+"#"+b3.id+")":"none")};a3.prototype.crisp=function(b3,c3){c3=c3||b3.strokeWidth||0;var f3=Math.round(c3)%2/2;b3.x=Math.floor(b3.x||this.x||0)+f3;b3.y=Math.floor(b3.y||this.y||0)+f3;b3.width=Math.floor((b3.width||this.width||0)-2*f3);b3.height=Math.floor((b3.height||this.height||0)-2*f3);D2(b3.strokeWidth)&&(b3.strokeWidth=c3);return b3};a3.prototype.complexColor=function(b3,c3,d3){var e3=this.renderer,u3,v2,a4,J,h3,z3,G,k3,M,w3,m3=[],p3;L2(this.renderer,"complexColor",{args:arguments},(function(){b3.radialGradient?v2="radialGradient":b3.linearGradient&&(v2="linearGradient");if(v2){a4=b3[v2];h3=e3.gradients;z3=b3.stops;M=d3.radialReference;y2(a4)&&(b3[v2]=a4={x1:a4[0],y1:a4[1],x2:a4[2],y2:a4[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===v2&&M&&!D2(a4.gradientUnits)&&(J=a4,a4=f2(a4,e3.getRadialAttr(M,J),{gradientUnits:"userSpaceOnUse"}));n2(a4,(function(b4,c4){"id"!==c4&&m3.push(c4,b4)}));n2(z3,(function(b4){m3.push(b4)}));m3=m3.join(",");if(h3[m3])w3=h3[m3].attr("id");else{a4.id=w3=q();var U=h3[m3]=e3.createElement(v2).attr(a4).add(e3.defs);U.radAttr=J;U.stops=[];z3.forEach((function(b4){0===b4[1].indexOf("rgba")?(u3=g3.parse(b4[1]),G=u3.get("rgb"),k3=u3.get("a")):(G=b4[1],k3=1);b4=e3.createElement("stop").attr({offset:b4[0],"stop-color":G,"stop-opacity":k3}).add(U);U.stops.push(b4)}))}p3="url("+e3.url+"#"+w3+")";d3.setAttribute(c3,p3);d3.gradient=m3;b3.toString=function(){return p3}}}))};a3.prototype.css=function(b3){var c3=this.styles,d3={},e3=this.element,q2=!c3;b3.color&&(b3.fill=b3.color);c3&&n2(b3,(function(b4,f3){c3&&c3[f3]!==b4&&(d3[f3]=b4,q2=true)}));if(q2){c3&&(b3=E2(c3,d3));if(null===b3.width||"auto"===b3.width)delete this.textWidth;else if("text"===e3.nodeName.toLowerCase()&&b3.width)var v2=this.textWidth=u2(b3.width);this.styles=b3;v2&&!l2&&this.renderer.forExport&&delete b3.width;var a4=f2(b3);e3.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(b4){return a4&&delete a4[b4]}));p2(e3,a4);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b3.textOutline&&this.applyTextOutline(b3.textOutline))}return this};a3.prototype.dashstyleSetter=function(c3){var f3=this["stroke-width"];"inherit"===f3&&(f3=1);if(c3=c3&&c3.toLowerCase()){var d3=c3.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(c3=d3.length;c3--;)d3[c3]=""+u2(d3[c3])*b2(f3,NaN);c3=d3.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c3)}};a3.prototype.destroy=function(){var b3=this,c3=b3.element||{},f3=b3.renderer,d3=c3.ownerSVGElement,e3=f3.isSVG&&"SPAN"===c3.nodeName&&b3.parentGroup||void 0;c3.onclick=c3.onmouseout=c3.onmouseover=c3.onmousemove=c3.point=null;H2(b3);if(b3.clipPath&&d3){var v2=b3.clipPath;[].forEach.call(d3.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(b4){-1<b4.getAttribute("clip-path").indexOf(v2.element.id)&&b4.removeAttribute("clip-path")}));b3.clipPath=v2.destroy()}if(b3.stops){for(d3=0;d3<b3.stops.length;d3++)b3.stops[d3].destroy();b3.stops.length=0;b3.stops=void 0}b3.safeRemoveChild(c3);for(f3.styledMode||b3.destroyShadows();e3&&e3.div&&0===e3.div.childNodes.length;)c3=e3.parentGroup,b3.safeRemoveChild(e3.div),delete e3.div,e3=c3;b3.alignTo&&I(f3.alignedObjects,b3);n2(b3,(function(c4,f4){b3[f4]&&b3[f4].parentGroup===b3&&b3[f4].destroy&&b3[f4].destroy();delete b3[f4]}))};a3.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(b3){this.safeRemoveChild(b3)}),this);this.shadows=void 0};a3.prototype.dSetter=function(b3,c3,f3){y2(b3)&&("string"===typeof b3[0]&&(b3=this.renderer.pathToSegments(b3)),this.pathArray=b3,b3=b3.reduce((function(b4,c4,f4){return c4&&c4.join?(f4?b4+" ":"")+c4.join(" "):(c4||"").toString()}),""));/(NaN| {2}|^$)/.test(b3)&&(b3="M 0 0");this[c3]!==b3&&(f3.setAttribute(c3,b3),this[c3]=b3)};a3.prototype.fadeOut=function(c3){var f3=this;f3.animate({opacity:0},{duration:b2(c3,150),complete:function(){f3.hide()}})};a3.prototype.fillSetter=function(b3,c3,f3){"string"===typeof b3?f3.setAttribute(c3,b3):b3&&this.complexColor(b3,c3,f3)};a3.prototype.getBBox=function(f3,d3){var n3=this.alignValue,e3=this.element,q2=this.renderer,v2=this.styles,u3=this.textStr,h3=q2.cache,z3=q2.cacheKeys,k3=e3.namespaceURI===this.SVG_NS;d3=b2(d3,this.rotation,0);var G=q2.styledMode?e3&&a3.prototype.getStyle.call(e3,"font-size"):v2&&v2.fontSize,m3;if(D2(u3)){var M=u3.toString();-1===M.indexOf("<")&&(M=M.replace(/[0-9]/g,"0"));M+=["",d3,G,this.textWidth,n3,v2&&v2.textOverflow,v2&&v2.fontWeight].join()}M&&!f3&&(m3=h3[M]);if(!m3){if(k3||q2.forExport){try{var w3=this.fakeTS&&function(b3){var c3=e3.querySelector(".highcharts-text-outline");c3&&p2(c3,{display:b3})};c2(w3)&&w3("none");m3=e3.getBBox?E2({},e3.getBBox()):{width:e3.offsetWidth,height:e3.offsetHeight,x:0,y:0};c2(w3)&&w3("")}catch(V2){}if(!m3||0>m3.width)m3={x:0,y:0,width:0,height:0}}else m3=this.htmlGetBBox();if(q2.isSVG&&(q2=m3.width,f3=m3.height,k3&&(m3.height=f3={"11px,17":14,"13px,20":16}[""+(G||"")+",".concat(Math.round(f3))]||f3),d3)){k3=Number(e3.getAttribute("y")||0)-m3.y;n3={right:1,center:.5}[n3||0]||0;v2=d3*t2;G=(d3-90)*t2;var J=q2*Math.cos(v2);d3=q2*Math.sin(v2);w3=Math.cos(G);v2=Math.sin(G);q2=m3.x+n3*(q2-J)+k3*w3;G=q2+J;w3=G-f3*w3;J=w3-J;k3=m3.y+k3-n3*d3+k3*v2;n3=k3+d3;f3=n3-f3*v2;d3=f3-d3;m3.x=Math.min(q2,G,w3,J);m3.y=Math.min(k3,n3,f3,d3);m3.width=Math.max(q2,G,w3,J)-m3.x;m3.height=Math.max(k3,n3,f3,d3)-m3.y}if(M&&(""===u3||0<m3.height)){for(;250<z3.length;)delete h3[z3.shift()];h3[M]||z3.push(M);h3[M]=m3}}return m3};a3.prototype.getStyle=function(b3){return d2.getComputedStyle(this.element||this,"").getPropertyValue(b3)};a3.prototype.hasClass=function(b3){return-1!==(""+this.attr("class")).split(" ").indexOf(b3)};a3.prototype.hide=function(){return this.attr({visibility:"hidden"})};a3.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a3.prototype.init=function(b3,c3){this.element="span"===c3?k2(c3):r2.createElementNS(this.SVG_NS,c3);this.renderer=b3;L2(this,"afterInit")};a3.prototype.on=function(b3,c3){var f3=this.onEvents;if(f3[b3])f3[b3]();f3[b3]=h2(this.element,b3,c3);return this};a3.prototype.opacitySetter=function(b3,c3,f3){this.opacity=b3=Number(Number(b3).toFixed(3));f3.setAttribute(c3,b3)};a3.prototype.removeClass=function(b3){return this.attr("class",(""+this.attr("class")).replace(w2(b3)?new RegExp("(^| )".concat(b3,"( |$)")):b3," ").replace(/ +/g," ").trim())};a3.prototype.removeTextOutline=function(){var b3=this.element.querySelector("tspan.highcharts-text-outline");b3&&this.safeRemoveChild(b3)};a3.prototype.safeRemoveChild=function(b3){var c3=b3.parentNode;c3&&c3.removeChild(b3)};a3.prototype.setRadialReference=function(b3){var c3=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b3;c3&&c3.radAttr&&c3.animate(this.renderer.getRadialAttr(b3,c3.radAttr));return this};a3.prototype.setTextPath=function(b3,c3){var d3=this;c3=f2(true,{enabled:true,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},c3);var n3=this.renderer.url,e3=this.text||this,v2=e3.textPath,u3=c3.attributes,a4=c3.enabled;b3=b3||v2&&v2.path;v2&&v2.undo();b3&&a4?(c3=h2(e3,"afterModifyTree",(function(c4){if(b3&&a4){var f3=b3.attr("id");f3||b3.attr("id",f3=q());var v3={x:0,y:0};D2(u3.dx)&&(v3.dx=u3.dx,delete u3.dx);D2(u3.dy)&&(v3.dy=u3.dy,delete u3.dy);e3.attr(v3);d3.attr({transform:""});d3.box&&(d3.box=d3.box.destroy());v3=c4.nodes.slice(0);c4.nodes.length=0;c4.nodes[0]={tagName:"textPath",attributes:E2(u3,{"text-anchor":u3.textAnchor,href:""+n3+"#".concat(f3)}),children:v3}}})),e3.textPath={path:b3,undo:c3}):(e3.attr({dx:0,dy:0}),delete e3.textPath);this.added&&(e3.textCache="",this.renderer.buildText(e3));return this};a3.prototype.shadow=function(b3,c3,f3){var d3=[],e3=this.element,v2=this.oldShadowOptions,q2=this.parentGroup,u3=q2&&90===q2.rotation;q2={color:"#000000",offsetX:u3?-1:1,offsetY:u3?-1:1,opacity:.15,width:3};var a4=false,h3;true===b3?h3=q2:"object"===typeof b3&&(h3=E2(q2,b3));h3&&(h3&&v2&&n2(h3,(function(b4,c4){b4!==v2[c4]&&(a4=true)})),a4&&this.destroyShadows(),this.oldShadowOptions=h3);if(!h3)this.destroyShadows();else if(!this.shadows){q2=h3.opacity/h3.width;var G=u3?"translate(".concat(h3.offsetY,", ").concat(h3.offsetX,")"):"translate(".concat(h3.offsetX,", ").concat(h3.offsetY,")");for(u3=1;u3<=h3.width;u3++){var k3=e3.cloneNode(false);var z3=2*h3.width+1-2*u3;m2(k3,{stroke:b3.color||"#000000","stroke-opacity":q2*u3,"stroke-width":z3,transform:G,fill:"none"});k3.setAttribute("class",(k3.getAttribute("class")||"")+" highcharts-shadow");f3&&(m2(k3,"height",Math.max(m2(k3,"height")-z3,0)),k3.cutHeight=z3);c3?c3.element.appendChild(k3):e3.parentNode&&e3.parentNode.insertBefore(k3,e3);d3.push(k3)}this.shadows=d3}return this};a3.prototype.show=function(b3){void 0===b3&&(b3=true);return this.attr({visibility:b3?"inherit":"visible"})};a3.prototype["stroke-widthSetter"]=function(b3,c3,f3){this[c3]=b3;f3.setAttribute(c3,b3)};a3.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var b3=this.getStyle("stroke-width"),c3=0;if(b3.indexOf("px")===b3.length-2)c3=u2(b3);else if(""!==b3){var f3=r2.createElementNS(e2,"rect");m2(f3,{width:b3,"stroke-width":0});this.element.parentNode.appendChild(f3);c3=f3.getBBox().width;f3.parentNode.removeChild(f3)}return c3};a3.prototype.symbolAttr=function(c3){var f3=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(d3){f3[d3]=b2(c3[d3],f3[d3])}));f3.attr({d:f3.renderer.symbols[f3.symbolName](f3.x,f3.y,f3.width,f3.height,f3)})};a3.prototype.textSetter=function(b3){b3!==this.textStr&&(delete this.textPxLength,this.textStr=b3,this.added&&this.renderer.buildText(this))};a3.prototype.titleSetter=function(c3){var f3=this.element,d3=f3.getElementsByTagName("title")[0]||r2.createElementNS(this.SVG_NS,"title");f3.insertBefore?f3.insertBefore(d3,f3.firstChild):f3.appendChild(d3);d3.textContent=String(b2(c3,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};a3.prototype.toFront=function(){var b3=this.element;b3.parentNode.appendChild(b3);return this};a3.prototype.translate=function(b3,c3){return this.attr({translateX:b3,translateY:c3})};a3.prototype.updateShadows=function(b3,c3,f3){var d3=this.shadows;if(d3)for(var e3=d3.length;e3--;)f3.call(d3[e3],"height"===b3?Math.max(c3-(d3[e3].cutHeight||0),0):"d"===b3?this.d:c3,b3,d3[e3])};a3.prototype.updateTransform=function(){var c3=this.element,f3=this.matrix,d3=this.rotation;d3=void 0===d3?0:d3;var e3=this.scaleX,n3=this.scaleY,v2=this.translateX,q2=this.translateY;v2=["translate("+(void 0===v2?0:v2)+","+(void 0===q2?0:q2)+")"];D2(f3)&&v2.push("matrix("+f3.join(",")+")");d3&&v2.push("rotate("+d3+" "+b2(this.rotationOriginX,c3.getAttribute("x"),0)+" "+b2(this.rotationOriginY,c3.getAttribute("y")||0)+")");(D2(e3)||D2(n3))&&v2.push("scale("+b2(e3,1)+" "+b2(n3,1)+")");v2.length&&!(this.text||this).textPath&&c3.setAttribute("transform",v2.join(" "))};a3.prototype.visibilitySetter=function(b3,c3,f3){"inherit"===b3?f3.removeAttribute(c3):this[c3]!==b3&&f3.setAttribute(c3,b3);this[c3]=b3};a3.prototype.xGetter=function(b3){"circle"===this.element.nodeName&&("x"===b3?b3="cx":"y"===b3&&(b3="cy"));return this._defaultGetter(b3)};a3.prototype.zIndexSetter=function(b3,c3){var f3=this.renderer,d3=this.parentGroup,e3=(d3||f3).element||f3.box,v2=this.element;f3=e3===f3.box;var n3=false;var q2=this.added;var a4;D2(b3)?(v2.setAttribute("data-z-index",b3),b3=+b3,this[c3]===b3&&(q2=false)):D2(this[c3])&&v2.removeAttribute("data-z-index");this[c3]=b3;if(q2){(b3=this.zIndex)&&d3&&(d3.handleZ=true);c3=e3.childNodes;for(a4=c3.length-1;0<=a4&&!n3;a4--){d3=c3[a4];q2=d3.getAttribute("data-z-index");var h3=!D2(q2);if(d3!==v2){if(0>b3&&h3&&!f3&&!a4)e3.insertBefore(v2,c3[a4]),n3=true;else if(u2(q2)<=b3||h3&&(!D2(b3)||0<=b3))e3.insertBefore(v2,c3[a4+1]||null),n3=true}}n3||(e3.insertBefore(v2,c3[f3?3:0]||null),n3=true)}return n3};return a3}();a2.prototype.strokeSetter=a2.prototype.fillSetter;a2.prototype.yGetter=a2.prototype.xGetter;a2.prototype.matrixSetter=a2.prototype.rotationOriginXSetter=a2.prototype.rotationOriginYSetter=a2.prototype.rotationSetter=a2.prototype.scaleXSetter=a2.prototype.scaleYSetter=a2.prototype.translateXSetter=a2.prototype.translateYSetter=a2.prototype.verticalAlignSetter=function(b3,c3){this[c3]=b3;this.doTransform=true};return a2}));K(g2,"Core/Renderer/RendererRegistry.js",[g2["Core/Globals.js"]],(function(a2){var g3;(function(g4){g4.rendererTypes={};var A2;g4.getRendererType=function(a3){void 0===a3&&(a3=A2);return g4.rendererTypes[a3]||g4.rendererTypes[A2]};g4.registerRendererType=function(x2,B,H2){g4.rendererTypes[x2]=B;if(!A2||H2)A2=x2,a2.Renderer=B}})(g3||(g3={}));return g3}));K(g2,"Core/Renderer/SVG/SVGLabel.js",[g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d3,e3){d3.__proto__=e3}||function(d3,e3){for(var a4 in e3)e3.hasOwnProperty(a4)&&(d3[a4]=e3[a4])};return a3(e2,d2)};return function(e2,d2){function h2(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(h2.prototype=d2.prototype,new h2)}}(),F2=g3.defined,C2=g3.extend,B=g3.isNumber,H2=g3.merge,t2=g3.pick,r2=g3.removeEvent;return function(g4){function e2(d2,a3,m2,k2,p2,l2,I,E2,r3,y2){var c2=g4.call(this)||this;c2.paddingLeftSetter=c2.paddingSetter;c2.paddingRightSetter=c2.paddingSetter;c2.init(d2,"g");c2.textStr=a3;c2.x=m2;c2.y=k2;c2.anchorX=l2;c2.anchorY=I;c2.baseline=r3;c2.className=y2;c2.addClass("button"===y2?"highcharts-no-tooltip":"highcharts-label");y2&&c2.addClass("highcharts-"+y2);c2.text=d2.text(void 0,0,0,E2).attr({zIndex:1});var h2;"string"===typeof p2&&((h2=/^url\((.*?)\)$/.test(p2))||c2.renderer.symbols[p2])&&(c2.symbolKey=p2);c2.bBox=e2.emptyBBox;c2.padding=3;c2.baselineOffset=0;c2.needsBox=d2.styledMode||h2;c2.deferredAttr={};c2.alignFactor=0;return c2}A2(e2,g4);e2.prototype.alignSetter=function(d2){d2={left:0,center:.5,right:1}[d2];d2!==this.alignFactor&&(this.alignFactor=d2,this.bBox&&B(this.xSetting)&&this.attr({x:this.xSetting}))};e2.prototype.anchorXSetter=function(d2,e3){this.anchorX=d2;this.boxAttr(e3,Math.round(d2)-this.getCrispAdjust()-this.xSetting)};e2.prototype.anchorYSetter=function(d2,e3){this.anchorY=d2;this.boxAttr(e3,d2-this.ySetting)};e2.prototype.boxAttr=function(d2,e3){this.box?this.box.attr(d2,e3):this.deferredAttr[d2]=e3};e2.prototype.css=function(d2){if(d2){var h2={};d2=H2(d2);e2.textProps.forEach((function(e3){"undefined"!==typeof d2[e3]&&(h2[e3]=d2[e3],delete d2[e3])}));this.text.css(h2);"fontSize"in h2||"fontWeight"in h2?this.updateTextPadding():("width"in h2||"textOverflow"in h2)&&this.updateBoxSize()}return a2.prototype.css.call(this,d2)};e2.prototype.destroy=function(){r2(this.element,"mouseenter");r2(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a2.prototype.destroy.call(this)};e2.prototype.fillSetter=function(d2,e3){d2&&(this.needsBox=true);this.fill=d2;this.boxAttr(e3,d2)};e2.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d2=this.padding,e3=t2(this.paddingLeft,d2);return{width:this.width,height:this.height,x:this.bBox.x-e3,y:this.bBox.y-d2}};e2.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};e2.prototype.heightSetter=function(d2){this.heightSetting=d2};e2.prototype.onAdd=function(){this.text.add(this);this.attr({text:t2(this.textStr,""),x:this.x||0,y:this.y||0});this.box&&F2(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e2.prototype.paddingSetter=function(d2,e3){B(d2)?d2!==this[e3]&&(this[e3]=d2,this.updateTextPadding()):this[e3]=void 0};e2.prototype.rSetter=function(d2,e3){this.boxAttr(e3,d2)};e2.prototype.shadow=function(d2){d2&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d2));return this};e2.prototype.strokeSetter=function(d2,e3){this.stroke=d2;this.boxAttr(e3,d2)};e2.prototype["stroke-widthSetter"]=function(d2,e3){d2&&(this.needsBox=true);this["stroke-width"]=d2;this.boxAttr(e3,d2)};e2.prototype["text-alignSetter"]=function(d2){this.textAlign=d2};e2.prototype.textSetter=function(d2){"undefined"!==typeof d2&&this.text.attr({text:d2});this.updateTextPadding()};e2.prototype.updateBoxSize=function(){var d2=this.text,a3=d2.element.style,m2={},k2=this.padding,p2=this.bBox=B(this.widthSetting)&&B(this.heightSetting)&&!this.textAlign||!F2(d2.textStr)?e2.emptyBBox:d2.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||p2.height||0)+2*k2;a3=this.renderer.fontMetrics(a3&&a3.fontSize,d2);this.baselineOffset=k2+Math.min((this.text.firstLineMetrics||a3).b,p2.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a3.h)/2);this.needsBox&&!d2.textPath&&(this.box||(d2=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),d2.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),d2.add(this)),d2=this.getCrispAdjust(),m2.x=d2,m2.y=(this.baseline?-this.baselineOffset:0)+d2,m2.width=Math.round(this.width),m2.height=Math.round(this.height),this.box.attr(C2(m2,this.deferredAttr)),this.deferredAttr={})};e2.prototype.updateTextPadding=function(){var d2=this.text;if(!d2.textPath){this.updateBoxSize();var e3=this.baseline?0:this.baselineOffset,a3=t2(this.paddingLeft,this.padding);F2(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(a3+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a3!==d2.x||e3!==d2.y)d2.attr("x",a3),d2.hasBoxWidthChanged&&(this.bBox=d2.getBBox(true)),"undefined"!==typeof e3&&d2.attr("y",e3);d2.x=a3;d2.y=e3}};e2.prototype.widthSetter=function(d2){this.widthSetting=B(d2)?d2:void 0};e2.prototype.getPaddedWidth=function(){var d2=this.padding,e3=t2(this.paddingLeft,d2);d2=t2(this.paddingRight,d2);return(this.widthSetting||this.bBox.width||0)+e3+d2};e2.prototype.xSetter=function(d2){this.x=d2;this.alignFactor&&(d2-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=true);this.xSetting=Math.round(d2);this.attr("translateX",this.xSetting)};e2.prototype.ySetter=function(d2){this.ySetting=this.y=Math.round(d2);this.attr("translateY",this.ySetting)};e2.emptyBBox={width:0,height:0,x:0,y:0};e2.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return e2}(a2)}));K(g2,"Core/Renderer/SVG/Symbols.js",[g2["Core/Utilities.js"]],(function(a2){function g3(a3,g4,l2,e2,d2){var h2=[];if(d2){var m2=d2.start||0,k2=H2(d2.r,l2);l2=H2(d2.r,e2||l2);var p2=(d2.end||0)-.001;e2=d2.innerR;var D2=H2(d2.open,.001>Math.abs((d2.end||0)-m2-2*Math.PI)),I=Math.cos(m2),E2=Math.sin(m2),r2=Math.cos(p2),y2=Math.sin(p2);m2=H2(d2.longArc,.001>p2-m2-Math.PI?0:1);h2.push(["M",a3+k2*I,g4+l2*E2],["A",k2,l2,0,m2,H2(d2.clockwise,1),a3+k2*r2,g4+l2*y2]);C2(e2)&&h2.push(D2?["M",a3+e2*r2,g4+e2*y2]:["L",a3+e2*r2,g4+e2*y2],["A",e2,e2,0,m2,C2(d2.clockwise)?1-d2.clockwise:0,a3+e2*I,g4+e2*E2]);D2||h2.push(["Z"])}return h2}function x2(a3,g4,l2,e2,d2){return d2&&d2.r?F2(a3,g4,l2,e2,d2):[["M",a3,g4],["L",a3+l2,g4],["L",a3+l2,g4+e2],["L",a3,g4+e2],["Z"]]}function F2(a3,g4,l2,e2,d2){d2=d2&&d2.r||0;return[["M",a3+d2,g4],["L",a3+l2-d2,g4],["C",a3+l2,g4,a3+l2,g4,a3+l2,g4+d2],["L",a3+l2,g4+e2-d2],["C",a3+l2,g4+e2,a3+l2,g4+e2,a3+l2-d2,g4+e2],["L",a3+d2,g4+e2],["C",a3,g4+e2,a3,g4+e2,a3,g4+e2-d2],["L",a3,g4+d2],["C",a3,g4,a3,g4,a3+d2,g4]]}var C2=a2.defined,B=a2.isNumber,H2=a2.pick;return{arc:g3,callout:function(a3,g4,l2,e2,d2){var h2=Math.min(d2&&d2.r||0,l2,e2),m2=h2+6,k2=d2&&d2.anchorX;d2=d2&&d2.anchorY||0;var p2=F2(a3,g4,l2,e2,{r:h2});if(!B(k2))return p2;a3+k2>=l2?d2>g4+m2&&d2<g4+e2-m2?p2.splice(3,1,["L",a3+l2,d2-6],["L",a3+l2+6,d2],["L",a3+l2,d2+6],["L",a3+l2,g4+e2-h2]):p2.splice(3,1,["L",a3+l2,e2/2],["L",k2,d2],["L",a3+l2,e2/2],["L",a3+l2,g4+e2-h2]):0>=a3+k2?d2>g4+m2&&d2<g4+e2-m2?p2.splice(7,1,["L",a3,d2+6],["L",a3-6,d2],["L",a3,d2-6],["L",a3,g4+h2]):p2.splice(7,1,["L",a3,e2/2],["L",k2,d2],["L",a3,e2/2],["L",a3,g4+h2]):d2&&d2>e2&&k2>a3+m2&&k2<a3+l2-m2?p2.splice(5,1,["L",k2+6,g4+e2],["L",k2,g4+e2+6],["L",k2-6,g4+e2],["L",a3+h2,g4+e2]):d2&&0>d2&&k2>a3+m2&&k2<a3+l2-m2&&p2.splice(1,1,["L",k2-6,g4],["L",k2,g4-6],["L",k2+6,g4],["L",l2-h2,g4]);return p2},circle:function(a3,r2,l2,e2){return g3(a3+l2/2,r2+e2/2,l2/2,e2/2,{start:.5*Math.PI,end:2.5*Math.PI,open:false})},diamond:function(a3,g4,l2,e2){return[["M",a3+l2/2,g4],["L",a3+l2,g4+e2/2],["L",a3+l2/2,g4+e2],["L",a3,g4+e2/2],["Z"]]},rect:x2,roundedRect:F2,square:x2,triangle:function(a3,g4,l2,e2){return[["M",a3+l2/2,g4],["L",a3+l2,g4+e2],["L",a3,g4+e2],["Z"]]},"triangle-down":function(a3,g4,l2,e2){return[["M",a3,g4],["L",a3+l2,g4],["L",a3+l2/2,g4+e2],["Z"]]}}}));K(g2,"Core/Renderer/SVG/TextBuilder.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=g3.doc,C2=g3.SVG_NS,B=g3.win,H2=x2.attr,t2=x2.extend,r2=x2.fireEvent,l2=x2.isString,e2=x2.objectEach,d2=x2.pick;return function(){function h2(d3){var e3=d3.styles;this.renderer=d3.renderer;this.svgElement=d3;this.width=d3.textWidth;this.textLineHeight=e3&&e3.lineHeight;this.textOutline=e3&&e3.textOutline;this.ellipsis=!(!e3||"ellipsis"!==e3.textOverflow);this.noWrap=!(!e3||"nowrap"!==e3.whiteSpace);this.fontSize=e3&&e3.fontSize}h2.prototype.buildSVG=function(){var e3=this.svgElement,k2=e3.element,h3=e3.renderer,g4=d2(e3.textStr,"").toString(),I=-1!==g4.indexOf("<"),E2=k2.childNodes;h3=this.width&&!e3.added&&h3.box;var L2=/<br.*?>/g,y2=[g4,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(y2!==e3.textCache){e3.textCache=y2;delete e3.actualWidth;for(y2=E2.length;y2--;)k2.removeChild(E2[y2]);I||this.ellipsis||this.width||e3.textPath||-1!==g4.indexOf(" ")&&(!this.noWrap||L2.test(g4))?""!==g4&&(h3&&h3.appendChild(k2),g4=new a2(g4),this.modifyTree(g4.nodes),g4.addToDOM(k2),this.modifyDOM(),this.ellipsis&&-1!==(k2.textContent||"").indexOf("…")&&e3.attr("title",this.unescapeEntities(e3.textStr||"",["&lt;","&gt;"])),h3&&h3.removeChild(k2)):k2.appendChild(A2.createTextNode(this.unescapeEntities(g4)));l2(this.textOutline)&&e3.applyTextOutline&&e3.applyTextOutline(this.textOutline)}};h2.prototype.modifyDOM=function(){var d3=this,e3=this.svgElement,a3=H2(e3.element,"x");e3.firstLineMetrics=void 0;for(var h3;h3=e3.element.firstChild;)if(/^[\s\u200B]*$/.test(h3.textContent||" "))e3.element.removeChild(h3);else break;[].forEach.call(e3.element.querySelectorAll("tspan.highcharts-br"),(function(h4,c2){h4.nextSibling&&h4.previousSibling&&(0===c2&&1===h4.previousSibling.nodeType&&(e3.firstLineMetrics=e3.renderer.fontMetrics(void 0,h4.previousSibling)),H2(h4,{dy:d3.getLineHeight(h4.nextSibling),x:a3}))}));var g4=this.width||0;if(g4){var l3=function(h4,c2){var w2=h4.textContent||"",f2=w2.replace(/([^\^])-/g,"$1- ").split(" "),n2=!d3.noWrap&&(1<f2.length||1<e3.element.childNodes.length),b2=d3.getLineHeight(c2),u2=0,z2=e3.actualWidth;if(d3.ellipsis)w2&&d3.truncate(h4,w2,void 0,0,Math.max(0,g4-parseInt(d3.fontSize||12,10)),(function(b3,c3){return b3.substring(0,c3)+"…"}));else if(n2){w2=[];for(n2=[];c2.firstChild&&c2.firstChild!==h4;)n2.push(c2.firstChild),c2.removeChild(c2.firstChild);for(;f2.length;)f2.length&&!d3.noWrap&&0<u2&&(w2.push(h4.textContent||""),h4.textContent=f2.join(" ").replace(/- /g,"-")),d3.truncate(h4,void 0,f2,0===u2?z2||0:0,g4,(function(b3,c3){return f2.slice(0,c3).join(" ").replace(/- /g,"-")})),z2=e3.actualWidth,u2++;n2.forEach((function(b3){c2.insertBefore(b3,h4)}));w2.forEach((function(f3){c2.insertBefore(A2.createTextNode(f3),h4);f3=A2.createElementNS(C2,"tspan");f3.textContent="​";H2(f3,{dy:b2,x:a3});c2.insertBefore(f3,h4)}))}},L2=function(d4){[].slice.call(d4.childNodes).forEach((function(c2){c2.nodeType===B.Node.TEXT_NODE?l3(c2,d4):(-1!==c2.className.baseVal.indexOf("highcharts-br")&&(e3.actualWidth=0),L2(c2))}))};L2(e3.element)}};h2.prototype.getLineHeight=function(d3){var e3;d3=d3.nodeType===B.Node.TEXT_NODE?d3.parentElement:d3;this.renderer.styledMode||(e3=d3&&/(px|em)$/.test(d3.style.fontSize)?d3.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e3,d3||this.svgElement.element).h};h2.prototype.modifyTree=function(d3){var e3=this,a3=function(h3,k2){var m2=h3.attributes;m2=void 0===m2?{}:m2;var p2=h3.children,g4=h3.style;g4=void 0===g4?{}:g4;var c2=h3.tagName,w2=e3.renderer.styledMode;if("b"===c2||"strong"===c2)w2?m2["class"]="highcharts-strong":g4.fontWeight="bold";else if("i"===c2||"em"===c2)w2?m2["class"]="highcharts-emphasized":g4.fontStyle="italic";g4&&g4.color&&(g4.fill=g4.color);"br"===c2?(m2["class"]="highcharts-br",h3.textContent="​",(k2=d3[k2+1])&&k2.textContent&&(k2.textContent=k2.textContent.replace(/^ +/gm,""))):"a"===c2&&p2&&p2.some((function(c3){return"#text"===c3.tagName}))&&(h3.children=[{children:p2,tagName:"tspan"}]);"#text"!==c2&&"a"!==c2&&(h3.tagName="tspan");t2(h3,{attributes:m2,style:g4});p2&&p2.filter((function(c3){return"#text"!==c3.tagName})).forEach(a3)};d3.forEach(a3);r2(this.svgElement,"afterModifyTree",{nodes:d3})};h2.prototype.truncate=function(d3,e3,a3,h3,g4,l3){var k2=this.svgElement,m2=k2.renderer,c2=k2.rotation,w2=[],f2=a3?1:0,n2=(e3||a3||"").length,b2=n2,u2,z2=function(b3,c3){c3=c3||b3;var f3=d3.parentNode;if(f3&&"undefined"===typeof w2[c3])if(f3.getSubStringLength)try{w2[c3]=h3+f3.getSubStringLength(0,a3?c3+1:c3)}catch(Q){}else m2.getSpanWidth&&(d3.textContent=l3(e3||a3,b3),w2[c3]=h3+m2.getSpanWidth(k2,d3));return w2[c3]};k2.rotation=0;var q=z2(d3.textContent.length);if(h3+q>g4){for(;f2<=n2;)b2=Math.ceil((f2+n2)/2),a3&&(u2=l3(a3,b2)),q=z2(b2,u2&&u2.length-1),f2===n2?f2=n2+1:q>g4?n2=b2-1:f2=b2;0===n2?d3.textContent="":e3&&n2===e3.length-1||(d3.textContent=u2||l3(e3||a3,b2))}a3&&a3.splice(0,b2);k2.actualWidth=q;k2.rotation=c2};h2.prototype.unescapeEntities=function(d3,a3){e2(this.renderer.escapes,(function(e3,h3){a3&&-1!==a3.indexOf(e3)||(d3=d3.toString().replace(new RegExp(e3,"g"),h3))}));return d3};return h2}()}));K(g2,"Core/Renderer/SVG/SVGRenderer.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Renderer/RendererRegistry.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Renderer/SVG/SVGLabel.js"],g2["Core/Renderer/SVG/Symbols.js"],g2["Core/Renderer/SVG/TextBuilder.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2){var l2=x2.charts,e2=x2.deg2rad,d2=x2.doc,h2=x2.isFirefox,m2=x2.isMS,k2=x2.isWebKit,p2=x2.noop,D2=x2.SVG_NS,I=x2.symbolSizes,E2=x2.win,L2=r2.addEvent,y2=r2.attr,c2=r2.createElement,w2=r2.css,f2=r2.defined,n2=r2.destroyObjectProperties,b2=r2.extend,u2=r2.isArray,z2=r2.isNumber,q=r2.isObject,N=r2.isString,J=r2.merge,O2=r2.pick,Q=r2.pInt,A2=r2.uniqueKey,Y;x2=function(){function v2(b3,c3,f3,d3,e3,v3,a3){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(b3,c3,f3,d3,e3,v3,a3)}v2.prototype.init=function(b3,c3,f3,e3,v3,a3,n3){var G=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),q2=G.element;n3||G.css(this.getStyle(e3));b3.appendChild(q2);y2(b3,"dir","ltr");-1===b3.innerHTML.indexOf("xmlns")&&y2(q2,"xmlns",this.SVG_NS);this.isSVG=true;this.box=q2;this.boxWrapper=G;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d2.createTextNode("Created with Highcharts 10.3.3"));this.defs=this.createElement("defs").add();this.allowHTML=a3;this.forExport=v3;this.styledMode=n3;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c3,f3,false);var u3;h2&&b3.getBoundingClientRect&&(c3=function(){w2(b3,{left:0,top:0});u3=b3.getBoundingClientRect();w2(b3,{left:Math.ceil(u3.left)-u3.left+"px",top:Math.ceil(u3.top)-u3.top+"px"})},c3(),this.unSubPixelFix=L2(E2,"resize",c3))};v2.prototype.definition=function(b3){return new a2([b3]).addToDOM(this.defs.element)};v2.prototype.getReferenceURL=function(){if((h2||k2)&&d2.getElementsByTagName("base").length){if(!f2(Y)){var b3=A2();b3=new a2([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b3},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b3,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d2.body);w2(b3,{position:"fixed",top:0,left:0,zIndex:9e5});var c3=d2.elementFromPoint(6,6);Y="hitme"===(c3&&c3.id);d2.body.removeChild(b3)}if(Y)return E2.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};v2.prototype.getStyle=function(c3){return this.style=b2({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c3)};v2.prototype.setStyle=function(b3){this.boxWrapper.css(this.getStyle(b3))};v2.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};v2.prototype.destroy=function(){var b3=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();n2(this.gradients||{});this.gradients=null;b3&&(this.defs=b3.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};v2.prototype.createElement=function(b3){var c3=new this.Element;c3.init(this,b3);return c3};v2.prototype.getRadialAttr=function(b3,c3){return{cx:b3[0]-b3[2]/2+(c3.cx||0)*b3[2],cy:b3[1]-b3[2]/2+(c3.cy||0)*b3[2],r:(c3.r||0)*b3[2]}};v2.prototype.buildText=function(b3){new t2(b3).buildSVG()};v2.prototype.getContrast=function(b3){b3=g3.parse(b3).rgba.map((function(b4){b4/=255;return.03928>=b4?b4/12.92:Math.pow((b4+.055)/1.055,2.4)}));b3=.2126*b3[0]+.7152*b3[1]+.0722*b3[2];return 1.05/(b3+.05)>(b3+.05)/.05?"#FFFFFF":"#000000"};v2.prototype.button=function(c3,f3,d3,e3,v3,n3,u3,h3,z3,w3){void 0===v3&&(v3={});var G=this.label(c3,f3,d3,z3,void 0,void 0,w3,void 0,"button"),k3=this.styledMode;c3=v3.states||{};var M=0;v3=J(v3);delete v3.states;var g4=J({color:"#333333",cursor:"pointer",fontWeight:"normal"},v3.style);delete v3.style;var p3=a2.filterUserAttributes(v3);G.attr(J({padding:8,r:2},p3));if(!k3){p3=J({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},p3);n3=J(p3,{fill:"#e6e6e6"},a2.filterUserAttributes(n3||c3.hover||{}));var U=n3.style;delete n3.style;u3=J(p3,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a2.filterUserAttributes(u3||c3.select||{}));var P=u3.style;delete u3.style;h3=J(p3,{style:{color:"#cccccc"}},a2.filterUserAttributes(h3||c3.disabled||{}));var y3=h3.style;delete h3.style}L2(G.element,m2?"mouseover":"mouseenter",(function(){3!==M&&G.setState(1)}));L2(G.element,m2?"mouseout":"mouseleave",(function(){3!==M&&G.setState(M)}));G.setState=function(b3){1!==b3&&(G.state=M=b3);G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b3||0]);k3||(G.attr([p3,n3,u3,h3][b3||0]),b3=[g4,U,P,y3][b3||0],q(b3)&&G.css(b3))};k3||(G.attr(p3).css(b2({cursor:"default"},g4)),w3&&G.text.css({pointerEvents:"none"}));return G.on("touchstart",(function(b3){return b3.stopPropagation()})).on("click",(function(b3){3!==M&&e3.call(G,b3)}))};v2.prototype.crispLine=function(b3,c3,d3){void 0===d3&&(d3="round");var e3=b3[0],v3=b3[1];f2(e3[1])&&e3[1]===v3[1]&&(e3[1]=v3[1]=Math[d3](e3[1])-c3%2/2);f2(e3[2])&&e3[2]===v3[2]&&(e3[2]=v3[2]=Math[d3](e3[2])+c3%2/2);return b3};v2.prototype.path=function(c3){var f3=this.styledMode?{}:{fill:"none"};u2(c3)?f3.d=c3:q(c3)&&b2(f3,c3);return this.createElement("path").attr(f3)};v2.prototype.circle=function(b3,c3,f3){b3=q(b3)?b3:"undefined"===typeof b3?{}:{x:b3,y:c3,r:f3};c3=this.createElement("circle");c3.xSetter=c3.ySetter=function(b4,c4,f4){f4.setAttribute("c"+c4,b4)};return c3.attr(b3)};v2.prototype.arc=function(b3,c3,f3,d3,e3,v3){q(b3)?(d3=b3,c3=d3.y,f3=d3.r,b3=d3.x):d3={innerR:d3,start:e3,end:v3};b3=this.symbol("arc",b3,c3,f3,f3,d3);b3.r=f3;return b3};v2.prototype.rect=function(b3,c3,f3,d3,e3,v3){e3=q(b3)?b3.r:e3;var a3=this.createElement("rect");b3=q(b3)?b3:"undefined"===typeof b3?{}:{x:b3,y:c3,width:Math.max(f3,0),height:Math.max(d3,0)};this.styledMode||("undefined"!==typeof v3&&(b3["stroke-width"]=v3,b3=a3.crisp(b3)),b3.fill="none");e3&&(b3.r=e3);a3.rSetter=function(b4,c4,f4){a3.r=b4;y2(f4,{rx:b4,ry:b4})};a3.rGetter=function(){return a3.r||0};return a3.attr(b3)};v2.prototype.setSize=function(b3,c3,f3){this.width=b3;this.height=c3;this.boxWrapper.animate({width:b3,height:c3},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:O2(f3,true)?void 0:0});this.alignElements()};v2.prototype.g=function(b3){var c3=this.createElement("g");return b3?c3.attr({class:"highcharts-"+b3}):c3};v2.prototype.image=function(b3,c3,f3,d3,e3,v3){var a3={preserveAspectRatio:"none"},n3=function(b4,c4){b4.setAttributeNS?b4.setAttributeNS("http://www.w3.org/1999/xlink","href",c4):b4.setAttribute("hc-svg-href",c4)};z2(c3)&&(a3.x=c3);z2(f3)&&(a3.y=f3);z2(d3)&&(a3.width=d3);z2(e3)&&(a3.height=e3);var G=this.createElement("image").attr(a3);c3=function(c4){n3(G.element,b3);v3.call(G,c4)};v3?(n3(G.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f3=new E2.Image,L2(f3,"load",c3),f3.src=b3,f3.complete&&c3({})):n3(G.element,b3);return G};v2.prototype.symbol=function(e3,v3,a3,n3,G,q2){var u3=this,h3=/^url\((.*?)\)$/,z3=h3.test(e3),k3=!z3&&(this.symbols[e3]?e3:"circle"),g4=k3&&this.symbols[k3],m3;if(g4){"number"===typeof v3&&(m3=g4.call(this.symbols,Math.round(v3||0),Math.round(a3||0),n3||0,G||0,q2));var p3=this.path(m3);u3.styledMode||p3.attr("fill","none");b2(p3,{symbolName:k3||void 0,x:v3,y:a3,width:n3,height:G});q2&&b2(p3,q2)}else if(z3){var P=e3.match(h3)[1];var U=p3=this.image(P);U.imgwidth=O2(I[P]&&I[P].width,q2&&q2.width);U.imgheight=O2(I[P]&&I[P].height,q2&&q2.height);var N2=function(b3){return b3.attr({width:b3.width,height:b3.height})};["width","height"].forEach((function(b3){U[b3+"Setter"]=function(b4,c3){this[c3]=b4;b4=this.alignByTranslate;var d3=this.element,e4=this.width,v4=this.height,a4=this.imgwidth,n4=this.imgheight,G2=this["img"+c3];if(f2(G2)){var u4=1;q2&&"within"===q2.backgroundSize&&e4&&v4?(u4=Math.min(e4/a4,v4/n4),G2=Math.round(G2*u4),y2(d3,{width:Math.round(a4*u4),height:Math.round(n4*u4)})):d3&&d3.setAttribute(c3,G2);b4||this.translate(((e4||0)-G2*u4)/2,((v4||0)-G2*u4)/2)}}}));f2(v3)&&U.attr({x:v3,y:a3});U.isImg=true;f2(U.imgwidth)&&f2(U.imgheight)?N2(U):(U.attr({width:0,height:0}),c2("img",{onload:function(){var b3=l2[u3.chartIndex];0===this.width&&(w2(this,{position:"absolute",top:"-999em"}),d2.body.appendChild(this));I[P]={width:this.width,height:this.height};U.imgwidth=this.width;U.imgheight=this.height;U.element&&N2(U);this.parentNode&&this.parentNode.removeChild(this);u3.imgCount--;if(!u3.imgCount&&b3&&!b3.hasLoaded)b3.onload()},src:P}),this.imgCount++)}return p3};v2.prototype.clipRect=function(b3,c3,f3,d3){var e3=A2()+"-",v3=this.createElement("clipPath").attr({id:e3}).add(this.defs);b3=this.rect(b3,c3,f3,d3,0).add(v3);b3.id=e3;b3.clipPath=v3;b3.count=0;return b3};v2.prototype.text=function(b3,c3,d3,e3){var v3={};if(e3&&(this.allowHTML||!this.forExport))return this.html(b3,c3,d3);v3.x=Math.round(c3||0);d3&&(v3.y=Math.round(d3));f2(b3)&&(v3.text=b3);b3=this.createElement("text").attr(v3);if(!e3||this.forExport&&!this.allowHTML)b3.xSetter=function(b4,c4,f3){for(var d4=f3.getElementsByTagName("tspan"),e4=f3.getAttribute(c4),v4=0,a3;v4<d4.length;v4++)a3=d4[v4],a3.getAttribute(c4)===e4&&a3.setAttribute(c4,b4);f3.setAttribute(c4,b4)};return b3};v2.prototype.fontMetrics=function(b3,c3){b3=!this.styledMode&&/px/.test(b3)||!E2.getComputedStyle?b3||c3&&c3.style&&c3.style.fontSize||this.style&&this.style.fontSize:c3&&C2.prototype.getStyle.call(c3,"font-size");b3=/px/.test(b3)?Q(b3):12;c3=24>b3?b3+3:Math.round(1.2*b3);return{h:c3,b:Math.round(.8*c3),f:b3}};v2.prototype.rotCorr=function(b3,c3,f3){var d3=b3;c3&&f3&&(d3=Math.max(d3*Math.cos(c3*e2),4));return{x:-b3/3*Math.sin(c3*e2),y:d3}};v2.prototype.pathToSegments=function(b3){for(var c3=[],f3=[],d3={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},e3=0;e3<b3.length;e3++)N(f3[0])&&z2(b3[e3])&&f3.length===d3[f3[0].toUpperCase()]&&b3.splice(e3,0,f3[0].replace("M","L").replace("m","l")),"string"===typeof b3[e3]&&(f3.length&&c3.push(f3.slice(0)),f3.length=0),f3.push(b3[e3]);c3.push(f3.slice(0));return c3};v2.prototype.label=function(b3,c3,f3,d3,e3,v3,a3,n3,q2){return new B(this,b3,c3,f3,d3,e3,v3,a3,n3,q2)};v2.prototype.alignElements=function(){this.alignedObjects.forEach((function(b3){return b3.align()}))};return v2}();b2(x2.prototype,{Element:C2,SVG_NS:D2,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:H2,draw:p2});F2.registerRendererType("svg",x2,true);return x2}));K(g2,"Core/Renderer/HTML/HTMLElement.js",[g2["Core/Globals.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var d3=function(e3,a3){d3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d4,e4){d4.__proto__=e4}||function(d4,e4){for(var a4 in e4)e4.hasOwnProperty(a4)&&(d4[a4]=e4[a4])};return d3(e3,a3)};return function(e3,a3){function h3(){this.constructor=e3}d3(e3,a3);e3.prototype=null===a3?Object.create(a3):(h3.prototype=a3.prototype,new h3)}}(),C2=a2.isFirefox,B=a2.isMS,H2=a2.isWebKit,t2=a2.win,r2=x2.css,l2=x2.defined,e2=x2.extend,d2=x2.pick,h2=x2.pInt;return function(a3){function k2(){return null!==a3&&a3.apply(this,arguments)||this}A2(k2,a3);k2.compose=function(d3){if(-1===k2.composedClasses.indexOf(d3)){k2.composedClasses.push(d3);var e3=k2.prototype,a4=d3.prototype;a4.getSpanCorrection=e3.getSpanCorrection;a4.htmlCss=e3.htmlCss;a4.htmlGetBBox=e3.htmlGetBBox;a4.htmlUpdateTransform=e3.htmlUpdateTransform;a4.setSpanRotation=e3.setSpanRotation}return d3};k2.prototype.getSpanCorrection=function(d3,e3,a4){this.xCorr=-d3*a4;this.yCorr=-e3};k2.prototype.htmlCss=function(a4){var h3="SPAN"===this.element.tagName&&a4&&"width"in a4,k3=d2(h3&&a4.width,void 0);if(h3){delete a4.width;this.textWidth=k3;var g4=true}a4&&"ellipsis"===a4.textOverflow&&(a4.whiteSpace="nowrap",a4.overflow="hidden");this.styles=e2(this.styles,a4);r2(this.element,a4);g4&&this.htmlUpdateTransform();return this};k2.prototype.htmlGetBBox=function(){var d3=this.element;return{x:d3.offsetLeft,y:d3.offsetTop,width:d3.offsetWidth,height:d3.offsetHeight}};k2.prototype.htmlUpdateTransform=function(){if(this.added){var d3=this.renderer,e3=this.element,a4=this.translateX||0,k3=this.translateY||0,g4=this.x||0,m2=this.y||0,c2=this.textAlign||"left",w2={left:0,center:.5,right:1}[c2],f2=this.styles;f2=f2&&f2.whiteSpace;r2(e3,{marginLeft:a4,marginTop:k3});!d3.styledMode&&this.shadows&&this.shadows.forEach((function(b3){r2(b3,{marginLeft:a4+1,marginTop:k3+1})}));this.inverted&&[].forEach.call(e3.childNodes,(function(b3){d3.invertChild(b3,e3)}));if("SPAN"===e3.tagName){var n2=this.rotation,b2=this.textWidth&&h2(this.textWidth),u2=[n2,c2,e3.innerHTML,this.textWidth,this.textAlign].join(),z2=void 0;z2=false;if(b2!==this.oldTextWidth){if(this.textPxLength)var q=this.textPxLength;else r2(e3,{width:"",whiteSpace:f2||"nowrap"}),q=e3.offsetWidth;(b2>this.oldTextWidth||q>b2)&&(/[ \-]/.test(e3.textContent||e3.innerText)||"ellipsis"===e3.style.textOverflow)&&(r2(e3,{width:q>b2||n2?b2+"px":"auto",display:"block",whiteSpace:f2||"normal"}),this.oldTextWidth=b2,z2=true)}this.hasBoxWidthChanged=z2;u2!==this.cTT&&(z2=d3.fontMetrics(e3.style.fontSize,e3).b,!l2(n2)||n2===(this.oldRotation||0)&&c2===this.oldAlign||this.setSpanRotation(n2,w2,z2),this.getSpanCorrection(!l2(n2)&&this.textPxLength||e3.offsetWidth,z2,w2,n2,c2));r2(e3,{left:g4+(this.xCorr||0)+"px",top:m2+(this.yCorr||0)+"px"});this.cTT=u2;this.oldRotation=n2;this.oldAlign=c2}}else this.alignOnAdd=true};k2.prototype.setSpanRotation=function(d3,e3,a4){var h3={},k3=B&&!/Edge/.test(t2.navigator.userAgent)?"-ms-transform":H2?"-webkit-transform":C2?"MozTransform":t2.opera?"-o-transform":void 0;k3&&(h3[k3]=h3.transform="rotate("+d3+"deg)",h3[k3+(C2?"Origin":"-origin")]=h3.transformOrigin=100*e3+"% "+a4+"px",r2(this.element,h3))};k2.composedClasses=[];return k2}(g3)}));K(g2,"Core/Renderer/HTML/HTMLRenderer.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Renderer/SVG/SVGRenderer.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d3,e3){d3.__proto__=e3}||function(d3,e3){for(var a4 in e3)e3.hasOwnProperty(a4)&&(d3[a4]=e3[a4])};return a3(e2,d2)};return function(e2,d2){function h2(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(h2.prototype=d2.prototype,new h2)}}(),B=F2.attr,H2=F2.createElement,t2=F2.extend,r2=F2.pick;return function(l2){function e2(){return null!==l2&&l2.apply(this,arguments)||this}A2(e2,l2);e2.compose=function(d2){-1===e2.composedClasses.indexOf(d2)&&(e2.composedClasses.push(d2),d2.prototype.html=e2.prototype.html);return d2};e2.prototype.html=function(d2,e3,m2){var h2=this.createElement("span"),p2=h2.element,l3=h2.renderer,I=l3.isSVG,E2=function(d3,e4){["opacity","visibility"].forEach((function(c2){d3[c2+"Setter"]=function(a3,f2,n2){var b2=d3.div?d3.div.style:e4;g3.prototype[c2+"Setter"].call(this,a3,f2,n2);b2&&(b2[f2]=a3)}}));d3.addedSetters=true};h2.textSetter=function(d3){d3!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a2.setElementHTML(this.element,r2(d3,"")),this.textStr=d3,h2.doTransform=true)};I&&E2(h2,h2.element.style);h2.xSetter=h2.ySetter=h2.alignSetter=h2.rotationSetter=function(d3,e4){"align"===e4?h2.alignValue=h2.textAlign=d3:h2[e4]=d3;h2.doTransform=true};h2.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=false)};h2.attr({text:d2,x:Math.round(e3),y:Math.round(m2)}).css({position:"absolute"});l3.styledMode||h2.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p2.style.whiteSpace="nowrap";h2.css=h2.htmlCss;I&&(h2.add=function(d3){var e4=l3.box.parentNode,c2=[];if(this.parentGroup=d3){var a3=d3.div;if(!a3){for(;d3;)c2.push(d3),d3=d3.parentGroup;c2.reverse().forEach((function(f2){function d4(b3,c3){f2[c3]=b3;"translateX"===c3?z2.left=b3+"px":z2.top=b3+"px";f2.doTransform=true}var b2=B(f2.element,"class"),u2=f2.styles||{};a3=f2.div=f2.div||H2("div",b2?{className:b2}:void 0,{position:"absolute",left:(f2.translateX||0)+"px",top:(f2.translateY||0)+"px",display:f2.display,opacity:f2.opacity,cursor:u2.cursor,pointerEvents:u2.pointerEvents,visibility:f2.visibility},a3||e4);var z2=a3.style;t2(f2,{classSetter:function(b3){return function(c3){this.element.setAttribute("class",c3);b3.className=c3}}(a3),on:function(){c2[0].div&&h2.on.apply({element:c2[0].div,onEvents:f2.onEvents},arguments);return f2},translateXSetter:d4,translateYSetter:d4});f2.addedSetters||E2(f2)}))}}else a3=e4;a3.appendChild(p2);h2.added=true;h2.alignOnAdd&&h2.htmlUpdateTransform();return h2});return h2};e2.composedClasses=[];return e2}(x2)}));K(g2,"Core/Axis/AxisDefaults.js",[],(function(){var a2;(function(a3){a3.defaultXAxisOptions={alignTicks:true,allowDecimals:void 0,panningEnabled:true,zIndex:2,zoomEnabled:true,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:false},second:{main:"%H:%M:%S",range:false},minute:{main:"%H:%M",range:false},hour:{main:"%H:%M",range:false},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:false,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:true,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:false,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:false,reversed:void 0,reversedStacks:false,showEmpty:true,showFirstLabel:true,showLastLabel:true,startOfWeek:1,startOnTick:false,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:false,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:true,visible:true,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};a3.defaultYAxisOptions={reversedStacks:true,endOnTick:true,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:true,labels:{x:-8},startOnTick:true,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:false,enabled:false,crop:true,overflow:"justify",formatter:function(){var a4=this.axis.chart.numberFormatter;return a4(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};a3.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a3.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a3.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a3.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a2||(a2={}));return a2}));K(g2,"Core/Foundation.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.addEvent,x2=a2.isFunction,F2=a2.objectEach,C2=a2.removeEvent,B;(function(a3){a3.registerEventOptions=function(a4,r2){a4.eventOptions=a4.eventOptions||{};F2(r2.events,(function(l2,e2){a4.eventOptions[e2]!==l2&&(a4.eventOptions[e2]&&(C2(a4,e2,a4.eventOptions[e2]),delete a4.eventOptions[e2]),x2(l2)&&(a4.eventOptions[e2]=l2,g3(a4,e2,l2)))}))}})(B||(B={}));return B}));K(g2,"Core/Axis/Tick.js",[g2["Core/FormatUtilities.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=g3.deg2rad,C2=x2.clamp,B=x2.correctFloat,H2=x2.defined,t2=x2.destroyObjectProperties,r2=x2.extend,l2=x2.fireEvent,e2=x2.isNumber,d2=x2.merge,h2=x2.objectEach,m2=x2.pick;g3=function(){function g4(d3,e3,a3,h3,g5){this.isNewLabel=this.isNew=true;this.axis=d3;this.pos=e3;this.type=a3||"";this.parameters=g5||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l2(this,"init");a3||h3||this.addLabel()}g4.prototype.addLabel=function(){var d3=this,h3=d3.axis,g5=h3.options,k2=h3.chart,L2=h3.categories,y2=h3.logarithmic,c2=h3.names,w2=d3.pos,f2=m2(d3.options&&d3.options.labels,g5.labels),n2=h3.tickPositions,b2=w2===n2[0],u2=w2===n2[n2.length-1],z2=(!f2.step||1===f2.step)&&1===h3.tickInterval;n2=n2.info;var q=d3.label,N;L2=this.parameters.category||(L2?m2(L2[w2],c2[w2],w2):w2);y2&&e2(L2)&&(L2=B(y2.lin2log(L2)));if(h3.dateTime)if(n2){var J=k2.time.resolveDTLFormat(g5.dateTimeLabelFormats[!g5.grid&&n2.higherRanks[w2]||n2.unitName]);var O2=J.main}else e2(L2)&&(O2=h3.dateTime.getXDateFormat(L2,g5.dateTimeLabelFormats||{}));d3.isFirst=b2;d3.isLast=u2;var Q={axis:h3,chart:k2,dateTimeLabelFormat:O2,isFirst:b2,isLast:u2,pos:w2,tick:d3,tickPositionInfo:n2,value:L2};l2(this,"labelFormat",Q);var t3=function(b3){return f2.formatter?f2.formatter.call(b3,b3):f2.format?(b3.text=h3.defaultLabelFormatter.call(b3,b3),a2.format(f2.format,b3,k2)):h3.defaultLabelFormatter.call(b3,b3)};g5=t3.call(Q,Q);var Y=J&&J.list;d3.shortenLabel=Y?function(){for(N=0;N<Y.length;N++)if(r2(Q,{dateTimeLabelFormat:Y[N]}),q.attr({text:t3.call(Q,Q)}),q.getBBox().width<h3.getSlotWidth(d3)-2*f2.padding)return;q.attr({text:""})}:void 0;z2&&h3._addedPlotLB&&d3.moveLabel(g5,f2);H2(q)||d3.movedLabel?q&&q.textStr!==g5&&!z2&&(!q.textWidth||f2.style.width||q.styles.width||q.css({width:null}),q.attr({text:g5}),q.textPxLength=q.getBBox().width):(d3.label=q=d3.createLabel({x:0,y:0},g5,f2),d3.rotation=0)};g4.prototype.createLabel=function(e3,a3,h3){var g5=this.axis,k2=g5.chart;if(e3=H2(a3)&&h3.enabled?k2.renderer.text(a3,e3.x,e3.y,h3.useHTML).add(g5.labelGroup):null)k2.styledMode||e3.css(d2(h3.style)),e3.textPxLength=e3.getBBox().width;return e3};g4.prototype.destroy=function(){t2(this,this.axis)};g4.prototype.getPosition=function(d3,e3,a3,h3){var g5=this.axis,k2=g5.chart,c2=h3&&k2.oldChartHeight||k2.chartHeight;d3={x:d3?B(g5.translate(e3+a3,void 0,void 0,h3)+g5.transB):g5.left+g5.offset+(g5.opposite?(h3&&k2.oldChartWidth||k2.chartWidth)-g5.right-g5.left:0),y:d3?c2-g5.bottom+g5.offset-(g5.opposite?g5.height:0):B(c2-g5.translate(e3+a3,void 0,void 0,h3)-g5.transB)};d3.y=C2(d3.y,-1e5,1e5);l2(this,"afterGetPosition",{pos:d3});return d3};g4.prototype.getLabelPosition=function(d3,e3,a3,h3,g5,k2,c2,w2){var f2=this.axis,n2=f2.transA,b2=f2.isLinked&&f2.linkedParent?f2.linkedParent.reversed:f2.reversed,u2=f2.staggerLines,z2=f2.tickRotCorr||{x:0,y:0},q=h3||f2.reserveSpaceDefault?0:-f2.labelOffset*("center"===f2.labelAlign?.5:1),m3={};a3=0===f2.side?a3.rotation?-8:-a3.getBBox().height:2===f2.side?z2.y+8:Math.cos(a3.rotation*A2)*(z2.y-a3.getBBox(false,0).height/2);H2(g5.y)&&(a3=0===f2.side&&f2.horiz?g5.y+a3:g5.y);d3=d3+g5.x+q+z2.x-(k2&&h3?k2*n2*(b2?-1:1):0);e3=e3+a3-(k2&&!h3?k2*n2*(b2?1:-1):0);u2&&(h3=c2/(w2||1)%u2,f2.opposite&&(h3=u2-h3-1),e3+=f2.labelOffset/u2*h3);m3.x=d3;m3.y=Math.round(e3);l2(this,"afterGetLabelPosition",{pos:m3,tickmarkOffset:k2,index:c2});return m3};g4.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g4.prototype.getMarkPath=function(d3,e3,a3,h3,g5,k2){return k2.crispLine([["M",d3,e3],["L",d3+(g5?0:-a3),e3+(g5?a3:0)]],h3)};g4.prototype.handleOverflow=function(d3){var e3=this.axis,a3=e3.options.labels,h3=d3.x,g5=e3.chart.chartWidth,k2=e3.chart.spacing,c2=m2(e3.labelLeft,Math.min(e3.pos,k2[3]));k2=m2(e3.labelRight,Math.max(e3.isRadial?0:e3.pos+e3.len,g5-k2[1]));var w2=this.label,f2=this.rotation,n2={left:0,center:.5,right:1}[e3.labelAlign||w2.attr("align")],b2=w2.getBBox().width,u2=e3.getSlotWidth(this),z2={},q=u2,p2=1,l3;if(f2||"justify"!==a3.overflow)0>f2&&h3-n2*b2<c2?l3=Math.round(h3/Math.cos(f2*A2)-c2):0<f2&&h3+n2*b2>k2&&(l3=Math.round((g5-h3)/Math.cos(f2*A2)));else if(g5=h3+(1-n2)*b2,h3-n2*b2<c2?q=d3.x+q*(1-n2)-c2:g5>k2&&(q=k2-d3.x+q*n2,p2=-1),q=Math.min(u2,q),q<u2&&"center"===e3.labelAlign&&(d3.x+=p2*(u2-q-n2*(u2-Math.min(b2,q)))),b2>q||e3.autoRotation&&(w2.styles||{}).width)l3=q;l3&&(this.shortenLabel?this.shortenLabel():(z2.width=Math.floor(l3)+"px",(a3.style||{}).textOverflow||(z2.textOverflow="ellipsis"),w2.css(z2)))};g4.prototype.moveLabel=function(d3,e3){var a3=this,g5=a3.label,k2=a3.axis,m3=k2.reversed,c2=false;g5&&g5.textStr===d3?(a3.movedLabel=g5,c2=true,delete a3.label):h2(k2.ticks,(function(f2){c2||f2.isNew||f2===a3||!f2.label||f2.label.textStr!==d3||(a3.movedLabel=f2.label,c2=true,f2.labelPos=a3.movedLabel.xy,delete f2.label)}));if(!c2&&(a3.labelPos||g5)){var w2=a3.labelPos||g5.xy;g5=k2.horiz?m3?0:k2.width+k2.left:w2.x;k2=k2.horiz?w2.y:m3?k2.width+k2.left:0;a3.movedLabel=a3.createLabel({x:g5,y:k2},d3,e3);a3.movedLabel&&a3.movedLabel.attr({opacity:0})}};g4.prototype.render=function(d3,e3,a3){var h3=this.axis,g5=h3.horiz,k2=this.pos,c2=m2(this.tickmarkOffset,h3.tickmarkOffset);k2=this.getPosition(g5,k2,c2,e3);c2=k2.x;var w2=k2.y;h3=g5&&c2===h3.pos+h3.len||!g5&&w2===h3.pos?-1:1;g5=m2(a3,this.label&&this.label.newOpacity,1);a3=m2(a3,1);this.isActive=true;this.renderGridLine(e3,a3,h3);this.renderMark(k2,a3,h3);this.renderLabel(k2,e3,g5,d3);this.isNew=false;l2(this,"afterRender")};g4.prototype.renderGridLine=function(d3,e3,a3){var h3=this.axis,g5=h3.options,k2={},c2=this.pos,w2=this.type,f2=m2(this.tickmarkOffset,h3.tickmarkOffset),n2=h3.chart.renderer,b2=this.gridLine,u2=g5.gridLineWidth,z2=g5.gridLineColor,q=g5.gridLineDashStyle;"minor"===this.type&&(u2=g5.minorGridLineWidth,z2=g5.minorGridLineColor,q=g5.minorGridLineDashStyle);b2||(h3.chart.styledMode||(k2.stroke=z2,k2["stroke-width"]=u2||0,k2.dashstyle=q),w2||(k2.zIndex=1),d3&&(e3=0),this.gridLine=b2=n2.path().attr(k2).addClass("highcharts-"+(w2?w2+"-":"")+"grid-line").add(h3.gridGroup));if(b2&&(a3=h3.getPlotLinePath({value:c2+f2,lineWidth:b2.strokeWidth()*a3,force:"pass",old:d3,acrossPanes:false})))b2[d3||this.isNew?"attr":"animate"]({d:a3,opacity:e3})};g4.prototype.renderMark=function(d3,e3,a3){var h3=this.axis,g5=h3.options,k2=h3.chart.renderer,c2=this.type,w2=h3.tickSize(c2?c2+"Tick":"tick"),f2=d3.x;d3=d3.y;var n2=m2(g5["minor"!==c2?"tickWidth":"minorTickWidth"],!c2&&h3.isXAxis?1:0);g5=g5["minor"!==c2?"tickColor":"minorTickColor"];var b2=this.mark,u2=!b2;w2&&(h3.opposite&&(w2[0]=-w2[0]),b2||(this.mark=b2=k2.path().addClass("highcharts-"+(c2?c2+"-":"")+"tick").add(h3.axisGroup),h3.chart.styledMode||b2.attr({stroke:g5,"stroke-width":n2})),b2[u2?"attr":"animate"]({d:this.getMarkPath(f2,d3,w2[0],b2.strokeWidth()*a3,h3.horiz,k2),opacity:e3}))};g4.prototype.renderLabel=function(d3,a3,h3,g5){var k2=this.axis,l3=k2.horiz,c2=k2.options,w2=this.label,f2=c2.labels,n2=f2.step;k2=m2(this.tickmarkOffset,k2.tickmarkOffset);var b2=d3.x;d3=d3.y;var u2=true;w2&&e2(b2)&&(w2.xy=d3=this.getLabelPosition(b2,d3,w2,l3,f2,k2,g5,n2),this.isFirst&&!this.isLast&&!c2.showFirstLabel||this.isLast&&!this.isFirst&&!c2.showLastLabel?u2=false:!l3||f2.step||f2.rotation||a3||0===h3||this.handleOverflow(d3),n2&&g5%n2&&(u2=false),u2&&e2(d3.y)?(d3.opacity=h3,w2[this.isNewLabel?"attr":"animate"](d3).show(true),this.isNewLabel=false):(w2.hide(),this.isNewLabel=true))};g4.prototype.replaceMovedLabel=function(){var d3=this.label,e3=this.axis,a3=e3.reversed;if(d3&&!this.isNew){var h3=e3.horiz?a3?e3.left:e3.width+e3.left:d3.xy.x;a3=e3.horiz?d3.xy.y:a3?e3.width+e3.top:e3.top;d3.animate({x:h3,y:a3,opacity:0},void 0,d3.destroy);delete this.label}e3.isDirty=true;this.label=this.movedLabel;delete this.movedLabel};return g4}();return g3}));K(g2,"Core/Axis/Axis.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Axis/AxisDefaults.js"],g2["Core/Color/Color.js"],g2["Core/Defaults.js"],g2["Core/Foundation.js"],g2["Core/Globals.js"],g2["Core/Axis/Tick.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2){var r2=a2.animObject,l2=F2.defaultOptions,e2=C2.registerEventOptions,d2=B.deg2rad,h2=t2.arrayMax,m2=t2.arrayMin,k2=t2.clamp,p2=t2.correctFloat,D2=t2.defined,I=t2.destroyObjectProperties,E2=t2.erase,A2=t2.error,y2=t2.extend,c2=t2.fireEvent,w2=t2.isArray,f2=t2.isNumber,n2=t2.isString,b2=t2.merge,u2=t2.normalizeTickInterval,z2=t2.objectEach,q=t2.pick,N=t2.relativeLength,J=t2.removeEvent,O2=t2.splat,Q=t2.syncTimeout,T2=function(b3,c3){return u2(c3,void 0,void 0,q(b3.options.allowDecimals,.5>c3||void 0!==b3.tickAmount),!!b3.tickAmount)};a2=function(){function a3(b3,c3){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b3,c3)}a3.prototype.init=function(b3,d3){var a4=d3.isX;this.chart=b3;this.horiz=b3.inverted&&!this.isZAxis?!a4:a4;this.isXAxis=a4;this.coll=this.coll||(a4?"xAxis":"yAxis");c2(this,"init",{userOptions:d3});this.opposite=q(d3.opposite,this.opposite);this.side=q(d3.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(d3);var v2=this.options,n3=v2.labels,h3=v2.type;this.userOptions=d3;this.minPixelPadding=0;this.reversed=q(v2.reversed,this.reversed);this.visible=v2.visible;this.zoomEnabled=v2.zoomEnabled;this.hasNames="category"===h3||true===v2.categories;this.categories=v2.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=D2(v2.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=v2.minRange||v2.maxZoom;this.range=v2.range;this.offset=v2.offset||0;this.min=this.max=null;d3=q(v2.crosshair,O2(b3.options.tooltip.crosshairs)[a4?0:1]);this.crosshair=true===d3?{}:d3;-1===b3.axes.indexOf(this)&&(a4?b3.axes.splice(b3.xAxis.length,0,this):b3.axes.push(this),b3[this.coll].push(this));this.series=this.series||[];b3.inverted&&!this.isZAxis&&a4&&"undefined"===typeof this.reversed&&(this.reversed=true);this.labelRotation=f2(n3.rotation)?n3.rotation:void 0;e2(this,v2);c2(this,"afterInit")};a3.prototype.setOptions=function(f3){this.options=b2(g3.defaultXAxisOptions,"yAxis"===this.coll&&g3.defaultYAxisOptions,[g3.defaultTopAxisOptions,g3.defaultRightAxisOptions,g3.defaultBottomAxisOptions,g3.defaultLeftAxisOptions][this.side],b2(l2[this.coll],f3));c2(this,"afterSetOptions",{userOptions:f3})};a3.prototype.defaultLabelFormatter=function(b3){var c3=this.axis;b3=this.chart.numberFormatter;var d3=f2(this.value)?this.value:NaN,a4=c3.chart.time,e3=this.dateTimeLabelFormat,v2=l2.lang,n3=v2.numericSymbols;v2=v2.numericSymbolMagnitude||1e3;var h3=c3.logarithmic?Math.abs(d3):c3.tickInterval,q2=n3&&n3.length;if(c3.categories)var u3="".concat(this.value);else if(e3)u3=a4.dateFormat(e3,d3);else if(q2&&1e3<=h3)for(;q2--&&"undefined"===typeof u3;)c3=Math.pow(v2,q2+1),h3>=c3&&0===10*d3%c3&&null!==n3[q2]&&0!==d3&&(u3=b3(d3/c3,-1)+n3[q2]);"undefined"===typeof u3&&(u3=1e4<=Math.abs(d3)?b3(d3,-1):b3(d3,-1,void 0,""));return u3};a3.prototype.getSeriesExtremes=function(){var b3=this,d3=b3.chart,a4;c2(this,"getSeriesExtremes",null,(function(){b3.hasVisibleSeries=false;b3.dataMin=b3.dataMax=b3.threshold=null;b3.softThreshold=!b3.isXAxis;b3.series.forEach((function(c3){if(c3.visible||!d3.options.chart.ignoreHiddenSeries){var e3=c3.options,v2=e3.threshold;b3.hasVisibleSeries=true;b3.positiveValuesOnly&&0>=v2&&(v2=null);if(b3.isXAxis){if(e3=c3.xData,e3.length){e3=b3.logarithmic?e3.filter(b3.validatePositiveValue):e3;a4=c3.getXExtremes(e3);var n3=a4.min;var h3=a4.max;f2(n3)||n3 instanceof Date||(e3=e3.filter(f2),a4=c3.getXExtremes(e3),n3=a4.min,h3=a4.max);e3.length&&(b3.dataMin=Math.min(q(b3.dataMin,n3),n3),b3.dataMax=Math.max(q(b3.dataMax,h3),h3))}}else if(c3=c3.applyExtremes(),f2(c3.dataMin)&&(n3=c3.dataMin,b3.dataMin=Math.min(q(b3.dataMin,n3),n3)),f2(c3.dataMax)&&(h3=c3.dataMax,b3.dataMax=Math.max(q(b3.dataMax,h3),h3)),D2(v2)&&(b3.threshold=v2),!e3.softThreshold||b3.positiveValuesOnly)b3.softThreshold=false}}))}));c2(this,"afterGetSeriesExtremes")};a3.prototype.translate=function(b3,c3,d3,a4,e3,n3){var v2=this.linkedParent||this,h3=a4&&v2.old?v2.old.min:v2.min;if(!f2(h3))return NaN;var q2=v2.minPixelPadding;e3=(v2.isOrdinal||v2.brokenAxis&&v2.brokenAxis.hasBreaks||v2.logarithmic&&e3)&&v2.lin2val;var u3=1,G=0;a4=a4&&v2.old?v2.old.transA:v2.transA;a4||(a4=v2.transA);d3&&(u3*=-1,G=v2.len);v2.reversed&&(u3*=-1,G-=u3*(v2.sector||v2.len));c3?(n3=(b3*u3+G-q2)/a4+h3,e3&&(n3=v2.lin2val(n3))):(e3&&(b3=v2.val2lin(b3)),b3=u3*(b3-h3)*a4,n3=(v2.isRadial?b3:p2(b3))+G+u3*q2+(f2(n3)?a4*n3:0));return n3};a3.prototype.toPixels=function(b3,c3){return this.translate(b3,false,!this.horiz,void 0,true)+(c3?0:this.pos)};a3.prototype.toValue=function(b3,c3){return this.translate(b3-(c3?0:this.pos),true,!this.horiz,void 0,true)};a3.prototype.getPlotLinePath=function(b3){function d3(b4,c3,f3){"pass"!==p3&&(b4<c3||b4>f3)&&(p3?b4=k2(b4,c3,f3):r3=true);return b4}var a4=this,e3=a4.chart,v2=a4.left,n3=a4.top,h3=b3.old,u3=b3.value,g4=b3.lineWidth,z3=h3&&e3.oldChartHeight||e3.chartHeight,w3=h3&&e3.oldChartWidth||e3.chartWidth,m3=a4.transB,l3=b3.translatedValue,p3=b3.force,J2,N2,y3,O3,r3;b3={value:u3,lineWidth:g4,old:h3,force:p3,acrossPanes:b3.acrossPanes,translatedValue:l3};c2(this,"getPlotLinePath",b3,(function(b4){l3=q(l3,a4.translate(u3,void 0,void 0,h3));l3=k2(l3,-1e5,1e5);J2=y3=Math.round(l3+m3);N2=O3=Math.round(z3-l3-m3);f2(l3)?a4.horiz?(N2=n3,O3=z3-a4.bottom,J2=y3=d3(J2,v2,v2+a4.width)):(J2=v2,y3=w3-a4.right,N2=O3=d3(N2,n3,n3+a4.height)):(r3=true,p3=false);b4.path=r3&&!p3?null:e3.renderer.crispLine([["M",J2,N2],["L",y3,O3]],g4||1)}));return b3.path};a3.prototype.getLinearTickPositions=function(b3,c3,f3){var d3=p2(Math.floor(c3/b3)*b3);f3=p2(Math.ceil(f3/b3)*b3);var a4=[],e3;p2(d3+b3)===d3&&(e3=20);if(this.single)return[c3];for(c3=d3;c3<=f3;){a4.push(c3);c3=p2(c3+b3,e3);if(c3===v2)break;var v2=c3}return a4};a3.prototype.getMinorTickInterval=function(){var b3=this.options;return true===b3.minorTicks?q(b3.minorTickInterval,"auto"):false===b3.minorTicks?null:b3.minorTickInterval};a3.prototype.getMinorTickPositions=function(){var b3=this.options,c3=this.tickPositions,f3=this.minorTickInterval,d3=this.pointRangePadding||0,a4=this.min-d3;d3=this.max+d3;var e3=d3-a4,n3=[];if(e3&&e3/f3<this.len/3){var h3=this.logarithmic;if(h3)this.paddedTicks.forEach((function(b4,c4,d4){c4&&n3.push.apply(n3,h3.getLogTickPositions(f3,d4[c4-1],d4[c4],true))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())n3=n3.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(f3),a4,d3,b3.startOfWeek));else for(b3=a4+(c3[0]-a4)%f3;b3<=d3&&b3!==n3[0];b3+=f3)n3.push(b3)}0!==n3.length&&this.trimTicks(n3);return n3};a3.prototype.adjustForMinRange=function(){var b3=this.options,c3=this.logarithmic,f3=this.min,d3=this.max,a4=0,e3,n3,u3,g4;this.isXAxis&&"undefined"===typeof this.minRange&&!c3&&(D2(b3.min)||D2(b3.max)||D2(b3.floor)||D2(b3.ceiling)?this.minRange=null:(this.series.forEach((function(b4){u3=b4.xData;g4=b4.xIncrement?1:u3.length-1;if(1<u3.length){for(e3=g4;0<e3;e3--)if(n3=u3[e3]-u3[e3-1],!a4||n3<a4)a4=n3}})),this.minRange=Math.min(5*a4,this.dataMax-this.dataMin)));if(d3-f3<this.minRange){var z3=this.dataMax-this.dataMin>=this.minRange;var k3=this.minRange;var w3=(k3-d3+f3)/2;w3=[f3-w3,q(b3.min,f3-w3)];z3&&(w3[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f3=h2(w3);d3=[f3+k3,q(b3.max,f3+k3)];z3&&(d3[2]=c3?c3.log2lin(this.dataMax):this.dataMax);d3=m2(d3);d3-f3<k3&&(w3[0]=d3-k3,w3[1]=q(b3.min,d3-k3),f3=h2(w3))}this.min=f3;this.max=d3};a3.prototype.getClosest=function(){var b3;this.categories?b3=1:this.series.forEach((function(c3){var f3=c3.closestPointRange,d3=c3.visible||!c3.chart.options.chart.ignoreHiddenSeries;!c3.noSharedTooltip&&D2(f3)&&d3&&(b3=D2(b3)?Math.min(b3,f3):f3)}));return b3};a3.prototype.nameToX=function(b3){var c3=w2(this.options.categories),f3=c3?this.categories:this.names,d3=b3.options.x;b3.series.requireSorting=false;D2(d3)||(d3=this.options.uniqueNames&&f3?c3?f3.indexOf(b3.name):q(f3.keys[b3.name],-1):b3.series.autoIncrement());if(-1===d3){if(!c3&&f3)var a4=f3.length}else a4=d3;"undefined"!==typeof a4?(this.names[a4]=b3.name,this.names.keys[b3.name]=a4):b3.x&&(a4=b3.x);return a4};a3.prototype.updateNames=function(){var b3=this,c3=this.names;0<c3.length&&(Object.keys(c3.keys).forEach((function(b4){delete c3.keys[b4]})),c3.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(c4){c4.xIncrement=null;if(!c4.points||c4.isDirtyData)b3.max=Math.max(b3.max,c4.xData.length-1),c4.processData(),c4.generatePoints();c4.data.forEach((function(f3,d3){if(f3&&f3.options&&"undefined"!==typeof f3.name){var a4=b3.nameToX(f3);"undefined"!==typeof a4&&a4!==f3.x&&(f3.x=a4,c4.xData[d3]=a4)}}))})))};a3.prototype.setAxisTranslation=function(){var b3=this,f3=b3.max-b3.min,d3=b3.linkedParent,a4=!!b3.categories,e3=b3.isXAxis,h3=b3.axisPointRange||0,u3=0,g4=0,k3=b3.transA;if(e3||a4||h3){var z3=b3.getClosest();d3?(u3=d3.minPointOffset,g4=d3.pointRangePadding):b3.series.forEach((function(c3){var f4=a4?1:e3?q(c3.options.pointRange,z3,0):b3.axisPointRange||0,d4=c3.options.pointPlacement;h3=Math.max(h3,f4);if(!b3.single||a4)c3=c3.is("xrange")?!e3:e3,u3=Math.max(u3,c3&&n2(d4)?0:f4/2),g4=Math.max(g4,c3&&"on"===d4?0:f4)}));d3=b3.ordinal&&b3.ordinal.slope&&z3?b3.ordinal.slope/z3:1;b3.minPointOffset=u3*=d3;b3.pointRangePadding=g4*=d3;b3.pointRange=Math.min(h3,b3.single&&a4?1:f3);e3&&(b3.closestPointRange=z3)}b3.translationSlope=b3.transA=k3=b3.staticScale||b3.len/(f3+g4||1);b3.transB=b3.horiz?b3.left:b3.bottom;b3.minPixelPadding=k3*u3;c2(this,"afterSetAxisTranslation")};a3.prototype.minFromRange=function(){return this.max-this.range};a3.prototype.setTickInterval=function(b3){var d3=this.chart,a4=this.logarithmic,e3=this.options,n3=this.isXAxis,h3=this.isLinked,u3=e3.tickPixelInterval,v2=this.categories,g4=this.softThreshold,k3=e3.maxPadding,z3=e3.minPadding,w3=f2(e3.tickInterval)&&0<=e3.tickInterval?e3.tickInterval:void 0,m3=f2(this.threshold)?this.threshold:null;this.dateTime||v2||h3||this.getTickAmount();var l3=q(this.userMin,e3.min);var J2=q(this.userMax,e3.max);if(h3){this.linkedParent=d3[this.coll][e3.linkedTo];var N2=this.linkedParent.getExtremes();this.min=q(N2.min,N2.dataMin);this.max=q(N2.max,N2.dataMax);e3.type!==this.linkedParent.options.type&&A2(11,1,d3)}else{if(g4&&D2(m3)){if(this.dataMin>=m3)N2=m3,z3=0;else if(this.dataMax<=m3){var y3=m3;k3=0}}this.min=q(l3,N2,this.dataMin);this.max=q(J2,y3,this.dataMax)}a4&&(this.positiveValuesOnly&&!b3&&0>=Math.min(this.min,q(this.dataMin,this.min))&&A2(10,1,d3),this.min=p2(a4.log2lin(this.min),16),this.max=p2(a4.log2lin(this.max),16));this.range&&D2(this.max)&&(this.userMin=this.min=l3=Math.max(this.dataMin,this.minFromRange()),this.userMax=J2=this.max,this.range=null);c2(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(v2||this.axisPointRange||this.stacking&&this.stacking.usePercentage||h3)&&D2(this.min)&&D2(this.max)&&(d3=this.max-this.min)&&(!D2(l3)&&z3&&(this.min-=d3*z3),!D2(J2)&&k3&&(this.max+=d3*k3));f2(this.userMin)||(f2(e3.softMin)&&e3.softMin<this.min&&(this.min=l3=e3.softMin),f2(e3.floor)&&(this.min=Math.max(this.min,e3.floor)));f2(this.userMax)||(f2(e3.softMax)&&e3.softMax>this.max&&(this.max=J2=e3.softMax),f2(e3.ceiling)&&(this.max=Math.min(this.max,e3.ceiling)));g4&&D2(this.dataMin)&&(m3=m3||0,!D2(l3)&&this.min<m3&&this.dataMin>=m3?this.min=this.options.minRange?Math.min(m3,this.max-this.minRange):m3:!D2(J2)&&this.max>m3&&this.dataMax<=m3&&(this.max=this.options.minRange?Math.max(m3,this.min+this.minRange):m3));f2(this.min)&&f2(this.max)&&!this.chart.polar&&this.min>this.max&&(D2(this.options.min)?this.max=this.min:D2(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:h3&&this.linkedParent&&!w3&&u3===this.linkedParent.options.tickPixelInterval?w3=this.linkedParent.tickInterval:q(w3,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,v2?1:(this.max-this.min)*u3/Math.max(this.len,u3));if(n3&&!b3){var O3=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(b4){b4.forceCrop=b4.forceCropping&&b4.forceCropping();b4.processData(O3)}));c2(this,"postProcessData",{hasExtremesChanged:O3})}this.setAxisTranslation();c2(this,"initialAxisTranslation");this.pointRange&&!w3&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b3=q(e3.minTickInterval,this.dateTime&&!this.series.some((function(b4){return b4.noSharedTooltip}))?this.closestPointRange:0);!w3&&this.tickInterval<b3&&(this.tickInterval=b3);this.dateTime||this.logarithmic||w3||(this.tickInterval=T2(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};a3.prototype.setTickPositions=function(){var b3=this.options,d3=b3.tickPositions,a4=b3.tickPositioner,e3=this.getMinorTickInterval(),n3=this.hasVerticalPanning(),h3="colorAxis"===this.coll,u3=(h3||!n3)&&b3.startOnTick;n3=(h3||!n3)&&b3.endOnTick;h3=[];var q2;this.tickmarkOffset=this.categories&&"between"===b3.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===e3&&this.tickInterval?this.tickInterval/5:e3;this.single=this.min===this.max&&D2(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||false!==b3.allowDecimals);if(d3)h3=d3.slice();else if(f2(this.min)&&f2(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)h3=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b3.units),this.min,this.max,b3.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,true);else if(this.logarithmic)h3=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(e3=b3=this.tickInterval;e3<=2*b3;)if(h3=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&h3.length>this.tickAmount)this.tickInterval=T2(this,e3*=1.1);else break;else h3=[this.min,this.max],A2(19,false,this.chart);h3.length>this.len&&(h3=[h3[0],h3[h3.length-1]],h3[0]===h3[1]&&(h3.length=1));a4&&(this.tickPositions=h3,(q2=a4.apply(this,[this.min,this.max]))&&(h3=q2))}this.tickPositions=h3;this.paddedTicks=h3.slice(0);this.trimTicks(h3,u3,n3);!this.isLinked&&f2(this.min)&&f2(this.max)&&(this.single&&2>h3.length&&!this.categories&&!this.series.some((function(b4){return b4.is("heatmap")&&"between"===b4.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),d3||q2||this.adjustTickAmount());c2(this,"afterSetTickPositions")};a3.prototype.trimTicks=function(b3,f3,d3){var a4=b3[0],e3=b3[b3.length-1],h3=!this.isOrdinal&&this.minPointOffset||0;c2(this,"trimTicks");if(!this.isLinked){if(f3&&-Infinity!==a4)this.min=a4;else for(;this.min-h3>b3[0];)b3.shift();if(d3)this.max=e3;else for(;this.max+h3<b3[b3.length-1];)b3.pop();0===b3.length&&D2(a4)&&!this.options.tickPositions&&b3.push((e3+a4)/2)}};a3.prototype.alignToOthers=function(){var b3=this,c3=[this],d3=b3.options,a4="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,e3=[],h3;b3.thresholdAlignment=void 0;if((false!==this.chart.options.chart.alignTicks&&d3.alignTicks||a4)&&false!==d3.startOnTick&&false!==d3.endOnTick&&!b3.logarithmic){var n3=function(b4){var c4=b4.options;return[b4.horiz?c4.left:c4.top,c4.width,c4.height,c4.pane].join()},u3=n3(this);this.chart[this.coll].forEach((function(f3){var d4=f3.series;d4.length&&d4.some((function(b4){return b4.visible}))&&f3!==b3&&n3(f3)===u3&&(h3=true,c3.push(f3))}))}if(h3&&a4){c3.forEach((function(c4){c4=c4.getThresholdAlignment(b3);f2(c4)&&e3.push(c4)}));var q2=1<e3.length?e3.reduce((function(b4,c4){return b4+c4}),0)/e3.length:void 0;c3.forEach((function(b4){b4.thresholdAlignment=q2}))}return h3};a3.prototype.getThresholdAlignment=function(b3){(!f2(this.dataMin)||this!==b3&&this.series.some((function(b4){return b4.isDirty||b4.isDirtyData})))&&this.getSeriesExtremes();if(f2(this.threshold))return b3=k2((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(b3=1-b3),b3};a3.prototype.getTickAmount=function(){var b3=this.options,c3=b3.tickPixelInterval,f3=b3.tickAmount;!D2(b3.tickInterval)&&!f3&&this.len<c3&&!this.isRadial&&!this.logarithmic&&b3.startOnTick&&b3.endOnTick&&(f3=2);!f3&&this.alignToOthers()&&(f3=Math.ceil(this.len/c3)+1);4>f3&&(this.finalTickAmt=f3,f3=5);this.tickAmount=f3};a3.prototype.adjustTickAmount=function(){var b3=this,c3=b3.finalTickAmt,d3=b3.max,a4=b3.min,e3=b3.options,h3=b3.tickPositions,n3=b3.tickAmount,u3=b3.thresholdAlignment,g4=h3&&h3.length,k3=q(b3.threshold,b3.softThreshold?0:null);var z3=b3.tickInterval;if(f2(u3)){var w3=.5>u3?Math.ceil(u3*(n3-1)):Math.floor(u3*(n3-1));e3.reversed&&(w3=n3-1-w3)}if(b3.hasData()&&f2(a4)&&f2(d3)){u3=function(){b3.transA*=(g4-1)/(n3-1);b3.min=e3.startOnTick?h3[0]:Math.min(a4,h3[0]);b3.max=e3.endOnTick?h3[h3.length-1]:Math.max(d3,h3[h3.length-1])};if(f2(w3)&&f2(b3.threshold)){for(;h3[w3]!==k3||h3.length!==n3||h3[0]>a4||h3[h3.length-1]<d3;){h3.length=0;for(h3.push(b3.threshold);h3.length<n3;)void 0===h3[w3]||h3[w3]>b3.threshold?h3.unshift(p2(h3[0]-z3)):h3.push(p2(h3[h3.length-1]+z3));if(z3>8*b3.tickInterval)break;z3*=2}u3()}else if(g4<n3){for(;h3.length<n3;)h3.length%2||a4===k3?h3.push(p2(h3[h3.length-1]+z3)):h3.unshift(p2(h3[0]-z3));u3()}if(D2(c3)){for(z3=k3=h3.length;z3--;)(3===c3&&1===z3%2||2>=c3&&0<z3&&z3<k3-1)&&h3.splice(z3,1);b3.finalTickAmt=void 0}}};a3.prototype.setScale=function(){var b3=false,f3=false;this.series.forEach((function(c3){b3=b3||c3.isDirtyData||c3.isDirty;f3=f3||c3.xAxis&&c3.xAxis.isDirty||false}));this.setAxisSize();var d3=this.len!==(this.old&&this.old.len);d3||b3||f3||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=false,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=d3||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b3&&this.panningState&&(this.panningState.isDirty=true);c2(this,"afterSetScale")};a3.prototype.setExtremes=function(b3,f3,d3,a4,e3){var h3=this,n3=h3.chart;d3=q(d3,true);h3.series.forEach((function(b4){delete b4.kdTree}));e3=y2(e3,{min:b3,max:f3});c2(h3,"setExtremes",e3,(function(){h3.userMin=b3;h3.userMax=f3;h3.eventArgs=e3;d3&&n3.redraw(a4)}))};a3.prototype.zoom=function(b3,f3){var d3=this,a4=this.dataMin,e3=this.dataMax,h3=this.options,n3=Math.min(a4,q(h3.min,a4)),u3=Math.max(e3,q(h3.max,e3));b3={newMin:b3,newMax:f3};c2(this,"zoom",b3,(function(b4){var c3=b4.newMin,f4=b4.newMax;if(c3!==d3.min||f4!==d3.max)d3.allowZoomOutside||(D2(a4)&&(c3<n3&&(c3=n3),c3>u3&&(c3=u3)),D2(e3)&&(f4<n3&&(f4=n3),f4>u3&&(f4=u3))),d3.displayBtn="undefined"!==typeof c3||"undefined"!==typeof f4,d3.setExtremes(c3,f4,false,void 0,{trigger:"zoom"});b4.zoomed=true}));return b3.zoomed};a3.prototype.setAxisSize=function(){var b3=this.chart,c3=this.options,f3=c3.offsets||[0,0,0,0],d3=this.horiz,a4=this.width=Math.round(N(q(c3.width,b3.plotWidth-f3[3]+f3[1]),b3.plotWidth)),e3=this.height=Math.round(N(q(c3.height,b3.plotHeight-f3[0]+f3[2]),b3.plotHeight)),h3=this.top=Math.round(N(q(c3.top,b3.plotTop+f3[0]),b3.plotHeight,b3.plotTop));c3=this.left=Math.round(N(q(c3.left,b3.plotLeft+f3[3]),b3.plotWidth,b3.plotLeft));this.bottom=b3.chartHeight-e3-h3;this.right=b3.chartWidth-a4-c3;this.len=Math.max(d3?a4:e3,0);this.pos=d3?c3:h3};a3.prototype.getExtremes=function(){var b3=this.logarithmic;return{min:b3?p2(b3.lin2log(this.min)):this.min,max:b3?p2(b3.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a3.prototype.getThreshold=function(b3){var c3=this.logarithmic,f3=c3?c3.lin2log(this.min):this.min;c3=c3?c3.lin2log(this.max):this.max;null===b3||-Infinity===b3?b3=f3:Infinity===b3?b3=c3:f3>b3?b3=f3:c3<b3&&(b3=c3);return this.translate(b3,0,1,0,1)};a3.prototype.autoLabelAlign=function(b3){var f3=(q(b3,0)-90*this.side+720)%360;b3={align:"center"};c2(this,"autoLabelAlign",b3,(function(b4){15<f3&&165>f3?b4.align="right":195<f3&&345>f3&&(b4.align="left")}));return b3.align};a3.prototype.tickSize=function(b3){var f3=this.options,d3=q(f3["tick"===b3?"tickWidth":"minorTickWidth"],"tick"===b3&&this.isXAxis&&!this.categories?1:0),a4=f3["tick"===b3?"tickLength":"minorTickLength"];if(d3&&a4){"inside"===f3[b3+"Position"]&&(a4=-a4);var e3=[a4,d3]}b3={tickSize:e3};c2(this,"afterTickSize",b3);return b3.tickSize};a3.prototype.labelMetrics=function(){var b3=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b3]&&this.ticks[b3].label)};a3.prototype.unsquish=function(){var b3=this.options.labels,c3=this.horiz,a4=this.tickInterval,e3=this.len/(((this.categories?1:0)+this.max-this.min)/a4),h3=b3.rotation,n3=this.labelMetrics(),u3=Math.max(this.max-this.min,0),g4=function(b4){var c4=b4/(e3||1);c4=1<c4?Math.ceil(c4):1;c4*a4>u3&&Infinity!==b4&&Infinity!==e3&&u3&&(c4=Math.ceil(u3/a4));return p2(c4*a4)},z3=a4,k3=Number.MAX_VALUE;if(c3){if(!b3.staggerLines)if(f2(h3))var w3=[h3];else e3<b3.autoRotationLimit&&(w3=b3.autoRotation);if(w3)for(var m3=c3=void 0,l3=0,J2=w3;l3<J2.length;l3++){var N2=J2[l3];if(N2===h3||N2&&-90<=N2&&90>=N2){if(c3=g4(Math.abs(n3.h/Math.sin(d2*N2))),m3=c3+Math.abs(N2/360),m3<k3){k3=m3;var y3=N2;z3=c3}}}}else z3=g4(n3.h);this.autoRotation=w3;this.labelRotation=q(y3,f2(h3)?h3:0);return b3.step?a4:z3};a3.prototype.getSlotWidth=function(b3){var c3=this.chart,d3=this.horiz,a4=this.options.labels,e3=Math.max(this.tickPositions.length-(this.categories?0:1),1),h3=c3.margin[3];if(b3&&f2(b3.slotWidth))return b3.slotWidth;if(d3&&2>a4.step)return a4.rotation?0:(this.staggerLines||1)*this.len/e3;if(!d3){b3=a4.style.width;if(void 0!==b3)return parseInt(String(b3),10);if(h3)return h3-c3.spacing[3]}return.33*c3.chartWidth};a3.prototype.renderUnsquish=function(){var b3=this.chart,c3=b3.renderer,f3=this.tickPositions,d3=this.ticks,a4=this.options.labels,e3=a4.style,h3=this.horiz,u3=this.getSlotWidth(),q2=Math.max(1,Math.round(u3-2*a4.padding)),g4={},z3=this.labelMetrics(),k3=e3.textOverflow,w3=0;n2(a4.rotation)||(g4.rotation=a4.rotation||0);f3.forEach((function(b4){b4=d3[b4];b4.movedLabel&&b4.replaceMovedLabel();b4&&b4.label&&b4.label.textPxLength>w3&&(w3=b4.label.textPxLength)}));this.maxLabelLength=w3;if(this.autoRotation)w3>q2&&w3>z3.h?g4.rotation=this.labelRotation:this.labelRotation=0;else if(u3){var m3=q2;if(!k3){var l3="clip";for(q2=f3.length;!h3&&q2--;){var p3=f3[q2];if(p3=d3[p3].label)p3.styles&&"ellipsis"===p3.styles.textOverflow?p3.css({textOverflow:"clip"}):p3.textPxLength>u3&&p3.css({width:u3+"px"}),p3.getBBox().height>this.len/f3.length-(z3.h-z3.f)&&(p3.specificTextOverflow="ellipsis")}}}g4.rotation&&(m3=w3>.5*b3.chartHeight?.33*b3.chartHeight:w3,k3||(l3="ellipsis"));if(this.labelAlign=a4.align||this.autoLabelAlign(this.labelRotation))g4.align=this.labelAlign;f3.forEach((function(b4){var c4=(b4=d3[b4])&&b4.label,f4=e3.width,a5={};c4&&(c4.attr(g4),b4.shortenLabel?b4.shortenLabel():m3&&!f4&&"nowrap"!==e3.whiteSpace&&(m3<c4.textPxLength||"SPAN"===c4.element.tagName)?(a5.width=m3+"px",k3||(a5.textOverflow=c4.specificTextOverflow||l3),c4.css(a5)):c4.styles&&c4.styles.width&&!a5.width&&!f4&&c4.css({width:null}),delete c4.specificTextOverflow,b4.rotation=g4.rotation)}),this);this.tickRotCorr=c3.rotCorr(z3.b,this.labelRotation||0,0!==this.side)};a3.prototype.hasData=function(){return this.series.some((function(b3){return b3.hasData()}))||this.options.showEmpty&&D2(this.min)&&D2(this.max)};a3.prototype.addTitle=function(c3){var f3=this.chart.renderer,d3=this.horiz,a4=this.opposite,e3=this.options.title,h3=this.chart.styledMode,n3;this.axisTitle||((n3=e3.textAlign)||(n3=(d3?{low:"left",middle:"center",high:"right"}:{low:a4?"right":"left",middle:"center",high:a4?"left":"right"})[e3.align]),this.axisTitle=f3.text(e3.text||"",0,0,e3.useHTML).attr({zIndex:7,rotation:e3.rotation,align:n3}).addClass("highcharts-axis-title"),h3||this.axisTitle.css(b2(e3.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=true);h3||e3.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c3?"show":"hide"](c3)};a3.prototype.generateTick=function(b3){var c3=this.ticks;c3[b3]?c3[b3].addLabel():c3[b3]=new H2(this,b3)};a3.prototype.getOffset=function(){var b3=this,f3=this,d3=f3.chart,a4=f3.horiz,e3=f3.options,h3=f3.side,n3=f3.ticks,u3=f3.tickPositions,g4=f3.coll,k3=f3.axisParent,w3=d3.renderer,m3=d3.inverted&&!f3.isZAxis?[1,0,3,2][h3]:h3,l3=f3.hasData(),p3=e3.title,N2=e3.labels,J2=d3.axisOffset;d3=d3.clipOffset;var y3=[-1,1,1,-1][h3],O3=e3.className,r3,Q2=0,ja=0,da=0;f3.showAxis=r3=l3||e3.showEmpty;f3.staggerLines=f3.horiz&&N2.staggerLines||void 0;if(!f3.axisGroup){var I2=function(c3,f4,d4){return w3.g(c3).attr({zIndex:d4}).addClass("highcharts-".concat(g4.toLowerCase()).concat(f4," ")+(b3.isRadial?"highcharts-radial-axis".concat(f4," "):"")+(O3||"")).add(k3)};f3.gridGroup=I2("grid","-grid",e3.gridZIndex);f3.axisGroup=I2("axis","",e3.zIndex);f3.labelGroup=I2("axis-labels","-labels",N2.zIndex)}l3||f3.isLinked?(u3.forEach((function(b4){f3.generateTick(b4)})),f3.renderUnsquish(),f3.reserveSpaceDefault=0===h3||2===h3||{1:"left",3:"right"}[h3]===f3.labelAlign,q(N2.reserveSpace,"center"===f3.labelAlign?true:null,f3.reserveSpaceDefault)&&u3.forEach((function(b4){da=Math.max(n3[b4].getLabelSize(),da)})),f3.staggerLines&&(da*=f3.staggerLines),f3.labelOffset=da*(f3.opposite?-1:1)):z2(n3,(function(b4,c3){b4.destroy();delete n3[c3]}));if(p3&&p3.text&&false!==p3.enabled&&(f3.addTitle(r3),r3&&false!==p3.reserveSpace)){f3.titleOffset=Q2=f3.axisTitle.getBBox()[a4?"height":"width"];var t3=p3.offset;ja=D2(t3)?0:q(p3.margin,a4?5:10)}f3.renderLine();f3.offset=y3*q(e3.offset,J2[h3]?J2[h3]+(e3.margin||0):0);f3.tickRotCorr=f3.tickRotCorr||{x:0,y:0};p3=0===h3?-f3.labelMetrics().h:2===h3?f3.tickRotCorr.y:0;l3=Math.abs(da)+ja;da&&(l3=l3-p3+y3*(a4?q(N2.y,f3.tickRotCorr.y+8*y3):N2.x));f3.axisTitleMargin=q(t3,l3);f3.getMaxLabelDimensions&&(f3.maxLabelDimensions=f3.getMaxLabelDimensions(n3,u3));"colorAxis"!==g4&&(a4=this.tickSize("tick"),J2[h3]=Math.max(J2[h3],(f3.axisTitleMargin||0)+Q2+y3*f3.offset,l3,u3&&u3.length&&a4?a4[0]+y3*f3.offset:0),e3=!f3.axisLine||e3.offset?0:2*Math.floor(f3.axisLine.strokeWidth()/2),d3[m3]=Math.max(d3[m3],e3));c2(this,"afterGetOffset")};a3.prototype.getLinePath=function(b3){var c3=this.chart,f3=this.opposite,d3=this.offset,a4=this.horiz,e3=this.left+(f3?this.width:0)+d3;d3=c3.chartHeight-this.bottom-(f3?this.height:0)+d3;f3&&(b3*=-1);return c3.renderer.crispLine([["M",a4?this.left:e3,a4?d3:this.top],["L",a4?c3.chartWidth-this.right:e3,a4?d3:c3.chartHeight-this.bottom]],b3)};a3.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};a3.prototype.getTitlePosition=function(){var b3=this.horiz,f3=this.left,d3=this.top,a4=this.len,e3=this.options.title,h3=b3?f3:d3,n3=this.opposite,u3=this.offset,q2=e3.x,g4=e3.y,z3=this.axisTitle,k3=this.chart.renderer.fontMetrics(e3.style.fontSize,z3);z3=z3?Math.max(z3.getBBox(false,0).height-k3.h-1,0):0;a4={low:h3+(b3?0:a4),middle:h3+a4/2,high:h3+(b3?a4:0)}[e3.align];f3=(b3?d3+this.height:f3)+(b3?1:-1)*(n3?-1:1)*(this.axisTitleMargin||0)+[-z3,z3,k3.f,-z3][this.side];b3={x:b3?a4+q2:f3+(n3?this.width:0)+u3+q2,y:b3?f3+g4-(n3?this.height:0)+u3:a4+g4};c2(this,"afterGetTitlePosition",{titlePosition:b3});return b3};a3.prototype.renderMinorTick=function(b3,c3){var f3=this.minorTicks;f3[b3]||(f3[b3]=new H2(this,b3,"minor"));c3&&f3[b3].isNew&&f3[b3].render(null,true);f3[b3].render(null,false,1)};a3.prototype.renderTick=function(b3,c3,f3){var d3=this.ticks;if(!this.isLinked||b3>=this.min&&b3<=this.max||this.grid&&this.grid.isColumn)d3[b3]||(d3[b3]=new H2(this,b3)),f3&&d3[b3].isNew&&d3[b3].render(c3,true,-1),d3[b3].render(c3)};a3.prototype.render=function(){var b3=this,d3=b3.chart,a4=b3.logarithmic,e3=b3.options,h3=b3.isLinked,n3=b3.tickPositions,u3=b3.axisTitle,q2=b3.ticks,g4=b3.minorTicks,k3=b3.alternateBands,w3=e3.stackLabels,m3=e3.alternateGridColor,l3=b3.tickmarkOffset,p3=b3.axisLine,N2=b3.showAxis,J2=r2(d3.renderer.globalAnimation),y3,O3;b3.labelEdge.length=0;b3.overlap=false;[q2,g4,k3].forEach((function(b4){z2(b4,(function(b5){b5.isActive=false}))}));if(b3.hasData()||h3){var D3=b3.chart.hasRendered&&b3.old&&f2(b3.old.min);b3.minorTickInterval&&!b3.categories&&b3.getMinorTickPositions().forEach((function(c3){b3.renderMinorTick(c3,D3)}));n3.length&&(n3.forEach((function(c3,f3){b3.renderTick(c3,f3,D3)})),l3&&(0===b3.min||b3.single)&&(q2[-1]||(q2[-1]=new H2(b3,-1,null,true)),q2[-1].render(-1)));m3&&n3.forEach((function(c3,f3){O3="undefined"!==typeof n3[f3+1]?n3[f3+1]+l3:b3.max-l3;0===f3%2&&c3<b3.max&&O3<=b3.max+(d3.polar?-l3:l3)&&(k3[c3]||(k3[c3]=new B.PlotLineOrBand(b3)),y3=c3+l3,k3[c3].options={from:a4?a4.lin2log(y3):y3,to:a4?a4.lin2log(O3):O3,color:m3,className:"highcharts-alternate-grid"},k3[c3].render(),k3[c3].isActive=true)}));b3._addedPlotLB||(b3._addedPlotLB=true,(e3.plotLines||[]).concat(e3.plotBands||[]).forEach((function(c3){b3.addPlotBandOrLine(c3)})))}[q2,g4,k3].forEach((function(b4){var c3=[],f3=J2.duration;z2(b4,(function(b5,f4){b5.isActive||(b5.render(f4,false,0),b5.isActive=false,c3.push(f4))}));Q((function(){for(var f4=c3.length;f4--;)b4[c3[f4]]&&!b4[c3[f4]].isActive&&(b4[c3[f4]].destroy(),delete b4[c3[f4]])}),b4!==k3&&d3.hasRendered&&f3?f3:0)}));p3&&(p3[p3.isPlaced?"animate":"attr"]({d:this.getLinePath(p3.strokeWidth())}),p3.isPlaced=true,p3[N2?"show":"hide"](N2));u3&&N2&&(e3=b3.getTitlePosition(),u3[u3.isNew?"attr":"animate"](e3),u3.isNew=false);w3&&w3.enabled&&b3.stacking&&b3.stacking.renderStackTotals();b3.old={len:b3.len,max:b3.max,min:b3.min,transA:b3.transA,userMax:b3.userMax,userMin:b3.userMin};b3.isDirty=false;c2(this,"afterRender")};a3.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(b3){b3.render()})));this.series.forEach((function(b3){b3.isDirty=true}))};a3.prototype.getKeepProps=function(){return this.keepProps||a3.keepProps};a3.prototype.destroy=function(b3){var f3=this,d3=f3.plotLinesAndBands,a4=this.eventOptions;c2(this,"destroy",{keepEvents:b3});b3||J(f3);[f3.ticks,f3.minorTicks,f3.alternateBands].forEach((function(b4){I(b4)}));if(d3)for(b3=d3.length;b3--;)d3[b3].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(b4){f3[b4]&&(f3[b4]=f3[b4].destroy())}));for(var e3 in f3.plotLinesAndBandsGroups)f3.plotLinesAndBandsGroups[e3]=f3.plotLinesAndBandsGroups[e3].destroy();z2(f3,(function(b4,c3){-1===f3.getKeepProps().indexOf(c3)&&delete f3[c3]}));this.eventOptions=a4};a3.prototype.drawCrosshair=function(b3,f3){var d3=this.crosshair,a4=q(d3&&d3.snap,true),e3=this.chart,h3,n3=this.cross;c2(this,"drawCrosshair",{e:b3,point:f3});b3||(b3=this.cross&&this.cross.e);if(d3&&false!==(D2(f3)||!a4)){a4?D2(f3)&&(h3=q("colorAxis"!==this.coll?f3.crosshairPos:null,this.isXAxis?f3.plotX:this.len-f3.plotY)):h3=b3&&(this.horiz?b3.chartX-this.pos:this.len-b3.chartY+this.pos);if(D2(h3)){var u3={value:f3&&(this.isXAxis?f3.x:q(f3.stackY,f3.y)),translatedValue:h3};e3.polar&&y2(u3,{isCrosshair:true,chartX:b3&&b3.chartX,chartY:b3&&b3.chartY,point:f3});u3=this.getPlotLinePath(u3)||null}if(!D2(u3)){this.hideCrosshair();return}a4=this.categories&&!this.isRadial;n3||(this.cross=n3=e3.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(a4?"category ":"thin ")+(d3.className||"")).attr({zIndex:q(d3.zIndex,2)}).add(),e3.styledMode||(n3.attr({stroke:d3.color||(a4?x2.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":q(d3.width,1)}).css({"pointer-events":"none"}),d3.dashStyle&&n3.attr({dashstyle:d3.dashStyle})));n3.show().attr({d:u3});a4&&!d3.width&&n3.attr({"stroke-width":this.transA});this.cross.e=b3}else this.hideCrosshair();c2(this,"afterDrawCrosshair",{e:b3,point:f3})};a3.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();c2(this,"afterHideCrosshair")};a3.prototype.hasVerticalPanning=function(){var b3=this.chart.options.chart.panning;return!!(b3&&b3.enabled&&/y/.test(b3.type))};a3.prototype.validatePositiveValue=function(b3){return f2(b3)&&0<b3};a3.prototype.update=function(c3,f3){var d3=this.chart;c3=b2(this.userOptions,c3);this.destroy(true);this.init(d3,c3);d3.isDirtyBox=true;q(f3,true)&&d3.redraw()};a3.prototype.remove=function(b3){for(var c3=this.chart,f3=this.coll,d3=this.series,a4=d3.length;a4--;)d3[a4]&&d3[a4].remove(false);E2(c3.axes,this);E2(c3[f3],this);c3[f3].forEach((function(b4,c4){b4.options.index=b4.userOptions.index=c4}));this.destroy();c3.isDirtyBox=true;q(b3,true)&&c3.redraw()};a3.prototype.setTitle=function(b3,c3){this.update({title:b3},c3)};a3.prototype.setCategories=function(b3,c3){this.update({categories:b3},c3)};a3.defaultOptions=g3.defaultXAxisOptions;a3.keepProps="extKey hcEvents names series userMax userMin".split(" ");return a3}();return a2}));K(g2,"Core/Axis/DateTimeAxis.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.addEvent,x2=a2.getMagnitude,F2=a2.normalizeTickInterval,C2=a2.timeUnits,B;(function(a3){function t2(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r2(d2){"datetime"!==d2.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new e2(this))}var l2=[];a3.compose=function(d2){-1===l2.indexOf(d2)&&(l2.push(d2),d2.keepProps.push("dateTime"),d2.prototype.getTimeTicks=t2,g3(d2,"init",r2));return d2};var e2=function(){function d2(d3){this.axis=d3}d2.prototype.normalizeTimeTickInterval=function(d3,a4){var e3=a4||[["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]];a4=e3[e3.length-1];var h2=C2[a4[0]],g4=a4[1],m2;for(m2=0;m2<e3.length&&!(a4=e3[m2],h2=C2[a4[0]],g4=a4[1],e3[m2+1]&&d3<=(h2*g4[g4.length-1]+C2[e3[m2+1][0]])/2);m2++);h2===C2.year&&d3<5*h2&&(g4=[1,2,5]);d3=F2(d3/h2,g4,"year"===a4[0]?Math.max(x2(d3/h2),1):1);return{unitRange:h2,count:d3,unitName:a4[0]}};d2.prototype.getXDateFormat=function(d3,a4){var e3=this.axis,h2=e3.chart.time;return e3.closestPointRange?h2.getDateFormat(e3.closestPointRange,d3,e3.options.startOfWeek,a4)||h2.resolveDTLFormat(a4.year).main:h2.resolveDTLFormat(a4.day).main};return d2}();a3.Additions=e2})(B||(B={}));return B}));K(g2,"Core/Axis/LogarithmicAxis.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.addEvent,x2=a2.normalizeTickInterval,F2=a2.pick,C2;(function(a3){function A2(a4){var d2=this.logarithmic;"logarithmic"!==a4.userOptions.type?this.logarithmic=void 0:d2||(this.logarithmic=new l2(this))}function t2(){var a4=this.logarithmic;a4&&(this.lin2val=function(d2){return a4.lin2log(d2)},this.val2lin=function(d2){return a4.log2lin(d2)})}var r2=[];a3.compose=function(a4){-1===r2.indexOf(a4)&&(r2.push(a4),a4.keepProps.push("logarithmic"),g3(a4,"init",A2),g3(a4,"afterInit",t2));return a4};var l2=function(){function a4(d2){this.axis=d2}a4.prototype.getLogTickPositions=function(d2,a5,e2,g4){var h2=this.axis,k2=h2.len,m2=h2.options,l3=[];g4||(this.minorAutoInterval=void 0);if(.5<=d2)d2=Math.round(d2),l3=h2.getLinearTickPositions(d2,a5,e2);else if(.08<=d2){var r3=Math.floor(a5),y2,c2=m2=void 0;for(k2=.3<d2?[1,2,4]:.15<d2?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];r3<e2+1&&!c2;r3++){var w2=k2.length;for(y2=0;y2<w2&&!c2;y2++){var f2=this.log2lin(this.lin2log(r3)*k2[y2]);f2>a5&&(!g4||m2<=e2)&&"undefined"!==typeof m2&&l3.push(m2);m2>e2&&(c2=true);m2=f2}}}else a5=this.lin2log(a5),e2=this.lin2log(e2),d2=g4?h2.getMinorTickInterval():m2.tickInterval,d2=F2("auto"===d2?null:d2,this.minorAutoInterval,m2.tickPixelInterval/(g4?5:1)*(e2-a5)/((g4?k2/h2.tickPositions.length:k2)||1)),d2=x2(d2),l3=h2.getLinearTickPositions(d2,a5,e2).map(this.log2lin),g4||(this.minorAutoInterval=d2/5);g4||(h2.tickInterval=d2);return l3};a4.prototype.lin2log=function(d2){return Math.pow(10,d2)};a4.prototype.log2lin=function(d2){return Math.log(d2)/Math.LN10};return a4}();a3.Additions=l2})(C2||(C2={}));return C2}));K(g2,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.erase,x2=a2.extend,F2=a2.isNumber,C2;(function(a3){var A2=[],t2;a3.compose=function(a4,e2){t2||(t2=a4);-1===A2.indexOf(e2)&&(A2.push(e2),x2(e2.prototype,r2.prototype));return e2};var r2=function(){function a4(){}a4.prototype.getPlotBandPath=function(a5,d2,h2){void 0===h2&&(h2=this.options);var e2=this.getPlotLinePath({value:d2,force:true,acrossPanes:h2.acrossPanes}),g4=[],l2=this.horiz;d2=!F2(this.min)||!F2(this.max)||a5<this.min&&d2<this.min||a5>this.max&&d2>this.max;a5=this.getPlotLinePath({value:a5,force:true,acrossPanes:h2.acrossPanes});h2=1;if(a5&&e2){if(d2){var r3=a5.toString()===e2.toString();h2=0}for(d2=0;d2<a5.length;d2+=2){var t3=a5[d2],E2=a5[d2+1],A3=e2[d2],y2=e2[d2+1];"M"!==t3[0]&&"L"!==t3[0]||"M"!==E2[0]&&"L"!==E2[0]||"M"!==A3[0]&&"L"!==A3[0]||"M"!==y2[0]&&"L"!==y2[0]||(l2&&A3[1]===t3[1]?(A3[1]+=h2,y2[1]+=h2):l2||A3[2]!==t3[2]||(A3[2]+=h2,y2[2]+=h2),g4.push(["M",t3[1],t3[2]],["L",E2[1],E2[2]],["L",y2[1],y2[2]],["L",A3[1],A3[2]],["Z"]));g4.isFlat=r3}}return g4};a4.prototype.addPlotBand=function(a5){return this.addPlotBandOrLine(a5,"plotBands")};a4.prototype.addPlotLine=function(a5){return this.addPlotBandOrLine(a5,"plotLines")};a4.prototype.addPlotBandOrLine=function(a5,d2){var e2=this,g4=this.userOptions,k2=new t2(this,a5);this.visible&&(k2=k2.render());if(k2){this._addedPlotLB||(this._addedPlotLB=true,(g4.plotLines||[]).concat(g4.plotBands||[]).forEach((function(a6){e2.addPlotBandOrLine(a6)})));if(d2){var l2=g4[d2]||[];l2.push(a5);g4[d2]=l2}this.plotLinesAndBands.push(k2)}return k2};a4.prototype.removePlotBandOrLine=function(a5){var d2=this.plotLinesAndBands,e2=this.options,m2=this.userOptions;if(d2){for(var k2=d2.length;k2--;)d2[k2].id===a5&&d2[k2].destroy();[e2.plotLines||[],m2.plotLines||[],e2.plotBands||[],m2.plotBands||[]].forEach((function(d3){for(k2=d3.length;k2--;)(d3[k2]||{}).id===a5&&g3(d3,d3[k2])}))}};a4.prototype.removePlotBand=function(a5){this.removePlotBandOrLine(a5)};a4.prototype.removePlotLine=function(a5){this.removePlotBandOrLine(a5)};return a4}()})(C2||(C2={}));return C2}));K(g2,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[g2["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=g3.arrayMax,F2=g3.arrayMin,C2=g3.defined,B=g3.destroyObjectProperties,H2=g3.erase,t2=g3.fireEvent,r2=g3.merge,l2=g3.objectEach,e2=g3.pick;g3=function(){function d2(a3,d3){this.axis=a3;d3&&(this.options=d3,this.id=d3.id)}d2.compose=function(e3){return a2.compose(d2,e3)};d2.prototype.render=function(){t2(this,"render");var a3=this,d3=a3.axis,g4=d3.horiz,p2=d3.logarithmic,D2=a3.options,I=D2.color,E2=e2(D2.zIndex,0),A3=D2.events,y2={},c2=d3.chart.renderer,w2=D2.label,f2=a3.label,n2=D2.to,b2=D2.from,u2=D2.value,z2=a3.svgElem,q=[],N=C2(b2)&&C2(n2);q=C2(u2);var J=!z2,O2={class:"highcharts-plot-"+(N?"band ":"line ")+(D2.className||"")},Q=N?"bands":"lines";p2&&(b2=p2.log2lin(b2),n2=p2.log2lin(n2),u2=p2.log2lin(u2));d3.chart.styledMode||(q?(O2.stroke=I||"#999999",O2["stroke-width"]=e2(D2.width,1),D2.dashStyle&&(O2.dashstyle=D2.dashStyle)):N&&(O2.fill=I||"#e6ebf5",D2.borderWidth&&(O2.stroke=D2.borderColor,O2["stroke-width"]=D2.borderWidth)));y2.zIndex=E2;Q+="-"+E2;(p2=d3.plotLinesAndBandsGroups[Q])||(d3.plotLinesAndBandsGroups[Q]=p2=c2.g("plot-"+Q).attr(y2).add());J&&(a3.svgElem=z2=c2.path().attr(O2).add(p2));if(q)q=d3.getPlotLinePath({value:u2,lineWidth:z2.strokeWidth(),acrossPanes:D2.acrossPanes});else if(N)q=d3.getPlotBandPath(b2,n2,D2);else return;!a3.eventsAdded&&A3&&(l2(A3,(function(b3,c3){z2.on(c3,(function(b4){A3[c3].apply(a3,[b4])}))})),a3.eventsAdded=true);(J||!z2.d)&&q&&q.length?z2.attr({d:q}):z2&&(q?(z2.show(),z2.animate({d:q})):z2.d&&(z2.hide(),f2&&(a3.label=f2=f2.destroy())));w2&&(C2(w2.text)||C2(w2.formatter))&&q&&q.length&&0<d3.width&&0<d3.height&&!q.isFlat?(w2=r2({align:g4&&N&&"center",x:g4?!N&&4:10,verticalAlign:!g4&&N&&"middle",y:g4?N?16:10:N?6:-4,rotation:g4&&!N&&90},w2),this.renderLabel(w2,q,N,E2)):f2&&f2.hide();return a3};d2.prototype.renderLabel=function(a3,d3,e3,g4){var h2=this.axis,k2=h2.chart.renderer,m2=this.label;m2||(this.label=m2=k2.text(this.getLabelText(a3),0,0,a3.useHTML).attr({align:a3.textAlign||a3.align,rotation:a3.rotation,class:"highcharts-plot-"+(e3?"band":"line")+"-label "+(a3.className||""),zIndex:g4}).add(),h2.chart.styledMode||m2.css(r2({textOverflow:"ellipsis"},a3.style)));g4=d3.xBounds||[d3[0][1],d3[1][1],e3?d3[2][1]:d3[0][1]];d3=d3.yBounds||[d3[0][2],d3[1][2],e3?d3[2][2]:d3[0][2]];e3=F2(g4);k2=F2(d3);m2.align(a3,false,{x:e3,y:k2,width:A2(g4)-e3,height:A2(d3)-k2});m2.alignValue&&"left"!==m2.alignValue||(a3=a3.clip?h2.width:h2.chart.chartWidth,m2.css({width:(90===m2.rotation?h2.height-(m2.alignAttr.y-h2.top):a3-(m2.alignAttr.x-h2.left))+"px"}));m2.show(true)};d2.prototype.getLabelText=function(a3){return C2(a3.formatter)?a3.formatter.call(this):a3.text};d2.prototype.destroy=function(){H2(this.axis.plotLinesAndBands,this);delete this.axis;B(this)};return d2}();return g3}));K(g2,"Core/Tooltip.js",[g2["Core/FormatUtilities.js"],g2["Core/Globals.js"],g2["Core/Renderer/RendererUtilities.js"],g2["Core/Renderer/RendererRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2){var A2=a2.format,H2=g3.doc,t2=x2.distribute,r2=C2.clamp,l2=C2.css,e2=C2.discardElement,d2=C2.extend,h2=C2.fireEvent,m2=C2.isArray,k2=C2.isNumber,p2=C2.isString,D2=C2.merge,I=C2.pick,E2=C2.splat,L2=C2.syncTimeout;a2=function(){function a3(c2,a4){this.allowShared=true;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=true;this.isSticky=false;this.now={};this.options={};this.outside=false;this.chart=c2;this.init(c2,a4)}a3.prototype.applyFilter=function(){var c2=this.chart;c2.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+c2.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})};a3.prototype.bodyFormatter=function(c2){return c2.map((function(c3){var f2=c3.series.tooltipOptions;return(f2[(c3.point.formatPrefix||"point")+"Formatter"]||c3.point.tooltipFormatter).call(c3.point,f2[(c3.point.formatPrefix||"point")+"Format"]||"")}))};a3.prototype.cleanSplit=function(c2){this.chart.series.forEach((function(a4){var f2=a4&&a4.tt;f2&&(!f2.isActive||c2?a4.tt=f2.destroy():f2.isActive=false)}))};a3.prototype.defaultFormatter=function(c2){var a4=this.points||E2(this);var f2=[c2.tooltipFooterHeaderFormatter(a4[0])];f2=f2.concat(c2.bodyFormatter(a4));f2.push(c2.tooltipFooterHeaderFormatter(a4[0],true));return f2};a3.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(true),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),e2(this.container));C2.clearTimeout(this.hideTimer);C2.clearTimeout(this.tooltipTimeout)};a3.prototype.getAnchor=function(c2,a4){var f2=this.chart,d3=f2.pointer,b2=f2.inverted,e3=f2.plotTop;f2=f2.plotLeft;c2=E2(c2);c2[0].series&&c2[0].series.yAxis&&!c2[0].series.yAxis.options.reversedStacks&&(c2=c2.slice().reverse());if(this.followPointer&&a4)"undefined"===typeof a4.chartX&&(a4=d3.normalize(a4)),c2=[a4.chartX-f2,a4.chartY-e3];else if(c2[0].tooltipPos)c2=c2[0].tooltipPos;else{var h3=0,g4=0;c2.forEach((function(b3){if(b3=b3.pos(true))h3+=b3[0],g4+=b3[1]}));h3/=c2.length;g4/=c2.length;this.shared&&1<c2.length&&a4&&(b2?h3=a4.chartX:g4=a4.chartY);c2=[h3-f2,g4-e3]}return c2.map(Math.round)};a3.prototype.getClassName=function(c2,a4,f2){var d3=c2.series,b2=d3.options;return[this.options.className,"highcharts-label",f2&&"highcharts-tooltip-header",a4?"highcharts-tooltip-box":"highcharts-tooltip",!f2&&"highcharts-color-"+I(c2.colorIndex,d3.colorIndex),b2&&b2.className].filter(p2).join(" ")};a3.prototype.getLabel=function(){var c2=this,a4=this.chart.styledMode,f2=this.options,d3=this.split&&this.allowShared,b2=f2.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),e3,h3=this.chart.renderer;if(c2.label){var q=!c2.label.hasClass("highcharts-label");(d3&&!q||!d3&&q)&&c2.destroy()}if(!this.label){if(this.outside){q=this.chart.options.chart.style;var k3=F2.getRendererType();this.container=e3=g3.doc.createElement("div");e3.className="highcharts-tooltip-container";l2(e3,{position:"absolute",top:"1px",pointerEvents:b2,zIndex:Math.max(this.options.style.zIndex||0,(q&&q.zIndex||0)+3)});g3.doc.body.appendChild(e3);this.renderer=h3=new k3(e3,0,0,q,void 0,void 0,h3.styledMode)}d3?this.label=h3.g("tooltip"):(this.label=h3.label("",0,0,f2.shape,void 0,void 0,f2.useHTML,void 0,"tooltip").attr({padding:f2.padding,r:f2.borderRadius}),a4||this.label.attr({fill:f2.backgroundColor,"stroke-width":f2.borderWidth}).css(f2.style).css({pointerEvents:b2}).shadow(f2.shadow));a4&&f2.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c2.outside&&!c2.split){var m3=this.label,p3=m3.xSetter,y2=m3.ySetter;m3.xSetter=function(b3){p3.call(m3,c2.distance);e3.style.left=b3+"px"};m3.ySetter=function(b3){y2.call(m3,c2.distance);e3.style.top=b3+"px"}}this.label.attr({zIndex:8}).add()}return this.label};a3.prototype.getPosition=function(c2,a4,f2){var d3=this.chart,b2=this.distance,e3={},h3=d3.inverted&&f2.h||0,g4=this.outside,k3=g4?H2.documentElement.clientWidth-2*b2:d3.chartWidth,w2=g4?Math.max(H2.body.scrollHeight,H2.documentElement.scrollHeight,H2.body.offsetHeight,H2.documentElement.offsetHeight,H2.documentElement.clientHeight):d3.chartHeight,m3=d3.pointer.getChartPosition(),l3=function(e4){var h4="x"===e4;return[e4,h4?k3:w2,h4?c2:a4].concat(g4?[h4?c2*m3.scaleX:a4*m3.scaleY,h4?m3.left-b2+(f2.plotX+d3.plotLeft)*m3.scaleX:m3.top-b2+(f2.plotY+d3.plotTop)*m3.scaleY,0,h4?k3:w2]:[h4?c2:a4,h4?f2.plotX+d3.plotLeft:f2.plotY+d3.plotTop,h4?d3.plotLeft:d3.plotTop,h4?d3.plotLeft+d3.plotWidth:d3.plotTop+d3.plotHeight])},p3=l3("y"),y2=l3("x"),v2;l3=!!f2.negative;!d3.polar&&d3.hoverSeries&&d3.hoverSeries.yAxis&&d3.hoverSeries.yAxis.reversed&&(l3=!l3);var r3=!this.followPointer&&I(f2.ttBelow,!d3.inverted===l3),t3=function(c3,f3,a5,d4,n2,u2,q){var z2=g4?"y"===c3?b2*m3.scaleY:b2*m3.scaleX:b2,k4=(a5-d4)/2,w3=d4<n2-b2,G2=n2+b2+d4<f3,l4=n2-z2-a5+k4;n2=n2+z2-k4;if(r3&&G2)e3[c3]=n2;else if(!r3&&w3)e3[c3]=l4;else if(w3)e3[c3]=Math.min(q-d4,0>l4-h3?l4:l4-h3);else if(G2)e3[c3]=Math.max(u2,n2+h3+a5>f3?n2:n2+h3);else return false},D3=function(c3,f3,a5,d4,h4){var n2;h4<b2||h4>f3-b2?n2=false:e3[c3]=h4<a5/2?1:h4>f3-d4/2?f3-d4-2:h4-a5/2;return n2},E3=function(b3){var c3=p3;p3=y2;y2=c3;v2=b3},G=function(){false!==t3.apply(0,p3)?false!==D3.apply(0,y2)||v2||(E3(true),G()):v2?e3.x=e3.y=0:(E3(true),G())};(d3.inverted||1<this.len)&&E3();G();return e3};a3.prototype.hide=function(c2){var a4=this;C2.clearTimeout(this.hideTimer);c2=I(c2,this.options.hideDelay);this.isHidden||(this.hideTimer=L2((function(){a4.getLabel().fadeOut(c2?void 0:c2);a4.isHidden=true}),c2))};a3.prototype.init=function(c2,a4){this.chart=c2;this.options=a4;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=true;this.split=a4.split&&!c2.inverted&&!c2.polar;this.shared=a4.shared||this.split;this.outside=I(a4.outside,!(!c2.scrollablePixelsX&&!c2.scrollablePixelsY))};a3.prototype.shouldStickOnContact=function(c2){return!(this.followPointer||!this.options.stickOnContact||c2&&!this.chart.pointer.inClass(c2.target,"highcharts-tooltip"))};a3.prototype.move=function(c2,a4,f2,e3){var b2=this,h3=b2.now,n2=false!==b2.options.animation&&!b2.isHidden&&(1<Math.abs(c2-h3.x)||1<Math.abs(a4-h3.y)),g4=b2.followPointer||1<b2.len;d2(h3,{x:n2?(2*h3.x+c2)/3:c2,y:n2?(h3.y+a4)/2:a4,anchorX:g4?void 0:n2?(2*h3.anchorX+f2)/3:f2,anchorY:g4?void 0:n2?(h3.anchorY+e3)/2:e3});b2.getLabel().attr(h3);b2.drawTracker();n2&&(C2.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){b2&&b2.move(c2,a4,f2,e3)}),32))};a3.prototype.refresh=function(c2,a4){var f2=this.chart,d3=this.options,b2=f2.pointer,e3=E2(c2),g4=e3[0],q=[],k3=d3.formatter||this.defaultFormatter,w2=this.shared,l3=f2.styledMode,p3={};if(d3.enabled&&g4.series){C2.clearTimeout(this.hideTimer);this.allowShared=!(!m2(c2)&&c2.series&&c2.series.noSharedTooltip);this.followPointer=!this.split&&g4.series.tooltipOptions.followPointer;c2=this.getAnchor(c2,a4);var y2=c2[0],r3=c2[1];w2&&this.allowShared?(b2.applyInactiveState(e3),e3.forEach((function(b3){b3.setState("hover");q.push(b3.getLabelConfig())})),p3={x:g4.category,y:g4.y},p3.points=q):p3=g4.getLabelConfig();this.len=q.length;k3=k3.call(p3,this);w2=g4.series;this.distance=I(w2.tooltipOptions.distance,16);if(false===k3)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k3,e3);else{var v2=y2,t3=r3;a4&&b2.isDirectTouch&&(v2=a4.chartX-f2.plotLeft,t3=a4.chartY-f2.plotTop);if(f2.polar||false===w2.options.clip||e3.some((function(c3){return b2.isDirectTouch||c3.series.shouldShowTooltip(v2,t3)})))a4=this.getLabel(),d3.style.width&&!l3||a4.css({width:f2.spacingBox.width+"px"}),a4.attr({text:k3&&k3.join?k3.join(""):k3}),a4.addClass(this.getClassName(g4),true),l3||a4.attr({stroke:d3.borderColor||g4.color||w2.color||"#666666"}),this.updatePosition({plotX:y2,plotY:r3,negative:g4.negative,ttBelow:g4.ttBelow,h:c2[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=false}h2(this,"refresh")}};a3.prototype.renderSplit=function(c2,a4){function f2(b3,c3,a5,f3,d3){void 0===d3&&(d3=true);a5?(c3=R2?0:ba,b3=r2(b3-f3/2,P.left,P.right-f3-(e3.outside?V2:0))):(c3-=Z,b3=d3?b3-f3-x3:b3+x3,b3=r2(b3,d3?b3:P.left,P.right));return{x:b3,y:c3}}var e3=this,b2=e3.chart,h3=e3.chart,g4=h3.chartWidth,q=h3.chartHeight,k3=h3.plotHeight,w2=h3.plotLeft,m3=h3.plotTop,l3=h3.pointer,y2=h3.scrollablePixelsY;y2=void 0===y2?0:y2;var D3=h3.scrollablePixelsX,v2=h3.scrollingContainer;v2=void 0===v2?{scrollLeft:0,scrollTop:0}:v2;var E3=v2.scrollLeft;v2=v2.scrollTop;var A3=h3.styledMode,x3=e3.distance,L3=e3.options,G=e3.options.positioner,P=e3.outside&&"number"!==typeof D3?H2.documentElement.getBoundingClientRect():{left:E3,right:E3+g4,top:v2,bottom:v2+q},M=e3.getLabel(),X=this.renderer||b2.renderer,R2=!(!b2.xAxis[0]||!b2.xAxis[0].opposite);b2=l3.getChartPosition();var V2=b2.left;b2=b2.top;var Z=m3+v2,C3=0,ba=k3-y2;p2(c2)&&(c2=[false,c2]);c2=c2.slice(0,a4.length+1).reduce((function(b3,c3,d3){if(false!==c3&&""!==c3){d3=a4[d3-1]||{isHeader:true,plotX:a4[0].plotX,plotY:k3,series:{}};var h4=d3.isHeader,n2=h4?e3:d3.series;c3=c3.toString();var g5=n2.tt,u2=d3.isHeader;var q2=d3.series;g5||(g5={padding:L3.padding,r:L3.borderRadius},A3||(g5.fill=L3.backgroundColor,g5["stroke-width"]=L3.borderWidth),g5=X.label("",0,0,L3[u2?"headerShape":"shape"],void 0,void 0,L3.useHTML).addClass(e3.getClassName(d3,true,u2)).attr(g5).add(M));g5.isActive=true;g5.attr({text:c3});A3||g5.css(L3.style).shadow(L3.shadow).attr({stroke:L3.borderColor||d3.color||q2.color||"#333333"});n2=n2.tt=g5;u2=n2.getBBox();c3=u2.width+n2.strokeWidth();h4&&(C3=u2.height,ba+=C3,R2&&(Z-=C3));q2=d3.plotX;q2=void 0===q2?0:q2;g5=d3.plotY;g5=void 0===g5?0:g5;var z2=d3.series;if(d3.isHeader){q2=w2+q2;var l4=m3+k3/2}else{var v3=z2.xAxis,p3=z2.yAxis;q2=v3.pos+r2(q2,-x3,v3.len+x3);z2.shouldShowTooltip(0,p3.pos-m3+g5,{ignoreX:true})&&(l4=p3.pos+g5)}q2=r2(q2,P.left-x3,P.right+x3);"number"===typeof l4?(u2=u2.height+1,g5=G?G.call(e3,c3,u2,d3):f2(q2,l4,h4,c3),b3.push({align:G?0:void 0,anchorX:q2,anchorY:l4,boxWidth:c3,point:d3,rank:I(g5.rank,h4?1:0),size:u2,target:g5.y,tt:n2,x:g5.x})):n2.isActive=false}return b3}),[]);!G&&c2.some((function(b3){var c3=(e3.outside?V2:0)+b3.anchorX;return c3<P.left&&c3+b3.boxWidth<P.right?true:c3<V2-P.left+b3.boxWidth&&P.right-c3>c3}))&&(c2=c2.map((function(b3){var c3=f2(b3.anchorX,b3.anchorY,b3.point.isHeader,b3.boxWidth,false);return d2(b3,{target:c3.y,x:c3.x})})));e3.cleanSplit();t2(c2,ba);var B=V2,F3=V2;c2.forEach((function(b3){var c3=b3.x,a5=b3.boxWidth;b3=b3.isHeader;b3||(e3.outside&&V2+c3<B&&(B=V2+c3),!b3&&e3.outside&&B+a5>F3&&(F3=V2+c3))}));c2.forEach((function(b3){var c3=b3.x,a5=b3.anchorX,f3=b3.pos,d3=b3.point.isHeader;f3={visibility:"undefined"===typeof f3?"hidden":"inherit",x:c3,y:(f3||0)+Z,anchorX:a5,anchorY:b3.anchorY};if(e3.outside&&c3<a5){var h4=V2-B;0<h4&&(d3||(f3.x=c3+h4,f3.anchorX=a5+h4),d3&&(f3.x=(F3-B)/2,f3.anchorX=a5+h4))}b3.tt.attr(f3)}));c2=e3.container;y2=e3.renderer;e3.outside&&c2&&y2&&(h3=M.getBBox(),y2.setSize(h3.width+h3.x,h3.height+h3.y,false),c2.style.left=B+"px",c2.style.top=b2+"px")};a3.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var c2=this.chart,a4=this.label,f2=this.shared?c2.hoverPoints:c2.hoverPoint;if(a4&&f2){var d3={x:0,y:0,width:0,height:0};f2=this.getAnchor(f2);var b2=a4.getBBox();f2[0]+=c2.plotLeft-a4.translateX;f2[1]+=c2.plotTop-a4.translateY;d3.x=Math.min(0,f2[0]);d3.y=Math.min(0,f2[1]);d3.width=0>f2[0]?Math.max(Math.abs(f2[0]),b2.width-f2[0]):Math.max(Math.abs(f2[0]),b2.width);d3.height=0>f2[1]?Math.max(Math.abs(f2[1]),b2.height-Math.abs(f2[1])):Math.max(Math.abs(f2[1]),b2.height);this.tracker?this.tracker.attr(d3):(this.tracker=a4.renderer.rect(d3).addClass("highcharts-tracker").add(a4),c2.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};a3.prototype.styledModeFormat=function(c2){return c2.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')};a3.prototype.tooltipFooterHeaderFormatter=function(c2,a4){var f2=c2.series,d3=f2.tooltipOptions,b2=f2.xAxis,e3=b2&&b2.dateTime;b2={isFooter:a4,labelConfig:c2};var g4=d3.xDateFormat,q=d3[a4?"footerFormat":"headerFormat"];h2(this,"headerFormatter",b2,(function(b3){e3&&!g4&&k2(c2.key)&&(g4=e3.getXDateFormat(c2.key,d3.dateTimeLabelFormats));e3&&g4&&(c2.point&&c2.point.tooltipDateKeys||["key"]).forEach((function(b4){q=q.replace("{point."+b4+"}","{point."+b4+":"+g4+"}")}));f2.chart.styledMode&&(q=this.styledModeFormat(q));b3.text=A2(q,{point:c2,series:f2},this.chart)}));return b2.text};a3.prototype.update=function(c2){this.destroy();D2(true,this.chart.options.tooltip.userOptions,c2);this.init(this.chart,D2(true,this.options,c2))};a3.prototype.updatePosition=function(c2){var a4=this.chart,f2=this.distance,d3=this.options,b2=a4.pointer,e3=this.getLabel(),h3=b2.getChartPosition();b2=h3.left;var g4=h3.top,k3=h3.scaleX;h3=h3.scaleY;var m3=(d3.positioner||this.getPosition).call(this,e3.width,e3.height,c2),p3=(c2.plotX||0)+a4.plotLeft;c2=(c2.plotY||0)+a4.plotTop;if(this.outside){d3.positioner&&(m3.x+=b2-f2,m3.y+=g4-f2);f2=d3.borderWidth+2*f2;this.renderer.setSize(e3.width+f2,e3.height+f2,false);if(1!==k3||1!==h3)l2(this.container,{transform:"scale(".concat(k3,", ").concat(h3,")")}),p3*=k3,c2*=h3;p3+=b2-m3.x;c2+=g4-m3.y}this.move(Math.round(m3.x),Math.round(m3.y||0),p3,c2)};return a3}();return a2}));K(g2,"Core/Series/Point.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Animation/AnimationUtilities.js"],g2["Core/Defaults.js"],g2["Core/FormatUtilities.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2){var A2=g3.animObject,H2=x2.defaultOptions,t2=F2.format,r2=C2.addEvent,l2=C2.defined,e2=C2.erase,d2=C2.extend,h2=C2.fireEvent,m2=C2.getNestedProperty,k2=C2.isArray,p2=C2.isFunction,D2=C2.isNumber,I=C2.isObject,E2=C2.merge,L2=C2.objectEach,y2=C2.pick,c2=C2.syncTimeout,w2=C2.removeEvent,f2=C2.uniqueKey;g3=function(){function g4(){this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=false;this.percentage=this.options=this.name=void 0;this.selected=false;this.total=this.shapeArgs=this.series=void 0;this.visible=true;this.x=void 0}g4.prototype.animateBeforeDestroy=function(){var b2=this,c3={x:b2.startXPos,opacity:0},a3=b2.getGraphicalProps();a3.singular.forEach((function(a4){b2[a4]=b2[a4].animate("dataLabel"===a4?{x:b2[a4].startXPos,y:b2[a4].startYPos,opacity:0}:c3)}));a3.plural.forEach((function(c4){b2[c4].forEach((function(c5){c5.element&&c5.animate(d2({x:b2.startXPos},c5.startYPos?{x:c5.startXPos,y:c5.startYPos}:{}))}))}))};g4.prototype.applyOptions=function(b2,c3){var a3=this.series,f3=a3.options.pointValKey||a3.pointValKey;b2=g4.prototype.optionsToObject.call(this,b2);d2(this,b2);this.options=this.options?d2(this.options,b2):b2;b2.group&&delete this.group;b2.dataLabels&&delete this.dataLabels;f3&&(this.y=g4.prototype.getNestedProperty.call(this,f3));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c3&&a3.xAxis&&a3.xAxis.hasNames&&(this.x=a3.xAxis.nameToX(this));"undefined"===typeof this.x&&a3?this.x="undefined"===typeof c3?a3.autoIncrement():c3:D2(b2.x)&&a3.options.relativeXValue&&(this.x=a3.autoIncrement(b2.x));return this};g4.prototype.destroy=function(){function b2(){if(a3.graphic||a3.graphics||a3.dataLabel||a3.dataLabels)w2(a3),a3.destroyElements();for(n2 in a3)a3[n2]=null}var a3=this,f3=a3.series,d3=f3.chart;f3=f3.options.dataSorting;var h3=d3.hoverPoints,g5=A2(a3.series.chart.renderer.globalAnimation),n2;a3.legendItem&&d3.legend.destroyItem(a3);h3&&(a3.setState(),e2(h3,a3),h3.length||(d3.hoverPoints=null));if(a3===d3.hoverPoint)a3.onMouseOut();f3&&f3.enabled?(this.animateBeforeDestroy(),c2(b2,g5.duration)):b2();d3.pointCount--};g4.prototype.destroyElements=function(b2){var c3=this;b2=c3.getGraphicalProps(b2);b2.singular.forEach((function(b3){c3[b3]=c3[b3].destroy()}));b2.plural.forEach((function(b3){c3[b3].forEach((function(b4){b4&&b4.element&&b4.destroy()}));delete c3[b3]}))};g4.prototype.firePointEvent=function(b2,c3,a3){var f3=this,d3=this.series.options;(d3.point.events[b2]||f3.options&&f3.options.events&&f3.options.events[b2])&&f3.importEvents();"click"===b2&&d3.allowPointSelect&&(a3=function(b3){f3.select&&f3.select(null,b3.ctrlKey||b3.metaKey||b3.shiftKey)});h2(f3,b2,c3,a3)};g4.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};g4.prototype.getGraphicalProps=function(b2){var c3=this,a3=[],f3={singular:[],plural:[]},d3;b2=b2||{graphic:1,dataLabel:1};b2.graphic&&a3.push("graphic","shadowGroup");b2.dataLabel&&a3.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(d3=a3.length;d3--;){var e3=a3[d3];c3[e3]&&f3.singular.push(e3)}["graphic","dataLabel","connector"].forEach((function(a4){var d4=a4+"s";b2[a4]&&c3[d4]&&f3.plural.push(d4)}));return f3};g4.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};g4.prototype.getNestedProperty=function(b2){if(b2)return 0===b2.indexOf("custom.")?m2(b2,this.options):this[b2]};g4.prototype.getZone=function(){var b2=this.series,c3=b2.zones;b2=b2.zoneAxis||"y";var a3,f3=0;for(a3=c3[f3];this[b2]>=a3.value;)a3=c3[++f3];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=a3&&a3.color&&!this.options.color?a3.color:this.nonZonedColor;return a3};g4.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};g4.prototype.init=function(b2,c3,a3){this.series=b2;this.applyOptions(c3,a3);this.id=l2(this.id)?this.id:f2();this.resolveColor();b2.chart.pointCount++;h2(this,"afterInit");return this};g4.prototype.isValid=function(){return null!==this.x&&D2(this.y)};g4.prototype.optionsToObject=function(b2){var c3=this.series,a3=c3.options.keys,f3=a3||c3.pointArrayMap||["y"],d3=f3.length,e3={},h3=0,n2=0;if(D2(b2)||null===b2)e3[f3[0]]=b2;else if(k2(b2))for(!a3&&b2.length>d3&&(c3=typeof b2[0],"string"===c3?e3.name=b2[0]:"number"===c3&&(e3.x=b2[0]),h3++);n2<d3;)a3&&"undefined"===typeof b2[h3]||(0<f3[n2].indexOf(".")?g4.prototype.setNestedProperty(e3,b2[h3],f3[n2]):e3[f3[n2]]=b2[h3]),h3++,n2++;else"object"===typeof b2&&(e3=b2,b2.dataLabels&&(c3._hasPointLabels=true),b2.marker&&(c3._hasPointMarkers=true));return e3};g4.prototype.pos=function(b2,c3){void 0===c3&&(c3=this.plotY);var a3=this.plotX,f3=this.series,d3=f3.chart,e3=f3.xAxis;f3=f3.yAxis;var h3=0,g5=0;if(D2(a3)&&D2(c3))return b2&&(h3=e3?e3.pos:d3.plotLeft,g5=f3?f3.pos:d3.plotTop),d3.inverted&&e3&&f3?[f3.len-c3+g5,e3.len-a3+h3]:[a3+h3,c3+g5]};g4.prototype.resolveColor=function(){var b2=this.series,c3=b2.chart.styledMode;var a3=b2.chart.options.chart.colorCount;delete this.nonZonedColor;if(b2.options.colorByPoint){if(!c3){a3=b2.options.colors||b2.chart.options.colors;var f3=a3[b2.colorCounter];a3=a3.length}c3=b2.colorCounter;b2.colorCounter++;b2.colorCounter===a3&&(b2.colorCounter=0)}else c3||(f3=b2.color),c3=b2.colorIndex;this.colorIndex=y2(this.options.colorIndex,c3);this.color=y2(this.options.color,f3)};g4.prototype.setNestedProperty=function(b2,c3,a3){a3.split(".").reduce((function(b3,a4,f3,d3){b3[a4]=d3.length-1===f3?c3:I(b3[a4],true)?b3[a4]:{};return b3[a4]}),b2);return b2};g4.prototype.shouldDraw=function(){return!this.isNull};g4.prototype.tooltipFormatter=function(b2){var c3=this.series,a3=c3.tooltipOptions,f3=y2(a3.valueDecimals,""),d3=a3.valuePrefix||"",e3=a3.valueSuffix||"";c3.chart.styledMode&&(b2=c3.chart.tooltip.styledModeFormat(b2));(c3.pointArrayMap||["y"]).forEach((function(c4){c4="{point."+c4;if(d3||e3)b2=b2.replace(RegExp(c4+"}","g"),d3+c4+"}"+e3);b2=b2.replace(RegExp(c4+"}","g"),c4+":,."+f3+"f}")}));return t2(b2,{point:this,series:this.series},c3.chart)};g4.prototype.update=function(b2,c3,a3,f3){function d3(){e3.applyOptions(b2);var f4=g5&&e3.hasMockGraphic;f4=null===e3.y?!f4:f4;g5&&f4&&(e3.graphic=g5.destroy(),delete e3.hasMockGraphic);I(b2,true)&&(g5&&g5.element&&b2&&b2.marker&&"undefined"!==typeof b2.marker.symbol&&(e3.graphic=g5.destroy()),b2&&b2.dataLabels&&e3.dataLabel&&(e3.dataLabel=e3.dataLabel.destroy()),e3.connector&&(e3.connector=e3.connector.destroy()));u2=e3.index;h3.updateParallelArrays(e3,u2);q.data[u2]=I(q.data[u2],true)||I(b2,true)?e3.options:y2(b2,q.data[u2]);h3.isDirty=h3.isDirtyData=true;!h3.fixedBox&&h3.hasCartesianSeries&&(n2.isDirtyBox=true);"point"===q.legendType&&(n2.isDirtyLegend=true);c3&&n2.redraw(a3)}var e3=this,h3=e3.series,g5=e3.graphic,n2=h3.chart,q=h3.options,u2;c3=y2(c3,true);false===f3?d3():e3.firePointEvent("update",{options:b2},d3)};g4.prototype.remove=function(b2,c3){this.series.removePoint(this.series.data.indexOf(this),b2,c3)};g4.prototype.select=function(b2,c3){var a3=this,f3=a3.series,d3=f3.chart;this.selectedStaging=b2=y2(b2,!a3.selected);a3.firePointEvent(b2?"select":"unselect",{accumulate:c3},(function(){a3.selected=a3.options.selected=b2;f3.options.data[f3.data.indexOf(a3)]=a3.options;a3.setState(b2&&"select");c3||d3.getSelectedPoints().forEach((function(b3){var c4=b3.series;b3.selected&&b3!==a3&&(b3.selected=b3.options.selected=false,c4.options.data[c4.data.indexOf(b3)]=b3.options,b3.setState(d3.hoverPoints&&c4.options.inactiveOtherPoints?"inactive":""),b3.firePointEvent("unselect"))}))}));delete this.selectedStaging};g4.prototype.onMouseOver=function(b2){var c3=this.series.chart,a3=c3.pointer;b2=b2?a3.normalize(b2):a3.getChartCoordinatesFromPoint(this,c3.inverted);a3.runPointActions(b2,this)};g4.prototype.onMouseOut=function(){var b2=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(b2.hoverPoints||[]).forEach((function(b3){b3.setState()}));b2.hoverPoints=b2.hoverPoint=null};g4.prototype.importEvents=function(){if(!this.hasImportedEvents){var b2=this,c3=E2(b2.series.options.point,b2.options).events;b2.events=c3;L2(c3,(function(c4,a3){p2(c4)&&r2(b2,a3,c4)}));this.hasImportedEvents=true}};g4.prototype.setState=function(b2,c3){var f3=this.series,e3=this.state,g5=f3.options.states[b2||"normal"]||{},n2=H2.plotOptions[f3.type].marker&&f3.options.marker,u2=n2&&false===n2.enabled,k3=n2&&n2.states&&n2.states[b2||"normal"]||{},m3=false===k3.enabled,w3=this.marker||{},l3=f3.chart,p3=n2&&f3.markerAttribs,r3=f3.halo,t3,E3=f3.stateMarkerGraphic;b2=b2||"";if(!(b2===this.state&&!c3||this.selected&&"select"!==b2||false===g5.enabled||b2&&(m3||u2&&false===k3.enabled)||b2&&w3.states&&w3.states[b2]&&false===w3.states[b2].enabled)){this.state=b2;p3&&(t3=f3.markerAttribs(this,b2));if(this.graphic&&!this.hasMockGraphic){e3&&this.graphic.removeClass("highcharts-point-"+e3);b2&&this.graphic.addClass("highcharts-point-"+b2);if(!l3.styledMode){e3=f3.pointAttribs(this,b2);var G=y2(l3.options.chart.animation,g5.animation);var P=e3.opacity;f3.options.inactiveOtherPoints&&D2(P)&&((this.dataLabels||[]).forEach((function(b3){b3&&!b3.hasClass("highcharts-data-label-hidden")&&b3.animate({opacity:P},G)})),this.connector&&this.connector.animate({opacity:P},G));this.graphic.animate(e3,G)}t3&&this.graphic.animate(t3,y2(l3.options.chart.animation,k3.animation,n2.animation));E3&&E3.hide()}else{if(b2&&k3){n2=w3.symbol||f3.symbol;E3&&E3.currentSymbol!==n2&&(E3=E3.destroy());if(t3)if(E3)E3[c3?"animate":"attr"]({x:t3.x,y:t3.y});else n2&&(f3.stateMarkerGraphic=E3=l3.renderer.symbol(n2,t3.x,t3.y,t3.width,t3.height).add(f3.markerGroup),E3.currentSymbol=n2);!l3.styledMode&&E3&&"inactive"!==this.state&&E3.attr(f3.pointAttribs(this,b2))}E3&&(E3[b2&&this.isInside?"show":"hide"](),E3.element.point=this,E3.addClass(this.getClassName(),true))}g5=g5.halo;t3=(E3=this.graphic||E3)&&E3.visibility||"inherit";g5&&g5.size&&E3&&"hidden"!==t3&&!this.isCluster?(r3||(f3.halo=r3=l3.renderer.path().add(E3.parentGroup)),r3.show()[c3?"animate":"attr"]({d:this.haloPath(g5.size)}),r3.attr({class:"highcharts-halo highcharts-color-"+y2(this.colorIndex,f3.colorIndex)+(this.className?" "+this.className:""),visibility:t3,zIndex:-1}),r3.point=this,l3.styledMode||r3.attr(d2({fill:this.color||f3.color,"fill-opacity":g5.opacity},a2.filterUserAttributes(g5.attributes||{})))):r3&&r3.point&&r3.point.haloPath&&r3.animate({d:r3.point.haloPath(0)},null,r3.hide);h2(this,"afterSetState",{state:b2})}};g4.prototype.haloPath=function(b2){var c3=this.pos();return c3?this.series.chart.renderer.symbols.circle(Math.floor(c3[0])-b2,c3[1]-b2,2*b2,2*b2):[]};return g4}();return g3}));K(g2,"Core/Pointer.js",[g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Tooltip.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=a2.parse,B=g3.charts,H2=g3.noop,t2=F2.addEvent,r2=F2.attr,l2=F2.css,e2=F2.defined,d2=F2.extend,h2=F2.find,m2=F2.fireEvent,k2=F2.isNumber,p2=F2.isObject,D2=F2.objectEach,I=F2.offset,E2=F2.pick,L2=F2.splat;a2=function(){function a3(c2,a4){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=false;this.eventsToUnbind=[];this.chart=c2;this.hasDragged=false;this.options=a4;this.init(c2,a4)}a3.prototype.applyInactiveState=function(c2){var a4=[],f2;(c2||[]).forEach((function(c3){f2=c3.series;a4.push(f2);f2.linkedParent&&a4.push(f2.linkedParent);f2.linkedSeries&&(a4=a4.concat(f2.linkedSeries));f2.navigatorSeries&&a4.push(f2.navigatorSeries)}));this.chart.series.forEach((function(c3){-1===a4.indexOf(c3)?c3.setState("inactive",true):c3.options.inactiveOtherPoints&&c3.setAllPointsToState("inactive")}))};a3.prototype.destroy=function(){var c2=this;this.eventsToUnbind.forEach((function(c3){return c3()}));this.eventsToUnbind=[];g3.chartCount||(a3.unbindDocumentMouseUp&&(a3.unbindDocumentMouseUp=a3.unbindDocumentMouseUp()),a3.unbindDocumentTouchEnd&&(a3.unbindDocumentTouchEnd=a3.unbindDocumentTouchEnd()));clearInterval(c2.tooltipTimeout);D2(c2,(function(a4,f2){c2[f2]=void 0}))};a3.prototype.getSelectionMarkerAttrs=function(c2,a4){var f2=this,d3={args:{chartX:c2,chartY:a4},attrs:{},shapeType:"rect"};m2(this,"getSelectionMarkerAttrs",d3,(function(b2){var d4=f2.chart,e3=f2.mouseDownX;e3=void 0===e3?0:e3;var h3=f2.mouseDownY;h3=void 0===h3?0:h3;var g4=f2.zoomHor,n2=f2.zoomVert;b2=b2.attrs;b2.x=d4.plotLeft;b2.y=d4.plotTop;b2.width=g4?1:d4.plotWidth;b2.height=n2?1:d4.plotHeight;g4&&(d4=c2-e3,b2.width=Math.abs(d4),b2.x=(0<d4?0:d4)+e3);n2&&(d4=a4-h3,b2.height=Math.abs(d4),b2.y=(0<d4?0:d4)+h3)}));return d3};a3.prototype.drag=function(c2){var a4=this.chart,f2=a4.options.chart,d3=a4.plotLeft,b2=a4.plotTop,e3=a4.plotWidth,h3=a4.plotHeight,g4=this.mouseDownX||0,k3=this.mouseDownY||0,m3=p2(f2.panning)?f2.panning&&f2.panning.enabled:f2.panning,l3=f2.panKey&&c2[f2.panKey+"Key"],y2=c2.chartX,r3=c2.chartY,t3=this.selectionMarker;t3&&t3.touch||(y2<d3?y2=d3:y2>d3+e3&&(y2=d3+e3),r3<b2?r3=b2:r3>b2+h3&&(r3=b2+h3),this.hasDragged=Math.sqrt(Math.pow(g4-y2,2)+Math.pow(k3-r3,2)),10<this.hasDragged&&(d3=a4.isInsidePlot(g4-d3,k3-b2,{visiblePlotOnly:true}),r3=this.getSelectionMarkerAttrs(y2,r3),y2=r3.shapeType,r3=r3.attrs,!a4.hasCartesianSeries&&!a4.mapView||!this.zoomX&&!this.zoomY||!d3||l3||t3||(this.selectionMarker=t3=a4.renderer[y2](),t3.attr({class:"highcharts-selection-marker",zIndex:7}).add(),a4.styledMode||t3.attr({fill:f2.selectionMarkerFill||A2("#335cad").setOpacity(.25).get()})),t3&&t3.attr(r3),d3&&!t3&&m3&&a4.pan(c2,f2.panning)))};a3.prototype.dragStart=function(c2){var a4=this.chart;a4.mouseIsDown=c2.type;a4.cancelClick=false;a4.mouseDownX=this.mouseDownX=c2.chartX;a4.mouseDownY=this.mouseDownY=c2.chartY};a3.prototype.getSelectionBox=function(c2){var a4={args:{marker:c2},result:{}};m2(this,"getSelectionBox",a4,(function(a5){a5.result={x:c2.attr?+c2.attr("x"):c2.x,y:c2.attr?+c2.attr("y"):c2.y,width:c2.attr?c2.attr("width"):c2.width,height:c2.attr?c2.attr("height"):c2.height}}));return a4.result};a3.prototype.drop=function(c2){var a4=this,f2=this.chart,h3=this.hasPinched;if(this.selectionMarker){var b2=this.getSelectionBox(this.selectionMarker),g4=b2.x,z2=b2.y,q=b2.width,p3=b2.height,y2={originalEvent:c2,xAxis:[],yAxis:[],x:g4,y:z2,width:q,height:p3},r3=!!f2.mapView;if(this.hasDragged||h3)f2.axes.forEach((function(b3){if(b3.zoomEnabled&&e2(b3.min)&&(h3||a4[{xAxis:"zoomX",yAxis:"zoomY"}[b3.coll]])&&k2(g4)&&k2(z2)&&k2(q)&&k2(p3)){var f3=b3.horiz,d3="touchend"===c2.type?b3.minPixelPadding:0,n2=b3.toValue((f3?g4:z2)+d3);f3=b3.toValue((f3?g4+q:z2+p3)-d3);y2[b3.coll].push({axis:b3,min:Math.min(n2,f3),max:Math.max(n2,f3)});r3=true}})),r3&&m2(f2,"selection",y2,(function(b3){f2.zoom(d2(b3,h3?{animation:false}:null))}));k2(f2.index)&&(this.selectionMarker=this.selectionMarker.destroy());h3&&this.scaleGroups()}f2&&k2(f2.index)&&(l2(f2.container,{cursor:f2._cursor}),f2.cancelClick=10<this.hasDragged,f2.mouseIsDown=this.hasDragged=this.hasPinched=false,this.pinchDown=[])};a3.prototype.findNearestKDPoint=function(c2,a4,f2){var d3;c2.forEach((function(b2){var c3=!(b2.noSharedTooltip&&a4)&&0>b2.options.findNearestPointBy.indexOf("y");b2=b2.searchPoint(f2,c3);if((c3=p2(b2,true)&&b2.series)&&!(c3=!p2(d3,true))){c3=d3.distX-b2.distX;var e3=d3.dist-b2.dist,h3=(b2.series.group&&b2.series.group.zIndex)-(d3.series.group&&d3.series.group.zIndex);c3=0<(0!==c3&&a4?c3:0!==e3?e3:0!==h3?h3:d3.series.index>b2.series.index?-1:1)}c3&&(d3=b2)}));return d3};a3.prototype.getChartCoordinatesFromPoint=function(c2,a4){var f2=c2.series,d3=f2.xAxis;f2=f2.yAxis;var b2=c2.shapeArgs;if(d3&&f2){var e3=E2(c2.clientX,c2.plotX),h3=c2.plotY||0;c2.isNode&&b2&&k2(b2.x)&&k2(b2.y)&&(e3=b2.x,h3=b2.y);return a4?{chartX:f2.len+f2.pos-h3,chartY:d3.len+d3.pos-e3}:{chartX:e3+d3.pos,chartY:h3+f2.pos}}if(b2&&b2.x&&b2.y)return{chartX:b2.x,chartY:b2.y}};a3.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c2=this.chart.container,a4=I(c2);this.chartPosition={left:a4.left,top:a4.top,scaleX:1,scaleY:1};var f2=c2.offsetWidth;c2=c2.offsetHeight;2<f2&&2<c2&&(this.chartPosition.scaleX=a4.width/f2,this.chartPosition.scaleY=a4.height/c2);return this.chartPosition};a3.prototype.getCoordinates=function(c2){var a4={xAxis:[],yAxis:[]};this.chart.axes.forEach((function(f2){a4[f2.isXAxis?"xAxis":"yAxis"].push({axis:f2,value:f2.toValue(c2[f2.horiz?"chartX":"chartY"])})}));return a4};a3.prototype.getHoverData=function(c2,a4,f2,d3,b2,e3){var g4=[];d3=!(!d3||!c2);var n2=function(c3){return c3.visible&&!(!b2&&c3.directTouch)&&E2(c3.options.enableMouseTracking,true)},k3={chartX:e3?e3.chartX:void 0,chartY:e3?e3.chartY:void 0,shared:b2};m2(this,"beforeGetHoverData",k3);var u2=a4&&!a4.stickyTracking?[a4]:f2.filter((function(b3){return b3.stickyTracking&&(k3.filter||n2)(b3)}));var l3=d3||!e3?c2:this.findNearestKDPoint(u2,b2,e3);a4=l3&&l3.series;l3&&(b2&&!a4.noSharedTooltip?(u2=f2.filter((function(b3){return k3.filter?k3.filter(b3):n2(b3)&&!b3.noSharedTooltip})),u2.forEach((function(b3){var c3=h2(b3.points,(function(b4){return b4.x===l3.x&&!b4.isNull}));p2(c3)&&(b3.boosted&&b3.boost&&(c3=b3.boost.getPoint(c3)),g4.push(c3))}))):g4.push(l3));k3={hoverPoint:l3};m2(this,"afterGetHoverData",k3);return{hoverPoint:k3.hoverPoint,hoverSeries:a4,hoverPoints:g4}};a3.prototype.getPointFromEvent=function(c2){c2=c2.target;for(var a4;c2&&!a4;)a4=c2.point,c2=c2.parentNode;return a4};a3.prototype.onTrackerMouseOut=function(c2){c2=c2.relatedTarget||c2.toElement;var a4=this.chart.hoverSeries;this.isDirectTouch=false;if(!(!a4||!c2||a4.stickyTracking||this.inClass(c2,"highcharts-tooltip")||this.inClass(c2,"highcharts-series-"+a4.index)&&this.inClass(c2,"highcharts-tracker")))a4.onMouseOut()};a3.prototype.inClass=function(c2,a4){for(var f2;c2;){if(f2=r2(c2,"class")){if(-1!==f2.indexOf(a4))return true;if(-1!==f2.indexOf("highcharts-container"))return false}c2=c2.parentElement}};a3.prototype.init=function(c2,a4){this.options=a4;this.chart=c2;this.runChartClick=!(!a4.chart.events||!a4.chart.events.click);this.pinchDown=[];this.lastValidTouch={};x2&&(c2.tooltip=new x2(c2,a4.tooltip));this.setDOMEvents()};a3.prototype.normalize=function(c2,a4){var f2=c2.touches,e3=f2?f2.length?f2.item(0):E2(f2.changedTouches,c2.changedTouches)[0]:c2;a4||(a4=this.getChartPosition());f2=e3.pageX-a4.left;e3=e3.pageY-a4.top;f2/=a4.scaleX;e3/=a4.scaleY;return d2(c2,{chartX:Math.round(f2),chartY:Math.round(e3)})};a3.prototype.onContainerClick=function(c2){var a4=this.chart,f2=a4.hoverPoint;c2=this.normalize(c2);var e3=a4.plotLeft,b2=a4.plotTop;a4.cancelClick||(f2&&this.inClass(c2.target,"highcharts-tracker")?(m2(f2.series,"click",d2(c2,{point:f2})),a4.hoverPoint&&f2.firePointEvent("click",c2)):(d2(c2,this.getCoordinates(c2)),a4.isInsidePlot(c2.chartX-e3,c2.chartY-b2,{visiblePlotOnly:true})&&m2(a4,"click",c2)))};a3.prototype.onContainerMouseDown=function(a4){var c2=1===((a4.buttons||a4.button)&1);a4=this.normalize(a4);if(g3.isFirefox&&0!==a4.button)this.onContainerMouseMove(a4);if("undefined"===typeof a4.button||c2)this.zoomOption(a4),c2&&a4.preventDefault&&a4.preventDefault(),this.dragStart(a4)};a3.prototype.onContainerMouseLeave=function(c2){var d3=B[E2(a3.hoverChartIndex,-1)],f2=this.chart.tooltip;c2=this.normalize(c2);d3&&(c2.relatedTarget||c2.toElement)&&(d3.pointer.reset(),d3.pointer.chartPosition=void 0);f2&&!f2.isHidden&&this.reset()};a3.prototype.onContainerMouseEnter=function(a4){delete this.chartPosition};a3.prototype.onContainerMouseMove=function(a4){var c2=this.chart,f2=c2.tooltip;a4=this.normalize(a4);this.setHoverChartIndex();a4.preventDefault||(a4.returnValue=false);("mousedown"===c2.mouseIsDown||this.touchSelect(a4))&&this.drag(a4);c2.openMenu||!this.inClass(a4.target,"highcharts-tracker")&&!c2.isInsidePlot(a4.chartX-c2.plotLeft,a4.chartY-c2.plotTop,{visiblePlotOnly:true})||f2&&f2.shouldStickOnContact(a4)||(this.inClass(a4.target,"highcharts-no-tooltip")?this.reset(false,0):this.runPointActions(a4))};a3.prototype.onDocumentTouchEnd=function(c2){var d3=B[E2(a3.hoverChartIndex,-1)];d3&&d3.pointer.drop(c2)};a3.prototype.onContainerTouchMove=function(a4){if(this.touchSelect(a4))this.onContainerMouseMove(a4);else this.touch(a4)};a3.prototype.onContainerTouchStart=function(a4){if(this.touchSelect(a4))this.onContainerMouseDown(a4);else this.zoomOption(a4),this.touch(a4,true)};a3.prototype.onDocumentMouseMove=function(a4){var c2=this.chart,f2=c2.tooltip,d3=this.chartPosition;a4=this.normalize(a4,d3);!d3||c2.isInsidePlot(a4.chartX-c2.plotLeft,a4.chartY-c2.plotTop,{visiblePlotOnly:true})||f2&&f2.shouldStickOnContact(a4)||this.inClass(a4.target,"highcharts-tracker")||this.reset()};a3.prototype.onDocumentMouseUp=function(c2){var d3=B[E2(a3.hoverChartIndex,-1)];d3&&d3.pointer.drop(c2)};a3.prototype.pinch=function(a4){var c2=this,f2=c2.chart,e3=c2.pinchDown,b2=a4.touches||[],h3=b2.length,g4=c2.lastValidTouch,k3=c2.hasZoom,l3={},p3=1===h3&&(c2.inClass(a4.target,"highcharts-tracker")&&f2.runTrackerClick||c2.runChartClick),y2={},r3=c2.chart.tooltip;r3=1===h3&&E2(r3&&r3.options.followTouchMove,true);var t3=c2.selectionMarker;1<h3?c2.initiated=true:r3&&(c2.initiated=false);k3&&c2.initiated&&!p3&&false!==a4.cancelable&&a4.preventDefault();[].map.call(b2,(function(b3){return c2.normalize(b3)}));"touchstart"===a4.type?([].forEach.call(b2,(function(b3,a5){e3[a5]={chartX:b3.chartX,chartY:b3.chartY}})),g4.x=[e3[0].chartX,e3[1]&&e3[1].chartX],g4.y=[e3[0].chartY,e3[1]&&e3[1].chartY],f2.axes.forEach((function(b3){if(b3.zoomEnabled){var a5=f2.bounds[b3.horiz?"h":"v"],c3=b3.minPixelPadding,d3=b3.toPixels(Math.min(E2(b3.options.min,b3.dataMin),b3.dataMin)),e4=b3.toPixels(Math.max(E2(b3.options.max,b3.dataMax),b3.dataMax)),h4=Math.max(d3,e4);a5.min=Math.min(b3.pos,Math.min(d3,e4)-c3);a5.max=Math.max(b3.pos+b3.len,h4+c3)}})),c2.res=true):r3?this.runPointActions(c2.normalize(a4)):e3.length&&(m2(f2,"touchpan",{originalEvent:a4},(function(){t3||(c2.selectionMarker=t3=d2({destroy:H2,touch:true},f2.plotBox));c2.pinchTranslate(e3,b2,l3,t3,y2,g4);c2.hasPinched=k3;c2.scaleGroups(l3,y2)})),c2.res&&(c2.res=false,this.reset(false,0)))};a3.prototype.pinchTranslate=function(a4,d3,f2,e3,b2,h3){this.zoomHor&&this.pinchTranslateDirection(true,a4,d3,f2,e3,b2,h3);this.zoomVert&&this.pinchTranslateDirection(false,a4,d3,f2,e3,b2,h3)};a3.prototype.pinchTranslateDirection=function(a4,d3,f2,e3,b2,h3,g4,k3){var c2=this.chart,n2=a4?"x":"y",q=a4?"X":"Y",u2="chart"+q,m3=a4?"width":"height",l3=c2["plot"+(a4?"Left":"Top")],z2=c2.inverted,p3=c2.bounds[a4?"h":"v"],w2=1===d3.length,y2=d3[0][u2],r3=!w2&&d3[1][u2];d3=function(){"number"===typeof R2&&20<Math.abs(y2-r3)&&(M=k3||Math.abs(t3-R2)/Math.abs(y2-r3));P=(l3-t3)/M+y2;G=c2["plot"+(a4?"Width":"Height")]/M};var G,P,M=k3||1,t3=f2[0][u2],R2=!w2&&f2[1][u2];d3();f2=P;if(f2<p3.min){f2=p3.min;var E3=true}else f2+G>p3.max&&(f2=p3.max-G,E3=true);E3?(t3-=.8*(t3-g4[n2][0]),"number"===typeof R2&&(R2-=.8*(R2-g4[n2][1])),d3()):g4[n2]=[t3,R2];z2||(h3[n2]=P-l3,h3[m3]=G);h3=z2?1/M:M;b2[m3]=G;b2[n2]=f2;e3[z2?a4?"scaleY":"scaleX":"scale"+q]=M;e3["translate"+q]=h3*l3+(t3-h3*y2)};a3.prototype.reset=function(a4,d3){var c2=this.chart,e3=c2.hoverSeries,b2=c2.hoverPoint,h3=c2.hoverPoints,g4=c2.tooltip,k3=g4&&g4.shared?h3:b2;a4&&k3&&L2(k3).forEach((function(b3){b3.series.isCartesian&&"undefined"===typeof b3.plotX&&(a4=false)}));if(a4)g4&&k3&&L2(k3).length&&(g4.refresh(k3),g4.shared&&h3?h3.forEach((function(b3){b3.setState(b3.state,true);b3.series.isCartesian&&(b3.series.xAxis.crosshair&&b3.series.xAxis.drawCrosshair(null,b3),b3.series.yAxis.crosshair&&b3.series.yAxis.drawCrosshair(null,b3))})):b2&&(b2.setState(b2.state,true),c2.axes.forEach((function(a5){a5.crosshair&&b2.series[a5.coll]===a5&&a5.drawCrosshair(null,b2)}))));else{if(b2)b2.onMouseOut();h3&&h3.forEach((function(b3){b3.setState()}));if(e3)e3.onMouseOut();g4&&g4.hide(d3);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c2.axes.forEach((function(b3){b3.hideCrosshair()}));this.hoverX=c2.hoverPoints=c2.hoverPoint=null}};a3.prototype.runPointActions=function(c2,d3,f2){var e3=this.chart,b2=e3.tooltip&&e3.tooltip.options.enabled?e3.tooltip:void 0,g4=b2?b2.shared:false,k3=d3||e3.hoverPoint,q=k3&&k3.series||e3.hoverSeries;d3=this.getHoverData(k3,q,e3.series,(!c2||"touchmove"!==c2.type)&&(!!d3||q&&q.directTouch&&this.isDirectTouch),g4,c2);k3=d3.hoverPoint;q=d3.hoverSeries;var m3=d3.hoverPoints;d3=q&&q.tooltipOptions.followPointer&&!q.tooltipOptions.split;var l3=g4&&q&&!q.noSharedTooltip;if(k3&&(f2||k3!==e3.hoverPoint||b2&&b2.isHidden)){(e3.hoverPoints||[]).forEach((function(b3){-1===m3.indexOf(b3)&&b3.setState()}));if(e3.hoverSeries!==q)q.onMouseOver();this.applyInactiveState(m3);(m3||[]).forEach((function(b3){b3.setState("hover")}));e3.hoverPoint&&e3.hoverPoint.firePointEvent("mouseOut");if(!k3.series)return;e3.hoverPoints=m3;e3.hoverPoint=k3;k3.firePointEvent("mouseOver",void 0,(function(){b2&&k3&&b2.refresh(l3?m3:k3,c2)}))}else d3&&b2&&!b2.isHidden&&(f2=b2.getAnchor([{}],c2),e3.isInsidePlot(f2[0],f2[1],{visiblePlotOnly:true})&&b2.updatePosition({plotX:f2[0],plotY:f2[1]}));this.unDocMouseMove||(this.unDocMouseMove=t2(e3.container.ownerDocument,"mousemove",(function(b3){var c3=B[a3.hoverChartIndex];if(c3)c3.pointer.onDocumentMouseMove(b3)})),this.eventsToUnbind.push(this.unDocMouseMove));e3.axes.forEach((function(b3){var a4=E2((b3.crosshair||{}).snap,true),d4;a4&&((d4=e3.hoverPoint)&&d4.series[b3.coll]===b3||(d4=h2(m3,(function(a5){return a5.series&&a5.series[b3.coll]===b3}))));d4||!a4?b3.drawCrosshair(c2,d4):b3.hideCrosshair()}))};a3.prototype.scaleGroups=function(a4,d3){var c2=this.chart;c2.series.forEach((function(f2){var b2=a4||f2.getPlotBox();f2.group&&(f2.xAxis&&f2.xAxis.zoomEnabled||c2.mapView)&&(f2.group.attr(b2),f2.markerGroup&&(f2.markerGroup.attr(b2),f2.markerGroup.clip(d3?c2.clipRect:null)),f2.dataLabelsGroup&&f2.dataLabelsGroup.attr(b2))}));c2.clipRect.attr(d3||c2.clipBox)};a3.prototype.setDOMEvents=function(){var c2=this,d3=this.chart.container,f2=d3.ownerDocument;d3.onmousedown=this.onContainerMouseDown.bind(this);d3.onmousemove=this.onContainerMouseMove.bind(this);d3.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(t2(d3,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(t2(d3,"mouseleave",this.onContainerMouseLeave.bind(this)));a3.unbindDocumentMouseUp||(a3.unbindDocumentMouseUp=t2(f2,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e3=this.chart.renderTo.parentElement;e3&&"BODY"!==e3.tagName;)this.eventsToUnbind.push(t2(e3,"scroll",(function(){delete c2.chartPosition}))),e3=e3.parentElement;g3.hasTouch&&(this.eventsToUnbind.push(t2(d3,"touchstart",this.onContainerTouchStart.bind(this),{passive:false})),this.eventsToUnbind.push(t2(d3,"touchmove",this.onContainerTouchMove.bind(this),{passive:false})),a3.unbindDocumentTouchEnd||(a3.unbindDocumentTouchEnd=t2(f2,"touchend",this.onDocumentTouchEnd.bind(this),{passive:false})))};a3.prototype.setHoverChartIndex=function(){var c2=this.chart,d3=g3.charts[E2(a3.hoverChartIndex,-1)];if(d3&&d3!==c2)d3.pointer.onContainerMouseLeave({relatedTarget:c2.container});d3&&d3.mouseIsDown||(a3.hoverChartIndex=c2.index)};a3.prototype.touch=function(a4,d3){var c2=this.chart;this.setHoverChartIndex();if(1===a4.touches.length)if(a4=this.normalize(a4),c2.isInsidePlot(a4.chartX-c2.plotLeft,a4.chartY-c2.plotTop,{visiblePlotOnly:true})&&!c2.openMenu){d3&&this.runPointActions(a4);if("touchmove"===a4.type){d3=this.pinchDown;var b2=d3[0]?4<=Math.sqrt(Math.pow(d3[0].chartX-a4.chartX,2)+Math.pow(d3[0].chartY-a4.chartY,2)):false}E2(b2,true)&&this.pinch(a4)}else d3&&this.reset();else 2===a4.touches.length&&this.pinch(a4)};a3.prototype.touchSelect=function(a4){return!(!this.chart.options.chart.zooming.singleTouch||!a4.touches||1!==a4.touches.length)};a3.prototype.zoomOption=function(a4){var c2=this.chart,d3=c2.options.chart;c2=c2.inverted;var e3=d3.zooming.type||"";/touch/.test(a4.type)&&(e3=E2(d3.zooming.pinchType,e3));this.zoomX=a4=/x/.test(e3);this.zoomY=d3=/y/.test(e3);this.zoomHor=a4&&!c2||d3&&c2;this.zoomVert=d3&&!c2||a4&&c2;this.hasZoom=a4||d3};return a3}();return a2}));K(g2,"Core/MSPointer.js",[g2["Core/Globals.js"],g2["Core/Pointer.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){function A2(){var a3=[];a3.item=function(a4){return this[a4]};h2(p2,(function(d3){a3.push({pageX:d3.pageX,pageY:d3.pageY,target:d3.target})}));return a3}function C2(a3,d3,e3,h3){var c2=H2[g3.hoverChartIndex||NaN];"touch"!==a3.pointerType&&a3.pointerType!==a3.MSPOINTER_TYPE_TOUCH||!c2||(c2=c2.pointer,h3(a3),c2[d3]({type:e3,target:a3.currentTarget,preventDefault:r2,touches:A2()}))}var B=this&&this.__extends||function(){var a3=function(d3,e3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,c2){a4.__proto__=c2}||function(a4,c2){for(var d4 in c2)c2.hasOwnProperty(d4)&&(a4[d4]=c2[d4])};return a3(d3,e3)};return function(d3,e3){function h3(){this.constructor=d3}a3(d3,e3);d3.prototype=null===e3?Object.create(e3):(h3.prototype=e3.prototype,new h3)}}(),H2=a2.charts,t2=a2.doc,r2=a2.noop,l2=a2.win,e2=x2.addEvent,d2=x2.css,h2=x2.objectEach,m2=x2.pick,k2=x2.removeEvent,p2={},D2=!!l2.PointerEvent;return function(h3){function g4(){return null!==h3&&h3.apply(this,arguments)||this}B(g4,h3);g4.isRequired=function(){return!(a2.hasTouch||!l2.PointerEvent&&!l2.MSPointerEvent)};g4.prototype.batchMSEvents=function(a3){a3(this.chart.container,D2?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a3(this.chart.container,D2?"pointermove":"MSPointerMove",this.onContainerPointerMove);a3(t2,D2?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};g4.prototype.destroy=function(){this.batchMSEvents(k2);h3.prototype.destroy.call(this)};g4.prototype.init=function(a3,e3){h3.prototype.init.call(this,a3,e3);this.hasZoom&&d2(a3.container,{"-ms-touch-action":"none","touch-action":"none"})};g4.prototype.onContainerPointerDown=function(a3){C2(a3,"onContainerTouchStart","touchstart",(function(a4){p2[a4.pointerId]={pageX:a4.pageX,pageY:a4.pageY,target:a4.currentTarget}}))};g4.prototype.onContainerPointerMove=function(a3){C2(a3,"onContainerTouchMove","touchmove",(function(a4){p2[a4.pointerId]={pageX:a4.pageX,pageY:a4.pageY};p2[a4.pointerId].target||(p2[a4.pointerId].target=a4.currentTarget)}))};g4.prototype.onDocumentPointerUp=function(a3){C2(a3,"onDocumentTouchEnd","touchend",(function(a4){delete p2[a4.pointerId]}))};g4.prototype.setDOMEvents=function(){var a3=this.chart.tooltip;h3.prototype.setDOMEvents.call(this);(this.hasZoom||m2(a3&&a3.options.followTouchMove,true))&&this.batchMSEvents(e2)};return g4}(g3)}));K(g2,"Core/Legend/Legend.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/FormatUtilities.js"],g2["Core/Globals.js"],g2["Core/Series/Point.js"],g2["Core/Renderer/RendererUtilities.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B){var A2=a2.animObject,t2=a2.setAnimation,r2=g3.format,l2=x2.marginNames,e2=C2.distribute,d2=B.addEvent,h2=B.createElement,m2=B.css,k2=B.defined,p2=B.discardElement,D2=B.find,I=B.fireEvent,E2=B.isNumber,L2=B.merge,y2=B.pick,c2=B.relativeLength,w2=B.stableSort,f2=B.syncTimeout;a2=function(){function a3(b2,a4){this.allItems=[];this.contentGroup=this.box=void 0;this.display=false;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=false;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b2;this.init(b2,a4)}a3.prototype.init=function(b2,a4){this.chart=b2;this.setOptions(a4);a4.enabled&&(this.render(),d2(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=d2(this.chart,"render",(function(){this.legend.proximatePositions();this.legend.positionItems()})):this.unchartrender&&this.unchartrender())};a3.prototype.setOptions=function(b2){var a4=y2(b2.padding,8);this.options=b2;this.chart.styledMode||(this.itemStyle=b2.itemStyle,this.itemHiddenStyle=L2(this.itemStyle,b2.itemHiddenStyle));this.itemMarginTop=b2.itemMarginTop||0;this.itemMarginBottom=b2.itemMarginBottom||0;this.padding=a4;this.initialItemY=a4-5;this.symbolWidth=y2(b2.symbolWidth,16);this.pages=[];this.proximate="proximate"===b2.layout&&!this.chart.inverted;this.baseline=void 0};a3.prototype.update=function(b2,a4){var c3=this.chart;this.setOptions(L2(true,this.options,b2));this.destroy();c3.isDirtyLegend=c3.isDirtyBox=true;y2(a4,true)&&c3.redraw();I(this,"afterUpdate")};a3.prototype.colorizeItem=function(b2,a4){var c3=b2.legendItem||{},d3=c3.group,f3=c3.label,e3=c3.line;c3=c3.symbol;if(d3)d3[a4?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var h3=this.options;d3=this.itemHiddenStyle.color;h3=a4?h3.itemStyle.color:d3;var g4=a4?b2.color||d3:d3,k3=b2.options&&b2.options.marker,n2={fill:g4};f3&&f3.css({fill:h3,color:h3});e3&&e3.attr({stroke:g4});c3&&(k3&&c3.isMarker&&(n2=b2.pointAttribs(),a4||(n2.stroke=n2.fill=d3)),c3.attr(n2))}I(this,"afterColorizeItem",{item:b2,visible:a4})};a3.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a3.prototype.positionItem=function(b2){var a4=this,c3=b2.legendItem||{},d3=c3.group,f3=c3.x;f3=void 0===f3?0:f3;c3=c3.y;c3=void 0===c3?0:c3;var e3=this.options,h3=e3.symbolPadding,g4=!e3.rtl;e3=b2.checkbox;d3&&d3.element&&(h3={translateX:g4?f3:this.legendWidth-f3-2*h3-4,translateY:c3},d3[k2(d3.translateY)?"animate":"attr"](h3,void 0,(function(){I(a4,"afterPositionItem",{item:b2})})));e3&&(e3.x=f3,e3.y=c3)};a3.prototype.destroyItem=function(b2){for(var a4=b2.checkbox,c3=b2.legendItem||{},d3=0,f3=["group","label","line","symbol"];d3<f3.length;d3++){var e3=f3[d3];c3[e3]&&(c3[e3]=c3[e3].destroy())}a4&&p2(a4);b2.legendItem=void 0};a3.prototype.destroy=function(){for(var b2=0,a4=this.getAllItems();b2<a4.length;b2++)this.destroyItem(a4[b2]);b2=0;for(a4="clipRect up down pager nav box title group".split(" ");b2<a4.length;b2++){var c3=a4[b2];this[c3]&&(this[c3]=this[c3].destroy())}this.display=null};a3.prototype.positionCheckboxes=function(){var b2=this.group&&this.group.alignAttr,a4=this.clipHeight||this.legendHeight,c3=this.titleHeight;if(b2){var d3=b2.translateY;this.allItems.forEach((function(f3){var e3=f3.checkbox;if(e3){var h3=d3+c3+e3.y+(this.scrollOffset||0)+3;m2(e3,{left:b2.translateX+f3.checkboxOffset+e3.x-20+"px",top:h3+"px",display:this.proximate||h3>d3-6&&h3<d3+a4-6?"":"none"})}}),this)}};a3.prototype.renderTitle=function(){var b2=this.options,a4=this.padding,c3=b2.title,d3=0;c3.text&&(this.title||(this.title=this.chart.renderer.label(c3.text,a4-3,a4-4,void 0,void 0,void 0,b2.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c3.style),this.title.add(this.group)),c3.width||this.title.css({width:this.maxLegendWidth+"px"}),b2=this.title.getBBox(),d3=b2.height,this.offsetWidth=b2.width,this.contentGroup.attr({translateY:d3}));this.titleHeight=d3};a3.prototype.setText=function(b2){var a4=this.options;b2.legendItem.label.attr({text:a4.labelFormat?r2(a4.labelFormat,b2,this.chart):a4.labelFormatter.call(b2)})};a3.prototype.renderItem=function(b2){var a4=b2.legendItem=b2.legendItem||{},c3=this.chart,d3=c3.renderer,f3=this.options,e3=this.symbolWidth,h3=f3.symbolPadding||0,g4=this.itemStyle,k3=this.itemHiddenStyle,n2="horizontal"===f3.layout?y2(f3.itemDistance,20):0,m3=!f3.rtl,l3=!b2.series,p3=!l3&&b2.series.drawLegendSymbol?b2.series:b2,r3=p3.options,w3=this.createCheckboxForItem&&r3&&r3.showCheckbox,G=f3.useHTML,P=b2.options.className,M=a4.label;r3=e3+h3+n2+(w3?20:0);M||(a4.group=d3.g("legend-item").addClass("highcharts-"+p3.type+"-series highcharts-color-"+b2.colorIndex+(P?" "+P:"")+(l3?" highcharts-series-"+b2.index:"")).attr({zIndex:1}).add(this.scrollGroup),a4.label=M=d3.text("",m3?e3+h3:-h3,this.baseline||0,G),c3.styledMode||M.css(L2(b2.visible?g4:k3)),M.attr({align:m3?"left":"right",zIndex:2}).add(a4.group),this.baseline||(this.fontMetrics=d3.fontMetrics(c3.styledMode?12:g4.fontSize,M),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,M.attr("y",this.baseline),this.symbolHeight=f3.symbolHeight||this.fontMetrics.f,f3.squareSymbol&&(this.symbolWidth=y2(f3.symbolWidth,Math.max(this.symbolHeight,16)),r3=this.symbolWidth+h3+n2+(w3?20:0),m3&&M.attr("x",this.symbolWidth+h3))),p3.drawLegendSymbol(this,b2),this.setItemEvents&&this.setItemEvents(b2,M,G));w3&&!b2.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(b2);this.colorizeItem(b2,b2.visible);!c3.styledMode&&g4.width||M.css({width:(f3.itemWidth||this.widthOption||c3.spacingBox.width)-r3+"px"});this.setText(b2);c3=M.getBBox();d3=this.fontMetrics&&this.fontMetrics.h||0;b2.itemWidth=b2.checkboxOffset=f3.itemWidth||a4.labelWidth||c3.width+r3;this.maxItemWidth=Math.max(this.maxItemWidth,b2.itemWidth);this.totalItemWidth+=b2.itemWidth;this.itemHeight=b2.itemHeight=Math.round(a4.labelHeight||(c3.height>1.5*d3?c3.height:d3))};a3.prototype.layoutItem=function(b2){var a4=this.options,c3=this.padding,d3="horizontal"===a4.layout,f3=b2.itemHeight,e3=this.itemMarginBottom,h3=this.itemMarginTop,g4=d3?y2(a4.itemDistance,20):0,k3=this.maxLegendWidth;a4=a4.alignColumns&&this.totalItemWidth>k3?this.maxItemWidth:b2.itemWidth;var n2=b2.legendItem||{};d3&&this.itemX-c3+a4>k3&&(this.itemX=c3,this.lastLineHeight&&(this.itemY+=h3+this.lastLineHeight+e3),this.lastLineHeight=0);this.lastItemY=h3+this.itemY+e3;this.lastLineHeight=Math.max(f3,this.lastLineHeight);n2.x=this.itemX;n2.y=this.itemY;d3?this.itemX+=a4:(this.itemY+=h3+f3+e3,this.lastLineHeight=f3);this.offsetWidth=this.widthOption||Math.max((d3?this.itemX-c3-(b2.checkbox?0:g4):a4)+c3,this.offsetWidth)};a3.prototype.getAllItems=function(){var b2=[];this.chart.series.forEach((function(a4){var c3=a4&&a4.options;a4&&y2(c3.showInLegend,k2(c3.linkedTo)?false:void 0,true)&&(b2=b2.concat((a4.legendItem||{}).labels||("point"===c3.legendType?a4.data:a4)))}));I(this,"afterGetAllItems",{allItems:b2});return b2};a3.prototype.getAlignment=function(){var b2=this.options;return this.proximate?b2.align.charAt(0)+"tv":b2.floating?"":b2.align.charAt(0)+b2.verticalAlign.charAt(0)+b2.layout.charAt(0)};a3.prototype.adjustMargins=function(b2,a4){var c3=this.chart,d3=this.options,f3=this.getAlignment();f3&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(e3,h3){e3.test(f3)&&!k2(b2[h3])&&(c3[l2[h3]]=Math.max(c3[l2[h3]],c3.legend[(h3+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h3]*d3[h3%2?"x":"y"]+y2(d3.margin,12)+a4[h3]+(c3.titleOffset[h3]||0)))}))};a3.prototype.proximatePositions=function(){var b2=this.chart,a4=[],c3="left"===this.options.align;this.allItems.forEach((function(d4){var f4;var e3=c3;if(d4.yAxis){d4.xAxis.options.reversed&&(e3=!e3);d4.points&&(f4=D2(e3?d4.points:d4.points.slice(0).reverse(),(function(b3){return E2(b3.plotY)})));e3=this.itemMarginTop+d4.legendItem.label.getBBox().height+this.itemMarginBottom;var h4=d4.yAxis.top-b2.plotTop;d4.visible?(f4=f4?f4.plotY:d4.yAxis.height,f4+=h4-.3*e3):f4=h4+d4.yAxis.height;a4.push({target:f4,size:e3,item:d4})}}),this);for(var d3,f3=0,h3=e2(a4,b2.plotHeight);f3<h3.length;f3++){var g4=h3[f3];d3=g4.item.legendItem||{};E2(g4.pos)&&(d3.y=b2.plotTop-b2.spacing[0]+g4.pos)}};a3.prototype.render=function(){var b2=this.chart,a4=b2.renderer,d3=this.options,f3=this.padding,e3=this.getAllItems(),h3=this.group,g4=this.box;this.itemX=f3;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=c2(d3.width,b2.spacingBox.width-f3);var k3=b2.spacingBox.width-2*f3-d3.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(k3/=2);this.maxLegendWidth=this.widthOption||k3;h3||(this.group=h3=a4.g("legend").addClass(d3.className||"").attr({zIndex:7}).add(),this.contentGroup=a4.g().attr({zIndex:1}).add(h3),this.scrollGroup=a4.g().add(this.contentGroup));this.renderTitle();w2(e3,(function(b3,a5){return(b3.options&&b3.options.legendIndex||0)-(a5.options&&a5.options.legendIndex||0)}));d3.reversed&&e3.reverse();this.allItems=e3;this.display=k3=!!e3.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e3.forEach(this.renderItem,this);e3.forEach(this.layoutItem,this);e3=(this.widthOption||this.offsetWidth)+f3;var n2=this.lastItemY+this.lastLineHeight+this.titleHeight;n2=this.handleOverflow(n2);n2+=f3;g4||(this.box=g4=a4.rect().addClass("highcharts-legend-box").attr({r:d3.borderRadius}).add(h3));b2.styledMode||g4.attr({stroke:d3.borderColor,"stroke-width":d3.borderWidth||0,fill:d3.backgroundColor||"none"}).shadow(d3.shadow);if(0<e3&&0<n2)g4[g4.placed?"animate":"attr"](g4.crisp.call({},{x:0,y:0,width:e3,height:n2},g4.strokeWidth()));h3[k3?"show":"hide"]();b2.styledMode&&"none"===h3.getStyle("display")&&(e3=n2=0);this.legendWidth=e3;this.legendHeight=n2;k3&&this.align();this.proximate||this.positionItems();I(this,"afterRender")};a3.prototype.align=function(b2){void 0===b2&&(b2=this.chart.spacingBox);var a4=this.chart,c3=this.options,d3=b2.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a4.titleOffset[0]?d3+=a4.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a4.titleOffset[2]&&(d3-=a4.titleOffset[2]);d3!==b2.y&&(b2=L2(b2,{y:d3}));a4.hasRendered||(this.group.placed=false);this.group.align(L2(c3,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":c3.verticalAlign}),true,b2)};a3.prototype.handleOverflow=function(b2){var a4=this,c3=this.chart,d3=c3.renderer,f3=this.options,e3=f3.y,h3="top"===f3.verticalAlign,g4=this.padding,k3=f3.maxHeight,n2=f3.navigation,m3=y2(n2.animation,true),l3=n2.arrowSize||12,p3=this.pages,r3=this.allItems,w3=function(b3){"number"===typeof b3?D3.attr({height:b3}):D3&&(a4.clipRect=D3.destroy(),a4.contentGroup.clip());a4.contentGroup.div&&(a4.contentGroup.div.style.clip=b3?"rect("+g4+"px,9999px,"+(g4+b3)+"px,0)":"auto")},G=function(b3){a4[b3]=d3.circle(0,0,1.3*l3).translate(l3/2,l3/2).add(R2);c3.styledMode||a4[b3].attr("fill","rgba(0,0,0,0.0001)");return a4[b3]},P,M,t3;e3=c3.spacingBox.height+(h3?-e3:e3)-g4;var R2=this.nav,D3=this.clipRect;"horizontal"!==f3.layout||"middle"===f3.verticalAlign||f3.floating||(e3/=2);k3&&(e3=Math.min(e3,k3));p3.length=0;b2&&0<e3&&b2>e3&&false!==n2.enabled?(this.clipHeight=P=Math.max(e3-20-this.titleHeight-g4,0),this.currentPage=y2(this.currentPage,1),this.fullHeight=b2,r3.forEach((function(b3,a5){t3=b3.legendItem||{};b3=t3.y||0;var c4=Math.round(t3.label.getBBox().height),d4=p3.length;if(!d4||b3-p3[d4-1]>P&&(M||b3)!==p3[d4-1])p3.push(M||b3),d4++;t3.pageIx=d4-1;M&&((r3[a5-1].legendItem||{}).pageIx=d4-1);a5===r3.length-1&&b3+c4-p3[d4-1]>P&&c4<=P&&(p3.push(b3),t3.pageIx=d4);b3!==M&&(M=b3)})),D3||(D3=a4.clipRect=d3.clipRect(0,g4,9999,0),a4.contentGroup.clip(D3)),w3(P),R2||(this.nav=R2=d3.g().attr({zIndex:1}).add(this.group),this.up=d3.symbol("triangle",0,0,l3,l3).add(R2),G("upTracker").on("click",(function(){a4.scroll(-1,m3)})),this.pager=d3.text("",15,10).addClass("highcharts-legend-navigation"),!c3.styledMode&&n2.style&&this.pager.css(n2.style),this.pager.add(R2),this.down=d3.symbol("triangle-down",0,0,l3,l3).add(R2),G("downTracker").on("click",(function(){a4.scroll(1,m3)}))),a4.scroll(0),b2=e3):R2&&(w3(),this.nav=R2.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b2};a3.prototype.scroll=function(b2,a4){var c3=this,d3=this.chart,e3=this.pages,h3=e3.length,g4=this.clipHeight,k3=this.options.navigation,n2=this.pager,m3=this.padding,l3=this.currentPage+b2;l3>h3&&(l3=h3);0<l3&&("undefined"!==typeof a4&&t2(a4,d3),this.nav.attr({translateX:m3,translateY:g4+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(b3){b3.attr({class:1===l3?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),n2.attr({text:l3+"/"+h3}),[this.down,this.downTracker].forEach((function(b3){b3.attr({x:18+this.pager.getBBox().width,class:l3===h3?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),d3.styledMode||(this.up.attr({fill:1===l3?k3.inactiveColor:k3.activeColor}),this.upTracker.css({cursor:1===l3?"default":"pointer"}),this.down.attr({fill:l3===h3?k3.inactiveColor:k3.activeColor}),this.downTracker.css({cursor:l3===h3?"default":"pointer"})),this.scrollOffset=-e3[l3-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l3,this.positionCheckboxes(),b2=A2(y2(a4,d3.renderer.globalAnimation,true)),f2((function(){I(c3,"afterScroll",{currentPage:l3})}),b2.duration))};a3.prototype.setItemEvents=function(b2,a4,c3){var d3=this,f3=b2.legendItem||{},e3=d3.chart.renderer.boxWrapper,h3=b2 instanceof F2,g4="highcharts-legend-"+(h3?"point":"series")+"-active",k3=d3.chart.styledMode,n2=function(a5){d3.allItems.forEach((function(c4){b2!==c4&&[c4].concat(c4.linkedSeries||[]).forEach((function(b3){b3.setState(a5,!h3)}))}))},m3=0;for(c3=c3?[a4,f3.symbol]:[f3.group];m3<c3.length;m3++)if(f3=c3[m3])f3.on("mouseover",(function(){b2.visible&&n2("inactive");b2.setState("hover");b2.visible&&e3.addClass(g4);k3||a4.css(d3.options.itemHoverStyle)})).on("mouseout",(function(){d3.chart.styledMode||a4.css(L2(b2.visible?d3.itemStyle:d3.itemHiddenStyle));n2("");e3.removeClass(g4);b2.setState()})).on("click",(function(a5){var c4=function(){b2.setVisible&&b2.setVisible();n2(b2.visible?"inactive":"")};e3.removeClass(g4);a5={browserEvent:a5};b2.firePointEvent?b2.firePointEvent("legendItemClick",a5,c4):I(b2,"legendItemClick",a5,c4)}))};a3.prototype.createCheckboxForItem=function(b2){b2.checkbox=h2("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:b2.selected,defaultChecked:b2.selected},this.options.itemCheckboxStyle,this.chart.container);d2(b2.checkbox,"click",(function(a4){I(b2.series||b2,"checkboxClick",{checked:a4.target.checked,item:b2},(function(){b2.select()}))}))};return a3}();return a2}));K(g2,"Core/Series/SeriesRegistry.js",[g2["Core/Globals.js"],g2["Core/Defaults.js"],g2["Core/Series/Point.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=g3.defaultOptions,B=F2.extendClass,H2=F2.merge,t2;(function(g4){function l2(a3,d2){var e2=A2.plotOptions||{},m2=d2.defaultOptions,k2=d2.prototype;k2.type=a3;k2.pointClass||(k2.pointClass=x2);m2&&(e2[a3]=m2);g4.seriesTypes[a3]=d2}g4.seriesTypes=a2.seriesTypes;g4.registerSeriesType=l2;g4.seriesType=function(a3,d2,h2,m2,k2){var e2=A2.plotOptions||{};d2=d2||"";e2[a3]=H2(e2[d2],h2);l2(a3,B(g4.seriesTypes[d2]||function(){},m2));g4.seriesTypes[a3].prototype.type=a3;k2&&(g4.seriesTypes[a3].prototype.pointClass=B(x2,k2));return g4.seriesTypes[a3]}})(t2||(t2={}));return t2}));K(g2,"Core/Chart/Chart.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Axis/Axis.js"],g2["Core/Defaults.js"],g2["Core/FormatUtilities.js"],g2["Core/Foundation.js"],g2["Core/Globals.js"],g2["Core/Legend/Legend.js"],g2["Core/MSPointer.js"],g2["Core/Pointer.js"],g2["Core/Renderer/RendererRegistry.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Renderer/SVG/SVGRenderer.js"],g2["Core/Time.js"],g2["Core/Utilities.js"],g2["Core/Renderer/HTML/AST.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2,e2,d2,h2,m2,k2){var p2=a2.animate,D2=a2.animObject,A2=a2.setAnimation,E2=x2.defaultOptions,L2=x2.defaultTime,y2=F2.numberFormat,c2=C2.registerEventOptions,w2=B.charts,f2=B.doc,n2=B.marginNames,b2=B.svg,u2=B.win,z2=e2.seriesTypes,q=m2.addEvent,N=m2.attr,J=m2.cleanRecursively,O2=m2.createElement,Q=m2.css,T2=m2.defined,Y=m2.discardElement,v2=m2.erase,U=m2.error,K2=m2.extend,ca=m2.find,S2=m2.fireEvent,G=m2.getStyle,P=m2.isArray,M=m2.isNumber,X=m2.isObject,R2=m2.isString,V2=m2.merge,Z=m2.objectEach,W2=m2.pick,ba=m2.pInt,fa=m2.relativeLength,ha=m2.removeEvent,ea=m2.splat,ia=m2.syncTimeout,ka=m2.uniqueKey;a2=function(){function a3(b3,a4,c3){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b3,a4,c3)}a3.chart=function(b3,c3,d3){return new a3(b3,c3,d3)};a3.prototype.getArgs=function(b3,a4,c3){R2(b3)||b3.nodeName?(this.renderTo=b3,this.init(a4,c3)):this.init(b3,a4)};a3.prototype.init=function(b3,a4){var d3=b3.plotOptions||{};S2(this,"init",{args:arguments},(function(){var f3=V2(E2,b3),e3=f3.chart;Z(f3.plotOptions,(function(b4,a5){X(b4)&&(b4.tooltip=d3[a5]&&V2(d3[a5].tooltip)||void 0)}));f3.tooltip.userOptions=b3.chart&&b3.chart.forExport&&b3.tooltip.userOptions||b3.tooltip;this.userOptions=b3;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=a4;this.isResizing=0;var g4=e3.zooming=e3.zooming||{};b3.chart&&!b3.chart.zooming&&(g4.resetButton=e3.resetZoomButton);g4.key=W2(g4.key,e3.zoomKey);g4.pinchType=W2(g4.pinchType,e3.pinchType);g4.singleTouch=W2(g4.singleTouch,e3.zoomBySingleTouch);g4.type=W2(g4.type,e3.zoomType);this.options=f3;this.axes=[];this.series=[];this.time=b3.time&&Object.keys(b3.time).length?new h2(b3.time):B.time;this.numberFormatter=e3.numberFormatter||y2;this.styledMode=e3.styledMode;this.hasCartesianSeries=e3.showAxes;this.index=w2.length;w2.push(this);B.chartCount++;c2(this,e3);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;S2(this,"afterInit");this.firstRender()}))};a3.prototype.initSeries=function(b3){var a4=this.options.chart;a4=b3.type||a4.type||a4.defaultSeriesType;var c3=z2[a4];c3||U(17,true,this,{missingModuleFor:a4});a4=new c3;"function"===typeof a4.init&&a4.init(this,b3);return a4};a3.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(b3){b3.points||b3.data||!b3.enabledDataSorting||b3.setData(b3.options.data,false)}))};a3.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(b3,a4){return b3.linkedSeries.length||a4.linkedSeries.length?a4.linkedSeries.length-b3.linkedSeries.length:0}))};a3.prototype.orderSeries=function(b3){var a4=this.series;b3=b3||0;for(var c3=a4.length;b3<c3;++b3)a4[b3]&&(a4[b3].index=b3,a4[b3].name=a4[b3].getName())};a3.prototype.isInsidePlot=function(b3,a4,c3){void 0===c3&&(c3={});var d3=this.inverted,f3=this.plotBox,e3=this.plotLeft,h3=this.plotTop,g4=this.scrollablePlotBox,k3=0;var n3=0;c3.visiblePlotOnly&&this.scrollingContainer&&(n3=this.scrollingContainer,k3=n3.scrollLeft,n3=n3.scrollTop);var m3=c3.series;f3=c3.visiblePlotOnly&&g4||f3;g4=c3.inverted?a4:b3;a4=c3.inverted?b3:a4;b3={x:g4,y:a4,isInsidePlot:true,options:c3};if(!c3.ignoreX){var q2=m3&&(d3&&!this.polar?m3.yAxis:m3.xAxis)||{pos:e3,len:Infinity};g4=c3.paneCoordinates?q2.pos+g4:e3+g4;g4>=Math.max(k3+e3,q2.pos)&&g4<=Math.min(k3+e3+f3.width,q2.pos+q2.len)||(b3.isInsidePlot=false)}!c3.ignoreY&&b3.isInsidePlot&&(d3=c3.axis&&!c3.axis.isXAxis&&c3.axis||m3&&(d3?m3.xAxis:m3.yAxis)||{pos:h3,len:Infinity},c3=c3.paneCoordinates?d3.pos+a4:h3+a4,c3>=Math.max(n3+h3,d3.pos)&&c3<=Math.min(n3+h3+f3.height,d3.pos+d3.len)||(b3.isInsidePlot=false));S2(this,"afterIsInsidePlot",b3);return b3.isInsidePlot};a3.prototype.redraw=function(b3){S2(this,"beforeRedraw");var a4=this.hasCartesianSeries?this.axes:this.colorAxis||[],c3=this.series,d3=this.pointer,f3=this.legend,e3=this.userOptions.legend,h3=this.renderer,g4=h3.isHidden(),k3=[],n3=this.isDirtyBox,m3=this.isDirtyLegend;this.setResponsive&&this.setResponsive(false);A2(this.hasRendered?b3:false,this);g4&&this.temporaryDisplay();this.layOutTitles();for(b3=c3.length;b3--;){var q2=c3[b3];if(q2.options.stacking||q2.options.centerInCategory){var l3=true;if(q2.isDirty){var G2=true;break}}}if(G2)for(b3=c3.length;b3--;)q2=c3[b3],q2.options.stacking&&(q2.isDirty=true);c3.forEach((function(b4){b4.isDirty&&("point"===b4.options.legendType?("function"===typeof b4.updateTotals&&b4.updateTotals(),m3=true):e3&&(e3.labelFormatter||e3.labelFormat)&&(m3=true));b4.isDirtyData&&S2(b4,"updatedData")}));m3&&f3&&f3.options.enabled&&(f3.render(),this.isDirtyLegend=false);l3&&this.getStacks();a4.forEach((function(b4){b4.updateNames();b4.setScale()}));this.getMargins();a4.forEach((function(b4){b4.isDirty&&(n3=true)}));a4.forEach((function(b4){var a5=b4.min+","+b4.max;b4.extKey!==a5&&(b4.extKey=a5,k3.push((function(){S2(b4,"afterSetExtremes",K2(b4.eventArgs,b4.getExtremes()));delete b4.eventArgs})));(n3||l3)&&b4.redraw()}));n3&&this.drawChartBox();S2(this,"predraw");c3.forEach((function(b4){(n3||b4.isDirty)&&b4.visible&&b4.redraw();b4.isDirtyData=false}));d3&&d3.reset(true);h3.draw();S2(this,"redraw");S2(this,"render");g4&&this.temporaryDisplay(true);k3.forEach((function(b4){b4.call()}))};a3.prototype.get=function(b3){function a4(a5){return a5.id===b3||a5.options&&a5.options.id===b3}for(var c3=this.series,d3=ca(this.axes,a4)||ca(this.series,a4),f3=0;!d3&&f3<c3.length;f3++)d3=ca(c3[f3].points||[],a4);return d3};a3.prototype.getAxes=function(){var b3=this,a4=this.options,c3=a4.xAxis=ea(a4.xAxis||{});a4=a4.yAxis=ea(a4.yAxis||{});S2(this,"getAxes");c3.forEach((function(b4,a5){b4.index=a5;b4.isX=true}));a4.forEach((function(b4,a5){b4.index=a5}));c3.concat(a4).forEach((function(a5){new g3(b3,a5)}));S2(this,"afterGetAxes")};a3.prototype.getSelectedPoints=function(){return this.series.reduce((function(b3,a4){a4.getPointsCollection().forEach((function(a5){W2(a5.selectedStaging,a5.selected)&&b3.push(a5)}));return b3}),[])};a3.prototype.getSelectedSeries=function(){return this.series.filter((function(b3){return b3.selected}))};a3.prototype.setTitle=function(b3,a4,c3){this.applyDescription("title",b3);this.applyDescription("subtitle",a4);this.applyDescription("caption",void 0);this.layOutTitles(c3)};a3.prototype.applyDescription=function(b3,a4){var c3=this,d3="title"===b3?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};d3=this.options[b3]=V2(!this.styledMode&&{style:d3},this.options[b3],a4);var f3=this[b3];f3&&a4&&(this[b3]=f3=f3.destroy());d3&&!f3&&(f3=this.renderer.text(d3.text,0,0,d3.useHTML).attr({align:d3.align,class:"highcharts-"+b3,zIndex:d3.zIndex||4}).add(),f3.update=function(a5){c3[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b3]](a5)},this.styledMode||f3.css(d3.style),this[b3]=f3)};a3.prototype.layOutTitles=function(b3){var a4=[0,0,0],c3=this.renderer,d3=this.spacingBox;["title","subtitle","caption"].forEach((function(b4){var f4=this[b4],e3=this.options[b4],h3=e3.verticalAlign||"top";b4="title"===b4?"top"===h3?-3:0:"top"===h3?a4[0]+2:0;var g4;if(f4){this.styledMode||(g4=e3.style&&e3.style.fontSize);g4=c3.fontMetrics(g4,f4).b;f4.css({width:(e3.width||d3.width+(e3.widthAdjust||0))+"px"});var k3=Math.round(f4.getBBox(e3.useHTML).height);f4.align(K2({y:"bottom"===h3?g4:b4+g4,height:k3},e3),false,"spacingBox");e3.floating||("top"===h3?a4[0]=Math.ceil(a4[0]+k3):"bottom"===h3&&(a4[2]=Math.ceil(a4[2]+k3)))}}),this);a4[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a4[0]+=this.options.title.margin);a4[2]&&"bottom"===this.options.caption.verticalAlign&&(a4[2]+=this.options.caption.margin);var f3=!this.titleOffset||this.titleOffset.join(",")!==a4.join(",");this.titleOffset=a4;S2(this,"afterLayOutTitles");!this.isDirtyBox&&f3&&(this.isDirtyBox=this.isDirtyLegend=f3,this.hasRendered&&W2(b3,true)&&this.isDirtyBox&&this.redraw())};a3.prototype.getChartSize=function(){var b3=this.options.chart,a4=b3.width;b3=b3.height;var c3=this.renderTo;T2(a4)||(this.containerWidth=G(c3,"width"));T2(b3)||(this.containerHeight=G(c3,"height"));this.chartWidth=Math.max(0,a4||this.containerWidth||600);this.chartHeight=Math.max(0,fa(b3,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a3.prototype.temporaryDisplay=function(b3){var a4=this.renderTo;if(b3)for(;a4&&a4.style;)a4.hcOrigStyle&&(Q(a4,a4.hcOrigStyle),delete a4.hcOrigStyle),a4.hcOrigDetached&&(f2.body.removeChild(a4),a4.hcOrigDetached=false),a4=a4.parentNode;else for(;a4&&a4.style;){f2.body.contains(a4)||a4.parentNode||(a4.hcOrigDetached=true,f2.body.appendChild(a4));if("none"===G(a4,"display",false)||a4.hcOricDetached)a4.hcOrigStyle={display:a4.style.display,height:a4.style.height,overflow:a4.style.overflow},b3={display:"block",overflow:"hidden"},a4!==this.renderTo&&(b3.height=0),Q(a4,b3),a4.offsetWidth||a4.style.setProperty("display","block","important");a4=a4.parentNode;if(a4===f2.body)break}};a3.prototype.setClassName=function(b3){this.container.className="highcharts-container "+(b3||"")};a3.prototype.getContainer=function(){var a4=this.options,c3=a4.chart,e3=ka(),h3,g4=this.renderTo;g4||(this.renderTo=g4=c3.renderTo);R2(g4)&&(this.renderTo=g4=f2.getElementById(g4));g4||U(13,true,this);var n3=ba(N(g4,"data-highcharts-chart"));M(n3)&&w2[n3]&&w2[n3].hasRendered&&w2[n3].destroy();N(g4,"data-highcharts-chart",this.index);g4.innerHTML=k2.emptyHTML;c3.skipClone||g4.offsetWidth||this.temporaryDisplay();this.getChartSize();n3=this.chartWidth;var m3=this.chartHeight;Q(g4,{overflow:"hidden"});this.styledMode||(h3=K2({position:"relative",overflow:"hidden",width:n3+"px",height:m3+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},c3.style||{}));this.container=e3=O2("div",{id:e3},h3,g4);this._cursor=e3.style.cursor;this.renderer=new(c3.renderer||!b2?l2.getRendererType(c3.renderer):d2)(e3,n3,m3,void 0,c3.forExport,a4.exporting&&a4.exporting.allowHTML,this.styledMode);A2(void 0,this);this.setClassName(c3.className);if(this.styledMode)for(var q2 in a4.defs)this.renderer.definition(a4.defs[q2]);else this.renderer.setStyle(c3.style);this.renderer.chartIndex=this.index;S2(this,"afterGetContainer")};a3.prototype.getMargins=function(b3){var a4=this.spacing,c3=this.margin,d3=this.titleOffset;this.resetMargins();d3[0]&&!T2(c3[0])&&(this.plotTop=Math.max(this.plotTop,d3[0]+a4[0]));d3[2]&&!T2(c3[2])&&(this.marginBottom=Math.max(this.marginBottom,d3[2]+a4[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c3,a4);S2(this,"getMargins");b3||this.getAxisMargins()};a3.prototype.getAxisMargins=function(){var b3=this,a4=b3.axisOffset=[0,0,0,0],c3=b3.colorAxis,d3=b3.margin,f3=function(b4){b4.forEach((function(b5){b5.visible&&b5.getOffset()}))};b3.hasCartesianSeries?f3(b3.axes):c3&&c3.length&&f3(c3);n2.forEach((function(c4,f4){T2(d3[f4])||(b3[c4]+=a4[f4])}));b3.setChartSize()};a3.prototype.reflow=function(b3){var a4=this,c3=a4.options.chart,d3=a4.renderTo,e3=T2(c3.width)&&T2(c3.height),h3=c3.width||G(d3,"width");c3=c3.height||G(d3,"height");d3=b3?b3.target:u2;delete a4.pointer.chartPosition;if(!e3&&!a4.isPrinting&&h3&&c3&&(d3===u2||d3===f2)){if(h3!==a4.containerWidth||c3!==a4.containerHeight)m2.clearTimeout(a4.reflowTimeout),a4.reflowTimeout=ia((function(){a4.container&&a4.setSize(void 0,void 0,false)}),b3?100:0);a4.containerWidth=h3;a4.containerHeight=c3}};a3.prototype.setReflow=function(b3){var a4=this;false===b3||this.unbindReflow?false===b3&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=q(u2,"resize",(function(b4){a4.options&&a4.reflow(b4)})),q(this,"destroy",this.unbindReflow))};a3.prototype.setSize=function(b3,a4,c3){var d3=this,f3=d3.renderer;d3.isResizing+=1;A2(c3,d3);c3=f3.globalAnimation;d3.oldChartHeight=d3.chartHeight;d3.oldChartWidth=d3.chartWidth;"undefined"!==typeof b3&&(d3.options.chart.width=b3);"undefined"!==typeof a4&&(d3.options.chart.height=a4);d3.getChartSize();d3.styledMode||(c3?p2:Q)(d3.container,{width:d3.chartWidth+"px",height:d3.chartHeight+"px"},c3);d3.setChartSize(true);f3.setSize(d3.chartWidth,d3.chartHeight,c3);d3.axes.forEach((function(b4){b4.isDirty=true;b4.setScale()}));d3.isDirtyLegend=true;d3.isDirtyBox=true;d3.layOutTitles();d3.getMargins();d3.redraw(c3);d3.oldChartHeight=null;S2(d3,"resize");ia((function(){d3&&S2(d3,"endResize",null,(function(){--d3.isResizing}))}),D2(c3).duration)};a3.prototype.setChartSize=function(b3){var a4=this.inverted,c3=this.renderer,d3=this.chartWidth,f3=this.chartHeight,e3=this.options.chart,h3=this.spacing,g4=this.clipOffset,k3,n3,m3,q2;this.plotLeft=k3=Math.round(this.plotLeft);this.plotTop=n3=Math.round(this.plotTop);this.plotWidth=m3=Math.max(0,Math.round(d3-k3-this.marginRight));this.plotHeight=q2=Math.max(0,Math.round(f3-n3-this.marginBottom));this.plotSizeX=a4?q2:m3;this.plotSizeY=a4?m3:q2;this.plotBorderWidth=e3.plotBorderWidth||0;this.spacingBox=c3.spacingBox={x:h3[3],y:h3[0],width:d3-h3[3]-h3[1],height:f3-h3[0]-h3[2]};this.plotBox=c3.plotBox={x:k3,y:n3,width:m3,height:q2};a4=2*Math.floor(this.plotBorderWidth/2);d3=Math.ceil(Math.max(a4,g4[3])/2);f3=Math.ceil(Math.max(a4,g4[0])/2);this.clipBox={x:d3,y:f3,width:Math.floor(this.plotSizeX-Math.max(a4,g4[1])/2-d3),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a4,g4[2])/2-f3))};b3||(this.axes.forEach((function(b4){b4.setAxisSize();b4.setAxisTranslation()})),c3.alignElements());S2(this,"afterSetChartSize",{skipAxes:b3})};a3.prototype.resetMargins=function(){S2(this,"resetMargins");var b3=this,a4=b3.options.chart;["margin","spacing"].forEach((function(c3){var d3=a4[c3],f3=X(d3)?d3:[d3,d3,d3,d3];["Top","Right","Bottom","Left"].forEach((function(d4,e3){b3[c3][e3]=W2(a4[c3+d4],f3[e3])}))}));n2.forEach((function(a5,c3){b3[a5]=W2(b3.margin[c3],b3.spacing[c3])}));b3.axisOffset=[0,0,0,0];b3.clipOffset=[0,0,0,0]};a3.prototype.drawChartBox=function(){var b3=this.options.chart,a4=this.renderer,c3=this.chartWidth,d3=this.chartHeight,f3=this.styledMode,e3=this.plotBGImage,h3=b3.backgroundColor,g4=b3.plotBackgroundColor,k3=b3.plotBackgroundImage,n3=this.plotLeft,m3=this.plotTop,q2=this.plotWidth,l3=this.plotHeight,G2=this.plotBox,u3=this.clipRect,p3=this.clipBox,M2=this.chartBackground,v3=this.plotBackground,w3=this.plotBorder,r3,z3="animate";M2||(this.chartBackground=M2=a4.rect().addClass("highcharts-background").add(),z3="attr");if(f3)var y3=r3=M2.strokeWidth();else{y3=b3.borderWidth||0;r3=y3+(b3.shadow?8:0);h3={fill:h3||"none"};if(y3||M2["stroke-width"])h3.stroke=b3.borderColor,h3["stroke-width"]=y3;M2.attr(h3).shadow(b3.shadow)}M2[z3]({x:r3/2,y:r3/2,width:c3-r3-y3%2,height:d3-r3-y3%2,r:b3.borderRadius});z3="animate";v3||(z3="attr",this.plotBackground=v3=a4.rect().addClass("highcharts-plot-background").add());v3[z3](G2);f3||(v3.attr({fill:g4||"none"}).shadow(b3.plotShadow),k3&&(e3?(k3!==e3.attr("href")&&e3.attr("href",k3),e3.animate(G2)):this.plotBGImage=a4.image(k3,n3,m3,q2,l3).add()));u3?u3.animate({width:p3.width,height:p3.height}):this.clipRect=a4.clipRect(p3);z3="animate";w3||(z3="attr",this.plotBorder=w3=a4.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f3||w3.attr({stroke:b3.plotBorderColor,"stroke-width":b3.plotBorderWidth||0,fill:"none"});w3[z3](w3.crisp({x:n3,y:m3,width:q2,height:l3},-w3.strokeWidth()));this.isDirtyBox=false;S2(this,"afterDrawChartBox")};a3.prototype.propFromSeries=function(){var b3=this,a4=b3.options.chart,c3=b3.options.series,d3,f3,e3;["inverted","angular","polar"].forEach((function(h3){f3=z2[a4.type||a4.defaultSeriesType];e3=a4[h3]||f3&&f3.prototype[h3];for(d3=c3&&c3.length;!e3&&d3--;)(f3=z2[c3[d3].type])&&f3.prototype[h3]&&(e3=true);b3[h3]=e3}))};a3.prototype.linkSeries=function(){var b3=this,a4=b3.series;a4.forEach((function(b4){b4.linkedSeries.length=0}));a4.forEach((function(a5){var c3=a5.options.linkedTo;R2(c3)&&(c3=":previous"===c3?b3.series[a5.index-1]:b3.get(c3))&&c3.linkedParent!==a5&&(c3.linkedSeries.push(a5),a5.linkedParent=c3,c3.enabledDataSorting&&a5.setDataSortingOptions(),a5.visible=W2(a5.options.visible,c3.options.visible,a5.visible))}));S2(this,"afterLinkSeries")};a3.prototype.renderSeries=function(){this.series.forEach((function(b3){b3.translate();b3.render()}))};a3.prototype.renderLabels=function(){var b3=this,a4=b3.options.labels;a4.items&&a4.items.forEach((function(c3){var d3=K2(a4.style,c3.style),f3=ba(d3.left)+b3.plotLeft,e3=ba(d3.top)+b3.plotTop+12;delete d3.left;delete d3.top;b3.renderer.text(c3.html,f3,e3).attr({zIndex:2}).css(d3).add()}))};a3.prototype.render=function(){var b3=this.axes,a4=this.colorAxis,c3=this.renderer,d3=this.options,f3=function(b4){b4.forEach((function(b5){b5.visible&&b5.render()}))},e3=0;this.setTitle();this.legend=new H2(this,d3.legend);this.getStacks&&this.getStacks();this.getMargins(true);this.setChartSize();d3=this.plotWidth;b3.some((function(b4){if(b4.horiz&&b4.visible&&b4.options.labels.enabled&&b4.series.length)return e3=21,true}));var h3=this.plotHeight=Math.max(this.plotHeight-e3,0);b3.forEach((function(b4){b4.setScale()}));this.getAxisMargins();var g4=1.1<d3/this.plotWidth,k3=1.05<h3/this.plotHeight;if(g4||k3)b3.forEach((function(b4){(b4.horiz&&g4||!b4.horiz&&k3)&&b4.setTickInterval(true)})),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f3(b3):a4&&a4.length&&f3(a4);this.seriesGroup||(this.seriesGroup=c3.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=true};a3.prototype.addCredits=function(b3){var a4=this,c3=V2(true,this.options.credits,b3);c3.enabled&&!this.credits&&(this.credits=this.renderer.text(c3.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){c3.href&&(u2.location.href=c3.href)})).attr({align:c3.position.align,zIndex:8}),a4.styledMode||this.credits.css(c3.style),this.credits.add().align(c3.position),this.credits.update=function(b4){a4.credits=a4.credits.destroy();a4.addCredits(b4)})};a3.prototype.destroy=function(){var b3=this,a4=b3.axes,c3=b3.series,d3=b3.container,f3=d3&&d3.parentNode,e3;S2(b3,"destroy");b3.renderer.forExport?v2(w2,b3):w2[b3.index]=void 0;B.chartCount--;b3.renderTo.removeAttribute("data-highcharts-chart");ha(b3);for(e3=a4.length;e3--;)a4[e3]=a4[e3].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(e3=c3.length;e3--;)c3[e3]=c3[e3].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(a5){var c4=b3[a5];c4&&c4.destroy&&(b3[a5]=c4.destroy())}));d3&&(d3.innerHTML=k2.emptyHTML,ha(d3),f3&&Y(d3));Z(b3,(function(a5,c4){delete b3[c4]}))};a3.prototype.firstRender=function(){var b3=this,a4=b3.options;if(!b3.isReadyToRender||b3.isReadyToRender()){b3.getContainer();b3.resetMargins();b3.setChartSize();b3.propFromSeries();b3.getAxes();(P(a4.series)?a4.series:[]).forEach((function(a5){b3.initSeries(a5)}));b3.linkSeries();b3.setSeriesData();S2(b3,"beforeRender");r2&&(t2.isRequired()?b3.pointer=new t2(b3,a4):b3.pointer=new r2(b3,a4));b3.render();b3.pointer.getChartPosition();if(!b3.renderer.imgCount&&!b3.hasLoaded)b3.onload();b3.temporaryDisplay(true)}};a3.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(b3){b3&&"undefined"!==typeof this.index&&b3.apply(this,[this])}),this);S2(this,"load");S2(this,"render");T2(this.index)&&this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=true};a3.prototype.warnIfA11yModuleNotLoaded=function(){var b3=this.options,a4=this.title;b3&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(a4&&a4.element.textContent||"").replace(/</g,"&lt;")}),b3.accessibility&&false===b3.accessibility.enabled||U('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.',false,this))};a3.prototype.addSeries=function(b3,a4,c3){var d3=this,f3;b3&&(a4=W2(a4,true),S2(d3,"addSeries",{options:b3},(function(){f3=d3.initSeries(b3);d3.isDirtyLegend=true;d3.linkSeries();f3.enabledDataSorting&&f3.setData(b3.data,false);S2(d3,"afterAddSeries",{series:f3});a4&&d3.redraw(c3)})));return f3};a3.prototype.addAxis=function(b3,a4,c3,d3){return this.createAxis(a4?"xAxis":"yAxis",{axis:b3,redraw:c3,animation:d3})};a3.prototype.addColorAxis=function(b3,a4,c3){return this.createAxis("colorAxis",{axis:b3,redraw:a4,animation:c3})};a3.prototype.createAxis=function(b3,a4){b3=new g3(this,V2(a4.axis,{index:this[b3].length,isX:"xAxis"===b3}));W2(a4.redraw,true)&&this.redraw(a4.animation);return b3};a3.prototype.showLoading=function(b3){var a4=this,c3=a4.options,d3=c3.loading,f3=function(){e3&&Q(e3,{left:a4.plotLeft+"px",top:a4.plotTop+"px",width:a4.plotWidth+"px",height:a4.plotHeight+"px"})},e3=a4.loadingDiv,h3=a4.loadingSpan;e3||(a4.loadingDiv=e3=O2("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a4.container));h3||(a4.loadingSpan=h3=O2("span",{className:"highcharts-loading-inner"},null,e3),q(a4,"redraw",f3));e3.className="highcharts-loading";k2.setElementHTML(h3,W2(b3,c3.lang.loading,""));a4.styledMode||(Q(e3,K2(d3.style,{zIndex:10})),Q(h3,d3.labelStyle),a4.loadingShown||(Q(e3,{opacity:0,display:""}),p2(e3,{opacity:d3.style.opacity||.5},{duration:d3.showDuration||0})));a4.loadingShown=true;f3()};a3.prototype.hideLoading=function(){var b3=this.options,a4=this.loadingDiv;a4&&(a4.className="highcharts-loading highcharts-loading-hidden",this.styledMode||p2(a4,{opacity:0},{duration:b3.loading.hideDuration||100,complete:function(){Q(a4,{display:"none"})}}));this.loadingShown=false};a3.prototype.update=function(b3,a4,d3,f3){var e3=this,g4={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},k3=b3.isResponsiveOptions,n3=[],m3,q2;S2(e3,"update",{options:b3});k3||e3.setResponsive(false,true);b3=J(b3,e3.options);e3.userOptions=V2(e3.userOptions,b3);var l3=b3.chart;if(l3){V2(true,e3.options.chart,l3);"className"in l3&&e3.setClassName(l3.className);"reflow"in l3&&e3.setReflow(l3.reflow);if("inverted"in l3||"polar"in l3||"type"in l3){e3.propFromSeries();var G2=true}"alignTicks"in l3&&(G2=true);"events"in l3&&c2(this,l3);Z(l3,(function(b4,a5){-1!==e3.propsRequireUpdateSeries.indexOf("chart."+a5)&&(m3=true);-1!==e3.propsRequireDirtyBox.indexOf(a5)&&(e3.isDirtyBox=true);-1!==e3.propsRequireReflow.indexOf(a5)&&(k3?e3.isDirtyBox=true:q2=true)}));!e3.styledMode&&l3.style&&e3.renderer.setStyle(e3.options.chart.style||{})}!e3.styledMode&&b3.colors&&(this.options.colors=b3.colors);b3.time&&(this.time===L2&&(this.time=new h2(b3.time)),V2(true,e3.options.time,b3.time));Z(b3,(function(a5,c3){if(e3[c3]&&"function"===typeof e3[c3].update)e3[c3].update(a5,false);else if("function"===typeof e3[g4[c3]])e3[g4[c3]](a5);else"colors"!==c3&&-1===e3.collectionsWithUpdate.indexOf(c3)&&V2(true,e3.options[c3],b3[c3]);"chart"!==c3&&-1!==e3.propsRequireUpdateSeries.indexOf(c3)&&(m3=true)}));this.collectionsWithUpdate.forEach((function(a5){if(b3[a5]){var c3=[];e3[a5].forEach((function(b4,a6){b4.options.isInternal||c3.push(W2(b4.options.index,a6))}));ea(b3[a5]).forEach((function(b4,f4){var h3=T2(b4.id),g5;h3&&(g5=e3.get(b4.id));!g5&&e3[a5]&&(g5=e3[a5][c3?c3[f4]:f4])&&h3&&T2(g5.options.id)&&(g5=void 0);g5&&g5.coll===a5&&(g5.update(b4,false),d3&&(g5.touched=true));!g5&&d3&&e3.collectionsWithInit[a5]&&(e3.collectionsWithInit[a5][0].apply(e3,[b4].concat(e3.collectionsWithInit[a5][1]||[]).concat([false])).touched=true)}));d3&&e3[a5].forEach((function(b4){b4.touched||b4.options.isInternal?delete b4.touched:n3.push(b4)}))}}));n3.forEach((function(b4){b4.chart&&b4.remove&&b4.remove(false)}));G2&&e3.axes.forEach((function(b4){b4.update({},false)}));m3&&e3.getSeriesOrderByLinks().forEach((function(b4){b4.chart&&b4.update({},false)}),this);G2=l3&&l3.width;l3=l3&&(R2(l3.height)?fa(l3.height,G2||e3.chartWidth):l3.height);q2||M(G2)&&G2!==e3.chartWidth||M(l3)&&l3!==e3.chartHeight?e3.setSize(G2,l3,f3):W2(a4,true)&&e3.redraw(f3);S2(e3,"afterUpdate",{options:b3,redraw:a4,animation:f3})};a3.prototype.setSubtitle=function(b3,a4){this.applyDescription("subtitle",b3);this.layOutTitles(a4)};a3.prototype.setCaption=function(b3,a4){this.applyDescription("caption",b3);this.layOutTitles(a4)};a3.prototype.showResetZoom=function(){function b3(){a4.zoomOut()}var a4=this,c3=E2.lang,d3=a4.options.chart.zooming.resetButton,f3=d3.theme,e3="chart"===d3.relativeTo||"spacingBox"===d3.relativeTo?null:"scrollablePlotBox";S2(this,"beforeShowResetZoom",null,(function(){a4.resetZoomButton=a4.renderer.button(c3.resetZoom,null,null,b3,f3).attr({align:d3.position.align,title:c3.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d3.position,false,e3)}));S2(this,"afterShowResetZoom")};a3.prototype.zoomOut=function(){S2(this,"selection",{resetSelection:true},this.zoom)};a3.prototype.zoom=function(b3){var a4=this,c3=a4.pointer,d3=false,f3;!b3||b3.resetSelection?(a4.axes.forEach((function(b4){f3=b4.zoom()})),c3.initiated=false):b3.xAxis.concat(b3.yAxis).forEach((function(b4){var e4=b4.axis;if(c3[e4.isXAxis?"zoomX":"zoomY"]&&T2(c3.mouseDownX)&&T2(c3.mouseDownY)&&a4.isInsidePlot(c3.mouseDownX-a4.plotLeft,c3.mouseDownY-a4.plotTop,{axis:e4})||!T2(a4.inverted?c3.mouseDownX:c3.mouseDownY))f3=e4.zoom(b4.min,b4.max),e4.displayBtn&&(d3=true)}));var e3=a4.resetZoomButton;d3&&!e3?a4.showResetZoom():!d3&&X(e3)&&(a4.resetZoomButton=e3.destroy());f3&&a4.redraw(W2(a4.options.chart.animation,b3&&b3.animation,100>a4.pointCount))};a3.prototype.pan=function(b3,a4){var c3=this,d3=c3.hoverPoints;a4="object"===typeof a4?a4:{enabled:a4,type:"x"};var f3=c3.options.chart;f3&&f3.panning&&(f3.panning=a4);var e3=a4.type,h3;S2(this,"pan",{originalEvent:b3},(function(){d3&&d3.forEach((function(b4){b4.setState()}));var a5=c3.xAxis;"xy"===e3?a5=a5.concat(c3.yAxis):"y"===e3&&(a5=c3.yAxis);var f4={};a5.forEach((function(a6){if(a6.options.panningEnabled&&!a6.options.isInternal){var d4=a6.horiz,g4=b3[d4?"chartX":"chartY"];d4=d4?"mouseDownX":"mouseDownY";var k3=c3[d4],n3=a6.minPointOffset||0,m3=a6.reversed&&!c3.inverted||!a6.reversed&&c3.inverted?-1:1,l3=a6.getExtremes(),q2=a6.toValue(k3-g4,true)+n3*m3,G2=a6.toValue(k3+a6.len-g4,true)-(n3*m3||a6.isXAxis&&a6.pointRangePadding||0),u3=G2<q2;m3=a6.hasVerticalPanning();k3=u3?G2:q2;q2=u3?q2:G2;var p3=a6.panningState;!m3||a6.isXAxis||p3&&!p3.isDirty||a6.series.forEach((function(b4){var a7=b4.getProcessedData(true);a7=b4.getExtremes(a7.yData,true);p3||(p3={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});M(a7.dataMin)&&M(a7.dataMax)&&(p3.startMin=Math.min(W2(b4.options.threshold,Infinity),a7.dataMin,p3.startMin),p3.startMax=Math.max(W2(b4.options.threshold,-Infinity),a7.dataMax,p3.startMax))}));m3=Math.min(W2(p3&&p3.startMin,l3.dataMin),n3?l3.min:a6.toValue(a6.toPixels(l3.min)-a6.minPixelPadding));G2=Math.max(W2(p3&&p3.startMax,l3.dataMax),n3?l3.max:a6.toValue(a6.toPixels(l3.max)+a6.minPixelPadding));a6.panningState=p3;a6.isOrdinal||(n3=m3-k3,0<n3&&(q2+=n3,k3=m3),n3=q2-G2,0<n3&&(q2=G2,k3-=n3),a6.series.length&&k3!==l3.min&&q2!==l3.max&&k3>=m3&&q2<=G2&&(a6.setExtremes(k3,q2,false,false,{trigger:"pan"}),!c3.resetZoomButton&&k3!==m3&&q2!==G2&&e3.match("y")&&(c3.showResetZoom(),a6.displayBtn=false),h3=true),f4[d4]=g4)}}));Z(f4,(function(b4,a6){c3[a6]=b4}));h3&&c3.redraw(false);Q(c3.container,{cursor:"move"})}))};return a3}();K2(a2.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a2.prototype.addAxis,[true]],yAxis:[a2.prototype.addAxis,[false]],series:[a2.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});return a2}));K(g2,"Core/Legend/LegendSymbol.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.extend,x2=a2.merge,F2=a2.pick,C2;(function(a3){a3.drawLineMarker=function(a4){var t2=this.legendItem=this.legendItem||{},r2=this.options,l2=a4.symbolWidth,e2=a4.symbolHeight,d2=e2/2,h2=this.chart.renderer,m2=t2.group;a4=a4.baseline-Math.round(.3*a4.fontMetrics.b);var k2={},p2=r2.marker,D2=0;this.chart.styledMode||(k2={"stroke-width":Math.min(r2.lineWidth||0,24)},r2.dashStyle?k2.dashstyle=r2.dashStyle:"square"!==r2.linecap&&(k2["stroke-linecap"]="round"));t2.line=h2.path().addClass("highcharts-graph").attr(k2).add(m2);k2["stroke-linecap"]&&(D2=Math.min(t2.line.strokeWidth(),l2)/2);t2.line.attr({d:[["M",D2,a4],["L",l2-D2,a4]]});p2&&false!==p2.enabled&&l2&&(r2=Math.min(F2(p2.radius,d2),d2),0===this.symbol.indexOf("url")&&(p2=x2(p2,{width:e2,height:e2}),r2=0),t2.symbol=t2=h2.symbol(this.symbol,l2/2-r2,a4-r2,2*r2,2*r2,g3({context:"legend"},p2)).addClass("highcharts-point").add(m2),t2.isMarker=true)};a3.drawRectangle=function(a4,g4){g4=g4.legendItem||{};var r2=a4.symbolHeight,l2=a4.options.squareSymbol;g4.symbol=this.chart.renderer.rect(l2?(a4.symbolWidth-r2)/2:0,a4.baseline-r2+1,l2?r2:a4.symbolWidth,r2,F2(a4.options.symbolRadius,r2/2)).addClass("highcharts-point").attr({zIndex:3}).add(g4.group)}})(C2||(C2={}));return C2}));K(g2,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:false,crisp:true,showCheckbox:false,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:true},hover:{animation:{duration:50},enabled:true,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:true,formatter:function(){var a2=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a2(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:true,states:{normal:{animation:true},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:true,turboThreshold:1e3,findNearestPointBy:"x"}}));K(g2,"Core/Series/Series.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Defaults.js"],g2["Core/Foundation.js"],g2["Core/Globals.js"],g2["Core/Legend/LegendSymbol.js"],g2["Core/Series/Point.js"],g2["Core/Series/SeriesDefaults.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2){var e2=a2.animObject,d2=a2.setAnimation,h2=g3.defaultOptions,m2=x2.registerEventOptions,k2=F2.hasTouch,p2=F2.svg,D2=F2.win,A2=t2.seriesTypes,E2=l2.arrayMax,L2=l2.arrayMin,y2=l2.clamp,c2=l2.cleanRecursively,w2=l2.correctFloat,f2=l2.defined,n2=l2.erase,b2=l2.error,u2=l2.extend,z2=l2.find,q=l2.fireEvent,N=l2.getNestedProperty,J=l2.isArray,O2=l2.isNumber,Q=l2.isString,T2=l2.merge,Y=l2.objectEach,v2=l2.pick,U=l2.removeEvent,K2=l2.splat,ca=l2.syncTimeout;a2=function(){function a3(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a3.prototype.init=function(b3,a4){q(this,"init",{options:a4});var c3=this,d3=b3.series;this.eventsToUnbind=[];c3.chart=b3;c3.options=c3.setOptions(a4);a4=c3.options;c3.linkedSeries=[];c3.bindAxes();u2(c3,{name:a4.name,state:"",visible:false!==a4.visible,selected:true===a4.selected});m2(this,a4);var f3=a4.events;if(f3&&f3.click||a4.point&&a4.point.events&&a4.point.events.click||a4.allowPointSelect)b3.runTrackerClick=true;c3.getColor();c3.getSymbol();c3.parallelArrays.forEach((function(b4){c3[b4+"Data"]||(c3[b4+"Data"]=[])}));c3.isCartesian&&(b3.hasCartesianSeries=true);var e3;d3.length&&(e3=d3[d3.length-1]);c3._i=v2(e3&&e3._i,-1)+1;c3.opacity=c3.options.opacity;b3.orderSeries(this.insert(d3));a4.dataSorting&&a4.dataSorting.enabled?c3.setDataSortingOptions():c3.points||c3.data||c3.setData(a4.data,false);q(this,"afterInit")};a3.prototype.is=function(b3){return A2[b3]&&this instanceof A2[b3]};a3.prototype.insert=function(b3){var a4=this.options.index,c3;if(O2(a4)){for(c3=b3.length;c3--;)if(a4>=v2(b3[c3].options.index,b3[c3]._i)){b3.splice(c3+1,0,this);break}-1===c3&&b3.unshift(this);c3+=1}else b3.push(this);return v2(c3,b3.length-1)};a3.prototype.bindAxes=function(){var a4=this,c3=a4.options,d3=a4.chart,f3;q(this,"bindAxes",null,(function(){(a4.axisTypes||[]).forEach((function(e3){var h3=0;d3[e3].forEach((function(b3){f3=b3.options;if(c3[e3]===h3&&!f3.isInternal||"undefined"!==typeof c3[e3]&&c3[e3]===f3.id||"undefined"===typeof c3[e3]&&0===f3.index)a4.insert(b3.series),a4[e3]=b3,b3.isDirty=true;f3.isInternal||h3++}));a4[e3]||a4.optionalAxis===e3||b2(18,true,d3)}))}));q(this,"afterBindAxes")};a3.prototype.updateParallelArrays=function(b3,a4){var c3=b3.series,d3=arguments,f3=O2(a4)?function(d4){var f4="y"===d4&&c3.toYData?c3.toYData(b3):b3[d4];c3[d4+"Data"][a4]=f4}:function(b4){Array.prototype[a4].apply(c3[b4+"Data"],Array.prototype.slice.call(d3,2))};c3.parallelArrays.forEach(f3)};a3.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};a3.prototype.autoIncrement=function(b3){var a4=this.options,c3=a4.pointIntervalUnit,d3=a4.relativeXValue,f3=this.chart.time,e3=this.xIncrement,h3;e3=v2(e3,a4.pointStart,0);this.pointInterval=h3=v2(this.pointInterval,a4.pointInterval,1);d3&&O2(b3)&&(h3*=b3);c3&&(a4=new f3.Date(e3),"day"===c3?f3.set("Date",a4,f3.get("Date",a4)+h3):"month"===c3?f3.set("Month",a4,f3.get("Month",a4)+h3):"year"===c3&&f3.set("FullYear",a4,f3.get("FullYear",a4)+h3),h3=a4.getTime()-e3);if(d3&&O2(b3))return e3+h3;this.xIncrement=e3+h3;return e3};a3.prototype.setDataSortingOptions=function(){var b3=this.options;u2(this,{requireSorting:false,sorted:false,enabledDataSorting:true,allowDG:false});f2(b3.pointRange)||(b3.pointRange=1)};a3.prototype.setOptions=function(b3){var a4=this.chart,c3=a4.options,d3=c3.plotOptions,e3=a4.userOptions||{};b3=T2(b3);a4=a4.styledMode;var g4={plotOptions:d3,userOptions:b3};q(this,"setOptions",g4);var k3=g4.plotOptions[this.type],n3=e3.plotOptions||{};this.userOptions=g4.userOptions;e3=T2(k3,d3.series,e3.plotOptions&&e3.plotOptions[this.type],b3);this.tooltipOptions=T2(h2.tooltip,h2.plotOptions.series&&h2.plotOptions.series.tooltip,h2.plotOptions[this.type].tooltip,c3.tooltip.userOptions,d3.series&&d3.series.tooltip,d3[this.type].tooltip,b3.tooltip);this.stickyTracking=v2(b3.stickyTracking,n3[this.type]&&n3[this.type].stickyTracking,n3.series&&n3.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?true:e3.stickyTracking);null===k3.marker&&delete e3.marker;this.zoneAxis=e3.zoneAxis;d3=this.zones=(e3.zones||[]).slice();!e3.negativeColor&&!e3.negativeFillColor||e3.zones||(c3={value:e3[this.zoneAxis+"Threshold"]||e3.threshold||0,className:"highcharts-negative"},a4||(c3.color=e3.negativeColor,c3.fillColor=e3.negativeFillColor),d3.push(c3));d3.length&&f2(d3[d3.length-1].value)&&d3.push(a4?{}:{color:this.color,fillColor:this.fillColor});q(this,"afterSetOptions",{options:e3});return e3};a3.prototype.getName=function(){return v2(this.options.name,"Series "+(this.index+1))};a3.prototype.getCyclic=function(b3,a4,c3){var d3=this.chart,e3=this.userOptions,h3=b3+"Index",g4=b3+"Counter",k3=c3?c3.length:v2(d3.options.chart[b3+"Count"],d3[b3+"Count"]);if(!a4){var n3=v2(e3[h3],e3["_"+h3]);f2(n3)||(d3.series.length||(d3[g4]=0),e3["_"+h3]=n3=d3[g4]%k3,d3[g4]+=1);c3&&(a4=c3[n3])}"undefined"!==typeof n3&&(this[h3]=n3);this[b3]=a4};a3.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||h2.plotOptions[this.type].color,this.chart.options.colors)};a3.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a3.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a3.prototype.findPointIndex=function(b3,a4){var c3=b3.id,d3=b3.x,f3=this.points,e3=this.options.dataSorting,h3,g4;if(c3)e3=this.chart.get(c3),e3 instanceof B&&(h3=e3);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){if(h3=function(a5){return!a5.touched&&a5.index===b3.index},e3&&e3.matchByName?h3=function(a5){return!a5.touched&&a5.name===b3.name}:this.options.relativeXValue&&(h3=function(a5){return!a5.touched&&a5.options.x===b3.x}),h3=z2(f3,h3),!h3)return}if(h3){var k3=h3&&h3.index;"undefined"!==typeof k3&&(g4=true)}"undefined"===typeof k3&&O2(d3)&&(k3=this.xData.indexOf(d3,a4));-1!==k3&&"undefined"!==typeof k3&&this.cropped&&(k3=k3>=this.cropStart?k3-this.cropStart:k3);!g4&&O2(k3)&&f3[k3]&&f3[k3].touched&&(k3=void 0);return k3};a3.prototype.updateData=function(b3,a4){var c3=this.options,d3=c3.dataSorting,e3=this.points,h3=[],g4=this.requireSorting,k3=b3.length===e3.length,n3,m3,q2,l3=true;this.xIncrement=null;b3.forEach((function(b4,a5){var m4=f2(b4)&&this.pointClass.prototype.optionsToObject.call({series:this},b4)||{},l4=m4.x;if(m4.id||O2(l4)){if(m4=this.findPointIndex(m4,q2),-1===m4||"undefined"===typeof m4?h3.push(b4):e3[m4]&&b4!==c3.data[m4]?(e3[m4].update(b4,false,null,false),e3[m4].touched=true,g4&&(q2=m4+1)):e3[m4]&&(e3[m4].touched=true),!k3||a5!==m4||d3&&d3.enabled||this.hasDerivedData)n3=true}else h3.push(b4)}),this);if(n3)for(b3=e3.length;b3--;)(m3=e3[b3])&&!m3.touched&&m3.remove&&m3.remove(false,a4);else!k3||d3&&d3.enabled?l3=false:(b3.forEach((function(b4,a5){b4!==e3[a5].y&&e3[a5].update&&e3[a5].update(b4,false,null,false)})),h3.length=0);e3.forEach((function(b4){b4&&(b4.touched=false)}));if(!l3)return false;h3.forEach((function(b4){this.addPoint(b4,false,null,null,false)}),this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=E2(this.xData),this.autoIncrement());return true};a3.prototype.setData=function(a4,c3,d3,f3){void 0===c3&&(c3=true);var e3=this,h3=e3.points,g4=h3&&h3.length||0,k3=e3.options,n3=e3.chart,m3=k3.dataSorting,l3=e3.xAxis,q2=k3.turboThreshold,u3=this.xData,p3=this.yData,G=e3.pointArrayMap;G=G&&G.length;var v3=k3.keys,w3,r3=0,z3=1,y3=null;if(!n3.options.chart.allowMutatingData){k3.data&&delete e3.options.data;e3.userOptions.data&&delete e3.userOptions.data;var M=T2(true,a4)}a4=M||a4||[];M=a4.length;m3&&m3.enabled&&(a4=this.sortData(a4));n3.options.chart.allowMutatingData&&false!==f3&&M&&g4&&!e3.cropped&&!e3.hasGroupedData&&e3.visible&&!e3.boosted&&(w3=this.updateData(a4,d3));if(!w3){e3.xIncrement=null;e3.colorCounter=0;this.parallelArrays.forEach((function(b3){e3[b3+"Data"].length=0}));if(q2&&M>q2)if(y3=e3.getFirstValidPoint(a4),O2(y3))for(d3=0;d3<M;d3++)u3[d3]=this.autoIncrement(),p3[d3]=a4[d3];else if(J(y3))if(G)if(y3.length===G)for(d3=0;d3<M;d3++)u3[d3]=this.autoIncrement(),p3[d3]=a4[d3];else for(d3=0;d3<M;d3++)f3=a4[d3],u3[d3]=f3[0],p3[d3]=f3.slice(1,G+1);else if(v3&&(r3=v3.indexOf("x"),z3=v3.indexOf("y"),r3=0<=r3?r3:0,z3=0<=z3?z3:1),1===y3.length&&(z3=0),r3===z3)for(d3=0;d3<M;d3++)u3[d3]=this.autoIncrement(),p3[d3]=a4[d3][z3];else for(d3=0;d3<M;d3++)f3=a4[d3],u3[d3]=f3[r3],p3[d3]=f3[z3];else b2(12,false,n3);else for(d3=0;d3<M;d3++)"undefined"!==typeof a4[d3]&&(f3={series:e3},e3.pointClass.prototype.applyOptions.apply(f3,[a4[d3]]),e3.updateParallelArrays(f3,d3));p3&&Q(p3[0])&&b2(14,true,n3);e3.data=[];e3.options.data=e3.userOptions.data=a4;for(d3=g4;d3--;)h3[d3]&&h3[d3].destroy&&h3[d3].destroy();l3&&(l3.minRange=l3.userMinRange);e3.isDirty=n3.isDirtyBox=true;e3.isDirtyData=!!h3;d3=false}"point"===k3.legendType&&(this.processData(),this.generatePoints());c3&&n3.redraw(d3)};a3.prototype.sortData=function(b3){var a4=this,c3=a4.options.dataSorting.sortKey||"y",d3=function(b4,a5){return f2(a5)&&b4.pointClass.prototype.optionsToObject.call({series:b4},a5)||{}};b3.forEach((function(c4,e3){b3[e3]=d3(a4,c4);b3[e3].index=e3}),this);b3.concat().sort((function(b4,a5){b4=N(c3,b4);a5=N(c3,a5);return a5<b4?-1:a5>b4?1:0})).forEach((function(b4,a5){b4.x=a5}),this);a4.linkedSeries&&a4.linkedSeries.forEach((function(a5){var c4=a5.options,e3=c4.data;c4.dataSorting&&c4.dataSorting.enabled||!e3||(e3.forEach((function(c5,f3){e3[f3]=d3(a5,c5);b3[f3]&&(e3[f3].x=b3[f3].x,e3[f3].index=f3)})),a5.setData(e3,false))}));return b3};a3.prototype.getProcessedData=function(a4){var c3=this.xAxis,d3=this.options,e3=d3.cropThreshold,f3=a4||this.getExtremesFromAll||d3.getExtremesFromAll,h3=this.isCartesian;a4=c3&&c3.val2lin;d3=!(!c3||!c3.logarithmic);var g4=0,k3=this.xData,n3=this.yData,m3=this.requireSorting;var l3=false;var q2=k3.length;if(c3){l3=c3.getExtremes();var u3=l3.min;var p3=l3.max;l3=!(!c3.categories||c3.names.length)}if(h3&&this.sorted&&!f3&&(!e3||q2>e3||this.forceCrop)){if(k3[q2-1]<u3||k3[0]>p3)k3=[],n3=[];else if(this.yData&&(k3[0]<u3||k3[q2-1]>p3)){var G=this.cropData(this.xData,this.yData,u3,p3);k3=G.xData;n3=G.yData;g4=G.start;G=true}}for(e3=k3.length||1;--e3;)if(c3=d3?a4(k3[e3])-a4(k3[e3-1]):k3[e3]-k3[e3-1],0<c3&&("undefined"===typeof v3||c3<v3))var v3=c3;else 0>c3&&m3&&!l3&&(b2(15,false,this.chart),m3=false);return{xData:k3,yData:n3,cropped:G,cropStart:g4,closestPointRange:v3}};a3.prototype.processData=function(b3){var a4=this.xAxis;if(this.isCartesian&&!this.isDirty&&!a4.isDirty&&!this.yAxis.isDirty&&!b3)return false;b3=this.getProcessedData();this.cropped=b3.cropped;this.cropStart=b3.cropStart;this.processedXData=b3.xData;this.processedYData=b3.yData;this.closestPointRange=this.basePointRange=b3.closestPointRange;q(this,"afterProcessData")};a3.prototype.cropData=function(b3,a4,c3,d3,e3){var f3=b3.length,h3,g4=0,k3=f3;e3=v2(e3,this.cropShoulder);for(h3=0;h3<f3;h3++)if(b3[h3]>=c3){g4=Math.max(0,h3-e3);break}for(c3=h3;c3<f3;c3++)if(b3[c3]>d3){k3=c3+e3;break}return{xData:b3.slice(g4,k3),yData:a4.slice(g4,k3),start:g4,end:k3}};a3.prototype.generatePoints=function(){var b3=this.options,a4=this.processedData||b3.data,c3=this.processedXData,d3=this.processedYData,e3=this.pointClass,f3=c3.length,h3=this.cropStart||0,g4=this.hasGroupedData,k3=b3.keys,n3=[];b3=b3.dataGrouping&&b3.dataGrouping.groupAll?h3:0;var m3,l3,p3=this.data;if(!p3&&!g4){var v3=[];v3.length=a4.length;p3=this.data=v3}k3&&g4&&(this.options.keys=false);for(l3=0;l3<f3;l3++){v3=h3+l3;if(g4){var r3=(new e3).init(this,[c3[l3]].concat(K2(d3[l3])));r3.dataGroup=this.groupMap[b3+l3];r3.dataGroup.options&&(r3.options=r3.dataGroup.options,u2(r3,r3.dataGroup.options),delete r3.dataLabels)}else(r3=p3[v3])||"undefined"===typeof a4[v3]||(p3[v3]=r3=(new e3).init(this,a4[v3],c3[l3]));r3&&(r3.index=g4?b3+l3:v3,n3[l3]=r3)}this.options.keys=k3;if(p3&&(f3!==(m3=p3.length)||g4))for(l3=0;l3<m3;l3++)l3!==h3||g4||(l3+=f3),p3[l3]&&(p3[l3].destroyElements(),p3[l3].plotX=void 0);this.data=p3;this.points=n3;q(this,"afterGeneratePoints")};a3.prototype.getXExtremes=function(b3){return{min:L2(b3),max:E2(b3)}};a3.prototype.getExtremes=function(b3,a4){var c3=this.xAxis,d3=this.yAxis,e3=this.processedXData||this.xData,f3=[],h3=this.requireSorting?this.cropShoulder:0;d3=d3?d3.positiveValuesOnly:false;var g4,k3=0,n3=0,m3=0;b3=b3||this.stackedYData||this.processedYData||[];var l3=b3.length;if(c3){var p3=c3.getExtremes();k3=p3.min;n3=p3.max}for(g4=0;g4<l3;g4++){var u3=e3[g4];p3=b3[g4];var G=(O2(p3)||J(p3))&&(p3.length||0<p3||!d3);u3=a4||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c3||(e3[g4+h3]||u3)>=k3&&(e3[g4-h3]||u3)<=n3;if(G&&u3)if(G=p3.length)for(;G--;)O2(p3[G])&&(f3[m3++]=p3[G]);else f3[m3++]=p3}b3={activeYData:f3,dataMin:L2(f3),dataMax:E2(f3)};q(this,"afterGetExtremes",{dataExtremes:b3});return b3};a3.prototype.applyExtremes=function(){var b3=this.getExtremes();this.dataMin=b3.dataMin;this.dataMax=b3.dataMax;return b3};a3.prototype.getFirstValidPoint=function(b3){for(var a4=b3.length,c3=0,d3=null;null===d3&&c3<a4;)d3=b3[c3],c3++;return d3};a3.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b3=this.options,a4=b3.stacking,c3=this.xAxis,d3=c3.categories,e3=this.enabledDataSorting,h3=this.yAxis,g4=this.points,k3=g4.length,n3=this.pointPlacementToXValue(),m3=!!n3,l3=b3.threshold,p3=b3.startFromThreshold?l3:0,u3=this.zoneAxis||"y",r3,z3,t3=Number.MAX_VALUE;for(r3=0;r3<k3;r3++){var D3=g4[r3],E3=D3.x,A3=void 0,N2=void 0,I=D3.y,x3=D3.low,C3=a4&&h3.stacking&&h3.stacking.stacks[(this.negStacks&&I<(p3?0:l3)?"-":"")+this.stackKey];if(h3.positiveValuesOnly&&!h3.validatePositiveValue(I)||c3.positiveValuesOnly&&!c3.validatePositiveValue(E3))D3.isNull=true;D3.plotX=z3=w2(y2(c3.translate(E3,0,0,0,1,n3,"flags"===this.type),-1e5,1e5));if(a4&&this.visible&&C3&&C3[E3]){var L3=this.getStackIndicator(L3,E3,this.index);!D3.isNull&&L3.key&&(A3=C3[E3],N2=A3.points[L3.key]);A3&&J(N2)&&(x3=N2[0],I=N2[1],x3===p3&&L3.key===C3[E3].base&&(x3=v2(O2(l3)?l3:h3.min)),h3.positiveValuesOnly&&f2(x3)&&0>=x3&&(x3=void 0),D3.total=D3.stackTotal=v2(A3.total),D3.percentage=f2(D3.y)&&A3.total?D3.y/A3.total*100:void 0,D3.stackY=I,this.irregularWidths||A3.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}D3.yBottom=f2(x3)?y2(h3.translate(x3,0,1,0,1),-1e5,1e5):void 0;this.dataModify&&(I=this.dataModify.modifyValue(I,r3));D3.plotY=void 0;O2(I)&&(A3=h3.translate(I,false,true,false,true),"undefined"!==typeof A3&&(D3.plotY=y2(A3,-1e5,1e5)));D3.isInside=this.isPointInside(D3);D3.clientX=m3?w2(c3.translate(E3,0,0,0,1,n3)):z3;D3.negative=D3[u3]<(b3[u3+"Threshold"]||l3||0);D3.category=v2(d3&&d3[D3.x],D3.x);if(!D3.isNull&&false!==D3.visible){"undefined"!==typeof B2&&(t3=Math.min(t3,Math.abs(z3-B2)));var B2=z3}D3.zone=this.zones.length?D3.getZone():void 0;!D3.graphic&&this.group&&e3&&(D3.isNew=true)}this.closestPointRangePx=t3;q(this,"afterTranslate")};a3.prototype.getValidPoints=function(b3,a4,c3){var d3=this.chart;return(b3||this.points||[]).filter((function(b4){return a4&&!d3.isInsidePlot(b4.plotX,b4.plotY,{inverted:d3.inverted})?false:false!==b4.visible&&(c3||!b4.isNull)}))};a3.prototype.getClipBox=function(){var b3=this.chart,a4=this.xAxis,c3=this.yAxis,d3=T2(b3.clipBox);a4&&a4.len!==b3.plotSizeX&&(d3.width=a4.len);c3&&c3.len!==b3.plotSizeY&&(d3.height=c3.len);return d3};a3.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};a3.prototype.setClip=function(){var b3=this.chart,a4=this.group,c3=this.markerGroup,d3=b3.sharedClips;b3=b3.renderer;var e3=this.getClipBox(),f3=this.getSharedClipKey(),h3=d3[f3];h3?h3.animate(e3):d3[f3]=h3=b3.clipRect(e3);a4&&a4.clip(false===this.options.clip?void 0:h3);c3&&c3.clip()};a3.prototype.animate=function(b3){var a4=this.chart,c3=this.group,d3=this.markerGroup,f3=a4.inverted,h3=e2(this.options.animation),g4=[this.getSharedClipKey(),h3.duration,h3.easing,h3.defer].join(),k3=a4.sharedClips[g4],n3=a4.sharedClips[g4+"m"];if(b3&&c3)h3=this.getClipBox(),k3?k3.attr("height",h3.height):(h3.width=0,f3&&(h3.x=a4.plotHeight),k3=a4.renderer.clipRect(h3),a4.sharedClips[g4]=k3,n3=a4.renderer.clipRect({x:-99,y:-99,width:f3?a4.plotWidth+199:99,height:f3?99:a4.plotHeight+199}),a4.sharedClips[g4+"m"]=n3),c3.clip(k3),d3&&d3.clip(n3);else if(k3&&!k3.hasClass("highcharts-animating")){a4=this.getClipBox();var m3=h3.step;d3&&d3.element.childNodes.length&&(h3.step=function(b4,a5){m3&&m3.apply(a5,arguments);"width"===a5.prop&&n3&&n3.element&&n3.attr(f3?"height":"width",b4+99)});k3.addClass("highcharts-animating").animate(a4,h3)}};a3.prototype.afterAnimate=function(){var b3=this;this.setClip();Y(this.chart.sharedClips,(function(a4,c3,d3){a4&&!b3.chart.container.querySelector('[clip-path="url(#'.concat(a4.id,')"]'))&&(a4.destroy(),delete d3[c3])}));this.finishedAnimating=true;q(this,"afterAnimate")};a3.prototype.drawPoints=function(b3){void 0===b3&&(b3=this.points);var a4=this.chart,c3=a4.styledMode,d3=this.colorAxis,e3=this.options.marker,f3=this[this.specialGroup||"markerGroup"],h3=this.xAxis,g4=v2(e3.enabled,!h3||h3.isRadial?true:null,this.closestPointRangePx>=e3.enabledThreshold*e3.radius),k3,n3;if(false!==e3.enabled||this._hasPointMarkers)for(k3=0;k3<b3.length;k3++){var m3=b3[k3];var l3=(n3=m3.graphic)?"animate":"attr";var q2=m3.marker||{};var p3=!!m3.marker;if((g4&&"undefined"===typeof q2.enabled||q2.enabled)&&!m3.isNull&&false!==m3.visible){var u3=v2(q2.symbol,this.symbol,"rect");var G=this.markerAttribs(m3,m3.selected&&"select");this.enabledDataSorting&&(m3.startXPos=h3.reversed?-(G.width||0):h3.width);var r3=false!==m3.isInside;!n3&&r3&&(0<(G.width||0)||m3.hasImage)&&(m3.graphic=n3=a4.renderer.symbol(u3,G.x,G.y,G.width,G.height,p3?q2:e3).add(f3),this.enabledDataSorting&&a4.hasRendered&&(n3.attr({x:m3.startXPos}),l3="animate"));n3&&"animate"===l3&&n3[r3?"show":"hide"](r3).animate(G);if(n3)if(q2=this.pointAttribs(m3,c3||!m3.selected?void 0:"select"),c3)d3&&n3.css({fill:q2.fill});else n3[l3](q2);n3&&n3.addClass(m3.getClassName(),true)}else n3&&(m3.graphic=n3.destroy())}};a3.prototype.markerAttribs=function(b3,a4){var c3=this.options,d3=c3.marker,e3=b3.marker||{},f3=e3.symbol||d3.symbol,h3={},g4=v2(e3.radius,d3&&d3.radius);a4&&(d3=d3.states[a4],a4=e3.states&&e3.states[a4],g4=v2(a4&&a4.radius,d3&&d3.radius,g4&&g4+(d3&&d3.radiusPlus||0)));b3.hasImage=f3&&0===f3.indexOf("url");b3.hasImage&&(g4=0);b3=b3.pos();O2(g4)&&b3&&(h3.x=b3[0]-g4,h3.y=b3[1]-g4,c3.crisp&&(h3.x=Math.floor(h3.x)));g4&&(h3.width=h3.height=2*g4);return h3};a3.prototype.pointAttribs=function(b3,a4){var c3=this.options.marker,d3=b3&&b3.options,e3=d3&&d3.marker||{},f3=d3&&d3.color,h3=b3&&b3.color,g4=b3&&b3.zone&&b3.zone.color,k3=this.color;b3=v2(e3.lineWidth,c3.lineWidth);d3=1;k3=f3||g4||h3||k3;f3=e3.fillColor||c3.fillColor||k3;h3=e3.lineColor||c3.lineColor||k3;a4=a4||"normal";c3=c3.states[a4]||{};a4=e3.states&&e3.states[a4]||{};b3=v2(a4.lineWidth,c3.lineWidth,b3+v2(a4.lineWidthPlus,c3.lineWidthPlus,0));f3=a4.fillColor||c3.fillColor||f3;h3=a4.lineColor||c3.lineColor||h3;d3=v2(a4.opacity,c3.opacity,d3);return{stroke:h3,"stroke-width":b3,fill:f3,opacity:d3}};a3.prototype.destroy=function(b3){var a4=this,c3=a4.chart,d3=/AppleWebKit\/533/.test(D2.navigator.userAgent),e3=a4.data||[],f3,h3,g4,k3;q(a4,"destroy",{keepEventsForUpdate:b3});this.removeEvents(b3);(a4.axisTypes||[]).forEach((function(b4){(k3=a4[b4])&&k3.series&&(n2(k3.series,a4),k3.isDirty=k3.forceRedraw=true)}));a4.legendItem&&a4.chart.legend.destroyItem(a4);for(h3=e3.length;h3--;)(g4=e3[h3])&&g4.destroy&&g4.destroy();a4.clips&&a4.clips.forEach((function(b4){return b4.destroy()}));l2.clearTimeout(a4.animationTimeout);Y(a4,(function(b4,a5){b4 instanceof r2&&!b4.survive&&(f3=d3&&"group"===a5?"hide":"destroy",b4[f3]())}));c3.hoverSeries===a4&&(c3.hoverSeries=void 0);n2(c3.series,a4);c3.orderSeries();Y(a4,(function(c4,d4){b3&&"hcEvents"===d4||delete a4[d4]}))};a3.prototype.applyZones=function(){var b3=this,a4=this.chart,c3=a4.renderer,d3=this.zones,e3=this.clips||[],f3=this.graph,h3=this.area,g4=Math.max(a4.plotWidth,a4.plotHeight),k3=this[(this.zoneAxis||"y")+"Axis"],n3=a4.inverted,m3,l3,q2,p3,u3,r3,z3,w3,t3=false;if(d3.length&&(f3||h3)&&k3&&"undefined"!==typeof k3.min){var D3=k3.reversed;var E3=k3.horiz;f3&&!this.showLine&&f3.hide();h3&&h3.hide();var A3=k3.getExtremes();d3.forEach((function(d4,G){m3=D3?E3?a4.plotWidth:0:E3?0:k3.toPixels(A3.min)||0;m3=y2(v2(l3,m3),0,g4);l3=y2(Math.round(k3.toPixels(v2(d4.value,A3.max),true)||0),0,g4);t3&&(m3=l3=k3.toPixels(A3.max));p3=Math.abs(m3-l3);u3=Math.min(m3,l3);r3=Math.max(m3,l3);k3.isXAxis?(q2={x:n3?r3:u3,y:0,width:p3,height:g4},E3||(q2.x=a4.plotHeight-q2.x)):(q2={x:0,y:n3?r3:u3,width:g4,height:p3},E3&&(q2.y=a4.plotWidth-q2.y));n3&&c3.isVML&&(q2=k3.isXAxis?{x:0,y:D3?u3:r3,height:q2.width,width:a4.chartWidth}:{x:q2.y-a4.plotLeft-a4.spacingBox.x,y:0,width:q2.height,height:a4.chartHeight});e3[G]?e3[G].animate(q2):e3[G]=c3.clipRect(q2);z3=b3["zone-area-"+G];w3=b3["zone-graph-"+G];f3&&w3&&w3.clip(e3[G]);h3&&z3&&z3.clip(e3[G]);t3=d4.value>A3.max;b3.resetZones&&0===l3&&(l3=void 0)}));this.clips=e3}else b3.visible&&(f3&&f3.show(),h3&&h3.show())};a3.prototype.plotGroup=function(b3,a4,c3,d3,e3){var h3=this[b3],g4=!h3;c3={visibility:c3,zIndex:d3||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c3.opacity=this.opacity);g4&&(this[b3]=h3=this.chart.renderer.g().add(e3));h3.addClass("highcharts-"+a4+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(f2(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(h3.hasClass("highcharts-tracker")?" highcharts-tracker":""),true);h3.attr(c3)[g4?"attr":"animate"](this.getPlotBox(a4));return h3};a3.prototype.getPlotBox=function(b3){var a4=this.xAxis,c3=this.yAxis,d3=this.chart;b3=d3.inverted&&!d3.polar&&a4&&false!==this.invertible&&"series"===b3;d3.inverted&&(a4=c3,c3=this.xAxis);return{translateX:a4?a4.left:d3.plotLeft,translateY:c3?c3.top:d3.plotTop,rotation:b3?90:0,rotationOriginX:b3?(a4.len-c3.len)/2:0,rotationOriginY:b3?(a4.len+c3.len)/2:0,scaleX:b3?-1:1,scaleY:1}};a3.prototype.removeEvents=function(b3){b3||U(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(b4){b4()})),this.eventsToUnbind.length=0)};a3.prototype.render=function(){var b3=this,a4=b3.chart,c3=b3.options,d3=e2(c3.animation),f3=b3.visible?"inherit":"hidden",h3=c3.zIndex,g4=b3.hasRendered,k3=a4.seriesGroup;a4=!b3.finishedAnimating&&a4.renderer.isSVG?d3.duration:0;q(this,"render");b3.plotGroup("group","series",f3,h3,k3);b3.markerGroup=b3.plotGroup("markerGroup","markers",f3,h3,k3);false!==c3.clip&&b3.setClip();b3.animate&&a4&&b3.animate(true);b3.drawGraph&&(b3.drawGraph(),b3.applyZones());b3.visible&&b3.drawPoints();b3.drawDataLabels&&b3.drawDataLabels();b3.redrawPoints&&b3.redrawPoints();b3.drawTracker&&false!==b3.options.enableMouseTracking&&b3.drawTracker();b3.animate&&a4&&b3.animate();g4||(a4&&d3.defer&&(a4+=d3.defer),b3.animationTimeout=ca((function(){b3.afterAnimate()}),a4||0));b3.isDirty=false;b3.hasRendered=true;q(b3,"afterRender")};a3.prototype.redraw=function(){var b3=this.isDirty||this.isDirtyData;this.translate();this.render();b3&&delete this.kdTree};a3.prototype.searchPoint=function(b3,a4){var c3=this.xAxis,d3=this.yAxis,e3=this.chart.inverted;return this.searchKDTree({clientX:e3?c3.len-b3.chartY+c3.pos:b3.chartX-c3.pos,plotY:e3?d3.len-b3.chartX+d3.pos:b3.chartY-d3.pos},a4,b3)};a3.prototype.buildKDTree=function(b3){function a4(b4,d4,e3){var f3=b4&&b4.length;if(f3){var h3=c3.kdAxisArray[d4%e3];b4.sort((function(b5,a5){return b5[h3]-a5[h3]}));f3=Math.floor(f3/2);return{point:b4[f3],left:a4(b4.slice(0,f3),d4+1,e3),right:a4(b4.slice(f3+1),d4+1,e3)}}}this.buildingKdTree=true;var c3=this,d3=-1<c3.options.findNearestPointBy.indexOf("y")?2:1;delete c3.kdTree;ca((function(){c3.kdTree=a4(c3.getValidPoints(null,!c3.directTouch),d3,d3);c3.buildingKdTree=false}),c3.options.kdNow||b3&&"touchstart"===b3.type?0:1)};a3.prototype.searchKDTree=function(b3,a4,c3){function d3(b4,a5,c4,n3){var m3=a5.point,l3=e3.kdAxisArray[c4%n3],q2=m3,p3=f2(b4[h3])&&f2(m3[h3])?Math.pow(b4[h3]-m3[h3],2):null;var u3=f2(b4[g4])&&f2(m3[g4])?Math.pow(b4[g4]-m3[g4],2):null;u3=(p3||0)+(u3||0);m3.dist=f2(u3)?Math.sqrt(u3):Number.MAX_VALUE;m3.distX=f2(p3)?Math.sqrt(p3):Number.MAX_VALUE;l3=b4[l3]-m3[l3];u3=0>l3?"left":"right";p3=0>l3?"right":"left";a5[u3]&&(u3=d3(b4,a5[u3],c4+1,n3),q2=u3[k3]<q2[k3]?u3:m3);a5[p3]&&Math.sqrt(l3*l3)<q2[k3]&&(b4=d3(b4,a5[p3],c4+1,n3),q2=b4[k3]<q2[k3]?b4:q2);return q2}var e3=this,h3=this.kdAxisArray[0],g4=this.kdAxisArray[1],k3=a4?"distX":"dist";a4=-1<e3.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(c3);if(this.kdTree)return d3(b3,this.kdTree,a4,a4)};a3.prototype.pointPlacementToXValue=function(){var b3=this.options,a4=b3.pointRange,c3=this.xAxis;b3=b3.pointPlacement;"between"===b3&&(b3=c3.reversed?-.5:.5);return O2(b3)?b3*(a4||c3.pointRange):0};a3.prototype.isPointInside=function(b3){var a4=this.chart,c3=this.xAxis,d3=this.yAxis;return"undefined"!==typeof b3.plotY&&"undefined"!==typeof b3.plotX&&0<=b3.plotY&&b3.plotY<=(d3?d3.len:a4.plotHeight)&&0<=b3.plotX&&b3.plotX<=(c3?c3.len:a4.plotWidth)};a3.prototype.drawTracker=function(){var b3=this,a4=b3.options,c3=a4.trackByArea,d3=[].concat(c3?b3.areaPath:b3.graphPath),e3=b3.chart,f3=e3.pointer,h3=e3.renderer,g4=e3.options.tooltip.snap,n3=b3.tracker,m3=function(a5){if(e3.hoverSeries!==b3)b3.onMouseOver()},l3="rgba(192,192,192,"+(p2?1e-4:.002)+")";n3?n3.attr({d:d3}):b3.graph&&(b3.tracker=h3.path(d3).attr({visibility:b3.visible?"inherit":"hidden",zIndex:2}).addClass(c3?"highcharts-tracker-area":"highcharts-tracker-line").add(b3.group),e3.styledMode||b3.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:l3,fill:c3?l3:"none","stroke-width":b3.graph.strokeWidth()+(c3?0:2*g4)}),[b3.tracker,b3.markerGroup,b3.dataLabelsGroup].forEach((function(b4){if(b4&&(b4.addClass("highcharts-tracker").on("mouseover",m3).on("mouseout",(function(b5){f3.onTrackerMouseOut(b5)})),a4.cursor&&!e3.styledMode&&b4.css({cursor:a4.cursor}),k2))b4.on("touchstart",m3)})));q(this,"afterDrawTracker")};a3.prototype.addPoint=function(b3,a4,c3,d3,e3){var f3=this.options,h3=this.data,g4=this.chart,k3=this.xAxis;k3=k3&&k3.hasNames&&k3.names;var n3=f3.data,m3=this.xData,l3;a4=v2(a4,true);var p3={series:this};this.pointClass.prototype.applyOptions.apply(p3,[b3]);var u3=p3.x;var r3=m3.length;if(this.requireSorting&&u3<m3[r3-1])for(l3=true;r3&&m3[r3-1]>u3;)r3--;this.updateParallelArrays(p3,"splice",r3,0,0);this.updateParallelArrays(p3,r3);k3&&p3.name&&(k3[u3]=p3.name);n3.splice(r3,0,b3);if(l3||this.processedData)this.data.splice(r3,0,null),this.processData();"point"===f3.legendType&&this.generatePoints();c3&&(h3[0]&&h3[0].remove?h3[0].remove(false):(h3.shift(),this.updateParallelArrays(p3,"shift"),n3.shift()));false!==e3&&q(this,"addPoint",{point:p3});this.isDirtyData=this.isDirty=true;a4&&g4.redraw(d3)};a3.prototype.removePoint=function(b3,a4,c3){var e3=this,f3=e3.data,h3=f3[b3],g4=e3.points,k3=e3.chart,n3=function(){g4&&g4.length===f3.length&&g4.splice(b3,1);f3.splice(b3,1);e3.options.data.splice(b3,1);e3.updateParallelArrays(h3||{series:e3},"splice",b3,1);h3&&h3.destroy();e3.isDirty=true;e3.isDirtyData=true;a4&&k3.redraw()};d2(c3,k3);a4=v2(a4,true);h3?h3.firePointEvent("remove",null,n3):n3()};a3.prototype.remove=function(b3,a4,c3,d3){function e3(){f3.destroy(d3);h3.isDirtyLegend=h3.isDirtyBox=true;h3.linkSeries();v2(b3,true)&&h3.redraw(a4)}var f3=this,h3=f3.chart;false!==c3?q(f3,"remove",null,e3):e3()};a3.prototype.update=function(a4,d3){a4=c2(a4,this.userOptions);q(this,"update",{options:a4});var e3=this,f3=e3.chart,h3=e3.userOptions,g4=e3.initialType||e3.type,k3=f3.options.plotOptions,n3=A2[g4].prototype,m3=e3.finishedAnimating&&{animation:false},l3={},p3=["eventOptions","navigatorSeries","baseSeries"],r3=a4.type||h3.type||f3.options.chart.type,z3=!(this.hasDerivedData||r3&&r3!==this.type||"undefined"!==typeof a4.pointStart||"undefined"!==typeof a4.pointInterval||"undefined"!==typeof a4.relativeXValue||a4.joinBy||a4.mapData||e3.hasOptionChanged("dataGrouping")||e3.hasOptionChanged("pointStart")||e3.hasOptionChanged("pointInterval")||e3.hasOptionChanged("pointIntervalUnit")||e3.hasOptionChanged("keys"));r3=r3||g4;z3&&(p3.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),false!==a4.visible&&p3.push("area","graph"),e3.parallelArrays.forEach((function(b3){p3.push(b3+"Data")})),a4.data&&(a4.dataSorting&&u2(e3.options.dataSorting,a4.dataSorting),this.setData(a4.data,false)));a4=T2(h3,m3,{index:"undefined"===typeof h3.index?e3.index:h3.index,pointStart:v2(k3&&k3.series&&k3.series.pointStart,h3.pointStart,e3.xData[0])},!z3&&{data:e3.options.data},a4);z3&&a4.data&&(a4.data=e3.options.data);p3=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(p3);p3.forEach((function(b3){p3[b3]=e3[b3];delete e3[b3]}));k3=false;if(A2[r3]){if(k3=r3!==e3.type,e3.remove(false,false,false,true),k3)if(Object.setPrototypeOf)Object.setPrototypeOf(e3,A2[r3].prototype);else{m3=Object.hasOwnProperty.call(e3,"hcEvents")&&e3.hcEvents;for(w3 in n3)e3[w3]=void 0;u2(e3,A2[r3].prototype);m3?e3.hcEvents=m3:delete e3.hcEvents}}else b2(17,true,f3,{missingModuleFor:r3});p3.forEach((function(b3){e3[b3]=p3[b3]}));e3.init(f3,a4);if(z3&&this.points){a4=e3.options;if(false===a4.visible)l3.graphic=1,l3.dataLabel=1;else if(!e3._hasPointLabels){n3=a4.marker;var w3=a4.dataLabels;h3=h3.marker||{};!n3||false!==n3.enabled&&h3.symbol===n3.symbol&&h3.height===n3.height&&h3.width===n3.width||(l3.graphic=1);w3&&false===w3.enabled&&(l3.dataLabel=1)}h3=0;for(n3=this.points;h3<n3.length;h3++)(w3=n3[h3])&&w3.series&&(w3.resolveColor(),Object.keys(l3).length&&w3.destroyElements(l3),false===a4.showInLegend&&w3.legendItem&&f3.legend.destroyItem(w3))}e3.initialType=g4;f3.linkSeries();k3&&e3.linkedSeries.length&&(e3.isDirtyData=true);q(this,"afterUpdate");v2(d3,true)&&f3.redraw(z3?void 0:false)};a3.prototype.setName=function(b3){this.name=this.options.name=this.userOptions.name=b3;this.chart.isDirtyLegend=true};a3.prototype.hasOptionChanged=function(b3){var a4=this.options[b3],c3=this.chart.options.plotOptions,d3=this.userOptions[b3];return d3?a4!==d3:a4!==v2(c3&&c3[this.type]&&c3[this.type][b3],c3&&c3.series&&c3.series[b3],a4)};a3.prototype.onMouseOver=function(){var b3=this.chart,a4=b3.hoverSeries;b3.pointer.setHoverChartIndex();if(a4&&a4!==this)a4.onMouseOut();this.options.events.mouseOver&&q(this,"mouseOver");this.setState("hover");b3.hoverSeries=this};a3.prototype.onMouseOut=function(){var b3=this.options,a4=this.chart,c3=a4.tooltip,d3=a4.hoverPoint;a4.hoverSeries=null;if(d3)d3.onMouseOut();this&&b3.events.mouseOut&&q(this,"mouseOut");!c3||this.stickyTracking||c3.shared&&!this.noSharedTooltip||c3.hide();a4.series.forEach((function(b4){b4.setState("",true)}))};a3.prototype.setState=function(b3,a4){var c3=this,d3=c3.options,e3=c3.graph,f3=d3.inactiveOtherPoints,h3=d3.states,g4=v2(h3[b3||"normal"]&&h3[b3||"normal"].animation,c3.chart.options.chart.animation),k3=d3.lineWidth,n3=0,m3=d3.opacity;b3=b3||"";if(c3.state!==b3&&([c3.group,c3.markerGroup,c3.dataLabelsGroup].forEach((function(a5){a5&&(c3.state&&a5.removeClass("highcharts-series-"+c3.state),b3&&a5.addClass("highcharts-series-"+b3))})),c3.state=b3,!c3.chart.styledMode)){if(h3[b3]&&false===h3[b3].enabled)return;b3&&(k3=h3[b3].lineWidth||k3+(h3[b3].lineWidthPlus||0),m3=v2(h3[b3].opacity,m3));if(e3&&!e3.dashstyle&&O2(k3))for(d3={"stroke-width":k3},e3.animate(d3,g4);c3["zone-graph-"+n3];)c3["zone-graph-"+n3].animate(d3,g4),n3+=1;f3||[c3.group,c3.markerGroup,c3.dataLabelsGroup,c3.labelBySeries].forEach((function(b4){b4&&b4.animate({opacity:m3},g4)}))}a4&&f3&&c3.points&&c3.setAllPointsToState(b3||void 0)};a3.prototype.setAllPointsToState=function(b3){this.points.forEach((function(a4){a4.setState&&a4.setState(b3)}))};a3.prototype.setVisible=function(b3,a4){var c3=this,d3=c3.chart,e3=d3.options.chart.ignoreHiddenSeries,f3=c3.visible,h3=(c3.visible=b3=c3.options.visible=c3.userOptions.visible="undefined"===typeof b3?!f3:b3)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(b4){if(c3[b4])c3[b4][h3]()}));if(d3.hoverSeries===c3||(d3.hoverPoint&&d3.hoverPoint.series)===c3)c3.onMouseOut();c3.legendItem&&d3.legend.colorizeItem(c3,b3);c3.isDirty=true;c3.options.stacking&&d3.series.forEach((function(b4){b4.options.stacking&&b4.visible&&(b4.isDirty=true)}));c3.linkedSeries.forEach((function(a5){a5.setVisible(b3,false)}));e3&&(d3.isDirtyBox=true);q(c3,h3);false!==a4&&d3.redraw()};a3.prototype.show=function(){this.setVisible(true)};a3.prototype.hide=function(){this.setVisible(false)};a3.prototype.select=function(b3){this.selected=b3=this.options.selected="undefined"===typeof b3?!this.selected:b3;this.checkbox&&(this.checkbox.checked=b3);q(this,b3?"select":"unselect")};a3.prototype.shouldShowTooltip=function(b3,a4,c3){void 0===c3&&(c3={});c3.series=this;c3.visiblePlotOnly=true;return this.chart.isInsidePlot(b3,a4,c3)};a3.defaultOptions=H2;a3.types=t2.seriesTypes;a3.registerType=t2.registerSeriesType;return a3}();u2(a2.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:false,drawLegendSymbol:C2.drawLineMarker,isCartesian:true,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:B,requireSorting:true,sorted:true});t2.series=a2;return a2}));K(g2,"Extensions/ScrollablePlotArea.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Axis/Axis.js"],g2["Core/Chart/Chart.js"],g2["Core/Series/Series.js"],g2["Core/Renderer/RendererRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B){var A2=a2.stop,t2=B.addEvent,r2=B.createElement,l2=B.defined,e2=B.merge,d2=B.pick;t2(x2,"afterSetChartSize",(function(a3){var d3=this.options.chart.scrollablePlotArea,h2=d3&&d3.minWidth;d3=d3&&d3.minHeight;if(!this.renderer.forExport){if(h2){if(this.scrollablePixelsX=h2=Math.max(0,h2-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=e2(this.plotBox);this.plotBox.width=this.plotWidth+=h2;this.inverted?this.clipBox.height+=h2:this.clipBox.width+=h2;var p2={1:{name:"right",value:h2}}}}else d3&&(this.scrollablePixelsY=h2=Math.max(0,d3-this.chartHeight),l2(h2)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=e2(this.plotBox),this.plotBox.height=this.plotHeight+=h2,this.inverted?this.clipBox.width+=h2:this.clipBox.height+=h2,p2={2:{name:"bottom",value:h2}}));p2&&!a3.skipAxes&&this.axes.forEach((function(a4){p2[a4.side]?a4.getPlotLinePath=function(){var d4=p2[a4.side].name,e3=this[d4];this[d4]=e3-p2[a4.side].value;var h3=g3.prototype.getPlotLinePath.apply(this,arguments);this[d4]=e3;return h3}:(a4.setAxisSize(),a4.setAxisTranslation())}))}}));t2(x2,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}));x2.prototype.setUpScrolling=function(){var a3=this,d3={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(d3.overflowX="auto");this.scrollablePixelsY&&(d3.overflowY="auto");this.scrollingParent=r2("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r2("div",{className:"highcharts-scrolling"},d3,this.scrollingParent);var e3;t2(this.scrollingContainer,"scroll",(function(){a3.pointer&&(delete a3.pointer.chartPosition,a3.hoverPoint&&(e3=a3.hoverPoint),a3.pointer.runPointActions(void 0,e3,true))}));this.innerContainer=r2("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};x2.prototype.moveFixedElements=function(){var a3=this.container,d3=this.fixedRenderer,e3=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),g4;this.scrollablePixelsX&&!this.inverted?g4=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g4=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g4=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g4=".highcharts-yaxis");g4&&e3.push(""+g4+":not(.highcharts-radial-axis)",""+g4+"-labels:not(.highcharts-radial-axis-labels)");e3.forEach((function(e4){[].forEach.call(a3.querySelectorAll(e4),(function(a4){(a4.namespaceURI===d3.SVG_NS?d3.box:d3.box.parentNode).appendChild(a4);a4.style.pointerEvents="auto"}))}))};x2.prototype.applyFixed=function(){var a3=!this.fixedDiv,e3=this.options.chart,g4=e3.scrollablePlotArea,l3=C2.getRendererType();a3?(this.fixedDiv=r2("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e3.style&&e3.style.zIndex||0)+2,top:0},null,true),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e3=new l3(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e3.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d2(g4.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t2(this,"afterShowResetZoom",this.moveFixedElements),t2(this,"afterApplyDrilldown",this.moveFixedElements),t2(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a3)this.scrollableDirty=false,this.moveFixedElements();e3=this.chartWidth+(this.scrollablePixelsX||0);l3=this.chartHeight+(this.scrollablePixelsY||0);A2(this.container);this.container.style.width=e3+"px";this.container.style.height=l3+"px";this.renderer.boxWrapper.attr({width:e3,height:l3,viewBox:[0,0,e3,l3].join(" ")});this.chartBackground.attr({width:e3,height:l3});this.scrollingContainer.style.height=this.chartHeight+"px";a3&&(g4.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*g4.scrollPositionX),g4.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*g4.scrollPositionY));l3=this.axisOffset;a3=this.plotTop-l3[0]-1;g4=this.plotLeft-l3[3]-1;e3=this.plotTop+this.plotHeight+l3[2]+1;l3=this.plotLeft+this.plotWidth+l3[1]+1;var D2=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),x3=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a3=this.scrollablePixelsX?[["M",0,a3],["L",this.plotLeft-1,a3],["L",this.plotLeft-1,e3],["L",0,e3],["Z"],["M",D2,a3],["L",this.chartWidth,a3],["L",this.chartWidth,e3],["L",D2,e3],["Z"]]:this.scrollablePixelsY?[["M",g4,0],["L",g4,this.plotTop-1],["L",l3,this.plotTop-1],["L",l3,0],["Z"],["M",g4,x3],["L",g4,this.chartHeight],["L",l3,this.chartHeight],["L",l3,x3],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a3})};t2(g3,"afterInit",(function(){this.chart.scrollableDirty=true}));t2(F2,"show",(function(){this.chart.scrollableDirty=true}))}));K(g2,"Core/Axis/Stacking/StackItem.js",[g2["Core/FormatUtilities.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=a2.format,C2=g3.series,B=x2.destroyObjectProperties,H2=x2.pick,t2=x2.isNumber;a2=function(){function a3(a4,e2,d2,h2,g4){var k2=a4.chart.inverted,m2=a4.reversed;this.axis=a4;a4=this.isNegative=!!d2!==!!m2;this.options=e2=e2||{};this.x=h2;this.cumulative=this.total=null;this.points={};this.hasValidPoints=false;this.stack=g4;this.rightCliff=this.leftCliff=0;this.alignOptions={align:e2.align||(k2?a4?"left":"right":"center"),verticalAlign:e2.verticalAlign||(k2?"middle":a4?"bottom":"top"),y:e2.y,x:e2.x};this.textAlign=e2.textAlign||(k2?a4?"right":"left":"center")}a3.prototype.destroy=function(){B(this,this.axis)};a3.prototype.render=function(a4){var e2=this.axis.chart,d2=this.options,h2=d2.format;h2=h2?A2(h2,this,e2):d2.formatter.call(this);this.label?this.label.attr({text:h2,visibility:"hidden"}):(this.label=e2.renderer.label(h2,null,void 0,d2.shape,void 0,void 0,d2.useHTML,false,"stack-labels"),h2={r:d2.borderRadius||0,text:h2,padding:H2(d2.padding,5),visibility:"hidden"},e2.styledMode||(h2.fill=d2.backgroundColor,h2.stroke=d2.borderColor,h2["stroke-width"]=d2.borderWidth,this.label.css(d2.style||{})),this.label.attr(h2),this.label.added||this.label.add(a4));this.label.labelrank=e2.plotSizeY};a3.prototype.setOffset=function(a4,e2,d2,h2,g4,k2){var m2=this.alignOptions,l2=this.axis,r2=this.label,E2=this.options,A3=this.textAlign,y2=l2.chart;a4=this.getStackBox({xOffset:a4,width:e2,boxBottom:d2,boxTop:h2,defaultX:g4,xAxis:k2});g4=m2.verticalAlign;r2&&a4&&(e2=r2.getBBox(),d2=r2.padding,h2="justify"===H2(E2.overflow,"justify"),m2.x=E2.x||0,m2.y=E2.y||0,g4=this.adjustStackPosition({labelBox:e2,verticalAlign:g4,textAlign:A3}),A3=g4.x,g4=g4.y,a4.x-=A3,a4.y-=g4,r2.align(m2,false,a4),(A3=y2.isInsidePlot(r2.alignAttr.x+m2.x+A3,r2.alignAttr.y+m2.y+g4))||(h2=false),h2&&C2.prototype.justifyDataLabel.call(l2,r2,m2,r2.alignAttr,e2,a4),r2.attr({x:r2.alignAttr.x,y:r2.alignAttr.y,rotation:E2.rotation,rotationOriginX:e2.width/2,rotationOriginY:e2.height/2}),H2(!h2&&E2.crop,true)&&(A3=t2(r2.x)&&t2(r2.y)&&y2.isInsidePlot(r2.x-d2+r2.width,r2.y)&&y2.isInsidePlot(r2.x+d2,r2.y)),r2[A3?"show":"hide"]())};a3.prototype.adjustStackPosition=function(a4){var e2=a4.labelBox,d2={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e2.width/2+e2.width/2*d2[a4.textAlign],y:e2.height/2*d2[a4.verticalAlign]}};a3.prototype.getStackBox=function(a4){var e2=this.axis,d2=e2.chart,h2=a4.boxTop,g4=a4.defaultX,k2=a4.xOffset,l2=a4.width,r2=a4.boxBottom;h2=e2.stacking.usePercentage?100:H2(h2,this.total,0);h2=e2.toPixels(h2);a4=H2(g4,(a4.xAxis||d2.xAxis[0]).toPixels(this.x))+k2;e2=e2.toPixels(r2?r2:0);e2=Math.abs(h2-e2);r2=this.isNegative;return d2.inverted?{x:(r2?h2:h2-e2)-d2.plotLeft,y:a4-d2.plotTop,width:e2,height:l2}:{x:a4-d2.plotLeft,y:(r2?h2-e2:h2)-d2.plotTop,width:l2,height:e2}};return a3}();return a2}));K(g2,"Core/Axis/Stacking/StackingAxis.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Axis/Axis.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Axis/Stacking/StackItem.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2){function A2(){var b3=this,a3=b3.inverted;b3.yAxis.forEach((function(b4){b4.stacking&&b4.stacking.stacks&&b4.hasVisibleSeries&&(b4.stacking.oldStacks=b4.stacking.stacks)}));b3.series.forEach((function(c3){var d3=c3.xAxis&&c3.xAxis.options||{};!c3.options.stacking||true!==c3.visible&&false!==b3.options.chart.ignoreHiddenSeries||(c3.stackKey=[c3.type,f2(c3.options.stack,""),a3?d3.top:d3.left,a3?d3.height:d3.width].join())}))}function H2(){var b3=this.stacking;if(b3){var a3=b3.stacks;w2(a3,(function(b4,c3){E2(b4);a3[c3]=null}));b3&&b3.stackTotalGroup&&b3.stackTotalGroup.destroy()}}function t2(){"yAxis"!==this.coll||this.stacking||(this.stacking=new n2(this))}function r2(b3,a3,c3,d3){!I(b3)||b3.x!==a3||d3&&b3.stackKey!==d3?b3={x:a3,index:0,key:d3,stackKey:d3}:b3.index++;b3.key=[c3,a3,b3.index].join();return b3}function l2(){var b3=this,a3=b3.stackKey,c3=b3.yAxis.stacking.stacks,d3=b3.processedXData,e3=b3[b3.options.stacking+"Stacker"],f3;e3&&[a3,"-"+a3].forEach((function(a4){for(var h3=d3.length,g4,k3;h3--;)g4=d3[h3],f3=b3.getStackIndicator(f3,g4,b3.index,a4),(k3=(g4=c3[a4]&&c3[a4][g4])&&g4.points[f3.key])&&e3.call(b3,k3,g4,h3)}))}function e2(b3,a3,c3){a3=a3.total?100/a3.total:0;b3[0]=D2(b3[0]*a3);b3[1]=D2(b3[1]*a3);this.stackedYData[c3]=b3[1]}function d2(){var b3=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?k2.setStackedPoints.call(this,"group"):b3&&w2(b3.stacks,(function(a3,c3){"group"===c3.slice(-5)&&(w2(a3,(function(b4){return b4.destroy()})),delete b3.stacks[c3])}))}function h2(b3){var a3=this.chart,c3=b3||this.options.stacking;if(c3&&(true===this.visible||false===a3.options.chart.ignoreHiddenSeries)){var d3=this.processedXData,e3=this.processedYData,h3=[],g4=e3.length,k3=this.options,n3=k3.threshold,m3=f2(k3.startFromThreshold&&n3,0);k3=k3.stack;b3=b3?""+this.type+",".concat(c3):this.stackKey;var l3="-"+b3,p3=this.negStacks;a3="group"===c3?a3.yAxis[0]:this.yAxis;var u2=a3.stacking.stacks,r3=a3.stacking.oldStacks,w3,t3;a3.stacking.stacksTouched+=1;for(t3=0;t3<g4;t3++){var E3=d3[t3];var A3=e3[t3];var x3=this.getStackIndicator(x3,E3,this.index);var C3=x3.key;var B=(w3=p3&&A3<(m3?0:n3))?l3:b3;u2[B]||(u2[B]={});u2[B][E3]||(r3[B]&&r3[B][E3]?(u2[B][E3]=r3[B][E3],u2[B][E3].total=null):u2[B][E3]=new F2(a3,a3.options.stackLabels,!!w3,E3,k3));B=u2[B][E3];null!==A3?(B.points[C3]=B.points[this.index]=[f2(B.cumulative,m3)],I(B.cumulative)||(B.base=C3),B.touched=a3.stacking.stacksTouched,0<x3.index&&false===this.singleStacks&&(B.points[C3][0]=B.points[this.index+","+E3+",0"][0])):B.points[C3]=B.points[this.index]=null;"percent"===c3?(w3=w3?b3:l3,p3&&u2[w3]&&u2[w3][E3]?(w3=u2[w3][E3],B.total=w3.total=Math.max(w3.total,B.total)+Math.abs(A3)||0):B.total=D2(B.total+(Math.abs(A3)||0))):"group"===c3?(y2(A3)&&(A3=A3[0]),null!==A3&&(B.total=(B.total||0)+1)):B.total=D2(B.total+(A3||0));B.cumulative="group"===c3?(B.total||1)-1:f2(B.cumulative,m3)+(A3||0);null!==A3&&(B.points[C3].push(B.cumulative),h3[t3]=B.cumulative,B.hasValidPoints=true)}"percent"===c3&&(a3.stacking.usePercentage=true);"group"!==c3&&(this.stackedYData=h3);a3.stacking.oldStacks={}}}var m2=a2.getDeferredAnimation,k2=x2.series.prototype,p2=C2.addEvent,D2=C2.correctFloat,I=C2.defined,E2=C2.destroyObjectProperties,L2=C2.fireEvent,y2=C2.isArray,c2=C2.isNumber,w2=C2.objectEach,f2=C2.pick,n2=function(){function b3(b4){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b4}b3.prototype.buildStacks=function(){var b4=this.axis,a3=b4.series,c3=b4.options.reversedStacks,d3=a3.length,e3;this.usePercentage=false;for(e3=d3;e3--;){var f3=a3[c3?e3:d3-e3-1];f3.setStackedPoints();f3.setGroupedPoints()}for(e3=0;e3<d3;e3++)a3[e3].modifyStacks();L2(b4,"afterBuildStacks")};b3.prototype.cleanStacks=function(){if(this.oldStacks)var b4=this.stacks=this.oldStacks;w2(b4,(function(b5){w2(b5,(function(b6){b6.cumulative=b6.total}))}))};b3.prototype.resetStacks=function(){var b4=this;w2(this.stacks,(function(a3){w2(a3,(function(d3,e3){c2(d3.touched)&&d3.touched<b4.stacksTouched?(d3.destroy(),delete a3[e3]):(d3.total=null,d3.cumulative=null)}))}))};b3.prototype.renderStackTotals=function(){var b4=this.axis,a3=b4.chart,c3=a3.renderer,d3=this.stacks;b4=m2(a3,b4.options.stackLabels&&b4.options.stackLabels.animation||false);var e3=this.stackTotalGroup=this.stackTotalGroup||c3.g("stack-labels").attr({zIndex:6,opacity:0}).add();e3.translate(a3.plotLeft,a3.plotTop);w2(d3,(function(b5){w2(b5,(function(b6){b6.render(e3)}))}));e3.animate({opacity:1},b4)};return b3}(),b2;(function(b3){var a3=[];b3.compose=function(b4,c3,f3){-1===a3.indexOf(b4)&&(a3.push(b4),p2(b4,"init",t2),p2(b4,"destroy",H2));-1===a3.indexOf(c3)&&(a3.push(c3),c3.prototype.getStacks=A2);-1===a3.indexOf(f3)&&(a3.push(f3),b4=f3.prototype,b4.getStackIndicator=r2,b4.modifyStacks=l2,b4.percentStacker=e2,b4.setGroupedPoints=d2,b4.setStackedPoints=h2)}})(b2||(b2={}));return b2}));K(g2,"Series/Line/LineSeries.js",[g2["Core/Series/Series.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var a3=function(g4,r2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e2){a4.__proto__=e2}||function(a4,e2){for(var d2 in e2)e2.hasOwnProperty(d2)&&(a4[d2]=e2[d2])};return a3(g4,r2)};return function(g4,r2){function l2(){this.constructor=g4}a3(g4,r2);g4.prototype=null===r2?Object.create(r2):(l2.prototype=r2.prototype,new l2)}}(),C2=x2.defined,B=x2.merge;x2=function(g4){function t2(){var a3=null!==g4&&g4.apply(this,arguments)||this;a3.data=void 0;a3.options=void 0;a3.points=void 0;return a3}A2(t2,g4);t2.prototype.drawGraph=function(){var a3=this,g5=this.options,e2=(this.gappedPath||this.getGraphPath).call(this),d2=this.chart.styledMode,h2=[["graph","highcharts-graph"]];d2||h2[0].push(g5.lineColor||this.color||"#cccccc",g5.dashStyle);h2=a3.getZonesGraphs(h2);h2.forEach((function(h3,k2){var m2=h3[0],l2=a3[m2],r2=l2?"animate":"attr";l2?(l2.endX=a3.preventGraphAnimation?null:e2.xMap,l2.animate({d:e2})):e2.length&&(a3[m2]=l2=a3.chart.renderer.path(e2).addClass(h3[1]).attr({zIndex:1}).add(a3.group));l2&&!d2&&(m2={stroke:h3[2],"stroke-width":g5.lineWidth||0,fill:a3.fillGraph&&a3.color||"none"},h3[3]?m2.dashstyle=h3[3]:"square"!==g5.linecap&&(m2["stroke-linecap"]=m2["stroke-linejoin"]="round"),l2[r2](m2).shadow(2>k2&&g5.shadow));l2&&(l2.startX=e2.xMap,l2.isArea=e2.isArea)}))};t2.prototype.getGraphPath=function(a3,g5,e2){var d2=this,h2=d2.options,m2=[],k2=[],l2,r2=h2.step;a3=a3||d2.points;var t3=a3.reversed;t3&&a3.reverse();(r2={right:1,center:2}[r2]||r2&&3)&&t3&&(r2=4-r2);a3=this.getValidPoints(a3,false,!(h2.connectNulls&&!g5&&!e2));a3.forEach((function(p2,t4){var y2=p2.plotX,c2=p2.plotY,w2=a3[t4-1];(p2.leftCliff||w2&&w2.rightCliff)&&!e2&&(l2=true);p2.isNull&&!C2(g5)&&0<t4?l2=!h2.connectNulls:p2.isNull&&!g5?l2=true:(0===t4||l2?t4=[["M",p2.plotX,p2.plotY]]:d2.getPointSpline?t4=[d2.getPointSpline(a3,p2,t4)]:r2?(t4=1===r2?[["L",w2.plotX,c2]]:2===r2?[["L",(w2.plotX+y2)/2,w2.plotY],["L",(w2.plotX+y2)/2,c2]]:[["L",y2,w2.plotY]],t4.push(["L",y2,c2])):t4=[["L",y2,c2]],k2.push(p2.x),r2&&(k2.push(p2.x),2===r2&&k2.push(p2.x)),m2.push.apply(m2,t4),l2=false)}));m2.xMap=k2;return d2.graphPath=m2};t2.prototype.getZonesGraphs=function(a3){this.zones.forEach((function(g5,e2){e2=["zone-graph-"+e2,"highcharts-graph highcharts-zone-graph-"+e2+" "+(g5.className||"")];this.chart.styledMode||e2.push(g5.color||this.color,g5.dashStyle||this.options.dashStyle);a3.push(e2)}),this);return a3};t2.defaultOptions=B(a2.defaultOptions,{});return t2}(a2);g3.registerSeriesType("line",x2);return x2}));K(g2,"Series/Area/AreaSeries.js",[g2["Core/Color/Color.js"],g2["Core/Legend/LegendSymbol.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=this&&this.__extends||function(){var a3=function(d2,e2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d3){a4.__proto__=d3}||function(a4,d3){for(var e3 in d3)d3.hasOwnProperty(e3)&&(a4[e3]=d3[e3])};return a3(d2,e2)};return function(d2,e2){function h2(){this.constructor=d2}a3(d2,e2);d2.prototype=null===e2?Object.create(e2):(h2.prototype=e2.prototype,new h2)}}(),B=a2.parse,H2=x2.seriesTypes.line;a2=F2.extend;var t2=F2.merge,r2=F2.objectEach,l2=F2.pick;F2=function(a3){function d2(){var d3=null!==a3&&a3.apply(this,arguments)||this;d3.data=void 0;d3.options=void 0;d3.points=void 0;return d3}A2(d2,a3);d2.prototype.drawGraph=function(){this.areaPath=[];a3.prototype.drawGraph.apply(this);var d3=this,e2=this.areaPath,g4=this.options,p2=[["area","highcharts-area",this.color,g4.fillColor]];this.zones.forEach((function(a4,e3){p2.push(["zone-area-"+e3,"highcharts-area highcharts-zone-area-"+e3+" "+a4.className,a4.color||d3.color,a4.fillColor||g4.fillColor])}));p2.forEach((function(a4){var h2=a4[0],k2={},m2=d3[h2],p3=m2?"animate":"attr";m2?(m2.endX=d3.preventGraphAnimation?null:e2.xMap,m2.animate({d:e2})):(k2.zIndex=0,m2=d3[h2]=d3.chart.renderer.path(e2).addClass(a4[1]).add(d3.group),m2.isArea=true);d3.chart.styledMode||(k2.fill=l2(a4[3],B(a4[2]).setOpacity(l2(g4.fillOpacity,.75)).get()));m2[p3](k2);m2.startX=e2.xMap;m2.shiftUnit=g4.step?2:1}))};d2.prototype.getGraphPath=function(a4){var d3=H2.prototype.getGraphPath,e2=this.options,h2=e2.stacking,g4=this.yAxis,r3=[],t3=[],A3=this.index,y2=g4.stacking.stacks[this.stackKey],c2=e2.threshold,w2=Math.round(g4.getThreshold(e2.threshold));e2=l2(e2.connectNulls,"percent"===h2);var f2=function(b3,d4,e3){var f3=a4[b3];b3=h2&&y2[f3.x].points[A3];var n3=f3[e3+"Null"]||0;e3=f3[e3+"Cliff"]||0;f3=true;if(e3||n3){var k2=(n3?b3[0]:b3[1])+e3;var m2=b3[0]+e3;f3=!!n3}else!h2&&a4[d4]&&a4[d4].isNull&&(k2=m2=c2);"undefined"!==typeof k2&&(t3.push({plotX:z2,plotY:null===k2?w2:g4.getThreshold(k2),isNull:f3,isCliff:true}),r3.push({plotX:z2,plotY:null===m2?w2:g4.getThreshold(m2),doCurve:false}))};a4=a4||this.points;h2&&(a4=this.getStackPoints(a4));for(var n2=0,b2=a4.length;n2<b2;++n2){h2||(a4[n2].leftCliff=a4[n2].rightCliff=a4[n2].leftNull=a4[n2].rightNull=void 0);var u2=a4[n2].isNull;var z2=l2(a4[n2].rectPlotX,a4[n2].plotX);var q=h2?l2(a4[n2].yBottom,w2):w2;if(!u2||e2)e2||f2(n2,n2-1,"left"),u2&&!h2&&e2||(t3.push(a4[n2]),r3.push({x:n2,plotX:z2,plotY:q})),e2||f2(n2,n2+1,"right")}f2=d3.call(this,t3,true,true);r3.reversed=true;u2=d3.call(this,r3,true,true);(q=u2[0])&&"M"===q[0]&&(u2[0]=["L",q[1],q[2]]);u2=f2.concat(u2);u2.length&&u2.push(["Z"]);d3=d3.call(this,t3,false,e2);u2.xMap=f2.xMap;this.areaPath=u2;return d3};d2.prototype.getStackPoints=function(a4){var d3=this,e2=[],h2=[],g4=this.xAxis,t3=this.yAxis,A3=t3.stacking.stacks[this.stackKey],x3={},y2=t3.series,c2=y2.length,w2=t3.options.reversedStacks?1:-1,f2=y2.indexOf(d3);a4=a4||this.points;if(this.options.stacking){for(var n2=0;n2<a4.length;n2++)a4[n2].leftNull=a4[n2].rightNull=void 0,x3[a4[n2].x]=a4[n2];r2(A3,(function(b3,a5){null!==b3.total&&h2.push(a5)}));h2.sort((function(b3,a5){return b3-a5}));var b2=y2.map((function(b3){return b3.visible}));h2.forEach((function(a5,n3){var k2=0,m2,p2;if(x3[a5]&&!x3[a5].isNull)e2.push(x3[a5]),[-1,1].forEach((function(e3){var g5=1===e3?"rightNull":"leftNull",k3=A3[h2[n3+e3]],l3=0;if(k3)for(var q=f2;0<=q&&q<c2;){var u3=y2[q].index;m2=k3.points[u3];m2||(u3===d3.index?x3[a5][g5]=true:b2[q]&&(p2=A3[a5].points[u3])&&(l3-=p2[1]-p2[0]));q+=w2}x3[a5][1===e3?"rightCliff":"leftCliff"]=l3}));else{for(var u2=f2;0<=u2&&u2<c2;){if(m2=A3[a5].points[y2[u2].index]){k2=m2[1];break}u2+=w2}k2=l2(k2,0);k2=t3.translate(k2,0,1,0,1);e2.push({isNull:true,plotX:g4.translate(a5,0,0,0,1),x:a5,plotY:k2,yBottom:k2})}}))}return e2};d2.defaultOptions=t2(H2.defaultOptions,{threshold:0});return d2}(H2);a2(F2.prototype,{singleStacks:false,drawLegendSymbol:g3.drawRectangle});x2.registerSeriesType("area",F2);return F2}));K(g2,"Series/Spline/SplineSeries.js",[g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=this&&this.__extends||function(){var a3=function(g4,r2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e2){a4.__proto__=e2}||function(a4,e2){for(var d2 in e2)e2.hasOwnProperty(d2)&&(a4[d2]=e2[d2])};return a3(g4,r2)};return function(g4,r2){function l2(){this.constructor=g4}a3(g4,r2);g4.prototype=null===r2?Object.create(r2):(l2.prototype=r2.prototype,new l2)}}(),F2=a2.seriesTypes.line,C2=g3.merge,B=g3.pick;g3=function(a3){function g4(){var g5=null!==a3&&a3.apply(this,arguments)||this;g5.data=void 0;g5.options=void 0;g5.points=void 0;return g5}A2(g4,a3);g4.prototype.getPointSpline=function(a4,g5,e2){var d2=g5.plotX||0,h2=g5.plotY||0,m2=a4[e2-1];e2=a4[e2+1];if(m2&&!m2.isNull&&false!==m2.doCurve&&!g5.isCliff&&e2&&!e2.isNull&&false!==e2.doCurve&&!g5.isCliff){a4=m2.plotY||0;var k2=e2.plotX||0;e2=e2.plotY||0;var l2=0;var r2=(1.5*d2+(m2.plotX||0))/2.5;var t2=(1.5*h2+a4)/2.5;k2=(1.5*d2+k2)/2.5;var A3=(1.5*h2+e2)/2.5;k2!==r2&&(l2=(A3-t2)*(k2-d2)/(k2-r2)+h2-A3);t2+=l2;A3+=l2;t2>a4&&t2>h2?(t2=Math.max(a4,h2),A3=2*h2-t2):t2<a4&&t2<h2&&(t2=Math.min(a4,h2),A3=2*h2-t2);A3>e2&&A3>h2?(A3=Math.max(e2,h2),t2=2*h2-A3):A3<e2&&A3<h2&&(A3=Math.min(e2,h2),t2=2*h2-A3);g5.rightContX=k2;g5.rightContY=A3}g5=["C",B(m2.rightContX,m2.plotX,0),B(m2.rightContY,m2.plotY,0),B(r2,d2,0),B(t2,h2,0),d2,h2];m2.rightContX=m2.rightContY=void 0;return g5};g4.defaultOptions=C2(F2.defaultOptions);return g4}(F2);a2.registerSeriesType("spline",g3);return g3}));K(g2,"Series/AreaSpline/AreaSplineSeries.js",[g2["Series/Spline/SplineSeries.js"],g2["Core/Legend/LegendSymbol.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d3){a4.__proto__=d3}||function(a4,d3){for(var e3 in d3)d3.hasOwnProperty(e3)&&(a4[e3]=d3[e3])};return a3(e2,d2)};return function(e2,d2){function g4(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(g4.prototype=d2.prototype,new g4)}}(),B=x2.seriesTypes,H2=B.area;B=B.area.prototype;var t2=F2.extend,r2=F2.merge;F2=function(g4){function e2(){var a3=null!==g4&&g4.apply(this,arguments)||this;a3.data=void 0;a3.points=void 0;a3.options=void 0;return a3}A2(e2,g4);e2.defaultOptions=r2(a2.defaultOptions,H2.defaultOptions);return e2}(a2);t2(F2.prototype,{getGraphPath:B.getGraphPath,getStackPoints:B.getStackPoints,drawGraph:B.drawGraph,drawLegendSymbol:g3.drawRectangle});x2.registerSeriesType("areaspline",F2);return F2}));K(g2,"Series/Column/ColumnSeriesDefaults.js",[],(function(){return{borderRadius:0,centerInCategory:false,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:false,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:true,stickyTracking:false,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}));K(g2,"Series/Column/ColumnSeries.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Color/Color.js"],g2["Series/Column/ColumnSeriesDefaults.js"],g2["Core/Globals.js"],g2["Core/Legend/LegendSymbol.js"],g2["Core/Series/Series.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2){var r2=this&&this.__extends||function(){var a3=function(c2,d3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b2){a4.__proto__=b2}||function(a4,b2){for(var c3 in b2)b2.hasOwnProperty(c3)&&(a4[c3]=b2[c3])};return a3(c2,d3)};return function(c2,d3){function e3(){this.constructor=c2}a3(c2,d3);c2.prototype=null===d3?Object.create(d3):(e3.prototype=d3.prototype,new e3)}}(),l2=a2.animObject,e2=g3.parse,d2=F2.hasTouch;a2=F2.noop;var h2=t2.clamp,m2=t2.defined,k2=t2.extend,p2=t2.fireEvent,A2=t2.isArray,I=t2.isNumber,E2=t2.merge,L2=t2.pick,y2=t2.objectEach;t2=function(a3){function c2(){var c3=null!==a3&&a3.apply(this,arguments)||this;c3.borderWidth=void 0;c3.data=void 0;c3.group=void 0;c3.options=void 0;c3.points=void 0;return c3}r2(c2,a3);c2.prototype.animate=function(a4){var c3=this,b2=this.yAxis,d3=c3.options,e3=this.chart.inverted,f2={},g4=e3?"translateX":"translateY";if(a4)f2.scaleY=.001,a4=h2(b2.toPixels(d3.threshold),b2.pos,b2.pos+b2.len),e3?f2.translateX=a4-b2.len:f2.translateY=a4,c3.clipBox&&c3.setClip(),c3.group.attr(f2);else{var m3=Number(c3.group.attr(g4));c3.group.animate({scaleY:1},k2(l2(c3.options.animation),{step:function(a5,d4){c3.group&&(f2[g4]=m3+d4.pos*(b2.pos-m3),c3.group.attr(f2))}}))}};c2.prototype.init=function(c3,d3){a3.prototype.init.apply(this,arguments);var b2=this;c3=b2.chart;c3.hasRendered&&c3.series.forEach((function(a4){a4.type===b2.type&&(a4.isDirty=true)}))};c2.prototype.getColumnMetrics=function(){var a4=this,c3=a4.options,b2=a4.xAxis,d3=a4.yAxis,e3=b2.options.reversedStacks;e3=b2.reversed&&!e3||!b2.reversed&&e3;var g4={},h3,k3=0;false===c3.grouping?k3=1:a4.chart.series.forEach((function(b3){var c4=b3.yAxis,e4=b3.options;if(b3.type===a4.type&&(b3.visible||!a4.chart.options.chart.ignoreHiddenSeries)&&d3.len===c4.len&&d3.pos===c4.pos){if(e4.stacking&&"group"!==e4.stacking){h3=b3.stackKey;"undefined"===typeof g4[h3]&&(g4[h3]=k3++);var f2=g4[h3]}else false!==e4.grouping&&(f2=k3++);b3.columnIndex=f2}}));var m3=Math.min(Math.abs(b2.transA)*(b2.ordinal&&b2.ordinal.slope||c3.pointRange||b2.closestPointRange||b2.tickInterval||1),b2.len),l3=m3*c3.groupPadding,p3=(m3-2*l3)/(k3||1);c3=Math.min(c3.maxPointWidth||b2.len,L2(c3.pointWidth,p3*(1-2*c3.pointPadding)));a4.columnMetrics={width:c3,offset:(p3-c3)/2+(l3+((a4.columnIndex||0)+(e3?1:0))*p3-m3/2)*(e3?-1:1),paddedWidth:p3,columnCount:k3};return a4.columnMetrics};c2.prototype.crispCol=function(a4,c3,b2,d3){var e3=this.chart,f2=this.borderWidth,g4=-(f2%2?.5:0);f2=f2%2?.5:1;e3.inverted&&e3.renderer.isVML&&(f2+=1);this.options.crisp&&(b2=Math.round(a4+b2)+g4,a4=Math.round(a4)+g4,b2-=a4);d3=Math.round(c3+d3)+f2;g4=.5>=Math.abs(c3)&&.5<d3;c3=Math.round(c3)+f2;d3-=c3;g4&&d3&&(--c3,d3+=1);return{x:a4,y:c3,width:b2,height:d3}};c2.prototype.adjustForMissingColumns=function(a4,c3,b2,d3){var e3=this,f2=this.options.stacking;if(!b2.isNull&&1<d3.columnCount){var g4=this.yAxis.options.reversedStacks,h3=0,k3=g4?0:-d3.columnCount;y2(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(a5){if("number"===typeof b2.x){var c4=a5[b2.x.toString()];c4&&(a5=c4.points[e3.index],f2?(a5&&(h3=k3),c4.hasValidPoints&&(g4?k3++:k3--)):A2(a5)&&(a5=Object.keys(c4.points).filter((function(b3){return!b3.match(",")&&c4.points[b3]&&1<c4.points[b3].length})).map(parseFloat).sort((function(b3,a6){return a6-b3})),h3=a5.indexOf(e3.index),k3=a5.length))}}));a4=(b2.plotX||0)+((k3-1)*d3.paddedWidth+c3)/2-c3-h3*d3.paddedWidth}return a4};c2.prototype.translate=function(){var a4=this,c3=a4.chart,b2=a4.options,d3=a4.dense=2>a4.closestPointRange*a4.xAxis.transA;d3=a4.borderWidth=L2(b2.borderWidth,d3?0:1);var e3=a4.xAxis,g4=a4.yAxis,k3=b2.threshold,l3=a4.translatedThreshold=g4.getThreshold(k3),p3=L2(b2.minPointLength,5),r3=a4.getColumnMetrics(),w2=r3.width,y3=a4.pointXOffset=r3.offset,v2=a4.dataMin,t3=a4.dataMax,A3=a4.barW=Math.max(w2,1+2*d3);c3.inverted&&(l3-=.5);b2.pointPadding&&(A3=Math.ceil(A3));B.prototype.translate.apply(a4);a4.points.forEach((function(d4){var f2=L2(d4.yBottom,l3),n2=999+Math.abs(f2),q=d4.plotX||0;n2=h2(d4.plotY,-n2,g4.len+n2);var u2=Math.min(n2,f2),z2=Math.max(n2,f2)-u2,D2=w2,x3=q+y3,E3=A3;p3&&Math.abs(z2)<p3&&(z2=p3,q=!g4.reversed&&!d4.negative||g4.reversed&&d4.negative,I(k3)&&I(t3)&&d4.y===k3&&t3<=k3&&(g4.min||0)<k3&&(v2!==t3||(g4.max||0)<=k3)&&(q=!q),u2=Math.abs(u2-l3)>p3?f2-p3:l3-(q?p3:0));m2(d4.options.pointWidth)&&(D2=E3=Math.ceil(d4.options.pointWidth),x3-=Math.round((D2-w2)/2));b2.centerInCategory&&(x3=a4.adjustForMissingColumns(x3,D2,d4,r3));d4.barX=x3;d4.pointWidth=D2;d4.tooltipPos=c3.inverted?[h2(g4.len+g4.pos-c3.plotLeft-n2,g4.pos-c3.plotLeft,g4.len+g4.pos-c3.plotLeft),e3.len+e3.pos-c3.plotTop-x3-E3/2,z2]:[e3.left-c3.plotLeft+x3+E3/2,h2(n2+g4.pos-c3.plotTop,g4.pos-c3.plotTop,g4.len+g4.pos-c3.plotTop),z2];d4.shapeType=a4.pointClass.prototype.shapeType||"rect";d4.shapeArgs=a4.crispCol.apply(a4,d4.isNull?[x3,l3,E3,0]:[x3,u2,E3,z2])}))};c2.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};c2.prototype.pointAttribs=function(a4,c3){var b2=this.options,d3=this.pointAttrToOptions||{},f2=d3.stroke||"borderColor",g4=d3["stroke-width"]||"borderWidth",h3=a4&&a4.color||this.color,k3=a4&&a4[f2]||b2[f2]||h3;d3=a4&&a4.options.dashStyle||b2.dashStyle;var n2=a4&&a4[g4]||b2[g4]||this[g4]||0,m3=L2(a4&&a4.opacity,b2.opacity,1);if(a4&&this.zones.length){var l3=a4.getZone();h3=a4.options.color||l3&&(l3.color||a4.nonZonedColor)||this.color;l3&&(k3=l3.borderColor||k3,d3=l3.dashStyle||d3,n2=l3.borderWidth||n2)}c3&&a4&&(a4=E2(b2.states[c3],a4.options.states&&a4.options.states[c3]||{}),c3=a4.brightness,h3=a4.color||"undefined"!==typeof c3&&e2(h3).brighten(a4.brightness).get()||h3,k3=a4[f2]||k3,n2=a4[g4]||n2,d3=a4.dashStyle||d3,m3=L2(a4.opacity,m3));f2={fill:h3,stroke:k3,"stroke-width":n2,opacity:m3};d3&&(f2.dashstyle=d3);return f2};c2.prototype.drawPoints=function(a4){void 0===a4&&(a4=this.points);var c3=this,b2=this.chart,d3=c3.options,e3=b2.renderer,f2=d3.animationLimit||250,g4;a4.forEach((function(a5){var h3=a5.graphic,k3=!!h3,n2=h3&&b2.pointCount<f2?"animate":"attr";if(I(a5.plotY)&&null!==a5.y){g4=a5.shapeArgs;h3&&a5.hasNewShapeType()&&(h3=h3.destroy());c3.enabledDataSorting&&(a5.startXPos=c3.xAxis.reversed?-(g4?g4.width||0:0):c3.xAxis.width);h3||(a5.graphic=h3=e3[a5.shapeType](g4).add(a5.group||c3.group))&&c3.enabledDataSorting&&b2.hasRendered&&b2.pointCount<f2&&(h3.attr({x:a5.startXPos}),k3=true,n2="animate");if(h3&&k3)h3[n2](E2(g4));if(d3.borderRadius)h3[n2]({r:d3.borderRadius});b2.styledMode||h3[n2](c3.pointAttribs(a5,a5.selected&&"select")).shadow(false!==a5.allowShadow&&d3.shadow,null,d3.stacking&&!d3.borderRadius);h3&&(h3.addClass(a5.getClassName(),true),h3.attr({visibility:a5.visible?"inherit":"hidden"}))}else h3&&(a5.graphic=h3.destroy())}))};c2.prototype.drawTracker=function(a4){void 0===a4&&(a4=this.points);var c3=this,b2=c3.chart,e3=b2.pointer,f2=function(a5){var b3=e3.getPointFromEvent(a5);"undefined"!==typeof b3&&(e3.isDirectTouch=true,b3.onMouseOver(a5))},g4;a4.forEach((function(a5){g4=A2(a5.dataLabels)?a5.dataLabels:a5.dataLabel?[a5.dataLabel]:[];a5.graphic&&(a5.graphic.element.point=a5);g4.forEach((function(b3){b3.div?b3.div.point=a5:b3.element.point=a5}))}));c3._hasTracking||(c3.trackerGroups.forEach((function(a5){if(c3[a5]){c3[a5].addClass("highcharts-tracker").on("mouseover",f2).on("mouseout",(function(a6){e3.onTrackerMouseOut(a6)}));if(d2)c3[a5].on("touchstart",f2);!b2.styledMode&&c3.options.cursor&&c3[a5].css({cursor:c3.options.cursor})}})),c3._hasTracking=true);p2(this,"afterDrawTracker")};c2.prototype.remove=function(){var a4=this,c3=a4.chart;c3.hasRendered&&c3.series.forEach((function(b2){b2.type===a4.type&&(b2.isDirty=true)}));B.prototype.remove.apply(a4,arguments)};c2.defaultOptions=E2(B.defaultOptions,x2);return c2}(B);k2(t2.prototype,{cropShoulder:0,directTouch:true,drawLegendSymbol:C2.drawRectangle,getSymbol:a2,negStacks:true,trackerGroups:["group","dataLabelsGroup"]});H2.registerSeriesType("column",t2);return t2}));K(g2,"Core/Series/DataLabel.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/FormatUtilities.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=a2.getDeferredAnimation,C2=g3.format,B=x2.defined,H2=x2.extend,t2=x2.fireEvent,r2=x2.isArray,l2=x2.isString,e2=x2.merge,d2=x2.objectEach,h2=x2.pick,m2=x2.splat,k2;(function(a3){function g4(a4,c3,b2,d3,e3){var f2=this,g5=this.chart,k4=this.isCartesian&&g5.inverted,n2=this.enabledDataSorting,m3=a4.plotX,l3=a4.plotY,p3=b2.rotation,r3=b2.align,u2=B(m3)&&B(l3)&&g5.isInsidePlot(m3,Math.round(l3),{inverted:k4,paneCoordinates:true,series:f2});l3=function(b3){n2&&f2.xAxis&&!w3&&f2.setDataLabelStartPos(a4,c3,e3,u2,b3)};var w3="justify"===h2(b2.overflow,n2?"none":"justify");m3=this.visible&&false!==a4.visible&&B(m3)&&(a4.series.forceDL||n2&&!w3||u2||h2(b2.inside,!!this.options.stacking)&&d3&&g5.isInsidePlot(m3,k4?d3.x+1:d3.y+d3.height-1,{inverted:k4,paneCoordinates:true,series:f2}));k4=a4.pos();if(m3&&k4){p3&&c3.attr({align:r3});r3=c3.getBBox(true);var y3=[0,0];var t3=g5.renderer.fontMetrics(g5.styledMode?void 0:b2.style.fontSize,c3).b;d3=H2({x:k4[0],y:Math.round(k4[1]),width:0,height:0},d3);H2(b2,{width:r3.width,height:r3.height});p3?(w3=false,y3=g5.renderer.rotCorr(t3,p3),t3={x:d3.x+(b2.x||0)+d3.width/2+y3.x,y:d3.y+(b2.y||0)+{top:0,middle:.5,bottom:1}[b2.verticalAlign]*d3.height},y3=[r3.x-Number(c3.attr("x")),r3.y-Number(c3.attr("y"))],l3(t3),c3[e3?"attr":"animate"](t3)):(l3(d3),c3.align(b2,void 0,d3),t3=c3.alignAttr);w3&&0<=d3.height?this.justifyDataLabel(c3,b2,t3,r3,d3,e3):h2(b2.crop,true)&&(d3=t3.x,l3=t3.y,d3+=y3[0],l3+=y3[1],m3=g5.isInsidePlot(d3,l3,{paneCoordinates:true,series:f2})&&g5.isInsidePlot(d3+r3.width,l3+r3.height,{paneCoordinates:true,series:f2}));if(b2.shape&&!p3)c3[e3?"attr":"animate"]({anchorX:k4[0],anchorY:k4[1]})}e3&&n2&&(c3.placed=false);m3||n2&&!w3?c3.show():(c3.hide(),c3.placed=false)}function k3(a4,c3){var b2=c3.filter;return b2?(c3=b2.operator,a4=a4[b2.property],b2=b2.value,">"===c3&&a4>b2||"<"===c3&&a4<b2||">="===c3&&a4>=b2||"<="===c3&&a4<=b2||"=="===c3&&a4==b2||"==="===c3&&a4===b2?true:false):true}function p2(a4){void 0===a4&&(a4=this.points);var c3=this,b2=c3.chart,e3=c3.options,f2=c3.hasRendered||0,g5=b2.renderer,p3=b2.options.chart,w3=p3.backgroundColor;p3=p3.plotBackgroundColor;var x4=g5.getContrast(l2(p3)&&p3||l2(w3)&&w3||"#000000"),D2=e3.dataLabels,E2;w3=D2.animation;w3=D2.defer?A2(b2,w3,c3):{defer:0,duration:0};D2=y2(y2(b2.options.plotOptions&&b2.options.plotOptions.series&&b2.options.plotOptions.series.dataLabels,b2.options.plotOptions&&b2.options.plotOptions[c3.type]&&b2.options.plotOptions[c3.type].dataLabels),D2);t2(this,"drawDataLabels");if(r2(D2)||D2.enabled||c3._hasPointLabels){var F2=c3.plotGroup("dataLabelsGroup","data-labels",f2?"inherit":"hidden",D2.zIndex||6);F2.attr({opacity:+f2});!f2&&(f2=c3.dataLabelsGroup)&&(c3.visible&&F2.show(),f2[e3.animation?"animate":"attr"]({opacity:1},w3));a4.forEach((function(a5){E2=m2(y2(D2,a5.dlOptions||a5.options&&a5.options.dataLabels));E2.forEach((function(f3,n2){var m3=f3.enabled&&(!a5.isNull||a5.dataLabelOnNull)&&k3(a5,f3),l3=a5.connectors?a5.connectors[n2]:a5.connector,p4=a5.dataLabels?a5.dataLabels[n2]:a5.dataLabel,q=!p4,r3=h2(f3.distance,a5.labelDistance);if(m3){var u2=a5.getLabelConfig();var w4=h2(f3[a5.formatPrefix+"Format"],f3.format);u2=B(w4)?C2(w4,u2,b2):(f3[a5.formatPrefix+"Formatter"]||f3.formatter).call(u2,f3);w4=f3.style;var y3=f3.rotation;b2.styledMode||(w4.color=h2(f3.color,w4.color,c3.color,"#000000"),"contrast"===w4.color?(a5.contrastColor=g5.getContrast(a5.color||c3.color),w4.color=!B(r3)&&f3.inside||0>r3||e3.stacking?a5.contrastColor:x4):delete a5.contrastColor,e3.cursor&&(w4.cursor=e3.cursor));var t3={r:f3.borderRadius||0,rotation:y3,padding:f3.padding,zIndex:1};if(!b2.styledMode){r3=f3.backgroundColor;var v2=f3.borderColor;t3.fill="auto"===r3?a5.color:r3;t3.stroke="auto"===v2?a5.color:v2;t3["stroke-width"]=f3.borderWidth}d2(t3,(function(a6,b3){"undefined"===typeof a6&&delete t3[b3]}))}!p4||m3&&B(u2)&&!!p4.div===!!f3.useHTML&&(p4.rotation&&f3.rotation||p4.rotation===f3.rotation)||(q=true,a5.dataLabel=p4=a5.dataLabel&&a5.dataLabel.destroy(),a5.dataLabels&&(1===a5.dataLabels.length?delete a5.dataLabels:delete a5.dataLabels[n2]),n2||delete a5.dataLabel,l3&&(a5.connector=a5.connector.destroy(),a5.connectors&&(1===a5.connectors.length?delete a5.connectors:delete a5.connectors[n2])));m3&&B(u2)?(p4?t3.text=u2:(a5.dataLabels=a5.dataLabels||[],p4=a5.dataLabels[n2]=y3?g5.text(u2,0,0,f3.useHTML).addClass("highcharts-data-label"):g5.label(u2,0,0,f3.shape,null,null,f3.useHTML,null,"data-label"),n2||(a5.dataLabel=p4),p4.addClass(" highcharts-data-label-color-"+a5.colorIndex+" "+(f3.className||"")+(f3.useHTML?" highcharts-tracker":""))),p4.options=f3,p4.attr(t3),b2.styledMode||p4.css(w4).shadow(f3.shadow),(n2=f3[a5.formatPrefix+"TextPath"]||f3.textPath)&&!f3.useHTML&&(p4.setTextPath(a5.getDataLabelPath&&a5.getDataLabelPath(p4)||a5.graphic,n2),a5.dataLabelPath&&!n2.enabled&&(a5.dataLabelPath=a5.dataLabelPath.destroy())),p4.added||p4.add(F2),c3.alignDataLabel(a5,p4,f3,null,q)):p4&&p4.hide()}))}))}t2(this,"afterDrawDataLabels")}function x3(a4,c3,b2,d3,e3,g5){var f2=this.chart,h3=c3.align,k4=c3.verticalAlign,n2=a4.box?0:a4.padding||0,m3=c3.x;m3=void 0===m3?0:m3;var l3=c3.y;l3=void 0===l3?0:l3;var p3=(b2.x||0)+n2;if(0>p3){"right"===h3&&0<=m3?(c3.align="left",c3.inside=true):m3-=p3;var q=true}p3=(b2.x||0)+d3.width-n2;p3>f2.plotWidth&&("left"===h3&&0>=m3?(c3.align="right",c3.inside=true):m3+=f2.plotWidth-p3,q=true);p3=b2.y+n2;0>p3&&("bottom"===k4&&0<=l3?(c3.verticalAlign="top",c3.inside=true):l3-=p3,q=true);p3=(b2.y||0)+d3.height-n2;p3>f2.plotHeight&&("top"===k4&&0>=l3?(c3.verticalAlign="bottom",c3.inside=true):l3+=f2.plotHeight-p3,q=true);q&&(c3.x=m3,c3.y=l3,a4.placed=!g5,a4.align(c3,void 0,e3));return q}function y2(a4,c3){var b2=[],d3;if(r2(a4)&&!r2(c3))b2=a4.map((function(a5){return e2(a5,c3)}));else if(r2(c3)&&!r2(a4))b2=c3.map((function(b3){return e2(a4,b3)}));else if(r2(a4)||r2(c3))for(d3=Math.max(a4.length,c3.length);d3--;)b2[d3]=e2(a4[d3],c3[d3]);else b2=e2(a4,c3);return b2}function c2(a4,c3,b2,d3,e3){var f2=this.chart,g5=f2.inverted,h3=this.xAxis,k4=h3.reversed,m3=g5?c3.height/2:c3.width/2;a4=(a4=a4.pointWidth)?a4/2:0;c3.startXPos=g5?e3.x:k4?-m3-a4:h3.width-m3+a4;c3.startYPos=g5?k4?this.yAxis.height-m3+a4:-m3-a4:e3.y;d3?"hidden"===c3.visibility&&(c3.show(),c3.attr({opacity:0}).animate({opacity:1})):c3.attr({opacity:1}).animate({opacity:0},void 0,c3.hide);f2.hasRendered&&(b2&&c3.attr({x:c3.startXPos,y:c3.startYPos}),c3.placed=true)}var w2=[];a3.compose=function(a4){if(-1===w2.indexOf(a4)){var d3=a4.prototype;w2.push(a4);d3.alignDataLabel=g4;d3.drawDataLabels=p2;d3.justifyDataLabel=x3;d3.setDataLabelStartPos=c2}}})(k2||(k2={}));return k2}));K(g2,"Series/Column/ColumnDataLabel.js",[g2["Core/Series/DataLabel.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=g3.series,C2=x2.merge,B=x2.pick,H2;(function(g4){function r2(a3,d2,g5,m2,k2){var e2=this.chart.inverted,h2=a3.series,l3=(h2.xAxis?h2.xAxis.len:this.chart.plotSizeX)||0;h2=(h2.yAxis?h2.yAxis.len:this.chart.plotSizeY)||0;var r3=a3.dlBox||a3.shapeArgs,t2=B(a3.below,a3.plotY>B(this.translatedThreshold,h2)),y2=B(g5.inside,!!this.options.stacking);r3&&(m2=C2(r3),0>m2.y&&(m2.height+=m2.y,m2.y=0),r3=m2.y+m2.height-h2,0<r3&&r3<m2.height&&(m2.height-=r3),e2&&(m2={x:h2-m2.y-m2.height,y:l3-m2.x-m2.width,width:m2.height,height:m2.width}),y2||(e2?(m2.x+=t2?0:m2.width,m2.width=0):(m2.y+=t2?m2.height:0,m2.height=0)));g5.align=B(g5.align,!e2||y2?"center":t2?"right":"left");g5.verticalAlign=B(g5.verticalAlign,e2||y2?"middle":t2?"top":"bottom");A2.prototype.alignDataLabel.call(this,a3,d2,g5,m2,k2);g5.inside&&a3.contrastColor&&d2.css({color:a3.contrastColor})}var l2=[];g4.compose=function(e2){a2.compose(A2);-1===l2.indexOf(e2)&&(l2.push(e2),e2.prototype.alignDataLabel=r2)}})(H2||(H2={}));return H2}));K(g2,"Series/Bar/BarSeries.js",[g2["Series/Column/ColumnSeries.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var a3=function(g4,r2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e2){a4.__proto__=e2}||function(a4,e2){for(var d2 in e2)e2.hasOwnProperty(d2)&&(a4[d2]=e2[d2])};return a3(g4,r2)};return function(g4,r2){function l2(){this.constructor=g4}a3(g4,r2);g4.prototype=null===r2?Object.create(r2):(l2.prototype=r2.prototype,new l2)}}(),C2=x2.extend,B=x2.merge;x2=function(g4){function t2(){var a3=null!==g4&&g4.apply(this,arguments)||this;a3.data=void 0;a3.options=void 0;a3.points=void 0;return a3}A2(t2,g4);t2.defaultOptions=B(a2.defaultOptions,{});return t2}(a2);C2(x2.prototype,{inverted:true});g3.registerSeriesType("bar",x2);return x2}));K(g2,"Series/Scatter/ScatterSeriesDefaults.js",[],(function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:true},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}));K(g2,"Series/Scatter/ScatterSeries.js",[g2["Series/Scatter/ScatterSeriesDefaults.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d3){a4.__proto__=d3}||function(a4,d3){for(var e3 in d3)d3.hasOwnProperty(e3)&&(a4[e3]=d3[e3])};return a3(e2,d2)};return function(e2,d2){function g4(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(g4.prototype=d2.prototype,new g4)}}(),C2=g3.seriesTypes,B=C2.column,H2=C2.line;C2=x2.addEvent;var t2=x2.extend,r2=x2.merge;x2=function(g4){function e2(){var a3=null!==g4&&g4.apply(this,arguments)||this;a3.data=void 0;a3.options=void 0;a3.points=void 0;return a3}A2(e2,g4);e2.prototype.applyJitter=function(){var a3=this,e3=this.options.jitter,g5=this.points.length;e3&&this.points.forEach((function(d2,h2){["x","y"].forEach((function(k2,m2){var l2="plot"+k2.toUpperCase();if(e3[k2]&&!d2.isNull){var p2=a3[k2+"Axis"];var r3=e3[k2]*p2.transA;if(p2&&!p2.isLog){var c2=Math.max(0,d2[l2]-r3);p2=Math.min(p2.len,d2[l2]+r3);m2=1e4*Math.sin(h2+m2*g5);d2[l2]=c2+(p2-c2)*(m2-Math.floor(m2));"x"===k2&&(d2.clientX=d2.plotX)}}}))}))};e2.prototype.drawGraph=function(){this.options.lineWidth?g4.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};e2.defaultOptions=r2(H2.defaultOptions,a2);return e2}(H2);t2(x2.prototype,{drawTracker:B.prototype.drawTracker,sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:false});C2(x2,"afterTranslate",(function(){this.applyJitter()}));g3.registerSeriesType("scatter",x2);return x2}));K(g2,"Series/CenteredUtilities.js",[g2["Core/Globals.js"],g2["Core/Series/Series.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=a2.deg2rad,C2=x2.fireEvent,B=x2.isNumber,H2=x2.pick,t2=x2.relativeLength,r2;(function(a3){a3.getCenter=function(){var a4=this.options,d2=this.chart,h2=2*(a4.slicedOffset||0),m2=d2.plotWidth-2*h2,k2=d2.plotHeight-2*h2,l2=a4.center,r3=Math.min(m2,k2),A3=a4.thickness,x3=a4.size,F2=a4.innerSize||0;"string"===typeof x3&&(x3=parseFloat(x3));"string"===typeof F2&&(F2=parseFloat(F2));a4=[H2(l2[0],"50%"),H2(l2[1],"50%"),H2(x3&&0>x3?void 0:a4.size,"100%"),H2(F2&&0>F2?void 0:a4.innerSize||0,"0%")];!d2.angular||this instanceof g3||(a4[3]=0);for(l2=0;4>l2;++l2)x3=a4[l2],d2=2>l2||2===l2&&/%$/.test(x3),a4[l2]=t2(x3,[m2,k2,r3,a4[2]][l2])+(d2?h2:0);a4[3]>a4[2]&&(a4[3]=a4[2]);B(A3)&&2*A3<a4[2]&&0<A3&&(a4[3]=a4[2]-2*A3);C2(this,"afterGetCenter",{positions:a4});return a4};a3.getStartAndEndRadians=function(a4,d2){a4=B(a4)?a4:0;d2=B(d2)&&d2>a4&&360>d2-a4?d2:a4+360;return{start:A2*(a4+-90),end:A2*(d2+-90)}}})(r2||(r2={}));return r2}));K(g2,"Series/Pie/PiePoint.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Series/Point.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var a3=function(d2,e2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d3){a4.__proto__=d3}||function(a4,d3){for(var e3 in d3)d3.hasOwnProperty(e3)&&(a4[e3]=d3[e3])};return a3(d2,e2)};return function(d2,e2){function g4(){this.constructor=d2}a3(d2,e2);d2.prototype=null===e2?Object.create(e2):(g4.prototype=e2.prototype,new g4)}}(),C2=a2.setAnimation,B=x2.addEvent,H2=x2.defined;a2=x2.extend;var t2=x2.isNumber,r2=x2.pick,l2=x2.relativeLength;g3=function(a3){function d2(){var d3=null!==a3&&a3.apply(this,arguments)||this;d3.labelDistance=void 0;d3.options=void 0;d3.series=void 0;return d3}A2(d2,a3);d2.prototype.getConnectorPath=function(){var a4=this.labelPosition,d3=this.series.options.dataLabels,e2=this.connectorShapes,g4=d3.connectorShape;e2[g4]&&(g4=e2[g4]);return g4.call(this,{x:a4.final.x,y:a4.final.y,alignment:a4.alignment},a4.connectorPosition,d3)};d2.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d2.prototype.haloPath=function(a4){var d3=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d3.x,d3.y,d3.r+a4,d3.r+a4,{innerR:d3.r-1,start:d3.start,end:d3.end})};d2.prototype.init=function(){var d3=this;a3.prototype.init.apply(this,arguments);this.name=r2(this.name,"Slice");var e2=function(a4){d3.slice("select"===a4.type)};B(this,"select",e2);B(this,"unselect",e2);return this};d2.prototype.isValid=function(){return t2(this.y)&&0<=this.y};d2.prototype.setVisible=function(a4,d3){var e2=this,g4=this.series,h2=g4.chart,m2=g4.options.ignoreHiddenPoint;d3=r2(d3,m2);a4!==this.visible&&(this.visible=this.options.visible=a4="undefined"===typeof a4?!this.visible:a4,g4.options.data[g4.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(d4){if(e2[d4])e2[d4][a4?"show":"hide"](a4)})),this.legendItem&&h2.legend.colorizeItem(this,a4),a4||"hover"!==this.state||this.setState(""),m2&&(g4.isDirty=true),d3&&h2.redraw())};d2.prototype.slice=function(a4,d3,e2){var g4=this.series;C2(e2,g4.chart);r2(d3,true);this.sliced=this.options.sliced=H2(a4)?a4:!this.sliced;g4.options.data[g4.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d2}(g3);a2(g3.prototype,{connectorShapes:{fixedOffset:function(a3,d2,g4){var e2=d2.breakAt;d2=d2.touchingSliceAt;return[["M",a3.x,a3.y],g4.softConnector?["C",a3.x+("left"===a3.alignment?-5:5),a3.y,2*e2.x-d2.x,2*e2.y-d2.y,e2.x,e2.y]:["L",e2.x,e2.y],["L",d2.x,d2.y]]},straight:function(a3,d2){d2=d2.touchingSliceAt;return[["M",a3.x,a3.y],["L",d2.x,d2.y]]},crookedLine:function(a3,d2,g4){d2=d2.touchingSliceAt;var e2=this.series,h2=e2.center[0],p2=e2.chart.plotWidth,r3=e2.chart.plotLeft;e2=a3.alignment;var t3=this.shapeArgs.r;g4=l2(g4.crookDistance,1);p2="left"===e2?h2+t3+(p2+r3-h2-t3)*(1-g4):r3+(h2-t3)*g4;g4=["L",p2,a3.y];h2=true;if("left"===e2?p2>a3.x||p2<d2.x:p2<a3.x||p2>d2.x)h2=false;a3=[["M",a3.x,a3.y]];h2&&a3.push(g4);a3.push(["L",d2.x,d2.y]);return a3}}});return g3}));K(g2,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{center:[null,null],clip:false,colorByPoint:true,dataLabels:{allowOverlap:true,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:true,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:true,x:0},fillColor:void 0,ignoreHiddenPoint:true,inactiveOtherPoints:true,legendType:"point",marker:null,size:null,showInLegend:false,slicedOffset:10,stickyTracking:false,tooltip:{followPointer:true},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}));K(g2,"Series/Pie/PieSeries.js",[g2["Series/CenteredUtilities.js"],g2["Series/Column/ColumnSeries.js"],g2["Core/Globals.js"],g2["Core/Legend/LegendSymbol.js"],g2["Series/Pie/PiePoint.js"],g2["Series/Pie/PieSeriesDefaults.js"],g2["Core/Series/Series.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Renderer/SVG/Symbols.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2){var e2=this&&this.__extends||function(){var a3=function(d3,e3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d4){a4.__proto__=d4}||function(a4,d4){for(var c2 in d4)d4.hasOwnProperty(c2)&&(a4[c2]=d4[c2])};return a3(d3,e3)};return function(d3,e3){function c2(){this.constructor=d3}a3(d3,e3);d3.prototype=null===e3?Object.create(e3):(c2.prototype=e3.prototype,new c2)}}(),d2=a2.getStartAndEndRadians;x2=x2.noop;var h2=l2.clamp,m2=l2.extend,k2=l2.fireEvent,p2=l2.merge,A2=l2.pick,I=l2.relativeLength;l2=function(a3){function g4(){var d3=null!==a3&&a3.apply(this,arguments)||this;d3.center=void 0;d3.data=void 0;d3.maxLabelDistance=void 0;d3.options=void 0;d3.points=void 0;return d3}e2(g4,a3);g4.prototype.animate=function(a4){var c2=this,d3=c2.points,e3=c2.startAngleRad;a4||d3.forEach((function(a5){var b2=a5.graphic,d4=a5.shapeArgs;b2&&d4&&(b2.attr({r:A2(a5.startR,c2.center&&c2.center[3]/2),start:e3,end:e3}),b2.animate({r:d4.r,start:d4.start,end:d4.end},c2.options.animation))}))};g4.prototype.drawEmpty=function(){var a4=this.startAngleRad,c2=this.endAngleRad,d3=this.options;if(0===this.total&&this.center){var e3=this.center[0];var g5=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e3,g5,this.center[1]/2,0,a4,c2).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:r2.arc(e3,g5,this.center[2]/2,0,{start:a4,end:c2,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d3.borderWidth,fill:d3.fillColor||"none",stroke:d3.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};g4.prototype.drawPoints=function(){var a4=this.chart.renderer;this.points.forEach((function(c2){c2.graphic&&c2.hasNewShapeType()&&(c2.graphic=c2.graphic.destroy());c2.graphic||(c2.graphic=a4[c2.shapeType](c2.shapeArgs).add(c2.series.group),c2.delayedRendering=true)}))};g4.prototype.generatePoints=function(){a3.prototype.generatePoints.call(this);this.updateTotals()};g4.prototype.getX=function(a4,c2,d3){var e3=this.center,g5=this.radii?this.radii[d3.index]||0:e3[2]/2;a4=Math.asin(h2((a4-e3[1])/(g5+d3.labelDistance),-1,1));return e3[0]+(c2?-1:1)*Math.cos(a4)*(g5+d3.labelDistance)+(0<d3.labelDistance?(c2?-1:1)*this.options.dataLabels.padding:0)};g4.prototype.hasData=function(){return!!this.processedXData.length};g4.prototype.redrawPoints=function(){var a4=this,c2=a4.chart,d3=c2.renderer,e3=a4.options.shadow,g5,b2,h3,k3;this.drawEmpty();!e3||a4.shadowGroup||c2.styledMode||(a4.shadowGroup=d3.g("shadow").attr({zIndex:-1}).add(a4.group));a4.points.forEach((function(f2){var n2={};b2=f2.graphic;if(!f2.isNull&&b2){var l3=void 0;k3=f2.shapeArgs;g5=f2.getTranslate();c2.styledMode||(l3=f2.shadowGroup,e3&&!l3&&(l3=f2.shadowGroup=d3.g("shadow").add(a4.shadowGroup)),l3&&l3.attr(g5),h3=a4.pointAttribs(f2,f2.selected&&"select"));f2.delayedRendering?(b2.setRadialReference(a4.center).attr(k3).attr(g5),c2.styledMode||b2.attr(h3).attr({"stroke-linejoin":"round"}).shadow(e3,l3),f2.delayedRendering=false):(b2.setRadialReference(a4.center),c2.styledMode||p2(true,n2,h3),p2(true,n2,k3,g5),b2.animate(n2));b2.attr({visibility:f2.visible?"inherit":"hidden"});b2.addClass(f2.getClassName(),true)}else b2&&(f2.graphic=b2.destroy())}))};g4.prototype.sortByAngle=function(a4,c2){a4.sort((function(a5,d3){return"undefined"!==typeof a5.angle&&(d3.angle-a5.angle)*c2}))};g4.prototype.translate=function(a4){k2(this,"translate");this.generatePoints();var c2=this.options,e3=c2.slicedOffset,f2=e3+(c2.borderWidth||0),g5=d2(c2.startAngle,c2.endAngle),b2=this.startAngleRad=g5.start;g5=(this.endAngleRad=g5.end)-b2;var h3=this.points,l3=c2.dataLabels.distance;c2=c2.ignoreHiddenPoint;var m3=h3.length,p3,r3=0;a4||(this.center=a4=this.getCenter());for(p3=0;p3<m3;p3++){var t3=h3[p3];var y2=b2+r3*g5;!t3.isValid()||c2&&!t3.visible||(r3+=t3.percentage/100);var x3=b2+r3*g5;var D2={x:a4[0],y:a4[1],r:a4[2]/2,innerR:a4[3]/2,start:Math.round(1e3*y2)/1e3,end:Math.round(1e3*x3)/1e3};t3.shapeType="arc";t3.shapeArgs=D2;t3.labelDistance=A2(t3.options.dataLabels&&t3.options.dataLabels.distance,l3);t3.labelDistance=I(t3.labelDistance,D2.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t3.labelDistance);x3=(x3+y2)/2;x3>1.5*Math.PI?x3-=2*Math.PI:x3<-Math.PI/2&&(x3+=2*Math.PI);t3.slicedTranslation={translateX:Math.round(Math.cos(x3)*e3),translateY:Math.round(Math.sin(x3)*e3)};D2=Math.cos(x3)*a4[2]/2;var v2=Math.sin(x3)*a4[2]/2;t3.tooltipPos=[a4[0]+.7*D2,a4[1]+.7*v2];t3.half=x3<-Math.PI/2||x3>Math.PI/2?1:0;t3.angle=x3;y2=Math.min(f2,t3.labelDistance/5);t3.labelPosition={natural:{x:a4[0]+D2+Math.cos(x3)*t3.labelDistance,y:a4[1]+v2+Math.sin(x3)*t3.labelDistance},final:{},alignment:0>t3.labelDistance?"center":t3.half?"right":"left",connectorPosition:{breakAt:{x:a4[0]+D2+Math.cos(x3)*y2,y:a4[1]+v2+Math.sin(x3)*y2},touchingSliceAt:{x:a4[0]+D2,y:a4[1]+v2}}}}k2(this,"afterTranslate")};g4.prototype.updateTotals=function(){var a4=this.points,c2=a4.length,d3=this.options.ignoreHiddenPoint,e3,g5=0;for(e3=0;e3<c2;e3++){var b2=a4[e3];!b2.isValid()||d3&&!b2.visible||(g5+=b2.y)}this.total=g5;for(e3=0;e3<c2;e3++)b2=a4[e3],b2.percentage=0<g5&&(b2.visible||!d3)?b2.y/g5*100:0,b2.total=g5};g4.defaultOptions=p2(H2.defaultOptions,B);return g4}(H2);m2(l2.prototype,{axisTypes:[],directTouch:true,drawGraph:void 0,drawLegendSymbol:F2.drawRectangle,drawTracker:g3.prototype.drawTracker,getCenter:a2.getCenter,getSymbol:x2,isCartesian:false,noSharedTooltip:true,pointAttribs:g3.prototype.pointAttribs,pointClass:C2,requireSorting:false,searchPoint:x2,trackerGroups:["group","dataLabelsGroup"]});t2.registerSeriesType("pie",l2);return l2}));K(g2,"Series/Pie/PieDataLabel.js",[g2["Core/Series/DataLabel.js"],g2["Core/Globals.js"],g2["Core/Renderer/RendererUtilities.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2){var A2=g3.noop,H2=x2.distribute,t2=F2.series,r2=C2.arrayMax,l2=C2.clamp,e2=C2.defined,d2=C2.merge,h2=C2.pick,m2=C2.relativeLength,k2;(function(g4){function k3(){var a3=this,g5=a3.data,f2=a3.chart,k4=a3.options.dataLabels||{},b2=k4.connectorPadding,l3=f2.plotWidth,m3=f2.plotHeight,p3=f2.plotLeft,y3=Math.round(f2.chartWidth/3),A3=a3.center,x4=A3[2]/2,D2=A3[1],B2=[[],[]],E2=[0,0,0,0],v2=a3.dataLabelPositioners,C3,F3,I,L2,G,K2,M,X,R2,V2,Z,W2;a3.visible&&(k4.enabled||a3._hasPointLabels)&&(g5.forEach((function(a4){a4.dataLabel&&a4.visible&&a4.dataLabel.shortened&&(a4.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a4.dataLabel.shortened=false)})),t2.prototype.drawDataLabels.apply(a3),g5.forEach((function(a4){a4.dataLabel&&(a4.visible?(B2[a4.half].push(a4),a4.dataLabel._pos=null,!e2(k4.style.width)&&!e2(a4.options.dataLabels&&a4.options.dataLabels.style&&a4.options.dataLabels.style.width)&&a4.dataLabel.getBBox().width>y3&&(a4.dataLabel.css({width:Math.round(.7*y3)+"px"}),a4.dataLabel.shortened=true)):(a4.dataLabel=a4.dataLabel.destroy(),a4.dataLabels&&1===a4.dataLabels.length&&delete a4.dataLabels))})),B2.forEach((function(c2,d3){var g6=c2.length,n2=[],q;if(g6){a3.sortByAngle(c2,d3-.5);if(0<a3.maxLabelDistance){var r3=Math.max(0,D2-x4-a3.maxLabelDistance);var t3=Math.min(D2+x4+a3.maxLabelDistance,f2.plotHeight);c2.forEach((function(a4){0<a4.labelDistance&&a4.dataLabel&&(a4.top=Math.max(0,D2-x4-a4.labelDistance),a4.bottom=Math.min(D2+x4+a4.labelDistance,f2.plotHeight),q=a4.dataLabel.getBBox().height||21,a4.distributeBox={target:a4.labelPosition.natural.y-a4.top+q/2,size:q,rank:a4.y},n2.push(a4.distributeBox))}));r3=t3+q-r3;H2(n2,r3,r3/5)}for(Z=0;Z<g6;Z++){C3=c2[Z];K2=C3.labelPosition;L2=C3.dataLabel;V2=false===C3.visible?"hidden":"inherit";R2=r3=K2.natural.y;n2&&e2(C3.distributeBox)&&("undefined"===typeof C3.distributeBox.pos?V2="hidden":(M=C3.distributeBox.size,R2=v2.radialDistributionY(C3)));delete C3.positionIndex;if(k4.justify)X=v2.justify(C3,x4,A3);else switch(k4.alignTo){case"connectors":X=v2.alignToConnectors(c2,d3,l3,p3);break;case"plotEdges":X=v2.alignToPlotEdges(L2,d3,l3,p3);break;default:X=v2.radialDistributionX(a3,C3,R2,r3)}L2._attr={visibility:V2,align:K2.alignment};W2=C3.options.dataLabels||{};L2._pos={x:X+h2(W2.x,k4.x)+({left:b2,right:-b2}[K2.alignment]||0),y:R2+h2(W2.y,k4.y)-10};K2.final.x=X;K2.final.y=R2;h2(k4.crop,true)&&(G=L2.getBBox().width,r3=null,X-G<b2&&1===d3?(r3=Math.round(G-X+b2),E2[3]=Math.max(r3,E2[3])):X+G>l3-b2&&0===d3&&(r3=Math.round(X+G-l3+b2),E2[1]=Math.max(r3,E2[1])),0>R2-M/2?E2[0]=Math.max(Math.round(-R2+M/2),E2[0]):R2+M/2>m3&&(E2[2]=Math.max(Math.round(R2+M/2-m3),E2[2])),L2.sideOverflow=r3)}}})),0===r2(E2)||this.verifyDataLabelOverflow(E2))&&(this.placeDataLabels(),this.points.forEach((function(b3){W2=d2(k4,b3.options.dataLabels);if(F3=h2(W2.connectorWidth,1)){var c2;I=b3.connector;if((L2=b3.dataLabel)&&L2._pos&&b3.visible&&0<b3.labelDistance){V2=L2._attr.visibility;if(c2=!I)b3.connector=I=f2.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b3.colorIndex+(b3.className?" "+b3.className:"")).add(a3.dataLabelsGroup),f2.styledMode||I.attr({"stroke-width":F3,stroke:W2.connectorColor||b3.color||"#666666"});I[c2?"attr":"animate"]({d:b3.getConnectorPath()});I.attr("visibility",V2)}else I&&(b3.connector=I.destroy())}})))}function p2(){this.points.forEach((function(a3){var c2=a3.dataLabel,d3;c2&&a3.visible&&((d3=c2._pos)?(c2.sideOverflow&&(c2._attr.width=Math.max(c2.getBBox().width-c2.sideOverflow,0),c2.css({width:c2._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c2.shortened=true),c2.attr(c2._attr),c2[c2.moved?"animate":"attr"](d3),c2.moved=true):c2&&c2.attr({y:-9999}));delete a3.distributeBox}),this)}function x3(a3){var c2=this.center,d3=this.options,e3=d3.center,b2=d3.minSize||80,g5=null!==d3.size;if(!g5){if(null!==e3[0])var h3=Math.max(c2[2]-Math.max(a3[1],a3[3]),b2);else h3=Math.max(c2[2]-a3[1]-a3[3],b2),c2[0]+=(a3[3]-a3[1])/2;null!==e3[1]?h3=l2(h3,b2,c2[2]-Math.max(a3[0],a3[2])):(h3=l2(h3,b2,c2[2]-a3[0]-a3[2]),c2[1]+=(a3[0]-a3[2])/2);h3<c2[2]?(c2[2]=h3,c2[3]=Math.min(d3.thickness?Math.max(0,h3-2*d3.thickness):Math.max(0,m2(d3.innerSize||0,h3)),h3),this.translate(c2),this.drawDataLabels&&this.drawDataLabels()):g5=true}return g5}var B=[],y2={radialDistributionY:function(a3){return a3.top+a3.distributeBox.pos},radialDistributionX:function(a3,d3,e3,g5){return a3.getX(e3<d3.top+2||e3>d3.bottom-2?g5:e3,d3.half,d3)},justify:function(a3,d3,e3){return e3[0]+(a3.half?-1:1)*(d3+a3.labelDistance)},alignToPlotEdges:function(a3,d3,e3,g5){a3=a3.getBBox().width;return d3?a3+g5:e3-a3-g5},alignToConnectors:function(a3,d3,e3,g5){var b2=0,c2;a3.forEach((function(a4){c2=a4.dataLabel.getBBox().width;c2>b2&&(b2=c2)}));return d3?b2+g5:e3-b2-g5}};g4.compose=function(c2){a2.compose(t2);-1===B.indexOf(c2)&&(B.push(c2),c2=c2.prototype,c2.dataLabelPositioners=y2,c2.alignDataLabel=A2,c2.drawDataLabels=k3,c2.placeDataLabels=p2,c2.verifyDataLabelOverflow=x3)}})(k2||(k2={}));return k2}));K(g2,"Extensions/OverlappingDataLabels.js",[g2["Core/Chart/Chart.js"],g2["Core/Utilities.js"]],(function(a2,g3){function A2(a3,e2){var d2=false;if(a3){var g4=a3.newOpacity;a3.oldOpacity!==g4&&(a3.alignAttr&&a3.placed?(a3[g4?"removeClass":"addClass"]("highcharts-data-label-hidden"),d2=true,a3.alignAttr.opacity=g4,a3[a3.isOld?"animate":"attr"](a3.alignAttr,null,(function(){e2.styledMode||a3.css({pointerEvents:g4?"auto":"none"})})),C2(e2,"afterHideOverlappingLabel")):a3.attr({opacity:g4}));a3.isOld=true}return d2}var F2=g3.addEvent,C2=g3.fireEvent,B=g3.isArray,H2=g3.isNumber,t2=g3.objectEach,r2=g3.pick;F2(a2,"render",(function(){var a3=this,e2=[];(this.labelCollectors||[]).forEach((function(a4){e2=e2.concat(a4())}));(this.yAxis||[]).forEach((function(a4){a4.stacking&&a4.options.stackLabels&&!a4.options.stackLabels.allowOverlap&&t2(a4.stacking.stacks,(function(a5){t2(a5,(function(a6){a6.label&&e2.push(a6.label)}))}))}));(this.series||[]).forEach((function(d2){var g4=d2.options.dataLabels;d2.visible&&(false!==g4.enabled||d2._hasPointLabels)&&(g4=function(d3){return d3.forEach((function(d4){d4.visible&&(B(d4.dataLabels)?d4.dataLabels:d4.dataLabel?[d4.dataLabel]:[]).forEach((function(g5){var h2=g5.options;g5.labelrank=r2(h2.labelrank,d4.labelrank,d4.shapeArgs&&d4.shapeArgs.height);h2.allowOverlap?(g5.oldOpacity=g5.opacity,g5.newOpacity=1,A2(g5,a3)):e2.push(g5)}))}))},g4(d2.nodes||[]),g4(d2.points))}));this.hideOverlappingLabels(e2)}));a2.prototype.hideOverlappingLabels=function(a3){var e2=this,d2=a3.length,g4=e2.renderer,l2,k2,p2,r3=false;var t3=function(a4){var c2,d3=a4.box?0:a4.padding||0,e3=c2=0,h2;if(a4&&(!a4.alignAttr||a4.placed)){var b2=a4.alignAttr||{x:a4.attr("x"),y:a4.attr("y")};var k3=a4.parentGroup;a4.width||(c2=a4.getBBox(),a4.width=c2.width,a4.height=c2.height,c2=g4.fontMetrics(null,a4.element).h);var l3=a4.width-2*d3;(h2={left:"0",center:"0.5",right:"1"}[a4.alignValue])?e3=+h2*l3:H2(a4.x)&&Math.round(a4.x)!==a4.translateX&&(e3=a4.x-a4.translateX);return{x:b2.x+(k3.translateX||0)+d3-(e3||0),y:b2.y+(k3.translateY||0)+d3-c2,width:a4.width-2*d3,height:a4.height-2*d3}}};for(k2=0;k2<d2;k2++)if(l2=a3[k2])l2.oldOpacity=l2.opacity,l2.newOpacity=1,l2.absoluteBox=t3(l2);a3.sort((function(a4,c2){return(c2.labelrank||0)-(a4.labelrank||0)}));for(k2=0;k2<d2;k2++){var x2=(t3=a3[k2])&&t3.absoluteBox;for(l2=k2+1;l2<d2;++l2){var B2=(p2=a3[l2])&&p2.absoluteBox;!x2||!B2||t3===p2||0===t3.newOpacity||0===p2.newOpacity||"hidden"===t3.visibility||"hidden"===p2.visibility||B2.x>=x2.x+x2.width||B2.x+B2.width<=x2.x||B2.y>=x2.y+x2.height||B2.y+B2.height<=x2.y||((t3.labelrank<p2.labelrank?t3:p2).newOpacity=0)}}a3.forEach((function(a4){A2(a4,e2)&&(r3=true)}));r3&&C2(e2,"afterHideAllOverlappingLabels")}}));K(g2,"Core/Responsive.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.extend,x2=a2.find,F2=a2.isArray,C2=a2.isObject,B=a2.merge,H2=a2.objectEach,t2=a2.pick,r2=a2.splat,l2=a2.uniqueKey,e2;(function(a3){var d2=[];a3.compose=function(a4){-1===d2.indexOf(a4)&&(d2.push(a4),g3(a4.prototype,e3.prototype));return a4};var e3=function(){function a4(){}a4.prototype.currentOptions=function(a5){function d3(a6,g5,c2,h2){var f2;H2(a6,(function(a7,b2){if(!h2&&-1<e4.collectionsWithUpdate.indexOf(b2)&&g5[b2])for(a7=r2(a7),c2[b2]=[],f2=0;f2<Math.max(a7.length,g5[b2].length);f2++)g5[b2][f2]&&(void 0===a7[f2]?c2[b2][f2]=g5[b2][f2]:(c2[b2][f2]={},d3(a7[f2],g5[b2][f2],c2[b2][f2],h2+1)));else C2(a7)?(c2[b2]=F2(a7)?[]:{},d3(a7,g5[b2]||{},c2[b2],h2+1)):c2[b2]="undefined"===typeof g5[b2]?null:g5[b2]}))}var e4=this,g4={};d3(a5,this.options,g4,0);return g4};a4.prototype.matchResponsiveRule=function(a5,d3){var e4=a5.condition;(e4.callback||function(){return this.chartWidth<=t2(e4.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=t2(e4.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t2(e4.minWidth,0)&&this.chartHeight>=t2(e4.minHeight,0)}).call(this)&&d3.push(a5._id)};a4.prototype.setResponsive=function(a5,d3){var e4=this,g4=this.options.responsive,h2=this.currentResponsive,k2=[];!d3&&g4&&g4.rules&&g4.rules.forEach((function(a6){"undefined"===typeof a6._id&&(a6._id=l2());e4.matchResponsiveRule(a6,k2)}),this);d3=B.apply(void 0,k2.map((function(a6){return x2((g4||{}).rules||[],(function(c2){return c2._id===a6}))})).map((function(a6){return a6&&a6.chartOptions})));d3.isResponsiveOptions=true;k2=k2.toString()||void 0;k2!==(h2&&h2.ruleIds)&&(h2&&this.update(h2.undoOptions,a5,true),k2?(h2=this.currentOptions(d3),h2.isResponsiveOptions=true,this.currentResponsive={ruleIds:k2,mergedOptions:d3,undoOptions:h2},this.update(d3,a5,true)):this.currentResponsive=void 0)};return a4}()})(e2||(e2={}));return e2}));K(g2,"masters/highcharts.src.js",[g2["Core/Globals.js"],g2["Core/Utilities.js"],g2["Core/Defaults.js"],g2["Core/Animation/Fx.js"],g2["Core/Animation/AnimationUtilities.js"],g2["Core/Renderer/HTML/AST.js"],g2["Core/FormatUtilities.js"],g2["Core/Renderer/RendererUtilities.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Renderer/SVG/SVGRenderer.js"],g2["Core/Renderer/HTML/HTMLElement.js"],g2["Core/Renderer/HTML/HTMLRenderer.js"],g2["Core/Axis/Axis.js"],g2["Core/Axis/DateTimeAxis.js"],g2["Core/Axis/LogarithmicAxis.js"],g2["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g2["Core/Axis/Tick.js"],g2["Core/Tooltip.js"],g2["Core/Series/Point.js"],g2["Core/Pointer.js"],g2["Core/MSPointer.js"],g2["Core/Legend/Legend.js"],g2["Core/Chart/Chart.js"],g2["Core/Axis/Stacking/StackingAxis.js"],g2["Core/Axis/Stacking/StackItem.js"],g2["Core/Series/Series.js"],g2["Core/Series/SeriesRegistry.js"],g2["Series/Column/ColumnSeries.js"],g2["Series/Column/ColumnDataLabel.js"],g2["Series/Pie/PieSeries.js"],g2["Series/Pie/PieDataLabel.js"],g2["Core/Series/DataLabel.js"],g2["Core/Responsive.js"],g2["Core/Color/Color.js"],g2["Core/Time.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2,e2,d2,h2,m2,k2,p2,D2,I,E2,L2,y2,c2,w2,f2,n2,b2,u2,z2,q,K2,J,O2,Q,T2,Y){a2.animate=C2.animate;a2.animObject=C2.animObject;a2.getDeferredAnimation=C2.getDeferredAnimation;a2.setAnimation=C2.setAnimation;a2.stop=C2.stop;a2.timers=F2.timers;a2.AST=B;a2.Axis=h2;a2.Chart=w2;a2.chart=w2.chart;a2.Fx=F2;a2.Legend=c2;a2.PlotLineOrBand=p2;a2.Point=E2;a2.Pointer=y2.isRequired()?y2:L2;a2.Series=b2;a2.StackItem=n2;a2.SVGElement=r2;a2.SVGRenderer=l2;a2.Tick=D2;a2.Time=Y;a2.Tooltip=I;a2.Color=T2;a2.color=T2.parse;d2.compose(l2);e2.compose(r2);a2.defaultOptions=x2.defaultOptions;a2.getOptions=x2.getOptions;a2.time=x2.defaultTime;a2.setOptions=x2.setOptions;a2.dateFormat=H2.dateFormat;a2.format=H2.format;a2.numberFormat=H2.numberFormat;a2.addEvent=g3.addEvent;a2.arrayMax=g3.arrayMax;a2.arrayMin=g3.arrayMin;a2.attr=g3.attr;a2.clearTimeout=g3.clearTimeout;a2.correctFloat=g3.correctFloat;a2.createElement=g3.createElement;a2.css=g3.css;a2.defined=g3.defined;a2.destroyObjectProperties=g3.destroyObjectProperties;a2.discardElement=g3.discardElement;a2.distribute=t2.distribute;a2.erase=g3.erase;a2.error=g3.error;a2.extend=g3.extend;a2.extendClass=g3.extendClass;a2.find=g3.find;a2.fireEvent=g3.fireEvent;a2.getMagnitude=g3.getMagnitude;a2.getStyle=g3.getStyle;a2.inArray=g3.inArray;a2.isArray=g3.isArray;a2.isClass=g3.isClass;a2.isDOMElement=g3.isDOMElement;a2.isFunction=g3.isFunction;a2.isNumber=g3.isNumber;a2.isObject=g3.isObject;a2.isString=g3.isString;a2.keys=g3.keys;a2.merge=g3.merge;a2.normalizeTickInterval=g3.normalizeTickInterval;a2.objectEach=g3.objectEach;a2.offset=g3.offset;a2.pad=g3.pad;a2.pick=g3.pick;a2.pInt=g3.pInt;a2.relativeLength=g3.relativeLength;a2.removeEvent=g3.removeEvent;a2.seriesType=u2.seriesType;a2.splat=g3.splat;a2.stableSort=g3.stableSort;a2.syncTimeout=g3.syncTimeout;a2.timeUnits=g3.timeUnits;a2.uniqueKey=g3.uniqueKey;a2.useSerialIds=g3.useSerialIds;a2.wrap=g3.wrap;q.compose(z2);O2.compose(b2);m2.compose(h2);k2.compose(h2);J.compose(K2);p2.compose(h2);Q.compose(w2);f2.compose(h2,w2,b2);return a2}));g2["masters/highcharts.src.js"]._modules=g2;return g2["masters/highcharts.src.js"]}))})(highcharts);var highchartsExports=highcharts.exports;const Highcharts$1=getDefaultExportFromCjs(highchartsExports);const highchartsTheme={lang:{thousandsSep:","},colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],chart:{borderWidth:0,borderRadius:0,plotBackgroundColor:void 0,plotShadow:false,plotBorderWidth:0},title:{style:{color:colors$1.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_base}},xAxis:{gridLineWidth:0,lineColor:colors$1.border_light,tickColor:colors$1.border_light,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors$1.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors$1.border_light,minorGridLineColor:colors$1.border_light,lineWidth:0,tickWidth:0,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemStyle:{fontFamily:typography.font_family_base,color:colors$1.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors$1.text_lt_default},itemHiddenStyle:{color:colors$1.text_lt_lighter}},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors$1.bg_dark],[1,colors$1.bg_dark]]},shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},pane:{background:{borderColor:colors$1.border_light}},plotOptions:{series:{threshold:null},pie:{colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],dataLabels:{style:{fontFamily:typography.font_family_base,fontSize:typography.text_smaller,color:colors$1.text_lt_light,fontWeight:typography.regular,textOutline:"2px $white"}}},line:{dataLabels:{color:"#CCC"},marker:{lineColor:"#333"}},treemap:{layoutAlgorithm:"squarified",allowTraversingTree:false,animationLimit:1e3,colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7,colors$1.data_8],dataLabels:{enabled:true,style:{fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_4}},levels:[{level:1,dataLabels:{enabled:false}}],traverseUpButton:{position:{y:-50}}}},credits:{enabled:false}};const highchartsDarkTheme={lang:{thousandsSep:","},colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],chart:{borderWidth:0,borderRadius:0,plotBackgroundColor:void 0,plotShadow:false,plotBorderWidth:0},title:{style:{color:colors$1.text_dk_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_light,fontWeight:typography.regular,fontSize:typography.text_base}},xAxis:{gridLineWidth:0,lineColor:colors$1.border_dark,tickColor:colors$1.border_dark,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors$1.text_dk_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors$1.border_dark,minorGridLineColor:colors$1.border_dark,lineWidth:0,tickWidth:0,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemStyle:{fontFamily:typography.font_family_base,color:colors$1.text_dk_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors$1.text_dk_default},itemHiddenStyle:{color:colors$1.text_dk_lighter}},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors$1.card_light],[1,colors$1.card_light]]},shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},pane:{background:{borderColor:colors$1.border_dark}},plotOptions:{series:{borderColor:colors$1.bg_dark_card,borderWidth:2,threshold:null},pie:{colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],dataLabels:{style:{fontFamily:typography.font_family_base,fontSize:typography.text_smaller,color:colors$1.text_dk_light,fontWeight:typography.regular}}},line:{dataLabels:{color:colors$1.text_dk_light},marker:{lineColor:colors$1.border_dark}},treemap:{layoutAlgorithm:"squarified",allowTraversingTree:false,animationLimit:1e3,colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7,colors$1.data_8],dataLabels:{enabled:true,style:{fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_4}},levels:[{level:1,dataLabels:{enabled:false}}],traverseUpButton:{position:{y:-50}}}},credits:{enabled:false}};const mapColors=array=>{const regex=/(data)\-[1-8]/;const newArray=array.map((item=>regex.test(item)?`${colors$1[`data_${item[item.length-1]}`]}`:item));return newArray};const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors2,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x2=0,y:y2=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x2,y:y2},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{setOptions(lodashExports.merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};var main={exports:{}};(function(module){module.exports=function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module2=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module2.exports,module2,module2.exports,__webpack_require__);module2.loaded=true;return module2.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module2,exports,__webpack_require__){module2.exports=__webpack_require__(1)},function(module2,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:true});function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}var _Highlighter=__webpack_require__(2);var _Highlighter2=_interopRequireDefault2(_Highlighter);exports["default"]=_Highlighter2["default"];module2.exports=exports["default"]},function(module2,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:true});var _extends2=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};exports["default"]=Highlighter2;function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}function _objectWithoutProperties2(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i]}return target}var _highlightWordsCore=__webpack_require__(3);var _propTypes3=__webpack_require__(4);var _propTypes22=_interopRequireDefault2(_propTypes3);var _react3=__webpack_require__(14);var _memoizeOne=__webpack_require__(15);var _memoizeOne2=_interopRequireDefault2(_memoizeOne);Highlighter2.propTypes={activeClassName:_propTypes22["default"].string,activeIndex:_propTypes22["default"].number,activeStyle:_propTypes22["default"].object,autoEscape:_propTypes22["default"].bool,className:_propTypes22["default"].string,findChunks:_propTypes22["default"].func,highlightClassName:_propTypes22["default"].oneOfType([_propTypes22["default"].object,_propTypes22["default"].string]),highlightStyle:_propTypes22["default"].object,highlightTag:_propTypes22["default"].oneOfType([_propTypes22["default"].node,_propTypes22["default"].func,_propTypes22["default"].string]),sanitize:_propTypes22["default"].func,searchWords:_propTypes22["default"].arrayOf(_propTypes22["default"].oneOfType([_propTypes22["default"].string,_propTypes22["default"].instanceOf(RegExp)])).isRequired,textToHighlight:_propTypes22["default"].string.isRequired,unhighlightTag:_propTypes22["default"].oneOfType([_propTypes22["default"].node,_propTypes22["default"].func,_propTypes22["default"].string]),unhighlightClassName:_propTypes22["default"].string,unhighlightStyle:_propTypes22["default"].object};function Highlighter2(_ref3){var _ref$activeClassName=_ref3.activeClassName;var activeClassName=_ref$activeClassName===void 0?"":_ref$activeClassName;var _ref$activeIndex=_ref3.activeIndex;var activeIndex=_ref$activeIndex===void 0?-1:_ref$activeIndex;var activeStyle=_ref3.activeStyle;var autoEscape=_ref3.autoEscape;var _ref$caseSensitive=_ref3.caseSensitive;var caseSensitive=_ref$caseSensitive===void 0?false:_ref$caseSensitive;var className=_ref3.className;var findChunks=_ref3.findChunks;var _ref$highlightClassName=_ref3.highlightClassName;var highlightClassName=_ref$highlightClassName===void 0?"":_ref$highlightClassName;var _ref$highlightStyle=_ref3.highlightStyle;var highlightStyle=_ref$highlightStyle===void 0?{}:_ref$highlightStyle;var _ref$highlightTag=_ref3.highlightTag;var highlightTag=_ref$highlightTag===void 0?"mark":_ref$highlightTag;var sanitize=_ref3.sanitize;var searchWords=_ref3.searchWords;var textToHighlight=_ref3.textToHighlight;var _ref$unhighlightTag=_ref3.unhighlightTag;var unhighlightTag=_ref$unhighlightTag===void 0?"span":_ref$unhighlightTag;var _ref$unhighlightClassName=_ref3.unhighlightClassName;var unhighlightClassName=_ref$unhighlightClassName===void 0?"":_ref$unhighlightClassName;var unhighlightStyle=_ref3.unhighlightStyle;var rest=_objectWithoutProperties2(_ref3,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]);var chunks=(0,_highlightWordsCore.findAll)({autoEscape:autoEscape,caseSensitive:caseSensitive,findChunks:findChunks,sanitize:sanitize,searchWords:searchWords,textToHighlight:textToHighlight});var HighlightTag=highlightTag;var highlightIndex=-1;var highlightClassNames="";var highlightStyles=void 0;var lowercaseProps=function lowercaseProps2(object){var mapped={};for(var key in object){mapped[key.toLowerCase()]=object[key]}return mapped};var memoizedLowercaseProps=(0,_memoizeOne2["default"])(lowercaseProps);return(0,_react3.createElement)("span",_extends2({className:className},rest,{children:chunks.map((function(chunk,index2){var text2=textToHighlight.substr(chunk.start,chunk.end-chunk.start);if(chunk.highlight){highlightIndex++;var highlightClass=void 0;if(typeof highlightClassName==="object"){if(!caseSensitive){highlightClassName=memoizedLowercaseProps(highlightClassName);highlightClass=highlightClassName[text2.toLowerCase()]}else{highlightClass=highlightClassName[text2]}}else{highlightClass=highlightClassName}var isActive=highlightIndex===+activeIndex;highlightClassNames=highlightClass+" "+(isActive?activeClassName:"");highlightStyles=isActive===true&&activeStyle!=null?Object.assign({},highlightStyle,activeStyle):highlightStyle;var props={children:text2,className:highlightClassNames,key:index2,style:highlightStyles};if(typeof HighlightTag!=="string"){props.highlightIndex=highlightIndex}return(0,_react3.createElement)(HighlightTag,props)}else{return(0,_react3.createElement)(unhighlightTag,{children:text2,className:unhighlightClassName,key:index2,style:unhighlightStyle})}}))}))}module2.exports=exports["default"]},function(module2,exports){module2.exports=function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module3=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module3.exports,module3,module3.exports,__webpack_require__);module3.loaded=true;return module3.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module3,exports2,__webpack_require__){module3.exports=__webpack_require__(1)},function(module3,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:true});var _utils=__webpack_require__(2);Object.defineProperty(exports2,"combineChunks",{enumerable:true,get:function get(){return _utils.combineChunks}});Object.defineProperty(exports2,"fillInChunks",{enumerable:true,get:function get(){return _utils.fillInChunks}});Object.defineProperty(exports2,"findAll",{enumerable:true,get:function get(){return _utils.findAll}});Object.defineProperty(exports2,"findChunks",{enumerable:true,get:function get(){return _utils.findChunks}})},function(module3,exports2){Object.defineProperty(exports2,"__esModule",{value:true});exports2.findAll=function findAll2(_ref3){var autoEscape=_ref3.autoEscape,_ref$caseSensitive=_ref3.caseSensitive,caseSensitive=_ref$caseSensitive===void 0?false:_ref$caseSensitive,_ref$findChunks=_ref3.findChunks,findChunks=_ref$findChunks===void 0?defaultFindChunks:_ref$findChunks,sanitize=_ref3.sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;return fillInChunks({chunksToHighlight:combineChunks({chunks:findChunks({autoEscape:autoEscape,caseSensitive:caseSensitive,sanitize:sanitize,searchWords:searchWords,textToHighlight:textToHighlight})}),totalLength:textToHighlight?textToHighlight.length:0})};var combineChunks=exports2.combineChunks=function combineChunks2(_ref22){var chunks=_ref22.chunks;chunks=chunks.sort((function(first,second){return first.start-second.start})).reduce((function(processedChunks,nextChunk){if(processedChunks.length===0){return[nextChunk]}else{var prevChunk=processedChunks.pop();if(nextChunk.start<=prevChunk.end){var endIndex=Math.max(prevChunk.end,nextChunk.end);processedChunks.push({start:prevChunk.start,end:endIndex})}else{processedChunks.push(prevChunk,nextChunk)}return processedChunks}}),[]);return chunks};var defaultFindChunks=function defaultFindChunks2(_ref3){var autoEscape=_ref3.autoEscape,caseSensitive=_ref3.caseSensitive,_ref3$sanitize=_ref3.sanitize,sanitize=_ref3$sanitize===void 0?identity:_ref3$sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;textToHighlight=sanitize(textToHighlight);return searchWords.filter((function(searchWord){return searchWord})).reduce((function(chunks,searchWord){searchWord=sanitize(searchWord);if(autoEscape){searchWord=escapeRegExpFn(searchWord)}var regex=new RegExp(searchWord,caseSensitive?"g":"gi");var match2=void 0;while(match2=regex.exec(textToHighlight)){var start=match2.index;var end=regex.lastIndex;if(end>start){chunks.push({start:start,end:end})}if(match2.index==regex.lastIndex){regex.lastIndex++}}return chunks}),[])};exports2.findChunks=defaultFindChunks;var fillInChunks=exports2.fillInChunks=function fillInChunks2(_ref4){var chunksToHighlight=_ref4.chunksToHighlight,totalLength=_ref4.totalLength;var allChunks=[];var append2=function append22(start,end,highlight){if(end-start>0){allChunks.push({start:start,end:end,highlight:highlight})}};if(chunksToHighlight.length===0){append2(0,totalLength,false)}else{var lastIndex=0;chunksToHighlight.forEach((function(chunk){append2(lastIndex,chunk.start,false);append2(chunk.start,chunk.end,true);lastIndex=chunk.end}));append2(lastIndex,totalLength,false)}return allChunks};function identity(value){return value}function escapeRegExpFn(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(module2,exports,__webpack_require__){(function(process){if(process.env.NODE_ENV!=="production"){var REACT_ELEMENT_TYPE2=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103;var isValidElement2=function(object){return typeof object==="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE2};var throwOnDirectAccess=true;module2.exports=__webpack_require__(6)(isValidElement2,throwOnDirectAccess)}else{module2.exports=__webpack_require__(13)()}}).call(exports,__webpack_require__(5))},function(module2,exports){var process=module2.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e2){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e2){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e2){try{return cachedSetTimeout.call(null,fun,0)}catch(e22){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e2){try{return cachedClearTimeout.call(null,marker)}catch(e22){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;len=queue.length}currentQueue=null;draining=false;runClearTimeout(timeout)}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i]}}queue.push(new Item2(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue)}};function Item2(fun,array){this.fun=fun;this.array=array}Item2.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=true;process.env={};process.argv=[];process.version="";process.versions={};function noop3(){}process.on=noop3;process.addListener=noop3;process.once=noop3;process.off=noop3;process.removeListener=noop3;process.removeAllListeners=noop3;process.emit=noop3;process.prependListener=noop3;process.prependOnceListener=noop3;process.listeners=function(name2){return[]};process.binding=function(name2){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")};process.umask=function(){return 0}},function(module2,exports,__webpack_require__){(function(process){var emptyFunction2=__webpack_require__(7);var invariant=__webpack_require__(8);var warning2=__webpack_require__(9);var assign2=__webpack_require__(10);var ReactPropTypesSecret2=__webpack_require__(11);var checkPropTypes=__webpack_require__(12);module2.exports=function(isValidElement2,throwOnDirectAccess){var ITERATOR_SYMBOL=typeof Symbol==="function"&&Symbol.iterator;var FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if(typeof iteratorFn==="function"){return iteratorFn}}var ANONYMOUS="<<anonymous>>";var ReactPropTypes={array:createPrimitiveTypeChecker("array"),bool:createPrimitiveTypeChecker("boolean"),func:createPrimitiveTypeChecker("function"),number:createPrimitiveTypeChecker("number"),object:createPrimitiveTypeChecker("object"),string:createPrimitiveTypeChecker("string"),symbol:createPrimitiveTypeChecker("symbol"),any:createAnyTypeChecker(),arrayOf:createArrayOfTypeChecker,element:createElementTypeChecker(),instanceOf:createInstanceTypeChecker,node:createNodeChecker(),objectOf:createObjectOfTypeChecker,oneOf:createEnumTypeChecker,oneOfType:createUnionTypeChecker,shape:createShapeTypeChecker,exact:createStrictShapeTypeChecker};function is2(x2,y2){if(x2===y2){return x2!==0||1/x2===1/y2}else{return x2!==x2&&y2!==y2}}function PropTypeError(message){this.message=message;this.stack=""}PropTypeError.prototype=Error.prototype;function createChainableTypeChecker2(validate){if(process.env.NODE_ENV!=="production"){var manualPropTypeCallCache={};var manualPropTypeWarningCount=0}function checkType(isRequired,props,propName,componentName,location,propFullName,secret){componentName=componentName||ANONYMOUS;propFullName=propFullName||propName;if(secret!==ReactPropTypesSecret2){if(throwOnDirectAccess){invariant(false,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types")}else if(process.env.NODE_ENV!=="production"&&typeof console!=="undefined"){var cacheKey=componentName+":"+propName;if(!manualPropTypeCallCache[cacheKey]&&manualPropTypeWarningCount<3){warning2(false,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",propFullName,componentName);manualPropTypeCallCache[cacheKey]=true;manualPropTypeWarningCount++}}}if(props[propName]==null){if(isRequired){if(props[propName]===null){return new PropTypeError("The "+location+" `"+propFullName+"` is marked as required "+("in `"+componentName+"`, but its value is `null`."))}return new PropTypeError("The "+location+" `"+propFullName+"` is marked as required in "+("`"+componentName+"`, but its value is `undefined`."))}return null}else{return validate(props,propName,componentName,location,propFullName)}}var chainedCheckType=checkType.bind(null,false);chainedCheckType.isRequired=checkType.bind(null,true);return chainedCheckType}function createPrimitiveTypeChecker(expectedType){function validate(props,propName,componentName,location,propFullName,secret){var propValue=props[propName];var propType=getPropType(propValue);if(propType!==expectedType){var preciseType=getPreciseType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+preciseType+"` supplied to `"+componentName+"`, expected ")+("`"+expectedType+"`."))}return null}return createChainableTypeChecker2(validate)}function createAnyTypeChecker(){return createChainableTypeChecker2(emptyFunction2.thatReturnsNull)}function createArrayOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if(typeof typeChecker!=="function"){return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside arrayOf.")}var propValue=props[propName];if(!Array.isArray(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected an array."))}for(var i=0;i<propValue.length;i++){var error=typeChecker(propValue,i,componentName,location,propFullName+"["+i+"]",ReactPropTypesSecret2);if(error instanceof Error){return error}}return null}return createChainableTypeChecker2(validate)}function createElementTypeChecker(){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];if(!isValidElement2(propValue)){var propType=getPropType(propValue);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected a single ReactElement."))}return null}return createChainableTypeChecker2(validate)}function createInstanceTypeChecker(expectedClass){function validate(props,propName,componentName,location,propFullName){if(!(props[propName]instanceof expectedClass)){var expectedClassName=expectedClass.name||ANONYMOUS;var actualClassName=getClassName(props[propName]);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+actualClassName+"` supplied to `"+componentName+"`, expected ")+("instance of `"+expectedClassName+"`."))}return null}return createChainableTypeChecker2(validate)}function createEnumTypeChecker(expectedValues){if(!Array.isArray(expectedValues)){process.env.NODE_ENV!=="production"?warning2(false,"Invalid argument supplied to oneOf, expected an instance of array."):void 0;return emptyFunction2.thatReturnsNull}function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];for(var i=0;i<expectedValues.length;i++){if(is2(propValue,expectedValues[i])){return null}}var valuesString=JSON.stringify(expectedValues);return new PropTypeError("Invalid "+location+" `"+propFullName+"` of value `"+propValue+"` "+("supplied to `"+componentName+"`, expected one of "+valuesString+"."))}return createChainableTypeChecker2(validate)}function createObjectOfTypeChecker(typeChecker){function validate(props,propName,componentName,location,propFullName){if(typeof typeChecker!=="function"){return new PropTypeError("Property `"+propFullName+"` of component `"+componentName+"` has invalid PropType notation inside objectOf.")}var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type "+("`"+propType+"` supplied to `"+componentName+"`, expected an object."))}for(var key in propValue){if(propValue.hasOwnProperty(key)){var error=typeChecker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret2);if(error instanceof Error){return error}}}return null}return createChainableTypeChecker2(validate)}function createUnionTypeChecker(arrayOfTypeCheckers){if(!Array.isArray(arrayOfTypeCheckers)){process.env.NODE_ENV!=="production"?warning2(false,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0;return emptyFunction2.thatReturnsNull}for(var i=0;i<arrayOfTypeCheckers.length;i++){var checker=arrayOfTypeCheckers[i];if(typeof checker!=="function"){warning2(false,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",getPostfixForTypeWarning(checker),i);return emptyFunction2.thatReturnsNull}}function validate(props,propName,componentName,location,propFullName){for(var i2=0;i2<arrayOfTypeCheckers.length;i2++){var checker2=arrayOfTypeCheckers[i2];if(checker2(props,propName,componentName,location,propFullName,ReactPropTypesSecret2)==null){return null}}return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`."))}return createChainableTypeChecker2(validate)}function createNodeChecker(){function validate(props,propName,componentName,location,propFullName){if(!isNode2(props[propName])){return new PropTypeError("Invalid "+location+" `"+propFullName+"` supplied to "+("`"+componentName+"`, expected a ReactNode."))}return null}return createChainableTypeChecker2(validate)}function createShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."))}for(var key in shapeTypes){var checker=shapeTypes[key];if(!checker){continue}var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret2);if(error){return error}}return null}return createChainableTypeChecker2(validate)}function createStrictShapeTypeChecker(shapeTypes){function validate(props,propName,componentName,location,propFullName){var propValue=props[propName];var propType=getPropType(propValue);if(propType!=="object"){return new PropTypeError("Invalid "+location+" `"+propFullName+"` of type `"+propType+"` "+("supplied to `"+componentName+"`, expected `object`."))}var allKeys=assign2({},props[propName],shapeTypes);for(var key in allKeys){var checker=shapeTypes[key];if(!checker){return new PropTypeError("Invalid "+location+" `"+propFullName+"` key `"+key+"` supplied to `"+componentName+"`.\nBad object: "+JSON.stringify(props[propName],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(shapeTypes),null," "))}var error=checker(propValue,key,componentName,location,propFullName+"."+key,ReactPropTypesSecret2);if(error){return error}}return null}return createChainableTypeChecker2(validate)}function isNode2(propValue){switch(typeof propValue){case"number":case"string":case"undefined":return true;case"boolean":return!propValue;case"object":if(Array.isArray(propValue)){return propValue.every(isNode2)}if(propValue===null||isValidElement2(propValue)){return true}var iteratorFn=getIteratorFn(propValue);if(iteratorFn){var iterator=iteratorFn.call(propValue);var step;if(iteratorFn!==propValue.entries){while(!(step=iterator.next()).done){if(!isNode2(step.value)){return false}}}else{while(!(step=iterator.next()).done){var entry=step.value;if(entry){if(!isNode2(entry[1])){return false}}}}}else{return false}return true;default:return false}}function isSymbol2(propType,propValue){if(propType==="symbol"){return true}if(propValue["@@toStringTag"]==="Symbol"){return true}if(typeof Symbol==="function"&&propValue instanceof Symbol){return true}return false}function getPropType(propValue){var propType=typeof propValue;if(Array.isArray(propValue)){return"array"}if(propValue instanceof RegExp){return"object"}if(isSymbol2(propType,propValue)){return"symbol"}return propType}function getPreciseType(propValue){if(typeof propValue==="undefined"||propValue===null){return""+propValue}var propType=getPropType(propValue);if(propType==="object"){if(propValue instanceof Date){return"date"}else if(propValue instanceof RegExp){return"regexp"}}return propType}function getPostfixForTypeWarning(value){var type=getPreciseType(value);switch(type){case"array":case"object":return"an "+type;case"boolean":case"date":case"regexp":return"a "+type;default:return type}}function getClassName(propValue){if(!propValue.constructor||!propValue.constructor.name){return ANONYMOUS}return propValue.constructor.name}ReactPropTypes.checkPropTypes=checkPropTypes;ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes}}).call(exports,__webpack_require__(5))},function(module2,exports){function makeEmptyFunction(arg){return function(){return arg}}var emptyFunction2=function emptyFunction22(){};emptyFunction2.thatReturns=makeEmptyFunction;emptyFunction2.thatReturnsFalse=makeEmptyFunction(false);emptyFunction2.thatReturnsTrue=makeEmptyFunction(true);emptyFunction2.thatReturnsNull=makeEmptyFunction(null);emptyFunction2.thatReturnsThis=function(){return this};emptyFunction2.thatReturnsArgument=function(arg){return arg};module2.exports=emptyFunction2},function(module2,exports,__webpack_require__){(function(process){var validateFormat=function validateFormat2(format){};if(process.env.NODE_ENV!=="production"){validateFormat=function validateFormat2(format){if(format===void 0){throw new Error("invariant requires an error message argument")}}}function invariant(condition,format,a2,b2,c2,d2,e2,f2){validateFormat(format);if(!condition){var error;if(format===void 0){error=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.")}else{var args=[a2,b2,c2,d2,e2,f2];var argIndex=0;error=new Error(format.replace(/%s/g,(function(){return args[argIndex++]})));error.name="Invariant Violation"}error.framesToPop=1;throw error}}module2.exports=invariant}).call(exports,__webpack_require__(5))},function(module2,exports,__webpack_require__){(function(process){var emptyFunction2=__webpack_require__(7);var warning2=emptyFunction2;if(process.env.NODE_ENV!=="production"){var printWarning=function printWarning2(format){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}var argIndex=0;var message="Warning: "+format.replace(/%s/g,(function(){return args[argIndex++]}));if(typeof console!=="undefined"){console.error(message)}try{throw new Error(message)}catch(x2){}};warning2=function warning22(condition,format){if(format===void 0){throw new Error("`warning(condition, format, ...args)` requires a warning message argument")}if(format.indexOf("Failed Composite propType: ")===0){return}if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++){args[_key2-2]=arguments[_key2]}printWarning.apply(void 0,[format].concat(args))}}}module2.exports=warning2}).call(exports,__webpack_require__(5))},function(module2,exports){var getOwnPropertySymbols=Object.getOwnPropertySymbols;var hasOwnProperty2=Object.prototype.hasOwnProperty;var propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val===null||val===void 0){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(val)}function shouldUseNative(){try{if(!Object.assign){return false}var test1=new String("abc");test1[5]="de";if(Object.getOwnPropertyNames(test1)[0]==="5"){return false}var test2={};for(var i=0;i<10;i++){test2["_"+String.fromCharCode(i)]=i}var order2=Object.getOwnPropertyNames(test2).map((function(n2){return test2[n2]}));if(order2.join("")!=="0123456789"){return false}var test3={};"abcdefghijklmnopqrst".split("").forEach((function(letter){test3[letter]=letter}));if(Object.keys(Object.assign({},test3)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(err){return false}}module2.exports=shouldUseNative()?Object.assign:function(target,source){var from2;var to=toObject(target);var symbols;for(var s2=1;s2<arguments.length;s2++){from2=Object(arguments[s2]);for(var key in from2){if(hasOwnProperty2.call(from2,key)){to[key]=from2[key]}}if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from2);for(var i=0;i<symbols.length;i++){if(propIsEnumerable.call(from2,symbols[i])){to[symbols[i]]=from2[symbols[i]]}}}}return to}},function(module2,exports){var ReactPropTypesSecret2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";module2.exports=ReactPropTypesSecret2},function(module2,exports,__webpack_require__){(function(process){if(process.env.NODE_ENV!=="production"){var invariant=__webpack_require__(8);var warning2=__webpack_require__(9);var ReactPropTypesSecret2=__webpack_require__(11);var loggedTypeFailures={}}function checkPropTypes(typeSpecs,values,location,componentName,getStack){if(process.env.NODE_ENV!=="production"){for(var typeSpecName in typeSpecs){if(typeSpecs.hasOwnProperty(typeSpecName)){var error;try{invariant(typeof typeSpecs[typeSpecName]==="function","%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",componentName||"React class",location,typeSpecName,typeof typeSpecs[typeSpecName]);error=typeSpecs[typeSpecName](values,typeSpecName,componentName,location,null,ReactPropTypesSecret2)}catch(ex){error=ex}warning2(!error||error instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",componentName||"React class",location,typeSpecName,typeof error);if(error instanceof Error&&!(error.message in loggedTypeFailures)){loggedTypeFailures[error.message]=true;var stack=getStack?getStack():"";warning2(false,"Failed %s type: %s%s",location,error.message,stack!=null?stack:"")}}}}}module2.exports=checkPropTypes}).call(exports,__webpack_require__(5))},function(module2,exports,__webpack_require__){var emptyFunction2=__webpack_require__(7);var invariant=__webpack_require__(8);var ReactPropTypesSecret2=__webpack_require__(11);module2.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret2){return}invariant(false,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}shim.isRequired=shim;function getShim(){return shim}var ReactPropTypes={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim};ReactPropTypes.checkPropTypes=emptyFunction2;ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes}},function(module2,exports){module2.exports=React__default},function(module2,exports){var simpleIsEqual=function simpleIsEqual2(a2,b2){return a2===b2};function index2(resultFn){var isEqual3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:simpleIsEqual;var lastThis=void 0;var lastArgs=[];var lastResult=void 0;var calledOnce=false;var isNewArgEqualToLast=function isNewArgEqualToLast2(newArg,index22){return isEqual3(newArg,lastArgs[index22])};var result=function result2(){for(var _len=arguments.length,newArgs=Array(_len),_key=0;_key<_len;_key++){newArgs[_key]=arguments[_key]}if(calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)){return lastResult}calledOnce=true;lastThis=this;lastArgs=newArgs;lastResult=resultFn.apply(this,newArgs);return lastResult};return result}module2.exports=index2}])})(main);var mainExports=main.exports;const Highlighter=getDefaultExportFromCjs(mainExports);const Highlight=props=>{const{children:children,className:className="pb_highlight_kit",data:data={},highlightedText:highlightedText=["highlight"],htmlOptions:htmlOptions={},id:id="",text:text2=""}=props;const htmlProps=buildHtmlProps(htmlOptions);const highlightContent=text2||children;return jsx$1(Highlighter,{autoEscape:true,data:data,highlightClassName:classnames(globalProps(props),className),highlightTag:"mark",id:id,searchWords:highlightedText,textToHighlight:highlightContent,...htmlProps})};const Body$1=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color="",data:data={},highlightedText:highlightedText=[],highlighting:highlighting=false,htmlOptions:htmlOptions={},id:id="",status:status=null,tag:tag="div",text:text2="",variant:variant=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_body_kit",color,variant,status),globalProps(props),className);const Tag=`${tag}`;return jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[highlighting&&jsx$1(Highlight,{highlightedText:highlightedText,text:text2,children:children}),!highlighting&&(text2||children)]})};const Caption=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md",tag:tag="div",text:text2,variant:variant=null}=props;const tagOptions=["h1","h2","h3","h4","h5","h6","p","span","div","caption"];const Tag=tagOptions.includes(tag)?tag:"div";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buildCss("pb_caption_kit",size,variant,color),globalProps(props),className);return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,className:css4,id:id,children:text2||children})};const buttonClassName=props=>{const{disabled:disabled=false,fullWidth:fullWidth=false,highlight:highlight,icon:icon,loading:loading=false,type:type="inline",variant:variant="primary",size:size=null}=props;let className="pb_button_kit";className+=`${variant!==null?`_${variant}`:""}`;className+=`${type!==null?`_${type}`:""}`;className+=`${fullWidth?"_block":""}`;className+=disabled?"_disabled":"_enabled";className+=loading?"_loading":"";className+=`${size!==null?` size_${size}`:""}`;className+=`${variant==="reaction"&&!isValidEmoji(icon)?` reaction_default`:""}`;className+=`${variant==="reaction"&&highlight?` active`:""}`;return className};const Button=props=>{const{aria:aria={},children:children,className:className,count:count2,data:data={},disabled:disabled,htmlOptions:htmlOptions={},icon:icon=null,iconRight:iconRight=false,id:id,loading:loading=false,onClick:onClick,tabIndex:tabIndex,link:link=null,newWindow:newWindow=false,target:target="",text:text2,htmlType:htmlType="button",value:value,variant:variant,form:form=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buttonClassName(props),globalProps(props),className);const loadingIcon=jsx$1("div",{className:"loading-icon",children:jsx$1(Icon,{fixedWidth:true,icon:"spinner",pulse:true})});const content=jsxs("span",{className:"pb_button_content",children:[icon&&!iconRight&&jsx$1("i",{className:`pb_icon_kit far fa-${icon} fa-fw button_with_icon`}),jsx$1("span",{children:text2||children}),icon&&iconRight&&jsx$1("i",{className:`pb_icon_kit far fa-${icon} fa-fw button_with_icon_right`})]});const ifLoading=()=>{if(loading){return jsx$1(Fragment,{children:loadingIcon})}else{return content}};const getTargetAttribute=()=>{if(target&&link){return target}else if(newWindow){return"_blank"}return null};const displayButton=()=>{if(link){return jsx$1("a",{...ariaProps,...dataProps,...htmlProps,className:css4,href:link,id:id,rel:target!=="child"?"noreferrer":null,role:"link",tabIndex:tabIndex,target:getTargetAttribute(),children:ifLoading()})}else if(variant==="reaction"){return jsxs("button",{...ariaProps,...dataProps,...htmlProps,className:css4,disabled:disabled,form:form,id:id,onClick:onClick,role:"button",tabIndex:tabIndex,type:htmlType,value:value,children:[icon&&isValidEmoji(icon)&&jsxs(Flex,{align:"center",children:[jsx$1(Icon,{icon:icon}),count2&&jsx$1(Caption,{paddingLeft:"xxs",size:"xs",children:count2})]}),!isValidEmoji(icon)&&jsx$1(Icon,{icon:icon?icon:"face-smile-plus"})]})}else{return jsx$1("button",{...ariaProps,...dataProps,...htmlProps,className:css4,disabled:disabled,form:form,id:id,onClick:onClick,role:"button",tabIndex:tabIndex,type:htmlType,value:value,children:ifLoading()})}};return jsx$1(Fragment,{children:displayButton()})};const Checkbox=props=>{const{aria:aria={},checked:checked=false,children:children,className:className,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},id:id,indeterminate:indeterminate=false,name:name2="",onChange:onChange2=()=>{},tabIndex:tabIndex,text:text2="",value:value=""}=props;const checkRef=useRef(null);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_checkbox_kit",checked?"checked":null,error?"error":null,indeterminate?"indeterminate":null),globalProps(props),className);useEffect((()=>{if(checkRef.current){checkRef.current.checked=checked;checkRef.current.indeterminate=indeterminate}}),[indeterminate,checked]);const checkboxChildren=()=>{if(children)return children;else return jsx$1("input",{defaultChecked:checked,disabled:disabled,name:name2,onChange:onChange2,ref:checkRef,tabIndex:tabIndex,type:"checkbox",value:value})};return jsxs("label",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx$1(Fragment,{children:checkboxChildren()}),!indeterminate&&jsx$1("span",{className:"pb_checkbox_checkmark",children:jsx$1(Icon,{className:"check_icon",fixedWidth:true,icon:"check"})}),indeterminate&&jsx$1("span",{className:"pb_checkbox_indeterminate",children:jsx$1(Icon,{className:"indeterminate_icon",fixedWidth:true,icon:"minus"})}),jsx$1(Body$1,{className:"pb_checkbox_label",dark:dark,status:error?"negative":null,variant:null,children:text2})]})};var highchartsMore$1={exports:{}};(function(module){(function(d2){module.exports?(d2["default"]=d2,module.exports=d2):d2("undefined"!==typeof Highcharts?Highcharts:void 0)})((function(d2){function D2(b2,c2,h2,a2){b2.hasOwnProperty(c2)||(b2[c2]=a2.apply(null,h2),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c2,module:b2[c2]}})))}d2=d2?d2._modules:{};D2(d2,"Extensions/Pane.js",[d2["Core/Chart/Chart.js"],d2["Series/CenteredUtilities.js"],d2["Core/Globals.js"],d2["Core/Pointer.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2,f2){function w2(g2,k2,e3,a3,G){var m2=true,E2=e3[0],v2=e3[1],c3=Math.sqrt(Math.pow(g2-E2,2)+Math.pow(k2-v2,2));q(a3)&&q(G)&&(g2=Math.atan2(r2(k2-v2,8),r2(g2-E2,8)),G!==a3&&(m2=a3>G?g2>=a3&&g2<=Math.PI||g2<=G&&g2>=-Math.PI:g2>=a3&&g2<=r2(G,8)));return c3<=Math.ceil(e3[2]/2)&&m2}var d3=f2.addEvent,r2=f2.correctFloat,q=f2.defined,F2=f2.extend,p2=f2.merge,l2=f2.pick,e2=f2.splat;b2.prototype.collectionsWithUpdate.push("pane");f2=function(){function g2(k2,g3){this.options=this.chart=this.center=this.background=void 0;this.coll="pane";this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};this.defaultBackgroundOptions={shape:"circle",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%"};this.init(k2,g3)}g2.prototype.init=function(k2,g3){this.chart=g3;this.background=[];g3.pane.push(this);this.setOptions(k2)};g2.prototype.setOptions=function(k2){this.options=p2(this.defaultOptions,this.chart.angular?{background:{}}:void 0,k2)};g2.prototype.render=function(){var k2=this.options,g3=this.options.background,a3=this.chart.renderer;this.group||(this.group=a3.g("pane-group").attr({zIndex:k2.zIndex||0}).add());this.updateCenter();if(g3)for(g3=e2(g3),k2=Math.max(g3.length,this.background.length||0),a3=0;a3<k2;a3++)g3[a3]&&this.axis?this.renderBackground(p2(this.defaultBackgroundOptions,g3[a3]),a3):this.background[a3]&&(this.background[a3]=this.background[a3].destroy(),this.background.splice(a3,1))};g2.prototype.renderBackground=function(g3,e3){var k2="animate",m2={class:"highcharts-pane "+(g3.className||"")};this.chart.styledMode||F2(m2,{fill:g3.backgroundColor,stroke:g3.borderColor,"stroke-width":g3.borderWidth});this.background[e3]||(this.background[e3]=this.chart.renderer.path().add(this.group),k2="attr");this.background[e3][k2]({d:this.axis.getPlotBandPath(g3.from,g3.to,g3)}).attr(m2)};g2.prototype.updateCenter=function(g3){this.center=(g3||this.axis||{}).center=c2.getCenter.call(this)};g2.prototype.update=function(g3,e3){p2(true,this.options,g3);this.setOptions(this.options);this.render();this.chart.axes.forEach((function(g4){g4.pane===this&&(g4.pane=null,g4.update({},e3))}),this)};return g2}();b2.prototype.getHoverPane=function(g2){var e3=this,m2;g2&&e3.pane.forEach((function(k2){w2(g2.chartX-e3.plotLeft,g2.chartY-e3.plotTop,k2.center)&&(m2=k2)}));return m2};d3(b2,"afterIsInsidePlot",(function(g2){if(this.polar){if(g2.options.inverted){var e3=[g2.y,g2.x];g2.x=e3[0];g2.y=e3[1]}g2.isInsidePlot=this.pane.some((function(e4){return w2(g2.x,g2.y,e4.center,e4.axis&&e4.axis.normalizedStartAngleRad,e4.axis&&e4.axis.normalizedEndAngleRad)}))}}));d3(a2,"beforeGetHoverData",(function(g2){var e3=this.chart;e3.polar?(e3.hoverPane=e3.getHoverPane(g2),g2.filter=function(k2){return k2.visible&&!(!g2.shared&&k2.directTouch)&&l2(k2.options.enableMouseTracking,true)&&(!e3.hoverPane||k2.xAxis.pane===e3.hoverPane)}):e3.hoverPane=void 0}));d3(a2,"afterGetHoverData",(function(g2){var e3=this.chart;g2.hoverPoint&&g2.hoverPoint.plotX&&g2.hoverPoint.plotY&&e3.hoverPane&&!w2(g2.hoverPoint.plotX,g2.hoverPoint.plotY,e3.hoverPane.center)&&(g2.hoverPoint=void 0)}));h2.Pane=f2;return h2.Pane}));D2(d2,"Series/AreaRange/AreaRangePoint.js",[d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2){var h2=this&&this.__extends||function(){var a3=function(c3,b3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,c4){a4.__proto__=c4}||function(a4,c4){for(var b4 in c4)c4.hasOwnProperty(b4)&&(a4[b4]=c4[b4])};return a3(c3,b3)};return function(c3,b3){function f3(){this.constructor=c3}a3(c3,b3);c3.prototype=null===b3?Object.create(b3):(f3.prototype=b3.prototype,new f3)}}();b2=b2.seriesTypes.area.prototype;var a2=b2.pointClass.prototype,f2=c2.defined,d3=c2.isNumber;return function(c3){function b3(){var a3=null!==c3&&c3.apply(this,arguments)||this;a3.high=void 0;a3.low=void 0;a3.options=void 0;a3.plotX=void 0;a3.series=void 0;return a3}h2(b3,c3);b3.prototype.setState=function(){var c4=this.state,b4=this.series,h3=b4.chart.polar;f2(this.plotHigh)||(this.plotHigh=b4.yAxis.toPixels(this.high,true));f2(this.plotLow)||(this.plotLow=this.plotY=b4.yAxis.toPixels(this.low,true));b4.stateMarkerGraphic&&(b4.lowerStateMarkerGraphic=b4.stateMarkerGraphic,b4.stateMarkerGraphic=b4.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;h3&&d3(this.plotHighX)&&(this.plotX=this.plotHighX);a2.setState.apply(this,arguments);this.state=c4;this.plotY=this.plotLow;this.graphic=this.graphics&&this.graphics[0];h3&&d3(this.plotLowX)&&(this.plotX=this.plotLowX);b4.stateMarkerGraphic&&(b4.upperStateMarkerGraphic=b4.stateMarkerGraphic,b4.stateMarkerGraphic=b4.lowerStateMarkerGraphic,b4.lowerStateMarkerGraphic=void 0);a2.setState.apply(this,arguments)};b3.prototype.haloPath=function(){var b4=this.series.chart.polar,c4=[];this.plotY=this.plotLow;b4&&d3(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(c4=a2.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b4&&d3(this.plotHighX)&&(this.plotX=this.plotHighX);this.isTopInside&&(c4=c4.concat(a2.haloPath.apply(this,arguments)));return c4};b3.prototype.isValid=function(){return d3(this.low)&&d3(this.high)};return b3}(b2.pointClass)}));D2(d2,"Series/AreaRange/AreaRangeSeries.js",[d2["Series/AreaRange/AreaRangePoint.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){var f2=this&&this.__extends||function(){var g3=function(e3,k3){g3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g4,e4){g4.__proto__=e4}||function(g4,e4){for(var k4 in e4)e4.hasOwnProperty(k4)&&(g4[k4]=e4[k4])};return g3(e3,k3)};return function(e3,k3){function m3(){this.constructor=e3}g3(e3,k3);e3.prototype=null===k3?Object.create(k3):(m3.prototype=k3.prototype,new m3)}}();c2=c2.noop;var d3=h2.seriesTypes,n2=d3.area,r2=d3.area.prototype,q=d3.column.prototype;d3=a2.addEvent;var F2=a2.defined,p2=a2.extend,l2=a2.isArray,e2=a2.isNumber,g2=a2.pick,k2=a2.merge,m2={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:true,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};a2=function(e3){function a3(){var g3=null!==e3&&e3.apply(this,arguments)||this;g3.data=void 0;g3.options=void 0;g3.points=void 0;g3.lowerStateMarkerGraphic=void 0;g3.xAxis=void 0;return g3}f2(a3,e3);a3.prototype.toYData=function(g3){return[g3.low,g3.high]};a3.prototype.highToXY=function(g3){var e4=this.chart,k3=this.xAxis.postTranslate(g3.rectPlotX||0,this.yAxis.len-(g3.plotHigh||0));g3.plotHighX=k3.x-e4.plotLeft;g3.plotHigh=k3.y-e4.plotTop;g3.plotLowX=g3.plotX};a3.prototype.getGraphPath=function(e4){var k3=[],a4=[],m3=r2.getGraphPath,b3=this.options,c3=this.chart.polar,x2=c3&&false!==b3.connectEnds,B=b3.connectNulls,y2,f3=b3.step;e4=e4||this.points;for(y2=e4.length;y2--;){var t2=e4[y2];var G=c3?{plotX:t2.rectPlotX,plotY:t2.yBottom,doCurve:false}:{plotX:t2.plotX,plotY:t2.plotY,doCurve:false};t2.isNull||x2||B||e4[y2+1]&&!e4[y2+1].isNull||a4.push(G);var l3={polarPlotY:t2.polarPlotY,rectPlotX:t2.rectPlotX,yBottom:t2.yBottom,plotX:g2(t2.plotHighX,t2.plotX),plotY:t2.plotHigh,isNull:t2.isNull};a4.push(l3);k3.push(l3);t2.isNull||x2||B||e4[y2-1]&&!e4[y2-1].isNull||a4.push(G)}e4=m3.call(this,e4);f3&&(true===f3&&(f3="left"),b3.step={left:"right",center:"center",right:"left"}[f3]);k3=m3.call(this,k3);a4=m3.call(this,a4);b3.step=f3;b3=[].concat(e4,k3);!this.chart.polar&&a4[0]&&"M"===a4[0][0]&&(a4[0]=["L",a4[0][1],a4[0][2]]);this.graphPath=b3;this.areaPath=e4.concat(a4);b3.isArea=true;b3.xMap=e4.xMap;this.areaPath.xMap=e4.xMap;return b3};a3.prototype.drawDataLabels=function(){var e4=this.points,g3=e4.length,k3=[],a4=this.options.dataLabels,m3=this.chart.inverted,b3,x2;if(a4){if(l2(a4)){var c3=a4[0]||{enabled:false};var y2=a4[1]||{enabled:false}}else c3=p2({},a4),c3.x=a4.xHigh,c3.y=a4.yHigh,y2=p2({},a4),y2.x=a4.xLow,y2.y=a4.yLow;if(c3.enabled||this._hasPointLabels){for(b3=g3;b3--;)if(x2=e4[b3]){var f3=x2.plotHigh;f3=void 0===f3?0:f3;var t2=x2.plotLow;t2=void 0===t2?0:t2;t2=c3.inside?f3<t2:f3>t2;x2.y=x2.high;x2._plotY=x2.plotY;x2.plotY=f3;k3[b3]=x2.dataLabel;x2.dataLabel=x2.dataLabelUpper;x2.below=t2;m3?c3.align||(c3.align=t2?"right":"left"):c3.verticalAlign||(c3.verticalAlign=t2?"top":"bottom")}this.options.dataLabels=c3;r2.drawDataLabels&&r2.drawDataLabels.apply(this,arguments);for(b3=g3;b3--;)if(x2=e4[b3])x2.dataLabelUpper=x2.dataLabel,x2.dataLabel=k3[b3],delete x2.dataLabels,x2.y=x2.low,x2.plotY=x2._plotY}if(y2.enabled||this._hasPointLabels){for(b3=g3;b3--;)if(x2=e4[b3])k3=x2.plotHigh,f3=void 0===k3?0:k3,k3=x2.plotLow,t2=void 0===k3?0:k3,t2=y2.inside?f3<t2:f3>t2,x2.below=!t2,m3?y2.align||(y2.align=t2?"left":"right"):y2.verticalAlign||(y2.verticalAlign=t2?"bottom":"top");this.options.dataLabels=y2;r2.drawDataLabels&&r2.drawDataLabels.apply(this,arguments)}if(c3.enabled){for(b3=g3;b3--;)if(x2=e4[b3])x2.dataLabels=[x2.dataLabelUpper,x2.dataLabel].filter((function(e5){return!!e5}))}this.options.dataLabels=a4}};a3.prototype.alignDataLabel=function(){q.alignDataLabel.apply(this,arguments)};a3.prototype.drawPoints=function(){var e4=this.points.length,k3;r2.drawPoints.apply(this,arguments);for(k3=0;k3<e4;){var a4=this.points[k3];a4.graphics=a4.graphics||[];a4.origProps={plotY:a4.plotY,plotX:a4.plotX,isInside:a4.isInside,negative:a4.negative,zone:a4.zone,y:a4.y};if(a4.graphic||a4.graphics[0])a4.graphics[0]=a4.graphic;a4.graphic=a4.graphics[1];a4.plotY=a4.plotHigh;F2(a4.plotHighX)&&(a4.plotX=a4.plotHighX);a4.y=g2(a4.high,a4.origProps.y);a4.negative=a4.y<(this.options.threshold||0);this.zones.length&&(a4.zone=a4.getZone());this.chart.polar||(a4.isInside=a4.isTopInside="undefined"!==typeof a4.plotY&&0<=a4.plotY&&a4.plotY<=this.yAxis.len&&0<=a4.plotX&&a4.plotX<=this.xAxis.len);k3++}r2.drawPoints.apply(this,arguments);for(k3=0;k3<e4;){a4=this.points[k3];a4.graphics=a4.graphics||[];if(a4.graphic||a4.graphics[1])a4.graphics[1]=a4.graphic;a4.graphic=a4.graphics[0];a4.origProps&&(p2(a4,a4.origProps),delete a4.origProps);k3++}};a3.defaultOptions=k2(n2.defaultOptions,m2);return a3}(n2);d3(a2,"afterTranslate",(function(){var g3=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach((function(a3){var k3=a3.high,m3=a3.plotY;a3.isNull?a3.plotY=void 0:(a3.plotLow=m3,a3.plotHigh=e2(k3)?g3.yAxis.translate(g3.dataModify?g3.dataModify.modifyValue(k3):k3,false,true,void 0,true):void 0,g3.dataModify&&(a3.yBottom=a3.plotHigh))}))}),{order:0});d3(a2,"afterTranslate",(function(){var e3=this;this.points.forEach((function(g3){if(e3.chart.polar)e3.highToXY(g3),g3.plotLow=g3.plotY,g3.tooltipPos=[((g3.plotHighX||0)+(g3.plotLowX||0))/2,((g3.plotHigh||0)+(g3.plotLow||0))/2];else{var a3=g3.pos(false,g3.plotLow),k3=g3.pos(false,g3.plotHigh);a3&&k3&&(a3[0]=(a3[0]+k3[0])/2,a3[1]=(a3[1]+k3[1])/2);g3.tooltipPos=a3}}))}),{order:3});p2(a2.prototype,{deferTranslatePolar:true,pointArrayMap:["low","high"],pointClass:b2,pointValKey:"low",setStackedPoints:c2});h2.registerSeriesType("arearange",a2);return a2}));D2(d2,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[d2["Series/AreaRange/AreaRangeSeries.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var e2 in b4)b4.hasOwnProperty(e2)&&(a4[e2]=b4[e2])};return a3(b3,c3)};return function(b3,c3){function f3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f3.prototype=c3.prototype,new f3)}}(),f2=c2.seriesTypes.spline.prototype,d3=h2.merge;h2=h2.extend;var n2=function(c3){function f3(){var a3=null!==c3&&c3.apply(this,arguments)||this;a3.options=void 0;a3.data=void 0;a3.points=void 0;return a3}a2(f3,c3);f3.defaultOptions=d3(b2.defaultOptions);return f3}(b2);h2(n2.prototype,{getPointSpline:f2.getPointSpline});c2.registerSeriesType("areasplinerange",n2);return n2}));D2(d2,"Series/BoxPlot/BoxPlotSeries.js",[d2["Series/Column/ColumnSeries.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){var f2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e2){a4.__proto__=e2}||function(a4,e2){for(var g2 in e2)e2.hasOwnProperty(g2)&&(a4[g2]=e2[g2])};return a3(b3,c3)};return function(b3,c3){function f3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f3.prototype=c3.prototype,new f3)}}();c2=c2.noop;var d3=a2.extend,n2=a2.merge,r2=a2.pick;a2=function(a3){function c3(){var b3=null!==a3&&a3.apply(this,arguments)||this;b3.data=void 0;b3.options=void 0;b3.points=void 0;return b3}f2(c3,a3);c3.prototype.pointAttribs=function(){return{}};c3.prototype.translate=function(){var b3=this.yAxis,c4=this.pointArrayMap;a3.prototype.translate.apply(this);this.points.forEach((function(a4){c4.forEach((function(g2){null!==a4[g2]&&(a4[g2+"Plot"]=b3.translate(a4[g2],0,1,0,1))}));a4.plotHigh=a4.highPlot}))};c3.prototype.drawPoints=function(){var a4=this,b3=a4.options,e2=a4.chart,g2=e2.renderer,k2,c4,f3,h3,d4,E2,v2=0,n3,I,K,x2,B=false!==a4.doQuartiles,y2,H2=a4.options.whiskerLength;a4.points.forEach((function(m2){var t2=m2.graphic,G=t2?"animate":"attr",N=m2.shapeArgs,L2={},l2={},w2={},u2={},C2=m2.color||a4.color;"undefined"!==typeof m2.plotY&&(n3=Math.round(N.width),I=Math.floor(N.x),K=I+n3,x2=Math.round(n3/2),k2=Math.floor(B?m2.q1Plot:m2.lowPlot),c4=Math.floor(B?m2.q3Plot:m2.lowPlot),f3=Math.floor(m2.highPlot),h3=Math.floor(m2.lowPlot),t2||(m2.graphic=t2=g2.g("point").add(a4.group),m2.stem=g2.path().addClass("highcharts-boxplot-stem").add(t2),H2&&(m2.whiskers=g2.path().addClass("highcharts-boxplot-whisker").add(t2)),B&&(m2.box=g2.path(void 0).addClass("highcharts-boxplot-box").add(t2)),m2.medianShape=g2.path(void 0).addClass("highcharts-boxplot-median").add(t2)),e2.styledMode||(l2.stroke=m2.stemColor||b3.stemColor||C2,l2["stroke-width"]=r2(m2.stemWidth,b3.stemWidth,b3.lineWidth),l2.dashstyle=m2.stemDashStyle||b3.stemDashStyle||b3.dashStyle,m2.stem.attr(l2),H2&&(w2.stroke=m2.whiskerColor||b3.whiskerColor||C2,w2["stroke-width"]=r2(m2.whiskerWidth,b3.whiskerWidth,b3.lineWidth),w2.dashstyle=m2.whiskerDashStyle||b3.whiskerDashStyle||b3.dashStyle,m2.whiskers.attr(w2)),B&&(L2.fill=m2.fillColor||b3.fillColor||C2,L2.stroke=b3.lineColor||C2,L2["stroke-width"]=b3.lineWidth||0,L2.dashstyle=m2.boxDashStyle||b3.boxDashStyle||b3.dashStyle,m2.box.attr(L2)),u2.stroke=m2.medianColor||b3.medianColor||C2,u2["stroke-width"]=r2(m2.medianWidth,b3.medianWidth,b3.lineWidth),u2.dashstyle=m2.medianDashStyle||b3.medianDashStyle||b3.dashStyle,m2.medianShape.attr(u2)),E2=m2.stem.strokeWidth()%2/2,v2=I+x2+E2,t2=[["M",v2,c4],["L",v2,f3],["M",v2,k2],["L",v2,h3]],m2.stem[G]({d:t2}),B&&(E2=m2.box.strokeWidth()%2/2,k2=Math.floor(k2)+E2,c4=Math.floor(c4)+E2,I+=E2,K+=E2,t2=[["M",I,c4],["L",I,k2],["L",K,k2],["L",K,c4],["L",I,c4],["Z"]],m2.box[G]({d:t2})),H2&&(E2=m2.whiskers.strokeWidth()%2/2,f3+=E2,h3+=E2,y2=/%$/.test(H2)?x2*parseFloat(H2)/100:H2/2,t2=[["M",v2-y2,f3],["L",v2+y2,f3],["M",v2-y2,h3],["L",v2+y2,h3]],m2.whiskers[G]({d:t2})),d4=Math.round(m2.medianPlot),E2=m2.medianShape.strokeWidth()%2/2,d4+=E2,t2=[["M",I,d4],["L",K,d4]],m2.medianShape[G]({d:t2}))}))};c3.prototype.toYData=function(a4){return[a4.low,a4.q1,a4.median,a4.q3,a4.high]};c3.defaultOptions=n2(b2.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});return c3}(b2);d3(a2.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:c2,setStackedPoints:c2});h2.registerSeriesType("boxplot",a2);return a2}));D2(d2,"Series/Bubble/BubbleLegendDefaults.js",[],(function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:false,labels:{className:void 0,allowOverlap:false,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",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:false,zIndex:1,zThreshold:0}}));D2(d2,"Series/Bubble/BubbleLegendItem.js",[d2["Core/Color/Color.js"],d2["Core/FormatUtilities.js"],d2["Core/Globals.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){var f2=b2.parse,d3=h2.noop,n2=a2.arrayMax,r2=a2.arrayMin,q=a2.isNumber,F2=a2.merge,p2=a2.pick,l2=a2.stableSort;b2=function(){function a3(a4,e2){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0;this.setState=d3;this.init(a4,e2)}a3.prototype.init=function(a4,e2){this.options=a4;this.visible=true;this.chart=e2.chart;this.legend=e2};a3.prototype.addToLegend=function(a4){a4.splice(this.options.legendIndex,0,this)};a3.prototype.drawLegendSymbol=function(a4){var g2=this.chart,e2=p2(a4.options.itemDistance,20),b3=this.legendItem||{},c3=this.options,f3=c3.ranges,h3=c3.connectorDistance;this.fontMetrics=g2.renderer.fontMetrics(c3.labels.style.fontSize);f3&&f3.length&&q(f3[0].value)?(l2(f3,(function(a5,g3){return g3.value-a5.value})),this.ranges=f3,this.setOptions(),this.render(),a4=this.getMaxLabelSize(),f3=this.ranges[0].radius,g2=2*f3,h3=h3-f3+a4.width,h3=0<h3?h3:0,this.maxLabel=a4,this.movementX="left"===c3.labels.align?h3:0,b3.labelWidth=g2+h3+e2,b3.labelHeight=g2+this.fontMetrics.h/2):a4.options.bubbleLegend.autoRanges=true};a3.prototype.setOptions=function(){var a4=this.ranges,e2=this.options,b3=this.chart.series[e2.seriesIndex],c3=this.legend.baseline,h3={zIndex:e2.zIndex,"stroke-width":e2.borderWidth},d4={zIndex:e2.zIndex,"stroke-width":e2.connectorWidth},E2={align:this.legend.options.rtl||"left"===e2.labels.align?"right":"left",zIndex:e2.zIndex},v2=b3.options.marker.fillOpacity,l3=this.chart.styledMode;a4.forEach((function(g2,k2){l3||(h3.stroke=p2(g2.borderColor,e2.borderColor,b3.color),h3.fill=p2(g2.color,e2.color,1!==v2?f2(b3.color).setOpacity(v2).get("rgba"):b3.color),d4.stroke=p2(g2.connectorColor,e2.connectorColor,b3.color));a4[k2].radius=this.getRangeRadius(g2.value);a4[k2]=F2(a4[k2],{center:a4[0].radius-a4[k2].radius+c3});l3||F2(true,a4[k2],{bubbleAttribs:F2(h3),connectorAttribs:F2(d4),labelAttribs:E2})}),this)};a3.prototype.getRangeRadius=function(a4){var e2=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e2.ranges[e2.ranges.length-1].value,e2.ranges[0].value,e2.minSize,e2.maxSize,a4)};a3.prototype.render=function(){var a4=this.legendItem||{},e2=this.chart.renderer,b3=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});a4.symbol=e2.g("bubble-legend");a4.label=e2.g("bubble-legend-item");a4.symbol.translateX=0;e2=a4.symbol.translateY=0;for(var c3=this.ranges;e2<c3.length;e2++){var f3=c3[e2];f3.value>=b3&&this.renderRange(f3)}a4.symbol.add(a4.label);a4.label.add(a4.group);this.hideOverlappingLabels()};a3.prototype.renderRange=function(a4){var e2=this.options,g2=e2.labels,b3=this.chart,c3=b3.series[e2.seriesIndex],f3=b3.renderer,h3=this.symbols;b3=h3.labels;var d4=a4.center,l3=Math.abs(a4.radius),I=e2.connectorDistance||0,K=g2.align,x2=e2.connectorWidth,B=this.ranges[0].radius||0,y2=d4-l3-e2.borderWidth/2+x2/2,H2=this.fontMetrics;H2=H2.f/2-(H2.h-H2.f)/2;var t2=f3.styledMode;I=this.legend.options.rtl||"left"===K?-I:I;"center"===K&&(I=0,e2.connectorDistance=0,a4.labelAttribs.align="center");K=y2+e2.labels.y;var n3=B+I+e2.labels.x;h3.bubbleItems.push(f3.circle(B,d4+((y2%1?1:.5)-(x2%2?0:.5)),l3).attr(t2?{}:a4.bubbleAttribs).addClass((t2?"highcharts-color-"+c3.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e2.className||"")).add(this.legendItem.symbol));h3.connectors.push(f3.path(f3.crispLine([["M",B,y2],["L",B+I,y2]],e2.connectorWidth)).attr(t2?{}:a4.connectorAttribs).addClass((t2?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e2.connectorClassName||"")).add(this.legendItem.symbol));a4=f3.text(this.formatLabel(a4),n3,K+H2).attr(t2?{}:a4.labelAttribs).css(t2?{}:g2.style).addClass("highcharts-bubble-legend-labels "+(e2.labels.className||"")).add(this.legendItem.symbol);b3.push(a4);a4.placed=true;a4.alignAttr={x:n3,y:K+H2}};a3.prototype.getMaxLabelSize=function(){var a4,e2;this.symbols.labels.forEach((function(g2){e2=g2.getBBox(true);a4=a4?e2.width>a4.width?e2:a4:e2}));return a4||{}};a3.prototype.formatLabel=function(a4){var e2=this.options,g2=e2.labels.formatter;e2=e2.labels.format;var b3=this.chart.numberFormatter;return e2?c2.format(e2,a4):g2?g2.call(a4):b3(a4.value,1)};a3.prototype.hideOverlappingLabels=function(){var a4=this.chart,e2=this.symbols;!this.options.labels.allowOverlap&&e2&&(a4.hideOverlappingLabels(e2.labels),e2.labels.forEach((function(a5,g2){a5.newOpacity?a5.newOpacity!==a5.oldOpacity&&e2.connectors[g2].show():e2.connectors[g2].hide()})))};a3.prototype.getRanges=function(){var a4=this.legend.bubbleLegend,e2=a4.options.ranges,b3,c3=Number.MAX_VALUE,f3=-Number.MAX_VALUE;a4.chart.series.forEach((function(a5){a5.isBubble&&!a5.ignoreSeries&&(b3=a5.zData.filter(q),b3.length&&(c3=p2(a5.options.zMin,Math.min(c3,Math.max(r2(b3),false===a5.options.displayNegative?a5.options.zThreshold:-Number.MAX_VALUE))),f3=p2(a5.options.zMax,Math.max(f3,n2(b3)))))}));var h3=c3===f3?[{value:f3}]:[{value:c3},{value:(c3+f3)/2},{value:f3,autoRanges:true}];e2.length&&e2[0].radius&&h3.reverse();h3.forEach((function(a5,g2){e2&&e2[g2]&&(h3[g2]=F2(e2[g2],a5))}));return h3};a3.prototype.predictBubbleSizes=function(){var a4=this.chart,e2=this.fontMetrics,b3=a4.legend.options,c3=b3.floating,f3=(b3="horizontal"===b3.layout)?a4.legend.lastLineHeight:0,h3=a4.plotSizeX,d4=a4.plotSizeY,v2=a4.series[this.options.seriesIndex],l3=v2.getPxExtremes();a4=Math.ceil(l3.minPxSize);l3=Math.ceil(l3.maxPxSize);var I=Math.min(d4,h3);v2=v2.options.maxSize;if(c3||!/%$/.test(v2))e2=l3;else if(v2=parseFloat(v2),e2=(I+f3-e2.h/2)*v2/100/(v2/100+1),b3&&d4-e2>=h3||!b3&&h3-e2>=d4)e2=l3;return[a4,Math.ceil(e2)]};a3.prototype.updateRanges=function(a4,e2){var b3=this.legend.options.bubbleLegend;b3.minSize=a4;b3.maxSize=e2;b3.ranges=this.getRanges()};a3.prototype.correctSizes=function(){var a4=this.legend,e2=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(e2.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e2.maxPxSize),a4.render())};return a3}();return b2}));D2(d2,"Series/Bubble/BubbleLegendComposition.js",[d2["Series/Bubble/BubbleLegendDefaults.js"],d2["Series/Bubble/BubbleLegendItem.js"],d2["Core/Defaults.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){function f2(a3,b3,g3){var c3=this.legend,m2=0<=d3(this),f3;if(c3&&c3.options.enabled&&c3.bubbleLegend&&c3.options.bubbleLegend.autoRanges&&m2){var k3=c3.bubbleLegend.options;m2=c3.bubbleLegend.predictBubbleSizes();c3.bubbleLegend.updateRanges(m2[0],m2[1]);k3.placed||(c3.group.placed=false,c3.allItems.forEach((function(a4){f3=a4.legendItem||{};f3.group&&(f3.group.translateY=null)})));c3.render();this.getMargins();this.axes.forEach((function(a4){a4.visible&&a4.render();k3.placed||(a4.setScale(),a4.updateNames(),e2(a4.ticks,(function(a5){a5.isNew=true;a5.isNewLabel=true})))}));k3.placed=true;this.getMargins();a3.call(this,b3,g3);c3.bubbleLegend.correctSizes();F2(c3,n2(c3))}else a3.call(this,b3,g3),c3&&c3.options.enabled&&c3.bubbleLegend&&(c3.render(),F2(c3,n2(c3)))}function d3(a3){a3=a3.series;for(var e3=0;e3<a3.length;){if(a3[e3]&&a3[e3].isBubble&&a3[e3].visible&&a3[e3].zData.length)return e3;e3++}return-1}function n2(a3){a3=a3.allItems;var e3=[],b3=a3.length,g3,c3=0;for(g3=0;g3<b3;g3++){var f3=a3[g3].legendItem||{};var k3=(a3[g3+1]||{}).legendItem||{};f3.labelHeight&&(a3[g3].itemHeight=f3.labelHeight);if(a3[g3]===a3[b3-1]||f3.y!==k3.y){e3.push({height:0});f3=e3[e3.length-1];for(c3;c3<=g3;c3++)a3[c3].itemHeight>f3.height&&(f3.height=a3[c3].itemHeight);f3.step=g3}}return e3}function r2(a3){var e3=this.bubbleLegend,b3=this.options,g3=b3.bubbleLegend,f3=d3(this.chart);e3&&e3.ranges&&e3.ranges.length&&(g3.ranges.length&&(g3.autoRanges=!!g3.ranges[0].autoRanges),this.destroyItem(e3));0<=f3&&b3.enabled&&g3.enabled&&(g3.seriesIndex=f3,this.bubbleLegend=new c2(g3,this),this.bubbleLegend.addToLegend(a3.allItems))}function q(){var a3=this.chart,e3=this.visible,b3=this.chart.legend;b3&&b3.bubbleLegend&&(this.visible=!e3,this.ignoreSeries=e3,a3=0<=d3(a3),b3.bubbleLegend.visible!==a3&&(b3.update({bubbleLegend:{enabled:a3}}),b3.bubbleLegend.visible=a3),this.visible=e3)}function F2(a3,e3){var b3=a3.options.rtl,g3,c3,f3,k3,m2=0;a3.allItems.forEach((function(a4,x2){k3=a4.legendItem||{};if(k3.group){g3=k3.group.translateX||0;c3=k3.y||0;if((f3=a4.movementX)||b3&&a4.ranges)f3=b3?g3-a4.options.maxSize/2:g3+f3,k3.group.attr({translateX:f3});x2>e3[m2].step&&m2++;k3.group.attr({translateY:Math.round(c3+e3[m2].height/2)});k3.y=c3+e3[m2].height/2}}))}var p2=h2.setOptions,l2=a2.addEvent,e2=a2.objectEach,g2=a2.wrap,k2=[];return{compose:function(a3,e3,c3){-1===k2.indexOf(a3)&&(k2.push(a3),p2({legend:{bubbleLegend:b2}}),g2(a3.prototype,"drawChartBox",f2));-1===k2.indexOf(e3)&&(k2.push(e3),l2(e3,"afterGetAllItems",r2));-1===k2.indexOf(c3)&&(k2.push(c3),l2(c3,"legendItemClick",q))}}}));D2(d2,"Series/Bubble/BubblePoint.js",[d2["Core/Series/Point.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function f2(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f2.prototype=c3.prototype,new f2)}}();h2=h2.extend;c2=function(c3){function f2(){var a3=null!==c3&&c3.apply(this,arguments)||this;a3.options=void 0;a3.series=void 0;return a3}a2(f2,c3);f2.prototype.haloPath=function(a3){return b2.prototype.haloPath.call(this,0===a3?0:(this.marker?this.marker.radius||0:0)+a3)};return f2}(c2.seriesTypes.scatter.prototype.pointClass);h2(c2.prototype,{ttBelow:false});return c2}));D2(d2,"Series/Bubble/BubbleSeries.js",[d2["Series/Bubble/BubbleLegendComposition.js"],d2["Series/Bubble/BubblePoint.js"],d2["Core/Color/Color.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2,f2,d3){function n2(){var a3=this,e3=this.len,b3=this.chart,g3=this.isXAxis,c3=g3?"xData":"yData",f3=this.min,k3=this.max-f3,m3=0,d4=e3,h3=e3/k3,l3;this.series.forEach((function(e4){if(e4.bubblePadding&&(e4.visible||!b3.options.chart.ignoreHiddenSeries)){l3=a3.allowZoomOutside=true;var x2=e4[c3];g3&&((e4.onPoint||e4).getRadii(0,0,e4),e4.onPoint&&(e4.radii=e4.onPoint.radii));if(0<k3){for(var B=x2.length;B--;)if(N(x2[B])&&a3.dataMin<=x2[B]&&x2[B]<=a3.max){var y2=e4.radii&&e4.radii[B]||0;m3=Math.min((x2[B]-f3)*h3-y2,m3);d4=Math.max((x2[B]-f3)*h3+y2,d4)}}}}));l3&&0<k3&&!this.logarithmic&&(d4-=e3,h3*=(e3+Math.max(0,m3)-Math.min(d4,e3))/e3,[["min","userMin",m3],["max","userMax",d4]].forEach((function(e4){"undefined"===typeof L2(a3.options[e4[0]],a3[e4[1]])&&(a3[e4[0]]+=e4[2]/h3)})))}var w2=this&&this.__extends||function(){var a3=function(e3,b3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e4){a4.__proto__=e4}||function(a4,e4){for(var b4 in e4)e4.hasOwnProperty(b4)&&(a4[b4]=e4[b4])};return a3(e3,b3)};return function(e3,b3){function g3(){this.constructor=e3}a3(e3,b3);e3.prototype=null===b3?Object.create(b3):(g3.prototype=b3.prototype,new g3)}}(),q=h2.parse;h2=a2.noop;var F2=f2.series,p2=f2.seriesTypes;a2=p2.column.prototype;var l2=p2.scatter;p2=d3.addEvent;var e2=d3.arrayMax,g2=d3.arrayMin,k2=d3.clamp,m2=d3.extend,N=d3.isNumber,G=d3.merge,L2=d3.pick,E2=[];d3=function(a3){function c3(){var e3=null!==a3&&a3.apply(this,arguments)||this;e3.data=void 0;e3.maxPxSize=void 0;e3.minPxSize=void 0;e3.options=void 0;e3.points=void 0;e3.radii=void 0;e3.yData=void 0;e3.zData=void 0;return e3}w2(c3,a3);c3.compose=function(a4,e3,c4,g3){b2.compose(e3,c4,g3);-1===E2.indexOf(a4)&&(E2.push(a4),a4.prototype.beforePadding=n2)};c3.prototype.animate=function(a4){!a4&&this.points.length<this.options.animationLimit&&this.points.forEach((function(a5){var e3=a5.graphic;e3&&e3.width&&(this.hasRendered||e3.attr({x:a5.plotX,y:a5.plotY,width:1,height:1}),e3.animate(this.markerAttribs(a5),this.options.animation))}),this)};c3.prototype.getRadii=function(){var a4=this,e3=this.zData,b3=this.yData,c4=[],g3=this.chart.bubbleZExtremes;var f3=this.getPxExtremes();var k3=f3.minPxSize,m3=f3.maxPxSize;if(!g3){var d4=Number.MAX_VALUE,h3=-Number.MAX_VALUE,l3;this.chart.series.forEach((function(e4){e4.bubblePadding&&(e4.visible||!a4.chart.options.chart.ignoreHiddenSeries)&&(e4=(e4.onPoint||e4).getZExtremes())&&(d4=Math.min(d4||e4.zMin,e4.zMin),h3=Math.max(h3||e4.zMax,e4.zMax),l3=true)}));l3?(g3={zMin:d4,zMax:h3},this.chart.bubbleZExtremes=g3):g3={zMin:0,zMax:0}}var n3=0;for(f3=e3.length;n3<f3;n3++){var v2=e3[n3];c4.push(this.getRadius(g3.zMin,g3.zMax,k3,m3,v2,b3&&b3[n3]))}this.radii=c4};c3.prototype.getRadius=function(a4,e3,b3,c4,g3,f3){var x2=this.options,k3="width"!==x2.sizeBy,m3=x2.zThreshold,d4=e3-a4,h3=.5;if(null===f3||null===g3)return null;if(N(g3)){x2.sizeByAbsoluteValue&&(g3=Math.abs(g3-m3),d4=Math.max(e3-m3,Math.abs(a4-m3)),a4=0);if(g3<a4)return b3/2-1;0<d4&&(h3=(g3-a4)/d4)}k3&&0<=h3&&(h3=Math.sqrt(h3));return Math.ceil(b3+h3*(c4-b3))/2};c3.prototype.hasData=function(){return!!this.processedXData.length};c3.prototype.pointAttribs=function(a4,e3){var b3=this.options.marker.fillOpacity;a4=F2.prototype.pointAttribs.call(this,a4,e3);1!==b3&&(a4.fill=q(a4.fill).setOpacity(b3).get("rgba"));return a4};c3.prototype.translate=function(){a3.prototype.translate.call(this);this.getRadii();this.translateBubble()};c3.prototype.translateBubble=function(){for(var a4=this.data,e3=this.radii,b3=this.getPxExtremes().minPxSize,c4=a4.length;c4--;){var g3=a4[c4],f3=e3?e3[c4]:0;N(f3)&&f3>=b3/2?(g3.marker=m2(g3.marker,{radius:f3,width:2*f3,height:2*f3}),g3.dlBox={x:g3.plotX-f3,y:g3.plotY-f3,width:2*f3,height:2*f3}):(g3.shapeArgs=g3.plotY=g3.dlBox=void 0,g3.isInside=false)}};c3.prototype.getPxExtremes=function(){var a4=Math.min(this.chart.plotWidth,this.chart.plotHeight),e3=function(e4){if("string"===typeof e4){var b4=/%$/.test(e4);e4=parseInt(e4,10)}return b4?a4*e4/100:e4},b3=e3(L2(this.options.minSize,8));e3=Math.max(e3(L2(this.options.maxSize,"20%")),b3);return{minPxSize:b3,maxPxSize:e3}};c3.prototype.getZExtremes=function(){var a4=this.options,b3=(this.zData||[]).filter(N);if(b3.length){var c4=L2(a4.zMin,k2(g2(b3),false===a4.displayNegative?a4.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a4=L2(a4.zMax,e2(b3));if(N(c4)&&N(a4))return{zMin:c4,zMax:a4}}};c3.defaultOptions=G(l2.defaultOptions,{dataLabels:{formatter:function(){var a4=this.series.chart.numberFormatter,e3=this.point.z;return N(e3)?a4(e3,-1):""},inside:true,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:false,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return c3}(l2);m2(d3.prototype,{alignDataLabel:a2.alignDataLabel,applyZones:h2,bubblePadding:true,buildKDTree:h2,directTouch:true,isBubble:true,pointArrayMap:["y","z"],pointClass:c2,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});p2(d3,"updatedData",(function(a3){delete a3.target.chart.bubbleZExtremes}));p2(d3,"remove",(function(a3){delete a3.target.chart.bubbleZExtremes}));f2.registerSeriesType("bubble",d3);return d3}));D2(d2,"Series/ColumnRange/ColumnRangePoint.js",[d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2){var h2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function f3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f3.prototype=c3.prototype,new f3)}}(),a2=b2.seriesTypes;b2=a2.column.prototype.pointClass.prototype;var f2=c2.extend,d3=c2.isNumber;c2=function(a3){function b3(){var b4=null!==a3&&a3.apply(this,arguments)||this;b4.options=void 0;b4.series=void 0;return b4}h2(b3,a3);b3.prototype.isValid=function(){return d3(this.low)};return b3}(a2.arearange.prototype.pointClass);f2(c2.prototype,{setState:b2.setState});return c2}));D2(d2,"Series/ColumnRange/ColumnRangeSeries.js",[d2["Series/ColumnRange/ColumnRangePoint.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2){var f2=this&&this.__extends||function(){var a3=function(e3,b3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e4){a4.__proto__=e4}||function(a4,e4){for(var b4 in e4)e4.hasOwnProperty(b4)&&(a4[b4]=e4[b4])};return a3(e3,b3)};return function(e3,b3){function c3(){this.constructor=e3}a3(e3,b3);e3.prototype=null===b3?Object.create(b3):(c3.prototype=b3.prototype,new c3)}}();c2=c2.noop;var h2=d3.seriesTypes,n2=h2.arearange,r2=h2.column,q=h2.column.prototype,F2=a2.clamp;h2=a2.extend;var p2=a2.isNumber,l2=a2.merge,e2=a2.pick,g2={pointRange:null,marker:null,states:{hover:{halo:false}}};a2=function(a3){function b3(){return null!==a3&&a3.apply(this,arguments)||this}f2(b3,a3);b3.prototype.setOptions=function(){l2(true,arguments[0],{stacking:void 0});return n2.prototype.setOptions.apply(this,arguments)};b3.prototype.translate=function(){var a4=this,b4=this.yAxis,c3=this.xAxis,g3=c3.startAngleRad,f3=this.chart,k2=this.xAxis.isRadial,d4=Math.max(f3.chartWidth,f3.chartHeight)+999,h3,x2,m2,l3;q.translate.apply(this);this.points.forEach((function(B){var t2=B.shapeArgs||{},y2=a4.options.minPointLength,n3=B.plotY,H2=b4.translate(B.high,0,1,0,1);p2(H2)&&p2(n3)&&(B.plotHigh=F2(H2,-d4,d4),B.plotLow=F2(n3,-d4,d4),l3=B.plotHigh,h3=e2(B.rectPlotY,B.plotY)-B.plotHigh,Math.abs(h3)<y2?(x2=y2-h3,h3+=x2,l3-=x2/2):0>h3&&(h3*=-1,l3-=h3),k2&&a4.polar?(m2=B.barX+g3,B.shapeType="arc",B.shapeArgs=a4.polar.arc(l3+h3,l3,m2,m2+B.pointWidth)):(t2.height=h3,t2.y=l3,y2=t2.x,y2=void 0===y2?0:y2,t2=t2.width,t2=void 0===t2?0:t2,B.tooltipPos=f3.inverted?[b4.len+b4.pos-f3.plotLeft-l3-h3/2,c3.len+c3.pos-f3.plotTop-y2-t2/2,h3]:[c3.left-f3.plotLeft+y2+t2/2,b4.pos-f3.plotTop+l3+h3/2,h3]))}))};b3.prototype.pointAttribs=function(){return q.pointAttribs.apply(this,arguments)};b3.prototype.translate3dPoints=function(){return q.translate3dPoints.apply(this,arguments)};b3.prototype.translate3dShapes=function(){return q.translate3dShapes.apply(this,arguments)};b3.defaultOptions=l2(r2.defaultOptions,n2.defaultOptions,g2);return b3}(n2);h2(a2.prototype,{directTouch:true,pointClass:b2,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:q.adjustForMissingColumns,animate:q.animate,crispCol:q.crispCol,drawGraph:c2,drawPoints:q.drawPoints,getSymbol:c2,drawTracker:q.drawTracker,getColumnMetrics:q.getColumnMetrics});d3.registerSeriesType("columnrange",a2);return a2}));D2(d2,"Series/ColumnPyramid/ColumnPyramidSeries.js",[d2["Series/Column/ColumnSeries.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e2){a4.__proto__=e2}||function(a4,e2){for(var b4 in e2)e2.hasOwnProperty(b4)&&(a4[b4]=e2[b4])};return a3(b3,c3)};return function(b3,c3){function f3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f3.prototype=c3.prototype,new f3)}}(),f2=b2.prototype,d3=h2.clamp,n2=h2.merge,r2=h2.pick;h2=function(c3){function h3(){var a3=null!==c3&&c3.apply(this,arguments)||this;a3.data=void 0;a3.options=void 0;a3.points=void 0;return a3}a2(h3,c3);h3.prototype.translate=function(){var a3=this,b3=a3.chart,e2=a3.options,c4=a3.dense=2>a3.closestPointRange*a3.xAxis.transA;c4=a3.borderWidth=r2(e2.borderWidth,c4?0:1);var k2=a3.yAxis,h4=e2.threshold,n3=a3.translatedThreshold=k2.getThreshold(h4),G=r2(e2.minPointLength,5),w2=a3.getColumnMetrics(),E2=w2.width,v2=a3.barW=Math.max(E2,1+2*c4),q=a3.pointXOffset=w2.offset;b3.inverted&&(n3-=.5);e2.pointPadding&&(v2=Math.ceil(v2));f2.translate.apply(a3);a3.points.forEach((function(c5){var g2=r2(c5.yBottom,n3),f3=999+Math.abs(g2),m2=d3(c5.plotY,-f3,k2.len+f3);f3=c5.plotX+q;var y2=v2/2,l2=Math.min(m2,g2);g2=Math.max(m2,g2)-l2;var t2;c5.barX=f3;c5.pointWidth=E2;c5.tooltipPos=b3.inverted?[k2.len+k2.pos-b3.plotLeft-m2,a3.xAxis.len-f3-y2,g2]:[f3+y2,m2+k2.pos-b3.plotTop,g2];m2=h4+(c5.total||c5.y);"percent"===e2.stacking&&(m2=h4+(0>c5.y)?-100:100);m2=k2.toPixels(m2,true);var J=(t2=b3.plotHeight-m2-(b3.plotHeight-n3))?y2*(l2-m2)/t2:0;var w3=t2?y2*(l2+g2-m2)/t2:0;t2=f3-J+y2;J=f3+J+y2;var p2=f3+w3+y2;w3=f3-w3+y2;var A2=l2-G;var F2=l2+g2;0>c5.y&&(A2=l2,F2=l2+g2+G);b3.inverted&&(p2=k2.width-l2,t2=m2-(k2.width-n3),J=y2*(m2-p2)/t2,w3=y2*(m2-(p2-g2))/t2,t2=f3+y2+J,J=t2-2*J,p2=f3-w3+y2,w3=f3+w3+y2,A2=l2,F2=l2+g2-G,0>c5.y&&(F2=l2+g2+G));c5.shapeType="path";c5.shapeArgs={x:t2,y:A2,width:J-t2,height:g2,d:[["M",t2,A2],["L",J,A2],["L",p2,F2],["L",w3,F2],["Z"]]}}))};h3.defaultOptions=n2(b2.defaultOptions,{});return h3}(b2);c2.registerSeriesType("columnpyramid",h2);return h2}));D2(d2,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],(function(){return{color:"#000000",grouping:false,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}}));D2(d2,"Series/ErrorBar/ErrorBarSeries.js",[d2["Series/BoxPlot/BoxPlotSeries.js"],d2["Series/Column/ColumnSeries.js"],d2["Series/ErrorBar/ErrorBarSeriesDefaults.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2,f2){var d3=this&&this.__extends||function(){var a3=function(b3,e2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e3){a4.__proto__=e3}||function(a4,e3){for(var b4 in e3)e3.hasOwnProperty(b4)&&(a4[b4]=e3[b4])};return a3(b3,e2)};return function(b3,e2){function c3(){this.constructor=b3}a3(b3,e2);b3.prototype=null===e2?Object.create(e2):(c3.prototype=e2.prototype,new c3)}}(),n2=a2.seriesTypes.arearange,r2=f2.addEvent,q=f2.merge;f2=f2.extend;var F2=function(a3){function f3(){var e2=null!==a3&&a3.apply(this,arguments)||this;e2.data=void 0;e2.options=void 0;e2.points=void 0;return e2}d3(f3,a3);f3.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||c2.prototype.getColumnMetrics.call(this)};f3.prototype.drawDataLabels=function(){var a4=this.pointValKey;n2&&(n2.prototype.drawDataLabels.call(this),this.data.forEach((function(e2){e2.y=e2[a4]})))};f3.prototype.toYData=function(a4){return[a4.low,a4.high]};f3.defaultOptions=q(b2.defaultOptions,h2);return f3}(b2);r2(F2,"afterTranslate",(function(){this.points.forEach((function(a3){a3.plotLow=a3.plotY}))}),{order:0});f2(F2.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:false});a2.registerSeriesType("errorbar",F2);return F2}));D2(d2,"Series/Gauge/GaugePoint.js",[d2["Core/Series/SeriesRegistry.js"]],(function(b2){var c2=this&&this.__extends||function(){var b3=function(a2,c3){b3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,b4){a3.__proto__=b4}||function(a3,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a3[c4]=b4[c4])};return b3(a2,c3)};return function(a2,c3){function f2(){this.constructor=a2}b3(a2,c3);a2.prototype=null===c3?Object.create(c3):(f2.prototype=c3.prototype,new f2)}}();return function(b3){function a2(){var a3=null!==b3&&b3.apply(this,arguments)||this;a3.options=void 0;a3.series=void 0;a3.shapeArgs=void 0;return a3}c2(a2,b3);a2.prototype.setState=function(a3){this.state=a3};return a2}(b2.series.prototype.pointClass)}));D2(d2,"Series/Gauge/GaugeSeries.js",[d2["Series/Gauge/GaugePoint.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){var f2=this&&this.__extends||function(){var a3=function(e3,b3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e4){a4.__proto__=e4}||function(a4,e4){for(var b4 in e4)e4.hasOwnProperty(b4)&&(a4[b4]=e4[b4])};return a3(e3,b3)};return function(e3,b3){function c3(){this.constructor=e3}a3(e3,b3);e3.prototype=null===b3?Object.create(b3):(c3.prototype=b3.prototype,new c3)}}();c2=c2.noop;var d3=h2.series,n2=h2.seriesTypes.column,r2=a2.clamp,q=a2.isNumber,F2=a2.extend,p2=a2.merge,l2=a2.pick,e2=a2.pInt;a2=function(a3){function b3(){var e3=null!==a3&&a3.apply(this,arguments)||this;e3.data=void 0;e3.points=void 0;e3.options=void 0;e3.yAxis=void 0;return e3}f2(b3,a3);b3.prototype.translate=function(){var a4=this.yAxis,b4=this.options,c3=a4.center;this.generatePoints();this.points.forEach((function(g2){var f3=p2(b4.dial,g2.dial),d4=e2(f3.radius)*c3[2]/200,h3=e2(f3.baseLength)*d4/100,k2=e2(f3.rearLength)*d4/100,m2=f3.baseWidth,x2=f3.topWidth,B=b4.overshoot,y2=a4.startAngleRad+a4.translate(g2.y,void 0,void 0,void 0,true);if(q(B)||false===b4.wrap)B=q(B)?B/180*Math.PI:0,y2=r2(y2,a4.startAngleRad-B,a4.endAngleRad+B);y2=180*y2/Math.PI;g2.shapeType="path";g2.shapeArgs={d:f3.path||[["M",-k2,-m2/2],["L",h3,-m2/2],["L",d4,-x2/2],["L",d4,x2/2],["L",h3,m2/2],["L",-k2,m2/2],["Z"]],translateX:c3[0],translateY:c3[1],rotation:y2};g2.plotX=c3[0];g2.plotY=c3[1]}))};b3.prototype.drawPoints=function(){var a4=this,e3=a4.chart,b4=a4.yAxis.center,c3=a4.pivot,g2=a4.options,f3=g2.pivot,d4=e3.renderer;a4.points.forEach((function(b5){var c4=b5.graphic,f4=b5.shapeArgs,h3=f4.d,k2=p2(g2.dial,b5.dial);c4?(c4.animate(f4),f4.d=h3):b5.graphic=d4[b5.shapeType](f4).attr({rotation:f4.rotation,zIndex:1}).addClass("highcharts-dial").add(a4.group);if(!e3.styledMode)b5.graphic[c4?"animate":"attr"]({stroke:k2.borderColor,"stroke-width":k2.borderWidth,fill:k2.backgroundColor})}));c3?c3.animate({translateX:b4[0],translateY:b4[1]}):f3&&(a4.pivot=d4.circle(0,0,f3.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(b4[0],b4[1]).add(a4.group),e3.styledMode||a4.pivot.attr({fill:f3.backgroundColor,stroke:f3.borderColor,"stroke-width":f3.borderWidth}))};b3.prototype.animate=function(a4){var e3=this;a4||e3.points.forEach((function(a5){var b4=a5.graphic;b4&&(b4.attr({rotation:180*e3.yAxis.startAngleRad/Math.PI}),b4.animate({rotation:a5.shapeArgs.rotation},e3.options.animation))}))};b3.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup);d3.prototype.render.call(this);this.group.clip(this.chart.clipRect)};b3.prototype.setData=function(a4,e3){d3.prototype.setData.call(this,a4,false);this.processData();this.generatePoints();l2(e3,true)&&this.chart.redraw()};b3.prototype.hasData=function(){return!!this.points.length};b3.defaultOptions=p2(d3.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:false,defer:false,enabled:true,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:false});return b3}(d3);F2(a2.prototype,{angular:true,directTouch:true,drawGraph:c2,drawTracker:n2.prototype.drawTracker,fixedBox:true,forceDL:true,noSharedTooltip:true,pointClass:b2,trackerGroups:["group","dataLabelsGroup"]});h2.registerSeriesType("gauge",a2);return a2}));D2(d2,"Series/DragNodesComposition.js",[d2["Core/Utilities.js"]],(function(b2){function c2(){var a3=this,b3,c3,h2;a3.container&&(b3=d3(a3.container,"mousedown",(function(b4){var f2=a3.hoverPoint;f2&&f2.series&&f2.series.hasDraggableNodes&&f2.series.options.draggable&&(f2.series.onMouseDown(f2,b4),c3=d3(a3.container,"mousemove",(function(a4){return f2&&f2.series&&f2.series.onMouseMove(f2,a4)})),h2=d3(a3.container.ownerDocument,"mouseup",(function(a4){c3();h2();return f2&&f2.series&&f2.series.onMouseUp(f2,a4)})))})));d3(a3,"destroy",(function(){b3()}))}var d3=b2.addEvent,a2=[];return{compose:function(b3){-1===a2.indexOf(b3)&&(a2.push(b3),d3(b3,"load",c2))},onMouseDown:function(a3,b3){b3=this.chart.pointer.normalize(b3);a3.fixedPosition={chartX:b3.chartX,chartY:b3.chartY,plotX:a3.plotX,plotY:a3.plotY};a3.inDragMode=true},onMouseMove:function(a3,b3){if(a3.fixedPosition&&a3.inDragMode){var c3=this.chart,f2=c3.pointer.normalize(b3);b3=a3.fixedPosition.chartX-f2.chartX;f2=a3.fixedPosition.chartY-f2.chartY;var d4=c3.graphLayoutsLookup,h2=void 0,w2=void 0;if(5<Math.abs(b3)||5<Math.abs(f2))h2=a3.fixedPosition.plotX-b3,w2=a3.fixedPosition.plotY-f2,c3.isInsidePlot(h2,w2)&&(a3.plotX=h2,a3.plotY=w2,a3.hasDragged=true,this.redrawHalo(a3),d4.forEach((function(a4){a4.restartSimulation()})))}},onMouseUp:function(a3,b3){a3.fixedPosition&&(a3.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),a3.inDragMode=a3.hasDragged=false,this.options.fixedDraggable||delete a3.fixedPosition)},redrawHalo:function(a3){a3&&this.halo&&this.halo.attr({d:a3.haloPath(this.options.states.hover.halo.size)})}}}));D2(d2,"Series/GraphLayoutComposition.js",[d2["Core/Animation/AnimationUtilities.js"],d2["Core/Utilities.js"]],(function(b2,c2){function d3(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((function(a3){a3.updateSimulation()})),this.redraw())}function a2(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((function(a3){a3.updateSimulation(false)})),this.redraw())}function f2(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach((function(a3){a3.stop()}))}function w2(){var a3=false,b3=function(e2){e2.maxIterations--&&isFinite(e2.temperature)&&!e2.isStable()&&!e2.enableSimulation&&(e2.beforeStep&&e2.beforeStep(),e2.step(),c3=false,a3=true)};if(this.graphLayoutsLookup){n2(false,this);for(this.graphLayoutsLookup.forEach((function(a4){return a4.start()}));!c3;){var c3=true;this.graphLayoutsLookup.forEach(b3)}a3&&this.series.forEach((function(a4){a4&&a4.layout&&a4.render()}))}}var n2=b2.setAnimation,r2=c2.addEvent,q=[];return{compose:function(b3){q.indexOf(b3)&&(q.push(b3),r2(b3,"afterPrint",d3),r2(b3,"beforePrint",a2),r2(b3,"predraw",f2),r2(b3,"render",w2))},integrations:{},layouts:{}}}));D2(d2,"Series/PackedBubble/PackedBubblePoint.js",[d2["Core/Chart/Chart.js"],d2["Core/Series/Point.js"],d2["Core/Series/SeriesRegistry.js"]],(function(b2,c2,d3){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function f2(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f2.prototype=c3.prototype,new f2)}}();return function(f2){function d4(){var a3=null!==f2&&f2.apply(this,arguments)||this;a3.degree=NaN;a3.mass=NaN;a3.radius=NaN;a3.options=void 0;a3.series=void 0;a3.value=null;return a3}a2(d4,f2);d4.prototype.destroy=function(){this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes);return c2.prototype.destroy.apply(this,arguments)};d4.prototype.firePointEvent=function(){var a3=this.series.options;if(this.isParentNode&&a3.parentNode){var b3=a3.allowPointSelect;a3.allowPointSelect=a3.parentNode.allowPointSelect;c2.prototype.firePointEvent.apply(this,arguments);a3.allowPointSelect=b3}else c2.prototype.firePointEvent.apply(this,arguments)};d4.prototype.select=function(){var a3=this.series.chart;this.isParentNode?(a3.getSelectedPoints=a3.getSelectedParentNodes,c2.prototype.select.apply(this,arguments),a3.getSelectedPoints=b2.prototype.getSelectedPoints):c2.prototype.select.apply(this,arguments)};return d4}(d3.seriesTypes.bubble.prototype.pointClass)}));D2(d2,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[d2["Core/Utilities.js"]],(function(b2){var c2=b2.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:false,tooltip:{pointFormat:"Value: {point.value}"},draggable:true,useSimulation:true,parentNode:{allowPointSelect:false},dataLabels:{formatter:function(){var b3=this.series.chart.numberFormatter,a2=this.point.value;return c2(a2)?b3(a2,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:true},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:false,seriesInteraction:true,dragBetweenSeries:false,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:true,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:true,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:false,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}));D2(d2,"Series/Networkgraph/VerletIntegration.js",[],(function(){return{attractive:function(b2,c2,d3){var a2=b2.getMass(),f2=-d3.x*c2*this.diffTemperature;c2=-d3.y*c2*this.diffTemperature;b2.fromNode.fixedPosition||(b2.fromNode.plotX-=f2*a2.fromNode/b2.fromNode.degree,b2.fromNode.plotY-=c2*a2.fromNode/b2.fromNode.degree);b2.toNode.fixedPosition||(b2.toNode.plotX+=f2*a2.toNode/b2.toNode.degree,b2.toNode.plotY+=c2*a2.toNode/b2.toNode.degree)},attractiveForceFunction:function(b2,c2){return(c2-b2)/b2},barycenter:function(){var b2=this.options.gravitationalConstant,c2=this.barycenter.xFactor,d3=this.barycenter.yFactor;c2=(c2-(this.box.left+this.box.width)/2)*b2;d3=(d3-(this.box.top+this.box.height)/2)*b2;this.nodes.forEach((function(a2){a2.fixedPosition||(a2.plotX-=c2/a2.mass/a2.degree,a2.plotY-=d3/a2.mass/a2.degree)}))},getK:function(b2){return Math.pow(b2.box.width*b2.box.height/b2.nodes.length,.5)},integrate:function(b2,c2){var d3=-b2.options.friction,a2=b2.options.maxSpeed,f2=(c2.plotX+c2.dispX-c2.prevX)*d3;d3*=c2.plotY+c2.dispY-c2.prevY;var w2=Math.abs,n2=w2(f2)/(f2||1);w2=w2(d3)/(d3||1);f2=n2*Math.min(a2,Math.abs(f2));d3=w2*Math.min(a2,Math.abs(d3));c2.prevX=c2.plotX+c2.dispX;c2.prevY=c2.plotY+c2.dispY;c2.plotX+=f2;c2.plotY+=d3;c2.temperature=b2.vectorLength({x:f2,y:d3})},repulsive:function(b2,c2,d3){c2=c2*this.diffTemperature/b2.mass/b2.degree;b2.fixedPosition||(b2.plotX+=d3.x*c2,b2.plotY+=d3.y*c2)},repulsiveForceFunction:function(b2,c2){return(c2-b2)/b2*(c2>b2?1:0)}}}));D2(d2,"Series/PackedBubble/PackedBubbleIntegration.js",[d2["Core/Globals.js"],d2["Series/Networkgraph/VerletIntegration.js"]],(function(b2,c2){return{barycenter:function(){for(var b3=this.options.gravitationalConstant,a2=this.box,c3=this.nodes,d3,n2,r2=0;r2<c3.length;r2++){var q=c3[r2];this.options.splitSeries&&!q.isParentNode?(d3=q.series.parentNode.plotX,n2=q.series.parentNode.plotY):(d3=a2.width/2,n2=a2.height/2);q.fixedPosition||(q.plotX-=(q.plotX-d3)*b3/(q.mass*Math.sqrt(c3.length)),q.plotY-=(q.plotY-n2)*b3/(q.mass*Math.sqrt(c3.length)))}},getK:b2.noop,integrate:c2.integrate,repulsive:function(b3,a2,c3,d3){var f2=a2*this.diffTemperature/b3.mass/b3.degree;a2=c3.x*f2;c3=c3.y*f2;b3.fixedPosition||(b3.plotX+=a2,b3.plotY+=c3);d3.fixedPosition||(d3.plotX-=a2,d3.plotY-=c3)},repulsiveForceFunction:function(b3,a2,c3,d3){return Math.min(b3,(c3.marker.radius+d3.marker.radius)/2)}}}));D2(d2,"Series/Networkgraph/EulerIntegration.js",[],(function(){return{attractive:function(b2,c2,d3,a2){var f2=b2.getMass(),h2=d3.x/a2*c2;c2*=d3.y/a2;b2.fromNode.fixedPosition||(b2.fromNode.dispX-=h2*f2.fromNode/b2.fromNode.degree,b2.fromNode.dispY-=c2*f2.fromNode/b2.fromNode.degree);b2.toNode.fixedPosition||(b2.toNode.dispX+=h2*f2.toNode/b2.toNode.degree,b2.toNode.dispY+=c2*f2.toNode/b2.toNode.degree)},attractiveForceFunction:function(b2,c2){return b2*b2/c2},barycenter:function(){var b2=this.options.gravitationalConstant,c2=this.barycenter.xFactor,d3=this.barycenter.yFactor;this.nodes.forEach((function(a2){if(!a2.fixedPosition){var f2=a2.getDegree();f2*=1+f2/2;a2.dispX+=(c2-a2.plotX)*b2*f2/a2.degree;a2.dispY+=(d3-a2.plotY)*b2*f2/a2.degree}}))},getK:function(b2){return Math.pow(b2.box.width*b2.box.height/b2.nodes.length,.3)},integrate:function(b2,c2){c2.dispX+=c2.dispX*b2.options.friction;c2.dispY+=c2.dispY*b2.options.friction;var d3=c2.temperature=b2.vectorLength({x:c2.dispX,y:c2.dispY});0!==d3&&(c2.plotX+=c2.dispX/d3*Math.min(Math.abs(c2.dispX),b2.temperature),c2.plotY+=c2.dispY/d3*Math.min(Math.abs(c2.dispY),b2.temperature))},repulsive:function(b2,c2,d3,a2){b2.dispX+=d3.x/a2*c2/b2.degree;b2.dispY+=d3.y/a2*c2/b2.degree},repulsiveForceFunction:function(b2,c2){return c2*c2/b2}}}));D2(d2,"Series/Networkgraph/QuadTreeNode.js",[],(function(){return function(){function b2(b3){this.isInternal=this.isEmpty=this.body=false;this.nodes=[];this.box=b3;this.boxSize=Math.min(b3.width,b3.height)}b2.prototype.divideBox=function(){var c2=this.box.width/2,d3=this.box.height/2;this.nodes[0]=new b2({left:this.box.left,top:this.box.top,width:c2,height:d3});this.nodes[1]=new b2({left:this.box.left+c2,top:this.box.top,width:c2,height:d3});this.nodes[2]=new b2({left:this.box.left+c2,top:this.box.top+d3,width:c2,height:d3});this.nodes[3]=new b2({left:this.box.left,top:this.box.top+d3,width:c2,height:d3})};b2.prototype.getBoxPosition=function(b3){var c2=b3.plotY<this.box.top+this.box.height/2;return b3.plotX<this.box.left+this.box.width/2?c2?0:3:c2?1:2};b2.prototype.insert=function(c2,d3){this.isInternal?this.nodes[this.getBoxPosition(c2)].insert(c2,d3-1):(this.isEmpty=false,this.body?d3?(this.isInternal=true,this.divideBox(),true!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,d3-1),this.body=true),this.nodes[this.getBoxPosition(c2)].insert(c2,d3-1)):(d3=new b2({top:c2.plotX||NaN,left:c2.plotY||NaN,width:.1,height:.1}),d3.body=c2,d3.isInternal=false,this.nodes.push(d3)):(this.isInternal=false,this.body=c2))};b2.prototype.updateMassAndCenter=function(){var b3=0,d3=0,a2=0;if(this.isInternal){for(var f2=0,w2=this.nodes;f2<w2.length;f2++){var n2=w2[f2];n2.isEmpty||(b3+=n2.mass,d3+=n2.plotX*n2.mass,a2+=n2.plotY*n2.mass)}d3/=b3;a2/=b3}else this.body&&(b3=this.body.mass,d3=this.body.plotX,a2=this.body.plotY);this.mass=b3;this.plotX=d3;this.plotY=a2};return b2}()}));D2(d2,"Series/Networkgraph/QuadTree.js",[d2["Series/Networkgraph/QuadTreeNode.js"]],(function(b2){return function(){function c2(c3,a2,d3,w2){this.box={left:c3,top:a2,width:d3,height:w2};this.maxDepth=25;this.root=new b2(this.box);this.root.isInternal=true;this.root.isRoot=true;this.root.divideBox()}c2.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,(function(b3){b3.updateMassAndCenter()}))};c2.prototype.insertNodes=function(b3){for(var a2=0;a2<b3.length;a2++)this.root.insert(b3[a2],this.maxDepth)};c2.prototype.visitNodeRecursive=function(b3,a2,c3){var d3;b3||(b3=this.root);b3===this.root&&a2&&(d3=a2(b3));if(false!==d3){for(var f2=0,h2=b3.nodes;f2<h2.length;f2++){var q=h2[f2];if(q.isInternal){a2&&(d3=a2(q));if(false===d3)continue;this.visitNodeRecursive(q,a2,c3)}else q.body&&a2&&a2(q.body);c3&&c3(q)}b3===this.root&&c3&&c3(b3)}};return c2}()}));D2(d2,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[d2["Series/Networkgraph/EulerIntegration.js"],d2["Core/Globals.js"],d2["Series/GraphLayoutComposition.js"],d2["Series/Networkgraph/QuadTree.js"],d2["Core/Utilities.js"],d2["Series/Networkgraph/VerletIntegration.js"]],(function(b2,c2,d3,a2,f2,w2){var h2=c2.win,r2=f2.clamp,q=f2.defined,F2=f2.isFunction,p2=f2.pick;return function(){function c3(){this.attractiveForce=void 0;this.box={};this.currentStep=0;this.initialRendering=true;this.integration=void 0;this.links=[];this.nodes=[];this.repulsiveForce=this.quadTree=this.options=void 0;this.series=[];this.simulation=false}c3.compose=function(a3){d3.compose(a3);d3.integrations.euler=b2;d3.integrations.verlet=w2;d3.layouts["reingold-fruchterman"]=c3};c3.prototype.init=function(a3){this.options=a3;this.nodes=[];this.links=[];this.series=[];this.box={x:0,y:0,width:0,height:0};this.setInitialRendering(true);this.integration=d3.integrations[a3.integration];this.enableSimulation=a3.enableSimulation;this.attractiveForce=p2(a3.attractiveForce,this.integration.attractiveForceFunction);this.repulsiveForce=p2(a3.repulsiveForce,this.integration.repulsiveForceFunction);this.approximation=a3.approximation};c3.prototype.updateSimulation=function(a3){this.enableSimulation=p2(a3,this.options.enableSimulation)};c3.prototype.start=function(){var a3=this.series,b3=this.options;this.currentStep=0;this.forces=a3[0]&&a3[0].forces||[];this.chart=a3[0]&&a3[0].chart;this.initialRendering&&(this.initPositions(),a3.forEach((function(a4){a4.finishedAnimating=true;a4.render()})));this.setK();this.resetSimulation(b3);this.enableSimulation&&this.step()};c3.prototype.step=function(){var a3=this,b3=this.series;this.currentStep++;"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var c4=0,d4=this.forces||[];c4<d4.length;c4++)this[d4[c4]+"Forces"](this.temperature);this.applyLimits();this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep);this.prevSystemTemperature=this.systemTemperature;this.systemTemperature=this.getSystemTemperature();if(this.enableSimulation){for(c4=0;c4<b3.length;c4++)d4=b3[c4],d4.chart&&d4.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&h2.cancelAnimationFrame(this.simulation),this.simulation=h2.requestAnimationFrame((function(){return a3.step()}))):this.simulation=false}};c3.prototype.stop=function(){this.simulation&&h2.cancelAnimationFrame(this.simulation)};c3.prototype.setArea=function(a3,b3,c4,d4){this.box={left:a3,top:b3,width:c4,height:d4}};c3.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)};c3.prototype.addElementsToCollection=function(a3,b3){for(var e2=0;e2<a3.length;e2++){var c4=a3[e2];-1===b3.indexOf(c4)&&b3.push(c4)}};c3.prototype.removeElementFromCollection=function(a3,b3){a3=b3.indexOf(a3);-1!==a3&&b3.splice(a3,1)};c3.prototype.clear=function(){this.nodes.length=0;this.links.length=0;this.series.length=0;this.resetSimulation()};c3.prototype.resetSimulation=function(){this.forcedStop=false;this.systemTemperature=0;this.setMaxIterations();this.setTemperature();this.setDiffTemperature()};c3.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(false),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(true))};c3.prototype.setMaxIterations=function(a3){this.maxIterations=p2(a3,this.options.maxIterations)};c3.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)};c3.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)};c3.prototype.setInitialRendering=function(a3){this.initialRendering=a3};c3.prototype.createQuadTree=function(){this.quadTree=new a2(this.box.left,this.box.top,this.box.width,this.box.height);this.quadTree.insertNodes(this.nodes)};c3.prototype.initPositions=function(){var a3=this.options.initialPositions;if(F2(a3)){a3.call(this);a3=0;for(var b3=this.nodes;a3<b3.length;a3++){var c4=b3[a3];q(c4.prevX)||(c4.prevX=c4.plotX);q(c4.prevY)||(c4.prevY=c4.plotY);c4.dispX=0;c4.dispY=0}}else"circle"===a3?this.setCircularPositions():this.setRandomPositions()};c3.prototype.setCircularPositions=function(){for(var a3=this.box,b3=this.nodes,c4=2*Math.PI/(b3.length+1),d4=b3.filter((function(a4){return 0===a4.linksTo.length})),f3={},h3=this.options.initialPositionRadius,l2=function(a4){var b4=0;for(a4=a4.linksFrom||[];b4<a4.length;b4++){var c5=a4[b4];f3[c5.toNode.id]||(f3[c5.toNode.id]=true,E2.push(c5.toNode),l2(c5.toNode))}},E2=[],v2=0;v2<d4.length;v2++){var q2=d4[v2];E2.push(q2);l2(q2)}if(E2.length)for(d4=0;d4<b3.length;d4++)v2=b3[d4],-1===E2.indexOf(v2)&&E2.push(v2);else E2=b3;d4=0;for(v2=E2.length;d4<v2;++d4)b3=E2[d4],b3.plotX=b3.prevX=p2(b3.plotX,a3.width/2+h3*Math.cos(d4*c4)),b3.plotY=b3.prevY=p2(b3.plotY,a3.height/2+h3*Math.sin(d4*c4)),b3.dispX=0,b3.dispY=0};c3.prototype.setRandomPositions=function(){for(var a3=this.box,b3=this.nodes,c4=b3.length+1,d4=function(a4){a4=a4*a4/Math.PI;return a4-=Math.floor(a4)},f3,h3=0,l2=b3.length;h3<l2;++h3)f3=b3[h3],f3.plotX=f3.prevX=p2(f3.plotX,a3.width*d4(h3)),f3.plotY=f3.prevY=p2(f3.plotY,a3.height*d4(c4+h3)),f3.dispX=0,f3.dispY=0};c3.prototype.force=function(a3){for(var b3=[],c4=1;c4<arguments.length;c4++)b3[c4-1]=arguments[c4];this.integration[a3].apply(this,b3)};c3.prototype.barycenterForces=function(){this.getBarycenter();this.force("barycenter")};c3.prototype.getBarycenter=function(){for(var a3=0,b3=0,c4=0,d4=0,f3=this.nodes;d4<f3.length;d4++){var h3=f3[d4];b3+=h3.plotX*h3.mass;c4+=h3.plotY*h3.mass;a3+=h3.mass}return this.barycenter={x:b3,y:c4,xFactor:b3/a3,yFactor:c4/a3}};c3.prototype.barnesHutApproximation=function(a3,b3){var c4=this.getDistXY(a3,b3),e2=this.vectorLength(c4);if(a3!==b3&&0!==e2)if(b3.isInternal)if(b3.boxSize/e2<this.options.theta&&0!==e2){var d4=this.repulsiveForce(e2,this.k);this.force("repulsive",a3,d4*b3.mass,c4,e2);var g2=false}else g2=true;else d4=this.repulsiveForce(e2,this.k),this.force("repulsive",a3,d4*b3.mass,c4,e2);return g2};c3.prototype.repulsiveForces=function(){var a3=this;if("barnes-hut"===this.approximation)for(var b3=function(b4){c4.quadTree.visitNodeRecursive(null,(function(c5){return a3.barnesHutApproximation(b4,c5)}))},c4=this,d4=0,f3=this.nodes;d4<f3.length;d4++){var h3=f3[d4];b3(h3)}else{f3=d4=b3=void 0;for(var l2=0,E2=this.nodes;l2<E2.length;l2++){h3=E2[l2];for(var v2=0,q2=this.nodes;v2<q2.length;v2++){var n2=q2[v2];h3===n2||h3.fixedPosition||(f3=this.getDistXY(h3,n2),d4=this.vectorLength(f3),0!==d4&&(b3=this.repulsiveForce(d4,this.k),this.force("repulsive",h3,b3*n2.mass,f3,d4)))}}}};c3.prototype.attractiveForces=function(){for(var a3,b3,c4,d4=0,f3=this.links;d4<f3.length;d4++){var h3=f3[d4];h3.fromNode&&h3.toNode&&(a3=this.getDistXY(h3.fromNode,h3.toNode),b3=this.vectorLength(a3),0!==b3&&(c4=this.attractiveForce(b3,this.k),this.force("attractive",h3,c4,a3,b3)))}};c3.prototype.applyLimits=function(){for(var a3=0,b3=this.nodes;a3<b3.length;a3++){var c4=b3[a3];if(c4.fixedPosition)break;this.integration.integrate(this,c4);this.applyLimitBox(c4,this.box);c4.dispX=0;c4.dispY=0}};c3.prototype.applyLimitBox=function(a3,b3){var c4=a3.radius;a3.plotX=r2(a3.plotX,b3.left+c4,b3.width-c4);a3.plotY=r2(a3.plotY,b3.top+c4,b3.height-c4)};c3.prototype.coolDown=function(a3,b3,c4){return a3-b3*c4};c3.prototype.isStable=function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature};c3.prototype.getSystemTemperature=function(){for(var a3=0,b3=0,c4=this.nodes;b3<c4.length;b3++)a3+=c4[b3].temperature;return a3};c3.prototype.vectorLength=function(a3){return Math.sqrt(a3.x*a3.x+a3.y*a3.y)};c3.prototype.getDistR=function(a3,b3){a3=this.getDistXY(a3,b3);return this.vectorLength(a3)};c3.prototype.getDistXY=function(a3,b3){var c4=a3.plotX-b3.plotX;a3=a3.plotY-b3.plotY;return{x:c4,y:a3,absX:Math.abs(c4),absY:Math.abs(a3)}};return c3}()}));D2(d2,"Series/PackedBubble/PackedBubbleLayout.js",[d2["Series/GraphLayoutComposition.js"],d2["Series/PackedBubble/PackedBubbleIntegration.js"],d2["Series/Networkgraph/ReingoldFruchtermanLayout.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2){function f2(){var a3=[];this.series.forEach((function(b3){b3.parentNode&&b3.parentNode.selected&&a3.push(b3.parentNode)}));return a3}function h2(){this.allDataPoints&&delete this.allDataPoints}var n2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function e2(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(e2.prototype=c3.prototype,new e2)}}(),r2=a2.addEvent,q=a2.pick,F2=[];a2=function(a3){function l2(){var b3=null!==a3&&a3.apply(this,arguments)||this;b3.index=NaN;b3.nodes=[];b3.options=void 0;b3.series=[];return b3}n2(l2,a3);l2.compose=function(a4){d3.compose(a4);b2.integrations.packedbubble=c2;b2.layouts.packedbubble=l2;-1===F2.indexOf(a4)&&(F2.push(a4),r2(a4,"beforeRedraw",h2),a4.prototype.getSelectedParentNodes=f2)};l2.prototype.beforeStep=function(){this.options.marker&&this.series.forEach((function(a4){a4&&a4.calculateParentRadius()}))};l2.prototype.isStable=function(){var a4=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>a4||0>=this.temperature};l2.prototype.setCircularPositions=function(){for(var a4=this.box,b3=this.nodes,c3=2*Math.PI/(b3.length+1),d4=this.options.initialPositionRadius,f3,h3,l3=0,E2=0;E2<b3.length;E2++){var v2=b3[E2];this.options.splitSeries&&!v2.isParentNode?(f3=v2.series.parentNode.plotX,h3=v2.series.parentNode.plotY):(f3=a4.width/2,h3=a4.height/2);v2.plotX=v2.prevX=q(v2.plotX,f3+d4*Math.cos(v2.index||l3*c3));v2.plotY=v2.prevY=q(v2.plotY,h3+d4*Math.sin(v2.index||l3*c3));v2.dispX=0;v2.dispY=0;l3++}};l2.prototype.repulsiveForces=function(){var a4=this,b3=a4.options.bubblePadding,c3,d4,f3;a4.nodes.forEach((function(e2){e2.degree=e2.mass;e2.neighbours=0;a4.nodes.forEach((function(g2){c3=0;e2===g2||e2.fixedPosition||!a4.options.seriesInteraction&&e2.series!==g2.series||(f3=a4.getDistXY(e2,g2),d4=a4.vectorLength(f3)-(e2.marker.radius+g2.marker.radius+b3),0>d4&&(e2.degree+=.01,e2.neighbours++,c3=a4.repulsiveForce(-d4/Math.sqrt(e2.neighbours),a4.k,e2,g2)),a4.force("repulsive",e2,c3*g2.mass,f3,g2,d4))}))}))};l2.prototype.applyLimitBox=function(b3,c3){if(this.options.splitSeries&&!b3.isParentNode&&this.options.parentNodeLimit){var e2=this.getDistXY(b3,b3.series.parentNode);var d4=b3.series.parentNodeRadius-b3.marker.radius-this.vectorLength(e2);0>d4&&d4>-2*b3.marker.radius&&(b3.plotX-=.01*e2.x,b3.plotY-=.01*e2.y)}a3.prototype.applyLimitBox.call(this,b3,c3)};return l2}(d3);return b2.layouts.packedbubble=a2}));D2(d2,"Series/PackedBubble/PackedBubbleSeries.js",[d2["Core/Color/Color.js"],d2["Series/DragNodesComposition.js"],d2["Series/GraphLayoutComposition.js"],d2["Core/Globals.js"],d2["Series/PackedBubble/PackedBubblePoint.js"],d2["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],d2["Series/PackedBubble/PackedBubbleLayout.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2,f2,w2,n2,r2,q){var h2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function e3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(e3.prototype=c3.prototype,new e3)}}(),p2=b2.parse;b2=a2.noop;var l2=r2.series.prototype,e2=r2.seriesTypes.bubble,g2=q.addEvent,k2=q.clamp,m2=q.defined,D3=q.extend,G=q.fireEvent,L2=q.isArray,E2=q.isNumber,v2=q.merge,Q=q.pick;q=function(a3){function b3(){var b4=null!==a3&&a3.apply(this,arguments)||this;b4.chart=void 0;b4.data=void 0;b4.layout=void 0;b4.options=void 0;b4.parentNodeMass=0;b4.points=void 0;b4.xData=void 0;return b4}h2(b3,a3);b3.compose=function(a4,b4,d4,f3){e2.compose(a4,b4,d4,f3);c2.compose(b4);n2.compose(b4)};b3.prototype.accumulateAllPoints=function(){for(var a4=this.chart,b4=[],c3,e3=0,d4=a4.series;e3<d4.length;e3++){var f3=d4[e3];if(f3.is("packedbubble")&&f3.visible||!a4.options.chart.ignoreHiddenSeries){c3=f3.yData||[];for(var g3=0;g3<c3.length;g3++)b4.push([null,null,c3[g3],f3.index,g3,{id:g3,marker:{radius:0}}])}}return b4};b3.prototype.addLayout=function(){var a4=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b4=a4.type||"packedbubble",c3=this.chart.options.chart,e3=this.chart.graphLayoutsStorage,f3=this.chart.graphLayoutsLookup;e3||(this.chart.graphLayoutsStorage=e3={},this.chart.graphLayoutsLookup=f3=[]);var g3=e3[b4];g3||(a4.enableSimulation=m2(c3.forExport)?!c3.forExport:a4.enableSimulation,e3[b4]=g3=new d3.layouts[b4],g3.init(a4),f3.splice(g3.index,0,g3));this.layout=g3;this.points.forEach((function(a5){a5.mass=2;a5.degree=1;a5.collisionNmb=1}));g3.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight);g3.addElementsToCollection([this],g3.series);g3.addElementsToCollection(this.points,g3.nodes)};b3.prototype.addSeriesLayout=function(){var a4=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b4=a4.type||"packedbubble",c3=this.chart.graphLayoutsStorage,e3=this.chart.graphLayoutsLookup;a4=v2(a4,a4.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var f3=c3[b4+"-series"];f3||(c3[b4+"-series"]=f3=new d3.layouts[b4],f3.init(a4),e3.splice(f3.index,0,f3));this.parentNodeLayout=f3;this.createParentNodes()};b3.prototype.calculateParentRadius=function(){var a4=this.seriesBox();this.parentNodeRadius=k2(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,a4?Math.max(Math.sqrt(Math.pow(a4.width,2)+Math.pow(a4.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20);this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)};b3.prototype.calculateZExtremes=function(){var a4=this.options.zMin,b4=this.options.zMax,c3=Infinity,e3=-Infinity;if(a4&&b4)return[a4,b4];this.chart.series.forEach((function(a5){a5.yData.forEach((function(a6){m2(a6)&&(a6>e3&&(e3=a6),a6<c3&&(c3=a6))}))}));a4=Q(a4,c3);b4=Q(b4,e3);return[a4,b4]};b3.prototype.checkOverlap=function(a4,b4){var c3=a4[0]-b4[0],e3=a4[1]-b4[1];return-.001>Math.sqrt(c3*c3+e3*e3)-Math.abs(a4[2]+b4[2])};b3.prototype.createParentNodes=function(){var a4=this,b4=this.pointClass,c3=this.chart,e3=this.parentNodeLayout,d4=this.layout.options,f3,g3=this.parentNode,h3={radius:this.parentNodeRadius,lineColor:this.color,fillColor:p2(this.color).brighten(.4).get()};d4.parentNodeOptions&&(h3=v2(d4.parentNodeOptions.marker||{},h3));this.parentNodeMass=0;this.points.forEach((function(b5){a4.parentNodeMass+=Math.PI*Math.pow(b5.marker.radius,2)}));this.calculateParentRadius();e3.nodes.forEach((function(b5){b5.seriesIndex===a4.index&&(f3=true)}));e3.setArea(0,0,c3.plotWidth,c3.plotHeight);f3||(g3||(g3=(new b4).init(this,{mass:this.parentNodeRadius/2,marker:h3,dataLabels:{inside:false},states:{normal:{marker:h3},hover:{marker:h3}},dataLabelOnNull:true,degree:this.parentNodeRadius,isParentNode:true,seriesIndex:this.index})),this.parentNode&&(g3.plotX=this.parentNode.plotX,g3.plotY=this.parentNode.plotY),this.parentNode=g3,e3.addElementsToCollection([this],e3.series),e3.addElementsToCollection([g3],e3.nodes))};b3.prototype.deferLayout=function(){var a4=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),a4.splitSeries&&this.addSeriesLayout())};b3.prototype.destroy=function(){var a4=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach((function(b4){b4.removeElementFromCollection(a4,b4.series)}),this);this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy()));l2.destroy.apply(this,arguments)};b3.prototype.drawDataLabels=function(){l2.drawDataLabels.call(this,this.points);this.parentNode&&(this.parentNode.formatPrefix="parentNode",l2.drawDataLabels.call(this,[this.parentNode]))};b3.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var a4=this.chart,b4=this.layout.options.parentNodeOptions.marker;b4={fill:b4.fillColor||p2(this.color).brighten(.4).get(),opacity:b4.fillOpacity,stroke:b4.lineColor||this.color,"stroke-width":Q(b4.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,a4.seriesGroup),this.group.attr({zIndex:2}));this.calculateParentRadius();var c3=v2({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},b4);this.parentNode.graphic||(this.graph=this.parentNode.graphic=a4.renderer.symbol(b4.symbol).add(this.parentNodesGroup));this.parentNode.graphic.attr(c3)}};b3.prototype.drawTracker=function(){var b4=this.parentNode;a3.prototype.drawTracker.call(this);if(b4){var c3=L2(b4.dataLabels)?b4.dataLabels:b4.dataLabel?[b4.dataLabel]:[];b4.graphic&&(b4.graphic.element.point=b4);c3.forEach((function(a4){a4.div?a4.div.point=b4:a4.element.point=b4}))}};b3.prototype.getPointRadius=function(){var a4=this,b4=this.chart,c3=this.options,e3=c3.useSimulation,d4=Math.min(b4.plotWidth,b4.plotHeight),f3={},g3=[],h3=b4.allDataPoints||[],m3=h3.length,l3,v3,u2,C2;["minSize","maxSize"].forEach((function(a5){var b5=parseInt(c3[a5],10),e4=/%$/.test(c3[a5]);f3[a5]=e4?d4*b5/100:b5*Math.sqrt(m3)}));b4.minRadius=l3=f3.minSize/Math.sqrt(m3);b4.maxRadius=v3=f3.maxSize/Math.sqrt(m3);var z2=e3?this.calculateZExtremes():[l3,v3];h3.forEach((function(b5,c4){u2=e3?k2(b5[2],z2[0],z2[1]):b5[2];C2=a4.getRadius(z2[0],z2[1],l3,v3,u2);0===C2&&(C2=null);h3[c4][2]=C2;g3.push(C2)}));this.radii=g3};b3.prototype.init=function(){l2.init.apply(this,arguments);this.eventsToUnbind.push(g2(this,"updatedData",(function(){var a4=this;this.chart.series.forEach((function(b4){b4.type===a4.type&&(b4.isDirty=true)}),this)})));return this};b3.prototype.onMouseUp=function(a4){var b4=a4;if(b4.fixedPosition&&!b4.removed){var e3=this.layout,d4=this.parentNodeLayout,f3,g3;d4&&e3.options.dragBetweenSeries&&d4.nodes.forEach((function(a5){b4&&b4.marker&&a5!==b4.series.parentNode&&(f3=e3.getDistXY(b4,a5),g3=e3.vectorLength(f3)-a5.marker.radius-b4.marker.radius,0>g3&&(a5.series.addPoint(v2(b4.options,{plotX:b4.plotX,plotY:b4.plotY}),false),e3.removeElementFromCollection(b4,e3.nodes),b4.remove()))}));c2.onMouseUp.apply(this,arguments)}};b3.prototype.placeBubbles=function(a4){var b4=this.checkOverlap,c3=this.positionBubble,e3=[],d4=1,f3=0,g3=0;var h3=[];var k3;a4=a4.sort((function(a5,b5){return b5[2]-a5[2]}));if(a4.length){e3.push([[0,0,a4[0][2],a4[0][3],a4[0][4]]]);if(1<a4.length)for(e3.push([[0,0-a4[1][2]-a4[0][2],a4[1][2],a4[1][3],a4[1][4]]]),k3=2;k3<a4.length;k3++)a4[k3][2]=a4[k3][2]||1,h3=c3(e3[d4][f3],e3[d4-1][g3],a4[k3]),b4(h3,e3[d4][0])?(e3.push([]),g3=0,e3[d4+1].push(c3(e3[d4][f3],e3[d4][0],a4[k3])),d4++,f3=0):1<d4&&e3[d4-1][g3+1]&&b4(h3,e3[d4-1][g3+1])?(g3++,e3[d4].push(c3(e3[d4][f3],e3[d4-1][g3],a4[k3])),f3++):(f3++,e3[d4].push(h3));this.chart.stages=e3;this.chart.rawPositions=[].concat.apply([],e3);this.resizeRadius();h3=this.chart.rawPositions}return h3};b3.prototype.pointAttribs=function(a4,b4){var c3=this.options,e3=c3.marker;a4&&a4.isParentNode&&c3.layoutAlgorithm&&c3.layoutAlgorithm.parentNodeOptions&&(e3=c3.layoutAlgorithm.parentNodeOptions.marker);c3=e3.fillOpacity;a4=l2.pointAttribs.call(this,a4,b4);1!==c3&&(a4["fill-opacity"]=c3);return a4};b3.prototype.positionBubble=function(a4,b4,c3){var e3=Math.sqrt,d4=Math.asin,f3=Math.acos,g3=Math.pow,h3=Math.abs;e3=e3(g3(a4[0]-b4[0],2)+g3(a4[1]-b4[1],2));f3=f3((g3(e3,2)+g3(c3[2]+b4[2],2)-g3(c3[2]+a4[2],2))/(2*(c3[2]+b4[2])*e3));d4=d4(h3(a4[0]-b4[0])/e3);a4=(0>a4[1]-b4[1]?0:Math.PI)+f3+d4*(0>(a4[0]-b4[0])*(a4[1]-b4[1])?1:-1);return[b4[0]+(b4[2]+c3[2])*Math.sin(a4),b4[1]-(b4[2]+c3[2])*Math.cos(a4),c3[2],c3[3],c3[4]]};b3.prototype.render=function(){var a4=[];l2.render.apply(this,arguments);this.options.dataLabels.allowOverlap||(this.data.forEach((function(b4){L2(b4.dataLabels)&&b4.dataLabels.forEach((function(b5){a4.push(b5)}))})),this.options.useSimulation&&this.chart.hideOverlappingLabels(a4))};b3.prototype.resizeRadius=function(){var a4=this.chart,b4=a4.rawPositions,c3=Math.min,e3=Math.max,d4=a4.plotLeft,f3=a4.plotTop,g3=a4.plotHeight,h3=a4.plotWidth,k3,m3;var l3=k3=Number.POSITIVE_INFINITY;var u2=m3=Number.NEGATIVE_INFINITY;for(var C2=0;C2<b4.length;C2++){var z2=b4[C2];var v3=z2[2];l3=c3(l3,z2[0]-v3);u2=e3(u2,z2[0]+v3);k3=c3(k3,z2[1]-v3);m3=e3(m3,z2[1]+v3)}z2=[u2-l3,m3-k3];c3=c3.apply([],[(h3-d4)/z2[0],(g3-f3)/z2[1]]);if(1e-10<Math.abs(c3-1)){for(a4=0;a4<b4.length;a4++)z2=b4[a4],z2[2]*=c3;this.placeBubbles(b4)}else a4.diffY=g3/2+f3-k3-(m3-k3)/2,a4.diffX=h3/2+d4-l3-(u2-l3)/2};b3.prototype.seriesBox=function(){var a4=this.chart,b4=Math.max,c3=Math.min,e3=[a4.plotLeft,a4.plotLeft+a4.plotWidth,a4.plotTop,a4.plotTop+a4.plotHeight],d4;this.data.forEach((function(a5){m2(a5.plotX)&&m2(a5.plotY)&&a5.marker.radius&&(d4=a5.marker.radius,e3[0]=c3(e3[0],a5.plotX-d4),e3[1]=b4(e3[1],a5.plotX+d4),e3[2]=c3(e3[2],a5.plotY-d4),e3[3]=b4(e3[3],a5.plotY+d4))}));return E2(e3.width/e3.height)?e3:null};b3.prototype.setVisible=function(){var a4=this;l2.setVisible.apply(a4,arguments);a4.parentNodeLayout&&a4.graph?a4.visible?(a4.graph.show(),a4.parentNode.dataLabel&&a4.parentNode.dataLabel.show()):(a4.graph.hide(),a4.parentNodeLayout.removeElementFromCollection(a4.parentNode,a4.parentNodeLayout.nodes),a4.parentNode.dataLabel&&a4.parentNode.dataLabel.hide()):a4.layout&&(a4.visible?a4.layout.addElementsToCollection(a4.points,a4.layout.nodes):a4.points.forEach((function(b4){a4.layout.removeElementFromCollection(b4,a4.layout.nodes)})))};b3.prototype.translate=function(){var a4=this.chart,b4=this.data,c3=this.index,e3=this.options.useSimulation;this.processedXData=this.xData;this.generatePoints();m2(a4.allDataPoints)||(a4.allDataPoints=this.accumulateAllPoints(),this.getPointRadius());if(e3)var d4=a4.allDataPoints;else d4=this.placeBubbles(a4.allDataPoints),this.options.draggable=false;for(var f3=0,g3=d4;f3<g3.length;f3++){var h3=g3[f3];if(h3[3]===c3){d4=b4[h3[4]];var k3=Q(h3[2],void 0);e3||(d4.plotX=h3[0]-a4.plotLeft+a4.diffX,d4.plotY=h3[1]-a4.plotTop+a4.diffY);E2(k3)&&(d4.marker=D3(d4.marker,{radius:k3,width:2*k3,height:2*k3}),d4.radius=k3)}}e3&&this.deferLayout();G(this,"afterTranslate")};b3.defaultOptions=v2(e2.defaultOptions,w2);return b3}(e2);D3(q.prototype,{pointClass:f2,axisTypes:[],directTouch:true,forces:["barycenter","repulsive"],hasDraggableNodes:true,isCartesian:false,noSharedTooltip:true,pointArrayMap:["value"],pointValKey:"value",requireSorting:false,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:l2.alignDataLabel,indexateNodes:b2,onMouseDown:c2.onMouseDown,onMouseMove:c2.onMouseMove,redrawHalo:c2.redrawHalo,searchPoint:b2});r2.registerSeriesType("packedbubble",q);return q}));D2(d2,"Series/Polygon/PolygonSeries.js",[d2["Core/Globals.js"],d2["Core/Legend/LegendSymbol.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2){var f2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function e2(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(e2.prototype=c3.prototype,new e2)}}();b2=b2.noop;var h2=d3.series,n2=d3.seriesTypes,r2=n2.area,q=n2.line,F2=n2.scatter;n2=a2.extend;var p2=a2.merge;a2=function(a3){function b3(){var b4=null!==a3&&a3.apply(this,arguments)||this;b4.data=void 0;b4.options=void 0;b4.points=void 0;return b4}f2(b3,a3);b3.prototype.getGraphPath=function(){for(var a4=q.prototype.getGraphPath.call(this),b4=a4.length+1;b4--;)(b4===a4.length||"M"===a4[b4][0])&&0<b4&&a4.splice(b4,0,["Z"]);return this.areaPath=a4};b3.prototype.drawGraph=function(){this.options.fillColor=this.color;r2.prototype.drawGraph.call(this)};b3.defaultOptions=p2(F2.defaultOptions,{marker:{enabled:false,states:{hover:{enabled:false}}},stickyTracking:false,tooltip:{followPointer:true,pointFormat:""},trackByArea:true});return b3}(F2);n2(a2.prototype,{type:"polygon",drawLegendSymbol:c2.drawRectangle,drawTracker:h2.prototype.drawTracker,setStackedPoints:b2});d3.registerSeriesType("polygon",a2);return a2}));D2(d2,"Core/Axis/WaterfallAxis.js",[d2["Core/Axis/Stacking/StackItem.js"],d2["Core/Utilities.js"]],(function(b2,c2){var d3=c2.addEvent,a2=c2.objectEach,f2;(function(c3){function f3(){var a3=this.waterfall.stacks;a3&&(a3.changed=false,delete a3.alreadyChanged)}function h2(){var a3=this.options.stackLabels;a3&&a3.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function q(){for(var a3=this.axes,b3=this.series,c4=b3.length;c4--;)b3[c4].options.stacking&&(a3.forEach((function(a4){a4.isXAxis||(a4.waterfall.stacks.changed=true)})),c4=0)}function w2(){this.waterfall||(this.waterfall=new p2(this))}var p2=function(){function c4(a3){this.axis=a3;this.stacks={changed:false}}c4.prototype.renderStackTotals=function(){var c5=this.axis,d4=c5.waterfall.stacks,f4=c5.stacking&&c5.stacking.stackTotalGroup,h3=new b2(c5,c5.options.stackLabels||{},false,0,void 0);this.dummyStackItem=h3;f4&&a2(d4,(function(c6){a2(c6,(function(a3,c7){h3.total=a3.stackTotal;h3.x=+c7;a3.label&&(h3.label=a3.label);b2.prototype.render.call(h3,f4);a3.label=h3.label;delete h3.label}))}));h3.total=null};return c4}();c3.Composition=p2;c3.compose=function(a3,b3){d3(a3,"init",w2);d3(a3,"afterBuildStacks",f3);d3(a3,"afterRender",h2);d3(b3,"beforeRedraw",q)}})(f2||(f2={}));return f2}));D2(d2,"Series/Waterfall/WaterfallPoint.js",[d2["Series/Column/ColumnSeries.js"],d2["Core/Series/Point.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function d4(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(d4.prototype=c3.prototype,new d4)}}(),f2=d3.isNumber;return function(b3){function d4(){var a3=null!==b3&&b3.apply(this,arguments)||this;a3.options=void 0;a3.series=void 0;return a3}a2(d4,b3);d4.prototype.getClassName=function(){var a3=c2.prototype.getClassName.call(this);this.isSum?a3+=" highcharts-sum":this.isIntermediateSum&&(a3+=" highcharts-intermediate-sum");return a3};d4.prototype.isValid=function(){return f2(this.y)||this.isSum||!!this.isIntermediateSum};return d4}(b2.prototype.pointClass)}));D2(d2,"Series/Waterfall/WaterfallSeries.js",[d2["Core/Axis/Axis.js"],d2["Core/Chart/Chart.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"],d2["Core/Axis/WaterfallAxis.js"],d2["Series/Waterfall/WaterfallPoint.js"]],(function(b2,c2,d3,a2,f2,w2){var h2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function e3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(e3.prototype=c3.prototype,new e3)}}(),r2=d3.seriesTypes,q=r2.column,F2=r2.line,p2=a2.arrayMax,l2=a2.arrayMin,e2=a2.correctFloat;r2=a2.extend;var g2=a2.isNumber,k2=a2.merge,m2=a2.objectEach,D3=a2.pick;a2=function(a3){function b3(){var b4=null!==a3&&a3.apply(this,arguments)||this;b4.chart=void 0;b4.data=void 0;b4.options=void 0;b4.points=void 0;b4.stackedYNeg=void 0;b4.stackedYPos=void 0;b4.stackKey=void 0;b4.xData=void 0;b4.yAxis=void 0;b4.yData=void 0;return b4}h2(b3,a3);b3.prototype.generatePoints=function(){q.prototype.generatePoints.apply(this);for(var a4=0,b4=this.points.length;a4<b4;a4++){var c3=this.points[a4],d4=this.processedYData[a4];g2(d4)&&(c3.isIntermediateSum||c3.isSum)&&(c3.y=e2(d4))}};b3.prototype.translate=function(){var a4=this.options,b4=this.yAxis,c3=D3(a4.minPointLength,5),e3=c3/2,d4=a4.threshold||0;a4=a4.stacking;var f3=b4.waterfall.stacks[this.stackKey],h3=d4,k3=d4;q.prototype.translate.apply(this);for(var m3=this.points,t2=0;t2<m3.length;t2++){var l3=m3[t2];var n2=this.processedYData[t2];var p3=l3.shapeArgs;if(p3&&g2(n2)){var A2=[0,n2];var r3=l3.y;if(a4){if(f3){A2=f3[t2];if("overlap"===a4){var w3=A2.stackState[A2.stateIndex--];w3=0<=r3?w3:w3-r3;Object.hasOwnProperty.call(A2,"absolutePos")&&delete A2.absolutePos;Object.hasOwnProperty.call(A2,"absoluteNeg")&&delete A2.absoluteNeg}else 0<=r3?(w3=A2.threshold+A2.posTotal,A2.posTotal-=r3):(w3=A2.threshold+A2.negTotal,A2.negTotal-=r3,w3-=r3),!A2.posTotal&&g2(A2.absolutePos)&&Object.hasOwnProperty.call(A2,"absolutePos")&&(A2.posTotal=A2.absolutePos,delete A2.absolutePos),!A2.negTotal&&g2(A2.absoluteNeg)&&Object.hasOwnProperty.call(A2,"absoluteNeg")&&(A2.negTotal=A2.absoluteNeg,delete A2.absoluteNeg);l3.isSum||(A2.connectorThreshold=A2.threshold+A2.stackTotal);b4.reversed?(n2=0<=r3?w3-r3:w3+r3,r3=w3):(n2=w3,r3=w3-r3);l3.below=n2<=d4;p3.y=b4.translate(n2,false,true,false,true);p3.height=Math.abs(p3.y-b4.translate(r3,false,true,false,true));if(r3=b4.waterfall.dummyStackItem)r3.x=t2,r3.label=f3[t2].label,r3.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[t2],this.stackedYPos[t2],void 0,this.xAxis)}}else w3=Math.max(k3,k3+r3)+A2[0],p3.y=b4.translate(w3,false,true,false,true),l3.isSum?(p3.y=b4.translate(A2[1],false,true,false,true),p3.height=Math.min(b4.translate(A2[0],false,true,false,true),b4.len)-p3.y,l3.below=A2[1]<=d4):l3.isIntermediateSum?(0<=r3?(n2=A2[1]+h3,r3=h3):(n2=h3,r3=A2[1]+h3),b4.reversed&&(n2^=r3,r3^=n2,n2^=r3),p3.y=b4.translate(n2,false,true,false,true),p3.height=Math.abs(p3.y-Math.min(b4.translate(r3,false,true,false,true),b4.len)),h3+=A2[1],l3.below=n2<=d4):(p3.height=0<n2?b4.translate(k3,false,true,false,true)-p3.y:b4.translate(k3,false,true,false,true)-b4.translate(k3-n2,false,true,false,true),k3+=n2,l3.below=k3<d4),0>p3.height&&(p3.y+=p3.height,p3.height*=-1);l3.plotY=p3.y=Math.round(p3.y||0)-this.borderWidth%2/2;p3.height=Math.max(Math.round(p3.height||0),.001);l3.yBottom=p3.y+p3.height;p3.height<=c3&&!l3.isNull?(p3.height=c3,p3.y-=e3,l3.plotY=p3.y,l3.minPointLengthOffset=0>l3.y?-e3:e3):(l3.isNull&&(p3.width=0),l3.minPointLengthOffset=0);r3=l3.plotY+(l3.negative?p3.height:0);l3.below&&(l3.plotY+=p3.height);l3.tooltipPos&&(this.chart.inverted?l3.tooltipPos[0]=b4.len-r3:l3.tooltipPos[1]=r3);l3.isInside=this.isPointInside(l3)}}};b3.prototype.processData=function(b4){var c3=this.options,d4=this.yData,f3=c3.data,g3=d4.length,h3=c3.threshold||0,k3,l3,m3,t2,n2;for(n2=l3=k3=m3=t2=0;n2<g3;n2++){var q2=d4[n2];var p3=f3&&f3[n2]?f3[n2]:{};"sum"===q2||p3.isSum?d4[n2]=e2(l3):"intermediateSum"===q2||p3.isIntermediateSum?(d4[n2]=e2(k3),k3=0):(l3+=q2,k3+=q2);m3=Math.min(l3,m3);t2=Math.max(l3,t2)}a3.prototype.processData.call(this,b4);c3.stacking||(this.dataMin=m3+h3,this.dataMax=t2)};b3.prototype.toYData=function(a4){return a4.isSum?"sum":a4.isIntermediateSum?"intermediateSum":a4.y};b3.prototype.updateParallelArrays=function(b4,c3){a3.prototype.updateParallelArrays.call(this,b4,c3);if("sum"===this.yData[0]||"intermediateSum"===this.yData[0])this.yData[0]=null};b3.prototype.pointAttribs=function(a4,b4){var c3=this.options.upColor;c3&&!a4.options.color&&(a4.color=0<a4.y?c3:void 0);a4=q.prototype.pointAttribs.call(this,a4,b4);delete a4.dashstyle;return a4};b3.prototype.getGraphPath=function(){return[["M",0,0]]};b3.prototype.getCrispPath=function(){var a4=this.data,b4=this.yAxis,c3=a4.length,e3=Math.round(this.graph.strokeWidth())%2/2,d4=Math.round(this.borderWidth)%2/2,f3=this.xAxis.reversed,g3=this.yAxis.reversed,h3=this.options.stacking,k3=[],l3;for(l3=1;l3<c3;l3++){var m3=a4[l3].shapeArgs;var n2=a4[l3-1];var q2=a4[l3-1].shapeArgs;var p3=b4.waterfall.stacks[this.stackKey];var r3=0<n2.y?-q2.height:0;p3&&q2&&m3&&(p3=p3[l3-1],h3?(p3=p3.connectorThreshold,r3=Math.round(b4.translate(p3,false,true,false,true)+(g3?r3:0))-e3):r3=q2.y+n2.minPointLengthOffset+d4-e3,k3.push(["M",(q2.x||0)+(f3?0:q2.width||0),r3],["L",(m3.x||0)+(f3?m3.width||0:0),r3]));q2&&k3.length&&(!h3&&0>n2.y&&!g3||0<n2.y&&g3)&&((n2=k3[k3.length-2])&&"number"===typeof n2[2]&&(n2[2]+=q2.height||0),(n2=k3[k3.length-1])&&"number"===typeof n2[2]&&(n2[2]+=q2.height||0))}return k3};b3.prototype.drawGraph=function(){F2.prototype.drawGraph.call(this);this.graph&&this.graph.attr({d:this.getCrispPath()})};b3.prototype.setStackedPoints=function(){function a4(a5,b5,c4,e4){if(u2){if(R2)for(c4;c4<R2;c4++)u2.stackState[c4]+=e4;else u2.stackState[0]=a5,R2=u2.stackState.length;u2.stackState.push(u2.stackState[R2-1]+b5)}}var b4=this.options,c3=this.yAxis.waterfall.stacks,e3=b4.threshold||0,d4=e3,f3=d4,g3=this.stackKey,h3=this.xData,k3=h3.length,l3,m3,n2;this.yAxis.stacking.usePercentage=false;var q2=l3=m3=d4;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var p3=c3.changed;(n2=c3.alreadyChanged)&&0>n2.indexOf(g3)&&(p3=true);c3[g3]||(c3[g3]={});if(n2=c3[g3])for(var r3=0;r3<k3;r3++){var w3=h3[r3];if(!n2[w3]||p3)n2[w3]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:p3&&n2[w3]?n2[w3].label:void 0};var u2=n2[w3];var C2=this.yData[r3];0<=C2?u2.posTotal+=C2:u2.negTotal+=C2;var z2=b4.data[r3];w3=u2.absolutePos=u2.posTotal;var O2=u2.absoluteNeg=u2.negTotal;u2.stackTotal=w3+O2;var R2=u2.stackState.length;z2&&z2.isIntermediateSum?(a4(m3,l3,0,m3),m3=l3,l3=e3,d4^=f3,f3^=d4,d4^=f3):z2&&z2.isSum?(a4(e3,q2,R2,0),d4=e3):(a4(d4,C2,0,q2),z2&&(q2+=C2,l3+=C2));u2.stateIndex++;u2.threshold=d4;d4+=u2.stackTotal}c3.changed=false;c3.alreadyChanged||(c3.alreadyChanged=[]);c3.alreadyChanged.push(g3)}};b3.prototype.getExtremes=function(){var a4=this.options.stacking;if(a4){var b4=this.yAxis;b4=b4.waterfall.stacks;var c3=this.stackedYNeg=[];var e3=this.stackedYPos=[];"overlap"===a4?m2(b4[this.stackKey],(function(a5){c3.push(l2(a5.stackState));e3.push(p2(a5.stackState))})):m2(b4[this.stackKey],(function(a5){c3.push(a5.negTotal+a5.threshold);e3.push(a5.posTotal+a5.threshold)}));return{dataMin:l2(c3),dataMax:p2(e3)}}return{dataMin:this.dataMin,dataMax:this.dataMax}};b3.defaultOptions=k2(q.defaultOptions,{dataLabels:{inside:true},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}});return b3}(q);r2(a2.prototype,{getZonesGraphs:F2.prototype.getZonesGraphs,pointValKey:"y",showLine:true,pointClass:w2});d3.registerSeriesType("waterfall",a2);f2.compose(b2,c2);return a2}));D2(d2,"Core/Axis/RadialAxis.js",[d2["Core/Axis/AxisDefaults.js"],d2["Core/Defaults.js"],d2["Core/Globals.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2){var f2=c2.defaultOptions,h2=d3.noop,n2=a2.addEvent,r2=a2.correctFloat,q=a2.defined,F2=a2.extend,p2=a2.fireEvent,l2=a2.merge,e2=a2.pick,g2=a2.relativeLength,k2=a2.wrap,m2;(function(a3){function c3(){this.autoConnect=this.isCircular&&"undefined"===typeof e2(this.userMax,this.options.max)&&r2(this.endAngleRad-this.startAngleRad)===r2(2*Math.PI);!this.isCircular&&this.chart.inverted&&this.max++;this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function d4(){var a4=this;return function(){if(a4.isRadial&&a4.tickPositions&&a4.options.labels&&true!==a4.options.labels.allowOverlap)return a4.tickPositions.map((function(b3){return a4.ticks[b3]&&a4.ticks[b3].label})).filter((function(a5){return!!a5}))}}function m3(){return h2}function v2(a4,b3,c4){var e3=this.pane.center,d5=a4.value;if(this.isCircular){if(q(d5))a4.point&&(f3=a4.point.shapeArgs||{},f3.start&&(d5=this.chart.inverted?this.translate(a4.point.rectPlotY,true):a4.point.x));else{var f3=a4.chartX||0;var g3=a4.chartY||0;d5=this.translate(Math.atan2(g3-c4,f3-b3)-this.startAngleRad,true)}a4=this.getPosition(d5);f3=a4.x;g3=a4.y}else q(d5)||(f3=a4.chartX,g3=a4.chartY),q(f3)&&q(g3)&&(c4=e3[1]+this.chart.plotTop,d5=this.translate(Math.min(Math.sqrt(Math.pow(f3-b3,2)+Math.pow(g3-c4,2)),e3[2]/2)-e3[3]/2,true));return[d5,f3||0,g3||0]}function w2(a4,b3,c4){a4=this.pane.center;var d5=this.chart,f3=this.left||0,g3=this.top||0,h3=e2(b3,a4[2]/2-this.offset);"undefined"===typeof c4&&(c4=this.horiz?0:this.center&&-this.center[3]/2);c4&&(h3+=c4);this.isCircular||"undefined"!==typeof b3?(b3=this.chart.renderer.symbols.arc(f3+a4[0],g3+a4[1],h3,h3,{start:this.startAngleRad,end:this.endAngleRad,open:true,innerR:0}),b3.xBounds=[f3+a4[0]],b3.yBounds=[g3+a4[1]-h3]):(b3=this.postTranslate(this.angleRad,h3),b3=[["M",this.center[0]+d5.plotLeft,this.center[1]+d5.plotTop],["L",b3.x,b3.y]]);return b3}function D3(){this.constructor.prototype.getOffset.call(this);this.chart.axisOffset[this.side]=0}function K(a4,b3,c4){var d5=this.chart,f3=function(a5){if("string"===typeof a5){var b4=parseInt(a5,10);u3.test(a5)&&(b4=b4*C3/100);return b4}return a5},g3=this.center,h3=this.startAngleRad,C3=g3[2]/2,k3=Math.min(this.offset,0),l3=this.left||0,m4=this.top||0,u3=/%$/,z3=this.isCircular,n3=e2(f3(c4.outerRadius),C3),P=f3(c4.innerRadius);f3=e2(f3(c4.thickness),10);if("polygon"===this.options.gridLineInterpolation)k3=this.getPlotLinePath({value:a4}).concat(this.getPlotLinePath({value:b3,reverse:true}));else{a4=Math.max(a4,this.min);b3=Math.min(b3,this.max);a4=this.translate(a4);b3=this.translate(b3);z3||(n3=a4||0,P=b3||0);if("circle"!==c4.shape&&z3)c4=h3+(a4||0),h3+=b3||0;else{c4=-Math.PI/2;h3=1.5*Math.PI;var q2=true}n3-=k3;k3=d5.renderer.symbols.arc(l3+g3[0],m4+g3[1],n3,n3,{start:Math.min(c4,h3),end:Math.max(c4,h3),innerR:e2(P,n3-(f3-k3)),open:q2});z3&&(z3=(h3+c4)/2,l3=l3+g3[0]+g3[2]/2*Math.cos(z3),k3.xBounds=z3>-Math.PI/2&&z3<Math.PI/2?[l3,d5.plotWidth]:[0,l3],k3.yBounds=[m4+g3[1]+g3[2]/2*Math.sin(z3)],k3.yBounds[0]+=z3>-Math.PI&&0>z3||z3>Math.PI?-10:10)}return k3}function x2(a4){var b3=this,c4=this.pane.center,e3=this.chart,d5=e3.inverted,f3=a4.reverse,h3=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},C3=h3.innerRadius||"0%",k3=h3.outerRadius||"100%",l3=c4[0]+e3.plotLeft,m4=c4[1]+e3.plotTop,u3=this.height,z3=a4.isCrosshair;h3=c4[3]/2;var n3=a4.value,P;var q2=this.getPosition(n3);var p3=q2.x;q2=q2.y;z3&&(q2=this.getCrosshairPosition(a4,l3,m4),n3=q2[0],p3=q2[1],q2=q2[2]);if(this.isCircular)n3=Math.sqrt(Math.pow(p3-l3,2)+Math.pow(q2-m4,2)),f3="string"===typeof C3?g2(C3,1):C3/n3,e3="string"===typeof k3?g2(k3,1):k3/n3,c4&&h3&&(h3/=n3,f3<h3&&(f3=h3),e3<h3&&(e3=h3)),c4=[["M",l3+f3*(p3-l3),m4-f3*(m4-q2)],["L",p3-(1-e3)*(p3-l3),q2+(1-e3)*(m4-q2)]];else if((n3=this.translate(n3))&&(0>n3||n3>u3)&&(n3=0),"circle"===this.options.gridLineInterpolation)c4=this.getLinePath(0,n3,h3);else if(c4=[],e3[d5?"yAxis":"xAxis"].forEach((function(a5){a5.pane===b3.pane&&(P=a5)})),P)for(l3=P.tickPositions,P.autoConnect&&(l3=l3.concat([l3[0]])),f3&&(l3=l3.slice().reverse()),n3&&(n3+=h3),m4=0;m4<l3.length;m4++)h3=P.getPosition(l3[m4],n3),c4.push(m4?["L",h3.x,h3.y]:["M",h3.x,h3.y]);return c4}function B(a4,b3){a4=this.translate(a4);return this.postTranslate(this.isCircular?a4:this.angleRad,e2(this.isCircular?b3:0>a4?0:a4,this.center[2]/2)-this.offset)}function y2(){var a4=this.center,b3=this.chart,c4=this.options.title;return{x:b3.plotLeft+a4[0]+(c4.x||0),y:b3.plotTop+a4[1]-{high:.5,middle:.25,low:0}[c4.align]*a4[2]+(c4.y||0)}}function H2(a4){a4.beforeSetTickPositions=c3;a4.createLabelCollector=d4;a4.getCrosshairPosition=v2;a4.getLinePath=w2;a4.getOffset=D3;a4.getPlotBandPath=K;a4.getPlotLinePath=x2;a4.getPosition=B;a4.getTitlePosition=y2;a4.postTranslate=u2;a4.setAxisSize=z2;a4.setAxisTranslation=O2;a4.setOptions=R2}function t2(){var a4=this.chart,b3=this.options,c4=this.pane,d5=c4&&c4.options;a4.angular&&this.isXAxis||!c4||!a4.angular&&!a4.polar||(a4=2*Math.PI,c4=(e2(d5.startAngle,0)-90)*Math.PI/180,d5=(e2(d5.endAngle,e2(d5.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(b3.angle||0)*Math.PI/180,this.startAngleRad=c4,this.endAngleRad=d5,this.offset=b3.offset||0,b3=(c4%a4+a4)%a4,d5=(d5%a4+a4)%a4,b3>Math.PI&&(b3-=a4),d5>Math.PI&&(d5-=a4),this.normalizedStartAngleRad=b3,this.normalizedEndAngleRad=d5)}function J(a4){this.isRadial&&(a4.align=void 0,a4.preventDefault())}function N(){if(this.chart&&this.chart.labelCollectors){var a4=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=a4&&this.chart.labelCollectors.splice(a4,1)}}function U(a4){var c4=this.chart,e3=c4.inverted,d5=c4.angular,f3=c4.polar,g3=this.isXAxis,k3=this.coll,n3=d5&&g3;a4=a4.userOptions.pane||0;a4=this.pane=c4.pane&&c4.pane[a4];var u3;if("colorAxis"===k3)this.isRadial=false;else{if(d5){if(n3?(this.isHidden=true,this.createLabelCollector=m3,this.getOffset=h2,this.render=this.redraw=C2,this.setTitle=this.setCategories=this.setScale=h2):H2(this),u3=!g3)this.defaultPolarOptions=Y}else f3&&(H2(this),this.defaultPolarOptions=(u3=this.horiz)?X:l2("xAxis"===k3?b2.defaultXAxisOptions:b2.defaultYAxisOptions,Z),e3&&"yAxis"===k3&&(this.defaultPolarOptions.stackLabels=b2.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=true));d5||f3?(this.isRadial=true,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&c4.labelCollectors.push(this.labelCollector)):this.isRadial=false;a4&&u3&&(a4.axis=this);this.isCircular=u3}}function A2(){this.isRadial&&this.beforeSetTickPositions()}function M(a4){var b3=this.label;if(b3){var c4=this.axis,d5=b3.getBBox(),f3=c4.options.labels,h3=(c4.translate(this.pos)+c4.startAngleRad+Math.PI/2)/Math.PI*180%360,C3=Math.round(h3),k3=q(f3.y)?0:.3*-d5.height,l3=f3.y,m4=20,u3=f3.align,n3="end",z3=0>C3?C3+360:C3,p3=z3,O3=0,t3=0;if(c4.isRadial){var r3=c4.getPosition(this.pos,c4.center[2]/2+g2(e2(f3.distance,-25),c4.center[2]/2,-c4.center[2]/2));"auto"===f3.rotation?b3.attr({rotation:h3}):q(l3)||(l3=c4.chart.renderer.fontMetrics(b3.styles&&b3.styles.fontSize).b-d5.height/2);q(u3)||(c4.isCircular?(d5.width>c4.len*c4.tickInterval/(c4.max-c4.min)&&(m4=0),u3=h3>m4&&h3<180-m4?"left":h3>180+m4&&h3<360-m4?"right":"center"):u3="center",b3.attr({align:u3}));if("auto"===u3&&2===c4.tickPositions.length&&c4.isCircular){90<z3&&180>z3?z3=180-z3:270<z3&&360>=z3&&(z3=540-z3);180<p3&&360>=p3&&(p3=360-p3);if(c4.pane.options.startAngle===C3||c4.pane.options.startAngle===C3+360||c4.pane.options.startAngle===C3-360)n3="start";u3=-90<=C3&&90>=C3||-360<=C3&&-270>=C3||270<=C3&&360>=C3?"start"===n3?"right":"left":"start"===n3?"left":"right";70<p3&&110>p3&&(u3="center");15>z3||180<=z3&&195>z3?O3=.3*d5.height:15<=z3&&35>=z3?O3="start"===n3?0:.75*d5.height:195<=z3&&215>=z3?O3="start"===n3?.75*d5.height:0:35<z3&&90>=z3?O3="start"===n3?.25*-d5.height:d5.height:215<z3&&270>=z3&&(O3="start"===n3?d5.height:.25*-d5.height);15>p3?t3="start"===n3?.15*-d5.height:.15*d5.height:165<p3&&180>=p3&&(t3="start"===n3?.15*d5.height:.15*-d5.height);b3.attr({align:u3});b3.translate(t3,O3+k3)}a4.pos.x=r3.x+(f3.x||0);a4.pos.y=r3.y+(l3||0)}}}function S2(a4){this.axis.getPosition&&F2(a4.pos,this.axis.getPosition(this.pos))}function u2(a4,b3){var c4=this.chart,e3=this.center;a4=this.startAngleRad+a4;return{x:c4.plotLeft+e3[0]+Math.cos(a4)*b3,y:c4.plotTop+e3[1]+Math.sin(a4)*b3}}function C2(){this.isDirty=false}function z2(){this.constructor.prototype.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);var a4=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var b3=this.postTranslate(this.angleRad,a4[3]/2);a4[0]=b3.x-this.chart.plotLeft;a4[1]=b3.y-this.chart.plotTop}this.len=this.width=this.height=(a4[2]-a4[3])*e2(this.sector,1)/2}}function O2(){this.constructor.prototype.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function R2(a4){a4=this.options=l2(this.constructor.defaultOptions,this.defaultPolarOptions,f2[this.coll],a4);a4.plotBands||(a4.plotBands=[]);p2(this,"afterSetOptions")}function W2(a4,b3,c4,e3,d5,f3,g3){var h3=this.axis;h3.isRadial?(a4=h3.getPosition(this.pos,h3.center[2]/2+e3),b3=["M",b3,c4,"L",a4.x,a4.y]):b3=a4.call(this,b3,c4,e3,d5,f3,g3);return b3}var T2=[],X={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:false,tickLength:0},Y={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},Z={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:false,title:{x:4,text:null,rotation:90}};a3.compose=function(a4,b3){-1===T2.indexOf(a4)&&(T2.push(a4),n2(a4,"afterInit",t2),n2(a4,"autoLabelAlign",J),n2(a4,"destroy",N),n2(a4,"init",U),n2(a4,"initialAxisTranslation",A2));-1===T2.indexOf(b3)&&(T2.push(b3),n2(b3,"afterGetLabelPosition",M),n2(b3,"afterGetPosition",S2),k2(b3.prototype,"getMarkPath",W2));return a4}})(m2||(m2={}));return m2}));D2(d2,"Series/PolarComposition.js",[d2["Core/Animation/AnimationUtilities.js"],d2["Core/Globals.js"],d2["Extensions/Pane.js"],d2["Core/Axis/RadialAxis.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2,f2){function h2(a3,b3,c3,e3){var d4=e3?1:0;var f3=0<=b3&&b3<=a3.length-1?b3:0>b3?a3.length-1+b3:0;b3=0>f3-1?a3.length-(1+d4):f3-1;var g3=a3[b3];d4=a3[f3+1>a3.length-1?d4:f3+1];var C2=g3.plotY;var k3=d4.plotX;var l3=d4.plotY;d4=a3[f3].plotX;f3=a3[f3].plotY;g3=(1.5*d4+g3.plotX)/2.5;C2=(1.5*f3+C2)/2.5;k3=(1.5*d4+k3)/2.5;var m3=(1.5*f3+l3)/2.5;l3=Math.sqrt(Math.pow(g3-d4,2)+Math.pow(C2-f3,2));var z2=Math.sqrt(Math.pow(k3-d4,2)+Math.pow(m3-f3,2));g3=Math.atan2(C2-f3,g3-d4);m3=Math.PI/2+(g3+Math.atan2(m3-f3,k3-d4))/2;Math.abs(g3-m3)>Math.PI/2&&(m3-=Math.PI);g3=d4+Math.cos(m3)*l3;C2=f3+Math.sin(m3)*l3;k3=d4+Math.cos(Math.PI+m3)*z2;m3=f3+Math.sin(Math.PI+m3)*z2;d4={rightContX:k3,rightContY:m3,leftContX:g3,leftContY:C2,plotX:d4,plotY:f3};c3&&(d4.prevPointCont=h2(a3,b3,false,e3));return d4}function n2(){(this.pane||[]).forEach((function(a3){a3.render()}))}function r2(a3){var b3=a3.args[0].xAxis,c3=a3.args[0].yAxis;a3=a3.args[0].chart;b3&&c3&&("polygon"===c3.gridLineInterpolation?(b3.startOnTick=true,b3.endOnTick=true):"polygon"===b3.gridLineInterpolation&&a3.inverted&&(c3.startOnTick=true,c3.endOnTick=true))}function q(){var a3=this;this.pane||(this.pane=[]);this.options.pane=V2(this.options.pane);this.options.pane.forEach((function(b3){new d3(b3,a3)}),this)}function D3(a3){var b3=a3.args.marker,c3=this.chart.xAxis[0],d4=this.chart.yAxis[0],e3=this.chart.inverted,f3=e3?d4:c3;c3=e3?c3:d4;if(this.chart.polar){a3.preventDefault();d4=(b3.attr?b3.attr("start"):b3.start)-f3.startAngleRad;e3=b3.attr?b3.attr("r"):b3.r;var g3=(b3.attr?b3.attr("end"):b3.end)-f3.startAngleRad;b3=b3.attr?b3.attr("innerR"):b3.innerR;a3.result.x=d4+f3.pos;a3.result.width=g3-d4;a3.result.y=c3.len+c3.pos-b3;a3.result.height=b3-e3}}function p2(a3){var b3=this.chart;if(b3.polar&&b3.hoverPane&&b3.hoverPane.axis){a3.preventDefault();var c3=b3.hoverPane.center,d4=this.mouseDownX||0,e3=this.mouseDownY||0,f3=a3.args.chartY,g3=a3.args.chartX,h3=2*Math.PI,l3=b3.hoverPane.axis.startAngleRad,m3=b3.hoverPane.axis.endAngleRad,n3=b3.inverted?b3.xAxis[0]:b3.yAxis[0],u2={},q2="arc";u2.x=c3[0]+b3.plotLeft;u2.y=c3[1]+b3.plotTop;if(this.zoomHor){var p3=0<l3?m3-l3:Math.abs(l3)+Math.abs(m3),t3=Math.atan2(e3-b3.plotTop-c3[1],d4-b3.plotLeft-c3[0])-l3,r3=Math.atan2(f3-b3.plotTop-c3[1],g3-b3.plotLeft-c3[0])-l3;u2.r=c3[2]/2;u2.innerR=c3[3]/2;0>=t3&&(t3+=h3);0>=r3&&(r3+=h3);r3<t3&&(r3=[t3,t3=r3][0]);p3<h3&&l3+r3>m3+(h3-p3)/2&&(r3=t3,t3=0>=l3?l3:0);h3=u2.start=Math.max(t3+l3,l3);t3=u2.end=Math.min(r3+l3,m3);"polygon"===n3.options.gridLineInterpolation&&(r3=b3.hoverPane.axis,p3=h3-r3.startAngleRad+r3.pos,t3-=h3,q2=n3.getPlotLinePath({value:n3.max}),h3=r3.toValue(p3),p3=r3.toValue(p3+t3),h3<r3.getExtremes().min&&(t3=r3.getExtremes(),h3=t3.max-(t3.min-h3)),p3<r3.getExtremes().min&&(t3=r3.getExtremes(),p3=t3.max-(t3.min-p3)),p3<h3&&(p3=[h3,h3=p3][0]),q2=k2(q2,h3,p3,r3),q2.push(["L",c3[0]+b3.plotLeft,b3.plotTop+c3[1]]),u2.d=q2,q2="path")}this.zoomVert&&(r3=b3.inverted?b3.xAxis[0]:b3.yAxis[0],d4=Math.sqrt(Math.pow(d4-b3.plotLeft-c3[0],2)+Math.pow(e3-b3.plotTop-c3[1],2)),f3=Math.sqrt(Math.pow(g3-b3.plotLeft-c3[0],2)+Math.pow(f3-b3.plotTop-c3[1],2)),f3<d4&&(d4=[f3,f3=d4][0]),f3>c3[2]/2&&(f3=c3[2]/2),d4<c3[3]/2&&(d4=c3[3]/2),this.zoomHor||(u2.start=l3,u2.end=m3),u2.r=f3,u2.innerR=d4,"polygon"===r3.options.gridLineInterpolation&&(t3=r3.toValue(r3.len+r3.pos-d4),h3=r3.toValue(r3.len+r3.pos-f3),q2=r3.getPlotLinePath({value:h3}).concat(r3.getPlotLinePath({value:t3,reverse:true})),u2.d=q2,q2="path"));this.zoomHor&&this.zoomVert&&"polygon"===n3.options.gridLineInterpolation&&(r3=b3.hoverPane.axis,h3=u2.start||0,t3=u2.end||0,p3=h3-r3.startAngleRad+r3.pos,t3-=h3,h3=r3.toValue(p3),p3=r3.toValue(p3+t3),u2.d instanceof Array&&(c3=u2.d.slice(0,u2.d.length/2),l3=u2.d.slice(u2.d.length/2,u2.d.length),l3=K([],l3,true).reverse(),b3=b3.hoverPane.axis,c3=k2(c3,h3,p3,b3),(l3=k2(l3,h3,p3,b3))&&(l3[0][0]="L"),l3=K([],l3,true).reverse(),u2.d=c3.concat(l3),q2="path"));a3.attrs=u2;a3.shapeType=q2}}function l2(){var a3=this.chart;a3.polar&&(this.polar=new S2(this),a3.inverted&&(this.isRadialSeries=true,this.is("column")&&(this.isRadialBar=true)))}function e2(){if(this.chart.polar&&this.xAxis){var a3=this.chart;(this.kdByAngle=a3.tooltip&&a3.tooltip.shared)?this.searchPoint=g2:this.options.findNearestPointBy="xy";for(var b3=this.points,d4=b3.length;d4--;)this.preventPostTranslate||this.polar.toXY(b3[d4]),a3.hasParallelCoordinates||this.yAxis.reversed||(J(b3[d4].y,Number.MIN_VALUE)<this.yAxis.min||b3[d4].x<this.xAxis.min||b3[d4].x>this.xAxis.max?(b3[d4].isNull=true,b3[d4].plotY=NaN):b3[d4].isNull=b3[d4].isValid&&!b3[d4].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(B(this,"afterRender",(function(){if(a3.polar){var b4=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:b4[0],y:b4[1],r:b4[2]/2,innerR:b4[3]/2});else{var d5=a3.renderer,e3=b4[0],f3=b4[1],g3=b4[2]/2,h3=b4[3]/2;b4=U();var k3=d5.createElement("clipPath").attr({id:b4}).add(d5.defs);d5=h3?d5.arc(e3,f3,g3,h3,0,2*Math.PI).add(k3):d5.circle(e3,f3,g3).add(k3);d5.id=b4;d5.clipPath=k3;this.clipCircle=d5}this.group.clip(this.clipCircle);this.setClip=c2.noop}}))))}}function g2(a3){var b3=this.chart,c3=this.xAxis;c3=c3.pane&&c3.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a3.chartX-(c3&&c3[0]||0)-b3.plotLeft,a3.chartY-(c3&&c3[1]||0)-b3.plotTop)})}function k2(a3,b3,c3,d4){var e3=d4.tickInterval;d4=d4.tickPositions;var f3=H2(d4,(function(a4){return a4>=c3})),g3=H2(K([],d4,true).reverse(),(function(a4){return a4<=b3}));y2(f3)||(f3=d4[d4.length-1]);y2(g3)||(g3=d4[0],f3+=e3,a3[0][0]="L",a3.unshift(a3[a3.length-3]));a3=a3.slice(d4.indexOf(g3),d4.indexOf(f3)+1);a3[0][0]="M";return a3}function m2(a3,b3){return H2(this.pane||[],(function(a4){return a4.options.id===b3}))||a3.call(this,b3)}function N(a3,b3,c3,d4,e3,f3){var g3=this.chart,h3=J(d4.inside,!!this.options.stacking);g3.polar?(a3=b3.rectPlotX/Math.PI*180,g3.inverted?(this.forceDL=g3.isInsidePlot(b3.plotX,b3.plotY),h3&&b3.shapeArgs?(e3=b3.shapeArgs,e3=this.yAxis.postTranslate(((e3.start||0)+(e3.end||0))/2-this.xAxis.startAngleRad,b3.barX+b3.pointWidth/2),e3={x:e3.x-g3.plotLeft,y:e3.y-g3.plotTop}):b3.tooltipPos&&(e3={x:b3.tooltipPos[0],y:b3.tooltipPos[1]}),d4.align=J(d4.align,"center"),d4.verticalAlign=J(d4.verticalAlign,"middle")):(null===d4.align&&(d4.align=20<a3&&160>a3?"left":200<a3&&340>a3?"right":"center"),null===d4.verticalAlign&&(d4.verticalAlign=45>a3||315<a3?"bottom":135<a3&&225>a3?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,b3,c3,d4,e3,f3),this.isRadialBar&&b3.shapeArgs&&b3.shapeArgs.start===b3.shapeArgs.end?c3.hide():c3.show()):a3.call(this,b3,c3,d4,e3,f3)}function G(a3){var b3=this.options,c3=b3.stacking,d4=this.chart,e3=this.xAxis,g3=this.yAxis,h3=g3.reversed,k3=g3.center,l3=e3.startAngleRad,m3=e3.endAngleRad-l3,n3=0,p3=0,q2=0;this.preventPostTranslate=true;a3.call(this);if(e3.isRadial){a3=this.points;e3=a3.length;var r3=g3.translate(g3.min);var u2=g3.translate(g3.max);b3=b3.threshold||0;d4.inverted&&t2(b3)&&(n3=g3.translate(b3),y2(n3)&&(0>n3?n3=0:n3>m3&&(n3=m3),this.translatedThreshold=n3+l3));for(;e3--;){b3=a3[e3];var v3=b3.barX;var w2=b3.x;var x3=b3.y;b3.shapeType="arc";if(d4.inverted){b3.plotY=g3.translate(x3);c3&&g3.stacking?(x3=g3.stacking.stacks[(0>x3?"-":"")+this.stackKey],this.visible&&x3&&x3[w2]&&!b3.isNull&&(q2=x3[w2].points[this.getStackIndicator(void 0,w2,this.index).key],p3=g3.translate(q2[0]),q2=g3.translate(q2[1]),y2(p3)&&(p3=f2.clamp(p3,0,m3)))):(p3=n3,q2=b3.plotY);p3>q2&&(q2=[p3,p3=q2][0]);if(!h3)if(p3<r3)p3=r3;else if(q2>u2)q2=u2;else{if(q2<r3||p3>u2)p3=q2=0}else if(q2>r3)q2=r3;else if(p3<u2)p3=u2;else if(p3>r3||q2<u2)p3=q2=m3;g3.min>g3.max&&(p3=q2=h3?m3:0);p3+=l3;q2+=l3;k3&&(b3.barX=v3+=k3[3]/2);w2=Math.max(v3,0);x3=Math.max(v3+b3.pointWidth,0);b3.shapeArgs={x:k3&&k3[0],y:k3&&k3[1],r:x3,innerR:w2,start:p3,end:q2};b3.opacity=p3===q2?0:void 0;b3.plotY=(y2(this.translatedThreshold)&&(p3<this.translatedThreshold?p3:q2))-l3}else p3=v3+l3,b3.shapeArgs=this.polar.arc(b3.yBottom,b3.plotY,p3,p3+b3.pointWidth);this.polar.toXY(b3);d4.inverted?(v3=g3.postTranslate(b3.rectPlotY,v3+b3.pointWidth/2),b3.tooltipPos=[v3.x-d4.plotLeft,v3.y-d4.plotTop]):b3.tooltipPos=[b3.plotX,b3.plotY];k3&&(b3.ttBelow=b3.plotY>k3[1])}}}function L2(a3,b3){var c3=this;if(this.chart.polar){b3=b3||this.points;for(var d4=0;d4<b3.length;d4++)if(!b3[d4].isNull){var e3=d4;break}if(false!==this.options.connectEnds&&"undefined"!==typeof e3){this.connectEnds=true;b3.splice(b3.length,0,b3[e3]);var f3=true}b3.forEach((function(a4){"undefined"===typeof a4.polarPlotY&&c3.polar.toXY(a4)}))}e3=a3.apply(this,[].slice.call(arguments,1));f3&&b3.pop();return e3}function E2(a3,b3){var c3=this.chart,d4={xAxis:[],yAxis:[]};c3.polar?c3.axes.forEach((function(a4){if("colorAxis"!==a4.coll){var e3=a4.isXAxis,f3=a4.center,g3=b3.chartX-f3[0]-c3.plotLeft;f3=b3.chartY-f3[1]-c3.plotTop;d4[e3?"xAxis":"yAxis"].push({axis:a4,value:a4.translate(e3?Math.PI-Math.atan2(g3,f3):Math.sqrt(Math.pow(g3,2)+Math.pow(f3,2)),true)})}})):d4=a3.call(this,b3);return d4}function v2(a3,b3){this.chart.polar||a3.call(this,b3)}function Q(a3,b3){var d4=this,e3=this.chart,f3=this.group,g3=this.markerGroup,h3=this.xAxis&&this.xAxis.center,k3=e3.plotLeft,l3=e3.plotTop,m3=this.options.animation,n3,p3,q2,r3;if(e3.polar)if(d4.isRadialBar)b3||(d4.startAngleRad=J(d4.translatedThreshold,d4.xAxis.startAngleRad),c2.seriesTypes.pie.prototype.animate.call(d4,b3));else{if(e3.renderer.isSVG)if(m3=x2(m3),d4.is("column")){if(!b3){var t3=h3[3]/2;d4.points.forEach((function(a4){n3=a4.graphic;q2=(p3=a4.shapeArgs)&&p3.r;r3=p3&&p3.innerR;n3&&p3&&(n3.attr({r:t3,innerR:t3}),n3.animate({r:q2,innerR:r3},d4.options.animation))}))}}else b3?(a3={translateX:h3[0]+k3,translateY:h3[1]+l3,scaleX:.001,scaleY:.001},f3.attr(a3),g3&&g3.attr(a3)):(a3={translateX:k3,translateY:l3,scaleX:1,scaleY:1},f3.animate(a3,m3),g3&&g3.animate(a3,m3))}else a3.call(this,b3)}function I(a3,b3,c3,d4){this.chart.polar?d4?(a3=h2(b3,d4,true,this.connectEnds),b3=a3.prevPointCont&&a3.prevPointCont.rightContX,c3=a3.prevPointCont&&a3.prevPointCont.rightContY,a3=["C",t2(b3)?b3:a3.plotX,t2(c3)?c3:a3.plotY,t2(a3.leftContX)?a3.leftContX:a3.plotX,t2(a3.leftContY)?a3.leftContY:a3.plotY,a3.plotX,a3.plotY]):a3=["M",c3.plotX,c3.plotY]:a3=a3.call(this,b3,c3,d4);return a3}var K=this&&this.__spreadArray||function(a3,b3,c3){if(c3||2===arguments.length)for(var d4=0,e3=b3.length,f3;d4<e3;d4++)!f3&&d4 in b3||(f3||(f3=Array.prototype.slice.call(b3,0,d4)),f3[d4]=b3[d4]);return a3.concat(f3||Array.prototype.slice.call(b3))},x2=b2.animObject,B=f2.addEvent,y2=f2.defined,H2=f2.find,t2=f2.isNumber,J=f2.pick,V2=f2.splat,U=f2.uniqueKey,A2=f2.wrap,M=[],S2=function(){function b3(a3){this.series=a3}b3.compose=function(b4,c3,d4,f3,g3,h3,k3,t3,u2){a2.compose(b4,g3);-1===M.indexOf(c3)&&(M.push(c3),B(c3,"afterDrawChartBox",n2),B(c3,"getAxes",q),B(c3,"init",r2),A2(c3.prototype,"get",m2));-1===M.indexOf(d4)&&(M.push(d4),b4=d4.prototype,A2(b4,"getCoordinates",E2),A2(b4,"pinch",v2),B(d4,"getSelectionMarkerAttrs",p2),B(d4,"getSelectionBox",D3));-1===M.indexOf(f3)&&(M.push(f3),B(f3,"afterInit",l2),B(f3,"afterTranslate",e2,{order:2}),A2(f3.prototype,"animate",Q));k3&&-1===M.indexOf(k3)&&(M.push(k3),d4=k3.prototype,A2(d4,"alignDataLabel",N),A2(d4,"animate",Q),A2(d4,"translate",G));t3&&-1===M.indexOf(t3)&&(M.push(t3),A2(t3.prototype,"getGraphPath",L2));u2&&-1===M.indexOf(u2)&&(M.push(u2),t3=u2.prototype,A2(t3,"getPointSpline",I),h3&&-1===M.indexOf(h3)&&(M.push(h3),h3.prototype.getPointSpline=t3.getPointSpline))};b3.prototype.arc=function(a3,b4,c3,d4){var e3=this.series,f3=e3.xAxis.center,g3=e3.yAxis.len,h3=f3[3]/2;b4=g3-b4+h3;a3=g3-J(a3,g3)+h3;e3.yAxis.reversed&&(0>b4&&(b4=h3),0>a3&&(a3=h3));return{x:f3[0],y:f3[1],r:b4,innerR:a3,start:c3,end:d4}};b3.prototype.toXY=function(a3){var b4=this.series,c3=b4.chart,d4=b4.xAxis,e3=b4.yAxis,f3=a3.plotX,g3=c3.inverted,h3=a3.y,k3=a3.plotY,l3=g3?f3:e3.len-k3;g3&&b4&&!b4.isRadialBar&&(a3.plotY=k3=t2(h3)?e3.translate(h3):0);a3.rectPlotX=f3;a3.rectPlotY=k3;e3.center&&(l3+=e3.center[3]/2);t2(k3)&&(e3=g3?e3.postTranslate(k3,l3):d4.postTranslate(f3,l3),a3.plotX=a3.polarPlotX=e3.x-c3.plotLeft,a3.plotY=a3.polarPlotY=e3.y-c3.plotTop);b4.kdByAngle?(b4=(f3/Math.PI*180+d4.pane.options.startAngle)%360,0>b4&&(b4+=360),a3.clientX=b4):a3.clientX=a3.plotX};return b3}();return S2}));D2(d2,"masters/highcharts-more.src.js",[d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Series/Bubble/BubbleSeries.js"],d2["Series/PackedBubble/PackedBubbleSeries.js"],d2["Series/PolarComposition.js"]],(function(b2,c2,d3,a2,f2){d3.compose(b2.Axis,b2.Chart,b2.Legend,b2.Series);a2.compose(b2.Axis,b2.Chart,b2.Legend,b2.Series);f2.compose(b2.Axis,b2.Chart,b2.Pointer,b2.Series,b2.Tick,c2.seriesTypes.areasplinerange,c2.seriesTypes.column,c2.seriesTypes.line,c2.seriesTypes.spline)}))}))})(highchartsMore$1);var highchartsMoreExports=highchartsMore$1.exports;const highchartsMore=getDefaultExportFromCjs(highchartsMoreExports);const alignBlockElement=event2=>{const itemToMove=document.querySelector(`#wrapper-circle-chart-${event2.target.renderTo.id} .pb-circle-chart-block`);const chartContainer=document.querySelector(`#${event2.target.renderTo.id}`);if(itemToMove!==null&&chartContainer!==null){itemToMove.style.height=`${event2.target.chartHeight}px`;itemToMove.style.width=`${event2.target.chartWidth}px`;if(chartContainer.firstChild!==null){chartContainer.firstChild.before(itemToMove)}}};const CircleChart=({align:align="center",aria:aria={},rounded:rounded=false,borderColor:borderColor=(rounded?null:""),borderWidth:borderWidth=(rounded?20:null),chartData:chartData,children:children,className:className,colors:colors2=[],customOptions:customOptions={},dark:dark=false,data:data={},dataLabelHtml:dataLabelHtml="<div>{point.name}</div>",dataLabels:dataLabels=false,height:height,htmlOptions:htmlOptions={},id:id,innerSize:innerSize="md",legend:legend=false,maxPointSize:maxPointSize=null,minPointSize:minPointSize=null,startAngle:startAngle=null,style:style="pie",title:title,tooltipHtml:tooltipHtml,useHtml:useHtml=false,zMin:zMin=null,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x2=0,y:y2=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);highchartsMore(Highcharts$1);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();Highcharts$1.setOptions({tooltip:{headerFormat:null,pointFormat:tooltipHtml?tooltipHtml:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',useHTML:useHtml}});const innerSizes={sm:"35%",md:"50%",lg:"85%",none:"0%"};const innerSizeFormat=size=>innerSizes[size];const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={title:{text:title},chart:{height:height,type:style,events:{render:event2=>alignBlockElement(event2),redraw:event2=>alignBlockElement(event2)}},legend:{align:align,verticalAlign:verticalAlign,layout:layout,x:x2,y:y2},plotOptions:{pie:{colors:colors2.length>0?mapColors(colors2):highchartsTheme.colors,dataLabels:{enabled:dataLabels,connectorShape:"straight",connectorWidth:3,format:dataLabelHtml},showInLegend:legend}},series:[{minPointSize:minPointSize,maxPointSize:maxPointSize,innerSize:borderWidth==20?"100%":innerSizeFormat(innerSize),data:formattedChartData,zMin:zMin,startAngle:startAngle,borderWidth:borderWidth,borderColor:borderColor}],credits:false};setOptions(lodashExports.merge(staticOptions,customOptions))}),[chartData]);return jsx$1(Fragment,{children:children?jsxs("div",{id:`wrapper-circle-chart-${id}`,children:[jsx$1(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2}),jsx$1("div",{className:"pb-circle-chart-block",children:children})]}):jsx$1(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})})};const CircleIconButton=props=>{const{aria:aria={},className:className,dark:dark,data:data={},disabled:disabled,htmlOptions:htmlOptions={},icon:icon,id:id,onClick:onClick=noop$3,type:type,link:link,newWindow:newWindow,variant:variant}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_circle_icon_button_kit"),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Button,{dark:dark,disabled:disabled,htmlType:type,link:link,newWindow:newWindow,onClick:onClick,text:null,variant:variant,children:jsx$1(Icon,{fixedWidth:true,icon:icon})})})};const showElement=elem=>{elem.style.display="block";const height=elem.scrollHeight+"px";elem.style.height=height;elem.classList.add("is-visible");elem.style.overflow="hidden";window.setTimeout((()=>{elem.style.height="";elem.style.overflow="visible"}),300)};const hideElement=elem=>{elem.style.height=elem.scrollHeight+"px";window.setTimeout((()=>{elem.style.height="0";elem.style.paddingTop="0";elem.style.paddingBottom="0";elem.style.overflow="hidden"}),1);window.setTimeout((()=>{elem.classList.remove("is-visible");elem.style.overflow=""}),300)};const CollapsibleContext=createContext({});const CollapsibleContent=({children:children,className:className,...props})=>{const context=useContext(CollapsibleContext);const contentCSS=buildCss("pb_collapsible_content_kit");const contentSpacing=globalProps(props);const contentRef=useRef(null);useEffect((()=>{if(contentRef.current){if(context.collapsed){hideElement(contentRef.current)}else{showElement(contentRef.current)}}}),[context.collapsed]);return jsx$1("div",{className:classnames(contentCSS,contentSpacing,"toggle-content",className),"data-collapsible-content":"true",ref:contentRef,children:children})};const colorMap={default:"#242B42",light:"#687887",lighter:"#C1CDD6",link:"#0056CF",error:"#FF2229",success:"#00CA74"};const CollapsibleIcon=({collapsed:collapsed,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick})=>{const color=colorMap[iconColor];const showIcon=icon2=>{if(typeof icon2==="string"){return[icon2,icon2]}return icon2};const handleIconClick=e2=>{if(onIconClick){e2.stopPropagation();onIconClick()}};return jsx$1(Fragment,{children:collapsed?jsx$1("div",{className:"icon_wrapper",onClick:e2=>handleIconClick(e2),style:{verticalAlign:"middle",color:color},children:jsx$1(Icon,{icon:icon?showIcon(icon)[0]:"chevron-down",size:iconSize})},icon?showIcon(icon)[0]:"chevron-down"):jsx$1("div",{className:"icon_wrapper",onClick:e2=>handleIconClick(e2),style:{verticalAlign:"middle",color:color},children:jsx$1(Icon,{icon:icon?showIcon(icon)[1]:"chevron-up",size:iconSize})},icon?showIcon(icon)[1]:"chevron-up")})};const CollapsibleMain=({children:children,className:className,cursor:cursor2="pointer",...props})=>{const{collapsed:collapsed,toggle:toggle,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick,onClick:onClick}=useContext(CollapsibleContext);const mainCSS=buildCss("pb_collapsible_main_kit");const mainSpacing=globalProps(props,{cursor:cursor2});const handleCollapsibleClick=()=>{onClick&&onClick();const disableToggle=onClick&&onClick();if(disableToggle!==true){toggle()}};return jsx$1("div",{className:classnames(mainCSS,mainSpacing,className),children:jsx$1("div",{onClick:handleCollapsibleClick,children:jsxs(Flex,{spacing:"between",vertical:"center",children:[jsx$1(FlexItem,{children:children}),jsx$1(FlexItem,{children:jsx$1(CollapsibleIcon,{collapsed:collapsed,icon:icon,iconColor:iconColor,iconSize:iconSize,onIconClick:onIconClick})})]})})})};const Collapsible=({aria:aria={},className:className,children:children,collapsed:collapsed=true,data:data={},htmlOptions:htmlOptions={},icon:icon,iconColor:iconColor="default",iconSize:iconSize,onIconClick:onIconClick,onClick:onClick,id:id,...props})=>{const[isCollapsed,toggle,setIsCollapsed]=useCollapsible(collapsed);useEffect((()=>{setIsCollapsed(collapsed)}),[collapsed]);if(children.length!==2){throw new Error("Collapsible requires <CollapsibleMain> and <CollapsibleContent> to function properly.")}const FirstChild=children[0];const Main=FirstChild.type===CollapsibleMain?FirstChild:null;const Content=children[1];const{children:mainChildren=null,...mainProps}=Main?Main.props:{};const{children:contentChildren,...contentProps}=Content.props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_collapsible_kit"),globalProps(props),className);return jsx$1(CollapsibleContext.Provider,{value:{collapsed:isCollapsed,toggle:toggle,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick,onClick:onClick},children:jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[Main?jsx$1(CollapsibleMain,{...mainProps,children:mainChildren}):FirstChild,jsx$1(CollapsibleContent,{...contentProps,children:contentChildren})]})})};Collapsible.Main=CollapsibleMain;Collapsible.Content=CollapsibleContent;Collapsible.Icon=CollapsibleIcon;const Title=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color,data:data={},htmlOptions:htmlOptions={},id:id,size:size=3,bold:bold=true,tag:tag="h3",text:text2,variant:variant=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const getBold=bold?"":"thin";const isSizeNumberOrString=typeof size==="number"||typeof size==="string";const buildResponsiveSizeCss=()=>{let css4="";if(!isSizeNumberOrString){Object.entries(size).forEach((sizeObj=>{css4+=`pb_title_kit_${sizeObj[0]}_${sizeObj[1]} `}))}return css4.trim()};const classes=classnames(buildCss("pb_title_kit",isSizeNumberOrString?`size_${size}`:"",variant,color,getBold),globalProps(props),buildResponsiveSizeCss(),className);const Tag=`${tag}`;return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})};const FlexItem=props=>{const{children:children,className:className,fixedSize:fixedSize,grow:grow,htmlOptions:htmlOptions={},shrink:shrink,flex:flex="none",order:order="none",alignSelf:alignSelf,displayFlex:displayFlex}=props;const growClass=grow===true?"grow":"";const displayFlexClass=displayFlex===true?`display_flex_${displayFlex}`:"";const flexClass=flex!=="none"?`flex_${flex}`:"";const shrinkClass=shrink===true?"shrink":"";const alignSelfClass=alignSelf?`align_self_${alignSelf}`:"";const fixedStyle=fixedSize!==void 0?{flexBasis:`${fixedSize}`}:null;const orderClass=order!=="none"?`order_${order}`:null;const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",{...htmlProps,className:classnames(buildCss("pb_flex_item_kit",growClass,shrinkClass,flexClass,displayFlexClass),orderClass,alignSelfClass,globalProps(props),className),style:fixedStyle,children:children})};const sizes={sm:4,md:3};const DateStacked=props=>{const{align:align="left",bold:bold=false,reverse:reverse=false,className:className,dark:dark=false,date:date,data:data={},htmlOptions:htmlOptions={},size:size="sm"}=props;const classes=classnames(buildCss("pb_date_stacked_kit",align,size,{dark:dark,reverse:reverse}),globalProps(props),className);const currentYear=(new Date).getFullYear();const inputYear=DateTime.toYear(date);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1(Fragment,{children:bold==false?jsxs("div",{...dataProps,...htmlProps,className:classes,children:[jsxs("div",{className:"pb_date_stacked_day_month",children:[jsx$1(Caption,{text:DateTime.toMonth(date).toUpperCase()}),jsx$1(Title,{dark:dark,size:sizes[size],text:DateTime.toDay(date).toString()})]}),currentYear!=inputYear&&jsx$1(Caption,{size:"xs",children:inputYear})]}):jsx$1("div",{...dataProps,...htmlProps,className:classes,children:jsxs("div",{className:"pb_date_stacked_day_month",children:[jsx$1(Title,{bold:true,dark:dark,size:"4",text:DateTime.toMonth(date)}),jsx$1(Title,{bold:true,dark:dark,size:"4",text:DateTime.toDay(date).toString()}),currentYear!=inputYear&&jsx$1(Title,{size:"4",children:inputYear})]})})})};const SectionSeparator=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,lineStyle:lineStyle="solid",orientation:orientation="horizontal",text:text2,dark:dark=false,variant:variant="card"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_section_separator_kit",variant,orientation,lineStyle==="dashed"?lineStyle:""),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children&&children||text2&&jsx$1("span",{children:jsx$1(Caption,{dark:dark,text:text2})})})};var lib={exports:{}};var Modal$2={};var propTypes={exports:{}};var ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var ReactPropTypesSecret_1=ReactPropTypesSecret$1;var ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return}var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");err.name="Invariant Violation";throw err}shim.isRequired=shim;function getShim(){return shim}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes};{propTypes.exports=factoryWithThrowingShims()}var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var ModalPortal={exports:{}};var focusManager={};var tabbable={exports:{}};(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=findTabbableDescendants;
27
- /*!
28
- * Adapted from jQuery UI core
29
- *
30
- * http://jqueryui.com
31
- *
32
- * Copyright 2014 jQuery Foundation and other contributors
33
- * Released under the MIT license.
34
- * http://jquery.org/license
35
- *
36
- * http://api.jqueryui.com/category/ui-core/
37
- */var DISPLAY_NONE="none";var DISPLAY_CONTENTS="contents";var tabbableNode=/input|select|textarea|button|object|iframe/;function isNotOverflowing(element,style){return style.getPropertyValue("overflow")!=="visible"||element.scrollWidth<=0&&element.scrollHeight<=0}function hidesContents(element){var zeroSize=element.offsetWidth<=0&&element.offsetHeight<=0;if(zeroSize&&!element.innerHTML)return true;try{var style=window.getComputedStyle(element);var displayValue=style.getPropertyValue("display");return zeroSize?displayValue!==DISPLAY_CONTENTS&&isNotOverflowing(element,style):displayValue===DISPLAY_NONE}catch(exception){console.warn("Failed to inspect element style");return false}}function visible(element){var parentElement=element;var rootNode=element.getRootNode&&element.getRootNode();while(parentElement){if(parentElement===document.body)break;if(rootNode&&parentElement===rootNode)parentElement=rootNode.host.parentNode;if(hidesContents(parentElement))return false;parentElement=parentElement.parentNode}return true}function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();var res=tabbableNode.test(nodeName)&&!element.disabled||(nodeName==="a"?element.href||isTabIndexNotNaN:isTabIndexNotNaN);return res&&visible(element)}function tabbable2(element){var tabIndex=element.getAttribute("tabindex");if(tabIndex===null)tabIndex=void 0;var isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)}function findTabbableDescendants(element){var descendants=[].slice.call(element.querySelectorAll("*"),0).reduce((function(finished,el){return finished.concat(!el.shadowRoot?[el]:findTabbableDescendants(el.shadowRoot))}),[]);return descendants.filter(tabbable2)}module.exports=exports["default"]})(tabbable,tabbable.exports);var tabbableExports=tabbable.exports;Object.defineProperty(focusManager,"__esModule",{value:true});focusManager.resetState=resetState$4;focusManager.log=log$6;focusManager.handleBlur=handleBlur;focusManager.handleFocus=handleFocus;focusManager.markForFocusLater=markForFocusLater;focusManager.returnFocus=returnFocus;focusManager.popWithoutFocus=popWithoutFocus;focusManager.setupScopedFocus=setupScopedFocus;focusManager.teardownScopedFocus=teardownScopedFocus;var _tabbable=tabbableExports;var _tabbable2=_interopRequireDefault$4(_tabbable);function _interopRequireDefault$4(obj){return obj&&obj.__esModule?obj:{default:obj}}var focusLaterElements=[];var modalElement=null;var needToFocus=false;function resetState$4(){focusLaterElements=[]}function log$6(){}function handleBlur(){needToFocus=true}function handleFocus(){if(needToFocus){needToFocus=false;if(!modalElement){return}setTimeout((function(){if(modalElement.contains(document.activeElement)){return}var el=(0,_tabbable2.default)(modalElement)[0]||modalElement;el.focus()}),0)}}function markForFocusLater(){focusLaterElements.push(document.activeElement)}function returnFocus(){var preventScroll=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var toFocus=null;try{if(focusLaterElements.length!==0){toFocus=focusLaterElements.pop();toFocus.focus({preventScroll:preventScroll})}return}catch(e2){console.warn(["You tried to return focus to",toFocus,"but it is not in the DOM anymore"].join(" "))}}function popWithoutFocus(){focusLaterElements.length>0&&focusLaterElements.pop()}function setupScopedFocus(element){modalElement=element;if(window.addEventListener){window.addEventListener("blur",handleBlur,false);document.addEventListener("focus",handleFocus,true)}else{window.attachEvent("onBlur",handleBlur);document.attachEvent("onFocus",handleFocus)}}function teardownScopedFocus(){modalElement=null;if(window.addEventListener){window.removeEventListener("blur",handleBlur);document.removeEventListener("focus",handleFocus)}else{window.detachEvent("onBlur",handleBlur);document.detachEvent("onFocus",handleFocus)}}var scopeTab={exports:{}};(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=scopeTab2;var _tabbable3=tabbableExports;var _tabbable22=_interopRequireDefault2(_tabbable3);function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}function getActiveElement(){var el=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return el.activeElement.shadowRoot?getActiveElement(el.activeElement.shadowRoot):el.activeElement}function scopeTab2(node2,event2){var tabbable2=(0,_tabbable22.default)(node2);if(!tabbable2.length){event2.preventDefault();return}var target=void 0;var shiftKey=event2.shiftKey;var head=tabbable2[0];var tail=tabbable2[tabbable2.length-1];var activeElement=getActiveElement();if(node2===activeElement){if(!shiftKey)return;target=tail}if(tail===activeElement&&!shiftKey){target=head}if(head===activeElement&&shiftKey){target=tail}if(target){event2.preventDefault();target.focus();return}var checkSafari=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);var isSafariDesktop=checkSafari!=null&&checkSafari[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!isSafariDesktop)return;var x2=tabbable2.indexOf(activeElement);if(x2>-1){x2+=shiftKey?-1:1}target=tabbable2[x2];if(typeof target==="undefined"){event2.preventDefault();target=shiftKey?tail:head;target.focus();return}event2.preventDefault();target.focus()}module.exports=exports["default"]})(scopeTab,scopeTab.exports);var scopeTabExports=scopeTab.exports;var ariaAppHider$1={};var warning=function(){};var warning_1=warning;const warning$1=getDefaultExportFromCjs(warning_1);var safeHTMLElement={};var exenv={exports:{}};
38
- /*!
39
- Copyright (c) 2015 Jed Watson.
40
- Based on code that is Copyright 2013-2015, Facebook, Inc.
41
- All rights reserved.
42
- */(function(module){(function(){var canUseDOM2=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var ExecutionEnvironment2={canUseDOM:canUseDOM2,canUseWorkers:typeof Worker!=="undefined",canUseEventListeners:canUseDOM2&&!!(window.addEventListener||window.attachEvent),canUseViewport:canUseDOM2&&!!window.screen};if(module.exports){module.exports=ExecutionEnvironment2}else{window.ExecutionEnvironment=ExecutionEnvironment2}})()})(exenv);var exenvExports=exenv.exports;const ExecutionEnvironment=getDefaultExportFromCjs(exenvExports);Object.defineProperty(safeHTMLElement,"__esModule",{value:true});safeHTMLElement.canUseDOM=safeHTMLElement.SafeNodeList=safeHTMLElement.SafeHTMLCollection=void 0;var _exenv=exenvExports;var _exenv2=_interopRequireDefault$3(_exenv);function _interopRequireDefault$3(obj){return obj&&obj.__esModule?obj:{default:obj}}var EE=_exenv2.default;var SafeHTMLElement=EE.canUseDOM?window.HTMLElement:{};safeHTMLElement.SafeHTMLCollection=EE.canUseDOM?window.HTMLCollection:{};safeHTMLElement.SafeNodeList=EE.canUseDOM?window.NodeList:{};safeHTMLElement.canUseDOM=EE.canUseDOM;safeHTMLElement.default=SafeHTMLElement;Object.defineProperty(ariaAppHider$1,"__esModule",{value:true});ariaAppHider$1.resetState=resetState$3;ariaAppHider$1.log=log$5;ariaAppHider$1.assertNodeList=assertNodeList;ariaAppHider$1.setElement=setElement;ariaAppHider$1.validateElement=validateElement;ariaAppHider$1.hide=hide$1;ariaAppHider$1.show=show;ariaAppHider$1.documentNotReadyOrSSRTesting=documentNotReadyOrSSRTesting;var _warning=warning_1;var _warning2=_interopRequireDefault$2(_warning);var _safeHTMLElement$1=safeHTMLElement;function _interopRequireDefault$2(obj){return obj&&obj.__esModule?obj:{default:obj}}var globalElement=null;function resetState$3(){if(globalElement){if(globalElement.removeAttribute){globalElement.removeAttribute("aria-hidden")}else if(globalElement.length!=null){globalElement.forEach((function(element){return element.removeAttribute("aria-hidden")}))}else{document.querySelectorAll(globalElement).forEach((function(element){return element.removeAttribute("aria-hidden")}))}}globalElement=null}function log$5(){}function assertNodeList(nodeList,selector){if(!nodeList||!nodeList.length){throw new Error("react-modal: No elements were found for selector "+selector+".")}}function setElement(element){var useElement=element;if(typeof useElement==="string"&&_safeHTMLElement$1.canUseDOM){var el=document.querySelectorAll(useElement);assertNodeList(el,useElement);useElement=el}globalElement=useElement||globalElement;return globalElement}function validateElement(appElement){var el=appElement||globalElement;if(el){return Array.isArray(el)||el instanceof HTMLCollection||el instanceof NodeList?el:[el]}else{(0,_warning2.default)(false,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" "));return[]}}function hide$1(appElement){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=void 0;try{for(var _iterator=validateElement(appElement)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var el=_step.value;el.setAttribute("aria-hidden","true")}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}function show(appElement){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=void 0;try{for(var _iterator2=validateElement(appElement)[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var el=_step2.value;el.removeAttribute("aria-hidden")}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}function documentNotReadyOrSSRTesting(){globalElement=null}var classList={};Object.defineProperty(classList,"__esModule",{value:true});classList.resetState=resetState$2;classList.log=log$4;var htmlClassList={};var docBodyClassList={};function removeClass(at,cls){at.classList.remove(cls)}function resetState$2(){var htmlElement=document.getElementsByTagName("html")[0];for(var cls in htmlClassList){removeClass(htmlElement,htmlClassList[cls])}var body=document.body;for(var _cls in docBodyClassList){removeClass(body,docBodyClassList[_cls])}htmlClassList={};docBodyClassList={}}function log$4(){}var incrementReference=function incrementReference2(poll,className){if(!poll[className]){poll[className]=0}poll[className]+=1;return className};var decrementReference=function decrementReference2(poll,className){if(poll[className]){poll[className]-=1}return className};var trackClass=function trackClass2(classListRef,poll,classes){classes.forEach((function(className){incrementReference(poll,className);classListRef.add(className)}))};var untrackClass=function untrackClass2(classListRef,poll,classes){classes.forEach((function(className){decrementReference(poll,className);poll[className]===0&&classListRef.remove(className)}))};classList.add=function add2(element,classString){return trackClass(element.classList,element.nodeName.toLowerCase()=="html"?htmlClassList:docBodyClassList,classString.split(" "))};classList.remove=function remove2(element,classString){return untrackClass(element.classList,element.nodeName.toLowerCase()=="html"?htmlClassList:docBodyClassList,classString.split(" "))};var portalOpenInstances$1={};Object.defineProperty(portalOpenInstances$1,"__esModule",{value:true});portalOpenInstances$1.log=log$3;portalOpenInstances$1.resetState=resetState$1;function _classCallCheck$4(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var PortalOpenInstances=function PortalOpenInstances2(){var _this=this;_classCallCheck$4(this,PortalOpenInstances2);this.register=function(openInstance){if(_this.openInstances.indexOf(openInstance)!==-1){return}_this.openInstances.push(openInstance);_this.emit("register")};this.deregister=function(openInstance){var index2=_this.openInstances.indexOf(openInstance);if(index2===-1){return}_this.openInstances.splice(index2,1);_this.emit("deregister")};this.subscribe=function(callback){_this.subscribers.push(callback)};this.emit=function(eventType){_this.subscribers.forEach((function(subscriber){return subscriber(eventType,_this.openInstances.slice())}))};this.openInstances=[];this.subscribers=[]};var portalOpenInstances=new PortalOpenInstances;function log$3(){console.log("portalOpenInstances ----------");console.log(portalOpenInstances.openInstances.length);portalOpenInstances.openInstances.forEach((function(p2){return console.log(p2)}));console.log("end portalOpenInstances ----------")}function resetState$1(){portalOpenInstances=new PortalOpenInstances}portalOpenInstances$1.default=portalOpenInstances;var bodyTrap$1={};Object.defineProperty(bodyTrap$1,"__esModule",{value:true});bodyTrap$1.resetState=resetState;bodyTrap$1.log=log$2;var _portalOpenInstances=portalOpenInstances$1;var _portalOpenInstances2=_interopRequireDefault$1(_portalOpenInstances);function _interopRequireDefault$1(obj){return obj&&obj.__esModule?obj:{default:obj}}var before=void 0,after=void 0,instances=[];function resetState(){var _arr=[before,after];for(var _i=0;_i<_arr.length;_i++){var item=_arr[_i];if(!item)continue;item.parentNode&&item.parentNode.removeChild(item)}before=after=null;instances=[]}function log$2(){console.log("bodyTrap ----------");console.log(instances.length);var _arr2=[before,after];for(var _i2=0;_i2<_arr2.length;_i2++){var item=_arr2[_i2];var check=item||{};console.log(check.nodeName,check.className,check.id)}console.log("edn bodyTrap ----------")}function focusContent(){if(instances.length===0){return}instances[instances.length-1].focusContent()}function bodyTrap(eventType,openInstances){if(!before&&!after){before=document.createElement("div");before.setAttribute("data-react-modal-body-trap","");before.style.position="absolute";before.style.opacity="0";before.setAttribute("tabindex","0");before.addEventListener("focus",focusContent);after=before.cloneNode();after.addEventListener("focus",focusContent)}instances=openInstances;if(instances.length>0){if(document.body.firstChild!==before){document.body.insertBefore(before,document.body.firstChild)}if(document.body.lastChild!==after){document.body.appendChild(after)}}else{if(before.parentElement){before.parentElement.removeChild(before)}if(after.parentElement){after.parentElement.removeChild(after)}}}_portalOpenInstances2.default.subscribe(bodyTrap);(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _extends2=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _typeof2=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var _createClass2=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _react3=React__default;var _propTypes3=propTypesExports;var _propTypes22=_interopRequireDefault2(_propTypes3);var _focusManager=focusManager;var focusManager$1=_interopRequireWildcard2(_focusManager);var _scopeTab=scopeTabExports;var _scopeTab2=_interopRequireDefault2(_scopeTab);var _ariaAppHider2=ariaAppHider$1;var ariaAppHider2=_interopRequireWildcard2(_ariaAppHider2);var _classList=classList;var classList$1=_interopRequireWildcard2(_classList);var _safeHTMLElement3=safeHTMLElement;var _safeHTMLElement22=_interopRequireDefault2(_safeHTMLElement3);var _portalOpenInstances3=portalOpenInstances$1;var _portalOpenInstances22=_interopRequireDefault2(_portalOpenInstances3);function _interopRequireWildcard2(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck2(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn2(self2,call){if(!self2){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self2}function _inherits2(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var CLASS_NAMES={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};var isTabKey=function isTabKey2(event2){return event2.code==="Tab"||event2.keyCode===9};var isEscKey=function isEscKey2(event2){return event2.code==="Escape"||event2.keyCode===27};var ariaHiddenInstances=0;var ModalPortal2=function(_Component){_inherits2(ModalPortal22,_Component);function ModalPortal22(props){_classCallCheck2(this,ModalPortal22);var _this=_possibleConstructorReturn2(this,(ModalPortal22.__proto__||Object.getPrototypeOf(ModalPortal22)).call(this,props));_this.setOverlayRef=function(overlay){_this.overlay=overlay;_this.props.overlayRef&&_this.props.overlayRef(overlay)};_this.setContentRef=function(content){_this.content=content;_this.props.contentRef&&_this.props.contentRef(content)};_this.afterClose=function(){var _this$props=_this.props,appElement=_this$props.appElement,ariaHideApp=_this$props.ariaHideApp,htmlOpenClassName=_this$props.htmlOpenClassName,bodyOpenClassName2=_this$props.bodyOpenClassName,parentSelector2=_this$props.parentSelector;var parentDocument=parentSelector2&&parentSelector2().ownerDocument||document;bodyOpenClassName2&&classList$1.remove(parentDocument.body,bodyOpenClassName2);htmlOpenClassName&&classList$1.remove(parentDocument.getElementsByTagName("html")[0],htmlOpenClassName);if(ariaHideApp&&ariaHiddenInstances>0){ariaHiddenInstances-=1;if(ariaHiddenInstances===0){ariaAppHider2.show(appElement)}}if(_this.props.shouldFocusAfterRender){if(_this.props.shouldReturnFocusAfterClose){focusManager$1.returnFocus(_this.props.preventScroll);focusManager$1.teardownScopedFocus()}else{focusManager$1.popWithoutFocus()}}if(_this.props.onAfterClose){_this.props.onAfterClose()}_portalOpenInstances22.default.deregister(_this)};_this.open=function(){_this.beforeOpen();if(_this.state.afterOpen&&_this.state.beforeClose){clearTimeout(_this.closeTimer);_this.setState({beforeClose:false})}else{if(_this.props.shouldFocusAfterRender){focusManager$1.setupScopedFocus(_this.node);focusManager$1.markForFocusLater()}_this.setState({isOpen:true},(function(){_this.openAnimationFrame=requestAnimationFrame((function(){_this.setState({afterOpen:true});if(_this.props.isOpen&&_this.props.onAfterOpen){_this.props.onAfterOpen({overlayEl:_this.overlay,contentEl:_this.content})}}))}))}};_this.close=function(){if(_this.props.closeTimeoutMS>0){_this.closeWithTimeout()}else{_this.closeWithoutTimeout()}};_this.focusContent=function(){return _this.content&&!_this.contentHasFocus()&&_this.content.focus({preventScroll:true})};_this.closeWithTimeout=function(){var closesAt=Date.now()+_this.props.closeTimeoutMS;_this.setState({beforeClose:true,closesAt:closesAt},(function(){_this.closeTimer=setTimeout(_this.closeWithoutTimeout,_this.state.closesAt-Date.now())}))};_this.closeWithoutTimeout=function(){_this.setState({beforeClose:false,isOpen:false,afterOpen:false,closesAt:null},_this.afterClose)};_this.handleKeyDown=function(event2){if(isTabKey(event2)){(0,_scopeTab2.default)(_this.content,event2)}if(_this.props.shouldCloseOnEsc&&isEscKey(event2)){event2.stopPropagation();_this.requestClose(event2)}};_this.handleOverlayOnClick=function(event2){if(_this.shouldClose===null){_this.shouldClose=true}if(_this.shouldClose&&_this.props.shouldCloseOnOverlayClick){if(_this.ownerHandlesClose()){_this.requestClose(event2)}else{_this.focusContent()}}_this.shouldClose=null};_this.handleContentOnMouseUp=function(){_this.shouldClose=false};_this.handleOverlayOnMouseDown=function(event2){if(!_this.props.shouldCloseOnOverlayClick&&event2.target==_this.overlay){event2.preventDefault()}};_this.handleContentOnClick=function(){_this.shouldClose=false};_this.handleContentOnMouseDown=function(){_this.shouldClose=false};_this.requestClose=function(event2){return _this.ownerHandlesClose()&&_this.props.onRequestClose(event2)};_this.ownerHandlesClose=function(){return _this.props.onRequestClose};_this.shouldBeClosed=function(){return!_this.state.isOpen&&!_this.state.beforeClose};_this.contentHasFocus=function(){return document.activeElement===_this.content||_this.content.contains(document.activeElement)};_this.buildClassName=function(which,additional){var classNames2=(typeof additional==="undefined"?"undefined":_typeof2(additional))==="object"?additional:{base:CLASS_NAMES[which],afterOpen:CLASS_NAMES[which]+"--after-open",beforeClose:CLASS_NAMES[which]+"--before-close"};var className=classNames2.base;if(_this.state.afterOpen){className=className+" "+classNames2.afterOpen}if(_this.state.beforeClose){className=className+" "+classNames2.beforeClose}return typeof additional==="string"&&additional?className+" "+additional:className};_this.attributesFromObject=function(prefix2,items){return Object.keys(items).reduce((function(acc,name2){acc[prefix2+"-"+name2]=items[name2];return acc}),{})};_this.state={afterOpen:false,beforeClose:false};_this.shouldClose=null;_this.moveFromContentToOverlay=null;return _this}_createClass2(ModalPortal22,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.isOpen){this.open()}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(this.props.isOpen&&!prevProps.isOpen){this.open()}else if(!this.props.isOpen&&prevProps.isOpen){this.close()}if(this.props.shouldFocusAfterRender&&this.state.isOpen&&!prevState.isOpen){this.focusContent()}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.state.isOpen){this.afterClose()}clearTimeout(this.closeTimer);cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function beforeOpen(){var _props=this.props,appElement=_props.appElement,ariaHideApp=_props.ariaHideApp,htmlOpenClassName=_props.htmlOpenClassName,bodyOpenClassName2=_props.bodyOpenClassName,parentSelector2=_props.parentSelector;var parentDocument=parentSelector2&&parentSelector2().ownerDocument||document;bodyOpenClassName2&&classList$1.add(parentDocument.body,bodyOpenClassName2);htmlOpenClassName&&classList$1.add(parentDocument.getElementsByTagName("html")[0],htmlOpenClassName);if(ariaHideApp){ariaHiddenInstances+=1;ariaAppHider2.hide(appElement)}_portalOpenInstances22.default.register(this)}},{key:"render",value:function render(){var _props2=this.props,id=_props2.id,className=_props2.className,overlayClassName=_props2.overlayClassName,defaultStyles2=_props2.defaultStyles,children=_props2.children;var contentStyles=className?{}:defaultStyles2.content;var overlayStyles=overlayClassName?{}:defaultStyles2.overlay;if(this.shouldBeClosed()){return null}var overlayProps={ref:this.setOverlayRef,className:this.buildClassName("overlay",overlayClassName),style:_extends2({},overlayStyles,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown};var contentProps=_extends2({id:id,ref:this.setContentRef,style:_extends2({},contentStyles,this.props.style.content),className:this.buildClassName("content",className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",_extends2({modal:true},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId});var contentElement2=this.props.contentElement(contentProps,children);return this.props.overlayElement(overlayProps,contentElement2)}}]);return ModalPortal22}(_react3.Component);ModalPortal2.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}};ModalPortal2.propTypes={isOpen:_propTypes22.default.bool.isRequired,defaultStyles:_propTypes22.default.shape({content:_propTypes22.default.object,overlay:_propTypes22.default.object}),style:_propTypes22.default.shape({content:_propTypes22.default.object,overlay:_propTypes22.default.object}),className:_propTypes22.default.oneOfType([_propTypes22.default.string,_propTypes22.default.object]),overlayClassName:_propTypes22.default.oneOfType([_propTypes22.default.string,_propTypes22.default.object]),parentSelector:_propTypes22.default.func,bodyOpenClassName:_propTypes22.default.string,htmlOpenClassName:_propTypes22.default.string,ariaHideApp:_propTypes22.default.bool,appElement:_propTypes22.default.oneOfType([_propTypes22.default.instanceOf(_safeHTMLElement22.default),_propTypes22.default.instanceOf(_safeHTMLElement3.SafeHTMLCollection),_propTypes22.default.instanceOf(_safeHTMLElement3.SafeNodeList),_propTypes22.default.arrayOf(_propTypes22.default.instanceOf(_safeHTMLElement22.default))]),onAfterOpen:_propTypes22.default.func,onAfterClose:_propTypes22.default.func,onRequestClose:_propTypes22.default.func,closeTimeoutMS:_propTypes22.default.number,shouldFocusAfterRender:_propTypes22.default.bool,shouldCloseOnOverlayClick:_propTypes22.default.bool,shouldReturnFocusAfterClose:_propTypes22.default.bool,preventScroll:_propTypes22.default.bool,role:_propTypes22.default.string,contentLabel:_propTypes22.default.string,aria:_propTypes22.default.object,data:_propTypes22.default.object,children:_propTypes22.default.node,shouldCloseOnEsc:_propTypes22.default.bool,overlayRef:_propTypes22.default.func,contentRef:_propTypes22.default.func,id:_propTypes22.default.string,overlayElement:_propTypes22.default.func,contentElement:_propTypes22.default.func,testId:_propTypes22.default.string};exports.default=ModalPortal2;module.exports=exports["default"]})(ModalPortal,ModalPortal.exports);var ModalPortalExports=ModalPortal.exports;function componentWillMount(){var state=this.constructor.getDerivedStateFromProps(this.props,this.state);if(state!==null&&state!==void 0){this.setState(state)}}function componentWillReceiveProps(nextProps){function updater(prevState){var state=this.constructor.getDerivedStateFromProps(nextProps,prevState);return state!==null&&state!==void 0?state:null}this.setState(updater.bind(this))}function componentWillUpdate(nextProps,nextState){try{var prevProps=this.props;var prevState=this.state;this.props=nextProps;this.state=nextState;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(prevProps,prevState)}finally{this.props=prevProps;this.state=prevState}}componentWillMount.__suppressDeprecationWarning=true;componentWillReceiveProps.__suppressDeprecationWarning=true;componentWillUpdate.__suppressDeprecationWarning=true;function polyfill(Component2){var prototype=Component2.prototype;if(!prototype||!prototype.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof Component2.getDerivedStateFromProps!=="function"&&typeof prototype.getSnapshotBeforeUpdate!=="function"){return Component2}var foundWillMountName=null;var foundWillReceivePropsName=null;var foundWillUpdateName=null;if(typeof prototype.componentWillMount==="function"){foundWillMountName="componentWillMount"}else if(typeof prototype.UNSAFE_componentWillMount==="function"){foundWillMountName="UNSAFE_componentWillMount"}if(typeof prototype.componentWillReceiveProps==="function"){foundWillReceivePropsName="componentWillReceiveProps"}else if(typeof prototype.UNSAFE_componentWillReceiveProps==="function"){foundWillReceivePropsName="UNSAFE_componentWillReceiveProps"}if(typeof prototype.componentWillUpdate==="function"){foundWillUpdateName="componentWillUpdate"}else if(typeof prototype.UNSAFE_componentWillUpdate==="function"){foundWillUpdateName="UNSAFE_componentWillUpdate"}if(foundWillMountName!==null||foundWillReceivePropsName!==null||foundWillUpdateName!==null){var componentName=Component2.displayName||Component2.name;var newApiName=typeof Component2.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+componentName+" uses "+newApiName+" but also contains the following legacy lifecycles:"+(foundWillMountName!==null?"\n "+foundWillMountName:"")+(foundWillReceivePropsName!==null?"\n "+foundWillReceivePropsName:"")+(foundWillUpdateName!==null?"\n "+foundWillUpdateName:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if(typeof Component2.getDerivedStateFromProps==="function"){prototype.componentWillMount=componentWillMount;prototype.componentWillReceiveProps=componentWillReceiveProps}if(typeof prototype.getSnapshotBeforeUpdate==="function"){if(typeof prototype.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}prototype.componentWillUpdate=componentWillUpdate;var componentDidUpdate=prototype.componentDidUpdate;prototype.componentDidUpdate=function componentDidUpdatePolyfill(prevProps,prevState,maybeSnapshot){var snapshot=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:maybeSnapshot;componentDidUpdate.call(this,prevProps,prevState,snapshot)}}return Component2}const reactLifecyclesCompat_es=Object.freeze(Object.defineProperty({__proto__:null,polyfill:polyfill},Symbol.toStringTag,{value:"Module"}));const require$$6=getAugmentedNamespace(reactLifecyclesCompat_es);Object.defineProperty(Modal$2,"__esModule",{value:true});Modal$2.bodyOpenClassName=Modal$2.portalClassName=void 0;var _extends$3=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _createClass$3=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _react=React__default;var _react2=_interopRequireDefault(_react);var _reactDom=ReactDOM__default;var _reactDom2=_interopRequireDefault(_reactDom);var _propTypes=propTypesExports;var _propTypes2=_interopRequireDefault(_propTypes);var _ModalPortal=ModalPortalExports;var _ModalPortal2=_interopRequireDefault(_ModalPortal);var _ariaAppHider=ariaAppHider$1;var ariaAppHider=_interopRequireWildcard(_ariaAppHider);var _safeHTMLElement=safeHTMLElement;var _safeHTMLElement2=_interopRequireDefault(_safeHTMLElement);var _reactLifecyclesCompat=require$$6;function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key]}}newObj.default=obj;return newObj}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck$3(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _possibleConstructorReturn$3(self2,call){if(!self2){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self2}function _inherits$3(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var portalClassName=Modal$2.portalClassName="ReactModalPortal";var bodyOpenClassName=Modal$2.bodyOpenClassName="ReactModal__Body--open";var isReact16$2=_safeHTMLElement.canUseDOM&&_reactDom2.default.createPortal!==void 0;var createHTMLElement=function createHTMLElement2(name2){return document.createElement(name2)};var getCreatePortal=function getCreatePortal2(){return isReact16$2?_reactDom2.default.createPortal:_reactDom2.default.unstable_renderSubtreeIntoContainer};function getParentElement(parentSelector2){return parentSelector2()}var Modal$1=function(_Component){_inherits$3(Modal2,_Component);function Modal2(){var _ref3;var _temp,_this,_ret;_classCallCheck$3(this,Modal2);for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return _ret=(_temp=(_this=_possibleConstructorReturn$3(this,(_ref3=Modal2.__proto__||Object.getPrototypeOf(Modal2)).call.apply(_ref3,[this].concat(args))),_this),_this.removePortal=function(){!isReact16$2&&_reactDom2.default.unmountComponentAtNode(_this.node);var parent=getParentElement(_this.props.parentSelector);if(parent&&parent.contains(_this.node)){parent.removeChild(_this.node)}else{console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')}},_this.portalRef=function(ref){_this.portal=ref},_this.renderPortal=function(props){var createPortal2=getCreatePortal();var portal=createPortal2(_this,_react2.default.createElement(_ModalPortal2.default,_extends$3({defaultStyles:Modal2.defaultStyles},props)),_this.node);_this.portalRef(portal)},_temp),_possibleConstructorReturn$3(_this,_ret)}_createClass$3(Modal2,[{key:"componentDidMount",value:function componentDidMount(){if(!_safeHTMLElement.canUseDOM)return;if(!isReact16$2){this.node=createHTMLElement("div")}this.node.className=this.props.portalClassName;var parent=getParentElement(this.props.parentSelector);parent.appendChild(this.node);!isReact16$2&&this.renderPortal(this.props)}},{key:"getSnapshotBeforeUpdate",value:function getSnapshotBeforeUpdate(prevProps){var prevParent=getParentElement(prevProps.parentSelector);var nextParent=getParentElement(this.props.parentSelector);return{prevParent:prevParent,nextParent:nextParent}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,_,snapshot){if(!_safeHTMLElement.canUseDOM)return;var _props=this.props,isOpen=_props.isOpen,portalClassName2=_props.portalClassName;if(prevProps.portalClassName!==portalClassName2){this.node.className=portalClassName2}var prevParent=snapshot.prevParent,nextParent=snapshot.nextParent;if(nextParent!==prevParent){prevParent.removeChild(this.node);nextParent.appendChild(this.node)}if(!prevProps.isOpen&&!isOpen)return;!isReact16$2&&this.renderPortal(this.props)}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(!_safeHTMLElement.canUseDOM||!this.node||!this.portal)return;var state=this.portal.state;var now=Date.now();var closesAt=state.isOpen&&this.props.closeTimeoutMS&&(state.closesAt||now+this.props.closeTimeoutMS);if(closesAt){if(!state.beforeClose){this.portal.closeWithTimeout()}setTimeout(this.removePortal,closesAt-now)}else{this.removePortal()}}},{key:"render",value:function render(){if(!_safeHTMLElement.canUseDOM||!isReact16$2){return null}if(!this.node&&isReact16$2){this.node=createHTMLElement("div")}var createPortal2=getCreatePortal();return createPortal2(_react2.default.createElement(_ModalPortal2.default,_extends$3({ref:this.portalRef,defaultStyles:Modal2.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function setAppElement(element){ariaAppHider.setElement(element)}}]);return Modal2}(_react.Component);Modal$1.propTypes={isOpen:_propTypes2.default.bool.isRequired,style:_propTypes2.default.shape({content:_propTypes2.default.object,overlay:_propTypes2.default.object}),portalClassName:_propTypes2.default.string,bodyOpenClassName:_propTypes2.default.string,htmlOpenClassName:_propTypes2.default.string,className:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),overlayClassName:_propTypes2.default.oneOfType([_propTypes2.default.string,_propTypes2.default.shape({base:_propTypes2.default.string.isRequired,afterOpen:_propTypes2.default.string.isRequired,beforeClose:_propTypes2.default.string.isRequired})]),appElement:_propTypes2.default.oneOfType([_propTypes2.default.instanceOf(_safeHTMLElement2.default),_propTypes2.default.instanceOf(_safeHTMLElement.SafeHTMLCollection),_propTypes2.default.instanceOf(_safeHTMLElement.SafeNodeList),_propTypes2.default.arrayOf(_propTypes2.default.instanceOf(_safeHTMLElement2.default))]),onAfterOpen:_propTypes2.default.func,onRequestClose:_propTypes2.default.func,closeTimeoutMS:_propTypes2.default.number,ariaHideApp:_propTypes2.default.bool,shouldFocusAfterRender:_propTypes2.default.bool,shouldCloseOnOverlayClick:_propTypes2.default.bool,shouldReturnFocusAfterClose:_propTypes2.default.bool,preventScroll:_propTypes2.default.bool,parentSelector:_propTypes2.default.func,aria:_propTypes2.default.object,data:_propTypes2.default.object,role:_propTypes2.default.string,contentLabel:_propTypes2.default.string,shouldCloseOnEsc:_propTypes2.default.bool,overlayRef:_propTypes2.default.func,contentRef:_propTypes2.default.func,id:_propTypes2.default.string,overlayElement:_propTypes2.default.func,contentElement:_propTypes2.default.func};Modal$1.defaultProps={isOpen:false,portalClassName:portalClassName,bodyOpenClassName:bodyOpenClassName,role:"dialog",ariaHideApp:true,closeTimeoutMS:0,shouldFocusAfterRender:true,shouldCloseOnEsc:true,shouldCloseOnOverlayClick:true,shouldReturnFocusAfterClose:true,preventScroll:false,parentSelector:function parentSelector(){return document.body},overlayElement:function overlayElement(props,contentEl){return _react2.default.createElement("div",props,contentEl)},contentElement:function contentElement(props,children){return _react2.default.createElement("div",props,children)}};Modal$1.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};(0,_reactLifecyclesCompat.polyfill)(Modal$1);Modal$2.default=Modal$1;(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _Modal=Modal$2;var _Modal2=_interopRequireDefault2(_Modal);function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=_Modal2.default;module.exports=exports["default"]})(lib,lib.exports);var libExports=lib.exports;const Modal=getDefaultExportFromCjs(libExports);const CloseIcon=props=>{const{onClose:onClose}=props;return jsx$1("div",{className:"pb_dialog_close_icon",onClick:onClose,children:jsx$1(Icon,{fixedWidth:true,icon:"times"})})};const DialogContext=React__default.createContext(null);const DialogHeader=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},spacing:spacing2="between",closeable:closeable=true,separator:separator=true}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const api=useContext(DialogContext);const headerCSS=buildCss("dialog_header");const headerSpacing=globalProps(props);return jsxs("div",{className:"dialog_sticky_header",children:[jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,className:classnames(headerCSS,headerSpacing,className),spacing:spacing2,children:[children,closeable&&jsx$1(CloseIcon,{onClose:api.onClose})]}),separator&&jsx$1(SectionSeparator,{})]})};const DialogFooter=props=>{const{children:children,className:className,htmlOptions:htmlOptions={},spacing:spacing2="between",separator:separator=false}=props;const footerCSS=buildCss("dialog_footer");const footerSpacing=globalProps(props);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,children:[separator&&jsx$1(SectionSeparator,{}),jsx$1("div",{className:"dialog-pseudo-footer"}),jsx$1(Flex,{className:classnames(footerCSS,footerSpacing,className),spacing:spacing2,children:children})]})};const DialogBody=props=>{const{children:children,className:className}=props;const bodyCSS=buildCss("dialog_body");const bodySpacing=globalProps(props);return jsx$1("div",{className:classnames(bodyCSS,bodySpacing,className),children:children})};const Dialog=props=>{const{aria:aria={},cancelButton:cancelButton,confirmButton:confirmButton,className:className,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md",children:children,loading:loading=false,fullHeight:fullHeight=false,opened:opened,onCancel:onCancel,onConfirm:onConfirm,onClose:onClose,placement:placement="center",portalClassName:portalClassName2,shouldCloseOnOverlayClick:shouldCloseOnOverlayClick=true,status:status,text:text2,title:title,trigger:trigger}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dialogClassNames={base:classnames("pb_dialog",buildCss("pb_dialog",size,placement)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"};const fullHeightClassNames=()=>{if(!fullHeight)return null;if(size==="xl")return`full_height_center`;return`full_height_${placement}`};const overlayClassNames={base:`pb_dialog_overlay ${fullHeight!==null&&fullHeightClassNames()}`,afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"};const classes=classnames(buildCss("pb_dialog_wrapper"),globalProps(props),className);const[triggerOpened,setTriggerOpened]=useState(false),modalIsOpened=trigger?triggerOpened:opened;const api={onClose:trigger?function(){setTriggerOpened(false)}:onClose};if(trigger){const modalTrigger=document.querySelector(trigger);modalTrigger.addEventListener("click",(()=>{setTriggerOpened(true);document.querySelector("#cancel-button").addEventListener("click",(()=>{setTriggerOpened(false)}))}),{once:true})}const sweetAlertStatus={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return jsx$1(DialogContext.Provider,{value:api,children:jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx$1(Modal,{ariaHideApp:false,className:dialogClassNames,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:id,isOpen:modalIsOpened,onRequestClose:onClose,overlayClassName:overlayClassNames,portalClassName:portalClassName2,shouldCloseOnOverlayClick:shouldCloseOnOverlayClick,children:jsxs(Fragment,{children:[title&&!status?jsx$1(Dialog.Header,{children:title}):null,!status&&text2?jsx$1(Dialog.Body,{children:text2}):null,status&&jsx$1(Dialog.Body,{className:"dialog_status_text_align",padding:"md",children:jsxs(Flex,{align:"center",orientation:"column",children:[jsx$1(IconCircle,{icon:sweetAlertStatus[status].icon,size:sweetAlertStatus[status].size,variant:sweetAlertStatus[status].variant}),jsx$1(Title,{marginTop:"sm",size:3,children:title}),jsx$1(Body$1,{marginTop:"xs",text:text2})]})}),cancelButton&&confirmButton?jsxs(Dialog.Footer,{children:[jsx$1(Button,{htmlType:"button",loading:loading,onClick:onConfirm,variant:"primary",children:confirmButton}),jsx$1(Button,{htmlType:"button",id:"cancel-button",onClick:onCancel,variant:"link",children:cancelButton})]}):null,children]})})})})};Dialog.Header=DialogHeader;Dialog.Body=DialogBody;Dialog.Footer=DialogFooter;const normalizeCharacters=widths=>widths.map((width=>parseInt(width.toString().replace(/[^0-9.]/gi,""))));const barValues=(normalizedValues,colors2)=>{const arrSum=value=>value.reduce(((a2,b2)=>a2+b2),0);const widthSum=arrSum(normalizedValues);return normalizedValues.map(((value,i)=>jsx$1("div",{className:classnames("pb_distribution_width",colors2[i]?`color_${colors2[i]}`:""),style:{width:`${value*100/widthSum}%`}},i)))};const DistributionBar=props=>{const{htmlOptions:htmlOptions={},size:size="lg",widths:widths=[1],colors:colors2=[]}=props;const normalizedValues=normalizeCharacters(widths);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",{className:classnames(`pb_distribution_bar_${size}`,globalProps(props)),...htmlProps,children:barValues(normalizedValues,colors2)})};const DropdownContext=createContext({});const DropdownContainer=props=>{const{aria:aria={},children:children,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,searchbar:searchbar=false}=props;const{dropdownContainerRef:dropdownContainerRef,filteredOptions:filteredOptions,filterItem:filterItem,handleChange:handleChange,inputRef:inputRef,isDropDownClosed:isDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,triggerRef:triggerRef}=useContext(DropdownContext);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_container"),`${isDropDownClosed?"close":"open"}`,globalProps(props),className);return jsxs("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,onMouseEnter:()=>setFocusedOptionIndex(-1),ref:dropdownContainerRef,style:triggerRef?{}:{position:"absolute"}},{children:[searchbar&&jsx$1(TextInput$1,Object.assign({dark:dark,paddingTop:"xs",paddingX:"xs"},{children:jsx$1("input",{onChange:handleChange,placeholder:"Select...",ref:inputRef,value:filterItem},void 0)}),void 0),jsx$1(List,Object.assign({dark:dark},{children:(filteredOptions===null||filteredOptions===void 0?void 0:filteredOptions.length)===0?jsx$1(ListItem,Object.assign({dark:dark,display:"flex",justifyContent:"center",padding:"xs"},{children:jsx$1(Body$1,{color:"light",dark:dark,text:"no option"},void 0)}),void 0):children}),void 0)]}),void 0)};const DropdownOption=props=>{const{aria:aria={},children:children,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,key:key,option:option}=props;const{filteredOptions:filteredOptions,filterItem:filterItem,focusedOptionIndex:focusedOptionIndex,handleOptionClick:handleOptionClick,selected:selected}=useContext(DropdownContext);const isItemMatchingFilter=option2=>{const label=typeof option2.label==="string"?option2.label.toLowerCase():option2.label;return String(label).toLowerCase().includes(filterItem.toLowerCase())};if(!isItemMatchingFilter(option)){return null}const isFocused=focusedOptionIndex>=0&&filteredOptions[focusedOptionIndex].label===option.label;const focusedClass=isFocused&&"focused";const selectedClass=`${selected.label===option.label?"selected":"list"}`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_option",selectedClass,focusedClass),globalProps(props),className);return createElement("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,key:key,onClick:()=>handleOptionClick(option)},jsx$1(ListItem,{cursor:"pointer",dark:dark,"data-name":option.value,padding:"none",children:children?jsx$1("div",{className:"dropdown_option_wrapper",children:children}):jsx$1(Body$1,{dark:dark,text:option.label})},option.label))};const useHandleOnKeyDown=()=>{const{autocomplete:autocomplete,filteredOptions:filteredOptions,focusedOptionIndex:focusedOptionIndex,handleBackspace:handleBackspace,handleOptionClick:handleOptionClick,selected:selected,setFocusedOptionIndex:setFocusedOptionIndex,setIsDropDownClosed:setIsDropDownClosed}=useContext(DropdownContext);return e2=>{if(e2.key!=="Tab"&&autocomplete&&selected&&selected.label){handleBackspace()}switch(e2.key){case"Backspace":case"Delete":if(autocomplete){handleBackspace()}break;case"ArrowDown":{e2.preventDefault();setIsDropDownClosed(false);const nextIndex=(focusedOptionIndex+1)%filteredOptions.length;setFocusedOptionIndex(nextIndex);break}case"ArrowUp":{e2.preventDefault();const nextIndexUp=(focusedOptionIndex-1+filteredOptions.length)%filteredOptions.length;setFocusedOptionIndex(nextIndexUp);break}case"Enter":if(focusedOptionIndex!==-1){e2.preventDefault();handleOptionClick(filteredOptions[focusedOptionIndex]);setFocusedOptionIndex(-1)}else if(focusedOptionIndex===-1){setIsDropDownClosed(false)}break;case"Tab":setIsDropDownClosed(true);setFocusedOptionIndex(-1);break}}};const DropdownTrigger=props=>{const{aria:aria={},children:children,className:className,customDisplay:customDisplay,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,placeholder:placeholder}=props;const{autocomplete:autocomplete,filterItem:filterItem,handleChange:handleChange,handleWrapperClick:handleWrapperClick,inputRef:inputRef,inputWrapperRef:inputWrapperRef,isDropDownClosed:isDropDownClosed,isInputFocused:isInputFocused,selected:selected,setIsInputFocused:setIsInputFocused,toggleDropdown:toggleDropdown,triggerRef:triggerRef}=useContext(DropdownContext);const handleKeyDown=useHandleOnKeyDown();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_trigger"),globalProps(props),className);const triggerWrapperClasses=buildCss("dropdown_trigger_wrapper",isInputFocused&&"focus",!autocomplete&&"select_only");const customDisplayPlaceholder=selected.label?jsx$1("b",{children:selected.label},void 0):autocomplete?"":placeholder?placeholder:"Select...";const defaultDisplayPlaceholder=selected.label?selected.label:autocomplete?"":placeholder?placeholder:"Select...";return jsx$1("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:!triggerRef&&(children?jsx$1("div",Object.assign({onClick:()=>toggleDropdown(),onKeyDown:handleKeyDown,ref:inputWrapperRef,style:{display:"inline-block"},tabIndex:0},{children:children}),void 0):jsx$1(Fragment,{children:jsxs(Flex,Object.assign({align:"center",borderRadius:"lg",className:triggerWrapperClasses,cursor:`${autocomplete?"text":"pointer"}`,htmlOptions:{onClick:()=>handleWrapperClick(),onKeyDown:handleKeyDown,tabIndex:"0",ref:inputWrapperRef},justify:"between",paddingX:"sm",paddingY:"xs"},{children:[jsx$1(FlexItem,{children:jsxs(Flex,Object.assign({align:"center"},{children:[customDisplay?jsxs(Flex,Object.assign({align:"center"},{children:[customDisplay,jsx$1(Body$1,Object.assign({dark:dark,paddingLeft:`${selected.label?"xs":"none"}`},{children:customDisplayPlaceholder}),void 0)]}),void 0):jsx$1(Body$1,{dark:dark,text:defaultDisplayPlaceholder},void 0),autocomplete&&jsx$1("input",{className:"dropdown_input",onChange:handleChange,onClick:()=>toggleDropdown(),onFocus:()=>setIsInputFocused(true),onKeyDown:handleKeyDown,placeholder:selected.label?"":placeholder?placeholder:"Select...",ref:inputRef,value:filterItem},void 0)]}),void 0)},void 0),jsx$1(Body$1,Object.assign({dark:dark,display:"flex",htmlOptions:{onClick:e2=>{e2.stopPropagation();handleWrapperClick()}}},{children:jsx$1(Icon,{cursor:"pointer",dark:dark,icon:`${isDropDownClosed?"chevron-down":"chevron-up"}`,size:"sm"},void 0)}),`${isDropDownClosed?"chevron-down":"chevron-up"}`)]}),void 0)},void 0))}),void 0)};const separateChildComponents=children=>{let trigger=null;let container=null;const otherChildren=[];React__default.Children.forEach(children,(child=>{if(child&&child.type===DropdownTrigger){trigger=child}else if(child&&child.type===DropdownContainer){container=child}else{otherChildren.push(child)}}));return{trigger:trigger,container:container,otherChildren:otherChildren}};const prepareSubcomponents=({children:children,hasTriggerSubcomponent:hasTriggerSubcomponent,hasContainerSubcomponent:hasContainerSubcomponent,trigger:trigger,container:container,otherChildren:otherChildren,dark:dark})=>{const componentsToRender=[];if(!hasTriggerSubcomponent&&!hasContainerSubcomponent){componentsToRender.push(jsx$1(DropdownTrigger,{dark:dark},void 0));componentsToRender.push(jsx$1(DropdownContainer,Object.assign({dark:dark},{children:children}),void 0))}else if(!hasTriggerSubcomponent&&hasContainerSubcomponent){componentsToRender.push(jsx$1(DropdownTrigger,{dark:dark},void 0));componentsToRender.push(children)}else if(hasTriggerSubcomponent&&!hasContainerSubcomponent){componentsToRender.push(trigger);componentsToRender.push(jsx$1(DropdownContainer,Object.assign({dark:dark},{children:otherChildren}),void 0))}else{componentsToRender.push(trigger);componentsToRender.push(container)}return componentsToRender};const handleClickOutside=({inputWrapperRef:inputWrapperRef,dropdownContainerRef:dropdownContainerRef,setIsDropDownClosed:setIsDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,setIsInputFocused:setIsInputFocused})=>e2=>{let targetElement=e2.target;let shouldClose=true;while(targetElement&&shouldClose){if(targetElement.getAttribute("data-dropdown")==="pb-dropdown-trigger"){shouldClose=false}targetElement=targetElement.parentElement}if(inputWrapperRef.current&&!inputWrapperRef.current.contains(e2.target)&&dropdownContainerRef.current&&!dropdownContainerRef.current.contains(e2.target)&&shouldClose){setIsDropDownClosed(true);setFocusedOptionIndex(-1);setIsInputFocused(false)}};const Dropdown=props=>{const{aria:aria={},autocomplete:autocomplete=false,blankSelection:blankSelection="",children:children,className:className,dark:dark=false,data:data={},defaultValue:defaultValue={},error:error,htmlOptions:htmlOptions={},id:id,isClosed:isClosed=true,label:label,onSelect:onSelect,options:options2,triggerRef:triggerRef}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown"),globalProps(props),className);const[isDropDownClosed,setIsDropDownClosed,toggleDropdown]=useDropdown(isClosed);const[filterItem,setFilterItem]=useState("");const[selected,setSelected]=useState(defaultValue);const[isInputFocused,setIsInputFocused]=useState(false);const[hasTriggerSubcomponent,setHasTriggerSubcomponent]=useState(true);const[hasContainerSubcomponent,setHasContainerSubcomponent]=useState(true);const[focusedOptionIndex,setFocusedOptionIndex]=useState(-1);const dropdownRef=useRef(null);const inputRef=useRef(null);const inputWrapperRef=useRef(null);const dropdownContainerRef=useRef(null);const{trigger:trigger,container:container,otherChildren:otherChildren}=separateChildComponents(children);useEffect((()=>{if(triggerRef==null?void 0:triggerRef.current){const parentElement=triggerRef.current.parentNode;if(parentElement){parentElement.style.position="relative"}}const handleClick=handleClickOutside({inputWrapperRef:inputWrapperRef,dropdownContainerRef:dropdownContainerRef,setIsDropDownClosed:setIsDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,setIsInputFocused:setIsInputFocused});window.addEventListener("click",handleClick);return()=>{window.removeEventListener("click",handleClick)}}),[]);useEffect((()=>{setHasTriggerSubcomponent(!!trigger);setHasContainerSubcomponent(!!container)}),[]);useEffect((()=>{setIsDropDownClosed(isClosed)}),[isClosed]);const blankSelectionOption=blankSelection?[{label:blankSelection,value:""}]:[];const optionsWithBlankSelection=blankSelectionOption.concat(options2);const filteredOptions=optionsWithBlankSelection==null?void 0:optionsWithBlankSelection.filter((option=>{const label2=typeof option.label==="string"?option.label.toLowerCase():option.label;return String(label2).toLowerCase().includes(filterItem.toLowerCase())}));useEffect((()=>{if(!isDropDownClosed){let newIndex=0;if(selected&&(selected==null?void 0:selected.label)){const selectedIndex=filteredOptions.findIndex((option=>option.label===selected.label));if(selectedIndex>=0){newIndex=selectedIndex}}setFocusedOptionIndex(newIndex)}}),[isDropDownClosed]);const handleChange=e2=>{setFilterItem(e2.target.value);setIsDropDownClosed(false)};const handleOptionClick=selectedItem=>{setSelected(selectedItem);setFilterItem("");setIsDropDownClosed(true);onSelect&&onSelect(selectedItem)};const handleWrapperClick=()=>{autocomplete&&inputRef.current.focus();toggleDropdown()};const handleBackspace=()=>{setSelected({});onSelect&&onSelect(null);setFocusedOptionIndex(-1)};const componentsToRender=prepareSubcomponents({children:children,hasTriggerSubcomponent:hasTriggerSubcomponent,hasContainerSubcomponent:hasContainerSubcomponent,trigger:trigger,container:container,otherChildren:otherChildren,dark:dark});return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,style:triggerRef?{position:"absolute"}:{position:"relative"},children:jsxs(DropdownContext.Provider,{value:{autocomplete:autocomplete,dropdownContainerRef:dropdownContainerRef,filteredOptions:filteredOptions,filterItem:filterItem,focusedOptionIndex:focusedOptionIndex,handleBackspace:handleBackspace,handleChange:handleChange,handleOptionClick:handleOptionClick,handleWrapperClick:handleWrapperClick,inputRef:inputRef,inputWrapperRef:inputWrapperRef,isDropDownClosed:isDropDownClosed,isInputFocused:isInputFocused,optionsWithBlankSelection:optionsWithBlankSelection,selected:selected,setFocusedOptionIndex:setFocusedOptionIndex,setIsDropDownClosed:setIsDropDownClosed,setIsInputFocused:setIsInputFocused,setSelected:setSelected,toggleDropdown:toggleDropdown,triggerRef:triggerRef},children:[label&&jsx$1(Caption,{dark:dark,marginBottom:"xs",text:label}),jsxs("div",{className:`dropdown_wrapper ${error?"error":""}`,onBlur:()=>{setTimeout((()=>{if(!dropdownRef.current.contains(document.activeElement)){setIsInputFocused(false)}}),0)},onFocus:()=>setIsInputFocused(true),ref:dropdownRef,children:[children?jsx$1(Fragment,{children:componentsToRender.map(((component,index2)=>jsx$1(React__default.Fragment,{children:component},index2)))}):jsxs(Fragment,{children:[jsx$1(DropdownTrigger,{}),jsx$1(DropdownContainer,{children:optionsWithBlankSelection&&(optionsWithBlankSelection==null?void 0:optionsWithBlankSelection.map((option=>jsx$1(Dropdown.Option,{option:option},option.id))))})]}),error&&jsx$1(Body$1,{status:"negative",text:error})]})]})})};Dropdown.Option=DropdownOption;Dropdown.Trigger=DropdownTrigger;Dropdown.Container=DropdownContainer;function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e2){reject(e2)}}function rejected(value){try{step(generator["throw"](value))}catch(e2){reject(e2)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,[])).next())}))}function __generator(thisArg,body){var _={label:0,sent:function(){if(t2[0]&1)throw t2[1];return t2[1]},trys:[],ops:[]},f2,y2,t2,g2;return g2={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(g2[Symbol.iterator]=function(){return this}),g2;function verb(n2){return function(v2){return step([n2,v2])}}function step(op){if(f2)throw new TypeError("Generator is already executing.");while(g2&&(g2=0,op[0]&&(_=0)),_)try{if(f2=1,y2&&(t2=op[0]&2?y2["return"]:op[0]?y2["throw"]||((t2=y2["return"])&&t2.call(y2),0):y2.next)&&!(t2=t2.call(y2,op[1])).done)return t2;if(y2=0,t2)op=[op[0]&2,t2.value];switch(op[0]){case 0:case 1:t2=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y2=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t2=_.trys,t2=t2.length>0&&t2[t2.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t2||op[1]>t2[0]&&op[1]<t2[3])){_.label=op[1];break}if(op[0]===6&&_.label<t2[1]){_.label=t2[1];t2=op;break}if(t2&&_.label<t2[2]){_.label=t2[2];_.ops.push(op);break}if(t2[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e2){op=[6,e2];y2=0}finally{f2=t2=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}function __read(o2,n2){var m2=typeof Symbol==="function"&&o2[Symbol.iterator];if(!m2)return o2;var i=m2.call(o2),r2,ar=[],e2;try{while((n2===void 0||n2-- >0)&&!(r2=i.next()).done)ar.push(r2.value)}catch(error){e2={error:error}}finally{try{if(r2&&!r2.done&&(m2=i["return"]))m2.call(i)}finally{if(e2)throw e2.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}var COMMON_MIME_TYPES=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function toFileWithPath(file,path){var f2=withMimeType(file);if(typeof f2.path!=="string"){var webkitRelativePath=file.webkitRelativePath;Object.defineProperty(f2,"path",{value:typeof path==="string"?path:typeof webkitRelativePath==="string"&&webkitRelativePath.length>0?webkitRelativePath:file.name,writable:false,configurable:false,enumerable:true})}return f2}function withMimeType(file){var name2=file.name;var hasExtension=name2&&name2.lastIndexOf(".")!==-1;if(hasExtension&&!file.type){var ext=name2.split(".").pop().toLowerCase();var type=COMMON_MIME_TYPES.get(ext);if(type){Object.defineProperty(file,"type",{value:type,writable:false,configurable:false,enumerable:true})}}return file}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(evt){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,isDragEvt(evt)&&evt.dataTransfer?getDataTransferFiles(evt.dataTransfer,evt.type):getInputFiles(evt)]}))}))}function isDragEvt(value){return!!value.dataTransfer}function getInputFiles(evt){var files=isInput(evt.target)?evt.target.files?fromList(evt.target.files):[]:[];return files.map((function(file){return toFileWithPath(file)}))}function isInput(value){return value!==null}function getDataTransferFiles(dt,type){return __awaiter(this,void 0,void 0,(function(){var items,files;return __generator(this,(function(_a){switch(_a.label){case 0:if(!dt.items)return[3,2];items=fromList(dt.items).filter((function(item){return item.kind==="file"}));if(type!=="drop"){return[2,items]}return[4,Promise.all(items.map(toFilePromises))];case 1:files=_a.sent();return[2,noIgnoredFiles(flatten(files))];case 2:return[2,noIgnoredFiles(fromList(dt.files).map((function(file){return toFileWithPath(file)})))]}}))}))}function noIgnoredFiles(files){return files.filter((function(file){return FILES_TO_IGNORE.indexOf(file.name)===-1}))}function fromList(items){var files=[];for(var i=0;i<items.length;i++){var file=items[i];files.push(file)}return files}function toFilePromises(item){if(typeof item.webkitGetAsEntry!=="function"){return fromDataTransferItem(item)}var entry=item.webkitGetAsEntry();if(entry&&entry.isDirectory){return fromDirEntry(entry)}return fromDataTransferItem(item)}function flatten(items){return items.reduce((function(acc,files){return __spread(acc,Array.isArray(files)?flatten(files):[files])}),[])}function fromDataTransferItem(item){var file=item.getAsFile();if(!file){return Promise.reject(item+" is not a File")}var fwp=toFileWithPath(file);return Promise.resolve(fwp)}function fromEntry(entry){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,entry.isDirectory?fromDirEntry(entry):fromFileEntry(entry)]}))}))}function fromDirEntry(entry){var reader=entry.createReader();return new Promise((function(resolve,reject){var entries=[];function readEntries(){var _this=this;reader.readEntries((function(batch){return __awaiter(_this,void 0,void 0,(function(){var files,err_1,items;return __generator(this,(function(_a){switch(_a.label){case 0:if(!!batch.length)return[3,5];_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,Promise.all(entries)];case 2:files=_a.sent();resolve(files);return[3,4];case 3:err_1=_a.sent();reject(err_1);return[3,4];case 4:return[3,6];case 5:items=Promise.all(batch.map(fromEntry));entries.push(items);readEntries();_a.label=6;case 6:return[2]}}))}))}),(function(err){reject(err)}))}readEntries()}))}function fromFileEntry(entry){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,new Promise((function(resolve,reject){entry.file((function(file){var fwp=toFileWithPath(file,entry.fullPath);resolve(fwp)}),(function(err){reject(err)}))}))]}))}))}var _default$1=function(file,acceptedFiles){if(file&&acceptedFiles){var acceptedFilesArray=Array.isArray(acceptedFiles)?acceptedFiles:acceptedFiles.split(",");var fileName=file.name||"";var mimeType=(file.type||"").toLowerCase();var baseMimeType=mimeType.replace(/\/.*$/,"");return acceptedFilesArray.some((function(type){var validType=type.trim().toLowerCase();if(validType.charAt(0)==="."){return fileName.toLowerCase().endsWith(validType)}else if(validType.endsWith("/*")){return baseMimeType===validType.replace(/\/.*$/,"")}return mimeType===validType}))}return true};function fileAccepted(file,accept){return file.type==="application/x-moz-file"||_default$1(file,accept)}function fileMatchSize(file,minSize,maxSize){if(isDefined(file.size)){if(isDefined(minSize)&&isDefined(maxSize))return file.size>=minSize&&file.size<=maxSize;else if(isDefined(minSize))return file.size>=minSize;else if(isDefined(maxSize))return file.size<=maxSize}return true}function isDefined(value){return value!==void 0&&value!==null}function allFilesAccepted(_ref3){var files=_ref3.files,accept=_ref3.accept,minSize=_ref3.minSize,maxSize=_ref3.maxSize,multiple=_ref3.multiple;if(!multiple&&files.length>1){return false}return files.every((function(file){return fileAccepted(file,accept)&&fileMatchSize(file,minSize,maxSize)}))}function isPropagationStopped(event2){if(typeof event2.isPropagationStopped==="function"){return event2.isPropagationStopped()}else if(typeof event2.cancelBubble!=="undefined"){return event2.cancelBubble}return false}function isEvtWithFiles(event2){if(!event2.dataTransfer){return!!event2.target&&!!event2.target.files}return Array.prototype.some.call(event2.dataTransfer.types,(function(type){return type==="Files"||type==="application/x-moz-file"}))}function onDocumentDragOver(event2){event2.preventDefault()}function isIe(userAgent){return userAgent.indexOf("MSIE")!==-1||userAgent.indexOf("Trident/")!==-1}function isEdge(userAgent){return userAgent.indexOf("Edge/")!==-1}function isIeOrEdge(){var userAgent=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(userAgent)||isEdge(userAgent)}function composeEventHandlers(){for(var _len=arguments.length,fns=new Array(_len),_key=0;_key<_len;_key++){fns[_key]=arguments[_key]}return function(event2){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}return fns.some((function(fn){if(!isPropagationStopped(event2)&&fn){fn.apply(void 0,[event2].concat(args))}return isPropagationStopped(event2)}))}}function _toConsumableArray$1(arr){return _arrayWithoutHoles$1(arr)||_iterableToArray$1(arr)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray$1(iter){if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)==="[object Arguments]")return Array.from(iter)}function _arrayWithoutHoles$1(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}}function _slicedToArray$1(arr,i){return _arrayWithHoles$1(arr)||_iterableToArrayLimit$1(arr,i)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit$1(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)==="[object Arguments]")){return}var _arr=[];var _n=true;var _d=false;var _e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"]!=null)_i["return"]()}finally{if(_d)throw _e}}return _arr}function _arrayWithHoles$1(arr){if(Array.isArray(arr))return arr}function ownKeys$3(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}));keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys$3(source,true).forEach((function(key){_defineProperty$3(target,key,source[key])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source))}else{ownKeys$3(source).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}}return target}function _defineProperty$3(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _objectWithoutProperties$3(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose$3(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _objectWithoutPropertiesLoose$3(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}var Dropzone=forwardRef((function(_ref3,ref){var children=_ref3.children,params=_objectWithoutProperties$3(_ref3,["children"]);var _useDropzone=useDropzone(params),open=_useDropzone.open,props=_objectWithoutProperties$3(_useDropzone,["open"]);useImperativeHandle(ref,(function(){return{open:open}}),[open]);return React__default.createElement(Fragment$1,null,children(_objectSpread({},props,{open:open})))}));Dropzone.displayName="Dropzone";Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func};var initialState$1={isFocused:false,isFileDialogActive:false,isDragActive:false,isDragAccept:false,isDragReject:false,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function useDropzone(){var _ref22=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},accept=_ref22.accept,_ref2$disabled=_ref22.disabled,disabled=_ref2$disabled===void 0?false:_ref2$disabled,_ref2$getFilesFromEve=_ref22.getFilesFromEvent,getFilesFromEvent=_ref2$getFilesFromEve===void 0?fromEvent:_ref2$getFilesFromEve,_ref2$maxSize=_ref22.maxSize,maxSize=_ref2$maxSize===void 0?Infinity:_ref2$maxSize,_ref2$minSize=_ref22.minSize,minSize=_ref2$minSize===void 0?0:_ref2$minSize,_ref2$multiple=_ref22.multiple,multiple=_ref2$multiple===void 0?true:_ref2$multiple,onDragEnter=_ref22.onDragEnter,onDragLeave=_ref22.onDragLeave,onDragOver=_ref22.onDragOver,onDrop=_ref22.onDrop,onDropAccepted=_ref22.onDropAccepted,onDropRejected=_ref22.onDropRejected,onFileDialogCancel=_ref22.onFileDialogCancel,_ref2$preventDropOnDo=_ref22.preventDropOnDocument,preventDropOnDocument=_ref2$preventDropOnDo===void 0?true:_ref2$preventDropOnDo,_ref2$noClick=_ref22.noClick,noClick=_ref2$noClick===void 0?false:_ref2$noClick,_ref2$noKeyboard=_ref22.noKeyboard,noKeyboard=_ref2$noKeyboard===void 0?false:_ref2$noKeyboard,_ref2$noDrag=_ref22.noDrag,noDrag=_ref2$noDrag===void 0?false:_ref2$noDrag,_ref2$noDragEventsBub=_ref22.noDragEventsBubbling,noDragEventsBubbling=_ref2$noDragEventsBub===void 0?false:_ref2$noDragEventsBub;var rootRef=useRef(null);var inputRef=useRef(null);var _useReducer=useReducer(reducer,initialState$1),_useReducer2=_slicedToArray$1(_useReducer,2),state=_useReducer2[0],dispatch=_useReducer2[1];var isFocused=state.isFocused,isFileDialogActive=state.isFileDialogActive,draggedFiles=state.draggedFiles;var openFileDialog=useCallback((function(){if(inputRef.current){dispatch({type:"openDialog"});inputRef.current.value=null;inputRef.current.click()}}),[dispatch]);var onWindowFocus=function onWindowFocus2(){if(isFileDialogActive){setTimeout((function(){if(inputRef.current){var files=inputRef.current.files;if(!files.length){dispatch({type:"closeDialog"});if(typeof onFileDialogCancel==="function"){onFileDialogCancel()}}}}),300)}};useEffect((function(){window.addEventListener("focus",onWindowFocus,false);return function(){window.removeEventListener("focus",onWindowFocus,false)}}),[inputRef,isFileDialogActive,onFileDialogCancel]);var onKeyDownCb=useCallback((function(event2){if(!rootRef.current||!rootRef.current.isEqualNode(event2.target)){return}if(event2.keyCode===32||event2.keyCode===13){event2.preventDefault();openFileDialog()}}),[rootRef,inputRef]);var onFocusCb=useCallback((function(){dispatch({type:"focus"})}),[]);var onBlurCb=useCallback((function(){dispatch({type:"blur"})}),[]);var onClickCb=useCallback((function(){if(noClick){return}if(isIeOrEdge()){setTimeout(openFileDialog,0)}else{openFileDialog()}}),[inputRef,noClick]);var dragTargetsRef=useRef([]);var onDocumentDrop=function onDocumentDrop2(event2){if(rootRef.current&&rootRef.current.contains(event2.target)){return}event2.preventDefault();dragTargetsRef.current=[]};useEffect((function(){if(preventDropOnDocument){document.addEventListener("dragover",onDocumentDragOver,false);document.addEventListener("drop",onDocumentDrop,false)}return function(){if(preventDropOnDocument){document.removeEventListener("dragover",onDocumentDragOver);document.removeEventListener("drop",onDocumentDrop)}}}),[rootRef,preventDropOnDocument]);var onDragEnterCb=useCallback((function(event2){event2.preventDefault();event2.persist();stopPropagation(event2);if(dragTargetsRef.current.indexOf(event2.target)===-1){dragTargetsRef.current=[].concat(_toConsumableArray$1(dragTargetsRef.current),[event2.target])}if(isEvtWithFiles(event2)){Promise.resolve(getFilesFromEvent(event2)).then((function(draggedFiles2){if(isPropagationStopped(event2)&&!noDragEventsBubbling){return}dispatch({draggedFiles:draggedFiles2,isDragActive:true,type:"setDraggedFiles"});if(onDragEnter){onDragEnter(event2)}}))}}),[getFilesFromEvent,onDragEnter,noDragEventsBubbling]);var onDragOverCb=useCallback((function(event2){event2.preventDefault();event2.persist();stopPropagation(event2);if(event2.dataTransfer){try{event2.dataTransfer.dropEffect="copy"}catch(_unused){}}if(isEvtWithFiles(event2)&&onDragOver){onDragOver(event2)}return false}),[onDragOver,noDragEventsBubbling]);var onDragLeaveCb=useCallback((function(event2){event2.preventDefault();event2.persist();stopPropagation(event2);var targets=dragTargetsRef.current.filter((function(target){return target!==event2.target&&rootRef.current&&rootRef.current.contains(target)}));dragTargetsRef.current=targets;if(targets.length>0){return}dispatch({isDragActive:false,type:"setDraggedFiles",draggedFiles:[]});if(isEvtWithFiles(event2)&&onDragLeave){onDragLeave(event2)}}),[rootRef,onDragLeave,noDragEventsBubbling]);var onDropCb=useCallback((function(event2){event2.preventDefault();event2.persist();stopPropagation(event2);dragTargetsRef.current=[];if(isEvtWithFiles(event2)){Promise.resolve(getFilesFromEvent(event2)).then((function(files){if(isPropagationStopped(event2)&&!noDragEventsBubbling){return}var acceptedFiles=[];var rejectedFiles=[];files.forEach((function(file){if(fileAccepted(file,accept)&&fileMatchSize(file,minSize,maxSize)){acceptedFiles.push(file)}else{rejectedFiles.push(file)}}));if(!multiple&&acceptedFiles.length>1){rejectedFiles.push.apply(rejectedFiles,_toConsumableArray$1(acceptedFiles.splice(0)))}dispatch({acceptedFiles:acceptedFiles,rejectedFiles:rejectedFiles,type:"setFiles"});if(onDrop){onDrop(acceptedFiles,rejectedFiles,event2)}if(rejectedFiles.length>0&&onDropRejected){onDropRejected(rejectedFiles,event2)}if(acceptedFiles.length>0&&onDropAccepted){onDropAccepted(acceptedFiles,event2)}}))}dispatch({type:"reset"})}),[multiple,accept,minSize,maxSize,getFilesFromEvent,onDrop,onDropAccepted,onDropRejected,noDragEventsBubbling]);var composeHandler=function composeHandler2(fn){return disabled?null:fn};var composeKeyboardHandler=function composeKeyboardHandler2(fn){return noKeyboard?null:composeHandler(fn)};var composeDragHandler=function composeDragHandler2(fn){return noDrag?null:composeHandler(fn)};var stopPropagation=function stopPropagation2(event2){if(noDragEventsBubbling){event2.stopPropagation()}};var getRootProps=useMemo((function(){return function(){var _ref3=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref3$refKey=_ref3.refKey,refKey=_ref3$refKey===void 0?"ref":_ref3$refKey,onKeyDown=_ref3.onKeyDown,onFocus2=_ref3.onFocus,onBlur=_ref3.onBlur,onClick=_ref3.onClick,onDragEnter2=_ref3.onDragEnter,onDragOver2=_ref3.onDragOver,onDragLeave2=_ref3.onDragLeave,onDrop2=_ref3.onDrop,rest=_objectWithoutProperties$3(_ref3,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return _objectSpread(_defineProperty$3({onKeyDown:composeKeyboardHandler(composeEventHandlers(onKeyDown,onKeyDownCb)),onFocus:composeKeyboardHandler(composeEventHandlers(onFocus2,onFocusCb)),onBlur:composeKeyboardHandler(composeEventHandlers(onBlur,onBlurCb)),onClick:composeHandler(composeEventHandlers(onClick,onClickCb)),onDragEnter:composeDragHandler(composeEventHandlers(onDragEnter2,onDragEnterCb)),onDragOver:composeDragHandler(composeEventHandlers(onDragOver2,onDragOverCb)),onDragLeave:composeDragHandler(composeEventHandlers(onDragLeave2,onDragLeaveCb)),onDrop:composeDragHandler(composeEventHandlers(onDrop2,onDropCb))},refKey,rootRef),!disabled&&!noKeyboard?{tabIndex:0}:{},{},rest)}}),[rootRef,onKeyDownCb,onFocusCb,onBlurCb,onClickCb,onDragEnterCb,onDragOverCb,onDragLeaveCb,onDropCb,noKeyboard,noDrag,disabled]);var onInputElementClick=useCallback((function(event2){event2.stopPropagation()}),[]);var getInputProps=useMemo((function(){return function(){var _ref4=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref4$refKey=_ref4.refKey,refKey=_ref4$refKey===void 0?"ref":_ref4$refKey,onChange2=_ref4.onChange,onClick=_ref4.onClick,rest=_objectWithoutProperties$3(_ref4,["refKey","onChange","onClick"]);var inputProps=_defineProperty$3({accept:accept,multiple:multiple,type:"file",style:{display:"none"},onChange:composeHandler(composeEventHandlers(onChange2,onDropCb)),onClick:composeHandler(composeEventHandlers(onClick,onInputElementClick)),autoComplete:"off",tabIndex:-1},refKey,inputRef);return _objectSpread({},inputProps,{},rest)}}),[inputRef,accept,multiple,onDropCb,disabled]);var fileCount=draggedFiles.length;var isDragAccept=fileCount>0&&allFilesAccepted({files:draggedFiles,accept:accept,minSize:minSize,maxSize:maxSize,multiple:multiple});var isDragReject=fileCount>0&&!isDragAccept;return _objectSpread({},state,{isDragAccept:isDragAccept,isDragReject:isDragReject,isFocused:isFocused&&!disabled,getRootProps:getRootProps,getInputProps:getInputProps,rootRef:rootRef,inputRef:inputRef,open:composeHandler(openFileDialog)})}function reducer(state,action){switch(action.type){case"focus":return _objectSpread({},state,{isFocused:true});case"blur":return _objectSpread({},state,{isFocused:false});case"openDialog":return _objectSpread({},state,{isFileDialogActive:true});case"closeDialog":return _objectSpread({},state,{isFileDialogActive:false});case"setDraggedFiles":var isDragActive=action.isDragActive,draggedFiles=action.draggedFiles;return _objectSpread({},state,{draggedFiles:draggedFiles,isDragActive:isDragActive});case"setFiles":return _objectSpread({},state,{acceptedFiles:action.acceptedFiles,rejectedFiles:action.rejectedFiles});case"reset":return _objectSpread({},state,{isFileDialogActive:false,isDragActive:false,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return state}}const FormPill=props=>{const{className:className,htmlOptions:htmlOptions={},id:id,text:text2,name:name2,onClick:onClick=()=>void 0,avatarUrl:avatarUrl,closeProps:closeProps={},size:size="",textTransform:textTransform="none",color:color="primary",data:data={},tabIndex:tabIndex}=props;const css4=classnames(`pb_form_pill_kit_${color}`,globalProps(props),className,size==="small"?"small":null,textTransform);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{className:css4,id:id,tabIndex:tabIndex,...dataProps,...htmlProps,children:[name2&&jsxs(Fragment,{children:[jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:"xs",status:null}),jsx$1(Title,{className:"pb_form_pill_text",size:4,text:name2})]}),text2&&jsx$1(Title,{className:"pb_form_pill_tag",size:4,text:text2}),jsx$1("div",{className:"pb_form_pill_close",onClick:onClick,...closeProps,children:jsx$1(Icon,{fixedWidth:true,icon:"times"})})]})};var solidGauge$1={exports:{}};(function(module){(function(a2){module.exports?(a2["default"]=a2,module.exports=a2):a2("undefined"!==typeof Highcharts?Highcharts:void 0)})((function(a2){function b2(a3,h2,g2,f2){a3.hasOwnProperty(h2)||(a3[h2]=f2.apply(null,g2),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h2,module:a3[h2]}})))}a2=a2?a2._modules:{};b2(a2,"Core/Axis/SolidGaugeAxis.js",[a2["Core/Color/Color.js"],a2["Core/Utilities.js"]],(function(a3,h2){var g2=a3.parse,f2=h2.extend,c2=h2.merge,b3;(function(a4){var b4={initDataClasses:function(a5){var r2=this.chart,w2,b5=0,d2=this.options;this.dataClasses=w2=[];a5.dataClasses.forEach((function(k2,l2){k2=c2(k2);w2.push(k2);k2.color||("category"===d2.dataClassColor?(l2=r2.options.colors,k2.color=l2[b5++],b5===l2.length&&(b5=0)):k2.color=g2(d2.minColor).tweenTo(g2(d2.maxColor),l2/(a5.dataClasses.length-1)))}))},initStops:function(a5){this.stops=a5.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach((function(a6){a6.color=g2(a6[1])}))},toColor:function(a5,c3){var b5=this.stops,g3=this.dataClasses,d2;if(g3)for(d2=g3.length;d2--;){var k2=g3[d2];var l2=k2.from;b5=k2.to;if(("undefined"===typeof l2||a5>=l2)&&("undefined"===typeof b5||a5<=b5)){var f3=k2.color;c3&&(c3.dataClass=d2);break}}else{this.logarithmic&&(a5=this.val2lin(a5));a5=1-(this.max-a5)/(this.max-this.min);for(d2=b5.length;d2--&&!(a5>b5[d2][0]););l2=b5[d2]||b5[d2+1];b5=b5[d2+1]||l2;a5=1-(b5[0]-a5)/(b5[0]-l2[0]||1);f3=l2.color.tweenTo(b5.color,a5)}return f3}};a4.init=function(a5){f2(a5,b4)}})(b3||(b3={}));return b3}));b2(a2,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],(function(){return{colorByPoint:true,dataLabels:{y:0}}}));b2(a2,"Series/SolidGauge/SolidGaugeComposition.js",[a2["Core/Renderer/SVG/SVGRenderer.js"]],(function(a3){a3=a3.prototype;var b3=a3.symbols.arc;a3.symbols.arc=function(a4,f2,c2,h2,e2){a4=b3(a4,f2,c2,h2,e2);e2&&e2.rounded&&(c2=((e2.r||c2)-(e2.innerR||0))/2,f2=a4[0],e2=a4[2],"M"===f2[0]&&"L"===e2[0]&&(f2=["A",c2,c2,0,1,1,f2[1],f2[2]],a4[2]=["A",c2,c2,0,1,1,e2[1],e2[2]],a4[4]=f2));return a4}}));b2(a2,"Series/SolidGauge/SolidGaugeSeries.js",[a2["Core/Legend/LegendSymbol.js"],a2["Core/Series/SeriesRegistry.js"],a2["Core/Axis/SolidGaugeAxis.js"],a2["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],a2["Core/Utilities.js"]],(function(a3,b3,g2,f2,c2){var h2=this&&this.__extends||function(){var a4=function(b4,n2){a4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a5,b5){a5.__proto__=b5}||function(a5,b5){for(var n3 in b5)b5.hasOwnProperty(n3)&&(a5[n3]=b5[n3])};return a4(b4,n2)};return function(b4,n2){function c3(){this.constructor=b4}a4(b4,n2);b4.prototype=null===n2?Object.create(n2):(c3.prototype=n2.prototype,new c3)}}(),e2=b3.seriesTypes,x2=e2.gauge,r2=e2.pie.prototype,y2=c2.clamp,w2=c2.extend,z2=c2.isNumber,d2=c2.merge,k2=c2.pick,l2=c2.pInt;c2=function(a4){function b4(){var b5=null!==a4&&a4.apply(this,arguments)||this;b5.data=void 0;b5.points=void 0;b5.options=void 0;b5.axis=void 0;b5.yAxis=void 0;b5.startAngleRad=void 0;b5.thresholdAngleRad=void 0;return b5}h2(b4,a4);b4.prototype.translate=function(){var a5=this.yAxis;g2.init(a5);!a5.dataClasses&&a5.options.dataClasses&&a5.initDataClasses(a5.options);a5.initStops(a5.options);x2.prototype.translate.call(this)};b4.prototype.drawPoints=function(){var a5=this.yAxis,b5=a5.center,c3=this.options,f3=this.chart.renderer,d3=c3.overshoot;d3=z2(d3)?d3/180*Math.PI:0;var e3;z2(c3.threshold)&&(e3=a5.startAngleRad+a5.translate(c3.threshold,void 0,void 0,void 0,true));this.thresholdAngleRad=k2(e3,a5.startAngleRad);e3=0;for(var h3=this.points;e3<h3.length;e3++){var m2=h3[e3];if(!m2.isNull){var g3=l2(k2(m2.options.radius,c3.radius,100))*b5[2]/200,t2=l2(k2(m2.options.innerRadius,c3.innerRadius,60))*b5[2]/200,u2=Math.min(a5.startAngleRad,a5.endAngleRad),r3=Math.max(a5.startAngleRad,a5.endAngleRad),q=m2.graphic,p2=a5.startAngleRad+a5.translate(m2.y,void 0,void 0,void 0,true),v2=a5.toColor(m2.y,m2);"none"===v2&&(v2=m2.color||this.color||"none");"none"!==v2&&(m2.color=v2);p2=y2(p2,u2-d3,r3+d3);false===c3.wrap&&(p2=y2(p2,u2,r3));u2=Math.min(p2,this.thresholdAngleRad);p2=Math.max(p2,this.thresholdAngleRad);p2-u2>2*Math.PI&&(p2=u2+2*Math.PI);m2.shapeArgs=t2={x:b5[0],y:b5[1],r:g3,innerR:t2,start:u2,end:p2,rounded:c3.rounded};m2.startR=g3;q?(g3=t2.d,q.animate(w2({fill:v2},t2)),g3&&(t2.d=g3)):m2.graphic=q=f3.arc(t2).attr({fill:v2,"sweep-flag":0}).add(this.group);this.chart.styledMode||("square"!==c3.linecap&&q.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),q.attr({stroke:c3.borderColor||"none","stroke-width":c3.borderWidth||0}));q&&q.addClass(m2.getClassName(),true)}}};b4.prototype.animate=function(a5){a5||(this.startAngleRad=this.thresholdAngleRad,r2.animate.call(this,a5))};b4.defaultOptions=d2(x2.defaultOptions,f2);return b4}(x2);w2(c2.prototype,{drawLegendSymbol:a3.drawRectangle});b3.registerSeriesType("solidgauge",c2);return c2}));b2(a2,"masters/modules/solid-gauge.src.js",[],(function(){}))}))})(solidGauge$1);var solidGaugeExports=solidGauge$1.exports;const solidGauge=getDefaultExportFromCjs(solidGaugeExports);const Gauge=({aria:aria={},chartData:chartData,customOptions:customOptions={},dark:dark=false,data:data={},disableAnimation:disableAnimation=false,fullCircle:fullCircle=false,height:height=null,htmlOptions:htmlOptions={},id:id,max:max2=100,min:min2=0,prefix:prefix2="",showLabels:showLabels=false,style:style="solidgauge",suffix:suffix="",title:title="",tooltipHtml:tooltipHtml='<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',colors:colors2=[],minorTickInterval:minorTickInterval=null,circumference:circumference=(fullCircle?[0,360]:[-100,100]),...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);highchartsMore(Highcharts$1);solidGauge(Highcharts$1);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();Highcharts$1.setOptions({tooltip:{pointFormat:tooltipHtml,followPointer:true}});const css4=buildCss({pb_gauge_kit:true});const[options2,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={chart:{events:{load(){setTimeout(this.reflow.bind(this),0)}},type:style,height:height},title:{text:title},yAxis:{min:min2,max:max2,lineWidth:0,tickWidth:0,minorTickInterval:minorTickInterval,tickAmount:2,tickPositions:[min2,max2],labels:{y:26,enabled:showLabels}},credits:false,series:[{data:formattedChartData}],pane:{center:["50%","50%"],size:"90%",startAngle:circumference[0],endAngle:circumference[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{animation:!disableAnimation},solidgauge:{borderColor:colors2!==void 0&&colors2.length===1?mapColors(colors2).join():highchartsTheme.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:colors$1.text_lt_default,enabled:true,format:`<span class="prefix">${prefix2}</span><span class="fix">{y:,f}</span><span class="suffix">${suffix}</span>`,style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}}};setOptions(lodashExports.merge(staticOptions,customOptions));if(document.querySelector(".prefix")){document.querySelectorAll(".prefix").forEach((prefix22=>{prefix22.setAttribute("y","28")}));document.querySelectorAll(".fix").forEach((fix=>fix.setAttribute("y","38")))}}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(css4,globalProps(props)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const Side=props=>{const{children:children,className:className}=props;return jsx$1("div",{className:classnames("layout_sidebar",globalProps(props),className),children:children})};const Body=props=>{const{children:children,className:className}=props;return jsx$1("div",{className:classnames("layout_body",globalProps(props),className),children:children})};const Item=props=>{const{children:children,className:className,size:size="sm"}=props;const sizeClass=`size_${size}`;return jsx$1("div",{className:classnames("layout_item",sizeClass,globalProps(props),className),children:children})};const Header=props=>{const{children:children,className:className}=props;return jsx$1("div",{className:classnames("layout_header",globalProps(props),className),children:children})};const Footer=props=>{const{children:children,className:className}=props;return jsx$1("div",{className:classnames("layout_footer",globalProps(props),className),children:children})};const Layout=props=>{const{aria:aria={},children:children,className:className,collapse:collapse="md",dark:dark=false,data:data={},full:full=false,htmlOptions:htmlOptions={},position:position2="left",responsive:responsive=false,size:size="md",layout:layout="sidebar",variant:variant="light",transparent:transparent=false}=props;const responsiveClass=responsive?"_responsive":"";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const layoutCss=layout=="collection"?`pb_layout_kit_${layout}`:layout=="kanban"?`pb_layout_kit_${layout}${responsiveClass}`:buildCss(`pb_layout_kit_${layout}`,`size_${size}`,position2,variant,{dark:dark,transparent:transparent,full:full});const layoutCollapseCss=layout=="collection"?"":layout=="kanban"?"":buildCss("layout",position2,"collapse",collapse);const layoutChildren=React__default.Children.toArray(children);const subComponentTags=tagName=>layoutChildren.filter((c2=>{var _a;return((_a=c2.type)==null?void 0:_a.displayName)===tagName})).map(((child,i)=>React__default.cloneElement(child,{key:`${tagName.toLowerCase()}-${i}`})));const nonSideChildren=layoutChildren.filter((child=>{var _a;return((_a=child.type)==null?void 0:_a.displayName)!=="Side"}));const filteredProps={...props};filteredProps==null?true:delete filteredProps.position;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(layoutCss,layoutCollapseCss,className,globalProps(filteredProps)),children:[subComponentTags("Side"),nonSideChildren]})};Layout.Side=Side;Layout.Body=Body;Layout.Item=Item;Layout.Header=Header;Layout.Footer=Footer;const Legend=props=>{const{aria:aria={},className:className,color:color="data_1",dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,prefixText:prefixText,text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const customColor=color.charAt(0)==="#"&&color;const customColorStyle={background:customColor};const bodyCss=classnames(buildCss("pb_legend_kit",customColor?"":color),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:bodyCss,id:id,children:jsxs(Body$1,{color:dark?"lighter":"light",children:[jsx$1("span",{className:`${customColor?"pb_legend_indicator_circle_custom":"pb_legend_indicator_circle"}`,style:customColorStyle}),prefixText&&jsx$1(Title,{dark:dark,size:4,tag:"span",text:` ${prefixText} `}),` ${text2} `]})})};const useKbdControls=api=>{const[cmdKey,setCmdKey]=useState("");useEffect((()=>{const handleKeyDown=({key:key})=>{const keyCmd=key.toLowerCase();setCmdKey(keyCmd);switch(keyCmd){case"escape":{api.onClose();break}case"arrowleft":{api.onArrowLeft();break}case"arrowright":{api.onArrowRight();break}}};window.addEventListener("keydown",handleKeyDown);return()=>{window.removeEventListener("keydown",handleKeyDown)}}),[api]);return cmdKey};const LightboxContext=React__default.createContext({});const LightboxHeader=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},onClickRight:onClickRight,spacing:spacing2="between",text:text2,navRight:navRight,title:title,closeable:closeable=true,icon:icon="times"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const api=useContext(LightboxContext);const headerCSS=buildCss("lightbox_header");const headerSpacing=globalProps(props,{paddingY:"sm"});const handleOnLightboxClose=()=>api.onClose();const HeaderBody=()=>jsxs(React__default.Fragment,{children:[jsx$1(FlexItem,{flex:"1",marginLeft:"sm",children:jsx$1(CircleIconButton,{dark:true,icon:icon,onClick:handleOnLightboxClose,variant:"link"})}),title&&text2&&jsx$1(FlexItem,{flex:"5",children:jsx$1(Flex,{justify:"center",children:jsxs(Flex,{align:"center",orientation:"column",children:[typeof title==="string"?jsx$1(Title,{dark:true,paddingBottom:"xxs",size:4,text:title}):jsx$1(Flex,{className:"custom-header",justify:"center",children:title}),typeof text2==="string"?jsx$1(Caption,{dark:true,children:text2}):jsx$1(Flex,{className:"custom-header",justify:"center",children:text2})]})})}),jsx$1(FlexItem,{flex:"1",children:jsx$1(Flex,{justify:"end",children:jsx$1(Button,{className:"nav-right-btn",dark:true,htmlType:"button",onClick:onClickRight,text:navRight,variant:"link"})})})]});return jsx$1("div",{className:"carousel-header",children:jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,className:classnames(headerCSS,headerSpacing,className),spacing:spacing2,children:[closeable&&jsx$1(HeaderBody,{}),children]})})};var roundNumber=function(num,decimal){return Number(num.toFixed(decimal))};var checkIsNumber=function(num,defaultValue){return defaultValue};var handleCallback=function(context,event2,callback){if(callback&&typeof callback==="function"){callback(context,event2)}};var easeOut=function(t2){return-Math.cos(t2*Math.PI)/2+.5};var linear=function(t2){return t2};var easeInQuad=function(t2){return t2*t2};var easeOutQuad=function(t2){return t2*(2-t2)};var easeInOutQuad=function(t2){return t2<.5?2*t2*t2:-1+(4-2*t2)*t2};var easeInCubic=function(t2){return t2*t2*t2};var easeOutCubic$1=function(t2){return--t2*t2*t2+1};var easeInOutCubic=function(t2){return t2<.5?4*t2*t2*t2:(t2-1)*(2*t2-2)*(2*t2-2)+1};var easeInQuart=function(t2){return t2*t2*t2*t2};var easeOutQuart=function(t2){return 1- --t2*t2*t2*t2};var easeInOutQuart=function(t2){return t2<.5?8*t2*t2*t2*t2:1-8*--t2*t2*t2*t2};var easeInQuint=function(t2){return t2*t2*t2*t2*t2};var easeOutQuint=function(t2){return 1+--t2*t2*t2*t2*t2};var easeInOutQuint=function(t2){return t2<.5?16*t2*t2*t2*t2*t2:1+16*--t2*t2*t2*t2*t2};var animations={easeOut:easeOut,linear:linear,easeInQuad:easeInQuad,easeOutQuad:easeOutQuad,easeInOutQuad:easeInOutQuad,easeInCubic:easeInCubic,easeOutCubic:easeOutCubic$1,easeInOutCubic:easeInOutCubic,easeInQuart:easeInQuart,easeOutQuart:easeOutQuart,easeInOutQuart:easeInOutQuart,easeInQuint:easeInQuint,easeOutQuint:easeOutQuint,easeInOutQuint:easeInOutQuint};var handleCancelAnimationFrame=function(animation){if(typeof animation==="number"){cancelAnimationFrame(animation)}};var handleCancelAnimation=function(contextInstance){if(!contextInstance.mounted)return;handleCancelAnimationFrame(contextInstance.animation);contextInstance.animate=false;contextInstance.animation=null;contextInstance.velocity=null};function handleSetupAnimation(contextInstance,animationName,animationTime,callback){if(!contextInstance.mounted)return;var startTime=(new Date).getTime();var lastStep=1;handleCancelAnimation(contextInstance);contextInstance.animation=function(){if(!contextInstance.mounted){return handleCancelAnimationFrame(contextInstance.animation)}var frameTime=(new Date).getTime()-startTime;var animationProgress=frameTime/animationTime;var animationType=animations[animationName];var step=animationType(animationProgress);if(frameTime>=animationTime){callback(lastStep);contextInstance.animation=null}else if(contextInstance.animation){callback(step);requestAnimationFrame(contextInstance.animation)}};requestAnimationFrame(contextInstance.animation)}function isValidTargetState(targetState){var scale=targetState.scale,positionX=targetState.positionX,positionY=targetState.positionY;if(Number.isNaN(scale)||Number.isNaN(positionX)||Number.isNaN(positionY)){return false}return true}function animate(contextInstance,targetState,animationTime,animationName){var isValid=isValidTargetState(targetState);if(!contextInstance.mounted||!isValid)return;var setTransformState=contextInstance.setTransformState;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var scaleDiff=targetState.scale-scale;var positionXDiff=targetState.positionX-positionX;var positionYDiff=targetState.positionY-positionY;if(animationTime===0){setTransformState(targetState.scale,targetState.positionX,targetState.positionY)}else{handleSetupAnimation(contextInstance,animationName,animationTime,(function(step){var newScale=scale+scaleDiff*step;var newPositionX=positionX+positionXDiff*step;var newPositionY=positionY+positionYDiff*step;setTransformState(newScale,newPositionX,newPositionY)}))}}function getComponentsSizes(wrapperComponent,contentComponent,newScale){var wrapperWidth=wrapperComponent.offsetWidth;var wrapperHeight=wrapperComponent.offsetHeight;var contentWidth=contentComponent.offsetWidth;var contentHeight=contentComponent.offsetHeight;var newContentWidth=contentWidth*newScale;var newContentHeight=contentHeight*newScale;var newDiffWidth=wrapperWidth-newContentWidth;var newDiffHeight=wrapperHeight-newContentHeight;return{wrapperWidth:wrapperWidth,wrapperHeight:wrapperHeight,newContentWidth:newContentWidth,newDiffWidth:newDiffWidth,newContentHeight:newContentHeight,newDiffHeight:newDiffHeight}}var getBounds=function(wrapperWidth,newContentWidth,diffWidth,wrapperHeight,newContentHeight,diffHeight,centerZoomedOut){var scaleWidthFactor=wrapperWidth>newContentWidth?diffWidth*(centerZoomedOut?1:.5):0;var scaleHeightFactor=wrapperHeight>newContentHeight?diffHeight*(centerZoomedOut?1:.5):0;var minPositionX=wrapperWidth-newContentWidth-scaleWidthFactor;var maxPositionX=scaleWidthFactor;var minPositionY=wrapperHeight-newContentHeight-scaleHeightFactor;var maxPositionY=scaleHeightFactor;return{minPositionX:minPositionX,maxPositionX:maxPositionX,minPositionY:minPositionY,maxPositionY:maxPositionY}};var calculateBounds=function(contextInstance,newScale){var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;var centerZoomedOut=contextInstance.setup.centerZoomedOut;if(!wrapperComponent||!contentComponent){throw new Error("Components are not mounted")}var _a=getComponentsSizes(wrapperComponent,contentComponent,newScale),wrapperWidth=_a.wrapperWidth,wrapperHeight=_a.wrapperHeight,newContentWidth=_a.newContentWidth,newDiffWidth=_a.newDiffWidth,newContentHeight=_a.newContentHeight,newDiffHeight=_a.newDiffHeight;var bounds=getBounds(wrapperWidth,newContentWidth,newDiffWidth,wrapperHeight,newContentHeight,newDiffHeight,Boolean(centerZoomedOut));return bounds};var boundLimiter=function(value,minBound,maxBound,isActive){if(!isActive)return roundNumber(value,2);if(value<minBound)return roundNumber(minBound,2);if(value>maxBound)return roundNumber(maxBound,2);return roundNumber(value,2)};var handleCalculateBounds=function(contextInstance,newScale){var bounds=calculateBounds(contextInstance,newScale);contextInstance.bounds=bounds;return bounds};function getMouseBoundedPosition(positionX,positionY,bounds,limitToBounds,paddingValueX,paddingValueY,wrapperComponent){var minPositionX=bounds.minPositionX,minPositionY=bounds.minPositionY,maxPositionX=bounds.maxPositionX,maxPositionY=bounds.maxPositionY;var paddingX=0;var paddingY=0;if(wrapperComponent){paddingX=paddingValueX;paddingY=paddingValueY}var x2=boundLimiter(positionX,minPositionX-paddingX,maxPositionX+paddingX,limitToBounds);var y2=boundLimiter(positionY,minPositionY-paddingY,maxPositionY+paddingY,limitToBounds);return{x:x2,y:y2}}function handleCalculateZoomPositions(contextInstance,mouseX,mouseY,newScale,bounds,limitToBounds){var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var scaleDifference=newScale-scale;if(typeof mouseX!=="number"||typeof mouseY!=="number"){console.error("Mouse X and Y position were not provided!");return{x:positionX,y:positionY}}var calculatedPositionX=positionX-mouseX*scaleDifference;var calculatedPositionY=positionY-mouseY*scaleDifference;var newPositions=getMouseBoundedPosition(calculatedPositionX,calculatedPositionY,bounds,limitToBounds,0,0,null);return newPositions}function checkZoomBounds(zoom,minScale,maxScale,zoomPadding,enablePadding){var scalePadding=enablePadding?zoomPadding:0;var minScaleWithPadding=minScale-scalePadding;if(!Number.isNaN(maxScale)&&zoom>=maxScale)return maxScale;if(!Number.isNaN(minScale)&&zoom<=minScaleWithPadding)return minScaleWithPadding;return zoom}var isPanningStartAllowed=function(contextInstance,event2){var excluded=contextInstance.setup.panning.excluded;var isInitialized=contextInstance.isInitialized,wrapperComponent=contextInstance.wrapperComponent;var target=event2.target;var isWrapperChild=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.contains(target);var isAllowed=isInitialized&&target&&isWrapperChild;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var isPanningAllowed=function(contextInstance){var isInitialized=contextInstance.isInitialized,isPanning=contextInstance.isPanning,setup=contextInstance.setup;var disabled=setup.panning.disabled;var isAllowed=isInitialized&&isPanning&&!disabled;if(!isAllowed)return false;return true};var handlePanningSetup=function(contextInstance,event2){var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY;contextInstance.isPanning=true;var x2=event2.clientX;var y2=event2.clientY;contextInstance.startCoords={x:x2-positionX,y:y2-positionY}};var handleTouchPanningSetup=function(contextInstance,event2){var touches=event2.touches;var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY;contextInstance.isPanning=true;var oneFingerTouch=touches.length===1;if(oneFingerTouch){var x2=touches[0].clientX;var y2=touches[0].clientY;contextInstance.startCoords={x:x2-positionX,y:y2-positionY}}};function handlePanToBounds(contextInstance){var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY,scale=_a.scale;var _b=contextInstance.setup,disabled=_b.disabled,limitToBounds=_b.limitToBounds,centerZoomedOut=_b.centerZoomedOut;var wrapperComponent=contextInstance.wrapperComponent;if(disabled||!wrapperComponent||!contextInstance.bounds)return;var _c=contextInstance.bounds,maxPositionX=_c.maxPositionX,minPositionX=_c.minPositionX,maxPositionY=_c.maxPositionY,minPositionY=_c.minPositionY;var xChanged=positionX>maxPositionX||positionX<minPositionX;var yChanged=positionY>maxPositionY||positionY<minPositionY;var mousePosX=positionX>maxPositionX?wrapperComponent.offsetWidth:contextInstance.setup.minPositionX||0;var mousePosY=positionY>maxPositionY?wrapperComponent.offsetHeight:contextInstance.setup.minPositionY||0;var _d=handleCalculateZoomPositions(contextInstance,mousePosX,mousePosY,scale,contextInstance.bounds,limitToBounds||centerZoomedOut),x2=_d.x,y2=_d.y;return{scale:scale,positionX:xChanged?x2:positionX,positionY:yChanged?y2:positionY}}function handleNewPosition(contextInstance,newPositionX,newPositionY,paddingValueX,paddingValueY){var limitToBounds=contextInstance.setup.limitToBounds;var wrapperComponent=contextInstance.wrapperComponent,bounds=contextInstance.bounds;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(wrapperComponent===null||bounds===null||newPositionX===positionX&&newPositionY===positionY){return}var _b=getMouseBoundedPosition(newPositionX,newPositionY,bounds,limitToBounds,paddingValueX,paddingValueY,wrapperComponent),x2=_b.x,y2=_b.y;contextInstance.setTransformState(scale,x2,y2)}var getPanningClientPosition=function(contextInstance,clientX,clientY){var startCoords=contextInstance.startCoords,transformState=contextInstance.transformState;var panning=contextInstance.setup.panning;var lockAxisX=panning.lockAxisX,lockAxisY=panning.lockAxisY;var positionX=transformState.positionX,positionY=transformState.positionY;if(!startCoords){return{x:positionX,y:positionY}}var mouseX=clientX-startCoords.x;var mouseY=clientY-startCoords.y;var newPositionX=lockAxisX?positionX:mouseX;var newPositionY=lockAxisY?positionY:mouseY;return{x:newPositionX,y:newPositionY}};var getPaddingValue=function(contextInstance,size){var setup=contextInstance.setup,transformState=contextInstance.transformState;var scale=transformState.scale;var minScale=setup.minScale,disablePadding=setup.disablePadding;if(size>0&&scale>=minScale&&!disablePadding){return size}return 0};var isVelocityCalculationAllowed=function(contextInstance){var mounted=contextInstance.mounted;var _a=contextInstance.setup,disabled=_a.disabled,velocityAnimation=_a.velocityAnimation;var scale=contextInstance.transformState.scale;var disabledVelocity=velocityAnimation.disabled;var isAllowed=!disabledVelocity||scale>1||!disabled||mounted;if(!isAllowed)return false;return true};var isVelocityAllowed=function(contextInstance){var mounted=contextInstance.mounted,velocity=contextInstance.velocity,bounds=contextInstance.bounds;var _a=contextInstance.setup,disabled=_a.disabled,velocityAnimation=_a.velocityAnimation;var scale=contextInstance.transformState.scale;var disabledVelocity=velocityAnimation.disabled;var isAllowed=!disabledVelocity||scale>1||!disabled||mounted;if(!isAllowed)return false;if(!velocity||!bounds)return false;return true};function getVelocityMoveTime(contextInstance,velocity){var velocityAnimation=contextInstance.setup.velocityAnimation;var equalToMove=velocityAnimation.equalToMove,animationTime=velocityAnimation.animationTime,sensitivity=velocityAnimation.sensitivity;if(equalToMove){return animationTime*velocity*sensitivity}return animationTime}function getVelocityPosition(newPosition,startPosition,currentPosition,isLocked,limitToBounds,minPosition,maxPosition,minTarget,maxTarget,step){if(limitToBounds){if(startPosition>maxPosition&&currentPosition>maxPosition){var calculatedPosition=maxPosition+(newPosition-maxPosition)*step;if(calculatedPosition>maxTarget)return maxTarget;if(calculatedPosition<maxPosition)return maxPosition;return calculatedPosition}if(startPosition<minPosition&&currentPosition<minPosition){var calculatedPosition=minPosition+(newPosition-minPosition)*step;if(calculatedPosition<minTarget)return minTarget;if(calculatedPosition>minPosition)return minPosition;return calculatedPosition}}if(isLocked)return startPosition;return boundLimiter(newPosition,minPosition,maxPosition,limitToBounds)}function getSizeMultiplier(wrapperComponent,equalToMove){var defaultMultiplier=1;if(equalToMove){return Math.min(defaultMultiplier,wrapperComponent.offsetWidth/window.innerWidth)}return defaultMultiplier}function handleCalculateVelocity(contextInstance,position2){var isAllowed=isVelocityCalculationAllowed(contextInstance);if(!isAllowed){return}var lastMousePosition=contextInstance.lastMousePosition,velocityTime=contextInstance.velocityTime,setup=contextInstance.setup;var wrapperComponent=contextInstance.wrapperComponent;var equalToMove=setup.velocityAnimation.equalToMove;var now=Date.now();if(lastMousePosition&&velocityTime&&wrapperComponent){var sizeMultiplier=getSizeMultiplier(wrapperComponent,equalToMove);var distanceX=position2.x-lastMousePosition.x;var distanceY=position2.y-lastMousePosition.y;var velocityX=distanceX/sizeMultiplier;var velocityY=distanceY/sizeMultiplier;var interval=now-velocityTime;var speed=distanceX*distanceX+distanceY*distanceY;var velocity=Math.sqrt(speed)/interval;contextInstance.velocity={velocityX:velocityX,velocityY:velocityY,total:velocity}}contextInstance.lastMousePosition=position2;contextInstance.velocityTime=now}function handleVelocityPanning(contextInstance){var velocity=contextInstance.velocity,bounds=contextInstance.bounds,setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var isAllowed=isVelocityAllowed(contextInstance);if(!isAllowed||!velocity||!bounds||!wrapperComponent){return}var velocityX=velocity.velocityX,velocityY=velocity.velocityY,total=velocity.total;var maxPositionX=bounds.maxPositionX,minPositionX=bounds.minPositionX,maxPositionY=bounds.maxPositionY,minPositionY=bounds.minPositionY;var limitToBounds=setup.limitToBounds,alignmentAnimation=setup.alignmentAnimation;var zoomAnimation=setup.zoomAnimation,panning=setup.panning;var lockAxisY=panning.lockAxisY,lockAxisX=panning.lockAxisX;var animationType=zoomAnimation.animationType;var sizeX=alignmentAnimation.sizeX,sizeY=alignmentAnimation.sizeY,velocityAlignmentTime=alignmentAnimation.velocityAlignmentTime;var alignAnimationTime=velocityAlignmentTime;var moveAnimationTime=getVelocityMoveTime(contextInstance,total);var finalAnimationTime=Math.max(moveAnimationTime,alignAnimationTime);var paddingValueX=getPaddingValue(contextInstance,sizeX);var paddingValueY=getPaddingValue(contextInstance,sizeY);var paddingX=paddingValueX*wrapperComponent.offsetWidth/100;var paddingY=paddingValueY*wrapperComponent.offsetHeight/100;var maxTargetX=maxPositionX+paddingX;var minTargetX=minPositionX-paddingX;var maxTargetY=maxPositionY+paddingY;var minTargetY=minPositionY-paddingY;var startState=contextInstance.transformState;var startTime=(new Date).getTime();handleSetupAnimation(contextInstance,animationType,finalAnimationTime,(function(step){var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var frameTime=(new Date).getTime()-startTime;var animationProgress=frameTime/alignAnimationTime;var alignAnimation=animations[alignmentAnimation.animationType];var alignStep=1-alignAnimation(Math.min(1,animationProgress));var customStep=1-step;var newPositionX=positionX+velocityX*customStep;var newPositionY=positionY+velocityY*customStep;var currentPositionX=getVelocityPosition(newPositionX,startState.positionX,positionX,lockAxisX,limitToBounds,minPositionX,maxPositionX,minTargetX,maxTargetX,alignStep);var currentPositionY=getVelocityPosition(newPositionY,startState.positionY,positionY,lockAxisY,limitToBounds,minPositionY,maxPositionY,minTargetY,maxTargetY,alignStep);if(positionX!==newPositionX||positionY!==newPositionY){contextInstance.setTransformState(scale,currentPositionX,currentPositionY)}}))}function handlePanningStart(contextInstance,event2){var scale=contextInstance.transformState.scale;handleCancelAnimation(contextInstance);handleCalculateBounds(contextInstance,scale);if(window.TouchEvent!==void 0&&event2 instanceof TouchEvent){handleTouchPanningSetup(contextInstance,event2)}else{handlePanningSetup(contextInstance,event2)}}function handleAlignToBounds(contextInstance){var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,minScale=_a.minScale,alignmentAnimation=_a.alignmentAnimation;var disabled=alignmentAnimation.disabled,sizeX=alignmentAnimation.sizeX,sizeY=alignmentAnimation.sizeY,animationTime=alignmentAnimation.animationTime,animationType=alignmentAnimation.animationType;var isDisabled=disabled||scale<minScale||!sizeX&&!sizeY;if(isDisabled)return;var targetState=handlePanToBounds(contextInstance);if(targetState){animate(contextInstance,targetState,animationTime,animationType)}}function handlePanning(contextInstance,clientX,clientY){var startCoords=contextInstance.startCoords,setup=contextInstance.setup;var _a=setup.alignmentAnimation,sizeX=_a.sizeX,sizeY=_a.sizeY;if(!startCoords)return;var _b=getPanningClientPosition(contextInstance,clientX,clientY),x2=_b.x,y2=_b.y;var paddingValueX=getPaddingValue(contextInstance,sizeX);var paddingValueY=getPaddingValue(contextInstance,sizeY);handleCalculateVelocity(contextInstance,{x:x2,y:y2});handleNewPosition(contextInstance,x2,y2,paddingValueX,paddingValueY)}function handlePanningEnd(contextInstance){if(contextInstance.isPanning){var velocityDisabled=contextInstance.setup.panning.velocityDisabled;var velocity=contextInstance.velocity,wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;contextInstance.isPanning=false;contextInstance.animate=false;contextInstance.animation=null;var wrapperRect=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.getBoundingClientRect();var contentRect=contentComponent===null||contentComponent===void 0?void 0:contentComponent.getBoundingClientRect();var wrapperWidth=(wrapperRect===null||wrapperRect===void 0?void 0:wrapperRect.width)||0;var wrapperHeight=(wrapperRect===null||wrapperRect===void 0?void 0:wrapperRect.height)||0;var contentWidth=(contentRect===null||contentRect===void 0?void 0:contentRect.width)||0;var contentHeight=(contentRect===null||contentRect===void 0?void 0:contentRect.height)||0;var isZoomed=wrapperWidth<contentWidth||wrapperHeight<contentHeight;var shouldAnimate=!velocityDisabled&&velocity&&(velocity===null||velocity===void 0?void 0:velocity.total)>.1&&isZoomed;if(shouldAnimate){handleVelocityPanning(contextInstance)}else{handleAlignToBounds(contextInstance)}}}function handleZoomToPoint(contextInstance,scale,mouseX,mouseY){var _a=contextInstance.setup,minScale=_a.minScale,maxScale=_a.maxScale,limitToBounds=_a.limitToBounds;var newScale=checkZoomBounds(roundNumber(scale,2),minScale,maxScale,0,false);var bounds=handleCalculateBounds(contextInstance,newScale);var _b=handleCalculateZoomPositions(contextInstance,mouseX,mouseY,newScale,bounds,limitToBounds),x2=_b.x,y2=_b.y;return{scale:newScale,positionX:x2,positionY:y2}}function handleAlignToScaleBounds(contextInstance,mousePositionX,mousePositionY){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent;var _a=contextInstance.setup,minScale=_a.minScale,limitToBounds=_a.limitToBounds,zoomAnimation=_a.zoomAnimation;var disabled=zoomAnimation.disabled,animationTime=zoomAnimation.animationTime,animationType=zoomAnimation.animationType;var isDisabled=disabled||scale>=minScale;if(scale>=1||limitToBounds){handleAlignToBounds(contextInstance)}if(isDisabled||!wrapperComponent||!contextInstance.mounted)return;var mouseX=mousePositionX||wrapperComponent.offsetWidth/2;var mouseY=mousePositionY||wrapperComponent.offsetHeight/2;var targetState=handleZoomToPoint(contextInstance,minScale,mouseX,mouseY);if(targetState){animate(contextInstance,targetState,animationTime,animationType)}}var __assign=function(){__assign=Object.assign||function __assign2(t2){for(var s2,i=1,n2=arguments.length;i<n2;i++){s2=arguments[i];for(var p2 in s2)if(Object.prototype.hasOwnProperty.call(s2,p2))t2[p2]=s2[p2]}return t2};return __assign.apply(this,arguments)};function __spreadArray(to,from2,pack){for(var i=0,l2=from2.length,ar;i<l2;i++){if(ar||!(i in from2)){if(!ar)ar=Array.prototype.slice.call(from2,0,i);ar[i]=from2[i]}}return to.concat(ar||Array.prototype.slice.call(from2))}var initialState={previousScale:1,scale:1,positionX:0,positionY:0};var initialSetup={disabled:false,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:true,centerZoomedOut:false,centerOnInit:false,disablePadding:false,wheel:{step:.2,disabled:false,wheelDisabled:false,touchPadDisabled:false,activationKeys:[],excluded:[]},panning:{disabled:false,velocityDisabled:false,lockAxisX:false,lockAxisY:false,activationKeys:[],excluded:[]},pinch:{step:5,disabled:false,excluded:[]},doubleClick:{disabled:false,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:false,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:false,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:false,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:true}};var createState=function(props){var _a,_b,_c,_d;return{previousScale:(_a=props.initialScale)!==null&&_a!==void 0?_a:initialState.scale,scale:(_b=props.initialScale)!==null&&_b!==void 0?_b:initialState.scale,positionX:(_c=props.initialPositionX)!==null&&_c!==void 0?_c:initialState.positionX,positionY:(_d=props.initialPositionY)!==null&&_d!==void 0?_d:initialState.positionY}};var createSetup=function(props){var newSetup=__assign({},initialSetup);Object.keys(props).forEach((function(key){var validValue=typeof props[key]!=="undefined";var validParameter=typeof initialSetup[key]!=="undefined";if(validParameter&&validValue){var dataType=Object.prototype.toString.call(initialSetup[key]);var isObject2=dataType==="[object Object]";var isArray2=dataType==="[object Array]";if(isObject2){newSetup[key]=__assign(__assign({},initialSetup[key]),props[key])}else if(isArray2){newSetup[key]=__spreadArray(__spreadArray([],initialSetup[key],true),props[key])}else{newSetup[key]=props[key]}}}));return newSetup};var handleCalculateButtonZoom=function(contextInstance,delta,step){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation;var size=zoomAnimation.size;if(!wrapperComponent){throw new Error("Wrapper is not mounted")}var targetScale=scale*Math.exp(delta*step);var newScale=checkZoomBounds(roundNumber(targetScale,3),minScale,maxScale,size,false);return newScale};function handleZoomToViewCenter(contextInstance,delta,step,animationTime,animationType){var wrapperComponent=contextInstance.wrapperComponent;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(!wrapperComponent)return console.error("No WrapperComponent found");var wrapperWidth=wrapperComponent.offsetWidth;var wrapperHeight=wrapperComponent.offsetHeight;var mouseX=(wrapperWidth/2-positionX)/scale;var mouseY=(wrapperHeight/2-positionY)/scale;var newScale=handleCalculateButtonZoom(contextInstance,delta,step);var targetState=handleZoomToPoint(contextInstance,newScale,mouseX,mouseY);if(!targetState){return console.error("Error during zoom event. New transformation state was not calculated.")}animate(contextInstance,targetState,animationTime,animationType)}function resetTransformations(contextInstance,animationTime,animationType,onResetTransformation){var setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var limitToBounds=setup.limitToBounds;var initialTransformation=createState(contextInstance.props);var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(!wrapperComponent)return;var newBounds=calculateBounds(contextInstance,initialTransformation.scale);var boundedPositions=getMouseBoundedPosition(initialTransformation.positionX,initialTransformation.positionY,newBounds,limitToBounds,0,0,wrapperComponent);var newState={scale:initialTransformation.scale,positionX:boundedPositions.x,positionY:boundedPositions.y};if(scale===initialTransformation.scale&&positionX===initialTransformation.positionX&&positionY===initialTransformation.positionY){return}onResetTransformation===null||onResetTransformation===void 0?void 0:onResetTransformation();animate(contextInstance,newState,animationTime,animationType)}function getOffset(element,wrapper,content,state){var offset2=element.getBoundingClientRect();var wrapperOffset=wrapper.getBoundingClientRect();var contentOffset=content.getBoundingClientRect();var xOff=wrapperOffset.x*state.scale;var yOff=wrapperOffset.y*state.scale;return{x:(offset2.x-contentOffset.x+xOff)/state.scale,y:(offset2.y-contentOffset.y+yOff)/state.scale}}function calculateZoomToNode(contextInstance,node2,customZoom){var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent,transformState=contextInstance.transformState;var _a=contextInstance.setup,limitToBounds=_a.limitToBounds,minScale=_a.minScale,maxScale=_a.maxScale;if(!wrapperComponent||!contentComponent)return transformState;var wrapperRect=wrapperComponent.getBoundingClientRect();var nodeRect=node2.getBoundingClientRect();var nodeOffset=getOffset(node2,wrapperComponent,contentComponent,transformState);var nodeLeft=nodeOffset.x;var nodeTop=nodeOffset.y;var nodeWidth=nodeRect.width/transformState.scale;var nodeHeight=nodeRect.height/transformState.scale;var scaleX=wrapperComponent.offsetWidth/nodeWidth;var scaleY=wrapperComponent.offsetHeight/nodeHeight;var newScale=checkZoomBounds(customZoom||Math.min(scaleX,scaleY),minScale,maxScale,0,false);var offsetX=(wrapperRect.width-nodeWidth*newScale)/2;var offsetY=(wrapperRect.height-nodeHeight*newScale)/2;var newPositionX=(wrapperRect.left-nodeLeft)*newScale+offsetX;var newPositionY=(wrapperRect.top-nodeTop)*newScale+offsetY;var bounds=calculateBounds(contextInstance,newScale);var _b=getMouseBoundedPosition(newPositionX,newPositionY,bounds,limitToBounds,0,0,wrapperComponent),x2=_b.x,y2=_b.y;return{positionX:x2,positionY:y2,scale:newScale}}var zoomIn=function(contextInstance){return function(step,animationTime,animationType){if(step===void 0){step=.5}if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}handleZoomToViewCenter(contextInstance,1,step,animationTime,animationType)}};var zoomOut=function(contextInstance){return function(step,animationTime,animationType){if(step===void 0){step=.5}if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}handleZoomToViewCenter(contextInstance,-1,step,animationTime,animationType)}};var setTransform=function(contextInstance){return function(newPositionX,newPositionY,newScale,animationTime,animationType){if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY,scale=_a.scale;var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;var disabled=contextInstance.setup.disabled;if(disabled||!wrapperComponent||!contentComponent)return;var targetState={positionX:Number.isNaN(newPositionX)?positionX:newPositionX,positionY:Number.isNaN(newPositionY)?positionY:newPositionY,scale:Number.isNaN(newScale)?scale:newScale};animate(contextInstance,targetState,animationTime,animationType)}};var resetTransform=function(contextInstance){return function(animationTime,animationType){if(animationTime===void 0){animationTime=200}if(animationType===void 0){animationType="easeOut"}resetTransformations(contextInstance,animationTime,animationType)}};var centerView=function(contextInstance){return function(scale,animationTime,animationType){if(animationTime===void 0){animationTime=200}if(animationType===void 0){animationType="easeOut"}var transformState=contextInstance.transformState,wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;if(wrapperComponent&&contentComponent){var targetState=getCenterPosition(scale||transformState.scale,wrapperComponent,contentComponent);animate(contextInstance,targetState,animationTime,animationType)}}};var zoomToElement=function(contextInstance){return function(node2,scale,animationTime,animationType){if(animationTime===void 0){animationTime=600}if(animationType===void 0){animationType="easeOut"}handleCancelAnimation(contextInstance);var wrapperComponent=contextInstance.wrapperComponent;var target=typeof node2==="string"?document.getElementById(node2):node2;if(wrapperComponent&&target&&wrapperComponent.contains(target)){var targetState=calculateZoomToNode(contextInstance,target,scale);animate(contextInstance,targetState,animationTime,animationType)}}};var getContext=function(contextInstance){return{instance:contextInstance,state:contextInstance.transformState,zoomIn:zoomIn(contextInstance),zoomOut:zoomOut(contextInstance),setTransform:setTransform(contextInstance),resetTransform:resetTransform(contextInstance),centerView:centerView(contextInstance),zoomToElement:zoomToElement(contextInstance)}};var passiveSupported=false;function makePassiveEventOption(){try{var options2={get passive(){passiveSupported=true;return false}};return options2}catch(err){passiveSupported=false;return passiveSupported}}var isExcludedNode=function(node2,excluded){var targetTagName=node2.tagName.toUpperCase();var isExcludedTag=excluded.find((function(tag){return tag.toUpperCase()===targetTagName}));if(isExcludedTag)return true;var isExcludedClassName=excluded.find((function(className){return node2.classList.contains(className)}));if(isExcludedClassName)return true;return false};var cancelTimeout=function(timeout){if(timeout){clearTimeout(timeout)}};var getTransformStyles=function(x2,y2,scale){return"translate(".concat(x2,"px, ").concat(y2,"px) scale(").concat(scale,")")};var getCenterPosition=function(scale,wrapperComponent,contentComponent){var contentWidth=contentComponent.offsetWidth*scale;var contentHeight=contentComponent.offsetHeight*scale;var centerPositionX=(wrapperComponent.offsetWidth-contentWidth)/2;var centerPositionY=(wrapperComponent.offsetHeight-contentHeight)/2;return{scale:scale,positionX:centerPositionX,positionY:centerPositionY}};function mergeRefs(refs){return function(value){refs.forEach((function(ref){if(typeof ref==="function"){ref(value)}else if(ref!=null){ref.current=value}}))}}var isWheelAllowed=function(contextInstance,event2){var _a=contextInstance.setup.wheel,disabled=_a.disabled,wheelDisabled=_a.wheelDisabled,touchPadDisabled=_a.touchPadDisabled,excluded=_a.excluded;var isInitialized=contextInstance.isInitialized,isPanning=contextInstance.isPanning;var target=event2.target;var isAllowed=isInitialized&&!isPanning&&!disabled&&target;if(!isAllowed)return false;if(wheelDisabled&&!event2.ctrlKey)return false;if(touchPadDisabled&&event2.ctrlKey)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var getDeltaY=function(event2){if(event2){return event2.deltaY<0?1:-1}return 0};function getDelta(event2,customDelta){var deltaY=getDeltaY(event2);var delta=checkIsNumber(customDelta,deltaY);return delta}function getMousePosition(event2,contentComponent,scale){var contentRect=contentComponent.getBoundingClientRect();var mouseX=0;var mouseY=0;if("clientX"in event2){mouseX=(event2.clientX-contentRect.left)/scale;mouseY=(event2.clientY-contentRect.top)/scale}else{var touch=event2.touches[0];mouseX=(touch.clientX-contentRect.left)/scale;mouseY=(touch.clientY-contentRect.top)/scale}if(Number.isNaN(mouseX)||Number.isNaN(mouseY))console.error("No mouse or touch offset found");return{x:mouseX,y:mouseY}}var handleCalculateWheelZoom=function(contextInstance,delta,step,disable,getTarget2){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;if(!wrapperComponent){throw new Error("Wrapper is not mounted")}var targetScale=scale+delta*(scale-scale*step)*step;var paddingEnabled=disable?false:!disabled;var newScale=checkZoomBounds(roundNumber(targetScale,3),minScale,maxScale,size,paddingEnabled&&!disablePadding);return newScale};var handleWheelZoomStop=function(contextInstance,event2){var previousWheelEvent=contextInstance.previousWheelEvent;var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,maxScale=_a.maxScale,minScale=_a.minScale;if(!previousWheelEvent)return false;if(scale<maxScale||scale>minScale)return true;if(Math.sign(previousWheelEvent.deltaY)!==Math.sign(event2.deltaY))return true;if(previousWheelEvent.deltaY>0&&previousWheelEvent.deltaY<event2.deltaY)return true;if(previousWheelEvent.deltaY<0&&previousWheelEvent.deltaY>event2.deltaY)return true;if(Math.sign(previousWheelEvent.deltaY)!==Math.sign(event2.deltaY))return true;return false};var isPinchStartAllowed=function(contextInstance,event2){var _a=contextInstance.setup.pinch,disabled=_a.disabled,excluded=_a.excluded;var isInitialized=contextInstance.isInitialized;var target=event2.target;var isAllowed=isInitialized&&!disabled&&target;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var isPinchAllowed=function(contextInstance){var disabled=contextInstance.setup.pinch.disabled;var isInitialized=contextInstance.isInitialized,pinchStartDistance=contextInstance.pinchStartDistance;var isAllowed=isInitialized&&!disabled&&pinchStartDistance;if(!isAllowed)return false;return true};var calculateTouchMidPoint=function(event2,scale,contentComponent){var contentRect=contentComponent.getBoundingClientRect();var touches=event2.touches;var firstPointX=roundNumber(touches[0].clientX-contentRect.left,5);var firstPointY=roundNumber(touches[0].clientY-contentRect.top,5);var secondPointX=roundNumber(touches[1].clientX-contentRect.left,5);var secondPointY=roundNumber(touches[1].clientY-contentRect.top,5);return{x:(firstPointX+secondPointX)/2/scale,y:(firstPointY+secondPointY)/2/scale}};var getTouchDistance=function(event2){return Math.sqrt(Math.pow(event2.touches[0].pageX-event2.touches[1].pageX,2)+Math.pow(event2.touches[0].pageY-event2.touches[1].pageY,2))};var calculatePinchZoom=function(contextInstance,currentDistance){var pinchStartScale=contextInstance.pinchStartScale,pinchStartDistance=contextInstance.pinchStartDistance,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;if(!pinchStartScale||pinchStartDistance===null||!currentDistance){throw new Error("Pinch touches distance was not provided")}if(currentDistance<0){return contextInstance.transformState.scale}var touchProportion=currentDistance/pinchStartDistance;var scaleDifference=touchProportion*pinchStartScale;return checkZoomBounds(roundNumber(scaleDifference,2),minScale,maxScale,size,!disabled&&!disablePadding)};var wheelStopEventTime=160;var wheelAnimationTime=100;var handleWheelStart=function(contextInstance,event2){var _a=contextInstance.props,onWheelStart=_a.onWheelStart,onZoomStart=_a.onZoomStart;if(!contextInstance.wheelStopEventTimer){handleCancelAnimation(contextInstance);handleCallback(getContext(contextInstance),event2,onWheelStart);handleCallback(getContext(contextInstance),event2,onZoomStart)}};var handleWheelZoom=function(contextInstance,event2){var _a=contextInstance.props,onWheel=_a.onWheel,onZoom=_a.onZoom;var contentComponent=contextInstance.contentComponent,setup=contextInstance.setup,transformState=contextInstance.transformState;var scale=transformState.scale;var limitToBounds=setup.limitToBounds,centerZoomedOut=setup.centerZoomedOut,zoomAnimation=setup.zoomAnimation,wheel=setup.wheel,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;var step=wheel.step;if(!contentComponent){throw new Error("Component not mounted")}event2.preventDefault();event2.stopPropagation();var delta=getDelta(event2,null);var newScale=handleCalculateWheelZoom(contextInstance,delta,step,!event2.ctrlKey);if(scale===newScale)return;var bounds=handleCalculateBounds(contextInstance,newScale);var mousePosition=getMousePosition(event2,contentComponent,scale);var isPaddingDisabled=disabled||size===0||centerZoomedOut||disablePadding;var isLimitedToBounds=limitToBounds&&isPaddingDisabled;var _b=handleCalculateZoomPositions(contextInstance,mousePosition.x,mousePosition.y,newScale,bounds,isLimitedToBounds),x2=_b.x,y2=_b.y;contextInstance.previousWheelEvent=event2;contextInstance.setTransformState(newScale,x2,y2);handleCallback(getContext(contextInstance),event2,onWheel);handleCallback(getContext(contextInstance),event2,onZoom)};var handleWheelStop=function(contextInstance,event2){var _a=contextInstance.props,onWheelStop=_a.onWheelStop,onZoomStop=_a.onZoomStop;cancelTimeout(contextInstance.wheelAnimationTimer);contextInstance.wheelAnimationTimer=setTimeout((function(){if(!contextInstance.mounted)return;handleAlignToScaleBounds(contextInstance,event2.x,event2.y);contextInstance.wheelAnimationTimer=null}),wheelAnimationTime);var hasStoppedZooming=handleWheelZoomStop(contextInstance,event2);if(hasStoppedZooming){cancelTimeout(contextInstance.wheelStopEventTimer);contextInstance.wheelStopEventTimer=setTimeout((function(){if(!contextInstance.mounted)return;contextInstance.wheelStopEventTimer=null;handleCallback(getContext(contextInstance),event2,onWheelStop);handleCallback(getContext(contextInstance),event2,onZoomStop)}),wheelStopEventTime)}};var handlePinchStart=function(contextInstance,event2){var distance=getTouchDistance(event2);contextInstance.pinchStartDistance=distance;contextInstance.lastDistance=distance;contextInstance.pinchStartScale=contextInstance.transformState.scale;contextInstance.isPanning=false;handleCancelAnimation(contextInstance)};var handlePinchZoom=function(contextInstance,event2){var contentComponent=contextInstance.contentComponent,pinchStartDistance=contextInstance.pinchStartDistance;var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,limitToBounds=_a.limitToBounds,centerZoomedOut=_a.centerZoomedOut,zoomAnimation=_a.zoomAnimation;var disabled=zoomAnimation.disabled,size=zoomAnimation.size;if(pinchStartDistance===null||!contentComponent)return;var midPoint=calculateTouchMidPoint(event2,scale,contentComponent);if(!Number.isFinite(midPoint.x)||!Number.isFinite(midPoint.y))return;var currentDistance=getTouchDistance(event2);var newScale=calculatePinchZoom(contextInstance,currentDistance);if(newScale===scale)return;var bounds=handleCalculateBounds(contextInstance,newScale);var isPaddingDisabled=disabled||size===0||centerZoomedOut;var isLimitedToBounds=limitToBounds&&isPaddingDisabled;var _b=handleCalculateZoomPositions(contextInstance,midPoint.x,midPoint.y,newScale,bounds,isLimitedToBounds),x2=_b.x,y2=_b.y;contextInstance.pinchMidpoint=midPoint;contextInstance.lastDistance=currentDistance;contextInstance.setTransformState(newScale,x2,y2)};var handlePinchStop=function(contextInstance){var pinchMidpoint=contextInstance.pinchMidpoint;contextInstance.velocity=null;contextInstance.lastDistance=null;contextInstance.pinchMidpoint=null;contextInstance.pinchStartScale=null;contextInstance.pinchStartDistance=null;handleAlignToScaleBounds(contextInstance,pinchMidpoint===null||pinchMidpoint===void 0?void 0:pinchMidpoint.x,pinchMidpoint===null||pinchMidpoint===void 0?void 0:pinchMidpoint.y)};var handleDoubleClickStop=function(contextInstance,event2){var onZoomStop=contextInstance.props.onZoomStop;var animationTime=contextInstance.setup.doubleClick.animationTime;cancelTimeout(contextInstance.doubleClickStopEventTimer);contextInstance.doubleClickStopEventTimer=setTimeout((function(){contextInstance.doubleClickStopEventTimer=null;handleCallback(getContext(contextInstance),event2,onZoomStop)}),animationTime)};var handleDoubleClickResetMode=function(contextInstance,event2){var _a=contextInstance.props,onZoomStart=_a.onZoomStart,onZoom=_a.onZoom;var _b=contextInstance.setup.doubleClick,animationTime=_b.animationTime,animationType=_b.animationType;handleCallback(getContext(contextInstance),event2,onZoomStart);resetTransformations(contextInstance,animationTime,animationType,(function(){return handleCallback(getContext(contextInstance),event2,onZoom)}));handleDoubleClickStop(contextInstance,event2)};function handleDoubleClick(contextInstance,event2){var setup=contextInstance.setup,doubleClickStopEventTimer=contextInstance.doubleClickStopEventTimer,transformState=contextInstance.transformState,contentComponent=contextInstance.contentComponent;var scale=transformState.scale;var _a=contextInstance.props,onZoomStart=_a.onZoomStart,onZoom=_a.onZoom;var _b=setup.doubleClick,disabled=_b.disabled,mode=_b.mode,step=_b.step,animationTime=_b.animationTime,animationType=_b.animationType;if(disabled)return;if(doubleClickStopEventTimer)return;if(mode==="reset"){return handleDoubleClickResetMode(contextInstance,event2)}if(!contentComponent)return console.error("No ContentComponent found");var delta=mode==="zoomOut"?-1:1;var newScale=handleCalculateButtonZoom(contextInstance,delta,step);if(scale===newScale)return;handleCallback(getContext(contextInstance),event2,onZoomStart);var mousePosition=getMousePosition(event2,contentComponent,scale);var targetState=handleZoomToPoint(contextInstance,newScale,mousePosition.x,mousePosition.y);if(!targetState){return console.error("Error during zoom event. New transformation state was not calculated.")}handleCallback(getContext(contextInstance),event2,onZoom);animate(contextInstance,targetState,animationTime,animationType);handleDoubleClickStop(contextInstance,event2)}var isDoubleClickAllowed=function(contextInstance,event2){var isInitialized=contextInstance.isInitialized,setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var _a=setup.doubleClick,disabled=_a.disabled,excluded=_a.excluded;var target=event2.target;var isWrapperChild=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.contains(target);var isAllowed=isInitialized&&target&&isWrapperChild&&!disabled;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var ZoomPanPinch=function(){function ZoomPanPinch2(props){var _this=this;this.mounted=true;this.onChangeCallbacks=new Set;this.wrapperComponent=null;this.contentComponent=null;this.isInitialized=false;this.bounds=null;this.previousWheelEvent=null;this.wheelStopEventTimer=null;this.wheelAnimationTimer=null;this.isPanning=false;this.startCoords=null;this.lastTouch=null;this.distance=null;this.lastDistance=null;this.pinchStartDistance=null;this.pinchStartScale=null;this.pinchMidpoint=null;this.doubleClickStopEventTimer=null;this.velocity=null;this.velocityTime=null;this.lastMousePosition=null;this.animate=false;this.animation=null;this.maxBounds=null;this.pressedKeys={};this.mount=function(){_this.initializeWindowEvents()};this.unmount=function(){_this.cleanupWindowEvents()};this.update=function(newProps){handleCalculateBounds(_this,_this.transformState.scale);_this.setup=createSetup(newProps)};this.initializeWindowEvents=function(){var _a;var passive=makePassiveEventOption();var currentDocument=(_a=_this.wrapperComponent)===null||_a===void 0?void 0:_a.ownerDocument;var currentWindow=currentDocument===null||currentDocument===void 0?void 0:currentDocument.defaultView;currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mousedown",_this.onPanningStart,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mousemove",_this.onPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mouseup",_this.onPanningStop,passive);currentDocument===null||currentDocument===void 0?void 0:currentDocument.addEventListener("mouseleave",_this.clearPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("keyup",_this.setKeyUnPressed,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("keydown",_this.setKeyPressed,passive)};this.cleanupWindowEvents=function(){var _a,_b;var passive=makePassiveEventOption();var currentDocument=(_a=_this.wrapperComponent)===null||_a===void 0?void 0:_a.ownerDocument;var currentWindow=currentDocument===null||currentDocument===void 0?void 0:currentDocument.defaultView;currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mousedown",_this.onPanningStart,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mousemove",_this.onPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mouseup",_this.onPanningStop,passive);currentDocument===null||currentDocument===void 0?void 0:currentDocument.removeEventListener("mouseleave",_this.clearPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("keyup",_this.setKeyUnPressed,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("keydown",_this.setKeyPressed,passive);document.removeEventListener("mouseleave",_this.clearPanning,passive);handleCancelAnimation(_this);(_b=_this.observer)===null||_b===void 0?void 0:_b.disconnect()};this.handleInitializeWrapperEvents=function(wrapper){var passive=makePassiveEventOption();wrapper.addEventListener("wheel",_this.onWheelZoom,passive);wrapper.addEventListener("dblclick",_this.onDoubleClick,passive);wrapper.addEventListener("touchstart",_this.onTouchPanningStart,passive);wrapper.addEventListener("touchmove",_this.onTouchPanning,passive);wrapper.addEventListener("touchend",_this.onTouchPanningStop,passive)};this.handleInitialize=function(contentComponent){var centerOnInit=_this.setup.centerOnInit;_this.applyTransformation();if(centerOnInit){_this.setCenter();_this.observer=new ResizeObserver((function(){var _a;_this.setCenter();(_a=_this.observer)===null||_a===void 0?void 0:_a.disconnect()}));_this.observer.observe(contentComponent)}};this.onWheelZoom=function(event2){var disabled=_this.setup.disabled;if(disabled)return;var isAllowed=isWheelAllowed(_this,event2);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.wheel.activationKeys);if(!keysPressed)return;handleWheelStart(_this,event2);handleWheelZoom(_this,event2);handleWheelStop(_this,event2)};this.onPanningStart=function(event2){var disabled=_this.setup.disabled;var onPanningStart=_this.props.onPanningStart;if(disabled)return;var isAllowed=isPanningStartAllowed(_this,event2);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.panning.activationKeys);if(!keysPressed)return;event2.preventDefault();event2.stopPropagation();handleCancelAnimation(_this);handlePanningStart(_this,event2);handleCallback(getContext(_this),event2,onPanningStart)};this.onPanning=function(event2){var disabled=_this.setup.disabled;var onPanning=_this.props.onPanning;if(disabled)return;var isAllowed=isPanningAllowed(_this);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.panning.activationKeys);if(!keysPressed)return;event2.preventDefault();event2.stopPropagation();handlePanning(_this,event2.clientX,event2.clientY);handleCallback(getContext(_this),event2,onPanning)};this.onPanningStop=function(event2){var onPanningStop=_this.props.onPanningStop;if(_this.isPanning){handlePanningEnd(_this);handleCallback(getContext(_this),event2,onPanningStop)}};this.onPinchStart=function(event2){var disabled=_this.setup.disabled;var _a=_this.props,onPinchingStart=_a.onPinchingStart,onZoomStart=_a.onZoomStart;if(disabled)return;var isAllowed=isPinchStartAllowed(_this,event2);if(!isAllowed)return;handlePinchStart(_this,event2);handleCancelAnimation(_this);handleCallback(getContext(_this),event2,onPinchingStart);handleCallback(getContext(_this),event2,onZoomStart)};this.onPinch=function(event2){var disabled=_this.setup.disabled;var _a=_this.props,onPinching=_a.onPinching,onZoom=_a.onZoom;if(disabled)return;var isAllowed=isPinchAllowed(_this);if(!isAllowed)return;event2.preventDefault();event2.stopPropagation();handlePinchZoom(_this,event2);handleCallback(getContext(_this),event2,onPinching);handleCallback(getContext(_this),event2,onZoom)};this.onPinchStop=function(event2){var _a=_this.props,onPinchingStop=_a.onPinchingStop,onZoomStop=_a.onZoomStop;if(_this.pinchStartScale){handlePinchStop(_this);handleCallback(getContext(_this),event2,onPinchingStop);handleCallback(getContext(_this),event2,onZoomStop)}};this.onTouchPanningStart=function(event2){var disabled=_this.setup.disabled;var onPanningStart=_this.props.onPanningStart;if(disabled)return;var isAllowed=isPanningStartAllowed(_this,event2);if(!isAllowed)return;var isDoubleTap=_this.lastTouch&&+new Date-_this.lastTouch<200;if(isDoubleTap&&event2.touches.length===1){_this.onDoubleClick(event2)}else{_this.lastTouch=+new Date;handleCancelAnimation(_this);var touches=event2.touches;var isPanningAction=touches.length===1;var isPinchAction=touches.length===2;if(isPanningAction){handleCancelAnimation(_this);handlePanningStart(_this,event2);handleCallback(getContext(_this),event2,onPanningStart)}if(isPinchAction){_this.onPinchStart(event2)}}};this.onTouchPanning=function(event2){var disabled=_this.setup.disabled;var onPanning=_this.props.onPanning;if(_this.isPanning&&event2.touches.length===1){if(disabled)return;var isAllowed=isPanningAllowed(_this);if(!isAllowed)return;event2.preventDefault();event2.stopPropagation();var touch=event2.touches[0];handlePanning(_this,touch.clientX,touch.clientY);handleCallback(getContext(_this),event2,onPanning)}else if(event2.touches.length>1){_this.onPinch(event2)}};this.onTouchPanningStop=function(event2){_this.onPanningStop(event2);_this.onPinchStop(event2)};this.onDoubleClick=function(event2){var disabled=_this.setup.disabled;if(disabled)return;var isAllowed=isDoubleClickAllowed(_this,event2);if(!isAllowed)return;handleDoubleClick(_this,event2)};this.clearPanning=function(event2){if(_this.isPanning){_this.onPanningStop(event2)}};this.setKeyPressed=function(e2){_this.pressedKeys[e2.key]=true};this.setKeyUnPressed=function(e2){_this.pressedKeys[e2.key]=false};this.isPressingKeys=function(keys){if(!keys.length){return true}return Boolean(keys.find((function(key){return _this.pressedKeys[key]})))};this.setTransformState=function(scale,positionX,positionY){var onTransformed=_this.props.onTransformed;if(!Number.isNaN(scale)&&!Number.isNaN(positionX)&&!Number.isNaN(positionY)){if(scale!==_this.transformState.scale){_this.transformState.previousScale=_this.transformState.scale;_this.transformState.scale=scale}_this.transformState.positionX=positionX;_this.transformState.positionY=positionY;var ctx_1=getContext(_this);_this.onChangeCallbacks.forEach((function(callback){return callback(ctx_1)}));handleCallback(ctx_1,{scale:scale,positionX:positionX,positionY:positionY},onTransformed);_this.applyTransformation()}else{console.error("Detected NaN set state values")}};this.setCenter=function(){if(_this.wrapperComponent&&_this.contentComponent){var targetState=getCenterPosition(_this.transformState.scale,_this.wrapperComponent,_this.contentComponent);_this.setTransformState(targetState.scale,targetState.positionX,targetState.positionY)}};this.handleTransformStyles=function(x2,y2,scale){if(_this.props.customTransform){return _this.props.customTransform(x2,y2,scale)}return getTransformStyles(x2,y2,scale)};this.applyTransformation=function(){if(!_this.mounted||!_this.contentComponent)return;var _a=_this.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var transform=_this.handleTransformStyles(positionX,positionY,scale);_this.contentComponent.style.transform=transform};this.getContext=function(){return getContext(_this)};this.onChange=function(callback){if(!_this.onChangeCallbacks.has(callback)){_this.onChangeCallbacks.add(callback)}return function(){_this.onChangeCallbacks.delete(callback)}};this.init=function(wrapperComponent,contentComponent){_this.cleanupWindowEvents();_this.wrapperComponent=wrapperComponent;_this.contentComponent=contentComponent;handleCalculateBounds(_this,_this.transformState.scale);_this.handleInitializeWrapperEvents(wrapperComponent);_this.handleInitialize(contentComponent);_this.initializeWindowEvents();_this.isInitialized=true;handleCallback(getContext(_this),void 0,_this.props.onInit)};this.props=props;this.setup=createSetup(this.props);this.transformState=createState(this.props)}return ZoomPanPinch2}();var Context=React__default.createContext(null);var getContent=function(children,ctx){if(typeof children==="function"){return children(ctx)}return children};var TransformWrapper=React__default.forwardRef((function(props,ref){var _a=useState(0),forceUpdate=_a[1];var children=props.children;var instance=useRef(new ZoomPanPinch(props)).current;var content=getContent(props.children,getContext(instance));var handleOnChange=useCallback((function(){if(typeof children==="function"){forceUpdate((function(prev2){return prev2+1}))}}),[children]);useImperativeHandle(ref,(function(){return getContext(instance)}),[instance]);useEffect((function(){instance.update(props)}),[instance,props]);useEffect((function(){return instance.onChange(handleOnChange)}),[instance,props,handleOnChange]);return React__default.createElement(Context.Provider,{value:instance},content)}));function styleInject(css4,ref){if(ref===void 0)ref={};var insertAt=ref.insertAt;if(typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css4}else{style.appendChild(document.createTextNode(css4))}}var css_248z=".transform-component-module_wrapper__7HFJe {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__uCDPE {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__uCDPE img {\n pointer-events: none;\n}\n";var styles={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};styleInject(css_248z);var TransformComponent=function(_a){var children=_a.children,_b=_a.wrapperClass,wrapperClass=_b===void 0?"":_b,_c=_a.contentClass,contentClass=_c===void 0?"":_c,wrapperStyle=_a.wrapperStyle,contentStyle=_a.contentStyle,_d=_a.wrapperProps,wrapperProps=_d===void 0?{}:_d,_e=_a.contentProps,contentProps=_e===void 0?{}:_e;var init=useContext(Context).init;var wrapperRef=useRef(null);var contentRef=useRef(null);useEffect((function(){var wrapper=wrapperRef.current;var content=contentRef.current;if(wrapper!==null&&content!==null&&init){init(wrapper,content)}}),[]);return React__default.createElement("div",__assign({},wrapperProps,{ref:wrapperRef,className:"react-transform-wrapper ".concat(styles.wrapper," ").concat(wrapperClass),style:wrapperStyle}),React__default.createElement("div",__assign({},contentProps,{ref:contentRef,className:"react-transform-component ".concat(styles.content," ").concat(contentClass),style:contentStyle}),children))};React__default.forwardRef((function(props,ref){var localRef=useRef(null);var instance=useContext(Context);useEffect((function(){return instance.onChange((function(ctx){if(localRef.current){var positionX=0;var positionY=0;localRef.current.style.transform=instance.handleTransformStyles(positionX,positionY,1/ctx.state.scale)}}))}),[instance]);return React__default.createElement("div",__assign({},props,{ref:mergeRefs([localRef,ref])}))}));function Slide({alt:alt,onClick:onClick=lodashExports.noop,onZoom:onZoom=lodashExports.noop,url:url,zooming:zooming=false}){const handlePinchingStop=({state:state})=>{const isZooming=state.scale>1;onZoom(isZooming)};return jsx$1(TransformWrapper,{doubleClick:{mode:"reset"},initialScale:1,onPinchingStop:handlePinchingStop,panning:{disabled:!zooming},children:jsx$1("button",{className:"Slide",onClick:onClick,onDoubleClick:()=>onZoom(false),tabIndex:-1,children:jsx$1(TransformComponent,{wrapperClass:"TransformComponent",children:jsx$1(Image,{alt:alt,url:url,zIndex:3})})})})}function Slides({urls:urls=[],current:current=0,onChange:onChange2=lodashExports.noop,setIndex:setIndex}){const[zooming,setZooming]=useState(false);const[touchStart,setTouchStart]=useState(null);const[touchEnd,setTouchEnd]=useState(null);const minSwipeDistance=40;const onTouchStart=e2=>{setTouchEnd(null);setTouchStart(e2.targetTouches[0].clientX)};const onTouchMove=e2=>setTouchEnd(e2.targetTouches[0].clientX);const onTouchEnd=()=>{if(!touchStart||!touchEnd)return;const distance=touchStart-touchEnd;const isLeftSwipe=distance>minSwipeDistance;const isRightSwipe=distance<-minSwipeDistance;if(isLeftSwipe){setIndex(current<urls.length-1?current+1:urls.length-1)}else if(isRightSwipe){setIndex(current>0?current-1:0)}};const arrowLeft=()=>setIndex(current>0?current-1:0);const arrowRight=()=>setIndex(current<urls.length-1?current+1:urls.length-1);const handleZoom=isZooming=>setZooming(isZooming);return jsxs("div",{className:"Slides",onTouchEnd:onTouchEnd,onTouchMove:onTouchMove,onTouchStart:onTouchStart,children:[urls.length>1&&jsx$1(CircleIconButton,{className:"carousel-arrow-left",dark:true,icon:"chevron-left",onClick:arrowLeft,variant:"link"}),jsx$1(Slide,{onClick:()=>onChange2(current),onZoom:handleZoom,url:urls[current],zooming:zooming}),urls.length>1&&jsx$1(CircleIconButton,{className:"carousel-arrow-right",dark:true,icon:"chevron-right",onClick:arrowRight,variant:"link"})]})}const useWindowSize=()=>{const[size,setSize]=useState({width:window.innerWidth,height:window.innerHeight});useEffect((()=>{const handleResize=()=>{setSize({width:window.innerWidth,height:window.innerHeight})};window.addEventListener("resize",handleResize);handleResize();return()=>window.removeEventListener("resize",handleResize)}),[]);return size};function Thumbnail({active:active=false,alt:alt,width:width,url:url,onClick:onClick,buttonRef:buttonRef}){const activeClasses=classnames("Thumbnail",{active:active});return jsx$1("button",{className:classnames(activeClasses),onClick:onClick,ref:buttonRef,style:{width:width},type:"button",children:jsx$1(Image,{alt:alt,size:"sm",url:url})})}function Thumbnails({current:current=0,onChange:onChange2=lodashExports.noop,urls:urls=[]}){const viewportSize=useWindowSize();const thumbnailWidth=viewportSize.width/8;const shouldBeCentered=thumbnailWidth*urls.length<viewportSize.width*.9;const css4=classnames("Thumbnails",{centered:shouldBeCentered});const otherProps={};const thumbnailsRef=React__default.createRef();useLayoutEffect((()=>{var _a,_b,_c;if(shouldBeCentered)return;const currentThumbnail=otherProps.buttonRef.current;const thumbWidth=currentThumbnail.clientWidth,scrollLeft=thumbWidth*current,firstThumb=thumbnailsRef.current.querySelector(".Thumbnail:first-child"),lastThumb=thumbnailsRef.current.querySelector(".Thumbnail:last-child");firstThumb.style.marginLeft=`${((_a=thumbnailsRef.current)==null?void 0:_a.clientWidth)/2-thumbWidth/2}px`;lastThumb.style.marginRight=`${((_b=thumbnailsRef.current)==null?void 0:_b.clientWidth)/2-thumbWidth/2}px`;(_c=thumbnailsRef.current)==null?void 0:_c.scrollTo(scrollLeft,0)}));return jsx$1("div",{className:css4,ref:thumbnailsRef,children:urls.map(((url,i)=>{const active=i===current;if(active)otherProps.buttonRef=React__default.createRef();return jsx$1(Thumbnail,{active:active,alt:i.toString(),onClick:()=>onChange2(i),url:url,...otherProps},i)}))})}function Carousel({currentIndex:currentIndex,photos:photos,onClick:onClick,onChange:onChange2=()=>void 0,setIndex:setIndex}){useEffect((()=>{document.body.style.overflow="hidden";return()=>{document.body.style.overflow="initial"}}),[]);const handleChange=index2=>{onChange2(index2)};return jsxs("div",{className:"Lightbox",children:[jsx$1(Slides,{current:currentIndex,onChange:handleChange,onClick:onClick,setIndex:setIndex,urls:photos.map((photo=>photo.url))}),photos.length>1?jsx$1(Thumbnails,{current:currentIndex,onChange:handleChange,urls:photos.map((photo=>photo.thumbnail))}):null]})}const Lightbox=props=>{const{aria:aria={},children:children,className:className,currentPhotoIndex:currentPhotoIndex,data:data={},description:description,htmlOptions:htmlOptions={},id:id="",initialPhoto:initialPhoto=0,photos:photos,onChange:onChange2=()=>void 0,onClose:onClose,onClickRight:onClickRight,icon:icon="times",navRight:navRight,title:title}=props;const[activePhoto,setActivePhoto]=useState(initialPhoto);useEffect((()=>{onChange2(activePhoto)}),[activePhoto]);useEffect((()=>{currentPhotoIndex!==void 0&&currentPhotoIndex!==null&&setActivePhoto(currentPhotoIndex)}),[currentPhotoIndex]);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_lightbox_kit"),globalProps(props),className);const handleOnSlide=photoIndex=>{setActivePhoto(photoIndex)};const photosMap=useMemo((()=>photos.map((photo=>({url:photo,thumbnail:photo})))),[photos]);const api={onClose:onClose,onArrowLeft:()=>{setActivePhoto(activePhoto>0?activePhoto-1:0)},onArrowRight:()=>{const nextPhoto=activePhoto<photos.length-1?activePhoto+1:photos.length-1;setActivePhoto(nextPhoto)}};useKbdControls(api);const lightboxRef=useRef();return jsx$1(Fragment$1,{children:jsx$1(LightboxContext.Provider,{value:api,children:jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,ref:lightboxRef,children:jsxs("div",{className:"carousel",children:[jsx$1(Lightbox.Header,{icon:icon,navRight:navRight,onClickRight:onClickRight,onClose:onClose,text:description,title:title}),children,jsx$1(Carousel,{currentIndex:activePhoto,onChange:handleOnSlide,photos:photosMap,setIndex:setActivePhoto})]})})})})};Lightbox.Header=LightboxHeader;const LineGraph=({aria:aria={},data:data={},align:align="center",className:className="pb_bar_graph",customOptions:customOptions={},dark:dark=false,gradient:gradient=false,type:type="line",htmlOptions:htmlOptions={},id:id,legend:legend=false,toggleLegendClick:toggleLegendClick=true,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x2=0,y:y2=0,axisTitle:axisTitle,xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,chartData:chartData,pointStart:pointStart,subTitle:subTitle,title:title,height:height,colors:colors2=[],...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:{min:yAxisMin,max:yAxisMax,title:{text:axisTitle}},xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x2,y:y2},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{pointStart:pointStart,events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{setOptions(lodashExports.merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const List=props=>{const{aria:aria={},borderless:borderless=false,children:children,className:className,dark:dark=false,data:data={},enableDrag:enableDrag=false,htmlOptions:htmlOptions={},id:id,layout:layout="",ordered:ordered=false,role:role,size:size="",tabIndex:tabIndex,xpadding:xpadding=false,variant:variant,text:text2}=props;const layoutClass={left:"layout_left",right:"layout_right",default:""};const childrenWithProps=React__default.Children.map(children,(child=>React__default.cloneElement(child,{text:text2,variant:variant,enableDrag:enableDrag})));const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_list_kit",layoutClass[layout],size,{dark:dark,borderless:borderless,ordered:ordered,xpadding:xpadding}),globalProps(props),className);return jsx$1(Fragment,{children:enableDrag?jsx$1(Draggable.Container,{children:jsx$1("div",{className:classes,children:ordered?jsx$1("ol",{...ariaProps,...dataProps,...htmlProps,className:className,id:id,role:role,tabIndex:tabIndex,children:childrenWithProps}):jsx$1("ul",{...ariaProps,...dataProps,...htmlProps,className:className,id:id,role:role,tabIndex:tabIndex,children:childrenWithProps})})}):jsx$1("div",{className:classes,children:ordered?jsx$1("ol",{...ariaProps,...dataProps,...htmlProps,className:className,id:id,role:role,tabIndex:tabIndex,children:childrenWithProps}):jsx$1("ul",{...ariaProps,...dataProps,...htmlProps,className:className,id:id,role:role,tabIndex:tabIndex,children:childrenWithProps})})})};const ListItem=props=>{const{aria:aria={},children:children,className:className,data:data={},enableDrag:enableDrag,dragId:dragId,dragHandle:dragHandle=true,htmlOptions:htmlOptions={},id:id,tabIndex:tabIndex}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_item_kit"),globalProps(props),className);return jsx$1(Fragment,{children:enableDrag?jsx$1(Draggable.Item,{dragId:dragId,children:jsxs("li",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,tabIndex:tabIndex,children:[dragHandle&&jsx$1("span",{style:{verticalAlign:"middle"},children:jsx$1(Body$1,{color:"light",children:jsx$1(Icon,{icon:"grip-dots-vertical",verticalAlign:"middle"})})}),children]})}):jsx$1("li",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,tabIndex:tabIndex,children:children})})};const LoadingInline=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,text:text2=" Loading"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss(`pb_loading_inline_kit_${align}`),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{color:"light",children:[jsx$1(Icon,{aria:{label:"loading icon"},fixedWidth:true,icon:"spinner",pulse:true}),text2]})})};const MapControls=({zoomBtns:zoomBtns,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick,flyTo:flyTo,flyToClick:flyToClick,children:children})=>jsxs(Flex,{className:"custom-nav-control",orientation:"column",children:[zoomBtns?jsxs(Fragment,{children:[jsxs("div",{className:"custom-nav-control-zoom",children:[jsx$1(Button,{className:"map-zoom-in-button",onClick:zoomInClick,children:jsx$1(Icon,{icon:"plus"})}),jsx$1(Button,{className:"map-zoom-out-button",onClick:zoomOutClick,children:jsx$1(Icon,{icon:"minus"})})]}),flyTo?jsx$1(Button,{className:"map-flyto-button",onClick:flyToClick,children:jsx$1(Icon,{icon:"eye"})}):null]}):null,children]});const Map$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,zoomBtns:zoomBtns=false,flyTo:flyTo=false,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick,flyToClick:flyToClick}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_map"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[zoomBtns?jsx$1(Map$1.Controls,{flyTo:flyTo,flyToClick:flyToClick,zoomBtns:zoomBtns,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick}):null,children]})};Map$1.Controls=MapControls;const Timestamp=props=>{const{align:align="left",aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},text:text2,timezone:timezone,timestamp:timestamp,showDate:showDate=true,showUser:showUser=false,hideUpdated:hideUpdated=false,showTimezone:showTimezone=false,unstyled:unstyled=false,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_timestamp_kit",align,{dark:dark,variant:variant}),globalProps(props),className);const currentYear=(new Date).getFullYear().toString();const dateDisplay=`${DateTime.toMonth(timestamp,timezone)} ${DateTime.toDay(timestamp,timezone)}`;const shouldShowUser=showUser==true&&text2.length>0;const shouldShowTimezone=showTimezone==true&&timezone.length>0;const updatedText=hideUpdated?"":"Last updated";const userDisplay=shouldShowUser?` by ${text2}`:"";let timeDisplay=`${DateTime.toHour(timestamp,timezone)}:${DateTime.toMinute(timestamp,timezone)}${DateTime.toMeridiem(timestamp,timezone)}`;const fullTimeDisplay=()=>{if(shouldShowTimezone){timeDisplay=`${timeDisplay} ${DateTime.toTimeZone(timestamp,timezone)}`}return timeDisplay};const fullDateDisplay=()=>{let fullDisplay=`${DateTime.toMonth(timestamp,timezone)} ${DateTime.toDay(timestamp,timezone)}`;if(DateTime.toYear(timestamp,timezone).toString()!==currentYear){fullDisplay=`${fullDisplay}, ${DateTime.toYear(timestamp,timezone)}`}return`${fullDisplay} ${" · "} ${fullTimeDisplay()}`};const formatUpdatedString=()=>`Last updated ${userDisplay} on ${dateDisplay} at ${timeDisplay}`;const formatElapsedString=()=>`${updatedText} ${userDisplay} ${DateTime.fromNow(timestamp)}`;const timestampText=()=>{switch(variant){case"updated":return formatUpdatedString();case"elapsed":return formatElapsedString();default:return showDate?timestamp?fullDateDisplay():text2:fullTimeDisplay()}};return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx$1("div",{className:"pb_timestamp_kit",children:unstyled?jsx$1("div",{children:timestampText()}):jsx$1(Caption,{dark:dark,size:"xs",text:timestampText()})})})};const MessageMention=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,variant:variant="user"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_message_mention",variant),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})};const Message=props=>{const{aria:aria={},avatarName:avatarName,avatarStatus:avatarStatus=null,avatarUrl:avatarUrl,children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,label:label,message:message,timestamp:timestamp,timestampObject:timestampObject,timezone:timezone,alignTimestamp:alignTimestamp="right"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const shouldDisplayAvatar=avatarUrl||avatarName;const baseClassName=shouldDisplayAvatar?"pb_message_kit_avatar":"pb_message_kit";const classes=classnames(buildCss(baseClassName),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[shouldDisplayAvatar&&jsx$1(Avatar,{imageUrl:avatarUrl,name:avatarName,size:"xs",status:avatarStatus}),jsxs("div",{className:"content_wrapper",children:[jsxs(Flex,{justify:alignTimestamp==="left"?"none":"between",orientation:"row",children:[label&&jsx$1(Title,{className:"message_title",size:4,text:label}),jsx$1(Timestamp,{className:`pull-${alignTimestamp} ${timestampObject?"message_humanized_time":null}`,text:timestamp,timestamp:"",timezone:timezone}),timestampObject&&jsx$1(Timestamp,{className:`pull-${alignTimestamp} message_timestamp`,text:"",timestamp:timestampObject,timezone:timezone})]}),message&&jsx$1(Body$1,{className:"pb_message_body",text:message}),children]})]})};Message.Mention=MessageMention;const Radio=({aria:aria={},alignment:alignment,children:children,className:className,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},id:id,label:label,name:name2="radio_name",text:text2="Radio Text",value:value="radio_text",onChange:onChange2=()=>{},...props},ref)=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_radio_kit",alignment),dark?"dark":null,error?"error":null,globalProps(props),className);const displayRadio=props2=>{if(children)return children;else return jsx$1("input",{disabled:disabled,id:id,name:name2,onChange:onChange2,ref:ref,text:text2,type:"radio",value:value,...props2})};return jsxs("label",{...ariaProps,...dataProps,...htmlProps,className:classes,htmlFor:id,children:[jsx$1(Fragment,{children:displayRadio(props)}),jsx$1("span",{className:"pb_radio_button"}),jsx$1(Body$1,{dark:dark,status:error?"negative":null,text:label,variant:null})]})};const Radio$1=forwardRef(Radio);const filterFormattedDataById=(formattedData,id)=>{const matched=[];const recursiveSearch=(data,term)=>{for(const item of data){if(item.id.toLowerCase()===term.toLowerCase()){matched.push(item);return}if(item.children&&item.children.length>0){recursiveSearch(item.children,term)}}};recursiveSearch(formattedData,id);return matched};const findByFilter=(formattedData,searchTerm)=>{const matchedItems=[];const recursiveSearch=(data,term)=>{for(const item of data){if(item.label.toLowerCase().includes(term.toLowerCase())){matchedItems.push(item)}if(item.children){recursiveSearch(item.children,term)}}};recursiveSearch(formattedData,searchTerm);return matchedItems};const getAncestorsOfUnchecked=(data,item)=>{if(item.parent_id){const ancestor=filterFormattedDataById(data,item.parent_id);ancestor[0].checked=false;ancestor[0].parent_id&&getAncestorsOfUnchecked(data,ancestor[0])}return data};const getCheckedItems=data=>{const checkedItems=[];if(!Array.isArray(data)){return}data.forEach((item=>{if(item.checked){checkedItems.push(item)}if(item.children&&item.children.length>0){const childCheckedItems=getCheckedItems(item.children);checkedItems.push(...childCheckedItems)}}));return checkedItems};const getDefaultCheckedItems=treeData=>{const checkedDefault=[];const traverseTree=items=>{if(!Array.isArray(items)){return}items.forEach((item=>{if(item.checked){if(item.children&&item.children.length>0){const uncheckedChildren=item.children.filter((child=>!child.checked));if(uncheckedChildren.length===0){checkedDefault.push(item);return}}else{const parent=items.find((parentItem=>parentItem.id===item.parentId));if(!parent||!parent.checked){checkedDefault.push(item)}}}if(item.children&&item.children.length>0){traverseTree(item.children)}}))};traverseTree(treeData);return checkedDefault};const recursiveCheckParent=(item,data)=>{if(item.parent_id!==null){const parent=filterFormattedDataById(data,item.parent_id);const allChildrenChecked=parent[0].children.every((child=>child.checked));if(allChildrenChecked){parent[0].checked=true;const parentHasParent=parent[0].parent_id!==null;if(parentHasParent){recursiveCheckParent(parent[0],data)}}}return data};const getExpandedItems=(treeData,selectedIds)=>{const expandedItems=[];const traverse=(items,ancestors=[])=>{for(let i=0;i<items.length;i++){const item=items[i];const itemAncestors=[...ancestors,item];if(item.expanded){expandedItems.push(item.id)}if(selectedIds&&selectedIds.length&&selectedIds.includes(item.id)){expandedItems.push(...itemAncestors.map((ancestor=>ancestor.id)))}if(Array.isArray(item.children)){const hasCheckedChildren=item.children.some((child=>child.checked));if(hasCheckedChildren){expandedItems.push(...itemAncestors.map((ancestor=>ancestor.id)))}traverse(item.children,itemAncestors)}}};traverse(treeData);return expandedItems};const MultiLevelSelect=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,inputDisplay:inputDisplay="pills",inputName:inputName,name:name2,returnAllSelected:returnAllSelected=false,treeData:treeData,onSelect:onSelect=()=>null,selectedIds:selectedIds,variant:variant="multi"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multi_level_select"),globalProps(props),className);const dropdownRef=useRef(null);const[isDropdownClosed,setIsDropdownClosed]=useState(true);const[filterItem,setFilterItem]=useState("");const[formattedData,setFormattedData]=useState([]);const[returnedArray,setReturnedArray]=useState([]);const[defaultReturn,setDefaultReturn]=useState([]);const initialExpandedItems=getExpandedItems(treeData,selectedIds);const[expanded,setExpanded]=useState(initialExpandedItems);const[singleSelectedItem,setSingleSelectedItem]=useState({id:[],value:"",item:[]});const modifyRecursive=(tree,check)=>{if(!Array.isArray(tree)){return}return tree.map((item=>{item.checked=check;item.children=modifyRecursive(item.children,check);return item}))};const addCheckedAndParentProperty=(treeData2,selectedIds2,parent_id=null,depth=0)=>{if(!Array.isArray(treeData2)){return}return treeData2.map((item=>{const newItem={...item,checked:Boolean(selectedIds2&&selectedIds2.length&&selectedIds2.includes(item.id)),parent_id:parent_id,depth:depth};if(newItem.children&&newItem.children.length>0){const children=item.checked&&!returnAllSelected?modifyRecursive(item.children,true):item.children;newItem.children=addCheckedAndParentProperty(children,selectedIds2,newItem.id,depth+1)}return newItem}))};useEffect((()=>{const formattedData2=addCheckedAndParentProperty(treeData,variant==="single"?[selectedIds==null?void 0:selectedIds[0]]:selectedIds);setFormattedData(formattedData2);if(variant==="single"){if((selectedIds==null?void 0:selectedIds.length)===0||!(selectedIds==null?void 0:selectedIds.length)){setSingleSelectedItem({id:[],value:"",item:[]})}else{if((selectedIds==null?void 0:selectedIds.length)!==0&&!singleSelectedItem.value){const selectedItem=filterFormattedDataById(formattedData2,selectedIds[0]);if(!selectedItem.length){setSingleSelectedItem({id:[],value:"",item:[]})}else{const{id:id2,value:value}=selectedItem[0];setSingleSelectedItem({id:[id2],value:value,item:selectedItem})}}}}}),[treeData,selectedIds]);useEffect((()=>{if(returnAllSelected){setReturnedArray(getCheckedItems(formattedData))}else if(variant==="single"){setDefaultReturn(singleSelectedItem.item)}else{setDefaultReturn(getDefaultCheckedItems(formattedData))}}),[formattedData]);useEffect((()=>{const handleClickOutside2=event2=>{if(dropdownRef.current&&!dropdownRef.current.contains(event2.target)){setIsDropdownClosed(true)}};window.addEventListener("click",handleClickOutside2);return()=>{window.removeEventListener("click",handleClickOutside2)}}),[]);const modifyValue=(id2,tree,check)=>{if(!Array.isArray(tree)){return}return tree.map((item=>{if(item.id!=id2)item.children=modifyValue(id2,item.children,check);else{item.checked=check;if(variant==="single"){item.children=modifyRecursive(item.children,!check)}else{item.children=modifyRecursive(item.children,check)}}return item}))};const checkItem=item=>{const tree=lodashExports.cloneDeep(formattedData);if(returnAllSelected){return modifyValue(item.id,tree,true)}else{const checkedTree=modifyValue(item.id,tree,true);return recursiveCheckParent(item,checkedTree)}};const unCheckItem=item=>{const tree=lodashExports.cloneDeep(formattedData);if(returnAllSelected){return modifyValue(item.id,tree,false)}else{const uncheckedTree=modifyValue(item.id,tree,false);return getAncestorsOfUnchecked(uncheckedTree,item)}};const changeItem=(item,check)=>{const tree=check?checkItem(item):unCheckItem(item);setFormattedData(tree);return tree};const handlePillClose=(event2,clickedItem)=>{event2.stopPropagation();const updatedTree=changeItem(clickedItem,false);if(returnAllSelected){onSelect(getCheckedItems(updatedTree))}else{onSelect(getDefaultCheckedItems(updatedTree))}};const handleInputWrapperClick=e2=>{e2.stopPropagation();if(e2.target.id==="multiselect_input"||e2.target.classList.contains("pb_form_pill_tag")){return}setIsDropdownClosed(!isDropdownClosed)};const handledropdownItemClick=(e2,check)=>{const clickedItem=e2.target.parentNode.id;setFilterItem("");const filtered=filterFormattedDataById(formattedData,clickedItem);const updatedTree=changeItem(filtered[0],check);if(returnAllSelected){onSelect(getCheckedItems(updatedTree))}else{onSelect(getDefaultCheckedItems(updatedTree))}};const handleRadioButtonClick=e2=>{const{id:id2,value:inputText}=e2.target;const selectedItemID=id2.match(/^[^-]*/)[0];const treeWithNoSelections=modifyRecursive(formattedData,false);const treeWithSelectedItem=modifyValue(selectedItemID,treeWithNoSelections,true);const selectedItem=filterFormattedDataById(treeWithSelectedItem,selectedItemID);setFormattedData(treeWithSelectedItem);setSingleSelectedItem({id:[selectedItemID],value:inputText,item:selectedItem});setFilterItem("");setIsDropdownClosed(true);onSelect(selectedItem)};const handleRadioInputChange=inputText=>{modifyRecursive(formattedData,false);setDefaultReturn([]);setSingleSelectedItem({id:[],value:inputText,item:[]});setFilterItem(inputText)};const isTreeRowExpanded=item=>expanded.indexOf(item.id)>-1;const handleToggleClick=(id2,event2)=>{event2.stopPropagation();const clickedItem=filterFormattedDataById(formattedData,id2);if(clickedItem){let expandedArray=[...expanded];const itemExpanded=isTreeRowExpanded(clickedItem[0]);if(itemExpanded)expandedArray=expandedArray.filter((i=>i!=clickedItem[0].id));else expandedArray.push(clickedItem[0].id);setExpanded(expandedArray)}};const itemsSelectedLength=()=>{let items;if(returnAllSelected&&returnedArray&&returnedArray.length){items=returnedArray.length}else if(!returnAllSelected&&defaultReturn&&defaultReturn.length){items=defaultReturn.length}return items};const renderNestedOptions=items=>jsx$1("ul",{children:Array.isArray(items)&&items.map((item=>jsx$1("div",{children:jsxs("li",{className:"dropdown_item","data-name":item.id,children:[jsxs("div",{className:"dropdown_item_checkbox_row",children:[!item.parent_id&&!item.children?null:jsx$1("div",{children:jsx$1(CircleIconButton,{className:item.children&&item.children.length>0?"":"toggle_icon",icon:isTreeRowExpanded(item)?"chevron-down":"chevron-right",onClick:event2=>handleToggleClick(item.id,event2),variant:"link"})},isTreeRowExpanded(item)?"chevron-down":"chevron-right"),variant==="single"?item.hideRadio?jsx$1(Body$1,{children:item.label}):jsx$1(Radio$1,{checked:item.checked,id:`${item.id}-${item.label}`,label:item.label,name:inputName,onChange:e2=>handleRadioButtonClick(e2),padding:item.children?"none":"xs",type:"radio",value:item.label}):jsx$1(Checkbox,{id:item.id,text:item.label,children:jsx$1("input",{checked:item.checked,name:item.label,onChange:e2=>{handledropdownItemClick(e2,!item.checked)},type:"checkbox",value:item.label})})]}),isTreeRowExpanded(item)&&item.children&&item.children.length>0&&(variant==="single"||!filterItem)&&jsx$1("div",{children:renderNestedOptions(item.children)})]})},item.id)))});return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("div",{className:"wrapper",ref:dropdownRef,children:[jsxs("div",{className:"input_wrapper",onClick:handleInputWrapperClick,children:[jsxs("div",{className:"input_inner_container",children:[variant==="single"&&defaultReturn.length!==0?defaultReturn.map((selectedItem=>jsx$1("input",{name:`${name2}[]`,type:"hidden",value:selectedItem.id},selectedItem.id))):null,variant!=="single"&&jsxs(Fragment,{children:[returnAllSelected&&returnedArray.length!==0?returnedArray.map((item=>jsx$1("input",{name:`${name2}[]`,type:"hidden",value:item.id},item.id))):null,returnAllSelected&&returnedArray.length!==0&&inputDisplay==="pills"?returnedArray.map(((item,index2)=>jsx$1(FormPill,{onClick:event2=>handlePillClose(event2,item),size:"small",text:item.label},index2))):null,!returnAllSelected&&defaultReturn.length!==0&&inputDisplay==="pills"?defaultReturn.map(((item,index2)=>jsx$1(FormPill,{onClick:event2=>handlePillClose(event2,item),size:"small",text:item.label},index2))):null,returnAllSelected&&returnedArray.length!==0&&inputDisplay==="pills"&&jsx$1("br",{}),!returnAllSelected&&defaultReturn.length!==0&&inputDisplay==="pills"&&jsx$1("br",{})]}),jsx$1("input",{id:"multiselect_input",onChange:e2=>{variant==="single"?handleRadioInputChange(e2.target.value):setFilterItem(e2.target.value)},onClick:()=>setIsDropdownClosed(false),placeholder:inputDisplay==="none"&&itemsSelectedLength()?`${itemsSelectedLength()} ${itemsSelectedLength()===1?"item":"items"} selected`:"Start typing...",value:singleSelectedItem.value||filterItem})]}),isDropdownClosed?jsx$1("div",{children:jsx$1(Icon,{icon:"chevron-down",size:"xs"})},"chevron-down"):jsx$1("div",{children:jsx$1(Icon,{icon:"chevron-up",size:"xs"})},"chevron-up")]}),jsx$1("div",{className:`dropdown_menu ${isDropdownClosed?"close":"open"}`,children:renderNestedOptions(filterItem?findByFilter(formattedData,filterItem):formattedData)})]})})};const Nav=props=>{const{aria:aria={},borderless:borderless=false,children:children,className:className,data:data={},dark:dark=false,highlight:highlight=true,htmlOptions:htmlOptions={},id:id,link:link="#",onClick:onClick,orientation:orientation="vertical",title:title="",variant:variant="normal",itemSpacing:itemSpacing}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const cardCss=classnames(buildCss("pb_nav_list",variant,orientation,{highlight:highlight,borderless:borderless}),globalProps(props),className);const childrenWithProps=React__default.Children.map(children,(child=>{if(React__default.isValidElement(child)){const childProps={orientation:orientation,variant:variant,itemSpacing:itemSpacing};return React__default.cloneElement(child,childProps)}return child}));return jsxs("nav",{...ariaProps,...dataProps,...htmlProps,className:cardCss,id:id,children:[title&&jsx$1("div",{className:"pb_nav_list_title",children:jsx$1("a",{className:"pb_nav_list_item_link_text",href:link,onClick:onClick,children:jsx$1(Caption,{dark:dark,size:"md",text:`${title}`})})}),jsx$1("div",{className:"pb_nav_wrapper",children:childrenWithProps})]})};const NavItem=props=>{const fontWeightDefault=(orientation2,variant2)=>orientation2==="horizontal"&&variant2==="subtle"?"regular":orientation2==="horizontal"&&variant2==="normal"?"bold":"regular";const{active:active=false,highlighted_border:highlighted_border=true,aria:aria={},orientation:orientation,variant:variant,fontWeight:fontWeight=fontWeightDefault(orientation,variant),children:children,className:className,collapsible:collapsible,data:data={},dark:dark=false,fontSize:fontSize="normal",htmlOptions:htmlOptions={},iconLeft:iconLeft,iconRight:iconRight,onIconRightClick:onIconRightClick,onIconLeftClick:onIconLeftClick,id:id,imageUrl:imageUrl,link:link,onClick:onClick,target:target="_self",text:text2="",collapsibleTrail:collapsibleTrail,collapsed:collapsed,itemSpacing:itemSpacing,margin:margin,marginBottom:marginBottom,marginTop:marginTop,marginRight:marginRight,marginLeft:marginLeft,marginX:marginX,marginY:marginY}=props;const spacingMarginProps={margin:margin,marginBottom:marginBottom,marginTop:marginTop,marginRight:marginRight,marginLeft:marginLeft,marginX:marginX,marginY:marginY};const filterItemSpacing=obj=>{const filteredPadding2={};const filteredMargin2={};for(const key in obj){if(key.startsWith("padding")){filteredPadding2[key]=obj[key]}else if(key.startsWith("margin")){filteredMargin2[key]=obj[key]}}return{filteredPadding:filteredPadding2,filteredMargin:filteredMargin2}};const{filteredPadding:filteredPadding,filteredMargin:filteredMargin}=filterItemSpacing(itemSpacing);const finalItemSpacing={...filteredMargin||{},...Object.entries(spacingMarginProps).reduce(((acc,[prop,value])=>{if(value){acc[prop]=value}return acc}),{})};const filteredProps={...props};filteredProps==null?true:delete filteredProps.margin;filteredProps==null?true:delete filteredProps.marginX;filteredProps==null?true:delete filteredProps.marginY;filteredProps==null?true:delete filteredProps.marginBottom;filteredProps==null?true:delete filteredProps.marginTop;filteredProps==null?true:delete filteredProps.marginRight;filteredProps==null?true:delete filteredProps.marginLeft;const Tag=link?"a":"div";const activeClass=active===true?"active":"";const highlightedBorderClass=active===true&&highlighted_border===false?"highlighted_border_none":"";const collapsibleTrailClass=collapsible&&collapsibleTrail?"collapsible_trail":"";const fontSizeMapping={small:"font_size_small",normal:"font_size_normal"};const fontWeightMapping={bold:"font_bold",bolder:"font_bolder",regular:"font_regular"};const fontSizeClass=fontSizeMapping[fontSize];const fontWeightClass=fontWeightMapping[fontWeight];const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const tagClasses=classnames(collapsible?"pb_nav_list_item_link_collapsible":"pb_nav_list_item_link");const classes=classnames(buildCss("pb_nav_list_kit_item",activeClass,highlightedBorderClass),collapsible?buildCss("pb_collapsible_nav_item",activeClass,highlightedBorderClass):"",fontSizeClass,fontWeightClass,tagClasses,collapsible?globalProps(filteredProps,{...filteredPadding}):globalProps(props,{...itemSpacing}),className);const handleIconClick=e2=>{if(onIconLeftClick){e2.stopPropagation();onIconLeftClick()}};const childrenWithProps=React__default.Children.map(children,(child=>{if(React__default.isValidElement(child)){const childProps={itemSpacing:itemSpacing};return React__default.cloneElement(child,childProps)}return child}));const collapsibleClasses=buildCss("collapsible_nav_wrapper",activeClass,highlightedBorderClass,collapsibleTrailClass);return jsx$1(Fragment,{children:collapsible?jsx$1(Fragment,{children:jsxs(Collapsible,{className:collapsibleClasses,collapsed:collapsed,icon:iconRight&&iconRight,iconSize:"xs",id:id,onClick:onClick,onIconClick:onIconRightClick,children:[jsx$1(Collapsible.Main,{className:globalProps({...finalItemSpacing}),dark:dark,children:jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,href:link,id:id,target:target,children:[imageUrl&&jsx$1("div",{className:"pb_nav_list_item_icon_section_collapsible",onClick:e2=>handleIconClick(e2),children:jsx$1(Image,{className:"pb_nav_img_wrapper",url:imageUrl})},imageUrl),iconLeft&&jsx$1("div",{className:"pb_nav_list_item_icon_section_collapsible",onClick:e2=>handleIconClick(e2),children:jsx$1(Icon,{className:"pb_nav_list_item_icon_left_collapsible",fixedWidth:true,icon:iconLeft})},iconLeft),jsx$1("span",{className:"pb_nav_list_item_text_collapsible",children:text2})]})}),jsx$1(Collapsible.Content,{children:childrenWithProps})]})}):jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,href:link,id:id,onClick:onClick,target:target,children:[imageUrl&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Image,{className:"pb_nav_img_wrapper",url:imageUrl})},imageUrl),iconLeft&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Icon,{className:"pb_nav_list_item_icon_left",fixedWidth:true,icon:iconLeft})},iconLeft),jsx$1("span",{className:"pb_nav_list_item_text",children:text2||children}),iconRight&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Icon,{className:"pb_nav_list_item_icon_right",fixedWidth:true,icon:iconRight})},iconRight)]})})};var ManagerReferenceNodeContext=React$1.createContext();var ManagerReferenceNodeSetterContext=React$1.createContext();function Manager(_ref3){var children=_ref3.children;var _React$useState=React$1.useState(null),referenceNode=_React$useState[0],setReferenceNode=_React$useState[1];var hasUnmounted=React$1.useRef(false);React$1.useEffect((function(){return function(){hasUnmounted.current=true}}),[]);var handleSetReferenceNode=React$1.useCallback((function(node2){if(!hasUnmounted.current){setReferenceNode(node2)}}),[]);return React$1.createElement(ManagerReferenceNodeContext.Provider,{value:referenceNode},React$1.createElement(ManagerReferenceNodeSetterContext.Provider,{value:handleSetReferenceNode},children))}var unwrapArray=function unwrapArray2(arg){return Array.isArray(arg)?arg[0]:arg};var safeInvoke=function safeInvoke2(fn){if(typeof fn==="function"){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return fn.apply(void 0,args)}};var setRef=function setRef2(ref,node2){if(typeof ref==="function"){return safeInvoke(ref,node2)}else if(ref!=null){ref.current=node2}};var fromEntries=function fromEntries2(entries){return entries.reduce((function(acc,_ref3){var key=_ref3[0],value=_ref3[1];acc[key]=value;return acc}),{})};var useIsomorphicLayoutEffect=typeof window!=="undefined"&&window.document&&window.document.createElement?React$1.useLayoutEffect:React$1.useEffect;var hasElementType=typeof Element!=="undefined";var hasMap=typeof Map==="function";var hasSet=typeof Set==="function";var hasArrayBuffer=typeof ArrayBuffer==="function"&&!!ArrayBuffer.isView;function equal$1(a2,b2){if(a2===b2)return true;if(a2&&b2&&typeof a2=="object"&&typeof b2=="object"){if(a2.constructor!==b2.constructor)return false;var length2,i,keys;if(Array.isArray(a2)){length2=a2.length;if(length2!=b2.length)return false;for(i=length2;i--!==0;)if(!equal$1(a2[i],b2[i]))return false;return true}var it;if(hasMap&&a2 instanceof Map&&b2 instanceof Map){if(a2.size!==b2.size)return false;it=a2.entries();while(!(i=it.next()).done)if(!b2.has(i.value[0]))return false;it=a2.entries();while(!(i=it.next()).done)if(!equal$1(i.value[1],b2.get(i.value[0])))return false;return true}if(hasSet&&a2 instanceof Set&&b2 instanceof Set){if(a2.size!==b2.size)return false;it=a2.entries();while(!(i=it.next()).done)if(!b2.has(i.value[0]))return false;return true}if(hasArrayBuffer&&ArrayBuffer.isView(a2)&&ArrayBuffer.isView(b2)){length2=a2.length;if(length2!=b2.length)return false;for(i=length2;i--!==0;)if(a2[i]!==b2[i])return false;return true}if(a2.constructor===RegExp)return a2.source===b2.source&&a2.flags===b2.flags;if(a2.valueOf!==Object.prototype.valueOf)return a2.valueOf()===b2.valueOf();if(a2.toString!==Object.prototype.toString)return a2.toString()===b2.toString();keys=Object.keys(a2);length2=keys.length;if(length2!==Object.keys(b2).length)return false;for(i=length2;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i]))return false;if(hasElementType&&a2 instanceof Element)return false;for(i=length2;i--!==0;){if((keys[i]==="_owner"||keys[i]==="__v"||keys[i]==="__o")&&a2.$$typeof){continue}if(!equal$1(a2[keys[i]],b2[keys[i]]))return false}return true}return a2!==a2&&b2!==b2}var reactFastCompare=function isEqual(a2,b2){try{return equal$1(a2,b2)}catch(error){if((error.message||"").match(/stack|recursion/i)){console.warn("react-fast-compare cannot handle circular refs");return false}throw error}};const isEqual$2=getDefaultExportFromCjs(reactFastCompare);var EMPTY_MODIFIERS$1=[];var usePopper=function usePopper2(referenceElement,popperElement,options2){if(options2===void 0){options2={}}var prevOptions=React$1.useRef(null);var optionsWithDefaults={onFirstUpdate:options2.onFirstUpdate,placement:options2.placement||"bottom",strategy:options2.strategy||"absolute",modifiers:options2.modifiers||EMPTY_MODIFIERS$1};var _React$useState=React$1.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1];var updateStateModifier=React$1.useMemo((function(){return{name:"updateState",enabled:true,phase:"write",fn:function fn(_ref3){var state2=_ref3.state;var elements=Object.keys(state2.elements);ReactDOM.flushSync((function(){setState({styles:fromEntries(elements.map((function(element){return[element,state2.styles[element]||{}]}))),attributes:fromEntries(elements.map((function(element){return[element,state2.attributes[element]]})))})}))},requires:["computeStyles"]}}),[]);var popperOptions=React$1.useMemo((function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:false}])};if(isEqual$2(prevOptions.current,newOptions)){return prevOptions.current||newOptions}else{prevOptions.current=newOptions;return newOptions}}),[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]);var popperInstanceRef=React$1.useRef();useIsomorphicLayoutEffect((function(){if(popperInstanceRef.current){popperInstanceRef.current.setOptions(popperOptions)}}),[popperOptions]);useIsomorphicLayoutEffect((function(){if(referenceElement==null||popperElement==null){return}var createPopper$1=options2.createPopper||createPopper;var popperInstance=createPopper$1(referenceElement,popperElement,popperOptions);popperInstanceRef.current=popperInstance;return function(){popperInstance.destroy();popperInstanceRef.current=null}}),[referenceElement,popperElement,options2.createPopper]);return{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}};var NOOP=function NOOP2(){return void 0};var NOOP_PROMISE=function NOOP_PROMISE2(){return Promise.resolve(null)};var EMPTY_MODIFIERS=[];function Popper$1(_ref3){var _ref$placement=_ref3.placement,placement=_ref$placement===void 0?"bottom":_ref$placement,_ref$strategy=_ref3.strategy,strategy=_ref$strategy===void 0?"absolute":_ref$strategy,_ref$modifiers=_ref3.modifiers,modifiers2=_ref$modifiers===void 0?EMPTY_MODIFIERS:_ref$modifiers,referenceElement=_ref3.referenceElement,onFirstUpdate=_ref3.onFirstUpdate,innerRef=_ref3.innerRef,children=_ref3.children;var referenceNode=React$1.useContext(ManagerReferenceNodeContext);var _React$useState=React$1.useState(null),popperElement=_React$useState[0],setPopperElement=_React$useState[1];var _React$useState2=React$1.useState(null),arrowElement=_React$useState2[0],setArrowElement=_React$useState2[1];React$1.useEffect((function(){setRef(innerRef,popperElement)}),[innerRef,popperElement]);var options2=React$1.useMemo((function(){return{placement:placement,strategy:strategy,onFirstUpdate:onFirstUpdate,modifiers:[].concat(modifiers2,[{name:"arrow",enabled:arrowElement!=null,options:{element:arrowElement}}])}}),[placement,strategy,onFirstUpdate,modifiers2,arrowElement]);var _usePopper=usePopper(referenceElement||referenceNode,popperElement,options2),state=_usePopper.state,styles2=_usePopper.styles,forceUpdate=_usePopper.forceUpdate,update2=_usePopper.update;var childrenProps=React$1.useMemo((function(){return{ref:setPopperElement,style:styles2.popper,placement:state?state.placement:placement,hasPopperEscaped:state&&state.modifiersData.hide?state.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:state&&state.modifiersData.hide?state.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:styles2.arrow,ref:setArrowElement},forceUpdate:forceUpdate||NOOP,update:update2||NOOP_PROMISE}}),[setPopperElement,setArrowElement,placement,state,styles2,update2,forceUpdate]);return unwrapArray(children)(childrenProps)}function Reference(_ref3){var children=_ref3.children,innerRef=_ref3.innerRef;var setReferenceNode=React$1.useContext(ManagerReferenceNodeSetterContext);var refHandler=React$1.useCallback((function(node2){setRef(innerRef,node2);safeInvoke(setReferenceNode,node2)}),[innerRef,setReferenceNode]);React$1.useEffect((function(){return function(){return setRef(innerRef,null)}}),[]);React$1.useEffect((function(){warning$1(Boolean(setReferenceNode),"`Reference` should not be used outside of a `Manager` component.")}),[setReferenceNode]);return unwrapArray(children)({ref:refHandler})}var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root$1=freeGlobal||freeSelf||Function("return this")();var _root=root$1;var root=_root;var Symbol$4=root.Symbol;var _Symbol=Symbol$4;function arrayMap$1(array,iteratee){var index2=-1,length2=array==null?0:array.length,result=Array(length2);while(++index2<length2){result[index2]=iteratee(array[index2],index2,array)}return result}var _arrayMap=arrayMap$1;var isArray$2=Array.isArray;var isArray_1=isArray$2;var Symbol$3=_Symbol;var objectProto$1=Object.prototype;var hasOwnProperty$2=objectProto$1.hasOwnProperty;var nativeObjectToString$1=objectProto$1.toString;var symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag$1(value){var isOwn=hasOwnProperty$2.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=true}catch(e2){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag}else{delete value[symToStringTag$1]}}return result}var _getRawTag=getRawTag$1;var objectProto=Object.prototype;var nativeObjectToString=objectProto.toString;function objectToString$1(value){return nativeObjectToString.call(value)}var _objectToString=objectToString$1;var Symbol$2=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag$1(value){if(value==null){return value===void 0?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(value){return value!=null&&typeof value=="object"}var isObjectLike_1=isObjectLike$1;var baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1;var symbolTag="[object Symbol]";function isSymbol$1(value){return typeof value=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag}var isSymbol_1=isSymbol$1;var Symbol$1=_Symbol,arrayMap=_arrayMap,isArray$1=isArray_1,isSymbol=isSymbol_1;var INFINITY=1/0;var symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(value){if(typeof value=="string"){return value}if(isArray$1(value)){return arrayMap(value,baseToString$1)+""}if(isSymbol(value)){return symbolToString?symbolToString.call(value):""}var result=value+"";return result=="0"&&1/value==-INFINITY?"-0":result}var _baseToString=baseToString$1;var baseToString=_baseToString;function toString$1(value){return value==null?"":baseToString(value)}var toString_1=toString$1;var toString=toString_1;var idCounter=0;function uniqueId(prefix2){var id=++idCounter;return toString(prefix2)+id}var uniqueId_1=uniqueId;const _uniqueId=getDefaultExportFromCjs(uniqueId_1);const POPOVER_MODIFIERS={offset:{enabled:true,name:"offset",options:{offset:[0,20]},phase:"main"}};const popoverModifiers=({modifiers:modifiers2,offset:offset2})=>offset2?modifiers2.concat([POPOVER_MODIFIERS.offset]):modifiers2;const Popover=props=>{const{aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id,modifiers:modifiers2,offset:offset2,placement:placement,referenceElement:referenceElement,zIndex:zIndex,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,targetId:targetId}=props;const popoverSpacing=globalProps(props).includes("dark")||!globalProps(props)?"p_sm":globalProps(props);const overflowHandling=maxHeight||maxWidth?"overflow_handling":"";const zIndexStyle=zIndex?{zIndex:zIndex}:{};const widthHeightStyles=()=>Object.assign({},maxHeight?{maxHeight:maxHeight}:{},maxWidth?{maxWidth:maxWidth}:{},minHeight?{minHeight:minHeight}:{},minWidth?{minWidth:minWidth}:{});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_popover_kit"),globalProps(props),className);return jsx$1(Popper$1,{modifiers:popoverModifiers({modifiers:modifiers2,offset:offset2}),placement:placement,referenceElement:referenceElement,children:({placement:placement2,ref:ref,style:style})=>jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,"data-placement":placement2,id:id,ref:ref,style:Object.assign({},style,zIndexStyle),children:jsx$1("div",{className:classnames(`${buildCss("pb_popover_tooltip")} show`),children:jsx$1("div",{className:classnames("pb_popover_body",popoverSpacing,overflowHandling),id:targetId,style:widthHeightStyles(),children:children})})})})};const PbReactPopover=props=>{const[targetId]=useState(_uniqueId("id-"));const{className:className,children:children,modifiers:modifiers2=[],offset:offset2=false,placement:placement="left",portal:portal="body",reference:reference,referenceElement:referenceElement,show:show2=false,usePortal:usePortal=true,zIndex:zIndex,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth}=props;useEffect((()=>{const{closeOnClick:closeOnClick,shouldClosePopover:shouldClosePopover=noop$3}=props;if(!closeOnClick)return;document.body.addEventListener("click",(e2=>{const target=e2.target;const targetIsPopover=target.closest("#"+targetId)!==null;const targetIsReference=target.closest("#reference-"+targetId)!==null;const shouldClose=()=>{setTimeout((()=>shouldClosePopover(true)),0)};switch(closeOnClick){case"outside":if(!targetIsPopover&&!targetIsReference)shouldClose();break;case"inside":if(targetIsPopover)shouldClose();break;case"any":if(targetIsPopover||!targetIsPopover&&!targetIsReference)shouldClose();break}}),{capture:true})}),[]);const popoverComponent=jsx$1(Popover,{className:className,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,modifiers:modifiers2,offset:offset2,placement:placement,referenceElement:referenceElement,targetId:targetId,zIndex:zIndex,...props,children:children});return jsx$1(Manager,{children:jsxs(Fragment,{children:[reference&&!referenceElement&&jsx$1(Reference,{children:({ref:ref})=>jsx$1("span",{className:"pb_popover_reference_wrapper",id:"reference-"+targetId,ref:ref,children:jsx$1(reference.type,{...reference.props})})}),show2&&(usePortal?jsx$1(Fragment,{children:ReactDOM__default.createPortal(popoverComponent,document.querySelector(portal))}):{popoverComponent:popoverComponent})]})})};const TextInput=(props,ref)=>{const{addOn:addOn={icon:null,alignment:"right",border:true},aria:aria={},className:className,dark:dark=false,data:data={},disabled:disabled,error:error,htmlOptions:htmlOptions={},id:id,inline:inline=false,name:name2,label:label,onChange:onChange2=()=>{},placeholder:placeholder,required:required,type:type="text",value:value="",children:children=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const filteredProps={...props};if(filteredProps.marginBottom===void 0){filteredProps.marginBottom="sm"}const{alignment:alignment,border:border,icon:icon}=addOn;const addOnAlignment=alignment==="left"?"left":"right";const borderToChange=addOnAlignment==="left"?"right":"left";const borderToggle=border===false?"off":"on";const borderCss=`border_${borderToChange}_${borderToggle}`;const shouldShowAddOn=icon!==null;const addOnCss=shouldShowAddOn?"text_input_wrapper_add_on":"";const addOnDarkModeCardCss=shouldShowAddOn&&dark?"add-on-card-dark":"";const css4=classnames(["pb_text_input_kit",inline?"inline":"",error?"error":"",globalProps(filteredProps),className]);const addOnIcon=jsx$1(Icon,{className:"add-on-icon",dark:dark,fixedWidth:false,icon:icon});const childInput=children?children.type==="input":void 0;const textInput=childInput?React__default.cloneElement(children,{className:"text_input"}):createElement("input",{...domSafeProps(props),className:"text_input",disabled:disabled,id:id,key:id,name:name2,onChange:onChange2,placeholder:placeholder,ref:ref,required:required,type:type,value:value});const addOnInput=jsx$1(React__default.Fragment,{children:jsxs(Flex,{className:`add-on-${addOnAlignment} ${borderCss}`,vertical:"center",children:[addOnAlignment=="left"&&jsxs(Fragment,{children:[jsx$1(Card,{className:`${addOnDarkModeCardCss} add-on-card card-left-aligned`,dark:dark,children:addOnIcon}),textInput]}),addOnAlignment!="left"&&jsxs(Fragment,{children:[textInput,jsx$1(Card,{className:`${addOnDarkModeCardCss} add-on-card card-right-aligned`,dark:dark,children:addOnIcon})]})]})});const render=(()=>{if(children&&!childInput)return children;if(shouldShowAddOn)return addOnInput;return textInput})();return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:css4,children:[label&&jsx$1(Caption,{className:"pb_text_input_kit_label",text:label}),jsxs("div",{className:`${addOnCss} text_input_wrapper`,children:[render,error&&jsx$1(Body$1,{status:"negative",text:error,variant:null})]})]})};const TextInput$1=forwardRef(TextInput);const Passphrase=props=>{const{aria:aria={},className:className,confirmation:confirmation=false,data:data={},dark:dark=false,htmlOptions:htmlOptions={},id:id,inputProps:inputProps={},label:label=(confirmation?"Confirm Passphrase":"Passphrase"),onChange:onChange2=()=>void 0,showTipsBelow:showTipsBelow="always",tips:tips=[],uncontrolled:uncontrolled=false,value:value=""}=props;const[uncontrolledValue,setUncontrolledValue]=useState("");const[showPopover,setShowPopover]=useState(false);const[showPassphrase,setShowPassphrase]=useState(false);const handleChange=useCallback((e2=>uncontrolled?setUncontrolledValue(e2.target.value):onChange2(e2)),[uncontrolled,onChange2]);const displayValue=useMemo((()=>uncontrolled?uncontrolledValue:value),[value,uncontrolledValue,uncontrolled]);const toggleShowPopover=()=>setShowPopover(!showPopover);const handleShouldClosePopover=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};const toggleShowPassphrase=e2=>{e2.preventDefault();setShowPassphrase(!showPassphrase)};const tipClass=classnames("passphrase-popover",showTipsBelow==="always"?null:`show-below-${showTipsBelow}`);const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_passphrase"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const popoverReference=jsx$1(CircleIconButton,{className:tipClass,dark:dark,icon:"info-circle",onClick:toggleShowPopover,variant:"link"});return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("label",{children:[jsxs(Flex,{align:"baseline",children:[jsx$1(Caption,{className:"passphrase-label",text:label}),tips.length>0&&!confirmation&&jsx$1(PbReactPopover,{className:"passphrase-tips",closeOnClick:"outside",placement:"right",reference:popoverReference,shouldClosePopover:handleShouldClosePopover,show:showPopover,children:jsxs(Flex,{align:"center",orientation:"column",children:[jsx$1(Caption,{marginBottom:"xs",text:"Tips for a good passphrase"}),jsx$1("div",{children:tips.map(((tip,i)=>jsxs(Caption,{marginBottom:"xs",size:"xs",children:[jsx$1(Icon,{icon:"shield-check",marginRight:"xs"}),tip]},i)))})]})})]}),jsxs("div",{className:"passphrase-text-input-wrapper",children:[jsx$1(TextInput$1,{className:"passphrase-text-input",dark:dark,marginBottom:"xs",onChange:handleChange,placeholder:"Enter a passphrase...",type:showPassphrase?"text":"password",value:displayValue,...inputProps}),jsxs("span",{className:"show-passphrase-icon",onClick:toggleShowPassphrase,children:[jsx$1(Body$1,{className:showPassphrase?"hide-icon":"",color:"light",dark:dark,children:jsx$1(Icon,{icon:"eye-slash"})}),jsx$1(Body$1,{className:showPassphrase?"":"hide-icon",color:"light",dark:dark,children:jsx$1(Icon,{icon:"eye"})})]})]})]})})};var intlTelInput$2={exports:{}};(function(module){(function(factory){if(module.exports)module.exports=factory();else window.intlTelInput=factory()})((function(undefined$1){return function(){var allCountries=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé & Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barthélemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]];for(var i=0;i<allCountries.length;i++){var c2=allCountries[i];allCountries[i]={name:c2[0],iso2:c2[1],dialCode:c2[2],priority:c2[3]||0,areaCodes:c2[4]||null}}function _objectSpread3(target){for(var i2=1;i2<arguments.length;i2++){var source=arguments[i2]!=null?Object(arguments[i2]):{};var ownKeys2=Object.keys(source);if(typeof Object.getOwnPropertySymbols==="function"){ownKeys2.push.apply(ownKeys2,Object.getOwnPropertySymbols(source).filter((function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable})))}ownKeys2.forEach((function(key){_defineProperty2(target,key,source[key])}))}return target}function _defineProperty2(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _classCallCheck2(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties2(target,props){for(var i2=0;i2<props.length;i2++){var descriptor=props[i2];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass2(Constructor,protoProps,staticProps){if(protoProps)_defineProperties2(Constructor.prototype,protoProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined$1){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var intlTelInputGlobals={getInstance:function getInstance(input){var id2=input.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[id2]},instances:{},documentReady:function documentReady(){return document.readyState==="complete"}};if(typeof window==="object"){window.intlTelInputGlobals=intlTelInputGlobals}var id=0;var defaults={allowDropdown:true,autoInsertDialCode:false,autoPlaceholder:"polite",countrySearch:false,customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:false,formatOnDisplay:true,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:true,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:false,showFlags:true,useFullscreenPopup:typeof navigator!=="undefined"&&typeof window!=="undefined"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:false,utilsScript:""};var regionlessNanpNumbers=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];var forEachProp=function forEachProp2(obj,callback){var keys=Object.keys(obj);for(var i2=0;i2<keys.length;i2++){callback(keys[i2],obj[keys[i2]])}};var forEachInstance=function forEachInstance2(method){forEachProp(window.intlTelInputGlobals.instances,(function(key){window.intlTelInputGlobals.instances[key][method]()}))};var Iti=function(){function Iti2(input,options2){var _this=this;_classCallCheck2(this,Iti2);this.id=id++;this.telInput=input;this.activeItem=null;this.highlightedItem=null;var customOptions=options2||{};this.options={};forEachProp(defaults,(function(key,value){_this.options[key]=customOptions.hasOwnProperty(key)?customOptions[key]:value}));this.hadInitialPlaceholder=Boolean(input.getAttribute("placeholder"))}_createClass2(Iti2,[{key:"_init",value:function _init(){var _this2=this;if(this.options.useFullscreenPopup){this.options.fixDropdownWidth=false}if(this.options.countrySearch&&!this.options.useFullscreenPopup){this.options.fixDropdownWidth=true}if(this.options.nationalMode){this.options.autoInsertDialCode=false}if(this.options.separateDialCode){this.options.autoInsertDialCode=false}var forceShowFlags=this.options.allowDropdown&&!this.options.separateDialCode;if(!this.options.showFlags&&forceShowFlags){this.options.showFlags=true}if(this.options.useFullscreenPopup&&!this.options.dropdownContainer){this.options.dropdownContainer=document.body}this.isRTL=!!this.telInput.closest("[dir=rtl]");if(typeof Promise!=="undefined"){var autoCountryPromise=new Promise((function(resolve,reject){_this2.resolveAutoCountryPromise=resolve;_this2.rejectAutoCountryPromise=reject}));var utilsScriptPromise=new Promise((function(resolve,reject){_this2.resolveUtilsScriptPromise=resolve;_this2.rejectUtilsScriptPromise=reject}));this.promise=Promise.all([autoCountryPromise,utilsScriptPromise])}else{this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){};this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){}}this.selectedCountryData={};this._processCountryData();this._generateMarkup();this._setInitialState();this._initListeners();this._initRequests()}},{key:"_processCountryData",value:function _processCountryData(){this._processAllCountries();this._processCountryCodes();this._processPreferredCountries();if(this.options.localizedCountries){this._translateCountriesByLocale()}if(this.options.onlyCountries.length||this.options.localizedCountries){this.countries.sort(this._countryNameSort)}}},{key:"_addCountryCode",value:function _addCountryCode(iso2,countryCode,priority){if(countryCode.length>this.countryCodeMaxLen){this.countryCodeMaxLen=countryCode.length}if(!this.countryCodes.hasOwnProperty(countryCode)){this.countryCodes[countryCode]=[]}for(var i2=0;i2<this.countryCodes[countryCode].length;i2++){if(this.countryCodes[countryCode][i2]===iso2){return}}var index2=priority!==undefined$1?priority:this.countryCodes[countryCode].length;this.countryCodes[countryCode][index2]=iso2}},{key:"_processAllCountries",value:function _processAllCountries(){if(this.options.onlyCountries.length){var lowerCaseOnlyCountries=this.options.onlyCountries.map((function(country){return country.toLowerCase()}));this.countries=allCountries.filter((function(country){return lowerCaseOnlyCountries.indexOf(country.iso2)>-1}))}else if(this.options.excludeCountries.length){var lowerCaseExcludeCountries=this.options.excludeCountries.map((function(country){return country.toLowerCase()}));this.countries=allCountries.filter((function(country){return lowerCaseExcludeCountries.indexOf(country.iso2)===-1}))}else{this.countries=allCountries}}},{key:"_translateCountriesByLocale",value:function _translateCountriesByLocale(){for(var i2=0;i2<this.countries.length;i2++){var iso=this.countries[i2].iso2.toLowerCase();if(this.options.localizedCountries.hasOwnProperty(iso)){this.countries[i2].name=this.options.localizedCountries[iso]}}}},{key:"_countryNameSort",value:function _countryNameSort(a2,b2){if(a2.name<b2.name){return-1}if(a2.name>b2.name){return 1}return 0}},{key:"_processCountryCodes",value:function _processCountryCodes(){this.countryCodeMaxLen=0;this.dialCodes={};this.countryCodes={};for(var i2=0;i2<this.countries.length;i2++){var c3=this.countries[i2];if(!this.dialCodes[c3.dialCode]){this.dialCodes[c3.dialCode]=true}this._addCountryCode(c3.iso2,c3.dialCode,c3.priority)}for(var _i=0;_i<this.countries.length;_i++){var _c=this.countries[_i];if(_c.areaCodes){var rootCountryCode=this.countryCodes[_c.dialCode][0];for(var j=0;j<_c.areaCodes.length;j++){var areaCode=_c.areaCodes[j];for(var k2=1;k2<areaCode.length;k2++){var partialDialCode=_c.dialCode+areaCode.substr(0,k2);this._addCountryCode(rootCountryCode,partialDialCode);this._addCountryCode(_c.iso2,partialDialCode)}this._addCountryCode(_c.iso2,_c.dialCode+areaCode)}}}}},{key:"_processPreferredCountries",value:function _processPreferredCountries(){this.preferredCountries=[];for(var i2=0;i2<this.options.preferredCountries.length;i2++){var countryCode=this.options.preferredCountries[i2].toLowerCase();var countryData=this._getCountryData(countryCode,false,true);if(countryData){this.preferredCountries.push(countryData)}}}},{key:"_createEl",value:function _createEl(name2,attrs,container){var el=document.createElement(name2);if(attrs){forEachProp(attrs,(function(key,value){return el.setAttribute(key,value)}))}if(container){container.appendChild(el)}return el}},{key:"_generateMarkup",value:function _generateMarkup(){this.telInput.classList.add("iti__tel-input");if(!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))){this.telInput.setAttribute("autocomplete","off")}var _this$options=this.options,allowDropdown=_this$options.allowDropdown,separateDialCode=_this$options.separateDialCode,showFlags=_this$options.showFlags,customContainer=_this$options.customContainer,hiddenInput=_this$options.hiddenInput,dropdownContainer=_this$options.dropdownContainer,fixDropdownWidth=_this$options.fixDropdownWidth,useFullscreenPopup=_this$options.useFullscreenPopup,countrySearch=_this$options.countrySearch;var parentClass="iti";if(allowDropdown){parentClass+=" iti--allow-dropdown"}if(separateDialCode){parentClass+=" iti--separate-dial-code"}if(showFlags){parentClass+=" iti--show-flags"}if(customContainer){parentClass+=" ".concat(customContainer)}var wrapper=this._createEl("div",{class:parentClass});this.telInput.parentNode.insertBefore(wrapper,this.telInput);var showFlagsContainer=allowDropdown||showFlags||separateDialCode;if(showFlagsContainer){this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},wrapper)}wrapper.appendChild(this.telInput);if(showFlagsContainer){this.selectedFlag=this._createEl("div",_objectSpread3({class:"iti__selected-flag"},allowDropdown&&{role:"combobox","aria-haspopup":"listbox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false","aria-label":"Telephone country code"}),this.flagsContainer)}if(showFlags){this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag)}if(this.selectedFlag&&this.telInput.disabled){this.selectedFlag.setAttribute("aria-disabled","true")}if(separateDialCode){this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)}if(allowDropdown){if(!this.telInput.disabled){this.selectedFlag.setAttribute("tabindex","0")}this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag);var extraClasses=fixDropdownWidth?"":"iti--flexible-dropdown-width";this.dropdownContent=this._createEl("div",{class:"iti__dropdown-content iti__hide ".concat(extraClasses)});if(countrySearch){this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:"Search"},this.dropdownContent)}this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"},this.dropdownContent);if(this.preferredCountries.length&&!countrySearch){this._appendListItems(this.preferredCountries,"iti__preferred",true);this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)}this._appendListItems(this.countries,"iti__standard");if(dropdownContainer){var dropdownClasses="iti iti--container";if(useFullscreenPopup){dropdownClasses+=" iti--fullscreen-popup"}if(countrySearch){dropdownClasses+=" iti--country-search"}this.dropdown=this._createEl("div",{class:dropdownClasses});this.dropdown.appendChild(this.dropdownContent)}else{this.flagsContainer.appendChild(this.dropdownContent)}}if(hiddenInput){var hiddenInputName=hiddenInput;var name2=this.telInput.getAttribute("name");if(name2){var i2=name2.lastIndexOf("[");if(i2!==-1){hiddenInputName="".concat(name2.substr(0,i2),"[").concat(hiddenInputName,"]")}}this.hiddenInput=this._createEl("input",{type:"hidden",name:hiddenInputName});wrapper.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function _appendListItems(countries,className,preferred){for(var i2=0;i2<countries.length;i2++){var c3=countries[i2];var idSuffix=preferred?"-preferred":"";var listItem=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(c3.iso2).concat(idSuffix),class:"iti__country ".concat(className),tabindex:"-1",role:"option","data-dial-code":c3.dialCode,"data-country-code":c3.iso2,"aria-selected":"false"},this.countryList);c3.node=listItem;var content="";if(this.options.showFlags){content+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(c3.iso2,"'></div></div>")}content+="<span class='iti__country-name'>".concat(c3.name,"</span>");content+="<span class='iti__dial-code'>+".concat(c3.dialCode,"</span>");listItem.insertAdjacentHTML("beforeend",content)}}},{key:"_setInitialState",value:function _setInitialState(){var attributeValue=this.telInput.getAttribute("value");var inputValue=this.telInput.value;var useAttribute=attributeValue&&attributeValue.charAt(0)==="+"&&(!inputValue||inputValue.charAt(0)!=="+");var val=useAttribute?attributeValue:inputValue;var dialCode=this._getDialCode(val);var isRegionlessNanp=this._isRegionlessNanp(val);var _this$options2=this.options,initialCountry=_this$options2.initialCountry,autoInsertDialCode=_this$options2.autoInsertDialCode;if(dialCode&&!isRegionlessNanp){this._updateFlagFromNumber(val)}else if(initialCountry!=="auto"){var isValidInitialCountry=initialCountry&&this._getCountryData(initialCountry,false,true);if(isValidInitialCountry){this._setFlag(initialCountry.toLowerCase())}else{if(dialCode&&isRegionlessNanp){this._setFlag("us")}else{this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2;if(!val){this._setFlag(this.defaultCountry)}}}if(!val&&autoInsertDialCode){this.telInput.value="+".concat(this.selectedCountryData.dialCode)}}if(val){this._updateValFromNumber(val)}}},{key:"_initListeners",value:function _initListeners(){this._initKeyListeners();if(this.options.autoInsertDialCode){this._initBlurListeners()}if(this.options.allowDropdown){this._initDropdownListeners()}if(this.hiddenInput){this._initHiddenInputListener()}}},{key:"_initHiddenInputListener",value:function _initHiddenInputListener(){var _this3=this;this._handleHiddenInputSubmit=function(){_this3.hiddenInput.value=_this3.getNumber()};if(this.telInput.form){this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}}},{key:"_getClosestLabel",value:function _getClosestLabel(){var el=this.telInput;while(el&&el.tagName!=="LABEL"){el=el.parentNode}return el}},{key:"_initDropdownListeners",value:function _initDropdownListeners(){var _this4=this;this._handleLabelClick=function(e2){if(_this4.dropdownContent.classList.contains("iti__hide")){_this4.telInput.focus()}else{e2.preventDefault()}};var label=this._getClosestLabel();if(label){label.addEventListener("click",this._handleLabelClick)}this._handleClickSelectedFlag=function(){if(_this4.dropdownContent.classList.contains("iti__hide")&&!_this4.telInput.disabled&&!_this4.telInput.readOnly){_this4._showDropdown()}};this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag);this._handleFlagsContainerKeydown=function(e2){var isDropdownHidden=_this4.dropdownContent.classList.contains("iti__hide");if(isDropdownHidden&&["ArrowUp","ArrowDown"," ","Enter"].includes(e2.key)){e2.preventDefault();e2.stopPropagation();_this4._showDropdown()}if(e2.key==="Tab"){_this4._closeDropdown()}};this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function _initRequests(){var _this5=this;if(this.options.utilsScript&&!window.intlTelInputUtils){if(window.intlTelInputGlobals.documentReady()){window.intlTelInputGlobals.loadUtils(this.options.utilsScript)}else{window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(_this5.options.utilsScript)}))}}else{this.resolveUtilsScriptPromise()}if(this.options.initialCountry==="auto"){this._loadAutoCountry()}else{this.resolveAutoCountryPromise()}}},{key:"_loadAutoCountry",value:function _loadAutoCountry(){if(window.intlTelInputGlobals.autoCountry){this.handleAutoCountry()}else if(!window.intlTelInputGlobals.startedLoadingAutoCountry){window.intlTelInputGlobals.startedLoadingAutoCountry=true;if(typeof this.options.geoIpLookup==="function"){this.options.geoIpLookup((function(countryCode){window.intlTelInputGlobals.autoCountry=countryCode.toLowerCase();setTimeout((function(){return forEachInstance("handleAutoCountry")}))}),(function(){return forEachInstance("rejectAutoCountryPromise")}))}}}},{key:"_initKeyListeners",value:function _initKeyListeners(){var _this6=this;this._handleKeyupEvent=function(){if(_this6._updateFlagFromNumber(_this6.telInput.value)){_this6._triggerCountryChange()}};this.telInput.addEventListener("keyup",this._handleKeyupEvent);this._handleClipboardEvent=function(){setTimeout(_this6._handleKeyupEvent)};this.telInput.addEventListener("cut",this._handleClipboardEvent);this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function _cap(number){var max2=this.telInput.getAttribute("maxlength");return max2&&number.length>max2?number.substr(0,max2):number}},{key:"_initBlurListeners",value:function _initBlurListeners(){var _this7=this;this._handleSubmitOrBlurEvent=function(){_this7._removeEmptyDialCode()};if(this.telInput.form){this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent)}this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function _removeEmptyDialCode(){if(this.telInput.value.charAt(0)==="+"){var numeric=this._getNumeric(this.telInput.value);if(!numeric||this.selectedCountryData.dialCode===numeric){this.telInput.value=""}}}},{key:"_getNumeric",value:function _getNumeric(s2){return s2.replace(/\D/g,"")}},{key:"_trigger",value:function _trigger(name2){var e2=document.createEvent("Event");e2.initEvent(name2,true,true);this.telInput.dispatchEvent(e2)}},{key:"_showDropdown",value:function _showDropdown(){if(this.options.fixDropdownWidth){this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")}this.dropdownContent.classList.remove("iti__hide");this.selectedFlag.setAttribute("aria-expanded","true");this._setDropdownPosition();if(this.options.countrySearch){this._highlightListItem(this.countryList.firstElementChild,false);this.searchInput.focus()}else if(this.activeItem){this._highlightListItem(this.activeItem,false);this._scrollTo(this.activeItem,true)}this._bindDropdownListeners();this.dropdownArrow.classList.add("iti__arrow--up");this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function _toggleClass(el,className,shouldHaveClass){if(shouldHaveClass&&!el.classList.contains(className)){el.classList.add(className)}else if(!shouldHaveClass&&el.classList.contains(className)){el.classList.remove(className)}}},{key:"_setDropdownPosition",value:function _setDropdownPosition(){var _this8=this;if(this.options.dropdownContainer){this.options.dropdownContainer.appendChild(this.dropdown)}if(!this.options.useFullscreenPopup){var pos=this.telInput.getBoundingClientRect();var windowTop=window.pageYOffset||document.documentElement.scrollTop;var inputTop=pos.top+windowTop;var dropdownHeight=this.dropdownContent.offsetHeight;var dropdownFitsBelow=inputTop+this.telInput.offsetHeight+dropdownHeight<windowTop+window.innerHeight;var dropdownFitsAbove=inputTop-dropdownHeight>windowTop;var positionDropdownAboveInput=!this.options.countrySearch&&!dropdownFitsBelow&&dropdownFitsAbove;this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",positionDropdownAboveInput);if(this.options.dropdownContainer){var extraTop=positionDropdownAboveInput?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(inputTop+extraTop,"px");this.dropdown.style.left="".concat(pos.left+document.body.scrollLeft,"px");this._handleWindowScroll=function(){return _this8._closeDropdown()};window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function _getClosestListItem(target){var el=target;while(el&&el!==this.countryList&&!el.classList.contains("iti__country")){el=el.parentNode}return el===this.countryList?null:el}},{key:"_bindDropdownListeners",value:function _bindDropdownListeners(){var _this9=this;this._handleMouseoverCountryList=function(e2){var listItem=_this9._getClosestListItem(e2.target);if(listItem){_this9._highlightListItem(listItem,false)}};this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList);this._handleClickCountryList=function(e2){var listItem=_this9._getClosestListItem(e2.target);if(listItem){_this9._selectListItem(listItem)}};this.countryList.addEventListener("click",this._handleClickCountryList);var isOpening=true;this._handleClickOffToClose=function(){if(!isOpening){_this9._closeDropdown()}isOpening=false};document.documentElement.addEventListener("click",this._handleClickOffToClose);var query="";var queryTimer=null;this._handleKeydownOnDropdown=function(e2){if(["ArrowUp","ArrowDown","Enter","Escape"].includes(e2.key)){e2.preventDefault();e2.stopPropagation();if(e2.key==="ArrowUp"||e2.key==="ArrowDown"){_this9._handleUpDownKey(e2.key)}else if(e2.key==="Enter"){_this9._handleEnterKey()}else if(e2.key==="Escape"){_this9._closeDropdown()}}if(!_this9.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e2.key)){e2.stopPropagation();if(queryTimer){clearTimeout(queryTimer)}query+=e2.key.toLowerCase();_this9._searchForCountry(query);queryTimer=setTimeout((function(){query=""}),1e3)}};document.addEventListener("keydown",this._handleKeydownOnDropdown);if(this.options.countrySearch){var doFilter=function doFilter2(){var inputQuery=_this9.searchInput.value.trim();if(inputQuery){_this9._filterCountries(inputQuery.toLowerCase())}else{_this9._filterCountries(null,true)}};var keyupTimer=null;this._handleSearchChange=function(){if(keyupTimer){clearTimeout(keyupTimer)}keyupTimer=setTimeout((function(){doFilter();keyupTimer=null}),100)};this.searchInput.addEventListener("input",this._handleSearchChange);this.searchInput.addEventListener("click",(function(e2){return e2.stopPropagation()}))}}},{key:"_filterCountries",value:function _filterCountries(query){var isReset=arguments.length>1&&arguments[1]!==undefined$1?arguments[1]:false;var isFirst=true;this.countryList.innerHTML="";for(var i2=0;i2<this.countries.length;i2++){var c3=this.countries[i2];var nameLower=c3.name.toLowerCase();var fullDialCode="+".concat(c3.dialCode);if(isReset||nameLower.includes(query)||fullDialCode.includes(query)){this.countryList.appendChild(c3.node);if(isFirst){this._highlightListItem(c3.node,false);isFirst=false}}}}},{key:"_handleUpDownKey",value:function _handleUpDownKey(key){var next2=key==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(next2){if(next2.classList.contains("iti__divider")){next2=key==="ArrowUp"?next2.previousElementSibling:next2.nextElementSibling}}else if(this.countryList.childElementCount>1){next2=key==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild}if(next2){var doFocus=!this.options.countrySearch;this._highlightListItem(next2,doFocus);if(this.options.countrySearch){this._scrollTo(next2,false)}}}},{key:"_handleEnterKey",value:function _handleEnterKey(){if(this.highlightedItem){this._selectListItem(this.highlightedItem)}}},{key:"_searchForCountry",value:function _searchForCountry(query){for(var i2=0;i2<this.countries.length;i2++){if(this._startsWith(this.countries[i2].name,query)){var listItem=this.countries[i2].node;this._highlightListItem(listItem,false);this._scrollTo(listItem,true);break}}}},{key:"_startsWith",value:function _startsWith(a2,b2){return a2.substr(0,b2.length).toLowerCase()===b2}},{key:"_updateValFromNumber",value:function _updateValFromNumber(fullNumber){var number=fullNumber;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var useNational=this.options.nationalMode||number.charAt(0)!=="+"&&!this.options.separateDialCode;var _intlTelInputUtils$nu=intlTelInputUtils.numberFormat,NATIONAL=_intlTelInputUtils$nu.NATIONAL,INTERNATIONAL=_intlTelInputUtils$nu.INTERNATIONAL;var format=useNational?NATIONAL:INTERNATIONAL;number=intlTelInputUtils.formatNumber(number,this.selectedCountryData.iso2,format)}number=this._beforeSetNumber(number);this.telInput.value=number}},{key:"_updateFlagFromNumber",value:function _updateFlagFromNumber(fullNumber){var plusIndex=fullNumber.indexOf("+");var number=plusIndex?fullNumber.substring(plusIndex):fullNumber;var selectedDialCode=this.selectedCountryData.dialCode;var isNanp=selectedDialCode==="1";if(number&&isNanp&&number.charAt(0)!=="+"){if(number.charAt(0)!=="1"){number="1".concat(number)}number="+".concat(number)}if(this.options.separateDialCode&&selectedDialCode&&number.charAt(0)!=="+"){number="+".concat(selectedDialCode).concat(number)}var dialCode=this._getDialCode(number,true);var numeric=this._getNumeric(number);var countryCode=null;if(dialCode){var countryCodes=this.countryCodes[this._getNumeric(dialCode)];var alreadySelected=countryCodes.indexOf(this.selectedCountryData.iso2)!==-1&&numeric.length<=dialCode.length-1;var isRegionlessNanpNumber=selectedDialCode==="1"&&this._isRegionlessNanp(numeric);if(!isRegionlessNanpNumber&&!alreadySelected){for(var j=0;j<countryCodes.length;j++){if(countryCodes[j]){countryCode=countryCodes[j];break}}}}else if(number.charAt(0)==="+"&&numeric.length){countryCode=""}else if(!number||number==="+"){countryCode=this.defaultCountry}if(countryCode!==null){return this._setFlag(countryCode)}return false}},{key:"_isRegionlessNanp",value:function _isRegionlessNanp(number){var numeric=this._getNumeric(number);if(numeric.charAt(0)==="1"){var areaCode=numeric.substr(1,3);return regionlessNanpNumbers.indexOf(areaCode)!==-1}return false}},{key:"_highlightListItem",value:function _highlightListItem(listItem,shouldFocus){var prevItem=this.highlightedItem;if(prevItem){prevItem.classList.remove("iti__highlight")}this.highlightedItem=listItem;this.highlightedItem.classList.add("iti__highlight");this.selectedFlag.setAttribute("aria-activedescendant",listItem.getAttribute("id"));if(shouldFocus){this.highlightedItem.focus()}}},{key:"_getCountryData",value:function _getCountryData(countryCode,ignoreOnlyCountriesOption,allowFail){var countryList=ignoreOnlyCountriesOption?allCountries:this.countries;for(var i2=0;i2<countryList.length;i2++){if(countryList[i2].iso2===countryCode){return countryList[i2]}}if(allowFail){return null}throw new Error("No country data for '".concat(countryCode,"'"))}},{key:"_setFlag",value:function _setFlag(countryCode){var _this$options3=this.options,allowDropdown=_this$options3.allowDropdown,separateDialCode=_this$options3.separateDialCode,showFlags=_this$options3.showFlags;var prevCountry=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=countryCode?this._getCountryData(countryCode,false,false):{};if(this.selectedCountryData.iso2){this.defaultCountry=this.selectedCountryData.iso2}if(showFlags){this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(countryCode))}this._setSelectedCountryFlagTitleAttribute(countryCode,separateDialCode);if(separateDialCode){var dialCode=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=dialCode;var selectedFlagWidth=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();if(this.isRTL){this.telInput.style.paddingRight="".concat(selectedFlagWidth+6,"px")}else{this.telInput.style.paddingLeft="".concat(selectedFlagWidth+6,"px")}}this._updatePlaceholder();if(allowDropdown){var prevItem=this.activeItem;if(prevItem){prevItem.classList.remove("iti__active");prevItem.setAttribute("aria-selected","false")}if(countryCode){var nextItem=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(countryCode,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(countryCode));nextItem.setAttribute("aria-selected","true");nextItem.classList.add("iti__active");this.activeItem=nextItem}}return prevCountry.iso2!==countryCode}},{key:"_setSelectedCountryFlagTitleAttribute",value:function _setSelectedCountryFlagTitleAttribute(countryCode,separateDialCode){if(!this.selectedFlag){return}var title;if(countryCode&&!separateDialCode){title="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode)}else if(countryCode){title=this.selectedCountryData.name}else{title="Unknown"}this.selectedFlag.setAttribute("title",title)}},{key:"_getHiddenSelectedFlagWidth",value:function _getHiddenSelectedFlagWidth(){var containerClone=this.telInput.parentNode.cloneNode();containerClone.style.visibility="hidden";document.body.appendChild(containerClone);var flagsContainerClone=this.flagsContainer.cloneNode();containerClone.appendChild(flagsContainerClone);var selectedFlagClone=this.selectedFlag.cloneNode(true);flagsContainerClone.appendChild(selectedFlagClone);var width=selectedFlagClone.offsetWidth;containerClone.parentNode.removeChild(containerClone);return width}},{key:"_updatePlaceholder",value:function _updatePlaceholder(){var shouldSetPlaceholder=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&shouldSetPlaceholder){var numberType=intlTelInputUtils.numberType[this.options.placeholderNumberType];var placeholder=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,numberType):"";placeholder=this._beforeSetNumber(placeholder);if(typeof this.options.customPlaceholder==="function"){placeholder=this.options.customPlaceholder(placeholder,this.selectedCountryData)}this.telInput.setAttribute("placeholder",placeholder)}}},{key:"_selectListItem",value:function _selectListItem(listItem){var flagChanged=this._setFlag(listItem.getAttribute("data-country-code"));this._closeDropdown();this._updateDialCode(listItem.getAttribute("data-dial-code"));this.telInput.focus();var len=this.telInput.value.length;this.telInput.setSelectionRange(len,len);if(flagChanged){this._triggerCountryChange()}}},{key:"_closeDropdown",value:function _closeDropdown(){this.dropdownContent.classList.add("iti__hide");this.selectedFlag.setAttribute("aria-expanded","false");this.selectedFlag.removeAttribute("aria-activedescendant");this.dropdownArrow.classList.remove("iti__arrow--up");document.removeEventListener("keydown",this._handleKeydownOnDropdown);if(this.options.countrySearch){this.searchInput.removeEventListener("input",this._handleSearchChange)}document.documentElement.removeEventListener("click",this._handleClickOffToClose);this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList);this.countryList.removeEventListener("click",this._handleClickCountryList);if(this.options.dropdownContainer){if(!this.options.useFullscreenPopup){window.removeEventListener("scroll",this._handleWindowScroll)}if(this.dropdown.parentNode){this.dropdown.parentNode.removeChild(this.dropdown)}}this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function _scrollTo(element,middle){var container=this.dropdownContent;var windowTop=window.pageYOffset||document.documentElement.scrollTop;var containerHeight=container.offsetHeight;var containerTop=container.getBoundingClientRect().top+windowTop;var containerBottom=containerTop+containerHeight;var elementHeight=element.offsetHeight;var elementTop=element.getBoundingClientRect().top+windowTop;var elementBottom=elementTop+elementHeight;var newScrollTop=elementTop-containerTop+container.scrollTop;var middleOffset=containerHeight/2-elementHeight/2;if(elementTop<containerTop){if(middle){newScrollTop-=middleOffset}container.scrollTop=newScrollTop}else if(elementBottom>containerBottom){if(middle){newScrollTop+=middleOffset}var heightDifference=containerHeight-elementHeight;container.scrollTop=newScrollTop-heightDifference}}},{key:"_updateDialCode",value:function _updateDialCode(newDialCodeBare){var inputVal=this.telInput.value;var newDialCode="+".concat(newDialCodeBare);var newNumber;if(inputVal.charAt(0)==="+"){var prevDialCode=this._getDialCode(inputVal);if(prevDialCode){newNumber=inputVal.replace(prevDialCode,newDialCode)}else{newNumber=newDialCode}this.telInput.value=newNumber}else if(this.options.autoInsertDialCode){if(inputVal){newNumber=newDialCode+inputVal}else{newNumber=newDialCode}this.telInput.value=newNumber}}},{key:"_getDialCode",value:function _getDialCode(number,includeAreaCode){var dialCode="";if(number.charAt(0)==="+"){var numericChars="";for(var i2=0;i2<number.length;i2++){var c3=number.charAt(i2);if(!isNaN(parseInt(c3,10))){numericChars+=c3;if(includeAreaCode){if(this.countryCodes[numericChars]){dialCode=number.substr(0,i2+1)}}else{if(this.dialCodes[numericChars]){dialCode=number.substr(0,i2+1);break}}if(numericChars.length===this.countryCodeMaxLen){break}}}}return dialCode}},{key:"_getFullNumber",value:function _getFullNumber(){var val=this.telInput.value.trim();var dialCode=this.selectedCountryData.dialCode;var prefix2;var numericVal=this._getNumeric(val);if(this.options.separateDialCode&&val.charAt(0)!=="+"&&dialCode&&numericVal){prefix2="+".concat(dialCode)}else{prefix2=""}return prefix2+val}},{key:"_beforeSetNumber",value:function _beforeSetNumber(fullNumber){var number=fullNumber;if(this.options.separateDialCode){var dialCode=this._getDialCode(number);if(dialCode){dialCode="+".concat(this.selectedCountryData.dialCode);var start=number[dialCode.length]===" "||number[dialCode.length]==="-"?dialCode.length+1:dialCode.length;number=number.substr(start)}}return this._cap(number)}},{key:"_triggerCountryChange",value:function _triggerCountryChange(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function handleAutoCountry(){if(this.options.initialCountry==="auto"){this.defaultCountry=window.intlTelInputGlobals.autoCountry;if(!this.telInput.value){this.setCountry(this.defaultCountry)}this.resolveAutoCountryPromise()}}},{key:"handleUtils",value:function handleUtils(){if(window.intlTelInputUtils){if(this.telInput.value){this._updateValFromNumber(this.telInput.value)}this._updatePlaceholder()}this.resolveUtilsScriptPromise()}},{key:"destroy",value:function destroy2(){var form=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown();this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag);this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var label=this._getClosestLabel();if(label){label.removeEventListener("click",this._handleLabelClick)}}if(this.hiddenInput&&form){form.removeEventListener("submit",this._handleHiddenInputSubmit)}if(this.options.autoInsertDialCode){if(form){form.removeEventListener("submit",this._handleSubmitOrBlurEvent)}this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)}this.telInput.removeEventListener("keyup",this._handleKeyupEvent);this.telInput.removeEventListener("cut",this._handleClipboardEvent);this.telInput.removeEventListener("paste",this._handleClipboardEvent);this.telInput.removeAttribute("data-intl-tel-input-id");var wrapper=this.telInput.parentNode;wrapper.parentNode.insertBefore(this.telInput,wrapper);wrapper.parentNode.removeChild(wrapper);delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function getExtension(){if(window.intlTelInputUtils){return intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2)}return""}},{key:"getNumber",value:function getNumber(format){if(window.intlTelInputUtils){var iso2=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),iso2,format)}return""}},{key:"getNumberType",value:function getNumberType(){if(window.intlTelInputUtils){return intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2)}return-99}},{key:"getSelectedCountryData",value:function getSelectedCountryData(){return this.selectedCountryData}},{key:"getValidationError",value:function getValidationError(){if(window.intlTelInputUtils){var iso2=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),iso2)}return-99}},{key:"isValidNumber",value:function isValidNumber(){var val=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(val,this.selectedCountryData.iso2):null}},{key:"isPossibleNumber",value:function isPossibleNumber(){var val=this._getFullNumber().trim();return window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(val,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function setCountry(originalCountryCode){var countryCode=originalCountryCode.toLowerCase();if(this.selectedCountryData.iso2!==countryCode){this._setFlag(countryCode);this._updateDialCode(this.selectedCountryData.dialCode);this._triggerCountryChange()}}},{key:"setNumber",value:function setNumber(number){var flagChanged=this._updateFlagFromNumber(number);this._updateValFromNumber(number);if(flagChanged){this._triggerCountryChange()}}},{key:"setPlaceholderNumberType",value:function setPlaceholderNumberType(type){this.options.placeholderNumberType=type;this._updatePlaceholder()}}]);return Iti2}();intlTelInputGlobals.getCountryData=function(){return allCountries};var injectScript=function injectScript2(path,handleSuccess,handleFailure){var script=document.createElement("script");script.onload=function(){forEachInstance("handleUtils");if(handleSuccess){handleSuccess()}};script.onerror=function(){forEachInstance("rejectUtilsScriptPromise");if(handleFailure){handleFailure()}};script.className="iti-load-utils";script.async=true;script.src=path;document.body.appendChild(script)};intlTelInputGlobals.loadUtils=function(path){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){window.intlTelInputGlobals.startedLoadingUtilsScript=true;if(typeof Promise!=="undefined"){return new Promise((function(resolve,reject){return injectScript(path,resolve,reject)}))}injectScript(path)}return null};intlTelInputGlobals.defaults=defaults;intlTelInputGlobals.version="18.5.3";return function(input,options2){var iti=new Iti(input,options2);iti._init();input.setAttribute("data-intl-tel-input-id",iti.id);window.intlTelInputGlobals.instances[iti.id]=iti;return iti}}()}))})(intlTelInput$2);var intlTelInputExports=intlTelInput$2.exports;var intlTelInput=intlTelInputExports;const intlTelInput$1=getDefaultExportFromCjs(intlTelInput);(function(){var aa=this||self;function k2(a2,b2){a2=a2.split(".");var c2=aa;a2[0]in c2||"undefined"==typeof c2.execScript||c2.execScript("var "+a2[0]);for(var d2;a2.length&&(d2=a2.shift());)a2.length||void 0===b2?c2[d2]&&c2[d2]!==Object.prototype[d2]?c2=c2[d2]:c2=c2[d2]={}:c2[d2]=b2}function m2(a2,b2){function c2(){}c2.prototype=b2.prototype;a2.$=b2.prototype;a2.prototype=new c2;a2.prototype.constructor=a2;a2.fa=function(d2,f2,e2){for(var g2=Array(arguments.length-2),h2=2;h2<arguments.length;h2++)g2[h2-2]=arguments[h2];return b2.prototype[f2].apply(d2,g2)}}function ba(a2){const b2=[];let c2=0;for(const d2 in a2)b2[c2++]=a2[d2];return b2}function ca(a2,b2){this.g=a2;this.m=!!b2.o;this.i=b2.h;this.v=b2.type;this.u=false;switch(this.i){case da:case ea:case fa:case ha:case ia:case ja:case ka:this.u=true}this.l=b2.defaultValue}var ka=1,ja=2,da=3,ea=4,fa=6,ha=16,ia=18;function la(a2,b2){this.i=a2;this.g={};for(a2=0;a2<b2.length;a2++){var c2=b2[a2];this.g[c2.g]=c2}}function ma(a2){a2=ba(a2.g);a2.sort((function(b2,c2){return b2.g-c2.g}));return a2}function n2(){this.g={};this.l=this.j().g;this.i=this.m=null}n2.prototype.has=function(a2){return null!=this.g[a2.g]};n2.prototype.get=function(a2,b2){return p2(this,a2.g,b2)};n2.prototype.set=function(a2,b2){q(this,a2.g,b2)};n2.prototype.add=function(a2,b2){r2(this,a2.g,b2)};function na(a2,b2){for(var c2=ma(a2.j()),d2=0;d2<c2.length;d2++){var f2=c2[d2],e2=f2.g;if(null!=b2.g[e2]){a2.i&&delete a2.i[f2.g];var g2=11==f2.i||10==f2.i;if(f2.m){f2=t2(b2,e2);for(var h2=0;h2<f2.length;h2++)r2(a2,e2,g2?f2[h2].clone():f2[h2])}else f2=u2(b2,e2),g2?(g2=u2(a2,e2))?na(g2,f2):q(a2,e2,f2.clone()):q(a2,e2,f2)}}}n2.prototype.clone=function(){var a2=new this.constructor;a2!=this&&(a2.g={},a2.i&&(a2.i={}),na(a2,this));return a2};function u2(a2,b2){var c2=a2.g[b2];if(null==c2)return null;if(a2.m){if(!(b2 in a2.i)){var d2=a2.m,f2=a2.l[b2];if(null!=c2)if(f2.m){for(var e2=[],g2=0;g2<c2.length;g2++)e2[g2]=d2.i(f2,c2[g2]);c2=e2}else c2=d2.i(f2,c2);return a2.i[b2]=c2}return a2.i[b2]}return c2}function p2(a2,b2,c2){var d2=u2(a2,b2);return a2.l[b2].m?d2[c2||0]:d2}function v2(a2,b2){if(null!=a2.g[b2])a2=p2(a2,b2);else a:{a2=a2.l[b2];if(void 0===a2.l)if(b2=a2.v,b2===Boolean)a2.l=false;else if(b2===Number)a2.l=0;else if(b2===String)a2.l=a2.u?"0":"";else{a2=new b2;break a}a2=a2.l}return a2}function t2(a2,b2){return u2(a2,b2)||[]}function w2(a2,b2){return a2.l[b2].m?null!=a2.g[b2]?a2.g[b2].length:0:null!=a2.g[b2]?1:0}function q(a2,b2,c2){a2.g[b2]=c2;a2.i&&(a2.i[b2]=c2)}function r2(a2,b2,c2){a2.g[b2]||(a2.g[b2]=[]);a2.g[b2].push(c2);a2.i&&delete a2.i[b2]}function x2(a2,b2){var c2=[],d2;for(d2 in b2)0!=d2&&c2.push(new ca(d2,b2[d2]));return new la(a2,c2)}function y2(){}y2.prototype.g=function(a2){new a2.i;throw Error("Unimplemented")};y2.prototype.i=function(a2,b2){if(11==a2.i||10==a2.i)return b2 instanceof n2?b2:this.g(a2.v.prototype.j(),b2);if(14==a2.i)return"string"===typeof b2&&oa.test(b2)&&(a2=Number(b2),0<a2)?a2:b2;if(!a2.u)return b2;a2=a2.v;if(a2===String){if("number"===typeof b2)return String(b2)}else if(a2===Number&&"string"===typeof b2&&("Infinity"===b2||"-Infinity"===b2||"NaN"===b2||oa.test(b2)))return Number(b2);return b2};var oa=/^-?[0-9]+$/;function z2(){}m2(z2,y2);z2.prototype.g=function(a2,b2){a2=new a2.i;a2.m=this;a2.g=b2;a2.i={};return a2};function B(){}m2(B,z2);B.prototype.i=function(a2,b2){return 8==a2.i?!!b2:y2.prototype.i.apply(this,arguments)};B.prototype.g=function(a2,b2){return B.$.g.call(this,a2,b2)};function C2(a2,b2){null!=a2&&this.g.apply(this,arguments)}C2.prototype.i="";C2.prototype.set=function(a2){this.i=""+a2};C2.prototype.g=function(a2,b2,c2){this.i+=String(a2);if(null!=b2)for(let d2=1;d2<arguments.length;d2++)this.i+=arguments[d2];return this};C2.prototype.toString=function(){return this.i};function D2(){n2.call(this)}m2(D2,n2);var pa=null;function E2(){n2.call(this)}m2(E2,n2);var qa=null;function F2(){n2.call(this)}m2(F2,n2);var ra=null;D2.prototype.j=function(){var a2=pa;a2||(pa=a2=x2(D2,{0:{name:"NumberFormat",s:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:true,h:9,type:String},2:{name:"format",required:true,h:9,type:String},3:{name:"leading_digits_pattern",o:true,h:9,type:String},4:{name:"national_prefix_formatting_rule",h:9,type:String},6:{name:"national_prefix_optional_when_formatting",h:8,defaultValue:false,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",h:9,type:String}}));return a2};D2.j=D2.prototype.j;E2.prototype.j=function(){var a2=qa;a2||(qa=a2=x2(E2,{0:{name:"PhoneNumberDesc",s:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",h:9,type:String},9:{name:"possible_length",o:true,h:5,type:Number},10:{name:"possible_length_local_only",o:true,h:5,type:Number},6:{name:"example_number",h:9,type:String}}));return a2};E2.j=E2.prototype.j;F2.prototype.j=function(){var a2=ra;a2||(ra=a2=x2(F2,{0:{name:"PhoneMetadata",s:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",h:11,type:E2},2:{name:"fixed_line",h:11,type:E2},3:{name:"mobile",h:11,type:E2},4:{name:"toll_free",h:11,type:E2},5:{name:"premium_rate",h:11,type:E2},6:{name:"shared_cost",h:11,type:E2},7:{name:"personal_number",h:11,type:E2},8:{name:"voip",h:11,type:E2},21:{name:"pager",h:11,type:E2},25:{name:"uan",h:11,type:E2},27:{name:"emergency",h:11,type:E2},28:{name:"voicemail",h:11,type:E2},29:{name:"short_code",h:11,type:E2},30:{name:"standard_rate",h:11,type:E2},31:{name:"carrier_specific",h:11,type:E2},33:{name:"sms_services",h:11,type:E2},24:{name:"no_international_dialling",h:11,type:E2},9:{name:"id",required:true,h:9,type:String},10:{name:"country_code",h:5,type:Number},11:{name:"international_prefix",h:9,type:String},17:{name:"preferred_international_prefix",h:9,type:String},12:{name:"national_prefix",h:9,type:String},13:{name:"preferred_extn_prefix",h:9,type:String},15:{name:"national_prefix_for_parsing",h:9,type:String},16:{name:"national_prefix_transform_rule",h:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",h:8,defaultValue:false,type:Boolean},19:{name:"number_format",o:true,h:11,type:D2},20:{name:"intl_number_format",o:true,h:11,type:D2},22:{name:"main_country_for_code",h:8,defaultValue:false,type:Boolean},23:{name:"leading_digits",h:9,type:String}}));return a2};F2.j=F2.prototype.j;function H2(){n2.call(this)}m2(H2,n2);var sa=null,ta={ea:0,da:1,ca:5,ba:10,aa:20};H2.prototype.j=function(){var a2=sa;a2||(sa=a2=x2(H2,{0:{name:"PhoneNumber",s:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:true,h:5,type:Number},2:{name:"national_number",required:true,h:4,type:Number},3:{name:"extension",h:9,type:String},4:{name:"italian_leading_zero",h:8,type:Boolean},8:{name:"number_of_leading_zeros",h:5,defaultValue:1,type:Number},5:{name:"raw_input",h:9,type:String},6:{name:"country_code_source",h:14,defaultValue:0,type:ta},7:{name:"preferred_domestic_carrier_code",h:9,type:String}}));return a2};H2.ctor=H2;H2.ctor.j=H2.prototype.j;var I={1:"US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},ua={AC:[,[,,"(?:[01589]\\d|[46])\\d{4}",,,,,,,[5,6]],[,,"6[2-467]\\d{3}",,,,"62889",,,[5]],[,,"4\\d{4}",,,,"40123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AC",247,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:0[1-9]|[1589]\\d)\\d{4}",,,,"542011",,,[6]],,,[,,,,,,,,,[-1]]],AD:[,[,,"(?:1|6\\d)\\d{7}|[135-9]\\d{5}",,,,,,,[6,8,9]],[,,"[78]\\d{5}",,,,"712345",,,[6]],[,,"690\\d{6}|[356]\\d{5}",,,,"312345",,,[6,9]],[,,"180[02]\\d{4}",,,,"18001234",,,[8]],[,,"[19]\\d{5}",,,,"912345",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AD",376,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],[,"(\\d{4})(\\d{4})","$1 $2",["1"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],,[,,,,,,,,,[-1]],,,[,,"1800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AE:[,[,,"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"[2-4679][2-8]\\d{6}",,,,"22345678",,,[8],[7]],[,,"5[024-68]\\d{7}",,,,"501234567",,,[9]],[,,"400\\d{6}|800\\d{2,9}",,,,"800123456"],[,,"900[02]\\d{5}",,,,"900234567",,,[9]],[,,"700[05]\\d{5}",,,,"700012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AE",971,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],[,"(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"600[25]\\d{5}",,,,"600212345",,,[9]],,,[,,,,,,,,,[-1]]],AF:[,[,,"[2-7]\\d{8}",,,,,,,[9],[7]],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}",,,,"234567890",,,,[7]],[,,"7\\d{8}",,,,"701234567",,,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AF",93,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AG:[,[,,"(?:268|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}",,,,"2684601234",,,,[7]],[,,"268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}",,,,"2684641234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"26848[01]\\d{4}",,,,"2684801234",,,,[7]],"AG",1,"011","1",,,"([457]\\d{6})$|1","268$1",,,,,[,,"26840[69]\\d{4}",,,,"2684061234",,,,[7]],,"268",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AI:[,[,,"(?:264|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"264(?:292|4(?:6[12]|9[78]))\\d{4}",,,,"2644612345",,,,[7]],[,,"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}",,,,"2642351234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AI",1,"011","1",,,"([2457]\\d{6})$|1","264$1",,,,,[,,"264724\\d{4}",,,,"2647241234",,,,[7]],,"264",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AL:[,[,,"(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",,,,,,,[6,7,8,9],[5]],[,,"4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",,,,"22345678",,,[8],[5,6,7]],[,,"6(?:[78][2-9]|9\\d)\\d{6}",,,,"672123456",,,[9]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,"900[1-9]\\d\\d",,,,"900123",,,[6]],[,,"808[1-9]\\d\\d",,,,"808123",,,[6]],[,,"700[2-9]\\d{4}",,,,"70021234",,,[8]],[,,,,,,,,,[-1]],"AL",355,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],[,"(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AM:[,[,,"(?:[1-489]\\d|55|60|77)\\d{6}",,,,,,,[8],[5,6]],[,,"(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}",,,,"10123456",,,,[5,6]],[,,"(?:33|4[1349]|55|77|88|9[13-9])\\d{6}",,,,"77123456"],[,,"800\\d{5}",,,,"80012345"],[,,"90[016]\\d{5}",,,,"90012345"],[,,"80[1-4]\\d{5}",,,,"80112345"],[,,,,,,,,,[-1]],[,,"60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[0-2])\\d{4}",,,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],[,"(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AO:[,[,,"[29]\\d{8}",,,,,,,[9]],[,,"2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}",,,,"222123456"],[,,"9[1-59]\\d{7}",,,,"923123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AR:[,[,,"(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",,,,,,,[10,11],[6,7,8]],[,,"3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"1123456789",,,[10],[6,7,8]],[,,"93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"91123456789",,,,[6,7,8]],[,,"800\\d{7,8}",,,,"8001234567"],[,,"60[04579]\\d{7}",,,,"6001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AR",54,"00","0",,,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",,,[[,"(\\d{3})","$1",["0|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478])|911"]],[,"(\\d{2})(\\d{4})","$1-$2",["[1-9]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[1-8]"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",,1],[,"(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1"],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1"]],[[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",,1],[,"(\\d)(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"]],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3-$4",["91"]],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9"]]],[,,,,,,,,,[-1]],,,[,,"810\\d{7}",,,,,,,[10]],[,,"810\\d{7}",,,,"8101234567",,,[10]],,,[,,,,,,,,,[-1]]],AS:[,[,,"(?:[58]\\d\\d|684|900)\\d{7}",,,,,,,[10],[7]],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}",,,,"6846221234",,,,[7]],[,,"684(?:2(?:48|5[2468]|7[26])|7(?:3[13]|70|82))\\d{4}",,,,"6847331234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AS",1,"011","1",,,"([267]\\d{6})$|1","684$1",,,,,[,,,,,,,,,[-1]],,"684",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AT:[,[,,"1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",,,,,,,[4,5,6,7,8,9,10,11,12,13],[3]],[,,"1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}",,,,"1234567890",,,,[3]],[,,"6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",,,,"664123456",,,[7,8,9,10,11,12,13]],[,,"800\\d{6,10}",,,,"800123456",,,[9,10,11,12,13]],[,,"(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",,,,"900123456",,,[9,10,11,12,13]],[,,"8(?:10|2[018])\\d{6,10}|828\\d{5}",,,,"810123456",,,[8,9,10,11,12,13]],[,,,,,,,,,[-1]],[,,"5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",,,,"780123456",,,[5,6,7,8,9,10,11,12,13]],"AT",43,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["14"]],[,"(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],[,"(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],[,"(\\d{6})","$1",["[18]"]],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],[,"(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],[[,"(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],[,"(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],[,"(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AU:[,[,,"1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",,,,,,,[5,6,7,8,9,10,12]],[,,"(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",,,,"212345678",,,[9],[8]],[,,"4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"AU",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"(183[12])|0",,"0011",,[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["13"]],[,"(\\d{3})(\\d{3})","$1 $2",["19"]],[,"(\\d{3})(\\d{4})","$1 $2",["180","1802"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["19"]],[,"(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["130"]]],[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[,,"163\\d{2,6}",,,,"1631234",,,[5,6,7,8,9]],1,,[,,"1(?:3(?:00\\d{5}|45[0-4])|802)\\d{3}|1[38]00\\d{6}|13\\d{4}",,,,,,,[6,7,8,10,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AW:[,[,,"(?:[25-79]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"5(?:2\\d|8[1-9])\\d{4}",,,,"5212345"],[,,"(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}",,,,"5601234"],[,,"800\\d{4}",,,,"8001234"],[,,"900\\d{4}",,,,"9001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:28\\d|501)\\d{4}",,,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AX:[,[,,"2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"18[1-8]\\d{3,6}",,,,"181234567",,,[6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AX",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,,,[,,,,,,,,,[-1]],,"18",[,,,,,,,,,[-1]],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],AZ:[,[,,"365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",,,,,,,[9],[7]],[,,"(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}",,,,"123123456",,,,[7]],[,,"36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}",,,,"401234567"],[,,"88\\d{7}",,,,"881234567"],[,,"900200\\d{3}",,,,"900200123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[1-9]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BA:[,[,,"6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",,,,,,,[8,9],[6]],[,,"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",,,,"30212345",,,[8],[6]],[,,"6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}",,,,"61123456"],[,,"8[08]\\d{6}",,,,"80123456",,,[8]],[,,"9[0246]\\d{6}",,,,"90123456",,,[8]],[,,"8[12]\\d{6}",,,,"82123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BA",387,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",,,,"70341234",,,[8]],,,[,,,,,,,,,[-1]]],BB:[,[,,"(?:246|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}",,,,"2464123456",,,,[7]],[,,"246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}",,,,"2462501234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"(?:246976|900[2-9]\\d\\d)\\d{4}",,,,"9002123456",,,,[7]],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"24631\\d{5}",,,,"2463101234",,,,[7]],"BB",1,"011","1",,,"([2-9]\\d{6})$|1","246$1",,,,,[,,,,,,,,,[-1]],,"246",[,,,,,,,,,[-1]],[,,"246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}",,,,"2464301234",,,,[7]],,,[,,,,,,,,,[-1]]],BD:[,[,,"[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",,,,,,,[6,7,8,9,10]],[,,"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",,,,"27111234"],[,,"(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",,,,"1812345678",,,[10]],[,,"80[03]\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}",,,,"9604123456",,,[10]],"BD",880,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],[,"(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],[,"(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BE:[,[,,"4\\d{8}|[1-9]\\d{7}",,,,,,,[8,9]],[,,"80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",,,,"12345678",,,[8]],[,,"4[5-9]\\d{7}",,,,"470123456",,,[9]],[,,"800[1-9]\\d{4}",,,,"80012345",,,[8]],[,,"(?:70(?:2[0-57]|3[04-7]|44|6[4-69]|7[0579])|90\\d\\d)\\d{4}",,,,"90012345",,,[8]],[,,"7879\\d{4}",,,,"78791234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BE",32,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"78(?:0[57]|1[014-8]|2[25]|3[15-8]|48|[56]0|7[06-8]|9\\d)\\d{4}",,,,"78102345",,,[8]],,,[,,,,,,,,,[-1]]],BF:[,[,,"[025-7]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}",,,,"20491234"],[,,"(?:0[1-35-7]|5[0-8]|[67]\\d)\\d{6}",,,,"70123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BG:[,[,,"00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",,,,,,,[6,7,8,9,12],[4,5]],[,,"2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",,,,"2123456",,,[6,7,8],[4,5]],[,,"(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",,,,"43012345",,,[8,9]],[,,"(?:00800\\d\\d|800)\\d{5}",,,,"80012345",,,[8,12]],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,"700\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BG",359,"00","0",,,"0",,,,[[,"(\\d{6})","$1",["1"]],[,"(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],[[,"(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BH:[,[,,"[136-9]\\d{7}",,,,,,,[8]],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|55|7[7-9]|88)|9[69][69])|7(?:[07]\\d\\d|1(?:11|78)))\\d{4}",,,,"17001234"],[,,"(?:3(?:[0-79]\\d|8[0-57-9])\\d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}",,,,"36001234"],[,,"8[02369]\\d{6}",,,,"80123456"],[,,"(?:87|9[0-8])\\d{6}",,,,"90123456"],[,,"84\\d{6}",,,,"84123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BI:[,[,,"(?:[267]\\d|31)\\d{6}",,,,,,,[8]],[,,"(?:22|31)\\d{6}",,,,"22201234"],[,,"(?:29|[67][125-9])\\d{6}",,,,"79561234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BJ:[,[,,"[24-689]\\d{7}",,,,,,,[8]],[,,"2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}",,,,"20211234"],[,,"(?:4[0-6]|[56]\\d|9[013-9])\\d{6}",,,,"90011234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"857[58]\\d{4}",,,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"81\\d{6}",,,,"81123456"],,,[,,,,,,,,,[-1]]],BL:[,[,,"590\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:395|76[018])\\d|475[0-5])\\d{4}",,,,"976012345"],"BL",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BM:[,[,,"(?:441|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}",,,,"4414123456",,,,[7]],[,,"441(?:[2378]\\d|5[0-39]|92)\\d{5}",,,,"4413701234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BM",1,"011","1",,,"([2-9]\\d{6})$|1","441$1",,,,,[,,,,,,,,,[-1]],,"441",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BN:[,[,,"[2-578]\\d{6}",,,,,,,[7]],[,,"22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}",,,,"2345678"],[,,"(?:22[89]|[78]\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[34]\\d{5}",,,,"5345678"],"BN",673,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BO:[,[,,"(?:[2-467]\\d\\d|8001)\\d{5}",,,,,,,[8,9],[7]],[,,"(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",,,,"22123456",,,[8],[7]],[,,"[67]\\d{7}",,,,"71234567",,,[8]],[,,"8001[07]\\d{4}",,,,"800171234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BO",591,"00(?:1\\d)?","0",,,"0(1\\d)?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[23]|4[46]"],,"0$CC $1"],[,"(\\d{8})","$1",["[67]"],,"0$CC $1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"],,"0$CC $1"]],,[,,,,,,,,,[-1]],,,[,,"8001[07]\\d{4}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BQ:[,[,,"(?:[34]1|7\\d)\\d{5}",,,,,,,[7]],[,,"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}",,,,"7151234"],[,,"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}",,,,"3181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BQ",599,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"[347]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BR:[,[,,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",,,,,,,[8,9,10,11]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",,,,"1123456789",,,[10],[8]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",,,,"11961234567",,,[10,11],[8,9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"300\\d{6}|[59]00\\d{6,7}",,,,"300123456",,,[9,10]],[,,"(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}",,,,"40041234",,,[8,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",,,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",,,[[,"(\\d{3,6})","$1",["1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"]],[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{4})(\\d{4})","$1-$2",["[2-57]","[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{5})(\\d{4})","$1-$2",["9"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[,,,,,,,,,[-1]],,,[,,"30(?:0\\d{5,7}|3\\d{7})|40(?:0\\d|20)\\d{4}|800\\d{6,7}",,,,,,,[8,9,10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BS:[,[,,"(?:242|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}",,,,"2423456789",,,,[7]],[,,"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}",,,,"2423591234",,,,[7]],[,,"242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,,[7]],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BS",1,"011","1",,,"([3-8]\\d{6})$|1","242$1",,,,,[,,,,,,,,,[-1]],,"242",[,,,,,,,,,[-1]],[,,"242225\\d{4}",,,,"2422250123"],,,[,,,,,,,,,[-1]]],BT:[,[,,"[17]\\d{7}|[2-8]\\d{6}",,,,,,,[7,8],[6]],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",,,,"2345678",,,[7],[6]],[,,"(?:1[67]|77)\\d{6}",,,,"17123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BT",975,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BW:[,[,,"(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",,,,"2401234",,,[7]],[,,"(?:321|7[1-8]\\d)\\d{5}",,,,"71123456",,,[8]],[,,"(?:0800|800\\d)\\d{6}",,,,"0800012345",,,[10]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"79(?:1(?:[01]\\d|2[0-8])|2[0-7]\\d)\\d{3}",,,,"79101234",,,[8]],"BW",267,"00",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["90"]],[,"(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BY:[,[,,"(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",,,,"152450911",,,[9],[5,6,7]],[,,"(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",,,,"294911911",,,[9]],[,,"800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}",,,,"8011234567"],[,,"(?:810|902)\\d{7}",,,,"9021234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"249\\d{6}",,,,"249123456",,,[9]],"BY",375,"810","8",,,"0|80?",,"8~10",,[[,"(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],[,"(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],[,"(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,"800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BZ:[,[,,"(?:0800\\d|[2-8])\\d{6}",,,,,,,[7,11]],[,,"(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",,,,"2221234",,,[7]],[,,"6[0-35-7]\\d{5}",,,,"6221234",,,[7]],[,,"0800\\d{7}",,,,"08001234123",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CA:[,[,,"(?:[2-8]\\d|90)\\d{8}|3\\d{6}",,,,,,,[7,10]],[,,"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,[10],[7]],[,,"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,[10],[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,[10]],[,,"900[2-9]\\d{6}",,,,"9002123456",,,[10]],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",,,,"5002345678",,,[10]],[,,"600[2-9]\\d{6}",,,,"6002012345",,,[10]],"CA",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"310\\d{4}",,,,"3101234",,,[7]],,,[,,,,,,,,,[-1]]],CC:[,[,,"1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",,,,,,,[6,7,8,9,10,12]],[,,"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",,,,"891621234",,,[9],[8]],[,,"4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CC",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"([59]\\d{7})$|0","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CD:[,[,,"[189]\\d{8}|[1-68]\\d{6}",,,,,,,[7,9]],[,,"12\\d{7}|[1-6]\\d{6}",,,,"1234567"],[,,"88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}",,,,"991234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CD",243,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],[,"(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CF:[,[,,"(?:[27]\\d{3}|8776)\\d{4}",,,,,,,[8]],[,,"2[12]\\d{6}",,,,"21612345"],[,,"7[024-7]\\d{6}",,,,"70012345"],[,,,,,,,,,[-1]],[,,"8776\\d{4}",,,,"87761234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CG:[,[,,"222\\d{6}|(?:0\\d|80)\\d{7}",,,,,,,[9]],[,,"222[1-589]\\d{5}",,,,"222123456"],[,,"026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}",,,,"061234567"],[,,,,,,,,,[-1]],[,,"80[0-2]\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CG",242,"00",,,,,,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CH:[,[,,"8\\d{11}|[2-9]\\d{8}",,,,,,,[9,12]],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",,,,"212345678",,,[9]],[,,"7[35-9]\\d{7}",,,,"781234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[016]\\d{6}",,,,"900123456",,,[9]],[,,"84[0248]\\d{6}",,,,"840123456",,,[9]],[,,"878\\d{6}",,,,"878123456",,,[9]],[,,,,,,,,,[-1]],"CH",41,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],,[,,"74[0248]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"5[18]\\d{7}",,,,"581234567",,,[9]],,,[,,"860\\d{9}",,,,"860123456789",,,[12]]],CI:[,[,,"[02]\\d{9}",,,,,,,[10]],[,,"2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}",,,,"2123456789"],[,,"0[157]\\d{8}",,,,"0123456789"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CI",225,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CK:[,[,,"[2-578]\\d{4}",,,,,,,[5]],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}",,,,"21234"],[,,"[578]\\d{4}",,,,"71234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CL:[,[,,"12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",,,,,,,[9,10,11]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[03467]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[03467]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"(?:123|8)00\\d{6}",,,,"800123456",,,[9,11]],[,,,,,,,,,[-1]],[,,"600\\d{7,8}",,,,"6001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,"44\\d{7}",,,,"441234567",,,[9]],"CL",56,"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0",,,,,,,1,[[,"(\\d{4})","$1",["1(?:[03-589]|21)|[29]0|78"]],[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],[[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],[,,,,,,,,,[-1]],,,[,,"600\\d{7,8}",,,,,,,[10,11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CM:[,[,,"[26]\\d{8}|88\\d{6,7}",,,,,,,[8,9]],[,,"2(?:22|33)\\d{6}",,,,"222123456",,,[9]],[,,"(?:24[23]|6[25-9]\\d)\\d{6}",,,,"671234567",,,[9]],[,,"88\\d{6,7}",,,,"88012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CM",237,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CN:[,[,,"1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",,,,,,,[7,8,9,10,11,12],[5,6]],[,,"(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",,,,"1012345678",,,[7,8,9,10,11],[5,6]],[,,"1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",,,,"13123456789",,,[11]],[,,"(?:(?:10|21)8|8)00\\d{7}",,,,"8001234567",,,[10,12]],[,,"16[08]\\d{5}",,,,"16812345",,,[8]],[,,"10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",,,,"4001234567",,,[7,8,9,10,11],[5,6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CN",86,"00|1(?:[12]\\d|79)\\d\\d00","0",,,"(1(?:[12]\\d|79)\\d\\d)|0",,"00",,[[,"(\\d{5,6})","$1",["10|96"]],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","1(?:0(?:[0-8]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])|6)|[3-9]"]],[,"(\\d{4})(\\d{4})","$1 $2",["16[08]"]],[,"(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]","1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[0-8]|9[0-47-9])|6)|[3-9]","1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|26|3(?:[0268]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|8[1-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23][0-8])|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:33|85[23]9)[0-46-9]|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])","1(?:0[02-8]|[1-9])|2(?:[0-57-9][0-8]|6)|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:10|2[0-57-9])9[0-47-9]|(?:101|58|85[23]10)[1-9]|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}",,,,,,,[10,11,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CO:[,[,,"(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",,,,,,,[10,11],[7]],[,,"601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60(?:[124-7][2-9]|8[1-9])\\d{6}",,,,"6012345678",,,[10],[7]],[,,"333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",,,,"3211234567",,,[10]],[,,"1800\\d{7}",,,,"18001234567",,,[11]],[,,"19(?:0[01]|4[78])\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0([3579]|4(?:[14]4|56))?",,,,[[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1"]],[[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CR:[,[,,"(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",,,,,,,[8,10]],[,,"210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",,,,"22123456",,,[8]],[,,"(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",,,,"83123456",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"90[059]\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210[0-6]|4\\d{3}|5100)\\d{4}",,,,"40001234",,,[8]],"CR",506,"00",,,,"(19(?:0[0-2468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CU:[,[,,"[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",,,,,,,[6,7,8,10],[4,5]],[,,"(?:3[23]|4[89])\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}",,,,"71234567",,,,[4,5]],[,,"(?:5\\d|63)\\d{6}",,,,"51234567",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,"807\\d{7}",,,,"8071234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CU",53,"119","0",,,"0",,,,[[,"(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],[,"(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],[,"(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],[,"(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CV:[,[,,"(?:[2-59]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}",,,,"2211234"],[,,"(?:36|5[1-389]|9\\d)\\d{5}",,,,"9911234"],[,,"800\\d{4}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[3-5]|4[356])\\d{5}",,,,"3401234"],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CW:[,[,,"(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",,,,,,,[7,8]],[,,"9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}",,,,"94351234"],[,,"953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}",,,,"95181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"60[0-2]\\d{4}",,,,"6001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[3467]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],,[,,"955\\d{5}",,,,"95581234",,,[8]],1,"[69]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CX:[,[,,"1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",,,,,,,[6,7,8,9,10,12]],[,,"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",,,,"891641234",,,[9],[8]],[,,"4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CX",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"([59]\\d{7})$|0","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CY:[,[,,"(?:[279]\\d|[58]0)\\d{6}",,,,,,,[8]],[,,"2[2-6]\\d{6}",,,,"22345678"],[,,"9(?:10|[4-79]\\d)\\d{5}",,,,"96123456"],[,,"800\\d{5}",,,,"80001234"],[,,"90[09]\\d{5}",,,,"90012345"],[,,"80[1-9]\\d{5}",,,,"80112345"],[,,"700\\d{5}",,,,"70012345"],[,,,,,,,,,[-1]],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:50|77)\\d{6}",,,,"77123456"],,,[,,,,,,,,,[-1]]],CZ:[,[,,"(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",,,,,,,[9,10,11,12]],[,,"(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",,,,"212345678",,,[9]],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",,,,"601123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:0[05689]|76)\\d{6}",,,,"900123456",,,[9]],[,,"8[134]\\d{7}",,,,"811234567",,,[9]],[,,"70[01]\\d{6}",,,,"700123456",,,[9]],[,,"9[17]0\\d{6}",,,,"910123456",,,[9]],"CZ",420,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"9(?:5\\d|7[2-4])\\d{6}",,,,"972123456",,,[9]],,,[,,"9(?:3\\d{9}|6\\d{7,10})",,,,"93123456789"]],DE:[,[,,"[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",,,,,,,[4,5,6,7,8,9,10,11,12,13,14,15],[2,3]],[,,"32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",,,,"30123456",,,[5,6,7,8,9,10,11,12,13,14,15],[2,3,4]],[,,"15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",,,,"15123456789",,,[10,11]],[,,"800\\d{7,12}",,,,"8001234567890",,,[10,11,12,13,14,15]],[,,"(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",,,,"9001234567",,,[10,11]],[,,"180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",,,,"18012345",,,[7,8,9,10,11,12,13,14]],[,,"700\\d{8}",,,,"70012345678",,,[11]],[,,,,,,,,,[-1]],"DE",49,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],[,"(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],[,"(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],[,"(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],[,"(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],[,"(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],[,"(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],[,"(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],[,"(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],[,"(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],[,"(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],[,"(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})",,,,"16412345",,,[4,5,6,7,8,9,10,11,12,13,14]],,,[,,,,,,,,,[-1]],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})",,,,"18500123456",,,[8,9,10,11,12,13,14]],,,[,,"1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",,,,"177991234567",,,[12,13]]],DJ:[,[,,"(?:2\\d|77)\\d{6}",,,,,,,[8]],[,,"2(?:1[2-5]|7[45])\\d{5}",,,,"21360003"],[,,"77\\d{6}",,,,"77831001"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DK:[,[,,"[2-9]\\d{7}",,,,,,,[8]],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DM:[,[,,"(?:[58]\\d\\d|767|900)\\d{7}",,,,,,,[10],[7]],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",,,,"7674201234",,,,[7]],[,,"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}",,,,"7672251234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DM",1,"011","1",,,"([2-7]\\d{6})$|1","767$1",,,,,[,,,,,,,,,[-1]],,"767",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DO:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",,,,"8092345678",,,,[7]],[,,"8[024]9[2-9]\\d{6}",,,,"8092345678",,,,[7]],[,,"8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DO",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"8001|8[024]9",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DZ:[,[,,"(?:[1-4]|[5-79]\\d|80)\\d{7}",,,,,,,[8,9]],[,,"9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}",,,,"12345678"],[,,"(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",,,,"551234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"80[3-689]1\\d{5}",,,,"808123456",,,[9]],[,,"80[12]1\\d{5}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,"98[23]\\d{6}",,,,"983123456",,,[9]],"DZ",213,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EC:[,[,,"1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",,,,,,,[8,9,10,11],[7]],[,,"[2-7][2-7]\\d{6}",,,,"22123456",,,[8],[7]],[,,"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",,,,"991234567",,,[9]],[,,"1800\\d{7}|1[78]00\\d{6}",,,,"18001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[2-7]890\\d{4}",,,,"28901234",,,[8]],"EC",593,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-7]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EE:[,[,,"8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",,,,"3212345",,,[7]],[,,"(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",,,,"51234567",,,[7,8]],[,,"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",,,,"80012345"],[,,"(?:40\\d\\d|900)\\d{4}",,,,"9001234",,,[7,8]],[,,,,,,,,,[-1]],[,,"70[0-2]\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],"EE",372,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,"800[2-9]\\d{3}",,,,,,,[7]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EG:[,[,,"[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",,,,"234567890",,,[8,9],[6,7]],[,,"1[0-25]\\d{8}",,,,"1001234567",,,[10]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"EG",20,"00","0",,,"0",,,,[[,"(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],[,"(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EH:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"528[89]\\d{5}",,,,"528812345"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}",,,,"650123456"],[,,"80[0-7]\\d{6}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}",,,,"592401234"],"EH",212,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"528[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ER:[,[,,"[178]\\d{6}",,,,,,,[7],[6]],[,,"(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}",,,,"8370362",,,,[6]],[,,"(?:17[1-3]|7\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ES:[,[,,"[5-9]\\d{8}",,,,,,,[9]],[,,"96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",,,,"810123456"],[,,"(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}",,,,"612345678"],[,,"[89]00\\d{6}",,,,"800123456"],[,,"80[367]\\d{6}",,,,"803123456"],[,,"90[12]\\d{6}",,,,"901123456"],[,,"70\\d{7}",,,,"701234567"],[,,,,,,,,,[-1]],"ES",34,"00",,,,,,,,[[,"(\\d{4})","$1",["905"]],[,"(\\d{6})","$1",["[79]9"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"51\\d{7}",,,,"511234567"],,,[,,,,,,,,,[-1]]],ET:[,[,,"(?:11|[2-579]\\d)\\d{7}",,,,,,,[9],[7]],[,,"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[578]|2[69]|39|4[5-7]|5[0-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",,,,"111112345",,,,[7]],[,,"700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|22|77|86|99)|9\\d\\d)\\d{6}",,,,"911234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ET",251,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FI:[,[,,"[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",,,,"131234567",,,[5,6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FI",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,[[,"(\\d{5})","$1",["75[12]"],"0$1"],[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{6})","$1",["11"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[,,,,,,,,,[-1]],1,"1[03-79]|[2-9]",[,,"20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}"],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],FJ:[,[,,"45\\d{5}|(?:0800\\d|[235-9])\\d{6}",,,,,,,[7,11]],[,,"603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",,,,"3212345",,,[7]],[,,"(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",,,,"7012345",,,[7]],[,,"0800\\d{7}",,,,"08001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FK:[,[,,"[2-7]\\d{4}",,,,,,,[5]],[,,"[2-47]\\d{4}",,,,"31234"],[,,"[56]\\d{4}",,,,"51234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FK",500,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FM:[,[,,"(?:[39]\\d\\d|820)\\d{4}",,,,,,,[7]],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}",,,,"3201234"],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}",,,,"3501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[389]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FO:[,[,,"[2-9]\\d{5}",,,,,,,[6]],[,,"(?:20|[34]\\d|8[19])\\d{4}",,,,"201234"],[,,"(?:[27][1-9]|5\\d|9[16])\\d{4}",,,,"211234"],[,,"80[257-9]\\d{3}",,,,"802123"],[,,"90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d",,,,"901123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:6[0-36]|88)\\d{4}",,,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",["[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FR:[,[,,"[1-9]\\d{8}",,,,,,,[9]],[,,"59[1-9]\\d{6}|(?:[1-3]\\d|4[1-9]|5[0-8])\\d{7}",,,,"123456789"],[,,"(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}",,,,"612345678"],[,,"80[0-5]\\d{6}",,,,"801234567"],[,,"836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}",,,,"891123456"],[,,"8(?:1[01]|2[0156]|4[02]|84)\\d{6}",,,,"884012345"],[,,,,,,,,,[-1]],[,,"9\\d{8}",,,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["10"]],[,"(\\d{3})(\\d{3})","$1 $2",["1"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"80[6-9]\\d{6}",,,,"806123456"],,,[,,,,,,,,,[-1]]],GA:[,[,,"(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",,,,,,,[7,8]],[,,"[01]1\\d{6}",,,,"01441234",,,[8]],[,,"(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}",,,,"06031234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GA",241,"00",,,,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",,,[[,"(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GB:[,[,,"[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",,,,,,,[7,9,10],[4,5,6,8]],[,,"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",,,,"1212345678",,,[9,10],[4,5,6,7,8]],[,,"7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",,,,"7400123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GB",44,"00","0"," x",,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],[,"(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],[,"(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],[,"(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],,[,,"76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",,,,"7640123456",,,[10]],1,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GD:[,[,,"(?:473|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}",,,,"4732691234",,,,[7]],[,,"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}",,,,"4734031234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GD",1,"011","1",,,"([2-9]\\d{6})$|1","473$1",,,,,[,,,,,,,,,[-1]],,"473",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GE:[,[,,"(?:[3-57]\\d\\d|800)\\d{6}",,,,,,,[9],[6,7]],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}",,,,"322123456",,,,[6,7]],[,,"5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|(?:5(?:00(?:0\\d|11|22|33|44|5[05]|77|88|99)|1(?:1(?:00|[124]\\d|3[01])|4\\d\\d)|(?:44|68)\\d\\d|5(?:[0157-9]\\d\\d|200)|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|58[89]|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}|5(?:0(?:070|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}",,,,"555123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70[67]\\d{6}",,,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"70[67]\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GF:[,[,,"[56]94\\d{6}|(?:80|9\\d)\\d{7}",,,,,,,[9]],[,,"594(?:[02-49]\\d|1[0-4]|5[6-9]|6[0-3]|80)\\d{4}",,,,"594101234"],[,,"694(?:[0-249]\\d|3[0-8])\\d{4}",,,,"694201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:396|76\\d)\\d|476[0-5])\\d{4}",,,,"976012345"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GG:[,[,,"(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",,,,,,,[7,9,10],[6]],[,,"1481[25-9]\\d{5}",,,,"1481256789",,,[10],[6]],[,,"7(?:(?:781|839)\\d|911[17])\\d{5}",,,,"7781123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GG",44,"00","0",,,"([25-9]\\d{5})$|0","1481$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",,,,"7640123456",,,[10]],,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GH:[,[,,"(?:[235]\\d{3}|800)\\d{5}",,,,,,,[8,9],[7]],[,,"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",,,,"302345678",,,[9],[7]],[,,"(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",,,,"231234567",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GH",233,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[237]|8[0-2]"]],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"800\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GI:[,[,,"(?:[25]\\d|60)\\d{6}",,,,,,,[8]],[,,"2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}",,,,"20012345"],[,,"5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}",,,,"57123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GL:[,[,,"(?:19|[2-689]\\d|70)\\d{4}",,,,,,,[6]],[,,"(?:19|3[1-7]|[68][1-9]|70|9\\d)\\d{4}",,,,"321000"],[,,"[245]\\d{5}",,,,"221234"],[,,"80\\d{4}",,,,"801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3[89]\\d{4}",,,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GM:[,[,,"[2-9]\\d{6}",,,,,,,[7]],[,,"(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}",,,,"5661234"],[,,"(?:[23679]\\d|5[0-489])\\d{5}",,,,"3012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GN:[,[,,"722\\d{6}|(?:3|6\\d)\\d{7}",,,,,,,[8,9]],[,,"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",,,,"30241234",,,[8]],[,,"6[0-356]\\d{7}",,,,"601123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"722\\d{6}",,,,"722123456",,,[9]],"GN",224,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GP:[,[,,"590\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}",,,,"590201234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:395|76[018])\\d|475[0-5])\\d{4}",,,,"976012345"],"GP",590,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GQ:[,[,,"222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",,,,,,,[9]],[,,"33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}",,,,"333091234"],[,,"(?:222|55\\d)\\d{6}",,,,"222123456"],[,,"80\\d[1-9]\\d{5}",,,,"800123456"],[,,"90\\d[1-9]\\d{5}",,,,"900123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GR:[,[,,"5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",,,,,,,[10,11,12]],[,,"2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",,,,"2123456789",,,[10]],[,,"68[57-9]\\d{7}|(?:69|94)\\d{8}",,,,"6912345678",,,[10]],[,,"800\\d{7,9}",,,,"8001234567"],[,,"90[19]\\d{7}",,,,"9091234567",,,[10]],[,,"8(?:0[16]|12|[27]5|50)\\d{7}",,,,"8011234567",,,[10]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,,,,,,,,[-1]],"GR",30,"00",,,,,,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],[,"(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],[,"(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"5005000\\d{3}",,,,"5005000123",,,[10]],,,[,,,,,,,,,[-1]]],GT:[,[,,"80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",,,,,,,[8,11]],[,,"[267][2-9]\\d{6}",,,,"22456789",,,[8]],[,,"(?:[3-5]\\d\\d|80[0-4])\\d{5}",,,,"51234567",,,[8]],[,,"18[01]\\d{8}",,,,"18001112222",,,[11]],[,,"19\\d{9}",,,,"19001112222",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GU:[,[,,"(?:[58]\\d\\d|671|900)\\d{7}",,,,,,,[10],[7]],[,,"671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GU",1,"011","1",,,"([2-9]\\d{6})$|1","671$1",,1,,,[,,,,,,,,,[-1]],,"671",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GW:[,[,,"[49]\\d{8}|4\\d{6}",,,,,,,[7,9]],[,,"443\\d{6}",,,,"443201234",,,[9]],[,,"9(?:5\\d|6[569]|77)\\d{6}",,,,"955012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"40\\d{5}",,,,"4012345",,,[7]],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["40"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GY:[,[,,"(?:[2-8]\\d{3}|9008)\\d{3}",,,,,,,[7]],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])\\d{4}",,,,"2201234"],[,,"(?:510|6\\d\\d|7(?:0\\d|1[0-8]|25|49))\\d{4}",,,,"6091234"],[,,"(?:289|8(?:00|6[28]|88|99))\\d{4}",,,,"2891234"],[,,"9008\\d{3}",,,,"9008123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"515\\d{4}",,,,"5151234"],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HK:[,[,,"8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",,,,,,,[5,6,7,8,9,11]],[,,"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[59]\\d|6[01]))|58(?:0[1-9]|1[2-9]))\\d{4}",,,,"21234567",,,[8]],[,,"(?:4(?:44[5-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-6]|8[0-4])|848[0-25-9]|9(?:29[013-9]|59[0-4]|899))\\d{4}|(?:4(?:4[015]|6[02357-9])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",,,,"51234567",,,[8]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})",,,,"90012345678",,,[5,6,7,8,11]],[,,,,,,,,,[-1]],[,,"8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",,,,"81123456",,,[8]],[,,,,,,,,,[-1]],"HK",852,"00(?:30|5[09]|[126-9]?)",,,,,,"00",,[[,"(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],,[,,"7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",,,,"71123456",,,[8]],,,[,,,,,,,,,[-1]],[,,"30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",,,,"30161234",,,[8]],,,[,,,,,,,,,[-1]]],HN:[,[,,"8\\d{10}|[237-9]\\d{7}",,,,,,,[8,11]],[,,"2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",,,,"22123456",,,[8]],[,,"[37-9]\\d{7}",,,,"91234567",,,[8]],[,,"8002\\d{7}",,,,"80021234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["8"]]],[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],[,,,,,,,,,[-1]],,,[,,"8002\\d{7}",,,,,,,[11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HR:[,[,,"(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",,,,,,,[6,7,8,9]],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|77|9[5-7])))\\d{4}|98\\d{6}",,,,"921234567",,,[8,9]],[,,"80\\d{5,7}",,,,"800123456",,,[7,8,9]],[,,"6[01459]\\d{6}|6[01]\\d{4,5}",,,,"611234",,,[6,7,8]],[,,,,,,,,,[-1]],[,,"7[45]\\d{6}",,,,"74123456",,,[8]],[,,,,,,,,,[-1]],"HR",385,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"62\\d{6,7}|72\\d{6}",,,,"62123456",,,[8,9]],,,[,,,,,,,,,[-1]]],HT:[,[,,"(?:[2-489]\\d|55)\\d{6}",,,,,,,[8]],[,,"2(?:2\\d|5[1-5]|81|9[149])\\d{5}",,,,"22453300"],[,,"(?:[34]\\d|55)\\d{6}",,,,"34101234"],[,,"8\\d{7}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}",,,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HU:[,[,,"[235-7]\\d{8}|[1-9]\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",,,,"12345678",,,[8],[6,7]],[,,"(?:[257]0|3[01])\\d{7}",,,,"201234567",,,[9]],[,,"(?:[48]0\\d|680[29])\\d{5}",,,,"80123456"],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"21\\d{7}",,,,"211234567",,,[9]],"HU",36,"00","06",,,"06",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],,[,,,,,,,,,[-1]],,,[,,"(?:[48]0\\d|680[29])\\d{5}"],[,,"38\\d{7}",,,,"381234567",,,[9]],,,[,,,,,,,,,[-1]]],ID:[,[,,"(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",,,,,,,[7,8,9,10,11,12,13],[5,6]],[,,"2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",,,,"218350123",,,[7,8,9,10,11],[5,6]],[,,"8[1-35-9]\\d{7,10}",,,,"812345678",,,[9,10,11,12]],[,,"00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",,,,"8001234567",,,[8,9,10,11,12,13]],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,"804\\d{7}",,,,"8041234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ID",62,"00[89]","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],[,"(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],[,"(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],[,"(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],[,"(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],[,"(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],[,"(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["001"]],[,"(\\d{2})(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],[,"(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],[,"(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],[,"(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],[,"(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],[,"(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],[,"(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"001803\\d{6,7}|(?:007803\\d|8071)\\d{6}",,,,,,,[10,12,13]],[,,"(?:1500|8071\\d{3})\\d{3}",,,,"8071123456",,,[7,10]],,,[,,,,,,,,,[-1]]],IE:[,[,,"(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",,,,,,,[7,8,9,10],[5,6]],[,,"(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}",,,,"2212345",,,,[5,6]],[,,"8(?:22|[35-9]\\d)\\d{6}",,,,"850123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}",,,,"1520123456",,,[10]],[,,"18[59]0\\d{6}",,,,"1850123456",,,[10]],[,,"700\\d{6}",,,,"700123456",,,[9]],[,,"76\\d{7}",,,,"761234567",,,[9]],"IE",353,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],[,"(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],[,"(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],[,"(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"18[59]0\\d{6}",,,,,,,[10]],[,,"818\\d{6}",,,,"818123456",,,[9]],,,[,,"88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",,,,"8551234567",,,[10]]],IL:[,[,,"1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,"153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",,,,"21234567",,,[8,11,12],[7]],[,,"55410\\d{4}|5(?:(?:[02][02-9]|[149][2-9]|[36]\\d|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[34]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",,,,"502345678",,,[9]],[,,"1(?:255|80[019]\\d{3})\\d{3}",,,,"1800123456",,,[7,10]],[,,"1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}",,,,"1919123456",,,[8,10]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,"7(?:38(?:0\\d|5[09]|88)|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",,,,"771234567",,,[9]],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"(\\d{4})(\\d{3})","$1-$2",["125"]],[,"(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],[,"(\\d{4})(\\d{6})","$1-$2",["159"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],[,"(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],,[,,,,,,,,,[-1]],,,[,,"1700\\d{6}",,,,,,,[10]],[,,"1599\\d{6}",,,,"1599123456",,,[10]],,,[,,"151\\d{8,9}",,,,"15112340000",,,[11,12]]],IM:[,[,,"1624\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1624(?:230|[5-8]\\d\\d)\\d{3}",,,,"1624756789",,,,[6]],[,,"76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}",,,,"7924123456"],[,,"808162\\d{4}",,,,"8081624567"],[,,"8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}",,,,"9016247890"],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678"],[,,"56\\d{8}",,,,"5612345678"],"IM",44,"00","0",,,"([25-8]\\d{5})$|0","1624$1",,,,,[,,,,,,,,,[-1]],,"74576|(?:16|7[56])24",[,,,,,,,,,[-1]],[,,"3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],IN:[,[,,"(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",,,,,,,[8,9,10,11,12,13],[6,7]],[,,"2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",,,,"7410410123",,,[10],[6,7,8]],[,,"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}",,,,"8123456789",,,[10]],[,,"000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))",,,,"1800123456"],[,,"186[12]\\d{9}",,,,"1861123456789",,,[13]],[,,"1860\\d{7}",,,,"18603451234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IN",91,"00","0",,,"0",,,,[[,"(\\d{7})","$1",["575"]],[,"(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",,1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",,1],[,"(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",,1],[,"(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],,,1],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[[,"(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",,1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",,1],[,"(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",,1],[,"(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],,,1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[,,,,,,,,,[-1]],,,[,,"1(?:600\\d{6}|800\\d{4,9})|(?:000800|18(?:03\\d\\d|6(?:0|[12]\\d\\d)))\\d{7}"],[,,"140\\d{7}",,,,"1409305260",,,[10]],,,[,,,,,,,,,[-1]]],IO:[,[,,"3\\d{6}",,,,,,,[7]],[,,"37\\d{5}",,,,"3709100"],[,,"38\\d{5}",,,,"3801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IQ:[,[,,"(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"7[3-9]\\d{8}",,,,"7912345678",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IQ",964,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IR:[,[,,"[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",,,,,,,[4,5,6,7,10],[8]],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",,,,"2123456789",,,[6,7,10],[4,5,8]],[,,"9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:[0-46]\\d\\d|5[15]0|8(?:[12]\\d|88)|9(?:0[0-3]|[19]\\d|21|69|77|8[7-9])))\\d{5}",,,,"9123456789",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IR",98,"00","0",,,"0",,,,[[,"(\\d{4,5})","$1",["96"],"0$1"],[,"(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))",,,,,,,[4,5,10]],[,,"96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",,,,"9601",,,[4,5]],,,[,,,,,,,,,[-1]]],IS:[,[,,"(?:38\\d|[4-9])\\d{6}",,,,,,,[7,9]],[,,"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",,,,"4101234",,,[7]],[,,"(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}",,,,"6111234"],[,,"80[0-8]\\d{4}",,,,"8001234",,,[7]],[,,"90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"49[0-24-79]\\d{4}",,,,"4921234",,,[7]],"IS",354,"00|1(?:0(?:01|[12]0)|100)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"809\\d{4}",,,,"8091234",,,[7]],,,[,,"(?:689|8(?:7[18]|80)|95[48])\\d{4}",,,,"6891234",,,[7]]],IT:[,[,,"0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",,,,,,,[6,7,8,9,10,11,12]],[,,"0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",,,,"0212345678",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[6,9]],[,,"(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"IT",39,"00",,,,,,,,[[,"(\\d{4,5})","$1",["1(?:0|9[246])","1(?:0|9(?:2[2-9]|[46]))"]],[,"(\\d{6})","$1",["1(?:1|92)"]],[,"(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],[,"(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],[,"(\\d{4})(\\d{4})","$1 $2",["894"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],[,"(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],[[,"(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],[,"(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],[,"(\\d{4})(\\d{4})","$1 $2",["894"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],[,"(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],[,,,,,,,,,[-1]],1,,[,,"848\\d{6}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],JE:[,[,,"1534\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1534[0-24-8]\\d{5}",,,,"1534456789",,,,[6]],[,,"7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}",,,,"7797712345"],[,,"80(?:07(?:35|81)|8901)\\d{4}",,,,"8007354567"],[,,"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}",,,,"9018105678"],[,,,,,,,,,[-1]],[,,"701511\\d{4}",,,,"7015115678"],[,,"56\\d{8}",,,,"5612345678"],"JE",44,"00","0",,,"([0-24-8]\\d{5})$|0","1534$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",,,,"7640123456"],,,[,,,,,,,,,[-1]],[,,"(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],JM:[,[,,"(?:[58]\\d\\d|658|900)\\d{7}",,,,,,,[10],[7]],[,,"8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]\\d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}",,,,"8765230123",,,,[7]],[,,"(?:658295|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}",,,,"8762101234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"JM",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"658|876",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],JO:[,[,,"(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",,,,,,,[8,9]],[,,"87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",,,,"62001234",,,[8]],[,,"7(?:[78][0-25-9]|9\\d)\\d{6}",,,,"790123456",,,[9]],[,,"80\\d{6}",,,,"80012345",,,[8]],[,,"9\\d{7}",,,,"90012345",,,[8]],[,,"85\\d{6}",,,,"85012345",,,[8]],[,,"70\\d{7}",,,,"700123456",,,[9]],[,,,,,,,,,[-1]],"JO",962,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],[,"(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],,[,,"74(?:66|77)\\d{5}",,,,"746612345",,,[9]],,,[,,,,,,,,,[-1]],[,,"8(?:10|8\\d)\\d{5}",,,,"88101234",,,[8]],,,[,,,,,,,,,[-1]]],JP:[,[,,"00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",,,,,,,[8,9,10,11,12,13,14,15,16,17]],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",,,,"312345678",,,[9]],[,,"[7-9]0[1-9]\\d{7}",,,,"9012345678",,,[10]],[,,"00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}",,,,"120123456"],[,,"990\\d{6}",,,,"990123456",,,[9]],[,,,,,,,,,[-1]],[,,"60\\d{7}",,,,"601234567",,,[9]],[,,"50[1-9]\\d{7}",,,,"5012345678",,,[10]],"JP",81,"010","0",,,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1",,,[[,"(\\d{4})(\\d{4})","$1-$2",["007","0077","00777","00777[01]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],[,"(\\d{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["007","0077"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["008"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["0"]]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],[,,"20\\d{8}",,,,"2012345678",,,[10]],,,[,,"00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"],[,,"570\\d{6}",,,,"570123456",,,[9]],,,[,,,,,,,,,[-1]]],KE:[,[,,"(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",,,,,,,[7,8,9,10]],[,,"(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",,,,"202012345",,,[7,8,9]],[,,"(?:1(?:0[0-6]|1[0-5]|2[014]|30)|7\\d\\d)\\d{6}",,,,"712123456",,,[9]],[,,"800[2-8]\\d{5,6}",,,,"800223456",,,[9,10]],[,,"900[02-9]\\d{5}",,,,"900223456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KE",254,"000","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KG:[,[,,"8\\d{9}|[235-9]\\d{8}",,,,,,,[9,10],[5,6]],[,,"312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",,,,"312123456",,,[9],[5,6]],[,,"312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}",,,,"700123456",,,[9]],[,,"800\\d{6,7}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KG",996,"00","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],[,"(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KH:[,[,,"1\\d{9}|[1-9]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",,,,"23756789",,,[8,9],[6,7]],[,,"(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",,,,"91234567",,,[8,9]],[,,"1800(?:1\\d|2[019])\\d{4}",,,,"1800123456",,,[10]],[,,"1900(?:1\\d|2[09])\\d{4}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KI:[,[,,"(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",,,,,,,[5,8]],[,,"(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}",,,,"31234"],[,,"(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}",,,,"72001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",,,,"30010000",,,[8]],"KI",686,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KM:[,[,,"[3478]\\d{6}",,,,,,,[7],[4]],[,,"7[4-7]\\d{5}",,,,"7712345",,,,[4]],[,,"[34]\\d{6}",,,,"3212345"],[,,,,,,,,,[-1]],[,,"8\\d{6}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KN:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}",,,,"8692361234",,,,[7]],[,,"869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}",,,,"8697652917",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KN",1,"011","1",,,"([2-7]\\d{6})$|1","869$1",,,,,[,,,,,,,,,[-1]],,"869",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KP:[,[,,"85\\d{6}|(?:19\\d|[2-7])\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}",,,,"21234567",,,,[6,7]],[,,"19[1-3]\\d{7}",,,,"1921234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KP",850,"00|99","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"238[02-9]\\d{4}|2(?:[0-24-9]\\d|3[0-79])\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KR:[,[,,"00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",,,,,,,[5,6,8,9,10,11,12,13,14],[3,4,7]],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",,,,"22123456",,,[5,6,8,9,10],[3,4,7]],[,,"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",,,,"1020000000",,,[9,10]],[,,"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",,,,"801234567",,,[9,11,12,13,14]],[,,"60[2-9]\\d{6}",,,,"602345678",,,[9]],[,,,,,,,,,[-1]],[,,"50\\d{8,9}",,,,"5012345678",,,[10,11]],[,,"70\\d{8}",,,,"7012345678",,,[10]],"KR",82,"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","0",,,"0(8(?:[1-46-8]|5\\d\\d))?",,,,[[,"(\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"],"0$1"],[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3})(\\d{3})","$1 $2 $3",["003","0030"]],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3,4})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{5})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"]],[,,"15\\d{7,8}",,,,"1523456789",,,[9,10]],,,[,,"00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",,,,,,,[11,12,13,14]],[,,"1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[168]|88)|8(?:00|33|55|77|99))\\d{4}",,,,"15441234",,,[8]],,,[,,,,,,,,,[-1]]],KW:[,[,,"18\\d{5}|(?:[2569]\\d|41)\\d{6}",,,,,,,[7,8]],[,,"2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",,,,"22345678",,,[8]],[,,"(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|66)|222|3[36]3|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}",,,,"50012345",,,[8]],[,,"18\\d{5}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],[,"(\\d{3})(\\d{5})","$1 $2",["[245]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KY:[,[,,"(?:345|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|[48]8)|9(?:14|4[035-9]))\\d{4}",,,,"3452221234",,,,[7]],[,,"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}",,,,"3453231234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"(?:345976|900[2-9]\\d\\d)\\d{4}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KY",1,"011","1",,,"([2-9]\\d{6})$|1","345$1",,,,,[,,"345849\\d{4}",,,,"3458491234"],,"345",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KZ:[,[,,"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",,,,,,,[10,14],[5,6,7]],[,,"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",,,,"7123456789",,,[10],[5,6,7]],[,,"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",,,,"7710009998",,,[10]],[,,"8(?:00|108\\d{3})\\d{7}",,,,"8001234567"],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,"751\\d{7}",,,,"7511234567",,,[10]],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,,,,,,,,[-1]],,"33|7",[,,"751\\d{7}",,,,,,,[10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LA:[,[,,"[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",,,,,,,[8,9,10],[6]],[,,"(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",,,,"21212862",,,[8],[6]],[,,"(?:20(?:[2359]\\d|7[6-8]|88)|302\\d)\\d{6}",,,,"2023123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LA",856,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"30[013-9]\\d{6}",,,,"301234567",,,[9]],,,[,,,,,,,,,[-1]]],LB:[,[,,"[27-9]\\d{7}|[13-9]\\d{6}",,,,,,,[7,8]],[,,"7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}",,,,"1123456"],[,,"793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}",,,,"71123456"],[,,,,,,,,,[-1]],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,"80\\d{6}",,,,"80123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LC:[,[,,"(?:[58]\\d\\d|758|900)\\d{7}",,,,,,,[10],[7]],[,,"758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}",,,,"7584305678",,,,[7]],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}",,,,"7582845678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"LC",1,"011","1",,,"([2-8]\\d{6})$|1","758$1",,,,,[,,,,,,,,,[-1]],,"758",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LI:[,[,,"[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",,,,,,,[7,9]],[,,"(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",,,,"2345678",,,[7]],[,,"(?:6(?:(?:4[5-9]|5[0-469])\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",,,,"660234567"],[,,"8002[28]\\d\\d|80(?:05\\d|9)\\d{4}",,,,"8002222"],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",,,,"9002222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LI",423,"00","0",,,"(1001)|0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"870(?:28|87)\\d\\d",,,,"8702812",,,[7]],,,[,,"697(?:42|56|[78]\\d)\\d{4}",,,,"697861234",,,[9]]],LK:[,[,,"[1-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}",,,,"112345678",,,,[7]],[,,"7(?:[0-25-8]\\d|4[0-4])\\d{6}",,,,"712345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LK",94,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"1973\\d{5}",,,,"197312345"],,,[,,,,,,,,,[-1]]],LR:[,[,,"(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",,,,,,,[7,8,9]],[,,"2\\d{7}",,,,"21234567",,,[8]],[,,"(?:(?:(?:22|33)0|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",,,,"770123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"332(?:02|[34]\\d)\\d{4}",,,,"332021234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LR",231,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LS:[,[,,"(?:[256]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2\\d{7}",,,,"22123456"],[,,"[56]\\d{7}",,,,"50123456"],[,,"800[256]\\d{4}",,,,"80021234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LT:[,[,,"(?:[3469]\\d|52|[78]0)\\d{6}",,,,,,,[8]],[,,"(?:3[1478]|4[124-6]|52)\\d{6}",,,,"31234567"],[,,"6\\d{7}",,,,"61234567"],[,,"80[02]\\d{5}",,,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,"70[05]\\d{5}",,,,"70012345"],[,,"[89]01\\d{5}",,,,"80123456"],"LT",370,"00","8",,,"[08]",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",,1],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",,1],[,"(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",,1],[,"(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70[67]\\d{5}",,,,"70712345"],,,[,,,,,,,,,[-1]]],LU:[,[,,"35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",,,,,,,[4,5,6,7,8,9,10,11]],[,,"(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}",,,,"27123456"],[,,"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",,,,"628123456",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90[015]\\d{5}",,,,"90012345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,,,,,,,,[-1]],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})",,,,"20201234",,,[4,5,6,7,8,9,10]],"LU",352,"00",,,,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LV:[,[,,"(?:[268]\\d|90)\\d{6}",,,,,,,[8]],[,,"6\\d{7}",,,,"63123456"],[,,"23(?:23[0-57-9]|33[0238])\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[024-9]|3[0-24-9]))\\d{4}",,,,"21234567"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,"81\\d{6}",,,,"81123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LV",371,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LY:[,[,,"[2-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}",,,,"212345678",,,,[7]],[,,"9[1-6]\\d{7}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LY",218,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MA:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",,,,"520123456"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}",,,,"650123456"],[,,"80[0-7]\\d{6}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}",,,,"592401234"],"MA",212,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],[,"(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],[,"(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],[,"(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MC:[,[,,"(?:[3489]|6\\d)\\d{7}",,,,,,,[8,9]],[,,"(?:870|9[2-47-9]\\d)\\d{5}",,,,"99123456",,,[8]],[,,"4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}",,,,"612345678"],[,,"(?:800|90\\d)\\d{5}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MC",377,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["87"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"8[07]0\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MD:[,[,,"(?:[235-7]\\d|[89]0)\\d{6}",,,,,,,[8]],[,,"(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}",,,,"22212345"],[,,"562\\d{5}|(?:6\\d|7[16-9])\\d{6}",,,,"62112345"],[,,"800\\d{5}",,,,"80012345"],[,,"90[056]\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,,,,,,,,[-1]],[,,"3[08]\\d{6}",,,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"803\\d{5}",,,,"80312345"],,,[,,,,,,,,,[-1]]],ME:[,[,,"(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",,,,,,,[8,9],[6]],[,,"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",,,,"30234567",,,[8],[6]],[,,"6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",,,,"67622901",,,[8]],[,,"80(?:[0-2578]|9\\d)\\d{5}",,,,"80080002"],[,,"9(?:4[1568]|5[178])\\d{5}",,,,"94515151",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"78[1-49]\\d{5}",,,,"78108780",,,[8]],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"77[1-9]\\d{5}",,,,"77273012",,,[8]],,,[,,,,,,,,,[-1]]],MF:[,[,,"590\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:395|76[018])\\d|475[0-5])\\d{4}",,,,"976012345"],"MF",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MG:[,[,,"[23]\\d{8}",,,,,,,[9],[7]],[,,"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",,,,"202123456",,,,[7]],[,,"3[2-47-9]\\d{7}",,,,"321234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"22\\d{7}",,,,"221234567"],"MG",261,"00","0",,,"([24-9]\\d{6})$|0","20$1",,,[[,"(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MH:[,[,,"329\\d{4}|(?:[256]\\d|45)\\d{5}",,,,,,,[7]],[,,"(?:247|45[78]|528|625)\\d{4}",,,,"2471234"],[,,"(?:(?:23|54)5|329|45[356])\\d{4}",,,,"2351234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"635\\d{4}",,,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MK:[,[,,"[2-578]\\d{7}",,,,,,,[8],[6,7]],[,,"(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}",,,,"22012345",,,,[6,7]],[,,"7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|6[01]|7[01578])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}",,,,"72345678"],[,,"800\\d{5}",,,,"80012345"],[,,"5\\d{7}",,,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}",,,,"80123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MK",389,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ML:[,[,,"[24-9]\\d{7}",,,,,,,[8]],[,,"2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}",,,,"20212345"],[,,"2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[2-49])\\d{6}",,,,"65012345"],[,,"80\\d{6}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ML",223,"00",,,,,,,,[[,"(\\d{4})","$1",["67[057-9]|74[045]","67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[,,,,,,,,,[-1]],,,[,,"80\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MM:[,[,,"1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",,,,,,,[6,7,8,9,10],[5]],[,,"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[29]|62|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|[26]2|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:(?:3\\d|8[01459])\\d|4[67]0)))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",,,,"1234567",,,[6,7,8,9],[5]],[,,"(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",,,,"92123456",,,[7,8,9,10]],[,,"80080(?:0[1-9]|2\\d)\\d{3}",,,,"8008001234",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1333\\d{4}|[12]468\\d{4}",,,,"13331234",,,[8]],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],[,"(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],[,"(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MN:[,[,,"[12]\\d{7,9}|[5-9]\\d{7}",,,,,,,[8,9,10],[4,5,6]],[,,"[12]2[1-3]\\d{5,6}|(?:(?:[12](?:1|27)|5[368])\\d\\d|7(?:0(?:[0-5]\\d|7[078]|80)|128))\\d{4}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}",,,,"53123456",,,,[4,5,6]],[,,"(?:83[01]|92[039])\\d{5}|(?:5[05]|6[069]|8[015689]|9[013-9])\\d{6}",,,,"88123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"712[0-79]\\d{4}|7(?:1[013-9]|[25-9]\\d)\\d{5}",,,,"75123456",,,[8]],"MN",976,"001","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],[,"(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],[,"(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],[,"(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MO:[,[,,"0800\\d{3}|(?:28|[68]\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",,,,"28212345",,,[8]],[,,"6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",,,,"66123456",,,[8]],[,,"0800\\d{3}",,,,"0800501",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MO",853,"00",,,,,,,,[[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{4})(\\d{4})","$1 $2",["[268]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MP:[,[,,"[58]\\d{9}|(?:67|90)0\\d{7}",,,,,,,[10],[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MP",1,"011","1",,,"([2-9]\\d{6})$|1","670$1",,1,,,[,,,,,,,,,[-1]],,"670",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MQ:[,[,,"596\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"596(?:[03-7]\\d|10|2[7-9]|8[0-39]|9[04-9])\\d{4}",,,,"596301234"],[,,"69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}",,,,"696201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:397[0-2]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}",,,,"976612345"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MR:[,[,,"(?:[2-4]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"(?:25[08]|35\\d|45[1-7])\\d{5}",,,,"35123456"],[,,"[2-4][0-46-9]\\d{6}",,,,"22123456"],[,,"800\\d{5}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MR",222,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MS:[,[,,"(?:[58]\\d\\d|664|900)\\d{7}",,,,,,,[10],[7]],[,,"6644(?:1[0-3]|91)\\d{4}",,,,"6644912345",,,,[7]],[,,"664(?:3(?:49|9[1-6])|49[2-6])\\d{4}",,,,"6644923456",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MS",1,"011","1",,,"([34]\\d{6})$|1","664$1",,,,,[,,,,,,,,,[-1]],,"664",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MT:[,[,,"3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}",,,,"21001234"],[,,"(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}",,,,"96961234"],[,,"800(?:02|[3467]\\d)\\d{3}",,,,"80071234"],[,,"5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}",,,,"50037123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3550\\d{4}",,,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],,[,,"7117\\d{4}",,,,"71171234"],,,[,,,,,,,,,[-1]],[,,"501\\d{5}",,,,"50112345"],,,[,,,,,,,,,[-1]]],MU:[,[,,"(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",,,,,,,[7,8,10]],[,,"(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-8])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",,,,"54480123",,,[7,8]],[,,"5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-3]|3[013]))\\d{5}",,,,"52512345",,,[8]],[,,"802\\d{7}|80[0-2]\\d{4}",,,,"8001234",,,[7,10]],[,,"30\\d{5}",,,,"3012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3(?:20|9\\d)\\d{4}",,,,"3201234",,,[7]],"MU",230,"0(?:0|[24-7]0|3[03])",,,,,,"020",,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[57]"]],[,"(\\d{5})(\\d{5})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MV:[,[,,"(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",,,,,,,[7,10]],[,,"(?:3(?:0[0-3]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",,,,"6701234",,,[7]],[,,"(?:46[46]|[79]\\d\\d)\\d{4}",,,,"7712345",,,[7]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[34679]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"4(?:0[01]|50)\\d{4}",,,,"4001234",,,[7]],,,[,,,,,,,,,[-1]]],MW:[,[,,"(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",,,,,,,[7,9]],[,,"(?:1[2-9]|2[12]\\d\\d)\\d{5}",,,,"1234567"],[,,"111\\d{6}|(?:31|77|[89][89])\\d{7}",,,,"991234567",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MW",265,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MX:[,[,,"1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",,,,,,,[10,11],[7,8]],[,,"657[12]\\d{6}|(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"2001234567",,,[10],[7,8]],[,,"657[12]\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"12221234567",,,,[7,8]],[,,"8(?:00|88)\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,"300\\d{7}",,,,"3001234567",,,[10]],[,,"500\\d{7}",,,,"5001234567",,,[10]],[,,,,,,,,,[-1]],"MX",52,"0[09]","01",,,"0(?:[12]|4[45])|1",,"00",,[[,"(\\d{5})","$1",["53"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MY:[,[,,"1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",,,,"323856789",,,[8,9],[6,7]],[,,"1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-7]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",,,,"123456789",,,[9,10]],[,,"1[378]00\\d{6}",,,,"1300123456",,,[10]],[,,"1600\\d{6}",,,,"1600123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",,,,"1546012345",,,[10]],"MY",60,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MZ:[,[,,"(?:2|8\\d)\\d{7}",,,,,,,[8,9]],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",,,,"21123456",,,[8]],[,,"8[2-79]\\d{7}",,,,"821234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MZ",258,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NA:[,[,,"[68]\\d{7,8}",,,,,,,[8,9]],[,,"64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}",,,,"61221234"],[,,"(?:60|8[1245])\\d{7}",,,,"811234567",,,[9]],[,,"80\\d{7}",,,,"800123456",,,[9]],[,,"8701\\d{5}",,,,"870123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8(?:3\\d\\d|86)\\d{5}",,,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NC:[,[,,"(?:050|[2-57-9]\\d\\d)\\d{3}",,,,,,,[6]],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}",,,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}",,,,"751234"],[,,"050\\d{3}",,,,"050012"],[,,"36\\d{4}",,,,"366711"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NC",687,"00",,,,,,,,[[,"(\\d{3})","$1",["5[6-8]"]],[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NE:[,[,,"[027-9]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}",,,,"20201234"],[,,"(?:23|7[047]|[89]\\d)\\d{6}",,,,"93123456"],[,,"08\\d{6}",,,,"08123456"],[,,"09\\d{6}",,,,"09123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NE",227,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NF:[,[,,"[13]\\d{5}",,,,,,,[6],[5]],[,,"(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}",,,,"106609",,,,[5]],[,,"(?:14|3[58])\\d{4}",,,,"381234",,,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NF",672,"00",,,,"([0-258]\\d{4})$","3$1",,,[[,"(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],[,"(\\d)(\\d{5})","$1 $2",["[13]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NG:[,[,,"(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",,,,,,,[7,8,10,11,12,13,14],[5,6]],[,,"(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",,,,"18040123",,,[7,8],[5,6]],[,,"(?:702[0-24-9]|819[01])\\d{6}|(?:70[13-689]|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-356]))\\d{7}",,,,"8021234567",,,[10]],[,,"800\\d{7,11}",,,,"80017591759",,,[10,11,12,13,14]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NG",234,"009","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],[,"(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"700\\d{7,11}",,,,"7001234567",,,[10,11,12,13,14]],,,[,,,,,,,,,[-1]]],NI:[,[,,"(?:1800|[25-8]\\d{3})\\d{4}",,,,,,,[8]],[,,"2\\d{7}",,,,"21234567"],[,,"(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}",,,,"81234567"],[,,"1800\\d{4}",,,,"18001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NL:[,[,,"(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",,,,,,,[5,6,7,8,9,10,11]],[,,"(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",,,,"101234567",,,[9]],[,,"(?:6[1-58]|970\\d)\\d{7}",,,,"612345678",,,[9,11]],[,,"800\\d{4,7}",,,,"8001234",,,[7,8,9,10]],[,,"90[069]\\d{4,7}",,,,"9061234",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:85|91)\\d{7}",,,,"851234567",,,[9]],"NL",31,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["1[238]|[34]"]],[,"(\\d{2})(\\d{3,4})","$1 $2",["14"]],[,"(\\d{6})","$1",["1"]],[,"(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],[,"(\\d)(\\d{8})","$1 $2",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],[[,"(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],[,"(\\d)(\\d{8})","$1 $2",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],[,,"66\\d{7}",,,,"662345678",,,[9]],,,[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)\\d",,,,,,,[5,6]],[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",,,,"14020",,,[5,6,9]],,,[,,,,,,,,,[-1]]],NO:[,[,,"(?:0|[2-9]\\d{3})\\d{4}",,,,,,,[5,8]],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",,,,"21234567",,,[8]],[,,"(?:4[015-8]|9\\d)\\d{6}",,,,"40612345",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"NO",47,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],,[,,,,,,,,,[-1]],1,"[02-689]|7[0-8]",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],NP:[,[,,"(?:1\\d|9)\\d{9}|[1-9]\\d{7}",,,,,,,[8,10,11],[6,7]],[,,"(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",,,,"14567890",,,[8],[6,7]],[,,"9(?:6[0-3]|7[024-6]|8[0-24-68])\\d{7}",,,,"9841234567",,,[10]],[,,"1(?:66001|800\\d\\d)\\d{5}",,,,"16600101234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NP",977,"00","0",,,"0",,,,[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]],[,"(\\d{4})(\\d{2})(\\d{5})","$1-$2-$3",["1"]]],[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NR:[,[,,"(?:444|(?:55|8\\d)\\d|666)\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441234"],[,,"(?:55[3-9]|666|8\\d\\d)\\d{4}",,,,"5551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NU:[,[,,"(?:[4-7]|888\\d)\\d{3}",,,,,,,[4,7]],[,,"[47]\\d{3}",,,,"7012",,,[4]],[,,"(?:[56]|888[1-9])\\d{3}",,,,"8884012"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NU",683,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NZ:[,[,,"[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",,,,,,,[5,6,7,8,9,10]],[,,"24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",,,,"32345678",,,[8],[7]],[,,"2(?:[0-27-9]\\d|6)\\d{6,7}|2(?:1\\d|75)\\d{5}",,,,"211234567",,,[8,9,10]],[,,"508\\d{6,7}|80\\d{6,8}",,,,"800123456",,,[8,9,10]],[,,"(?:1[13-57-9]\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",,,,"900123456",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,"70\\d{7}",,,,"701234567",,,[9]],[,,,,,,,,,[-1]],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"8(?:1[16-9]|22|3\\d|4[045]|5[459]|6[235-9]|7[0-3579]|90)\\d{2,7}",,,,"83012378"],,,[,,,,,,,,,[-1]]],OM:[,[,,"(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",,,,,,,[7,8,9]],[,,"2[1-6]\\d{6}",,,,"23123456",,,[8]],[,,"1505\\d{4}|(?:7(?:[1289]\\d|6[89]|7[0-5])|9(?:0[1-9]|[1-9]\\d))\\d{5}",,,,"92123456",,,[8]],[,,"8007\\d{4,5}|(?:500|800[05])\\d{4}",,,,"80071234"],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"OM",968,"00",,,,,,,,[[,"(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],[,"(\\d{2})(\\d{6})","$1 $2",["2"]],[,"(\\d{4})(\\d{4})","$1 $2",["[179]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PA:[,[,,"(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",,,,,,,[7,8,10,11]],[,,"(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",,,,"2001234",,,[7]],[,,"(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",,,,"61234567",,,[7,8]],[,,"800\\d{4,5}|(?:00800|800\\d)\\d{6}",,,,"8001234"],[,,"(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",,,,"8601234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PA",507,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[68]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PE:[,[,,"(?:[14-8]|9\\d)\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",,,,"11234567",,,[8],[6,7]],[,,"9\\d{8}",,,,"912345678",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"805\\d{5}",,,,"80512345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,"80[24]\\d{5}",,,,"80212345",,,[8]],[,,,,,,,,,[-1]],"PE",51,"00|19(?:1[124]|77|90)00","0"," Anexo ",,"0",,"00",,[[,"(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],[,"(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PF:[,[,,"4\\d{5}(?:\\d{2})?|8\\d{7,8}",,,,,,,[6,8,9]],[,,"4(?:0[4-689]|9[4-68])\\d{5}",,,,"40412345",,,[8]],[,,"8[7-9]\\d{6}",,,,"87123456",,,[8]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"499\\d{5}",,,,"49901234",,,[8]],"PF",689,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,"44\\d{4}",,,,,,,[6]],[,,"44\\d{4}",,,,"440123",,,[6]],,,[,,,,,,,,,[-1]]],PG:[,[,,"(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",,,,,,,[7,8]],[,,"(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",,,,"3123456",,,[7]],[,,"(?:7\\d|8[128])\\d{6}",,,,"70123456",,,[8]],[,,"180\\d{4}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"2(?:0[0-57]|7[568])\\d{4}",,,,"2751234",,,[7]],"PG",675,"00|140[1-3]",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],[,"(\\d{4})(\\d{4})","$1 $2",["[78]"]]],,[,,"27[01]\\d{4}",,,,"2700123",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PH:[,[,,"(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",,,,,,,[6,8,9,10,11,12,13],[4,5,7]],[,,"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",,,,"232345678",,,[6,8,9,10],[4,5,7]],[,,"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",,,,"9051234567",,,[10]],[,,"1800\\d{7,9}",,,,"180012345678",,,[11,12,13]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PH",63,"00","0",,,"0",,,,[[,"(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],[,"(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],[,"(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PK:[,[,,"122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",,,,,,,[8,9,10,11,12],[5,6,7]],[,,"(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",,,,"2123456789",,,[9,10],[5,6,7,8]],[,,"3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}",,,,"3012345678",,,[10]],[,,"800\\d{5}(?:\\d{3})?",,,,"80012345",,,[8,11]],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,"122\\d{6}",,,,"122044444",,,[9]],[,,,,,,,,,[-1]],"PK",92,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["1"]],[,"(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],[,"(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],[,"(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",,,,"21111825888",,,[11,12]],,,[,,,,,,,,,[-1]]],PL:[,[,,"(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",,,,,,,[6,7,8,9,10]],[,,"47\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",,,,"123456789",,,[7,9]],[,,"21(?:1(?:[145]\\d|3[1-5])|2\\d\\d)\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",,,,"512345678",,,[9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"70[01346-8]\\d{6}",,,,"701234567",,,[9]],[,,"801\\d{6}",,,,"801234567",,,[9]],[,,,,,,,,,[-1]],[,,"39\\d{7}",,,,"391234567",,,[9]],"PL",48,"00",,,,,,,,[[,"(\\d{5})","$1",["19"]],[,"(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],,[,,"64\\d{4,7}",,,,"641234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]],[,,"804\\d{6}",,,,"804123456",,,[9]],,,[,,,,,,,,,[-1]]],PM:[,[,,"[45]\\d{5}|(?:708|80\\d)\\d{6}",,,,,,,[6,9]],[,,"(?:4[1-35-7]|5[01])\\d{4}",,,,"430123",,,[6]],[,,"(?:4[02-4]|5[056]|708[45][0-5])\\d{4}",,,,"551234"],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PM",508,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PR:[,[,,"(?:[589]\\d\\d|787)\\d{7}",,,,,,,[10],[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"PR",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,"787|939",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PS:[,[,,"[2489]2\\d{6}|(?:1\\d|5)\\d{8}",,,,,,,[8,9,10],[7]],[,,"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",,,,"22234567",,,[8],[7]],[,,"5[69]\\d{7}",,,,"599123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,,,,,,,,[-1]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PS",970,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PT:[,[,,"1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",,,,,,,[9]],[,,"2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}",,,,"212345678"],[,,"6(?:[06]92(?:30|9\\d)|[35]92(?:3[03]|9\\d))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}",,,,"912345678"],[,,"80[02]\\d{6}",,,,"800123456"],[,,"(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}",,,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}",,,,"808123456"],[,,"884[0-4689]\\d{5}",,,,"884123456"],[,,"30\\d{7}",,,,"301234567"],"PT",351,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],,[,,"6222\\d{5}",,,,"622212345"],,,[,,,,,,,,,[-1]],[,,"70(?:38[01]|596|(?:7\\d|8[17])\\d)\\d{4}",,,,"707123456"],,,[,,"600\\d{6}|6[06]9233\\d{3}",,,,"600110000"]],PW:[,[,,"(?:[24-8]\\d\\d|345|900)\\d{4}",,,,,,,[7]],[,,"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}",,,,"2771234"],[,,"(?:(?:46|83)[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}",,,,"6201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PY:[,[,,"59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",,,,"212345678",,,[7,8,9],[5,6]],[,,"9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",,,,"961456789",,,[9]],[,,"9800\\d{5,7}",,,,"98000123456",,,[9,10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8700[0-4]\\d{4}",,,,"870012345",,,[9]],"PY",595,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],[,"(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],[,"(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],[,"(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"[2-9]0\\d{4,7}",,,,"201234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]]],QA:[,[,,"800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",,,,,,,[7,8,9,11]],[,,"4(?:1111|2022)\\d{3}|4(?:[04]\\d\\d|14[0-6]|999)\\d{4}",,,,"44123456",,,[8]],[,,"[35-7]\\d{7}",,,,"33123456",,,[8]],[,,"800\\d{4}|(?:0080[01]|800)\\d{6}",,,,"8001234",,,[7,9,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"QA",974,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],[,"(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],,[,,"2[16]\\d{5}",,,,"2123456",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RE:[,[,,"(?:26|[689]\\d)\\d{7}",,,,,,,[9]],[,,"26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}",,,,"262161234"],[,,"69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}",,,,"692123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89[1-37-9]\\d{6}",,,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}",,,,"939901234"],"RE",262,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RO:[,[,,"(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",,,,,,,[6,9]],[,,"[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d",,,,"211234567"],[,,"7020\\d{5}|(?:62\\d|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}",,,,"712034567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[0136]\\d{6}",,,,"900123456",,,[9]],[,,"801\\d{6}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],[,"(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:37\\d|80[578])\\d{6}",,,,"372123456",,,[9]],,,[,,,,,,,,,[-1]]],RS:[,[,,"38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",,,,,,,[6,7,8,9,10,11,12],[4,5]],[,,"(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",,,,"10234567",,,[7,8,9,10,11,12],[4,5,6]],[,,"6(?:[0-689]|7\\d)\\d{6,7}",,,,"601234567",,,[8,9,10]],[,,"800\\d{3,9}",,,,"80012345"],[,,"(?:78\\d|90[0169])\\d{3,7}",,,,"90012345",,,[6,7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RS",381,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],[,"(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7[06]\\d{4,10}",,,,"700123456"],,,[,,,,,,,,,[-1]]],RU:[,[,,"8\\d{13}|[347-9]\\d{9}",,,,,,,[10,14],[7]],[,,"(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\d{7}",,,,"3011234567",,,[10],[7]],[,,"9\\d{9}",,,,"9123456789",,,[10]],[,,"8(?:0[04]|108\\d{3})\\d{7}",,,,"8001234567"],[,,"80[39]\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,,,,,,,,[-1]],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[0-79]"]],[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",,1],[,"(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",,1],[,"(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],[[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",,1],[,"(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",,1],[,"(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],[,,,,,,,,,[-1]],1,"3[04-689]|[489]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RW:[,[,,"(?:06|[27]\\d\\d|[89]00)\\d{6}",,,,,,,[8,9]],[,,"(?:06|2[23568]\\d)\\d{6}",,,,"250123456"],[,,"7[237-9]\\d{7}",,,,"720123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900\\d{6}",,,,"900123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RW",250,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SA:[,[,,"92\\d{7}|(?:[15]|8\\d)\\d{8}",,,,,,,[9,10],[7]],[,,"1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",,,,"112345678",,,[9],[7]],[,,"579[01]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}",,,,"512345678",,,[9]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"925\\d{6}",,,,"925012345",,,[9]],[,,"920\\d{6}",,,,"920012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SA",966,"00","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["9"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"811\\d{7}",,,,"8110123456",,,[10]],,,[,,,,,,,,,[-1]]],SB:[,[,,"(?:[1-6]|[7-9]\\d\\d)\\d{4}",,,,,,,[5,7]],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",,,,"40123",,,[5]],[,,"48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}",,,,"7421234"],[,,"1[38]\\d{3}",,,,"18123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[12]\\d{3}",,,,"51123",,,[5]],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SC:[,[,,"800\\d{4}|(?:[249]\\d|64)\\d{5}",,,,,,,[7]],[,,"4[2-46]\\d{5}",,,,"4217123"],[,,"2[125-8]\\d{5}",,,,"2510123"],[,,"800[08]\\d{3}",,,,"8000000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"971\\d{4}|(?:64|95)\\d{5}",,,,"6412345"],"SC",248,"010|0[0-2]",,,,,,"00",,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SD:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1(?:5\\d|8[35-7])\\d{6}",,,,"153123456"],[,,"(?:1[0-2]|9[0-3569])\\d{7}",,,,"911231234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SE:[,[,,"(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",,,,,,,[6,7,8,9,10,12]],[,,"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",,,,"8123456",,,[7,8,9]],[,,"7[02369]\\d{7}",,,,"701234567",,,[9]],[,,"20\\d{4,7}",,,,"20123456",,,[6,7,8,9]],[,,"649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",,,,"9001234567",,,[7,8,9,10]],[,,"77[0-7]\\d{6}",,,,"771234567",,,[9]],[,,"75[1-8]\\d{6}",,,,"751234567",,,[9]],[,,,,,,,,,[-1]],"SE",46,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1"],[,"(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1"],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1"],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1"],[,"(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1"]],[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(\\d{3})(\\d{4})","$1 $2",["9(?:00|39|44|9)"]],[,"(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"]],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1 $2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"]],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1 $2 $3",["9(?:00|39|44)"]],[,"(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["10|7"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],[,,"74[02-9]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"10[1-8]\\d{6}",,,,"102345678",,,[9]],,,[,,"(?:25[245]|67[3-68])\\d{9}",,,,"254123456789",,,[12]]],SG:[,[,,"(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",,,,,,,[8,10,11]],[,,"662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",,,,"61234567",,,[8]],[,,"8(?:08[013]|95[0-2])\\d{4}|(?:8(?:0[1-7]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",,,,"81234567",,,[8]],[,,"(?:18|8)00\\d{7}",,,,"18001234567",,,[10,11]],[,,"1900\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[12]\\d|666)\\d{5}",,,,"31234567",,,[8]],"SG",65,"0[0-3]\\d",,,,,,,,[[,"(\\d{4,5})","$1",["1[013-9]|77","1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7000\\d{7}",,,,"70001234567",,,[11]],,,[,,,,,,,,,[-1]]],SH:[,[,,"(?:[256]\\d|8)\\d{3}",,,,,,,[4,5]],[,,"2(?:[0-57-9]\\d|6[4-9])\\d\\d",,,,"22158"],[,,"[56]\\d{4}",,,,"51234",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"262\\d\\d",,,,"26212",,,[5]],"SH",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],1,"[256]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SI:[,[,,"[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",,,,,,,[5,6,7,8]],[,,"(?:[1-357][2-8]|4[24-8])\\d{6}",,,,"12345678",,,[8],[7]],[,,"65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",,,,"31234567",,,[8]],[,,"80\\d{4,6}",,,,"80123456",,,[6,7,8]],[,,"89[1-3]\\d{2,5}|90\\d{4,6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",,,,"59012345",,,[8]],"SI",386,"00|10(?:22|66|88|99)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],[,"(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SJ:[,[,,"0\\d{4}|(?:[489]\\d|79)\\d{6}",,,,,,,[5,8]],[,,"79\\d{6}",,,,"79123456",,,[8]],[,,"(?:4[015-8]|9\\d)\\d{6}",,,,"41234567",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"SJ",47,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"79",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],SK:[,[,,"[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",,,,,,,[6,7,9]],[,,"(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d",,,,"221234567"],[,,"909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",,,,"912123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:00|[78]\\d)\\d{6}",,,,"900123456",,,[9]],[,,"8[5-9]\\d{7}",,,,"850123456",,,[9]],[,,,,,,,,,[-1]],[,,"6(?:02|5[0-4]|9[0-6])\\d{6}",,,,"690123456",,,[9]],"SK",421,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],[,"(\\d{4})(\\d{3})","$1 $2",["909","9090"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],[[,"(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],[,,"9090\\d{3}",,,,"9090123",,,[7]],,,[,,"9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}",,,,,,,[7,9]],[,,"96\\d{7}",,,,"961234567",,,[9]],,,[,,,,,,,,,[-1]]],SL:[,[,,"(?:[237-9]\\d|66)\\d{6}",,,,,,,[8],[6]],[,,"22[2-4][2-9]\\d{4}",,,,"22221234",,,,[6]],[,,"(?:25|3[0-5]|66|7[2-9]|8[08]|9[09])\\d{6}",,,,"25123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SM:[,[,,"(?:0549|[5-7]\\d)\\d{6}",,,,,,,[8,10],[6]],[,,"0549(?:8[0157-9]|9\\d)\\d{4}",,,,"0549886377",,,[10],[6]],[,,"6[16]\\d{6}",,,,"66661212",,,[8]],[,,,,,,,,,[-1]],[,,"7[178]\\d{6}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[158]\\d{6}",,,,"58001110",,,[8]],"SM",378,"00",,,,"([89]\\d{5})$","0549$1",,,[[,"(\\d{6})","$1",["[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SN:[,[,,"(?:[378]\\d|93)\\d{7}",,,,,,,[9]],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}",,,,"301012345"],[,,"7(?:(?:[06-8]\\d|21|90)\\d|5(?:01|[19]0|25|[38]3|[4-7]\\d))\\d{5}",,,,"701234567"],[,,"800\\d{6}",,,,"800123456"],[,,"88[4689]\\d{6}",,,,"884123456"],[,,"81[02468]\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}",,,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SO:[,[,,"[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",,,,,,,[6,7,8,9]],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",,,,"4012345",,,[6,7]],[,,"(?:(?:15|(?:3[59]|4[89]|6\\d|7[79]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",,,,"71123456",,,[7,8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SO",252,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4})","$1 $2",["8[125]"]],[,"(\\d{6})","$1",["[134]"]],[,"(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],[,"(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],[,"(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SR:[,[,,"(?:[2-5]|68|[78]\\d)\\d{5}",,,,,,,[6,7]],[,,"(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",,,,"211234"],[,,"(?:7[124-7]|8[124-9])\\d{5}",,,,"7412345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"56\\d{4}",,,,"561234",,,[6]],"SR",597,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],[,"(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SS:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1[89]\\d{7}",,,,"181234567"],[,,"(?:12|9[1257-9])\\d{7}",,,,"977123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ST:[,[,,"(?:22|9\\d)\\d{5}",,,,,,,[7]],[,,"22\\d{5}",,,,"2221234"],[,,"900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}",,,,"9812345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SV:[,[,,"[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",,,,,,,[7,8,11]],[,,"2(?:79(?:0[0347-9]|[1-9]\\d)|89(?:0[024589]|[1-9]\\d))\\d{3}|2(?:[1-69]\\d|[78][0-8])\\d{5}",,,,"21234567",,,[8]],[,,"[67]\\d{7}",,,,"70123456",,,[8]],[,,"800\\d{4}(?:\\d{4})?",,,,"8001234",,,[7,11]],[,,"900\\d{4}(?:\\d{4})?",,,,"9001234",,,[7,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SV",503,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[89]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[267]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SX:[,[,,"7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}",,,,"7215425678",,,,[7]],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}",,,,"7215205678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"SX",1,"011","1",,,"(5\\d{6})$|1","721$1",,,,,[,,,,,,,,,[-1]],,"721",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SY:[,[,,"[1-39]\\d{8}|[1-5]\\d{7}",,,,,,,[8,9],[6,7]],[,,"21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}",,,,"112345678",,,,[6,7]],[,,"9[1-689]\\d{7}",,,,"944567890",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SY",963,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SZ:[,[,,"0800\\d{4}|(?:[237]\\d|900)\\d{6}",,,,,,,[8,9]],[,,"[23][2-5]\\d{6}",,,,"22171234",,,[8]],[,,"7[6-9]\\d{6}",,,,"76123456",,,[8]],[,,"0800\\d{4}",,,,"08001234",,,[8]],[,,"900\\d{6}",,,,"900012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70\\d{6}",,,,"70012345",,,[8]],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[0237]"]],[,"(\\d{5})(\\d{4})","$1 $2",["9"]]],,[,,,,,,,,,[-1]],,,[,,"0800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TA:[,[,,"8\\d{3}",,,,,,,[4]],[,,"8\\d{3}",,,,"8999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TA",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TC:[,[,,"(?:[58]\\d\\d|649|900)\\d{7}",,,,,,,[10],[7]],[,,"649(?:266|712|9(?:4\\d|50))\\d{4}",,,,"6497121234",,,,[7]],[,,"649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}",,,,"6492311234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"649(?:71[01]|966)\\d{4}",,,,"6497101234",,,,[7]],"TC",1,"011","1",,,"([2-479]\\d{6})$|1","649$1",,,,,[,,,,,,,,,[-1]],,"649",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TD:[,[,,"(?:22|[69]\\d|77)\\d{6}",,,,,,,[8]],[,,"22(?:[37-9]0|5[0-5]|6[89])\\d{4}",,,,"22501234"],[,,"(?:6[0235689]|77|9\\d)\\d{6}",,,,"63012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TG:[,[,,"[279]\\d{7}",,,,,,,[8]],[,,"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",,,,"22212345"],[,,"(?:7[019]|9[0-36-9])\\d{6}",,,,"90112345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TH:[,[,,"(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",,,,,,,[8,9,10,13]],[,,"(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",,,,"21234567",,,[8]],[,,"671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",,,,"812345678",,,[9]],[,,"(?:001800\\d|1800)\\d{6}",,,,"1800123456",,,[10,13]],[,,"1900\\d{6}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"6[08]\\d{7}",,,,"601234567",,,[9]],"TH",66,"00[1-9]","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TJ:[,[,,"[0-57-9]\\d{8}",,,,,,,[9],[3,5,6,7]],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",,,,"372123456",,,,[3,5,6,7]],[,,"(?:4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[0178]|8[078]|9\\d)\\d{7}",,,,"917123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TJ",992,"810",,,,,,"8~10",,[[,"(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TK:[,[,,"[2-47]\\d{3,6}",,,,,,,[4,5,6,7]],[,,"(?:2[2-4]|[34]\\d)\\d{2,5}",,,,"3101"],[,,"7[2-4]\\d{2,5}",,,,"7290"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TK",690,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TL:[,[,,"7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",,,,,,,[7,8]],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",,,,"2112345",,,[7]],[,,"7[2-8]\\d{6}",,,,"77212345",,,[8]],[,,"80\\d{5}",,,,"8012345",,,[7]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,"70\\d{5}",,,,"7012345",,,[7]],[,,,,,,,,,[-1]],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],[,"(\\d{4})(\\d{4})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TM:[,[,,"[1-6]\\d{7}",,,,,,,[8]],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}",,,,"12345678"],[,,"6\\d{7}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],[,"(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TN:[,[,,"[2-57-9]\\d{7}",,,,,,,[8]],[,,"81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}",,,,"30010123"],[,,"3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-8])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}",,,,"20123456"],[,,"8010\\d{4}",,,,"80101234"],[,,"88\\d{6}",,,,"88123456"],[,,"8[12]10\\d{4}",,,,"81101234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TO:[,[,,"(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",,,,,,,[5,7]],[,,"(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",,,,"20123",,,[5]],[,,"(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",,,,"7715123",,,[7]],[,,"0800\\d{3}",,,,"0800222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"55[0-37-9]\\d{4}",,,,"5510123",,,[7]],"TO",676,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TR:[,[,,"4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",,,,,,,[7,10,12,13]],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",,,,"2123456789",,,[10]],[,,"561(?:011|61\\d)\\d{4}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",,,,"5012345678",,,[10]],[,,"8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",,,,"8001234567",,,[10,12,13]],[,,"(?:8[89]8|900)\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,"592(?:21[12]|461)\\d{4}",,,,"5922121234",,,[10]],[,,"850\\d{7}",,,,"8500123456",,,[10]],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d)(\\d{3})","$1 $2 $3",["444"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",,1],[,"(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",,1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",,1],[,"(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",,1]],[,,"512\\d{7}",,,,"5123456789",,,[10]],,,[,,"(?:444|811\\d{3})\\d{4}",,,,,,,[7,10]],[,,"444\\d{4}",,,,"4441444",,,[7]],,,[,,,,,,,,,[-1]]],TT:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}",,,,"8682211234",,,,[7]],[,,"868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}",,,,"8682911234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"TT",1,"011","1",,,"([2-46-8]\\d{6})$|1","868$1",,,,,[,,,,,,,,,[-1]],,"868",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"868619\\d{4}",,,,"8686191234",,,,[7]]],TV:[,[,,"(?:2|7\\d\\d|90)\\d{4}",,,,,,,[5,6,7]],[,,"2[02-9]\\d{3}",,,,"20123",,,[5]],[,,"(?:7[01]\\d|90)\\d{4}",,,,"901234",,,[6,7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TV",688,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2"]],[,"(\\d{2})(\\d{4})","$1 $2",["90"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TW:[,[,,"[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",,,,,,,[7,8,9,10,11]],[,,"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",,,,"221234567",,,[8,9]],[,,"(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",,,,"912345678",,,[9]],[,,"80[0-79]\\d{6}|800\\d{5}",,,,"800123456",,,[8,9]],[,,"20(?:[013-9]\\d\\d|2)\\d{4}",,,,"203123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"99\\d{7}",,,,"990123456",,,[9]],[,,"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",,,,"7012345678",,,[10,11]],"TW",886,"0(?:0[25-79]|19)","0","#",,"0",,,,[[,"(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],[,"(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"50[0-46-9]\\d{6}",,,,"500123456",,,[9]],,,[,,,,,,,,,[-1]]],TZ:[,[,,"(?:[25-8]\\d|41|90)\\d{7}",,,,,,,[9]],[,,"2[2-8]\\d{7}",,,,"222345678"],[,,"77[2-9]\\d{6}|(?:6[125-9]|7[13-689])\\d{7}",,,,"621234567"],[,,"80[08]\\d{6}",,,,"800123456"],[,,"90\\d{7}",,,,"900123456"],[,,"8(?:40|6[01])\\d{6}",,,,"840123456"],[,,,,,,,,,[-1]],[,,"41\\d{7}",,,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["5"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UA:[,[,,"[89]\\d{9}|[3-9]\\d{8}",,,,,,,[9,10],[5,6,7]],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",,,,"311234567",,,[9],[5,6,7]],[,,"(?:39|50|6[36-8]|7[1-3]|9[1-9])\\d{7}",,,,"501234567",,,[9]],[,,"800[1-8]\\d{5,6}",,,,"800123456"],[,,"900[239]\\d{5,6}",,,,"900212345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"89[1-579]\\d{6}",,,,"891234567",,,[9]],"UA",380,"00","0",,,"0",,"0~0",,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UG:[,[,,"800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",,,,,,,[9],[5,6,7]],[,,"20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",,,,"312345678",,,,[5,6,7]],[,,"726[01]\\d{5}|7(?:[015-8]\\d|20|36|4[0-4]|9[89])\\d{6}",,,,"712345678"],[,,"800[1-3]\\d{5}",,,,"800123456"],[,,"90[1-3]\\d{6}",,,,"901123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],US:[,[,,"[2-9]\\d{9}|3\\d{6}",,,,,,,[10],[7]],[,,"(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",["310"],,,1],[,"(\\d{3})(\\d{4})","$1-$2",["[24-9]|3(?:[02-9]|1[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],,,1]],[[,"(\\d{3})(\\d{4})","$1-$2",["310"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[2-9]"]]],[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UY:[,[,,"0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",,,,,,,[6,7,8,9,10,11,12,13]],[,,"(?:1(?:770|9(?:20|87))|(?:2\\d|4[2-7])\\d\\d)\\d{4}",,,,"21231234",,,[8],[7]],[,,"9[1-9]\\d{6}",,,,"94231234",,,[8]],[,,"0004\\d{2,9}|(?:405|80[05])\\d{4}",,,,"8001234"],[,,"90[0-8]\\d{4}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UY",598,"0(?:0|1[3-9]\\d)","0"," int. ",,"0",,"00",,[[,"(\\d{3})(\\d{3,4})","$1 $2",["0"]],[,"(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[124]"]],[,"(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UZ:[,[,,"(?:20|33|[5-79]\\d|88)\\d{7}",,,,,,,[9]],[,,"(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|[68]\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}",,,,"669050123"],[,,"(?:(?:[25]0|33|88|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UZ",998,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VA:[,[,,"0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",,,,,,,[6,7,8,9,10,11,12]],[,,"06698\\d{1,6}",,,,"0669812345",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[6,9]],[,,"(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"VA",39,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"06698",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],VC:[,[,,"(?:[58]\\d\\d|784|900)\\d{7}",,,,,,,[10],[7]],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}",,,,"7842661234",,,,[7]],[,,"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}",,,,"7844301234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"78451[0-2]\\d{4}",,,,"7845101234",,,,[7]],"VC",1,"011","1",,,"([2-7]\\d{6})$|1","784$1",,,,,[,,,,,,,,,[-1]],,"784",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VE:[,[,,"[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}",,,,"2121234567",,,,[7]],[,,"4(?:1[24-8]|2[46])\\d{7}",,,,"4121234567"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[01]\\d{7}",,,,"9001234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1","$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"501\\d{7}",,,,"5010123456",,,,[7]],,,[,,,,,,,,,[-1]]],VG:[,[,,"(?:284|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}",,,,"2842291234",,,,[7]],[,,"284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}",,,,"2843001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VG",1,"011","1",,,"([2-578]\\d{6})$|1","284$1",,,,,[,,,,,,,,,[-1]],,"284",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VI:[,[,,"[58]\\d{9}|(?:34|90)0\\d{7}",,,,,,,[10],[7]],[,,"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VI",1,"011","1",,,"([2-9]\\d{6})$|1","340$1",,1,,,[,,,,,,,,,[-1]],,"340",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VN:[,[,,"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",,,,,,,[7,8,9,10]],[,,"2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])\\d{7}",,,,"2101234567",,,[10]],[,,"(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[1689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",,,,"912345678",,,[9]],[,,"1800\\d{4,6}|12(?:0[13]|28)\\d{4}",,,,"1800123456",,,[8,9,10]],[,,"1900\\d{4,6}",,,,"1900123456",,,[8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"672\\d{6}",,,,"672012345",,,[9]],"VN",84,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[17]99"],"0$1",,1],[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{3})(\\d{4,5})","$1 $2",["69"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",,1],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",,1]],[[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",,1],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"[17]99\\d{4}|69\\d{5,6}",,,,,,,[7,8]],[,,"(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",,,,"1992000",,,[7,8]],,,[,,,,,,,,,[-1]]],VU:[,[,,"[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",,,,,,,[5,7]],[,,"(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",,,,"22123",,,[5]],[,,"(?:[58]\\d|7[013-7])\\d{5}",,,,"5912345",,,[7]],[,,"81[18]\\d\\d",,,,"81123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:0[1-9]|1[01])\\d{4}",,,,"9010123",,,[7]],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:3[03]|900\\d)\\d{3}",,,,"30123"],,,[,,,,,,,,,[-1]]],WF:[,[,,"(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",,,,,,,[6,9]],[,,"72\\d{4}",,,,"721234",,,[6]],[,,"(?:72|8[23])\\d{4}",,,,"821234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WF",681,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"[48]0\\d{4}",,,,"401234",,,[6]]],WS:[,[,,"(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",,,,,,,[5,6,7,10]],[,,"6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",,,,"22123",,,[5,6]],[,,"(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",,,,"7212345",,,[7,10]],[,,"800\\d{3}",,,,"800123",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WS",685,"0",,,,,,,,[[,"(\\d{5})","$1",["[2-5]|6[1-9]"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],XK:[,[,,"[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",,,,,,,[8,9]],[,,"(?:2[89]|39)0\\d{6}|[23][89]\\d{6}",,,,"28012345"],[,,"4[3-9]\\d{6}",,,,"43201234",,,[8]],[,,"800\\d{5}",,,,"80001234",,,[8]],[,,"900\\d{5}",,,,"90001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"XK",383,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YE:[,[,,"(?:1|7\\d)\\d{7}|[1-7]\\d{6}",,,,,,,[7,8,9],[6]],[,,"78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",,,,"1234567",,,[7,8],[6]],[,,"7[01378]\\d{7}",,,,"712345678",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YE",967,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YT:[,[,,"(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",,,,,,,[9]],[,,"269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}",,,,"269601234"],[,,"639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}",,,,"639012345"],[,,"80\\d{7}",,,,"801234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:39|47)8[01]|769\\d)\\d{4}",,,,"939801234"],"YT",262,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZA:[,[,,"[1-79]\\d{8}|8\\d{4,9}",,,,,,,[5,6,7,8,9,10]],[,,"(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",,,,"101234567",,,[9]],[,,"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",,,,"711234567",,,[5,6,7,8,9]],[,,"80\\d{7}",,,,"801234567",,,[9]],[,,"(?:86[2-9]|9[0-2]\\d)\\d{6}",,,,"862345678",,,[9]],[,,"860\\d{6}",,,,"860123456",,,[9]],[,,,,,,,,,[-1]],[,,"87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",,,,"871234567",,,[9]],"ZA",27,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"861\\d{6,7}",,,,"861123456",,,[9,10]],,,[,,,,,,,,,[-1]]],ZM:[,[,,"800\\d{6}|(?:21|63|[79]\\d)\\d{7}",,,,,,,[9],[6]],[,,"21[1-8]\\d{6}",,,,"211234567",,,,[6]],[,,"(?:7[5-79]|9[5-8])\\d{7}",,,,"955123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"63\\d{7}",,,,"630123456"],"ZM",260,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZW:[,[,,"2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",,,,,,,[5,6,7,8,9,10],[3,4]],[,,"(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}",,,,"1312345",,,,[3,4]],[,,"7(?:[178]\\d|3[1-9])\\d{6}",,,,"712345678",,,[9]],[,,"80(?:[01]\\d|20|8[0-8])\\d{3}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",,,,"8686123456",,,[10]],"ZW",263,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],[,"(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],[,"(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],[,"(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],800:[,[,,"(?:00|[1-9]\\d)\\d{6}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:00|[1-9]\\d)\\d{6}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",800,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["\\d"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],808:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",808,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],870:[,[,,"7\\d{11}|[35-7]\\d{8}",,,,,,,[9,12]],[,,,,,,,,,[-1]],[,,"(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}",,,,"301234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",870,,,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],878:[,[,,"10\\d{10}",,,,,,,[12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"10\\d{10}",,,,"101234567890"],"001",878,,,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],881:[,[,,"6\\d{9}|[0-36-9]\\d{8}",,,,,,,[9,10]],[,,,,,,,,,[-1]],[,,"6\\d{9}|[0-36-9]\\d{8}",,,,"612345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",881,,,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],[,"(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],882:[,[,,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",,,,,,,[7,8,9,10,11,12]],[,,,,,,,,,[-1]],[,,"342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",,,,"3421234",,,[7,8,9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}",,,,"390123456789"],"001",882,,,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["16|342"]],[,"(\\d{2})(\\d{6})","$1 $2",["49"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"348[57]\\d{7}",,,,"34851234567",,,[11]]],883:[,[,,"(?:[1-4]\\d|51)\\d{6,10}",,,,,,,[8,9,10,11,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}",,,,"510012345"],"001",883,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],888:[,[,,"\\d{11}",,,,,,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",888,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"\\d{11}",,,,"12345678901"],,,[,,,,,,,,,[-1]]],979:[,[,,"[1359]\\d{8}",,,,,,,[9],[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1359]\\d{8}",,,,"123456789",,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",979,,,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]]};function J(){this.g={}}J.i=void 0;J.g=function(){return J.i?J.i:J.i=new J};var va={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"},wa={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},K=RegExp("^[++]+"),xa=RegExp("([0-90-9٠-٩۰-۹])"),ya=RegExp("[++0-90-9٠-٩۰-۹]"),za=/[\\\/] *x/,Aa=RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"),Ba=/(?:.*?[A-Za-z]){3}.*/,Ca=RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"),Da=RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");function L2(a2){return"([0-90-9٠-٩۰-۹]{1,"+a2+"})"}function Ea(){return";ext="+L2("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*"+(L2("20")+"#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*")+(L2("9")+"#?|[- ]+")+(L2("6")+"#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*")+(L2("15")+"#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*")+(L2("9")+"#?")}var Fa=new RegExp("(?:"+Ea()+")$","i"),Ga=new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:"+Ea()+")?$","i"),Ha=/(\$\d)/;function Ia(a2){return 2>a2.length?false:M(Ga,a2)}function Ja(a2){return M(Ba,a2)?N(a2,wa):N(a2,va)}function Ka(a2){var b2=Ja(a2.toString());a2.i="";a2.g(b2)}function N(a2,b2){for(var c2=new C2,d2,f2=a2.length,e2=0;e2<f2;++e2)d2=a2.charAt(e2),d2=b2[d2.toUpperCase()],null!=d2&&c2.g(d2);return c2.toString()}function O2(a2){return null!=a2&&isNaN(a2)&&a2.toUpperCase()in ua}function Ma(a2,b2,c2){if(0==p2(b2,2)&&null!=b2.g[5]){var d2=v2(b2,5);if(0<d2.length)return d2}d2=v2(b2,1);var f2=P(b2);if(0==c2)return Na(d2,0,f2,"");if(!(d2 in I))return f2;a2=Q(a2,d2,R2(d2));b2=null!=b2.g[3]&&0!=p2(b2,3).length?3==c2?";ext="+p2(b2,3):null!=a2.g[13]?p2(a2,13)+v2(b2,3):" ext. "+v2(b2,3):"";a:{a2=0==t2(a2,20).length||2==c2?t2(a2,19):t2(a2,20);for(var e2,g2=a2.length,h2=0;h2<g2;++h2){e2=a2[h2];var l2=w2(e2,3);if(0==l2||0==f2.search(p2(e2,3,l2-1))){if(l2=new RegExp(p2(e2,1)),M(l2,f2)){a2=e2;break a}}}a2=null}null!=a2&&(g2=a2,a2=v2(g2,2),e2=new RegExp(p2(g2,1)),v2(g2,5),g2=v2(g2,4),f2=2==c2&&null!=g2&&0<g2.length?f2.replace(e2,a2.replace(Ha,g2)):f2.replace(e2,a2),3==c2&&(f2=f2.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"),""),f2=f2.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+","g"),"-")));return Na(d2,c2,f2,b2)}function Q(a2,b2,c2){return"001"==c2?S2(a2,""+b2):S2(a2,c2)}function P(a2){if(null==a2.g[2])return"";var b2=""+p2(a2,2);return null!=a2.g[4]&&p2(a2,4)&&0<v2(a2,8)?Array(v2(a2,8)+1).join("0")+b2:b2}function Na(a2,b2,c2,d2){switch(b2){case 0:return"+"+a2+c2+d2;case 1:return"+"+a2+" "+c2+d2;case 3:return"tel:+"+a2+"-"+c2+d2;default:return c2+d2}}function T2(a2,b2){switch(b2){case 4:return p2(a2,5);case 3:return p2(a2,4);case 1:return p2(a2,3);case 0:case 2:return p2(a2,2);case 5:return p2(a2,6);case 6:return p2(a2,8);case 7:return p2(a2,7);case 8:return p2(a2,21);case 9:return p2(a2,25);case 10:return p2(a2,28);default:return p2(a2,1)}}function U(a2,b2){return V2(a2,p2(b2,1))?V2(a2,p2(b2,5))?4:V2(a2,p2(b2,4))?3:V2(a2,p2(b2,6))?5:V2(a2,p2(b2,8))?6:V2(a2,p2(b2,7))?7:V2(a2,p2(b2,21))?8:V2(a2,p2(b2,25))?9:V2(a2,p2(b2,28))?10:V2(a2,p2(b2,2))?p2(b2,18)||V2(a2,p2(b2,3))?2:0:!p2(b2,18)&&V2(a2,p2(b2,3))?1:-1:-1}function S2(a2,b2){if(null==b2)return null;b2=b2.toUpperCase();var c2=a2.g[b2];if(null==c2){c2=ua[b2];if(null==c2)return null;c2=(new B).g(F2.j(),c2);a2.g[b2]=c2}return c2}function V2(a2,b2){var c2=a2.length;return 0<w2(b2,9)&&-1==t2(b2,9).indexOf(c2)?false:M(v2(b2,2),a2)}function Oa(a2,b2){if(null==b2)return null;var c2=v2(b2,1);c2=I[c2];if(null==c2)a2=null;else if(1==c2.length)a2=c2[0];else a:{b2=P(b2);for(var d2,f2=c2.length,e2=0;e2<f2;e2++){d2=c2[e2];var g2=S2(a2,d2);if(null!=g2.g[23]){if(0==b2.search(p2(g2,23))){a2=d2;break a}}else if(-1!=U(b2,g2)){a2=d2;break a}}a2=null}return a2}function R2(a2){a2=I[a2];return null==a2?"ZZ":a2[0]}function W2(a2,b2,c2,d2){var f2=T2(c2,d2),e2=0==w2(f2,9)?t2(p2(c2,1),9):t2(f2,9);f2=t2(f2,10);if(-1==e2[0])return 5;b2=b2.length;if(-1<f2.indexOf(b2))return 4;c2=e2[0];return c2==b2?0:c2>b2?2:e2[e2.length-1]<b2?3:-1<e2.indexOf(b2,1)?0:5}function X(a2,b2){var c2=P(b2);b2=v2(b2,1);if(!(b2 in I))return 1;b2=Q(a2,b2,R2(b2));return W2(a2,c2,b2,-1)}function Pa(a2,b2,c2,d2,f2,e2){if(0==b2.length)return 0;b2=new C2(b2);var g2;null!=c2&&(g2=p2(c2,11));null==g2&&(g2="NonMatch");var h2=b2.toString();if(0==h2.length)g2=20;else if(K.test(h2))h2=h2.replace(K,""),b2.i="",b2.g(Ja(h2)),g2=1;else{h2=new RegExp(g2);Ka(b2);g2=b2.toString();if(0==g2.search(h2)){h2=g2.match(h2)[0].length;var l2=g2.substring(h2).match(xa);l2&&null!=l2[1]&&0<l2[1].length&&"0"==N(l2[1],va)?g2=false:(b2.i="",b2.g(g2.substring(h2)),g2=true)}else g2=false;g2=g2?5:20}f2&&q(e2,6,g2);if(20!=g2){if(2>=b2.i.length)throw Error("Phone number too short after IDD");a:{a2=b2.toString();if(0!=a2.length&&"0"!=a2.charAt(0)){for(f2=a2.length,b2=1;3>=b2&&b2<=f2;++b2)if(c2=parseInt(a2.substring(0,b2),10),c2 in I){d2.g(a2.substring(b2));d2=c2;break a}}d2=0}if(0!=d2)return q(e2,1,d2),d2;throw Error("Invalid country calling code")}if(null!=c2&&(g2=v2(c2,10),h2=""+g2,l2=b2.toString(),0==l2.lastIndexOf(h2,0)&&(h2=new C2(l2.substring(h2.length)),l2=p2(c2,1),l2=new RegExp(v2(l2,2)),Qa(h2,c2,null),h2=h2.toString(),!M(l2,b2.toString())&&M(l2,h2)||3==W2(a2,b2.toString(),c2,-1))))return d2.g(h2),f2&&q(e2,6,10),q(e2,1,g2),g2;q(e2,1,0);return 0}function Qa(a2,b2,c2){var d2=a2.toString(),f2=d2.length,e2=p2(b2,15);if(0!=f2&&null!=e2&&0!=e2.length){var g2=new RegExp("^(?:"+e2+")");if(f2=g2.exec(d2)){e2=new RegExp(v2(p2(b2,1),2));var h2=M(e2,d2),l2=f2.length-1;b2=p2(b2,16);if(null==b2||0==b2.length||null==f2[l2]||0==f2[l2].length){if(!h2||M(e2,d2.substring(f2[0].length)))null!=c2&&0<l2&&null!=f2[l2]&&c2.g(f2[1]),a2.set(d2.substring(f2[0].length))}else if(d2=d2.replace(g2,b2),!h2||M(e2,d2))null!=c2&&0<l2&&c2.g(f2[1]),a2.set(d2)}}}function Z(a2,b2,c2){if(!O2(c2)&&0<b2.length&&"+"!=b2.charAt(0))throw Error("Invalid country calling code");return Ra(a2,b2,c2,true)}function Ra(a2,b2,c2,d2){if(null==b2)throw Error("The string supplied did not seem to be a phone number");if(250<b2.length)throw Error("The string supplied is too long to be a phone number");var f2=new C2;var e2=b2.indexOf(";phone-context=");if(-1===e2)e2=null;else if(e2+=15,e2>=b2.length)e2="";else{var g2=b2.indexOf(";",e2);e2=-1!==g2?b2.substring(e2,g2):b2.substring(e2)}var h2=e2;null==h2?g2=true:0===h2.length?g2=false:(g2=Ca.exec(h2),h2=Da.exec(h2),g2=null!==g2||null!==h2);if(!g2)throw Error("The string supplied did not seem to be a phone number");null!=e2?("+"===e2.charAt(0)&&f2.g(e2),e2=b2.indexOf("tel:"),f2.g(b2.substring(0<=e2?e2+4:0,b2.indexOf(";phone-context=")))):(e2=f2.g,g2=b2??"",h2=g2.search(ya),0<=h2?(g2=g2.substring(h2),g2=g2.replace(Aa,""),h2=g2.search(za),0<=h2&&(g2=g2.substring(0,h2))):g2="",e2.call(f2,g2));e2=f2.toString();g2=e2.indexOf(";isub=");0<g2&&(f2.i="",f2.g(e2.substring(0,g2)));if(!Ia(f2.toString()))throw Error("The string supplied did not seem to be a phone number");e2=f2.toString();if(!(O2(c2)||null!=e2&&0<e2.length&&K.test(e2)))throw Error("Invalid country calling code");e2=new H2;d2&&q(e2,5,b2);a:{b2=f2.toString();g2=b2.search(Fa);if(0<=g2&&Ia(b2.substring(0,g2))){h2=b2.match(Fa);for(var l2=h2.length,A2=1;A2<l2;++A2)if(null!=h2[A2]&&0<h2[A2].length){f2.i="";f2.g(b2.substring(0,g2));b2=h2[A2];break a}}b2=""}0<b2.length&&q(e2,3,b2);g2=S2(a2,c2);b2=new C2;h2=0;l2=f2.toString();try{h2=Pa(a2,l2,g2,b2,d2,e2)}catch(G){if("Invalid country calling code"==G.message&&K.test(l2)){if(l2=l2.replace(K,""),h2=Pa(a2,l2,g2,b2,d2,e2),0==h2)throw G}else throw G}0!=h2?(f2=R2(h2),f2!=c2&&(g2=Q(a2,h2,f2))):(Ka(f2),b2.g(f2.toString()),null!=c2?(h2=v2(g2,10),q(e2,1,h2)):d2&&(delete e2.g[6],e2.i&&delete e2.i[6]));if(2>b2.i.length)throw Error("The string supplied is too short to be a phone number");null!=g2&&(c2=new C2,f2=new C2(b2.toString()),Qa(f2,g2,c2),a2=W2(a2,f2.toString(),g2,-1),2!=a2&&4!=a2&&5!=a2&&(b2=f2,d2&&0<c2.toString().length&&q(e2,7,c2.toString())));d2=b2.toString();a2=d2.length;if(2>a2)throw Error("The string supplied is too short to be a phone number");if(17<a2)throw Error("The string supplied is too long to be a phone number");if(1<d2.length&&"0"==d2.charAt(0)){q(e2,4,true);for(a2=1;a2<d2.length-1&&"0"==d2.charAt(a2);)a2++;1!=a2&&q(e2,8,a2)}q(e2,2,parseInt(d2,10));return e2}function M(a2,b2){return(a2="string"==typeof a2?b2.match("^(?:"+a2+")$"):b2.match(a2))&&a2[0].length==b2.length?true:false}k2("intlTelInputUtils",{});k2("intlTelInputUtils.formatNumber",((a2,b2,c2)=>{try{const f2=J.g(),e2=Z(f2,a2,b2);var d2=X(f2,e2);return 0==d2||4==d2?Ma(f2,e2,"undefined"===typeof c2?0:c2):a2}catch(f2){return a2}}));k2("intlTelInputUtils.getExampleNumber",((a2,b2,c2)=>{try{const h2=J.g();a:{var d2=h2;if(O2(a2)){var f2=T2(S2(d2,a2),c2);try{if(null!=f2.g[6]){var e2=p2(f2,6);var g2=Ra(d2,e2,a2,false);break a}}catch(l2){}}g2=null}return Ma(h2,g2,b2?2:1)}catch(h2){return""}}));k2("intlTelInputUtils.getExtension",((a2,b2)=>{try{return p2(Z(J.g(),a2,b2),3)}catch(c2){return""}}));k2("intlTelInputUtils.getNumberType",((a2,b2)=>{try{const h2=J.g();var c2=Z(h2,a2,b2);a2=h2;var d2=Oa(a2,c2),f2=Q(a2,v2(c2,1),d2);if(null==f2)var e2=-1;else{var g2=P(c2);e2=U(g2,f2)}return e2}catch(h2){return-99}}));k2("intlTelInputUtils.getValidationError",((a2,b2)=>{try{const c2=J.g(),d2=Z(c2,a2,b2);return X(c2,d2)}catch(c2){return"Invalid country calling code"===c2.message?1:3>=a2.length||"Phone number too short after IDD"===c2.message||"The string supplied is too short to be a phone number"===c2.message?2:"The string supplied is too long to be a phone number"===c2.message?3:-99}}));k2("intlTelInputUtils.isValidNumber",((a2,b2)=>{try{const Y=J.g();var c2=Z(Y,a2,b2);a2=Y;var d2=Oa(a2,c2);var f2=v2(c2,1),e2=Q(a2,f2,d2),g2;if(!(g2=null==e2)){var h2;if(h2="001"!=d2){var l2=S2(a2,d2);if(null==l2)throw Error("Invalid region code: "+d2);var A2=v2(l2,10);h2=f2!=A2}g2=h2}if(g2)var G=false;else{var Sa=P(c2);G=-1!=U(Sa,e2)}return G}catch(Y){return false}}));k2("intlTelInputUtils.isPossibleNumber",((a2,b2)=>{try{const c2=J.g(),d2=Z(c2,a2,b2);return 0===X(c2,d2)}catch(c2){return false}}));k2("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3});k2("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1});k2("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5})})();const isEmpty=obj=>Object.keys(obj).length<1;const formatToGlobalCountryName=countryName=>countryName.split("(")[0].trim();const formatAllCountries=()=>{const countryData=window.intlTelInputGlobals.getCountryData();for(let i=0;i<countryData.length;i++){const country=countryData[i];country.name=formatToGlobalCountryName(country.name)}};formatAllCountries();const containOnlyNumbers=value=>/^[()+\-\ .\d]*$/g.test(value);const PhoneNumberInput=(props,ref)=>{const{aria:aria={},className:className,dark:dark=false,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},id:id="",initialCountry:initialCountry="",isValid:isValid=()=>{},label:label="",name:name2="",onChange:onChange2=()=>{},onValidate:onValidate=()=>null,onlyCountries:onlyCountries=[],required:required=false,preferredCountries:preferredCountries=[],value:value=""}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_phone_number_input"),globalProps(props),className);const inputRef=useRef();const[inputValue,setInputValue]=useState(value);const[itiInit,setItiInit]=useState();const[error,setError]=useState(props.error);const[dropDownIsOpen,setDropDownIsOpen]=useState(false);const[selectedData,setSelectedData]=useState();useEffect((()=>{if((error==null?void 0:error.length)>0){onValidate(false)}else{onValidate(true)}}),[error,onValidate]);useImperativeHandle(ref,(()=>({clearField(){setInputValue("");setError("")},inputNode(){return inputRef.current}})));const showFormattedError=(reason="")=>{const countryName=itiInit.getSelectedCountryData().name;const reasonText=reason.length>0?` (${reason})`:"";setError(`Invalid ${countryName} phone number${reasonText}`);return true};const validateTooLongNumber=itiInit2=>{if(!itiInit2)return;if(itiInit2.getValidationError()===3){return showFormattedError("too long")}else{setError("")}};const validateTooShortNumber=itiInit2=>{if(!itiInit2)return;if(itiInit2.getValidationError()===2){return showFormattedError("too short")}else{if(inputValue.length===1){return showFormattedError("too short")}else{setError("")}}};const validateOnlyNumbers=itiInit2=>{if(!itiInit2)return;if(inputValue&&!containOnlyNumbers(inputValue)){return showFormattedError("enter numbers only")}};const validateUnhandledError=itiInit2=>{if(!required||!itiInit2)return;if(itiInit2.getValidationError()===-99){if(inputValue.length===1){return showFormattedError("too short")}else if(inputValue.length===0){setError("Missing phone number");return true}else{return showFormattedError()}}};const validateMissingAreaCode=itiInit2=>{if(!required||!itiInit2)return;if(itiInit2.getValidationError()===4){showFormattedError("missing area code");return true}};const validateErrors=()=>{if(itiInit)isValid(itiInit.isValidNumber());if(validateOnlyNumbers(itiInit))return;if(validateTooLongNumber(itiInit))return;if(validateTooShortNumber(itiInit))return;if(validateUnhandledError(itiInit))return;if(validateMissingAreaCode(itiInit))return};const getCurrentSelectedData=(itiInit2,inputValue2)=>({...itiInit2.getSelectedCountryData(),number:inputValue2});const handleOnChange=evt=>{setInputValue(evt.target.value);const phoneNumberData=getCurrentSelectedData(itiInit,evt.target.value);setSelectedData(phoneNumberData);onChange2(phoneNumberData);isValid(itiInit.isValidNumber())};useEffect(formatAllCountries,[]);useEffect((()=>{const telInputInit=intlTelInput$1(inputRef.current,{separateDialCode:true,preferredCountries:preferredCountries,allowDropdown:!disabled,autoInsertDialCode:false,initialCountry:initialCountry,onlyCountries:onlyCountries});inputRef.current.addEventListener("countrychange",(evt=>{const phoneNumberData=getCurrentSelectedData(telInputInit,evt.target.value);setSelectedData(phoneNumberData);onChange2(phoneNumberData);validateErrors()}));inputRef.current.addEventListener("open:countrydropdown",(()=>setDropDownIsOpen(true)));inputRef.current.addEventListener("close:countrydropdown",(()=>setDropDownIsOpen(false)));setItiInit(telInputInit)}),[]);let textInputProps={className:dropDownIsOpen?"dropdown_open":"",dark:dark,"data-phone-number":JSON.stringify(selectedData),disabled:disabled,error:error,type:"tel",id:id,label:label,name:name2,onBlur:validateErrors,onChange:handleOnChange,value:inputValue};let wrapperProps={className:classes};if(!isEmpty(aria))textInputProps={...textInputProps,...ariaProps};if(!isEmpty(data))wrapperProps={...wrapperProps,...dataProps};if(required)textInputProps.required=true;return jsx$1("div",{...wrapperProps,...htmlProps,children:jsx$1(TextInput$1,{ref:inputNode=>{ref?ref.current=inputNode:null;inputRef.current=inputNode},...textInputProps})})};const PhoneNumberInput$1=forwardRef(PhoneNumberInput);const inlineFocus=()=>{const trixEditorElement=event.target;const trixEditorContainer=trixEditorElement.closest(".pb_rich_text_editor_kit");if(!trixEditorContainer.classList.contains("inline"))return;trixEditorContainer.classList.toggle("focused")};const useFocus=()=>{const allTrixEditors=document.querySelectorAll(".focus-editor-targets trix-editor");allTrixEditors.forEach((editorElement=>{const toolbarElement=editorElement.toolbarElement;if(editorElement==document.activeElement){editorElement.classList.add("focused-editor");toolbarElement.style.display="block"}else{if(!toolbarElement.contains(document.activeElement)){editorElement.classList.remove("focused-editor");toolbarElement.style.display="none"}}}))};var reactTrix={};var __extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var extendStatics=function(d2,b2){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d3,b3){d3.__proto__=b3}||function(d3,b3){for(var p2 in b3)if(b3.hasOwnProperty(p2))d3[p2]=b3[p2]};return extendStatics(d2,b2)};return function(d2,b2){extendStatics(d2,b2);function __(){this.constructor=d2}d2.prototype=b2===null?Object.create(b2):(__.prototype=b2.prototype,new __)}}();Object.defineProperty(reactTrix,"__esModule",{value:true});var React=React__default;var TrixEditor$1=function(_super){__extends(TrixEditor2,_super);function TrixEditor2(props){var _this=_super.call(this,props)||this;_this.container=null;_this.editor=null;_this.d=null;_this.id=_this.generateId();_this.state={showMergeTags:false,tags:[]};return _this}TrixEditor2.prototype.generateId=function(){var dt=(new Date).getTime();var uuid="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(c2){var r2=(dt+Math.random()*16)%16|0;dt=Math.floor(dt/16);return(c2=="x"?r2:r2&3|8).toString(16)}));return"T"+uuid};TrixEditor2.prototype.componentDidMount=function(){var _this=this;var props=this.props;this.container=document.getElementById("editor-"+this.id);if(this.container){this.container.addEventListener("trix-initialize",(function(){_this.editor=_this.container.editor;if(!_this.editor){console.error("cannot find trix editor")}if(props.onEditorReady&&typeof props.onEditorReady=="function"){props.onEditorReady(_this.editor)}}),false);this.container.addEventListener("trix-change",this.handleChange.bind(this),false);if(props.uploadURL){this.container.addEventListener("trix-attachment-add",this.handleUpload.bind(this))}}else{console.error("editor not found")}};TrixEditor2.prototype.componentWillUnmount=function(){this.container.removeEventListener("trix-initialize",this.handleChange);this.container.removeEventListener("trix-change",this.handleChange);if(this.props.uploadURL){this.container.removeEventListener("trix-attachment-add",this.handleUpload)}};TrixEditor2.prototype.handleChange=function(e2){var props=this.props;var state=this.state;var text2=e2.target.innerText;if(props.onChange){props.onChange(e2.target.innerHTML,text2)}var range=this.editor.getSelectedRange();if(text2&&range[0]==range[1]){if(props.mergeTags){var lastChar=range[0]-1;if(lastChar>=0&&lastChar<text2.length){var trigger=text2[lastChar];for(var i=0;i<props.mergeTags.length;i++){if(trigger==props.mergeTags[i].trigger){state.showMergeTags=true;state.tags=props.mergeTags[i].tags;this.setState(state);break}}}}}};TrixEditor2.prototype.handleUpload=function(e2){var attachment=e2.attachment;if(attachment.file){return this.uploadAttachment(attachment)}};TrixEditor2.prototype.uploadAttachment=function(attachment){var file,form,xhr;file=attachment.file;form=new FormData;if(this.props.uploadData){for(var k2 in this.props.uploadData){form.append(k2,this.props.uploadData[k2])}}form.append(this.props.fileParamName||"file",file);xhr=new XMLHttpRequest;xhr.open("POST",this.props.uploadURL,true);xhr.upload.onprogress=function(event2){var progress=event2.loaded/event2.total*100;return attachment.setUploadProgress(progress)};xhr.onload=function(){var href,url;if(xhr.status>=200&&xhr.status<300){url=href=xhr.responseText;return attachment.setAttributes({url:url,href:href})}};return xhr.send(form)};TrixEditor2.prototype.handleTagSelected=function(t2,e2){e2.preventDefault();var state=this.state;state.showMergeTags=false;this.setState(state);this.editor.expandSelectionInDirection("backward");this.editor.insertString(t2.tag)};TrixEditor2.prototype.renderTagSelector=function(tags){var _this=this;if(!tags||!this.editor){return null}var editorPosition=document.getElementById("trix-editor-top-level-"+this.id).getBoundingClientRect();var rect=this.editor.getClientRectAtPosition(this.editor.getSelectedRange()[0]);var boxStyle={position:"absolute",top:rect.top+25-editorPosition.top,left:rect.left+25-editorPosition.left,width:"250px",boxSizing:"border-box",padding:0,margin:".2em 0 0",backgroundColor:"hsla(0,0%,100%,.9)",borderRadius:".3em",background:"linear-gradient(to bottom right, white, hsla(0,0%,100%,.8))",border:"1px solid rgba(0,0,0,.3)",boxShadow:".05em .2em .6em rgba(0,0,0,.2)",textShadow:"none"};var tagStyle={display:"block",padding:".2em .5em",cursor:"pointer"};return React.createElement("div",{style:boxStyle,className:"react-trix-suggestions"},tags.map((function(t2){return React.createElement("a",{key:t2.name,style:tagStyle,href:"#",onClick:_this.handleTagSelected.bind(_this,t2)},t2.name)})))};TrixEditor2.prototype.render=function(){var _this=this;var state=this.state;var props=this.props;var attributes={id:"editor-"+this.id,input:"input-"+this.id};if(props.className){attributes["class"]=props.className}if(props.autoFocus){attributes["autofocus"]=props.autoFocus.toString()}if(props.placeholder){attributes["placeholder"]=props.placeholder}if(props.toolbar){attributes["toolbar"]=props.toolbar}var mergetags=null;if(state.showMergeTags){mergetags=this.renderTagSelector(state.tags)}return React.createElement("div",{id:"trix-editor-top-level-"+this.id,ref:function(d2){return _this.d=d2},style:{position:"relative"}},React.createElement("trix-editor",attributes),React.createElement("input",{type:"hidden",id:"input-"+this.id,value:this.props.value}),mergetags)};return TrixEditor2}(React.Component);reactTrix.TrixEditor=TrixEditor$1;var TrixEditor=reactTrix.TrixEditor;const EditorButton=({classname:classname,disable:disable,onclick:onclick,icon:icon,text:text2})=>jsx$1(Tooltip$1,{delay:{open:2e3},interaction:true,placement:"top",text:text2,children:jsx$1("button",{className:classname,disabled:disable,onClick:onclick,role:"button",type:"button",children:jsx$1(Flex,{align:"center",className:"toolbar_button_icon",justify:"center",children:jsx$1(Icon,{icon:icon,size:"lg"})})})});const ToolbarDropdown=({editor:editor})=>{const[showPopover,setShowPopover]=useState(false);const toolbarDropdownItems=[{node:"paragraph",icon:"paragraph",isActive:editor.isActive("paragraph"),text:"Paragraph",onclick:()=>editor.chain().focus().setParagraph().run()},{node:"heading-1",icon:"h1",isActive:editor.isActive("heading",{level:1}),text:"Heading 1",onclick:()=>editor.chain().focus().toggleHeading({level:1}).run()},{node:"heading-2",icon:"h2",isActive:editor.isActive("heading",{level:2}),text:"Heading 2",onclick:()=>editor.chain().focus().toggleHeading({level:2}).run()},{node:"heading-3",icon:"h3",isActive:editor.isActive("heading",{level:3}),text:"Heading 3",onclick:()=>editor.chain().focus().toggleHeading({level:3}).run()},{node:"bulletList",icon:"list",isActive:editor.isActive("bulletList"),text:"Bullet List",onclick:()=>editor.chain().focus().toggleBulletList().run()},{node:"orderedList",icon:"list-ol",isActive:editor.isActive("orderedList"),text:"Ordered List",onclick:()=>editor.chain().focus().toggleOrderedList().run()},{node:"blockquote",icon:"block-quote",isActive:editor.isActive("blockquote"),text:"Block Quote",onclick:()=>editor.chain().focus().toggleBlockquote().run()}];const handleTogglePopover=()=>{setShowPopover(!showPopover)};const handlePopoverClose=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};let activeCount=0;const activeItems=[];for(const{text:text2,isActive:isActive,icon:icon}of toolbarDropdownItems){if(isActive){activeCount++;activeItems.push(jsxs(Flex,{align:"center",gap:"xs",children:[jsx$1(Icon,{icon:icon,size:"lg"}),jsx$1("div",{children:text2}),jsx$1(Flex,{className:showPopover?"fa-flip-vertical":"",display:"inline_flex",children:jsx$1(Icon,{fixedWidth:true,icon:"angle-down","margin-left":"xs"})})]},icon))}}const popoverReference=jsx$1(Button,{className:"editor-dropdown-button",onClick:handleTogglePopover,variant:"secondary",children:activeCount===2?activeItems[1]:activeCount===1?activeItems[0]||null:jsxs(Flex,{align:"center",gap:"xs",children:[jsx$1(Icon,{icon:"paragraph",size:"lg"}),jsx$1("div",{children:"Paragraph"}),jsx$1(Flex,{className:showPopover?"fa-flip-vertical":"",display:"inline_flex",children:jsx$1(Icon,{fixedWidth:true,icon:"angle-down","margin-left":"xs"})})]},"paragraph")});return jsx$1(PbReactPopover,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:popoverReference,shouldClosePopover:handlePopoverClose,show:showPopover,children:jsx$1(Nav,{paddingBottom:"xs",paddingTop:"xs",variant:"subtle",children:toolbarDropdownItems.map((({icon:icon,text:text2,onclick:onclick,isActive:isActive},index2)=>jsx$1(NavItem,{className:`pb_tiptap_toolbar_dropdown_list_item ${isActive?"is-active":""}`,cursor:"pointer",iconLeft:icon,margin:"none",onClick:()=>{onclick();setShowPopover(false)},paddingBottom:"xxs",paddingTop:"xxs",text:text2},`${text2}_${index2}`)))})})};const ToolbarNodes=({editor:editor})=>{const setLink=useCallback((()=>{const previousUrl=editor.getAttributes("link").href;const url=window.prompt("URL",previousUrl);if(url===null){return}if(url===""){editor.chain().focus().extendMarkRange("link").unsetLink().run();return}editor.chain().focus().extendMarkRange("link").setLink({href:url}).run()}),[editor]);const toolbarNodesItems=[{onclick:()=>editor.chain().focus().toggleCodeBlock().run(),icon:"code",isActive:editor.isActive("codeBlock"),text:"Codeblock"},{onclick:setLink,icon:"link",isActive:editor.isActive("link"),text:"Link"}];return jsx$1(Fragment,{children:toolbarNodesItems.map((({onclick:onclick,icon:icon,text:text2,isActive:isActive},index2)=>jsx$1(EditorButton,{classname:`toolbar_button ${isActive?"is-active":""}`,icon:icon,onclick:onclick,text:text2},index2)))})};const ToolbarHistoryItems=({editor:editor})=>{const toolbarHistoryItems=[{classname:`toolbar_button`,icon:"undo",text:"Undo",onclick:()=>editor.chain().focus().undo().run(),disable:!editor.can().chain().focus().undo().run()},{classname:`toolbar_button`,icon:"redo",text:"Redo",onclick:()=>editor.chain().focus().redo().run(),disable:!editor.can().chain().focus().redo().run()}];return jsx$1(Fragment,{children:jsx$1(FlexItem,{displayFlex:true,children:toolbarHistoryItems.map((({onclick:onclick,classname:classname,disable:disable,icon:icon,text:text2},index2)=>jsx$1(EditorButton,{classname:classname,disable:disable,icon:icon,onclick:onclick,text:text2},index2)))})})};const MoreExtensionsDropdown=({extensions:extensions})=>{const[showPopover,setShowPopover]=useState(false);const handleTogglePopover=()=>{setShowPopover(!showPopover)};const handlePopoverClose=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};const popoverReference=jsx$1("button",{className:"toolbar_button",onClick:handleTogglePopover,role:"button",type:"button",children:jsx$1(Flex,{align:"center",className:"toolbar_button_icon",justify:"center",children:jsx$1(Icon,{icon:"ellipsis",size:"lg"})})});return jsx$1(PbReactPopover,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:popoverReference,shouldClosePopover:handlePopoverClose,show:showPopover,children:jsx$1(Nav,{paddingBottom:extensions.length>1?"xs":"none",paddingTop:extensions.length>1?"xs":"none",variant:"subtle",children:extensions&&extensions.map((({icon:icon,text:text2,onclick:onclick,isActive:isActive},index2)=>jsx$1(NavItem,{className:`pb_tiptap_toolbar_dropdown_list_item ${isActive?"is-active":""}`,cursor:"pointer",iconLeft:icon,margin:"none",onClick:()=>{onclick();setShowPopover(false)},paddingBottom:"xxs",paddingTop:"xxs",text:text2},`${text2}_${index2}`)))})})};const EditorToolbar=({editor:editor,extensions:extensions})=>{const toolbaritems=[{icon:"bold",text:"Bold",classname:`toolbar_button ${editor.isActive("bold")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleBold().run()},{icon:"italic",text:"Italic",classname:`toolbar_button ${editor.isActive("italic")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleItalic().run()},{icon:"strikethrough",text:"Strikethrough",classname:`toolbar_button ${editor.isActive("strike")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleStrike().run()}];return jsx$1(Background,{backgroundColor:"white",className:"toolbar",children:jsxs(Flex,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs",children:[jsxs(FlexItem,{className:"toolbar_block",displayFlex:true,children:[jsx$1(ToolbarDropdown,{editor:editor}),jsx$1(SectionSeparator,{orientation:"vertical"}),toolbaritems&&toolbaritems.map((({icon:icon,text:text2,classname:classname,onclick:onclick},index2)=>jsx$1(EditorButton,{classname:classname,icon:icon,onclick:onclick,text:text2},index2))),jsx$1(SectionSeparator,{orientation:"vertical"}),jsx$1(ToolbarNodes,{editor:editor}),extensions&&jsx$1(Fragment,{children:jsx$1(MoreExtensionsDropdown,{extensions:extensions})})]}),jsx$1(ToolbarHistoryItems,{editor:editor})]})})};try{const Trix=require("trix");Trix.config.textAttributes.inlineCode={tagName:"code",inheritable:true}}catch(_e){}const RichTextEditor=props=>{const{aria:aria={},advancedEditor:advancedEditor,advancedEditorToolbar:advancedEditorToolbar=true,toolbarBottom:toolbarBottom=false,children:children,className:className,data:data={},focus:focus=false,htmlOptions:htmlOptions={},inline:inline=false,extensions:extensions,name:name2,onChange:onChange2=noop$3,placeholder:placeholder,simple:simple=false,sticky:sticky=false,template:template="",value:value="",maxWidth:maxWidth="md"}=props;const ariaProps=buildAriaProps(aria),dataProps=buildDataProps(data),[editor,setEditor]=useState();const htmlProps=buildHtmlProps(htmlOptions);const handleOnEditorReady=editorInstance=>setEditor(editorInstance),element=editor==null?void 0:editor.element;if(editor){const toolbarElement=element.parentElement.querySelector("trix-toolbar"),blockCodeButton=toolbarElement.querySelector("[data-trix-attribute=code]");let inlineCodeButton=toolbarElement.querySelector("[data-trix-attribute=inlineCode]");if(!inlineCodeButton){inlineCodeButton=blockCodeButton.cloneNode(true);blockCodeButton.hidden=true;inlineCodeButton.dataset.trixAttribute="inlineCode";blockCodeButton.insertAdjacentElement("afterend",inlineCodeButton)}if(toolbarBottom)editor.element.after(toolbarElement);focus?(document.addEventListener("trix-focus",useFocus),document.addEventListener("trix-blur",useFocus),useFocus()):null;document.addEventListener("trix-focus",inlineFocus);document.addEventListener("trix-blur",inlineFocus)}useEffect((()=>{if(!editor||!template)return;editor.loadHTML("");editor.setSelectedRange([0,0]);editor.insertHTML(template)}),[editor,template]);useEffect((()=>{if(!element)return;element.addEventListener("click",(({target:target})=>{const trixEditorContainer=target.closest(".pb_rich_text_editor_kit");if(!trixEditorContainer)return;const anchorElement=target.closest("a");if(!anchorElement)return;if(anchorElement.hasAttribute("href"))window.open(anchorElement.href)}))}),[element]);const richTextEditorClass="pb_rich_text_editor_kit",simpleClass=simple?"simple":"",focusClass=focus?"focus-editor-targets":"",stickyClass=sticky?"sticky":"",inlineClass=inline?"inline":"",toolbarBottomClass=toolbarBottom?"toolbar-bottom":"";let css4=classnames(globalProps(props,{maxWidth:maxWidth}),className);css4=classnames(richTextEditorClass,simpleClass,focusClass,stickyClass,inlineClass,toolbarBottomClass,css4);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:css4,children:advancedEditor?jsxs("div",{className:classnames("pb_rich_text_editor_advanced_container",{["toolbar-active"]:advancedEditorToolbar}),children:[advancedEditorToolbar&&jsx$1(EditorToolbar,{editor:advancedEditor,extensions:extensions}),children]}):jsx$1(TrixEditor,{className:"",fileParamName:name2,mergeTags:[],onChange:onChange2,onEditorReady:handleOnEditorReady,placeholder:placeholder,value:value})})};const createOptions=options2=>options2.map(((option,index2)=>jsx$1("option",{disabled:option.disabled,value:option.value,children:option.text||option.value},index2)));const Select$1=({aria:aria={},blankSelection:blankSelection,children:children,className:className,compact:compact=false,data:data={},disabled:disabled=false,error:error,label:label,htmlOptions:htmlOptions={},inline:inline=false,multiple:multiple=false,name:name2,onChange:onChange2=()=>void 0,options:options2=[],required:required=false,showArrow:showArrow=false,value:value,...props},ref)=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const optionsList=createOptions(options2);const inlineClass=inline?"inline":null;const compactClass=compact?"compact":null;const classes=classnames(buildCss("pb_select"),globalProps({...props,marginBottom:props.marginBottom||props.margin||"sm"}),className,inlineClass,{show_arrow:showArrow},compactClass);const selectWrapperClass=classnames(buildCss("pb_select_kit_wrapper"),{error:error},className);const selectBody=(()=>{if(children)return children;return jsxs("select",{...htmlOptions,...domSafeProps(props),disabled:disabled,id:name2,multiple:multiple,name:name2,onChange:onChange2,ref:ref,required:required,value:value,children:[blankSelection&&jsx$1("option",{value:"",children:blankSelection}),optionsList]})})();return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[label&&jsx$1("label",{className:"pb_select_kit_label",htmlFor:name2,children:jsx$1(Caption,{text:label})}),jsxs("label",{className:selectWrapperClass,htmlFor:name2,children:[selectBody,multiple!==true?jsx$1(Icon,{className:"pb_select_kit_caret",fixedWidth:true,icon:"angle-down"}):null,error&&jsx$1(Body$1,{status:"negative",text:error})]})]})};const Select$2=forwardRef(Select$1);const SelectableListItem=({aria:aria={},checked:checked=false,children:children,className:className,data:data={},dragId:dragId,dragHandle:dragHandle=true,defaultChecked:defaultChecked,htmlOptions:htmlOptions={},id:id,label:label,text:text2="",name:name2="",value:value="",variant:variant="checkbox",onChange:onChange2=()=>{},...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_list_item_kit"),globalProps(props),className);const initialCheckedState=checked;const[checkedState,setCheckedState]=useState(initialCheckedState);const handleChecked=event2=>{onChange2(event2);setCheckedState(event2.target.checked)};return jsx$1(ListItem,{...props,className:classnames(checkedState?"checked_item":"",className),dragHandle:dragHandle,dragId:dragId,children:jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[variant=="checkbox"&&jsxs(Fragment,{children:[jsx$1(Checkbox,{checked:checkedState,id:id,name:name2,onChange:handleChecked,text:label||text2&&false,type:"checkbox",value:value,...props}),children]}),variant=="radio"&&jsxs(Fragment,{children:[jsx$1(Radio$1,{defaultChecked:defaultChecked,id:id,label:label,name:name2,onChange:onChange2,text:label,type:"radio",value:value,...domSafeProps(props)}),children]}),variant!=="checkbox"&&variant!=="radio"&&{children:children}]})})};const SelectableList=props=>{var _a,_b;const{aria:aria={},children:children,className:className,data:data={},enableDrag:enableDrag=false,htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_selectable_list_kit"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const isRadio=props.variant==="radio";const defaultCheckedRadioValue=(_b=(_a=children.filter((item=>item.props.defaultChecked))[0])==null?void 0:_a.props)==null?void 0:_b.value;const[selectedRadioValue,setSelectedRadioValue]=useState(defaultCheckedRadioValue);const onChangeRadioValue=({target:target})=>{setSelectedRadioValue(target.value)};let selectableListItems=children;if(isRadio){selectableListItems=children.map((({props:props2})=>createElement(SelectableListItem,{...props2,className:classnames(selectedRadioValue===props2.value?"checked_item":"",props2.className),key:props2.value,onChange:evt=>{var _a2;onChangeRadioValue(evt);(_a2=props2==null?void 0:props2.onChange)==null?void 0:_a2.call(props2,evt)}})))}return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(List,{enableDrag:enableDrag,variant:props.variant,children:selectableListItems})})};SelectableList.Item=SelectableListItem;const Textarea=({aria:aria={},characterCount:characterCount,className:className,children:children,data:data={},disabled:disabled,htmlOptions:htmlOptions={},inline:inline=false,resize:resize="none",error:error,label:label,maxCharacters:maxCharacters,name:name2,onChange:onChange2=()=>{},placeholder:placeholder,required:required,rows:rows=4,value:value,...props})=>{const ref=useRef(null);useEffect((()=>{if(ref.current&&resize==="auto"){PbTextarea.addMatch(ref.current)}}));const errorClass=error?"error":null;const inlineClass=inline?"inline":"";const resizeClass=`resize_${resize}`;const classes=classnames("pb_textarea_kit",errorClass,inlineClass,resizeClass,globalProps(props),className);const noCount=typeof characterCount!=="undefined";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const checkIfZero=characterCount2=>characterCount2==0?characterCount2.toString():characterCount2;const characterCounter=()=>maxCharacters&&characterCount?`${checkIfZero(characterCount)} / ${maxCharacters}`:`${checkIfZero(characterCount)}`;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[jsx$1(Caption,{text:label}),children||jsx$1("textarea",{className:"pb_textarea_kit",disabled:disabled,name:name2,onChange:onChange2,placeholder:placeholder,ref:ref,required:required,rows:rows,value:value,...props}),error?jsx$1(Fragment,{children:characterCount?jsxs(Flex,{spacing:"between",vertical:"center",children:[jsx$1(FlexItem,{children:jsx$1(Body$1,{margin:"none",status:"negative",text:error})}),jsx$1(FlexItem,{children:jsx$1(Caption,{margin:"none",size:"xs",text:characterCounter()})})]}):jsx$1(Body$1,{status:"negative",text:error})}):noCount&&jsx$1(Caption,{margin:"none",size:"xs",text:characterCounter()})]})};const Textarea$1=forwardRef(Textarea);const TimelineItem=({className:className,children:children,date:date,htmlOptions:htmlOptions={},icon:icon="user",iconColor:iconColor="default",lineStyle:lineStyle="solid",...props})=>{const timelineItemCss=buildCss("pb_timeline_item_kit",lineStyle);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,className:classnames(timelineItemCss,globalProps(props),className),children:[jsx$1("div",{className:"pb_timeline_item_left_block",children:date&&jsx$1(DateStacked,{align:"center",date:date,size:"sm"})}),jsxs("div",{className:"pb_timeline_item_step",children:[jsx$1(IconCircle,{icon:icon,size:"xs",variant:iconColor}),jsx$1("div",{className:"pb_timeline_item_connector"})]}),jsx$1("div",{className:"pb_timeline_item_right_block",children:children})]})};const Timeline=({aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id,orientation:orientation="horizontal",showDate:showDate=false,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dateStyle=showDate===true?"_with_date":"";const timelineCss=buildCss("pb_timeline_kit",`_${orientation}`,dateStyle);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(timelineCss,globalProps(props),className),id:id,children:children})};Timeline.Item=TimelineItem;function t(t2){return t2.split("-")[1]}function e(t2){return"y"===t2?"height":"width"}function n$1(t2){return t2.split("-")[0]}function o$1(t2){return["top","bottom"].includes(n$1(t2))?"x":"y"}function i$2(i,r2,a2){let{reference:l2,floating:s2}=i;const c2=l2.x+l2.width/2-s2.width/2,f2=l2.y+l2.height/2-s2.height/2,m2=o$1(r2),u2=e(m2),g2=l2[u2]/2-s2[u2]/2,d2="x"===m2;let p2;switch(n$1(r2)){case"top":p2={x:c2,y:l2.y-s2.height};break;case"bottom":p2={x:c2,y:l2.y+l2.height};break;case"right":p2={x:l2.x+l2.width,y:f2};break;case"left":p2={x:l2.x-s2.width,y:f2};break;default:p2={x:l2.x,y:l2.y}}switch(t(r2)){case"start":p2[m2]-=g2*(a2&&d2?-1:1);break;case"end":p2[m2]+=g2*(a2&&d2?-1:1)}return p2}const r$1=async(t2,e2,n2)=>{const{placement:o2="bottom",strategy:r2="absolute",middleware:a2=[],platform:l2}=n2,s2=a2.filter(Boolean),c2=await(null==l2.isRTL?void 0:l2.isRTL(e2));let f2=await l2.getElementRects({reference:t2,floating:e2,strategy:r2}),{x:m2,y:u2}=i$2(f2,o2,c2),g2=o2,d2={},p2=0;for(let n3=0;n3<s2.length;n3++){const{name:a3,fn:h2}=s2[n3],{x:y2,y:x2,data:w2,reset:v2}=await h2({x:m2,y:u2,initialPlacement:o2,placement:g2,strategy:r2,middlewareData:d2,rects:f2,platform:l2,elements:{reference:t2,floating:e2}});m2=null!=y2?y2:m2,u2=null!=x2?x2:u2,d2={...d2,[a3]:{...d2[a3],...w2}},v2&&p2<=50&&(p2++,"object"==typeof v2&&(v2.placement&&(g2=v2.placement),v2.rects&&(f2=true===v2.rects?await l2.getElementRects({reference:t2,floating:e2,strategy:r2}):v2.rects),({x:m2,y:u2}=i$2(f2,g2,c2))),n3=-1)}return{x:m2,y:u2,placement:g2,strategy:r2,middlewareData:d2}};function a$1(t2){return"number"!=typeof t2?function(t3){return{top:0,right:0,bottom:0,left:0,...t3}}(t2):{top:t2,right:t2,bottom:t2,left:t2}}function l$1(t2){return{...t2,top:t2.y,left:t2.x,right:t2.x+t2.width,bottom:t2.y+t2.height}}async function s$1(t2,e2){var n2;void 0===e2&&(e2={});const{x:o2,y:i,platform:r2,rects:s2,elements:c2,strategy:f2}=t2,{boundary:m2="clippingAncestors",rootBoundary:u2="viewport",elementContext:g2="floating",altBoundary:d2=false,padding:p2=0}=e2,h2=a$1(p2),y2=c2[d2?"floating"===g2?"reference":"floating":g2],x2=l$1(await r2.getClippingRect({element:null==(n2=await(null==r2.isElement?void 0:r2.isElement(y2)))||n2?y2:y2.contextElement||await(null==r2.getDocumentElement?void 0:r2.getDocumentElement(c2.floating)),boundary:m2,rootBoundary:u2,strategy:f2})),w2="floating"===g2?{...s2.floating,x:o2,y:i}:s2.reference,v2=await(null==r2.getOffsetParent?void 0:r2.getOffsetParent(c2.floating)),b2=await(null==r2.isElement?void 0:r2.isElement(v2))&&await(null==r2.getScale?void 0:r2.getScale(v2))||{x:1,y:1},A2=l$1(r2.convertOffsetParentRelativeRectToViewportRelativeRect?await r2.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w2,offsetParent:v2,strategy:f2}):w2);return{top:(x2.top-A2.top+h2.top)/b2.y,bottom:(A2.bottom-x2.bottom+h2.bottom)/b2.y,left:(x2.left-A2.left+h2.left)/b2.x,right:(A2.right-x2.right+h2.right)/b2.x}}const c$1=Math.min,f$1=Math.max;function m$1(t2,e2,n2){return f$1(t2,c$1(e2,n2))}const u$1=n2=>({name:"arrow",options:n2,async fn(i){const{element:r2,padding:l2=0}=n2||{},{x:s2,y:c2,placement:f2,rects:u2,platform:g2,elements:d2}=i;if(null==r2)return{};const p2=a$1(l2),h2={x:s2,y:c2},y2=o$1(f2),x2=e(y2),w2=await g2.getDimensions(r2),v2="y"===y2,b2=v2?"top":"left",A2=v2?"bottom":"right",R2=v2?"clientHeight":"clientWidth",P=u2.reference[x2]+u2.reference[y2]-h2[y2]-u2.floating[x2],E2=h2[y2]-u2.reference[y2],T2=await(null==g2.getOffsetParent?void 0:g2.getOffsetParent(r2));let D2=T2?T2[R2]:0;D2&&await(null==g2.isElement?void 0:g2.isElement(T2))||(D2=d2.floating[R2]||u2.floating[x2]);const L2=P/2-E2/2,k2=p2[b2],O2=D2-w2[x2]-p2[A2],B=D2/2-w2[x2]/2+L2,C2=m$1(k2,B,O2),H2=null!=t(f2)&&B!=C2&&u2.reference[x2]/2-(B<k2?p2[b2]:p2[A2])-w2[x2]/2<0;return{[y2]:h2[y2]-(H2?B<k2?k2-B:O2-B:0),data:{[y2]:C2,centerOffset:B-C2}}}}),g$1=["top","right","bottom","left"];g$1.reduce(((t2,e2)=>t2.concat(e2,e2+"-start",e2+"-end")),[]);const p$1={left:"right",right:"left",bottom:"top",top:"bottom"};function h$1(t2){return t2.replace(/left|right|bottom|top/g,(t3=>p$1[t3]))}function y$1(n2,i,r2){void 0===r2&&(r2=false);const a2=t(n2),l2=o$1(n2),s2=e(l2);let c2="x"===l2?a2===(r2?"end":"start")?"right":"left":"start"===a2?"bottom":"top";return i.reference[s2]>i.floating[s2]&&(c2=h$1(c2)),{main:c2,cross:h$1(c2)}}const x$1={start:"end",end:"start"};function w$2(t2){return t2.replace(/start|end/g,(t3=>x$1[t3]))}const b$1=function(e2){return void 0===e2&&(e2={}),{name:"flip",options:e2,async fn(o2){var i;const{placement:r2,middlewareData:a2,rects:l2,initialPlacement:c2,platform:f2,elements:m2}=o2,{mainAxis:u2=true,crossAxis:g2=true,fallbackPlacements:d2,fallbackStrategy:p2="bestFit",fallbackAxisSideDirection:x2="none",flipAlignment:v2=true,...b2}=e2,A2=n$1(r2),R2=n$1(c2)===c2,P=await(null==f2.isRTL?void 0:f2.isRTL(m2.floating)),E2=d2||(R2||!v2?[h$1(c2)]:function(t2){const e3=h$1(t2);return[w$2(t2),e3,w$2(e3)]}(c2));d2||"none"===x2||E2.push(...function(e3,o3,i2,r3){const a3=t(e3);let l3=function(t2,e4,n2){const o4=["left","right"],i3=["right","left"],r4=["top","bottom"],a4=["bottom","top"];switch(t2){case"top":case"bottom":return n2?e4?i3:o4:e4?o4:i3;case"left":case"right":return e4?r4:a4;default:return[]}}(n$1(e3),"start"===i2,r3);return a3&&(l3=l3.map((t2=>t2+"-"+a3)),o3&&(l3=l3.concat(l3.map(w$2)))),l3}(c2,v2,x2,P));const T2=[c2,...E2],D2=await s$1(o2,b2),L2=[];let k2=(null==(i=a2.flip)?void 0:i.overflows)||[];if(u2&&L2.push(D2[A2]),g2){const{main:t2,cross:e3}=y$1(r2,l2,P);L2.push(D2[t2],D2[e3])}if(k2=[...k2,{placement:r2,overflows:L2}],!L2.every((t2=>t2<=0))){var O2,B;const t2=((null==(O2=a2.flip)?void 0:O2.index)||0)+1,e3=T2[t2];if(e3)return{data:{index:t2,overflows:k2},reset:{placement:e3}};let n2=null==(B=k2.filter((t3=>t3.overflows[0]<=0)).sort(((t3,e4)=>t3.overflows[1]-e4.overflows[1]))[0])?void 0:B.placement;if(!n2)switch(p2){case"bestFit":{var C2;const t3=null==(C2=k2.map((t4=>[t4.placement,t4.overflows.filter((t5=>t5>0)).reduce(((t5,e4)=>t5+e4),0)])).sort(((t4,e4)=>t4[1]-e4[1]))[0])?void 0:C2[0];t3&&(n2=t3);break}case"initialPlacement":n2=c2}if(r2!==n2)return{reset:{placement:n2}}}return{}}}};const D$1=function(e2){return{name:"offset",options:e2,async fn(i){const{x:r2,y:a2}=i,l2=await async function(e3,i2){const{placement:r3,platform:a3,elements:l3}=e3,s2=await(null==a3.isRTL?void 0:a3.isRTL(l3.floating)),c2=n$1(r3),f2=t(r3),m2="x"===o$1(r3),u2=["left","top"].includes(c2)?-1:1,g2=s2&&m2?-1:1,d2=i2;let{mainAxis:p2,crossAxis:h2,alignmentAxis:y2}={mainAxis:d2,crossAxis:0,alignmentAxis:null};return f2&&"number"==typeof y2&&(h2="end"===f2?-1*y2:y2),m2?{x:h2*g2,y:p2*u2}:{x:p2*u2,y:h2*g2}}(i,e2);return{x:r2+l2.x,y:a2+l2.y,data:l2}}}};function L$1(t2){return"x"===t2?"y":"x"}const k=function(t2){return void 0===t2&&(t2={}),{name:"shift",options:t2,async fn(e2){const{x:i,y:r2,placement:a2}=e2,{mainAxis:l2=true,crossAxis:c2=false,limiter:f2={fn:t3=>{let{x:e3,y:n2}=t3;return{x:e3,y:n2}}},...u2}=t2,g2={x:i,y:r2},d2=await s$1(e2,u2),p2=o$1(n$1(a2)),h2=L$1(p2);let y2=g2[p2],x2=g2[h2];if(l2){const t3="y"===p2?"bottom":"right";y2=m$1(y2+d2["y"===p2?"top":"left"],y2,y2-d2[t3])}if(c2){const t3="y"===h2?"bottom":"right";x2=m$1(x2+d2["y"===h2?"top":"left"],x2,x2-d2[t3])}const w2=f2.fn({...e2,[p2]:y2,[h2]:x2});return{...w2,data:{x:w2.x-i,y:w2.y-r2}}}}};function n(t2){var e2;return(null==(e2=t2.ownerDocument)?void 0:e2.defaultView)||window}function o(t2){return n(t2).getComputedStyle(t2)}function i$1(t2){return t2 instanceof n(t2).Node}function r(t2){return i$1(t2)?(t2.nodeName||"").toLowerCase():""}let l;function c(){if(l)return l;const t2=navigator.userAgentData;return t2&&Array.isArray(t2.brands)?(l=t2.brands.map((t3=>t3.brand+"/"+t3.version)).join(" "),l):navigator.userAgent}function s(t2){return t2 instanceof n(t2).HTMLElement}function f(t2){return t2 instanceof n(t2).Element}function u(t2){if("undefined"==typeof ShadowRoot)return false;return t2 instanceof n(t2).ShadowRoot||t2 instanceof ShadowRoot}function a(t2){const{overflow:e2,overflowX:n2,overflowY:i,display:r2}=o(t2);return/auto|scroll|overlay|hidden|clip/.test(e2+i+n2)&&!["inline","contents"].includes(r2)}function d(t2){return["table","td","th"].includes(r(t2))}function h(t2){const e2=/firefox/i.test(c()),n2=o(t2),i=n2.backdropFilter||n2.WebkitBackdropFilter;return"none"!==n2.transform||"none"!==n2.perspective||!!i&&"none"!==i||e2&&"filter"===n2.willChange||e2&&!!n2.filter&&"none"!==n2.filter||["transform","perspective"].some((t3=>n2.willChange.includes(t3)))||["paint","layout","strict","content"].some((t3=>{const e3=n2.contain;return null!=e3&&e3.includes(t3)}))}function p(){return/^((?!chrome|android).)*safari/i.test(c())}function g(t2){return["html","body","#document"].includes(r(t2))}const m=Math.min,y=Math.max,x=Math.round;function w$1(t2){const e2=o(t2);let n2=parseFloat(e2.width),i=parseFloat(e2.height);const r2=s(t2),l2=r2?t2.offsetWidth:n2,c2=r2?t2.offsetHeight:i,f2=x(n2)!==l2||x(i)!==c2;return f2&&(n2=l2,i=c2),{width:n2,height:i,fallback:f2}}function v(t2){return f(t2)?t2:t2.contextElement}const b={x:1,y:1};function L(t2){const e2=v(t2);if(!s(e2))return b;const n2=e2.getBoundingClientRect(),{width:o2,height:i,fallback:r2}=w$1(e2);let l2=(r2?x(n2.width):n2.width)/o2,c2=(r2?x(n2.height):n2.height)/i;return l2&&Number.isFinite(l2)||(l2=1),c2&&Number.isFinite(c2)||(c2=1),{x:l2,y:c2}}function E(e2,o2,i,r2){var l2,c2;void 0===o2&&(o2=false),void 0===i&&(i=false);const s2=e2.getBoundingClientRect(),u2=v(e2);let a2=b;o2&&(r2?f(r2)&&(a2=L(r2)):a2=L(e2));const d2=u2?n(u2):window,h2=p()&&i;let g2=(s2.left+(h2&&(null==(l2=d2.visualViewport)?void 0:l2.offsetLeft)||0))/a2.x,m2=(s2.top+(h2&&(null==(c2=d2.visualViewport)?void 0:c2.offsetTop)||0))/a2.y,y2=s2.width/a2.x,x2=s2.height/a2.y;if(u2){const t2=n(u2),e3=r2&&f(r2)?n(r2):r2;let o3=t2.frameElement;for(;o3&&r2&&e3!==t2;){const t3=L(o3),e4=o3.getBoundingClientRect(),i2=getComputedStyle(o3);e4.x+=(o3.clientLeft+parseFloat(i2.paddingLeft))*t3.x,e4.y+=(o3.clientTop+parseFloat(i2.paddingTop))*t3.y,g2*=t3.x,m2*=t3.y,y2*=t3.x,x2*=t3.y,g2+=e4.x,m2+=e4.y,o3=n(o3).frameElement}}return l$1({width:y2,height:x2,x:g2,y:m2})}function T(t2){return((i$1(t2)?t2.ownerDocument:t2.document)||window.document).documentElement}function R(t2){return f(t2)?{scrollLeft:t2.scrollLeft,scrollTop:t2.scrollTop}:{scrollLeft:t2.pageXOffset,scrollTop:t2.pageYOffset}}function C(t2){return E(T(t2)).left+R(t2).scrollLeft}function F(t2){if("html"===r(t2))return t2;const e2=t2.assignedSlot||t2.parentNode||u(t2)&&t2.host||T(t2);return u(e2)?e2.host:e2}function W(t2){const e2=F(t2);return g(e2)?e2.ownerDocument.body:s(e2)&&a(e2)?e2:W(e2)}function D(t2,e2){var o2;void 0===e2&&(e2=[]);const i=W(t2),r2=i===(null==(o2=t2.ownerDocument)?void 0:o2.body),l2=n(i);return r2?e2.concat(l2,l2.visualViewport||[],a(i)?i:[]):e2.concat(i,D(i))}function S(e2,i,r2){let l2;if("viewport"===i)l2=function(t2,e3){const o2=n(t2),i2=T(t2),r3=o2.visualViewport;let l3=i2.clientWidth,c3=i2.clientHeight,s2=0,f2=0;if(r3){l3=r3.width,c3=r3.height;const t3=p();(!t3||t3&&"fixed"===e3)&&(s2=r3.offsetLeft,f2=r3.offsetTop)}return{width:l3,height:c3,x:s2,y:f2}}(e2,r2);else if("document"===i)l2=function(t2){const e3=T(t2),n2=R(t2),i2=t2.ownerDocument.body,r3=y(e3.scrollWidth,e3.clientWidth,i2.scrollWidth,i2.clientWidth),l3=y(e3.scrollHeight,e3.clientHeight,i2.scrollHeight,i2.clientHeight);let c3=-n2.scrollLeft+C(t2);const s2=-n2.scrollTop;return"rtl"===o(i2).direction&&(c3+=y(e3.clientWidth,i2.clientWidth)-r3),{width:r3,height:l3,x:c3,y:s2}}(T(e2));else if(f(i))l2=function(t2,e3){const n2=E(t2,true,"fixed"===e3),o2=n2.top+t2.clientTop,i2=n2.left+t2.clientLeft,r3=s(t2)?L(t2):{x:1,y:1};return{width:t2.clientWidth*r3.x,height:t2.clientHeight*r3.y,x:i2*r3.x,y:o2*r3.y}}(i,r2);else{const t2={...i};if(p()){var c2,u2;const o2=n(e2);t2.x-=(null==(c2=o2.visualViewport)?void 0:c2.offsetLeft)||0,t2.y-=(null==(u2=o2.visualViewport)?void 0:u2.offsetTop)||0}l2=t2}return l$1(l2)}function A(t2,e2){return s(t2)&&"fixed"!==o(t2).position?e2?e2(t2):t2.offsetParent:null}function H(t2,e2){const i=n(t2);if(!s(t2))return i;let l2=A(t2,e2);for(;l2&&d(l2)&&"static"===o(l2).position;)l2=A(l2,e2);return l2&&("html"===r(l2)||"body"===r(l2)&&"static"===o(l2).position&&!h(l2))?i:l2||function(t3){let e3=F(t3);for(;s(e3)&&!g(e3);){if(h(e3))return e3;e3=F(e3)}return null}(t2)||i}function V(t2,e2,n2){const o2=s(e2),i=T(e2),l2=E(t2,true,"fixed"===n2,e2);let c2={scrollLeft:0,scrollTop:0};const f2={x:0,y:0};if(o2||!o2&&"fixed"!==n2)if(("body"!==r(e2)||a(i))&&(c2=R(e2)),s(e2)){const t3=E(e2,true);f2.x=t3.x+e2.clientLeft,f2.y=t3.y+e2.clientTop}else i&&(f2.x=C(i));return{x:l2.left+c2.scrollLeft-f2.x,y:l2.top+c2.scrollTop-f2.y,width:l2.width,height:l2.height}}const O={getClippingRect:function(t2){let{element:e2,boundary:n2,rootBoundary:i,strategy:l2}=t2;const c2="clippingAncestors"===n2?function(t3,e3){const n3=e3.get(t3);if(n3)return n3;let i2=D(t3).filter((t4=>f(t4)&&"body"!==r(t4))),l3=null;const c3="fixed"===o(t3).position;let s3=c3?F(t3):t3;for(;f(s3)&&!g(s3);){const t4=o(s3),e4=h(s3);"fixed"===t4.position?l3=null:(c3?e4||l3:e4||"static"!==t4.position||!l3||!["absolute","fixed"].includes(l3.position))?l3=t4:i2=i2.filter((t5=>t5!==s3)),s3=F(s3)}return e3.set(t3,i2),i2}(e2,this._c):[].concat(n2),s2=[...c2,i],u2=s2[0],a2=s2.reduce(((t3,n3)=>{const o2=S(e2,n3,l2);return t3.top=y(o2.top,t3.top),t3.right=m(o2.right,t3.right),t3.bottom=m(o2.bottom,t3.bottom),t3.left=y(o2.left,t3.left),t3}),S(e2,u2,l2));return{width:a2.right-a2.left,height:a2.bottom-a2.top,x:a2.left,y:a2.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t2){let{rect:e2,offsetParent:n2,strategy:o2}=t2;const i=s(n2),l2=T(n2);if(n2===l2)return e2;let c2={scrollLeft:0,scrollTop:0},f2={x:1,y:1};const u2={x:0,y:0};if((i||!i&&"fixed"!==o2)&&(("body"!==r(n2)||a(l2))&&(c2=R(n2)),s(n2))){const t3=E(n2);f2=L(n2),u2.x=t3.x+n2.clientLeft,u2.y=t3.y+n2.clientTop}return{width:e2.width*f2.x,height:e2.height*f2.y,x:e2.x*f2.x-c2.scrollLeft*f2.x+u2.x,y:e2.y*f2.y-c2.scrollTop*f2.y+u2.y}},isElement:f,getDimensions:function(t2){return w$1(t2)},getOffsetParent:H,getDocumentElement:T,getScale:L,async getElementRects(t2){let{reference:e2,floating:n2,strategy:o2}=t2;const i=this.getOffsetParent||H,r2=this.getDimensions;return{reference:V(e2,await i(n2),o2),floating:{x:0,y:0,...await r2(n2)}}},getClientRects:t2=>Array.from(t2.getClientRects()),isRTL:t2=>"rtl"===o(t2).direction};const z=(t2,n2,o2)=>{const i=new Map,r2={platform:O,...o2},l2={...r2.platform,_c:i};return r$1(t2,n2,{...r2,platform:l2})};const arrow$1=options2=>{const{element:element,padding:padding}=options2;function isRef(value){return Object.prototype.hasOwnProperty.call(value,"current")}return{name:"arrow",options:options2,fn(args){if(isRef(element)){if(element.current!=null){return u$1({element:element.current,padding:padding}).fn(args)}return{}}else if(element){return u$1({element:element,padding:padding}).fn(args)}return{}}}};var index$2=typeof document!=="undefined"?useLayoutEffect:useEffect;function deepEqual(a2,b2){if(a2===b2){return true}if(typeof a2!==typeof b2){return false}if(typeof a2==="function"&&a2.toString()===b2.toString()){return true}let length2,i,keys;if(a2&&b2&&typeof a2=="object"){if(Array.isArray(a2)){length2=a2.length;if(length2!=b2.length)return false;for(i=length2;i--!==0;){if(!deepEqual(a2[i],b2[i])){return false}}return true}keys=Object.keys(a2);length2=keys.length;if(length2!==Object.keys(b2).length){return false}for(i=length2;i--!==0;){if(!Object.prototype.hasOwnProperty.call(b2,keys[i])){return false}}for(i=length2;i--!==0;){const key=keys[i];if(key==="_owner"&&a2.$$typeof){continue}if(!deepEqual(a2[key],b2[key])){return false}}return true}return a2!==a2&&b2!==b2}function useLatestRef$1(value){const ref=React$1.useRef(value);index$2((()=>{ref.current=value}));return ref}function useFloating$1(options2){if(options2===void 0){options2={}}const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware2=[],platform:platform,whileElementsMounted:whileElementsMounted,open:open}=options2;const[data,setData]=React$1.useState({x:null,y:null,strategy:strategy,placement:placement,middlewareData:{},isPositioned:false});const[latestMiddleware,setLatestMiddleware]=React$1.useState(middleware2);if(!deepEqual(latestMiddleware,middleware2)){setLatestMiddleware(middleware2)}const referenceRef=React$1.useRef(null);const floatingRef=React$1.useRef(null);const dataRef=React$1.useRef(data);const whileElementsMountedRef=useLatestRef$1(whileElementsMounted);const platformRef=useLatestRef$1(platform);const[reference,_setReference]=React$1.useState(null);const[floating,_setFloating]=React$1.useState(null);const setReference=React$1.useCallback((node2=>{if(referenceRef.current!==node2){referenceRef.current=node2;_setReference(node2)}}),[]);const setFloating=React$1.useCallback((node2=>{if(floatingRef.current!==node2){floatingRef.current=node2;_setFloating(node2)}}),[]);const update2=React$1.useCallback((()=>{if(!referenceRef.current||!floatingRef.current){return}const config={placement:placement,strategy:strategy,middleware:latestMiddleware};if(platformRef.current){config.platform=platformRef.current}z(referenceRef.current,floatingRef.current,config).then((data2=>{const fullData={...data2,isPositioned:true};if(isMountedRef.current&&!deepEqual(dataRef.current,fullData)){dataRef.current=fullData;ReactDOM.flushSync((()=>{setData(fullData)}))}}))}),[latestMiddleware,placement,strategy,platformRef]);index$2((()=>{if(open===false&&dataRef.current.isPositioned){dataRef.current.isPositioned=false;setData((data2=>({...data2,isPositioned:false})))}}),[open]);const isMountedRef=React$1.useRef(false);index$2((()=>{isMountedRef.current=true;return()=>{isMountedRef.current=false}}),[]);index$2((()=>{if(reference&&floating){if(whileElementsMountedRef.current){return whileElementsMountedRef.current(reference,floating,update2)}else{update2()}}}),[reference,floating,update2,whileElementsMountedRef]);const refs=React$1.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference:setReference,setFloating:setFloating})),[setReference,setFloating]);const elements=React$1.useMemo((()=>({reference:reference,floating:floating})),[reference,floating]);return React$1.useMemo((()=>({...data,update:update2,refs:refs,elements:elements,reference:setReference,floating:setFloating})),[data,update2,refs,elements,setReference,setFloating])}var index$1=typeof document!=="undefined"?useLayoutEffect:useEffect;let serverHandoffComplete=false;let count=0;const genId=()=>"floating-ui-"+count++;function useFloatingId(){const[id,setId]=React$1.useState((()=>serverHandoffComplete?genId():void 0));index$1((()=>{if(id==null){setId(genId())}}),[]);React$1.useEffect((()=>{if(!serverHandoffComplete){serverHandoffComplete=true}}),[]);return id}const useReactId=React$1["useId".toString()];const useId=useReactId||useFloatingId;function createPubSub(){const map=new Map;return{emit(event2,data){var _map$get;(_map$get=map.get(event2))==null?void 0:_map$get.forEach((handler=>handler(data)))},on(event2,listener){map.set(event2,[...map.get(event2)||[],listener])},off(event2,listener){var _map$get2;map.set(event2,((_map$get2=map.get(event2))==null?void 0:_map$get2.filter((l2=>l2!==listener)))||[])}}}const FloatingNodeContext=React$1.createContext(null);const FloatingTreeContext=React$1.createContext(null);const useFloatingParentNodeId=()=>{var _React$useContext;return((_React$useContext=React$1.useContext(FloatingNodeContext))==null?void 0:_React$useContext.id)||null};const useFloatingTree=()=>React$1.useContext(FloatingTreeContext);function getDocument(node2){return(node2==null?void 0:node2.ownerDocument)||document}function getWindow$2(value){return getDocument(value).defaultView||window}function isElement$1(value){return value?value instanceof getWindow$2(value).Element:false}function isShadowRoot$1(node2){if(typeof ShadowRoot==="undefined"){return false}const OwnElement=getWindow$2(node2).ShadowRoot;return node2 instanceof OwnElement||node2 instanceof ShadowRoot}function isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];{values.push("",void 0)}return values.includes(pointerType)}function contains(parent,child){if(!parent||!child){return false}const rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true}if(rootNode&&isShadowRoot$1(rootNode)){let next2=child;while(next2){if(parent===next2){return true}next2=next2.parentNode||next2.host}}return false}function useLatestRef(value){const ref=useRef(value);index$1((()=>{ref.current=value}));return ref}const safePolygonIdentifier="data-floating-ui-safe-polygon";function getDelay(value,prop,pointerType){if(pointerType&&!isMouseLikePointerType(pointerType)){return 0}if(typeof value==="number"){return value}return value==null?void 0:value[prop]}const useHover=function(context,props){if(props===void 0){props={}}const{open:open,onOpenChange:onOpenChange,dataRef:dataRef,events:events,elements:{domReference:domReference,floating:floating},refs:refs}=context;const{enabled:enabled=true,delay:delay=0,handleClose:handleClose=null,mouseOnly:mouseOnly=false,restMs:restMs=0,move:move=true}=props;const tree=useFloatingTree();const parentId=useFloatingParentNodeId();const handleCloseRef=useLatestRef(handleClose);const delayRef=useLatestRef(delay);const pointerTypeRef=React$1.useRef();const timeoutRef=React$1.useRef();const handlerRef=React$1.useRef();const restTimeoutRef=React$1.useRef();const blockMouseMoveRef=React$1.useRef(true);const performedPointerEventsMutationRef=React$1.useRef(false);const unbindMouseMoveRef=React$1.useRef((()=>{}));const isHoverOpen=React$1.useCallback((()=>{var _dataRef$current$open;const type=(_dataRef$current$open=dataRef.current.openEvent)==null?void 0:_dataRef$current$open.type;return(type==null?void 0:type.includes("mouse"))&&type!=="mousedown"}),[dataRef]);React$1.useEffect((()=>{if(!enabled){return}function onDismiss(){clearTimeout(timeoutRef.current);clearTimeout(restTimeoutRef.current);blockMouseMoveRef.current=true}events.on("dismiss",onDismiss);return()=>{events.off("dismiss",onDismiss)}}),[enabled,events]);React$1.useEffect((()=>{if(!enabled||!handleCloseRef.current||!open){return}function onLeave(){if(isHoverOpen()){onOpenChange(false)}}const html=getDocument(floating).documentElement;html.addEventListener("mouseleave",onLeave);return()=>{html.removeEventListener("mouseleave",onLeave)}}),[floating,open,onOpenChange,enabled,handleCloseRef,dataRef,isHoverOpen]);const closeWithDelay=React$1.useCallback((function(runElseBranch){if(runElseBranch===void 0){runElseBranch=true}const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);if(closeDelay&&!handlerRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=setTimeout((()=>onOpenChange(false)),closeDelay)}else if(runElseBranch){clearTimeout(timeoutRef.current);onOpenChange(false)}}),[delayRef,onOpenChange]);const cleanupMouseMoveHandler=React$1.useCallback((()=>{unbindMouseMoveRef.current();handlerRef.current=void 0}),[]);const clearPointerEvents=React$1.useCallback((()=>{if(performedPointerEventsMutationRef.current){const body=getDocument(refs.floating.current).body;body.style.pointerEvents="";body.removeAttribute(safePolygonIdentifier);performedPointerEventsMutationRef.current=false}}),[refs]);React$1.useEffect((()=>{if(!enabled){return}function isClickLikeOpenEvent(){return dataRef.current.openEvent?["click","mousedown"].includes(dataRef.current.openEvent.type):false}function onMouseEnter(event2){clearTimeout(timeoutRef.current);blockMouseMoveRef.current=false;if(mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||restMs>0&&getDelay(delayRef.current,"open")===0){return}dataRef.current.openEvent=event2;const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);if(openDelay){timeoutRef.current=setTimeout((()=>{onOpenChange(true)}),openDelay)}else{onOpenChange(true)}}function onMouseLeave(event2){if(isClickLikeOpenEvent()){return}unbindMouseMoveRef.current();const doc=getDocument(floating);clearTimeout(restTimeoutRef.current);if(handleCloseRef.current){if(!open){clearTimeout(timeoutRef.current)}handlerRef.current=handleCloseRef.current({...context,tree:tree,x:event2.clientX,y:event2.clientY,onClose(){clearPointerEvents();cleanupMouseMoveHandler();closeWithDelay()}});const handler=handlerRef.current;doc.addEventListener("mousemove",handler);unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)};return}const shouldClose=pointerTypeRef.current==="touch"?!contains(floating,event2.relatedTarget):true;if(shouldClose){closeWithDelay()}}function onScrollMouseLeave(event2){if(isClickLikeOpenEvent()){return}handleCloseRef.current==null?void 0:handleCloseRef.current({...context,tree:tree,x:event2.clientX,y:event2.clientY,onClose(){clearPointerEvents();cleanupMouseMoveHandler();closeWithDelay()}})(event2)}if(isElement$1(domReference)){const ref=domReference;open&&ref.addEventListener("mouseleave",onScrollMouseLeave);floating==null?void 0:floating.addEventListener("mouseleave",onScrollMouseLeave);move&&ref.addEventListener("mousemove",onMouseEnter,{once:true});ref.addEventListener("mouseenter",onMouseEnter);ref.addEventListener("mouseleave",onMouseLeave);return()=>{open&&ref.removeEventListener("mouseleave",onScrollMouseLeave);floating==null?void 0:floating.removeEventListener("mouseleave",onScrollMouseLeave);move&&ref.removeEventListener("mousemove",onMouseEnter);ref.removeEventListener("mouseenter",onMouseEnter);ref.removeEventListener("mouseleave",onMouseLeave)}}}),[domReference,floating,enabled,context,mouseOnly,restMs,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,tree,delayRef,handleCloseRef,dataRef]);index$1((()=>{var _handleCloseRef$curre;if(!enabled){return}if(open&&(_handleCloseRef$curre=handleCloseRef.current)!=null&&_handleCloseRef$curre.__options.blockPointerEvents&&isHoverOpen()){const body=getDocument(floating).body;body.setAttribute(safePolygonIdentifier,"");body.style.pointerEvents="none";performedPointerEventsMutationRef.current=true;if(isElement$1(domReference)&&floating){var _tree$nodesRef$curren,_tree$nodesRef$curren2;const ref=domReference;const parentFloating=tree==null?void 0:(_tree$nodesRef$curren=tree.nodesRef.current.find((node2=>node2.id===parentId)))==null?void 0:(_tree$nodesRef$curren2=_tree$nodesRef$curren.context)==null?void 0:_tree$nodesRef$curren2.elements.floating;if(parentFloating){parentFloating.style.pointerEvents=""}ref.style.pointerEvents="auto";floating.style.pointerEvents="auto";return()=>{ref.style.pointerEvents="";floating.style.pointerEvents=""}}}}),[enabled,open,parentId,floating,domReference,tree,handleCloseRef,dataRef,isHoverOpen]);index$1((()=>{if(!open){pointerTypeRef.current=void 0;cleanupMouseMoveHandler();clearPointerEvents()}}),[open,cleanupMouseMoveHandler,clearPointerEvents]);React$1.useEffect((()=>()=>{cleanupMouseMoveHandler();clearTimeout(timeoutRef.current);clearTimeout(restTimeoutRef.current);clearPointerEvents()}),[enabled,cleanupMouseMoveHandler,clearPointerEvents]);return React$1.useMemo((()=>{if(!enabled){return{}}function setPointerRef(event2){pointerTypeRef.current=event2.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(){if(open||restMs===0){return}clearTimeout(restTimeoutRef.current);restTimeoutRef.current=setTimeout((()=>{if(!blockMouseMoveRef.current){onOpenChange(true)}}),restMs)}},floating:{onMouseEnter(){clearTimeout(timeoutRef.current)},onMouseLeave(){events.emit("dismiss",{type:"mouseLeave",data:{returnFocus:false}});closeWithDelay(false)}}}}),[events,enabled,restMs,open,onOpenChange,closeWithDelay])};function getChildren(nodes,id){let allChildren=nodes.filter((node2=>{var _node$context;return node2.parentId===id&&((_node$context=node2.context)==null?void 0:_node$context.open)}));let currentChildren=allChildren;while(currentChildren.length){currentChildren=nodes.filter((node2=>{var _currentChildren;return(_currentChildren=currentChildren)==null?void 0:_currentChildren.some((n2=>{var _node$context2;return node2.parentId===n2.id&&((_node$context2=node2.context)==null?void 0:_node$context2.open)}))}));allChildren=allChildren.concat(currentChildren)}return allChildren}function getTarget(event2){if("composedPath"in event2){return event2.composedPath()[0]}return event2.target}const useInsertionEffect$1=React$1["useInsertionEffect".toString()];const useSafeInsertionEffect=useInsertionEffect$1||(fn=>fn());function useEvent(callback){const ref=React$1.useRef((()=>{}));useSafeInsertionEffect((()=>{ref.current=callback}));return React$1.useCallback((function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return ref.current==null?void 0:ref.current(...args)}),[])}function isPointInPolygon(point,polygon){const[x2,y2]=point;let isInside2=false;const length2=polygon.length;for(let i=0,j=length2-1;i<length2;j=i++){const[xi,yi]=polygon[i]||[0,0];const[xj,yj]=polygon[j]||[0,0];const intersect=yi>=y2!==yj>=y2&&x2<=(xj-xi)*(y2-yi)/(yj-yi)+xi;if(intersect){isInside2=!isInside2}}return isInside2}function isInside(point,rect){return point[0]>=rect.x&&point[0]<=rect.x+rect.width&&point[1]>=rect.y&&point[1]<=rect.y+rect.height}function safePolygon(_temp){let{restMs:restMs=0,buffer:buffer=.5,blockPointerEvents:blockPointerEvents=false}=_temp===void 0?{}:_temp;let timeoutId2;let isInsideRect=false;let hasLanded=false;const fn=_ref3=>{let{x:x2,y:y2,placement:placement,elements:elements,onClose:onClose,nodeId:nodeId,tree:tree}=_ref3;return function onMouseMove(event2){function close(){clearTimeout(timeoutId2);onClose()}clearTimeout(timeoutId2);if(!elements.domReference||!elements.floating||placement==null||x2==null||y2==null){return}const{clientX:clientX,clientY:clientY}=event2;const clientPoint=[clientX,clientY];const target=getTarget(event2);const isLeave=event2.type==="mouseleave";const isOverFloatingEl=contains(elements.floating,target);const isOverReferenceEl=contains(elements.domReference,target);const refRect=elements.domReference.getBoundingClientRect();const rect=elements.floating.getBoundingClientRect();const side=placement.split("-")[0];const cursorLeaveFromRight=x2>rect.right-rect.width/2;const cursorLeaveFromBottom=y2>rect.bottom-rect.height/2;const isOverReferenceRect=isInside(clientPoint,refRect);if(isOverFloatingEl){hasLanded=true;if(!isLeave){return}}if(isOverReferenceEl){hasLanded=false}if(isOverReferenceEl&&!isLeave){hasLanded=true;return}if(isLeave&&isElement$1(event2.relatedTarget)&&contains(elements.floating,event2.relatedTarget)){return}if(tree&&getChildren(tree.nodesRef.current,nodeId).some((_ref22=>{let{context:context}=_ref22;return context==null?void 0:context.open}))){return}if(side==="top"&&y2>=refRect.bottom-1||side==="bottom"&&y2<=refRect.top+1||side==="left"&&x2>=refRect.right-1||side==="right"&&x2<=refRect.left+1){return close()}let rectPoly=[];switch(side){case"top":rectPoly=[[rect.left,refRect.top+1],[rect.left,rect.bottom-1],[rect.right,rect.bottom-1],[rect.right,refRect.top+1]];isInsideRect=clientX>=rect.left&&clientX<=rect.right&&clientY>=rect.top&&clientY<=refRect.top+1;break;case"bottom":rectPoly=[[rect.left,rect.top+1],[rect.left,refRect.bottom-1],[rect.right,refRect.bottom-1],[rect.right,rect.top+1]];isInsideRect=clientX>=rect.left&&clientX<=rect.right&&clientY>=refRect.bottom-1&&clientY<=rect.bottom;break;case"left":rectPoly=[[rect.right-1,rect.bottom],[rect.right-1,rect.top],[refRect.left+1,rect.top],[refRect.left+1,rect.bottom]];isInsideRect=clientX>=rect.left&&clientX<=refRect.left+1&&clientY>=rect.top&&clientY<=rect.bottom;break;case"right":rectPoly=[[refRect.right-1,rect.bottom],[refRect.right-1,rect.top],[rect.left+1,rect.top],[rect.left+1,rect.bottom]];isInsideRect=clientX>=refRect.right-1&&clientX<=rect.right&&clientY>=rect.top&&clientY<=rect.bottom;break}function getPolygon(_ref32){let[x22,y22]=_ref32;const isFloatingWider=rect.width>refRect.width;const isFloatingTaller=rect.height>refRect.height;switch(side){case"top":{const cursorPointOne=[isFloatingWider?x22+buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22+buffer+1];const cursorPointTwo=[isFloatingWider?x22-buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22+buffer+1];const commonPoints=[[rect.left,cursorLeaveFromRight?rect.bottom-buffer:isFloatingWider?rect.bottom-buffer:rect.top],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.bottom-buffer:rect.top:rect.bottom-buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"bottom":{const cursorPointOne=[isFloatingWider?x22+buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22-buffer];const cursorPointTwo=[isFloatingWider?x22-buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22-buffer];const commonPoints=[[rect.left,cursorLeaveFromRight?rect.top+buffer:isFloatingWider?rect.top+buffer:rect.bottom],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.top+buffer:rect.bottom:rect.top+buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"left":{const cursorPointOne=[x22+buffer+1,isFloatingTaller?y22+buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const cursorPointTwo=[x22+buffer+1,isFloatingTaller?y22-buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const commonPoints=[[cursorLeaveFromBottom?rect.right-buffer:isFloatingTaller?rect.right-buffer:rect.left,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.right-buffer:rect.left:rect.right-buffer,rect.bottom]];return[...commonPoints,cursorPointOne,cursorPointTwo]}case"right":{const cursorPointOne=[x22-buffer,isFloatingTaller?y22+buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const cursorPointTwo=[x22-buffer,isFloatingTaller?y22-buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const commonPoints=[[cursorLeaveFromBottom?rect.left+buffer:isFloatingTaller?rect.left+buffer:rect.right,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.left+buffer:rect.right:rect.left+buffer,rect.bottom]];return[cursorPointOne,cursorPointTwo,...commonPoints]}}}const poly=isInsideRect?rectPoly:getPolygon([x2,y2]);if(isInsideRect){return}else if(hasLanded&&!isOverReferenceRect){return close()}if(!isPointInPolygon([clientX,clientY],poly)){close()}else if(restMs&&!hasLanded){timeoutId2=setTimeout(close,restMs)}}};fn.__options={blockPointerEvents:blockPointerEvents};return fn}function useFloating(options2){if(options2===void 0){options2={}}const{open:open=false,onOpenChange:unstable_onOpenChange,nodeId:nodeId}=options2;const position2=useFloating$1(options2);const tree=useFloatingTree();const domReferenceRef=React$1.useRef(null);const dataRef=React$1.useRef({});const events=React$1.useState((()=>createPubSub()))[0];const floatingId=useId();const[domReference,setDomReference]=React$1.useState(null);const setPositionReference=React$1.useCallback((node2=>{const positionReference=isElement$1(node2)?{getBoundingClientRect:()=>node2.getBoundingClientRect(),contextElement:node2}:node2;position2.refs.setReference(positionReference)}),[position2.refs]);const setReference=React$1.useCallback((node2=>{if(isElement$1(node2)||node2===null){domReferenceRef.current=node2;setDomReference(node2)}if(isElement$1(position2.refs.reference.current)||position2.refs.reference.current===null||node2!==null&&!isElement$1(node2)){position2.refs.setReference(node2)}}),[position2.refs]);const refs=React$1.useMemo((()=>({...position2.refs,setReference:setReference,setPositionReference:setPositionReference,domReference:domReferenceRef})),[position2.refs,setReference,setPositionReference]);const elements=React$1.useMemo((()=>({...position2.elements,domReference:domReference})),[position2.elements,domReference]);const onOpenChange=useEvent(unstable_onOpenChange);const context=React$1.useMemo((()=>({...position2,refs:refs,elements:elements,dataRef:dataRef,nodeId:nodeId,floatingId:floatingId,events:events,open:open,onOpenChange:onOpenChange})),[position2,nodeId,floatingId,events,open,onOpenChange,refs,elements]);index$1((()=>{const node2=tree==null?void 0:tree.nodesRef.current.find((node22=>node22.id===nodeId));if(node2){node2.context=context}}));return React$1.useMemo((()=>({...position2,context:context,refs:refs,elements:elements,reference:setReference,positionReference:setPositionReference})),[position2,refs,elements,context,setReference,setPositionReference])}function mergeProps(userProps,propsList,elementKey){const map=new Map;return{...elementKey==="floating"&&{tabIndex:-1},...userProps,...propsList.map((value=>value?value[elementKey]:null)).concat(userProps).reduce(((acc,props)=>{if(!props){return acc}Object.entries(props).forEach((_ref3=>{let[key,value]=_ref3;if(key.indexOf("on")===0){if(!map.has(key)){map.set(key,[])}if(typeof value==="function"){var _map$get;(_map$get=map.get(key))==null?void 0:_map$get.push(value);acc[key]=function(){var _map$get2;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return(_map$get2=map.get(key))==null?void 0:_map$get2.map((fn=>fn(...args))).find((val=>val!==void 0))}}}else{acc[key]=value}}));return acc}),{})}}const useInteractions=function(propsList){if(propsList===void 0){propsList=[]}const deps=propsList;const getReferenceProps=React$1.useCallback((userProps=>mergeProps(userProps,propsList,"reference")),deps);const getFloatingProps=React$1.useCallback((userProps=>mergeProps(userProps,propsList,"floating")),deps);const getItemProps=React$1.useCallback((userProps=>mergeProps(userProps,propsList,"item")),propsList.map((key=>key==null?void 0:key.item)));return React$1.useMemo((()=>({getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps,getItemProps:getItemProps})),[getReferenceProps,getFloatingProps,getItemProps])};const Tooltip$1=forwardRef(((props,ref)=>{const{aria:aria={},className:className,children:children,data:data={},delay:delay=0,htmlOptions:htmlOptions={},icon:icon=null,interaction:interaction=false,placement:preferredPlacement="top",position:position2="absolute",text:text2,showTooltip:showTooltip=true,zIndex:zIndex,...rest}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(globalProps({...rest}),className);const[open,setOpen]=useState(false);const arrowRef=useRef(null);const{context:context,middlewareData:{arrow:{x:arrowX,y:arrowY}={}},placement:placement,refs:refs,strategy:strategy,x:x2,y:y2}=useFloating({strategy:position2,middleware:[arrow$1({element:arrowRef}),b$1({fallbackPlacements:["top","right","bottom","left"],fallbackStrategy:"initialPlacement",flipAlignment:false}),D$1(10),k()],open:open,onOpenChange(open2){if(!showTooltip){return}else{setOpen(open2)}},placement:preferredPlacement});const{getFloatingProps:getFloatingProps}=useInteractions([useHover(context,{delay:delay,handleClose:interaction?safePolygon({blockPointerEvents:false}):null})]);const staticSide={bottom:"top",left:"right",right:"left",top:"bottom"}[placement.split("-")[0]];return jsxs(Fragment,{children:[jsx$1("div",{className:`pb_tooltip_kit ${css4}`,ref:element=>{refs.setReference(element);if(ref){if(typeof ref==="function"){ref(element)}else if(typeof ref==="object"){ref.current=element}}},role:"tooltip_trigger",style:{display:"inline-block"},...ariaProps,...dataProps,...htmlProps,children:children}),open&&jsxs("div",{...getFloatingProps({className:`tooltip_tooltip ${placement} visible`,ref:refs.setFloating,role:"tooltip",style:{position:strategy,top:y2??0,left:x2??0,zIndex:zIndex??0}}),children:[jsxs(Flex,{align:"center",gap:"xs",children:[icon&&jsx$1("i",{className:`pb_icon_kit far fa-${icon} fa-fw`}),text2]}),jsx$1("div",{className:"arrow_bg",ref:arrowRef,style:{position:"absolute",left:arrowX!=null?`${arrowX}px`:"",top:arrowY!=null?`${arrowY}px`:"",[staticSide]:"-5px"}})]})]})}));Tooltip$1.displayName="Tooltip";var treemap$1={exports:{}};(function(module){(function(a2){module.exports?(a2["default"]=a2,module.exports=a2):a2("undefined"!==typeof Highcharts?Highcharts:void 0)})((function(a2){function u2(a3,e2,b2,m2){a3.hasOwnProperty(e2)||(a3[e2]=m2.apply(null,b2),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e2,module:a3[e2]}})))}a2=a2?a2._modules:{};u2(a2,"Series/ColorMapComposition.js",[a2["Core/Series/SeriesRegistry.js"],a2["Core/Utilities.js"]],(function(a3,e2){var b2=a3.seriesTypes.column.prototype,m2=e2.addEvent,l2=e2.defined,n2;(function(a4){function e3(c2){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:c2&&"hover"===c2.state?1:0})}var f2=[];a4.pointMembers={dataLabelOnNull:true,moveToTopOnHover:true,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};a4.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(c2){var h2={};!l2(c2.color)||c2.state&&"normal"!==c2.state||(h2[this.colorProp||"fill"]=c2.color);return h2},pointAttribs:b2.pointAttribs};a4.compose=function(c2){var h2=c2.prototype.pointClass;-1===f2.indexOf(h2)&&(f2.push(h2),m2(h2,"afterSetState",e3));return c2}})(n2||(n2={}));return n2}));u2(a2,"Series/Treemap/TreemapAlgorithmGroup.js",[],(function(){return function(){function a3(a4,b2,m2,l2){this.height=a4;this.width=b2;this.plot=l2;this.startDirection=this.direction=m2;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a5,e2){return Math.max(a5/e2,e2/a5)}}}a3.prototype.addElement=function(a4){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a4;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a4)};a3.prototype.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0};return a3}()}));u2(a2,"Series/DrawPointUtilities.js",[a2["Core/Utilities.js"]],(function(a3){return{draw:function(a4,b2){var e2=b2.animatableAttribs,l2=b2.onComplete,n2=b2.css,q=b2.renderer,k2=a4.series&&a4.series.chart.hasRendered?void 0:a4.series&&a4.series.options.animation,f2=a4.graphic;b2.attribs=b2.attribs||{};b2.attribs["class"]=a4.getClassName();if(a4.shouldDraw())f2||(a4.graphic=f2="text"===b2.shapeType?q.text():q[b2.shapeType](b2.shapeArgs||{}),f2.add(b2.group)),n2&&f2.css(n2),f2.attr(b2.attribs).animate(e2,b2.isNew?false:k2,l2);else if(f2){var c2=function(){a4.graphic=f2=f2&&f2.destroy();"function"===typeof l2&&l2()};Object.keys(e2).length?f2.animate(e2,void 0,(function(){return c2()})):c2()}}}}));u2(a2,"Series/Treemap/TreemapPoint.js",[a2["Series/DrawPointUtilities.js"],a2["Core/Series/SeriesRegistry.js"],a2["Core/Utilities.js"]],(function(a3,e2,b2){var m2=this&&this.__extends||function(){var a4=function(c2,b3){a4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a5,c3){a5.__proto__=c3}||function(a5,c3){for(var g2 in c3)c3.hasOwnProperty(g2)&&(a5[g2]=c3[g2])};return a4(c2,b3)};return function(c2,b3){function h2(){this.constructor=c2}a4(c2,b3);c2.prototype=null===b3?Object.create(b3):(h2.prototype=b3.prototype,new h2)}}(),l2=e2.series.prototype.pointClass,n2=e2.seriesTypes;e2=n2.pie.prototype.pointClass;var q=b2.extend,k2=b2.isNumber,f2=b2.pick;b2=function(c2){function h2(){var a4=null!==c2&&c2.apply(this,arguments)||this;a4.name=void 0;a4.node=void 0;a4.options=void 0;a4.series=void 0;a4.shapeType="rect";a4.value=void 0;return a4}m2(h2,c2);h2.prototype.draw=function(c3){a3.draw(this,c3)};h2.prototype.getClassName=function(){var a4=l2.prototype.getClassName.call(this),c3=this.series,h3=c3.options;this.node.level<=c3.nodeMap[c3.rootNode].level?a4+=" highcharts-above-level":this.node.isLeaf||f2(h3.interactByLeaf,!h3.allowTraversingTree)?this.node.isLeaf||(a4+=" highcharts-internal-node"):a4+=" highcharts-internal-node-interactive";return a4};h2.prototype.isValid=function(){return!(!this.id&&!k2(this.value))};h2.prototype.setState=function(a4){l2.prototype.setState.call(this,a4);this.graphic&&this.graphic.attr({zIndex:"hover"===a4?1:0})};h2.prototype.shouldDraw=function(){return k2(this.plotY)&&null!==this.y};return h2}(n2.scatter.prototype.pointClass);q(b2.prototype,{setVisible:e2.prototype.setVisible});return b2}));u2(a2,"Series/Treemap/TreemapUtilities.js",[a2["Core/Utilities.js"]],(function(a3){var e2=a3.objectEach,b2;(function(a4){function b3(a5,e3,k2){void 0===k2&&(k2=this);a5=e3.call(k2,a5);false!==a5&&b3(a5,e3,k2)}a4.AXIS_MAX=100;a4.isBoolean=function(a5){return"boolean"===typeof a5};a4.eachObject=function(a5,b4,k2){k2=k2||this;e2(a5,(function(e3,c2){b4.call(k2,e3,c2,a5)}))};a4.recursive=b3})(b2||(b2={}));return b2}));u2(a2,"Series/TreeUtilities.js",[a2["Core/Color/Color.js"],a2["Core/Utilities.js"]],(function(a3,e2){function b2(a4,h2){var c2=h2.before,e3=h2.idRoot,v2=h2.mapIdToNode[e3],g2=h2.points[a4.i],r2=g2&&g2.options||{},w2=[],x2=0;a4.levelDynamic=a4.level-(false!==h2.levelIsConstant?0:v2.level);a4.name=f2(g2&&g2.name,"");a4.visible=e3===a4.id||true===h2.visible;"function"===typeof c2&&(a4=c2(a4,h2));a4.children.forEach((function(g3,c3){var r3=m2({},h2);m2(r3,{index:c3,siblings:a4.children.length,visible:a4.visible});g3=b2(g3,r3);w2.push(g3);g3.visible&&(x2+=g3.val)}));c2=f2(r2.value,x2);a4.visible=0<=c2&&(0<x2||a4.visible);a4.children=w2;a4.childrenTotal=x2;a4.isLeaf=a4.visible&&!x2;a4.val=c2;return a4}var m2=e2.extend,l2=e2.isArray,n2=e2.isNumber,q=e2.isObject,k2=e2.merge,f2=e2.pick;return{getColor:function(c2,h2){var b3=h2.index,e3=h2.mapOptionsToLevel,v2=h2.parentColor,g2=h2.parentColorIndex,r2=h2.series,w2=h2.colors,x2=h2.siblings,k3=r2.points,l3=r2.chart.options.chart,m3;if(c2){k3=k3[c2.i];c2=e3[c2.level]||{};if(e3=k3&&c2.colorByPoint){var q2=k3.index%(w2?w2.length:l3.colorCount);var n3=w2&&w2[q2]}if(!r2.chart.styledMode){w2=k3&&k3.options.color;l3=c2&&c2.color;if(m3=v2)m3=(m3=c2&&c2.colorVariation)&&"brightness"===m3.key&&b3&&x2?a3.parse(v2).brighten(b3/x2*m3.to).get():v2;m3=f2(w2,l3,n3,m3,r2.color)}var A2=f2(k3&&k3.options.colorIndex,c2&&c2.colorIndex,q2,g2,h2.colorIndex)}return{color:m3,colorIndex:A2}},getLevelOptions:function(a4){var c2={};if(q(a4)){var b3=n2(a4.from)?a4.from:1;var e3=a4.levels;var v2={};var g2=q(a4.defaults)?a4.defaults:{};l2(e3)&&(v2=e3.reduce((function(a5,c3){if(q(c3)&&n2(c3.level)){var r2=k2({},c3);var h2=f2(r2.levelIsConstant,g2.levelIsConstant);delete r2.levelIsConstant;delete r2.level;c3=c3.level+(h2?0:b3-1);q(a5[c3])?k2(true,a5[c3],r2):a5[c3]=r2}return a5}),{}));e3=n2(a4.to)?a4.to:1;for(a4=0;a4<=e3;a4++)c2[a4]=k2({},g2,q(v2[a4])?v2[a4]:{})}return c2},setTreeValues:b2,updateRootId:function(a4){if(q(a4)){var c2=q(a4.options)?a4.options:{};c2=f2(a4.rootNode,c2.rootId,"");q(a4.userOptions)&&(a4.userOptions.rootId=c2);a4.rootNode=c2}return c2}}}));u2(a2,"Extensions/Breadcrumbs.js",[a2["Core/Chart/Chart.js"],a2["Core/Defaults.js"],a2["Core/Globals.js"],a2["Core/Utilities.js"],a2["Core/FormatUtilities.js"]],(function(a3,e2,b2,m2,l2){var n2=l2.format;l2=m2.addEvent;var q=m2.objectEach,k2=m2.extend,f2=m2.fireEvent,c2=m2.merge,h2=m2.pick,u3=m2.defined,E2=m2.isString;k2(e2.defaultOptions.lang,{mainBreadcrumb:"Main"});e2=function(){function a4(g2,r2){this.group=void 0;this.list=[];this.elementList={};this.isDirty=true;this.level=0;this.options=void 0;r2=c2(g2.options.drilldown&&g2.options.drilldown.drillUpButton,a4.defaultBreadcrumbsOptions,g2.options.navigation&&g2.options.navigation.breadcrumbs,r2);this.chart=g2;this.options=r2||{}}a4.prototype.updateProperties=function(a5){this.setList(a5);this.setLevel();this.isDirty=true};a4.prototype.setList=function(a5){this.list=a5};a4.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1};a4.prototype.getLevel=function(){return this.level};a4.prototype.getButtonText=function(a5){var c3=this.chart,g2=this.options,b3=c3.options.lang,e3=h2(g2.format,g2.showFullPath?"{level.name}":"← {level.name}");b3=b3&&h2(b3.drillUpText,b3.mainBreadcrumb);a5=g2.formatter&&g2.formatter(a5)||n2(e3,{level:a5.levelOptions},c3)||"";(E2(a5)&&!a5.length||"← "===a5)&&u3(b3)&&(a5=g2.showFullPath?b3:"← "+b3);return a5};a4.prototype.redraw=function(){this.isDirty&&this.render();this.group&&this.group.align();this.isDirty=false};a4.prototype.render=function(){var a5=this.chart,c3=this.options;!this.group&&c3&&(this.group=a5.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:c3.zIndex}).add());c3.showFullPath?this.renderFullPathButtons():this.renderSingleButton();this.alignBreadcrumbsGroup()};a4.prototype.renderFullPathButtons=function(){this.destroySingleButton();this.resetElementListState();this.updateListElements();this.destroyListElements()};a4.prototype.renderSingleButton=function(){var a5=this.chart,c3=this.list,b3=this.options.buttonSpacing;this.destroyListElements();var e3=this.group?this.group.getBBox().width:b3;c3=c3[c3.length-2];!a5.drillUpButton&&0<this.level?a5.drillUpButton=this.renderButton(c3,e3,b3):a5.drillUpButton&&(0<this.level?this.updateSingleButton():this.destroySingleButton())};a4.prototype.alignBreadcrumbsGroup=function(a5){if(this.group){var g2=this.options,b3=g2.buttonTheme,e3=g2.position,k3="chart"===g2.relativeTo||"spacingBox"===g2.relativeTo?void 0:"scrollablePlotBox",f3=this.group.getBBox();g2=2*(b3.padding||0)+g2.buttonSpacing;e3.width=f3.width+g2;e3.height=f3.height+g2;f3=c2(e3);a5&&(f3.x+=a5);this.options.rtl&&(f3.x+=e3.width);f3.y=h2(f3.y,this.yOffset,0);this.group.align(f3,true,k3)}};a4.prototype.renderButton=function(a5,b3,e3){var g2=this,h3=this.chart,k3=g2.options,r2=c2(k3.buttonTheme);b3=h3.renderer.button(g2.getButtonText(a5),b3,e3,(function(c3){var b4=k3.events&&k3.events.click,e4;b4&&(e4=b4.call(g2,c3,a5));false!==e4&&(c3.newLevel=k3.showFullPath?a5.level:g2.level-1,f2(g2,"up",c3))}),r2).addClass("highcharts-breadcrumbs-button").add(g2.group);h3.styledMode||b3.attr(k3.style);return b3};a4.prototype.renderSeparator=function(a5,c3){var b3=this.chart,g2=this.options.separator;a5=b3.renderer.label(g2.text,a5,c3,void 0,void 0,void 0,false).addClass("highcharts-breadcrumbs-separator").add(this.group);b3.styledMode||a5.css(g2.style);return a5};a4.prototype.update=function(a5){c2(true,this.options,a5);this.destroy();this.isDirty=true};a4.prototype.updateSingleButton=function(){var a5=this.chart,c3=this.list[this.level-1];a5.drillUpButton&&a5.drillUpButton.attr({text:this.getButtonText(c3)})};a4.prototype.destroy=function(){this.destroySingleButton();this.destroyListElements(true);this.group&&this.group.destroy();this.group=void 0};a4.prototype.destroyListElements=function(a5){var c3=this.elementList;q(c3,(function(b3,g2){if(a5||!c3[g2].updated)b3=c3[g2],b3.button&&b3.button.destroy(),b3.separator&&b3.separator.destroy(),delete b3.button,delete b3.separator,delete c3[g2]}));a5&&(this.elementList={})};a4.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)};a4.prototype.resetElementListState=function(){q(this.elementList,(function(a5){a5.updated=false}))};a4.prototype.updateListElements=function(){var a5=this,c3=a5.elementList,b3=a5.options.buttonSpacing,e3=a5.list,h3=a5.options.rtl,k3=h3?-1:1,f3=function(a6,c4){return k3*a6.getBBox().width+k3*c4},m3=a5.group?f3(a5.group,b3):b3,l3;e3.forEach((function(g2,r2){r2=r2===e3.length-1;if(c3[g2.level]){l3=c3[g2.level];var q2=l3.button;if(l3.separator||r2)l3.separator&&r2&&(l3.separator.destroy(),delete l3.separator);else{m3+=k3*b3;l3.separator=a5.renderSeparator(m3,b3);if(h3){var n3=l3.separator;n3.translate(m3-n3.getBBox().width,b3)}m3+=f3(l3.separator,b3)}c3[g2.level].updated=true}else q2=a5.renderButton(g2,m3,b3),h3&&q2.translate(m3-q2.getBBox().width,b3),m3+=f3(q2,b3),r2||(n3=a5.renderSeparator(m3,b3),h3&&n3.translate(m3-n3.getBBox().width,b3),m3+=f3(n3,b3)),c3[g2.level]={button:q2,separator:n3,updated:true};q2&&q2.setState(r2?2:0)}))};a4.defaultBreadcrumbsOptions={buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#335cad"}},buttonSpacing:5,floating:false,format:void 0,relativeTo:"plotBox",rtl:false,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666"}},showFullPath:true,style:{},useHTML:false,zIndex:7};return a4}();b2.Breadcrumbs||(b2.Breadcrumbs=e2,l2(a3,"getMargins",(function(){var a4=this.breadcrumbs;if(a4&&!a4.options.floating&&a4.level){var c3=a4.options,b3=c3.buttonTheme;b3=(b3.height||0)+2*(b3.padding||0)+c3.buttonSpacing;c3=c3.position.verticalAlign;"bottom"===c3?(this.marginBottom=(this.marginBottom||0)+b3,a4.yOffset=b3):"middle"!==c3?(this.plotTop+=b3,a4.yOffset=-b3):a4.yOffset=void 0}})),l2(a3,"redraw",(function(){this.breadcrumbs&&this.breadcrumbs.redraw()})),l2(a3,"destroy",(function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)})),l2(a3,"afterShowResetZoom",(function(){if(this.breadcrumbs){var a4=this.resetZoomButton&&this.resetZoomButton.getBBox(),c3=this.breadcrumbs.options;a4&&"right"===c3.position.align&&"plotBox"===c3.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-a4.width-c3.buttonSpacing)}})),l2(a3,"selection",(function(a4){true===a4.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})));return e2}));u2(a2,"Series/Treemap/TreemapComposition.js",[a2["Core/Series/SeriesRegistry.js"],a2["Series/Treemap/TreemapUtilities.js"],a2["Core/Utilities.js"]],(function(a3,e2,b2){var m2=b2.addEvent,l2=b2.extend,n2=false;m2(a3.series,"afterBindAxes",(function(){var a4=this.xAxis,b3=this.yAxis;if(a4&&b3)if(this.is("treemap")){var f2={endOnTick:false,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:e2.AXIS_MAX,maxPadding:0,startOnTick:false,title:void 0,tickPositions:[]};l2(b3.options,f2);l2(a4.options,f2);n2=true}else n2&&(b3.setOptions(b3.userOptions),a4.setOptions(a4.userOptions),n2=false)}))}));u2(a2,"Series/Treemap/TreemapNode.js",[],(function(){return function(){function a3(){this.childrenTotal=0;this.visible=false}a3.prototype.init=function(a4,b2,m2,l2,n2,q,k2){this.id=a4;this.i=b2;this.children=m2;this.height=l2;this.level=n2;this.series=q;this.parent=k2;return this};return a3}()}));u2(a2,"Series/Treemap/TreemapSeries.js",[a2["Core/Color/Color.js"],a2["Series/ColorMapComposition.js"],a2["Core/Globals.js"],a2["Core/Legend/LegendSymbol.js"],a2["Core/Series/SeriesRegistry.js"],a2["Series/Treemap/TreemapAlgorithmGroup.js"],a2["Series/Treemap/TreemapPoint.js"],a2["Series/Treemap/TreemapUtilities.js"],a2["Series/TreeUtilities.js"],a2["Extensions/Breadcrumbs.js"],a2["Core/Utilities.js"],a2["Series/Treemap/TreemapNode.js"]],(function(a3,e2,b2,m2,l2,n2,q,k2,f2,c2,h2,u3){var E2=this&&this.__extends||function(){var a4=function(c3,d2){a4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a5,d3){a5.__proto__=d3}||function(a5,d3){for(var p2 in d3)d3.hasOwnProperty(p2)&&(a5[p2]=d3[p2])};return a4(c3,d2)};return function(c3,d2){function p2(){this.constructor=c3}a4(c3,d2);c3.prototype=null===d2?Object.create(d2):(p2.prototype=d2.prototype,new p2)}}(),v2=a3.parse;a3=b2.noop;var g2=l2.series;b2=l2.seriesTypes;var r2=b2.column,w2=b2.heatmap,x2=b2.scatter,J=f2.getColor,K=f2.getLevelOptions,L2=f2.updateRootId,B=h2.addEvent,M=h2.correctFloat,A2=h2.defined,N=h2.error,D2=h2.extend,O2=h2.fireEvent,I=h2.isArray,P=h2.isObject,G=h2.isString,z2=h2.merge,y2=h2.pick,Q=h2.stableSort;f2=function(a4){function b3(){var d2=null!==a4&&a4.apply(this,arguments)||this;d2.axisRatio=void 0;d2.data=void 0;d2.mapOptionsToLevel=void 0;d2.nodeMap=void 0;d2.nodeList=void 0;d2.options=void 0;d2.points=void 0;d2.rootNode=void 0;d2.tree=void 0;d2.level=void 0;return d2}E2(b3,a4);b3.prototype.algorithmCalcPoints=function(a5,b4,c3,e3){var d2,p2,t2,g3,h3=c3.lW,F2=c3.lH,f3=c3.plot,k3=0,m3=c3.elArr.length-1;if(b4)h3=c3.nW,F2=c3.nH;else var l3=c3.elArr[c3.elArr.length-1];c3.elArr.forEach((function(a6){if(b4||k3<m3)0===c3.direction?(d2=f3.x,p2=f3.y,t2=h3,g3=a6/t2):(d2=f3.x,p2=f3.y,g3=F2,t2=a6/g3),e3.push({x:d2,y:p2,width:t2,height:M(g3)}),0===c3.direction?f3.y+=g3:f3.x+=t2;k3+=1}));c3.reset();0===c3.direction?c3.width-=h3:c3.height-=F2;f3.y=f3.parent.y+(f3.parent.height-c3.height);f3.x=f3.parent.x+(f3.parent.width-c3.width);a5&&(c3.direction=1-c3.direction);b4||c3.addElement(l3)};b3.prototype.algorithmFill=function(a5,b4,c3){var d2=[],p2,t2=b4.direction,e3=b4.x,g3=b4.y,h3=b4.width,f3=b4.height,k3,m3,l3,n3;c3.forEach((function(c4){p2=c4.val/b4.val*b4.height*b4.width;k3=e3;m3=g3;0===t2?(n3=f3,l3=p2/n3,h3-=l3,e3+=l3):(l3=h3,n3=p2/l3,f3-=n3,g3+=n3);d2.push({x:k3,y:m3,width:l3,height:n3});a5&&(t2=1-t2)}));return d2};b3.prototype.algorithmLowAspectRatio=function(a5,b4,c3){var d2=[],p2=this,t2,e3={x:b4.x,y:b4.y,parent:b4},g3=0,h3=c3.length-1,f3=new n2(b4.height,b4.width,b4.direction,e3);c3.forEach((function(c4){t2=c4.val/b4.val*b4.height*b4.width;f3.addElement(t2);f3.lP.nR>f3.lP.lR&&p2.algorithmCalcPoints(a5,false,f3,d2,e3);g3===h3&&p2.algorithmCalcPoints(a5,true,f3,d2,e3);g3+=1}));return d2};b3.prototype.alignDataLabel=function(a5,b4,c3){var d2=c3.style;d2&&!A2(d2.textOverflow)&&b4.text&&b4.getBBox().width>b4.text.textWidth&&b4.css({textOverflow:"ellipsis",width:d2.width+="px"});r2.prototype.alignDataLabel.apply(this,arguments);a5.dataLabel&&a5.dataLabel.attr({zIndex:(a5.node.zIndex||0)+1})};b3.prototype.calculateChildrenAreas=function(a5,b4){var d2=this,c3=d2.options,p2=d2.mapOptionsToLevel[a5.level+1],e3=y2(d2[p2&&p2.layoutAlgorithm]&&p2.layoutAlgorithm,c3.layoutAlgorithm),g3=c3.alternateStartingDirection,f3=[];a5=a5.children.filter((function(a6){return!a6.ignore}));p2&&p2.layoutStartingDirection&&(b4.direction="vertical"===p2.layoutStartingDirection?0:1);f3=d2[e3](b4,a5);a5.forEach((function(a6,c4){c4=f3[c4];a6.values=z2(c4,{val:a6.childrenTotal,direction:g3?1-b4.direction:b4.direction});a6.pointValues=z2(c4,{x:c4.x/d2.axisRatio,y:k2.AXIS_MAX-c4.y-c4.height,width:c4.width/d2.axisRatio});a6.children.length&&d2.calculateChildrenAreas(a6,a6.values)}))};b3.prototype.createList=function(a5){var d2=this.chart,b4=[];if(d2.breadcrumbs){var c3=0;b4.push({level:c3,levelOptions:d2.series[0]});d2=a5.target.nodeMap[a5.newRootId];for(var e3=[];d2.parent||""===d2.parent;)e3.push(d2),d2=a5.target.nodeMap[d2.parent];e3.reverse().forEach((function(a6){b4.push({level:++c3,levelOptions:a6})}));1>=b4.length&&(b4.length=0)}return b4};b3.prototype.drawDataLabels=function(){var a5=this,b4=a5.mapOptionsToLevel,c3,e3;a5.points.filter((function(a6){return a6.node.visible})).forEach((function(d2){e3=b4[d2.node.level];c3={style:{}};d2.node.isLeaf||(c3.enabled=false);e3&&e3.dataLabels&&(c3=z2(c3,e3.dataLabels),a5._hasPointLabels=true);d2.shapeArgs&&(c3.style.width=d2.shapeArgs.width,d2.dataLabel&&d2.dataLabel.css({width:d2.shapeArgs.width+"px"}));d2.dlOptions=z2(c3,d2.options.dataLabels)}));g2.prototype.drawDataLabels.call(this)};b3.prototype.drawPoints=function(a5){void 0===a5&&(a5=this.points);var d2=this,b4=d2.chart,c3=b4.renderer,e3=b4.styledMode,g3=d2.options,f3=e3?{}:g3.shadow,h3=g3.borderRadius,k3=b4.pointCount<g3.animationLimit,l3=g3.allowTraversingTree;a5.forEach((function(a6){var b5=a6.node.levelDynamic,p2={},H2={},t2={},C2="level-group-"+a6.node.level,m3=!!a6.graphic,R2=k3&&m3,n3=a6.shapeArgs;a6.shouldDraw()&&(a6.isInside=true,h3&&(H2.r=h3),z2(true,R2?p2:H2,m3?n3:{},e3?{}:d2.pointAttribs(a6,a6.selected?"select":void 0)),d2.colorAttribs&&e3&&D2(t2,d2.colorAttribs(a6)),d2[C2]||(d2[C2]=c3.g(C2).attr({zIndex:1e3-(b5||0)}).add(d2.group),d2[C2].survive=true));a6.draw({animatableAttribs:p2,attribs:H2,css:t2,group:d2[C2],renderer:c3,shadow:f3,shapeArgs:n3,shapeType:a6.shapeType});l3&&a6.graphic&&(a6.drillId=g3.interactByLeaf?d2.drillToByLeaf(a6):d2.drillToByGroup(a6))}))};b3.prototype.drillToByGroup=function(a5){var d2=false;1!==a5.node.level-this.nodeMap[this.rootNode].level||a5.node.isLeaf||(d2=a5.id);return d2};b3.prototype.drillToByLeaf=function(a5){var d2=false;if(a5.node.parent!==this.rootNode&&a5.node.isLeaf)for(a5=a5.node;!d2;)a5=this.nodeMap[a5.parent],a5.parent===this.rootNode&&(d2=a5.id);return d2};b3.prototype.drillToNode=function(a5,b4){N(32,false,void 0,{"treemap.drillToNode":"use treemap.setRootNode"});this.setRootNode(a5,b4)};b3.prototype.drillUp=function(){var a5=this.nodeMap[this.rootNode];a5&&G(a5.parent)&&this.setRootNode(a5.parent,true,{trigger:"traverseUpButton"})};b3.prototype.getExtremes=function(){var a5=g2.prototype.getExtremes.call(this,this.colorValueData),b4=a5.dataMax;this.valueMin=a5.dataMin;this.valueMax=b4;return g2.prototype.getExtremes.call(this)};b3.prototype.getListOfParents=function(a5,b4){a5=I(a5)?a5:[];var d2=I(b4)?b4:[];b4=a5.reduce((function(a6,b5,d3){b5=y2(b5.parent,"");"undefined"===typeof a6[b5]&&(a6[b5]=[]);a6[b5].push(d3);return a6}),{"":[]});k2.eachObject(b4,(function(a6,b5,c3){""!==b5&&-1===d2.indexOf(b5)&&(a6.forEach((function(a7){c3[""].push(a7)})),delete c3[b5])}));return b4};b3.prototype.getTree=function(){var a5=this.data.map((function(a6){return a6.id}));a5=this.getListOfParents(this.data,a5);this.nodeMap={};this.nodeList=[];return this.buildTree("",-1,0,a5)};b3.prototype.buildTree=function(a5,b4,c3,e3,g3){var d2=this,f3=[],h3=d2.points[b4],p2=0,t2;(e3[a5]||[]).forEach((function(b5){t2=d2.buildTree(d2.points[b5].id,b5,c3+1,e3,a5);p2=Math.max(t2.height+1,p2);f3.push(t2)}));var k3=(new d2.NodeClass).init(a5,b4,f3,p2,c3,d2,g3);f3.forEach((function(a6){a6.parentNode=k3}));d2.nodeMap[k3.id]=k3;d2.nodeList.push(k3);h3&&(h3.node=k3,k3.point=h3);return k3};b3.prototype.hasData=function(){return!!this.processedXData.length};b3.prototype.init=function(a5,b4){var d2=this,e3=z2(b4.drillUpButton,b4.breadcrumbs);var f3=B(d2,"setOptions",(function(a6){a6=a6.userOptions;A2(a6.allowDrillToNode)&&!A2(a6.allowTraversingTree)&&(a6.allowTraversingTree=a6.allowDrillToNode,delete a6.allowDrillToNode);A2(a6.drillUpButton)&&!A2(a6.traverseUpButton)&&(a6.traverseUpButton=a6.drillUpButton,delete a6.drillUpButton)}));g2.prototype.init.call(d2,a5,b4);delete d2.opacity;d2.eventsToUnbind.push(f3);d2.options.allowTraversingTree&&(d2.eventsToUnbind.push(B(d2,"click",d2.onClickDrillToNode)),d2.eventsToUnbind.push(B(d2,"setRootNode",(function(a6){var b5=d2.chart;b5.breadcrumbs&&b5.breadcrumbs.updateProperties(d2.createList(a6))}))),d2.eventsToUnbind.push(B(d2,"update",(function(a6,b5){(b5=this.chart.breadcrumbs)&&a6.options.breadcrumbs&&b5.update(a6.options.breadcrumbs)}))),d2.eventsToUnbind.push(B(d2,"destroy",(function(a6){var b5=this.chart;b5.breadcrumbs&&(b5.breadcrumbs.destroy(),a6.keepEventsForUpdate||(b5.breadcrumbs=void 0))}))));a5.breadcrumbs||(a5.breadcrumbs=new c2(a5,e3));d2.eventsToUnbind.push(B(a5.breadcrumbs,"up",(function(a6){a6=this.level-a6.newLevel;for(var b5=0;b5<a6;b5++)d2.drillUp()})))};b3.prototype.onClickDrillToNode=function(a5){var b4=(a5=a5.point)&&a5.drillId;G(b4)&&(a5.setState(""),this.setRootNode(b4,true,{trigger:"click"}))};b3.prototype.pointAttribs=function(a5,b4){var c3=P(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},d2=a5&&c3[a5.node.level]||{};c3=this.options;var e3=b4&&c3.states&&c3.states[b4]||{},g3=a5&&a5.getClassName()||"";a5={stroke:a5&&a5.borderColor||d2.borderColor||e3.borderColor||c3.borderColor,"stroke-width":y2(a5&&a5.borderWidth,d2.borderWidth,e3.borderWidth,c3.borderWidth),dashstyle:a5&&a5.borderDashStyle||d2.borderDashStyle||e3.borderDashStyle||c3.borderDashStyle,fill:a5&&a5.color||this.color};-1!==g3.indexOf("highcharts-above-level")?(a5.fill="none",a5["stroke-width"]=0):-1!==g3.indexOf("highcharts-internal-node-interactive")?(b4=y2(e3.opacity,c3.opacity),a5.fill=v2(a5.fill).setOpacity(b4).get(),a5.cursor="pointer"):-1!==g3.indexOf("highcharts-internal-node")?a5.fill="none":b4&&(a5.fill=v2(a5.fill).brighten(e3.brightness).get());return a5};b3.prototype.setColorRecursive=function(a5,b4,c3,e3,g3){var d2=this,f3=d2&&d2.chart;f3=f3&&f3.options&&f3.options.colors;if(a5){var h3=J(a5,{colors:f3,index:e3,mapOptionsToLevel:d2.mapOptionsToLevel,parentColor:b4,parentColorIndex:c3,series:d2,siblings:g3});if(b4=d2.points[a5.i])b4.color=h3.color,b4.colorIndex=h3.colorIndex;(a5.children||[]).forEach((function(b5,c4){d2.setColorRecursive(b5,h3.color,h3.colorIndex,c4,a5.children.length)}))}};b3.prototype.setPointValues=function(){var a5=this,b4=a5.xAxis,c3=a5.yAxis,e3=a5.chart.styledMode;a5.points.forEach((function(d2){var g3=d2.node,f3=g3.pointValues;g3=g3.visible;if(f3&&g3){g3=f3.height;var h3=f3.width,k3=f3.x,p2=f3.y,l3=e3?0:(a5.pointAttribs(d2)["stroke-width"]||0)%2/2;f3=Math.round(b4.toPixels(k3,true))-l3;h3=Math.round(b4.toPixels(k3+h3,true))-l3;k3=Math.round(c3.toPixels(p2,true))-l3;g3=Math.round(c3.toPixels(p2+g3,true))-l3;g3={x:Math.min(f3,h3),y:Math.min(k3,g3),width:Math.abs(h3-f3),height:Math.abs(g3-k3)};d2.plotX=g3.x+g3.width/2;d2.plotY=g3.y+g3.height/2;d2.shapeArgs=g3}else delete d2.plotX,delete d2.plotY}))};b3.prototype.setRootNode=function(a5,b4,c3){a5=D2({newRootId:a5,previousRootId:this.rootNode,redraw:y2(b4,true),series:this},c3);O2(this,"setRootNode",a5,(function(a6){var b5=a6.series;b5.idPreviousRoot=a6.previousRootId;b5.rootNode=a6.newRootId;b5.isDirty=true;a6.redraw&&b5.chart.redraw()}))};b3.prototype.setState=function(a5){this.options.inactiveOtherPoints=true;g2.prototype.setState.call(this,a5,false);this.options.inactiveOtherPoints=false};b3.prototype.setTreeValues=function(a5){var b4=this,c3=b4.options,d2=b4.nodeMap[b4.rootNode];c3=k2.isBoolean(c3.levelIsConstant)?c3.levelIsConstant:true;var e3=0,g3=[],f3=b4.points[a5.i];a5.children.forEach((function(a6){a6=b4.setTreeValues(a6);g3.push(a6);a6.ignore||(e3+=a6.val)}));Q(g3,(function(a6,b5){return(a6.sortIndex||0)-(b5.sortIndex||0)}));var h3=y2(f3&&f3.options.value,e3);f3&&(f3.value=h3);D2(a5,{children:g3,childrenTotal:e3,ignore:!(y2(f3&&f3.visible,true)&&0<h3),isLeaf:a5.visible&&!e3,levelDynamic:a5.level-(c3?0:d2.level),name:y2(f3&&f3.name,""),sortIndex:y2(f3&&f3.sortIndex,-h3),val:h3});return a5};b3.prototype.sliceAndDice=function(a5,b4){return this.algorithmFill(true,a5,b4)};b3.prototype.squarified=function(a5,b4){return this.algorithmLowAspectRatio(true,a5,b4)};b3.prototype.strip=function(a5,b4){return this.algorithmLowAspectRatio(false,a5,b4)};b3.prototype.stripes=function(a5,b4){return this.algorithmFill(false,a5,b4)};b3.prototype.translate=function(){var a5=this,b4=a5.options,c3=L2(a5);g2.prototype.translate.call(a5);var e3=a5.tree=a5.getTree();var f3=a5.nodeMap[c3];""===c3||f3&&f3.children.length||(a5.setRootNode("",false),c3=a5.rootNode,f3=a5.nodeMap[c3]);a5.mapOptionsToLevel=K({from:f3.level+1,levels:b4.levels,to:e3.height,defaults:{levelIsConstant:a5.options.levelIsConstant,colorByPoint:b4.colorByPoint}});k2.recursive(a5.nodeMap[a5.rootNode],(function(b5){var c4=false,d2=b5.parent;b5.visible=true;if(d2||""===d2)c4=a5.nodeMap[d2];return c4}));k2.recursive(a5.nodeMap[a5.rootNode].children,(function(a6){var b5=false;a6.forEach((function(a7){a7.visible=true;a7.children.length&&(b5=(b5||[]).concat(a7.children))}));return b5}));a5.setTreeValues(e3);a5.axisRatio=a5.xAxis.len/a5.yAxis.len;a5.nodeMap[""].pointValues=c3={x:0,y:0,width:k2.AXIS_MAX,height:k2.AXIS_MAX};a5.nodeMap[""].values=c3=z2(c3,{width:c3.width*a5.axisRatio,direction:"vertical"===b4.layoutStartingDirection?0:1,val:e3.val});a5.calculateChildrenAreas(e3,c3);a5.colorAxis||b4.colorByPoint||a5.setColorRecursive(a5.tree);b4.allowTraversingTree&&(b4=f3.pointValues,a5.xAxis.setExtremes(b4.x,b4.x+b4.width,false),a5.yAxis.setExtremes(b4.y,b4.y+b4.height,false),a5.xAxis.setScale(),a5.yAxis.setScale());a5.setPointValues()};b3.defaultOptions=z2(x2.defaultOptions,{allowTraversingTree:false,animationLimit:250,borderRadius:0,showInLegend:false,marker:void 0,colorByPoint:false,dataLabels:{defer:false,enabled:true,formatter:function(){var a5=this&&this.point?this.point:{};return G(a5.name)?a5.name:""},inside:true,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"<b>{point.name}</b>: {point.value}<br/>"},ignoreHiddenPoint:true,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:false,levelIsConstant:true,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:w2?0:.1,halo:false,opacity:.75,shadow:false}}});return b3}(x2);D2(f2.prototype,{buildKDTree:a3,colorAttribs:e2.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:true,drawLegendSymbol:m2.drawRectangle,getExtremesFromAll:true,getSymbol:a3,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:q,NodeClass:u3,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:k2.recursive}});e2.compose(f2);l2.registerSeriesType("treemap",f2);return f2}));u2(a2,"masters/modules/treemap.src.js",[a2["Core/Globals.js"],a2["Extensions/Breadcrumbs.js"]],(function(a3,e2){a3.Breadcrumbs=e2}))}))})(treemap$1);var treemapExports=treemap$1.exports;const treemap=getDefaultExportFromCjs(treemapExports);const TreemapChart=({aria:aria={},data:data={},chartData:chartData,colors:colors2,customOptions:customOptions={},dark:dark=false,drillable:drillable=false,grouped:grouped=false,height:height,htmlOptions:htmlOptions={},id:id,title:title="",tooltipHtml:tooltipHtml='<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.value}</b>',type:type="treemap",...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};treemap(Highcharts$1);setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},credits:false,series:[{data:chartData}],plotOptions:{treemap:{tooltip:{pointFormat:tooltipHtml},allowTraversingTree:drillable,colorByPoint:!grouped,colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors}}};const[options2,setOptions]=useState({});useEffect((()=>{setOptions(lodashExports.merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(props),"pb_treemap_chart"),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};function _typeof(o2){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o3){return typeof o3}:function(o3){return o3&&"function"==typeof Symbol&&o3.constructor===Symbol&&o3!==Symbol.prototype?"symbol":typeof o3},_typeof(o2)}function toPrimitive(t2,r2){if("object"!=_typeof(t2)||!t2)return t2;var e2=t2[Symbol.toPrimitive];if(void 0!==e2){var i=e2.call(t2,r2||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r2?String:Number)(t2)}function toPropertyKey(t2){var i=toPrimitive(t2,"string");return"symbol"==_typeof(i)?i:String(i)}function _defineProperty$2(obj,key,value){key=toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function ownKeys$2(e2,r2){var t2=Object.keys(e2);if(Object.getOwnPropertySymbols){var o2=Object.getOwnPropertySymbols(e2);r2&&(o2=o2.filter((function(r3){return Object.getOwnPropertyDescriptor(e2,r3).enumerable}))),t2.push.apply(t2,o2)}return t2}function _objectSpread2$2(e2){for(var r2=1;r2<arguments.length;r2++){var t2=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$2(Object(t2),true).forEach((function(r3){_defineProperty$2(e2,r3,t2[r3])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e2,Object.getOwnPropertyDescriptors(t2)):ownKeys$2(Object(t2)).forEach((function(r3){Object.defineProperty(e2,r3,Object.getOwnPropertyDescriptor(t2,r3))}))}return e2}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _iterableToArrayLimit(r2,l2){var t2=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t2){var e2,n2,i,u2,a2=[],f2=true,o2=false;try{if(i=(t2=t2.call(r2)).next,0===l2){if(Object(t2)!==t2)return;f2=false}else for(;!(f2=(e2=i.call(t2)).done)&&(a2.push(e2.value),a2.length!==l2);f2=true);}catch(r3){o2=true,n2=r3}finally{try{if(!f2&&null!=t2["return"]&&(u2=t2["return"](),Object(u2)!==u2))return}finally{if(o2)throw n2}}return a2}}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _unsupportedIterableToArray(o2,minLen){if(!o2)return;if(typeof o2==="string")return _arrayLikeToArray(o2,minLen);var n2=Object.prototype.toString.call(o2).slice(8,-1);if(n2==="Object"&&o2.constructor)n2=o2.constructor.name;if(n2==="Map"||n2==="Set")return Array.from(o2);if(n2==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))return _arrayLikeToArray(o2,minLen)}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest()}function _objectWithoutPropertiesLoose$2(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}function _objectWithoutProperties$2(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose$2(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}var _excluded$8=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties$2(_ref3,_excluded$8);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback((function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta)}setStateValue(value2)}),[propsOnChange]);var onInputChange=useCallback((function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta)}setStateInputValue(newValue!==void 0?newValue:value2)}),[propsOnInputChange]);var onMenuOpen=useCallback((function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen()}setStateMenuIsOpen(true)}),[propsOnMenuOpen]);var onMenuClose=useCallback((function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose()}setStateMenuIsOpen(false)}),[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2$2(_objectSpread2$2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value})}function _extends$2(){_extends$2=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};return _extends$2.apply(this,arguments)}function _classCallCheck$2(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties$2(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,toPropertyKey(descriptor.key),descriptor)}}function _createClass$2(Constructor,protoProps,staticProps){if(protoProps)_defineProperties$2(Constructor.prototype,protoProps);if(staticProps)_defineProperties$2(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _setPrototypeOf$2(o2,p2){_setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf2(o3,p3){o3.__proto__=p3;return o3};return _setPrototypeOf$2(o2,p2)}function _inherits$2(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf$2(subClass,superClass)}function _getPrototypeOf$2(o2){_getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf2(o3){return o3.__proto__||Object.getPrototypeOf(o3)};return _getPrototypeOf$2(o2)}function _isNativeReflectConstruct$2(){try{var t2=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t3){}return(_isNativeReflectConstruct$2=function _isNativeReflectConstruct2(){return!!t2})()}function _assertThisInitialized$2(self2){if(self2===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self2}function _possibleConstructorReturn$2(self2,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized$2(self2)}function _createSuper$2(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$2();return function _createSuperInternal(){var Super=_getPrototypeOf$2(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf$2(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return _possibleConstructorReturn$2(this,result)}}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter)}function _nonIterableSpread(){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 _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function sheetForTag(tag){if(tag.sheet){return tag.sheet}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i]}}}function createStyleElement(options2){var tag=document.createElement("style");tag.setAttribute("data-emotion",options2.key);if(options2.nonce!==void 0){tag.setAttribute("nonce",options2.nonce)}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag}var StyleSheet=function(){function StyleSheet2(options2){var _this=this;this._insertTag=function(tag){var before2;if(_this.tags.length===0){if(_this.insertionPoint){before2=_this.insertionPoint.nextSibling}else if(_this.prepend){before2=_this.container.firstChild}else{before2=_this.before}}else{before2=_this.tags[_this.tags.length-1].nextSibling}_this.container.insertBefore(tag,before2);_this.tags.push(tag)};this.isSpeedy=options2.speedy===void 0?true:options2.speedy;this.tags=[];this.ctr=0;this.nonce=options2.nonce;this.key=options2.key;this.container=options2.container;this.prepend=options2.prepend;this.insertionPoint=options2.insertionPoint;this.before=null}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag)};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement(this))}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag(tag);try{sheet.insertRule(rule,sheet.cssRules.length)}catch(e2){}}else{tag.appendChild(document.createTextNode(rule))}this.ctr++};_proto.flush=function flush(){this.tags.forEach((function(tag){return tag.parentNode&&tag.parentNode.removeChild(tag)}));this.tags=[];this.ctr=0};return StyleSheet2}();var MS="-ms-";var MOZ="-moz-";var WEBKIT="-webkit-";var COMMENT="comm";var RULESET="rule";var DECLARATION="decl";var IMPORT="@import";var KEYFRAMES="@keyframes";var LAYER="@layer";var abs=Math.abs;var from=String.fromCharCode;var assign=Object.assign;function hash(value,length2){return charat(value,0)^45?(((length2<<2^charat(value,0))<<2^charat(value,1))<<2^charat(value,2))<<2^charat(value,3):0}function trim(value){return value.trim()}function match(value,pattern){return(value=pattern.exec(value))?value[0]:value}function replace(value,pattern,replacement){return value.replace(pattern,replacement)}function indexof(value,search){return value.indexOf(search)}function charat(value,index2){return value.charCodeAt(index2)|0}function substr(value,begin,end){return value.slice(begin,end)}function strlen(value){return value.length}function sizeof(value){return value.length}function append(value,array){return array.push(value),value}function combine(array,callback){return array.map(callback).join("")}var line=1;var column=1;var length=0;var position=0;var character=0;var characters="";function node(value,root2,parent,type,props,children,length2){return{value:value,root:root2,parent:parent,type:type,props:props,children:children,line:line,column:column,length:length2,return:""}}function copy(root2,props){return assign(node("",null,null,"",null,null,0),root2,{length:-root2.length},props)}function char(){return character}function prev(){character=position>0?charat(characters,--position):0;if(column--,character===10)column=1,line--;return character}function next(){character=position<length?charat(characters,position++):0;if(column++,character===10)column=1,line++;return character}function peek(){return charat(characters,position)}function caret(){return position}function slice(begin,end){return substr(characters,begin,end)}function token(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(value){return line=column=1,length=strlen(characters=value),position=0,[]}function dealloc(value){return characters="",value}function delimit(type){return trim(slice(position-1,delimiter(type===91?type+2:type===40?type+1:type)))}function whitespace(type){while(character=peek())if(character<33)next();else break;return token(type)>2||token(character)>3?"":" "}function escaping(index2,count2){while(--count2&&next())if(character<48||character>102||character>57&&character<65||character>70&&character<97)break;return slice(index2,caret()+(count2<6&&peek()==32&&next()==32))}function delimiter(type){while(next())switch(character){case type:return position;case 34:case 39:if(type!==34&&type!==39)delimiter(character);break;case 40:if(type===41)delimiter(type);break;case 92:next();break}return position}function commenter(type,index2){while(next())if(type+character===47+10)break;else if(type+character===42+42&&peek()===47)break;return"/*"+slice(index2,position-1)+"*"+from(type===47?type:next())}function identifier(index2){while(!token(peek()))next();return slice(index2,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root2,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){if(indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root2,parent),declarations);break;default:characters2+="/"}break;case 123*variable:points[index2++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(ampersand==-1)characters2=replace(characters2,/\f/g,"");if(property>0&&strlen(characters2)-length2)append(property>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append(reference=ruleset(characters2,root2,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse(characters2,root2,reference,reference,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference,reference,reference,[""],children,0,points,children)}}index2=offset2=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek()===45)characters2+=delimit(next());atrule=peek(),offset2=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:if(previous===45&&strlen(characters2)==2)variable=0}}return rulesets}function ruleset(value,root2,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size=sizeof(rule);for(var i=0,j=0,k2=0;i<index2;++i)for(var x2=0,y2=substr(value,post+1,post=abs(j=points[i])),z2=value;x2<size;++x2)if(z2=trim(j>0?rule[x2]+" "+y2:replace(y2,/&\f/g,rule[x2])))props[k2++]=z2;return node(value,root2,parent,offset2===0?RULESET:type,props,children,length2)}function comment(value,root2,parent){return node(value,root2,parent,COMMENT,from(char()),substr(value,2,-2),0)}function declaration(value,root2,parent,length2){return node(value,root2,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2)}function serialize(children,callback){var output="";var length2=sizeof(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output}function stringify(element,index2,children,callback){switch(element.type){case LAYER:if(element.children.length)break;case IMPORT:case DECLARATION:return element.return=element.return||element.value;case COMMENT:return"";case KEYFRAMES:return element.return=element.value+"{"+serialize(element.children,callback)+"}";case RULESET:element.value=element.props.join(",")}return strlen(children=serialize(element.children,callback))?element.return=element.value+"{"+children+"}":""}function middleware(collection){var length2=sizeof(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output}}function rulesheet(callback){return function(element){if(!element.root){if(element=element.return)callback(element)}}}function memoize(fn){var cache=Object.create(null);return function(arg){if(cache[arg]===void 0)cache[arg]=fn(arg);return cache[arg]}}var identifierWithPointTracking=function identifierWithPointTracking2(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek();if(previous===38&&character2===12){points[index2]=1}if(token(character2)){break}next()}return slice(begin,position)};var toRules=function toRules2(parsed,points){var index2=-1;var character2=44;do{switch(token(character2)){case 0:if(character2===38&&peek()===12){points[index2]=1}parsed[index2]+=identifierWithPointTracking(position-1,points,index2);break;case 2:parsed[index2]+=delimit(character2);break;case 4:if(character2===44){parsed[++index2]=peek()===58?"&\f":"";points[index2]=parsed[index2].length;break}default:parsed[index2]+=from(character2)}}while(character2=next());return parsed};var getRules=function getRules2(value,points){return dealloc(toRules(alloc(value),points))};var fixedElements=new WeakMap;var compat=function compat2(element){if(element.type!=="rule"||!element.parent||element.length<1){return}var value=element.value,parent=element.parent;var isImplicitRule=element.column===parent.column&&element.line===parent.line;while(parent.type!=="rule"){parent=parent.parent;if(!parent)return}if(element.props.length===1&&value.charCodeAt(0)!==58&&!fixedElements.get(parent)){return}if(isImplicitRule){return}fixedElements.set(element,true);var points=[];var rules=getRules(value,points);var parentRules=parent.props;for(var i=0,k2=0;i<rules.length;i++){for(var j=0;j<parentRules.length;j++,k2++){element.props[k2]=points[i]?rules[i].replace(/&\f/g,parentRules[j]):parentRules[j]+" "+rules[i]}}};var removeLabel=function removeLabel2(element){if(element.type==="decl"){var value=element.value;if(value.charCodeAt(0)===108&&value.charCodeAt(2)===98){element["return"]="";element.value=""}}};function prefix(value,length2){switch(hash(value,length2)){case 5103:return WEBKIT+"print-"+value+value;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+"flex-"+value+value;case 5187:return WEBKIT+value+replace(value,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+value;case 5443:return WEBKIT+value+MS+"flex-item-"+replace(value,/flex-|-self/,"")+value;case 4675:return WEBKIT+value+MS+"flex-line-pack"+replace(value,/align-content|flex-|-self/,"")+value;case 5548:return WEBKIT+value+MS+replace(value,"shrink","negative")+value;case 5292:return WEBKIT+value+MS+replace(value,"basis","preferred-size")+value;case 6060:return WEBKIT+"box-"+replace(value,"-grow","")+WEBKIT+value+MS+replace(value,"grow","positive")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),value,"")+value;case 5495:case 3959:return replace(value,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+"$1$2")+value;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(value)-1-length2>6)switch(charat(value,length2+1)){case 109:if(charat(value,length2+4)!==45)break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(value,length2+3)==108?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length2)+value:value}break;case 4949:if(charat(value,length2+1)!==115)break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(value,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length2+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}var prefixer=function prefixer2(element,index2,children,callback){if(element.length>-1){if(!element["return"])switch(element.type){case DECLARATION:element["return"]=prefix(element.value,element.length);break;case KEYFRAMES:return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return combine(element.props,(function(value){switch(match(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""}))}}};var defaultStylisPlugins=[prefixer];var createCache=function createCache2(options2){var key=options2.key;if(key==="css"){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node2){var dataEmotionAttribute=node2.getAttribute("data-emotion");if(dataEmotionAttribute.indexOf(" ")===-1){return}document.head.appendChild(node2);node2.setAttribute("data-s","")}))}var stylisPlugins=options2.stylisPlugins||defaultStylisPlugins;var inserted={};var container;var nodesToHydrate=[];{container=options2.container||document.head;Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node2){var attrib=node2.getAttribute("data-emotion").split(" ");for(var i=1;i<attrib.length;i++){inserted[attrib[i]]=true}nodesToHydrate.push(node2)}))}var _insert;var omnipresentPlugins=[compat,removeLabel];{var currentSheet;var finalizingPlugins=[stringify,rulesheet((function(rule){currentSheet.insert(rule)}))];var serializer=middleware(omnipresentPlugins.concat(stylisPlugins,finalizingPlugins));var stylis=function stylis2(styles2){return serialize(compile(styles2),serializer)};_insert=function insert(selector,serialized,sheet,shouldCache){currentSheet=sheet;stylis(selector?selector+"{"+serialized.styles+"}":serialized.styles);if(shouldCache){cache.inserted[serialized.name]=true}}}var cache={key:key,sheet:new StyleSheet({key:key,container:container,nonce:options2.nonce,speedy:options2.speedy,prepend:options2.prepend,insertionPoint:options2.insertionPoint}),nonce:options2.nonce,inserted:inserted,registered:{},insert:_insert};cache.sheet.hydrate(nodesToHydrate);return cache};var reactIs=require$$0;var FORWARD_REF_STATICS={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true};var MEMO_STATICS={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var isBrowser$1=true;function getRegisteredStyles(registered,registeredStyles,classNames2){var rawClassName="";classNames2.split(" ").forEach((function(className){if(registered[className]!==void 0){registeredStyles.push(registered[className]+";")}else{rawClassName+=className+" "}}));return rawClassName}var registerStyles=function registerStyles2(cache,serialized,isStringTag){var className=cache.key+"-"+serialized.name;if((isStringTag===false||isBrowser$1===false)&&cache.registered[className]===void 0){cache.registered[className]=serialized.styles}};var insertStyles=function insertStyles2(cache,serialized,isStringTag){registerStyles(cache,serialized,isStringTag);var className=cache.key+"-"+serialized.name;if(cache.inserted[serialized.name]===void 0){var current=serialized;do{cache.insert(serialized===current?"."+className:"",current,cache.sheet,true);current=current.next}while(current!==void 0)}};function murmur2(str){var h2=0;var k2,i=0,len=str.length;for(;len>=4;++i,len-=4){k2=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24;k2=(k2&65535)*1540483477+((k2>>>16)*59797<<16);k2^=k2>>>24;h2=(k2&65535)*1540483477+((k2>>>16)*59797<<16)^(h2&65535)*1540483477+((h2>>>16)*59797<<16)}switch(len){case 3:h2^=(str.charCodeAt(i+2)&255)<<16;case 2:h2^=(str.charCodeAt(i+1)&255)<<8;case 1:h2^=str.charCodeAt(i)&255;h2=(h2&65535)*1540483477+((h2>>>16)*59797<<16)}h2^=h2>>>13;h2=(h2&65535)*1540483477+((h2>>>16)*59797<<16);return((h2^h2>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var hyphenateRegex=/[A-Z]|^ms/g;var animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty=function isCustomProperty2(property){return property.charCodeAt(1)===45};var isProcessableValue=function isProcessableValue2(value){return value!=null&&typeof value!=="boolean"};var processStyleName=memoize((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}));var processStyleValue=function processStyleValue2(key,value){switch(key){case"animation":case"animationName":{if(typeof value==="string"){return value.replace(animationRegex,(function(match2,p1,p2){cursor={name:p1,styles:p2,next:cursor};return p1}))}}}if(unitlessKeys[key]!==1&&!isCustomProperty(key)&&typeof value==="number"&&value!==0){return value+"px"}return value};var noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null){return""}if(interpolation.__emotion_styles!==void 0){return interpolation}switch(typeof interpolation){case"boolean":{return""}case"object":{if(interpolation.anim===1){cursor={name:interpolation.name,styles:interpolation.styles,next:cursor};return interpolation.name}if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0){while(next2!==void 0){cursor={name:next2.name,styles:next2.styles,next:cursor};next2=next2.next}}var styles2=interpolation.styles+";";return styles2}return createStringFromObject(mergedProps,registered,interpolation)}case"function":{if(mergedProps!==void 0){var previousCursor=cursor;var result=interpolation(mergedProps);cursor=previousCursor;return handleInterpolation(mergedProps,registered,result)}break}}{return interpolation}}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj)){for(var i=0;i<obj.length;i++){string+=handleInterpolation(mergedProps,registered,obj[i])+";"}}else{for(var _key in obj){var value=obj[_key];if(typeof value!=="object"){if(isProcessableValue(value)){string+=processStyleName(_key)+":"+processStyleValue(_key,value)+";"}}else{if(_key==="NO_COMPONENT_SELECTOR"&&false){throw new Error(noComponentSelectorMessage)}if(Array.isArray(value)&&typeof value[0]==="string"&&registered==null){for(var _i=0;_i<value.length;_i++){if(isProcessableValue(value[_i])){string+=processStyleName(_key)+":"+processStyleValue(_key,value[_i])+";"}}}else{var interpolated=handleInterpolation(mergedProps,registered,value);switch(_key){case"animation":case"animationName":{string+=processStyleName(_key)+":"+interpolated+";";break}default:{string+=_key+"{"+interpolated+"}"}}}}}}return string}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var cursor;var serializeStyles=function serializeStyles2(args,registered,mergedProps){if(args.length===1&&typeof args[0]==="object"&&args[0]!==null&&args[0].styles!==void 0){return args[0]}var stringMode=true;var styles2="";cursor=void 0;var strings=args[0];if(strings==null||strings.raw===void 0){stringMode=false;styles2+=handleInterpolation(mergedProps,registered,strings)}else{styles2+=strings[0]}for(var i=1;i<args.length;i++){styles2+=handleInterpolation(mergedProps,registered,args[i]);if(stringMode){styles2+=strings[i]}}labelPattern.lastIndex=0;var identifierName="";var match2;while((match2=labelPattern.exec(styles2))!==null){identifierName+="-"+match2[1]}var name2=murmur2(styles2)+identifierName;return{name:name2,styles:styles2,next:cursor}};var syncFallback=function syncFallback2(create){return create()};var useInsertionEffect=React$1["useInsertionEffect"]?React$1["useInsertionEffect"]:false;var useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback;var hasOwnProperty$1={}.hasOwnProperty;var EmotionCacheContext=React$1.createContext(typeof HTMLElement!=="undefined"?createCache({key:"css"}):null);EmotionCacheContext.Provider;var withEmotionCache=function withEmotionCache2(func){return forwardRef((function(props,ref){var cache=useContext(EmotionCacheContext);return func(props,cache,ref)}))};var ThemeContext=React$1.createContext({});var typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__";var createEmotionProps=function createEmotionProps2(type,props){var newProps={};for(var key in props){if(hasOwnProperty$1.call(props,key)){newProps[key]=props[key]}}newProps[typePropName]=type;return newProps};var Insertion=function Insertion2(_ref3){var cache=_ref3.cache,serialized=_ref3.serialized,isStringTag=_ref3.isStringTag;registerStyles(cache,serialized,isStringTag);useInsertionEffectAlwaysWithSyncFallback((function(){return insertStyles(cache,serialized,isStringTag)}));return null};var Emotion=withEmotionCache((function(props,cache,ref){var cssProp=props.css;if(typeof cssProp==="string"&&cache.registered[cssProp]!==void 0){cssProp=cache.registered[cssProp]}var WrappedComponent=props[typePropName];var registeredStyles=[cssProp];var className="";if(typeof props.className==="string"){className=getRegisteredStyles(cache.registered,registeredStyles,props.className)}else if(props.className!=null){className=props.className+" "}var serialized=serializeStyles(registeredStyles,void 0,React$1.useContext(ThemeContext));className+=cache.key+"-"+serialized.name;var newProps={};for(var key in props){if(hasOwnProperty$1.call(props,key)&&key!=="css"&&key!==typePropName&&true){newProps[key]=props[key]}}newProps.ref=ref;newProps.className=className;return React$1.createElement(React$1.Fragment,null,React$1.createElement(Insertion,{cache:cache,serialized:serialized,isStringTag:typeof WrappedComponent==="string"}),React$1.createElement(WrappedComponent,newProps))}));var Emotion$1=Emotion;var jsx=function jsx2(type,props){var args=arguments;if(props==null||!hasOwnProperty$1.call(props,"css")){return React$1.createElement.apply(void 0,args)}var argsLength=args.length;var createElementArgArray=new Array(argsLength);createElementArgArray[0]=Emotion$1;createElementArgArray[1]=createEmotionProps(type,props);for(var i=2;i<argsLength;i++){createElementArgArray[i]=args[i]}return React$1.createElement.apply(null,createElementArgArray)};function css(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return serializeStyles(args)}var keyframes=function keyframes2(){var insertable=css.apply(void 0,arguments);var name2="animation-"+insertable.name;return{name:name2,styles:"@keyframes "+name2+"{"+insertable.styles+"}",anim:1,toString:function toString2(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0)}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}const min$1=Math.min;const max=Math.max;const round=Math.round;const floor=Math.floor;const createCoords=v2=>({x:v2,y:v2});function rectToClientRect(rect){return{...rect,top:rect.y,left:rect.x,right:rect.x+rect.width,bottom:rect.y+rect.height}}function getNodeName(node2){if(isNode(node2)){return(node2.nodeName||"").toLowerCase()}return"#document"}function getWindow$1(node2){var _node$ownerDocument;return(node2==null||(_node$ownerDocument=node2.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement(node2){var _ref3;return(_ref3=(isNode(node2)?node2.ownerDocument:node2.document)||window.document)==null?void 0:_ref3.documentElement}function isNode(value){return value instanceof Node||value instanceof getWindow$1(value).Node}function isElement(value){return value instanceof Element||value instanceof getWindow$1(value).Element}function isHTMLElement(value){return value instanceof HTMLElement||value instanceof getWindow$1(value).HTMLElement}function isShadowRoot(value){if(typeof ShadowRoot==="undefined"){return false}return value instanceof ShadowRoot||value instanceof getWindow$1(value).ShadowRoot}function isOverflowElement(element){const{overflow:overflow,overflowX:overflowX,overflowY:overflowY,display:display}=getComputedStyle$1(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&!["inline","contents"].includes(display)}function isWebKit(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(node2){return["html","body","#document"].includes(getNodeName(node2))}function getComputedStyle$1(element){return getWindow$1(element).getComputedStyle(element)}function getParentNode$1(node2){if(getNodeName(node2)==="html"){return node2}const result=node2.assignedSlot||node2.parentNode||isShadowRoot(node2)&&node2.host||getDocumentElement(node2);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node2){const parentNode=getParentNode$1(node2);if(isLastTraversableNode(parentNode)){return node2.ownerDocument?node2.ownerDocument.body:node2.body}if(isHTMLElement(parentNode)&&isOverflowElement(parentNode)){return parentNode}return getNearestOverflowAncestor(parentNode)}function getOverflowAncestors(node2,list,traverseIframes){var _node$ownerDocument2;if(list===void 0){list=[]}if(traverseIframes===void 0){traverseIframes=true}const scrollableAncestor=getNearestOverflowAncestor(node2);const isBody=scrollableAncestor===((_node$ownerDocument2=node2.ownerDocument)==null?void 0:_node$ownerDocument2.body);const win=getWindow$1(scrollableAncestor);if(isBody){return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],win.frameElement&&traverseIframes?getOverflowAncestors(win.frameElement):[])}return list.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getCssDimensions(element){const css4=getComputedStyle$1(element);let width=parseFloat(css4.width)||0;let height=parseFloat(css4.height)||0;const hasOffset=isHTMLElement(element);const offsetWidth=hasOffset?element.offsetWidth:width;const offsetHeight=hasOffset?element.offsetHeight:height;const shouldFallback=round(width)!==offsetWidth||round(height)!==offsetHeight;if(shouldFallback){width=offsetWidth;height=offsetHeight}return{width:width,height:height,$:shouldFallback}}function unwrapElement(element){return!isElement(element)?element.contextElement:element}function getScale(element){const domElement=unwrapElement(element);if(!isHTMLElement(domElement)){return createCoords(1)}const rect=domElement.getBoundingClientRect();const{width:width,height:height,$:$}=getCssDimensions(domElement);let x2=($?round(rect.width):rect.width)/width;let y2=($?round(rect.height):rect.height)/height;if(!x2||!Number.isFinite(x2)){x2=1}if(!y2||!Number.isFinite(y2)){y2=1}return{x:x2,y:y2}}const noOffsets=createCoords(0);function getVisualOffsets(element){const win=getWindow$1(element);if(!isWebKit()||!win.visualViewport){return noOffsets}return{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}}function shouldAddVisualOffsets(element,isFixed2,floatingOffsetParent){{return false}}function getBoundingClientRect$1(element,includeScale,isFixedStrategy,offsetParent){if(includeScale===void 0){includeScale=false}const clientRect=element.getBoundingClientRect();const domElement=unwrapElement(element);let scale=createCoords(1);if(includeScale){{scale=getScale(element)}}const visualOffsets=shouldAddVisualOffsets()?getVisualOffsets(domElement):createCoords(0);let x2=(clientRect.left+visualOffsets.x)/scale.x;let y2=(clientRect.top+visualOffsets.y)/scale.y;let width=clientRect.width/scale.x;let height=clientRect.height/scale.y;if(domElement){const win=getWindow$1(domElement);const offsetWin=offsetParent;let currentIFrame=win.frameElement;while(currentIFrame&&offsetParent&&offsetWin!==win){const iframeScale=getScale(currentIFrame);const iframeRect=currentIFrame.getBoundingClientRect();const css4=getComputedStyle$1(currentIFrame);const left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css4.paddingLeft))*iframeScale.x;const top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css4.paddingTop))*iframeScale.y;x2*=iframeScale.x;y2*=iframeScale.y;width*=iframeScale.x;height*=iframeScale.y;x2+=left;y2+=top;currentIFrame=getWindow$1(currentIFrame).frameElement}}return rectToClientRect({width:width,height:height,x:x2,y:y2})}function observeMove(element,onMove){let io=null;let timeoutId;const root2=getDocumentElement(element);function cleanup(){clearTimeout(timeoutId);io&&io.disconnect();io=null}function refresh(skip,threshold){if(skip===void 0){skip=false}if(threshold===void 0){threshold=1}cleanup();const{left:left,top:top,width:width,height:height}=element.getBoundingClientRect();if(!skip){onMove()}if(!width||!height){return}const insetTop=floor(top);const insetRight=floor(root2.clientWidth-(left+width));const insetBottom=floor(root2.clientHeight-(top+height));const insetLeft=floor(left);const rootMargin=-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px";const options2={rootMargin:rootMargin,threshold:max(0,min$1(1,threshold))||1};let isFirstUpdate=true;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate){return refresh()}if(!ratio){timeoutId=setTimeout((()=>{refresh(false,1e-7)}),100)}else{refresh(false,ratio)}}isFirstUpdate=false}try{io=new IntersectionObserver(handleObserve,{...options2,root:root2.ownerDocument})}catch(e2){io=new IntersectionObserver(handleObserve,options2)}io.observe(element)}refresh(true);return cleanup}function autoUpdate(reference,floating,update2,options2){if(options2===void 0){options2={}}const{ancestorScroll:ancestorScroll=true,ancestorResize:ancestorResize=true,elementResize:elementResize=typeof ResizeObserver==="function",layoutShift:layoutShift=typeof IntersectionObserver==="function",animationFrame:animationFrame=false}=options2;const referenceEl=unwrapElement(reference);const ancestors=ancestorScroll||ancestorResize?[...referenceEl?getOverflowAncestors(referenceEl):[],...getOverflowAncestors(floating)]:[];ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update2,{passive:true});ancestorResize&&ancestor.addEventListener("resize",update2)}));const cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update2):null;let reobserveFrame=-1;let resizeObserver=null;if(elementResize){resizeObserver=new ResizeObserver((_ref3=>{let[firstEntry]=_ref3;if(firstEntry&&firstEntry.target===referenceEl&&resizeObserver){resizeObserver.unobserve(floating);cancelAnimationFrame(reobserveFrame);reobserveFrame=requestAnimationFrame((()=>{resizeObserver&&resizeObserver.observe(floating)}))}update2()}));if(referenceEl&&!animationFrame){resizeObserver.observe(referenceEl)}resizeObserver.observe(floating)}let frameId;let prevRefRect=animationFrame?getBoundingClientRect$1(reference):null;if(animationFrame){frameLoop()}function frameLoop(){const nextRefRect=getBoundingClientRect$1(reference);if(prevRefRect&&(nextRefRect.x!==prevRefRect.x||nextRefRect.y!==prevRefRect.y||nextRefRect.width!==prevRefRect.width||nextRefRect.height!==prevRefRect.height)){update2()}prevRefRect=nextRefRect;frameId=requestAnimationFrame(frameLoop)}update2();return()=>{ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update2);ancestorResize&&ancestor.removeEventListener("resize",update2)}));cleanupIo&&cleanupIo();resizeObserver&&resizeObserver.disconnect();resizeObserver=null;if(animationFrame){cancelAnimationFrame(frameId)}}}var index=useLayoutEffect;var _excluded$4$1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];var noop$2=function noop2(){};function applyPrefixToName(prefix2,name2){if(!name2){return prefix2}else if(name2[0]==="-"){return prefix2+name2}else{return prefix2+"__"+name2}}function classNames(prefix2,state){for(var _len=arguments.length,classNameList=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){classNameList[_key-2]=arguments[_key]}var arr=[].concat(classNameList);if(state&&prefix2){for(var key in state){if(state.hasOwnProperty(key)&&state[key]){arr.push("".concat(applyPrefixToName(prefix2,key)))}}}return arr.filter((function(i){return i})).map((function(i){return String(i).trim()})).join(" ")}var cleanValue=function cleanValue2(value){if(isArray(value))return value.filter(Boolean);if(_typeof(value)==="object"&&value!==null)return[value];return[]};var cleanCommonProps=function cleanCommonProps2(props){props.className;props.clearValue;props.cx;props.getStyles;props.getClassNames;props.getValue;props.hasValue;props.isMulti;props.isRtl;props.options;props.selectOption;props.selectProps;props.setValue;props.theme;var innerProps=_objectWithoutProperties$2(props,_excluded$4$1);return _objectSpread2$2({},innerProps)};var getStyleProps=function getStyleProps2(props,name2,classNamesState){var cx=props.cx,getStyles2=props.getStyles,getClassNames=props.getClassNames,className=props.className;return{css:getStyles2(name2,props),className:cx(classNamesState!==null&&classNamesState!==void 0?classNamesState:{},getClassNames(name2,props),className)}};function handleInputChange(inputValue,actionMeta,onInputChange){if(onInputChange){var _newValue=onInputChange(inputValue,actionMeta);if(typeof _newValue==="string")return _newValue}return inputValue}function isDocumentElement(el){return[document.documentElement,document.body,window].indexOf(el)>-1}function normalizedHeight(el){if(isDocumentElement(el)){return window.innerHeight}return el.clientHeight}function getScrollTop(el){if(isDocumentElement(el)){return window.pageYOffset}return el.scrollTop}function scrollTo$1(el,top){if(isDocumentElement(el)){window.scrollTo(0,top);return}el.scrollTop=top}function getScrollParent$2(element){var style=getComputedStyle(element);var excludeStaticParent=style.position==="absolute";var overflowRx=/(auto|scroll)/;if(style.position==="fixed")return document.documentElement;for(var parent=element;parent=parent.parentElement;){style=getComputedStyle(parent);if(excludeStaticParent&&style.position==="static"){continue}if(overflowRx.test(style.overflow+style.overflowY+style.overflowX)){return parent}}return document.documentElement}function easeOutCubic(t2,b2,c2,d2){return c2*((t2=t2/d2-1)*t2*t2+1)+b2}function animatedScrollTo(element,to){var duration=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200;var callback=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop$2;var start=getScrollTop(element);var change=to-start;var increment=10;var currentTime=0;function animateScroll(){currentTime+=increment;var val=easeOutCubic(currentTime,start,change,duration);scrollTo$1(element,val);if(currentTime<duration){window.requestAnimationFrame(animateScroll)}else{callback(element)}}animateScroll()}function scrollIntoView(menuEl,focusedEl){var menuRect=menuEl.getBoundingClientRect();var focusedRect=focusedEl.getBoundingClientRect();var overScroll=focusedEl.offsetHeight/3;if(focusedRect.bottom+overScroll>menuRect.bottom){scrollTo$1(menuEl,Math.min(focusedEl.offsetTop+focusedEl.clientHeight-menuEl.offsetHeight+overScroll,menuEl.scrollHeight))}else if(focusedRect.top-overScroll<menuRect.top){scrollTo$1(menuEl,Math.max(focusedEl.offsetTop-overScroll,0))}}function getBoundingClientObj(element){var rect=element.getBoundingClientRect();return{bottom:rect.bottom,height:rect.height,left:rect.left,right:rect.right,top:rect.top,width:rect.width}}function isTouchCapable(){try{document.createEvent("TouchEvent");return true}catch(e2){return false}}function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e2){return false}}var passiveOptionAccessed=false;var options={get passive(){return passiveOptionAccessed=true}};var w=typeof window!=="undefined"?window:{};if(w.addEventListener&&w.removeEventListener){w.addEventListener("p",noop$2,options);w.removeEventListener("p",noop$2,false)}var supportsPassiveEvents=passiveOptionAccessed;function notNullish(item){return item!=null}function isArray(arg){return Array.isArray(arg)}function valueTernary(isMulti,multiValue,singleValue){return isMulti?multiValue:singleValue}function singleValueAsValue(singleValue){return singleValue}function multiValueAsValue(multiValue){return multiValue}var removeProps=function removeProps2(propsObj){for(var _len2=arguments.length,properties=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){properties[_key2-1]=arguments[_key2]}var propsMap=Object.entries(propsObj).filter((function(_ref3){var _ref22=_slicedToArray(_ref3,1),key=_ref22[0];return!properties.includes(key)}));return propsMap.reduce((function(newProps,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],val=_ref4[1];newProps[key]=val;return newProps}),{})};var _excluded$3$1=["children","innerProps"],_excluded2$1=["children","innerProps"];function getMenuPlacement(_ref3){var preferredMaxHeight=_ref3.maxHeight,menuEl=_ref3.menuEl,minHeight=_ref3.minHeight,preferredPlacement=_ref3.placement,shouldScroll=_ref3.shouldScroll,isFixedPosition=_ref3.isFixedPosition,controlHeight2=_ref3.controlHeight;var scrollParent2=getScrollParent$2(menuEl);var defaultState2={placement:"bottom",maxHeight:preferredMaxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState2;var _scrollParent$getBoun=scrollParent2.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height;var _menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top;var _menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top;var viewHeight=isFixedPosition?window.innerHeight:normalizedHeight(scrollParent2);var scrollTop=getScrollTop(scrollParent2);var marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10);var marginTop=parseInt(getComputedStyle(menuEl).marginTop,10);var viewSpaceAbove=containerTop-marginTop;var viewSpaceBelow=viewHeight-menuTop;var scrollSpaceAbove=viewSpaceAbove+scrollTop;var scrollSpaceBelow=scrollHeight-scrollTop-menuTop;var scrollDown=menuBottom-viewHeight+scrollTop+marginBottom;var scrollUp=scrollTop+menuTop-marginTop;var scrollDuration=160;switch(preferredPlacement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight){return{placement:"bottom",maxHeight:preferredMaxHeight}}if(scrollSpaceBelow>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent2,scrollDown,scrollDuration)}return{placement:"bottom",maxHeight:preferredMaxHeight}}if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){if(shouldScroll){animatedScrollTo(scrollParent2,scrollDown,scrollDuration)}var constrainedHeight=isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom;return{placement:"bottom",maxHeight:constrainedHeight}}if(preferredPlacement==="auto"||isFixedPosition){var _constrainedHeight=preferredMaxHeight;var spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;if(spaceAbove>=minHeight){_constrainedHeight=Math.min(spaceAbove-marginBottom-controlHeight2,preferredMaxHeight)}return{placement:"top",maxHeight:_constrainedHeight}}if(preferredPlacement==="bottom"){if(shouldScroll){scrollTo$1(scrollParent2,scrollDown)}return{placement:"bottom",maxHeight:preferredMaxHeight}}break;case"top":if(viewSpaceAbove>=menuHeight){return{placement:"top",maxHeight:preferredMaxHeight}}if(scrollSpaceAbove>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent2,scrollUp,scrollDuration)}return{placement:"top",maxHeight:preferredMaxHeight}}if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=preferredMaxHeight;if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop}if(shouldScroll){animatedScrollTo(scrollParent2,scrollUp,scrollDuration)}return{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:preferredMaxHeight};default:throw new Error('Invalid placement provided "'.concat(preferredPlacement,'".'))}return defaultState2}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}var coercePlacement=function coercePlacement2(p2){return p2==="auto"?"bottom":p2};var menuCSS=function menuCSS2(_ref22,unstyled){var _objectSpread22;var placement=_ref22.placement,_ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,spacing2=_ref2$theme.spacing,colors2=_ref2$theme.colors;return _objectSpread2$2((_objectSpread22={label:"menu"},_defineProperty$2(_objectSpread22,alignToControl(placement),"100%"),_defineProperty$2(_objectSpread22,"position","absolute"),_defineProperty$2(_objectSpread22,"width","100%"),_defineProperty$2(_objectSpread22,"zIndex",1),_objectSpread22),unstyled?{}:{backgroundColor:colors2.neutral0,borderRadius:borderRadius2,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:spacing2.menuGutter,marginTop:spacing2.menuGutter})};var PortalPlacementContext=createContext(null);var MenuPlacer=function MenuPlacer2(props){var children=props.children,minMenuHeight=props.minMenuHeight,maxMenuHeight=props.maxMenuHeight,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition,menuShouldScrollIntoView=props.menuShouldScrollIntoView,theme=props.theme;var _ref3=useContext(PortalPlacementContext)||{},setPortalPlacement=_ref3.setPortalPlacement;var ref=useRef(null);var _useState=useState(maxMenuHeight),_useState2=_slicedToArray(_useState,2),maxHeight=_useState2[0],setMaxHeight=_useState2[1];var _useState3=useState(null),_useState4=_slicedToArray(_useState3,2),placement=_useState4[0],setPlacement=_useState4[1];var controlHeight2=theme.spacing.controlHeight;index((function(){var menuEl=ref.current;if(!menuEl)return;var isFixedPosition=menuPosition==="fixed";var shouldScroll=menuShouldScrollIntoView&&!isFixedPosition;var state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:menuEl,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,controlHeight:controlHeight2});setMaxHeight(state.maxHeight);setPlacement(state.placement);setPortalPlacement===null||setPortalPlacement===void 0?void 0:setPortalPlacement(state.placement)}),[maxMenuHeight,menuPlacement,menuPosition,menuShouldScrollIntoView,minMenuHeight,setPortalPlacement,controlHeight2]);return children({ref:ref,placerProps:_objectSpread2$2(_objectSpread2$2({},props),{},{placement:placement||coercePlacement(menuPlacement),maxHeight:maxHeight})})};var Menu=function Menu2(props){var children=props.children,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"menu",{menu:true}),{ref:innerRef},innerProps),children)};var Menu$1=Menu;var menuListCSS=function menuListCSS2(_ref4,unstyled){var maxHeight=_ref4.maxHeight,baseUnit2=_ref4.theme.spacing.baseUnit;return _objectSpread2$2({maxHeight:maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},unstyled?{}:{paddingBottom:baseUnit2,paddingTop:baseUnit2})};var MenuList$1=function MenuList2(props){var children=props.children,innerProps=props.innerProps,innerRef=props.innerRef,isMulti=props.isMulti;return jsx("div",_extends$2({},getStyleProps(props,"menuList",{"menu-list":true,"menu-list--is-multi":isMulti}),{ref:innerRef},innerProps),children)};var noticeCSS=function noticeCSS2(_ref5,unstyled){var _ref5$theme=_ref5.theme,baseUnit2=_ref5$theme.spacing.baseUnit,colors2=_ref5$theme.colors;return _objectSpread2$2({textAlign:"center"},unstyled?{}:{color:colors2.neutral40,padding:"".concat(baseUnit2*2,"px ").concat(baseUnit2*3,"px")})};var noOptionsMessageCSS=noticeCSS;var loadingMessageCSS=noticeCSS;var NoOptionsMessage=function NoOptionsMessage2(_ref6){var _ref6$children=_ref6.children,children=_ref6$children===void 0?"No options":_ref6$children,innerProps=_ref6.innerProps,restProps=_objectWithoutProperties$2(_ref6,_excluded$3$1);return jsx("div",_extends$2({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},restProps),{},{children:children,innerProps:innerProps}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),innerProps),children)};var LoadingMessage=function LoadingMessage2(_ref7){var _ref7$children=_ref7.children,children=_ref7$children===void 0?"Loading...":_ref7$children,innerProps=_ref7.innerProps,restProps=_objectWithoutProperties$2(_ref7,_excluded2$1);return jsx("div",_extends$2({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},restProps),{},{children:children,innerProps:innerProps}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),innerProps),children)};var menuPortalCSS=function menuPortalCSS2(_ref8){var rect=_ref8.rect,offset2=_ref8.offset,position2=_ref8.position;return{left:rect.left,position:position2,top:offset2,width:rect.width,zIndex:1}};var MenuPortal=function MenuPortal2(props){var appendTo=props.appendTo,children=props.children,controlElement=props.controlElement,innerProps=props.innerProps,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition;var menuPortalRef=useRef(null);var cleanupRef=useRef(null);var _useState5=useState(coercePlacement(menuPlacement)),_useState6=_slicedToArray(_useState5,2),placement=_useState6[0],setPortalPlacement=_useState6[1];var portalPlacementContext=useMemo((function(){return{setPortalPlacement:setPortalPlacement}}),[]);var _useState7=useState(null),_useState8=_slicedToArray(_useState7,2),computedPosition=_useState8[0],setComputedPosition=_useState8[1];var updateComputedPosition=useCallback((function(){if(!controlElement)return;var rect=getBoundingClientObj(controlElement);var scrollDistance=menuPosition==="fixed"?0:window.pageYOffset;var offset2=rect[placement]+scrollDistance;if(offset2!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset)||rect.left!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left)||rect.width!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width)){setComputedPosition({offset:offset2,rect:rect})}}),[controlElement,menuPosition,placement,computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width]);index((function(){updateComputedPosition()}),[updateComputedPosition]);var runAutoUpdate=useCallback((function(){if(typeof cleanupRef.current==="function"){cleanupRef.current();cleanupRef.current=null}if(controlElement&&menuPortalRef.current){cleanupRef.current=autoUpdate(controlElement,menuPortalRef.current,updateComputedPosition,{elementResize:"ResizeObserver"in window})}}),[controlElement,updateComputedPosition]);index((function(){runAutoUpdate()}),[runAutoUpdate]);var setMenuPortalElement=useCallback((function(menuPortalElement){menuPortalRef.current=menuPortalElement;runAutoUpdate()}),[runAutoUpdate]);if(!appendTo&&menuPosition!=="fixed"||!computedPosition)return null;var menuWrapper=jsx("div",_extends$2({ref:setMenuPortalElement},getStyleProps(_objectSpread2$2(_objectSpread2$2({},props),{},{offset:computedPosition.offset,position:menuPosition,rect:computedPosition.rect}),"menuPortal",{"menu-portal":true}),innerProps),children);return jsx(PortalPlacementContext.Provider,{value:portalPlacementContext},appendTo?createPortal(menuWrapper,appendTo):menuWrapper)};var containerCSS=function containerCSS2(_ref3){var isDisabled=_ref3.isDisabled,isRtl=_ref3.isRtl;return{label:"container",direction:isRtl?"rtl":void 0,pointerEvents:isDisabled?"none":void 0,position:"relative"}};var SelectContainer=function SelectContainer2(props){var children=props.children,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return jsx("div",_extends$2({},getStyleProps(props,"container",{"--is-disabled":isDisabled,"--is-rtl":isRtl}),innerProps),children)};var valueContainerCSS=function valueContainerCSS2(_ref22,unstyled){var spacing2=_ref22.theme.spacing,isMulti=_ref22.isMulti,hasValue2=_ref22.hasValue,controlShouldRenderValue=_ref22.selectProps.controlShouldRenderValue;return _objectSpread2$2({alignItems:"center",display:isMulti&&hasValue2&&controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},unstyled?{}:{padding:"".concat(spacing2.baseUnit/2,"px ").concat(spacing2.baseUnit*2,"px")})};var ValueContainer$1=function ValueContainer2(props){var children=props.children,innerProps=props.innerProps,isMulti=props.isMulti,hasValue2=props.hasValue;return jsx("div",_extends$2({},getStyleProps(props,"valueContainer",{"value-container":true,"value-container--is-multi":isMulti,"value-container--has-value":hasValue2}),innerProps),children)};var indicatorsContainerCSS=function indicatorsContainerCSS2(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}};var IndicatorsContainer$1=function IndicatorsContainer2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"indicatorsContainer",{indicators:true}),innerProps),children)};var _templateObject;var _excluded$2$1=["size"],_excluded2$2=["innerProps","isRtl","size"];var _ref2$2={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"};var Svg=function Svg2(_ref3){var size=_ref3.size,props=_objectWithoutProperties$2(_ref3,_excluded$2$1);return jsx("svg",_extends$2({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},props))};var CrossIcon=function CrossIcon2(props){return jsx(Svg,_extends$2({size:20},props),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))};var DownChevron=function DownChevron2(props){return jsx(Svg,_extends$2({size:20},props),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))};var baseCSS=function baseCSS2(_ref3,unstyled){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit2=_ref3$theme.spacing.baseUnit,colors2=_ref3$theme.colors;return _objectSpread2$2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2,":hover":{color:isFocused?colors2.neutral80:colors2.neutral40}})};var dropdownIndicatorCSS=baseCSS;var DropdownIndicator=function DropdownIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),innerProps),children||jsx(DownChevron,null))};var clearIndicatorCSS=baseCSS;var ClearIndicator=function ClearIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"clearIndicator",{indicator:true,"clear-indicator":true}),innerProps),children||jsx(CrossIcon,null))};var indicatorSeparatorCSS=function indicatorSeparatorCSS2(_ref4,unstyled){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit2=_ref4$theme.spacing.baseUnit,colors2=_ref4$theme.colors;return _objectSpread2$2({label:"indicatorSeparator",alignSelf:"stretch",width:1},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral10:colors2.neutral20,marginBottom:baseUnit2*2,marginTop:baseUnit2*2})};var IndicatorSeparator=function IndicatorSeparator2(props){var innerProps=props.innerProps;return jsx("span",_extends$2({},innerProps,getStyleProps(props,"indicatorSeparator",{"indicator-separator":true})))};var loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));var loadingIndicatorCSS=function loadingIndicatorCSS2(_ref5,unstyled){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors2=_ref5$theme.colors,baseUnit2=_ref5$theme.spacing.baseUnit;return _objectSpread2$2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2})};var LoadingDot=function LoadingDot2(_ref6){var delay=_ref6.delay,offset2=_ref6.offset;return jsx("span",{css:css({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset2?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})};var LoadingIndicator=function LoadingIndicator2(_ref7){var innerProps=_ref7.innerProps,isRtl=_ref7.isRtl,_ref7$size=_ref7.size,size=_ref7$size===void 0?4:_ref7$size,restProps=_objectWithoutProperties$2(_ref7,_excluded2$2);return jsx("div",_extends$2({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},restProps),{},{innerProps:innerProps,isRtl:isRtl,size:size}),"loadingIndicator",{indicator:true,"loading-indicator":true}),innerProps),jsx(LoadingDot,{delay:0,offset:isRtl}),jsx(LoadingDot,{delay:160,offset:true}),jsx(LoadingDot,{delay:320,offset:!isRtl}))};var css$1=function css2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,_ref$theme=_ref3.theme,colors2=_ref$theme.colors,borderRadius2=_ref$theme.borderRadius,spacing2=_ref$theme.spacing;return _objectSpread2$2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing2.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral5:colors2.neutral0,borderColor:isDisabled?colors2.neutral10:isFocused?colors2.primary:colors2.neutral20,borderRadius:borderRadius2,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors2.primary):void 0,"&:hover":{borderColor:isFocused?colors2.primary:colors2.neutral30}})};var Control=function Control2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return jsx("div",_extends$2({ref:innerRef},getStyleProps(props,"control",{control:true,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen}),innerProps,{"aria-disabled":isDisabled||void 0}),children)};var Control$1=Control;var _excluded$1$2=["data"];var groupCSS=function groupCSS2(_ref3,unstyled){var spacing2=_ref3.theme.spacing;return unstyled?{}:{paddingBottom:spacing2.baseUnit*2,paddingTop:spacing2.baseUnit*2}};var Group=function Group2(props){var children=props.children,cx=props.cx,getStyles2=props.getStyles,getClassNames=props.getClassNames,Heading=props.Heading,headingProps=props.headingProps,innerProps=props.innerProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return jsx("div",_extends$2({},getStyleProps(props,"group",{group:true}),innerProps),jsx(Heading,_extends$2({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles2,getClassNames:getClassNames,cx:cx}),label),jsx("div",null,children))};var groupHeadingCSS=function groupHeadingCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,colors2=_ref2$theme.colors,spacing2=_ref2$theme.spacing;return _objectSpread2$2({label:"group",cursor:"default",display:"block"},unstyled?{}:{color:colors2.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:spacing2.baseUnit*3,paddingRight:spacing2.baseUnit*3,textTransform:"uppercase"})};var GroupHeading=function GroupHeading2(props){var _cleanCommonProps=cleanCommonProps(props);_cleanCommonProps.data;var innerProps=_objectWithoutProperties$2(_cleanCommonProps,_excluded$1$2);return jsx("div",_extends$2({},getStyleProps(props,"groupHeading",{"group-heading":true}),innerProps))};var Group$1=Group;var _excluded$7=["innerRef","isDisabled","isHidden","inputClassName"];var inputCSS=function inputCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,value=_ref3.value,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2$2(_objectSpread2$2({visibility:isDisabled?"hidden":"visible",transform:value?"translateZ(0)":""},containerStyle),unstyled?{}:{margin:spacing2.baseUnit/2,paddingBottom:spacing2.baseUnit/2,paddingTop:spacing2.baseUnit/2,color:colors2.neutral80})};var spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0};var containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_objectSpread2$2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)};var inputStyle=function inputStyle2(isHidden){return _objectSpread2$2({label:"input",color:"inherit",background:0,opacity:isHidden?0:1,width:"100%"},spacingStyle)};var Input=function Input2(props){var cx=props.cx,value=props.value;var _cleanCommonProps=cleanCommonProps(props),innerRef=_cleanCommonProps.innerRef,isDisabled=_cleanCommonProps.isDisabled,isHidden=_cleanCommonProps.isHidden,inputClassName=_cleanCommonProps.inputClassName,innerProps=_objectWithoutProperties$2(_cleanCommonProps,_excluded$7);return jsx("div",_extends$2({},getStyleProps(props,"input",{"input-container":true}),{"data-value":value||""}),jsx("input",_extends$2({className:cx({input:true},inputClassName),ref:innerRef,style:inputStyle(isHidden),disabled:isDisabled},innerProps)))};var Input$1=Input;var multiValueCSS=function multiValueCSS2(_ref3,unstyled){var _ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,borderRadius2=_ref$theme.borderRadius,colors2=_ref$theme.colors;return _objectSpread2$2({label:"multiValue",display:"flex",minWidth:0},unstyled?{}:{backgroundColor:colors2.neutral10,borderRadius:borderRadius2/2,margin:spacing2.baseUnit/2})};var multiValueLabelCSS=function multiValueLabelCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,colors2=_ref2$theme.colors,cropWithEllipsis=_ref22.cropWithEllipsis;return _objectSpread2$2({overflow:"hidden",textOverflow:cropWithEllipsis||cropWithEllipsis===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},unstyled?{}:{borderRadius:borderRadius2/2,color:colors2.neutral80,fontSize:"85%",padding:3,paddingLeft:6})};var multiValueRemoveCSS=function multiValueRemoveCSS2(_ref3,unstyled){var _ref3$theme=_ref3.theme,spacing2=_ref3$theme.spacing,borderRadius2=_ref3$theme.borderRadius,colors2=_ref3$theme.colors,isFocused=_ref3.isFocused;return _objectSpread2$2({alignItems:"center",display:"flex"},unstyled?{}:{borderRadius:borderRadius2/2,backgroundColor:isFocused?colors2.dangerLight:void 0,paddingLeft:spacing2.baseUnit,paddingRight:spacing2.baseUnit,":hover":{backgroundColor:colors2.dangerLight,color:colors2.danger}})};var MultiValueGeneric=function MultiValueGeneric2(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return jsx("div",innerProps,children)};var MultiValueContainer=MultiValueGeneric;var MultiValueLabel=MultiValueGeneric;function MultiValueRemove(_ref5){var children=_ref5.children,innerProps=_ref5.innerProps;return jsx("div",_extends$2({role:"button"},innerProps),children||jsx(CrossIcon,{size:14}))}var MultiValue$1=function MultiValue2(props){var children=props.children,components2=props.components,data=props.data,innerProps=props.innerProps,isDisabled=props.isDisabled,removeProps3=props.removeProps,selectProps=props.selectProps;var Container=components2.Container,Label=components2.Label,Remove=components2.Remove;return jsx(Container,{data:data,innerProps:_objectSpread2$2(_objectSpread2$2({},getStyleProps(props,"multiValue",{"multi-value":true,"multi-value--is-disabled":isDisabled})),innerProps),selectProps:selectProps},jsx(Label,{data:data,innerProps:_objectSpread2$2({},getStyleProps(props,"multiValueLabel",{"multi-value__label":true})),selectProps:selectProps},children),jsx(Remove,{data:data,innerProps:_objectSpread2$2(_objectSpread2$2({},getStyleProps(props,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(children||"option")},removeProps3),selectProps:selectProps}))};var MultiValue$1$1=MultiValue$1;var optionCSS=function optionCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,isSelected=_ref3.isSelected,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2$2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},unstyled?{}:{backgroundColor:isSelected?colors2.primary:isFocused?colors2.primary25:"transparent",color:isDisabled?colors2.neutral20:isSelected?colors2.neutral0:"inherit",padding:"".concat(spacing2.baseUnit*2,"px ").concat(spacing2.baseUnit*3,"px"),":active":{backgroundColor:!isDisabled?isSelected?colors2.primary:colors2.primary50:void 0}})};var Option$1=function Option2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"option",{option:true,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected}),{ref:innerRef,"aria-disabled":isDisabled},innerProps),children)};var Option$1$1=Option$1;var placeholderCSS=function placeholderCSS2(_ref3,unstyled){var _ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2$2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},unstyled?{}:{color:colors2.neutral50,marginLeft:spacing2.baseUnit/2,marginRight:spacing2.baseUnit/2})};var Placeholder$1=function Placeholder2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"placeholder",{placeholder:true}),innerProps),children)};var Placeholder$1$1=Placeholder$1;var css22=function css3(_ref3,unstyled){var isDisabled=_ref3.isDisabled,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2$2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},unstyled?{}:{color:isDisabled?colors2.neutral40:colors2.neutral80,marginLeft:spacing2.baseUnit/2,marginRight:spacing2.baseUnit/2})};var SingleValue=function SingleValue2(props){var children=props.children,isDisabled=props.isDisabled,innerProps=props.innerProps;return jsx("div",_extends$2({},getStyleProps(props,"singleValue",{"single-value":true,"single-value--is-disabled":isDisabled}),innerProps),children)};var SingleValue$1=SingleValue;var components={ClearIndicator:ClearIndicator,Control:Control$1,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group$1,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer$1,IndicatorSeparator:IndicatorSeparator,Input:Input$1,LoadingIndicator:LoadingIndicator,Menu:Menu$1,MenuList:MenuList$1,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue$1$1,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option$1$1,Placeholder:Placeholder$1$1,SelectContainer:SelectContainer,SingleValue:SingleValue$1,ValueContainer:ValueContainer$1};var defaultComponents=function defaultComponents2(props){return _objectSpread2$2(_objectSpread2$2({},components),props.components)};var safeIsNaN=Number.isNaN||function ponyfill(value){return typeof value==="number"&&value!==value};function isEqual$1(first,second){if(first===second){return true}if(safeIsNaN(first)&&safeIsNaN(second)){return true}return false}function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length){return false}for(var i=0;i<newInputs.length;i++){if(!isEqual$1(newInputs[i],lastInputs[i])){return false}}return true}function memoizeOne(resultFn,isEqual3){if(isEqual3===void 0){isEqual3=areInputsEqual}var cache=null;function memoized(){var newArgs=[];for(var _i=0;_i<arguments.length;_i++){newArgs[_i]=arguments[_i]}if(cache&&cache.lastThis===this&&isEqual3(newArgs,cache.lastArgs)){return cache.lastResult}var lastResult=resultFn.apply(this,newArgs);cache={lastResult:lastResult,lastArgs:newArgs,lastThis:this};return lastResult}memoized.clear=function clear(){cache=null};return memoized}var _ref={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"};var A11yText=function A11yText2(props){return jsx("span",_extends$2({css:_ref},props))};var A11yText$1=A11yText;var defaultAriaLiveMessages={guidance:function guidance(props){var isSearchable=props.isSearchable,isMulti=props.isMulti,tabSelectsValue=props.tabSelectsValue,context=props.context,isInitialFocus=props.isInitialFocus;switch(context){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(tabSelectsValue?", press Tab to select the option and exit the menu":"",".");case"input":return isInitialFocus?"".concat(props["aria-label"]||"Select"," is focused ").concat(isSearchable?",type to refine list":"",", press Down to open the menu, ").concat(isMulti?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function onChange(props){var action=props.action,_props$label=props.label,label=_props$label===void 0?"":_props$label,labels=props.labels,isDisabled=props.isDisabled;switch(action){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(label,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(labels.length>1?"s":""," ").concat(labels.join(","),", selected.");case"select-option":return isDisabled?"option ".concat(label," is disabled. Select another option."):"option ".concat(label,", selected.");default:return""}},onFocus:function onFocus(props){var context=props.context,focused=props.focused,options2=props.options,_props$label2=props.label,label=_props$label2===void 0?"":_props$label2,selectValue=props.selectValue,isDisabled=props.isDisabled,isSelected=props.isSelected,isAppleDevice2=props.isAppleDevice;var getArrayIndex=function getArrayIndex2(arr,item){return arr&&arr.length?"".concat(arr.indexOf(item)+1," of ").concat(arr.length):""};if(context==="value"&&selectValue){return"value ".concat(label," focused, ").concat(getArrayIndex(selectValue,focused),".")}if(context==="menu"&&isAppleDevice2){var disabled=isDisabled?" disabled":"";var status="".concat(isSelected?" selected":"").concat(disabled);return"".concat(label).concat(status,", ").concat(getArrayIndex(options2,focused),".")}return""},onFilter:function onFilter(props){var inputValue=props.inputValue,resultsMessage=props.resultsMessage;return"".concat(resultsMessage).concat(inputValue?" for search term "+inputValue:"",".")}};var LiveRegion=function LiveRegion2(props){var ariaSelection=props.ariaSelection,focusedOption=props.focusedOption,focusedValue=props.focusedValue,focusableOptions=props.focusableOptions,isFocused=props.isFocused,selectValue=props.selectValue,selectProps=props.selectProps,id=props.id,isAppleDevice2=props.isAppleDevice;var ariaLiveMessages=selectProps.ariaLiveMessages,getOptionLabel4=selectProps.getOptionLabel,inputValue=selectProps.inputValue,isMulti=selectProps.isMulti,isOptionDisabled3=selectProps.isOptionDisabled,isSearchable=selectProps.isSearchable,menuIsOpen=selectProps.menuIsOpen,options2=selectProps.options,screenReaderStatus2=selectProps.screenReaderStatus,tabSelectsValue=selectProps.tabSelectsValue,isLoading=selectProps.isLoading;var ariaLabel=selectProps["aria-label"];var ariaLive=selectProps["aria-live"];var messages=useMemo((function(){return _objectSpread2$2(_objectSpread2$2({},defaultAriaLiveMessages),ariaLiveMessages||{})}),[ariaLiveMessages]);var ariaSelected=useMemo((function(){var message="";if(ariaSelection&&messages.onChange){var option=ariaSelection.option,selectedOptions=ariaSelection.options,removedValue=ariaSelection.removedValue,removedValues=ariaSelection.removedValues,value=ariaSelection.value;var asOption=function asOption2(val){return!Array.isArray(val)?val:null};var selected=removedValue||option||asOption(value);var label=selected?getOptionLabel4(selected):"";var multiSelected=selectedOptions||removedValues||void 0;var labels=multiSelected?multiSelected.map(getOptionLabel4):[];var onChangeProps=_objectSpread2$2({isDisabled:selected&&isOptionDisabled3(selected,selectValue),label:label,labels:labels},ariaSelection);message=messages.onChange(onChangeProps)}return message}),[ariaSelection,messages,isOptionDisabled3,selectValue,getOptionLabel4]);var ariaFocused=useMemo((function(){var focusMsg="";var focused=focusedOption||focusedValue;var isSelected=!!(focusedOption&&selectValue&&selectValue.includes(focusedOption));if(focused&&messages.onFocus){var onFocusProps={focused:focused,label:getOptionLabel4(focused),isDisabled:isOptionDisabled3(focused,selectValue),isSelected:isSelected,options:focusableOptions,context:focused===focusedOption?"menu":"value",selectValue:selectValue,isAppleDevice:isAppleDevice2};focusMsg=messages.onFocus(onFocusProps)}return focusMsg}),[focusedOption,focusedValue,getOptionLabel4,isOptionDisabled3,messages,focusableOptions,selectValue,isAppleDevice2]);var ariaResults=useMemo((function(){var resultsMsg="";if(menuIsOpen&&options2.length&&!isLoading&&messages.onFilter){var resultsMessage=screenReaderStatus2({count:focusableOptions.length});resultsMsg=messages.onFilter({inputValue:inputValue,resultsMessage:resultsMessage})}return resultsMsg}),[focusableOptions,inputValue,menuIsOpen,messages,options2,screenReaderStatus2,isLoading]);var isInitialFocus=(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus";var ariaGuidance=useMemo((function(){var guidanceMsg="";if(messages.guidance){var context=focusedValue?"value":menuIsOpen?"menu":"input";guidanceMsg=messages.guidance({"aria-label":ariaLabel,context:context,isDisabled:focusedOption&&isOptionDisabled3(focusedOption,selectValue),isMulti:isMulti,isSearchable:isSearchable,tabSelectsValue:tabSelectsValue,isInitialFocus:isInitialFocus})}return guidanceMsg}),[ariaLabel,focusedOption,focusedValue,isMulti,isOptionDisabled3,isSearchable,menuIsOpen,messages,selectValue,tabSelectsValue,isInitialFocus]);var ScreenReaderText=jsx(Fragment$1,null,jsx("span",{id:"aria-selection"},ariaSelected),jsx("span",{id:"aria-focused"},ariaFocused),jsx("span",{id:"aria-results"},ariaResults),jsx("span",{id:"aria-guidance"},ariaGuidance));return jsx(Fragment$1,null,jsx(A11yText$1,{id:id},isInitialFocus&&ScreenReaderText),jsx(A11yText$1,{"aria-live":ariaLive,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},isFocused&&!isInitialFocus&&ScreenReaderText))};var LiveRegion$1=LiveRegion;var diacritics=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}];var anyDiacritic=new RegExp("["+diacritics.map((function(d2){return d2.letters})).join("")+"]","g");var diacriticToBase={};for(var i=0;i<diacritics.length;i++){var diacritic=diacritics[i];for(var j=0;j<diacritic.letters.length;j++){diacriticToBase[diacritic.letters[j]]=diacritic.base}}var stripDiacritics=function stripDiacritics2(str){return str.replace(anyDiacritic,(function(match2){return diacriticToBase[match2]}))};var memoizedStripDiacriticsForInput=memoizeOne(stripDiacritics);var trimString=function trimString2(str){return str.replace(/^\s+|\s+$/g,"")};var defaultStringify=function defaultStringify2(option){return"".concat(option.label," ").concat(option.value)};var createFilter=function createFilter2(config){return function(option,rawInput){if(option.data.__isNew__)return true;var _ignoreCase$ignoreAcc=_objectSpread2$2({ignoreCase:true,ignoreAccents:true,stringify:defaultStringify,trim:true,matchFrom:"any"},config),ignoreCase=_ignoreCase$ignoreAcc.ignoreCase,ignoreAccents=_ignoreCase$ignoreAcc.ignoreAccents,stringify2=_ignoreCase$ignoreAcc.stringify,trim2=_ignoreCase$ignoreAcc.trim,matchFrom=_ignoreCase$ignoreAcc.matchFrom;var input=trim2?trimString(rawInput):rawInput;var candidate=trim2?trimString(stringify2(option)):stringify2(option);if(ignoreCase){input=input.toLowerCase();candidate=candidate.toLowerCase()}if(ignoreAccents){input=memoizedStripDiacriticsForInput(input);candidate=stripDiacritics(candidate)}return matchFrom==="start"?candidate.substr(0,input.length)===input:candidate.indexOf(input)>-1}};var _excluded$6=["innerRef"];function DummyInput(_ref3){var innerRef=_ref3.innerRef,props=_objectWithoutProperties$2(_ref3,_excluded$6);var filteredProps=removeProps(props,"onExited","in","enter","exit","appear");return jsx("input",_extends$2({ref:innerRef},filteredProps,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var cancelScroll=function cancelScroll2(event2){if(event2.cancelable)event2.preventDefault();event2.stopPropagation()};function useScrollCapture(_ref3){var isEnabled=_ref3.isEnabled,onBottomArrive=_ref3.onBottomArrive,onBottomLeave=_ref3.onBottomLeave,onTopArrive=_ref3.onTopArrive,onTopLeave=_ref3.onTopLeave;var isBottom=useRef(false);var isTop=useRef(false);var touchStart=useRef(0);var scrollTarget=useRef(null);var handleEventDelta=useCallback((function(event2,delta){if(scrollTarget.current===null)return;var _scrollTarget$current=scrollTarget.current,scrollTop=_scrollTarget$current.scrollTop,scrollHeight=_scrollTarget$current.scrollHeight,clientHeight=_scrollTarget$current.clientHeight;var target=scrollTarget.current;var isDeltaPositive=delta>0;var availableScroll=scrollHeight-clientHeight-scrollTop;var shouldCancelScroll=false;if(availableScroll>delta&&isBottom.current){if(onBottomLeave)onBottomLeave(event2);isBottom.current=false}if(isDeltaPositive&&isTop.current){if(onTopLeave)onTopLeave(event2);isTop.current=false}if(isDeltaPositive&&delta>availableScroll){if(onBottomArrive&&!isBottom.current){onBottomArrive(event2)}target.scrollTop=scrollHeight;shouldCancelScroll=true;isBottom.current=true}else if(!isDeltaPositive&&-delta>scrollTop){if(onTopArrive&&!isTop.current){onTopArrive(event2)}target.scrollTop=0;shouldCancelScroll=true;isTop.current=true}if(shouldCancelScroll){cancelScroll(event2)}}),[onBottomArrive,onBottomLeave,onTopArrive,onTopLeave]);var onWheel=useCallback((function(event2){handleEventDelta(event2,event2.deltaY)}),[handleEventDelta]);var onTouchStart=useCallback((function(event2){touchStart.current=event2.changedTouches[0].clientY}),[]);var onTouchMove=useCallback((function(event2){var deltaY=touchStart.current-event2.changedTouches[0].clientY;handleEventDelta(event2,deltaY)}),[handleEventDelta]);var startListening=useCallback((function(el){if(!el)return;var notPassive=supportsPassiveEvents?{passive:false}:false;el.addEventListener("wheel",onWheel,notPassive);el.addEventListener("touchstart",onTouchStart,notPassive);el.addEventListener("touchmove",onTouchMove,notPassive)}),[onTouchMove,onTouchStart,onWheel]);var stopListening=useCallback((function(el){if(!el)return;el.removeEventListener("wheel",onWheel,false);el.removeEventListener("touchstart",onTouchStart,false);el.removeEventListener("touchmove",onTouchMove,false)}),[onTouchMove,onTouchStart,onWheel]);useEffect((function(){if(!isEnabled)return;var element=scrollTarget.current;startListening(element);return function(){stopListening(element)}}),[isEnabled,startListening,stopListening]);return function(element){scrollTarget.current=element}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"];var LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e2){e2.preventDefault()}function allowTouchMove(e2){e2.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop;var totalScroll=this.scrollHeight;var currentScroll=top+this.offsetHeight;if(top===0){this.scrollTop=1}else if(currentScroll===totalScroll){this.scrollTop=top-1}}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM$2=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var activeScrollLocks=0;var listenerOptions={capture:false,passive:false};function useScrollLock(_ref3){var isEnabled=_ref3.isEnabled,_ref$accountForScroll=_ref3.accountForScrollbars,accountForScrollbars=_ref$accountForScroll===void 0?true:_ref$accountForScroll;var originalStyles=useRef({});var scrollTarget=useRef(null);var addScrollLock=useCallback((function(touchScrollTarget){if(!canUseDOM$2)return;var target=document.body;var targetStyle=target&&target.style;if(accountForScrollbars){STYLE_KEYS.forEach((function(key){var val=targetStyle&&targetStyle[key];originalStyles.current[key]=val}))}if(accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(originalStyles.current.paddingRight,10)||0;var clientWidth=document.body?document.body.clientWidth:0;var adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach((function(key){var val=LOCK_STYLES[key];if(targetStyle){targetStyle[key]=val}}));if(targetStyle){targetStyle.paddingRight="".concat(adjustedPadding,"px")}}if(target&&isTouchDevice()){target.addEventListener("touchmove",preventTouchMove,listenerOptions);if(touchScrollTarget){touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,listenerOptions);touchScrollTarget.addEventListener("touchmove",allowTouchMove,listenerOptions)}}activeScrollLocks+=1}),[accountForScrollbars]);var removeScrollLock=useCallback((function(touchScrollTarget){if(!canUseDOM$2)return;var target=document.body;var targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0);if(accountForScrollbars&&activeScrollLocks<1){STYLE_KEYS.forEach((function(key){var val=originalStyles.current[key];if(targetStyle){targetStyle[key]=val}}))}if(target&&isTouchDevice()){target.removeEventListener("touchmove",preventTouchMove,listenerOptions);if(touchScrollTarget){touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,listenerOptions);touchScrollTarget.removeEventListener("touchmove",allowTouchMove,listenerOptions)}}}),[accountForScrollbars]);useEffect((function(){if(!isEnabled)return;var element=scrollTarget.current;addScrollLock(element);return function(){removeScrollLock(element)}}),[isEnabled,addScrollLock,removeScrollLock]);return function(element){scrollTarget.current=element}}var blurSelectInput=function blurSelectInput2(event2){var element=event2.target;return element.ownerDocument.activeElement&&element.ownerDocument.activeElement.blur()};var _ref2$1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ScrollManager(_ref3){var children=_ref3.children,lockEnabled=_ref3.lockEnabled,_ref$captureEnabled=_ref3.captureEnabled,captureEnabled=_ref$captureEnabled===void 0?true:_ref$captureEnabled,onBottomArrive=_ref3.onBottomArrive,onBottomLeave=_ref3.onBottomLeave,onTopArrive=_ref3.onTopArrive,onTopLeave=_ref3.onTopLeave;var setScrollCaptureTarget=useScrollCapture({isEnabled:captureEnabled,onBottomArrive:onBottomArrive,onBottomLeave:onBottomLeave,onTopArrive:onTopArrive,onTopLeave:onTopLeave});var setScrollLockTarget=useScrollLock({isEnabled:lockEnabled});var targetRef=function targetRef2(element){setScrollCaptureTarget(element);setScrollLockTarget(element)};return jsx(Fragment$1,null,lockEnabled&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),children(targetRef))}var _ref2={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"};var RequiredInput=function RequiredInput2(_ref3){var name2=_ref3.name,onFocus2=_ref3.onFocus;return jsx("input",{required:true,name:name2,tabIndex:-1,"aria-hidden":"true",onFocus:onFocus2,css:_ref2,value:"",onChange:function onChange2(){}})};var RequiredInput$1=RequiredInput;function testPlatform(re){var _window$navigator$use;return typeof window!=="undefined"&&window.navigator!=null?re.test(((_window$navigator$use=window.navigator["userAgentData"])===null||_window$navigator$use===void 0?void 0:_window$navigator$use.platform)||window.navigator.platform):false}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac()||isIOS()}var formatGroupLabel=function formatGroupLabel2(group){return group.label};var getOptionLabel$1=function getOptionLabel(option){return option.label};var getOptionValue$1=function getOptionValue(option){return option.value};var isOptionDisabled=function isOptionDisabled2(option){return!!option.isDisabled};var defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css22,valueContainer:valueContainerCSS};var colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"};var borderRadius=4;var baseUnit=4;var controlHeight=38;var menuGutter=baseUnit*2;var spacing={baseUnit:baseUnit,controlHeight:controlHeight,menuGutter:menuGutter};var defaultTheme={borderRadius:borderRadius,colors:colors,spacing:spacing};var defaultProps={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:createFilter(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:isOptionDisabled,loadingMessage:function loadingMessage(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function noOptionsMessage(){return"No options"},openMenuOnFocus:false,openMenuOnClick:true,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function screenReaderStatus(_ref3){var count2=_ref3.count;return"".concat(count2," result").concat(count2!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:true,unstyled:false};function toCategorizedOption(props,option,selectValue,index2){var isDisabled=_isOptionDisabled(props,option,selectValue);var isSelected=_isOptionSelected(props,option,selectValue);var label=getOptionLabel2(props,option);var value=getOptionValue2(props,option);return{type:"option",data:option,isDisabled:isDisabled,isSelected:isSelected,label:label,value:value,index:index2}}function buildCategorizedOptions(props,selectValue){return props.options.map((function(groupOrOption,groupOrOptionIndex){if("options"in groupOrOption){var categorizedOptions=groupOrOption.options.map((function(option,optionIndex){return toCategorizedOption(props,option,selectValue,optionIndex)})).filter((function(categorizedOption2){return isFocusable(props,categorizedOption2)}));return categorizedOptions.length>0?{type:"group",data:groupOrOption,options:categorizedOptions,index:groupOrOptionIndex}:void 0}var categorizedOption=toCategorizedOption(props,groupOrOption,selectValue,groupOrOptionIndex);return isFocusable(props,categorizedOption)?categorizedOption:void 0})).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(categorizedOptions){return categorizedOptions.reduce((function(optionsAccumulator,categorizedOption){if(categorizedOption.type==="group"){optionsAccumulator.push.apply(optionsAccumulator,_toConsumableArray(categorizedOption.options.map((function(option){return option.data}))))}else{optionsAccumulator.push(categorizedOption.data)}return optionsAccumulator}),[])}function buildFocusableOptionsWithIds(categorizedOptions,optionId){return categorizedOptions.reduce((function(optionsAccumulator,categorizedOption){if(categorizedOption.type==="group"){optionsAccumulator.push.apply(optionsAccumulator,_toConsumableArray(categorizedOption.options.map((function(option){return{data:option.data,id:"".concat(optionId,"-").concat(categorizedOption.index,"-").concat(option.index)}}))))}else{optionsAccumulator.push({data:categorizedOption.data,id:"".concat(optionId,"-").concat(categorizedOption.index)})}return optionsAccumulator}),[])}function buildFocusableOptions(props,selectValue){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props,selectValue))}function isFocusable(props,categorizedOption){var _props$inputValue=props.inputValue,inputValue=_props$inputValue===void 0?"":_props$inputValue;var data=categorizedOption.data,isSelected=categorizedOption.isSelected,label=categorizedOption.label,value=categorizedOption.value;return(!shouldHideSelectedOptions(props)||!isSelected)&&_filterOption(props,{label:label,value:value,data:data},inputValue)}function getNextFocusedValue(state,nextSelectValue){var focusedValue=state.focusedValue,lastSelectValue=state.selectValue;var lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){var nextFocusedIndex=nextSelectValue.indexOf(focusedValue);if(nextFocusedIndex>-1){return focusedValue}else if(lastFocusedIndex<nextSelectValue.length){return nextSelectValue[lastFocusedIndex]}}return null}function getNextFocusedOption(state,options2){var lastFocusedOption=state.focusedOption;return lastFocusedOption&&options2.indexOf(lastFocusedOption)>-1?lastFocusedOption:options2[0]}var getFocusedOptionId=function getFocusedOptionId2(focusableOptionsWithIds,focusedOption){var _focusableOptionsWith;var focusedOptionId=(_focusableOptionsWith=focusableOptionsWithIds.find((function(option){return option.data===focusedOption})))===null||_focusableOptionsWith===void 0?void 0:_focusableOptionsWith.id;return focusedOptionId||null};var getOptionLabel2=function getOptionLabel3(props,data){return props.getOptionLabel(data)};var getOptionValue2=function getOptionValue3(props,data){return props.getOptionValue(data)};function _isOptionDisabled(props,option,selectValue){return typeof props.isOptionDisabled==="function"?props.isOptionDisabled(option,selectValue):false}function _isOptionSelected(props,option,selectValue){if(selectValue.indexOf(option)>-1)return true;if(typeof props.isOptionSelected==="function"){return props.isOptionSelected(option,selectValue)}var candidate=getOptionValue2(props,option);return selectValue.some((function(i){return getOptionValue2(props,i)===candidate}))}function _filterOption(props,option,inputValue){return props.filterOption?props.filterOption(option,inputValue):true}var shouldHideSelectedOptions=function shouldHideSelectedOptions2(props){var hideSelectedOptions=props.hideSelectedOptions,isMulti=props.isMulti;if(hideSelectedOptions===void 0)return isMulti;return hideSelectedOptions};var instanceId=1;var Select=function(_Component){_inherits$2(Select2,_Component);var _super=_createSuper$2(Select2);function Select2(_props){var _this;_classCallCheck$2(this,Select2);_this=_super.call(this,_props);_this.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""};_this.blockOptionHover=false;_this.isComposing=false;_this.commonProps=void 0;_this.initialTouchX=0;_this.initialTouchY=0;_this.openAfterFocus=false;_this.scrollToFocusedOptionOnUpdate=false;_this.userIsDragging=void 0;_this.isAppleDevice=isAppleDevice();_this.controlRef=null;_this.getControlRef=function(ref){_this.controlRef=ref};_this.focusedOptionRef=null;_this.getFocusedOptionRef=function(ref){_this.focusedOptionRef=ref};_this.menuListRef=null;_this.getMenuListRef=function(ref){_this.menuListRef=ref};_this.inputRef=null;_this.getInputRef=function(ref){_this.inputRef=ref};_this.focus=_this.focusInput;_this.blur=_this.blurInput;_this.onChange=function(newValue,actionMeta){var _this$props=_this.props,onChange2=_this$props.onChange,name2=_this$props.name;actionMeta.name=name2;_this.ariaOnChange(newValue,actionMeta);onChange2(newValue,actionMeta)};_this.setValue=function(newValue,action,option){var _this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti,inputValue=_this$props2.inputValue;_this.onInputChange("",{action:"set-value",prevInputValue:inputValue});if(closeMenuOnSelect){_this.setState({inputIsHiddenAfterUpdate:!isMulti});_this.onMenuClose()}_this.setState({clearFocusValueOnUpdate:true});_this.onChange(newValue,{action:action,option:option})};_this.selectOption=function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,name2=_this$props3.name;var selectValue=_this.state.selectValue;var deselected=isMulti&&_this.isOptionSelected(newValue,selectValue);var isDisabled=_this.isOptionDisabled(newValue,selectValue);if(deselected){var candidate=_this.getOptionValue(newValue);_this.setValue(multiValueAsValue(selectValue.filter((function(i){return _this.getOptionValue(i)!==candidate}))),"deselect-option",newValue)}else if(!isDisabled){if(isMulti){_this.setValue(multiValueAsValue([].concat(_toConsumableArray(selectValue),[newValue])),"select-option",newValue)}else{_this.setValue(singleValueAsValue(newValue),"select-option")}}else{_this.ariaOnChange(singleValueAsValue(newValue),{action:"select-option",option:newValue,name:name2});return}if(blurInputOnSelect){_this.blurInput()}};_this.removeValue=function(removedValue){var isMulti=_this.props.isMulti;var selectValue=_this.state.selectValue;var candidate=_this.getOptionValue(removedValue);var newValueArray=selectValue.filter((function(i){return _this.getOptionValue(i)!==candidate}));var newValue=valueTernary(isMulti,newValueArray,newValueArray[0]||null);_this.onChange(newValue,{action:"remove-value",removedValue:removedValue});_this.focusInput()};_this.clearValue=function(){var selectValue=_this.state.selectValue;_this.onChange(valueTernary(_this.props.isMulti,[],null),{action:"clear",removedValues:selectValue})};_this.popValue=function(){var isMulti=_this.props.isMulti;var selectValue=_this.state.selectValue;var lastSelectedValue=selectValue[selectValue.length-1];var newValueArray=selectValue.slice(0,selectValue.length-1);var newValue=valueTernary(isMulti,newValueArray,newValueArray[0]||null);_this.onChange(newValue,{action:"pop-value",removedValue:lastSelectedValue})};_this.getFocusedOptionId=function(focusedOption){return getFocusedOptionId(_this.state.focusableOptionsWithIds,focusedOption)};_this.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props,_this.state.selectValue),_this.getElementId("option"))};_this.getValue=function(){return _this.state.selectValue};_this.cx=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return classNames.apply(void 0,[_this.props.classNamePrefix].concat(args))};_this.getOptionLabel=function(data){return getOptionLabel2(_this.props,data)};_this.getOptionValue=function(data){return getOptionValue2(_this.props,data)};_this.getStyles=function(key,props){var unstyled=_this.props.unstyled;var base=defaultStyles[key](props,unstyled);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base};_this.getClassNames=function(key,props){var _this$props$className,_this$props$className2;return(_this$props$className=(_this$props$className2=_this.props.classNames)[key])===null||_this$props$className===void 0?void 0:_this$props$className.call(_this$props$className2,props)};_this.getElementId=function(element){return"".concat(_this.state.instancePrefix,"-").concat(element)};_this.getComponents=function(){return defaultComponents(_this.props)};_this.buildCategorizedOptions=function(){return buildCategorizedOptions(_this.props,_this.state.selectValue)};_this.getCategorizedOptions=function(){return _this.props.menuIsOpen?_this.buildCategorizedOptions():[]};_this.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(_this.buildCategorizedOptions())};_this.getFocusableOptions=function(){return _this.props.menuIsOpen?_this.buildFocusableOptions():[]};_this.ariaOnChange=function(value,actionMeta){_this.setState({ariaSelection:_objectSpread2$2({value:value},actionMeta)})};_this.onMenuMouseDown=function(event2){if(event2.button!==0){return}event2.stopPropagation();event2.preventDefault();_this.focusInput()};_this.onMenuMouseMove=function(event2){_this.blockOptionHover=false};_this.onControlMouseDown=function(event2){if(event2.defaultPrevented){return}var openMenuOnClick=_this.props.openMenuOnClick;if(!_this.state.isFocused){if(openMenuOnClick){_this.openAfterFocus=true}_this.focusInput()}else if(!_this.props.menuIsOpen){if(openMenuOnClick){_this.openMenu("first")}}else{if(event2.target.tagName!=="INPUT"&&event2.target.tagName!=="TEXTAREA"){_this.onMenuClose()}}if(event2.target.tagName!=="INPUT"&&event2.target.tagName!=="TEXTAREA"){event2.preventDefault()}};_this.onDropdownIndicatorMouseDown=function(event2){if(event2&&event2.type==="mousedown"&&event2.button!==0){return}if(_this.props.isDisabled)return;var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput();if(menuIsOpen){_this.setState({inputIsHiddenAfterUpdate:!isMulti});_this.onMenuClose()}else{_this.openMenu("first")}event2.preventDefault()};_this.onClearIndicatorMouseDown=function(event2){if(event2&&event2.type==="mousedown"&&event2.button!==0){return}_this.clearValue();event2.preventDefault();_this.openAfterFocus=false;if(event2.type==="touchend"){_this.focusInput()}else{setTimeout((function(){return _this.focusInput()}))}};_this.onScroll=function(event2){if(typeof _this.props.closeMenuOnScroll==="boolean"){if(event2.target instanceof HTMLElement&&isDocumentElement(event2.target)){_this.props.onMenuClose()}}else if(typeof _this.props.closeMenuOnScroll==="function"){if(_this.props.closeMenuOnScroll(event2)){_this.props.onMenuClose()}}};_this.onCompositionStart=function(){_this.isComposing=true};_this.onCompositionEnd=function(){_this.isComposing=false};_this.onTouchStart=function(_ref22){var touches=_ref22.touches;var touch=touches&&touches.item(0);if(!touch){return}_this.initialTouchX=touch.clientX;_this.initialTouchY=touch.clientY;_this.userIsDragging=false};_this.onTouchMove=function(_ref3){var touches=_ref3.touches;var touch=touches&&touches.item(0);if(!touch){return}var deltaX=Math.abs(touch.clientX-_this.initialTouchX);var deltaY=Math.abs(touch.clientY-_this.initialTouchY);var moveThreshold=5;_this.userIsDragging=deltaX>moveThreshold||deltaY>moveThreshold};_this.onTouchEnd=function(event2){if(_this.userIsDragging)return;if(_this.controlRef&&!_this.controlRef.contains(event2.target)&&_this.menuListRef&&!_this.menuListRef.contains(event2.target)){_this.blurInput()}_this.initialTouchX=0;_this.initialTouchY=0};_this.onControlTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onControlMouseDown(event2)};_this.onClearIndicatorTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onClearIndicatorMouseDown(event2)};_this.onDropdownIndicatorTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onDropdownIndicatorMouseDown(event2)};_this.handleInputChange=function(event2){var prevInputValue=_this.props.inputValue;var inputValue=event2.currentTarget.value;_this.setState({inputIsHiddenAfterUpdate:false});_this.onInputChange(inputValue,{action:"input-change",prevInputValue:prevInputValue});if(!_this.props.menuIsOpen){_this.onMenuOpen()}};_this.onInputFocus=function(event2){if(_this.props.onFocus){_this.props.onFocus(event2)}_this.setState({inputIsHiddenAfterUpdate:false,isFocused:true});if(_this.openAfterFocus||_this.props.openMenuOnFocus){_this.openMenu("first")}_this.openAfterFocus=false};_this.onInputBlur=function(event2){var prevInputValue=_this.props.inputValue;if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement)){_this.inputRef.focus();return}if(_this.props.onBlur){_this.props.onBlur(event2)}_this.onInputChange("",{action:"input-blur",prevInputValue:prevInputValue});_this.onMenuClose();_this.setState({focusedValue:null,isFocused:false})};_this.onOptionHover=function(focusedOption){if(_this.blockOptionHover||_this.state.focusedOption===focusedOption){return}var options2=_this.getFocusableOptions();var focusedOptionIndex=options2.indexOf(focusedOption);_this.setState({focusedOption:focusedOption,focusedOptionId:focusedOptionIndex>-1?_this.getFocusedOptionId(focusedOption):null})};_this.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(_this.props)};_this.onValueInputFocus=function(e2){e2.preventDefault();e2.stopPropagation();_this.focus()};_this.onKeyDown=function(event2){var _this$props5=_this.props,isMulti=_this$props5.isMulti,backspaceRemovesValue=_this$props5.backspaceRemovesValue,escapeClearsValue=_this$props5.escapeClearsValue,inputValue=_this$props5.inputValue,isClearable=_this$props5.isClearable,isDisabled=_this$props5.isDisabled,menuIsOpen=_this$props5.menuIsOpen,onKeyDown=_this$props5.onKeyDown,tabSelectsValue=_this$props5.tabSelectsValue,openMenuOnFocus=_this$props5.openMenuOnFocus;var _this$state=_this.state,focusedOption=_this$state.focusedOption,focusedValue=_this$state.focusedValue,selectValue=_this$state.selectValue;if(isDisabled)return;if(typeof onKeyDown==="function"){onKeyDown(event2);if(event2.defaultPrevented){return}}_this.blockOptionHover=true;switch(event2.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue){_this.removeValue(focusedValue)}else{if(!backspaceRemovesValue)return;if(isMulti){_this.popValue()}else if(isClearable){_this.clearValue()}}break;case"Tab":if(_this.isComposing)return;if(event2.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue)){return}_this.selectOption(focusedOption);break;case"Enter":if(event2.keyCode===229){break}if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":if(menuIsOpen){_this.setState({inputIsHiddenAfterUpdate:false});_this.onInputChange("",{action:"menu-close",prevInputValue:inputValue});_this.onMenuClose()}else if(isClearable&&escapeClearsValue){_this.clearValue()}break;case" ":if(inputValue){return}if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":if(menuIsOpen){_this.focusOption("up")}else{_this.openMenu("last")}break;case"ArrowDown":if(menuIsOpen){_this.focusOption("down")}else{_this.openMenu("first")}break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event2.preventDefault()};_this.state.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);_this.state.selectValue=cleanValue(_props.value);if(_props.menuIsOpen&&_this.state.selectValue.length){var focusableOptionsWithIds=_this.getFocusableOptionsWithIds();var focusableOptions=_this.buildFocusableOptions();var optionIndex=focusableOptions.indexOf(_this.state.selectValue[0]);_this.state.focusableOptionsWithIds=focusableOptionsWithIds;_this.state.focusedOption=focusableOptions[optionIndex];_this.state.focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusableOptions[optionIndex])}return _this}_createClass$2(Select2,[{key:"componentDidMount",value:function componentDidMount(){this.startListeningComposition();this.startListeningToTouch();if(this.props.closeMenuOnScroll&&document&&document.addEventListener){document.addEventListener("scroll",this.onScroll,true)}if(this.props.autoFocus){this.focusInput()}if(this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef){scrollIntoView(this.menuListRef,this.focusedOptionRef)}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var _this$props6=this.props,isDisabled=_this$props6.isDisabled,menuIsOpen=_this$props6.menuIsOpen;var isFocused=this.state.isFocused;if(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen){this.focusInput()}if(isFocused&&isDisabled&&!prevProps.isDisabled){this.setState({isFocused:false},this.onMenuClose)}else if(!isFocused&&!isDisabled&&prevProps.isDisabled&&this.inputRef===document.activeElement){this.setState({isFocused:true})}if(this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate){scrollIntoView(this.menuListRef,this.focusedOptionRef);this.scrollToFocusedOptionOnUpdate=false}}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.stopListeningComposition();this.stopListeningToTouch();document.removeEventListener("scroll",this.onScroll,true)}},{key:"onMenuOpen",value:function onMenuOpen(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function onMenuClose(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue});this.props.onMenuClose()}},{key:"onInputChange",value:function onInputChange(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function focusInput(){if(!this.inputRef)return;this.inputRef.focus()}},{key:"blurInput",value:function blurInput(){if(!this.inputRef)return;this.inputRef.blur()}},{key:"openMenu",value:function openMenu(focusOption){var _this2=this;var _this$state2=this.state,selectValue=_this$state2.selectValue,isFocused=_this$state2.isFocused;var focusableOptions=this.buildFocusableOptions();var openAtIndex=focusOption==="first"?0:focusableOptions.length-1;if(!this.props.isMulti){var selectedIndex=focusableOptions.indexOf(selectValue[0]);if(selectedIndex>-1){openAtIndex=selectedIndex}}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef);this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:focusableOptions[openAtIndex],focusedOptionId:this.getFocusedOptionId(focusableOptions[openAtIndex])},(function(){return _this2.onMenuOpen()}))}},{key:"focusValue",value:function focusValue(direction){var _this$state3=this.state,selectValue=_this$state3.selectValue,focusedValue=_this$state3.focusedValue;if(!this.props.isMulti)return;this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);if(!focusedValue){focusedIndex=-1}var lastIndex=selectValue.length-1;var nextFocus=-1;if(!selectValue.length)return;switch(direction){case"previous":if(focusedIndex===0){nextFocus=0}else if(focusedIndex===-1){nextFocus=lastIndex}else{nextFocus=focusedIndex-1}break;case"next":if(focusedIndex>-1&&focusedIndex<lastIndex){nextFocus=focusedIndex+1}break}this.setState({inputIsHidden:nextFocus!==-1,focusedValue:selectValue[nextFocus]})}},{key:"focusOption",value:function focusOption(){var direction=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first";var pageSize=this.props.pageSize;var focusedOption=this.state.focusedOption;var options2=this.getFocusableOptions();if(!options2.length)return;var nextFocus=0;var focusedIndex=options2.indexOf(focusedOption);if(!focusedOption){focusedIndex=-1}if(direction==="up"){nextFocus=focusedIndex>0?focusedIndex-1:options2.length-1}else if(direction==="down"){nextFocus=(focusedIndex+1)%options2.length}else if(direction==="pageup"){nextFocus=focusedIndex-pageSize;if(nextFocus<0)nextFocus=0}else if(direction==="pagedown"){nextFocus=focusedIndex+pageSize;if(nextFocus>options2.length-1)nextFocus=options2.length-1}else if(direction==="last"){nextFocus=options2.length-1}this.scrollToFocusedOptionOnUpdate=true;this.setState({focusedOption:options2[nextFocus],focusedValue:null,focusedOptionId:this.getFocusedOptionId(options2[nextFocus])})}},{key:"getTheme",value:function getTheme(){if(!this.props.theme){return defaultTheme}if(typeof this.props.theme==="function"){return this.props.theme(defaultTheme)}return _objectSpread2$2(_objectSpread2$2({},defaultTheme),this.props.theme)}},{key:"getCommonProps",value:function getCommonProps(){var clearValue=this.clearValue,cx=this.cx,getStyles2=this.getStyles,getClassNames=this.getClassNames,getValue=this.getValue,selectOption=this.selectOption,setValue=this.setValue,props=this.props;var isMulti=props.isMulti,isRtl=props.isRtl,options2=props.options;var hasValue2=this.hasValue();return{clearValue:clearValue,cx:cx,getStyles:getStyles2,getClassNames:getClassNames,getValue:getValue,hasValue:hasValue2,isMulti:isMulti,isRtl:isRtl,options:options2,selectOption:selectOption,selectProps:props,setValue:setValue,theme:this.getTheme()}}},{key:"hasValue",value:function hasValue2(){var selectValue=this.state.selectValue;return selectValue.length>0}},{key:"hasOptions",value:function hasOptions(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function isClearable(){var _this$props7=this.props,isClearable2=_this$props7.isClearable,isMulti=_this$props7.isMulti;if(isClearable2===void 0)return isMulti;return isClearable2}},{key:"isOptionDisabled",value:function isOptionDisabled3(option,selectValue){return _isOptionDisabled(this.props,option,selectValue)}},{key:"isOptionSelected",value:function isOptionSelected(option,selectValue){return _isOptionSelected(this.props,option,selectValue)}},{key:"filterOption",value:function filterOption(option,inputValue){return _filterOption(this.props,option,inputValue)}},{key:"formatOptionLabel",value:function formatOptionLabel(data,context){if(typeof this.props.formatOptionLabel==="function"){var _inputValue=this.props.inputValue;var _selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:_inputValue,selectValue:_selectValue})}else{return this.getOptionLabel(data)}}},{key:"formatGroupLabel",value:function formatGroupLabel3(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function startListeningComposition(){if(document&&document.addEventListener){document.addEventListener("compositionstart",this.onCompositionStart,false);document.addEventListener("compositionend",this.onCompositionEnd,false)}}},{key:"stopListeningComposition",value:function stopListeningComposition(){if(document&&document.removeEventListener){document.removeEventListener("compositionstart",this.onCompositionStart);document.removeEventListener("compositionend",this.onCompositionEnd)}}},{key:"startListeningToTouch",value:function startListeningToTouch(){if(document&&document.addEventListener){document.addEventListener("touchstart",this.onTouchStart,false);document.addEventListener("touchmove",this.onTouchMove,false);document.addEventListener("touchend",this.onTouchEnd,false)}}},{key:"stopListeningToTouch",value:function stopListeningToTouch(){if(document&&document.removeEventListener){document.removeEventListener("touchstart",this.onTouchStart);document.removeEventListener("touchmove",this.onTouchMove);document.removeEventListener("touchend",this.onTouchEnd)}}},{key:"renderInput",value:function renderInput(){var _this$props8=this.props,isDisabled=_this$props8.isDisabled,isSearchable=_this$props8.isSearchable,inputId=_this$props8.inputId,inputValue=_this$props8.inputValue,tabIndex=_this$props8.tabIndex,form=_this$props8.form,menuIsOpen=_this$props8.menuIsOpen,required=_this$props8.required;var _this$getComponents=this.getComponents(),Input3=_this$getComponents.Input;var _this$state4=this.state,inputIsHidden=_this$state4.inputIsHidden,ariaSelection=_this$state4.ariaSelection;var commonProps=this.commonProps;var id=inputId||this.getElementId("input");var ariaAttributes=_objectSpread2$2(_objectSpread2$2(_objectSpread2$2({"aria-autocomplete":"list","aria-expanded":menuIsOpen,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":required,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},menuIsOpen&&{"aria-controls":this.getElementId("listbox")}),!isSearchable&&{"aria-readonly":true}),this.hasValue()?(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});if(!isSearchable){return React$1.createElement(DummyInput,_extends$2({id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop$2,onFocus:this.onInputFocus,disabled:isDisabled,tabIndex:tabIndex,inputMode:"none",form:form,value:""},ariaAttributes))}return React$1.createElement(Input3,_extends$2({},commonProps,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:tabIndex,form:form,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var _this3=this;var _this$getComponents2=this.getComponents(),MultiValue3=_this$getComponents2.MultiValue,MultiValueContainer2=_this$getComponents2.MultiValueContainer,MultiValueLabel2=_this$getComponents2.MultiValueLabel,MultiValueRemove2=_this$getComponents2.MultiValueRemove,SingleValue3=_this$getComponents2.SingleValue,Placeholder3=_this$getComponents2.Placeholder;var commonProps=this.commonProps;var _this$props9=this.props,controlShouldRenderValue=_this$props9.controlShouldRenderValue,isDisabled=_this$props9.isDisabled,isMulti=_this$props9.isMulti,inputValue=_this$props9.inputValue,placeholder=_this$props9.placeholder;var _this$state5=this.state,selectValue=_this$state5.selectValue,focusedValue=_this$state5.focusedValue,isFocused=_this$state5.isFocused;if(!this.hasValue()||!controlShouldRenderValue){return inputValue?null:React$1.createElement(Placeholder3,_extends$2({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused,innerProps:{id:this.getElementId("placeholder")}}),placeholder)}if(isMulti){return selectValue.map((function(opt,index2){var isOptionFocused=opt===focusedValue;var key="".concat(_this3.getOptionLabel(opt),"-").concat(_this3.getOptionValue(opt));return React$1.createElement(MultiValue3,_extends$2({},commonProps,{components:{Container:MultiValueContainer2,Label:MultiValueLabel2,Remove:MultiValueRemove2},isFocused:isOptionFocused,isDisabled:isDisabled,key:key,index:index2,removeProps:{onClick:function onClick(){return _this3.removeValue(opt)},onTouchEnd:function onTouchEnd(){return _this3.removeValue(opt)},onMouseDown:function onMouseDown(e2){e2.preventDefault()}},data:opt}),_this3.formatOptionLabel(opt,"value"))}))}if(inputValue){return null}var singleValue=selectValue[0];return React$1.createElement(SingleValue3,_extends$2({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function renderClearIndicator(){var _this$getComponents3=this.getComponents(),ClearIndicator3=_this$getComponents3.ClearIndicator;var commonProps=this.commonProps;var _this$props10=this.props,isDisabled=_this$props10.isDisabled,isLoading=_this$props10.isLoading;var isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator3||isDisabled||!this.hasValue()||isLoading){return null}var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return React$1.createElement(ClearIndicator3,_extends$2({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var _this$getComponents4=this.getComponents(),LoadingIndicator3=_this$getComponents4.LoadingIndicator;var commonProps=this.commonProps;var _this$props11=this.props,isDisabled=_this$props11.isDisabled,isLoading=_this$props11.isLoading;var isFocused=this.state.isFocused;if(!LoadingIndicator3||!isLoading)return null;var innerProps={"aria-hidden":"true"};return React$1.createElement(LoadingIndicator3,_extends$2({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var _this$getComponents5=this.getComponents(),DropdownIndicator3=_this$getComponents5.DropdownIndicator,IndicatorSeparator3=_this$getComponents5.IndicatorSeparator;if(!DropdownIndicator3||!IndicatorSeparator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;return React$1.createElement(IndicatorSeparator3,_extends$2({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var _this$getComponents6=this.getComponents(),DropdownIndicator3=_this$getComponents6.DropdownIndicator;if(!DropdownIndicator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;var innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return React$1.createElement(DropdownIndicator3,_extends$2({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function renderMenu(){var _this4=this;var _this$getComponents7=this.getComponents(),Group3=_this$getComponents7.Group,GroupHeading3=_this$getComponents7.GroupHeading,Menu3=_this$getComponents7.Menu,MenuList3=_this$getComponents7.MenuList,MenuPortal3=_this$getComponents7.MenuPortal,LoadingMessage3=_this$getComponents7.LoadingMessage,NoOptionsMessage3=_this$getComponents7.NoOptionsMessage,Option3=_this$getComponents7.Option;var commonProps=this.commonProps;var focusedOption=this.state.focusedOption;var _this$props12=this.props,captureMenuScroll=_this$props12.captureMenuScroll,inputValue=_this$props12.inputValue,isLoading=_this$props12.isLoading,loadingMessage2=_this$props12.loadingMessage,minMenuHeight=_this$props12.minMenuHeight,maxMenuHeight=_this$props12.maxMenuHeight,menuIsOpen=_this$props12.menuIsOpen,menuPlacement=_this$props12.menuPlacement,menuPosition=_this$props12.menuPosition,menuPortalTarget=_this$props12.menuPortalTarget,menuShouldBlockScroll=_this$props12.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props12.menuShouldScrollIntoView,noOptionsMessage2=_this$props12.noOptionsMessage,onMenuScrollToTop=_this$props12.onMenuScrollToTop,onMenuScrollToBottom=_this$props12.onMenuScrollToBottom;if(!menuIsOpen)return null;var render=function render2(props,id){var type=props.type,data=props.data,isDisabled=props.isDisabled,isSelected=props.isSelected,label=props.label,value=props.value;var isFocused=focusedOption===data;var onHover=isDisabled?void 0:function(){return _this4.onOptionHover(data)};var onSelect=isDisabled?void 0:function(){return _this4.selectOption(data)};var optionId="".concat(_this4.getElementId("option"),"-").concat(id);var innerProps={id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1,role:"option","aria-selected":_this4.isAppleDevice?void 0:isSelected};return React$1.createElement(Option3,_extends$2({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"))};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map((function(item){if(item.type==="group"){var _data=item.data,options2=item.options,groupIndex=item.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return React$1.createElement(Group3,_extends$2({},commonProps,{key:groupId,data:_data,options:options2,Heading:GroupHeading3,headingProps:{id:headingId,data:item.data},label:_this4.formatGroupLabel(item.data)}),item.options.map((function(option){return render(option,"".concat(groupIndex,"-").concat(option.index))})))}else if(item.type==="option"){return render(item,"".concat(item.index))}}))}else if(isLoading){var message=loadingMessage2({inputValue:inputValue});if(message===null)return null;menuUI=React$1.createElement(LoadingMessage3,commonProps,message)}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=React$1.createElement(NoOptionsMessage3,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=React$1.createElement(MenuPlacer,_extends$2({},commonProps,menuPlacementProps),(function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight=_ref4$placerProps.maxHeight;return React$1.createElement(Menu3,_extends$2({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),React$1.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},(function(scrollTargetRef){return React$1.createElement(MenuList3,_extends$2({},commonProps,{innerRef:function innerRef(instance){_this4.getMenuListRef(instance);scrollTargetRef(instance)},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight,focusedOption:focusedOption}),menuUI)})))}));return menuPortalTarget||menuPosition==="fixed"?React$1.createElement(MenuPortal3,_extends$2({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name2=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return React$1.createElement(RequiredInput$1,{name:name2,onFocus:this.onValueInputFocus})}if(!name2||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map((function(opt){return _this5.getOptionValue(opt)})).join(delimiter2);return React$1.createElement("input",{name:name2,type:"hidden",value:value})}else{var input=selectValue.length>0?selectValue.map((function(opt,i){return React$1.createElement("input",{key:"i-".concat(i),name:name2,type:"hidden",value:_this5.getOptionValue(opt)})})):React$1.createElement("input",{name:name2,type:"hidden",value:""});return React$1.createElement("div",null,input)}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return React$1.createElement("input",{name:name2,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return React$1.createElement(LiveRegion$1,_extends$2({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return React$1.createElement(SelectContainer3,_extends$2({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),React$1.createElement(Control3,_extends$2({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),React$1.createElement(ValueContainer3,_extends$2({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),React$1.createElement(IndicatorsContainer3,_extends$2({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options2=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options2!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false}}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null}return _objectSpread2$2(_objectSpread2$2(_objectSpread2$2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus})}}]);return Select2}(Component);Select.defaultProps=defaultProps;var StateManagedSelect=forwardRef((function(props,ref){var baseSelectProps=useStateManager(props);return React$1.createElement(Select,_extends$2({ref:ref},baseSelectProps))}));var StateManagedSelect$1=StateManagedSelect;var _excluded$5=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties$2(_ref3,_excluded$5);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions2=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions)}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions)}useEffect((function(){mounted.current=true;return function(){mounted.current=false}}),[]);var loadOptions=useCallback((function(inputValue,callback){if(!propsLoadOptions)return callback();var loader=propsLoadOptions(inputValue,callback);if(loader&&typeof loader.then==="function"){loader.then(callback,(function(){return callback()}))}}),[propsLoadOptions]);useEffect((function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,(function(options3){if(!mounted.current)return;setDefaultOptions(options3||[]);setIsLoading(!!lastRequest.current)}))}}),[]);var onInputChange=useCallback((function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false)}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,(function(options3){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options3||[]);setPassEmptyOptions(false);setOptionsCache(options3?_objectSpread2$2(_objectSpread2$2({},optionsCache),{},_defineProperty$2({},inputValue,options3)):optionsCache)}))}}),[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options2=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions2||[];return _objectSpread2$2(_objectSpread2$2({},restSelectProps),{},{options:options2,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange,filterOption:filterOption})}var AsyncSelect=forwardRef((function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return React$1.createElement(Select,_extends$2({ref:ref},selectProps))}));var AsyncSelect$1=AsyncSelect;var _excluded$4=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"];var compareOption=function compareOption2(){var inputValue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var option=arguments.length>1?arguments[1]:void 0;var accessors=arguments.length>2?arguments[2]:void 0;var candidate=String(inputValue).toLowerCase();var optionValue=String(accessors.getOptionValue(option)).toLowerCase();var optionLabel=String(accessors.getOptionLabel(option)).toLowerCase();return optionValue===candidate||optionLabel===candidate};var builtins={formatCreateLabel:function formatCreateLabel(inputValue){return'Create "'.concat(inputValue,'"')},isValidNewOption:function isValidNewOption(inputValue,selectValue,selectOptions,accessors){return!(!inputValue||selectValue.some((function(option){return compareOption(inputValue,option,accessors)}))||selectOptions.some((function(option){return compareOption(inputValue,option,accessors)})))},getNewOptionData:function getNewOptionData(inputValue,optionLabel){return{label:optionLabel,value:inputValue,__isNew__:true}}};function useCreatable(_ref3){var _ref$allowCreateWhile=_ref3.allowCreateWhileLoading,allowCreateWhileLoading=_ref$allowCreateWhile===void 0?false:_ref$allowCreateWhile,_ref$createOptionPosi=_ref3.createOptionPosition,createOptionPosition=_ref$createOptionPosi===void 0?"last":_ref$createOptionPosi,_ref$formatCreateLabe=_ref3.formatCreateLabel,formatCreateLabel2=_ref$formatCreateLabe===void 0?builtins.formatCreateLabel:_ref$formatCreateLabe,_ref$isValidNewOption=_ref3.isValidNewOption,isValidNewOption2=_ref$isValidNewOption===void 0?builtins.isValidNewOption:_ref$isValidNewOption,_ref$getNewOptionData=_ref3.getNewOptionData,getNewOptionData2=_ref$getNewOptionData===void 0?builtins.getNewOptionData:_ref$getNewOptionData,onCreateOption=_ref3.onCreateOption,_ref$options=_ref3.options,propsOptions=_ref$options===void 0?[]:_ref$options,propsOnChange=_ref3.onChange,restSelectProps=_objectWithoutProperties$2(_ref3,_excluded$4);var _restSelectProps$getO=restSelectProps.getOptionValue,getOptionValue$1$1=_restSelectProps$getO===void 0?getOptionValue$1:_restSelectProps$getO,_restSelectProps$getO2=restSelectProps.getOptionLabel,getOptionLabel$1$1=_restSelectProps$getO2===void 0?getOptionLabel$1:_restSelectProps$getO2,inputValue=restSelectProps.inputValue,isLoading=restSelectProps.isLoading,isMulti=restSelectProps.isMulti,value=restSelectProps.value,name2=restSelectProps.name;var newOption=useMemo((function(){return isValidNewOption2(inputValue,cleanValue(value),propsOptions,{getOptionValue:getOptionValue$1$1,getOptionLabel:getOptionLabel$1$1})?getNewOptionData2(inputValue,formatCreateLabel2(inputValue)):void 0}),[formatCreateLabel2,getNewOptionData2,getOptionLabel$1$1,getOptionValue$1$1,inputValue,isValidNewOption2,propsOptions,value]);var options2=useMemo((function(){return(allowCreateWhileLoading||!isLoading)&&newOption?createOptionPosition==="first"?[newOption].concat(_toConsumableArray(propsOptions)):[].concat(_toConsumableArray(propsOptions),[newOption]):propsOptions}),[allowCreateWhileLoading,createOptionPosition,isLoading,newOption,propsOptions]);var onChange2=useCallback((function(newValue,actionMeta){if(actionMeta.action!=="select-option"){return propsOnChange(newValue,actionMeta)}var valueArray=Array.isArray(newValue)?newValue:[newValue];if(valueArray[valueArray.length-1]===newOption){if(onCreateOption)onCreateOption(inputValue);else{var newOptionData=getNewOptionData2(inputValue,inputValue);var newActionMeta={action:"create-option",name:name2,option:newOptionData};propsOnChange(valueTernary(isMulti,[].concat(_toConsumableArray(cleanValue(value)),[newOptionData]),newOptionData),newActionMeta)}return}propsOnChange(newValue,actionMeta)}),[getNewOptionData2,inputValue,isMulti,name2,newOption,onCreateOption,propsOnChange,value]);return _objectSpread2$2(_objectSpread2$2({},restSelectProps),{},{options:options2,onChange:onChange2})}var CreatableSelect=forwardRef((function(props,ref){var creatableProps=useStateManager(props);var selectProps=useCreatable(creatableProps);return React$1.createElement(Select,_extends$2({ref:ref},selectProps))}));var CreatableSelect$1=CreatableSelect;var AsyncCreatableSelect=forwardRef((function(props,ref){var stateManagerProps=useAsync(props);var creatableProps=useStateManager(stateManagerProps);var selectProps=useCreatable(creatableProps);return React$1.createElement(Select,_extends$2({ref:ref},selectProps))}));var AsyncCreatableSelect$1=AsyncCreatableSelect;const TypeaheadControl=props=>jsx$1("div",{className:"pb_typeahead_wrapper",children:jsx$1(TextInput$1,{dark:props.selectProps.dark,error:props.selectProps.error,label:props.selectProps.label,children:jsx$1(Flex,{children:jsx$1(components.Control,{className:"text_input",...props})})})});const ClearContainer=props=>{const{selectProps:selectProps,clearValue:clearValue}=props;useEffect((()=>{document.addEventListener(`pb-typeahead-kit-${selectProps.id}:clear`,clearValue)}),[]);return jsx$1(components.ClearIndicator,{className:"clear_indicator",...props})};const IndicatorsContainer=props=>jsx$1(components.IndicatorsContainer,{className:"text_input_indicators",...props});const MenuList=props=>jsxs(components.MenuList,{...props,children:[props.children,props.footer]});const MultiValue=props=>{const{removeProps:removeProps3}=props;const{imageUrl:imageUrl,label:label}=props.data;const{multiKit:multiKit}=props.selectProps;return jsxs(components.MultiValueContainer,{className:"text_input_multivalue_container",...props,children:[multiKit==="badge"&&jsx$1(Badge,{closeProps:removeProps3,removeIcon:true,text:label,variant:"primary"}),multiKit!=="badge"&&imageUrl&&jsx$1(FormPill,{avatarUrl:imageUrl,closeProps:removeProps3,marginRight:"xs",name:label,size:multiKit==="smallPill"?"small":"",text:""}),multiKit!=="badge"&&!imageUrl&&jsx$1(FormPill,{closeProps:removeProps3,marginRight:"xs",name:"",size:multiKit==="smallPill"?"small":"",text:label})]})};const Option=props=>{const{imageUrl:imageUrl}=props.data;const{valueComponent:valueComponent}=props.selectProps;return jsx$1(components.Option,{...props,children:jsxs(Fragment,{children:[!valueComponent&&imageUrl&&jsx$1(User,{align:"left",avatarUrl:imageUrl,dark:props.selectProps.dark,name:props.label,orientation:"horizontal"}),valueComponent&&valueComponent(props.data),!valueComponent&&!imageUrl&&props.label]})})};const Placeholder=props=>jsx$1(Fragment,{children:jsxs(Flex,{align:"center",className:"placeholder",children:[jsx$1(components.IndicatorsContainer,{...props}),props.selectProps.plusIcon&&jsx$1(Icon,{className:"typeahead-plus-icon",icon:"plus"})]})});const ValueContainer=props=>jsx$1(components.ValueContainer,{className:"text_input_value_container",...props});const kitComponents=Object.freeze(Object.defineProperty({__proto__:null,ClearIndicator:ClearContainer,Control:TypeaheadControl,IndicatorsContainer:IndicatorsContainer,MenuList:MenuList,MultiValue:MultiValue,Option:Option,Placeholder:Placeholder,ValueContainer:ValueContainer},Symbol.toStringTag,{value:"Module"}));const Typeahead=({async:async,className:className,components:components2={},createable:createable,error:error="",data:data={},getOptionLabel:getOptionLabel4,getOptionValue:getOptionValue4,htmlOptions:htmlOptions={},id:id,loadOptions:loadOptions=noop$3,...props})=>{const selectProps={cacheOptions:true,components:{Control:TypeaheadControl,ClearIndicator:ClearContainer,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:null,MenuList:MenuList,MultiValue:MultiValue,Option:Option,Placeholder:Placeholder,ValueContainer:ValueContainer,...components2},loadOptions:lodashExports.isString(loadOptions)?lodashExports.get(window,loadOptions):loadOptions,getOptionLabel:lodashExports.isString(getOptionLabel4)?lodashExports.get(window,getOptionLabel4):getOptionLabel4,getOptionValue:lodashExports.isString(getOptionValue4)?lodashExports.get(window,getOptionValue4):getOptionValue4,defaultOptions:true,id:id||lodashExports.uniqueId(),inline:false,isClearable:true,isSearchable:true,name:name,multiKit:"",onCreateOption:null,plusIcon:false,onMultiValueClick:_option=>void 0,...props};const Tag=createable?async?AsyncCreatableSelect$1:CreatableSelect$1:async?AsyncSelect$1:StateManagedSelect$1;const handleOnChange=(_data,{action:action,option:option,removedValue:removedValue})=>{if(action==="select-option"){if(selectProps.onMultiValueClick)selectProps.onMultiValueClick(option);const multiValueClearEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-select`,{detail:option?option:_data});document.dispatchEvent(multiValueClearEvent)}if(action==="remove-value"||action==="pop-value"){const multiValueRemoveEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-remove`,{detail:removedValue});document.dispatchEvent(multiValueRemoveEvent)}if(action==="clear"){const multiValueClearEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-clear`);document.dispatchEvent(multiValueClearEvent)}};const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_typeahead_kit react-select",globalProps(props),className);const inlineClass=selectProps.inline?"inline":null;return jsx$1("div",{...dataProps,...htmlProps,className:classnames(classes,inlineClass),children:jsx$1(Tag,{classNamePrefix:"typeahead-kit-select",error:error,onChange:handleOnChange,...selectProps})})};Object.keys(kitComponents).forEach((k2=>{Typeahead[k2]=kitComponents[k2]}));const User=props=>{const{align:align="left",aria:aria={},avatar:avatar=false,avatarUrl:avatarUrl,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,name:name2,orientation:orientation="horizontal",size:size="sm",subtitle:subtitle,territory:territory="",title:title=""}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_user_kit",align,orientation,size),globalProps(props),className);const avatarPresent=avatar||avatarUrl;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[avatarPresent&&jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:size,status:null}),jsxs("div",{className:"content_wrapper",children:[jsx$1(Title,{dark:dark,size:size=="lg"?3:4,text:name2}),jsx$1(Body$1,{color:"light",dark:dark,variant:null,children:territory===""?title:`${territory} • ${title}`}),typeof subtitle==="string"&&jsx$1(Body$1,{color:"light",dark:dark,text:subtitle,variant:null}),typeof subtitle!=="string"&&jsx$1(Fragment,{children:subtitle})]})]})};function isOfType$2(type){return function(value){return typeof value===type}}var isFunction$1=isOfType$2("function");var isNull=function(value){return value===null};var isRegex=function(value){return Object.prototype.toString.call(value).slice(8,-1)==="RegExp"};var isObject=function(value){return!isUndefined(value)&&!isNull(value)&&(isFunction$1(value)||typeof value==="object")};var isUndefined=isOfType$2("undefined");var __values=function(o2){var s2=typeof Symbol==="function"&&Symbol.iterator,m2=s2&&o2[s2],i=0;if(m2)return m2.call(o2);if(o2&&typeof o2.length==="number")return{next:function(){if(o2&&i>=o2.length)o2=void 0;return{value:o2&&o2[i++],done:!o2}}};throw new TypeError(s2?"Object is not iterable.":"Symbol.iterator is not defined.")};function equalArray(left,right){var length2=left.length;if(length2!==right.length){return false}for(var index2=length2;index2--!==0;){if(!equal(left[index2],right[index2])){return false}}return true}function equalArrayBuffer(left,right){if(left.byteLength!==right.byteLength){return false}var view1=new DataView(left.buffer);var view2=new DataView(right.buffer);var index2=left.byteLength;while(index2--){if(view1.getUint8(index2)!==view2.getUint8(index2)){return false}}return true}function equalMap(left,right){var e_1,_a,e_2,_b;if(left.size!==right.size){return false}try{for(var _c=__values(left.entries()),_d=_c.next();!_d.done;_d=_c.next()){var index2=_d.value;if(!right.has(index2[0])){return false}}}catch(e_1_1){e_1={error:e_1_1}}finally{try{if(_d&&!_d.done&&(_a=_c.return))_a.call(_c)}finally{if(e_1)throw e_1.error}}try{for(var _e=__values(left.entries()),_f=_e.next();!_f.done;_f=_e.next()){var index2=_f.value;if(!equal(index2[1],right.get(index2[0]))){return false}}}catch(e_2_1){e_2={error:e_2_1}}finally{try{if(_f&&!_f.done&&(_b=_e.return))_b.call(_e)}finally{if(e_2)throw e_2.error}}return true}function equalSet(left,right){var e_3,_a;if(left.size!==right.size){return false}try{for(var _b=__values(left.entries()),_c=_b.next();!_c.done;_c=_b.next()){var index2=_c.value;if(!right.has(index2[0])){return false}}}catch(e_3_1){e_3={error:e_3_1}}finally{try{if(_c&&!_c.done&&(_a=_b.return))_a.call(_b)}finally{if(e_3)throw e_3.error}}return true}function equal(left,right){if(left===right){return true}if(left&&isObject(left)&&right&&isObject(right)){if(left.constructor!==right.constructor){return false}if(Array.isArray(left)&&Array.isArray(right)){return equalArray(left,right)}if(left instanceof Map&&right instanceof Map){return equalMap(left,right)}if(left instanceof Set&&right instanceof Set){return equalSet(left,right)}if(ArrayBuffer.isView(left)&&ArrayBuffer.isView(right)){return equalArrayBuffer(left,right)}if(isRegex(left)&&isRegex(right)){return left.source===right.source&&left.flags===right.flags}if(left.valueOf!==Object.prototype.valueOf){return left.valueOf()===right.valueOf()}if(left.toString!==Object.prototype.toString){return left.toString()===right.toString()}var leftKeys=Object.keys(left);var rightKeys=Object.keys(right);if(leftKeys.length!==rightKeys.length){return false}for(var index2=leftKeys.length;index2--!==0;){if(!Object.prototype.hasOwnProperty.call(right,leftKeys[index2])){return false}}for(var index2=leftKeys.length;index2--!==0;){var key=leftKeys[index2];if(key==="_owner"&&left.$$typeof){continue}if(!equal(left[key],right[key])){return false}}return true}if(Number.isNaN(left)&&Number.isNaN(right)){return true}return left===right}var DOM_PROPERTIES_TO_CHECK$1=["innerHTML","ownerDocument","style","attributes","nodeValue"];var objectTypes$1=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"];var primitiveTypes$1=["bigint","boolean","null","number","string","symbol","undefined"];function getObjectType$2(value){var objectTypeName=Object.prototype.toString.call(value).slice(8,-1);if(/HTML\w+Element/.test(objectTypeName)){return"HTMLElement"}if(isObjectType$1(objectTypeName)){return objectTypeName}return void 0}function isObjectOfType$1(type){return function(value){return getObjectType$2(value)===type}}function isObjectType$1(name2){return objectTypes$1.includes(name2)}function isOfType$1(type){return function(value){return typeof value===type}}function isPrimitiveType$1(name2){return primitiveTypes$1.includes(name2)}function is$1(value){if(value===null){return"null"}switch(typeof value){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(is$1.array(value)){return"Array"}if(is$1.plainFunction(value)){return"Function"}var tagType=getObjectType$2(value);if(tagType){return tagType}return"Object"}is$1.array=Array.isArray;is$1.arrayOf=function(target,predicate){if(!is$1.array(target)&&!is$1.function(predicate)){return false}return target.every((function(d2){return predicate(d2)}))};is$1.asyncGeneratorFunction=function(value){return getObjectType$2(value)==="AsyncGeneratorFunction"};is$1.asyncFunction=isObjectOfType$1("AsyncFunction");is$1.bigint=isOfType$1("bigint");is$1.boolean=function(value){return value===true||value===false};is$1.date=isObjectOfType$1("Date");is$1.defined=function(value){return!is$1.undefined(value)};is$1.domElement=function(value){return is$1.object(value)&&!is$1.plainObject(value)&&value.nodeType===1&&is$1.string(value.nodeName)&&DOM_PROPERTIES_TO_CHECK$1.every((function(property){return property in value}))};is$1.empty=function(value){return is$1.string(value)&&value.length===0||is$1.array(value)&&value.length===0||is$1.object(value)&&!is$1.map(value)&&!is$1.set(value)&&Object.keys(value).length===0||is$1.set(value)&&value.size===0||is$1.map(value)&&value.size===0};is$1.error=isObjectOfType$1("Error");is$1.function=isOfType$1("function");is$1.generator=function(value){return is$1.iterable(value)&&is$1.function(value.next)&&is$1.function(value.throw)};is$1.generatorFunction=isObjectOfType$1("GeneratorFunction");is$1.instanceOf=function(instance,class_){if(!instance||!class_){return false}return Object.getPrototypeOf(instance)===class_.prototype};is$1.iterable=function(value){return!is$1.nullOrUndefined(value)&&is$1.function(value[Symbol.iterator])};is$1.map=isObjectOfType$1("Map");is$1.nan=function(value){return Number.isNaN(value)};is$1.null=function(value){return value===null};is$1.nullOrUndefined=function(value){return is$1.null(value)||is$1.undefined(value)};is$1.number=function(value){return isOfType$1("number")(value)&&!is$1.nan(value)};is$1.numericString=function(value){return is$1.string(value)&&value.length>0&&!Number.isNaN(Number(value))};is$1.object=function(value){return!is$1.nullOrUndefined(value)&&(is$1.function(value)||typeof value==="object")};is$1.oneOf=function(target,value){if(!is$1.array(target)){return false}return target.indexOf(value)>-1};is$1.plainFunction=isObjectOfType$1("Function");is$1.plainObject=function(value){if(getObjectType$2(value)!=="Object"){return false}var prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.getPrototypeOf({})};is$1.primitive=function(value){return is$1.null(value)||isPrimitiveType$1(typeof value)};is$1.promise=isObjectOfType$1("Promise");is$1.propertyOf=function(target,key,predicate){if(!is$1.object(target)||!key){return false}var value=target[key];if(is$1.function(predicate)){return predicate(value)}return is$1.defined(value)};is$1.regexp=isObjectOfType$1("RegExp");is$1.set=isObjectOfType$1("Set");is$1.string=isOfType$1("string");is$1.symbol=isOfType$1("symbol");is$1.undefined=isOfType$1("undefined");is$1.weakMap=isObjectOfType$1("WeakMap");is$1.weakSet=isObjectOfType$1("WeakSet");function canHaveLength(){var arguments_=[];for(var _i=0;_i<arguments.length;_i++){arguments_[_i]=arguments[_i]}return arguments_.every((function(d2){return is$1.string(d2)||is$1.array(d2)||is$1.plainObject(d2)}))}function checkEquality(left,right,value){if(!isSameType(left,right)){return false}if([left,right].every(is$1.array)){return!left.some(hasValue(value))&&right.some(hasValue(value))}if([left,right].every(is$1.plainObject)){return!Object.entries(left).some(hasEntry(value))&&Object.entries(right).some(hasEntry(value))}return right===value}function compareNumbers(previousData,data,options2){var actual=options2.actual,key=options2.key,previous=options2.previous,type=options2.type;var left=nested(previousData,key);var right=nested(data,key);var changed=[left,right].every(is$1.number)&&(type==="increased"?left<right:left>right);if(!is$1.undefined(actual)){changed=changed&&right===actual}if(!is$1.undefined(previous)){changed=changed&&left===previous}return changed}function compareValues(previousData,data,options2){var key=options2.key,type=options2.type,value=options2.value;var left=nested(previousData,key);var right=nested(data,key);var primary=type==="added"?left:right;var secondary=type==="added"?right:left;if(!is$1.nullOrUndefined(value)){if(is$1.defined(primary)){if(is$1.array(primary)||is$1.plainObject(primary)){return checkEquality(primary,secondary,value)}}else{return equal(secondary,value)}return false}if([left,right].every(is$1.array)){return!secondary.every(isEqualPredicate(primary))}if([left,right].every(is$1.plainObject)){return hasExtraKeys(Object.keys(primary),Object.keys(secondary))}return![left,right].every((function(d2){return is$1.primitive(d2)&&is$1.defined(d2)}))&&(type==="added"?!is$1.defined(left)&&is$1.defined(right):is$1.defined(left)&&!is$1.defined(right))}function getIterables(previousData,data,_a){var _b=_a===void 0?{}:_a,key=_b.key;var left=nested(previousData,key);var right=nested(data,key);if(!isSameType(left,right)){throw new TypeError("Inputs have different types")}if(!canHaveLength(left,right)){throw new TypeError("Inputs don't have length")}if([left,right].every(is$1.plainObject)){left=Object.keys(left);right=Object.keys(right)}return[left,right]}function hasEntry(input){return function(_a){var key=_a[0],value=_a[1];if(is$1.array(input)){return equal(input,value)||input.some((function(d2){return equal(d2,value)||is$1.array(value)&&isEqualPredicate(value)(d2)}))}if(is$1.plainObject(input)&&input[key]){return!!input[key]&&equal(input[key],value)}return equal(input,value)}}function hasExtraKeys(left,right){return right.some((function(d2){return!left.includes(d2)}))}function hasValue(input){return function(value){if(is$1.array(input)){return input.some((function(d2){return equal(d2,value)||is$1.array(value)&&isEqualPredicate(value)(d2)}))}return equal(input,value)}}function includesOrEqualsTo(previousValue,value){return is$1.array(previousValue)?previousValue.some((function(d2){return equal(d2,value)})):equal(previousValue,value)}function isEqualPredicate(data){return function(value){return data.some((function(d2){return equal(d2,value)}))}}function isSameType(){var arguments_=[];for(var _i=0;_i<arguments.length;_i++){arguments_[_i]=arguments[_i]}return arguments_.every(is$1.array)||arguments_.every(is$1.number)||arguments_.every(is$1.plainObject)||arguments_.every(is$1.string)}function nested(data,property){if(is$1.plainObject(data)||is$1.array(data)){if(is$1.string(property)){var props=property.split(".");return props.reduce((function(acc,d2){return acc&&acc[d2]}),data)}if(is$1.number(property)){return data[property]}return data}return data}function treeChanges(previousData,data){if([previousData,data].some(is$1.nullOrUndefined)){throw new Error("Missing required parameters")}if(![previousData,data].every((function(d2){return is$1.plainObject(d2)||is$1.array(d2)}))){throw new Error("Expected plain objects or array")}var added=function(key,value){try{return compareValues(previousData,data,{key:key,type:"added",value:value})}catch(_a){return false}};var changed=function(key,actual,previous){try{var left=nested(previousData,key);var right=nested(data,key);var hasActual=is$1.defined(actual);var hasPrevious=is$1.defined(previous);if(hasActual||hasPrevious){var leftComparator=hasPrevious?includesOrEqualsTo(previous,left):!includesOrEqualsTo(actual,left);var rightComparator=includesOrEqualsTo(actual,right);return leftComparator&&rightComparator}if([left,right].every(is$1.array)||[left,right].every(is$1.plainObject)){return!equal(left,right)}return left!==right}catch(_a){return false}};var changedFrom=function(key,previous,actual){if(!is$1.defined(key)){return false}try{var left=nested(previousData,key);var right=nested(data,key);var hasActual=is$1.defined(actual);return includesOrEqualsTo(previous,left)&&(hasActual?includesOrEqualsTo(actual,right):!hasActual)}catch(_a){return false}};var changedTo=function(key,actual){if(!is$1.defined(key)){return false}return changed(key,actual)};var decreased=function(key,actual,previous){if(!is$1.defined(key)){return false}try{return compareNumbers(previousData,data,{key:key,actual:actual,previous:previous,type:"decreased"})}catch(_a){return false}};var emptied=function(key){try{var _a=getIterables(previousData,data,{key:key}),left=_a[0],right=_a[1];return!!left.length&&!right.length}catch(_b){return false}};var filled=function(key){try{var _a=getIterables(previousData,data,{key:key}),left=_a[0],right=_a[1];return!left.length&&!!right.length}catch(_b){return false}};var increased=function(key,actual,previous){if(!is$1.defined(key)){return false}try{return compareNumbers(previousData,data,{key:key,actual:actual,previous:previous,type:"increased"})}catch(_a){return false}};var removed=function(key,value){try{return compareValues(previousData,data,{key:key,type:"removed",value:value})}catch(_a){return false}};return{added:added,changed:changed,changedFrom:changedFrom,changedTo:changedTo,decreased:decreased,emptied:emptied,filled:filled,increased:increased,removed:removed}}var DOM_PROPERTIES_TO_CHECK=["innerHTML","ownerDocument","style","attributes","nodeValue"];var objectTypes=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"];var primitiveTypes=["bigint","boolean","null","number","string","symbol","undefined"];function getObjectType$1(value){const objectTypeName=Object.prototype.toString.call(value).slice(8,-1);if(/HTML\w+Element/.test(objectTypeName)){return"HTMLElement"}if(isObjectType(objectTypeName)){return objectTypeName}return void 0}function isObjectOfType(type){return value=>getObjectType$1(value)===type}function isObjectType(name2){return objectTypes.includes(name2)}function isOfType(type){return value=>typeof value===type}function isPrimitiveType(name2){return primitiveTypes.includes(name2)}function is(value){if(value===null){return"null"}switch(typeof value){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(is.array(value)){return"Array"}if(is.plainFunction(value)){return"Function"}const tagType=getObjectType$1(value);if(tagType){return tagType}return"Object"}is.array=Array.isArray;is.arrayOf=(target,predicate)=>{if(!is.array(target)&&!is.function(predicate)){return false}return target.every((d2=>predicate(d2)))};is.asyncGeneratorFunction=value=>getObjectType$1(value)==="AsyncGeneratorFunction";is.asyncFunction=isObjectOfType("AsyncFunction");is.bigint=isOfType("bigint");is.boolean=value=>value===true||value===false;is.date=isObjectOfType("Date");is.defined=value=>!is.undefined(value);is.domElement=value=>is.object(value)&&!is.plainObject(value)&&value.nodeType===1&&is.string(value.nodeName)&&DOM_PROPERTIES_TO_CHECK.every((property=>property in value));is.empty=value=>is.string(value)&&value.length===0||is.array(value)&&value.length===0||is.object(value)&&!is.map(value)&&!is.set(value)&&Object.keys(value).length===0||is.set(value)&&value.size===0||is.map(value)&&value.size===0;is.error=isObjectOfType("Error");is.function=isOfType("function");is.generator=value=>is.iterable(value)&&is.function(value.next)&&is.function(value.throw);is.generatorFunction=isObjectOfType("GeneratorFunction");is.instanceOf=(instance,class_)=>{if(!instance||!class_){return false}return Object.getPrototypeOf(instance)===class_.prototype};is.iterable=value=>!is.nullOrUndefined(value)&&is.function(value[Symbol.iterator]);is.map=isObjectOfType("Map");is.nan=value=>Number.isNaN(value);is.null=value=>value===null;is.nullOrUndefined=value=>is.null(value)||is.undefined(value);is.number=value=>isOfType("number")(value)&&!is.nan(value);is.numericString=value=>is.string(value)&&value.length>0&&!Number.isNaN(Number(value));is.object=value=>!is.nullOrUndefined(value)&&(is.function(value)||typeof value==="object");is.oneOf=(target,value)=>{if(!is.array(target)){return false}return target.indexOf(value)>-1};is.plainFunction=isObjectOfType("Function");is.plainObject=value=>{if(getObjectType$1(value)!=="Object"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.getPrototypeOf({})};is.primitive=value=>is.null(value)||isPrimitiveType(typeof value);is.promise=isObjectOfType("Promise");is.propertyOf=(target,key,predicate)=>{if(!is.object(target)||!key){return false}const value=target[key];if(is.function(predicate)){return predicate(value)}return is.defined(value)};is.regexp=isObjectOfType("RegExp");is.set=isObjectOfType("Set");is.string=isOfType("string");is.symbol=isOfType("symbol");is.undefined=isOfType("undefined");is.weakMap=isObjectOfType("WeakMap");is.weakSet=isObjectOfType("WeakSet");var src_default=is;var E_NOSCROLL=new Error("Element already at target scroll position");var E_CANCELLED=new Error("Scroll cancelled");var min=Math.min;var ms=Date.now;var scroll={left:make("scrollLeft"),top:make("scrollTop")};function make(prop){return function scroll2(el,to,opts,cb){opts=opts||{};if(typeof opts=="function")cb=opts,opts={};if(typeof cb!="function")cb=noop$1;var start=ms();var from2=el[prop];var ease=opts.ease||inOutSine;var duration=!isNaN(opts.duration)?+opts.duration:350;var cancelled=false;return from2===to?cb(E_NOSCROLL,el[prop]):requestAnimationFrame(animate2),cancel;function cancel(){cancelled=true}function animate2(timestamp){if(cancelled)return cb(E_CANCELLED,el[prop]);var now=ms();var time=min(1,(now-start)/duration);var eased=ease(time);el[prop]=eased*(to-from2)+from2;time<1?requestAnimationFrame(animate2):requestAnimationFrame((function(){cb(null,el[prop])}))}}}function inOutSine(n2){return.5*(1-Math.cos(Math.PI*n2))}function noop$1(){}const scroll$1=getDefaultExportFromCjs(scroll);var scrollparent={exports:{}};(function(module){(function(root2,factory){if(module.exports){module.exports=factory()}else{root2.Scrollparent=factory()}})(commonjsGlobal,(function(){var regex=/(auto|scroll)/;var parents=function(node2,ps){if(node2.parentNode===null){return ps}return parents(node2.parentNode,ps.concat([node2]))};var style=function(node2,prop){return getComputedStyle(node2,null).getPropertyValue(prop)};var overflow=function(node2){return style(node2,"overflow")+style(node2,"overflow-y")+style(node2,"overflow-x")};var scroll2=function(node2){return regex.test(overflow(node2))};var scrollParent2=function(node2){if(!(node2 instanceof HTMLElement||node2 instanceof SVGElement)){return}var ps=parents(node2.parentNode,[]);for(var i=0;i<ps.length;i+=1){if(scroll2(ps[i])){return ps[i]}}return document.scrollingElement||document.documentElement};return scrollParent2}))})(scrollparent);var scrollparentExports=scrollparent.exports;const scrollParent=getDefaultExportFromCjs(scrollparentExports);var isMergeableObject=function isMergeableObject2(value){return isNonNullObject(value)&&!isSpecial(value)};function isNonNullObject(value){return!!value&&typeof value==="object"}function isSpecial(value){var stringValue=Object.prototype.toString.call(value);return stringValue==="[object RegExp]"||stringValue==="[object Date]"||isReactElement(value)}var canUseSymbol=typeof Symbol==="function"&&Symbol.for;var REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(value){return value.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(val){return Array.isArray(val)?[]:{}}function cloneUnlessOtherwiseSpecified(value,options2){return options2.clone!==false&&options2.isMergeableObject(value)?deepmerge(emptyTarget(value),value,options2):value}function defaultArrayMerge(target,source,options2){return target.concat(source).map((function(element){return cloneUnlessOtherwiseSpecified(element,options2)}))}function getMergeFunction(key,options2){if(!options2.customMerge){return deepmerge}var customMerge=options2.customMerge(key);return typeof customMerge==="function"?customMerge:deepmerge}function getEnumerableOwnPropertySymbols(target){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(target).filter((function(symbol){return target.propertyIsEnumerable(symbol)})):[]}function getKeys(target){return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))}function propertyIsOnObject(object,property){try{return property in object}catch(_){return false}}function propertyIsUnsafe(target,key){return propertyIsOnObject(target,key)&&!(Object.hasOwnProperty.call(target,key)&&Object.propertyIsEnumerable.call(target,key))}function mergeObject(target,source,options2){var destination={};if(options2.isMergeableObject(target)){getKeys(target).forEach((function(key){destination[key]=cloneUnlessOtherwiseSpecified(target[key],options2)}))}getKeys(source).forEach((function(key){if(propertyIsUnsafe(target,key)){return}if(propertyIsOnObject(target,key)&&options2.isMergeableObject(source[key])){destination[key]=getMergeFunction(key,options2)(target[key],source[key],options2)}else{destination[key]=cloneUnlessOtherwiseSpecified(source[key],options2)}}));return destination}function deepmerge(target,source,options2){options2=options2||{};options2.arrayMerge=options2.arrayMerge||defaultArrayMerge;options2.isMergeableObject=options2.isMergeableObject||isMergeableObject;options2.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var sourceIsArray=Array.isArray(source);var targetIsArray=Array.isArray(target);var sourceAndTargetTypesMatch=sourceIsArray===targetIsArray;if(!sourceAndTargetTypesMatch){return cloneUnlessOtherwiseSpecified(source,options2)}else if(sourceIsArray){return options2.arrayMerge(target,source,options2)}else{return mergeObject(target,source,options2)}}deepmerge.all=function deepmergeAll(array,options2){if(!Array.isArray(array)){throw new Error("first argument should be an array")}return array.reduce((function(prev2,next2){return deepmerge(prev2,next2,options2)}),{})};var deepmerge_1=deepmerge;var cjs=deepmerge_1;const deepmerge$1=getDefaultExportFromCjs(cjs);var isRequiredIf$1={};Object.defineProperty(isRequiredIf$1,"__esModule",{value:true});var VALIDATOR_ARG_ERROR_MESSAGE="The typeValidator argument must be a function with the signature function(props, propName, componentName).",MESSAGE_ARG_ERROR_MESSAGE="The error message is optional, but must be a string if provided.",propIsRequired=function propIsRequired2(a2,b2,c2,d2){if("boolean"==typeof a2)return a2;return"function"==typeof a2?a2(b2,c2,d2):!(true!==!!a2)&&!!a2},propExists=function propExists2(a2,b2){return Object.hasOwnProperty.call(a2,b2)},missingPropError=function missingPropError2(a2,b2,c2,d2){return d2?new Error(d2):new Error("Required "+a2[b2]+" `"+b2+"`"+(" was not specified in `"+c2+"`."))},guardAgainstInvalidArgTypes=function guardAgainstInvalidArgTypes2(a2,b2){if("function"!=typeof a2)throw new TypeError(VALIDATOR_ARG_ERROR_MESSAGE);if(!!b2&&"string"!=typeof b2)throw new TypeError(MESSAGE_ARG_ERROR_MESSAGE)},isRequiredIf=function isRequiredIf2(a2,b2,c2){return guardAgainstInvalidArgTypes(a2,c2),function(d2,e2,f2){for(var _len=arguments.length,g2=Array(3<_len?_len-3:0),_key=3;_key<_len;_key++)g2[_key-3]=arguments[_key];return propIsRequired(b2,d2,e2,f2)?propExists(d2,e2)?a2.apply(void 0,[d2,e2,f2].concat(g2)):missingPropError(d2,e2,f2,c2):a2.apply(void 0,[d2,e2,f2].concat(g2))}};var _default=isRequiredIf$1.default=isRequiredIf;
43
- /**!
44
- * @fileOverview Kickass library to create and place poppers near their reference elements.
45
- * @version 1.16.1
46
- * @license
47
- * Copyright (c) 2016 Federico Zivolo and contributors
48
- *
49
- * Permission is hereby granted, free of charge, to any person obtaining a copy
50
- * of this software and associated documentation files (the "Software"), to deal
51
- * in the Software without restriction, including without limitation the rights
52
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
53
- * copies of the Software, and to permit persons to whom the Software is
54
- * furnished to do so, subject to the following conditions:
55
- *
56
- * The above copyright notice and this permission notice shall be included in all
57
- * copies or substantial portions of the Software.
58
- *
59
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
61
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
62
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
63
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
64
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
65
- * SOFTWARE.
66
- */var isBrowser=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined";var timeoutDuration=function(){var longerTimeoutBrowsers=["Edge","Trident","Firefox"];for(var i=0;i<longerTimeoutBrowsers.length;i+=1){if(isBrowser&&navigator.userAgent.indexOf(longerTimeoutBrowsers[i])>=0){return 1}}return 0}();function microtaskDebounce(fn){var called=false;return function(){if(called){return}called=true;window.Promise.resolve().then((function(){called=false;fn()}))}}function taskDebounce(fn){var scheduled=false;return function(){if(!scheduled){scheduled=true;setTimeout((function(){scheduled=false;fn()}),timeoutDuration)}}}var supportsMicroTasks=isBrowser&&window.Promise;var debounce=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction(functionToCheck){var getType={};return functionToCheck&&getType.toString.call(functionToCheck)==="[object Function]"}function getStyleComputedProperty$1(element,property){if(element.nodeType!==1){return[]}var window2=element.ownerDocument.defaultView;var css4=window2.getComputedStyle(element,null);return property?css4[property]:css4}function getParentNode(element){if(element.nodeName==="HTML"){return element}return element.parentNode||element.host}function getScrollParent$1(element){if(!element){return document.body}switch(element.nodeName){case"HTML":case"BODY":return element.ownerDocument.body;case"#document":return element.body}var _getStyleComputedProp=getStyleComputedProperty$1(element),overflow=_getStyleComputedProp.overflow,overflowX=_getStyleComputedProp.overflowX,overflowY=_getStyleComputedProp.overflowY;if(/(auto|scroll|overlay)/.test(overflow+overflowY+overflowX)){return element}return getScrollParent$1(getParentNode(element))}function getReferenceNode(reference){return reference&&reference.referenceNode?reference.referenceNode:reference}var isIE11=isBrowser&&!!(window.MSInputMethodContext&&document.documentMode);var isIE10=isBrowser&&/MSIE 10/.test(navigator.userAgent);function isIE(version){if(version===11){return isIE11}if(version===10){return isIE10}return isIE11||isIE10}function getOffsetParent(element){if(!element){return document.documentElement}var noOffsetParent=isIE(10)?document.body:null;var offsetParent=element.offsetParent||null;while(offsetParent===noOffsetParent&&element.nextElementSibling){offsetParent=(element=element.nextElementSibling).offsetParent}var nodeName=offsetParent&&offsetParent.nodeName;if(!nodeName||nodeName==="BODY"||nodeName==="HTML"){return element?element.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(offsetParent.nodeName)!==-1&&getStyleComputedProperty$1(offsetParent,"position")==="static"){return getOffsetParent(offsetParent)}return offsetParent}function isOffsetContainer(element){var nodeName=element.nodeName;if(nodeName==="BODY"){return false}return nodeName==="HTML"||getOffsetParent(element.firstElementChild)===element}function getRoot(node2){if(node2.parentNode!==null){return getRoot(node2.parentNode)}return node2}function findCommonOffsetParent(element1,element2){if(!element1||!element1.nodeType||!element2||!element2.nodeType){return document.documentElement}var order=element1.compareDocumentPosition(element2)&Node.DOCUMENT_POSITION_FOLLOWING;var start=order?element1:element2;var end=order?element2:element1;var range=document.createRange();range.setStart(start,0);range.setEnd(end,0);var commonAncestorContainer=range.commonAncestorContainer;if(element1!==commonAncestorContainer&&element2!==commonAncestorContainer||start.contains(end)){if(isOffsetContainer(commonAncestorContainer)){return commonAncestorContainer}return getOffsetParent(commonAncestorContainer)}var element1root=getRoot(element1);if(element1root.host){return findCommonOffsetParent(element1root.host,element2)}else{return findCommonOffsetParent(element1,getRoot(element2).host)}}function getScroll(element){var side=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top";var upperSide=side==="top"?"scrollTop":"scrollLeft";var nodeName=element.nodeName;if(nodeName==="BODY"||nodeName==="HTML"){var html=element.ownerDocument.documentElement;var scrollingElement=element.ownerDocument.scrollingElement||html;return scrollingElement[upperSide]}return element[upperSide]}function includeScroll(rect,element){var subtract=arguments.length>2&&arguments[2]!==void 0?arguments[2]:false;var scrollTop=getScroll(element,"top");var scrollLeft=getScroll(element,"left");var modifier=subtract?-1:1;rect.top+=scrollTop*modifier;rect.bottom+=scrollTop*modifier;rect.left+=scrollLeft*modifier;rect.right+=scrollLeft*modifier;return rect}function getBordersSize(styles2,axis){var sideA=axis==="x"?"Left":"Top";var sideB=sideA==="Left"?"Right":"Bottom";return parseFloat(styles2["border"+sideA+"Width"])+parseFloat(styles2["border"+sideB+"Width"])}function getSize(axis,body,html,computedStyle){return Math.max(body["offset"+axis],body["scroll"+axis],html["client"+axis],html["offset"+axis],html["scroll"+axis],isIE(10)?parseInt(html["offset"+axis])+parseInt(computedStyle["margin"+(axis==="Height"?"Top":"Left")])+parseInt(computedStyle["margin"+(axis==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(document2){var body=document2.body;var html=document2.documentElement;var computedStyle=isIE(10)&&getComputedStyle(html);return{height:getSize("Height",body,html,computedStyle),width:getSize("Width",body,html,computedStyle)}}var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}};var createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var defineProperty=function(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj};var _extends$1=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};function getClientRect$1(offsets){return _extends$1({},offsets,{right:offsets.left+offsets.width,bottom:offsets.top+offsets.height})}function getBoundingClientRect(element){var rect={};try{if(isIE(10)){rect=element.getBoundingClientRect();var scrollTop=getScroll(element,"top");var scrollLeft=getScroll(element,"left");rect.top+=scrollTop;rect.left+=scrollLeft;rect.bottom+=scrollTop;rect.right+=scrollLeft}else{rect=element.getBoundingClientRect()}}catch(e2){}var result={left:rect.left,top:rect.top,width:rect.right-rect.left,height:rect.bottom-rect.top};var sizes2=element.nodeName==="HTML"?getWindowSizes(element.ownerDocument):{};var width=sizes2.width||element.clientWidth||result.width;var height=sizes2.height||element.clientHeight||result.height;var horizScrollbar=element.offsetWidth-width;var vertScrollbar=element.offsetHeight-height;if(horizScrollbar||vertScrollbar){var styles2=getStyleComputedProperty$1(element);horizScrollbar-=getBordersSize(styles2,"x");vertScrollbar-=getBordersSize(styles2,"y");result.width-=horizScrollbar;result.height-=vertScrollbar}return getClientRect$1(result)}function getOffsetRectRelativeToArbitraryNode(children,parent){var fixedPosition=arguments.length>2&&arguments[2]!==void 0?arguments[2]:false;var isIE102=isIE(10);var isHTML=parent.nodeName==="HTML";var childrenRect=getBoundingClientRect(children);var parentRect=getBoundingClientRect(parent);var scrollParent2=getScrollParent$1(children);var styles2=getStyleComputedProperty$1(parent);var borderTopWidth=parseFloat(styles2.borderTopWidth);var borderLeftWidth=parseFloat(styles2.borderLeftWidth);if(fixedPosition&&isHTML){parentRect.top=Math.max(parentRect.top,0);parentRect.left=Math.max(parentRect.left,0)}var offsets=getClientRect$1({top:childrenRect.top-parentRect.top-borderTopWidth,left:childrenRect.left-parentRect.left-borderLeftWidth,width:childrenRect.width,height:childrenRect.height});offsets.marginTop=0;offsets.marginLeft=0;if(!isIE102&&isHTML){var marginTop=parseFloat(styles2.marginTop);var marginLeft=parseFloat(styles2.marginLeft);offsets.top-=borderTopWidth-marginTop;offsets.bottom-=borderTopWidth-marginTop;offsets.left-=borderLeftWidth-marginLeft;offsets.right-=borderLeftWidth-marginLeft;offsets.marginTop=marginTop;offsets.marginLeft=marginLeft}if(isIE102&&!fixedPosition?parent.contains(scrollParent2):parent===scrollParent2&&scrollParent2.nodeName!=="BODY"){offsets=includeScroll(offsets,parent)}return offsets}function getViewportOffsetRectRelativeToArtbitraryNode(element){var excludeScroll=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;var html=element.ownerDocument.documentElement;var relativeOffset=getOffsetRectRelativeToArbitraryNode(element,html);var width=Math.max(html.clientWidth,window.innerWidth||0);var height=Math.max(html.clientHeight,window.innerHeight||0);var scrollTop=!excludeScroll?getScroll(html):0;var scrollLeft=!excludeScroll?getScroll(html,"left"):0;var offset2={top:scrollTop-relativeOffset.top+relativeOffset.marginTop,left:scrollLeft-relativeOffset.left+relativeOffset.marginLeft,width:width,height:height};return getClientRect$1(offset2)}function isFixed(element){var nodeName=element.nodeName;if(nodeName==="BODY"||nodeName==="HTML"){return false}if(getStyleComputedProperty$1(element,"position")==="fixed"){return true}var parentNode=getParentNode(element);if(!parentNode){return false}return isFixed(parentNode)}function getFixedPositionOffsetParent(element){if(!element||!element.parentElement||isIE()){return document.documentElement}var el=element.parentElement;while(el&&getStyleComputedProperty$1(el,"transform")==="none"){el=el.parentElement}return el||document.documentElement}function getBoundaries(popper,reference,padding,boundariesElement){var fixedPosition=arguments.length>4&&arguments[4]!==void 0?arguments[4]:false;var boundaries={top:0,left:0};var offsetParent=fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,getReferenceNode(reference));if(boundariesElement==="viewport"){boundaries=getViewportOffsetRectRelativeToArtbitraryNode(offsetParent,fixedPosition)}else{var boundariesNode=void 0;if(boundariesElement==="scrollParent"){boundariesNode=getScrollParent$1(getParentNode(reference));if(boundariesNode.nodeName==="BODY"){boundariesNode=popper.ownerDocument.documentElement}}else if(boundariesElement==="window"){boundariesNode=popper.ownerDocument.documentElement}else{boundariesNode=boundariesElement}var offsets=getOffsetRectRelativeToArbitraryNode(boundariesNode,offsetParent,fixedPosition);if(boundariesNode.nodeName==="HTML"&&!isFixed(offsetParent)){var _getWindowSizes=getWindowSizes(popper.ownerDocument),height=_getWindowSizes.height,width=_getWindowSizes.width;boundaries.top+=offsets.top-offsets.marginTop;boundaries.bottom=height+offsets.top;boundaries.left+=offsets.left-offsets.marginLeft;boundaries.right=width+offsets.left}else{boundaries=offsets}}padding=padding||0;var isPaddingNumber=typeof padding==="number";boundaries.left+=isPaddingNumber?padding:padding.left||0;boundaries.top+=isPaddingNumber?padding:padding.top||0;boundaries.right-=isPaddingNumber?padding:padding.right||0;boundaries.bottom-=isPaddingNumber?padding:padding.bottom||0;return boundaries}function getArea(_ref3){var width=_ref3.width,height=_ref3.height;return width*height}function computeAutoPlacement(placement,refRect,popper,reference,boundariesElement){var padding=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(placement.indexOf("auto")===-1){return placement}var boundaries=getBoundaries(popper,reference,padding,boundariesElement);var rects={top:{width:boundaries.width,height:refRect.top-boundaries.top},right:{width:boundaries.right-refRect.right,height:boundaries.height},bottom:{width:boundaries.width,height:boundaries.bottom-refRect.bottom},left:{width:refRect.left-boundaries.left,height:boundaries.height}};var sortedAreas=Object.keys(rects).map((function(key){return _extends$1({key:key},rects[key],{area:getArea(rects[key])})})).sort((function(a2,b2){return b2.area-a2.area}));var filteredAreas=sortedAreas.filter((function(_ref22){var width=_ref22.width,height=_ref22.height;return width>=popper.clientWidth&&height>=popper.clientHeight}));var computedPlacement=filteredAreas.length>0?filteredAreas[0].key:sortedAreas[0].key;var variation=placement.split("-")[1];return computedPlacement+(variation?"-"+variation:"")}function getReferenceOffsets(state,popper,reference){var fixedPosition=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;var commonOffsetParent=fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,getReferenceNode(reference));return getOffsetRectRelativeToArbitraryNode(reference,commonOffsetParent,fixedPosition)}function getOuterSizes(element){var window2=element.ownerDocument.defaultView;var styles2=window2.getComputedStyle(element);var x2=parseFloat(styles2.marginTop||0)+parseFloat(styles2.marginBottom||0);var y2=parseFloat(styles2.marginLeft||0)+parseFloat(styles2.marginRight||0);var result={width:element.offsetWidth+y2,height:element.offsetHeight+x2};return result}function getOppositePlacement(placement){var hash2={left:"right",right:"left",bottom:"top",top:"bottom"};return placement.replace(/left|right|bottom|top/g,(function(matched){return hash2[matched]}))}function getPopperOffsets(popper,referenceOffsets,placement){placement=placement.split("-")[0];var popperRect=getOuterSizes(popper);var popperOffsets={width:popperRect.width,height:popperRect.height};var isHoriz=["right","left"].indexOf(placement)!==-1;var mainSide=isHoriz?"top":"left";var secondarySide=isHoriz?"left":"top";var measurement=isHoriz?"height":"width";var secondaryMeasurement=!isHoriz?"height":"width";popperOffsets[mainSide]=referenceOffsets[mainSide]+referenceOffsets[measurement]/2-popperRect[measurement]/2;if(placement===secondarySide){popperOffsets[secondarySide]=referenceOffsets[secondarySide]-popperRect[secondaryMeasurement]}else{popperOffsets[secondarySide]=referenceOffsets[getOppositePlacement(secondarySide)]}return popperOffsets}function find(arr,check){if(Array.prototype.find){return arr.find(check)}return arr.filter(check)[0]}function findIndex(arr,prop,value){if(Array.prototype.findIndex){return arr.findIndex((function(cur){return cur[prop]===value}))}var match2=find(arr,(function(obj){return obj[prop]===value}));return arr.indexOf(match2)}function runModifiers(modifiers2,data,ends){var modifiersToRun=ends===void 0?modifiers2:modifiers2.slice(0,findIndex(modifiers2,"name",ends));modifiersToRun.forEach((function(modifier){if(modifier["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var fn=modifier["function"]||modifier.fn;if(modifier.enabled&&isFunction(fn)){data.offsets.popper=getClientRect$1(data.offsets.popper);data.offsets.reference=getClientRect$1(data.offsets.reference);data=fn(data,modifier)}}));return data}function update(){if(this.state.isDestroyed){return}var data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};data.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed);data.placement=computeAutoPlacement(this.options.placement,data.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);data.originalPlacement=data.placement;data.positionFixed=this.options.positionFixed;data.offsets.popper=getPopperOffsets(this.popper,data.offsets.reference,data.placement);data.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";data=runModifiers(this.modifiers,data);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(data)}else{this.options.onUpdate(data)}}function isModifierEnabled(modifiers2,modifierName){return modifiers2.some((function(_ref3){var name2=_ref3.name,enabled=_ref3.enabled;return enabled&&name2===modifierName}))}function getSupportedPropertyName(property){var prefixes=[false,"ms","Webkit","Moz","O"];var upperProp=property.charAt(0).toUpperCase()+property.slice(1);for(var i=0;i<prefixes.length;i++){var prefix2=prefixes[i];var toCheck=prefix2?""+prefix2+upperProp:property;if(typeof document.body.style[toCheck]!=="undefined"){return toCheck}}return null}function destroy(){this.state.isDestroyed=true;if(isModifierEnabled(this.modifiers,"applyStyle")){this.popper.removeAttribute("x-placement");this.popper.style.position="";this.popper.style.top="";this.popper.style.left="";this.popper.style.right="";this.popper.style.bottom="";this.popper.style.willChange="";this.popper.style[getSupportedPropertyName("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function getWindow(element){var ownerDocument=element.ownerDocument;return ownerDocument?ownerDocument.defaultView:window}function attachToScrollParents(scrollParent2,event2,callback,scrollParents){var isBody=scrollParent2.nodeName==="BODY";var target=isBody?scrollParent2.ownerDocument.defaultView:scrollParent2;target.addEventListener(event2,callback,{passive:true});if(!isBody){attachToScrollParents(getScrollParent$1(target.parentNode),event2,callback,scrollParents)}scrollParents.push(target)}function setupEventListeners(reference,options2,state,updateBound){state.updateBound=updateBound;getWindow(reference).addEventListener("resize",state.updateBound,{passive:true});var scrollElement=getScrollParent$1(reference);attachToScrollParents(scrollElement,"scroll",state.updateBound,state.scrollParents);state.scrollElement=scrollElement;state.eventsEnabled=true;return state}function enableEventListeners(){if(!this.state.eventsEnabled){this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate)}}function removeEventListeners(reference,state){getWindow(reference).removeEventListener("resize",state.updateBound);state.scrollParents.forEach((function(target){target.removeEventListener("scroll",state.updateBound)}));state.updateBound=null;state.scrollParents=[];state.scrollElement=null;state.eventsEnabled=false;return state}function disableEventListeners(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=removeEventListeners(this.reference,this.state)}}function isNumeric(n2){return n2!==""&&!isNaN(parseFloat(n2))&&isFinite(n2)}function setStyles(element,styles2){Object.keys(styles2).forEach((function(prop){var unit="";if(["width","height","top","right","bottom","left"].indexOf(prop)!==-1&&isNumeric(styles2[prop])){unit="px"}element.style[prop]=styles2[prop]+unit}))}function setAttributes(element,attributes){Object.keys(attributes).forEach((function(prop){var value=attributes[prop];if(value!==false){element.setAttribute(prop,attributes[prop])}else{element.removeAttribute(prop)}}))}function applyStyle(data){setStyles(data.instance.popper,data.styles);setAttributes(data.instance.popper,data.attributes);if(data.arrowElement&&Object.keys(data.arrowStyles).length){setStyles(data.arrowElement,data.arrowStyles)}return data}function applyStyleOnLoad(reference,popper,options2,modifierOptions,state){var referenceOffsets=getReferenceOffsets(state,popper,reference,options2.positionFixed);var placement=computeAutoPlacement(options2.placement,referenceOffsets,popper,reference,options2.modifiers.flip.boundariesElement,options2.modifiers.flip.padding);popper.setAttribute("x-placement",placement);setStyles(popper,{position:options2.positionFixed?"fixed":"absolute"});return options2}function getRoundedOffsets(data,shouldRound){var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var round2=Math.round,floor2=Math.floor;var noRound=function noRound2(v2){return v2};var referenceWidth=round2(reference.width);var popperWidth=round2(popper.width);var isVertical=["left","right"].indexOf(data.placement)!==-1;var isVariation=data.placement.indexOf("-")!==-1;var sameWidthParity=referenceWidth%2===popperWidth%2;var bothOddWidth=referenceWidth%2===1&&popperWidth%2===1;var horizontalToInteger=!shouldRound?noRound:isVertical||isVariation||sameWidthParity?round2:floor2;var verticalToInteger=!shouldRound?noRound:round2;return{left:horizontalToInteger(bothOddWidth&&!isVariation&&shouldRound?popper.left-1:popper.left),top:verticalToInteger(popper.top),bottom:verticalToInteger(popper.bottom),right:horizontalToInteger(popper.right)}}var isFirefox=isBrowser&&/Firefox/i.test(navigator.userAgent);function computeStyle(data,options2){var x2=options2.x,y2=options2.y;var popper=data.offsets.popper;var legacyGpuAccelerationOption=find(data.instance.modifiers,(function(modifier){return modifier.name==="applyStyle"})).gpuAcceleration;if(legacyGpuAccelerationOption!==void 0){console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!")}var gpuAcceleration=legacyGpuAccelerationOption!==void 0?legacyGpuAccelerationOption:options2.gpuAcceleration;var offsetParent=getOffsetParent(data.instance.popper);var offsetParentRect=getBoundingClientRect(offsetParent);var styles2={position:popper.position};var offsets=getRoundedOffsets(data,window.devicePixelRatio<2||!isFirefox);var sideA=x2==="bottom"?"top":"bottom";var sideB=y2==="right"?"left":"right";var prefixedProperty=getSupportedPropertyName("transform");var left=void 0,top=void 0;if(sideA==="bottom"){if(offsetParent.nodeName==="HTML"){top=-offsetParent.clientHeight+offsets.bottom}else{top=-offsetParentRect.height+offsets.bottom}}else{top=offsets.top}if(sideB==="right"){if(offsetParent.nodeName==="HTML"){left=-offsetParent.clientWidth+offsets.right}else{left=-offsetParentRect.width+offsets.right}}else{left=offsets.left}if(gpuAcceleration&&prefixedProperty){styles2[prefixedProperty]="translate3d("+left+"px, "+top+"px, 0)";styles2[sideA]=0;styles2[sideB]=0;styles2.willChange="transform"}else{var invertTop=sideA==="bottom"?-1:1;var invertLeft=sideB==="right"?-1:1;styles2[sideA]=top*invertTop;styles2[sideB]=left*invertLeft;styles2.willChange=sideA+", "+sideB}var attributes={"x-placement":data.placement};data.attributes=_extends$1({},attributes,data.attributes);data.styles=_extends$1({},styles2,data.styles);data.arrowStyles=_extends$1({},data.offsets.arrow,data.arrowStyles);return data}function isModifierRequired(modifiers2,requestingName,requestedName){var requesting=find(modifiers2,(function(_ref3){var name2=_ref3.name;return name2===requestingName}));var isRequired=!!requesting&&modifiers2.some((function(modifier){return modifier.name===requestedName&&modifier.enabled&&modifier.order<requesting.order}));if(!isRequired){var _requesting="`"+requestingName+"`";var requested="`"+requestedName+"`";console.warn(requested+" modifier is required by "+_requesting+" modifier in order to work, be sure to include it before "+_requesting+"!")}return isRequired}function arrow(data,options2){var _data$offsets$arrow;if(!isModifierRequired(data.instance.modifiers,"arrow","keepTogether")){return data}var arrowElement=options2.element;if(typeof arrowElement==="string"){arrowElement=data.instance.popper.querySelector(arrowElement);if(!arrowElement){return data}}else{if(!data.instance.popper.contains(arrowElement)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return data}}var placement=data.placement.split("-")[0];var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var isVertical=["left","right"].indexOf(placement)!==-1;var len=isVertical?"height":"width";var sideCapitalized=isVertical?"Top":"Left";var side=sideCapitalized.toLowerCase();var altSide=isVertical?"left":"top";var opSide=isVertical?"bottom":"right";var arrowElementSize=getOuterSizes(arrowElement)[len];if(reference[opSide]-arrowElementSize<popper[side]){data.offsets.popper[side]-=popper[side]-(reference[opSide]-arrowElementSize)}if(reference[side]+arrowElementSize>popper[opSide]){data.offsets.popper[side]+=reference[side]+arrowElementSize-popper[opSide]}data.offsets.popper=getClientRect$1(data.offsets.popper);var center=reference[side]+reference[len]/2-arrowElementSize/2;var css4=getStyleComputedProperty$1(data.instance.popper);var popperMarginSide=parseFloat(css4["margin"+sideCapitalized]);var popperBorderSide=parseFloat(css4["border"+sideCapitalized+"Width"]);var sideValue=center-data.offsets.popper[side]-popperMarginSide-popperBorderSide;sideValue=Math.max(Math.min(popper[len]-arrowElementSize,sideValue),0);data.arrowElement=arrowElement;data.offsets.arrow=(_data$offsets$arrow={},defineProperty(_data$offsets$arrow,side,Math.round(sideValue)),defineProperty(_data$offsets$arrow,altSide,""),_data$offsets$arrow);return data}function getOppositeVariation(variation){if(variation==="end"){return"start"}else if(variation==="start"){return"end"}return variation}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var validPlacements=placements.slice(3);function clockwise(placement){var counter=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;var index2=validPlacements.indexOf(placement);var arr=validPlacements.slice(index2+1).concat(validPlacements.slice(0,index2));return counter?arr.reverse():arr}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(data,options2){if(isModifierEnabled(data.instance.modifiers,"inner")){return data}if(data.flipped&&data.placement===data.originalPlacement){return data}var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options2.padding,options2.boundariesElement,data.positionFixed);var placement=data.placement.split("-")[0];var placementOpposite=getOppositePlacement(placement);var variation=data.placement.split("-")[1]||"";var flipOrder=[];switch(options2.behavior){case BEHAVIORS.FLIP:flipOrder=[placement,placementOpposite];break;case BEHAVIORS.CLOCKWISE:flipOrder=clockwise(placement);break;case BEHAVIORS.COUNTERCLOCKWISE:flipOrder=clockwise(placement,true);break;default:flipOrder=options2.behavior}flipOrder.forEach((function(step,index2){if(placement!==step||flipOrder.length===index2+1){return data}placement=data.placement.split("-")[0];placementOpposite=getOppositePlacement(placement);var popperOffsets=data.offsets.popper;var refOffsets=data.offsets.reference;var floor2=Math.floor;var overlapsRef=placement==="left"&&floor2(popperOffsets.right)>floor2(refOffsets.left)||placement==="right"&&floor2(popperOffsets.left)<floor2(refOffsets.right)||placement==="top"&&floor2(popperOffsets.bottom)>floor2(refOffsets.top)||placement==="bottom"&&floor2(popperOffsets.top)<floor2(refOffsets.bottom);var overflowsLeft=floor2(popperOffsets.left)<floor2(boundaries.left);var overflowsRight=floor2(popperOffsets.right)>floor2(boundaries.right);var overflowsTop=floor2(popperOffsets.top)<floor2(boundaries.top);var overflowsBottom=floor2(popperOffsets.bottom)>floor2(boundaries.bottom);var overflowsBoundaries=placement==="left"&&overflowsLeft||placement==="right"&&overflowsRight||placement==="top"&&overflowsTop||placement==="bottom"&&overflowsBottom;var isVertical=["top","bottom"].indexOf(placement)!==-1;var flippedVariationByRef=!!options2.flipVariations&&(isVertical&&variation==="start"&&overflowsLeft||isVertical&&variation==="end"&&overflowsRight||!isVertical&&variation==="start"&&overflowsTop||!isVertical&&variation==="end"&&overflowsBottom);var flippedVariationByContent=!!options2.flipVariationsByContent&&(isVertical&&variation==="start"&&overflowsRight||isVertical&&variation==="end"&&overflowsLeft||!isVertical&&variation==="start"&&overflowsBottom||!isVertical&&variation==="end"&&overflowsTop);var flippedVariation=flippedVariationByRef||flippedVariationByContent;if(overlapsRef||overflowsBoundaries||flippedVariation){data.flipped=true;if(overlapsRef||overflowsBoundaries){placement=flipOrder[index2+1]}if(flippedVariation){variation=getOppositeVariation(variation)}data.placement=placement+(variation?"-"+variation:"");data.offsets.popper=_extends$1({},data.offsets.popper,getPopperOffsets(data.instance.popper,data.offsets.reference,data.placement));data=runModifiers(data.instance.modifiers,data,"flip")}}));return data}function keepTogether(data){var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var placement=data.placement.split("-")[0];var floor2=Math.floor;var isVertical=["top","bottom"].indexOf(placement)!==-1;var side=isVertical?"right":"bottom";var opSide=isVertical?"left":"top";var measurement=isVertical?"width":"height";if(popper[side]<floor2(reference[opSide])){data.offsets.popper[opSide]=floor2(reference[opSide])-popper[measurement]}if(popper[opSide]>floor2(reference[side])){data.offsets.popper[opSide]=floor2(reference[side])}return data}function toValue(str,measurement,popperOffsets,referenceOffsets){var split=str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var value=+split[1];var unit=split[2];if(!value){return str}if(unit.indexOf("%")===0){var element=void 0;switch(unit){case"%p":element=popperOffsets;break;case"%":case"%r":default:element=referenceOffsets}var rect=getClientRect$1(element);return rect[measurement]/100*value}else if(unit==="vh"||unit==="vw"){var size=void 0;if(unit==="vh"){size=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{size=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return size/100*value}else{return value}}function parseOffset(offset2,popperOffsets,referenceOffsets,basePlacement){var offsets=[0,0];var useHeight=["right","left"].indexOf(basePlacement)!==-1;var fragments=offset2.split(/(\+|\-)/).map((function(frag){return frag.trim()}));var divider=fragments.indexOf(find(fragments,(function(frag){return frag.search(/,|\s/)!==-1})));if(fragments[divider]&&fragments[divider].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var splitRegex=/\s*,\s*|\s+/;var ops=divider!==-1?[fragments.slice(0,divider).concat([fragments[divider].split(splitRegex)[0]]),[fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider+1))]:[fragments];ops=ops.map((function(op,index2){var measurement=(index2===1?!useHeight:useHeight)?"height":"width";var mergeWithPrevious=false;return op.reduce((function(a2,b2){if(a2[a2.length-1]===""&&["+","-"].indexOf(b2)!==-1){a2[a2.length-1]=b2;mergeWithPrevious=true;return a2}else if(mergeWithPrevious){a2[a2.length-1]+=b2;mergeWithPrevious=false;return a2}else{return a2.concat(b2)}}),[]).map((function(str){return toValue(str,measurement,popperOffsets,referenceOffsets)}))}));ops.forEach((function(op,index2){op.forEach((function(frag,index22){if(isNumeric(frag)){offsets[index2]+=frag*(op[index22-1]==="-"?-1:1)}}))}));return offsets}function offset(data,_ref3){var offset2=_ref3.offset;var placement=data.placement,_data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var basePlacement=placement.split("-")[0];var offsets=void 0;if(isNumeric(+offset2)){offsets=[+offset2,0]}else{offsets=parseOffset(offset2,popper,reference,basePlacement)}if(basePlacement==="left"){popper.top+=offsets[0];popper.left-=offsets[1]}else if(basePlacement==="right"){popper.top+=offsets[0];popper.left+=offsets[1]}else if(basePlacement==="top"){popper.left+=offsets[0];popper.top-=offsets[1]}else if(basePlacement==="bottom"){popper.left+=offsets[0];popper.top+=offsets[1]}data.popper=popper;return data}function preventOverflow(data,options2){var boundariesElement=options2.boundariesElement||getOffsetParent(data.instance.popper);if(data.instance.reference===boundariesElement){boundariesElement=getOffsetParent(boundariesElement)}var transformProp=getSupportedPropertyName("transform");var popperStyles=data.instance.popper.style;var top=popperStyles.top,left=popperStyles.left,transform=popperStyles[transformProp];popperStyles.top="";popperStyles.left="";popperStyles[transformProp]="";var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options2.padding,boundariesElement,data.positionFixed);popperStyles.top=top;popperStyles.left=left;popperStyles[transformProp]=transform;options2.boundaries=boundaries;var order=options2.priority;var popper=data.offsets.popper;var check={primary:function primary(placement){var value=popper[placement];if(popper[placement]<boundaries[placement]&&!options2.escapeWithReference){value=Math.max(popper[placement],boundaries[placement])}return defineProperty({},placement,value)},secondary:function secondary(placement){var mainSide=placement==="right"?"left":"top";var value=popper[mainSide];if(popper[placement]>boundaries[placement]&&!options2.escapeWithReference){value=Math.min(popper[mainSide],boundaries[placement]-(placement==="right"?popper.width:popper.height))}return defineProperty({},mainSide,value)}};order.forEach((function(placement){var side=["left","top"].indexOf(placement)!==-1?"primary":"secondary";popper=_extends$1({},popper,check[side](placement))}));data.offsets.popper=popper;return data}function shift(data){var placement=data.placement;var basePlacement=placement.split("-")[0];var shiftvariation=placement.split("-")[1];if(shiftvariation){var _data$offsets=data.offsets,reference=_data$offsets.reference,popper=_data$offsets.popper;var isVertical=["bottom","top"].indexOf(basePlacement)!==-1;var side=isVertical?"left":"top";var measurement=isVertical?"width":"height";var shiftOffsets={start:defineProperty({},side,reference[side]),end:defineProperty({},side,reference[side]+reference[measurement]-popper[measurement])};data.offsets.popper=_extends$1({},popper,shiftOffsets[shiftvariation])}return data}function hide(data){if(!isModifierRequired(data.instance.modifiers,"hide","preventOverflow")){return data}var refRect=data.offsets.reference;var bound=find(data.instance.modifiers,(function(modifier){return modifier.name==="preventOverflow"})).boundaries;if(refRect.bottom<bound.top||refRect.left>bound.right||refRect.top>bound.bottom||refRect.right<bound.left){if(data.hide===true){return data}data.hide=true;data.attributes["x-out-of-boundaries"]=""}else{if(data.hide===false){return data}data.hide=false;data.attributes["x-out-of-boundaries"]=false}return data}function inner(data){var placement=data.placement;var basePlacement=placement.split("-")[0];var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var isHoriz=["left","right"].indexOf(basePlacement)!==-1;var subtractLength=["top","left"].indexOf(basePlacement)===-1;popper[isHoriz?"left":"top"]=reference[basePlacement]-(subtractLength?popper[isHoriz?"width":"height"]:0);data.placement=getOppositePlacement(placement);data.offsets.popper=getClientRect$1(popper);return data}var modifiers={shift:{order:100,enabled:true,fn:shift},offset:{order:200,enabled:true,fn:offset,offset:0},preventOverflow:{order:300,enabled:true,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:keepTogether},arrow:{order:500,enabled:true,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:inner},hide:{order:800,enabled:true,fn:hide},computeStyle:{order:850,enabled:true,fn:computeStyle,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}};var Defaults={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function onCreate(){},onUpdate:function onUpdate(){},modifiers:modifiers};var Popper=function(){function Popper2(reference,popper){var _this=this;var options2=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,Popper2);this.scheduleUpdate=function(){return requestAnimationFrame(_this.update)};this.update=debounce(this.update.bind(this));this.options=_extends$1({},Popper2.Defaults,options2);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=reference&&reference.jquery?reference[0]:reference;this.popper=popper&&popper.jquery?popper[0]:popper;this.options.modifiers={};Object.keys(_extends$1({},Popper2.Defaults.modifiers,options2.modifiers)).forEach((function(name2){_this.options.modifiers[name2]=_extends$1({},Popper2.Defaults.modifiers[name2]||{},options2.modifiers?options2.modifiers[name2]:{})}));this.modifiers=Object.keys(this.options.modifiers).map((function(name2){return _extends$1({name:name2},_this.options.modifiers[name2])})).sort((function(a2,b2){return a2.order-b2.order}));this.modifiers.forEach((function(modifierOptions){if(modifierOptions.enabled&&isFunction(modifierOptions.onLoad)){modifierOptions.onLoad(_this.reference,_this.popper,_this.options,modifierOptions,_this.state)}}));this.update();var eventsEnabled=this.options.eventsEnabled;if(eventsEnabled){this.enableEventListeners()}this.state.eventsEnabled=eventsEnabled}createClass(Popper2,[{key:"update",value:function update$$1(){return update.call(this)}},{key:"destroy",value:function destroy$$1(){return destroy.call(this)}},{key:"enableEventListeners",value:function enableEventListeners$$1(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function disableEventListeners$$1(){return disableEventListeners.call(this)}}]);return Popper2}();Popper.Utils=(typeof window!=="undefined"?window:global).PopperUtils;Popper.placements=placements;Popper.Defaults=Defaults;function ownKeys$1(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2$1(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys$1(Object(source),true).forEach((function(key){_defineProperty$1(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys$1(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target}function _classCallCheck$1(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties$1(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass$1(Constructor,protoProps,staticProps){if(protoProps)_defineProperties$1(Constructor.prototype,protoProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _defineProperty$1(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _inherits$1(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf$1(subClass,superClass)}function _getPrototypeOf$1(o2){_getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf2(o3){return o3.__proto__||Object.getPrototypeOf(o3)};return _getPrototypeOf$1(o2)}function _setPrototypeOf$1(o2,p2){_setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf2(o3,p3){o3.__proto__=p3;return o3};return _setPrototypeOf$1(o2,p2)}function _isNativeReflectConstruct$1(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e2){return false}}function _objectWithoutPropertiesLoose$1(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}function _objectWithoutProperties$1(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose$1(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _assertThisInitialized$1(self2){if(self2===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self2}function _possibleConstructorReturn$1(self2,call){if(call&&(typeof call==="object"||typeof call==="function")){return call}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized$1(self2)}function _createSuper$1(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct$1();return function _createSuperInternal(){var Super=_getPrototypeOf$1(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf$1(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return _possibleConstructorReturn$1(this,result)}}var DEFAULTS$1={flip:{padding:20},preventOverflow:{padding:10}};var STATUS$1={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"};var canUseDOM$1=ExecutionEnvironment.canUseDOM;var isReact16$1=ReactDOM__default.createPortal!==void 0;function isMobile(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function log$1(_ref3){var title=_ref3.title,data=_ref3.data,_ref$warn=_ref3.warn,warn=_ref$warn===void 0?false:_ref$warn,_ref$debug=_ref3.debug,debug=_ref$debug===void 0?false:_ref$debug;var logFn=warn?console.warn||console.error:console.log;if(debug&&title&&data){console.groupCollapsed("%creact-floater: ".concat(title),"color: #9b00ff; font-weight: bold; font-size: 12px;");if(Array.isArray(data)){data.forEach((function(d2){if(is$1.plainObject(d2)&&d2.key){logFn.apply(console,[d2.key,d2.value])}else{logFn.apply(console,[d2])}}))}else{logFn.apply(console,[data])}console.groupEnd()}}function on(element,event2,cb){var capture=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;element.addEventListener(event2,cb,capture)}function off(element,event2,cb){var capture=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;element.removeEventListener(event2,cb,capture)}function once(element,event2,cb){var capture=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;var _nextCB;_nextCB=function nextCB(e2){cb(e2);off(element,event2,_nextCB)};on(element,event2,_nextCB,capture)}function noop(){}var ReactFloaterPortal=function(_React$Component){_inherits$1(ReactFloaterPortal2,_React$Component);var _super=_createSuper$1(ReactFloaterPortal2);function ReactFloaterPortal2(){_classCallCheck$1(this,ReactFloaterPortal2);return _super.apply(this,arguments)}_createClass$1(ReactFloaterPortal2,[{key:"componentDidMount",value:function componentDidMount(){if(!canUseDOM$1)return;if(!this.node){this.appendNode()}if(!isReact16$1){this.renderPortal()}}},{key:"componentDidUpdate",value:function componentDidUpdate(){if(!canUseDOM$1)return;if(!isReact16$1){this.renderPortal()}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(!canUseDOM$1||!this.node)return;if(!isReact16$1){ReactDOM__default.unmountComponentAtNode(this.node)}if(this.node&&this.node.parentNode===document.body){document.body.removeChild(this.node);this.node=void 0}}},{key:"appendNode",value:function appendNode(){var _this$props=this.props,id=_this$props.id,zIndex=_this$props.zIndex;if(!this.node){this.node=document.createElement("div");if(id){this.node.id=id}if(zIndex){this.node.style.zIndex=zIndex}document.body.appendChild(this.node)}}},{key:"renderPortal",value:function renderPortal(){if(!canUseDOM$1)return null;var _this$props2=this.props,children=_this$props2.children,setRef3=_this$props2.setRef;if(!this.node){this.appendNode()}if(isReact16$1){return ReactDOM__default.createPortal(children,this.node)}var portal=ReactDOM__default.unstable_renderSubtreeIntoContainer(this,children.length>1?React__default.createElement("div",null,children):children[0],this.node);setRef3(portal);return null}},{key:"renderReact16",value:function renderReact16(){var _this$props3=this.props,hasChildren=_this$props3.hasChildren,placement=_this$props3.placement,target=_this$props3.target;if(!hasChildren){if(target||placement==="center"){return this.renderPortal()}return null}return this.renderPortal()}},{key:"render",value:function render(){if(!isReact16$1){return null}return this.renderReact16()}}]);return ReactFloaterPortal2}(React__default.Component);_defineProperty$1(ReactFloaterPortal,"propTypes",{children:PropTypes.oneOfType([PropTypes.element,PropTypes.array]),hasChildren:PropTypes.bool,id:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),placement:PropTypes.string,setRef:PropTypes.func.isRequired,target:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),zIndex:PropTypes.number});var FloaterArrow=function(_React$Component){_inherits$1(FloaterArrow2,_React$Component);var _super=_createSuper$1(FloaterArrow2);function FloaterArrow2(){_classCallCheck$1(this,FloaterArrow2);return _super.apply(this,arguments)}_createClass$1(FloaterArrow2,[{key:"parentStyle",get:function get(){var _this$props=this.props,placement=_this$props.placement,styles2=_this$props.styles;var length2=styles2.arrow.length;var arrow2={pointerEvents:"none",position:"absolute",width:"100%"};if(placement.startsWith("top")){arrow2.bottom=0;arrow2.left=0;arrow2.right=0;arrow2.height=length2}else if(placement.startsWith("bottom")){arrow2.left=0;arrow2.right=0;arrow2.top=0;arrow2.height=length2}else if(placement.startsWith("left")){arrow2.right=0;arrow2.top=0;arrow2.bottom=0}else if(placement.startsWith("right")){arrow2.left=0;arrow2.top=0}return arrow2}},{key:"render",value:function render(){var _this$props2=this.props,placement=_this$props2.placement,setArrowRef=_this$props2.setArrowRef,styles2=_this$props2.styles;var _styles$arrow=styles2.arrow,color=_styles$arrow.color,display=_styles$arrow.display,length2=_styles$arrow.length,margin=_styles$arrow.margin,position2=_styles$arrow.position,spread=_styles$arrow.spread;var arrowStyles={display:display,position:position2};var points;var x2=spread;var y2=length2;if(placement.startsWith("top")){points="0,0 ".concat(x2/2,",").concat(y2," ").concat(x2,",0");arrowStyles.bottom=0;arrowStyles.marginLeft=margin;arrowStyles.marginRight=margin}else if(placement.startsWith("bottom")){points="".concat(x2,",").concat(y2," ").concat(x2/2,",0 0,").concat(y2);arrowStyles.top=0;arrowStyles.marginLeft=margin;arrowStyles.marginRight=margin}else if(placement.startsWith("left")){y2=spread;x2=length2;points="0,0 ".concat(x2,",").concat(y2/2," 0,").concat(y2);arrowStyles.right=0;arrowStyles.marginTop=margin;arrowStyles.marginBottom=margin}else if(placement.startsWith("right")){y2=spread;x2=length2;points="".concat(x2,",").concat(y2," ").concat(x2,",0 0,").concat(y2/2);arrowStyles.left=0;arrowStyles.marginTop=margin;arrowStyles.marginBottom=margin}return React__default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},React__default.createElement("span",{ref:setArrowRef,style:arrowStyles},React__default.createElement("svg",{width:x2,height:y2,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},React__default.createElement("polygon",{points:points,fill:color}))))}}]);return FloaterArrow2}(React__default.Component);_defineProperty$1(FloaterArrow,"propTypes",{placement:PropTypes.string.isRequired,setArrowRef:PropTypes.func.isRequired,styles:PropTypes.object.isRequired});var _excluded$1$1=["color","height","width"];var FloaterCloseBtn=function FloaterCloseBtn2(_ref3){var handleClick=_ref3.handleClick,styles2=_ref3.styles;var color=styles2.color,height=styles2.height,width=styles2.width,style=_objectWithoutProperties$1(styles2,_excluded$1$1);return React__default.createElement("button",{"aria-label":"close",onClick:handleClick,style:style,type:"button"},React__default.createElement("svg",{width:"".concat(width,"px"),height:"".concat(height,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},React__default.createElement("g",null,React__default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:color}))))};FloaterCloseBtn.propTypes={handleClick:PropTypes.func.isRequired,styles:PropTypes.object.isRequired};var FloaterContainer=function FloaterContainer2(_ref3){var content=_ref3.content,footer=_ref3.footer,handleClick=_ref3.handleClick,open=_ref3.open,positionWrapper=_ref3.positionWrapper,showCloseButton=_ref3.showCloseButton,title=_ref3.title,styles2=_ref3.styles;var output={content:React__default.isValidElement(content)?content:React__default.createElement("div",{className:"__floater__content",style:styles2.content},content)};if(title){output.title=React__default.isValidElement(title)?title:React__default.createElement("div",{className:"__floater__title",style:styles2.title},title)}if(footer){output.footer=React__default.isValidElement(footer)?footer:React__default.createElement("div",{className:"__floater__footer",style:styles2.footer},footer)}if((showCloseButton||positionWrapper)&&!is$1["boolean"](open)){output.close=React__default.createElement(FloaterCloseBtn,{styles:styles2.close,handleClick:handleClick})}return React__default.createElement("div",{className:"__floater__container",style:styles2.container},output.close,output.title,output.content,output.footer)};FloaterContainer.propTypes={content:PropTypes.node.isRequired,footer:PropTypes.node,handleClick:PropTypes.func.isRequired,open:PropTypes.bool,positionWrapper:PropTypes.bool.isRequired,showCloseButton:PropTypes.bool.isRequired,styles:PropTypes.object.isRequired,title:PropTypes.node};var Floater=function(_React$Component){_inherits$1(Floater2,_React$Component);var _super=_createSuper$1(Floater2);function Floater2(){_classCallCheck$1(this,Floater2);return _super.apply(this,arguments)}_createClass$1(Floater2,[{key:"style",get:function get(){var _this$props=this.props,disableAnimation=_this$props.disableAnimation,component=_this$props.component,placement=_this$props.placement,hideArrow=_this$props.hideArrow,status=_this$props.status,styles2=_this$props.styles;var length2=styles2.arrow.length,floater=styles2.floater,floaterCentered=styles2.floaterCentered,floaterClosing=styles2.floaterClosing,floaterOpening=styles2.floaterOpening,floaterWithAnimation=styles2.floaterWithAnimation,floaterWithComponent=styles2.floaterWithComponent;var element={};if(!hideArrow){if(placement.startsWith("top")){element.padding="0 0 ".concat(length2,"px")}else if(placement.startsWith("bottom")){element.padding="".concat(length2,"px 0 0")}else if(placement.startsWith("left")){element.padding="0 ".concat(length2,"px 0 0")}else if(placement.startsWith("right")){element.padding="0 0 0 ".concat(length2,"px")}}if([STATUS$1.OPENING,STATUS$1.OPEN].indexOf(status)!==-1){element=_objectSpread2$1(_objectSpread2$1({},element),floaterOpening)}if(status===STATUS$1.CLOSING){element=_objectSpread2$1(_objectSpread2$1({},element),floaterClosing)}if(status===STATUS$1.OPEN&&!disableAnimation){element=_objectSpread2$1(_objectSpread2$1({},element),floaterWithAnimation)}if(placement==="center"){element=_objectSpread2$1(_objectSpread2$1({},element),floaterCentered)}if(component){element=_objectSpread2$1(_objectSpread2$1({},element),floaterWithComponent)}return _objectSpread2$1(_objectSpread2$1({},floater),element)}},{key:"render",value:function render(){var _this$props2=this.props,component=_this$props2.component,closeFn=_this$props2.handleClick,hideArrow=_this$props2.hideArrow,setFloaterRef=_this$props2.setFloaterRef,status=_this$props2.status;var output={};var classes=["__floater"];if(component){if(React__default.isValidElement(component)){output.content=React__default.cloneElement(component,{closeFn:closeFn})}else{output.content=component({closeFn:closeFn})}}else{output.content=React__default.createElement(FloaterContainer,this.props)}if(status===STATUS$1.OPEN){classes.push("__floater__open")}if(!hideArrow){output.arrow=React__default.createElement(FloaterArrow,this.props)}return React__default.createElement("div",{ref:setFloaterRef,className:classes.join(" "),style:this.style},React__default.createElement("div",{className:"__floater__body"},output.content,output.arrow))}}]);return Floater2}(React__default.Component);_defineProperty$1(Floater,"propTypes",{component:PropTypes.oneOfType([PropTypes.func,PropTypes.element]),content:PropTypes.node,disableAnimation:PropTypes.bool.isRequired,footer:PropTypes.node,handleClick:PropTypes.func.isRequired,hideArrow:PropTypes.bool.isRequired,open:PropTypes.bool,placement:PropTypes.string.isRequired,positionWrapper:PropTypes.bool.isRequired,setArrowRef:PropTypes.func.isRequired,setFloaterRef:PropTypes.func.isRequired,showCloseButton:PropTypes.bool,status:PropTypes.string.isRequired,styles:PropTypes.object.isRequired,title:PropTypes.node});var ReactFloaterWrapper=function(_React$Component){_inherits$1(ReactFloaterWrapper2,_React$Component);var _super=_createSuper$1(ReactFloaterWrapper2);function ReactFloaterWrapper2(){_classCallCheck$1(this,ReactFloaterWrapper2);return _super.apply(this,arguments)}_createClass$1(ReactFloaterWrapper2,[{key:"render",value:function render(){var _this$props=this.props,children=_this$props.children,handleClick=_this$props.handleClick,handleMouseEnter=_this$props.handleMouseEnter,handleMouseLeave=_this$props.handleMouseLeave,setChildRef=_this$props.setChildRef,setWrapperRef=_this$props.setWrapperRef,style=_this$props.style,styles2=_this$props.styles;var element;if(children){if(React__default.Children.count(children)===1){if(!React__default.isValidElement(children)){element=React__default.createElement("span",null,children)}else{var refProp=is$1["function"](children.type)?"innerRef":"ref";element=React__default.cloneElement(React__default.Children.only(children),_defineProperty$1({},refProp,setChildRef))}}else{element=children}}if(!element){return null}return React__default.createElement("span",{ref:setWrapperRef,style:_objectSpread2$1(_objectSpread2$1({},styles2),style),onClick:handleClick,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave},element)}}]);return ReactFloaterWrapper2}(React__default.Component);_defineProperty$1(ReactFloaterWrapper,"propTypes",{children:PropTypes.node,handleClick:PropTypes.func.isRequired,handleMouseEnter:PropTypes.func.isRequired,handleMouseLeave:PropTypes.func.isRequired,setChildRef:PropTypes.func.isRequired,setWrapperRef:PropTypes.func.isRequired,style:PropTypes.object,styles:PropTypes.object.isRequired});var defaultOptions$1={zIndex:100};function getStyles$1(styles2){var options2=deepmerge$1(defaultOptions$1,styles2.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:options2.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:options2.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:options2}}var _excluded$3=["arrow","flip","offset"];var POSITIONING_PROPS=["position","top","right","bottom","left"];var ReactFloater=function(_React$Component){_inherits$1(ReactFloater2,_React$Component);var _super=_createSuper$1(ReactFloater2);function ReactFloater2(props){var _this;_classCallCheck$1(this,ReactFloater2);_this=_super.call(this,props);_defineProperty$1(_assertThisInitialized$1(_this),"setArrowRef",(function(ref){_this.arrowRef=ref}));_defineProperty$1(_assertThisInitialized$1(_this),"setChildRef",(function(ref){_this.childRef=ref}));_defineProperty$1(_assertThisInitialized$1(_this),"setFloaterRef",(function(ref){_this.floaterRef=ref}));_defineProperty$1(_assertThisInitialized$1(_this),"setWrapperRef",(function(ref){_this.wrapperRef=ref}));_defineProperty$1(_assertThisInitialized$1(_this),"handleTransitionEnd",(function(){var status=_this.state.status;var callback=_this.props.callback;if(_this.wrapperPopper){_this.wrapperPopper.instance.update()}_this.setState({status:status===STATUS$1.OPENING?STATUS$1.OPEN:STATUS$1.IDLE},(function(){var newStatus=_this.state.status;callback(newStatus===STATUS$1.OPEN?"open":"close",_this.props)}))}));_defineProperty$1(_assertThisInitialized$1(_this),"handleClick",(function(){var _this$props=_this.props,event2=_this$props.event,open=_this$props.open;if(is$1["boolean"](open))return;var _this$state=_this.state,positionWrapper=_this$state.positionWrapper,status=_this$state.status;if(_this.event==="click"||_this.event==="hover"&&positionWrapper){log$1({title:"click",data:[{event:event2,status:status===STATUS$1.OPEN?"closing":"opening"}],debug:_this.debug});_this.toggle()}}));_defineProperty$1(_assertThisInitialized$1(_this),"handleMouseEnter",(function(){var _this$props2=_this.props,event2=_this$props2.event,open=_this$props2.open;if(is$1["boolean"](open)||isMobile())return;var status=_this.state.status;if(_this.event==="hover"&&status===STATUS$1.IDLE){log$1({title:"mouseEnter",data:[{key:"originalEvent",value:event2}],debug:_this.debug});clearTimeout(_this.eventDelayTimeout);_this.toggle()}}));_defineProperty$1(_assertThisInitialized$1(_this),"handleMouseLeave",(function(){var _this$props3=_this.props,event2=_this$props3.event,eventDelay=_this$props3.eventDelay,open=_this$props3.open;if(is$1["boolean"](open)||isMobile())return;var _this$state2=_this.state,status=_this$state2.status,positionWrapper=_this$state2.positionWrapper;if(_this.event==="hover"){log$1({title:"mouseLeave",data:[{key:"originalEvent",value:event2}],debug:_this.debug});if(!eventDelay){_this.toggle(STATUS$1.IDLE)}else if([STATUS$1.OPENING,STATUS$1.OPEN].indexOf(status)!==-1&&!positionWrapper&&!_this.eventDelayTimeout){_this.eventDelayTimeout=setTimeout((function(){delete _this.eventDelayTimeout;_this.toggle()}),eventDelay*1e3)}}}));_this.state={currentPlacement:props.placement,needsUpdate:false,positionWrapper:props.wrapperOptions.position&&!!props.target,status:STATUS$1.INIT,statusWrapper:STATUS$1.INIT};_this._isMounted=false;_this.hasMounted=false;if(canUseDOM$1){window.addEventListener("load",(function(){if(_this.popper){_this.popper.instance.update()}if(_this.wrapperPopper){_this.wrapperPopper.instance.update()}}))}return _this}_createClass$1(ReactFloater2,[{key:"componentDidMount",value:function componentDidMount(){if(!canUseDOM$1)return;var positionWrapper=this.state.positionWrapper;var _this$props5=this.props,children=_this$props5.children,open=_this$props5.open,target=_this$props5.target;this._isMounted=true;log$1({title:"init",data:{hasChildren:!!children,hasTarget:!!target,isControlled:is$1["boolean"](open),positionWrapper:positionWrapper,target:this.target,floater:this.floaterRef},debug:this.debug});if(!this.hasMounted){this.initPopper();this.hasMounted=true}if(!children&&target&&!is$1["boolean"](open));}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(!canUseDOM$1)return;var _this$props6=this.props,autoOpen=_this$props6.autoOpen,open=_this$props6.open,target=_this$props6.target,wrapperOptions=_this$props6.wrapperOptions;var _treeChanges=treeChanges(prevState,this.state),changedFrom=_treeChanges.changedFrom,changed=_treeChanges.changed;if(prevProps.open!==open){var forceStatus;if(is$1["boolean"](open)){forceStatus=open?STATUS$1.OPENING:STATUS$1.CLOSING}this.toggle(forceStatus)}if(prevProps.wrapperOptions.position!==wrapperOptions.position||prevProps.target!==target){this.changeWrapperPosition(this.props)}if(changed("status",STATUS$1.IDLE)&&open){this.toggle(STATUS$1.OPEN)}else if(changedFrom("status",STATUS$1.INIT,STATUS$1.IDLE)&&autoOpen){this.toggle(STATUS$1.OPEN)}if(this.popper&&changed("status",STATUS$1.OPENING)){this.popper.instance.update()}if(this.floaterRef&&(changed("status",STATUS$1.OPENING)||changed("status",STATUS$1.CLOSING))){once(this.floaterRef,"transitionend",this.handleTransitionEnd)}if(changed("needsUpdate",true)){this.rebuildPopper()}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(!canUseDOM$1)return;this._isMounted=false;if(this.popper){this.popper.instance.destroy()}if(this.wrapperPopper){this.wrapperPopper.instance.destroy()}}},{key:"initPopper",value:function initPopper(){var _this2=this;var target=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target;var positionWrapper=this.state.positionWrapper;var _this$props7=this.props,disableFlip=_this$props7.disableFlip,getPopper=_this$props7.getPopper,hideArrow=_this$props7.hideArrow,offset2=_this$props7.offset,placement=_this$props7.placement,wrapperOptions=_this$props7.wrapperOptions;var flipBehavior=placement==="top"||placement==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(placement==="center"){this.setState({status:STATUS$1.IDLE})}else if(target&&this.floaterRef){var _this$options=this.options,arrow2=_this$options.arrow,flip2=_this$options.flip,offsetOptions=_this$options.offset,rest=_objectWithoutProperties$1(_this$options,_excluded$3);new Popper(target,this.floaterRef,{placement:placement,modifiers:_objectSpread2$1({arrow:_objectSpread2$1({enabled:!hideArrow,element:this.arrowRef},arrow2),flip:_objectSpread2$1({enabled:!disableFlip,behavior:flipBehavior},flip2),offset:_objectSpread2$1({offset:"0, ".concat(offset2,"px")},offsetOptions)},rest),onCreate:function onCreate2(data){var _this2$floaterRef;_this2.popper=data;if(!((_this2$floaterRef=_this2.floaterRef)!==null&&_this2$floaterRef!==void 0&&_this2$floaterRef.isConnected)){_this2.setState({needsUpdate:true});return}getPopper(data,"floater");if(_this2._isMounted){_this2.setState({currentPlacement:data.placement,status:STATUS$1.IDLE})}if(placement!==data.placement){setTimeout((function(){data.instance.update()}),1)}},onUpdate:function onUpdate2(data){_this2.popper=data;var currentPlacement=_this2.state.currentPlacement;if(_this2._isMounted&&data.placement!==currentPlacement){_this2.setState({currentPlacement:data.placement})}}})}if(positionWrapper){var wrapperOffset=!is$1.undefined(wrapperOptions.offset)?wrapperOptions.offset:0;new Popper(this.target,this.wrapperRef,{placement:wrapperOptions.placement||placement,modifiers:{arrow:{enabled:false},offset:{offset:"0, ".concat(wrapperOffset,"px")},flip:{enabled:false}},onCreate:function onCreate2(data){_this2.wrapperPopper=data;if(_this2._isMounted){_this2.setState({statusWrapper:STATUS$1.IDLE})}getPopper(data,"wrapper");if(placement!==data.placement){setTimeout((function(){data.instance.update()}),1)}}})}}},{key:"rebuildPopper",value:function rebuildPopper(){var _this3=this;this.floaterRefInterval=setInterval((function(){var _this3$floaterRef;if((_this3$floaterRef=_this3.floaterRef)!==null&&_this3$floaterRef!==void 0&&_this3$floaterRef.isConnected){clearInterval(_this3.floaterRefInterval);_this3.setState({needsUpdate:false});_this3.initPopper()}}),50)}},{key:"changeWrapperPosition",value:function changeWrapperPosition(_ref3){var target=_ref3.target,wrapperOptions=_ref3.wrapperOptions;this.setState({positionWrapper:wrapperOptions.position&&!!target})}},{key:"toggle",value:function toggle(forceStatus){var status=this.state.status;var nextStatus=status===STATUS$1.OPEN?STATUS$1.CLOSING:STATUS$1.OPENING;if(!is$1.undefined(forceStatus)){nextStatus=forceStatus}this.setState({status:nextStatus})}},{key:"debug",get:function get(){var debug=this.props.debug;return debug||!!global.ReactFloaterDebug}},{key:"event",get:function get(){var _this$props8=this.props,disableHoverToClick=_this$props8.disableHoverToClick,event2=_this$props8.event;if(event2==="hover"&&isMobile()&&!disableHoverToClick){return"click"}return event2}},{key:"options",get:function get(){var options2=this.props.options;return deepmerge$1(DEFAULTS$1,options2||{})}},{key:"styles",get:function get(){var _this4=this;var _this$state3=this.state,status=_this$state3.status,positionWrapper=_this$state3.positionWrapper,statusWrapper=_this$state3.statusWrapper;var styles2=this.props.styles;var nextStyles=deepmerge$1(getStyles$1(styles2),styles2);if(positionWrapper){var wrapperStyles;if(!([STATUS$1.IDLE].indexOf(status)!==-1)||!([STATUS$1.IDLE].indexOf(statusWrapper)!==-1)){wrapperStyles=nextStyles.wrapperPosition}else{wrapperStyles=this.wrapperPopper.styles}nextStyles.wrapper=_objectSpread2$1(_objectSpread2$1({},nextStyles.wrapper),wrapperStyles)}if(this.target){var targetStyles=window.getComputedStyle(this.target);if(this.wrapperStyles){nextStyles.wrapper=_objectSpread2$1(_objectSpread2$1({},nextStyles.wrapper),this.wrapperStyles)}else if(!(["relative","static"].indexOf(targetStyles.position)!==-1)){this.wrapperStyles={};if(!positionWrapper){POSITIONING_PROPS.forEach((function(d2){_this4.wrapperStyles[d2]=targetStyles[d2]}));nextStyles.wrapper=_objectSpread2$1(_objectSpread2$1({},nextStyles.wrapper),this.wrapperStyles);this.target.style.position="relative";this.target.style.top="auto";this.target.style.right="auto";this.target.style.bottom="auto";this.target.style.left="auto"}}}return nextStyles}},{key:"target",get:function get(){if(!canUseDOM$1)return null;var target=this.props.target;if(target){if(is$1.domElement(target)){return target}return document.querySelector(target)}return this.childRef||this.wrapperRef}},{key:"render",value:function render(){var _this$state4=this.state,currentPlacement=_this$state4.currentPlacement,positionWrapper=_this$state4.positionWrapper,status=_this$state4.status;var _this$props9=this.props,children=_this$props9.children,component=_this$props9.component,content=_this$props9.content,disableAnimation=_this$props9.disableAnimation,footer=_this$props9.footer,hideArrow=_this$props9.hideArrow,id=_this$props9.id,open=_this$props9.open,showCloseButton=_this$props9.showCloseButton,style=_this$props9.style,target=_this$props9.target,title=_this$props9.title;var wrapper=React__default.createElement(ReactFloaterWrapper,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:style,styles:this.styles.wrapper},children);var output={};if(positionWrapper){output.wrapperInPortal=wrapper}else{output.wrapperAsChildren=wrapper}return React__default.createElement("span",null,React__default.createElement(ReactFloaterPortal,{hasChildren:!!children,id:id,placement:currentPlacement,setRef:this.setFloaterRef,target:target,zIndex:this.styles.options.zIndex},React__default.createElement(Floater,{component:component,content:content,disableAnimation:disableAnimation,footer:footer,handleClick:this.handleClick,hideArrow:hideArrow||currentPlacement==="center",open:open,placement:currentPlacement,positionWrapper:positionWrapper,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:showCloseButton,status:status,styles:this.styles,title:title}),output.wrapperInPortal),output.wrapperAsChildren)}}]);return ReactFloater2}(React__default.Component);_defineProperty$1(ReactFloater,"propTypes",{autoOpen:PropTypes.bool,callback:PropTypes.func,children:PropTypes.node,component:_default(PropTypes.oneOfType([PropTypes.func,PropTypes.element]),(function(props){return!props.content})),content:_default(PropTypes.node,(function(props){return!props.component})),debug:PropTypes.bool,disableAnimation:PropTypes.bool,disableFlip:PropTypes.bool,disableHoverToClick:PropTypes.bool,event:PropTypes.oneOf(["hover","click"]),eventDelay:PropTypes.number,footer:PropTypes.node,getPopper:PropTypes.func,hideArrow:PropTypes.bool,id:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),offset:PropTypes.number,open:PropTypes.bool,options:PropTypes.object,placement:PropTypes.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:PropTypes.bool,style:PropTypes.object,styles:PropTypes.object,target:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),title:PropTypes.node,wrapperOptions:PropTypes.shape({offset:PropTypes.number,placement:PropTypes.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:PropTypes.bool})});_defineProperty$1(ReactFloater,"defaultProps",{autoOpen:false,callback:noop,debug:false,disableAnimation:false,disableFlip:false,disableHoverToClick:false,event:"click",eventDelay:.4,getPopper:noop,hideArrow:false,offset:15,placement:"bottom",showCloseButton:false,styles:{},target:null,wrapperOptions:{position:false}});function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread2(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),true).forEach((function(key){_defineProperty(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};return _extends.apply(this,arguments)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass)}function _getPrototypeOf(o2){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf2(o3){return o3.__proto__||Object.getPrototypeOf(o3)};return _getPrototypeOf(o2)}function _setPrototypeOf(o2,p2){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf2(o3,p3){o3.__proto__=p3;return o3};return _setPrototypeOf(o2,p2)}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return true}catch(e2){return false}}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _assertThisInitialized(self2){if(self2===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self2}function _possibleConstructorReturn(self2,call){if(call&&(typeof call==="object"||typeof call==="function")){return call}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized(self2)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return _possibleConstructorReturn(this,result)}}var ACTIONS={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"};var EVENTS={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"};var LIFECYCLE={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"};var STATUS={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};var canUseDOM=ExecutionEnvironment.canUseDOM;var isReact16=createPortal!==void 0;function getBrowser(){var userAgent=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator.userAgent;var browser=userAgent;if(typeof window==="undefined"){browser="node"}else if(document.documentMode){browser="ie"}else if(/Edge/.test(userAgent)){browser="edge"}else if(Boolean(window.opera)||userAgent.indexOf(" OPR/")>=0){browser="opera"}else if(typeof window.InstallTrigger!=="undefined"){browser="firefox"}else if(window.chrome){browser="chrome"}else if(/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(userAgent)){browser="safari"}return browser}function getObjectType(value){return Object.prototype.toString.call(value).slice(8,-1).toLowerCase()}function getText(root2){var content=[];var recurse=function recurse2(child){if(typeof child==="string"||typeof child==="number"){content.push(child)}else if(Array.isArray(child)){child.forEach((function(c2){return recurse2(c2)}))}else if(child&&child.props){var children=child.props.children;if(Array.isArray(children)){children.forEach((function(c2){return recurse2(c2)}))}else{recurse2(children)}}};recurse(root2);return content.join(" ").trim()}function hasOwnProperty(value,key){return Object.prototype.hasOwnProperty.call(value,key)}function hasValidKeys(value,keys){if(!src_default.plainObject(value)||!src_default.array(keys)){return false}return Object.keys(value).every((function(d2){return keys.indexOf(d2)!==-1}))}function hexToRGB(hex){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;var properHex=hex.replace(shorthandRegex,(function(m2,r2,g2,b2){return r2+r2+g2+g2+b2+b2}));var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(properHex);return result?[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)]:[]}function hideBeacon(step){return step.disableBeacon||step.placement==="center"}function isEqual2(left,right){var type;var hasReactElement=isValidElement(left)||isValidElement(right);var hasUndefined=src_default.undefined(left)||src_default.undefined(right);if(getObjectType(left)!==getObjectType(right)||hasReactElement||hasUndefined){return false}if(src_default.domElement(left)){return left.isSameNode(right)}if(src_default.number(left)){return left===right}if(src_default["function"](left)){return left.toString()===right.toString()}for(var key in left){if(hasOwnProperty(left,key)){if(typeof left[key]==="undefined"||typeof right[key]==="undefined"){return false}type=getObjectType(left[key]);if(["object","array"].indexOf(type)!==-1&&isEqual2(left[key],right[key])){continue}if(type==="function"&&isEqual2(left[key],right[key])){continue}if(left[key]!==right[key]){return false}}}for(var p2 in right){if(hasOwnProperty(right,p2)){if(typeof left[p2]==="undefined"){return false}}}return true}function isLegacy(){return!(["chrome","safari","firefox","opera"].indexOf(getBrowser())!==-1)}function log(_ref3){var title=_ref3.title,data=_ref3.data,_ref$warn=_ref3.warn,warn=_ref$warn===void 0?false:_ref$warn,_ref$debug=_ref3.debug,debug=_ref$debug===void 0?false:_ref$debug;var logFn=warn?console.warn||console.error:console.log;if(debug){if(title&&data){console.groupCollapsed("%creact-joyride: ".concat(title),"color: #ff0044; font-weight: bold; font-size: 12px;");if(Array.isArray(data)){data.forEach((function(d2){if(src_default.plainObject(d2)&&d2.key){logFn.apply(console,[d2.key,d2.value])}else{logFn.apply(console,[d2])}}))}else{logFn.apply(console,[data])}console.groupEnd()}else{console.error("Missing title or data props")}}}var defaultState={action:"",controlled:false,index:0,lifecycle:LIFECYCLE.INIT,size:0,status:STATUS.IDLE};var validKeys=["action","index","lifecycle","status"];function createStore(props){var store=new Map;var data=new Map;var Store=function(){function Store2(){var _this=this;var _ref3=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref$continuous=_ref3.continuous,continuous=_ref$continuous===void 0?false:_ref$continuous,stepIndex=_ref3.stepIndex,_ref$steps=_ref3.steps,_steps=_ref$steps===void 0?[]:_ref$steps;_classCallCheck(this,Store2);_defineProperty(this,"listener",void 0);_defineProperty(this,"setSteps",(function(steps){var _this$getState=_this.getState(),size=_this$getState.size,status=_this$getState.status;var state={size:steps.length,status:status};data.set("steps",steps);if(status===STATUS.WAITING&&!size&&steps.length){state.status=STATUS.RUNNING}_this.setState(state)}));_defineProperty(this,"addListener",(function(listener){_this.listener=listener}));_defineProperty(this,"update",(function(state){if(!hasValidKeys(state,validKeys)){throw new Error("State is not valid. Valid keys: ".concat(validKeys.join(", ")))}_this.setState(_objectSpread2({},_this.getNextState(_objectSpread2(_objectSpread2(_objectSpread2({},_this.getState()),state),{},{action:state.action||ACTIONS.UPDATE}),true)))}));_defineProperty(this,"start",(function(nextIndex){var _this$getState2=_this.getState(),index2=_this$getState2.index,size=_this$getState2.size;_this.setState(_objectSpread2(_objectSpread2({},_this.getNextState({action:ACTIONS.START,index:src_default.number(nextIndex)?nextIndex:index2},true)),{},{status:size?STATUS.RUNNING:STATUS.WAITING}))}));_defineProperty(this,"stop",(function(){var advance=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var _this$getState3=_this.getState(),index2=_this$getState3.index,status=_this$getState3.status;if([STATUS.FINISHED,STATUS.SKIPPED].indexOf(status)!==-1)return;_this.setState(_objectSpread2(_objectSpread2({},_this.getNextState({action:ACTIONS.STOP,index:index2+(advance?1:0)})),{},{status:STATUS.PAUSED}))}));_defineProperty(this,"close",(function(){var _this$getState4=_this.getState(),index2=_this$getState4.index,status=_this$getState4.status;if(status!==STATUS.RUNNING)return;_this.setState(_objectSpread2({},_this.getNextState({action:ACTIONS.CLOSE,index:index2+1})))}));_defineProperty(this,"go",(function(nextIndex){var _this$getState5=_this.getState(),controlled=_this$getState5.controlled,status=_this$getState5.status;if(controlled||status!==STATUS.RUNNING)return;var step=_this.getSteps()[nextIndex];_this.setState(_objectSpread2(_objectSpread2({},_this.getNextState({action:ACTIONS.GO,index:nextIndex})),{},{status:step?status:STATUS.FINISHED}))}));_defineProperty(this,"info",(function(){return _this.getState()}));_defineProperty(this,"next",(function(){var _this$getState6=_this.getState(),index2=_this$getState6.index,status=_this$getState6.status;if(status!==STATUS.RUNNING)return;_this.setState(_this.getNextState({action:ACTIONS.NEXT,index:index2+1}))}));_defineProperty(this,"open",(function(){var _this$getState7=_this.getState(),status=_this$getState7.status;if(status!==STATUS.RUNNING)return;_this.setState(_objectSpread2({},_this.getNextState({action:ACTIONS.UPDATE,lifecycle:LIFECYCLE.TOOLTIP})))}));_defineProperty(this,"prev",(function(){var _this$getState8=_this.getState(),index2=_this$getState8.index,status=_this$getState8.status;if(status!==STATUS.RUNNING)return;_this.setState(_objectSpread2({},_this.getNextState({action:ACTIONS.PREV,index:index2-1})))}));_defineProperty(this,"reset",(function(){var restart=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var _this$getState9=_this.getState(),controlled=_this$getState9.controlled;if(controlled)return;_this.setState(_objectSpread2(_objectSpread2({},_this.getNextState({action:ACTIONS.RESET,index:0})),{},{status:restart?STATUS.RUNNING:STATUS.READY}))}));_defineProperty(this,"skip",(function(){var _this$getState10=_this.getState(),status=_this$getState10.status;if(status!==STATUS.RUNNING)return;_this.setState({action:ACTIONS.SKIP,lifecycle:LIFECYCLE.INIT,status:STATUS.SKIPPED})}));this.setState({action:ACTIONS.INIT,controlled:src_default.number(stepIndex),continuous:continuous,index:src_default.number(stepIndex)?stepIndex:0,lifecycle:LIFECYCLE.INIT,status:_steps.length?STATUS.READY:STATUS.IDLE},true);this.setSteps(_steps)}_createClass(Store2,[{key:"setState",value:function setState(nextState){var initial=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;var state=this.getState();var _state$nextState=_objectSpread2(_objectSpread2({},state),nextState),action=_state$nextState.action,index2=_state$nextState.index,lifecycle=_state$nextState.lifecycle,size=_state$nextState.size,status=_state$nextState.status;store.set("action",action);store.set("index",index2);store.set("lifecycle",lifecycle);store.set("size",size);store.set("status",status);if(initial){store.set("controlled",nextState.controlled);store.set("continuous",nextState.continuous)}if(this.listener&&this.hasUpdatedState(state)){this.listener(this.getState())}}},{key:"getState",value:function getState(){if(!store.size){return _objectSpread2({},defaultState)}return{action:store.get("action")||"",controlled:store.get("controlled")||false,index:parseInt(store.get("index"),10),lifecycle:store.get("lifecycle")||"",size:store.get("size")||0,status:store.get("status")||""}}},{key:"getNextState",value:function getNextState(state){var force=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;var _this$getState11=this.getState(),action=_this$getState11.action,controlled=_this$getState11.controlled,index2=_this$getState11.index,size=_this$getState11.size,status=_this$getState11.status;var newIndex=src_default.number(state.index)?state.index:index2;var nextIndex=controlled&&!force?index2:Math.min(Math.max(newIndex,0),size);return{action:state.action||action,controlled:controlled,index:nextIndex,lifecycle:state.lifecycle||LIFECYCLE.INIT,size:state.size||size,status:nextIndex===size?STATUS.FINISHED:state.status||status}}},{key:"hasUpdatedState",value:function hasUpdatedState(oldState){var before2=JSON.stringify(oldState);var after2=JSON.stringify(this.getState());return before2!==after2}},{key:"getSteps",value:function getSteps(){var steps=data.get("steps");return Array.isArray(steps)?steps:[]}},{key:"getHelpers",value:function getHelpers2(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]);return Store2}();return new Store(props)}function getClientRect(element){if(!element){return{}}return element.getBoundingClientRect()}function getDocumentHeight(){var _document=document,body=_document.body,html=_document.documentElement;if(!body||!html){return 0}return Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight)}function getElement(element){if(typeof element==="string"){return document.querySelector(element)}return element}function getStyleComputedProperty(el){if(!el||el.nodeType!==1){return{}}return getComputedStyle(el)}function getScrollParent(element,skipFix,forListener){var parent=scrollParent(element);if(parent.isSameNode(scrollDoc())){if(forListener){return document}return scrollDoc()}var hasScrolling=parent.scrollHeight>parent.offsetHeight;if(!hasScrolling&&!skipFix){parent.style.overflow="initial";return scrollDoc()}return parent}function hasCustomScrollParent(element,skipFix){if(!element)return false;var parent=getScrollParent(element,skipFix);return!parent.isSameNode(scrollDoc())}function hasCustomOffsetParent(element){return element.offsetParent!==document.body}function hasPosition(el){var type=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fixed";if(!el||!(el instanceof HTMLElement)){return false}var nodeName=el.nodeName;if(nodeName==="BODY"||nodeName==="HTML"){return false}if(getStyleComputedProperty(el).position===type){return true}return hasPosition(el.parentNode,type)}function isElementVisible(element){if(!element)return false;var parentElement=element;while(parentElement){if(parentElement===document.body)break;if(parentElement instanceof HTMLElement){var _getComputedStyle=getComputedStyle(parentElement),display=_getComputedStyle.display,visibility=_getComputedStyle.visibility;if(display==="none"||visibility==="hidden"){return false}}parentElement=parentElement.parentNode}return true}function getElementPosition(element,offset2,skipFix){var elementRect=getClientRect(element);var parent=getScrollParent(element,skipFix);var hasScrollParent=hasCustomScrollParent(element,skipFix);var parentTop=0;if(parent instanceof HTMLElement){parentTop=parent.scrollTop}var top=elementRect.top+(!hasScrollParent&&!hasPosition(element)?parentTop:0);return Math.floor(top-offset2)}function getTopOffset(element){if(element instanceof HTMLElement){if(element.offsetParent instanceof HTMLElement){return getTopOffset(element.offsetParent)+element.offsetTop}return element.offsetTop}return 0}function getScrollTo(element,offset2,skipFix){if(!element){return 0}var parent=scrollParent(element);var top=getTopOffset(element);if(hasCustomScrollParent(element,skipFix)&&!hasCustomOffsetParent(element)){top-=getTopOffset(parent)}return Math.floor(top-offset2)}function scrollDoc(){return document.scrollingElement||document.createElement("body")}function scrollTo(value){var element=arguments.length>1&&arguments[1]!==void 0?arguments[1]:scrollDoc();var scrollDuration=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300;return new Promise((function(resolve,reject){var scrollTop=element.scrollTop;var limit=value>scrollTop?value-scrollTop:scrollTop-value;scroll$1.top(element,value,{duration:limit<100?50:scrollDuration},(function(error){if(error&&error.message!=="Element already at target scroll position"){return reject(error)}return resolve()}))}))}function createChainableTypeChecker(validate){function checkType(isRequired,props,propName,componentName,location,propFullName){var componentNameSafe=componentName||"<<anonymous>>";var propFullNameSafe=propFullName||propName;if(props[propName]==null){if(isRequired){return new Error("Required ".concat(location," `").concat(propFullNameSafe,"` was not specified in `").concat(componentNameSafe,"`."))}return null}for(var _len=arguments.length,args=new Array(_len>6?_len-6:0),_key=6;_key<_len;_key++){args[_key-6]=arguments[_key]}return validate.apply(void 0,[props,propName,componentNameSafe,location,propFullNameSafe].concat(args))}var chainedCheckType=checkType.bind(null,false);chainedCheckType.isRequired=checkType.bind(null,true);return chainedCheckType}createChainableTypeChecker((function(props,propName,componentName,location,propFullName){var propValue=props[propName];var Component2=propValue;if(!React__default.isValidElement(propValue)&&isValidElementType(propValue)){var ownProps={ref:function ref(){},step:{}};Component2=React__default.createElement(Component2,ownProps)}if(src_default.string(propValue)||src_default.number(propValue)||!isValidElementType(propValue)||!([Element$1,ForwardRef].indexOf(typeOf(Component2))!==-1)){return new Error("Invalid ".concat(location," `").concat(propFullName,"` supplied to `").concat(componentName,"`. Expected a React class or forwardRef."))}return void 0}));var defaultOptions={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100};var buttonBase={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"};var spotlight={borderRadius:4,position:"absolute"};function getStyles(){var stepStyles=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var options2=deepmerge$1(defaultOptions,stepStyles.options||{});var width=290;if(window.innerWidth>480){width=380}if(options2.width){if(window.innerWidth<options2.width){width=window.innerWidth-30}else{width=options2.width}}var overlay={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:options2.zIndex};var defaultStyles2={beacon:_objectSpread2(_objectSpread2({},buttonBase),{},{display:"inline-block",height:options2.beaconSize,position:"relative",width:options2.beaconSize,zIndex:options2.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:options2.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(hexToRGB(options2.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(options2.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:options2.backgroundColor,borderRadius:5,boxSizing:"border-box",color:options2.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:width},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:_objectSpread2(_objectSpread2({},buttonBase),{},{backgroundColor:options2.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:_objectSpread2(_objectSpread2({},buttonBase),{},{color:options2.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:_objectSpread2(_objectSpread2({},buttonBase),{},{color:options2.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:_objectSpread2(_objectSpread2({},buttonBase),{},{color:options2.textColor,fontSize:14}),overlay:_objectSpread2(_objectSpread2({},overlay),{},{backgroundColor:options2.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:_objectSpread2({},overlay),overlayLegacyCenter:_objectSpread2(_objectSpread2({},overlay),{},{backgroundColor:options2.overlayColor}),spotlight:_objectSpread2(_objectSpread2({},spotlight),{},{backgroundColor:"gray"}),spotlightLegacy:_objectSpread2(_objectSpread2({},spotlight),{},{boxShadow:"0 0 0 9999px ".concat(options2.overlayColor,", ").concat(options2.spotlightShadow)}),floaterStyles:{arrow:{color:options2.arrowColor},options:{zIndex:options2.zIndex+100}},options:options2};return deepmerge$1(defaultStyles2,stepStyles)}var DEFAULTS={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:true}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function getTourProps(props){var sharedTourProps=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(props).filter((function(d2){return sharedTourProps.indexOf(d2)!==-1})).reduce((function(acc,i){acc[i]=props[i];return acc}),{})}function getMergedStep(step,props){if(!step)return null;var mergedStep=deepmerge$1.all([getTourProps(props),DEFAULTS.step,step],{isMergeableObject:src_default.plainObject});var mergedStyles=getStyles(deepmerge$1(props.styles||{},step.styles||{}));var scrollParent2=hasCustomScrollParent(getElement(step.target),mergedStep.disableScrollParentFix);var floaterProps=deepmerge$1.all([props.floaterProps||{},DEFAULTS.floaterProps,mergedStep.floaterProps||{}]);floaterProps.offset=mergedStep.offset;floaterProps.styles=deepmerge$1(floaterProps.styles||{},mergedStyles.floaterStyles||{});delete mergedStyles.floaterStyles;floaterProps.offset+=props.spotlightPadding||step.spotlightPadding||0;if(step.placementBeacon){floaterProps.wrapperOptions.placement=step.placementBeacon}if(scrollParent2){floaterProps.options.preventOverflow.boundariesElement="window"}return _objectSpread2(_objectSpread2({},mergedStep),{},{locale:deepmerge$1.all([DEFAULTS.locale,props.locale||{},mergedStep.locale||{}]),floaterProps:floaterProps,styles:mergedStyles})}function validateStep(step){var debug=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;if(!src_default.plainObject(step)){log({title:"validateStep",data:"step must be an object",warn:true,debug:debug});return false}if(!step.target){log({title:"validateStep",data:"target is missing from the step",warn:true,debug:debug});return false}return true}function validateSteps(steps){var debug=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;if(!src_default.array(steps)){log({title:"validateSteps",data:"steps must be an array",warn:true,debug:debug});return false}return steps.every((function(d2){return validateStep(d2,debug)}))}var Scope=_createClass((function Scope2(_element){var _this=this;var options2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck(this,Scope2);_defineProperty(this,"element",void 0);_defineProperty(this,"options",void 0);_defineProperty(this,"canBeTabbed",(function(element){var tabIndex=element.tabIndex;if(tabIndex===null||tabIndex<0)tabIndex=void 0;var isTabIndexNaN=isNaN(tabIndex);return!isTabIndexNaN&&_this.canHaveFocus(element)}));_defineProperty(this,"canHaveFocus",(function(element){var validTabNodes=/input|select|textarea|button|object/;var nodeName=element.nodeName.toLowerCase();var res=validTabNodes.test(nodeName)&&!element.getAttribute("disabled")||nodeName==="a"&&!!element.getAttribute("href");return res&&_this.isVisible(element)}));_defineProperty(this,"findValidTabElements",(function(){return[].slice.call(_this.element.querySelectorAll("*"),0).filter(_this.canBeTabbed)}));_defineProperty(this,"handleKeyDown",(function(e2){var _this$options$keyCode=_this.options.keyCode,keyCode=_this$options$keyCode===void 0?9:_this$options$keyCode;if(e2.keyCode===keyCode){_this.interceptTab(e2)}}));_defineProperty(this,"interceptTab",(function(event2){var elements=_this.findValidTabElements();if(!elements.length){return}event2.preventDefault();var shiftKey=event2.shiftKey;var x2=elements.indexOf(document.activeElement);if(x2===-1||!shiftKey&&x2+1===elements.length){x2=0}else if(shiftKey&&x2===0){x2=elements.length-1}else{x2+=shiftKey?-1:1}elements[x2].focus()}));_defineProperty(this,"isHidden",(function(element){var noSize=element.offsetWidth<=0&&element.offsetHeight<=0;var style=window.getComputedStyle(element);if(noSize&&!element.innerHTML)return true;return noSize&&style.getPropertyValue("overflow")!=="visible"||style.getPropertyValue("display")==="none"}));_defineProperty(this,"isVisible",(function(element){var parentElement=element;while(parentElement){if(parentElement instanceof HTMLElement){if(parentElement===document.body)break;if(_this.isHidden(parentElement))return false;parentElement=parentElement.parentNode}}return true}));_defineProperty(this,"removeScope",(function(){window.removeEventListener("keydown",_this.handleKeyDown)}));_defineProperty(this,"checkFocus",(function(target){if(document.activeElement!==target){target.focus();window.requestAnimationFrame((function(){return _this.checkFocus(target)}))}}));_defineProperty(this,"setFocus",(function(){var selector=_this.options.selector;if(!selector)return;var target=_this.element.querySelector(selector);if(target){window.requestAnimationFrame((function(){return _this.checkFocus(target)}))}}));if(!(_element instanceof HTMLElement)){throw new TypeError("Invalid parameter: element must be an HTMLElement")}this.element=_element;this.options=options2;window.addEventListener("keydown",this.handleKeyDown,false);this.setFocus()}));var JoyrideBeacon=function(_React$Component){_inherits(JoyrideBeacon2,_React$Component);var _super=_createSuper(JoyrideBeacon2);function JoyrideBeacon2(props){var _this;_classCallCheck(this,JoyrideBeacon2);_this=_super.call(this,props);_defineProperty(_assertThisInitialized(_this),"setBeaconRef",(function(c2){_this.beacon=c2}));if(!props.beaconComponent){var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");var css4="\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ";style.type="text/css";style.id="joyride-beacon-animation";if(props.nonce!==void 0){style.setAttribute("nonce",props.nonce)}style.appendChild(document.createTextNode(css4));head.appendChild(style)}return _this}_createClass(JoyrideBeacon2,[{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var shouldFocus=this.props.shouldFocus;setTimeout((function(){if(src_default.domElement(_this2.beacon)&&shouldFocus){_this2.beacon.focus()}}),0)}},{key:"componentWillUnmount",value:function componentWillUnmount(){var style=document.getElementById("joyride-beacon-animation");if(style){style.parentNode.removeChild(style)}}},{key:"render",value:function render(){var _this$props=this.props,beaconComponent=_this$props.beaconComponent,locale=_this$props.locale,onClickOrHover=_this$props.onClickOrHover,styles2=_this$props.styles;var props={"aria-label":locale.open,onClick:onClickOrHover,onMouseEnter:onClickOrHover,ref:this.setBeaconRef,title:locale.open};var component;if(beaconComponent){var BeaconComponent=beaconComponent;component=React__default.createElement(BeaconComponent,props)}else{component=React__default.createElement("button",_extends({key:"JoyrideBeacon",className:"react-joyride__beacon",style:styles2.beacon,type:"button"},props),React__default.createElement("span",{style:styles2.beaconInner}),React__default.createElement("span",{style:styles2.beaconOuter}))}return component}}]);return JoyrideBeacon2}(React__default.Component);function JoyrideSpotlight(_ref3){var styles2=_ref3.styles;return React__default.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:styles2})}var _excluded$2=["mixBlendMode","zIndex"];var JoyrideOverlay=function(_React$Component){_inherits(JoyrideOverlay2,_React$Component);var _super=_createSuper(JoyrideOverlay2);function JoyrideOverlay2(){var _this;_classCallCheck(this,JoyrideOverlay2);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_this=_super.call.apply(_super,[this].concat(args));_defineProperty(_assertThisInitialized(_this),"_isMounted",false);_defineProperty(_assertThisInitialized(_this),"state",{mouseOverSpotlight:false,isScrolling:false,showSpotlight:true});_defineProperty(_assertThisInitialized(_this),"handleMouseMove",(function(e2){var mouseOverSpotlight=_this.state.mouseOverSpotlight;var _this$spotlightStyles=_this.spotlightStyles,height=_this$spotlightStyles.height,left=_this$spotlightStyles.left,position2=_this$spotlightStyles.position,top=_this$spotlightStyles.top,width=_this$spotlightStyles.width;var offsetY=position2==="fixed"?e2.clientY:e2.pageY;var offsetX=position2==="fixed"?e2.clientX:e2.pageX;var inSpotlightHeight=offsetY>=top&&offsetY<=top+height;var inSpotlightWidth=offsetX>=left&&offsetX<=left+width;var inSpotlight=inSpotlightWidth&&inSpotlightHeight;if(inSpotlight!==mouseOverSpotlight){_this.updateState({mouseOverSpotlight:inSpotlight})}}));_defineProperty(_assertThisInitialized(_this),"handleScroll",(function(){var target=_this.props.target;var element=getElement(target);if(_this.scrollParent!==document){var isScrolling=_this.state.isScrolling;if(!isScrolling){_this.updateState({isScrolling:true,showSpotlight:false})}clearTimeout(_this.scrollTimeout);_this.scrollTimeout=setTimeout((function(){_this.updateState({isScrolling:false,showSpotlight:true})}),50)}else if(hasPosition(element,"sticky")){_this.updateState({})}}));_defineProperty(_assertThisInitialized(_this),"handleResize",(function(){clearTimeout(_this.resizeTimeout);_this.resizeTimeout=setTimeout((function(){if(!_this._isMounted){return}_this.forceUpdate()}),100)}));return _this}_createClass(JoyrideOverlay2,[{key:"componentDidMount",value:function componentDidMount(){var _this$props=this.props;_this$props.debug;_this$props.disableScrolling;var disableScrollParentFix=_this$props.disableScrollParentFix,target=_this$props.target;var element=getElement(target);this.scrollParent=getScrollParent(element,disableScrollParentFix,true);this._isMounted=true;window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var _this2=this;var _this$props2=this.props,lifecycle=_this$props2.lifecycle,spotlightClicks=_this$props2.spotlightClicks;var _treeChanges=treeChanges(prevProps,this.props),changed=_treeChanges.changed;if(changed("lifecycle",LIFECYCLE.TOOLTIP)){this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:true});setTimeout((function(){var isScrolling=_this2.state.isScrolling;if(!isScrolling){_this2.updateState({showSpotlight:true})}}),100)}if(changed("spotlightClicks")||changed("disableOverlay")||changed("lifecycle")){if(spotlightClicks&&lifecycle===LIFECYCLE.TOOLTIP){window.addEventListener("mousemove",this.handleMouseMove,false)}else if(lifecycle!==LIFECYCLE.TOOLTIP){window.removeEventListener("mousemove",this.handleMouseMove)}}}},{key:"componentWillUnmount",value:function componentWillUnmount(){this._isMounted=false;window.removeEventListener("mousemove",this.handleMouseMove);window.removeEventListener("resize",this.handleResize);clearTimeout(this.resizeTimeout);clearTimeout(this.scrollTimeout);this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"spotlightStyles",get:function get(){var showSpotlight=this.state.showSpotlight;var _this$props3=this.props,disableScrollParentFix=_this$props3.disableScrollParentFix,spotlightClicks=_this$props3.spotlightClicks,spotlightPadding=_this$props3.spotlightPadding,styles2=_this$props3.styles,target=_this$props3.target;var element=getElement(target);var elementRect=getClientRect(element);var isFixedTarget=hasPosition(element);var top=getElementPosition(element,spotlightPadding,disableScrollParentFix);return _objectSpread2(_objectSpread2({},isLegacy()?styles2.spotlightLegacy:styles2.spotlight),{},{height:Math.round(elementRect.height+spotlightPadding*2),left:Math.round(elementRect.left-spotlightPadding),opacity:showSpotlight?1:0,pointerEvents:spotlightClicks?"none":"auto",position:isFixedTarget?"fixed":"absolute",top:top,transition:"opacity 0.2s",width:Math.round(elementRect.width+spotlightPadding*2)})}},{key:"updateState",value:function updateState(state){if(!this._isMounted){return}this.setState(state)}},{key:"render",value:function render(){var _this$state=this.state,mouseOverSpotlight=_this$state.mouseOverSpotlight,showSpotlight=_this$state.showSpotlight;var _this$props4=this.props,disableOverlay=_this$props4.disableOverlay,disableOverlayClose=_this$props4.disableOverlayClose,lifecycle=_this$props4.lifecycle,onClickOverlay=_this$props4.onClickOverlay,placement=_this$props4.placement,styles2=_this$props4.styles;if(disableOverlay||lifecycle!==LIFECYCLE.TOOLTIP){return null}var baseStyles=styles2.overlay;if(isLegacy()){baseStyles=placement==="center"?styles2.overlayLegacyCenter:styles2.overlayLegacy}var stylesOverlay=_objectSpread2({cursor:disableOverlayClose?"default":"pointer",height:getDocumentHeight(),pointerEvents:mouseOverSpotlight?"none":"auto"},baseStyles);var spotlight2=placement!=="center"&&showSpotlight&&React__default.createElement(JoyrideSpotlight,{styles:this.spotlightStyles});if(getBrowser()==="safari"){stylesOverlay.mixBlendMode;stylesOverlay.zIndex;var safarOverlay=_objectWithoutProperties(stylesOverlay,_excluded$2);spotlight2=React__default.createElement("div",{style:_objectSpread2({},safarOverlay)},spotlight2);delete stylesOverlay.backgroundColor}return React__default.createElement("div",{className:"react-joyride__overlay",style:stylesOverlay,onClick:onClickOverlay},spotlight2)}}]);return JoyrideOverlay2}(React__default.Component);var _excluded$1=["styles"],_excluded2=["color","height","width"];function JoyrideTooltipCloseBtn(_ref3){var styles2=_ref3.styles,props=_objectWithoutProperties(_ref3,_excluded$1);var color=styles2.color,height=styles2.height,width=styles2.width,style=_objectWithoutProperties(styles2,_excluded2);return React__default.createElement("button",_extends({style:style,type:"button"},props),React__default.createElement("svg",{width:typeof width==="number"?"".concat(width,"px"):width,height:typeof height==="number"?"".concat(height,"px"):height,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},React__default.createElement("g",null,React__default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:color}))))}var JoyrideTooltipContainer=function(_React$Component){_inherits(JoyrideTooltipContainer2,_React$Component);var _super=_createSuper(JoyrideTooltipContainer2);function JoyrideTooltipContainer2(){_classCallCheck(this,JoyrideTooltipContainer2);return _super.apply(this,arguments)}_createClass(JoyrideTooltipContainer2,[{key:"render",value:function render(){var _this$props=this.props,backProps=_this$props.backProps,closeProps=_this$props.closeProps,continuous=_this$props.continuous,index2=_this$props.index,isLastStep=_this$props.isLastStep,primaryProps=_this$props.primaryProps,size=_this$props.size,skipProps=_this$props.skipProps,step=_this$props.step,tooltipProps=_this$props.tooltipProps;var content=step.content,hideBackButton=step.hideBackButton,hideCloseButton=step.hideCloseButton,hideFooter=step.hideFooter,showProgress=step.showProgress,showSkipButton=step.showSkipButton,title=step.title,styles2=step.styles;var _step$locale=step.locale,back=_step$locale.back,close=_step$locale.close,last=_step$locale.last,next2=_step$locale.next,skip=_step$locale.skip;var output={primary:close};if(continuous){output.primary=isLastStep?last:next2;if(showProgress){output.primary=React__default.createElement("span",null,output.primary," (",index2+1,"/",size,")")}}if(showSkipButton&&!isLastStep){output.skip=React__default.createElement("button",_extends({style:styles2.buttonSkip,type:"button","aria-live":"off"},skipProps),skip)}if(!hideBackButton&&index2>0){output.back=React__default.createElement("button",_extends({style:styles2.buttonBack,type:"button"},backProps),back)}output.close=!hideCloseButton&&React__default.createElement(JoyrideTooltipCloseBtn,_extends({styles:styles2.buttonClose},closeProps));return React__default.createElement("div",_extends({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:styles2.tooltip},tooltipProps),React__default.createElement("div",{style:styles2.tooltipContainer},title&&React__default.createElement("h4",{style:styles2.tooltipTitle,"aria-label":title},title),React__default.createElement("div",{style:styles2.tooltipContent},content)),!hideFooter&&React__default.createElement("div",{style:styles2.tooltipFooter},React__default.createElement("div",{style:styles2.tooltipFooterSpacer},output.skip),output.back,React__default.createElement("button",_extends({style:styles2.buttonNext,type:"button"},primaryProps),output.primary)),output.close)}}]);return JoyrideTooltipContainer2}(React__default.Component);var _excluded=["beaconComponent","tooltipComponent"];var JoyrideTooltip=function(_React$Component){_inherits(JoyrideTooltip2,_React$Component);var _super=_createSuper(JoyrideTooltip2);function JoyrideTooltip2(){var _this;_classCallCheck(this,JoyrideTooltip2);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_this=_super.call.apply(_super,[this].concat(args));_defineProperty(_assertThisInitialized(_this),"handleClickBack",(function(e2){e2.preventDefault();var helpers=_this.props.helpers;helpers.prev()}));_defineProperty(_assertThisInitialized(_this),"handleClickClose",(function(e2){e2.preventDefault();var helpers=_this.props.helpers;helpers.close()}));_defineProperty(_assertThisInitialized(_this),"handleClickPrimary",(function(e2){e2.preventDefault();var _this$props=_this.props,continuous=_this$props.continuous,helpers=_this$props.helpers;if(!continuous){helpers.close();return}helpers.next()}));_defineProperty(_assertThisInitialized(_this),"handleClickSkip",(function(e2){e2.preventDefault();var helpers=_this.props.helpers;helpers.skip()}));_defineProperty(_assertThisInitialized(_this),"getElementsProps",(function(){var _this$props2=_this.props,continuous=_this$props2.continuous,isLastStep=_this$props2.isLastStep,setTooltipRef=_this$props2.setTooltipRef,step=_this$props2.step;var back=getText(step.locale.back);var close=getText(step.locale.close);var last=getText(step.locale.last);var next2=getText(step.locale.next);var skip=getText(step.locale.skip);var primaryText=continuous?next2:close;if(isLastStep){primaryText=last}return{backProps:{"aria-label":back,"data-action":"back",onClick:_this.handleClickBack,role:"button",title:back},closeProps:{"aria-label":close,"data-action":"close",onClick:_this.handleClickClose,role:"button",title:close},primaryProps:{"aria-label":primaryText,"data-action":"primary",onClick:_this.handleClickPrimary,role:"button",title:primaryText},skipProps:{"aria-label":skip,"data-action":"skip",onClick:_this.handleClickSkip,role:"button",title:skip},tooltipProps:{"aria-modal":true,ref:setTooltipRef,role:"alertdialog"}}}));return _this}_createClass(JoyrideTooltip2,[{key:"render",value:function render(){var _this$props3=this.props,continuous=_this$props3.continuous,index2=_this$props3.index,isLastStep=_this$props3.isLastStep,size=_this$props3.size,step=_this$props3.step;step.beaconComponent;var tooltipComponent=step.tooltipComponent,cleanStep=_objectWithoutProperties(step,_excluded);var component;if(tooltipComponent){var renderProps=_objectSpread2(_objectSpread2({},this.getElementsProps()),{},{continuous:continuous,index:index2,isLastStep:isLastStep,size:size,step:cleanStep});var TooltipComponent=tooltipComponent;component=React__default.createElement(TooltipComponent,renderProps)}else{component=React__default.createElement(JoyrideTooltipContainer,_extends({},this.getElementsProps(),{continuous:continuous,index:index2,isLastStep:isLastStep,size:size,step:step}))}return component}}]);return JoyrideTooltip2}(React__default.Component);var JoyridePortal=function(_React$Component){_inherits(JoyridePortal2,_React$Component);var _super=_createSuper(JoyridePortal2);function JoyridePortal2(){_classCallCheck(this,JoyridePortal2);return _super.apply(this,arguments)}_createClass(JoyridePortal2,[{key:"componentDidMount",value:function componentDidMount(){if(!canUseDOM)return;if(!isReact16){this.renderReact15()}}},{key:"componentDidUpdate",value:function componentDidUpdate(){if(!canUseDOM)return;if(!isReact16){this.renderReact15()}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(!canUseDOM||!this.node)return;if(!isReact16){ReactDOM__default.unmountComponentAtNode(this.node)}if(this.node.parentNode===document.body){document.body.removeChild(this.node);this.node=void 0}}},{key:"appendNode",value:function appendNode(){var id=this.props.id;if(!this.node){this.node=document.createElement("div");if(id){this.node.id=id}document.body.appendChild(this.node)}}},{key:"renderReact15",value:function renderReact15(){if(!canUseDOM)return null;var children=this.props.children;if(!this.node){this.appendNode()}ReactDOM__default.unstable_renderSubtreeIntoContainer(this,children,this.node);return null}},{key:"renderReact16",value:function renderReact16(){if(!canUseDOM||!isReact16)return null;var children=this.props.children;if(!this.node){this.appendNode()}return ReactDOM__default.createPortal(children,this.node)}},{key:"render",value:function render(){if(!isReact16){return null}return this.renderReact16()}}]);return JoyridePortal2}(React__default.Component);var JoyrideStep=function(_React$Component){_inherits(JoyrideStep2,_React$Component);var _super=_createSuper(JoyrideStep2);function JoyrideStep2(){var _this;_classCallCheck(this,JoyrideStep2);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_this=_super.call.apply(_super,[this].concat(args));_defineProperty(_assertThisInitialized(_this),"scope",{removeScope:function removeScope(){}});_defineProperty(_assertThisInitialized(_this),"handleClickHoverBeacon",(function(e2){var _this$props=_this.props,step=_this$props.step,update2=_this$props.update;if(e2.type==="mouseenter"&&step.event!=="hover"){return}update2({lifecycle:LIFECYCLE.TOOLTIP})}));_defineProperty(_assertThisInitialized(_this),"handleClickOverlay",(function(){var _this$props2=_this.props,helpers=_this$props2.helpers,step=_this$props2.step;if(!step.disableOverlayClose){helpers.close()}}));_defineProperty(_assertThisInitialized(_this),"setTooltipRef",(function(c2){_this.tooltip=c2}));_defineProperty(_assertThisInitialized(_this),"setPopper",(function(popper,type){var _this$props3=_this.props,action=_this$props3.action,setPopper=_this$props3.setPopper,update2=_this$props3.update;if(type==="wrapper"){_this.beaconPopper=popper}else{_this.tooltipPopper=popper}setPopper(popper,type);if(_this.beaconPopper&&_this.tooltipPopper){update2({action:action===ACTIONS.CLOSE?ACTIONS.CLOSE:action,lifecycle:LIFECYCLE.READY})}}));return _this}_createClass(JoyrideStep2,[{key:"componentDidMount",value:function componentDidMount(){var _this$props4=this.props,debug=_this$props4.debug,index2=_this$props4.index;log({title:"step:".concat(index2),data:[{key:"props",value:this.props}],debug:debug})}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var _this$props5=this.props,action=_this$props5.action,callback=_this$props5.callback,continuous=_this$props5.continuous,controlled=_this$props5.controlled,debug=_this$props5.debug,index2=_this$props5.index,lifecycle=_this$props5.lifecycle,size=_this$props5.size,status=_this$props5.status,step=_this$props5.step,update2=_this$props5.update;var _treeChanges=treeChanges(prevProps,this.props),changed=_treeChanges.changed,changedFrom=_treeChanges.changedFrom;var state={action:action,controlled:controlled,index:index2,lifecycle:lifecycle,size:size,status:status};var skipBeacon=continuous&&action!==ACTIONS.CLOSE&&(index2>0||action===ACTIONS.PREV);var hasStoreChanged=changed("action")||changed("index")||changed("lifecycle")||changed("status");var hasStarted=changedFrom("lifecycle",[LIFECYCLE.TOOLTIP,LIFECYCLE.INIT],LIFECYCLE.INIT);var isAfterAction=changed("action",[ACTIONS.NEXT,ACTIONS.PREV,ACTIONS.SKIP,ACTIONS.CLOSE]);if(isAfterAction&&(hasStarted||controlled)){callback(_objectSpread2(_objectSpread2({},state),{},{index:prevProps.index,lifecycle:LIFECYCLE.COMPLETE,step:prevProps.step,type:EVENTS.STEP_AFTER}))}if(step.placement==="center"&&status===STATUS.RUNNING&&changed("index")&&action!==ACTIONS.START&&lifecycle===LIFECYCLE.INIT){update2({lifecycle:LIFECYCLE.READY})}if(hasStoreChanged){var element=getElement(step.target);var elementExists=!!element;var hasRenderedTarget=elementExists&&isElementVisible(element);if(hasRenderedTarget){if(changedFrom("status",STATUS.READY,STATUS.RUNNING)||changedFrom("lifecycle",LIFECYCLE.INIT,LIFECYCLE.READY)){callback(_objectSpread2(_objectSpread2({},state),{},{step:step,type:EVENTS.STEP_BEFORE}))}}else{console.warn(elementExists?"Target not visible":"Target not mounted",step);callback(_objectSpread2(_objectSpread2({},state),{},{type:EVENTS.TARGET_NOT_FOUND,step:step}));if(!controlled){update2({index:index2+([ACTIONS.PREV].indexOf(action)!==-1?-1:1)})}}}if(changedFrom("lifecycle",LIFECYCLE.INIT,LIFECYCLE.READY)){update2({lifecycle:hideBeacon(step)||skipBeacon?LIFECYCLE.TOOLTIP:LIFECYCLE.BEACON})}if(changed("index")){log({title:"step:".concat(lifecycle),data:[{key:"props",value:this.props}],debug:debug})}if(changed("lifecycle",LIFECYCLE.BEACON)){callback(_objectSpread2(_objectSpread2({},state),{},{step:step,type:EVENTS.BEACON}))}if(changed("lifecycle",LIFECYCLE.TOOLTIP)){callback(_objectSpread2(_objectSpread2({},state),{},{step:step,type:EVENTS.TOOLTIP}));this.scope=new Scope(this.tooltip,{selector:"[data-action=primary]"});this.scope.setFocus()}if(changedFrom("lifecycle",[LIFECYCLE.TOOLTIP,LIFECYCLE.INIT],LIFECYCLE.INIT)){this.scope.removeScope();delete this.beaconPopper;delete this.tooltipPopper}}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.scope.removeScope()}},{key:"open",get:function get(){var _this$props6=this.props,step=_this$props6.step,lifecycle=_this$props6.lifecycle;return!!(hideBeacon(step)||lifecycle===LIFECYCLE.TOOLTIP)}},{key:"render",value:function render(){var _this$props7=this.props,continuous=_this$props7.continuous,debug=_this$props7.debug,helpers=_this$props7.helpers,index2=_this$props7.index,lifecycle=_this$props7.lifecycle,nonce=_this$props7.nonce,shouldScroll=_this$props7.shouldScroll,size=_this$props7.size,step=_this$props7.step;var target=getElement(step.target);if(!validateStep(step)||!src_default.domElement(target)){return null}return React__default.createElement("div",{key:"JoyrideStep-".concat(index2),className:"react-joyride__step"},React__default.createElement(JoyridePortal,{id:"react-joyride-portal"},React__default.createElement(JoyrideOverlay,_extends({},step,{debug:debug,lifecycle:lifecycle,onClickOverlay:this.handleClickOverlay}))),React__default.createElement(ReactFloater,_extends({component:React__default.createElement(JoyrideTooltip,{continuous:continuous,helpers:helpers,index:index2,isLastStep:index2+1===size,setTooltipRef:this.setTooltipRef,size:size,step:step}),debug:debug,getPopper:this.setPopper,id:"react-joyride-step-".concat(index2),isPositioned:step.isFixed||hasPosition(target),open:this.open,placement:step.placement,target:step.target},step.floaterProps),React__default.createElement(JoyrideBeacon,{beaconComponent:step.beaconComponent,locale:step.locale,nonce:nonce,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:shouldScroll,styles:step.styles})))}}]);return JoyrideStep2}(React__default.Component);var Joyride=function(_React$Component){_inherits(Joyride2,_React$Component);var _super=_createSuper(Joyride2);function Joyride2(props){var _this;_classCallCheck(this,Joyride2);_this=_super.call(this,props);_defineProperty(_assertThisInitialized(_this),"initStore",(function(){var _this$props=_this.props,debug=_this$props.debug,getHelpers2=_this$props.getHelpers,run=_this$props.run,stepIndex=_this$props.stepIndex;_this.store=new createStore(_objectSpread2(_objectSpread2({},_this.props),{},{controlled:run&&src_default.number(stepIndex)}));_this.helpers=_this.store.getHelpers();var addListener=_this.store.addListener;log({title:"init",data:[{key:"props",value:_this.props},{key:"state",value:_this.state}],debug:debug});addListener(_this.syncState);getHelpers2(_this.helpers);return _this.store.getState()}));_defineProperty(_assertThisInitialized(_this),"callback",(function(data){var callback=_this.props.callback;if(src_default["function"](callback)){callback(data)}}));_defineProperty(_assertThisInitialized(_this),"handleKeyboard",(function(e2){var _this$state=_this.state,index2=_this$state.index,lifecycle=_this$state.lifecycle;var steps=_this.props.steps;var step=steps[index2];var intKey=window.Event?e2.which:e2.keyCode;if(lifecycle===LIFECYCLE.TOOLTIP){if(intKey===27&&step&&!step.disableCloseOnEsc){_this.store.close()}}}));_defineProperty(_assertThisInitialized(_this),"syncState",(function(state){_this.setState(state)}));_defineProperty(_assertThisInitialized(_this),"setPopper",(function(popper,type){if(type==="wrapper"){_this.beaconPopper=popper}else{_this.tooltipPopper=popper}}));_defineProperty(_assertThisInitialized(_this),"shouldScroll",(function(disableScrolling,index2,scrollToFirstStep,lifecycle,step,target,prevState){return!disableScrolling&&(index2!==0||scrollToFirstStep||lifecycle===LIFECYCLE.TOOLTIP)&&step.placement!=="center"&&(!step.isFixed||!hasPosition(target))&&prevState.lifecycle!==lifecycle&&[LIFECYCLE.BEACON,LIFECYCLE.TOOLTIP].indexOf(lifecycle)!==-1}));_this.state=_this.initStore();return _this}_createClass(Joyride2,[{key:"componentDidMount",value:function componentDidMount(){if(!canUseDOM)return;var _this$props2=this.props,disableCloseOnEsc=_this$props2.disableCloseOnEsc,debug=_this$props2.debug,run=_this$props2.run,steps=_this$props2.steps;var start=this.store.start;if(validateSteps(steps,debug)&&run){start()}if(!disableCloseOnEsc){document.body.addEventListener("keydown",this.handleKeyboard,{passive:true})}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(!canUseDOM)return;var _this$state2=this.state,action=_this$state2.action,controlled=_this$state2.controlled,index2=_this$state2.index,lifecycle=_this$state2.lifecycle,status=_this$state2.status;var _this$props3=this.props,debug=_this$props3.debug,run=_this$props3.run,stepIndex=_this$props3.stepIndex,steps=_this$props3.steps;var prevSteps=prevProps.steps,prevStepIndex=prevProps.stepIndex;var _this$store=this.store,reset=_this$store.reset,setSteps=_this$store.setSteps,start=_this$store.start,stop=_this$store.stop,update2=_this$store.update;var _treeChanges=treeChanges(prevProps,this.props),changedProps=_treeChanges.changed;var _treeChanges2=treeChanges(prevState,this.state),changed=_treeChanges2.changed,changedFrom=_treeChanges2.changedFrom;var step=getMergedStep(steps[index2],this.props);var stepsChanged=!isEqual2(prevSteps,steps);var stepIndexChanged=src_default.number(stepIndex)&&changedProps("stepIndex");var target=getElement(step===null||step===void 0?void 0:step.target);if(stepsChanged){if(validateSteps(steps,debug)){setSteps(steps)}else{console.warn("Steps are not valid",steps)}}if(changedProps("run")){if(run){start(stepIndex)}else{stop()}}if(stepIndexChanged){var nextAction=prevStepIndex<stepIndex?ACTIONS.NEXT:ACTIONS.PREV;if(action===ACTIONS.STOP){nextAction=ACTIONS.START}if(!([STATUS.FINISHED,STATUS.SKIPPED].indexOf(status)!==-1)){update2({action:action===ACTIONS.CLOSE?ACTIONS.CLOSE:nextAction,index:stepIndex,lifecycle:LIFECYCLE.INIT})}}if(!controlled&&status===STATUS.RUNNING&&index2===0&&!target){update2({index:index2+1});this.callback(_objectSpread2(_objectSpread2({},this.state),{},{type:EVENTS.TARGET_NOT_FOUND,step:step}))}var callbackData=_objectSpread2(_objectSpread2({},this.state),{},{index:index2,step:step});var isAfterAction=changed("action",[ACTIONS.NEXT,ACTIONS.PREV,ACTIONS.SKIP,ACTIONS.CLOSE]);if(isAfterAction&&changed("status",STATUS.PAUSED)){var prevStep=getMergedStep(steps[prevState.index],this.props);this.callback(_objectSpread2(_objectSpread2({},callbackData),{},{index:prevState.index,lifecycle:LIFECYCLE.COMPLETE,step:prevStep,type:EVENTS.STEP_AFTER}))}if(changed("status",[STATUS.FINISHED,STATUS.SKIPPED])){var _prevStep=getMergedStep(steps[prevState.index],this.props);if(!controlled){this.callback(_objectSpread2(_objectSpread2({},callbackData),{},{index:prevState.index,lifecycle:LIFECYCLE.COMPLETE,step:_prevStep,type:EVENTS.STEP_AFTER}))}this.callback(_objectSpread2(_objectSpread2({},callbackData),{},{index:prevState.index,step:_prevStep,type:EVENTS.TOUR_END}));reset()}else if(changedFrom("status",[STATUS.IDLE,STATUS.READY],STATUS.RUNNING)){this.callback(_objectSpread2(_objectSpread2({},callbackData),{},{type:EVENTS.TOUR_START}))}else if(changed("status")){this.callback(_objectSpread2(_objectSpread2({},callbackData),{},{type:EVENTS.TOUR_STATUS}))}else if(changed("action",ACTIONS.RESET)){this.callback(_objectSpread2(_objectSpread2({},callbackData),{},{type:EVENTS.TOUR_STATUS}))}if(step){this.scrollToStep(prevState);if(step.placement==="center"&&status===STATUS.RUNNING&&action===ACTIONS.START&&lifecycle===LIFECYCLE.INIT){update2({lifecycle:LIFECYCLE.READY})}}}},{key:"componentWillUnmount",value:function componentWillUnmount(){var disableCloseOnEsc=this.props.disableCloseOnEsc;if(!disableCloseOnEsc){document.body.removeEventListener("keydown",this.handleKeyboard)}}},{key:"scrollToStep",value:function scrollToStep(prevState){var _this$state3=this.state,index2=_this$state3.index,lifecycle=_this$state3.lifecycle,status=_this$state3.status;var _this$props4=this.props,debug=_this$props4.debug,disableScrolling=_this$props4.disableScrolling,disableScrollParentFix=_this$props4.disableScrollParentFix,scrollToFirstStep=_this$props4.scrollToFirstStep,scrollOffset=_this$props4.scrollOffset,scrollDuration=_this$props4.scrollDuration,steps=_this$props4.steps;var step=getMergedStep(steps[index2],this.props);if(step){var target=getElement(step.target);var shouldScroll=this.shouldScroll(disableScrolling,index2,scrollToFirstStep,lifecycle,step,target,prevState);if(status===STATUS.RUNNING&&shouldScroll){var hasCustomScroll=hasCustomScrollParent(target,disableScrollParentFix);var scrollParent2=getScrollParent(target,disableScrollParentFix);var scrollY=Math.floor(getScrollTo(target,scrollOffset,disableScrollParentFix))||0;log({title:"scrollToStep",data:[{key:"index",value:index2},{key:"lifecycle",value:lifecycle},{key:"status",value:status}],debug:debug});if(lifecycle===LIFECYCLE.BEACON&&this.beaconPopper){var _this$beaconPopper=this.beaconPopper,placement=_this$beaconPopper.placement,popper=_this$beaconPopper.popper;if(!(["bottom"].indexOf(placement)!==-1)&&!hasCustomScroll){scrollY=Math.floor(popper.top-scrollOffset)}}else if(lifecycle===LIFECYCLE.TOOLTIP&&this.tooltipPopper){var _this$tooltipPopper=this.tooltipPopper,flipped=_this$tooltipPopper.flipped,_placement=_this$tooltipPopper.placement,_popper=_this$tooltipPopper.popper;if(["top","right","left"].indexOf(_placement)!==-1&&!flipped&&!hasCustomScroll){scrollY=Math.floor(_popper.top-scrollOffset)}else{scrollY-=step.spotlightPadding}}scrollY=scrollY>=0?scrollY:0;if(status===STATUS.RUNNING){scrollTo(scrollY,scrollParent2,scrollDuration)}}}}},{key:"render",value:function render(){if(!canUseDOM)return null;var _this$state4=this.state,index2=_this$state4.index,status=_this$state4.status;var _this$props5=this.props,continuous=_this$props5.continuous,debug=_this$props5.debug,nonce=_this$props5.nonce,scrollToFirstStep=_this$props5.scrollToFirstStep,steps=_this$props5.steps;var step=getMergedStep(steps[index2],this.props);var output;if(status===STATUS.RUNNING&&step){output=React__default.createElement(JoyrideStep,_extends({},this.state,{callback:this.callback,continuous:continuous,debug:debug,setPopper:this.setPopper,helpers:this.helpers,nonce:nonce,shouldScroll:!step.disableScrolling&&(index2!==0||scrollToFirstStep),step:step,update:this.store.update}))}return React__default.createElement("div",{className:"react-joyride"},output)}}]);return Joyride2}(React__default.Component);_defineProperty(Joyride,"defaultProps",{continuous:false,debug:false,disableCloseOnEsc:false,disableOverlay:false,disableOverlayClose:false,disableScrolling:false,disableScrollParentFix:false,getHelpers:function getHelpers(){},hideBackButton:false,run:true,scrollOffset:20,scrollDuration:300,scrollToFirstStep:false,showSkipButton:false,showProgress:false,spotlightClicks:false,spotlightPadding:10,steps:[]});const Tooltip=React__default.forwardRef((props=>jsxs("div",{className:"pb_card_kit_border_none p_none",...props.tooltipProps,children:[props.step.title&&jsxs("div",{children:[jsxs(Flex,{align:"center",justify:"between",padding:"xs",children:[jsx$1(Title,{paddingLeft:"xs",size:4,children:props.step.title}),props.skip&&jsx$1(Button,{...props.skipProps,id:"skip",text:"Skip Tour",variant:"link"}),jsx$1(Button,{...props.skipProps,id:"skip",text:"Skip Tour",variant:"link"})]}),jsx$1(SectionSeparator,{})]}),jsx$1(Flex,{padding:"sm",children:props.step.content}),jsx$1(SectionSeparator,{}),jsxs(Flex,{justify:props.index==0?"end":"between",padding:"xs",children:[props.index>0&&jsx$1(Button,{...props.backProps,id:"back",text:"Back"}),props.continuous&&!props.isLastStep&&jsx$1(Button,{...props.primaryProps,id:"next",text:"Next"}),!props.continuous&&jsx$1(Button,{...props.closeProps,id:"close",text:"Close"}),!(props.continuous&&!props.isLastStep||!props.continuous)&&jsx$1(Button,{...props.closeProps,id:"close",text:"Close"})]})]})));const Walkthrough=props=>{const{aria:aria={},callback:callback,className:className,continuous:continuous=false,data:data={},disableOverlay:disableOverlay,floaterProps:floaterProps={offset:50},htmlOptions:htmlOptions={},id:id,run:run=false,steps:steps,styles:styles2={options:{zIndex:2e4}},showSkipButton:showSkipButton}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_walkthrough"),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Joyride,{callback:callback,continuous:continuous,disableOverlay:disableOverlay,disableScrolling:true,floaterProps:floaterProps,run:run,showSkipButton:showSkipButton,steps:steps,styles:styles2,tooltipComponent:Tooltip,...props})})};export{Image as $,Avatar as A,BarGraph as B,CircleChart as C,Dialog as D,ListItem as E,Flex as F,Gauge as G,Badge as H,Icon as I,joinPresent as J,titleize as K,Legend as L,MultiLevelSelect as M,IconCircle as N,Checkbox as O,Passphrase as P,Radio$1 as Q,RichTextEditor as R,SectionSeparator as S,TreemapChart as T,AdvancedTable as U,Background as V,Select$2 as W,Table as X,Collapsible as Y,DraggableProvider as Z,Draggable as _,DialogBody as a,SelectableList as a0,Dropdown as a1,User as a2,TextInput$1 as a3,FormPill as a4,Highlight as a5,Layout as a6,Timestamp as a7,Nav as a8,NavItem as a9,Lightbox as aa,LoadingInline as ab,Map$1 as ac,Message as ad,OnlineStatus as ae,Textarea$1 as af,Timeline as ag,Tooltip$1 as ah,components as ai,Walkthrough as aj,SelectableListItem as ak,TableRow as al,DialogFooter as b,DialogHeader as c,DistributionBar as d,LineGraph as e,Typeahead as f,PhoneNumberInput$1 as g,buildAriaProps as h,buildDataProps as i,buildHtmlProps as j,classnames as k,buildCss as l,globalProps as m,domSafeProps as n,Body$1 as o,Caption as p,Title as q,FlexItem as r,DateStacked as s,Card as t,useDropzone as u,noop$3 as v,PbReactPopover as w,CircleIconButton as x,Button as y,List as z};