eta_comp.js 1.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391
  1. import { ref as Le, reactive as z0, nextTick as fo, openBlock as Je, createElementBlock as qe, normalizeStyle as Ar, createElementVNode as ar, toDisplayString as yn, unref as X0, createCommentVNode as qn, createTextVNode as qp, Fragment as tl, renderList as el, normalizeClass as G0, defineCustomElement as Qp } from "vue";
  2. const go = {
  3. //图表配置
  4. chart: {
  5. spacingTop: 30,
  6. backgroundColor: "rgba(0,0,0,0)"
  7. },
  8. title: {
  9. enabled: !1
  10. },
  11. exporting: {
  12. enabled: !1
  13. },
  14. boost: {
  15. useGPUTranslations: !0
  16. },
  17. //默认颜色配置
  18. colors: [
  19. "#00f",
  20. "#f00",
  21. "#999",
  22. "#000",
  23. "#7cb5ec",
  24. "#90ed7d",
  25. "#f7a35c",
  26. "#8085e9",
  27. "#f15c80",
  28. "#e4d354",
  29. "#2b908f",
  30. "#f45b5b",
  31. "#91e8e1"
  32. ],
  33. //版权信息
  34. credits: { enabled: !1 },
  35. //数据列通用配置
  36. plotOptions: {
  37. series: {
  38. turboThreshold: 0,
  39. //不限制数据点个数
  40. boostThreshold: 0,
  41. dataGrouping: {
  42. enabled: !1
  43. },
  44. //取消数据大自动数据合并
  45. animation: {
  46. duration: 1e3
  47. }
  48. },
  49. areaspline: {
  50. lineWidth: 1,
  51. stacking: "normal",
  52. marker: {
  53. enabled: !1
  54. }
  55. // fillOpacity: 0.5,
  56. },
  57. column: {
  58. pointPadding: 0.05,
  59. stacking: "normal"
  60. },
  61. scatter: {
  62. turboThreshold: 0,
  63. marker: {
  64. symbol: "circle",
  65. radius: 5,
  66. states: {
  67. hover: {
  68. enabled: !0
  69. }
  70. }
  71. },
  72. states: {
  73. hover: {
  74. marker: {
  75. enabled: !0
  76. }
  77. }
  78. }
  79. }
  80. },
  81. //范围选择器
  82. rangeSelector: {
  83. enabled: !1,
  84. selected: 2
  85. },
  86. //悬浮提示框
  87. tooltip: {
  88. split: !1,
  89. shared: !0,
  90. dateTimeLabelFormats: {
  91. // 时间格式化字符
  92. day: "%Y/%m/%d",
  93. week: "%Y/%m",
  94. month: "%Y/%m",
  95. year: "%Y/%m"
  96. },
  97. xDateFormat: "%Y/%m/%d",
  98. className: "chart-tooltips-box"
  99. // formatter:function(e){
  100. // return `<p>${this.x}</p><p>aaa</p>`
  101. // // return e
  102. // }
  103. // outside: true,
  104. // valueDecimals: 4,
  105. },
  106. //图例
  107. legend: {
  108. enabled: !0,
  109. verticalAlign: "top",
  110. margin: 3
  111. // layout: 'vertical'
  112. },
  113. //滚动条
  114. scrollbar: {
  115. enabled: !1
  116. },
  117. //导航器
  118. navigator: {
  119. enabled: !1
  120. },
  121. //范围选择器
  122. rangeSelector: {
  123. enabled: !1
  124. },
  125. xAxis: {
  126. tickPosition: "inside",
  127. lineColor: "#bfbfbf",
  128. tickColor: "#bfbfbf",
  129. tickLength: 5,
  130. type: "datetime",
  131. ordinal: !1,
  132. dateTimeLabelFormats: {
  133. day: "%y/%m",
  134. week: "%y/%m",
  135. month: "%y/%m",
  136. year: "%y/%m"
  137. }
  138. // gridLineWidth:0
  139. }
  140. }, H0 = {
  141. //默认颜色配置
  142. colors: ["#4B0082", "#7FFFAA", "#FF4500", "#808000", "#EEE8AA", "#849EC1", "#8A4294", "#578B5A", "#FDA8C7", "#53B3FF", "#999999", "#000000", "#FFDF0C", "#FF0000", "#0033FF"],
  143. yAxis: {
  144. lineWidth: 1,
  145. lineColor: "#bfbfbf",
  146. tickColor: "#bfbfbf",
  147. offset: 0,
  148. opposite: !1,
  149. reversed: !1,
  150. visible: !0,
  151. gridLineWidth: 0,
  152. tickWidth: 1,
  153. tickLength: 5,
  154. tickPosition: "inside",
  155. endOnTick: !1,
  156. startOnTick: !1,
  157. showLastLabel: !0,
  158. //显示最后刻度值
  159. tickPixelInterval: 50
  160. }
  161. }, wn = {
  162. tickPosition: "inside",
  163. lineColor: "#bfbfbf",
  164. tickColor: "#bfbfbf",
  165. tickLength: 5,
  166. ordinal: !1,
  167. type: "linear"
  168. }, dr = {
  169. tickWidth: 1,
  170. tickLength: 5,
  171. lineWidth: 1,
  172. lineColor: "#bfbfbf",
  173. tickColor: "#bfbfbf",
  174. // offset: 0,
  175. visible: !0,
  176. gridLineWidth: 0,
  177. tickPosition: "inside",
  178. endOnTick: !1,
  179. startOnTick: !1,
  180. showLastLabel: !0,
  181. tickPixelInterval: 50
  182. }, tu = {
  183. tickPosition: "inside",
  184. lineColor: "#bfbfbf",
  185. tickColor: "#bfbfbf",
  186. tickLength: 5,
  187. type: "datetime",
  188. ordinal: !1,
  189. dateTimeLabelFormats: {
  190. day: "%y/%m",
  191. week: "%y/%m",
  192. month: "%y/%m",
  193. year: "%y/%m"
  194. },
  195. xDateFormat: "%Y-%m-%d"
  196. }, F0 = {
  197. 年: "Y",
  198. 季: "Q",
  199. 月: "M",
  200. 周: "W",
  201. 天: "D"
  202. }, Op = {
  203. 年: "Year",
  204. 季: "Season",
  205. 月: "Month",
  206. 周: "Week",
  207. 天: "Day"
  208. };
  209. var Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
  210. function Mn(r) {
  211. return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
  212. }
  213. var eu = { exports: {} };
  214. (function(r) {
  215. (function(d, C) {
  216. r.exports ? (C.default = C, r.exports = d.document ? C(d) : C) : (d.Highcharts && d.Highcharts.error(16, !0), d.Highcharts = C(d));
  217. })(typeof window < "u" ? window : Gr, function(d) {
  218. function C(y, N, _, U) {
  219. y.hasOwnProperty(N) || (y[N] = U.apply(null, _));
  220. }
  221. var o = {};
  222. return C(o, "Core/Globals.js", [], function() {
  223. var y = typeof d < "u" ? d : typeof window < "u" ? window : {}, N;
  224. return function(_) {
  225. _.SVG_NS = "http://www.w3.org/2000/svg", _.product = "Highcharts", _.version = "9.3.3", _.win = y, _.doc = _.win.document, _.svg = _.doc && _.doc.createElementNS && !!_.doc.createElementNS(_.SVG_NS, "svg").createSVGRect, _.userAgent = _.win.navigator && _.win.navigator.userAgent || "", _.isChrome = _.userAgent.indexOf("Chrome") !== -1, _.isFirefox = _.userAgent.indexOf("Firefox") !== -1, _.isMS = /(edge|msie|trident)/i.test(_.userAgent) && !_.win.opera, _.isSafari = !_.isChrome && _.userAgent.indexOf("Safari") !== -1, _.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(_.userAgent), _.isWebKit = _.userAgent.indexOf("AppleWebKit") !== -1, _.deg2rad = 2 * Math.PI / 360, _.hasBidiBug = _.isFirefox && 4 > parseInt(_.userAgent.split("Firefox/")[1], 10), _.hasTouch = !!_.win.TouchEvent, _.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], _.noop = function() {
  226. }, _.supportsPassiveEvents = function() {
  227. var U = !1;
  228. if (!_.isMS) {
  229. var G = Object.defineProperty({}, "passive", { get: function() {
  230. U = !0;
  231. } });
  232. _.win.addEventListener && _.win.removeEventListener && (_.win.addEventListener(
  233. "testPassive",
  234. _.noop,
  235. G
  236. ), _.win.removeEventListener("testPassive", _.noop, G));
  237. }
  238. return U;
  239. }(), _.charts = [], _.dateFormats = {}, _.seriesTypes = {}, _.symbolSizes = {}, _.chartCount = 0;
  240. }(N || (N = {})), N;
  241. }), C(o, "Core/Utilities.js", [o["Core/Globals.js"]], function(y) {
  242. function N(t, s, n, P) {
  243. var D = s ? "Highcharts error" : "Highcharts warning";
  244. t === 32 && (t = D + ": Deprecated member");
  245. var I = w(t), W = I ? D + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  246. if (typeof P < "u") {
  247. var E = "";
  248. I && (W += "?"), b(P, function(X, g) {
  249. E += `
  250. - ` + g + ": " + X, I && (W += encodeURI(g) + "=" + encodeURI(X));
  251. }), W += E;
  252. }
  253. v(y, "displayError", { chart: n, code: t, message: W, params: P }, function() {
  254. if (s)
  255. throw Error(W);
  256. u.console && N.messages.indexOf(W) === -1 && console.warn(W);
  257. }), N.messages.push(W);
  258. }
  259. function _(t, s) {
  260. var n = {};
  261. return b(t, function(P, D) {
  262. F(t[D], !0) && !t.nodeType && s[D] ? (P = _(t[D], s[D]), Object.keys(P).length && (n[D] = P)) : (F(t[D]) || t[D] !== s[D]) && (n[D] = t[D]);
  263. }), n;
  264. }
  265. function U(t, s) {
  266. return parseInt(t, s || 10);
  267. }
  268. function G(t) {
  269. return typeof t == "string";
  270. }
  271. function V(t) {
  272. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  273. }
  274. function F(t, s) {
  275. return !!t && typeof t == "object" && (!s || !V(t));
  276. }
  277. function B(t) {
  278. return F(t) && typeof t.nodeType == "number";
  279. }
  280. function j(t) {
  281. var s = t && t.constructor;
  282. return !(!F(t, !0) || B(t) || !s || !s.name || s.name === "Object");
  283. }
  284. function w(t) {
  285. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  286. }
  287. function x(t) {
  288. return typeof t < "u" && t !== null;
  289. }
  290. function f(t, s, n) {
  291. var P;
  292. return G(s) ? x(n) ? t.setAttribute(s, n) : t && t.getAttribute && ((P = t.getAttribute(s)) || s !== "class" || (P = t.getAttribute(s + "Name"))) : b(s, function(D, I) {
  293. x(D) ? t.setAttribute(I, D) : t.removeAttribute(I);
  294. }), P;
  295. }
  296. function l(t, s) {
  297. var n;
  298. t || (t = {});
  299. for (n in s)
  300. t[n] = s[n];
  301. return t;
  302. }
  303. function T() {
  304. for (var t = arguments, s = t.length, n = 0; n < s; n++) {
  305. var P = t[n];
  306. if (typeof P < "u" && P !== null)
  307. return P;
  308. }
  309. }
  310. function O(t, s) {
  311. y.isMS && !y.svg && s && typeof s.opacity < "u" && (s.filter = "alpha(opacity=" + 100 * s.opacity + ")"), l(t.style, s);
  312. }
  313. function R(t, s) {
  314. return 1e14 < t ? t : parseFloat(t.toPrecision(s || 14));
  315. }
  316. function k(t, s, n) {
  317. var P = y.getStyle || k;
  318. if (s === "width")
  319. return s = Math.min(t.offsetWidth, t.scrollWidth), n = t.getBoundingClientRect && t.getBoundingClientRect().width, n < s && n >= s - 1 && (s = Math.floor(n)), Math.max(0, s - (P(t, "padding-left", !0) || 0) - (P(t, "padding-right", !0) || 0));
  320. if (s === "height")
  321. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (P(t, "padding-top", !0) || 0) - (P(t, "padding-bottom", !0) || 0));
  322. if (u.getComputedStyle || N(27, !0), t = u.getComputedStyle(t, void 0)) {
  323. var D = t.getPropertyValue(s);
  324. T(n, s !== "opacity") && (D = U(D));
  325. }
  326. return D;
  327. }
  328. function b(t, s, n) {
  329. for (var P in t)
  330. Object.hasOwnProperty.call(t, P) && s.call(n || t[P], t[P], P, t);
  331. }
  332. function S(t, s, n) {
  333. function P(E, X) {
  334. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  335. g && g.call(t, E, X, !1);
  336. }
  337. function D(E) {
  338. var X;
  339. if (t.nodeName) {
  340. if (s) {
  341. var g = {};
  342. g[s] = !0;
  343. } else
  344. g = E;
  345. b(g, function(m, L) {
  346. if (E[L])
  347. for (X = E[L].length; X--; )
  348. P(L, E[L][X].fn);
  349. });
  350. }
  351. }
  352. var I = typeof t == "function" && t.prototype || t;
  353. if (Object.hasOwnProperty.call(I, "hcEvents")) {
  354. var W = I.hcEvents;
  355. s ? (I = W[s] || [], n ? (W[s] = I.filter(function(E) {
  356. return n !== E.fn;
  357. }), P(s, n)) : (D(W), W[s] = [])) : (D(W), delete I.hcEvents);
  358. }
  359. }
  360. function v(t, s, n, P) {
  361. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  362. var D = c.createEvent("Events");
  363. D.initEvent(s, !0, !0), n = l(D, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(s, n);
  364. } else if (t.hcEvents) {
  365. n.target || l(n, { preventDefault: function() {
  366. n.defaultPrevented = !0;
  367. }, target: t, type: s }), D = [];
  368. for (var I = t, W = !1; I.hcEvents; )
  369. Object.hasOwnProperty.call(I, "hcEvents") && I.hcEvents[s] && (D.length && (W = !0), D.unshift.apply(D, I.hcEvents[s])), I = Object.getPrototypeOf(I);
  370. W && D.sort(function(E, X) {
  371. return E.order - X.order;
  372. }), D.forEach(function(E) {
  373. E.fn.call(t, n) === !1 && n.preventDefault();
  374. });
  375. }
  376. P && !n.defaultPrevented && P.call(t, n);
  377. }
  378. var h = y.charts, c = y.doc, u = y.win;
  379. (N || (N = {})).messages = [], Math.easeInOutSine = function(t) {
  380. return -0.5 * (Math.cos(Math.PI * t) - 1);
  381. };
  382. var i = Array.prototype.find ? function(t, s) {
  383. return t.find(s);
  384. } : function(t, s) {
  385. var n, P = t.length;
  386. for (n = 0; n < P; n++)
  387. if (s(t[n], n))
  388. return t[n];
  389. };
  390. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, s) {
  391. y[s] = function(n) {
  392. var P;
  393. return N(32, !1, void 0, (P = {}, P["Highcharts." + s] = "use Array." + t, P)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  394. };
  395. });
  396. var p, a = function() {
  397. var t = Math.random().toString(36).substring(2, 9) + "-", s = 0;
  398. return function() {
  399. return "highcharts-" + (p ? "" : t) + s++;
  400. };
  401. }();
  402. return u.jQuery && (u.jQuery.fn.highcharts = function() {
  403. var t = [].slice.call(arguments);
  404. if (this[0])
  405. return t[0] ? (new y[G(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : h[f(this[0], "data-highcharts-chart")];
  406. }), i = { addEvent: function(t, s, n, P) {
  407. P === void 0 && (P = {});
  408. var D = typeof t == "function" && t.prototype || t;
  409. Object.hasOwnProperty.call(D, "hcEvents") || (D.hcEvents = {}), D = D.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  410. var I = t.addEventListener || y.addEventListenerPolyfill;
  411. return I && I.call(t, s, n, y.supportsPassiveEvents ? { passive: P.passive === void 0 ? s.indexOf("touch") !== -1 : P.passive, capture: !1 } : !1), D[s] || (D[s] = []), D[s].push({ fn: n, order: typeof P.order == "number" ? P.order : 1 / 0 }), D[s].sort(function(W, E) {
  412. return W.order - E.order;
  413. }), function() {
  414. S(t, s, n);
  415. };
  416. }, arrayMax: function(t) {
  417. for (var s = t.length, n = t[0]; s--; )
  418. t[s] > n && (n = t[s]);
  419. return n;
  420. }, arrayMin: function(t) {
  421. for (var s = t.length, n = t[0]; s--; )
  422. t[s] < n && (n = t[s]);
  423. return n;
  424. }, attr: f, clamp: function(t, s, n) {
  425. return t > s ? t < n ? t : n : s;
  426. }, cleanRecursively: _, clearTimeout: function(t) {
  427. x(t) && clearTimeout(t);
  428. }, correctFloat: R, createElement: function(t, s, n, P, D) {
  429. return t = c.createElement(t), s && l(t, s), D && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), P && P.appendChild(t), t;
  430. }, css: O, defined: x, destroyObjectProperties: function(t, s) {
  431. b(t, function(n, P) {
  432. n && n !== s && n.destroy && n.destroy(), delete t[P];
  433. });
  434. }, discardElement: function(t) {
  435. t && t.parentElement && t.parentElement.removeChild(t);
  436. }, erase: function(t, s) {
  437. for (var n = t.length; n--; )
  438. if (t[n] === s) {
  439. t.splice(n, 1);
  440. break;
  441. }
  442. }, error: N, extend: l, extendClass: function(t, s) {
  443. var n = function() {
  444. };
  445. return n.prototype = new t(), l(n.prototype, s), n;
  446. }, find: i, fireEvent: v, getMagnitude: function(t) {
  447. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  448. }, getNestedProperty: function(t, s) {
  449. for (t = t.split("."); t.length && x(s); ) {
  450. var n = t.shift();
  451. if (typeof n > "u" || n === "__proto__" || (s = s[n], !x(s) || typeof s == "function" || typeof s.nodeType == "number" || s === u))
  452. return;
  453. }
  454. return s;
  455. }, getStyle: k, inArray: function(t, s, n) {
  456. return N(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), s.indexOf(t, n);
  457. }, isArray: V, isClass: j, isDOMElement: B, isFunction: function(t) {
  458. return typeof t == "function";
  459. }, isNumber: w, isObject: F, isString: G, keys: function(t) {
  460. return N(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  461. }, merge: function() {
  462. var t, s = arguments, n = {}, P = function(I, W) {
  463. return typeof I != "object" && (I = {}), b(W, function(E, X) {
  464. X !== "__proto__" && X !== "constructor" && (!F(E, !0) || j(E) || B(E) ? I[X] = W[X] : I[X] = P(I[X] || {}, E));
  465. }), I;
  466. };
  467. s[0] === !0 && (n = s[1], s = Array.prototype.slice.call(s, 2));
  468. var D = s.length;
  469. for (t = 0; t < D; t++)
  470. n = P(n, s[t]);
  471. return n;
  472. }, normalizeTickInterval: function(t, s, n, P, D) {
  473. var I = t;
  474. n = T(n, 1);
  475. var W = t / n;
  476. for (s || (s = D ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], P === !1 && (n === 1 ? s = s.filter(function(E) {
  477. return E % 1 === 0;
  478. }) : 0.1 >= n && (s = [1 / n]))), P = 0; P < s.length && (I = s[P], !(D && I * n >= t || !D && W <= (s[P] + (s[P + 1] || s[P])) / 2)); P++)
  479. ;
  480. return I = R(I * n, -Math.round(Math.log(1e-3) / Math.LN10));
  481. }, objectEach: b, offset: function(t) {
  482. var s = c.documentElement;
  483. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (u.pageYOffset || s.scrollTop) - (s.clientTop || 0), left: t.left + (u.pageXOffset || s.scrollLeft) - (s.clientLeft || 0), width: t.width, height: t.height };
  484. }, pad: function(t, s, n) {
  485. return Array((s || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  486. }, pick: T, pInt: U, relativeLength: function(t, s, n) {
  487. return /%$/.test(t) ? s * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  488. }, removeEvent: S, splat: function(t) {
  489. return V(t) ? t : [t];
  490. }, stableSort: function(t, s) {
  491. var n = t.length, P, D;
  492. for (D = 0; D < n; D++)
  493. t[D].safeI = D;
  494. for (t.sort(function(I, W) {
  495. return P = s(I, W), P === 0 ? I.safeI - W.safeI : P;
  496. }), D = 0; D < n; D++)
  497. delete t[D].safeI;
  498. }, syncTimeout: function(t, s, n) {
  499. return 0 < s ? setTimeout(t, s, n) : (t.call(0, n), -1);
  500. }, timeUnits: {
  501. millisecond: 1,
  502. second: 1e3,
  503. minute: 6e4,
  504. hour: 36e5,
  505. day: 864e5,
  506. week: 6048e5,
  507. month: 24192e5,
  508. year: 314496e5
  509. }, uniqueKey: a, useSerialIds: function(t) {
  510. return p = T(t, p);
  511. }, wrap: function(t, s, n) {
  512. var P = t[s];
  513. t[s] = function() {
  514. var D = Array.prototype.slice.call(arguments), I = arguments, W = this;
  515. return W.proceed = function() {
  516. P.apply(W, arguments.length ? arguments : I);
  517. }, D.unshift(P), D = n.apply(this, D), W.proceed = null, D;
  518. };
  519. } }, i;
  520. }), C(o, "Core/Chart/ChartDefaults.js", [], function() {
  521. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  522. 10,
  523. 10,
  524. 15,
  525. 10
  526. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  527. }), C(o, "Core/Color/Color.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  528. var _ = N.isNumber, U = N.merge, G = N.pInt;
  529. return N = function() {
  530. function V(F) {
  531. this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
  532. var B = y.Color;
  533. if (B && B !== V)
  534. return new B(F);
  535. if (!(this instanceof V))
  536. return new V(F);
  537. this.init(F);
  538. }
  539. return V.parse = function(F) {
  540. return F ? new V(F) : V.None;
  541. }, V.prototype.init = function(F) {
  542. var B;
  543. if (typeof F == "object" && typeof F.stops < "u")
  544. this.stops = F.stops.map(function(f) {
  545. return new V(f[1]);
  546. });
  547. else if (typeof F == "string") {
  548. if (this.input = F = V.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
  549. var j = F.length, w = parseInt(F.substr(1), 16);
  550. j === 7 ? B = [(w & 16711680) >> 16, (w & 65280) >> 8, w & 255, 1] : j === 4 && (B = [(w & 3840) >> 4 | (w & 3840) >> 8, (w & 240) >> 4 | w & 240, (w & 15) << 4 | w & 15, 1]);
  551. }
  552. if (!B)
  553. for (w = V.parsers.length; w-- && !B; ) {
  554. var x = V.parsers[w];
  555. (j = x.regex.exec(F)) && (B = x.parse(j));
  556. }
  557. }
  558. B && (this.rgba = B);
  559. }, V.prototype.get = function(F) {
  560. var B = this.input, j = this.rgba;
  561. if (typeof B == "object" && typeof this.stops < "u") {
  562. var w = U(B);
  563. return w.stops = [].slice.call(w.stops), this.stops.forEach(function(x, f) {
  564. w.stops[f] = [w.stops[f][0], x.get(F)];
  565. }), w;
  566. }
  567. return j && _(j[0]) ? F === "rgb" || !F && j[3] === 1 ? "rgb(" + j[0] + "," + j[1] + "," + j[2] + ")" : F === "a" ? "" + j[3] : "rgba(" + j.join(",") + ")" : B;
  568. }, V.prototype.brighten = function(F) {
  569. var B = this.rgba;
  570. if (this.stops)
  571. this.stops.forEach(function(w) {
  572. w.brighten(F);
  573. });
  574. else if (_(F) && F !== 0)
  575. for (var j = 0; 3 > j; j++)
  576. B[j] += G(255 * F), 0 > B[j] && (B[j] = 0), 255 < B[j] && (B[j] = 255);
  577. return this;
  578. }, V.prototype.setOpacity = function(F) {
  579. return this.rgba[3] = F, this;
  580. }, V.prototype.tweenTo = function(F, B) {
  581. var j = this.rgba, w = F.rgba;
  582. return !_(j[0]) || !_(w[0]) ? F.input || "none" : (F = w[3] !== 1 || j[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(w[0] + (j[0] - w[0]) * (1 - B)) + "," + Math.round(w[1] + (j[1] - w[1]) * (1 - B)) + "," + Math.round(w[2] + (j[2] - w[2]) * (1 - B)) + (F ? "," + (w[3] + (j[3] - w[3]) * (1 - B)) : "") + ")");
  583. }, V.names = { white: "#ffffff", black: "#000000" }, V.parsers = [{
  584. 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*\)/,
  585. parse: function(F) {
  586. return [G(F[1]), G(F[2]), G(F[3]), parseFloat(F[4], 10)];
  587. }
  588. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
  589. return [G(F[1]), G(F[2]), G(F[3]), 1];
  590. } }], V.None = new V(""), V;
  591. }(), N;
  592. }), C(o, "Core/Color/Palettes.js", [], function() {
  593. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  594. }), C(o, "Core/Time.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  595. var _ = y.win, U = N.defined, G = N.error, V = N.extend, F = N.isObject, B = N.merge, j = N.objectEach, w = N.pad, x = N.pick, f = N.splat, l = N.timeUnits, T = y.isSafari && _.Intl && _.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && _.Intl && !_.Intl.DateTimeFormat.prototype.formatRange;
  596. return N = function() {
  597. function R(k) {
  598. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = _.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(k);
  599. }
  600. return R.prototype.get = function(k, b) {
  601. if (this.variableTimezone || this.timezoneOffset) {
  602. var S = b.getTime(), v = S - this.getTimezoneOffset(b);
  603. return b.setTime(v), k = b["getUTC" + k](), b.setTime(S), k;
  604. }
  605. return this.useUTC ? b["getUTC" + k]() : b["get" + k]();
  606. }, R.prototype.set = function(k, b, S) {
  607. if (this.variableTimezone || this.timezoneOffset) {
  608. if (k === "Milliseconds" || k === "Seconds" || k === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  609. return b["setUTC" + k](S);
  610. var v = this.getTimezoneOffset(b);
  611. return v = b.getTime() - v, b.setTime(v), b["setUTC" + k](S), k = this.getTimezoneOffset(b), v = b.getTime() + k, b.setTime(v);
  612. }
  613. return this.useUTC || T && k === "FullYear" ? b["setUTC" + k](S) : b["set" + k](S);
  614. }, R.prototype.update = function(k) {
  615. var b = x(k && k.useUTC, !0);
  616. this.options = k = B(!0, this.options || {}, k), this.Date = k.Date || _.Date || Date, this.timezoneOffset = (this.useUTC = b) && k.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = b && !(!k.getTimezoneOffset && !k.timezone);
  617. }, R.prototype.makeTime = function(k, b, S, v, h, c) {
  618. if (this.useUTC) {
  619. var u = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(u);
  620. u += i;
  621. var p = this.getTimezoneOffset(u);
  622. i !== p ? u += p - i : i - 36e5 !== this.getTimezoneOffset(u - 36e5) || O || (u -= 36e5);
  623. } else
  624. u = new this.Date(k, b, x(S, 1), x(v, 0), x(h, 0), x(c, 0)).getTime();
  625. return u;
  626. }, R.prototype.timezoneOffsetFunction = function() {
  627. var k = this, b = this.options, S = b.getTimezoneOffset, v = b.moment || _.moment;
  628. if (!this.useUTC)
  629. return function(h) {
  630. return 6e4 * new Date(h.toString()).getTimezoneOffset();
  631. };
  632. if (b.timezone) {
  633. if (v)
  634. return function(h) {
  635. return 6e4 * -v.tz(h, b.timezone).utcOffset();
  636. };
  637. G(25);
  638. }
  639. return this.useUTC && S ? function(h) {
  640. return 6e4 * S(h.valueOf());
  641. } : function() {
  642. return 6e4 * (k.timezoneOffset || 0);
  643. };
  644. }, R.prototype.dateFormat = function(k, b, S) {
  645. if (!U(b) || isNaN(b))
  646. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  647. k = x(k, "%Y-%m-%d %H:%M:%S");
  648. var v = this, h = new this.Date(b), c = this.get("Hours", h), u = this.get("Day", h), i = this.get("Date", h), p = this.get("Month", h), a = this.get("FullYear", h), t = y.defaultOptions.lang, s = t && t.weekdays, n = t && t.shortWeekdays;
  649. return h = V({ a: n ? n[u] : s[u].substr(0, 3), A: s[u], d: w(i), e: w(i, 2, " "), w: u, b: t.shortMonths[p], B: t.months[p], m: w(p + 1), o: p + 1, y: a.toString().substr(2, 2), Y: a, H: w(c), k: c, I: w(c % 12 || 12), l: c % 12 || 12, M: w(this.get("Minutes", h)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: w(h.getSeconds()), L: w(Math.floor(b % 1e3), 3) }, y.dateFormats), j(h, function(P, D) {
  650. for (; k.indexOf("%" + D) !== -1; )
  651. k = k.replace("%" + D, typeof P == "function" ? P.call(v, b) : P);
  652. }), S ? k.substr(0, 1).toUpperCase() + k.substr(1) : k;
  653. }, R.prototype.resolveDTLFormat = function(k) {
  654. return F(k, !0) ? k : (k = f(k), { main: k[0], from: k[1], to: k[2] });
  655. }, R.prototype.getTimeTicks = function(k, b, S, v) {
  656. var h = this, c = [], u = {}, i = new h.Date(b), p = k.unitRange, a = k.count || 1, t;
  657. if (v = x(v, 1), U(b)) {
  658. if (h.set(
  659. "Milliseconds",
  660. i,
  661. p >= l.second ? 0 : a * Math.floor(h.get("Milliseconds", i) / a)
  662. ), p >= l.second && h.set("Seconds", i, p >= l.minute ? 0 : a * Math.floor(h.get("Seconds", i) / a)), p >= l.minute && h.set("Minutes", i, p >= l.hour ? 0 : a * Math.floor(h.get("Minutes", i) / a)), p >= l.hour && h.set("Hours", i, p >= l.day ? 0 : a * Math.floor(h.get("Hours", i) / a)), p >= l.day && h.set("Date", i, p >= l.month ? 1 : Math.max(1, a * Math.floor(h.get("Date", i) / a))), p >= l.month) {
  663. h.set("Month", i, p >= l.year ? 0 : a * Math.floor(h.get("Month", i) / a));
  664. var s = h.get("FullYear", i);
  665. }
  666. p >= l.year && h.set(
  667. "FullYear",
  668. i,
  669. s - s % a
  670. ), p === l.week && (s = h.get("Day", i), h.set("Date", i, h.get("Date", i) - s + v + (s < v ? -7 : 0))), s = h.get("FullYear", i), v = h.get("Month", i);
  671. var n = h.get("Date", i), P = h.get("Hours", i);
  672. for (b = i.getTime(), !h.variableTimezone && h.useUTC || !U(S) || (t = S - b > 4 * l.month || h.getTimezoneOffset(b) !== h.getTimezoneOffset(S)), b = i.getTime(), i = 1; b < S; )
  673. c.push(b), b = p === l.year ? h.makeTime(s + i * a, 0) : p === l.month ? h.makeTime(s, v + i * a) : !t || p !== l.day && p !== l.week ? t && p === l.hour && 1 < a ? h.makeTime(s, v, n, P + i * a) : b + p * a : h.makeTime(s, v, n + i * a * (p === l.day ? 1 : 7)), i++;
  674. c.push(b), p <= l.hour && 1e4 > c.length && c.forEach(function(D) {
  675. D % 18e5 === 0 && h.dateFormat("%H%M%S%L", D) === "000000000" && (u[D] = "day");
  676. });
  677. }
  678. return c.info = V(k, { higherRanks: u, totalRange: p * a }), c;
  679. }, R.prototype.getDateFormat = function(k, b, S, v) {
  680. var h = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, u = "millisecond";
  681. for (i in l) {
  682. if (k === l.week && +this.dateFormat("%w", b) === S && h.substr(6) === "00:00:00.000") {
  683. var i = "week";
  684. break;
  685. }
  686. if (l[i] > k) {
  687. i = u;
  688. break;
  689. }
  690. if (c[i] && h.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  691. break;
  692. i !== "week" && (u = i);
  693. }
  694. if (i)
  695. var p = this.resolveDTLFormat(v[i]).main;
  696. return p;
  697. }, R;
  698. }(), N;
  699. }), C(o, "Core/DefaultOptions.js", [o["Core/Chart/ChartDefaults.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Color/Palettes.js"], o["Core/Time.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V) {
  700. N = N.parse;
  701. var F = V.merge, B = {
  702. colors: U.colors,
  703. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  704. lang: {
  705. loading: "Loading...",
  706. months: "January February March April May June July August September October November December".split(" "),
  707. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  708. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  709. decimalPoint: ".",
  710. numericSymbols: "kMGTPE".split(""),
  711. resetZoom: "Reset zoom",
  712. resetZoomTitle: "Reset zoom level 1:1",
  713. thousandsSep: " "
  714. },
  715. global: {},
  716. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  717. chart: y,
  718. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  719. subtitle: { text: "", align: "center", widthAdjust: -44 },
  720. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  721. plotOptions: {},
  722. labels: { style: { position: "absolute", color: "#333333" } },
  723. legend: {
  724. enabled: !0,
  725. align: "center",
  726. alignColumns: !0,
  727. className: "highcharts-no-tooltip",
  728. layout: "horizontal",
  729. labelFormatter: function() {
  730. return this.name;
  731. },
  732. borderColor: "#999999",
  733. borderRadius: 0,
  734. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  735. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  736. itemHoverStyle: { color: "#000000" },
  737. itemHiddenStyle: { color: "#cccccc" },
  738. shadow: !1,
  739. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  740. squareSymbol: !0,
  741. symbolPadding: 5,
  742. verticalAlign: "bottom",
  743. x: 0,
  744. y: 0,
  745. title: { style: { fontWeight: "bold" } }
  746. },
  747. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  748. tooltip: {
  749. enabled: !0,
  750. animation: _.svg,
  751. borderRadius: 3,
  752. dateTimeLabelFormats: {
  753. millisecond: "%A, %b %e, %H:%M:%S.%L",
  754. second: "%A, %b %e, %H:%M:%S",
  755. minute: "%A, %b %e, %H:%M",
  756. hour: "%A, %b %e, %H:%M",
  757. day: "%A, %b %e, %Y",
  758. week: "Week from %A, %b %e, %Y",
  759. month: "%B %Y",
  760. year: "%Y"
  761. },
  762. footerFormat: "",
  763. headerShape: "callout",
  764. hideDelay: 500,
  765. padding: 8,
  766. shape: "callout",
  767. shared: !1,
  768. snap: _.isTouchDevice ? 25 : 10,
  769. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  770. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  771. backgroundColor: N("#f7f7f7").setOpacity(0.85).get(),
  772. borderWidth: 1,
  773. shadow: !0,
  774. stickOnContact: !1,
  775. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  776. useHTML: !1
  777. },
  778. credits: { enabled: !0, href: "https://www.highcharts.com?credits", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "Highcharts.com" }
  779. };
  780. B.chart.styledMode = !1;
  781. var j = new G(F(B.global, B.time));
  782. return y = { defaultOptions: B, defaultTime: j, getOptions: function() {
  783. return B;
  784. }, setOptions: function(w) {
  785. return F(!0, B, w), (w.time || w.global) && (_.time ? _.time.update(F(
  786. B.global,
  787. B.time,
  788. w.global,
  789. w.time
  790. )) : _.time = j), B;
  791. } }, y;
  792. }), C(o, "Core/Animation/Fx.js", [o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N, _) {
  793. var U = y.parse, G = N.win, V = _.isNumber, F = _.objectEach;
  794. return function() {
  795. function B(j, w, x) {
  796. this.pos = NaN, this.options = w, this.elem = j, this.prop = x;
  797. }
  798. return B.prototype.dSetter = function() {
  799. var j = this.paths, w = j && j[0];
  800. j = j && j[1];
  801. var x = this.now || 0, f = [];
  802. if (x !== 1 && w && j)
  803. if (w.length === j.length && 1 > x)
  804. for (var l = 0; l < j.length; l++) {
  805. for (var T = w[l], O = j[l], R = [], k = 0; k < O.length; k++) {
  806. var b = T[k], S = O[k];
  807. V(b) && V(S) && (O[0] !== "A" || k !== 4 && k !== 5) ? R[k] = b + x * (S - b) : R[k] = S;
  808. }
  809. f.push(R);
  810. }
  811. else
  812. f = j;
  813. else
  814. f = this.toD || [];
  815. this.elem.attr("d", f, void 0, !0);
  816. }, B.prototype.update = function() {
  817. var j = this.elem, w = this.prop, x = this.now, f = this.options.step;
  818. this[w + "Setter"] ? this[w + "Setter"]() : j.attr ? j.element && j.attr(w, x, null, !0) : j.style[w] = x + this.unit, f && f.call(j, x, this);
  819. }, B.prototype.run = function(j, w, x) {
  820. var f = this, l = f.options, T = function(k) {
  821. return T.stopped ? !1 : f.step(k);
  822. }, O = G.requestAnimationFrame || function(k) {
  823. setTimeout(
  824. k,
  825. 13
  826. );
  827. }, R = function() {
  828. for (var k = 0; k < B.timers.length; k++)
  829. B.timers[k]() || B.timers.splice(k--, 1);
  830. B.timers.length && O(R);
  831. };
  832. j !== w || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = j, this.end = w, this.unit = x, this.now = this.start, this.pos = 0, T.elem = this.elem, T.prop = this.prop, T() && B.timers.push(T) === 1 && O(R)) : (delete l.curAnim[this.prop], l.complete && Object.keys(l.curAnim).length === 0 && l.complete.call(this.elem));
  833. }, B.prototype.step = function(j) {
  834. var w = +/* @__PURE__ */ new Date(), x = this.options, f = this.elem, l = x.complete, T = x.duration, O = x.curAnim;
  835. if (f.attr && !f.element)
  836. j = !1;
  837. else if (j || w >= T + this.startTime) {
  838. this.now = this.end, this.pos = 1, this.update();
  839. var R = O[this.prop] = !0;
  840. F(O, function(k) {
  841. k !== !0 && (R = !1);
  842. }), R && l && l.call(f), j = !1;
  843. } else
  844. this.pos = x.easing((w - this.startTime) / T), this.now = this.start + (this.end - this.start) * this.pos, this.update(), j = !0;
  845. return j;
  846. }, B.prototype.initPath = function(j, w, x) {
  847. function f(h, c) {
  848. for (; h.length < v; ) {
  849. var u = h[0], i = c[v - h.length];
  850. i && u[0] === "M" && (h[0] = i[0] === "C" ? ["C", u[1], u[2], u[1], u[2], u[1], u[2]] : [
  851. "L",
  852. u[1],
  853. u[2]
  854. ]), h.unshift(u), R && (u = h.pop(), h.push(h[h.length - 1], u));
  855. }
  856. }
  857. function l(h, c) {
  858. for (; h.length < v; )
  859. if (c = h[Math.floor(h.length / k) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), R) {
  860. var u = h[Math.floor(h.length / k)].slice();
  861. h.splice(h.length / 2, 0, c, u);
  862. } else
  863. h.push(c);
  864. }
  865. var T = j.startX, O = j.endX;
  866. x = x.slice();
  867. var R = j.isArea, k = R ? 2 : 1;
  868. if (w = w && w.slice(), !w)
  869. return [x, x];
  870. if (T && O && O.length) {
  871. for (j = 0; j < T.length; j++)
  872. if (T[j] === O[0]) {
  873. var b = j;
  874. break;
  875. } else if (T[0] === O[O.length - T.length + j]) {
  876. b = j;
  877. var S = !0;
  878. break;
  879. } else if (T[T.length - 1] === O[O.length - T.length + j]) {
  880. b = T.length - j;
  881. break;
  882. }
  883. typeof b > "u" && (w = []);
  884. }
  885. if (w.length && V(b)) {
  886. var v = x.length + b * k;
  887. S ? (f(w, x), l(x, w)) : (f(x, w), l(w, x));
  888. }
  889. return [w, x];
  890. }, B.prototype.fillSetter = function() {
  891. B.prototype.strokeSetter.apply(this, arguments);
  892. }, B.prototype.strokeSetter = function() {
  893. this.elem.attr(this.prop, U(this.start).tweenTo(U(this.end), this.pos), void 0, !0);
  894. }, B.timers = [], B;
  895. }();
  896. }), C(o, "Core/Animation/AnimationUtilities.js", [o["Core/Animation/Fx.js"], o["Core/Utilities.js"]], function(y, N) {
  897. function _(l) {
  898. return j(l) ? w({ duration: 500, defer: 0 }, l) : { duration: l ? 500 : 0, defer: 0 };
  899. }
  900. function U(l, T) {
  901. for (var O = y.timers.length; O--; )
  902. y.timers[O].elem !== l || T && T !== y.timers[O].prop || (y.timers[O].stopped = !0);
  903. }
  904. var G = N.defined, V = N.getStyle, F = N.isArray, B = N.isNumber, j = N.isObject, w = N.merge, x = N.objectEach, f = N.pick;
  905. return { animate: function(l, T, O) {
  906. var R, k = "", b, S;
  907. if (!j(O)) {
  908. var v = arguments;
  909. O = { duration: v[2], easing: v[3], complete: v[4] };
  910. }
  911. B(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = w(T), x(T, function(h, c) {
  912. U(l, c), S = new y(l, O, c), b = void 0, c === "d" && F(T.d) ? (S.paths = S.initPath(l, l.pathArray, T.d), S.toD = T.d, R = 0, b = 1) : l.attr ? R = l.attr(c) : (R = parseFloat(V(l, c)) || 0, c !== "opacity" && (k = "px")), b || (b = h), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), S.run(R, b, k);
  913. });
  914. }, animObject: _, getDeferredAnimation: function(l, T, O) {
  915. var R = _(T), k = 0, b = 0;
  916. return (O ? [O] : l.series).forEach(function(S) {
  917. S = _(S.options.animation), k = T && G(T.defer) ? R.defer : Math.max(k, S.duration + S.defer), b = Math.min(R.duration, S.duration);
  918. }), l.renderer.forExport && (k = 0), { defer: Math.max(0, k - b), duration: Math.min(k, b) };
  919. }, setAnimation: function(l, T) {
  920. T.renderer.globalAnimation = f(l, T.options.chart.animation, !0);
  921. }, stop: U };
  922. }), C(o, "Core/Renderer/HTML/AST.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  923. var _ = y.SVG_NS, U = N.attr, G = N.createElement, V = N.error, F = N.isFunction, B = N.isString, j = N.objectEach, w = N.splat, x = (N = y.win.trustedTypes) && F(N.createPolicy) && N.createPolicy("highcharts", { createHTML: function(T) {
  924. return T;
  925. } }), f = x ? x.createHTML("") : "";
  926. try {
  927. var l = !!new DOMParser().parseFromString(f, "text/html");
  928. } catch {
  929. l = !1;
  930. }
  931. return F = function() {
  932. function T(O) {
  933. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  934. }
  935. return T.filterUserAttributes = function(O) {
  936. return j(O, function(R, k) {
  937. var b = !0;
  938. T.allowedAttributes.indexOf(k) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(k) !== -1 && (b = B(R) && T.allowedReferences.some(function(S) {
  939. return R.indexOf(S) === 0;
  940. })), b || (V("Highcharts warning: Invalid attribute '" + k + "' in config"), delete O[k]);
  941. }), O;
  942. }, T.setElementHTML = function(O, R) {
  943. O.innerHTML = T.emptyHTML, R && new T(R).addToDOM(O);
  944. }, T.prototype.addToDOM = function(O) {
  945. function R(k, b) {
  946. var S;
  947. return w(k).forEach(function(v) {
  948. var h = v.tagName, c = v.textContent ? y.doc.createTextNode(v.textContent) : void 0;
  949. if (h)
  950. if (h === "#text")
  951. var u = c;
  952. else if (T.allowedTags.indexOf(h) !== -1) {
  953. h = y.doc.createElementNS(h === "svg" ? _ : b.namespaceURI || _, h);
  954. var i = v.attributes || {};
  955. j(v, function(p, a) {
  956. a !== "tagName" && a !== "attributes" && a !== "children" && a !== "textContent" && (i[a] = p);
  957. }), U(h, T.filterUserAttributes(i)), c && h.appendChild(c), R(v.children || [], h), u = h;
  958. } else
  959. V("Highcharts warning: Invalid tagName " + h + " in config");
  960. u && b.appendChild(u), S = u;
  961. }), S;
  962. }
  963. return R(this.nodes, O);
  964. }, T.prototype.parseMarkup = function(O) {
  965. var R = [];
  966. if (O = O.trim(), l)
  967. O = new DOMParser().parseFromString(x ? x.createHTML(O) : O, "text/html");
  968. else {
  969. var k = G("div");
  970. k.innerHTML = O, O = { body: k };
  971. }
  972. var b = function(S, v) {
  973. var h = S.nodeName.toLowerCase(), c = { tagName: h };
  974. if (h === "#text" && (c.textContent = S.textContent || ""), h = S.attributes) {
  975. var u = {};
  976. [].forEach.call(h, function(p) {
  977. u[p.name] = p.value;
  978. }), c.attributes = u;
  979. }
  980. if (S.childNodes.length) {
  981. var i = [];
  982. [].forEach.call(S.childNodes, function(p) {
  983. b(p, i);
  984. }), i.length && (c.children = i);
  985. }
  986. v.push(c);
  987. };
  988. return [].forEach.call(O.body.childNodes, function(S) {
  989. return b(S, R);
  990. }), R;
  991. }, T.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 textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), T.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), T.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 thead tbody tspan td th tr u ul #text".split(" "), T.emptyHTML = f, T;
  992. }(), F;
  993. }), C(
  994. o,
  995. "Core/FormatUtilities.js",
  996. [o["Core/DefaultOptions.js"], o["Core/Utilities.js"]],
  997. function(y, N) {
  998. function _(w, x, f, l) {
  999. w = +w || 0, x = +x;
  1000. var T = U.lang, O = (w.toString().split(".")[1] || "").split("e")[0].length, R = w.toString().split("e"), k = x;
  1001. if (x === -1)
  1002. x = Math.min(O, 20);
  1003. else if (!F(x))
  1004. x = 2;
  1005. else if (x && R[1] && 0 > R[1]) {
  1006. var b = x + +R[1];
  1007. 0 <= b ? (R[0] = (+R[0]).toExponential(b).split("e")[0], x = b) : (R[0] = R[0].split(".")[0] || 0, w = 20 > x ? (R[0] * Math.pow(10, R[1])).toFixed(x) : 0, R[1] = 0);
  1008. }
  1009. b = (Math.abs(R[1] ? R[0] : w) + Math.pow(10, -Math.max(x, O) - 1)).toFixed(x), O = String(j(b));
  1010. var S = 3 < O.length ? O.length % 3 : 0;
  1011. return f = B(f, T.decimalPoint), l = B(l, T.thousandsSep), w = (0 > w ? "-" : "") + (S ? O.substr(0, S) + l : ""), w = 0 > +R[1] && !k ? "0" : w + O.substr(S).replace(/(\d{3})(?=\d)/g, "$1" + l), x && (w += f + b.slice(-x)), R[1] && +w != 0 && (w += "e" + R[1]), w;
  1012. }
  1013. var U = y.defaultOptions, G = y.defaultTime, V = N.getNestedProperty, F = N.isNumber, B = N.pick, j = N.pInt;
  1014. return { dateFormat: function(w, x, f) {
  1015. return G.dateFormat(w, x, f);
  1016. }, format: function(w, x, f) {
  1017. var l = "{", T = !1, O = /f$/, R = /\.([0-9])/, k = U.lang, b = f && f.time || G;
  1018. f = f && f.numberFormatter || _;
  1019. for (var S = []; w; ) {
  1020. var v = w.indexOf(l);
  1021. if (v === -1)
  1022. break;
  1023. var h = w.slice(0, v);
  1024. if (T) {
  1025. if (h = h.split(":"), l = V(h.shift() || "", x), h.length && typeof l == "number")
  1026. if (h = h.join(":"), O.test(h)) {
  1027. var c = parseInt((h.match(R) || ["", "-1"])[1], 10);
  1028. l !== null && (l = f(l, c, k.decimalPoint, -1 < h.indexOf(",") ? k.thousandsSep : ""));
  1029. } else
  1030. l = b.dateFormat(h, l);
  1031. S.push(l);
  1032. } else
  1033. S.push(h);
  1034. w = w.slice(v + 1), l = (T = !T) ? "}" : "{";
  1035. }
  1036. return S.push(w), S.join("");
  1037. }, numberFormat: _ };
  1038. }
  1039. ), C(o, "Core/Renderer/RendererUtilities.js", [o["Core/Utilities.js"]], function(y) {
  1040. var N = y.clamp, _ = y.pick, U = y.stableSort, G;
  1041. return function(V) {
  1042. function F(B, j, w) {
  1043. var x = B, f = x.reducedLen || j, l = function(S, v) {
  1044. return (v.rank || 0) - (S.rank || 0);
  1045. }, T = function(S, v) {
  1046. return S.target - v.target;
  1047. }, O, R = !0, k = [], b = 0;
  1048. for (O = B.length; O--; )
  1049. b += B[O].size;
  1050. if (b > f) {
  1051. for (U(B, l), b = O = 0; b <= f; )
  1052. b += B[O].size, O++;
  1053. k = B.splice(O - 1, B.length);
  1054. }
  1055. for (U(B, T), B = B.map(function(S) {
  1056. return { size: S.size, targets: [S.target], align: _(S.align, 0.5) };
  1057. }); R; ) {
  1058. for (O = B.length; O--; )
  1059. f = B[O], l = (Math.min.apply(0, f.targets) + Math.max.apply(0, f.targets)) / 2, f.pos = N(
  1060. l - f.size * f.align,
  1061. 0,
  1062. j - f.size
  1063. );
  1064. for (O = B.length, R = !1; O--; )
  1065. 0 < O && B[O - 1].pos + B[O - 1].size > B[O].pos && (B[O - 1].size += B[O].size, B[O - 1].targets = B[O - 1].targets.concat(B[O].targets), B[O - 1].align = 0.5, B[O - 1].pos + B[O - 1].size > j && (B[O - 1].pos = j - B[O - 1].size), B.splice(O, 1), R = !0);
  1066. }
  1067. return x.push.apply(x, k), O = 0, B.some(function(S) {
  1068. var v = 0;
  1069. return (S.targets || []).some(function() {
  1070. return x[O].pos = S.pos + v, typeof w < "u" && Math.abs(x[O].pos - x[O].target) > w ? (x.slice(0, O + 1).forEach(function(h) {
  1071. return delete h.pos;
  1072. }), x.reducedLen = (x.reducedLen || j) - 0.1 * j, x.reducedLen > 0.1 * j && F(x, j, w), !0) : (v += x[O].size, O++, !1);
  1073. });
  1074. }), U(x, T), x;
  1075. }
  1076. V.distribute = F;
  1077. }(G || (G = {})), G;
  1078. }), C(o, "Core/Renderer/SVG/SVGElement.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Renderer/HTML/AST.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N, _, U, G) {
  1079. var V = y.animate, F = y.animObject, B = y.stop, j = U.deg2rad, w = U.doc, x = U.noop, f = U.svg, l = U.SVG_NS, T = U.win, O = G.addEvent, R = G.attr, k = G.createElement, b = G.css, S = G.defined, v = G.erase, h = G.extend, c = G.fireEvent, u = G.isArray, i = G.isFunction, p = G.isNumber, a = G.isString, t = G.merge, s = G.objectEach, n = G.pick, P = G.pInt, D = G.syncTimeout, I = G.uniqueKey;
  1080. return y = function() {
  1081. function W() {
  1082. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = l, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  1083. }
  1084. return W.prototype._defaultGetter = function(E) {
  1085. return E = n(this[E + "Value"], this[E], this.element ? this.element.getAttribute(E) : null, 0), /^[\-0-9\.]+$/.test(E) && (E = parseFloat(E)), E;
  1086. }, W.prototype._defaultSetter = function(E, X, g) {
  1087. g.setAttribute(X, E);
  1088. }, W.prototype.add = function(E) {
  1089. var X = this.renderer, g = this.element;
  1090. if (E && (this.parentGroup = E), this.parentInverted = E && E.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !E || E.handleZ || this.zIndex)
  1091. var m = this.zIndexSetter();
  1092. return m || (E ? E.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  1093. }, W.prototype.addClass = function(E, X) {
  1094. var g = X ? "" : this.attr("class") || "";
  1095. return E = (E || "").split(/ /g).reduce(function(m, L) {
  1096. return g.indexOf(L) === -1 && m.push(L), m;
  1097. }, g ? [g] : []).join(" "), E !== g && this.attr("class", E), this;
  1098. }, W.prototype.afterSetters = function() {
  1099. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  1100. }, W.prototype.align = function(E, X, g) {
  1101. var m = {}, L = this.renderer, z = L.alignedObjects, $, Q, A;
  1102. E ? (this.alignOptions = E, this.alignByTranslate = X, (!g || a(g)) && (this.alignTo = $ = g || "renderer", v(z, this), z.push(this), g = void 0)) : (E = this.alignOptions, X = this.alignByTranslate, $ = this.alignTo), g = n(g, L[$], $ === "scrollablePlotBox" ? L.plotBox : void 0, L), $ = E.align;
  1103. var H = E.verticalAlign;
  1104. return L = (g.x || 0) + (E.x || 0), z = (g.y || 0) + (E.y || 0), $ === "right" ? Q = 1 : $ === "center" && (Q = 2), Q && (L += (g.width - (E.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), H === "bottom" ? A = 1 : H === "middle" && (A = 2), A && (z += (g.height - (E.height || 0)) / A), m[X ? "translateY" : "y"] = Math.round(z), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  1105. }, W.prototype.alignSetter = function(E) {
  1106. var X = { left: "start", center: "middle", right: "end" };
  1107. X[E] && (this.alignValue = E, this.element.setAttribute(
  1108. "text-anchor",
  1109. X[E]
  1110. ));
  1111. }, W.prototype.animate = function(E, X, g) {
  1112. var m = this, L = F(n(X, this.renderer.globalAnimation, !0));
  1113. return X = L.defer, n(w.hidden, w.msHidden, w.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), D(function() {
  1114. m.element && V(m, E, L);
  1115. }, X)) : (this.attr(E, void 0, g), s(E, function(z, $) {
  1116. L.step && L.step.call(this, z, { prop: $, pos: 1, elem: this });
  1117. }, this)), this;
  1118. }, W.prototype.applyTextOutline = function(E) {
  1119. var X = this.element;
  1120. E.indexOf("contrast") !== -1 && (E = E.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  1121. var g = E.split(" ");
  1122. if (E = g[g.length - 1], (g = g[0]) && g !== "none" && U.svg) {
  1123. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(z, $, Q) {
  1124. return 2 * Number($) + Q;
  1125. }), this.removeTextOutline();
  1126. var m = w.createElementNS(l, "tspan");
  1127. R(m, { class: "highcharts-text-outline", fill: E, stroke: E, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(z) {
  1128. var $ = z.cloneNode(!0);
  1129. $.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  1130. return $.removeAttribute(Q);
  1131. }), m.appendChild($);
  1132. });
  1133. var L = w.createElementNS(l, "tspan");
  1134. L.textContent = "​", ["x", "y"].forEach(function(z) {
  1135. var $ = X.getAttribute(z);
  1136. $ && L.setAttribute(z, $);
  1137. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  1138. }
  1139. }, W.prototype.attr = function(E, X, g, m) {
  1140. var L = this.element, z = this.symbolCustomAttribs, $, Q = this, A, H;
  1141. if (typeof E == "string" && typeof X < "u") {
  1142. var Y = E;
  1143. E = {}, E[Y] = X;
  1144. }
  1145. return typeof E == "string" ? Q = (this[E + "Getter"] || this._defaultGetter).call(this, E, L) : (s(E, function(Z, q) {
  1146. A = !1, m || B(this, q), this.symbolName && z.indexOf(q) !== -1 && ($ || (this.symbolAttr(E), $ = !0), A = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), A || (H = this[q + "Setter"] || this._defaultSetter, H.call(this, Z, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, Z, H));
  1147. }, this), this.afterSetters()), g && g.call(this), Q;
  1148. }, W.prototype.clip = function(E) {
  1149. return this.attr("clip-path", E ? "url(" + this.renderer.url + "#" + E.id + ")" : "none");
  1150. }, W.prototype.crisp = function(E, X) {
  1151. X = X || E.strokeWidth || 0;
  1152. var g = Math.round(X) % 2 / 2;
  1153. return E.x = Math.floor(E.x || this.x || 0) + g, E.y = Math.floor(E.y || this.y || 0) + g, E.width = Math.floor((E.width || this.width || 0) - 2 * g), E.height = Math.floor((E.height || this.height || 0) - 2 * g), S(E.strokeWidth) && (E.strokeWidth = X), E;
  1154. }, W.prototype.complexColor = function(E, X, g) {
  1155. var m = this.renderer, L, z, $, Q, A, H, Y, Z, q, it, et = [], nt;
  1156. c(this.renderer, "complexColor", { args: arguments }, function() {
  1157. if (E.radialGradient ? z = "radialGradient" : E.linearGradient && (z = "linearGradient"), z) {
  1158. if ($ = E[z], A = m.gradients, H = E.stops, q = g.radialReference, u($) && (E[z] = $ = { x1: $[0], y1: $[1], x2: $[2], y2: $[3], gradientUnits: "userSpaceOnUse" }), z === "radialGradient" && q && !S($.gradientUnits) && (Q = $, $ = t($, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), s($, function(ct, gt) {
  1159. gt !== "id" && et.push(gt, ct);
  1160. }), s(H, function(ct) {
  1161. et.push(ct);
  1162. }), et = et.join(","), A[et])
  1163. it = A[et].attr("id");
  1164. else {
  1165. $.id = it = I();
  1166. var rt = A[et] = m.createElement(z).attr($).add(m.defs);
  1167. rt.radAttr = Q, rt.stops = [], H.forEach(function(ct) {
  1168. ct[1].indexOf("rgba") === 0 ? (L = _.parse(ct[1]), Y = L.get("rgb"), Z = L.get("a")) : (Y = ct[1], Z = 1), ct = m.createElement("stop").attr({
  1169. offset: ct[0],
  1170. "stop-color": Y,
  1171. "stop-opacity": Z
  1172. }).add(rt), rt.stops.push(ct);
  1173. });
  1174. }
  1175. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, E.toString = function() {
  1176. return nt;
  1177. };
  1178. }
  1179. });
  1180. }, W.prototype.css = function(E) {
  1181. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], z = "", $ = !X;
  1182. if (E && E.color && (E.fill = E.color), X && s(E, function(H, Y) {
  1183. X && X[Y] !== H && (g[Y] = H, $ = !0);
  1184. }), $) {
  1185. if (X && (E = h(X, g)), E) {
  1186. if (E.width === null || E.width === "auto")
  1187. delete this.textWidth;
  1188. else if (m.nodeName.toLowerCase() === "text" && E.width)
  1189. var Q = this.textWidth = P(E.width);
  1190. }
  1191. if (this.styles = E, Q && !f && this.renderer.forExport && delete E.width, m.namespaceURI === this.SVG_NS) {
  1192. var A = function(H, Y) {
  1193. return "-" + Y.toLowerCase();
  1194. };
  1195. s(E, function(H, Y) {
  1196. L.indexOf(Y) === -1 && (z += Y.replace(/([A-Z])/g, A) + ":" + H + ";");
  1197. }), z && R(m, "style", z);
  1198. } else
  1199. b(m, E);
  1200. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), E && E.textOutline && this.applyTextOutline(E.textOutline));
  1201. }
  1202. return this;
  1203. }, W.prototype.dashstyleSetter = function(E) {
  1204. var X = this["stroke-width"];
  1205. if (X === "inherit" && (X = 1), E = E && E.toLowerCase()) {
  1206. var g = E.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(",");
  1207. for (E = g.length; E--; )
  1208. g[E] = "" + P(g[E]) * n(X, NaN);
  1209. E = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", E);
  1210. }
  1211. }, W.prototype.destroy = function() {
  1212. var E = this, X = E.element || {}, g = E.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && E.parentGroup || void 0;
  1213. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, B(E), E.clipPath && m) {
  1214. var z = E.clipPath;
  1215. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function($) {
  1216. -1 < $.getAttribute("clip-path").indexOf(z.element.id) && $.removeAttribute("clip-path");
  1217. }), E.clipPath = z.destroy();
  1218. }
  1219. if (E.stops) {
  1220. for (m = 0; m < E.stops.length; m++)
  1221. E.stops[m].destroy();
  1222. E.stops.length = 0, E.stops = void 0;
  1223. }
  1224. for (E.safeRemoveChild(X), g.styledMode || E.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  1225. X = L.parentGroup, E.safeRemoveChild(L.div), delete L.div, L = X;
  1226. E.alignTo && v(g.alignedObjects, E), s(E, function($, Q) {
  1227. E[Q] && E[Q].parentGroup === E && E[Q].destroy && E[Q].destroy(), delete E[Q];
  1228. });
  1229. }, W.prototype.destroyShadows = function() {
  1230. (this.shadows || []).forEach(function(E) {
  1231. this.safeRemoveChild(E);
  1232. }, this), this.shadows = void 0;
  1233. }, W.prototype.destroyTextPath = function(E, X) {
  1234. var g = E.getElementsByTagName("text")[0];
  1235. if (g) {
  1236. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  1237. for (E = this.textPathWrapper.element.childNodes; E.length; )
  1238. g.appendChild(E[0]);
  1239. g.removeChild(this.textPathWrapper.element);
  1240. }
  1241. } else
  1242. (E.getAttribute("dx") || E.getAttribute("dy")) && (E.removeAttribute("dx"), E.removeAttribute("dy"));
  1243. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  1244. }, W.prototype.dSetter = function(E, X, g) {
  1245. u(E) && (typeof E[0] == "string" && (E = this.renderer.pathToSegments(E)), this.pathArray = E, E = E.reduce(function(m, L, z) {
  1246. return L && L.join ? (z ? m + " " : "") + L.join(" ") : (L || "").toString();
  1247. }, "")), /(NaN| {2}|^$)/.test(E) && (E = "M 0 0"), this[X] !== E && (g.setAttribute(X, E), this[X] = E);
  1248. }, W.prototype.fadeOut = function(E) {
  1249. var X = this;
  1250. X.animate({ opacity: 0 }, { duration: n(E, 150), complete: function() {
  1251. X.attr({ y: -9999 }).hide();
  1252. } });
  1253. }, W.prototype.fillSetter = function(E, X, g) {
  1254. typeof E == "string" ? g.setAttribute(X, E) : E && this.complexColor(E, X, g);
  1255. }, W.prototype.getBBox = function(E, X) {
  1256. var g = this.renderer, m = this.element, L = this.styles, z = this.textStr, $ = g.cache, Q = g.cacheKeys, A = m.namespaceURI === this.SVG_NS;
  1257. X = n(X, this.rotation, 0);
  1258. var H = g.styledMode ? m && W.prototype.getStyle.call(m, "font-size") : L && L.fontSize, Y;
  1259. if (S(z)) {
  1260. var Z = z.toString();
  1261. Z.indexOf("<") === -1 && (Z = Z.replace(/[0-9]/g, "0")), Z += ["", X, H, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  1262. }
  1263. if (Z && !E && (Y = $[Z]), !Y) {
  1264. if (A || g.forExport) {
  1265. try {
  1266. var q = this.fakeTS && function(it) {
  1267. var et = m.querySelector(".highcharts-text-outline");
  1268. et && b(et, { display: it });
  1269. };
  1270. i(q) && q("none"), Y = m.getBBox ? h({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  1271. } catch {
  1272. }
  1273. (!Y || 0 > Y.width) && (Y = {
  1274. width: 0,
  1275. height: 0
  1276. });
  1277. } else
  1278. Y = this.htmlGetBBox();
  1279. if (g.isSVG && (E = Y.width, g = Y.height, A && (Y.height = g = { "11px,17": 14, "13px,20": 16 }[(H || "") + "," + Math.round(g)] || g), X && (A = X * j, Y.width = Math.abs(g * Math.sin(A)) + Math.abs(E * Math.cos(A)), Y.height = Math.abs(g * Math.cos(A)) + Math.abs(E * Math.sin(A)))), Z && (z === "" || 0 < Y.height)) {
  1280. for (; 250 < Q.length; )
  1281. delete $[Q.shift()];
  1282. $[Z] || Q.push(Z), $[Z] = Y;
  1283. }
  1284. }
  1285. return Y;
  1286. }, W.prototype.getStyle = function(E) {
  1287. return T.getComputedStyle(this.element || this, "").getPropertyValue(E);
  1288. }, W.prototype.hasClass = function(E) {
  1289. return ("" + this.attr("class")).split(" ").indexOf(E) !== -1;
  1290. }, W.prototype.hide = function(E) {
  1291. return E ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  1292. }, W.prototype.htmlGetBBox = function() {
  1293. return { height: 0, width: 0, x: 0, y: 0 };
  1294. }, W.prototype.init = function(E, X) {
  1295. this.element = X === "span" ? k(X) : w.createElementNS(this.SVG_NS, X), this.renderer = E, c(this, "afterInit");
  1296. }, W.prototype.invert = function(E) {
  1297. return this.inverted = E, this.updateTransform(), this;
  1298. }, W.prototype.on = function(E, X) {
  1299. var g = this.onEvents;
  1300. return g[E] && g[E](), g[E] = O(
  1301. this.element,
  1302. E,
  1303. X
  1304. ), this;
  1305. }, W.prototype.opacitySetter = function(E, X, g) {
  1306. this.opacity = E = Number(Number(E).toFixed(3)), g.setAttribute(X, E);
  1307. }, W.prototype.removeClass = function(E) {
  1308. return this.attr("class", ("" + this.attr("class")).replace(a(E) ? new RegExp("(^| )" + E + "( |$)") : E, " ").replace(/ +/g, " ").trim());
  1309. }, W.prototype.removeTextOutline = function() {
  1310. var E = this.element.querySelector("tspan.highcharts-text-outline");
  1311. E && this.safeRemoveChild(E);
  1312. }, W.prototype.safeRemoveChild = function(E) {
  1313. var X = E.parentNode;
  1314. X && X.removeChild(E);
  1315. }, W.prototype.setRadialReference = function(E) {
  1316. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  1317. return this.element.radialReference = E, X && X.radAttr && X.animate(this.renderer.getRadialAttr(E, X.radAttr)), this;
  1318. }, W.prototype.setTextPath = function(E, X) {
  1319. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, z = !1, $ = this.textPathWrapper, Q = !$;
  1320. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  1321. var A = N.filterUserAttributes(X.attributes);
  1322. if (E && X && X.enabled) {
  1323. $ && $.element.parentNode === null ? (Q = !0, $ = $.destroy()) : $ && this.removeTextOutline.call($.parentGroup), this.options && this.options.padding && (A.dx = -this.options.padding), $ || (this.textPathWrapper = $ = this.renderer.createElement("textPath"), z = !0);
  1324. var H = $.element;
  1325. if ((X = E.element.getAttribute("id")) || E.element.setAttribute("id", X = I()), Q)
  1326. for (m.setAttribute("y", 0), p(A.dx) && m.setAttribute("x", -A.dx), E = [].slice.call(m.childNodes), Q = 0; Q < E.length; Q++) {
  1327. var Y = E[Q];
  1328. Y.nodeType !== T.Node.TEXT_NODE && Y.nodeName !== "tspan" || H.appendChild(Y);
  1329. }
  1330. z && $ && $.add({ element: m }), H.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), S(A.dy) && (H.parentNode.setAttribute("dy", A.dy), delete A.dy), S(A.dx) && (H.parentNode.setAttribute("dx", A.dx), delete A.dx), s(A, function(Z, q) {
  1331. H.setAttribute(L[q] || q, Z);
  1332. }), g.removeAttribute("transform"), this.removeTextOutline.call($), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = x;
  1333. } else
  1334. $ && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, E), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  1335. return this;
  1336. }, W.prototype.shadow = function(E, X, g) {
  1337. var m = [], L = this.element, z = this.oldShadowOptions, $ = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, A;
  1338. if (E === !0 ? A = $ : typeof E == "object" && (A = h($, E)), A && (A && z && s(A, function(it, et) {
  1339. it !== z[et] && (Q = !0);
  1340. }), Q && this.destroyShadows(), this.oldShadowOptions = A), !A)
  1341. this.destroyShadows();
  1342. else if (!this.shadows) {
  1343. var H = A.opacity / A.width, Y = this.parentInverted ? "translate(" + A.offsetY + ", " + A.offsetX + ")" : "translate(" + A.offsetX + ", " + A.offsetY + ")";
  1344. for ($ = 1; $ <= A.width; $++) {
  1345. var Z = L.cloneNode(!1), q = 2 * A.width + 1 - 2 * $;
  1346. R(Z, { stroke: E.color || "#000000", "stroke-opacity": H * $, "stroke-width": q, transform: Y, fill: "none" }), Z.setAttribute("class", (Z.getAttribute("class") || "") + " highcharts-shadow"), g && (R(Z, "height", Math.max(R(Z, "height") - q, 0)), Z.cutHeight = q), X ? X.element.appendChild(Z) : L.parentNode && L.parentNode.insertBefore(Z, L), m.push(Z);
  1347. }
  1348. this.shadows = m;
  1349. }
  1350. return this;
  1351. }, W.prototype.show = function(E) {
  1352. return this.attr({ visibility: E ? "inherit" : "visible" });
  1353. }, W.prototype.strokeSetter = function(E, X, g) {
  1354. this[X] = E, this.stroke && this["stroke-width"] ? (W.prototype.fillSetter.call(this, this.stroke, "stroke", g), g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && E === 0 && this.hasStroke ? (g.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  1355. }, W.prototype.strokeWidth = function() {
  1356. if (!this.renderer.styledMode)
  1357. return this["stroke-width"] || 0;
  1358. var E = this.getStyle("stroke-width"), X = 0;
  1359. if (E.indexOf("px") === E.length - 2)
  1360. X = P(E);
  1361. else if (E !== "") {
  1362. var g = w.createElementNS(l, "rect");
  1363. R(g, { width: E, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  1364. }
  1365. return X;
  1366. }, W.prototype.symbolAttr = function(E) {
  1367. var X = this;
  1368. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  1369. X[g] = n(E[g], X[g]);
  1370. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  1371. }, W.prototype.textSetter = function(E) {
  1372. E !== this.textStr && (delete this.textPxLength, this.textStr = E, this.added && this.renderer.buildText(this));
  1373. }, W.prototype.titleSetter = function(E) {
  1374. var X = this.element, g = X.getElementsByTagName("title")[0] || w.createElementNS(this.SVG_NS, "title");
  1375. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(E, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  1376. /&gt;/g,
  1377. ">"
  1378. );
  1379. }, W.prototype.toFront = function() {
  1380. var E = this.element;
  1381. return E.parentNode.appendChild(E), this;
  1382. }, W.prototype.translate = function(E, X) {
  1383. return this.attr({ translateX: E, translateY: X });
  1384. }, W.prototype.updateShadows = function(E, X, g) {
  1385. var m = this.shadows;
  1386. if (m)
  1387. for (var L = m.length; L--; )
  1388. g.call(m[L], E === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : E === "d" ? this.d : X, E, m[L]);
  1389. }, W.prototype.updateTransform = function() {
  1390. var E = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, z = this.element, $ = this.translateX || 0, Q = this.translateY || 0;
  1391. g && ($ += this.width, Q += this.height), $ = ["translate(" + $ + "," + Q + ")"], S(L) && $.push("matrix(" + L.join(",") + ")"), g ? $.push("rotate(90) scale(-1,1)") : m && $.push("rotate(" + m + " " + n(this.rotationOriginX, z.getAttribute("x"), 0) + " " + n(this.rotationOriginY, z.getAttribute("y") || 0) + ")"), (S(E) || S(X)) && $.push("scale(" + n(E, 1) + " " + n(X, 1) + ")"), $.length && z.setAttribute("transform", $.join(" "));
  1392. }, W.prototype.visibilitySetter = function(E, X, g) {
  1393. E === "inherit" ? g.removeAttribute(X) : this[X] !== E && g.setAttribute(
  1394. X,
  1395. E
  1396. ), this[X] = E;
  1397. }, W.prototype.xGetter = function(E) {
  1398. return this.element.nodeName === "circle" && (E === "x" ? E = "cx" : E === "y" && (E = "cy")), this._defaultGetter(E);
  1399. }, W.prototype.zIndexSetter = function(E, X) {
  1400. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, z = this.element;
  1401. g = L === g.box;
  1402. var $ = !1, Q = this.added, A;
  1403. if (S(E) ? (z.setAttribute("data-z-index", E), E = +E, this[X] === E && (Q = !1)) : S(this[X]) && z.removeAttribute("data-z-index"), this[X] = E, Q) {
  1404. for ((E = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, A = X.length - 1; 0 <= A && !$; A--) {
  1405. m = X[A], Q = m.getAttribute("data-z-index");
  1406. var H = !S(Q);
  1407. m !== z && (0 > E && H && !g && !A ? (L.insertBefore(z, X[A]), $ = !0) : (P(Q) <= E || H && (!S(E) || 0 <= E)) && (L.insertBefore(z, X[A + 1] || null), $ = !0));
  1408. }
  1409. $ || (L.insertBefore(z, X[g ? 3 : 0] || null), $ = !0);
  1410. }
  1411. return $;
  1412. }, W;
  1413. }(), y.prototype["stroke-widthSetter"] = y.prototype.strokeSetter, y.prototype.yGetter = y.prototype.xGetter, y.prototype.matrixSetter = y.prototype.rotationOriginXSetter = y.prototype.rotationOriginYSetter = y.prototype.rotationSetter = y.prototype.scaleXSetter = y.prototype.scaleYSetter = y.prototype.translateXSetter = y.prototype.translateYSetter = y.prototype.verticalAlignSetter = function(W, E) {
  1414. this[E] = W, this.doTransform = !0;
  1415. }, y;
  1416. }), C(o, "Core/Renderer/RendererRegistry.js", [o["Core/Globals.js"]], function(y) {
  1417. var N;
  1418. return function(_) {
  1419. _.rendererTypes = {};
  1420. var U;
  1421. _.getRendererType = function(G) {
  1422. return G === void 0 && (G = U), _.rendererTypes[G] || _.rendererTypes[U];
  1423. }, _.registerRendererType = function(G, V, F) {
  1424. _.rendererTypes[G] = V, (!U || F) && (U = G, y.Renderer = V);
  1425. };
  1426. }(N || (N = {})), N;
  1427. }), C(
  1428. o,
  1429. "Core/Renderer/SVG/SVGLabel.js",
  1430. [o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]],
  1431. function(y, N) {
  1432. var _ = this && this.__extends || function() {
  1433. var w = function(x, f) {
  1434. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, T) {
  1435. l.__proto__ = T;
  1436. } || function(l, T) {
  1437. for (var O in T)
  1438. T.hasOwnProperty(O) && (l[O] = T[O]);
  1439. }, w(x, f);
  1440. };
  1441. return function(x, f) {
  1442. function l() {
  1443. this.constructor = x;
  1444. }
  1445. w(x, f), x.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
  1446. };
  1447. }(), U = N.defined, G = N.extend, V = N.isNumber, F = N.merge, B = N.pick, j = N.removeEvent;
  1448. return function(w) {
  1449. function x(f, l, T, O, R, k, b, S, v, h) {
  1450. var c = w.call(this) || this;
  1451. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(f, "g"), c.textStr = l, c.x = T, c.y = O, c.anchorX = k, c.anchorY = b, c.baseline = v, c.className = h, c.addClass(h === "button" ? "highcharts-no-tooltip" : "highcharts-label"), h && c.addClass("highcharts-" + h), c.text = f.text(void 0, 0, 0, S).attr({ zIndex: 1 });
  1452. var u;
  1453. return typeof R == "string" && ((u = /^url\((.*?)\)$/.test(R)) || c.renderer.symbols[R]) && (c.symbolKey = R), c.bBox = x.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = f.styledMode || u, c.deferredAttr = {}, c.alignFactor = 0, c;
  1454. }
  1455. return _(x, w), x.prototype.alignSetter = function(f) {
  1456. f = { left: 0, center: 0.5, right: 1 }[f], f !== this.alignFactor && (this.alignFactor = f, this.bBox && V(this.xSetting) && this.attr({ x: this.xSetting }));
  1457. }, x.prototype.anchorXSetter = function(f, l) {
  1458. this.anchorX = f, this.boxAttr(l, Math.round(f) - this.getCrispAdjust() - this.xSetting);
  1459. }, x.prototype.anchorYSetter = function(f, l) {
  1460. this.anchorY = f, this.boxAttr(l, f - this.ySetting);
  1461. }, x.prototype.boxAttr = function(f, l) {
  1462. this.box ? this.box.attr(f, l) : this.deferredAttr[f] = l;
  1463. }, x.prototype.css = function(f) {
  1464. if (f) {
  1465. var l = {};
  1466. f = F(f), x.textProps.forEach(function(O) {
  1467. typeof f[O] < "u" && (l[O] = f[O], delete f[O]);
  1468. }), this.text.css(l);
  1469. var T = "width" in l;
  1470. "fontSize" in l || "fontWeight" in l ? this.updateTextPadding() : T && this.updateBoxSize();
  1471. }
  1472. return y.prototype.css.call(this, f);
  1473. }, x.prototype.destroy = function() {
  1474. j(this.element, "mouseenter"), j(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  1475. }, x.prototype.fillSetter = function(f, l) {
  1476. f && (this.needsBox = !0), this.fill = f, this.boxAttr(l, f);
  1477. }, x.prototype.getBBox = function() {
  1478. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  1479. var f = this.padding, l = B(this.paddingLeft, f);
  1480. return { width: this.width, height: this.height, x: this.bBox.x - l, y: this.bBox.y - f };
  1481. }, x.prototype.getCrispAdjust = function() {
  1482. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  1483. this["stroke-width"],
  1484. 10
  1485. ) : 0) % 2 / 2;
  1486. }, x.prototype.heightSetter = function(f) {
  1487. this.heightSetting = f;
  1488. }, x.prototype.onAdd = function() {
  1489. var f = this.textStr;
  1490. this.text.add(this), this.attr({ text: U(f) ? f : "", x: this.x, y: this.y }), this.box && U(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  1491. }, x.prototype.paddingSetter = function(f, l) {
  1492. V(f) ? f !== this[l] && (this[l] = f, this.updateTextPadding()) : this[l] = void 0;
  1493. }, x.prototype.rSetter = function(f, l) {
  1494. this.boxAttr(l, f);
  1495. }, x.prototype.shadow = function(f) {
  1496. return f && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(f)), this;
  1497. }, x.prototype.strokeSetter = function(f, l) {
  1498. this.stroke = f, this.boxAttr(l, f);
  1499. }, x.prototype["stroke-widthSetter"] = function(f, l) {
  1500. f && (this.needsBox = !0), this["stroke-width"] = f, this.boxAttr(l, f);
  1501. }, x.prototype["text-alignSetter"] = function(f) {
  1502. this.textAlign = f;
  1503. }, x.prototype.textSetter = function(f) {
  1504. typeof f < "u" && this.text.attr({ text: f }), this.updateTextPadding();
  1505. }, x.prototype.updateBoxSize = function() {
  1506. var f = this.text.element.style, l = {}, T = this.padding, O = this.bBox = V(this.widthSetting) && V(this.heightSetting) && !this.textAlign || !U(this.text.textStr) ? x.emptyBBox : this.text.getBBox();
  1507. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * T, f = this.renderer.fontMetrics(f && f.fontSize, this.text), this.baselineOffset = T + Math.min((this.text.firstLineMetrics || f).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - f.h) / 2), this.needsBox && (this.box || (T = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), T.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), T.add(this)), T = this.getCrispAdjust(), l.x = T, l.y = (this.baseline ? -this.baselineOffset : 0) + T, l.width = Math.round(this.width), l.height = Math.round(this.height), this.box.attr(G(l, this.deferredAttr)), this.deferredAttr = {});
  1508. }, x.prototype.updateTextPadding = function() {
  1509. var f = this.text;
  1510. this.updateBoxSize();
  1511. var l = this.baseline ? 0 : this.baselineOffset, T = B(this.paddingLeft, this.padding);
  1512. U(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (T += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (T !== f.x || l !== f.y) && (f.attr("x", T), f.hasBoxWidthChanged && (this.bBox = f.getBBox(!0)), typeof l < "u" && f.attr("y", l)), f.x = T, f.y = l;
  1513. }, x.prototype.widthSetter = function(f) {
  1514. this.widthSetting = V(f) ? f : void 0;
  1515. }, x.prototype.getPaddedWidth = function() {
  1516. var f = this.padding, l = B(this.paddingLeft, f);
  1517. return f = B(this.paddingRight, f), (this.widthSetting || this.bBox.width || 0) + l + f;
  1518. }, x.prototype.xSetter = function(f) {
  1519. this.x = f, this.alignFactor && (f -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(f), this.attr("translateX", this.xSetting);
  1520. }, x.prototype.ySetter = function(f) {
  1521. this.ySetting = this.y = Math.round(f), this.attr("translateY", this.ySetting);
  1522. }, x.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, x.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), x;
  1523. }(y);
  1524. }
  1525. ), C(
  1526. o,
  1527. "Core/Renderer/SVG/Symbols.js",
  1528. [o["Core/Utilities.js"]],
  1529. function(y) {
  1530. function N(B, j, w, x, f) {
  1531. var l = [];
  1532. if (f) {
  1533. var T = f.start || 0, O = F(f.r, w);
  1534. w = F(f.r, x || w);
  1535. var R = (f.end || 0) - 1e-3;
  1536. x = f.innerR;
  1537. var k = F(f.open, 1e-3 > Math.abs((f.end || 0) - T - 2 * Math.PI)), b = Math.cos(T), S = Math.sin(T), v = Math.cos(R), h = Math.sin(R);
  1538. T = F(f.longArc, 1e-3 > R - T - Math.PI ? 0 : 1), l.push(["M", B + O * b, j + w * S], ["A", O, w, 0, T, F(f.clockwise, 1), B + O * v, j + w * h]), G(x) && l.push(k ? ["M", B + x * v, j + x * h] : ["L", B + x * v, j + x * h], ["A", x, x, 0, T, G(f.clockwise) ? 1 - f.clockwise : 0, B + x * b, j + x * S]), k || l.push(["Z"]);
  1539. }
  1540. return l;
  1541. }
  1542. function _(B, j, w, x, f) {
  1543. return f && f.r ? U(B, j, w, x, f) : [["M", B, j], ["L", B + w, j], ["L", B + w, j + x], ["L", B, j + x], ["Z"]];
  1544. }
  1545. function U(B, j, w, x, f) {
  1546. return f = f && f.r || 0, [["M", B + f, j], ["L", B + w - f, j], ["C", B + w, j, B + w, j, B + w, j + f], ["L", B + w, j + x - f], ["C", B + w, j + x, B + w, j + x, B + w - f, j + x], ["L", B + f, j + x], ["C", B, j + x, B, j + x, B, j + x - f], ["L", B, j + f], ["C", B, j, B, j, B + f, j]];
  1547. }
  1548. var G = y.defined, V = y.isNumber, F = y.pick;
  1549. return { arc: N, callout: function(B, j, w, x, f) {
  1550. var l = Math.min(f && f.r || 0, w, x), T = l + 6, O = f && f.anchorX;
  1551. f = f && f.anchorY || 0;
  1552. var R = U(B, j, w, x, { r: l });
  1553. return V(O) && (B + O >= w ? f > j + T && f < j + x - T ? R.splice(3, 1, ["L", B + w, f - 6], ["L", B + w + 6, f], ["L", B + w, f + 6], ["L", B + w, j + x - l]) : R.splice(3, 1, ["L", B + w, x / 2], ["L", O, f], ["L", B + w, x / 2], ["L", B + w, j + x - l]) : 0 >= B + O ? f > j + T && f < j + x - T ? R.splice(7, 1, ["L", B, f + 6], ["L", B - 6, f], ["L", B, f - 6], ["L", B, j + l]) : R.splice(7, 1, ["L", B, x / 2], ["L", O, f], ["L", B, x / 2], ["L", B, j + l]) : f && f > x && O > B + T && O < B + w - T ? R.splice(5, 1, ["L", O + 6, j + x], ["L", O, j + x + 6], ["L", O - 6, j + x], ["L", B + l, j + x]) : f && 0 > f && O > B + T && O < B + w - T && R.splice(1, 1, ["L", O - 6, j], ["L", O, j - 6], ["L", O + 6, j], ["L", w - l, j])), R;
  1554. }, circle: function(B, j, w, x) {
  1555. return N(B + w / 2, j + x / 2, w / 2, x / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  1556. }, diamond: function(B, j, w, x) {
  1557. return [["M", B + w / 2, j], ["L", B + w, j + x / 2], ["L", B + w / 2, j + x], ["L", B, j + x / 2], ["Z"]];
  1558. }, rect: _, roundedRect: U, square: _, triangle: function(B, j, w, x) {
  1559. return [["M", B + w / 2, j], ["L", B + w, j + x], ["L", B, j + x], ["Z"]];
  1560. }, "triangle-down": function(B, j, w, x) {
  1561. return [["M", B, j], ["L", B + w, j], ["L", B + w / 2, j + x], ["Z"]];
  1562. } };
  1563. }
  1564. ), C(o, "Core/Renderer/SVG/TextBuilder.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N, _) {
  1565. var U = N.doc, G = N.SVG_NS, V = N.win, F = _.attr, B = _.isString, j = _.objectEach, w = _.pick;
  1566. return function() {
  1567. function x(f) {
  1568. var l = f.styles;
  1569. this.renderer = f.renderer, this.svgElement = f, this.width = f.textWidth, this.textLineHeight = l && l.lineHeight, this.textOutline = l && l.textOutline, this.ellipsis = !(!l || l.textOverflow !== "ellipsis"), this.noWrap = !(!l || l.whiteSpace !== "nowrap"), this.fontSize = l && l.fontSize;
  1570. }
  1571. return x.prototype.buildSVG = function() {
  1572. var f = this.svgElement, l = f.element, T = f.renderer, O = w(f.textStr, "").toString(), R = O.indexOf("<") !== -1, k = l.childNodes;
  1573. T = this.width && !f.added && T.box;
  1574. var b = /<br.*?>/g, S = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  1575. if (S !== f.textCache) {
  1576. for (f.textCache = S, delete f.actualWidth, S = k.length; S--; )
  1577. l.removeChild(k[S]);
  1578. R || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (T && T.appendChild(l), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(f.element), this.modifyDOM(), this.ellipsis && (l.textContent || "").indexOf("…") !== -1 && f.attr(
  1579. "title",
  1580. this.unescapeEntities(f.textStr || "", ["&lt;", "&gt;"])
  1581. ), T && T.removeChild(l)) : l.appendChild(U.createTextNode(this.unescapeEntities(O))), B(this.textOutline) && f.applyTextOutline && f.applyTextOutline(this.textOutline);
  1582. }
  1583. }, x.prototype.modifyDOM = function() {
  1584. var f = this, l = this.svgElement, T = F(l.element, "x");
  1585. l.firstLineMetrics = void 0;
  1586. for (var O; (O = l.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  1587. l.element.removeChild(O);
  1588. [].forEach.call(l.element.querySelectorAll("tspan.highcharts-br"), function(S, v) {
  1589. S.nextSibling && S.previousSibling && (v === 0 && S.previousSibling.nodeType === 1 && (l.firstLineMetrics = l.renderer.fontMetrics(void 0, S.previousSibling)), F(S, { dy: f.getLineHeight(S.nextSibling), x: T }));
  1590. });
  1591. var R = this.width || 0;
  1592. if (R) {
  1593. var k = function(S, v) {
  1594. var h = S.textContent || "", c = h.replace(/([^\^])-/g, "$1- ").split(" "), u = !f.noWrap && (1 < c.length || 1 < l.element.childNodes.length), i = f.getLineHeight(v), p = 0, a = l.actualWidth;
  1595. if (f.ellipsis)
  1596. h && f.truncate(S, h, void 0, 0, Math.max(0, R - parseInt(f.fontSize || 12, 10)), function(t, s) {
  1597. return t.substring(
  1598. 0,
  1599. s
  1600. ) + "…";
  1601. });
  1602. else if (u) {
  1603. for (h = [], u = []; v.firstChild && v.firstChild !== S; )
  1604. u.push(v.firstChild), v.removeChild(v.firstChild);
  1605. for (; c.length; )
  1606. c.length && !f.noWrap && 0 < p && (h.push(S.textContent || ""), S.textContent = c.join(" ").replace(/- /g, "-")), f.truncate(S, void 0, c, p === 0 && a || 0, R, function(t, s) {
  1607. return c.slice(0, s).join(" ").replace(/- /g, "-");
  1608. }), a = l.actualWidth, p++;
  1609. u.forEach(function(t) {
  1610. v.insertBefore(t, S);
  1611. }), h.forEach(function(t) {
  1612. v.insertBefore(U.createTextNode(t), S), t = U.createElementNS(G, "tspan"), t.textContent = "​", F(t, { dy: i, x: T }), v.insertBefore(t, S);
  1613. });
  1614. }
  1615. }, b = function(S) {
  1616. [].slice.call(S.childNodes).forEach(function(v) {
  1617. v.nodeType === V.Node.TEXT_NODE ? k(v, S) : (v.className.baseVal.indexOf("highcharts-br") !== -1 && (l.actualWidth = 0), b(v));
  1618. });
  1619. };
  1620. b(l.element);
  1621. }
  1622. }, x.prototype.getLineHeight = function(f) {
  1623. var l;
  1624. return f = f.nodeType === V.Node.TEXT_NODE ? f.parentElement : f, this.renderer.styledMode || (l = f && /(px|em)$/.test(f.style.fontSize) ? f.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  1625. this.textLineHeight.toString(),
  1626. 10
  1627. ) : this.renderer.fontMetrics(l, f || this.svgElement.element).h;
  1628. }, x.prototype.modifyTree = function(f) {
  1629. var l = this, T = function(O, R) {
  1630. var k = O.attributes;
  1631. k = k === void 0 ? {} : k;
  1632. var b = O.children, S = O.tagName, v = l.renderer.styledMode;
  1633. S === "b" || S === "strong" ? v ? k.class = "highcharts-strong" : k.style = "font-weight:bold;" + (k.style || "") : (S === "i" || S === "em") && (v ? k.class = "highcharts-emphasized" : k.style = "font-style:italic;" + (k.style || "")), B(k.style) && (k.style = k.style.replace(/(;| |^)color([ :])/, "$1fill$2")), S === "br" ? (k.class = "highcharts-br", O.textContent = "​", (R = f[R + 1]) && R.textContent && (R.textContent = R.textContent.replace(/^ +/gm, ""))) : S === "a" && b && b.some(function(h) {
  1634. return h.tagName === "#text";
  1635. }) && (O.children = [{ children: b, tagName: "tspan" }]), S !== "#text" && S !== "a" && (O.tagName = "tspan"), O.attributes = k, b && b.filter(function(h) {
  1636. return h.tagName !== "#text";
  1637. }).forEach(T);
  1638. };
  1639. f.forEach(T);
  1640. }, x.prototype.truncate = function(f, l, T, O, R, k) {
  1641. var b = this.svgElement, S = b.renderer, v = b.rotation, h = [], c = T ? 1 : 0, u = (l || T || "").length, i = u, p, a = function(s, n) {
  1642. n = n || s;
  1643. var P = f.parentNode;
  1644. if (P && typeof h[n] > "u")
  1645. if (P.getSubStringLength)
  1646. try {
  1647. h[n] = O + P.getSubStringLength(0, T ? n + 1 : n);
  1648. } catch {
  1649. }
  1650. else
  1651. S.getSpanWidth && (f.textContent = k(l || T, s), h[n] = O + S.getSpanWidth(b, f));
  1652. return h[n];
  1653. };
  1654. b.rotation = 0;
  1655. var t = a(f.textContent.length);
  1656. if (O + t > R) {
  1657. for (; c <= u; )
  1658. i = Math.ceil((c + u) / 2), T && (p = k(T, i)), t = a(i, p && p.length - 1), c === u ? c = u + 1 : t > R ? u = i - 1 : c = i;
  1659. u === 0 ? f.textContent = "" : l && u === l.length - 1 || (f.textContent = p || k(l || T, i));
  1660. }
  1661. T && T.splice(0, i), b.actualWidth = t, b.rotation = v;
  1662. }, x.prototype.unescapeEntities = function(f, l) {
  1663. return j(this.renderer.escapes, function(T, O) {
  1664. l && l.indexOf(T) !== -1 || (f = f.toString().replace(new RegExp(T, "g"), O));
  1665. }), f;
  1666. }, x;
  1667. }();
  1668. }), C(o, "Core/Renderer/SVG/SVGRenderer.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Renderer/RendererRegistry.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Renderer/SVG/SVGLabel.js"], o["Core/Renderer/SVG/Symbols.js"], o["Core/Renderer/SVG/TextBuilder.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V, F, B, j) {
  1669. var w = _.charts, x = _.deg2rad, f = _.doc, l = _.isFirefox, T = _.isMS, O = _.isWebKit, R = _.noop, k = _.SVG_NS, b = _.symbolSizes, S = _.win, v = j.addEvent, h = j.attr, c = j.createElement, u = j.css, i = j.defined, p = j.destroyObjectProperties, a = j.extend, t = j.isArray, s = j.isNumber, n = j.isObject, P = j.isString, D = j.merge, I = j.pick, W = j.pInt, E = j.uniqueKey, X;
  1670. return _ = function() {
  1671. function g(m, L, z, $, Q, A, H) {
  1672. 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(m, L, z, $, Q, A, H);
  1673. }
  1674. return g.prototype.init = function(m, L, z, $, Q, A, H) {
  1675. var Y = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), Z = Y.element;
  1676. H || Y.css(this.getStyle($)), m.appendChild(Z), h(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && h(Z, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = Z, this.boxWrapper = Y, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = A, this.forExport = Q, this.styledMode = H, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, z, !1);
  1677. var q;
  1678. l && m.getBoundingClientRect && (L = function() {
  1679. u(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), u(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  1680. }, L(), this.unSubPixelFix = v(S, "resize", L));
  1681. }, g.prototype.definition = function(m) {
  1682. return new y([m]).addToDOM(this.defs.element);
  1683. }, g.prototype.getReferenceURL = function() {
  1684. if ((l || O) && f.getElementsByTagName("base").length) {
  1685. if (!i(X)) {
  1686. var m = E();
  1687. m = new y([{ tagName: "svg", attributes: { width: 8, height: 8 }, children: [{ tagName: "defs", children: [{ tagName: "clipPath", attributes: { id: m }, children: [{ tagName: "rect", attributes: { width: 4, height: 4 } }] }] }, { tagName: "rect", attributes: { id: "hitme", width: 8, height: 8, "clip-path": "url(#" + m + ")", fill: "rgba(0,0,0,0.001)" } }] }]).addToDOM(f.body), u(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  1688. var L = f.elementFromPoint(6, 6);
  1689. X = (L && L.id) === "hitme", f.body.removeChild(m);
  1690. }
  1691. if (X)
  1692. return S.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  1693. }
  1694. return "";
  1695. }, g.prototype.getStyle = function(m) {
  1696. return this.style = a({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  1697. }, g.prototype.setStyle = function(m) {
  1698. this.boxWrapper.css(this.getStyle(m));
  1699. }, g.prototype.isHidden = function() {
  1700. return !this.boxWrapper.getBBox().width;
  1701. }, g.prototype.destroy = function() {
  1702. var m = this.defs;
  1703. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), p(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  1704. }, g.prototype.createElement = function(m) {
  1705. var L = new this.Element();
  1706. return L.init(this, m), L;
  1707. }, g.prototype.getRadialAttr = function(m, L) {
  1708. return { cx: m[0] - m[2] / 2 + (L.cx || 0) * m[2], cy: m[1] - m[2] / 2 + (L.cy || 0) * m[2], r: (L.r || 0) * m[2] };
  1709. }, g.prototype.buildText = function(m) {
  1710. new B(m).buildSVG();
  1711. }, g.prototype.getContrast = function(m) {
  1712. return m = N.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  1713. }, g.prototype.button = function(m, L, z, $, Q, A, H, Y, Z, q) {
  1714. var it = this.label(m, L, z, Z, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? D(Q) : {};
  1715. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(D({ padding: 8, r: 2 }, rt)), !et) {
  1716. rt = D({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  1717. var ct = rt.style;
  1718. delete rt.style, A = D(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(A || {}));
  1719. var gt = A.style;
  1720. delete A.style, H = D(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(H || {}));
  1721. var dt = H.style;
  1722. delete H.style, Y = D(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(Y || {}));
  1723. var ht = Y.style;
  1724. delete Y.style;
  1725. }
  1726. return v(it.element, T ? "mouseover" : "mouseenter", function() {
  1727. nt !== 3 && it.setState(1);
  1728. }), v(it.element, T ? "mouseout" : "mouseleave", function() {
  1729. nt !== 3 && it.setState(nt);
  1730. }), it.setState = function(at) {
  1731. at !== 1 && (it.state = nt = at), it.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][at || 0]), et || it.attr([rt, A, H, Y][at || 0]).css([ct, gt, dt, ht][at || 0]);
  1732. }, et || it.attr(rt).css(a({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  1733. return at.stopPropagation();
  1734. }).on("click", function(at) {
  1735. nt !== 3 && $.call(it, at);
  1736. });
  1737. }, g.prototype.crispLine = function(m, L, z) {
  1738. z === void 0 && (z = "round");
  1739. var $ = m[0], Q = m[1];
  1740. return i($[1]) && $[1] === Q[1] && ($[1] = Q[1] = Math[z]($[1]) - L % 2 / 2), i($[2]) && $[2] === Q[2] && ($[2] = Q[2] = Math[z]($[2]) + L % 2 / 2), m;
  1741. }, g.prototype.path = function(m) {
  1742. var L = this.styledMode ? {} : { fill: "none" };
  1743. return t(m) ? L.d = m : n(m) && a(L, m), this.createElement("path").attr(L);
  1744. }, g.prototype.circle = function(m, L, z) {
  1745. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: z }, L = this.createElement("circle"), L.xSetter = L.ySetter = function($, Q, A) {
  1746. A.setAttribute("c" + Q, $);
  1747. }, L.attr(m);
  1748. }, g.prototype.arc = function(m, L, z, $, Q, A) {
  1749. return n(m) ? ($ = m, L = $.y, z = $.r, m = $.x) : $ = { innerR: $, start: Q, end: A }, m = this.symbol("arc", m, L, z, z, $), m.r = z, m;
  1750. }, g.prototype.rect = function(m, L, z, $, Q, A) {
  1751. Q = n(m) ? m.r : Q;
  1752. var H = this.createElement("rect");
  1753. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(z, 0), height: Math.max($, 0) }, this.styledMode || (typeof A < "u" && (m["stroke-width"] = A, m = H.crisp(m)), m.fill = "none"), Q && (m.r = Q), H.rSetter = function(Y, Z, q) {
  1754. H.r = Y, h(q, { rx: Y, ry: Y });
  1755. }, H.rGetter = function() {
  1756. return H.r || 0;
  1757. }, H.attr(m);
  1758. }, g.prototype.setSize = function(m, L, z) {
  1759. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  1760. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  1761. }, duration: I(
  1762. z,
  1763. !0
  1764. ) ? void 0 : 0 }), this.alignElements();
  1765. }, g.prototype.g = function(m) {
  1766. var L = this.createElement("g");
  1767. return m ? L.attr({ class: "highcharts-" + m }) : L;
  1768. }, g.prototype.image = function(m, L, z, $, Q, A) {
  1769. var H = { preserveAspectRatio: "none" }, Y = function(q, it) {
  1770. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  1771. };
  1772. s(L) && (H.x = L), s(z) && (H.y = z), s($) && (H.width = $), s(Q) && (H.height = Q);
  1773. var Z = this.createElement("image").attr(H);
  1774. return L = function(q) {
  1775. Y(Z.element, m), A.call(Z, q);
  1776. }, A ? (Y(
  1777. Z.element,
  1778. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  1779. ), z = new S.Image(), v(z, "load", L), z.src = m, z.complete && L({})) : Y(Z.element, m), Z;
  1780. }, g.prototype.symbol = function(m, L, z, $, Q, A) {
  1781. var H = this, Y = /^url\((.*?)\)$/, Z = Y.test(m), q = !Z && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  1782. if (it) {
  1783. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(z || 0), $ || 0, Q || 0, A));
  1784. var nt = this.path(et);
  1785. H.styledMode || nt.attr("fill", "none"), a(nt, { symbolName: q || void 0, x: L, y: z, width: $, height: Q }), A && a(nt, A);
  1786. } else if (Z) {
  1787. var rt = m.match(Y)[1], ct = nt = this.image(rt);
  1788. ct.imgwidth = I(b[rt] && b[rt].width, A && A.width), ct.imgheight = I(b[rt] && b[rt].height, A && A.height);
  1789. var gt = function(dt) {
  1790. return dt.attr({ width: dt.width, height: dt.height });
  1791. };
  1792. ["width", "height"].forEach(function(dt) {
  1793. ct[dt + "Setter"] = function(ht, at) {
  1794. var J = this["img" + at];
  1795. this[at] = ht, i(J) && (A && A.backgroundSize === "within" && this.width && this.height && (J = Math.round(J * Math.min(this.width / this.imgwidth, this.height / this.imgheight))), this.element && this.element.setAttribute(at, J), this.alignByTranslate || (ht = ((this[at] || 0) - J) / 2, this.attr(at === "width" ? { translateX: ht } : { translateY: ht })));
  1796. };
  1797. }), i(L) && ct.attr({ x: L, y: z }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  1798. var dt = w[H.chartIndex];
  1799. this.width === 0 && (u(this, { position: "absolute", top: "-999em" }), f.body.appendChild(this)), b[rt] = { width: this.width, height: this.height }, ct.imgwidth = this.width, ct.imgheight = this.height, ct.element && gt(ct), this.parentNode && this.parentNode.removeChild(this), H.imgCount--, !H.imgCount && dt && !dt.hasLoaded && dt.onload();
  1800. }, src: rt }), this.imgCount++);
  1801. }
  1802. return nt;
  1803. }, g.prototype.clipRect = function(m, L, z, $) {
  1804. var Q = E() + "-", A = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  1805. return m = this.rect(m, L, z, $, 0).add(A), m.id = Q, m.clipPath = A, m.count = 0, m;
  1806. }, g.prototype.text = function(m, L, z, $) {
  1807. var Q = {};
  1808. return $ && (this.allowHTML || !this.forExport) ? this.html(m, L, z) : (Q.x = Math.round(L || 0), z && (Q.y = Math.round(z)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!$ || this.forExport && !this.allowHTML) && (m.xSetter = function(A, H, Y) {
  1809. for (var Z = Y.getElementsByTagName("tspan"), q = Y.getAttribute(H), it = 0, et; it < Z.length; it++)
  1810. et = Z[it], et.getAttribute(H) === q && et.setAttribute(H, A);
  1811. Y.setAttribute(H, A);
  1812. }), m);
  1813. }, g.prototype.fontMetrics = function(m, L) {
  1814. return m = !this.styledMode && /px/.test(m) || !S.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && G.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? W(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  1815. }, g.prototype.rotCorr = function(m, L, z) {
  1816. var $ = m;
  1817. return L && z && ($ = Math.max($ * Math.cos(L * x), 4)), { x: -m / 3 * Math.sin(L * x), y: $ };
  1818. }, g.prototype.pathToSegments = function(m) {
  1819. for (var L = [], z = [], $ = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  1820. P(z[0]) && s(m[Q]) && z.length === $[z[0].toUpperCase()] && m.splice(Q, 0, z[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (z.length && L.push(z.slice(0)), z.length = 0), z.push(m[Q]);
  1821. return L.push(z.slice(0)), L;
  1822. }, g.prototype.label = function(m, L, z, $, Q, A, H, Y, Z) {
  1823. return new V(this, m, L, z, $, Q, A, H, Y, Z);
  1824. }, g.prototype.alignElements = function() {
  1825. this.alignedObjects.forEach(function(m) {
  1826. return m.align();
  1827. });
  1828. }, g;
  1829. }(), a(_.prototype, { Element: G, SVG_NS: k, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: F, draw: R }), U.registerRendererType("svg", _, !0), _;
  1830. }), C(o, "Core/Renderer/HTML/HTMLElement.js", [o["Core/Globals.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]], function(y, N, _) {
  1831. var U = this && this.__extends || function() {
  1832. var T = function(O, R) {
  1833. return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(k, b) {
  1834. k.__proto__ = b;
  1835. } || function(k, b) {
  1836. for (var S in b)
  1837. b.hasOwnProperty(S) && (k[S] = b[S]);
  1838. }, T(O, R);
  1839. };
  1840. return function(O, R) {
  1841. function k() {
  1842. this.constructor = O;
  1843. }
  1844. T(O, R), O.prototype = R === null ? Object.create(R) : (k.prototype = R.prototype, new k());
  1845. };
  1846. }(), G = y.isFirefox, V = y.isMS, F = y.isWebKit, B = y.win, j = _.css, w = _.defined, x = _.extend, f = _.pick, l = _.pInt;
  1847. return function(T) {
  1848. function O() {
  1849. return T !== null && T.apply(this, arguments) || this;
  1850. }
  1851. return U(O, T), O.compose = function(R) {
  1852. if (O.composedClasses.indexOf(R) === -1) {
  1853. O.composedClasses.push(R);
  1854. var k = O.prototype, b = R.prototype;
  1855. b.getSpanCorrection = k.getSpanCorrection, b.htmlCss = k.htmlCss, b.htmlGetBBox = k.htmlGetBBox, b.htmlUpdateTransform = k.htmlUpdateTransform, b.setSpanRotation = k.setSpanRotation;
  1856. }
  1857. return R;
  1858. }, O.prototype.getSpanCorrection = function(R, k, b) {
  1859. this.xCorr = -R * b, this.yCorr = -k;
  1860. }, O.prototype.htmlCss = function(R) {
  1861. var k = this.element.tagName === "SPAN" && R && "width" in R, b = f(k && R.width, void 0);
  1862. if (k) {
  1863. delete R.width, this.textWidth = b;
  1864. var S = !0;
  1865. }
  1866. return R && R.textOverflow === "ellipsis" && (R.whiteSpace = "nowrap", R.overflow = "hidden"), this.styles = x(this.styles, R), j(this.element, R), S && this.htmlUpdateTransform(), this;
  1867. }, O.prototype.htmlGetBBox = function() {
  1868. var R = this.element;
  1869. return { x: R.offsetLeft, y: R.offsetTop, width: R.offsetWidth, height: R.offsetHeight };
  1870. }, O.prototype.htmlUpdateTransform = function() {
  1871. if (this.added) {
  1872. var R = this.renderer, k = this.element, b = this.translateX || 0, S = this.translateY || 0, v = this.x || 0, h = this.y || 0, c = this.textAlign || "left", u = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  1873. if (i = i && i.whiteSpace, j(k, { marginLeft: b, marginTop: S }), !R.styledMode && this.shadows && this.shadows.forEach(function(P) {
  1874. j(P, { marginLeft: b + 1, marginTop: S + 1 });
  1875. }), this.inverted && [].forEach.call(k.childNodes, function(P) {
  1876. R.invertChild(P, k);
  1877. }), k.tagName === "SPAN") {
  1878. var p = this.rotation, a = this.textWidth && l(this.textWidth), t = [p, c, k.innerHTML, this.textWidth, this.textAlign].join(), s = void 0;
  1879. if (s = !1, a !== this.oldTextWidth) {
  1880. if (this.textPxLength)
  1881. var n = this.textPxLength;
  1882. else
  1883. j(k, { width: "", whiteSpace: i || "nowrap" }), n = k.offsetWidth;
  1884. (a > this.oldTextWidth || n > a) && (/[ \-]/.test(k.textContent || k.innerText) || k.style.textOverflow === "ellipsis") && (j(k, { width: n > a || p ? a + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = a, s = !0);
  1885. }
  1886. this.hasBoxWidthChanged = s, t !== this.cTT && (s = R.fontMetrics(k.style.fontSize, k).b, !w(p) || p === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(p, u, s), this.getSpanCorrection(!w(p) && this.textPxLength || k.offsetWidth, s, u, p, c)), j(k, { left: v + (this.xCorr || 0) + "px", top: h + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = p, this.oldAlign = c;
  1887. }
  1888. } else
  1889. this.alignOnAdd = !0;
  1890. }, O.prototype.setSpanRotation = function(R, k, b) {
  1891. var S = {}, v = V && !/Edge/.test(B.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : G ? "MozTransform" : B.opera ? "-o-transform" : void 0;
  1892. v && (S[v] = S.transform = "rotate(" + R + "deg)", S[v + (G ? "Origin" : "-origin")] = S.transformOrigin = 100 * k + "% " + b + "px", j(this.element, S));
  1893. }, O.composedClasses = [], O;
  1894. }(N);
  1895. }), C(
  1896. o,
  1897. "Core/Renderer/HTML/HTMLRenderer.js",
  1898. [o["Core/Renderer/HTML/AST.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Renderer/SVG/SVGRenderer.js"], o["Core/Utilities.js"]],
  1899. function(y, N, _, U) {
  1900. var G = this && this.__extends || function() {
  1901. var w = function(x, f) {
  1902. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, T) {
  1903. l.__proto__ = T;
  1904. } || function(l, T) {
  1905. for (var O in T)
  1906. T.hasOwnProperty(O) && (l[O] = T[O]);
  1907. }, w(x, f);
  1908. };
  1909. return function(x, f) {
  1910. function l() {
  1911. this.constructor = x;
  1912. }
  1913. w(x, f), x.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
  1914. };
  1915. }(), V = U.attr, F = U.createElement, B = U.extend, j = U.pick;
  1916. return function(w) {
  1917. function x() {
  1918. return w !== null && w.apply(this, arguments) || this;
  1919. }
  1920. return G(x, w), x.compose = function(f) {
  1921. return x.composedClasses.indexOf(f) === -1 && (x.composedClasses.push(f), f.prototype.html = x.prototype.html), f;
  1922. }, x.prototype.html = function(f, l, T) {
  1923. var O = this.createElement("span"), R = O.element, k = O.renderer, b = k.isSVG, S = function(v, h) {
  1924. ["opacity", "visibility"].forEach(function(c) {
  1925. v[c + "Setter"] = function(u, i, p) {
  1926. var a = v.div ? v.div.style : h;
  1927. N.prototype[c + "Setter"].call(this, u, i, p), a && (a[i] = u);
  1928. };
  1929. }), v.addedSetters = !0;
  1930. };
  1931. return O.textSetter = function(v) {
  1932. v !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, j(v, "")), this.textStr = v, O.doTransform = !0);
  1933. }, b && S(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(v, h) {
  1934. h === "align" ? O.alignValue = O.textAlign = v : O[h] = v, O.doTransform = !0;
  1935. }, O.afterSetters = function() {
  1936. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  1937. }, O.attr({ text: f, x: Math.round(l), y: Math.round(T) }).css({ position: "absolute" }), k.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), R.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(v) {
  1938. var h = k.box.parentNode, c = [];
  1939. if (this.parentGroup = v) {
  1940. var u = v.div;
  1941. if (!u) {
  1942. for (; v; )
  1943. c.push(v), v = v.parentGroup;
  1944. c.reverse().forEach(function(i) {
  1945. function p(n, P) {
  1946. i[P] = n, P === "translateX" ? s.left = n + "px" : s.top = n + "px", i.doTransform = !0;
  1947. }
  1948. var a = V(i.element, "class"), t = i.styles || {};
  1949. u = i.div = i.div || F("div", a ? { className: a } : void 0, {
  1950. position: "absolute",
  1951. left: (i.translateX || 0) + "px",
  1952. top: (i.translateY || 0) + "px",
  1953. display: i.display,
  1954. opacity: i.opacity,
  1955. cursor: t.cursor,
  1956. pointerEvents: t.pointerEvents,
  1957. visibility: i.visibility
  1958. }, u || h);
  1959. var s = u.style;
  1960. B(i, { classSetter: function(n) {
  1961. return function(P) {
  1962. this.element.setAttribute("class", P), n.className = P;
  1963. };
  1964. }(u), on: function() {
  1965. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  1966. }, translateXSetter: p, translateYSetter: p }), i.addedSetters || S(i);
  1967. });
  1968. }
  1969. } else
  1970. u = h;
  1971. return u.appendChild(R), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  1972. }), O;
  1973. }, x.composedClasses = [], x;
  1974. }(_);
  1975. }
  1976. ), C(o, "Core/Axis/AxisDefaults.js", [], function() {
  1977. var y;
  1978. return function(N) {
  1979. N.defaultXAxisOptions = { alignTicks: !0, allowDecimals: void 0, panningEnabled: !0, zIndex: 2, zoomEnabled: !0, dateTimeLabelFormats: { millisecond: { main: "%H:%M:%S.%L", range: !1 }, second: { main: "%H:%M:%S", range: !1 }, minute: { main: "%H:%M", range: !1 }, hour: { main: "%H:%M", range: !1 }, day: { main: "%e. %b" }, week: { main: "%e. %b" }, month: { main: "%b '%y" }, year: { main: "%Y" } }, endOnTick: !1, gridLineDashStyle: "Solid", gridZIndex: 1, labels: {
  1980. autoRotation: void 0,
  1981. autoRotationLimit: 80,
  1982. distance: void 0,
  1983. enabled: !0,
  1984. indentation: 10,
  1985. overflow: "justify",
  1986. padding: 5,
  1987. reserveSpace: void 0,
  1988. rotation: void 0,
  1989. staggerLines: 0,
  1990. step: 0,
  1991. useHTML: !1,
  1992. x: 0,
  1993. zIndex: 7,
  1994. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  1995. }, maxPadding: 0.01, minorGridLineDashStyle: "Solid", minorTickLength: 2, minorTickPosition: "outside", minPadding: 0.01, offset: void 0, opposite: !1, reversed: void 0, reversedStacks: !1, showEmpty: !0, showFirstLabel: !0, showLastLabel: !0, startOfWeek: 1, startOnTick: !1, tickLength: 10, tickPixelInterval: 100, tickmarkPlacement: "between", tickPosition: "outside", title: {
  1996. align: "middle",
  1997. rotation: 0,
  1998. useHTML: !1,
  1999. x: 0,
  2000. y: 0,
  2001. style: { color: "#666666" }
  2002. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, N.defaultYAxisOptions = { reversedStacks: !0, endOnTick: !0, maxPadding: 0.05, minPadding: 0.05, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: {
  2003. animation: {},
  2004. allowOverlap: !1,
  2005. enabled: !1,
  2006. crop: !0,
  2007. overflow: "justify",
  2008. formatter: function() {
  2009. var _ = this.axis.chart.numberFormatter;
  2010. return _(this.total, -1);
  2011. },
  2012. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  2013. }, gridLineWidth: 1, lineWidth: 0 }, N.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, N.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, N.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, N.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  2014. }(y || (y = {})), y;
  2015. }), C(o, "Core/Foundation.js", [o["Core/Utilities.js"]], function(y) {
  2016. var N = y.addEvent, _ = y.isFunction, U = y.objectEach, G = y.removeEvent, V;
  2017. return function(F) {
  2018. F.registerEventOptions = function(B, j) {
  2019. B.eventOptions = B.eventOptions || {}, U(j.events, function(w, x) {
  2020. B.eventOptions[x] !== w && (B.eventOptions[x] && (G(B, x, B.eventOptions[x]), delete B.eventOptions[x]), _(w) && (B.eventOptions[x] = w, N(B, x, w)));
  2021. });
  2022. };
  2023. }(V || (V = {})), V;
  2024. }), C(
  2025. o,
  2026. "Core/Axis/Tick.js",
  2027. [o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Utilities.js"]],
  2028. function(y, N, _) {
  2029. var U = N.deg2rad, G = _.clamp, V = _.correctFloat, F = _.defined, B = _.destroyObjectProperties, j = _.extend, w = _.fireEvent, x = _.isNumber, f = _.merge, l = _.objectEach, T = _.pick;
  2030. return N = function() {
  2031. function O(R, k, b, S, v) {
  2032. this.isNewLabel = this.isNew = !0, this.axis = R, this.pos = k, this.type = b || "", this.parameters = v || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, w(this, "init"), b || S || this.addLabel();
  2033. }
  2034. return O.prototype.addLabel = function() {
  2035. var R = this, k = R.axis, b = k.options, S = k.chart, v = k.categories, h = k.logarithmic, c = k.names, u = R.pos, i = T(R.options && R.options.labels, b.labels), p = k.tickPositions, a = u === p[0], t = u === p[p.length - 1], s = (!i.step || i.step === 1) && k.tickInterval === 1;
  2036. p = p.info;
  2037. var n = R.label, P;
  2038. if (v = this.parameters.category || (v ? T(v[u], c[u], u) : u), h && x(v) && (v = V(h.lin2log(v))), k.dateTime)
  2039. if (p)
  2040. var D = S.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && p.higherRanks[u] || p.unitName]), I = D.main;
  2041. else
  2042. x(v) && (I = k.dateTime.getXDateFormat(v, b.dateTimeLabelFormats || {}));
  2043. R.isFirst = a, R.isLast = t;
  2044. var W = {
  2045. axis: k,
  2046. chart: S,
  2047. dateTimeLabelFormat: I,
  2048. isFirst: a,
  2049. isLast: t,
  2050. pos: u,
  2051. tick: R,
  2052. tickPositionInfo: p,
  2053. value: v
  2054. };
  2055. w(this, "labelFormat", W);
  2056. var E = function(g) {
  2057. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = k.defaultLabelFormatter.call(g), y.format(i.format, g, S)) : k.defaultLabelFormatter.call(g, g);
  2058. };
  2059. b = E.call(W, W);
  2060. var X = D && D.list;
  2061. R.shortenLabel = X ? function() {
  2062. for (P = 0; P < X.length; P++)
  2063. if (j(W, { dateTimeLabelFormat: X[P] }), n.attr({ text: E.call(W, W) }), n.getBBox().width < k.getSlotWidth(R) - 2 * i.padding)
  2064. return;
  2065. n.attr({ text: "" });
  2066. } : void 0, s && k._addedPlotLB && R.moveLabel(b, i), F(n) || R.movedLabel ? n && n.textStr !== b && !s && (!n.textWidth || i.style.width || n.styles.width || n.css({ width: null }), n.attr({ text: b }), n.textPxLength = n.getBBox().width) : (R.label = n = R.createLabel({ x: 0, y: 0 }, b, i), R.rotation = 0);
  2067. }, O.prototype.createLabel = function(R, k, b) {
  2068. var S = this.axis, v = S.chart;
  2069. return (R = F(k) && b.enabled ? v.renderer.text(k, R.x, R.y, b.useHTML).add(S.labelGroup) : null) && (v.styledMode || R.css(f(b.style)), R.textPxLength = R.getBBox().width), R;
  2070. }, O.prototype.destroy = function() {
  2071. B(
  2072. this,
  2073. this.axis
  2074. );
  2075. }, O.prototype.getPosition = function(R, k, b, S) {
  2076. var v = this.axis, h = v.chart, c = S && h.oldChartHeight || h.chartHeight;
  2077. return R = { x: R ? V(v.translate(k + b, null, null, S) + v.transB) : v.left + v.offset + (v.opposite ? (S && h.oldChartWidth || h.chartWidth) - v.right - v.left : 0), y: R ? c - v.bottom + v.offset - (v.opposite ? v.height : 0) : V(c - v.translate(k + b, null, null, S) - v.transB) }, R.y = G(R.y, -1e5, 1e5), w(this, "afterGetPosition", { pos: R }), R;
  2078. }, O.prototype.getLabelPosition = function(R, k, b, S, v, h, c, u) {
  2079. var i = this.axis, p = i.transA, a = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, s = i.tickRotCorr || { x: 0, y: 0 }, n = S || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), P = {}, D = v.y;
  2080. return F(D) || (D = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? s.y + 8 : Math.cos(b.rotation * U) * (s.y - b.getBBox(!1, 0).height / 2)), R = R + v.x + n + s.x - (h && S ? h * p * (a ? -1 : 1) : 0), k = k + D - (h && !S ? h * p * (a ? 1 : -1) : 0), t && (b = c / (u || 1) % t, i.opposite && (b = t - b - 1), k += i.labelOffset / t * b), P.x = R, P.y = Math.round(k), w(this, "afterGetLabelPosition", { pos: P, tickmarkOffset: h, index: c }), P;
  2081. }, O.prototype.getLabelSize = function() {
  2082. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  2083. }, O.prototype.getMarkPath = function(R, k, b, S, v, h) {
  2084. return h.crispLine([["M", R, k], ["L", R + (v ? 0 : -b), k + (v ? b : 0)]], S);
  2085. }, O.prototype.handleOverflow = function(R) {
  2086. var k = this.axis, b = k.options.labels, S = R.x, v = k.chart.chartWidth, h = k.chart.spacing, c = T(k.labelLeft, Math.min(k.pos, h[3]));
  2087. h = T(k.labelRight, Math.max(k.isRadial ? 0 : k.pos + k.len, v - h[1]));
  2088. var u = this.label, i = this.rotation, p = { left: 0, center: 0.5, right: 1 }[k.labelAlign || u.attr("align")], a = u.getBBox().width, t = k.getSlotWidth(this), s = {}, n = t, P = 1, D;
  2089. i || b.overflow !== "justify" ? 0 > i && S - p * a < c ? D = Math.round(S / Math.cos(i * U) - c) : 0 < i && S + p * a > h && (D = Math.round((v - S) / Math.cos(i * U))) : (v = S + (1 - p) * a, S - p * a < c ? n = R.x + n * (1 - p) - c : v > h && (n = h - R.x + n * p, P = -1), n = Math.min(t, n), n < t && k.labelAlign === "center" && (R.x += P * (t - n - p * (t - Math.min(a, n)))), (a > n || k.autoRotation && (u.styles || {}).width) && (D = n)), D && (this.shortenLabel ? this.shortenLabel() : (s.width = Math.floor(D) + "px", (b.style || {}).textOverflow || (s.textOverflow = "ellipsis"), u.css(s)));
  2090. }, O.prototype.moveLabel = function(R, k) {
  2091. var b = this, S = b.label, v = b.axis, h = v.reversed, c = !1;
  2092. if (S && S.textStr === R ? (b.movedLabel = S, c = !0, delete b.label) : l(v.ticks, function(i) {
  2093. c || i.isNew || i === b || !i.label || i.label.textStr !== R || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  2094. }), !c && (b.labelPos || S)) {
  2095. var u = b.labelPos || S.xy;
  2096. S = v.horiz ? h ? 0 : v.width + v.left : u.x, v = v.horiz ? u.y : h ? v.width + v.left : 0, b.movedLabel = b.createLabel({ x: S, y: v }, R, k), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  2097. }
  2098. }, O.prototype.render = function(R, k, b) {
  2099. var S = this.axis, v = S.horiz, h = this.pos, c = T(this.tickmarkOffset, S.tickmarkOffset);
  2100. h = this.getPosition(v, h, c, k), c = h.x;
  2101. var u = h.y;
  2102. S = v && c === S.pos + S.len || !v && u === S.pos ? -1 : 1, v = T(b, this.label && this.label.newOpacity, 1), b = T(b, 1), this.isActive = !0, this.renderGridLine(k, b, S), this.renderMark(h, b, S), this.renderLabel(h, k, v, R), this.isNew = !1, w(this, "afterRender");
  2103. }, O.prototype.renderGridLine = function(R, k, b) {
  2104. var S = this.axis, v = S.options, h = {}, c = this.pos, u = this.type, i = T(
  2105. this.tickmarkOffset,
  2106. S.tickmarkOffset
  2107. ), p = S.chart.renderer, a = this.gridLine, t = v.gridLineWidth, s = v.gridLineColor, n = v.gridLineDashStyle;
  2108. this.type === "minor" && (t = v.minorGridLineWidth, s = v.minorGridLineColor, n = v.minorGridLineDashStyle), a || (S.chart.styledMode || (h.stroke = s, h["stroke-width"] = t || 0, h.dashstyle = n), u || (h.zIndex = 1), R && (k = 0), this.gridLine = a = p.path().attr(h).addClass("highcharts-" + (u ? u + "-" : "") + "grid-line").add(S.gridGroup)), a && (b = S.getPlotLinePath({ value: c + i, lineWidth: a.strokeWidth() * b, force: "pass", old: R })) && a[R || this.isNew ? "attr" : "animate"]({ d: b, opacity: k });
  2109. }, O.prototype.renderMark = function(R, k, b) {
  2110. var S = this.axis, v = S.options, h = S.chart.renderer, c = this.type, u = S.tickSize(c ? c + "Tick" : "tick"), i = R.x;
  2111. R = R.y;
  2112. var p = T(v[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && S.isXAxis ? 1 : 0);
  2113. v = v[c !== "minor" ? "tickColor" : "minorTickColor"];
  2114. var a = this.mark, t = !a;
  2115. u && (S.opposite && (u[0] = -u[0]), a || (this.mark = a = h.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(S.axisGroup), S.chart.styledMode || a.attr({ stroke: v, "stroke-width": p })), a[t ? "attr" : "animate"]({ d: this.getMarkPath(
  2116. i,
  2117. R,
  2118. u[0],
  2119. a.strokeWidth() * b,
  2120. S.horiz,
  2121. h
  2122. ), opacity: k }));
  2123. }, O.prototype.renderLabel = function(R, k, b, S) {
  2124. var v = this.axis, h = v.horiz, c = v.options, u = this.label, i = c.labels, p = i.step;
  2125. v = T(this.tickmarkOffset, v.tickmarkOffset);
  2126. var a = R.x;
  2127. R = R.y;
  2128. var t = !0;
  2129. u && x(a) && (u.xy = R = this.getLabelPosition(a, R, u, h, i, v, S, p), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !h || i.step || i.rotation || k || b === 0 || this.handleOverflow(R), p && S % p && (t = !1), t && x(R.y) ? (R.opacity = b, u[this.isNewLabel ? "attr" : "animate"](R), this.isNewLabel = !1) : (u.attr("y", -9999), this.isNewLabel = !0));
  2130. }, O.prototype.replaceMovedLabel = function() {
  2131. var R = this.label, k = this.axis, b = k.reversed;
  2132. if (R && !this.isNew) {
  2133. var S = k.horiz ? b ? k.left : k.width + k.left : R.xy.x;
  2134. b = k.horiz ? R.xy.y : b ? k.width + k.top : k.top, R.animate({ x: S, y: b, opacity: 0 }, void 0, R.destroy), delete this.label;
  2135. }
  2136. k.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  2137. }, O;
  2138. }(), N;
  2139. }
  2140. ), C(o, "Core/Axis/Axis.js", [
  2141. o["Core/Animation/AnimationUtilities.js"],
  2142. o["Core/Axis/AxisDefaults.js"],
  2143. o["Core/Color/Color.js"],
  2144. o["Core/DefaultOptions.js"],
  2145. o["Core/Foundation.js"],
  2146. o["Core/Globals.js"],
  2147. o["Core/Axis/Tick.js"],
  2148. o["Core/Utilities.js"]
  2149. ], function(y, N, _, U, G, V, F, B) {
  2150. var j = y.animObject, w = U.defaultOptions, x = G.registerEventOptions, f = V.deg2rad, l = B.arrayMax, T = B.arrayMin, O = B.clamp, R = B.correctFloat, k = B.defined, b = B.destroyObjectProperties, S = B.erase, v = B.error, h = B.extend, c = B.fireEvent, u = B.getMagnitude, i = B.isArray, p = B.isNumber, a = B.isString, t = B.merge, s = B.normalizeTickInterval, n = B.objectEach, P = B.pick, D = B.relativeLength, I = B.removeEvent, W = B.splat, E = B.syncTimeout;
  2151. return y = function() {
  2152. function X(g, m) {
  2153. 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.categories = this.bottom = this.alternateBands = void 0, this.init(g, m);
  2154. }
  2155. return X.prototype.init = function(g, m) {
  2156. var L = m.isX;
  2157. this.chart = g, this.horiz = g.inverted && !this.isZAxis ? !L : L, this.isXAxis = L, this.coll = this.coll || (L ? "xAxis" : "yAxis"), c(this, "init", { userOptions: m }), this.opposite = P(m.opposite, this.opposite), this.side = P(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  2158. var z = this.options, $ = z.labels, Q = z.type;
  2159. this.userOptions = m, this.minPixelPadding = 0, this.reversed = P(z.reversed, this.reversed), this.visible = z.visible, this.zoomEnabled = z.zoomEnabled, this.hasNames = Q === "category" || z.categories === !0, this.categories = z.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = k(z.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = z.minRange || z.maxZoom, this.range = z.range, this.offset = z.offset || 0, this.min = this.max = null, m = P(z.crosshair, W(g.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, g.axes.indexOf(this) === -1 && (L ? g.axes.splice(g.xAxis.length, 0, this) : g.axes.push(this), g[this.coll].push(this)), this.series = this.series || [], g.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = p($.rotation) ? $.rotation : void 0, x(this, z), c(this, "afterInit");
  2160. }, X.prototype.setOptions = function(g) {
  2161. this.options = t(N.defaultXAxisOptions, this.coll === "yAxis" && N.defaultYAxisOptions, [N.defaultTopAxisOptions, N.defaultRightAxisOptions, N.defaultBottomAxisOptions, N.defaultLeftAxisOptions][this.side], t(w[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  2162. }, X.prototype.defaultLabelFormatter = function(g) {
  2163. var m = this.axis;
  2164. g = this.chart.numberFormatter;
  2165. var L = p(this.value) ? this.value : NaN, z = m.chart.time, $ = this.dateTimeLabelFormat, Q = w.lang, A = Q.numericSymbols;
  2166. Q = Q.numericSymbolMagnitude || 1e3;
  2167. var H = m.logarithmic ? Math.abs(L) : m.tickInterval, Y = A && A.length;
  2168. if (m.categories)
  2169. var Z = "" + this.value;
  2170. else if ($)
  2171. Z = z.dateFormat($, L);
  2172. else if (Y && 1e3 <= H)
  2173. for (; Y-- && typeof Z > "u"; )
  2174. m = Math.pow(Q, Y + 1), H >= m && 10 * L % m === 0 && A[Y] !== null && L !== 0 && (Z = g(L / m, -1) + A[Y]);
  2175. return typeof Z > "u" && (Z = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), Z;
  2176. }, X.prototype.getSeriesExtremes = function() {
  2177. var g = this, m = g.chart, L;
  2178. c(this, "getSeriesExtremes", null, function() {
  2179. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(z) {
  2180. if (z.visible || !m.options.chart.ignoreHiddenSeries) {
  2181. var $ = z.options, Q = $.threshold;
  2182. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  2183. if ($ = z.xData, $.length) {
  2184. $ = g.logarithmic ? $.filter(g.validatePositiveValue) : $, L = z.getXExtremes($);
  2185. var A = L.min, H = L.max;
  2186. p(A) || A instanceof Date || ($ = $.filter(p), L = z.getXExtremes($), A = L.min, H = L.max), $.length && (g.dataMin = Math.min(P(g.dataMin, A), A), g.dataMax = Math.max(P(g.dataMax, H), H));
  2187. }
  2188. } else
  2189. z = z.applyExtremes(), p(z.dataMin) && (A = z.dataMin, g.dataMin = Math.min(P(g.dataMin, A), A)), p(z.dataMax) && (H = z.dataMax, g.dataMax = Math.max(P(g.dataMax, H), H)), k(Q) && (g.threshold = Q), (!$.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  2190. }
  2191. });
  2192. }), c(this, "afterGetSeriesExtremes");
  2193. }, X.prototype.translate = function(g, m, L, z, $, Q) {
  2194. var A = this.linkedParent || this, H = z && A.old ? A.old.min : A.min, Y = A.minPixelPadding;
  2195. $ = (A.isOrdinal || A.brokenAxis && A.brokenAxis.hasBreaks || A.logarithmic && $) && A.lin2val;
  2196. var Z = 1, q = 0;
  2197. return z = z && A.old ? A.old.transA : A.transA, z || (z = A.transA), L && (Z *= -1, q = A.len), A.reversed && (Z *= -1, q -= Z * (A.sector || A.len)), m ? (g = (g * Z + q - Y) / z + H, $ && (g = A.lin2val(g))) : ($ && (g = A.val2lin(g)), g = p(H) ? Z * (g - H) * z + q + Z * Y + (p(Q) ? z * Q : 0) : void 0), g;
  2198. }, X.prototype.toPixels = function(g, m) {
  2199. return this.translate(
  2200. g,
  2201. !1,
  2202. !this.horiz,
  2203. null,
  2204. !0
  2205. ) + (m ? 0 : this.pos);
  2206. }, X.prototype.toValue = function(g, m) {
  2207. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  2208. }, X.prototype.getPlotLinePath = function(g) {
  2209. function m(at, J, tt) {
  2210. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : ht = !0), at;
  2211. }
  2212. var L = this, z = L.chart, $ = L.left, Q = L.top, A = g.old, H = g.value, Y = g.lineWidth, Z = A && z.oldChartHeight || z.chartHeight, q = A && z.oldChartWidth || z.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, ht;
  2213. return g = {
  2214. value: H,
  2215. lineWidth: Y,
  2216. old: A,
  2217. force: nt,
  2218. acrossPanes: g.acrossPanes,
  2219. translatedValue: et
  2220. }, c(this, "getPlotLinePath", g, function(at) {
  2221. et = P(et, L.translate(H, null, null, A)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round(Z - et - it), p(et) ? L.horiz ? (ct = Q, dt = Z - L.bottom, rt = gt = m(rt, $, $ + L.width)) : (rt = $, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (ht = !0, nt = !1), at.path = ht && !nt ? null : z.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], Y || 1);
  2222. }), g.path;
  2223. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  2224. var z = R(Math.floor(m / g) * g);
  2225. L = R(Math.ceil(L / g) * g);
  2226. var $ = [], Q;
  2227. if (R(z + g) === z && (Q = 20), this.single)
  2228. return [m];
  2229. for (m = z; m <= L && ($.push(m), m = R(m + g, Q), m !== A); )
  2230. var A = m;
  2231. return $;
  2232. }, X.prototype.getMinorTickInterval = function() {
  2233. var g = this.options;
  2234. return g.minorTicks === !0 ? P(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  2235. }, X.prototype.getMinorTickPositions = function() {
  2236. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, z = this.pointRangePadding || 0, $ = this.min - z;
  2237. z = this.max + z;
  2238. var Q = z - $, A = [];
  2239. if (Q && Q / L < this.len / 3) {
  2240. var H = this.logarithmic;
  2241. if (H)
  2242. this.paddedTicks.forEach(function(Y, Z, q) {
  2243. Z && A.push.apply(
  2244. A,
  2245. H.getLogTickPositions(L, q[Z - 1], q[Z], !0)
  2246. );
  2247. });
  2248. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  2249. A = A.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), $, z, g.startOfWeek));
  2250. else
  2251. for (g = $ + (m[0] - $) % L; g <= z && g !== A[0]; g += L)
  2252. A.push(g);
  2253. }
  2254. return A.length !== 0 && this.trimTicks(A), A;
  2255. }, X.prototype.adjustForMinRange = function() {
  2256. var g = this.options, m = this.logarithmic, L = this.min, z = this.max, $ = 0, Q, A, H, Y;
  2257. if (this.isXAxis && typeof this.minRange > "u" && !m && (k(g.min) || k(g.max) || k(g.floor) || k(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  2258. if (H = et.xData, Y = et.xIncrement ? 1 : H.length - 1, 1 < H.length)
  2259. for (Q = Y; 0 < Q; Q--)
  2260. A = H[Q] - H[Q - 1], (!$ || A < $) && ($ = A);
  2261. }), this.minRange = Math.min(5 * $, this.dataMax - this.dataMin))), z - L < this.minRange) {
  2262. var Z = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - z + L) / 2;
  2263. it = [L - it, P(g.min, L - it)], Z && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = l(it), z = [L + q, P(g.max, L + q)], Z && (z[2] = m ? m.log2lin(this.dataMax) : this.dataMax), z = T(z), z - L < q && (it[0] = z - q, it[1] = P(g.min, z - q), L = l(it));
  2264. }
  2265. this.min = L, this.max = z;
  2266. }, X.prototype.getClosest = function() {
  2267. var g;
  2268. return this.categories ? g = 1 : this.series.forEach(function(m) {
  2269. var L = m.closestPointRange, z = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  2270. !m.noSharedTooltip && k(L) && z && (g = k(g) ? Math.min(g, L) : L);
  2271. }), g;
  2272. }, X.prototype.nameToX = function(g) {
  2273. var m = i(this.categories), L = m ? this.categories : this.names, z = g.options.x;
  2274. if (g.series.requireSorting = !1, k(z) || (z = this.options.uniqueNames ? m ? L.indexOf(g.name) : P(L.keys[g.name], -1) : g.series.autoIncrement()), z === -1) {
  2275. if (!m)
  2276. var $ = L.length;
  2277. } else
  2278. $ = z;
  2279. return typeof $ < "u" && (this.names[$] = g.name, this.names.keys[g.name] = $), $;
  2280. }, X.prototype.updateNames = function() {
  2281. var g = this, m = this.names;
  2282. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  2283. delete m.keys[L];
  2284. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  2285. L.xIncrement = null, (!L.points || L.isDirtyData) && (g.max = Math.max(g.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(z, $) {
  2286. if (z && z.options && typeof z.name < "u") {
  2287. var Q = g.nameToX(z);
  2288. typeof Q < "u" && Q !== z.x && (z.x = Q, L.xData[$] = Q);
  2289. }
  2290. });
  2291. }));
  2292. }, X.prototype.setAxisTranslation = function() {
  2293. var g = this, m = g.max - g.min, L = g.linkedParent, z = !!g.categories, $ = g.isXAxis, Q = g.axisPointRange || 0, A = 0, H = 0, Y = g.transA;
  2294. if ($ || z || Q) {
  2295. var Z = g.getClosest();
  2296. L ? (A = L.minPointOffset, H = L.pointRangePadding) : g.series.forEach(function(q) {
  2297. var it = z ? 1 : $ ? P(q.options.pointRange, Z, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  2298. Q = Math.max(Q, it), (!g.single || z) && (q = q.is("xrange") ? !$ : $, A = Math.max(A, q && a(et) ? 0 : it / 2), H = Math.max(H, q && et === "on" ? 0 : it));
  2299. }), L = g.ordinal && g.ordinal.slope && Z ? g.ordinal.slope / Z : 1, g.minPointOffset = A *= L, g.pointRangePadding = H *= L, g.pointRange = Math.min(Q, g.single && z ? 1 : m), $ && (g.closestPointRange = Z);
  2300. }
  2301. g.translationSlope = g.transA = Y = g.staticScale || g.len / (m + H || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = Y * A, c(this, "afterSetAxisTranslation");
  2302. }, X.prototype.minFromRange = function() {
  2303. return this.max - this.range;
  2304. }, X.prototype.setTickInterval = function(g) {
  2305. var m = this.chart, L = this.logarithmic, z = this.options, $ = this.isXAxis, Q = this.isLinked, A = z.tickPixelInterval, H = this.categories, Y = this.softThreshold, Z = z.maxPadding, q = z.minPadding, it = p(z.tickInterval) && 0 <= z.tickInterval ? z.tickInterval : void 0, et = p(this.threshold) ? this.threshold : null;
  2306. this.dateTime || H || Q || this.getTickAmount();
  2307. var nt = P(this.userMin, z.min), rt = P(this.userMax, z.max);
  2308. if (Q) {
  2309. this.linkedParent = m[this.coll][z.linkedTo];
  2310. var ct = this.linkedParent.getExtremes();
  2311. this.min = P(ct.min, ct.dataMin), this.max = P(ct.max, ct.dataMax), z.type !== this.linkedParent.options.type && v(11, 1, m);
  2312. } else {
  2313. if (Y && k(et)) {
  2314. if (this.dataMin >= et)
  2315. ct = et, q = 0;
  2316. else if (this.dataMax <= et) {
  2317. var gt = et;
  2318. Z = 0;
  2319. }
  2320. }
  2321. this.min = P(nt, ct, this.dataMin), this.max = P(rt, gt, this.dataMax);
  2322. }
  2323. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, P(this.dataMin, this.min)) && v(10, 1, m), this.min = R(L.log2lin(this.min), 16), this.max = R(L.log2lin(this.max), 16)), this.range && k(this.max) && (this.userMin = this.min = nt = Math.max(this.dataMin, this.minFromRange()), this.userMax = rt = this.max, this.range = null), c(this, "foundExtremes"), this.beforePadding && this.beforePadding(), this.adjustForMinRange(), !(H || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && k(this.min) && k(this.max) && (m = this.max - this.min) && (!k(nt) && q && (this.min -= m * q), !k(rt) && Z && (this.max += m * Z)), p(this.userMin) || (p(z.softMin) && z.softMin < this.min && (this.min = nt = z.softMin), p(z.floor) && (this.min = Math.max(this.min, z.floor))), p(this.userMax) || (p(z.softMax) && z.softMax > this.max && (this.max = rt = z.softMax), p(z.ceiling) && (this.max = Math.min(this.max, z.ceiling))), Y && k(this.dataMin) && (et = et || 0, !k(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !k(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), p(this.min) && p(this.max) && !this.chart.polar && this.min > this.max && (k(this.options.min) ? this.max = this.min : k(this.options.max) && (this.min = this.max)), this.tickInterval = this.min === this.max || typeof this.min > "u" || typeof this.max > "u" ? 1 : Q && this.linkedParent && !it && A === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : P(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, H ? 1 : (this.max - this.min) * A / Math.max(this.len, A)), $ && !g) {
  2324. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  2325. this.series.forEach(function(ht) {
  2326. ht.forceCrop = ht.forceCropping && ht.forceCropping(), ht.processData(dt);
  2327. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  2328. }
  2329. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = P(z.minTickInterval, this.dateTime && !this.series.some(function(ht) {
  2330. return ht.noSharedTooltip;
  2331. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = s(this.tickInterval, void 0, u(this.tickInterval), P(z.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  2332. }, X.prototype.setTickPositions = function() {
  2333. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), z = this.hasVerticalPanning(), $ = this.coll === "colorAxis", Q = ($ || !z) && g.startOnTick;
  2334. z = ($ || !z) && g.endOnTick, $ = g.tickPositioner, this.tickmarkOffset = this.categories && g.tickmarkPlacement === "between" && this.tickInterval === 1 ? 0.5 : 0, this.minorTickInterval = L === "auto" && this.tickInterval ? this.tickInterval / 5 : L, this.single = this.min === this.max && k(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || g.allowDecimals !== !1), this.tickPositions = L = m && m.slice(), !L && (this.ordinal && this.ordinal.positions || !((this.max - this.min) / this.tickInterval > Math.max(2 * this.len, 200)) ? L = this.dateTime ? this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval, g.units), this.min, this.max, g.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  2335. this.tickInterval,
  2336. this.min,
  2337. this.max
  2338. ) : (L = [this.min, this.max], v(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, $ && ($ = $.apply(this, [this.min, this.max]))) && (this.tickPositions = L = $), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, z), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(A) {
  2339. return A.is("heatmap") && A.options.pointPlacement === "between";
  2340. }) && (this.min -= 0.5, this.max += 0.5), m || $ || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  2341. }, X.prototype.trimTicks = function(g, m, L) {
  2342. var z = g[0], $ = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  2343. if (c(this, "trimTicks"), !this.isLinked) {
  2344. if (m && z !== -1 / 0)
  2345. this.min = z;
  2346. else
  2347. for (; this.min - Q > g[0]; )
  2348. g.shift();
  2349. if (L)
  2350. this.max = $;
  2351. else
  2352. for (; this.max + Q < g[g.length - 1]; )
  2353. g.pop();
  2354. g.length === 0 && k(z) && !this.options.tickPositions && g.push(($ + z) / 2);
  2355. }
  2356. }, X.prototype.alignToOthers = function() {
  2357. var g = {}, m = this.options, L;
  2358. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(z) {
  2359. var $ = z.options;
  2360. $ = [z.horiz ? $.left : $.top, $.width, $.height, $.pane].join(), z.series.length && (g[$] ? L = !0 : g[$] = 1);
  2361. }), L;
  2362. }, X.prototype.getTickAmount = function() {
  2363. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  2364. !k(g.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && g.startOnTick && g.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  2365. }, X.prototype.adjustTickAmount = function() {
  2366. var g = this.options, m = this.tickInterval, L = this.tickPositions, z = this.tickAmount, $ = this.finalTickAmt, Q = L && L.length, A = P(this.threshold, this.softThreshold ? 0 : null);
  2367. if (this.hasData() && p(this.min) && p(this.max)) {
  2368. if (Q < z) {
  2369. for (; L.length < z; )
  2370. L.length % 2 || this.min === A ? L.push(R(L[L.length - 1] + m)) : L.unshift(R(L[0] - m));
  2371. this.transA *= (Q - 1) / (z - 1), this.min = g.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = g.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  2372. } else
  2373. Q > z && (this.tickInterval *= 2, this.setTickPositions());
  2374. if (k($)) {
  2375. for (m = g = L.length; m--; )
  2376. ($ === 3 && m % 2 === 1 || 2 >= $ && 0 < m && m < g - 1) && L.splice(m, 1);
  2377. this.finalTickAmt = void 0;
  2378. }
  2379. }
  2380. }, X.prototype.setScale = function() {
  2381. var g = !1, m = !1;
  2382. this.series.forEach(function(z) {
  2383. g = g || z.isDirtyData || z.isDirty, m = m || z.xAxis && z.xAxis.isDirty || !1;
  2384. }), this.setAxisSize();
  2385. var L = this.len !== (this.old && this.old.len);
  2386. L || g || m || 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.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.isDirty || (this.isDirty = L || this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max))) : this.stacking && this.stacking.cleanStacks(), g && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  2387. }, X.prototype.setExtremes = function(g, m, L, z, $) {
  2388. var Q = this, A = Q.chart;
  2389. L = P(L, !0), Q.series.forEach(function(H) {
  2390. delete H.kdTree;
  2391. }), $ = h($, { min: g, max: m }), c(Q, "setExtremes", $, function() {
  2392. Q.userMin = g, Q.userMax = m, Q.eventArgs = $, L && A.redraw(z);
  2393. });
  2394. }, X.prototype.zoom = function(g, m) {
  2395. var L = this, z = this.dataMin, $ = this.dataMax, Q = this.options, A = Math.min(z, P(Q.min, z)), H = Math.max($, P(Q.max, $));
  2396. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(Y) {
  2397. var Z = Y.newMin, q = Y.newMax;
  2398. (Z !== L.min || q !== L.max) && (L.allowZoomOutside || (k(z) && (Z < A && (Z = A), Z > H && (Z = H)), k($) && (q < A && (q = A), q > H && (q = H))), L.displayBtn = typeof Z < "u" || typeof q < "u", L.setExtremes(Z, q, !1, void 0, { trigger: "zoom" })), Y.zoomed = !0;
  2399. }), g.zoomed;
  2400. }, X.prototype.setAxisSize = function() {
  2401. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], z = this.horiz, $ = this.width = Math.round(D(P(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(D(P(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), A = this.top = Math.round(D(P(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  2402. m = this.left = Math.round(D(P(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - A, this.right = g.chartWidth - $ - m, this.len = Math.max(z ? $ : Q, 0), this.pos = z ? m : A;
  2403. }, X.prototype.getExtremes = function() {
  2404. var g = this.logarithmic;
  2405. return { min: g ? R(g.lin2log(this.min)) : this.min, max: g ? R(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  2406. }, X.prototype.getThreshold = function(g) {
  2407. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  2408. return m = m ? m.lin2log(this.max) : this.max, g === null || g === -1 / 0 ? g = L : g === 1 / 0 ? g = m : L > g ? g = L : m < g && (g = m), this.translate(g, 0, 1, 0, 1);
  2409. }, X.prototype.autoLabelAlign = function(g) {
  2410. var m = (P(g, 0) - 90 * this.side + 720) % 360;
  2411. return g = { align: "center" }, c(
  2412. this,
  2413. "autoLabelAlign",
  2414. g,
  2415. function(L) {
  2416. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  2417. }
  2418. ), g.align;
  2419. }, X.prototype.tickSize = function(g) {
  2420. var m = this.options, L = P(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), z = m[g === "tick" ? "tickLength" : "minorTickLength"];
  2421. if (L && z) {
  2422. m[g + "Position"] === "inside" && (z = -z);
  2423. var $ = [z, L];
  2424. }
  2425. return g = { tickSize: $ }, c(this, "afterTickSize", g), g.tickSize;
  2426. }, X.prototype.labelMetrics = function() {
  2427. var g = this.tickPositions && this.tickPositions[0] || 0;
  2428. return this.chart.renderer.fontMetrics(
  2429. this.options.labels.style.fontSize,
  2430. this.ticks[g] && this.ticks[g].label
  2431. );
  2432. }, X.prototype.unsquish = function() {
  2433. var g = this.options.labels, m = this.horiz, L = this.tickInterval, z = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), $ = g.rotation, Q = this.labelMetrics(), A = Math.max(this.max - this.min, 0), H = function(nt) {
  2434. var rt = nt / (z || 1);
  2435. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > A && nt !== 1 / 0 && z !== 1 / 0 && A && (rt = Math.ceil(A / L)), R(rt * L);
  2436. }, Y = L, Z, q, it = Number.MAX_VALUE;
  2437. if (m) {
  2438. if (!g.staggerLines && !g.step)
  2439. if (p($))
  2440. var et = [$];
  2441. else
  2442. z < g.autoRotationLimit && (et = g.autoRotation);
  2443. et && et.forEach(function(nt) {
  2444. if (nt === $ || nt && -90 <= nt && 90 >= nt) {
  2445. q = H(Math.abs(Q.h / Math.sin(f * nt)));
  2446. var rt = q + Math.abs(nt / 360);
  2447. rt < it && (it = rt, Z = nt, Y = q);
  2448. }
  2449. });
  2450. } else
  2451. g.step || (Y = H(Q.h));
  2452. return this.autoRotation = et, this.labelRotation = P(Z, p($) ? $ : 0), Y;
  2453. }, X.prototype.getSlotWidth = function(g) {
  2454. var m = this.chart, L = this.horiz, z = this.options.labels, $ = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  2455. if (g && p(g.slotWidth))
  2456. return g.slotWidth;
  2457. if (L && 2 > z.step)
  2458. return z.rotation ? 0 : (this.staggerLines || 1) * this.len / $;
  2459. if (!L) {
  2460. if (g = z.style.width, g !== void 0)
  2461. return parseInt(String(g), 10);
  2462. if (Q)
  2463. return Q - m.spacing[3];
  2464. }
  2465. return 0.33 * m.chartWidth;
  2466. }, X.prototype.renderUnsquish = function() {
  2467. var g = this.chart, m = g.renderer, L = this.tickPositions, z = this.ticks, $ = this.options.labels, Q = $.style, A = this.horiz, H = this.getSlotWidth(), Y = Math.max(1, Math.round(H - 2 * $.padding)), Z = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  2468. if (a($.rotation) || (Z.rotation = $.rotation || 0), L.forEach(function(gt) {
  2469. gt = z[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  2470. }), this.maxLabelLength = et, this.autoRotation)
  2471. et > Y && et > q.h ? Z.rotation = this.labelRotation : this.labelRotation = 0;
  2472. else if (H) {
  2473. var nt = Y;
  2474. if (!it) {
  2475. var rt = "clip";
  2476. for (Y = L.length; !A && Y--; ) {
  2477. var ct = L[Y];
  2478. (ct = z[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > H && ct.css({ width: H + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  2479. }
  2480. }
  2481. }
  2482. Z.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = $.align || this.autoLabelAlign(this.labelRotation)) && (Z.align = this.labelAlign), L.forEach(function(gt) {
  2483. var dt = (gt = z[gt]) && gt.label, ht = Q.width, at = {};
  2484. dt && (dt.attr(Z), gt.shortenLabel ? gt.shortenLabel() : nt && !ht && Q.whiteSpace !== "nowrap" && (nt < dt.textPxLength || dt.element.tagName === "SPAN") ? (at.width = nt + "px", it || (at.textOverflow = dt.specificTextOverflow || rt), dt.css(at)) : dt.styles && dt.styles.width && !at.width && !ht && dt.css({ width: null }), delete dt.specificTextOverflow, gt.rotation = Z.rotation);
  2485. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  2486. }, X.prototype.hasData = function() {
  2487. return this.series.some(function(g) {
  2488. return g.hasData();
  2489. }) || this.options.showEmpty && k(this.min) && k(this.max);
  2490. }, X.prototype.addTitle = function(g) {
  2491. var m = this.chart.renderer, L = this.horiz, z = this.opposite, $ = this.options.title, Q = this.chart.styledMode, A;
  2492. this.axisTitle || ((A = $.textAlign) || (A = (L ? { low: "left", middle: "center", high: "right" } : { low: z ? "right" : "left", middle: "center", high: z ? "left" : "right" })[$.align]), this.axisTitle = m.text($.text || "", 0, 0, $.useHTML).attr({ zIndex: 7, rotation: $.rotation, align: A }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t($.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || $.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  2493. }, X.prototype.generateTick = function(g) {
  2494. var m = this.ticks;
  2495. m[g] ? m[g].addLabel() : m[g] = new F(this, g);
  2496. }, X.prototype.getOffset = function() {
  2497. var g = this, m = this, L = m.chart, z = m.horiz, $ = m.options, Q = m.side, A = m.ticks, H = m.tickPositions, Y = m.coll, Z = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = $.title, rt = $.labels, ct = L.axisOffset;
  2498. L = L.clipOffset;
  2499. var gt = [
  2500. -1,
  2501. 1,
  2502. 1,
  2503. -1
  2504. ][Q], dt = $.className, ht, at = 0, J = 0, tt = 0;
  2505. if (m.showAxis = ht = et || $.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  2506. var ot = function(pt, yt, vt) {
  2507. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + Y.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add(Z);
  2508. };
  2509. m.gridGroup = ot("grid", "-grid", $.gridZIndex), m.axisGroup = ot("axis", "", $.zIndex), m.labelGroup = ot("axis-labels", "-labels", rt.zIndex);
  2510. }
  2511. if (et || m.isLinked ? (H.forEach(function(pt) {
  2512. m.generateTick(pt);
  2513. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, P(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && H.forEach(function(pt) {
  2514. tt = Math.max(A[pt].getLabelSize(), tt);
  2515. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(A, function(pt, yt) {
  2516. pt.destroy(), delete A[yt];
  2517. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(ht), ht && nt.reserveSpace !== !1)) {
  2518. m.titleOffset = at = m.axisTitle.getBBox()[z ? "height" : "width"];
  2519. var lt = nt.offset;
  2520. J = k(lt) ? 0 : P(nt.margin, z ? 5 : 10);
  2521. }
  2522. m.renderLine(), m.offset = gt * P(
  2523. $.offset,
  2524. ct[Q] ? ct[Q] + ($.margin || 0) : 0
  2525. ), m.tickRotCorr = m.tickRotCorr || { x: 0, y: 0 }, nt = Q === 0 ? -m.labelMetrics().h : Q === 2 ? m.tickRotCorr.y : 0, et = Math.abs(tt) + J, tt && (et = et - nt + gt * (z ? P(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = P(lt, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(A, H)), Y !== "colorAxis" && (z = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, H && H.length && z ? z[0] + gt * m.offset : 0), $ = !m.axisLine || $.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(
  2526. L[it],
  2527. $
  2528. )), c(this, "afterGetOffset");
  2529. }, X.prototype.getLinePath = function(g) {
  2530. var m = this.chart, L = this.opposite, z = this.offset, $ = this.horiz, Q = this.left + (L ? this.width : 0) + z;
  2531. return z = m.chartHeight - this.bottom - (L ? this.height : 0) + z, L && (g *= -1), m.renderer.crispLine([["M", $ ? this.left : Q, $ ? z : this.top], ["L", $ ? m.chartWidth - this.right : Q, $ ? z : m.chartHeight - this.bottom]], g);
  2532. }, X.prototype.renderLine = function() {
  2533. 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 }));
  2534. }, X.prototype.getTitlePosition = function() {
  2535. var g = this.horiz, m = this.left, L = this.top, z = this.len, $ = this.options.title, Q = g ? m : L, A = this.opposite, H = this.offset, Y = $.x, Z = $.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics($.style.fontSize, q);
  2536. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), z = { low: Q + (g ? 0 : z), middle: Q + z / 2, high: Q + (g ? z : 0) }[$.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (A ? -1 : 1) * this.axisTitleMargin + [
  2537. -q,
  2538. q,
  2539. it.f,
  2540. -q
  2541. ][this.side], g = { x: g ? z + Y : m + (A ? this.width : 0) + H + Y, y: g ? m + Z - (A ? this.height : 0) + H : z + Z }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  2542. }, X.prototype.renderMinorTick = function(g, m) {
  2543. var L = this.minorTicks;
  2544. L[g] || (L[g] = new F(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  2545. }, X.prototype.renderTick = function(g, m, L) {
  2546. var z = this.ticks;
  2547. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (z[g] || (z[g] = new F(this, g)), L && z[g].isNew && z[g].render(m, !0, -1), z[g].render(m));
  2548. }, X.prototype.render = function() {
  2549. var g = this, m = g.chart, L = g.logarithmic, z = g.options, $ = g.isLinked, Q = g.tickPositions, A = g.axisTitle, H = g.ticks, Y = g.minorTicks, Z = g.alternateBands, q = z.stackLabels, it = z.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = j(m.renderer.globalAnimation), gt, dt;
  2550. if (g.labelEdge.length = 0, g.overlap = !1, [H, Y, Z].forEach(function(at) {
  2551. n(at, function(J) {
  2552. J.isActive = !1;
  2553. });
  2554. }), g.hasData() || $) {
  2555. var ht = g.chart.hasRendered && g.old && p(g.old.min);
  2556. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  2557. g.renderMinorTick(
  2558. at,
  2559. ht
  2560. );
  2561. }), Q.length && (Q.forEach(function(at, J) {
  2562. g.renderTick(at, J, ht);
  2563. }), et && (g.min === 0 || g.single) && (H[-1] || (H[-1] = new F(g, -1, null, !0)), H[-1].render(-1))), it && Q.forEach(function(at, J) {
  2564. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : g.max - et, J % 2 === 0 && at < g.max && dt <= g.max + (m.polar ? -et : et) && (Z[at] || (Z[at] = new V.PlotLineOrBand(g)), gt = at + et, Z[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, Z[at].render(), Z[at].isActive = !0);
  2565. }), g._addedPlotLB || (g._addedPlotLB = !0, (z.plotLines || []).concat(z.plotBands || []).forEach(function(at) {
  2566. g.addPlotBandOrLine(at);
  2567. }));
  2568. }
  2569. [H, Y, Z].forEach(function(at) {
  2570. var J = [], tt = ct.duration;
  2571. n(at, function(ot, lt) {
  2572. ot.isActive || (ot.render(lt, !1, 0), ot.isActive = !1, J.push(lt));
  2573. }), E(function() {
  2574. for (var ot = J.length; ot--; )
  2575. at[J[ot]] && !at[J[ot]].isActive && (at[J[ot]].destroy(), delete at[J[ot]]);
  2576. }, at !== Z && m.hasRendered && tt ? tt : 0);
  2577. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), A && rt && (z = g.getTitlePosition(), p(z.y) ? (A[A.isNew ? "attr" : "animate"](z), A.isNew = !1) : (A.attr(
  2578. "y",
  2579. -9999
  2580. ), A.isNew = !0)), q && q.enabled && g.stacking && g.stacking.renderStackTotals(), g.old = { len: g.len, max: g.max, min: g.min, transA: g.transA, userMax: g.userMax, userMin: g.userMin }, g.isDirty = !1, c(this, "afterRender");
  2581. }, X.prototype.redraw = function() {
  2582. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  2583. g.render();
  2584. })), this.series.forEach(function(g) {
  2585. g.isDirty = !0;
  2586. });
  2587. }, X.prototype.getKeepProps = function() {
  2588. return this.keepProps || X.keepProps;
  2589. }, X.prototype.destroy = function(g) {
  2590. var m = this, L = m.plotLinesAndBands, z = this.eventOptions;
  2591. if (c(this, "destroy", { keepEvents: g }), g || I(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  2592. b(Q);
  2593. }), L)
  2594. for (g = L.length; g--; )
  2595. L[g].destroy();
  2596. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  2597. m[Q] && (m[Q] = m[Q].destroy());
  2598. });
  2599. for (var $ in m.plotLinesAndBandsGroups)
  2600. m.plotLinesAndBandsGroups[$] = m.plotLinesAndBandsGroups[$].destroy();
  2601. n(m, function(Q, A) {
  2602. m.getKeepProps().indexOf(A) === -1 && delete m[A];
  2603. }), this.eventOptions = z;
  2604. }, X.prototype.drawCrosshair = function(g, m) {
  2605. var L = this.crosshair, z = P(L && L.snap, !0), $ = this.chart, Q, A = this.cross;
  2606. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (k(m) || !z) !== !1) {
  2607. if (z ? k(m) && (Q = P(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = g && (this.horiz ? g.chartX - this.pos : this.len - g.chartY + this.pos), k(Q)) {
  2608. var H = { value: m && (this.isXAxis ? m.x : P(m.stackY, m.y)), translatedValue: Q };
  2609. $.polar && h(H, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), H = this.getPlotLinePath(H) || null;
  2610. }
  2611. if (!k(H)) {
  2612. this.hideCrosshair();
  2613. return;
  2614. }
  2615. z = this.categories && !this.isRadial, A || (this.cross = A = $.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (z ? "category " : "thin ") + (L.className || "")).attr({ zIndex: P(L.zIndex, 2) }).add(), $.styledMode || (A.attr({ stroke: L.color || (z ? _.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": P(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && A.attr({ dashstyle: L.dashStyle }))), A.show().attr({ d: H }), z && !L.width && A.attr({ "stroke-width": this.transA }), this.cross.e = g;
  2616. } else
  2617. this.hideCrosshair();
  2618. c(this, "afterDrawCrosshair", { e: g, point: m });
  2619. }, X.prototype.hideCrosshair = function() {
  2620. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  2621. }, X.prototype.hasVerticalPanning = function() {
  2622. var g = this.chart.options.chart.panning;
  2623. return !!(g && g.enabled && /y/.test(g.type));
  2624. }, X.prototype.validatePositiveValue = function(g) {
  2625. return p(g) && 0 < g;
  2626. }, X.prototype.update = function(g, m) {
  2627. var L = this.chart;
  2628. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, P(m, !0) && L.redraw();
  2629. }, X.prototype.remove = function(g) {
  2630. for (var m = this.chart, L = this.coll, z = this.series, $ = z.length; $--; )
  2631. z[$] && z[$].remove(!1);
  2632. S(m.axes, this), S(m[L], this), m[L].forEach(function(Q, A) {
  2633. Q.options.index = Q.userOptions.index = A;
  2634. }), this.destroy(), m.isDirtyBox = !0, P(g, !0) && m.redraw();
  2635. }, X.prototype.setTitle = function(g, m) {
  2636. this.update({ title: g }, m);
  2637. }, X.prototype.setCategories = function(g, m) {
  2638. this.update({ categories: g }, m);
  2639. }, X.defaultOptions = N.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  2640. }(), y;
  2641. }), C(o, "Core/Axis/DateTimeAxis.js", [o["Core/Utilities.js"]], function(y) {
  2642. var N = y.addEvent, _ = y.getMagnitude, U = y.normalizeTickInterval, G = y.timeUnits, V;
  2643. return function(F) {
  2644. function B() {
  2645. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  2646. }
  2647. function j(f) {
  2648. f.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new x(this));
  2649. }
  2650. var w = [];
  2651. F.compose = function(f) {
  2652. return w.indexOf(f) === -1 && (w.push(f), f.keepProps.push("dateTime"), f.prototype.getTimeTicks = B, N(
  2653. f,
  2654. "init",
  2655. j
  2656. )), f;
  2657. };
  2658. var x = function() {
  2659. function f(l) {
  2660. this.axis = l;
  2661. }
  2662. return f.prototype.normalizeTimeTickInterval = function(l, T) {
  2663. var O = T || [["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]];
  2664. T = O[O.length - 1];
  2665. var R = G[T[0]], k = T[1], b;
  2666. for (b = 0; b < O.length && (T = O[b], R = G[T[0]], k = T[1], !(O[b + 1] && l <= (R * k[k.length - 1] + G[O[b + 1][0]]) / 2)); b++)
  2667. ;
  2668. return R === G.year && l < 5 * R && (k = [1, 2, 5]), l = U(l / R, k, T[0] === "year" ? Math.max(_(l / R), 1) : 1), { unitRange: R, count: l, unitName: T[0] };
  2669. }, f.prototype.getXDateFormat = function(l, T) {
  2670. var O = this.axis;
  2671. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, l, O.options.startOfWeek, T) || T.year : T.day;
  2672. }, f;
  2673. }();
  2674. F.Additions = x;
  2675. }(V || (V = {})), V;
  2676. }), C(o, "Core/Axis/LogarithmicAxis.js", [o["Core/Utilities.js"]], function(y) {
  2677. var N = y.addEvent, _ = y.getMagnitude, U = y.normalizeTickInterval, G = y.pick, V;
  2678. return function(F) {
  2679. function B(f) {
  2680. var l = this.logarithmic;
  2681. f.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : l || (this.logarithmic = new x(this));
  2682. }
  2683. function j() {
  2684. var f = this.logarithmic;
  2685. f && (this.lin2val = function(l) {
  2686. return f.lin2log(l);
  2687. }, this.val2lin = function(l) {
  2688. return f.log2lin(l);
  2689. });
  2690. }
  2691. var w = [];
  2692. F.compose = function(f) {
  2693. return w.indexOf(f) === -1 && (w.push(f), f.keepProps.push("logarithmic"), N(f, "init", B), N(f, "afterInit", j)), f;
  2694. };
  2695. var x = function() {
  2696. function f(l) {
  2697. this.axis = l;
  2698. }
  2699. return f.prototype.getLogTickPositions = function(l, T, O, R) {
  2700. var k = this.axis, b = k.len, S = k.options, v = [];
  2701. if (R || (this.minorAutoInterval = void 0), 0.5 <= l)
  2702. l = Math.round(l), v = k.getLinearTickPositions(l, T, O);
  2703. else if (0.08 <= l) {
  2704. var h = Math.floor(T), c, u = S = void 0;
  2705. for (b = 0.3 < l ? [1, 2, 4] : 0.15 < l ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; h < O + 1 && !u; h++) {
  2706. var i = b.length;
  2707. for (c = 0; c < i && !u; c++) {
  2708. var p = this.log2lin(this.lin2log(h) * b[c]);
  2709. p > T && (!R || S <= O) && typeof S < "u" && v.push(S), S > O && (u = !0), S = p;
  2710. }
  2711. }
  2712. } else
  2713. T = this.lin2log(T), O = this.lin2log(O), l = R ? k.getMinorTickInterval() : S.tickInterval, l = G(l === "auto" ? null : l, this.minorAutoInterval, S.tickPixelInterval / (R ? 5 : 1) * (O - T) / ((R ? b / k.tickPositions.length : b) || 1)), l = U(l, void 0, _(l)), v = k.getLinearTickPositions(l, T, O).map(this.log2lin), R || (this.minorAutoInterval = l / 5);
  2714. return R || (k.tickInterval = l), v;
  2715. }, f.prototype.lin2log = function(l) {
  2716. return Math.pow(10, l);
  2717. }, f.prototype.log2lin = function(l) {
  2718. return Math.log(l) / Math.LN10;
  2719. }, f;
  2720. }();
  2721. F.Additions = x;
  2722. }(V || (V = {})), V;
  2723. }), C(o, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [o["Core/Utilities.js"]], function(y) {
  2724. var N = y.erase, _ = y.extend, U = y.isNumber, G;
  2725. return function(V) {
  2726. var F = [], B;
  2727. V.compose = function(w, x) {
  2728. return B || (B = w), F.indexOf(x) === -1 && (F.push(x), _(x.prototype, j.prototype)), x;
  2729. };
  2730. var j = function() {
  2731. function w() {
  2732. }
  2733. return w.prototype.getPlotBandPath = function(x, f, l) {
  2734. l === void 0 && (l = this.options);
  2735. var T = this.getPlotLinePath({ value: f, force: !0, acrossPanes: l.acrossPanes }), O = [], R = this.horiz;
  2736. if (f = !U(this.min) || !U(this.max) || x < this.min && f < this.min || x > this.max && f > this.max, x = this.getPlotLinePath({ value: x, force: !0, acrossPanes: l.acrossPanes }), l = 1, x && T) {
  2737. if (f) {
  2738. var k = x.toString() === T.toString();
  2739. l = 0;
  2740. }
  2741. for (f = 0; f < x.length; f += 2) {
  2742. var b = x[f], S = x[f + 1], v = T[f], h = T[f + 1];
  2743. b[0] !== "M" && b[0] !== "L" || S[0] !== "M" && S[0] !== "L" || v[0] !== "M" && v[0] !== "L" || h[0] !== "M" && h[0] !== "L" || (R && v[1] === b[1] ? (v[1] += l, h[1] += l) : R || v[2] !== b[2] || (v[2] += l, h[2] += l), O.push(["M", b[1], b[2]], ["L", S[1], S[2]], ["L", h[1], h[2]], ["L", v[1], v[2]], ["Z"])), O.isFlat = k;
  2744. }
  2745. }
  2746. return O;
  2747. }, w.prototype.addPlotBand = function(x) {
  2748. return this.addPlotBandOrLine(x, "plotBands");
  2749. }, w.prototype.addPlotLine = function(x) {
  2750. return this.addPlotBandOrLine(x, "plotLines");
  2751. }, w.prototype.addPlotBandOrLine = function(x, f) {
  2752. var l = this, T = this.userOptions, O = new B(this, x);
  2753. if (this.visible && (O = O.render()), O) {
  2754. if (this._addedPlotLB || (this._addedPlotLB = !0, (T.plotLines || []).concat(T.plotBands || []).forEach(function(k) {
  2755. l.addPlotBandOrLine(k);
  2756. })), f) {
  2757. var R = T[f] || [];
  2758. R.push(x), T[f] = R;
  2759. }
  2760. this.plotLinesAndBands.push(O);
  2761. }
  2762. return O;
  2763. }, w.prototype.removePlotBandOrLine = function(x) {
  2764. var f = this.plotLinesAndBands, l = this.options, T = this.userOptions;
  2765. if (f) {
  2766. for (var O = f.length; O--; )
  2767. f[O].id === x && f[O].destroy();
  2768. [l.plotLines || [], T.plotLines || [], l.plotBands || [], T.plotBands || []].forEach(function(R) {
  2769. for (O = R.length; O--; )
  2770. (R[O] || {}).id === x && N(R, R[O]);
  2771. });
  2772. }
  2773. }, w.prototype.removePlotBand = function(x) {
  2774. this.removePlotBandOrLine(x);
  2775. }, w.prototype.removePlotLine = function(x) {
  2776. this.removePlotBandOrLine(x);
  2777. }, w;
  2778. }();
  2779. }(G || (G = {})), G;
  2780. }), C(o, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [o["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], o["Core/Utilities.js"]], function(y, N) {
  2781. var _ = N.arrayMax, U = N.arrayMin, G = N.defined, V = N.destroyObjectProperties, F = N.erase, B = N.fireEvent, j = N.merge, w = N.objectEach, x = N.pick;
  2782. return N = function() {
  2783. function f(l, T) {
  2784. this.axis = l, T && (this.options = T, this.id = T.id);
  2785. }
  2786. return f.compose = function(l) {
  2787. return y.compose(f, l);
  2788. }, f.prototype.render = function() {
  2789. B(this, "render");
  2790. var l = this, T = l.axis, O = T.horiz, R = T.logarithmic, k = l.options, b = k.color, S = x(k.zIndex, 0), v = k.events, h = {}, c = T.chart.renderer, u = k.label, i = l.label, p = k.to, a = k.from, t = k.value, s = l.svgElem, n = [], P = G(a) && G(p);
  2791. n = G(t);
  2792. var D = !s, I = { class: "highcharts-plot-" + (P ? "band " : "line ") + (k.className || "") }, W = P ? "bands" : "lines";
  2793. if (R && (a = R.log2lin(a), p = R.log2lin(p), t = R.log2lin(t)), T.chart.styledMode || (n ? (I.stroke = b || "#999999", I["stroke-width"] = x(k.width, 1), k.dashStyle && (I.dashstyle = k.dashStyle)) : P && (I.fill = b || "#e6ebf5", k.borderWidth && (I.stroke = k.borderColor, I["stroke-width"] = k.borderWidth))), h.zIndex = S, W += "-" + S, (R = T.plotLinesAndBandsGroups[W]) || (T.plotLinesAndBandsGroups[W] = R = c.g("plot-" + W).attr(h).add()), D && (l.svgElem = s = c.path().attr(I).add(R)), n)
  2794. n = T.getPlotLinePath({ value: t, lineWidth: s.strokeWidth(), acrossPanes: k.acrossPanes });
  2795. else if (P)
  2796. n = T.getPlotBandPath(
  2797. a,
  2798. p,
  2799. k
  2800. );
  2801. else
  2802. return;
  2803. return !l.eventsAdded && v && (w(v, function(E, X) {
  2804. s.on(X, function(g) {
  2805. v[X].apply(l, [g]);
  2806. });
  2807. }), l.eventsAdded = !0), (D || !s.d) && n && n.length ? s.attr({ d: n }) : s && (n ? (s.show(!0), s.animate({ d: n })) : s.d && (s.hide(), i && (l.label = i = i.destroy()))), u && (G(u.text) || G(u.formatter)) && n && n.length && 0 < T.width && 0 < T.height && !n.isFlat ? (u = j({ align: O && P && "center", x: O ? !P && 4 : 10, verticalAlign: !O && P && "middle", y: O ? P ? 16 : 10 : P ? 6 : -4, rotation: O && !P && 90 }, u), this.renderLabel(u, n, P, S)) : i && i.hide(), l;
  2808. }, f.prototype.renderLabel = function(l, T, O, R) {
  2809. var k = this.axis, b = k.chart.renderer, S = this.label;
  2810. S || (this.label = S = b.text(this.getLabelText(l), 0, 0, l.useHTML).attr({ align: l.textAlign || l.align, rotation: l.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (l.className || ""), zIndex: R }).add(), k.chart.styledMode || S.css(j({ textOverflow: "ellipsis" }, l.style))), R = T.xBounds || [T[0][1], T[1][1], O ? T[2][1] : T[0][1]], T = T.yBounds || [T[0][2], T[1][2], O ? T[2][2] : T[0][2]], O = U(R), b = U(T), S.align(l, !1, { x: O, y: b, width: _(R) - O, height: _(T) - b }), S.alignValue && S.alignValue !== "left" || S.css({ width: (S.rotation === 90 ? k.height - (S.alignAttr.y - k.top) : k.width - (S.alignAttr.x - k.left)) + "px" }), S.show(!0);
  2811. }, f.prototype.getLabelText = function(l) {
  2812. return G(l.formatter) ? l.formatter.call(this) : l.text;
  2813. }, f.prototype.destroy = function() {
  2814. F(this.axis.plotLinesAndBands, this), delete this.axis, V(this);
  2815. }, f;
  2816. }(), N;
  2817. }), C(
  2818. o,
  2819. "Core/Tooltip.js",
  2820. [o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Renderer/RendererUtilities.js"], o["Core/Renderer/RendererRegistry.js"], o["Core/Utilities.js"]],
  2821. function(y, N, _, U, G) {
  2822. var V = y.format, F = N.doc, B = _.distribute, j = G.addEvent, w = G.clamp, x = G.css, f = G.defined, l = G.discardElement, T = G.extend, O = G.fireEvent, R = G.isArray, k = G.isNumber, b = G.isString, S = G.merge, v = G.pick, h = G.splat, c = G.syncTimeout;
  2823. return y = function() {
  2824. function u(i, p) {
  2825. this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = i, this.init(i, p);
  2826. }
  2827. return u.prototype.applyFilter = function() {
  2828. var i = this.chart;
  2829. i.renderer.definition({
  2830. tagName: "filter",
  2831. attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 },
  2832. children: [{ tagName: "feGaussianBlur", attributes: { in: "SourceAlpha", stdDeviation: 1 } }, { tagName: "feOffset", attributes: { dx: 1, dy: 1 } }, { tagName: "feComponentTransfer", children: [{ tagName: "feFuncA", attributes: { type: "linear", slope: 0.3 } }] }, { tagName: "feMerge", children: [{ tagName: "feMergeNode" }, { tagName: "feMergeNode", attributes: { in: "SourceGraphic" } }] }]
  2833. });
  2834. }, u.prototype.bodyFormatter = function(i) {
  2835. return i.map(function(p) {
  2836. var a = p.series.tooltipOptions;
  2837. return (a[(p.point.formatPrefix || "point") + "Formatter"] || p.point.tooltipFormatter).call(p.point, a[(p.point.formatPrefix || "point") + "Format"] || "");
  2838. });
  2839. }, u.prototype.cleanSplit = function(i) {
  2840. this.chart.series.forEach(function(p) {
  2841. var a = p && p.tt;
  2842. a && (!a.isActive || i ? p.tt = a.destroy() : a.isActive = !1);
  2843. });
  2844. }, u.prototype.defaultFormatter = function(i) {
  2845. var p = this.points || h(this), a = [i.tooltipFooterHeaderFormatter(p[0])];
  2846. return a = a.concat(i.bodyFormatter(p)), a.push(i.tooltipFooterHeaderFormatter(p[0], !0)), a;
  2847. }, u.prototype.destroy = function() {
  2848. this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), l(this.container)), G.clearTimeout(this.hideTimer), G.clearTimeout(this.tooltipTimeout);
  2849. }, u.prototype.getAnchor = function(i, p) {
  2850. var a = this.chart, t = a.pointer, s = a.inverted, n = a.plotTop, P = a.plotLeft, D, I, W = 0, E = 0;
  2851. return i = h(i), this.followPointer && p ? (typeof p.chartX > "u" && (p = t.normalize(p)), t = [p.chartX - P, p.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  2852. D = X.series.yAxis, I = X.series.xAxis, W += X.plotX || 0, E += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, I && D && (s ? (W += n + a.plotHeight - I.len - I.pos, E += P + a.plotWidth - D.len - D.pos) : (W += I.pos - P, E += D.pos - n));
  2853. }), W /= i.length, E /= i.length, t = [s ? a.plotWidth - E : W, s ? a.plotHeight - W : E], this.shared && 1 < i.length && p && (s ? t[0] = p.chartX - P : t[1] = p.chartY - n)), t.map(Math.round);
  2854. }, u.prototype.getLabel = function() {
  2855. var i = this, p = this.chart.styledMode, a = this.options, t = this.split && this.allowShared, s = "tooltip" + (f(a.className) ? " " + a.className : ""), n = a.style.pointerEvents || (!this.followPointer && a.stickOnContact ? "auto" : "none"), P = function() {
  2856. i.inContact = !0;
  2857. }, D = function(z) {
  2858. var $ = i.chart.hoverSeries;
  2859. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(z.relatedTarget, "highcharts-tooltip"), !i.inContact && $ && $.onMouseOut && $.onMouseOut();
  2860. }, I, W = this.chart.renderer;
  2861. if (i.label) {
  2862. var E = !i.label.hasClass("highcharts-label");
  2863. (t && !E || !t && E) && i.destroy();
  2864. }
  2865. if (!this.label) {
  2866. if (this.outside) {
  2867. E = this.chart.options.chart.style;
  2868. var X = U.getRendererType();
  2869. this.container = I = N.doc.createElement("div"), I.className = "highcharts-tooltip-container", x(I, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (E && E.zIndex || 0) + 3) }), j(I, "mouseenter", P), j(I, "mouseleave", D), N.doc.body.appendChild(I), this.renderer = W = new X(I, 0, 0, E, void 0, void 0, W.styledMode);
  2870. }
  2871. if (t ? this.label = W.g(s) : (this.label = W.label("", 0, 0, a.shape, void 0, void 0, a.useHTML, void 0, s).attr({ padding: a.padding, r: a.borderRadius }), p || this.label.attr({
  2872. fill: a.backgroundColor,
  2873. "stroke-width": a.borderWidth
  2874. }).css(a.style).css({ pointerEvents: n }).shadow(a.shadow)), p && a.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  2875. var g = this.label, m = g.xSetter, L = g.ySetter;
  2876. g.xSetter = function(z) {
  2877. m.call(g, i.distance), I.style.left = z + "px";
  2878. }, g.ySetter = function(z) {
  2879. L.call(g, i.distance), I.style.top = z + "px";
  2880. };
  2881. }
  2882. this.label.on("mouseenter", P).on("mouseleave", D).attr({ zIndex: 8 }).add();
  2883. }
  2884. return this.label;
  2885. }, u.prototype.getPosition = function(i, p, a) {
  2886. var t = this.chart, s = this.distance, n = {}, P = t.inverted && a.h || 0, D = this.outside, I = D ? F.documentElement.clientWidth - 2 * s : t.chartWidth, W = D ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : t.chartHeight, E = t.pointer.getChartPosition(), X = function(Y) {
  2887. var Z = Y === "x";
  2888. return [Y, Z ? I : W, Z ? i : p].concat(D ? [Z ? i * E.scaleX : p * E.scaleY, Z ? E.left - s + (a.plotX + t.plotLeft) * E.scaleX : E.top - s + (a.plotY + t.plotTop) * E.scaleY, 0, Z ? I : W] : [Z ? i : p, Z ? a.plotX + t.plotLeft : a.plotY + t.plotTop, Z ? t.plotLeft : t.plotTop, Z ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  2889. }, g = X("y"), m = X("x"), L;
  2890. X = !!a.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  2891. var z = !this.followPointer && v(a.ttBelow, !t.inverted === X), $ = function(Y, Z, q, it, et, nt, rt) {
  2892. var ct = D ? Y === "y" ? s * E.scaleY : s * E.scaleX : s, gt = (q - it) / 2, dt = it < et - s, ht = et + s + it < Z, at = et - ct - q + gt;
  2893. if (et = et + ct - gt, z && ht)
  2894. n[Y] = et;
  2895. else if (!z && dt)
  2896. n[Y] = at;
  2897. else if (dt)
  2898. n[Y] = Math.min(rt - it, 0 > at - P ? at : at - P);
  2899. else if (ht)
  2900. n[Y] = Math.max(nt, et + P + q > Z ? et : et + P);
  2901. else
  2902. return !1;
  2903. }, Q = function(Y, Z, q, it, et) {
  2904. var nt;
  2905. return et < s || et > Z - s ? nt = !1 : n[Y] = et < q / 2 ? 1 : et > Z - it / 2 ? Z - it - 2 : et - q / 2, nt;
  2906. }, A = function(Y) {
  2907. var Z = g;
  2908. g = m, m = Z, L = Y;
  2909. }, H = function() {
  2910. $.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (A(!0), H()) : L ? n.x = n.y = 0 : (A(!0), H());
  2911. };
  2912. return (t.inverted || 1 < this.len) && A(), H(), n;
  2913. }, u.prototype.hide = function(i) {
  2914. var p = this;
  2915. G.clearTimeout(this.hideTimer), i = v(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  2916. p.getLabel().fadeOut(i && void 0), p.isHidden = !0;
  2917. }, i));
  2918. }, u.prototype.init = function(i, p) {
  2919. this.chart = i, this.options = p, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = p.split && !i.inverted && !i.polar, this.shared = p.shared || this.split, this.outside = v(p.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  2920. }, u.prototype.shouldStickOnContact = function() {
  2921. return !(this.followPointer || !this.options.stickOnContact);
  2922. }, u.prototype.isStickyOnContact = function() {
  2923. return !(!this.shouldStickOnContact() || !this.inContact);
  2924. }, u.prototype.move = function(i, p, a, t) {
  2925. var s = this, n = s.now, P = s.options.animation !== !1 && !s.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(p - n.y)), D = s.followPointer || 1 < s.len;
  2926. T(n, { x: P ? (2 * n.x + i) / 3 : i, y: P ? (n.y + p) / 2 : p, anchorX: D ? void 0 : P ? (2 * n.anchorX + a) / 3 : a, anchorY: D ? void 0 : P ? (n.anchorY + t) / 2 : t }), s.getLabel().attr(n), s.drawTracker(), P && (G.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  2927. s && s.move(i, p, a, t);
  2928. }, 32));
  2929. }, u.prototype.refresh = function(i, p) {
  2930. var a = this.chart, t = this.options, s = h(i), n = s[0], P = [], D = t.formatter || this.defaultFormatter, I = this.shared, W = a.styledMode, E = {};
  2931. if (t.enabled) {
  2932. G.clearTimeout(this.hideTimer), this.allowShared = !(!R(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, p);
  2933. var X = i[0], g = i[1];
  2934. if (I && this.allowShared ? (a.pointer.applyInactiveState(s), s.forEach(function(z) {
  2935. z.setState("hover"), P.push(z.getLabelConfig());
  2936. }), E = { x: n.category, y: n.y }, E.points = P) : E = n.getLabelConfig(), this.len = P.length, D = D.call(E, this), I = n.series, this.distance = v(I.tooltipOptions.distance, 16), D === !1)
  2937. this.hide();
  2938. else {
  2939. if (this.split && this.allowShared)
  2940. this.renderSplit(
  2941. D,
  2942. s
  2943. );
  2944. else {
  2945. var m = X, L = g;
  2946. if (p && a.pointer.isDirectTouch && (m = p.chartX - a.plotLeft, L = p.chartY - a.plotTop), a.polar || I.options.clip === !1 || s.some(function(z) {
  2947. return z.series.shouldShowTooltip(m, L);
  2948. }))
  2949. p = this.getLabel(), t.style.width && !W || p.css({ width: this.chart.spacingBox.width + "px" }), p.attr({ text: D && D.join ? D.join("") : D }), p.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + v(n.colorIndex, I.colorIndex)), W || p.attr({ stroke: t.borderColor || n.color || I.color || "#666666" }), this.updatePosition({
  2950. plotX: X,
  2951. plotY: g,
  2952. negative: n.negative,
  2953. ttBelow: n.ttBelow,
  2954. h: i[2] || 0
  2955. });
  2956. else {
  2957. this.hide();
  2958. return;
  2959. }
  2960. }
  2961. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  2962. }
  2963. O(this, "refresh");
  2964. }
  2965. }, u.prototype.renderSplit = function(i, p) {
  2966. function a(ht, at, J, tt, ot) {
  2967. return ot === void 0 && (ot = !0), J ? (at = it ? 0 : ct, ht = w(ht - tt / 2, Y.left, Y.right - tt - (t.outside ? et : 0))) : (at -= nt, ht = ot ? ht - tt - Q : ht + Q, ht = w(ht, ot ? ht : Y.left, Y.right)), { x: ht, y: at };
  2968. }
  2969. var t = this, s = t.chart, n = t.chart, P = n.chartWidth, D = n.chartHeight, I = n.plotHeight, W = n.plotLeft, E = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  2970. g = g === void 0 ? 0 : g;
  2971. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  2972. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  2973. var z = L.scrollLeft;
  2974. L = L.scrollTop;
  2975. var $ = n.styledMode, Q = t.distance, A = t.options, H = t.options.positioner, Y = t.outside && typeof m != "number" ? F.documentElement.getBoundingClientRect() : { left: z, right: z + P, top: L, bottom: L + D }, Z = t.getLabel(), q = this.renderer || s.renderer, it = !(!s.xAxis[0] || !s.xAxis[0].opposite);
  2976. s = X.getChartPosition();
  2977. var et = s.left;
  2978. s = s.top;
  2979. var nt = E + L, rt = 0, ct = I - g;
  2980. b(i) && (i = [!1, i]), i = i.slice(0, p.length + 1).reduce(function(ht, at, J) {
  2981. if (at !== !1 && at !== "") {
  2982. J = p[J - 1] || { isHeader: !0, plotX: p[0].plotX, plotY: I, series: {} };
  2983. var tt = J.isHeader, ot = tt ? t : J.series;
  2984. at = at.toString();
  2985. var lt = ot.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + v(J.colorIndex, yt.colorIndex, "none");
  2986. if (lt || (lt = { padding: A.padding, r: A.borderRadius }, $ || (lt.fill = A.backgroundColor, lt["stroke-width"] = A.borderWidth), lt = q.label("", 0, 0, A[pt ? "headerShape" : "shape"], void 0, void 0, A.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(lt).add(Z)), lt.isActive = !0, lt.attr({ text: at }), $ || lt.css(A.style).shadow(A.shadow).attr({ stroke: A.borderColor || J.color || yt.color || "#333333" }), ot = ot.tt = lt, pt = ot.getBBox(), at = pt.width + ot.strokeWidth(), tt && (rt = pt.height, ct += rt, it && (nt -= rt)), yt = J.plotX, yt = yt === void 0 ? 0 : yt, vt = J.plotY, vt = vt === void 0 ? 0 : vt, lt = J.series, J.isHeader) {
  2987. yt = W + yt;
  2988. var Ct = E + I / 2;
  2989. } else {
  2990. var Pt = lt.xAxis, At = lt.yAxis;
  2991. yt = Pt.pos + w(yt, -Q, Pt.len + Q), lt.shouldShowTooltip(0, At.pos - E + vt, { ignoreX: !0 }) && (Ct = At.pos + vt);
  2992. }
  2993. yt = w(yt, Y.left - Q, Y.right + Q), typeof Ct == "number" ? (pt = pt.height + 1, vt = H ? H.call(t, at, pt, J) : a(
  2994. yt,
  2995. Ct,
  2996. tt,
  2997. at
  2998. ), ht.push({ align: H ? 0 : void 0, anchorX: yt, anchorY: Ct, boxWidth: at, point: J, rank: v(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: ot, x: vt.x })) : ot.isActive = !1;
  2999. }
  3000. return ht;
  3001. }, []), !H && i.some(function(ht) {
  3002. var at = (t.outside ? et : 0) + ht.anchorX;
  3003. return at < Y.left && at + ht.boxWidth < Y.right ? !0 : at < et - Y.left + ht.boxWidth && Y.right - at > at;
  3004. }) && (i = i.map(function(ht) {
  3005. var at = a(ht.anchorX, ht.anchorY, ht.point.isHeader, ht.boxWidth, !1);
  3006. return T(ht, { target: at.y, x: at.x });
  3007. })), t.cleanSplit(), B(i, ct);
  3008. var gt = et, dt = et;
  3009. i.forEach(function(ht) {
  3010. var at = ht.x, J = ht.boxWidth;
  3011. ht = ht.isHeader, ht || (t.outside && et + at < gt && (gt = et + at), !ht && t.outside && gt + J > dt && (dt = et + at));
  3012. }), i.forEach(function(ht) {
  3013. var at = ht.x, J = ht.anchorX, tt = ht.pos, ot = ht.point.isHeader;
  3014. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: ht.anchorY }, t.outside && at < J) {
  3015. var lt = et - gt;
  3016. 0 < lt && (ot || (tt.x = at + lt, tt.anchorX = J + lt), ot && (tt.x = (dt - gt) / 2, tt.anchorX = J + lt));
  3017. }
  3018. ht.tt.attr(tt);
  3019. }), i = t.container, g = t.renderer, t.outside && i && g && (n = Z.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = s + "px");
  3020. }, u.prototype.drawTracker = function() {
  3021. if (this.followPointer || !this.options.stickOnContact)
  3022. this.tracker && this.tracker.destroy();
  3023. else {
  3024. var i = this.chart, p = this.label, a = this.shared ? i.hoverPoints : i.hoverPoint;
  3025. if (p && a) {
  3026. var t = { x: 0, y: 0, width: 0, height: 0 };
  3027. a = this.getAnchor(a);
  3028. var s = p.getBBox();
  3029. a[0] += i.plotLeft - p.translateX, a[1] += i.plotTop - p.translateY, t.x = Math.min(0, a[0]), t.y = Math.min(0, a[1]), t.width = 0 > a[0] ? Math.max(Math.abs(a[0]), s.width - a[0]) : Math.max(Math.abs(a[0]), s.width), t.height = 0 > a[1] ? Math.max(Math.abs(a[1]), s.height - Math.abs(a[1])) : Math.max(Math.abs(a[1]), s.height), this.tracker ? this.tracker.attr(t) : (this.tracker = p.renderer.rect(t).addClass("highcharts-tracker").add(p), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  3030. }
  3031. }
  3032. }, u.prototype.styledModeFormat = function(i) {
  3033. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  3034. }, u.prototype.tooltipFooterHeaderFormatter = function(i, p) {
  3035. var a = i.series, t = a.tooltipOptions, s = a.xAxis, n = s && s.dateTime;
  3036. s = {
  3037. isFooter: p,
  3038. labelConfig: i
  3039. };
  3040. var P = t.xDateFormat, D = t[p ? "footerFormat" : "headerFormat"];
  3041. return O(this, "headerFormatter", s, function(I) {
  3042. n && !P && k(i.key) && (P = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && P && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  3043. D = D.replace("{point." + W + "}", "{point." + W + ":" + P + "}");
  3044. }), a.chart.styledMode && (D = this.styledModeFormat(D)), I.text = V(D, { point: i, series: a }, this.chart);
  3045. }), s.text;
  3046. }, u.prototype.update = function(i) {
  3047. this.destroy(), S(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, S(!0, this.options, i));
  3048. }, u.prototype.updatePosition = function(i) {
  3049. var p = this.chart, a = this.options, t = p.pointer, s = this.getLabel();
  3050. t = t.getChartPosition();
  3051. var n = (a.positioner || this.getPosition).call(this, s.width, s.height, i), P = i.plotX + p.plotLeft;
  3052. i = i.plotY + p.plotTop, this.outside && (a = a.borderWidth + 2 * this.distance, this.renderer.setSize(s.width + a, s.height + a, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (x(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), P *= t.scaleX, i *= t.scaleY), P += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), P, i);
  3053. }, u;
  3054. }(), y;
  3055. }
  3056. ), C(o, "Core/Series/Point.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Animation/AnimationUtilities.js"], o["Core/DefaultOptions.js"], o["Core/FormatUtilities.js"], o["Core/Utilities.js"]], function(y, N, _, U, G) {
  3057. var V = N.animObject, F = _.defaultOptions, B = U.format, j = G.addEvent, w = G.defined, x = G.erase, f = G.extend, l = G.fireEvent, T = G.getNestedProperty, O = G.isArray, R = G.isFunction, k = G.isNumber, b = G.isObject, S = G.merge, v = G.objectEach, h = G.pick, c = G.syncTimeout, u = G.removeEvent, i = G.uniqueKey;
  3058. return N = function() {
  3059. function p() {
  3060. this.colorIndex = this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.series = void 0, this.visible = !0, this.x = void 0;
  3061. }
  3062. return p.prototype.animateBeforeDestroy = function() {
  3063. var a = this, t = { x: a.startXPos, opacity: 0 }, s = a.getGraphicalProps();
  3064. s.singular.forEach(function(n) {
  3065. a[n] = a[n].animate(n === "dataLabel" ? {
  3066. x: a[n].startXPos,
  3067. y: a[n].startYPos,
  3068. opacity: 0
  3069. } : t);
  3070. }), s.plural.forEach(function(n) {
  3071. a[n].forEach(function(P) {
  3072. P.element && P.animate(f({ x: a.startXPos }, P.startYPos ? { x: P.startXPos, y: P.startYPos } : {}));
  3073. });
  3074. });
  3075. }, p.prototype.applyOptions = function(a, t) {
  3076. var s = this.series, n = s.options.pointValKey || s.pointValKey;
  3077. return a = p.prototype.optionsToObject.call(this, a), f(this, a), this.options = this.options ? f(this.options, a) : a, a.group && delete this.group, a.dataLabels && delete this.dataLabels, n && (this.y = p.prototype.getNestedProperty.call(this, n)), this.formatPrefix = (this.isNull = h(this.isValid && !this.isValid(), this.x === null || !k(this.y))) ? "null" : "point", this.selected && (this.state = "select"), "name" in this && typeof t > "u" && s.xAxis && s.xAxis.hasNames && (this.x = s.xAxis.nameToX(this)), typeof this.x > "u" && s ? this.x = typeof t > "u" ? s.autoIncrement() : t : k(a.x) && s.options.relativeXValue && (this.x = s.autoIncrement(a.x)), this;
  3078. }, p.prototype.destroy = function() {
  3079. function a() {
  3080. (t.graphic || t.dataLabel || t.dataLabels) && (u(t), t.destroyElements());
  3081. for (I in t)
  3082. t[I] = null;
  3083. }
  3084. var t = this, s = t.series, n = s.chart;
  3085. s = s.options.dataSorting;
  3086. var P = n.hoverPoints, D = V(t.series.chart.renderer.globalAnimation), I;
  3087. t.legendItem && n.legend.destroyItem(t), P && (t.setState(), x(P, t), P.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), s && s.enabled ? (this.animateBeforeDestroy(), c(a, D.duration)) : a(), n.pointCount--;
  3088. }, p.prototype.destroyElements = function(a) {
  3089. var t = this;
  3090. a = t.getGraphicalProps(a), a.singular.forEach(function(s) {
  3091. t[s] = t[s].destroy();
  3092. }), a.plural.forEach(function(s) {
  3093. t[s].forEach(function(n) {
  3094. n.element && n.destroy();
  3095. }), delete t[s];
  3096. });
  3097. }, p.prototype.firePointEvent = function(a, t, s) {
  3098. var n = this, P = this.series.options;
  3099. (P.point.events[a] || n.options && n.options.events && n.options.events[a]) && n.importEvents(), a === "click" && P.allowPointSelect && (s = function(D) {
  3100. n.select && n.select(null, D.ctrlKey || D.metaKey || D.shiftKey);
  3101. }), l(n, a, t, s);
  3102. }, p.prototype.getClassName = function() {
  3103. return "highcharts-point" + (this.selected ? " highcharts-point-select" : "") + (this.negative ? " highcharts-negative" : "") + (this.isNull ? " highcharts-null-point" : "") + (typeof this.colorIndex < "u" ? " highcharts-color-" + this.colorIndex : "") + (this.options.className ? " " + this.options.className : "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "");
  3104. }, p.prototype.getGraphicalProps = function(a) {
  3105. var t = this, s = [], n = { singular: [], plural: [] }, P;
  3106. for (a = a || { graphic: 1, dataLabel: 1 }, a.graphic && s.push("graphic", "upperGraphic", "shadowGroup"), a.dataLabel && s.push("dataLabel", "dataLabelUpper", "connector"), P = s.length; P--; ) {
  3107. var D = s[P];
  3108. t[D] && n.singular.push(D);
  3109. }
  3110. return ["dataLabel", "connector"].forEach(function(I) {
  3111. var W = I + "s";
  3112. a[I] && t[W] && n.plural.push(W);
  3113. }), n;
  3114. }, p.prototype.getLabelConfig = function() {
  3115. 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 };
  3116. }, p.prototype.getNestedProperty = function(a) {
  3117. if (a)
  3118. return a.indexOf("custom.") === 0 ? T(a, this.options) : this[a];
  3119. }, p.prototype.getZone = function() {
  3120. var a = this.series, t = a.zones;
  3121. a = a.zoneAxis || "y";
  3122. var s, n = 0;
  3123. for (s = t[n]; this[a] >= s.value; )
  3124. s = t[++n];
  3125. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = s && s.color && !this.options.color ? s.color : this.nonZonedColor, s;
  3126. }, p.prototype.hasNewShapeType = function() {
  3127. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  3128. }, p.prototype.init = function(a, t, s) {
  3129. return this.series = a, this.applyOptions(t, s), this.id = w(this.id) ? this.id : i(), this.resolveColor(), a.chart.pointCount++, l(this, "afterInit"), this;
  3130. }, p.prototype.optionsToObject = function(a) {
  3131. var t = this.series, s = t.options.keys, n = s || t.pointArrayMap || ["y"], P = n.length, D = {}, I = 0, W = 0;
  3132. if (k(a) || a === null)
  3133. D[n[0]] = a;
  3134. else if (O(a))
  3135. for (!s && a.length > P && (t = typeof a[0], t === "string" ? D.name = a[0] : t === "number" && (D.x = a[0]), I++); W < P; )
  3136. s && typeof a[I] > "u" || (0 < n[W].indexOf(".") ? p.prototype.setNestedProperty(D, a[I], n[W]) : D[n[W]] = a[I]), I++, W++;
  3137. else
  3138. typeof a == "object" && (D = a, a.dataLabels && (t._hasPointLabels = !0), a.marker && (t._hasPointMarkers = !0));
  3139. return D;
  3140. }, p.prototype.resolveColor = function() {
  3141. var a = this.series, t = a.chart.styledMode, s = a.chart.options.chart.colorCount;
  3142. if (delete this.nonZonedColor, a.options.colorByPoint) {
  3143. if (!t) {
  3144. s = a.options.colors || a.chart.options.colors;
  3145. var n = s[a.colorCounter];
  3146. s = s.length;
  3147. }
  3148. t = a.colorCounter, a.colorCounter++, a.colorCounter === s && (a.colorCounter = 0);
  3149. } else
  3150. t || (n = a.color), t = a.colorIndex;
  3151. this.colorIndex = h(this.options.colorIndex, t), this.color = h(this.options.color, n);
  3152. }, p.prototype.setNestedProperty = function(a, t, s) {
  3153. return s.split(".").reduce(function(n, P, D, I) {
  3154. return n[P] = I.length - 1 === D ? t : b(n[P], !0) ? n[P] : {}, n[P];
  3155. }, a), a;
  3156. }, p.prototype.tooltipFormatter = function(a) {
  3157. var t = this.series, s = t.tooltipOptions, n = h(s.valueDecimals, ""), P = s.valuePrefix || "", D = s.valueSuffix || "";
  3158. return t.chart.styledMode && (a = t.chart.tooltip.styledModeFormat(a)), (t.pointArrayMap || ["y"]).forEach(function(I) {
  3159. I = "{point." + I, (P || D) && (a = a.replace(RegExp(I + "}", "g"), P + I + "}" + D)), a = a.replace(RegExp(I + "}", "g"), I + ":,." + n + "f}");
  3160. }), B(a, { point: this, series: this.series }, t.chart);
  3161. }, p.prototype.update = function(a, t, s, n) {
  3162. function P() {
  3163. D.applyOptions(a);
  3164. var m = W && D.hasDummyGraphic;
  3165. m = D.y === null ? !m : m, W && m && (D.graphic = W.destroy(), delete D.hasDummyGraphic), b(a, !0) && (W && W.element && a && a.marker && typeof a.marker.symbol < "u" && (D.graphic = W.destroy()), a && a.dataLabels && D.dataLabel && (D.dataLabel = D.dataLabel.destroy()), D.connector && (D.connector = D.connector.destroy())), g = D.index, I.updateParallelArrays(D, g), X.data[g] = b(X.data[g], !0) || b(a, !0) ? D.options : h(a, X.data[g]), I.isDirty = I.isDirtyData = !0, !I.fixedBox && I.hasCartesianSeries && (E.isDirtyBox = !0), X.legendType === "point" && (E.isDirtyLegend = !0), t && E.redraw(s);
  3166. }
  3167. var D = this, I = D.series, W = D.graphic, E = I.chart, X = I.options, g;
  3168. t = h(t, !0), n === !1 ? P() : D.firePointEvent("update", { options: a }, P);
  3169. }, p.prototype.remove = function(a, t) {
  3170. this.series.removePoint(this.series.data.indexOf(this), a, t);
  3171. }, p.prototype.select = function(a, t) {
  3172. var s = this, n = s.series, P = n.chart;
  3173. this.selectedStaging = a = h(a, !s.selected), s.firePointEvent(a ? "select" : "unselect", { accumulate: t }, function() {
  3174. s.selected = s.options.selected = a, n.options.data[n.data.indexOf(s)] = s.options, s.setState(a && "select"), t || P.getSelectedPoints().forEach(function(D) {
  3175. var I = D.series;
  3176. D.selected && D !== s && (D.selected = D.options.selected = !1, I.options.data[I.data.indexOf(D)] = D.options, D.setState(P.hoverPoints && I.options.inactiveOtherPoints ? "inactive" : ""), D.firePointEvent("unselect"));
  3177. });
  3178. }), delete this.selectedStaging;
  3179. }, p.prototype.onMouseOver = function(a) {
  3180. var t = this.series.chart, s = t.pointer;
  3181. a = a ? s.normalize(a) : s.getChartCoordinatesFromPoint(this, t.inverted), s.runPointActions(
  3182. a,
  3183. this
  3184. );
  3185. }, p.prototype.onMouseOut = function() {
  3186. var a = this.series.chart;
  3187. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (a.hoverPoints || []).forEach(function(t) {
  3188. t.setState();
  3189. }), a.hoverPoints = a.hoverPoint = null;
  3190. }, p.prototype.importEvents = function() {
  3191. if (!this.hasImportedEvents) {
  3192. var a = this, t = S(a.series.options.point, a.options).events;
  3193. a.events = t, v(t, function(s, n) {
  3194. R(s) && j(a, n, s);
  3195. }), this.hasImportedEvents = !0;
  3196. }
  3197. }, p.prototype.setState = function(a, t) {
  3198. var s = this.series, n = this.state, P = s.options.states[a || "normal"] || {}, D = F.plotOptions[s.type].marker && s.options.marker, I = D && D.enabled === !1, W = D && D.states && D.states[a || "normal"] || {}, E = W.enabled === !1, X = this.marker || {}, g = s.chart, m = D && s.markerAttribs, L = s.halo, z, $ = s.stateMarkerGraphic;
  3199. if (a = a || "", !(a === this.state && !t || this.selected && a !== "select" || P.enabled === !1 || a && (E || I && W.enabled === !1) || a && X.states && X.states[a] && X.states[a].enabled === !1)) {
  3200. if (this.state = a, m && (z = s.markerAttribs(this, a)), this.graphic && !this.hasDummyGraphic) {
  3201. if (n && this.graphic.removeClass("highcharts-point-" + n), a && this.graphic.addClass("highcharts-point-" + a), !g.styledMode) {
  3202. var Q = s.pointAttribs(this, a), A = h(g.options.chart.animation, P.animation);
  3203. s.options.inactiveOtherPoints && k(Q.opacity) && ((this.dataLabels || []).forEach(function(H) {
  3204. H && H.animate({ opacity: Q.opacity }, A);
  3205. }), this.connector && this.connector.animate({ opacity: Q.opacity }, A)), this.graphic.animate(Q, A);
  3206. }
  3207. z && this.graphic.animate(z, h(g.options.chart.animation, W.animation, D.animation)), $ && $.hide();
  3208. } else
  3209. a && W && (n = X.symbol || s.symbol, $ && $.currentSymbol !== n && ($ = $.destroy()), z && ($ ? $[t ? "animate" : "attr"]({ x: z.x, y: z.y }) : n && (s.stateMarkerGraphic = $ = g.renderer.symbol(n, z.x, z.y, z.width, z.height).add(s.markerGroup), $.currentSymbol = n)), !g.styledMode && $ && this.state !== "inactive" && $.attr(s.pointAttribs(this, a))), $ && ($[a && this.isInside ? "show" : "hide"](), $.element.point = this, $.addClass(this.getClassName(), !0));
  3210. P = P.halo, z = ($ = this.graphic || $) && $.visibility || "inherit", P && P.size && $ && z !== "hidden" && !this.isCluster ? (L || (s.halo = L = g.renderer.path().add($.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(P.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + h(this.colorIndex, s.colorIndex) + (this.className ? " " + this.className : ""), visibility: z, zIndex: -1 }), L.point = this, g.styledMode || L.attr(f({ fill: this.color || s.color, "fill-opacity": P.opacity }, y.filterUserAttributes(P.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), l(this, "afterSetState", { state: a });
  3211. }
  3212. }, p.prototype.haloPath = function(a) {
  3213. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - a, this.plotY - a, 2 * a, 2 * a);
  3214. }, p;
  3215. }(), N;
  3216. }), C(o, "Core/Pointer.js", [o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Tooltip.js"], o["Core/Utilities.js"]], function(y, N, _, U) {
  3217. var G = y.parse, V = N.charts, F = N.noop, B = U.addEvent, j = U.attr, w = U.css, x = U.defined, f = U.extend, l = U.find, T = U.fireEvent, O = U.isNumber, R = U.isObject, k = U.objectEach, b = U.offset, S = U.pick, v = U.splat;
  3218. return y = function() {
  3219. function h(c, u) {
  3220. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = u, this.init(c, u);
  3221. }
  3222. return h.prototype.applyInactiveState = function(c) {
  3223. var u = [], i;
  3224. (c || []).forEach(function(p) {
  3225. i = p.series, u.push(i), i.linkedParent && u.push(i.linkedParent), i.linkedSeries && (u = u.concat(i.linkedSeries)), i.navigatorSeries && u.push(i.navigatorSeries);
  3226. }), this.chart.series.forEach(function(p) {
  3227. u.indexOf(p) === -1 ? p.setState("inactive", !0) : p.options.inactiveOtherPoints && p.setAllPointsToState("inactive");
  3228. });
  3229. }, h.prototype.destroy = function() {
  3230. var c = this;
  3231. this.eventsToUnbind.forEach(function(u) {
  3232. return u();
  3233. }), this.eventsToUnbind = [], N.chartCount || (h.unbindDocumentMouseUp && (h.unbindDocumentMouseUp = h.unbindDocumentMouseUp()), h.unbindDocumentTouchEnd && (h.unbindDocumentTouchEnd = h.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), k(c, function(u, i) {
  3234. c[i] = void 0;
  3235. });
  3236. }, h.prototype.drag = function(c) {
  3237. var u = this.chart, i = u.options.chart, p = this.zoomHor, a = this.zoomVert, t = u.plotLeft, s = u.plotTop, n = u.plotWidth, P = u.plotHeight, D = this.mouseDownX || 0, I = this.mouseDownY || 0, W = R(i.panning) ? i.panning && i.panning.enabled : i.panning, E = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  3238. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < s ? g = s : g > s + P && (g = s + P), this.hasDragged = Math.sqrt(Math.pow(D - X, 2) + Math.pow(I - g, 2)), 10 < this.hasDragged)) {
  3239. var L = u.isInsidePlot(D - t, I - s, { visiblePlotOnly: !0 });
  3240. !u.hasCartesianSeries && !u.mapView || !this.zoomX && !this.zoomY || !L || E || m || (this.selectionMarker = m = u.renderer.rect(t, s, p ? 1 : n, a ? 1 : P, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), u.styledMode || m.attr({ fill: i.selectionMarkerFill || G("#335cad").setOpacity(0.25).get() })), m && p && (p = X - D, m.attr({ width: Math.abs(p), x: (0 < p ? 0 : p) + D })), m && a && (p = g - I, m.attr({ height: Math.abs(p), y: (0 < p ? 0 : p) + I })), L && !m && W && u.pan(c, i.panning);
  3241. }
  3242. }, h.prototype.dragStart = function(c) {
  3243. var u = this.chart;
  3244. u.mouseIsDown = c.type, u.cancelClick = !1, u.mouseDownX = this.mouseDownX = c.chartX, u.mouseDownY = this.mouseDownY = c.chartY;
  3245. }, h.prototype.drop = function(c) {
  3246. var u = this, i = this.chart, p = this.hasPinched;
  3247. if (this.selectionMarker) {
  3248. var a = this.selectionMarker, t = a.attr ? a.attr("x") : a.x, s = a.attr ? a.attr("y") : a.y, n = a.attr ? a.attr("width") : a.width, P = a.attr ? a.attr("height") : a.height, D = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: s, width: n, height: P }, I = !!i.mapView;
  3249. (this.hasDragged || p) && (i.axes.forEach(function(W) {
  3250. if (W.zoomEnabled && x(W.min) && (p || u[{ xAxis: "zoomX", yAxis: "zoomY" }[W.coll]]) && O(t) && O(s)) {
  3251. var E = W.horiz, X = c.type === "touchend" ? W.minPixelPadding : 0, g = W.toValue((E ? t : s) + X);
  3252. E = W.toValue((E ? t + n : s + P) - X), D[W.coll].push({ axis: W, min: Math.min(g, E), max: Math.max(g, E) }), I = !0;
  3253. }
  3254. }), I && T(i, "selection", D, function(W) {
  3255. i.zoom(f(
  3256. W,
  3257. p ? { animation: !1 } : null
  3258. ));
  3259. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), p && this.scaleGroups();
  3260. }
  3261. i && O(i.index) && (w(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  3262. }, h.prototype.findNearestKDPoint = function(c, u, i) {
  3263. var p = this.chart, a = p.hoverPoint;
  3264. if (p = p.tooltip, a && p && p.isStickyOnContact())
  3265. return a;
  3266. var t;
  3267. return c.forEach(function(s) {
  3268. var n = !(s.noSharedTooltip && u) && 0 > s.options.findNearestPointBy.indexOf("y");
  3269. if (s = s.searchPoint(i, n), (n = R(s, !0) && s.series) && !(n = !R(t, !0))) {
  3270. n = t.distX - s.distX;
  3271. var P = t.dist - s.dist, D = (s.series.group && s.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  3272. n = 0 < (n !== 0 && u ? n : P !== 0 ? P : D !== 0 ? D : t.series.index > s.series.index ? -1 : 1);
  3273. }
  3274. n && (t = s);
  3275. }), t;
  3276. }, h.prototype.getChartCoordinatesFromPoint = function(c, u) {
  3277. var i = c.series, p = i.xAxis;
  3278. i = i.yAxis;
  3279. var a = c.shapeArgs;
  3280. if (p && i) {
  3281. var t = S(c.clientX, c.plotX), s = c.plotY || 0;
  3282. return c.isNode && a && O(a.x) && O(a.y) && (t = a.x, s = a.y), u ? { chartX: i.len + i.pos - s, chartY: p.len + p.pos - t } : { chartX: t + p.pos, chartY: s + i.pos };
  3283. }
  3284. if (a && a.x && a.y)
  3285. return { chartX: a.x, chartY: a.y };
  3286. }, h.prototype.getChartPosition = function() {
  3287. if (this.chartPosition)
  3288. return this.chartPosition;
  3289. var c = this.chart.container, u = b(c);
  3290. this.chartPosition = { left: u.left, top: u.top, scaleX: 1, scaleY: 1 };
  3291. var i = c.offsetWidth;
  3292. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = u.width / i, this.chartPosition.scaleY = u.height / c), this.chartPosition;
  3293. }, h.prototype.getCoordinates = function(c) {
  3294. var u = { xAxis: [], yAxis: [] };
  3295. return this.chart.axes.forEach(function(i) {
  3296. u[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  3297. }), u;
  3298. }, h.prototype.getHoverData = function(c, u, i, p, a, t) {
  3299. var s = [];
  3300. p = !(!p || !c);
  3301. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: a };
  3302. T(this, "beforeGetHoverData", n);
  3303. var P = u && !u.stickyTracking ? [u] : i.filter(function(I) {
  3304. return n.filter ? n.filter(I) : I.visible && !(!a && I.directTouch) && S(I.options.enableMouseTracking, !0) && I.stickyTracking;
  3305. }), D = p || !t ? c : this.findNearestKDPoint(P, a, t);
  3306. return u = D && D.series, D && (a && !u.noSharedTooltip ? (P = i.filter(function(I) {
  3307. return n.filter ? n.filter(I) : I.visible && !(!a && I.directTouch) && S(I.options.enableMouseTracking, !0) && !I.noSharedTooltip;
  3308. }), P.forEach(function(I) {
  3309. var W = l(I.points, function(E) {
  3310. return E.x === D.x && !E.isNull;
  3311. });
  3312. R(W) && (I.chart.isBoosting && (W = I.getPoint(W)), s.push(W));
  3313. })) : s.push(D)), n = { hoverPoint: D }, T(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: u, hoverPoints: s };
  3314. }, h.prototype.getPointFromEvent = function(c) {
  3315. c = c.target;
  3316. for (var u; c && !u; )
  3317. u = c.point, c = c.parentNode;
  3318. return u;
  3319. }, h.prototype.onTrackerMouseOut = function(c) {
  3320. c = c.relatedTarget || c.toElement;
  3321. var u = this.chart.hoverSeries;
  3322. this.isDirectTouch = !1, !u || !c || u.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + u.index) && this.inClass(c, "highcharts-tracker") || u.onMouseOut();
  3323. }, h.prototype.inClass = function(c, u) {
  3324. for (var i; c; ) {
  3325. if (i = j(c, "class")) {
  3326. if (i.indexOf(u) !== -1)
  3327. return !0;
  3328. if (i.indexOf("highcharts-container") !== -1)
  3329. return !1;
  3330. }
  3331. c = c.parentNode;
  3332. }
  3333. }, h.prototype.init = function(c, u) {
  3334. this.options = u, this.chart = c, this.runChartClick = !(!u.chart.events || !u.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, _ && (c.tooltip = new _(c, u.tooltip), this.followTouchMove = S(u.tooltip.followTouchMove, !0)), this.setDOMEvents();
  3335. }, h.prototype.normalize = function(c, u) {
  3336. var i = c.touches, p = i ? i.length ? i.item(0) : S(i.changedTouches, c.changedTouches)[0] : c;
  3337. return u || (u = this.getChartPosition()), i = p.pageX - u.left, p = p.pageY - u.top, i /= u.scaleX, p /= u.scaleY, f(c, { chartX: Math.round(i), chartY: Math.round(p) });
  3338. }, h.prototype.onContainerClick = function(c) {
  3339. var u = this.chart, i = u.hoverPoint;
  3340. c = this.normalize(c);
  3341. var p = u.plotLeft, a = u.plotTop;
  3342. u.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (T(i.series, "click", f(c, { point: i })), u.hoverPoint && i.firePointEvent("click", c)) : (f(c, this.getCoordinates(c)), u.isInsidePlot(c.chartX - p, c.chartY - a, { visiblePlotOnly: !0 }) && T(u, "click", c)));
  3343. }, h.prototype.onContainerMouseDown = function(c) {
  3344. var u = ((c.buttons || c.button) & 1) === 1;
  3345. c = this.normalize(c), N.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || u) && (this.zoomOption(c), u && c.preventDefault && c.preventDefault(), this.dragStart(c));
  3346. }, h.prototype.onContainerMouseLeave = function(c) {
  3347. var u = V[S(h.hoverChartIndex, -1)], i = this.chart.tooltip;
  3348. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), u && (c.relatedTarget || c.toElement) && (u.pointer.reset(), u.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  3349. }, h.prototype.onContainerMouseEnter = function(c) {
  3350. delete this.chartPosition;
  3351. }, h.prototype.onContainerMouseMove = function(c) {
  3352. var u = this.chart;
  3353. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (u.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), u.openMenu || !this.inClass(c.target, "highcharts-tracker") && !u.isInsidePlot(c.chartX - u.plotLeft, c.chartY - u.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  3354. }, h.prototype.onDocumentTouchEnd = function(c) {
  3355. var u = V[S(
  3356. h.hoverChartIndex,
  3357. -1
  3358. )];
  3359. u && u.pointer.drop(c);
  3360. }, h.prototype.onContainerTouchMove = function(c) {
  3361. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  3362. }, h.prototype.onContainerTouchStart = function(c) {
  3363. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  3364. }, h.prototype.onDocumentMouseMove = function(c) {
  3365. var u = this.chart, i = this.chartPosition;
  3366. c = this.normalize(c, i);
  3367. var p = u.tooltip;
  3368. !i || p && p.isStickyOnContact() || u.isInsidePlot(c.chartX - u.plotLeft, c.chartY - u.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  3369. }, h.prototype.onDocumentMouseUp = function(c) {
  3370. var u = V[S(h.hoverChartIndex, -1)];
  3371. u && u.pointer.drop(c);
  3372. }, h.prototype.pinch = function(c) {
  3373. var u = this, i = u.chart, p = u.pinchDown, a = c.touches || [], t = a.length, s = u.lastValidTouch, n = u.hasZoom, P = {}, D = t === 1 && (u.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || u.runChartClick), I = {}, W = u.selectionMarker;
  3374. 1 < t ? u.initiated = !0 : t === 1 && this.followTouchMove && (u.initiated = !1), n && u.initiated && !D && c.cancelable !== !1 && c.preventDefault(), [].map.call(a, function(E) {
  3375. return u.normalize(E);
  3376. }), c.type === "touchstart" ? ([].forEach.call(a, function(E, X) {
  3377. p[X] = { chartX: E.chartX, chartY: E.chartY };
  3378. }), s.x = [p[0].chartX, p[1] && p[1].chartX], s.y = [p[0].chartY, p[1] && p[1].chartY], i.axes.forEach(function(E) {
  3379. if (E.zoomEnabled) {
  3380. var X = i.bounds[E.horiz ? "h" : "v"], g = E.minPixelPadding, m = E.toPixels(Math.min(S(E.options.min, E.dataMin), E.dataMin)), L = E.toPixels(Math.max(S(E.options.max, E.dataMax), E.dataMax)), z = Math.max(m, L);
  3381. X.min = Math.min(E.pos, Math.min(
  3382. m,
  3383. L
  3384. ) - g), X.max = Math.max(E.pos + E.len, z + g);
  3385. }
  3386. }), u.res = !0) : u.followTouchMove && t === 1 ? this.runPointActions(u.normalize(c)) : p.length && (T(i, "touchpan", { originalEvent: c }, function() {
  3387. W || (u.selectionMarker = W = f({ destroy: F, touch: !0 }, i.plotBox)), u.pinchTranslate(p, a, P, W, I, s), u.hasPinched = n, u.scaleGroups(P, I);
  3388. }), u.res && (u.res = !1, this.reset(!1, 0)));
  3389. }, h.prototype.pinchTranslate = function(c, u, i, p, a, t) {
  3390. this.zoomHor && this.pinchTranslateDirection(!0, c, u, i, p, a, t), this.zoomVert && this.pinchTranslateDirection(!1, c, u, i, p, a, t);
  3391. }, h.prototype.pinchTranslateDirection = function(c, u, i, p, a, t, s, n) {
  3392. var P = this.chart, D = c ? "x" : "y", I = c ? "X" : "Y", W = "chart" + I, E = c ? "width" : "height", X = P["plot" + (c ? "Left" : "Top")], g = P.inverted, m = P.bounds[c ? "h" : "v"], L = u.length === 1, z = u[0][W], $ = !L && u[1][W];
  3393. u = function() {
  3394. typeof Z == "number" && 20 < Math.abs(z - $) && (H = n || Math.abs(Y - Z) / Math.abs(z - $)), A = (X - Y) / H + z, Q = P["plot" + (c ? "Width" : "Height")] / H;
  3395. };
  3396. var Q, A, H = n || 1, Y = i[0][W], Z = !L && i[1][W];
  3397. if (u(), i = A, i < m.min) {
  3398. i = m.min;
  3399. var q = !0;
  3400. } else
  3401. i + Q > m.max && (i = m.max - Q, q = !0);
  3402. q ? (Y -= 0.8 * (Y - s[D][0]), typeof Z == "number" && (Z -= 0.8 * (Z - s[D][1])), u()) : s[D] = [Y, Z], g || (t[D] = A - X, t[E] = Q), t = g ? 1 / H : H, a[E] = Q, a[D] = i, p[g ? c ? "scaleY" : "scaleX" : "scale" + I] = H, p["translate" + I] = t * X + (Y - t * z);
  3403. }, h.prototype.reset = function(c, u) {
  3404. var i = this.chart, p = i.hoverSeries, a = i.hoverPoint, t = i.hoverPoints, s = i.tooltip, n = s && s.shared ? t : a;
  3405. c && n && v(n).forEach(function(P) {
  3406. P.series.isCartesian && typeof P.plotX > "u" && (c = !1);
  3407. }), c ? s && n && v(n).length && (s.refresh(n), s.shared && t ? t.forEach(function(P) {
  3408. P.setState(P.state, !0), P.series.isCartesian && (P.series.xAxis.crosshair && P.series.xAxis.drawCrosshair(
  3409. null,
  3410. P
  3411. ), P.series.yAxis.crosshair && P.series.yAxis.drawCrosshair(null, P));
  3412. }) : a && (a.setState(a.state, !0), i.axes.forEach(function(P) {
  3413. P.crosshair && a.series[P.coll] === P && P.drawCrosshair(null, a);
  3414. }))) : (a && a.onMouseOut(), t && t.forEach(function(P) {
  3415. P.setState();
  3416. }), p && p.onMouseOut(), s && s.hide(u), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(P) {
  3417. P.hideCrosshair();
  3418. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  3419. }, h.prototype.runPointActions = function(c, u) {
  3420. var i = this.chart, p = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, a = p ? p.shared : !1, t = u || i.hoverPoint, s = t && t.series || i.hoverSeries;
  3421. u = this.getHoverData(t, s, i.series, (!c || c.type !== "touchmove") && (!!u || s && s.directTouch && this.isDirectTouch), a, c), t = u.hoverPoint, s = u.hoverSeries;
  3422. var n = u.hoverPoints;
  3423. if (u = s && s.tooltipOptions.followPointer && !s.tooltipOptions.split, a = a && s && !s.noSharedTooltip, t && (t !== i.hoverPoint || p && p.isHidden)) {
  3424. if ((i.hoverPoints || []).forEach(function(P) {
  3425. n.indexOf(P) === -1 && P.setState();
  3426. }), i.hoverSeries !== s && s.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(P) {
  3427. P.setState("hover");
  3428. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  3429. return;
  3430. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), p && p.refresh(a ? n : t, c);
  3431. } else
  3432. u && p && !p.isHidden && (t = p.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && p.updatePosition({ plotX: t[0], plotY: t[1] }));
  3433. this.unDocMouseMove || (this.unDocMouseMove = B(i.container.ownerDocument, "mousemove", function(P) {
  3434. var D = V[h.hoverChartIndex];
  3435. D && D.pointer.onDocumentMouseMove(P);
  3436. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(P) {
  3437. var D = S((P.crosshair || {}).snap, !0), I;
  3438. D && ((I = i.hoverPoint) && I.series[P.coll] === P || (I = l(n, function(W) {
  3439. return W.series[P.coll] === P;
  3440. }))), I || !D ? P.drawCrosshair(c, I) : P.hideCrosshair();
  3441. });
  3442. }, h.prototype.scaleGroups = function(c, u) {
  3443. var i = this.chart;
  3444. i.series.forEach(function(p) {
  3445. var a = c || p.getPlotBox();
  3446. p.group && (p.xAxis && p.xAxis.zoomEnabled || i.mapView) && (p.group.attr(a), p.markerGroup && (p.markerGroup.attr(a), p.markerGroup.clip(u ? i.clipRect : null)), p.dataLabelsGroup && p.dataLabelsGroup.attr(a));
  3447. }), i.clipRect.attr(u || i.clipBox);
  3448. }, h.prototype.setDOMEvents = function() {
  3449. var c = this, u = this.chart.container, i = u.ownerDocument;
  3450. u.onmousedown = this.onContainerMouseDown.bind(this), u.onmousemove = this.onContainerMouseMove.bind(this), u.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(B(u, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(B(u, "mouseleave", this.onContainerMouseLeave.bind(this))), h.unbindDocumentMouseUp || (h.unbindDocumentMouseUp = B(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  3451. for (var p = this.chart.renderTo.parentElement; p && p.tagName !== "BODY"; )
  3452. this.eventsToUnbind.push(B(p, "scroll", function() {
  3453. delete c.chartPosition;
  3454. })), p = p.parentElement;
  3455. N.hasTouch && (this.eventsToUnbind.push(B(u, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(B(u, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), h.unbindDocumentTouchEnd || (h.unbindDocumentTouchEnd = B(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  3456. }, h.prototype.setHoverChartIndex = function() {
  3457. var c = this.chart, u = N.charts[S(h.hoverChartIndex, -1)];
  3458. u && u !== c && u.pointer.onContainerMouseLeave({ relatedTarget: !0 }), u && u.mouseIsDown || (h.hoverChartIndex = c.index);
  3459. }, h.prototype.touch = function(c, u) {
  3460. var i = this.chart;
  3461. if (this.setHoverChartIndex(), c.touches.length === 1)
  3462. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  3463. if (u && this.runPointActions(c), c.type === "touchmove") {
  3464. u = this.pinchDown;
  3465. var p = u[0] ? 4 <= Math.sqrt(Math.pow(u[0].chartX - c.chartX, 2) + Math.pow(u[0].chartY - c.chartY, 2)) : !1;
  3466. }
  3467. S(p, !0) && this.pinch(c);
  3468. } else
  3469. u && this.reset();
  3470. else
  3471. c.touches.length === 2 && this.pinch(c);
  3472. }, h.prototype.touchSelect = function(c) {
  3473. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  3474. }, h.prototype.zoomOption = function(c) {
  3475. var u = this.chart, i = u.options.chart;
  3476. u = u.inverted;
  3477. var p = i.zoomType || "";
  3478. /touch/.test(c.type) && (p = S(i.pinchType, p)), this.zoomX = c = /x/.test(p), this.zoomY = i = /y/.test(p), this.zoomHor = c && !u || i && u, this.zoomVert = i && !u || c && u, this.hasZoom = c || i;
  3479. }, h;
  3480. }(), y;
  3481. }), C(o, "Core/MSPointer.js", [o["Core/Globals.js"], o["Core/Pointer.js"], o["Core/Utilities.js"]], function(y, N, _) {
  3482. function U() {
  3483. var k = [];
  3484. return k.item = function(b) {
  3485. return this[b];
  3486. }, l(O, function(b) {
  3487. k.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  3488. }), k;
  3489. }
  3490. function G(k, b, S, v) {
  3491. var h = F[N.hoverChartIndex || NaN];
  3492. k.pointerType !== "touch" && k.pointerType !== k.MSPOINTER_TYPE_TOUCH || !h || (h = h.pointer, v(k), h[b]({ type: S, target: k.currentTarget, preventDefault: j, touches: U() }));
  3493. }
  3494. var V = this && this.__extends || function() {
  3495. var k = function(b, S) {
  3496. return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, h) {
  3497. v.__proto__ = h;
  3498. } || function(v, h) {
  3499. for (var c in h)
  3500. h.hasOwnProperty(c) && (v[c] = h[c]);
  3501. }, k(b, S);
  3502. };
  3503. return function(b, S) {
  3504. function v() {
  3505. this.constructor = b;
  3506. }
  3507. k(b, S), b.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  3508. };
  3509. }(), F = y.charts, B = y.doc, j = y.noop, w = y.win, x = _.addEvent, f = _.css, l = _.objectEach, T = _.removeEvent, O = {}, R = !!w.PointerEvent;
  3510. return function(k) {
  3511. function b() {
  3512. return k !== null && k.apply(this, arguments) || this;
  3513. }
  3514. return V(b, k), b.isRequired = function() {
  3515. return !(y.hasTouch || !w.PointerEvent && !w.MSPointerEvent);
  3516. }, b.prototype.batchMSEvents = function(S) {
  3517. S(this.chart.container, R ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), S(this.chart.container, R ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), S(B, R ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  3518. }, b.prototype.destroy = function() {
  3519. this.batchMSEvents(T), k.prototype.destroy.call(this);
  3520. }, b.prototype.init = function(S, v) {
  3521. k.prototype.init.call(this, S, v), this.hasZoom && f(S.container, { "-ms-touch-action": "none", "touch-action": "none" });
  3522. }, b.prototype.onContainerPointerDown = function(S) {
  3523. G(S, "onContainerTouchStart", "touchstart", function(v) {
  3524. O[v.pointerId] = { pageX: v.pageX, pageY: v.pageY, target: v.currentTarget };
  3525. });
  3526. }, b.prototype.onContainerPointerMove = function(S) {
  3527. G(S, "onContainerTouchMove", "touchmove", function(v) {
  3528. O[v.pointerId] = {
  3529. pageX: v.pageX,
  3530. pageY: v.pageY
  3531. }, O[v.pointerId].target || (O[v.pointerId].target = v.currentTarget);
  3532. });
  3533. }, b.prototype.onDocumentPointerUp = function(S) {
  3534. G(S, "onDocumentTouchEnd", "touchend", function(v) {
  3535. delete O[v.pointerId];
  3536. });
  3537. }, b.prototype.setDOMEvents = function() {
  3538. k.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(x);
  3539. }, b;
  3540. }(N);
  3541. }), C(o, "Core/Legend/Legend.js", [
  3542. o["Core/Animation/AnimationUtilities.js"],
  3543. o["Core/FormatUtilities.js"],
  3544. o["Core/Globals.js"],
  3545. o["Core/Series/Point.js"],
  3546. o["Core/Renderer/RendererUtilities.js"],
  3547. o["Core/Utilities.js"]
  3548. ], function(y, N, _, U, G, V) {
  3549. var F = y.animObject, B = y.setAnimation, j = N.format;
  3550. y = _.isFirefox;
  3551. var w = _.marginNames;
  3552. _ = _.win;
  3553. var x = G.distribute, f = V.addEvent, l = V.createElement, T = V.css, O = V.defined, R = V.discardElement, k = V.find, b = V.fireEvent, S = V.isNumber, v = V.merge, h = V.pick, c = V.relativeLength, u = V.stableSort, i = V.syncTimeout;
  3554. return G = V.wrap, V = function() {
  3555. function p(a, t) {
  3556. this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, 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 = {}, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = a, this.init(a, t);
  3557. }
  3558. return p.prototype.init = function(a, t) {
  3559. this.chart = a, this.setOptions(t), t.enabled && (this.render(), f(this.chart, "endResize", function() {
  3560. this.legend.positionCheckboxes();
  3561. }), this.proximate ? this.unchartrender = f(this.chart, "render", function() {
  3562. this.legend.proximatePositions(), this.legend.positionItems();
  3563. }) : this.unchartrender && this.unchartrender());
  3564. }, p.prototype.setOptions = function(a) {
  3565. var t = h(a.padding, 8);
  3566. this.options = a, this.chart.styledMode || (this.itemStyle = a.itemStyle, this.itemHiddenStyle = v(this.itemStyle, a.itemHiddenStyle)), this.itemMarginTop = a.itemMarginTop || 0, this.itemMarginBottom = a.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = h(
  3567. a.symbolWidth,
  3568. 16
  3569. ), this.pages = [], this.proximate = a.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  3570. }, p.prototype.update = function(a, t) {
  3571. var s = this.chart;
  3572. this.setOptions(v(!0, this.options, a)), this.destroy(), s.isDirtyLegend = s.isDirtyBox = !0, h(t, !0) && s.redraw(), b(this, "afterUpdate");
  3573. }, p.prototype.colorizeItem = function(a, t) {
  3574. if (a.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  3575. var s = this.options, n = a.legendItem, P = a.legendLine, D = a.legendSymbol, I = this.itemHiddenStyle.color;
  3576. s = t ? s.itemStyle.color : I;
  3577. var W = t && a.color || I, E = a.options && a.options.marker, X = { fill: W };
  3578. n && n.css({ fill: s, color: s }), P && P.attr({ stroke: W }), D && (E && D.isMarker && (X = a.pointAttribs(), t || (X.stroke = X.fill = I)), D.attr(X));
  3579. }
  3580. b(this, "afterColorizeItem", { item: a, visible: t });
  3581. }, p.prototype.positionItems = function() {
  3582. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  3583. }, p.prototype.positionItem = function(a) {
  3584. var t = this, s = this.options, n = s.symbolPadding, P = !s.rtl, D = a._legendItemPos;
  3585. s = D[0], D = D[1];
  3586. var I = a.checkbox, W = a.legendGroup;
  3587. W && W.element && (n = { translateX: P ? s : this.legendWidth - s - 2 * n - 4, translateY: D }, P = function() {
  3588. b(t, "afterPositionItem", { item: a });
  3589. }, O(W.translateY) ? W.animate(n, void 0, P) : (W.attr(n), P())), I && (I.x = s, I.y = D);
  3590. }, p.prototype.destroyItem = function(a) {
  3591. var t = a.checkbox;
  3592. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(s) {
  3593. a[s] && (a[s] = a[s].destroy());
  3594. }), t && R(a.checkbox);
  3595. }, p.prototype.destroy = function() {
  3596. function a(t) {
  3597. this[t] && (this[t] = this[t].destroy());
  3598. }
  3599. this.getAllItems().forEach(function(t) {
  3600. [
  3601. "legendItem",
  3602. "legendGroup"
  3603. ].forEach(a, t);
  3604. }), "clipRect up down pager nav box title group".split(" ").forEach(a, this), this.display = null;
  3605. }, p.prototype.positionCheckboxes = function() {
  3606. var a = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, s = this.titleHeight;
  3607. if (a) {
  3608. var n = a.translateY;
  3609. this.allItems.forEach(function(P) {
  3610. var D = P.checkbox;
  3611. if (D) {
  3612. var I = n + s + D.y + (this.scrollOffset || 0) + 3;
  3613. T(D, { left: a.translateX + P.checkboxOffset + D.x - 20 + "px", top: I + "px", display: this.proximate || I > n - 6 && I < n + t - 6 ? "" : "none" });
  3614. }
  3615. }, this);
  3616. }
  3617. }, p.prototype.renderTitle = function() {
  3618. var a = this.options, t = this.padding, s = a.title, n = 0;
  3619. s.text && (this.title || (this.title = this.chart.renderer.label(s.text, t - 3, t - 4, null, null, null, a.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(s.style), this.title.add(this.group)), s.width || this.title.css({ width: this.maxLegendWidth + "px" }), a = this.title.getBBox(), n = a.height, this.offsetWidth = a.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  3620. }, p.prototype.setText = function(a) {
  3621. var t = this.options;
  3622. a.legendItem.attr({ text: t.labelFormat ? j(t.labelFormat, a, this.chart) : t.labelFormatter.call(a) });
  3623. }, p.prototype.renderItem = function(a) {
  3624. var t = this.chart, s = t.renderer, n = this.options, P = this.symbolWidth, D = n.symbolPadding || 0, I = this.itemStyle, W = this.itemHiddenStyle, E = n.layout === "horizontal" ? h(n.itemDistance, 20) : 0, X = !n.rtl, g = !a.series, m = !g && a.series.drawLegendSymbol ? a.series : a, L = m.options, z = this.createCheckboxForItem && L && L.showCheckbox, $ = n.useHTML, Q = a.options.className, A = a.legendItem;
  3625. L = P + D + E + (z ? 20 : 0), A || (a.legendGroup = s.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + a.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + a.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), a.legendItem = A = s.text("", X ? P + D : -D, this.baseline || 0, $), t.styledMode || A.css(v(a.visible ? I : W)), A.attr({ align: X ? "left" : "right", zIndex: 2 }).add(a.legendGroup), this.baseline || (this.fontMetrics = s.fontMetrics(t.styledMode ? 12 : I.fontSize, A), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, A.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = h(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + D + E + (z ? 20 : 0), X && A.attr("x", this.symbolWidth + D))), m.drawLegendSymbol(this, a), this.setItemEvents && this.setItemEvents(a, A, $)), z && !a.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(a), this.colorizeItem(a, a.visible), !t.styledMode && I.width || A.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(a), t = A.getBBox(), s = this.fontMetrics && this.fontMetrics.h || 0, a.itemWidth = a.checkboxOffset = n.itemWidth || a.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, a.itemWidth), this.totalItemWidth += a.itemWidth, this.itemHeight = a.itemHeight = Math.round(a.legendItemHeight || (t.height > 1.5 * s ? t.height : s));
  3626. }, p.prototype.layoutItem = function(a) {
  3627. var t = this.options, s = this.padding, n = t.layout === "horizontal", P = a.itemHeight, D = this.itemMarginBottom, I = this.itemMarginTop, W = n ? h(t.itemDistance, 20) : 0, E = this.maxLegendWidth;
  3628. t = t.alignColumns && this.totalItemWidth > E ? this.maxItemWidth : a.itemWidth, n && this.itemX - s + t > E && (this.itemX = s, this.lastLineHeight && (this.itemY += I + this.lastLineHeight + D), this.lastLineHeight = 0), this.lastItemY = I + this.itemY + D, this.lastLineHeight = Math.max(P, this.lastLineHeight), a._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += I + P + D, this.lastLineHeight = P), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - s - (a.checkbox ? 0 : W) : t) + s, this.offsetWidth);
  3629. }, p.prototype.getAllItems = function() {
  3630. var a = [];
  3631. return this.chart.series.forEach(function(t) {
  3632. var s = t && t.options;
  3633. t && h(s.showInLegend, O(s.linkedTo) ? !1 : void 0, !0) && (a = a.concat(t.legendItems || (s.legendType === "point" ? t.data : t)));
  3634. }), b(this, "afterGetAllItems", { allItems: a }), a;
  3635. }, p.prototype.getAlignment = function() {
  3636. var a = this.options;
  3637. return this.proximate ? a.align.charAt(0) + "tv" : a.floating ? "" : a.align.charAt(0) + a.verticalAlign.charAt(0) + a.layout.charAt(0);
  3638. }, p.prototype.adjustMargins = function(a, t) {
  3639. var s = this.chart, n = this.options, P = this.getAlignment();
  3640. P && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(D, I) {
  3641. D.test(P) && !O(a[I]) && (s[w[I]] = Math.max(s[w[I]], s.legend[(I + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][I] * n[I % 2 ? "x" : "y"] + h(n.margin, 12) + t[I] + (s.titleOffset[I] || 0)));
  3642. });
  3643. }, p.prototype.proximatePositions = function() {
  3644. var a = this.chart, t = [], s = this.options.align === "left";
  3645. this.allItems.forEach(function(n) {
  3646. var P, D = s;
  3647. if (n.yAxis) {
  3648. n.xAxis.options.reversed && (D = !D), n.points && (P = k(D ? n.points : n.points.slice(0).reverse(), function(W) {
  3649. return S(W.plotY);
  3650. })), D = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  3651. var I = n.yAxis.top - a.plotTop;
  3652. n.visible ? (P = P ? P.plotY : n.yAxis.height, P += I - 0.3 * D) : P = I + n.yAxis.height, t.push({ target: P, size: D, item: n });
  3653. }
  3654. }, this), x(t, a.plotHeight).forEach(function(n) {
  3655. n.item._legendItemPos && (n.item._legendItemPos[1] = a.plotTop - a.spacing[0] + n.pos);
  3656. });
  3657. }, p.prototype.render = function() {
  3658. var a = this.chart, t = a.renderer, s = this.options, n = this.padding, P = this.getAllItems(), D = this.group, I = this.box;
  3659. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(s.width, a.spacingBox.width - n);
  3660. var W = a.spacingBox.width - 2 * n - s.x;
  3661. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (W /= 2), this.maxLegendWidth = this.widthOption || W, D || (this.group = D = t.g("legend").addClass(s.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(D), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), u(P, function(X, g) {
  3662. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  3663. }), s.reversed && P.reverse(), this.allItems = P, this.display = W = !!P.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, P.forEach(this.renderItem, this), P.forEach(this.layoutItem, this), P = (this.widthOption || this.offsetWidth) + n;
  3664. var E = this.lastItemY + this.lastLineHeight + this.titleHeight;
  3665. E = this.handleOverflow(E), E += n, I || (this.box = I = t.rect().addClass("highcharts-legend-box").attr({ r: s.borderRadius }).add(D), I.isNew = !0), a.styledMode || I.attr({ stroke: s.borderColor, "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "none" }).shadow(s.shadow), 0 < P && 0 < E && (I[I.isNew ? "attr" : "animate"](I.crisp.call({}, { x: 0, y: 0, width: P, height: E }, I.strokeWidth())), I.isNew = !1), I[W ? "show" : "hide"](), a.styledMode && D.getStyle("display") === "none" && (P = E = 0), this.legendWidth = P, this.legendHeight = E, W && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  3666. }, p.prototype.align = function(a) {
  3667. a === void 0 && (a = this.chart.spacingBox);
  3668. var t = this.chart, s = this.options, n = a.y;
  3669. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? n += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (n -= t.titleOffset[2]), n !== a.y && (a = v(a, { y: n })), this.group.align(v(s, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : s.verticalAlign }), !0, a);
  3670. }, p.prototype.handleOverflow = function(a) {
  3671. var t = this, s = this.chart, n = s.renderer, P = this.options, D = P.y, I = P.verticalAlign === "top", W = this.padding, E = P.maxHeight, X = P.navigation, g = h(X.animation, !0), m = X.arrowSize || 12, L = this.pages, z = this.allItems, $ = function(q) {
  3672. typeof q == "number" ? Z.attr({ height: q }) : Z && (t.clipRect = Z.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + W + "px,9999px," + (W + q) + "px,0)" : "auto");
  3673. }, Q = function(q) {
  3674. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(Y), s.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  3675. }, A, H;
  3676. D = s.spacingBox.height + (I ? -D : D) - W;
  3677. var Y = this.nav, Z = this.clipRect;
  3678. return P.layout !== "horizontal" || P.verticalAlign === "middle" || P.floating || (D /= 2), E && (D = Math.min(D, E)), L.length = 0, a && 0 < D && a > D && X.enabled !== !1 ? (this.clipHeight = A = Math.max(D - 20 - this.titleHeight - W, 0), this.currentPage = h(this.currentPage, 1), this.fullHeight = a, z.forEach(function(q, it) {
  3679. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  3680. (!rt || et - L[rt - 1] > A && (H || et) !== L[rt - 1]) && (L.push(H || et), rt++), q.pageIx = rt - 1, H && (z[it - 1].pageIx = rt - 1), it === z.length - 1 && et + nt - L[rt - 1] > A && nt <= A && (L.push(et), q.pageIx = rt), et !== H && (H = et);
  3681. }), Z || (Z = t.clipRect = n.clipRect(0, W, 9999, 0), t.contentGroup.clip(Z)), $(A), Y || (this.nav = Y = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(Y), Q("upTracker").on(
  3682. "click",
  3683. function() {
  3684. t.scroll(-1, g);
  3685. }
  3686. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), s.styledMode || this.pager.css(X.style), this.pager.add(Y), this.down = n.symbol("triangle-down", 0, 0, m, m).add(Y), Q("downTracker").on("click", function() {
  3687. t.scroll(1, g);
  3688. })), t.scroll(0), a = D) : Y && ($(), this.nav = Y.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), a;
  3689. }, p.prototype.scroll = function(a, t) {
  3690. var s = this, n = this.chart, P = this.pages, D = P.length, I = this.clipHeight, W = this.options.navigation, E = this.pager, X = this.padding, g = this.currentPage + a;
  3691. g > D && (g = D), 0 < g && (typeof t < "u" && B(t, n), this.nav.attr({ translateX: X, translateY: I + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  3692. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3693. }), E.attr({ text: g + "/" + D }), [this.down, this.downTracker].forEach(
  3694. function(m) {
  3695. m.attr({ x: 18 + this.pager.getBBox().width, class: g === D ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3696. },
  3697. this
  3698. ), n.styledMode || (this.up.attr({ fill: g === 1 ? W.inactiveColor : W.activeColor }), this.upTracker.css({ cursor: g === 1 ? "default" : "pointer" }), this.down.attr({ fill: g === D ? W.inactiveColor : W.activeColor }), this.downTracker.css({ cursor: g === D ? "default" : "pointer" })), this.scrollOffset = -P[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), a = F(h(t, n.renderer.globalAnimation, !0)), i(function() {
  3699. b(s, "afterScroll", { currentPage: g });
  3700. }, a.duration));
  3701. }, p.prototype.setItemEvents = function(a, t, s) {
  3702. var n = this, P = n.chart.renderer.boxWrapper, D = a instanceof U, I = "highcharts-legend-" + (D ? "point" : "series") + "-active", W = n.chart.styledMode, E = function(X) {
  3703. n.allItems.forEach(function(g) {
  3704. a !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  3705. m.setState(X, !D);
  3706. });
  3707. });
  3708. };
  3709. (s ? [t, a.legendSymbol] : [a.legendGroup]).forEach(function(X) {
  3710. X && X.on("mouseover", function() {
  3711. a.visible && E("inactive"), a.setState("hover"), a.visible && P.addClass(I), W || t.css(n.options.itemHoverStyle);
  3712. }).on("mouseout", function() {
  3713. n.chart.styledMode || t.css(v(a.visible ? n.itemStyle : n.itemHiddenStyle)), E(""), P.removeClass(I), a.setState();
  3714. }).on("click", function(g) {
  3715. var m = function() {
  3716. a.setVisible && a.setVisible(), E(a.visible ? "inactive" : "");
  3717. };
  3718. P.removeClass(I), g = { browserEvent: g }, a.firePointEvent ? a.firePointEvent("legendItemClick", g, m) : b(a, "legendItemClick", g, m);
  3719. });
  3720. });
  3721. }, p.prototype.createCheckboxForItem = function(a) {
  3722. a.checkbox = l(
  3723. "input",
  3724. { type: "checkbox", className: "highcharts-legend-checkbox", checked: a.selected, defaultChecked: a.selected },
  3725. this.options.itemCheckboxStyle,
  3726. this.chart.container
  3727. ), f(a.checkbox, "click", function(t) {
  3728. b(a.series || a, "checkboxClick", { checked: t.target.checked, item: a }, function() {
  3729. a.select();
  3730. });
  3731. });
  3732. }, p;
  3733. }(), (/Trident\/7\.0/.test(_.navigator && _.navigator.userAgent) || y) && G(V.prototype, "positionItem", function(p, a) {
  3734. var t = this, s = function() {
  3735. a._legendItemPos && p.call(t, a);
  3736. };
  3737. s(), t.bubbleLegend || setTimeout(s);
  3738. }), V;
  3739. }), C(
  3740. o,
  3741. "Core/Series/SeriesRegistry.js",
  3742. [o["Core/Globals.js"], o["Core/DefaultOptions.js"], o["Core/Series/Point.js"], o["Core/Utilities.js"]],
  3743. function(y, N, _, U) {
  3744. var G = N.defaultOptions, V = U.error, F = U.extendClass, B = U.merge, j;
  3745. return function(w) {
  3746. function x(f, l) {
  3747. var T = G.plotOptions || {}, O = l.defaultOptions;
  3748. l.prototype.pointClass || (l.prototype.pointClass = _), l.prototype.type = f, O && (T[f] = O), w.seriesTypes[f] = l;
  3749. }
  3750. w.seriesTypes = y.seriesTypes, w.getSeries = function(f, l) {
  3751. l === void 0 && (l = {});
  3752. var T = f.options.chart;
  3753. T = l.type || T.type || T.defaultSeriesType || "";
  3754. var O = w.seriesTypes[T];
  3755. return w || V(17, !0, f, { missingModuleFor: T }), T = new O(), typeof T.init == "function" && T.init(f, l), T;
  3756. }, w.registerSeriesType = x, w.seriesType = function(f, l, T, O, R) {
  3757. var k = G.plotOptions || {};
  3758. return l = l || "", k[f] = B(k[l], T), x(f, F(w.seriesTypes[l] || function() {
  3759. }, O)), w.seriesTypes[f].prototype.type = f, R && (w.seriesTypes[f].prototype.pointClass = F(_, R)), w.seriesTypes[f];
  3760. };
  3761. }(j || (j = {})), j;
  3762. }
  3763. ), C(o, "Core/Chart/Chart.js", [
  3764. o["Core/Animation/AnimationUtilities.js"],
  3765. o["Core/Axis/Axis.js"],
  3766. o["Core/FormatUtilities.js"],
  3767. o["Core/Foundation.js"],
  3768. o["Core/Globals.js"],
  3769. o["Core/Legend/Legend.js"],
  3770. o["Core/MSPointer.js"],
  3771. o["Core/DefaultOptions.js"],
  3772. o["Core/Pointer.js"],
  3773. o["Core/Renderer/RendererRegistry.js"],
  3774. o["Core/Series/SeriesRegistry.js"],
  3775. o["Core/Renderer/SVG/SVGRenderer.js"],
  3776. o["Core/Time.js"],
  3777. o["Core/Utilities.js"],
  3778. o["Core/Renderer/HTML/AST.js"]
  3779. ], function(y, N, _, U, G, V, F, B, j, w, x, f, l, T, O) {
  3780. var R = y.animate, k = y.animObject, b = y.setAnimation, S = _.numberFormat, v = U.registerEventOptions, h = G.charts, c = G.doc, u = G.marginNames, i = G.svg, p = G.win, a = B.defaultOptions, t = B.defaultTime, s = x.seriesTypes, n = T.addEvent, P = T.attr, D = T.cleanRecursively, I = T.createElement, W = T.css, E = T.defined, X = T.discardElement, g = T.erase, m = T.error, L = T.extend, z = T.find, $ = T.fireEvent, Q = T.getStyle, A = T.isArray, H = T.isNumber, Y = T.isObject, Z = T.isString, q = T.merge, it = T.objectEach, et = T.pick, nt = T.pInt, rt = T.relativeLength, ct = T.removeEvent, gt = T.splat, dt = T.syncTimeout, ht = T.uniqueKey;
  3781. return y = function() {
  3782. function at(J, tt, ot) {
  3783. 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(J, tt, ot);
  3784. }
  3785. return at.chart = function(J, tt, ot) {
  3786. return new at(J, tt, ot);
  3787. }, at.prototype.getArgs = function(J, tt, ot) {
  3788. Z(J) || J.nodeName ? (this.renderTo = J, this.init(tt, ot)) : this.init(J, tt);
  3789. }, at.prototype.init = function(J, tt) {
  3790. var ot = J.plotOptions || {};
  3791. $(this, "init", { args: arguments }, function() {
  3792. var lt = q(a, J), pt = lt.chart;
  3793. it(lt.plotOptions, function(yt, vt) {
  3794. Y(yt) && (yt.tooltip = ot[vt] && q(ot[vt].tooltip) || void 0);
  3795. }), lt.tooltip.userOptions = J.chart && J.chart.forExport && J.tooltip.userOptions || J.tooltip, this.userOptions = J, this.margin = [], this.spacing = [], this.bounds = { h: {}, v: {} }, this.labelCollectors = [], this.callback = tt, this.isResizing = 0, this.options = lt, this.axes = [], this.series = [], this.time = J.time && Object.keys(J.time).length ? new l(J.time) : G.time, this.numberFormatter = pt.numberFormatter || S, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = h.length, h.push(this), G.chartCount++, v(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, $(this, "afterInit"), this.firstRender();
  3796. });
  3797. }, at.prototype.initSeries = function(J) {
  3798. var tt = this.options.chart;
  3799. tt = J.type || tt.type || tt.defaultSeriesType;
  3800. var ot = s[tt];
  3801. return ot || m(17, !0, this, { missingModuleFor: tt }), tt = new ot(), typeof tt.init == "function" && tt.init(this, J), tt;
  3802. }, at.prototype.setSeriesData = function() {
  3803. this.getSeriesOrderByLinks().forEach(function(J) {
  3804. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  3805. });
  3806. }, at.prototype.getSeriesOrderByLinks = function() {
  3807. return this.series.concat().sort(function(J, tt) {
  3808. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  3809. });
  3810. }, at.prototype.orderSeries = function(J) {
  3811. var tt = this.series;
  3812. J = J || 0;
  3813. for (var ot = tt.length; J < ot; ++J)
  3814. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  3815. }, at.prototype.isInsidePlot = function(J, tt, ot) {
  3816. ot === void 0 && (ot = {});
  3817. var lt = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Pt = 0, At = 0;
  3818. ot.visiblePlotOnly && this.scrollingContainer && (At = this.scrollingContainer, Pt = At.scrollLeft, At = At.scrollTop);
  3819. var St = ot.series;
  3820. if (pt = ot.visiblePlotOnly && Ct || pt, Ct = ot.inverted ? tt : J, tt = ot.inverted ? J : tt, J = { x: Ct, y: tt, isInsidePlot: !0 }, !ot.ignoreX) {
  3821. var Dt = St && (lt ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  3822. Ct = ot.paneCoordinates ? Dt.pos + Ct : yt + Ct, Ct >= Math.max(Pt + yt, Dt.pos) && Ct <= Math.min(Pt + yt + pt.width, Dt.pos + Dt.len) || (J.isInsidePlot = !1);
  3823. }
  3824. return !ot.ignoreY && J.isInsidePlot && (lt = St && (lt ? St.xAxis : St.yAxis) || { pos: vt, len: 1 / 0 }, ot = ot.paneCoordinates ? lt.pos + tt : vt + tt, ot >= Math.max(At + vt, lt.pos) && ot <= Math.min(At + vt + pt.height, lt.pos + lt.len) || (J.isInsidePlot = !1)), $(this, "afterIsInsidePlot", J), J.isInsidePlot;
  3825. }, at.prototype.redraw = function(J) {
  3826. $(this, "beforeRedraw");
  3827. var tt = this.hasCartesianSeries ? this.axes : this.colorAxis || [], ot = this.series, lt = this.pointer, pt = this.legend, yt = this.userOptions.legend, vt = this.renderer, Ct = vt.isHidden(), Pt = [], At = this.isDirtyBox, St = this.isDirtyLegend;
  3828. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = ot.length; J--; ) {
  3829. var Dt = ot[J];
  3830. if (Dt.options.stacking || Dt.options.centerInCategory) {
  3831. var _t = !0;
  3832. if (Dt.isDirty) {
  3833. var Nt = !0;
  3834. break;
  3835. }
  3836. }
  3837. }
  3838. if (Nt)
  3839. for (J = ot.length; J--; )
  3840. Dt = ot[J], Dt.options.stacking && (Dt.isDirty = !0);
  3841. ot.forEach(function(Ot) {
  3842. Ot.isDirty && (Ot.options.legendType === "point" ? (typeof Ot.updateTotals == "function" && Ot.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Ot.isDirtyData && $(Ot, "updatedData");
  3843. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), _t && this.getStacks(), tt.forEach(function(Ot) {
  3844. Ot.updateNames(), Ot.setScale();
  3845. }), this.getMargins(), tt.forEach(function(Ot) {
  3846. Ot.isDirty && (At = !0);
  3847. }), tt.forEach(function(Ot) {
  3848. var Kt = Ot.min + "," + Ot.max;
  3849. Ot.extKey !== Kt && (Ot.extKey = Kt, Pt.push(function() {
  3850. $(Ot, "afterSetExtremes", L(Ot.eventArgs, Ot.getExtremes())), delete Ot.eventArgs;
  3851. })), (At || _t) && Ot.redraw();
  3852. }), At && this.drawChartBox(), $(this, "predraw"), ot.forEach(function(Ot) {
  3853. (At || Ot.isDirty) && Ot.visible && Ot.redraw(), Ot.isDirtyData = !1;
  3854. }), lt && lt.reset(!0), vt.draw(), $(this, "redraw"), $(this, "render"), Ct && this.temporaryDisplay(!0), Pt.forEach(function(Ot) {
  3855. Ot.call();
  3856. });
  3857. }, at.prototype.get = function(J) {
  3858. function tt(yt) {
  3859. return yt.id === J || yt.options && yt.options.id === J;
  3860. }
  3861. for (var ot = this.series, lt = z(this.axes, tt) || z(this.series, tt), pt = 0; !lt && pt < ot.length; pt++)
  3862. lt = z(ot[pt].points || [], tt);
  3863. return lt;
  3864. }, at.prototype.getAxes = function() {
  3865. var J = this, tt = this.options, ot = tt.xAxis = gt(tt.xAxis || {});
  3866. tt = tt.yAxis = gt(tt.yAxis || {}), $(this, "getAxes"), ot.forEach(function(lt, pt) {
  3867. lt.index = pt, lt.isX = !0;
  3868. }), tt.forEach(function(lt, pt) {
  3869. lt.index = pt;
  3870. }), ot.concat(tt).forEach(function(lt) {
  3871. new N(J, lt);
  3872. }), $(this, "afterGetAxes");
  3873. }, at.prototype.getSelectedPoints = function() {
  3874. return this.series.reduce(function(J, tt) {
  3875. return tt.getPointsCollection().forEach(function(ot) {
  3876. et(ot.selectedStaging, ot.selected) && J.push(ot);
  3877. }), J;
  3878. }, []);
  3879. }, at.prototype.getSelectedSeries = function() {
  3880. return this.series.filter(function(J) {
  3881. return J.selected;
  3882. });
  3883. }, at.prototype.setTitle = function(J, tt, ot) {
  3884. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription("caption", void 0), this.layOutTitles(ot);
  3885. }, at.prototype.applyDescription = function(J, tt) {
  3886. var ot = this, lt = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  3887. lt = this.options[J] = q(!this.styledMode && { style: lt }, this.options[J], tt);
  3888. var pt = this[J];
  3889. pt && tt && (this[J] = pt = pt.destroy()), lt && !pt && (pt = this.renderer.text(lt.text, 0, 0, lt.useHTML).attr({ align: lt.align, class: "highcharts-" + J, zIndex: lt.zIndex || 4 }).add(), pt.update = function(yt) {
  3890. ot[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  3891. }, this.styledMode || pt.css(lt.style), this[J] = pt);
  3892. }, at.prototype.layOutTitles = function(J) {
  3893. var tt = [0, 0, 0], ot = this.renderer, lt = this.spacingBox;
  3894. ["title", "subtitle", "caption"].forEach(function(yt) {
  3895. var vt = this[yt], Ct = this.options[yt], Pt = Ct.verticalAlign || "top";
  3896. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  3897. var At;
  3898. if (vt) {
  3899. this.styledMode || (At = Ct.style && Ct.style.fontSize), At = ot.fontMetrics(At, vt).b, vt.css({ width: (Ct.width || lt.width + (Ct.widthAdjust || 0)) + "px" });
  3900. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  3901. vt.align(
  3902. L({ y: Pt === "bottom" ? At : yt + At, height: St }, Ct),
  3903. !1,
  3904. "spacingBox"
  3905. ), Ct.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  3906. }
  3907. }, this), tt[0] && (this.options.title.verticalAlign || "top") === "top" && (tt[0] += this.options.title.margin), tt[2] && this.options.caption.verticalAlign === "bottom" && (tt[2] += this.options.caption.margin);
  3908. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  3909. this.titleOffset = tt, $(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  3910. }, at.prototype.getChartSize = function() {
  3911. var J = this.options.chart, tt = J.width;
  3912. J = J.height;
  3913. var ot = this.renderTo;
  3914. E(tt) || (this.containerWidth = Q(ot, "width")), E(J) || (this.containerHeight = Q(ot, "height")), this.chartWidth = Math.max(0, tt || this.containerWidth || 600), this.chartHeight = Math.max(0, rt(J, this.chartWidth) || (1 < this.containerHeight ? this.containerHeight : 400));
  3915. }, at.prototype.temporaryDisplay = function(J) {
  3916. var tt = this.renderTo;
  3917. if (J)
  3918. for (; tt && tt.style; )
  3919. tt.hcOrigStyle && (W(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  3920. else
  3921. for (; tt && tt.style && (c.body.contains(tt) || tt.parentNode || (tt.hcOrigDetached = !0, c.body.appendChild(tt)), (Q(tt, "display", !1) === "none" || tt.hcOricDetached) && (tt.hcOrigStyle = { display: tt.style.display, height: tt.style.height, overflow: tt.style.overflow }, J = { display: "block", overflow: "hidden" }, tt !== this.renderTo && (J.height = 0), W(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  3922. ;
  3923. }, at.prototype.setClassName = function(J) {
  3924. this.container.className = "highcharts-container " + (J || "");
  3925. }, at.prototype.getContainer = function() {
  3926. var J = this.options, tt = J.chart, ot = ht(), lt, pt = this.renderTo;
  3927. pt || (this.renderTo = pt = tt.renderTo), Z(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  3928. var yt = nt(P(pt, "data-highcharts-chart"));
  3929. H(yt) && h[yt] && h[yt].hasRendered && h[yt].destroy(), P(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  3930. var vt = this.chartHeight;
  3931. if (W(pt, { overflow: "hidden" }), this.styledMode || (lt = L({ position: "relative", overflow: "hidden", width: yt + "px", height: vt + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)", userSelect: "none", "touch-action": "manipulation", outline: "none" }, tt.style || {})), this.container = ot = I("div", { id: ot }, lt, pt), this._cursor = ot.style.cursor, this.renderer = new (tt.renderer || !i ? w.getRendererType(tt.renderer) : f)(ot, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  3932. void 0,
  3933. this
  3934. ), this.setClassName(tt.className), this.styledMode)
  3935. for (var Ct in J.defs)
  3936. this.renderer.definition(J.defs[Ct]);
  3937. else
  3938. this.renderer.setStyle(tt.style);
  3939. this.renderer.chartIndex = this.index, $(this, "afterGetContainer");
  3940. }, at.prototype.getMargins = function(J) {
  3941. var tt = this.spacing, ot = this.margin, lt = this.titleOffset;
  3942. this.resetMargins(), lt[0] && !E(ot[0]) && (this.plotTop = Math.max(this.plotTop, lt[0] + tt[0])), lt[2] && !E(ot[2]) && (this.marginBottom = Math.max(this.marginBottom, lt[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  3943. ot,
  3944. tt
  3945. ), $(this, "getMargins"), J || this.getAxisMargins();
  3946. }, at.prototype.getAxisMargins = function() {
  3947. var J = this, tt = J.axisOffset = [0, 0, 0, 0], ot = J.colorAxis, lt = J.margin, pt = function(yt) {
  3948. yt.forEach(function(vt) {
  3949. vt.visible && vt.getOffset();
  3950. });
  3951. };
  3952. J.hasCartesianSeries ? pt(J.axes) : ot && ot.length && pt(ot), u.forEach(function(yt, vt) {
  3953. E(lt[vt]) || (J[yt] += tt[vt]);
  3954. }), J.setChartSize();
  3955. }, at.prototype.reflow = function(J) {
  3956. var tt = this, ot = tt.options.chart, lt = tt.renderTo, pt = E(ot.width) && E(ot.height), yt = ot.width || Q(lt, "width");
  3957. ot = ot.height || Q(lt, "height"), lt = J ? J.target : p, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && ot && (lt === p || lt === c) && ((yt !== tt.containerWidth || ot !== tt.containerHeight) && (T.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  3958. tt.container && tt.setSize(void 0, void 0, !1);
  3959. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = ot);
  3960. }, at.prototype.setReflow = function(J) {
  3961. var tt = this;
  3962. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(p, "resize", function(ot) {
  3963. tt.options && tt.reflow(ot);
  3964. }), n(this, "destroy", this.unbindReflow));
  3965. }, at.prototype.setSize = function(J, tt, ot) {
  3966. var lt = this, pt = lt.renderer;
  3967. lt.isResizing += 1, b(ot, lt), ot = pt.globalAnimation, lt.oldChartHeight = lt.chartHeight, lt.oldChartWidth = lt.chartWidth, typeof J < "u" && (lt.options.chart.width = J), typeof tt < "u" && (lt.options.chart.height = tt), lt.getChartSize(), lt.styledMode || (ot ? R : W)(lt.container, { width: lt.chartWidth + "px", height: lt.chartHeight + "px" }, ot), lt.setChartSize(!0), pt.setSize(lt.chartWidth, lt.chartHeight, ot), lt.axes.forEach(function(yt) {
  3968. yt.isDirty = !0, yt.setScale();
  3969. }), lt.isDirtyLegend = !0, lt.isDirtyBox = !0, lt.layOutTitles(), lt.getMargins(), lt.redraw(ot), lt.oldChartHeight = null, $(lt, "resize"), dt(function() {
  3970. lt && $(lt, "endResize", null, function() {
  3971. --lt.isResizing;
  3972. });
  3973. }, k(ot).duration);
  3974. }, at.prototype.setChartSize = function(J) {
  3975. var tt = this.inverted, ot = this.renderer, lt = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Ct = this.clipOffset, Pt, At, St, Dt;
  3976. this.plotLeft = Pt = Math.round(this.plotLeft), this.plotTop = At = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(lt - Pt - this.marginRight)), this.plotHeight = Dt = Math.max(0, Math.round(pt - At - this.marginBottom)), this.plotSizeX = tt ? Dt : St, this.plotSizeY = tt ? St : Dt, this.plotBorderWidth = yt.plotBorderWidth || 0, this.spacingBox = ot.spacingBox = { x: vt[3], y: vt[0], width: lt - vt[3] - vt[1], height: pt - vt[0] - vt[2] }, this.plotBox = ot.plotBox = { x: Pt, y: At, width: St, height: Dt }, tt = 2 * Math.floor(this.plotBorderWidth / 2), lt = Math.ceil(Math.max(tt, Ct[3]) / 2), pt = Math.ceil(Math.max(tt, Ct[0]) / 2), this.clipBox = { x: lt, y: pt, width: Math.floor(this.plotSizeX - Math.max(tt, Ct[1]) / 2 - lt), height: Math.max(0, Math.floor(this.plotSizeY - Math.max(tt, Ct[2]) / 2 - pt)) }, J || (this.axes.forEach(function(_t) {
  3977. _t.setAxisSize(), _t.setAxisTranslation();
  3978. }), ot.alignElements()), $(this, "afterSetChartSize", { skipAxes: J });
  3979. }, at.prototype.resetMargins = function() {
  3980. $(this, "resetMargins");
  3981. var J = this, tt = J.options.chart;
  3982. ["margin", "spacing"].forEach(function(ot) {
  3983. var lt = tt[ot], pt = Y(lt) ? lt : [lt, lt, lt, lt];
  3984. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  3985. J[ot][vt] = et(tt[ot + yt], pt[vt]);
  3986. });
  3987. }), u.forEach(function(ot, lt) {
  3988. J[ot] = et(J.margin[lt], J.spacing[lt]);
  3989. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  3990. }, at.prototype.drawChartBox = function() {
  3991. var J = this.options.chart, tt = this.renderer, ot = this.chartWidth, lt = this.chartHeight, pt = this.styledMode, yt = this.plotBGImage, vt = J.backgroundColor, Ct = J.plotBackgroundColor, Pt = J.plotBackgroundImage, At = this.plotLeft, St = this.plotTop, Dt = this.plotWidth, _t = this.plotHeight, Nt = this.plotBox, Ot = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, Yt = "animate";
  3992. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), Yt = "attr"), pt)
  3993. var Vt = be = Gt.strokeWidth();
  3994. else
  3995. Vt = J.borderWidth || 0, be = Vt + (J.shadow ? 8 : 0), vt = { fill: vt || "none" }, (Vt || Gt["stroke-width"]) && (vt.stroke = J.borderColor, vt["stroke-width"] = Vt), Gt.attr(vt).shadow(J.shadow);
  3996. Gt[Yt]({ x: be / 2, y: be / 2, width: ot - be - Vt % 2, height: lt - be - Vt % 2, r: J.borderRadius }), Yt = "animate", Wt || (Yt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[Yt](Nt), pt || (Wt.attr({ fill: Ct || "none" }).shadow(J.plotShadow), Pt && (yt ? (Pt !== yt.attr("href") && yt.attr("href", Pt), yt.animate(Nt)) : this.plotBGImage = tt.image(Pt, At, St, Dt, _t).add())), Ot ? Ot.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), Yt = "animate", Jt || (Yt = "attr", this.plotBorder = Jt = tt.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), pt || Jt.attr({ stroke: J.plotBorderColor, "stroke-width": J.plotBorderWidth || 0, fill: "none" }), Jt[Yt](Jt.crisp({ x: At, y: St, width: Dt, height: _t }, -Jt.strokeWidth())), this.isDirtyBox = !1, $(this, "afterDrawChartBox");
  3997. }, at.prototype.propFromSeries = function() {
  3998. var J = this, tt = J.options.chart, ot = J.options.series, lt, pt, yt;
  3999. ["inverted", "angular", "polar"].forEach(function(vt) {
  4000. for (pt = s[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], lt = ot && ot.length; !yt && lt--; )
  4001. (pt = s[ot[lt].type]) && pt.prototype[vt] && (yt = !0);
  4002. J[vt] = yt;
  4003. });
  4004. }, at.prototype.linkSeries = function() {
  4005. var J = this, tt = J.series;
  4006. tt.forEach(function(ot) {
  4007. ot.linkedSeries.length = 0;
  4008. }), tt.forEach(function(ot) {
  4009. var lt = ot.options.linkedTo;
  4010. Z(lt) && (lt = lt === ":previous" ? J.series[ot.index - 1] : J.get(lt)) && lt.linkedParent !== ot && (lt.linkedSeries.push(ot), ot.linkedParent = lt, lt.enabledDataSorting && ot.setDataSortingOptions(), ot.visible = et(ot.options.visible, lt.options.visible, ot.visible));
  4011. }), $(this, "afterLinkSeries");
  4012. }, at.prototype.renderSeries = function() {
  4013. this.series.forEach(function(J) {
  4014. J.translate(), J.render();
  4015. });
  4016. }, at.prototype.renderLabels = function() {
  4017. var J = this, tt = J.options.labels;
  4018. tt.items && tt.items.forEach(function(ot) {
  4019. var lt = L(tt.style, ot.style), pt = nt(lt.left) + J.plotLeft, yt = nt(lt.top) + J.plotTop + 12;
  4020. delete lt.left, delete lt.top, J.renderer.text(ot.html, pt, yt).attr({ zIndex: 2 }).css(lt).add();
  4021. });
  4022. }, at.prototype.render = function() {
  4023. var J = this.axes, tt = this.colorAxis, ot = this.renderer, lt = this.options, pt = function(At) {
  4024. At.forEach(function(St) {
  4025. St.visible && St.render();
  4026. });
  4027. }, yt = 0;
  4028. this.setTitle(), this.legend = new V(this, lt.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), lt = this.plotWidth, J.some(function(At) {
  4029. if (At.horiz && At.visible && At.options.labels.enabled && At.series.length)
  4030. return yt = 21, !0;
  4031. });
  4032. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  4033. J.forEach(function(At) {
  4034. At.setScale();
  4035. }), this.getAxisMargins();
  4036. var Ct = 1.1 < lt / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  4037. (Ct || Pt) && (J.forEach(function(At) {
  4038. (At.horiz && Ct || !At.horiz && Pt) && At.setTickInterval(!0);
  4039. }), this.getMargins()), this.drawChartBox(), this.hasCartesianSeries ? pt(J) : tt && tt.length && pt(tt), this.seriesGroup || (this.seriesGroup = ot.g("series-group").attr({ zIndex: 3 }).add()), this.renderSeries(), this.renderLabels(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = !0;
  4040. }, at.prototype.addCredits = function(J) {
  4041. var tt = this, ot = q(!0, this.options.credits, J);
  4042. ot.enabled && !this.credits && (this.credits = this.renderer.text(ot.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  4043. ot.href && (p.location.href = ot.href);
  4044. }).attr({ align: ot.position.align, zIndex: 8 }), tt.styledMode || this.credits.css(ot.style), this.credits.add().align(ot.position), this.credits.update = function(lt) {
  4045. tt.credits = tt.credits.destroy(), tt.addCredits(lt);
  4046. });
  4047. }, at.prototype.destroy = function() {
  4048. var J = this, tt = J.axes, ot = J.series, lt = J.container, pt = lt && lt.parentNode, yt;
  4049. for ($(J, "destroy"), J.renderer.forExport ? g(h, J) : h[J.index] = void 0, G.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  4050. tt[yt] = tt[yt].destroy();
  4051. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = ot.length; yt--; )
  4052. ot[yt] = ot[yt].destroy();
  4053. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  4054. var Ct = J[vt];
  4055. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  4056. }), lt && (lt.innerHTML = O.emptyHTML, ct(lt), pt && X(lt)), it(J, function(vt, Ct) {
  4057. delete J[Ct];
  4058. });
  4059. }, at.prototype.firstRender = function() {
  4060. var J = this, tt = J.options;
  4061. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (A(tt.series) ? tt.series : []).forEach(function(ot) {
  4062. J.initSeries(ot);
  4063. }), J.linkSeries(), J.setSeriesData(), $(J, "beforeRender"), j && (F.isRequired() ? J.pointer = new F(J, tt) : J.pointer = new j(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  4064. }, at.prototype.onload = function() {
  4065. this.callbacks.concat([this.callback]).forEach(function(J) {
  4066. J && typeof this.index < "u" && J.apply(this, [this]);
  4067. }, this), $(this, "load"), $(this, "render"), E(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  4068. }, at.prototype.addSeries = function(J, tt, ot) {
  4069. var lt = this, pt;
  4070. return J && (tt = et(tt, !0), $(lt, "addSeries", { options: J }, function() {
  4071. pt = lt.initSeries(J), lt.isDirtyLegend = !0, lt.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), $(lt, "afterAddSeries", { series: pt }), tt && lt.redraw(ot);
  4072. })), pt;
  4073. }, at.prototype.addAxis = function(J, tt, ot, lt) {
  4074. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: ot, animation: lt });
  4075. }, at.prototype.addColorAxis = function(J, tt, ot) {
  4076. return this.createAxis("colorAxis", { axis: J, redraw: tt, animation: ot });
  4077. }, at.prototype.createAxis = function(J, tt) {
  4078. return J = new N(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  4079. }, at.prototype.showLoading = function(J) {
  4080. var tt = this, ot = tt.options, lt = ot.loading, pt = function() {
  4081. yt && W(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  4082. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  4083. yt || (tt.loadingDiv = yt = I("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = I(
  4084. "span",
  4085. { className: "highcharts-loading-inner" },
  4086. null,
  4087. yt
  4088. ), n(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, ot.lang.loading, "")), tt.styledMode || (W(yt, L(lt.style, { zIndex: 10 })), W(vt, lt.labelStyle), tt.loadingShown || (W(yt, { opacity: 0, display: "" }), R(yt, { opacity: lt.style.opacity || 0.5 }, { duration: lt.showDuration || 0 }))), tt.loadingShown = !0, pt();
  4089. }, at.prototype.hideLoading = function() {
  4090. var J = this.options, tt = this.loadingDiv;
  4091. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || R(tt, { opacity: 0 }, {
  4092. duration: J.loading.hideDuration || 100,
  4093. complete: function() {
  4094. W(tt, { display: "none" });
  4095. }
  4096. })), this.loadingShown = !1;
  4097. }, at.prototype.update = function(J, tt, ot, lt) {
  4098. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Pt, At;
  4099. $(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = D(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  4100. var St = J.chart;
  4101. if (St) {
  4102. if (q(!0, pt.options.chart, St), "className" in St && pt.setClassName(St.className), "reflow" in St && pt.setReflow(St.reflow), "inverted" in St || "polar" in St || "type" in St) {
  4103. pt.propFromSeries();
  4104. var Dt = !0;
  4105. }
  4106. "alignTicks" in St && (Dt = !0), "events" in St && v(this, St), it(St, function(_t, Nt) {
  4107. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Pt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : At = !0);
  4108. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  4109. }
  4110. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new l(J.time)), q(!0, pt.options.time, J.time)), it(J, function(_t, Nt) {
  4111. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(_t, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](_t) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  4112. }), this.collectionsWithUpdate.forEach(function(_t) {
  4113. if (J[_t]) {
  4114. var Nt = [];
  4115. pt[_t].forEach(function(Ot, Kt) {
  4116. Ot.options.isInternal || Nt.push(et(Ot.options.index, Kt));
  4117. }), gt(J[_t]).forEach(function(Ot, Kt) {
  4118. var Gt = E(Ot.id), Wt;
  4119. Gt && (Wt = pt.get(Ot.id)), !Wt && pt[_t] && (Wt = pt[_t][Nt ? Nt[Kt] : Kt]) && Gt && E(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === _t && (Wt.update(Ot, !1), ot && (Wt.touched = !0)), !Wt && ot && pt.collectionsWithInit[_t] && (pt.collectionsWithInit[_t][0].apply(pt, [Ot].concat(pt.collectionsWithInit[_t][1] || []).concat([!1])).touched = !0);
  4120. }), ot && pt[_t].forEach(function(Ot) {
  4121. Ot.touched || Ot.options.isInternal ? delete Ot.touched : Ct.push(Ot);
  4122. });
  4123. }
  4124. }), Ct.forEach(function(_t) {
  4125. _t.chart && _t.remove && _t.remove(!1);
  4126. }), Dt && pt.axes.forEach(function(_t) {
  4127. _t.update({}, !1);
  4128. }), Pt && pt.getSeriesOrderByLinks().forEach(function(_t) {
  4129. _t.chart && _t.update({}, !1);
  4130. }, this), Dt = St && St.width, St = St && (Z(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), At || H(Dt) && Dt !== pt.chartWidth || H(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, lt) : et(tt, !0) && pt.redraw(lt), $(pt, "afterUpdate", { options: J, redraw: tt, animation: lt });
  4131. }, at.prototype.setSubtitle = function(J, tt) {
  4132. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  4133. }, at.prototype.setCaption = function(J, tt) {
  4134. this.applyDescription("caption", J), this.layOutTitles(tt);
  4135. }, at.prototype.showResetZoom = function() {
  4136. function J() {
  4137. tt.zoomOut();
  4138. }
  4139. var tt = this, ot = a.lang, lt = tt.options.chart.resetZoomButton, pt = lt.theme, yt = pt.states, vt = lt.relativeTo === "chart" || lt.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  4140. $(this, "beforeShowResetZoom", null, function() {
  4141. tt.resetZoomButton = tt.renderer.button(ot.resetZoom, null, null, J, pt, yt && yt.hover).attr({ align: lt.position.align, title: ot.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(lt.position, !1, vt);
  4142. }), $(this, "afterShowResetZoom");
  4143. }, at.prototype.zoomOut = function() {
  4144. $(this, "selection", { resetSelection: !0 }, this.zoom);
  4145. }, at.prototype.zoom = function(J) {
  4146. var tt = this, ot = tt.pointer, lt = tt.inverted ? ot.mouseDownX : ot.mouseDownY, pt = !1, yt;
  4147. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  4148. yt = Ct.zoom();
  4149. }), ot.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  4150. var Pt = Ct.axis, At = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? At + Pt.width : At + Pt.height, Dt = Pt.isXAxis, _t = !1;
  4151. (!Dt && lt >= At && lt <= St || Dt || !E(lt)) && (_t = !0), ot[Dt ? "zoomX" : "zoomY"] && _t && (yt = Pt.zoom(Ct.min, Ct.max), Pt.displayBtn && (pt = !0));
  4152. });
  4153. var vt = tt.resetZoomButton;
  4154. pt && !vt ? tt.showResetZoom() : !pt && Y(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  4155. tt.options.chart.animation,
  4156. J && J.animation,
  4157. 100 > tt.pointCount
  4158. ));
  4159. }, at.prototype.pan = function(J, tt) {
  4160. var ot = this, lt = ot.hoverPoints;
  4161. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  4162. var pt = ot.options.chart, yt = ot.options.mapNavigation && ot.options.mapNavigation.enabled;
  4163. pt && pt.panning && (pt.panning = tt);
  4164. var vt = tt.type, Ct;
  4165. $(this, "pan", { originalEvent: J }, function() {
  4166. lt && lt.forEach(function(St) {
  4167. St.setState();
  4168. });
  4169. var Pt = ot.xAxis;
  4170. vt === "xy" ? Pt = Pt.concat(ot.yAxis) : vt === "y" && (Pt = ot.yAxis);
  4171. var At = {};
  4172. Pt.forEach(function(St) {
  4173. if (St.options.panningEnabled && !St.options.isInternal) {
  4174. var Dt = St.horiz, _t = J[Dt ? "chartX" : "chartY"];
  4175. Dt = Dt ? "mouseDownX" : "mouseDownY";
  4176. var Nt = ot[Dt], Ot = St.minPointOffset || 0, Kt = St.reversed && !ot.inverted || !St.reversed && ot.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - _t, !0) + Ot * Kt, Jt = St.toValue(Nt + St.len - _t, !0) - (Ot * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  4177. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  4178. var Yt = St.panningState;
  4179. !Kt || St.isXAxis || Yt && !Yt.isDirty || St.series.forEach(function(Vt) {
  4180. var Me = Vt.getProcessedData(!0);
  4181. Me = Vt.getExtremes(Me.yData, !0), Yt || (Yt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), H(Me.dataMin) && H(Me.dataMax) && (Yt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Me.dataMin, Yt.startMin), Yt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Me.dataMax, Yt.startMax));
  4182. }), Kt = Math.min(et(Yt && Yt.startMin, Gt.dataMin), Ot ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(Yt && Yt.startMax, Gt.dataMax), Ot ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = Yt, St.isOrdinal || (Ot = Kt - Nt, 0 < Ot && (Wt += Ot, Nt = Kt), Ot = Wt - Jt, 0 < Ot && (Wt = Jt, Nt -= Ot), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(Nt, Wt, !1, !1, { trigger: "pan" }), ot.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (ot.showResetZoom(), St.displayBtn = !1), Ct = !0), At[Dt] = _t);
  4183. }
  4184. }), it(At, function(St, Dt) {
  4185. ot[Dt] = St;
  4186. }), Ct && ot.redraw(!1), W(ot.container, { cursor: "move" });
  4187. });
  4188. }, at;
  4189. }(), L(y.prototype, {
  4190. callbacks: [],
  4191. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  4192. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  4193. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  4194. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  4195. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  4196. }), y;
  4197. }), C(o, "Core/Legend/LegendSymbol.js", [o["Core/Utilities.js"]], function(y) {
  4198. var N = y.merge, _ = y.pick, U;
  4199. return function(G) {
  4200. G.drawLineMarker = function(V) {
  4201. var F = this.options, B = V.symbolWidth, j = V.symbolHeight, w = j / 2, x = this.chart.renderer, f = this.legendGroup;
  4202. V = V.baseline - Math.round(0.3 * V.fontMetrics.b);
  4203. var l = {}, T = F.marker;
  4204. this.chart.styledMode || (l = { "stroke-width": F.lineWidth || 0 }, F.dashStyle && (l.dashstyle = F.dashStyle)), this.legendLine = x.path([["M", 0, V], ["L", B, V]]).addClass("highcharts-graph").attr(l).add(f), T && T.enabled !== !1 && B && (F = Math.min(_(T.radius, w), w), this.symbol.indexOf("url") === 0 && (T = N(T, { width: j, height: j }), F = 0), this.legendSymbol = B = x.symbol(this.symbol, B / 2 - F, V - F, 2 * F, 2 * F, T).addClass("highcharts-point").add(f), B.isMarker = !0);
  4205. }, G.drawRectangle = function(V, F) {
  4206. var B = V.symbolHeight, j = V.options.squareSymbol;
  4207. F.legendSymbol = this.chart.renderer.rect(j ? (V.symbolWidth - B) / 2 : 0, V.baseline - B + 1, j ? B : V.symbolWidth, B, _(V.options.symbolRadius, B / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(F.legendGroup);
  4208. };
  4209. }(U || (U = {})), U;
  4210. }), C(o, "Core/Series/SeriesDefaults.js", [], function() {
  4211. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  4212. normal: { animation: !0 },
  4213. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  4214. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  4215. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  4216. var y = this.series.chart.numberFormatter;
  4217. return typeof this.y != "number" ? "" : y(this.y, -1);
  4218. }, padding: 5, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: {
  4219. normal: { animation: !0 },
  4220. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  4221. select: { animation: { duration: 0 } },
  4222. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  4223. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  4224. }), C(o, "Core/Series/Series.js", [
  4225. o["Core/Animation/AnimationUtilities.js"],
  4226. o["Core/DefaultOptions.js"],
  4227. o["Core/Foundation.js"],
  4228. o["Core/Globals.js"],
  4229. o["Core/Legend/LegendSymbol.js"],
  4230. o["Core/Series/Point.js"],
  4231. o["Core/Series/SeriesDefaults.js"],
  4232. o["Core/Series/SeriesRegistry.js"],
  4233. o["Core/Renderer/SVG/SVGElement.js"],
  4234. o["Core/Utilities.js"]
  4235. ], function(y, N, _, U, G, V, F, B, j, w) {
  4236. var x = y.animObject, f = y.setAnimation, l = N.defaultOptions, T = _.registerEventOptions, O = U.hasTouch, R = U.svg, k = U.win, b = B.seriesTypes, S = w.addEvent, v = w.arrayMax, h = w.arrayMin, c = w.clamp, u = w.cleanRecursively, i = w.correctFloat, p = w.defined, a = w.erase, t = w.error, s = w.extend, n = w.find, P = w.fireEvent, D = w.getNestedProperty, I = w.isArray, W = w.isNumber, E = w.isString, X = w.merge, g = w.objectEach, m = w.pick, L = w.removeEvent, z = w.splat, $ = w.syncTimeout;
  4237. return y = function() {
  4238. function Q() {
  4239. 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;
  4240. }
  4241. return Q.prototype.init = function(A, H) {
  4242. P(this, "init", { options: H });
  4243. var Y = this, Z = A.series;
  4244. this.eventsToUnbind = [], Y.chart = A, Y.options = Y.setOptions(H), H = Y.options, Y.linkedSeries = [], Y.bindAxes(), s(Y, { name: H.name, state: "", visible: H.visible !== !1, selected: H.selected === !0 }), T(this, H);
  4245. var q = H.events;
  4246. (q && q.click || H.point && H.point.events && H.point.events.click || H.allowPointSelect) && (A.runTrackerClick = !0), Y.getColor(), Y.getSymbol(), Y.parallelArrays.forEach(function(et) {
  4247. Y[et + "Data"] || (Y[et + "Data"] = []);
  4248. }), Y.isCartesian && (A.hasCartesianSeries = !0);
  4249. var it;
  4250. Z.length && (it = Z[Z.length - 1]), Y._i = m(it && it._i, -1) + 1, Y.opacity = Y.options.opacity, A.orderSeries(this.insert(Z)), H.dataSorting && H.dataSorting.enabled ? Y.setDataSortingOptions() : Y.points || Y.data || Y.setData(H.data, !1), P(this, "afterInit");
  4251. }, Q.prototype.is = function(A) {
  4252. return b[A] && this instanceof b[A];
  4253. }, Q.prototype.insert = function(A) {
  4254. var H = this.options.index, Y;
  4255. if (W(H)) {
  4256. for (Y = A.length; Y--; )
  4257. if (H >= m(A[Y].options.index, A[Y]._i)) {
  4258. A.splice(Y + 1, 0, this);
  4259. break;
  4260. }
  4261. Y === -1 && A.unshift(this), Y += 1;
  4262. } else
  4263. A.push(this);
  4264. return m(Y, A.length - 1);
  4265. }, Q.prototype.bindAxes = function() {
  4266. var A = this, H = A.options, Y = A.chart, Z;
  4267. P(this, "bindAxes", null, function() {
  4268. (A.axisTypes || []).forEach(function(q) {
  4269. var it = 0;
  4270. Y[q].forEach(function(et) {
  4271. Z = et.options, (H[q] === it && !Z.isInternal || typeof H[q] < "u" && H[q] === Z.id || typeof H[q] > "u" && Z.index === 0) && (A.insert(et.series), A[q] = et, et.isDirty = !0), Z.isInternal || it++;
  4272. }), A[q] || A.optionalAxis === q || t(18, !0, Y);
  4273. });
  4274. }), P(this, "afterBindAxes");
  4275. }, Q.prototype.updateParallelArrays = function(A, H) {
  4276. var Y = A.series, Z = arguments, q = W(H) ? function(it) {
  4277. var et = it === "y" && Y.toYData ? Y.toYData(A) : A[it];
  4278. Y[it + "Data"][H] = et;
  4279. } : function(it) {
  4280. Array.prototype[H].apply(Y[it + "Data"], Array.prototype.slice.call(Z, 2));
  4281. };
  4282. Y.parallelArrays.forEach(q);
  4283. }, Q.prototype.hasData = function() {
  4284. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  4285. }, Q.prototype.autoIncrement = function(A) {
  4286. var H = this.options, Y = H.pointIntervalUnit, Z = H.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  4287. return it = m(it, H.pointStart, 0), this.pointInterval = et = m(this.pointInterval, H.pointInterval, 1), Z && W(A) && (et *= A), Y && (H = new q.Date(it), Y === "day" ? q.set("Date", H, q.get("Date", H) + et) : Y === "month" ? q.set("Month", H, q.get("Month", H) + et) : Y === "year" && q.set("FullYear", H, q.get("FullYear", H) + et), et = H.getTime() - it), Z && W(A) ? it + et : (this.xIncrement = it + et, it);
  4288. }, Q.prototype.setDataSortingOptions = function() {
  4289. var A = this.options;
  4290. s(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), p(A.pointRange) || (A.pointRange = 1);
  4291. }, Q.prototype.setOptions = function(A) {
  4292. var H = this.chart, Y = H.options, Z = Y.plotOptions, q = H.userOptions || {};
  4293. A = X(A), H = H.styledMode;
  4294. var it = { plotOptions: Z, userOptions: A };
  4295. P(this, "setOptions", it);
  4296. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  4297. return this.userOptions = it.userOptions, q = X(et, Z.series, q.plotOptions && q.plotOptions[this.type], A), this.tooltipOptions = X(l.tooltip, l.plotOptions.series && l.plotOptions.series.tooltip, l.plotOptions[this.type].tooltip, Y.tooltip.userOptions, Z.series && Z.series.tooltip, Z[this.type].tooltip, A.tooltip), this.stickyTracking = m(A.stickyTracking, nt[this.type] && nt[this.type].stickyTracking, nt.series && nt.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : q.stickyTracking), et.marker === null && delete q.marker, this.zoneAxis = q.zoneAxis, Z = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (Y = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, H || (Y.color = q.negativeColor, Y.fillColor = q.negativeFillColor), Z.push(Y)), Z.length && p(Z[Z.length - 1].value) && Z.push(H ? {} : { color: this.color, fillColor: this.fillColor }), P(this, "afterSetOptions", { options: q }), q;
  4298. }, Q.prototype.getName = function() {
  4299. return m(this.options.name, "Series " + (this.index + 1));
  4300. }, Q.prototype.getCyclic = function(A, H, Y) {
  4301. var Z = this.chart, q = this.userOptions, it = A + "Index", et = A + "Counter", nt = Y ? Y.length : m(Z.options.chart[A + "Count"], Z[A + "Count"]);
  4302. if (!H) {
  4303. var rt = m(q[it], q["_" + it]);
  4304. p(rt) || (Z.series.length || (Z[et] = 0), q["_" + it] = rt = Z[et] % nt, Z[et] += 1), Y && (H = Y[rt]);
  4305. }
  4306. typeof rt < "u" && (this[it] = rt), this[A] = H;
  4307. }, Q.prototype.getColor = function() {
  4308. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || l.plotOptions[this.type].color, this.chart.options.colors);
  4309. }, Q.prototype.getPointsCollection = function() {
  4310. return (this.hasGroupedData ? this.points : this.data) || [];
  4311. }, Q.prototype.getSymbol = function() {
  4312. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  4313. }, Q.prototype.findPointIndex = function(A, H) {
  4314. var Y = A.id, Z = A.x, q = this.points, it = this.options.dataSorting, et, nt;
  4315. if (Y)
  4316. it = this.chart.get(Y), it instanceof V && (et = it);
  4317. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  4318. return !ct.touched && ct.index === A.index;
  4319. }, it && it.matchByName ? et = function(ct) {
  4320. return !ct.touched && ct.name === A.name;
  4321. } : this.options.relativeXValue && (et = function(ct) {
  4322. return !ct.touched && ct.options.x === A.x;
  4323. }), et = n(q, et), !et))
  4324. return;
  4325. if (et) {
  4326. var rt = et && et.index;
  4327. typeof rt < "u" && (nt = !0);
  4328. }
  4329. return typeof rt > "u" && W(Z) && (rt = this.xData.indexOf(Z, H)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && W(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  4330. }, Q.prototype.updateData = function(A, H) {
  4331. var Y = this.options, Z = Y.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = A.length === q.length, rt, ct, gt, dt = !0;
  4332. if (this.xIncrement = null, A.forEach(function(ht, at) {
  4333. var J = p(ht) && this.pointClass.prototype.optionsToObject.call({ series: this }, ht) || {}, tt = J.x;
  4334. J.id || W(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(ht) : q[J] && ht !== Y.data[J] ? (q[J].update(ht, !1, null, !1), q[J].touched = !0, et && (gt = J + 1)) : q[J] && (q[J].touched = !0), (!nt || at !== J || Z && Z.enabled || this.hasDerivedData) && (rt = !0)) : it.push(ht);
  4335. }, this), rt)
  4336. for (A = q.length; A--; )
  4337. (ct = q[A]) && !ct.touched && ct.remove && ct.remove(!1, H);
  4338. else
  4339. !nt || Z && Z.enabled ? dt = !1 : (A.forEach(function(ht, at) {
  4340. ht !== q[at].y && q[at].update && q[at].update(
  4341. ht,
  4342. !1,
  4343. null,
  4344. !1
  4345. );
  4346. }), it.length = 0);
  4347. return q.forEach(function(ht) {
  4348. ht && (ht.touched = !1);
  4349. }), dt ? (it.forEach(function(ht) {
  4350. this.addPoint(ht, !1, null, null, !1);
  4351. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = v(this.xData), this.autoIncrement()), !0) : !1;
  4352. }, Q.prototype.setData = function(A, H, Y, Z) {
  4353. var q = this, it = q.points, et = it && it.length || 0, nt = q.options, rt = q.chart, ct = nt.dataSorting, gt = q.xAxis, dt = nt.turboThreshold, ht = this.xData, at = this.yData, J = q.pointArrayMap;
  4354. J = J && J.length;
  4355. var tt = nt.keys, ot, lt = 0, pt = 1, yt = null;
  4356. A = A || [];
  4357. var vt = A.length;
  4358. if (H = m(H, !0), ct && ct.enabled && (A = this.sortData(A)), Z !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (ot = this.updateData(A, Y)), !ot) {
  4359. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  4360. q[Ct + "Data"].length = 0;
  4361. }), dt && vt > dt)
  4362. if (yt = q.getFirstValidPoint(A), W(yt))
  4363. for (Y = 0; Y < vt; Y++)
  4364. ht[Y] = this.autoIncrement(), at[Y] = A[Y];
  4365. else if (I(yt))
  4366. if (J)
  4367. if (yt.length === J)
  4368. for (Y = 0; Y < vt; Y++)
  4369. ht[Y] = this.autoIncrement(), at[Y] = A[Y];
  4370. else
  4371. for (Y = 0; Y < vt; Y++)
  4372. Z = A[Y], ht[Y] = Z[0], at[Y] = Z.slice(
  4373. 1,
  4374. J + 1
  4375. );
  4376. else if (tt && (lt = tt.indexOf("x"), pt = tt.indexOf("y"), lt = 0 <= lt ? lt : 0, pt = 0 <= pt ? pt : 1), yt.length === 1 && (pt = 0), lt === pt)
  4377. for (Y = 0; Y < vt; Y++)
  4378. ht[Y] = this.autoIncrement(), at[Y] = A[Y][pt];
  4379. else
  4380. for (Y = 0; Y < vt; Y++)
  4381. Z = A[Y], ht[Y] = Z[lt], at[Y] = Z[pt];
  4382. else
  4383. t(12, !1, rt);
  4384. else
  4385. for (Y = 0; Y < vt; Y++)
  4386. typeof A[Y] < "u" && (Z = { series: q }, q.pointClass.prototype.applyOptions.apply(Z, [A[Y]]), q.updateParallelArrays(Z, Y));
  4387. for (at && E(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = A, Y = et; Y--; )
  4388. it[Y] && it[Y].destroy && it[Y].destroy();
  4389. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, Y = !1;
  4390. }
  4391. nt.legendType === "point" && (this.processData(), this.generatePoints()), H && rt.redraw(Y);
  4392. }, Q.prototype.sortData = function(A) {
  4393. var H = this, Y = H.options.dataSorting.sortKey || "y", Z = function(q, it) {
  4394. return p(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  4395. };
  4396. return A.forEach(function(q, it) {
  4397. A[it] = Z(H, q), A[it].index = it;
  4398. }, this), A.concat().sort(function(q, it) {
  4399. return q = D(Y, q), it = D(Y, it), it < q ? -1 : it > q ? 1 : 0;
  4400. }).forEach(function(q, it) {
  4401. q.x = it;
  4402. }, this), H.linkedSeries && H.linkedSeries.forEach(function(q) {
  4403. var it = q.options, et = it.data;
  4404. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  4405. et[rt] = Z(q, nt), A[rt] && (et[rt].x = A[rt].x, et[rt].index = rt);
  4406. }), q.setData(et, !1));
  4407. }), A;
  4408. }, Q.prototype.getProcessedData = function(A) {
  4409. var H = this.xAxis, Y = this.options, Z = Y.cropThreshold, q = A || this.getExtremesFromAll || Y.getExtremesFromAll, it = this.isCartesian;
  4410. A = H && H.val2lin, Y = !(!H || !H.logarithmic);
  4411. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  4412. if (H) {
  4413. gt = H.getExtremes();
  4414. var ht = gt.min, at = gt.max;
  4415. gt = H.categories && !H.names.length;
  4416. }
  4417. if (it && this.sorted && !q && (!Z || dt > Z || this.forceCrop)) {
  4418. if (nt[dt - 1] < ht || nt[0] > at)
  4419. nt = [], rt = [];
  4420. else if (this.yData && (nt[0] < ht || nt[dt - 1] > at)) {
  4421. var J = this.cropData(this.xData, this.yData, ht, at);
  4422. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  4423. }
  4424. }
  4425. for (Z = nt.length || 1; --Z; )
  4426. if (H = Y ? A(nt[Z]) - A(nt[Z - 1]) : nt[Z] - nt[Z - 1], 0 < H && (typeof tt > "u" || H < tt))
  4427. var tt = H;
  4428. else
  4429. 0 > H && ct && !gt && (t(15, !1, this.chart), ct = !1);
  4430. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  4431. }, Q.prototype.processData = function(A) {
  4432. var H = this.xAxis;
  4433. if (this.isCartesian && !this.isDirty && !H.isDirty && !this.yAxis.isDirty && !A)
  4434. return !1;
  4435. A = this.getProcessedData(), this.cropped = A.cropped, this.cropStart = A.cropStart, this.processedXData = A.xData, this.processedYData = A.yData, this.closestPointRange = this.basePointRange = A.closestPointRange, P(this, "afterProcessData");
  4436. }, Q.prototype.cropData = function(A, H, Y, Z, q) {
  4437. var it = A.length, et, nt = 0, rt = it;
  4438. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  4439. if (A[et] >= Y) {
  4440. nt = Math.max(0, et - q);
  4441. break;
  4442. }
  4443. for (Y = et; Y < it; Y++)
  4444. if (A[Y] > Z) {
  4445. rt = Y + q;
  4446. break;
  4447. }
  4448. return { xData: A.slice(nt, rt), yData: H.slice(
  4449. nt,
  4450. rt
  4451. ), start: nt, end: rt };
  4452. }, Q.prototype.generatePoints = function() {
  4453. var A = this.options, H = A.data, Y = this.processedXData, Z = this.processedYData, q = this.pointClass, it = Y.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = A.keys, ct = [];
  4454. A = A.dataGrouping && A.dataGrouping.groupAll ? et : 0;
  4455. var gt, dt, ht = this.data;
  4456. if (!ht && !nt) {
  4457. var at = [];
  4458. at.length = H.length, ht = this.data = at;
  4459. }
  4460. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  4461. if (at = et + dt, nt) {
  4462. var J = new q().init(this, [Y[dt]].concat(z(Z[dt])));
  4463. J.dataGroup = this.groupMap[A + dt], J.dataGroup.options && (J.options = J.dataGroup.options, s(J, J.dataGroup.options), delete J.dataLabels);
  4464. } else
  4465. (J = ht[at]) || typeof H[at] > "u" || (ht[at] = J = new q().init(this, H[at], Y[dt]));
  4466. J && (J.index = nt ? A + dt : at, ct[dt] = J);
  4467. }
  4468. if (this.options.keys = rt, ht && (it !== (gt = ht.length) || nt))
  4469. for (dt = 0; dt < gt; dt++)
  4470. dt !== et || nt || (dt += it), ht[dt] && (ht[dt].destroyElements(), ht[dt].plotX = void 0);
  4471. this.data = ht, this.points = ct, P(this, "afterGeneratePoints");
  4472. }, Q.prototype.getXExtremes = function(A) {
  4473. return { min: h(A), max: v(A) };
  4474. }, Q.prototype.getExtremes = function(A, H) {
  4475. var Y = this.xAxis, Z = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  4476. Z = Z ? Z.positiveValuesOnly : !1;
  4477. var nt, rt = 0, ct = 0, gt = 0;
  4478. A = A || this.stackedYData || this.processedYData || [];
  4479. var dt = A.length;
  4480. if (Y) {
  4481. var ht = Y.getExtremes();
  4482. rt = ht.min, ct = ht.max;
  4483. }
  4484. for (nt = 0; nt < dt; nt++) {
  4485. var at = q[nt];
  4486. ht = A[nt];
  4487. var J = (W(ht) || I(ht)) && (ht.length || 0 < ht || !Z);
  4488. if (at = H || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !Y || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  4489. if (J = ht.length)
  4490. for (; J--; )
  4491. W(ht[J]) && (it[gt++] = ht[J]);
  4492. else
  4493. it[gt++] = ht;
  4494. }
  4495. return A = { activeYData: it, dataMin: h(it), dataMax: v(it) }, P(this, "afterGetExtremes", { dataExtremes: A }), A;
  4496. }, Q.prototype.applyExtremes = function() {
  4497. var A = this.getExtremes();
  4498. return this.dataMin = A.dataMin, this.dataMax = A.dataMax, A;
  4499. }, Q.prototype.getFirstValidPoint = function(A) {
  4500. for (var H = A.length, Y = 0, Z = null; Z === null && Y < H; )
  4501. Z = A[Y], Y++;
  4502. return Z;
  4503. }, Q.prototype.translate = function() {
  4504. this.processedXData || this.processData(), this.generatePoints();
  4505. var A = this.options, H = A.stacking, Y = this.xAxis, Z = Y.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = A.threshold, dt = A.startFromThreshold ? gt : 0, ht = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  4506. for (at = 0; at < nt; at++) {
  4507. var ot = et[at], lt = ot.x, pt = void 0, yt = void 0, vt = ot.y, Ct = ot.low, Pt = H && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  4508. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || Y.positiveValuesOnly && !Y.validatePositiveValue(lt)) && (ot.isNull = !0), ot.plotX = J = i(c(Y.translate(lt, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), H && this.visible && Pt && Pt[lt]) {
  4509. var At = this.getStackIndicator(
  4510. At,
  4511. lt,
  4512. this.index
  4513. );
  4514. ot.isNull || (pt = Pt[lt], yt = pt.points[At.key]);
  4515. }
  4516. if (I(yt) && (Ct = yt[0], vt = yt[1], Ct === dt && At.key === Pt[lt].base && (Ct = m(W(gt) && gt, it.min)), it.positiveValuesOnly && 0 >= Ct && (Ct = null), ot.total = ot.stackTotal = pt.total, ot.percentage = pt.total && ot.y / pt.total * 100, ot.stackY = vt, this.irregularWidths || pt.setOffset(this.pointXOffset || 0, this.barW || 0)), ot.yBottom = p(Ct) ? c(it.translate(Ct, 0, 1, 0, 1), -1e5, 1e5) : null, this.dataModify && (vt = this.dataModify.modifyValue(vt, at)), ot.plotY = void 0, W(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (ot.plotY = c(
  4517. pt,
  4518. -1e5,
  4519. 1e5
  4520. ))), ot.isInside = this.isPointInside(ot), ot.clientX = ct ? i(Y.translate(lt, 0, 0, 0, 1, rt)) : J, ot.negative = ot[ht] < (A[ht + "Threshold"] || gt || 0), ot.category = Z && typeof Z[ot.x] < "u" ? Z[ot.x] : ot.x, !ot.isNull && ot.visible !== !1) {
  4521. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  4522. var St = J;
  4523. }
  4524. ot.zone = this.zones.length ? ot.getZone() : void 0, !ot.graphic && this.group && q && (ot.isNew = !0);
  4525. }
  4526. this.closestPointRangePx = tt, P(this, "afterTranslate");
  4527. }, Q.prototype.getValidPoints = function(A, H, Y) {
  4528. var Z = this.chart;
  4529. return (A || this.points || []).filter(function(q) {
  4530. return H && !Z.isInsidePlot(q.plotX, q.plotY, { inverted: Z.inverted }) ? !1 : q.visible !== !1 && (Y || !q.isNull);
  4531. });
  4532. }, Q.prototype.getClipBox = function() {
  4533. var A = this.chart, H = this.xAxis, Y = this.yAxis, Z = X(A.clipBox);
  4534. return H && H.len !== A.plotSizeX && (Z.width = H.len), Y && Y.len !== A.plotSizeY && (Z.height = Y.len), Z;
  4535. }, Q.prototype.getSharedClipKey = function() {
  4536. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  4537. }, Q.prototype.setClip = function() {
  4538. var A = this.chart, H = this.group, Y = this.markerGroup, Z = A.sharedClips;
  4539. A = A.renderer;
  4540. var q = this.getClipBox(), it = this.getSharedClipKey(), et = Z[it];
  4541. et ? et.animate(q) : Z[it] = et = A.clipRect(q), H && H.clip(this.options.clip === !1 ? void 0 : et), Y && Y.clip();
  4542. }, Q.prototype.animate = function(A) {
  4543. var H = this.chart, Y = this.group, Z = this.markerGroup, q = H.inverted, it = x(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = H.sharedClips[et], rt = H.sharedClips[et + "m"];
  4544. if (A && Y)
  4545. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = H.plotHeight), nt = H.renderer.clipRect(it), H.sharedClips[et] = nt, rt = H.renderer.clipRect({ x: q ? (H.plotSizeX || 0) + 99 : -99, y: q ? -H.plotLeft : -H.plotTop, width: 99, height: q ? H.chartWidth : H.chartHeight }), H.sharedClips[et + "m"] = rt), Y.clip(nt), Z && Z.clip(rt);
  4546. else if (nt && !nt.hasClass("highcharts-animating")) {
  4547. H = this.getClipBox();
  4548. var ct = it.step;
  4549. Z && Z.element.childNodes.length && (it.step = function(gt, dt) {
  4550. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  4551. }), nt.addClass("highcharts-animating").animate(H, it);
  4552. }
  4553. }, Q.prototype.afterAnimate = function() {
  4554. var A = this;
  4555. this.setClip(), g(
  4556. this.chart.sharedClips,
  4557. function(H, Y, Z) {
  4558. H && !A.chart.container.querySelector('[clip-path="url(#' + H.id + ')"]') && (H.destroy(), delete Z[Y]);
  4559. }
  4560. ), this.finishedAnimating = !0, P(this, "afterAnimate");
  4561. }, Q.prototype.drawPoints = function() {
  4562. var A = this.points, H = this.chart, Y = this.options.marker, Z = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(Y.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= Y.enabledThreshold * Y.radius), et, nt;
  4563. if (Y.enabled !== !1 || this._hasPointMarkers)
  4564. for (et = 0; et < A.length; et++) {
  4565. var rt = A[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  4566. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  4567. var ht = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  4568. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  4569. var J = rt.isInside !== !1;
  4570. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = H.renderer.symbol(ht, at.x, at.y, at.width, at.height, dt ? gt : Y).add(Z), this.enabledDataSorting && H.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !H.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  4571. } else
  4572. nt && (rt.graphic = nt.destroy());
  4573. }
  4574. }, Q.prototype.markerAttribs = function(A, H) {
  4575. var Y = this.options, Z = Y.marker, q = A.marker || {}, it = q.symbol || Z.symbol, et = m(q.radius, Z.radius);
  4576. return H && (Z = Z.states[H], H = q.states && q.states[H], et = m(H && H.radius, Z && Z.radius, et + (Z && Z.radiusPlus || 0))), A.hasImage = it && it.indexOf("url") === 0, A.hasImage && (et = 0), A = { x: Y.crisp ? Math.floor(A.plotX - et) : A.plotX - et, y: A.plotY - et }, et && (A.width = A.height = 2 * et), A;
  4577. }, Q.prototype.pointAttribs = function(A, H) {
  4578. var Y = this.options.marker, Z = A && A.options, q = Z && Z.marker || {}, it = Z && Z.color, et = A && A.color, nt = A && A.zone && A.zone.color, rt = this.color;
  4579. return A = m(q.lineWidth, Y.lineWidth), Z = 1, rt = it || nt || et || rt, it = q.fillColor || Y.fillColor || rt, et = q.lineColor || Y.lineColor || rt, H = H || "normal", Y = Y.states[H] || {}, H = q.states && q.states[H] || {}, A = m(H.lineWidth, Y.lineWidth, A + m(H.lineWidthPlus, Y.lineWidthPlus, 0)), it = H.fillColor || Y.fillColor || it, et = H.lineColor || Y.lineColor || et, Z = m(H.opacity, Y.opacity, Z), { stroke: et, "stroke-width": A, fill: it, opacity: Z };
  4580. }, Q.prototype.destroy = function(A) {
  4581. var H = this, Y = H.chart, Z = /AppleWebKit\/533/.test(k.navigator.userAgent), q = H.data || [], it, et, nt, rt;
  4582. for (P(H, "destroy"), this.removeEvents(A), (H.axisTypes || []).forEach(function(ct) {
  4583. (rt = H[ct]) && rt.series && (a(rt.series, H), rt.isDirty = rt.forceRedraw = !0);
  4584. }), H.legendItem && H.chart.legend.destroyItem(H), et = q.length; et--; )
  4585. (nt = q[et]) && nt.destroy && nt.destroy();
  4586. H.clips && H.clips.forEach(function(ct) {
  4587. return ct.destroy();
  4588. }), w.clearTimeout(H.animationTimeout), g(H, function(ct, gt) {
  4589. ct instanceof j && !ct.survive && (it = Z && gt === "group" ? "hide" : "destroy", ct[it]());
  4590. }), Y.hoverSeries === H && (Y.hoverSeries = void 0), a(Y.series, H), Y.orderSeries(), g(H, function(ct, gt) {
  4591. A && gt === "hcEvents" || delete H[gt];
  4592. });
  4593. }, Q.prototype.applyZones = function() {
  4594. var A = this, H = this.chart, Y = H.renderer, Z = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(H.chartWidth, H.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = H.inverted, gt, dt, ht, at, J, tt, ot, lt, pt = !1;
  4595. if (Z.length && (it || et) && rt && typeof rt.min < "u") {
  4596. var yt = rt.reversed, vt = rt.horiz;
  4597. it && !this.showLine && it.hide(), et && et.hide();
  4598. var Ct = rt.getExtremes();
  4599. Z.forEach(function(Pt, At) {
  4600. gt = yt ? vt ? H.plotWidth : 0 : vt ? 0 : rt.toPixels(Ct.min) || 0, gt = c(m(dt, gt), 0, nt), dt = c(Math.round(rt.toPixels(m(Pt.value, Ct.max), !0) || 0), 0, nt), pt && (gt = dt = rt.toPixels(Ct.max)), at = Math.abs(gt - dt), J = Math.min(gt, dt), tt = Math.max(gt, dt), rt.isXAxis ? (ht = { x: ct ? tt : J, y: 0, width: at, height: nt }, vt || (ht.x = H.plotHeight - ht.x)) : (ht = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (ht.y = H.plotWidth - ht.y)), ct && Y.isVML && (ht = rt.isXAxis ? {
  4601. x: 0,
  4602. y: yt ? J : tt,
  4603. height: ht.width,
  4604. width: H.chartWidth
  4605. } : { x: ht.y - H.plotLeft - H.spacingBox.x, y: 0, width: ht.height, height: H.chartHeight }), q[At] ? q[At].animate(ht) : q[At] = Y.clipRect(ht), ot = A["zone-area-" + At], lt = A["zone-graph-" + At], it && lt && lt.clip(q[At]), et && ot && ot.clip(q[At]), pt = Pt.value > Ct.max, A.resetZones && dt === 0 && (dt = void 0);
  4606. }), this.clips = q;
  4607. } else
  4608. A.visible && (it && it.show(!0), et && et.show(!0));
  4609. }, Q.prototype.invertGroups = function(A) {
  4610. function H() {
  4611. ["group", "markerGroup"].forEach(function(q) {
  4612. Y[q] && (Z.renderer.isVML && Y[q].attr({ width: Y.yAxis.len, height: Y.xAxis.len }), Y[q].width = Y.yAxis.len, Y[q].height = Y.xAxis.len, Y[q].invert(Y.isRadialSeries ? !1 : A));
  4613. });
  4614. }
  4615. var Y = this, Z = Y.chart;
  4616. Y.xAxis && (Y.eventsToUnbind.push(S(Z, "resize", H)), H(), Y.invertGroups = H);
  4617. }, Q.prototype.plotGroup = function(A, H, Y, Z, q) {
  4618. var it = this[A], et = !it;
  4619. return Y = { visibility: Y, zIndex: Z || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (Y.opacity = this.opacity), et && (this[A] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + H + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (p(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(Y)[et ? "attr" : "animate"](this.getPlotBox()), it;
  4620. }, Q.prototype.getPlotBox = function() {
  4621. var A = this.chart, H = this.xAxis, Y = this.yAxis;
  4622. return A.inverted && (H = Y, Y = this.xAxis), { translateX: H ? H.left : A.plotLeft, translateY: Y ? Y.top : A.plotTop, scaleX: 1, scaleY: 1 };
  4623. }, Q.prototype.removeEvents = function(A) {
  4624. A || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(H) {
  4625. H();
  4626. }), this.eventsToUnbind.length = 0);
  4627. }, Q.prototype.render = function() {
  4628. var A = this, H = A.chart, Y = A.options, Z = x(Y.animation), q = A.visible ? "inherit" : "hidden", it = Y.zIndex, et = A.hasRendered, nt = H.seriesGroup, rt = H.inverted;
  4629. H = !A.finishedAnimating && H.renderer.isSVG ? Z.duration : 0, P(this, "render");
  4630. var ct = A.plotGroup("group", "series", q, it, nt);
  4631. A.markerGroup = A.plotGroup("markerGroup", "markers", q, it, nt), Y.clip !== !1 && A.setClip(), A.animate && H && A.animate(!0), ct.inverted = m(A.invertible, A.isCartesian) ? rt : !1, A.drawGraph && (A.drawGraph(), A.applyZones()), A.visible && A.drawPoints(), A.drawDataLabels && A.drawDataLabels(), A.redrawPoints && A.redrawPoints(), A.drawTracker && A.options.enableMouseTracking !== !1 && A.drawTracker(), A.invertGroups(rt), A.animate && H && A.animate(), et || (H && Z.defer && (H += Z.defer), A.animationTimeout = $(function() {
  4632. A.afterAnimate();
  4633. }, H || 0)), A.isDirty = !1, A.hasRendered = !0, P(A, "afterRender");
  4634. }, Q.prototype.redraw = function() {
  4635. var A = this.chart, H = this.isDirty || this.isDirtyData, Y = this.group, Z = this.xAxis, q = this.yAxis;
  4636. Y && (A.inverted && Y.attr({
  4637. width: A.plotWidth,
  4638. height: A.plotHeight
  4639. }), Y.animate({ translateX: m(Z && Z.left, A.plotLeft), translateY: m(q && q.top, A.plotTop) })), this.translate(), this.render(), H && delete this.kdTree;
  4640. }, Q.prototype.searchPoint = function(A, H) {
  4641. var Y = this.xAxis, Z = this.yAxis, q = this.chart.inverted;
  4642. return this.searchKDTree({ clientX: q ? Y.len - A.chartY + Y.pos : A.chartX - Y.pos, plotY: q ? Z.len - A.chartX + Z.pos : A.chartY - Z.pos }, H, A);
  4643. }, Q.prototype.buildKDTree = function(A) {
  4644. function H(q, it, et) {
  4645. var nt = q && q.length;
  4646. if (nt) {
  4647. var rt = Y.kdAxisArray[it % et];
  4648. return q.sort(function(ct, gt) {
  4649. return ct[rt] - gt[rt];
  4650. }), nt = Math.floor(nt / 2), { point: q[nt], left: H(q.slice(0, nt), it + 1, et), right: H(q.slice(nt + 1), it + 1, et) };
  4651. }
  4652. }
  4653. this.buildingKdTree = !0;
  4654. var Y = this, Z = -1 < Y.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  4655. delete Y.kdTree, $(function() {
  4656. Y.kdTree = H(Y.getValidPoints(null, !Y.directTouch), Z, Z), Y.buildingKdTree = !1;
  4657. }, Y.options.kdNow || A && A.type === "touchstart" ? 0 : 1);
  4658. }, Q.prototype.searchKDTree = function(A, H, Y) {
  4659. function Z(rt, ct, gt, dt) {
  4660. var ht = ct.point, at = q.kdAxisArray[gt % dt], J = ht, tt = p(rt[it]) && p(ht[it]) ? Math.pow(rt[it] - ht[it], 2) : null, ot = p(rt[et]) && p(ht[et]) ? Math.pow(rt[et] - ht[et], 2) : null;
  4661. return ot = (tt || 0) + (ot || 0), ht.dist = p(ot) ? Math.sqrt(ot) : Number.MAX_VALUE, ht.distX = p(tt) ? Math.sqrt(tt) : Number.MAX_VALUE, at = rt[at] - ht[at], ot = 0 > at ? "left" : "right", tt = 0 > at ? "right" : "left", ct[ot] && (ot = Z(rt, ct[ot], gt + 1, dt), J = ot[nt] < J[nt] ? ot : ht), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = Z(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  4662. }
  4663. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = H ? "distX" : "dist";
  4664. if (H = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(Y), this.kdTree)
  4665. return Z(
  4666. A,
  4667. this.kdTree,
  4668. H,
  4669. H
  4670. );
  4671. }, Q.prototype.pointPlacementToXValue = function() {
  4672. var A = this.options, H = A.pointRange, Y = this.xAxis;
  4673. return A = A.pointPlacement, A === "between" && (A = Y.reversed ? -0.5 : 0.5), W(A) ? A * (H || Y.pointRange) : 0;
  4674. }, Q.prototype.isPointInside = function(A) {
  4675. var H = this.chart, Y = this.xAxis, Z = this.yAxis;
  4676. return typeof A.plotY < "u" && typeof A.plotX < "u" && 0 <= A.plotY && A.plotY <= (Z ? Z.len : H.plotHeight) && 0 <= A.plotX && A.plotX <= (Y ? Y.len : H.plotWidth);
  4677. }, Q.prototype.drawTracker = function() {
  4678. var A = this, H = A.options, Y = H.trackByArea, Z = [].concat(Y ? A.areaPath : A.graphPath), q = A.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = A.tracker, ct = function(dt) {
  4679. q.hoverSeries !== A && A.onMouseOver();
  4680. }, gt = "rgba(192,192,192," + (R ? 1e-4 : 2e-3) + ")";
  4681. rt ? rt.attr({ d: Z }) : A.graph && (A.tracker = et.path(Z).attr({ visibility: A.visible ? "visible" : "hidden", zIndex: 2 }).addClass(Y ? "highcharts-tracker-area" : "highcharts-tracker-line").add(A.group), q.styledMode || A.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: Y ? gt : "none", "stroke-width": A.graph.strokeWidth() + (Y ? 0 : 2 * nt) }), [A.tracker, A.markerGroup, A.dataLabelsGroup].forEach(function(dt) {
  4682. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(ht) {
  4683. it.onTrackerMouseOut(ht);
  4684. }), H.cursor && !q.styledMode && dt.css({ cursor: H.cursor }), O) && dt.on("touchstart", ct);
  4685. })), P(this, "afterDrawTracker");
  4686. }, Q.prototype.addPoint = function(A, H, Y, Z, q) {
  4687. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  4688. rt = rt && rt.hasNames && rt.names;
  4689. var ct = it.data, gt = this.xData, dt;
  4690. H = m(H, !0);
  4691. var ht = { series: this };
  4692. this.pointClass.prototype.applyOptions.apply(
  4693. ht,
  4694. [A]
  4695. );
  4696. var at = ht.x, J = gt.length;
  4697. if (this.requireSorting && at < gt[J - 1])
  4698. for (dt = !0; J && gt[J - 1] > at; )
  4699. J--;
  4700. this.updateParallelArrays(ht, "splice", J, 0, 0), this.updateParallelArrays(ht, J), rt && ht.name && (rt[at] = ht.name), ct.splice(J, 0, A), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), Y && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(ht, "shift"), ct.shift())), q !== !1 && P(this, "addPoint", { point: ht }), this.isDirtyData = this.isDirty = !0, H && nt.redraw(Z);
  4701. }, Q.prototype.removePoint = function(A, H, Y) {
  4702. var Z = this, q = Z.data, it = q[A], et = Z.points, nt = Z.chart, rt = function() {
  4703. et && et.length === q.length && et.splice(A, 1), q.splice(A, 1), Z.options.data.splice(A, 1), Z.updateParallelArrays(it || { series: Z }, "splice", A, 1), it && it.destroy(), Z.isDirty = !0, Z.isDirtyData = !0, H && nt.redraw();
  4704. };
  4705. f(Y, nt), H = m(H, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  4706. }, Q.prototype.remove = function(A, H, Y, Z) {
  4707. function q() {
  4708. it.destroy(Z), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(A, !0) && et.redraw(H);
  4709. }
  4710. var it = this, et = it.chart;
  4711. Y !== !1 ? P(
  4712. it,
  4713. "remove",
  4714. null,
  4715. q
  4716. ) : q();
  4717. }, Q.prototype.update = function(A, H) {
  4718. A = u(A, this.userOptions), P(this, "update", { options: A });
  4719. var Y = this, Z = Y.chart, q = Y.userOptions, it = Y.initialType || Y.type, et = Z.options.plotOptions, nt = b[it].prototype, rt = Y.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], ht = A.type || q.type || Z.options.chart.type, at = !(this.hasDerivedData || ht && ht !== this.type || typeof A.pointStart < "u" || typeof A.pointInterval < "u" || typeof A.relativeXValue < "u" || Y.hasOptionChanged("dataGrouping") || Y.hasOptionChanged("pointStart") || Y.hasOptionChanged("pointInterval") || Y.hasOptionChanged("pointIntervalUnit") || Y.hasOptionChanged("keys"));
  4720. if (ht = ht || it, at && (dt.push("data", "isDirtyData", "points", "processedXData", "processedYData", "xIncrement", "cropped", "_hasPointMarkers", "_hasPointLabels", "clips", "nodes", "layout", "mapMap", "mapData", "minY", "maxY", "minX", "maxX"), A.visible !== !1 && dt.push("area", "graph"), Y.parallelArrays.forEach(function(tt) {
  4721. dt.push(tt + "Data");
  4722. }), A.data && (A.dataSorting && s(Y.options.dataSorting, A.dataSorting), this.setData(A.data, !1))), A = X(q, rt, { index: typeof q.index > "u" ? Y.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, Y.xData[0]) }, !at && { data: Y.options.data }, A), at && A.data && (A.data = Y.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  4723. dt[tt] = Y[tt], delete Y[tt];
  4724. }), et = !1, b[ht]) {
  4725. if (et = ht !== Y.type, Y.remove(!1, !1, !1, !0), et)
  4726. if (Object.setPrototypeOf)
  4727. Object.setPrototypeOf(Y, b[ht].prototype);
  4728. else {
  4729. rt = Object.hasOwnProperty.call(Y, "hcEvents") && Y.hcEvents;
  4730. for (gt in nt)
  4731. Y[gt] = void 0;
  4732. s(Y, b[ht].prototype), rt ? Y.hcEvents = rt : delete Y.hcEvents;
  4733. }
  4734. } else
  4735. t(17, !0, Z, { missingModuleFor: ht });
  4736. if (dt.forEach(function(tt) {
  4737. Y[tt] = dt[tt];
  4738. }), Y.init(Z, A), at && this.points) {
  4739. var J = Y.options;
  4740. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : Y._hasPointLabels || (A = J.marker, nt = J.dataLabels, !A || A.enabled !== !1 && (q.marker && q.marker.symbol) === A.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  4741. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && Z.legend.destroyItem(tt));
  4742. }, this);
  4743. }
  4744. Y.initialType = it, Z.linkSeries(), et && Y.linkedSeries.length && (Y.isDirtyData = !0), P(this, "afterUpdate"), m(H, !0) && Z.redraw(at ? void 0 : !1);
  4745. }, Q.prototype.setName = function(A) {
  4746. this.name = this.options.name = this.userOptions.name = A, this.chart.isDirtyLegend = !0;
  4747. }, Q.prototype.hasOptionChanged = function(A) {
  4748. var H = this.options[A], Y = this.chart.options.plotOptions, Z = this.userOptions[A];
  4749. return Z ? H !== Z : H !== m(
  4750. Y && Y[this.type] && Y[this.type][A],
  4751. Y && Y.series && Y.series[A],
  4752. H
  4753. );
  4754. }, Q.prototype.onMouseOver = function() {
  4755. var A = this.chart, H = A.hoverSeries;
  4756. A.pointer.setHoverChartIndex(), H && H !== this && H.onMouseOut(), this.options.events.mouseOver && P(this, "mouseOver"), this.setState("hover"), A.hoverSeries = this;
  4757. }, Q.prototype.onMouseOut = function() {
  4758. var A = this.options, H = this.chart, Y = H.tooltip, Z = H.hoverPoint;
  4759. H.hoverSeries = null, Z && Z.onMouseOut(), this && A.events.mouseOut && P(this, "mouseOut"), !Y || this.stickyTracking || Y.shared && !this.noSharedTooltip || Y.hide(), H.series.forEach(function(q) {
  4760. q.setState(
  4761. "",
  4762. !0
  4763. );
  4764. });
  4765. }, Q.prototype.setState = function(A, H) {
  4766. var Y = this, Z = Y.options, q = Y.graph, it = Z.inactiveOtherPoints, et = Z.states, nt = m(et[A || "normal"] && et[A || "normal"].animation, Y.chart.options.chart.animation), rt = Z.lineWidth, ct = 0, gt = Z.opacity;
  4767. if (A = A || "", Y.state !== A && ([Y.group, Y.markerGroup, Y.dataLabelsGroup].forEach(function(dt) {
  4768. dt && (Y.state && dt.removeClass("highcharts-series-" + Y.state), A && dt.addClass("highcharts-series-" + A));
  4769. }), Y.state = A, !Y.chart.styledMode)) {
  4770. if (et[A] && et[A].enabled === !1)
  4771. return;
  4772. if (A && (rt = et[A].lineWidth || rt + (et[A].lineWidthPlus || 0), gt = m(et[A].opacity, gt)), q && !q.dashstyle)
  4773. for (Z = { "stroke-width": rt }, q.animate(Z, nt); Y["zone-graph-" + ct]; )
  4774. Y["zone-graph-" + ct].animate(Z, nt), ct += 1;
  4775. it || [Y.group, Y.markerGroup, Y.dataLabelsGroup, Y.labelBySeries].forEach(function(dt) {
  4776. dt && dt.animate({ opacity: gt }, nt);
  4777. });
  4778. }
  4779. H && it && Y.points && Y.setAllPointsToState(A || void 0);
  4780. }, Q.prototype.setAllPointsToState = function(A) {
  4781. this.points.forEach(function(H) {
  4782. H.setState && H.setState(A);
  4783. });
  4784. }, Q.prototype.setVisible = function(A, H) {
  4785. var Y = this, Z = Y.chart, q = Y.legendItem, it = Z.options.chart.ignoreHiddenSeries, et = Y.visible, nt = (Y.visible = A = Y.options.visible = Y.userOptions.visible = typeof A > "u" ? !et : A) ? "show" : "hide";
  4786. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  4787. Y[rt] && Y[rt][nt]();
  4788. }), (Z.hoverSeries === Y || (Z.hoverPoint && Z.hoverPoint.series) === Y) && Y.onMouseOut(), q && Z.legend.colorizeItem(Y, A), Y.isDirty = !0, Y.options.stacking && Z.series.forEach(function(rt) {
  4789. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  4790. }), Y.linkedSeries.forEach(function(rt) {
  4791. rt.setVisible(A, !1);
  4792. }), it && (Z.isDirtyBox = !0), P(Y, nt), H !== !1 && Z.redraw();
  4793. }, Q.prototype.show = function() {
  4794. this.setVisible(!0);
  4795. }, Q.prototype.hide = function() {
  4796. this.setVisible(!1);
  4797. }, Q.prototype.select = function(A) {
  4798. this.selected = A = this.options.selected = typeof A > "u" ? !this.selected : A, this.checkbox && (this.checkbox.checked = A), P(this, A ? "select" : "unselect");
  4799. }, Q.prototype.shouldShowTooltip = function(A, H, Y) {
  4800. return Y === void 0 && (Y = {}), Y.series = this, Y.visiblePlotOnly = !0, this.chart.isInsidePlot(A, H, Y);
  4801. }, Q.defaultOptions = F, Q;
  4802. }(), s(y.prototype, { axisTypes: [
  4803. "xAxis",
  4804. "yAxis"
  4805. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: G.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: V, requireSorting: !0, sorted: !0 }), B.series = y, y;
  4806. }), C(o, "Extensions/ScrollablePlotArea.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Axis/Axis.js"], o["Core/Chart/Chart.js"], o["Core/Series/Series.js"], o["Core/Renderer/RendererRegistry.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V) {
  4807. var F = y.stop, B = V.addEvent, j = V.createElement, w = V.merge, x = V.pick;
  4808. B(_, "afterSetChartSize", function(f) {
  4809. var l = this.options.chart.scrollablePlotArea, T = l && l.minWidth;
  4810. if (l = l && l.minHeight, !this.renderer.forExport) {
  4811. if (T) {
  4812. if (this.scrollablePixelsX = T = Math.max(0, T - this.chartWidth)) {
  4813. this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.width = this.plotWidth += T, this.inverted ? this.clipBox.height += T : this.clipBox.width += T;
  4814. var O = { 1: { name: "right", value: T } };
  4815. }
  4816. } else
  4817. l && (this.scrollablePixelsY = T = Math.max(
  4818. 0,
  4819. l - this.chartHeight
  4820. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.height = this.plotHeight += T, this.inverted ? this.clipBox.width += T : this.clipBox.height += T, O = { 2: { name: "bottom", value: T } });
  4821. O && !f.skipAxes && this.axes.forEach(function(R) {
  4822. O[R.side] ? R.getPlotLinePath = function() {
  4823. var k = O[R.side].name, b = this[k];
  4824. this[k] = b - O[R.side].value;
  4825. var S = N.prototype.getPlotLinePath.apply(this, arguments);
  4826. return this[k] = b, S;
  4827. } : (R.setAxisSize(), R.setAxisTranslation());
  4828. });
  4829. }
  4830. }), B(_, "render", function() {
  4831. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  4832. }), _.prototype.setUpScrolling = function() {
  4833. var f = this, l = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  4834. this.scrollablePixelsX && (l.overflowX = "auto"), this.scrollablePixelsY && (l.overflowY = "auto"), this.scrollingParent = j("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = j(
  4835. "div",
  4836. { className: "highcharts-scrolling" },
  4837. l,
  4838. this.scrollingParent
  4839. ), B(this.scrollingContainer, "scroll", function() {
  4840. f.pointer && delete f.pointer.chartPosition;
  4841. }), this.innerContainer = j("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  4842. }, _.prototype.moveFixedElements = function() {
  4843. var f = this.container, l = this.fixedRenderer, T = ".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(" "), O;
  4844. this.scrollablePixelsX && !this.inverted ? O = ".highcharts-yaxis" : this.scrollablePixelsX && this.inverted || this.scrollablePixelsY && !this.inverted ? O = ".highcharts-xaxis" : this.scrollablePixelsY && this.inverted && (O = ".highcharts-yaxis"), O && T.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), T.forEach(function(R) {
  4845. [].forEach.call(f.querySelectorAll(R), function(k) {
  4846. (k.namespaceURI === l.SVG_NS ? l.box : l.box.parentNode).appendChild(k), k.style.pointerEvents = "auto";
  4847. });
  4848. });
  4849. }, _.prototype.applyFixed = function() {
  4850. var f = !this.fixedDiv, l = this.options.chart, T = l.scrollablePlotArea, O = G.getRendererType();
  4851. f ? (this.fixedDiv = j("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (l.style && l.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = l = new O(
  4852. this.fixedDiv,
  4853. this.chartWidth,
  4854. this.chartHeight,
  4855. this.options.chart.style
  4856. ), this.scrollableMask = l.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": x(T.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), B(this, "afterShowResetZoom", this.moveFixedElements), B(this, "afterDrilldown", this.moveFixedElements), B(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || f) && (this.scrollableDirty = !1, this.moveFixedElements()), l = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = l + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: l, height: O, viewBox: [0, 0, l, O].join(" ") }), this.chartBackground.attr({ width: l, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", f && (T.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * T.scrollPositionX), T.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * T.scrollPositionY)), O = this.axisOffset, f = this.plotTop - O[0] - 1, T = this.plotLeft - O[3] - 1, l = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  4857. var R = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), k = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  4858. f = this.scrollablePixelsX ? [["M", 0, f], ["L", this.plotLeft - 1, f], ["L", this.plotLeft - 1, l], ["L", 0, l], ["Z"], ["M", R, f], ["L", this.chartWidth, f], ["L", this.chartWidth, l], ["L", R, l], ["Z"]] : this.scrollablePixelsY ? [["M", T, 0], ["L", T, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", T, k], ["L", T, this.chartHeight], ["L", O, this.chartHeight], ["L", O, k], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d: f });
  4859. }, B(N, "afterInit", function() {
  4860. this.chart.scrollableDirty = !0;
  4861. }), B(U, "show", function() {
  4862. this.chart.scrollableDirty = !0;
  4863. });
  4864. }), C(o, "Core/Axis/StackingAxis.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Axis/Axis.js"], o["Core/Utilities.js"]], function(y, N, _) {
  4865. var U = y.getDeferredAnimation, G = _.addEvent, V = _.destroyObjectProperties, F = _.fireEvent, B = _.isNumber, j = _.objectEach, w;
  4866. return function(x) {
  4867. function f() {
  4868. var R = this.stacking;
  4869. if (R) {
  4870. var k = R.stacks;
  4871. j(k, function(b, S) {
  4872. V(b), k[S] = null;
  4873. }), R && R.stackTotalGroup && R.stackTotalGroup.destroy();
  4874. }
  4875. }
  4876. function l() {
  4877. this.stacking || (this.stacking = new O(this));
  4878. }
  4879. var T = [];
  4880. x.compose = function(R) {
  4881. return T.indexOf(R) === -1 && (T.push(R), G(R, "init", l), G(R, "destroy", f)), R;
  4882. };
  4883. var O = function() {
  4884. function R(k) {
  4885. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = k;
  4886. }
  4887. return R.prototype.buildStacks = function() {
  4888. var k = this.axis, b = k.series, S = k.options.reversedStacks, v = b.length, h;
  4889. if (!k.isXAxis) {
  4890. for (this.usePercentage = !1, h = v; h--; ) {
  4891. var c = b[S ? h : v - h - 1];
  4892. c.setStackedPoints(), c.setGroupedPoints();
  4893. }
  4894. for (h = 0; h < v; h++)
  4895. b[h].modifyStacks();
  4896. F(k, "afterBuildStacks");
  4897. }
  4898. }, R.prototype.cleanStacks = function() {
  4899. if (!this.axis.isXAxis) {
  4900. if (this.oldStacks)
  4901. var k = this.stacks = this.oldStacks;
  4902. j(k, function(b) {
  4903. j(b, function(S) {
  4904. S.cumulative = S.total;
  4905. });
  4906. });
  4907. }
  4908. }, R.prototype.resetStacks = function() {
  4909. var k = this, b = k.stacks;
  4910. k.axis.isXAxis || j(b, function(S) {
  4911. j(
  4912. S,
  4913. function(v, h) {
  4914. B(v.touched) && v.touched < k.stacksTouched ? (v.destroy(), delete S[h]) : (v.total = null, v.cumulative = null);
  4915. }
  4916. );
  4917. });
  4918. }, R.prototype.renderStackTotals = function() {
  4919. var k = this.axis, b = k.chart, S = b.renderer, v = this.stacks;
  4920. k = U(b, k.options.stackLabels && k.options.stackLabels.animation || !1);
  4921. var h = this.stackTotalGroup = this.stackTotalGroup || S.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  4922. h.translate(b.plotLeft, b.plotTop), j(v, function(c) {
  4923. j(c, function(u) {
  4924. u.render(h);
  4925. });
  4926. }), h.animate(
  4927. { opacity: 1 },
  4928. k
  4929. );
  4930. }, R;
  4931. }();
  4932. x.Additions = O;
  4933. }(w || (w = {})), w;
  4934. }), C(o, "Extensions/Stacking.js", [o["Core/Axis/Axis.js"], o["Core/Chart/Chart.js"], o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Series/Series.js"], o["Core/Axis/StackingAxis.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V, F) {
  4935. var B = _.format, j = F.correctFloat, w = F.defined, x = F.destroyObjectProperties, f = F.isArray, l = F.isNumber, T = F.objectEach, O = F.pick, R = function() {
  4936. function k(b, S, v, h, c) {
  4937. var u = b.chart.inverted;
  4938. this.axis = b, this.isNegative = v, this.options = S = S || {}, this.x = h, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: S.align || (u ? v ? "left" : "right" : "center"), verticalAlign: S.verticalAlign || (u ? "middle" : v ? "bottom" : "top"), y: S.y, x: S.x }, this.textAlign = S.textAlign || (u ? v ? "right" : "left" : "center");
  4939. }
  4940. return k.prototype.destroy = function() {
  4941. x(this, this.axis);
  4942. }, k.prototype.render = function(b) {
  4943. var S = this.axis.chart, v = this.options, h = v.format;
  4944. h = h ? B(h, this, S) : v.formatter.call(this), this.label ? this.label.attr({
  4945. text: h,
  4946. visibility: "hidden"
  4947. }) : (this.label = S.renderer.label(h, null, null, v.shape, null, null, v.useHTML, !1, "stack-labels"), h = { r: v.borderRadius || 0, text: h, rotation: v.rotation, padding: O(v.padding, 5), visibility: "hidden" }, S.styledMode || (h.fill = v.backgroundColor, h.stroke = v.borderColor, h["stroke-width"] = v.borderWidth, this.label.css(v.style)), this.label.attr(h), this.label.added || this.label.add(b)), this.label.labelrank = S.plotSizeY;
  4948. }, k.prototype.setOffset = function(b, S, v, h, c) {
  4949. var u = this.axis, i = u.chart;
  4950. h = u.translate(u.stacking.usePercentage ? 100 : h || this.total, 0, 0, 0, 1), v = u.translate(v || 0), v = w(h) && Math.abs(h - v), b = O(c, i.xAxis[0].translate(this.x)) + b, u = w(h) && this.getStackBox(i, this, b, h, S, v, u), S = this.label, v = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  4951. var p = this.textAlign;
  4952. S && u && (c = S.getBBox(), h = S.padding, p = p === "left" ? i.inverted ? -h : h : p === "right" ? c.width : i.inverted && p === "center" ? c.width / 2 : i.inverted ? v ? c.width + h : -h : c.width / 2, v = i.inverted ? c.height / 2 : v ? -h : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), u.x -= p, u.y -= v, S.align(this.alignOptions, null, u), i.isInsidePlot(S.alignAttr.x + p - this.alignOptions.x, S.alignAttr.y + v - this.alignOptions.y) ? S.show() : (S.alignAttr.y = -9999, b = !1), b && G.prototype.justifyDataLabel.call(this.axis, S, this.alignOptions, S.alignAttr, c, u), S.attr({ x: S.alignAttr.x, y: S.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = l(S.x) && l(S.y) && i.isInsidePlot(S.x - h + S.width, S.y) && i.isInsidePlot(S.x + h, S.y)) || S.hide()));
  4953. }, k.prototype.getStackBox = function(b, S, v, h, c, u, i) {
  4954. var p = S.axis.reversed, a = b.inverted, t = i.height + i.pos - (a ? b.plotLeft : b.plotTop);
  4955. return S = S.isNegative && !p || !S.isNegative && p, { x: a ? S ? h - i.right : h - u + i.pos - b.plotLeft : v + b.xAxis[0].transB - b.plotLeft, y: a ? i.height - v - c : S ? t - h - u : t - h, width: a ? u : c, height: a ? c : u };
  4956. }, k;
  4957. }();
  4958. return N.prototype.getStacks = function() {
  4959. var k = this, b = k.inverted;
  4960. k.yAxis.forEach(function(S) {
  4961. S.stacking && S.stacking.stacks && S.hasVisibleSeries && (S.stacking.oldStacks = S.stacking.stacks);
  4962. }), k.series.forEach(function(S) {
  4963. var v = S.xAxis && S.xAxis.options || {};
  4964. !S.options.stacking || S.visible !== !0 && k.options.chart.ignoreHiddenSeries !== !1 || (S.stackKey = [S.type, O(S.options.stack, ""), b ? v.top : v.left, b ? v.height : v.width].join());
  4965. });
  4966. }, V.compose(y), G.prototype.setGroupedPoints = function() {
  4967. var k = this.yAxis.stacking;
  4968. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? G.prototype.setStackedPoints.call(this, "group") : k && T(k.stacks, function(b, S) {
  4969. S.slice(-5) === "group" && (T(b, function(v) {
  4970. return v.destroy();
  4971. }), delete k.stacks[S]);
  4972. });
  4973. }, G.prototype.setStackedPoints = function(k) {
  4974. var b = k || this.options.stacking;
  4975. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  4976. var S = this.processedXData, v = this.processedYData, h = [], c = v.length, u = this.options, i = u.threshold, p = O(u.startFromThreshold && i, 0);
  4977. u = u.stack, k = k ? this.type + "," + b : this.stackKey;
  4978. var a = "-" + k, t = this.negStacks, s = this.yAxis, n = s.stacking.stacks, P = s.stacking.oldStacks, D, I;
  4979. for (s.stacking.stacksTouched += 1, I = 0; I < c; I++) {
  4980. var W = S[I], E = v[I], X = this.getStackIndicator(
  4981. X,
  4982. W,
  4983. this.index
  4984. ), g = X.key, m = (D = t && E < (p ? 0 : i)) ? a : k;
  4985. n[m] || (n[m] = {}), n[m][W] || (P[m] && P[m][W] ? (n[m][W] = P[m][W], n[m][W].total = null) : n[m][W] = new R(s, s.options.stackLabels, D, W, u)), m = n[m][W], E !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, p)], w(m.cumulative) || (m.base = g), m.touched = s.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[g][0] = m.points[this.index + "," + W + ",0"][0])) : m.points[g] = m.points[this.index] = null, b === "percent" ? (D = D ? k : a, t && n[D] && n[D][W] ? (D = n[D][W], m.total = D.total = Math.max(D.total, m.total) + Math.abs(E) || 0) : m.total = j(m.total + (Math.abs(E) || 0))) : b === "group" ? (f(E) && (E = E[0]), E !== null && (m.total = (m.total || 0) + 1)) : m.total = j(m.total + (E || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, p) + (E || 0), E !== null && (m.points[g].push(m.cumulative), h[I] = m.cumulative, m.hasValidPoints = !0);
  4986. }
  4987. b === "percent" && (s.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = h), s.stacking.oldStacks = {};
  4988. }
  4989. }, G.prototype.modifyStacks = function() {
  4990. var k = this, b = k.stackKey, S = k.yAxis.stacking.stacks, v = k.processedXData, h, c = k.options.stacking;
  4991. k[c + "Stacker"] && [b, "-" + b].forEach(function(u) {
  4992. for (var i = v.length, p, a; i--; )
  4993. p = v[i], h = k.getStackIndicator(h, p, k.index, u), (a = (p = S[u] && S[u][p]) && p.points[h.key]) && k[c + "Stacker"](a, p, i);
  4994. });
  4995. }, G.prototype.percentStacker = function(k, b, S) {
  4996. b = b.total ? 100 / b.total : 0, k[0] = j(k[0] * b), k[1] = j(k[1] * b), this.stackedYData[S] = k[1];
  4997. }, G.prototype.getStackIndicator = function(k, b, S, v) {
  4998. return !w(k) || k.x !== b || v && k.key !== v ? k = { x: b, index: 0, key: v } : k.index++, k.key = [S, b, k.index].join(), k;
  4999. }, U.StackItem = R, U.StackItem;
  5000. }), C(o, "Series/Line/LineSeries.js", [o["Core/Series/Series.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  5001. var U = this && this.__extends || function() {
  5002. var F = function(B, j) {
  5003. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  5004. w.__proto__ = x;
  5005. } || function(w, x) {
  5006. for (var f in x)
  5007. x.hasOwnProperty(f) && (w[f] = x[f]);
  5008. }, F(B, j);
  5009. };
  5010. return function(B, j) {
  5011. function w() {
  5012. this.constructor = B;
  5013. }
  5014. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  5015. };
  5016. }(), G = _.defined, V = _.merge;
  5017. return _ = function(F) {
  5018. function B() {
  5019. var j = F !== null && F.apply(this, arguments) || this;
  5020. return j.data = void 0, j.options = void 0, j.points = void 0, j;
  5021. }
  5022. return U(B, F), B.prototype.drawGraph = function() {
  5023. var j = this, w = this.options, x = (this.gappedPath || this.getGraphPath).call(this), f = this.chart.styledMode, l = [["graph", "highcharts-graph"]];
  5024. f || l[0].push(w.lineColor || this.color || "#cccccc", w.dashStyle), l = j.getZonesGraphs(l), l.forEach(function(T, O) {
  5025. var R = T[0], k = j[R], b = k ? "animate" : "attr";
  5026. k ? (k.endX = j.preventGraphAnimation ? null : x.xMap, k.animate({ d: x })) : x.length && (j[R] = k = j.chart.renderer.path(x).addClass(T[1]).attr({ zIndex: 1 }).add(j.group)), k && !f && (R = { stroke: T[2], "stroke-width": w.lineWidth, fill: j.fillGraph && j.color || "none" }, T[3] ? R.dashstyle = T[3] : w.linecap !== "square" && (R["stroke-linecap"] = R["stroke-linejoin"] = "round"), k[b](R).shadow(2 > O && w.shadow)), k && (k.startX = x.xMap, k.isArea = x.isArea);
  5027. });
  5028. }, B.prototype.getGraphPath = function(j, w, x) {
  5029. var f = this, l = f.options, T = [], O = [], R, k = l.step;
  5030. j = j || f.points;
  5031. var b = j.reversed;
  5032. return b && j.reverse(), (k = { right: 1, center: 2 }[k] || k && 3) && b && (k = 4 - k), j = this.getValidPoints(j, !1, !(l.connectNulls && !w && !x)), j.forEach(function(S, v) {
  5033. var h = S.plotX, c = S.plotY, u = j[v - 1];
  5034. (S.leftCliff || u && u.rightCliff) && !x && (R = !0), S.isNull && !G(w) && 0 < v ? R = !l.connectNulls : S.isNull && !w ? R = !0 : (v === 0 || R ? v = [["M", S.plotX, S.plotY]] : f.getPointSpline ? v = [f.getPointSpline(j, S, v)] : k ? (v = k === 1 ? [["L", u.plotX, c]] : k === 2 ? [["L", (u.plotX + h) / 2, u.plotY], ["L", (u.plotX + h) / 2, c]] : [["L", h, u.plotY]], v.push(["L", h, c])) : v = [["L", h, c]], O.push(S.x), k && (O.push(S.x), k === 2 && O.push(S.x)), T.push.apply(T, v), R = !1);
  5035. }), T.xMap = O, f.graphPath = T;
  5036. }, B.prototype.getZonesGraphs = function(j) {
  5037. return this.zones.forEach(function(w, x) {
  5038. x = ["zone-graph-" + x, "highcharts-graph highcharts-zone-graph-" + x + " " + (w.className || "")], this.chart.styledMode || x.push(w.color || this.color, w.dashStyle || this.options.dashStyle), j.push(x);
  5039. }, this), j;
  5040. }, B.defaultOptions = V(y.defaultOptions, {}), B;
  5041. }(y), N.registerSeriesType("line", _), _;
  5042. }), C(o, "Series/Area/AreaSeries.js", [
  5043. o["Core/Color/Color.js"],
  5044. o["Core/Legend/LegendSymbol.js"],
  5045. o["Core/Series/SeriesRegistry.js"],
  5046. o["Core/Utilities.js"]
  5047. ], function(y, N, _, U) {
  5048. var G = this && this.__extends || function() {
  5049. var x = function(f, l) {
  5050. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, O) {
  5051. T.__proto__ = O;
  5052. } || function(T, O) {
  5053. for (var R in O)
  5054. O.hasOwnProperty(R) && (T[R] = O[R]);
  5055. }, x(f, l);
  5056. };
  5057. return function(f, l) {
  5058. function T() {
  5059. this.constructor = f;
  5060. }
  5061. x(f, l), f.prototype = l === null ? Object.create(l) : (T.prototype = l.prototype, new T());
  5062. };
  5063. }(), V = y.parse, F = _.seriesTypes.line;
  5064. y = U.extend;
  5065. var B = U.merge, j = U.objectEach, w = U.pick;
  5066. return U = function(x) {
  5067. function f() {
  5068. var l = x !== null && x.apply(this, arguments) || this;
  5069. return l.data = void 0, l.options = void 0, l.points = void 0, l;
  5070. }
  5071. return G(f, x), f.prototype.drawGraph = function() {
  5072. this.areaPath = [], x.prototype.drawGraph.apply(this);
  5073. var l = this, T = this.areaPath, O = this.options, R = [["area", "highcharts-area", this.color, O.fillColor]];
  5074. this.zones.forEach(function(k, b) {
  5075. R.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + k.className, k.color || l.color, k.fillColor || O.fillColor]);
  5076. }), R.forEach(function(k) {
  5077. var b = k[0], S = l[b], v = S ? "animate" : "attr", h = {};
  5078. S ? (S.endX = l.preventGraphAnimation ? null : T.xMap, S.animate({ d: T })) : (h.zIndex = 0, S = l[b] = l.chart.renderer.path(T).addClass(k[1]).add(l.group), S.isArea = !0), l.chart.styledMode || (h.fill = w(k[3], V(k[2]).setOpacity(w(O.fillOpacity, 0.75)).get())), S[v](h), S.startX = T.xMap, S.shiftUnit = O.step ? 2 : 1;
  5079. });
  5080. }, f.prototype.getGraphPath = function(l) {
  5081. var T = F.prototype.getGraphPath, O = this.options, R = O.stacking, k = this.yAxis, b, S = [], v = [], h = this.index, c = k.stacking.stacks[this.stackKey], u = O.threshold, i = Math.round(k.getThreshold(O.threshold));
  5082. O = w(O.connectNulls, R === "percent");
  5083. var p = function(n, P, D) {
  5084. var I = l[n];
  5085. n = R && c[I.x].points[h];
  5086. var W = I[D + "Null"] || 0;
  5087. if (D = I[D + "Cliff"] || 0, I = !0, D || W) {
  5088. var E = (W ? n[0] : n[1]) + D, X = n[0] + D;
  5089. I = !!W;
  5090. } else
  5091. !R && l[P] && l[P].isNull && (E = X = u);
  5092. typeof E < "u" && (v.push({ plotX: t, plotY: E === null ? i : k.getThreshold(E), isNull: I, isCliff: !0 }), S.push({ plotX: t, plotY: X === null ? i : k.getThreshold(X), doCurve: !1 }));
  5093. };
  5094. for (l = l || this.points, R && (l = this.getStackPoints(l)), b = 0; b < l.length; b++) {
  5095. R || (l[b].leftCliff = l[b].rightCliff = l[b].leftNull = l[b].rightNull = void 0);
  5096. var a = l[b].isNull, t = w(l[b].rectPlotX, l[b].plotX), s = R ? w(l[b].yBottom, i) : i;
  5097. (!a || O) && (O || p(b, b - 1, "left"), a && !R && O || (v.push(l[b]), S.push({ x: b, plotX: t, plotY: s })), O || p(b, b + 1, "right"));
  5098. }
  5099. return b = T.call(this, v, !0, !0), S.reversed = !0, a = T.call(this, S, !0, !0), (s = a[0]) && s[0] === "M" && (a[0] = ["L", s[1], s[2]]), a = b.concat(a), a.length && a.push(["Z"]), T = T.call(this, v, !1, O), a.xMap = b.xMap, this.areaPath = a, T;
  5100. }, f.prototype.getStackPoints = function(l) {
  5101. var T = this, O = [], R = [], k = this.xAxis, b = this.yAxis, S = b.stacking.stacks[this.stackKey], v = {}, h = b.series, c = h.length, u = b.options.reversedStacks ? 1 : -1, i = h.indexOf(T);
  5102. if (l = l || this.points, this.options.stacking) {
  5103. for (var p = 0; p < l.length; p++)
  5104. l[p].leftNull = l[p].rightNull = void 0, v[l[p].x] = l[p];
  5105. j(S, function(t, s) {
  5106. t.total !== null && R.push(s);
  5107. }), R.sort(function(t, s) {
  5108. return t - s;
  5109. });
  5110. var a = h.map(function(t) {
  5111. return t.visible;
  5112. });
  5113. R.forEach(function(t, s) {
  5114. var n = 0, P, D;
  5115. if (v[t] && !v[t].isNull)
  5116. O.push(v[t]), [-1, 1].forEach(function(W) {
  5117. var E = W === 1 ? "rightNull" : "leftNull", X = 0, g = S[R[s + W]];
  5118. if (g)
  5119. for (var m = i; 0 <= m && m < c; ) {
  5120. var L = h[m].index;
  5121. P = g.points[L], P || (L === T.index ? v[t][E] = !0 : a[m] && (D = S[t].points[L]) && (X -= D[1] - D[0])), m += u;
  5122. }
  5123. v[t][W === 1 ? "rightCliff" : "leftCliff"] = X;
  5124. });
  5125. else {
  5126. for (var I = i; 0 <= I && I < c; ) {
  5127. if (P = S[t].points[h[I].index]) {
  5128. n = P[1];
  5129. break;
  5130. }
  5131. I += u;
  5132. }
  5133. n = w(n, 0), n = b.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: k.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  5134. }
  5135. });
  5136. }
  5137. return O;
  5138. }, f.defaultOptions = B(F.defaultOptions, { threshold: 0 }), f;
  5139. }(F), y(U.prototype, {
  5140. singleStacks: !1,
  5141. drawLegendSymbol: N.drawRectangle
  5142. }), _.registerSeriesType("area", U), U;
  5143. }), C(o, "Series/Spline/SplineSeries.js", [o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N) {
  5144. var _ = this && this.__extends || function() {
  5145. var F = function(B, j) {
  5146. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  5147. w.__proto__ = x;
  5148. } || function(w, x) {
  5149. for (var f in x)
  5150. x.hasOwnProperty(f) && (w[f] = x[f]);
  5151. }, F(B, j);
  5152. };
  5153. return function(B, j) {
  5154. function w() {
  5155. this.constructor = B;
  5156. }
  5157. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  5158. };
  5159. }(), U = y.seriesTypes.line, G = N.merge, V = N.pick;
  5160. return N = function(F) {
  5161. function B() {
  5162. var j = F !== null && F.apply(this, arguments) || this;
  5163. return j.data = void 0, j.options = void 0, j.points = void 0, j;
  5164. }
  5165. return _(B, F), B.prototype.getPointSpline = function(j, w, x) {
  5166. var f = w.plotX || 0, l = w.plotY || 0, T = j[x - 1];
  5167. if (x = j[x + 1], T && !T.isNull && T.doCurve !== !1 && !w.isCliff && x && !x.isNull && x.doCurve !== !1 && !w.isCliff) {
  5168. j = T.plotY || 0;
  5169. var O = x.plotX || 0;
  5170. x = x.plotY || 0;
  5171. var R = 0, k = (1.5 * f + (T.plotX || 0)) / 2.5, b = (1.5 * l + j) / 2.5;
  5172. O = (1.5 * f + O) / 2.5;
  5173. var S = (1.5 * l + x) / 2.5;
  5174. O !== k && (R = (S - b) * (O - f) / (O - k) + l - S), b += R, S += R, b > j && b > l ? (b = Math.max(j, l), S = 2 * l - b) : b < j && b < l && (b = Math.min(j, l), S = 2 * l - b), S > x && S > l ? (S = Math.max(x, l), b = 2 * l - S) : S < x && S < l && (S = Math.min(x, l), b = 2 * l - S), w.rightContX = O, w.rightContY = S;
  5175. }
  5176. return w = ["C", V(T.rightContX, T.plotX, 0), V(T.rightContY, T.plotY, 0), V(k, f, 0), V(b, l, 0), f, l], T.rightContX = T.rightContY = void 0, w;
  5177. }, B.defaultOptions = G(U.defaultOptions), B;
  5178. }(U), y.registerSeriesType("spline", N), N;
  5179. }), C(
  5180. o,
  5181. "Series/AreaSpline/AreaSplineSeries.js",
  5182. [o["Series/Area/AreaSeries.js"], o["Series/Spline/SplineSeries.js"], o["Core/Legend/LegendSymbol.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]],
  5183. function(y, N, _, U, G) {
  5184. var V = this && this.__extends || function() {
  5185. var w = function(x, f) {
  5186. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, T) {
  5187. l.__proto__ = T;
  5188. } || function(l, T) {
  5189. for (var O in T)
  5190. T.hasOwnProperty(O) && (l[O] = T[O]);
  5191. }, w(x, f);
  5192. };
  5193. return function(x, f) {
  5194. function l() {
  5195. this.constructor = x;
  5196. }
  5197. w(x, f), x.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
  5198. };
  5199. }(), F = y.prototype, B = G.extend, j = G.merge;
  5200. return G = function(w) {
  5201. function x() {
  5202. var f = w !== null && w.apply(this, arguments) || this;
  5203. return f.data = void 0, f.points = void 0, f.options = void 0, f;
  5204. }
  5205. return V(x, w), x.defaultOptions = j(N.defaultOptions, y.defaultOptions), x;
  5206. }(N), B(G.prototype, { getGraphPath: F.getGraphPath, getStackPoints: F.getStackPoints, drawGraph: F.drawGraph, drawLegendSymbol: _.drawRectangle }), U.registerSeriesType("areaspline", G), G;
  5207. }
  5208. ), C(o, "Series/Column/ColumnSeries.js", [
  5209. o["Core/Animation/AnimationUtilities.js"],
  5210. o["Core/Color/Color.js"],
  5211. o["Core/Globals.js"],
  5212. o["Core/Legend/LegendSymbol.js"],
  5213. o["Core/Series/Series.js"],
  5214. o["Core/Series/SeriesRegistry.js"],
  5215. o["Core/Utilities.js"]
  5216. ], function(y, N, _, U, G, V, F) {
  5217. var B = this && this.__extends || function() {
  5218. var c = function(u, i) {
  5219. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, a) {
  5220. p.__proto__ = a;
  5221. } || function(p, a) {
  5222. for (var t in a)
  5223. a.hasOwnProperty(t) && (p[t] = a[t]);
  5224. }, c(u, i);
  5225. };
  5226. return function(u, i) {
  5227. function p() {
  5228. this.constructor = u;
  5229. }
  5230. c(u, i), u.prototype = i === null ? Object.create(i) : (p.prototype = i.prototype, new p());
  5231. };
  5232. }(), j = y.animObject, w = N.parse, x = _.hasTouch;
  5233. y = _.noop;
  5234. var f = F.clamp, l = F.css, T = F.defined, O = F.extend, R = F.fireEvent, k = F.isArray, b = F.isNumber, S = F.merge, v = F.pick, h = F.objectEach;
  5235. return F = function(c) {
  5236. function u() {
  5237. var i = c !== null && c.apply(this, arguments) || this;
  5238. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  5239. }
  5240. return B(u, c), u.prototype.animate = function(i) {
  5241. var p = this, a = this.yAxis, t = p.options, s = this.chart.inverted, n = {}, P = s ? "translateX" : "translateY";
  5242. if (i)
  5243. n.scaleY = 1e-3, i = f(a.toPixels(t.threshold), a.pos, a.pos + a.len), s ? n.translateX = i - a.len : n.translateY = i, p.clipBox && p.setClip(), p.group.attr(n);
  5244. else {
  5245. var D = Number(p.group.attr(P));
  5246. p.group.animate({ scaleY: 1 }, O(j(p.options.animation), { step: function(I, W) {
  5247. p.group && (n[P] = D + W.pos * (a.pos - D), p.group.attr(n));
  5248. } }));
  5249. }
  5250. }, u.prototype.init = function(i, p) {
  5251. c.prototype.init.apply(this, arguments);
  5252. var a = this;
  5253. i = a.chart, i.hasRendered && i.series.forEach(function(t) {
  5254. t.type === a.type && (t.isDirty = !0);
  5255. });
  5256. }, u.prototype.getColumnMetrics = function() {
  5257. var i = this, p = i.options, a = i.xAxis, t = i.yAxis, s = a.options.reversedStacks;
  5258. s = a.reversed && !s || !a.reversed && s;
  5259. var n = {}, P, D = 0;
  5260. p.grouping === !1 ? D = 1 : i.chart.series.forEach(function(X) {
  5261. var g = X.yAxis, m = X.options;
  5262. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  5263. if (m.stacking && m.stacking !== "group") {
  5264. P = X.stackKey, typeof n[P] > "u" && (n[P] = D++);
  5265. var L = n[P];
  5266. } else
  5267. m.grouping !== !1 && (L = D++);
  5268. X.columnIndex = L;
  5269. }
  5270. });
  5271. var I = Math.min(Math.abs(a.transA) * (a.ordinal && a.ordinal.slope || p.pointRange || a.closestPointRange || a.tickInterval || 1), a.len), W = I * p.groupPadding, E = (I - 2 * W) / (D || 1);
  5272. return p = Math.min(p.maxPointWidth || a.len, v(p.pointWidth, E * (1 - 2 * p.pointPadding))), i.columnMetrics = { width: p, offset: (E - p) / 2 + (W + ((i.columnIndex || 0) + (s ? 1 : 0)) * E - I / 2) * (s ? -1 : 1), paddedWidth: E, columnCount: D }, i.columnMetrics;
  5273. }, u.prototype.crispCol = function(i, p, a, t) {
  5274. var s = this.chart, n = this.borderWidth, P = -(n % 2 ? 0.5 : 0);
  5275. return n = n % 2 ? 0.5 : 1, s.inverted && s.renderer.isVML && (n += 1), this.options.crisp && (a = Math.round(i + a) + P, i = Math.round(i) + P, a -= i), t = Math.round(p + t) + n, P = 0.5 >= Math.abs(p) && 0.5 < t, p = Math.round(p) + n, t -= p, P && t && (--p, t += 1), { x: i, y: p, width: a, height: t };
  5276. }, u.prototype.adjustForMissingColumns = function(i, p, a, t) {
  5277. var s = this, n = this.options.stacking;
  5278. if (!a.isNull && 1 < t.columnCount) {
  5279. var P = 0, D = 0;
  5280. h(this.yAxis.stacking && this.yAxis.stacking.stacks, function(I) {
  5281. if (typeof a.x == "number" && (I = I[a.x.toString()])) {
  5282. var W = I.points[s.index], E = I.total;
  5283. n ? (W && (P = D), I.hasValidPoints && D++) : k(W) && (P = W[1], D = E || 0);
  5284. }
  5285. }), i = (a.plotX || 0) + ((D - 1) * t.paddedWidth + p) / 2 - p - P * t.paddedWidth;
  5286. }
  5287. return i;
  5288. }, u.prototype.translate = function() {
  5289. var i = this, p = i.chart, a = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  5290. t = i.borderWidth = v(a.borderWidth, t ? 0 : 1);
  5291. var s = i.xAxis, n = i.yAxis, P = a.threshold, D = i.translatedThreshold = n.getThreshold(P), I = v(a.minPointLength, 5), W = i.getColumnMetrics(), E = W.width, X = i.pointXOffset = W.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(E, 1 + 2 * t);
  5292. p.inverted && (D -= 0.5), a.pointPadding && (L = Math.ceil(L)), G.prototype.translate.apply(i), i.points.forEach(function(z) {
  5293. var $ = v(z.yBottom, D), Q = 999 + Math.abs($), A = z.plotX || 0;
  5294. Q = f(z.plotY, -Q, n.len + Q);
  5295. var H = Math.min(Q, $), Y = Math.max(Q, $) - H, Z = E, q = A + X, it = L;
  5296. I && Math.abs(Y) < I && (Y = I, A = !n.reversed && !z.negative || n.reversed && z.negative, b(P) && b(m) && z.y === P && m <= P && (n.min || 0) < P && (g !== m || (n.max || 0) <= P) && (A = !A), H = Math.abs(H - D) > I ? $ - I : D - (A ? I : 0)), T(z.options.pointWidth) && (Z = it = Math.ceil(z.options.pointWidth), q -= Math.round((Z - E) / 2)), a.centerInCategory && (q = i.adjustForMissingColumns(q, Z, z, W)), z.barX = q, z.pointWidth = Z, z.tooltipPos = p.inverted ? [f(n.len + n.pos - p.plotLeft - Q, n.pos - p.plotLeft, n.len + n.pos - p.plotLeft), s.len + s.pos - p.plotTop - q - it / 2, Y] : [s.left - p.plotLeft + q + it / 2, f(Q + n.pos - p.plotTop, n.pos - p.plotTop, n.len + n.pos - p.plotTop), Y], z.shapeType = i.pointClass.prototype.shapeType || "rect", z.shapeArgs = i.crispCol.apply(i, z.isNull ? [q, D, it, 0] : [q, H, it, Y]);
  5297. });
  5298. }, u.prototype.drawGraph = function() {
  5299. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  5300. }, u.prototype.pointAttribs = function(i, p) {
  5301. var a = this.options, t = this.pointAttrToOptions || {}, s = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", P = i && i.color || this.color, D = i && i[s] || a[s] || P;
  5302. t = i && i.options.dashStyle || a.dashStyle;
  5303. var I = i && i[n] || a[n] || this[n] || 0, W = v(i && i.opacity, a.opacity, 1);
  5304. if (i && this.zones.length) {
  5305. var E = i.getZone();
  5306. P = i.options.color || E && (E.color || i.nonZonedColor) || this.color, E && (D = E.borderColor || D, t = E.dashStyle || t, I = E.borderWidth || I);
  5307. }
  5308. return p && i && (i = S(a.states[p], i.options.states && i.options.states[p] || {}), p = i.brightness, P = i.color || typeof p < "u" && w(P).brighten(i.brightness).get() || P, D = i[s] || D, I = i[n] || I, t = i.dashStyle || t, W = v(i.opacity, W)), s = { fill: P, stroke: D, "stroke-width": I, opacity: W }, t && (s.dashstyle = t), s;
  5309. }, u.prototype.drawPoints = function() {
  5310. var i = this, p = this.chart, a = i.options, t = p.renderer, s = a.animationLimit || 250, n;
  5311. i.points.forEach(function(P) {
  5312. var D = P.graphic, I = !!D, W = D && p.pointCount < s ? "animate" : "attr";
  5313. b(P.plotY) && P.y !== null ? (n = P.shapeArgs, D && P.hasNewShapeType() && (D = D.destroy()), i.enabledDataSorting && (P.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), D || (P.graphic = D = t[P.shapeType](n).add(P.group || i.group)) && i.enabledDataSorting && p.hasRendered && p.pointCount < s && (D.attr({ x: P.startXPos }), I = !0, W = "animate"), D && I && D[W](S(n)), a.borderRadius && D[W]({ r: a.borderRadius }), p.styledMode || D[W](i.pointAttribs(P, P.selected && "select")).shadow(P.allowShadow !== !1 && a.shadow, null, a.stacking && !a.borderRadius), D && (D.addClass(P.getClassName(), !0), D.attr({ visibility: P.visible ? "inherit" : "hidden" }))) : D && (P.graphic = D.destroy());
  5314. });
  5315. }, u.prototype.drawTracker = function() {
  5316. var i = this, p = i.chart, a = p.pointer, t = function(n) {
  5317. var P = a.getPointFromEvent(n);
  5318. typeof P < "u" && (a.isDirectTouch = !0, P.onMouseOver(n));
  5319. }, s;
  5320. i.points.forEach(function(n) {
  5321. s = k(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), s.forEach(function(P) {
  5322. P.div ? P.div.point = n : P.element.point = n;
  5323. });
  5324. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  5325. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(P) {
  5326. a.onTrackerMouseOut(P);
  5327. }), x && i[n].on(
  5328. "touchstart",
  5329. t
  5330. ), !p.styledMode && i.options.cursor && i[n].css(l).css({ cursor: i.options.cursor }));
  5331. }), i._hasTracking = !0), R(this, "afterDrawTracker");
  5332. }, u.prototype.remove = function() {
  5333. var i = this, p = i.chart;
  5334. p.hasRendered && p.series.forEach(function(a) {
  5335. a.type === i.type && (a.isDirty = !0);
  5336. }), G.prototype.remove.apply(i, arguments);
  5337. }, u.defaultOptions = S(G.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  5338. hover: { halo: !1, brightness: 0.1 },
  5339. select: { color: "#cccccc", borderColor: "#000000" }
  5340. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), u;
  5341. }(G), O(F.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: U.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), V.registerSeriesType("column", F), F;
  5342. }), C(o, "Core/Series/DataLabel.js", [
  5343. o["Core/Animation/AnimationUtilities.js"],
  5344. o["Core/FormatUtilities.js"],
  5345. o["Core/Utilities.js"]
  5346. ], function(y, N, _) {
  5347. var U = y.getDeferredAnimation, G = N.format, V = _.defined, F = _.extend, B = _.fireEvent, j = _.isArray, w = _.merge, x = _.objectEach, f = _.pick, l = _.splat, T;
  5348. return function(O) {
  5349. function R(u, i, p, a, t) {
  5350. var s = this, n = this.chart, P = this.isCartesian && n.inverted, D = this.enabledDataSorting, I = f(u.dlBox && u.dlBox.centerX, u.plotX, -9999), W = f(u.plotY, -9999), E = i.getBBox(), X = p.rotation, g = p.align, m = n.isInsidePlot(I, Math.round(W), { inverted: P, paneCoordinates: !0, series: s }), L = function(A) {
  5351. D && s.xAxis && !z && s.setDataLabelStartPos(
  5352. u,
  5353. i,
  5354. t,
  5355. m,
  5356. A
  5357. );
  5358. }, z = f(p.overflow, D ? "none" : "justify") === "justify", $ = this.visible && u.visible !== !1 && (u.series.forceDL || D && !z || m || f(p.inside, !!this.options.stacking) && a && n.isInsidePlot(I, P ? a.x + 1 : a.y + a.height - 1, { inverted: P, paneCoordinates: !0, series: s }));
  5359. if ($) {
  5360. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : p.style.fontSize, i).b;
  5361. a = F({ x: P ? this.yAxis.len - W : I, y: Math.round(P ? this.xAxis.len - I : W), width: 0, height: 0 }, a), F(p, { width: E.width, height: E.height }), X ? (z = !1, I = n.renderer.rotCorr(Q, X), I = { x: a.x + (p.x || 0) + a.width / 2 + I.x, y: a.y + (p.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[p.verticalAlign] * a.height }, L(I), i[t ? "attr" : "animate"](I).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? I.y -= L ? E.height : 0 : g === "center" ? (I.x -= E.width / 2, I.y -= E.height / 2) : g === "right" && (I.x -= E.width, I.y -= L ? 0 : E.height), i.placed = !0, i.alignAttr = I) : (L(a), i.align(p, void 0, a), I = i.alignAttr), z && 0 <= a.height ? this.justifyDataLabel(i, p, I, E, a, t) : f(p.crop, !0) && ($ = n.isInsidePlot(I.x, I.y, { paneCoordinates: !0, series: s }) && n.isInsidePlot(I.x + E.width, I.y + E.height, {
  5362. paneCoordinates: !0,
  5363. series: s
  5364. })), p.shape && !X && i[t ? "attr" : "animate"]({ anchorX: P ? n.plotWidth - u.plotY : u.plotX, anchorY: P ? n.plotHeight - u.plotX : u.plotY });
  5365. }
  5366. t && D && (i.placed = !1), $ || D && !z || (i.hide(!0), i.placed = !1);
  5367. }
  5368. function k(u, i) {
  5369. var p = i.filter;
  5370. return p ? (i = p.operator, u = u[p.property], p = p.value, i === ">" && u > p || i === "<" && u < p || i === ">=" && u >= p || i === "<=" && u <= p || i === "==" && u == p || i === "===" && u === p) : !0;
  5371. }
  5372. function b() {
  5373. var u = this, i = u.chart, p = u.options, a = u.points, t = u.hasRendered || 0, s = i.renderer, n = p.dataLabels, P, D = n.animation;
  5374. if (D = n.defer ? U(
  5375. i,
  5376. D,
  5377. u
  5378. ) : { defer: 0, duration: 0 }, n = v(v(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[u.type] && i.options.plotOptions[u.type].dataLabels), n), B(this, "drawDataLabels"), j(n) || n.enabled || u._hasPointLabels) {
  5379. var I = u.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  5380. I.attr({ opacity: +t }), !t && (t = u.dataLabelsGroup) && (u.visible && I.show(!0), t[p.animation ? "animate" : "attr"]({ opacity: 1 }, D)), a.forEach(function(W) {
  5381. P = l(v(n, W.dlOptions || W.options && W.options.dataLabels)), P.forEach(function(E, X) {
  5382. var g = E.enabled && (!W.isNull || W.dataLabelOnNull) && k(W, E), m = W.connectors ? W.connectors[X] : W.connector, L = W.dataLabels ? W.dataLabels[X] : W.dataLabel, z = f(E.distance, W.labelDistance), $ = !L;
  5383. if (g) {
  5384. var Q = W.getLabelConfig(), A = f(E[W.formatPrefix + "Format"], E.format);
  5385. Q = V(A) ? G(A, Q, i) : (E[W.formatPrefix + "Formatter"] || E.formatter).call(Q, E), A = E.style;
  5386. var H = E.rotation;
  5387. i.styledMode || (A.color = f(E.color, A.color, u.color, "#000000"), A.color === "contrast" ? (W.contrastColor = s.getContrast(W.color || u.color), A.color = !V(z) && E.inside || 0 > z || p.stacking ? W.contrastColor : "#000000") : delete W.contrastColor, p.cursor && (A.cursor = p.cursor));
  5388. var Y = { r: E.borderRadius || 0, rotation: H, padding: E.padding, zIndex: 1 };
  5389. i.styledMode || (Y.fill = E.backgroundColor, Y.stroke = E.borderColor, Y["stroke-width"] = E.borderWidth), x(Y, function(Z, q) {
  5390. typeof Z > "u" && delete Y[q];
  5391. });
  5392. }
  5393. !L || g && V(Q) && !!L.div == !!E.useHTML || (W.dataLabel = L = W.dataLabel && W.dataLabel.destroy(), W.dataLabels && (W.dataLabels.length === 1 ? delete W.dataLabels : delete W.dataLabels[X]), X || delete W.dataLabel, m && (W.connector = W.connector.destroy(), W.connectors && (W.connectors.length === 1 ? delete W.connectors : delete W.connectors[X]))), g && V(Q) && (L ? Y.text = Q : (W.dataLabels = W.dataLabels || [], L = W.dataLabels[X] = H ? s.text(Q, 0, -9999, E.useHTML).addClass("highcharts-data-label") : s.label(Q, 0, -9999, E.shape, null, null, E.useHTML, null, "data-label"), X || (W.dataLabel = L), L.addClass(" highcharts-data-label-color-" + W.colorIndex + " " + (E.className || "") + (E.useHTML ? " highcharts-tracker" : ""))), L.options = E, L.attr(Y), i.styledMode || L.css(A).shadow(E.shadow), L.added || L.add(I), E.textPath && !E.useHTML && (L.setTextPath(W.getDataLabelPath && W.getDataLabelPath(L) || W.graphic, E.textPath), W.dataLabelPath && !E.textPath.enabled && (W.dataLabelPath = W.dataLabelPath.destroy())), u.alignDataLabel(W, L, E, null, $));
  5394. });
  5395. });
  5396. }
  5397. B(this, "afterDrawDataLabels");
  5398. }
  5399. function S(u, i, p, a, t, s) {
  5400. var n = this.chart, P = i.align, D = i.verticalAlign, I = u.box ? 0 : u.padding || 0, W = i.x;
  5401. W = W === void 0 ? 0 : W;
  5402. var E = i.y;
  5403. E = E === void 0 ? 0 : E;
  5404. var X = (p.x || 0) + I;
  5405. if (0 > X) {
  5406. P === "right" && 0 <= W ? (i.align = "left", i.inside = !0) : W -= X;
  5407. var g = !0;
  5408. }
  5409. return X = (p.x || 0) + a.width - I, X > n.plotWidth && (P === "left" && 0 >= W ? (i.align = "right", i.inside = !0) : W += n.plotWidth - X, g = !0), X = p.y + I, 0 > X && (D === "bottom" && 0 <= E ? (i.verticalAlign = "top", i.inside = !0) : E -= X, g = !0), X = (p.y || 0) + a.height - I, X > n.plotHeight && (D === "top" && 0 >= E ? (i.verticalAlign = "bottom", i.inside = !0) : E += n.plotHeight - X, g = !0), g && (i.x = W, i.y = E, u.placed = !s, u.align(i, void 0, t)), g;
  5410. }
  5411. function v(u, i) {
  5412. var p = [], a;
  5413. if (j(u) && !j(i))
  5414. p = u.map(function(t) {
  5415. return w(t, i);
  5416. });
  5417. else if (j(i) && !j(u))
  5418. p = i.map(function(t) {
  5419. return w(u, t);
  5420. });
  5421. else if (j(u) || j(i))
  5422. for (a = Math.max(u.length, i.length); a--; )
  5423. p[a] = w(u[a], i[a]);
  5424. else
  5425. p = w(u, i);
  5426. return p;
  5427. }
  5428. function h(u, i, p, a, t) {
  5429. var s = this.chart, n = s.inverted, P = this.xAxis, D = P.reversed, I = n ? i.height / 2 : i.width / 2;
  5430. u = (u = u.pointWidth) ? u / 2 : 0, i.startXPos = n ? t.x : D ? -I - u : P.width - I + u, i.startYPos = n ? D ? this.yAxis.height - I + u : -I - u : t.y, a ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  5431. { opacity: 0 },
  5432. void 0,
  5433. i.hide
  5434. ), s.hasRendered && (p && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  5435. }
  5436. var c = [];
  5437. O.compose = function(u) {
  5438. if (c.indexOf(u) === -1) {
  5439. var i = u.prototype;
  5440. c.push(u), i.alignDataLabel = R, i.drawDataLabels = b, i.justifyDataLabel = S, i.setDataLabelStartPos = h;
  5441. }
  5442. };
  5443. }(T || (T = {})), T;
  5444. }), C(o, "Series/Column/ColumnDataLabel.js", [o["Core/Series/DataLabel.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  5445. var U = N.series, G = _.merge, V = _.pick, F;
  5446. return function(B) {
  5447. function j(x, f, l, T, O) {
  5448. var R = this.chart.inverted, k = x.series, b = (k.xAxis ? k.xAxis.len : this.chart.plotSizeX) || 0;
  5449. k = (k.yAxis ? k.yAxis.len : this.chart.plotSizeY) || 0;
  5450. var S = x.dlBox || x.shapeArgs, v = V(x.below, x.plotY > V(this.translatedThreshold, k)), h = V(l.inside, !!this.options.stacking);
  5451. S && (T = G(S), 0 > T.y && (T.height += T.y, T.y = 0), S = T.y + T.height - k, 0 < S && S < T.height && (T.height -= S), R && (T = { x: k - T.y - T.height, y: b - T.x - T.width, width: T.height, height: T.width }), h || (R ? (T.x += v ? 0 : T.width, T.width = 0) : (T.y += v ? T.height : 0, T.height = 0))), l.align = V(l.align, !R || h ? "center" : v ? "right" : "left"), l.verticalAlign = V(l.verticalAlign, R || h ? "middle" : v ? "top" : "bottom"), U.prototype.alignDataLabel.call(this, x, f, l, T, O), l.inside && x.contrastColor && f.css({ color: x.contrastColor });
  5452. }
  5453. var w = [];
  5454. B.compose = function(x) {
  5455. y.compose(U), w.indexOf(x) === -1 && (w.push(x), x.prototype.alignDataLabel = j);
  5456. };
  5457. }(F || (F = {})), F;
  5458. }), C(o, "Series/Bar/BarSeries.js", [o["Series/Column/ColumnSeries.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  5459. var U = this && this.__extends || function() {
  5460. var F = function(B, j) {
  5461. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  5462. w.__proto__ = x;
  5463. } || function(w, x) {
  5464. for (var f in x)
  5465. x.hasOwnProperty(f) && (w[f] = x[f]);
  5466. }, F(B, j);
  5467. };
  5468. return function(B, j) {
  5469. function w() {
  5470. this.constructor = B;
  5471. }
  5472. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  5473. };
  5474. }(), G = _.extend, V = _.merge;
  5475. return _ = function(F) {
  5476. function B() {
  5477. var j = F !== null && F.apply(this, arguments) || this;
  5478. return j.data = void 0, j.options = void 0, j.points = void 0, j;
  5479. }
  5480. return U(B, F), B.defaultOptions = V(
  5481. y.defaultOptions,
  5482. {}
  5483. ), B;
  5484. }(y), G(_.prototype, { inverted: !0 }), N.registerSeriesType("bar", _), _;
  5485. }), C(o, "Series/Scatter/ScatterSeries.js", [o["Series/Column/ColumnSeries.js"], o["Series/Line/LineSeries.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _, U) {
  5486. var G = this && this.__extends || function() {
  5487. var j = function(w, x) {
  5488. return j = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, l) {
  5489. f.__proto__ = l;
  5490. } || function(f, l) {
  5491. for (var T in l)
  5492. l.hasOwnProperty(T) && (f[T] = l[T]);
  5493. }, j(w, x);
  5494. };
  5495. return function(w, x) {
  5496. function f() {
  5497. this.constructor = w;
  5498. }
  5499. j(w, x), w.prototype = x === null ? Object.create(x) : (f.prototype = x.prototype, new f());
  5500. };
  5501. }(), V = U.addEvent, F = U.extend, B = U.merge;
  5502. return U = function(j) {
  5503. function w() {
  5504. var x = j !== null && j.apply(this, arguments) || this;
  5505. return x.data = void 0, x.options = void 0, x.points = void 0, x;
  5506. }
  5507. return G(w, j), w.prototype.applyJitter = function() {
  5508. var x = this, f = this.options.jitter, l = this.points.length;
  5509. f && this.points.forEach(function(T, O) {
  5510. ["x", "y"].forEach(function(R, k) {
  5511. var b = "plot" + R.toUpperCase();
  5512. if (f[R] && !T.isNull) {
  5513. var S = x[R + "Axis"], v = f[R] * S.transA;
  5514. if (S && !S.isLog) {
  5515. var h = Math.max(0, T[b] - v);
  5516. S = Math.min(S.len, T[b] + v), k = 1e4 * Math.sin(O + k * l), T[b] = h + (S - h) * (k - Math.floor(k)), R === "x" && (T.clientX = T.plotX);
  5517. }
  5518. }
  5519. });
  5520. });
  5521. }, w.prototype.drawGraph = function() {
  5522. this.options.lineWidth ? j.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  5523. }, w.defaultOptions = B(N.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  5524. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  5525. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  5526. } }), w;
  5527. }(N), F(U.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), V(U, "afterTranslate", function() {
  5528. this.applyJitter();
  5529. }), _.registerSeriesType("scatter", U), U;
  5530. }), C(o, "Series/CenteredUtilities.js", [o["Core/Globals.js"], o["Core/Series/Series.js"], o["Core/Utilities.js"]], function(y, N, _) {
  5531. var U = y.deg2rad, G = _.isNumber, V = _.pick, F = _.relativeLength, B;
  5532. return function(j) {
  5533. j.getCenter = function() {
  5534. var w = this.options, x = this.chart, f = 2 * (w.slicedOffset || 0), l = x.plotWidth - 2 * f, T = x.plotHeight - 2 * f, O = w.center, R = Math.min(l, T), k = w.size, b = w.innerSize || 0;
  5535. for (typeof k == "string" && (k = parseFloat(k)), typeof b == "string" && (b = parseFloat(b)), w = [V(O[0], "50%"), V(O[1], "50%"), V(k && 0 > k ? void 0 : w.size, "100%"), V(b && 0 > b ? void 0 : w.innerSize || 0, "0%")], !x.angular || this instanceof N || (w[3] = 0), O = 0; 4 > O; ++O)
  5536. k = w[O], x = 2 > O || O === 2 && /%$/.test(k), w[O] = F(k, [l, T, R, w[2]][O]) + (x ? f : 0);
  5537. return w[3] > w[2] && (w[3] = w[2]), w;
  5538. }, j.getStartAndEndRadians = function(w, x) {
  5539. return w = G(w) ? w : 0, x = G(x) && x > w && 360 > x - w ? x : w + 360, { start: U * (w + -90), end: U * (x + -90) };
  5540. };
  5541. }(B || (B = {})), B;
  5542. }), C(o, "Series/Pie/PiePoint.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Series/Point.js"], o["Core/Utilities.js"]], function(y, N, _) {
  5543. var U = this && this.__extends || function() {
  5544. var x = function(f, l) {
  5545. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, O) {
  5546. T.__proto__ = O;
  5547. } || function(T, O) {
  5548. for (var R in O)
  5549. O.hasOwnProperty(R) && (T[R] = O[R]);
  5550. }, x(f, l);
  5551. };
  5552. return function(f, l) {
  5553. function T() {
  5554. this.constructor = f;
  5555. }
  5556. x(f, l), f.prototype = l === null ? Object.create(l) : (T.prototype = l.prototype, new T());
  5557. };
  5558. }(), G = y.setAnimation, V = _.addEvent, F = _.defined;
  5559. y = _.extend;
  5560. var B = _.isNumber, j = _.pick, w = _.relativeLength;
  5561. return N = function(x) {
  5562. function f() {
  5563. var l = x !== null && x.apply(this, arguments) || this;
  5564. return l.labelDistance = void 0, l.options = void 0, l.series = void 0, l;
  5565. }
  5566. return U(f, x), f.prototype.getConnectorPath = function() {
  5567. var l = this.labelPosition, T = this.series.options.dataLabels, O = this.connectorShapes, R = T.connectorShape;
  5568. return O[R] && (R = O[R]), R.call(this, { x: l.final.x, y: l.final.y, alignment: l.alignment }, l.connectorPosition, T);
  5569. }, f.prototype.getTranslate = function() {
  5570. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  5571. }, f.prototype.haloPath = function(l) {
  5572. var T = this.shapeArgs;
  5573. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(T.x, T.y, T.r + l, T.r + l, { innerR: T.r - 1, start: T.start, end: T.end });
  5574. }, f.prototype.init = function() {
  5575. var l = this;
  5576. x.prototype.init.apply(
  5577. this,
  5578. arguments
  5579. ), this.name = j(this.name, "Slice");
  5580. var T = function(O) {
  5581. l.slice(O.type === "select");
  5582. };
  5583. return V(this, "select", T), V(this, "unselect", T), this;
  5584. }, f.prototype.isValid = function() {
  5585. return B(this.y) && 0 <= this.y;
  5586. }, f.prototype.setVisible = function(l, T) {
  5587. var O = this, R = this.series, k = R.chart, b = R.options.ignoreHiddenPoint;
  5588. T = j(T, b), l !== this.visible && (this.visible = this.options.visible = l = typeof l > "u" ? !this.visible : l, R.options.data[R.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(S) {
  5589. O[S] && O[S][l ? "show" : "hide"](l);
  5590. }), this.legendItem && k.legend.colorizeItem(this, l), l || this.state !== "hover" || this.setState(""), b && (R.isDirty = !0), T && k.redraw());
  5591. }, f.prototype.slice = function(l, T, O) {
  5592. var R = this.series;
  5593. G(O, R.chart), j(T, !0), this.sliced = this.options.sliced = F(l) ? l : !this.sliced, R.options.data[R.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  5594. }, f;
  5595. }(N), y(N.prototype, { connectorShapes: { fixedOffset: function(x, f, l) {
  5596. var T = f.breakAt;
  5597. return f = f.touchingSliceAt, [["M", x.x, x.y], l.softConnector ? ["C", x.x + (x.alignment === "left" ? -5 : 5), x.y, 2 * T.x - f.x, 2 * T.y - f.y, T.x, T.y] : ["L", T.x, T.y], ["L", f.x, f.y]];
  5598. }, straight: function(x, f) {
  5599. return f = f.touchingSliceAt, [["M", x.x, x.y], ["L", f.x, f.y]];
  5600. }, crookedLine: function(x, f, l) {
  5601. f = f.touchingSliceAt;
  5602. var T = this.series, O = T.center[0], R = T.chart.plotWidth, k = T.chart.plotLeft;
  5603. T = x.alignment;
  5604. var b = this.shapeArgs.r;
  5605. return l = w(l.crookDistance, 1), R = T === "left" ? O + b + (R + k - O - b) * (1 - l) : k + (O - b) * l, l = ["L", R, x.y], O = !0, (T === "left" ? R > x.x || R < f.x : R < x.x || R > f.x) && (O = !1), x = [["M", x.x, x.y]], O && x.push(l), x.push(["L", f.x, f.y]), x;
  5606. } } }), N;
  5607. }), C(o, "Series/Pie/PieSeries.js", [o["Series/CenteredUtilities.js"], o["Series/Column/ColumnSeries.js"], o["Core/Globals.js"], o["Core/Legend/LegendSymbol.js"], o["Series/Pie/PiePoint.js"], o["Core/Series/Series.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Renderer/SVG/Symbols.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V, F, B, j) {
  5608. var w = this && this.__extends || function() {
  5609. var b = function(S, v) {
  5610. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, c) {
  5611. h.__proto__ = c;
  5612. } || function(h, c) {
  5613. for (var u in c)
  5614. c.hasOwnProperty(u) && (h[u] = c[u]);
  5615. }, b(S, v);
  5616. };
  5617. return function(S, v) {
  5618. function h() {
  5619. this.constructor = S;
  5620. }
  5621. b(S, v), S.prototype = v === null ? Object.create(v) : (h.prototype = v.prototype, new h());
  5622. };
  5623. }(), x = y.getStartAndEndRadians;
  5624. _ = _.noop;
  5625. var f = j.clamp, l = j.extend, T = j.fireEvent, O = j.merge, R = j.pick, k = j.relativeLength;
  5626. return j = function(b) {
  5627. function S() {
  5628. var v = b !== null && b.apply(this, arguments) || this;
  5629. return v.center = void 0, v.data = void 0, v.maxLabelDistance = void 0, v.options = void 0, v.points = void 0, v;
  5630. }
  5631. return w(S, b), S.prototype.animate = function(v) {
  5632. var h = this, c = h.points, u = h.startAngleRad;
  5633. v || c.forEach(function(i) {
  5634. var p = i.graphic, a = i.shapeArgs;
  5635. p && a && (p.attr({ r: R(i.startR, h.center && h.center[3] / 2), start: u, end: u }), p.animate({ r: a.r, start: a.start, end: a.end }, h.options.animation));
  5636. });
  5637. }, S.prototype.drawEmpty = function() {
  5638. var v = this.startAngleRad, h = this.endAngleRad, c = this.options;
  5639. if (this.total === 0 && this.center) {
  5640. var u = this.center[0], i = this.center[1];
  5641. this.graph || (this.graph = this.chart.renderer.arc(u, i, this.center[1] / 2, 0, v, h).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: B.arc(u, i, this.center[2] / 2, 0, { start: v, end: h, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  5642. } else
  5643. this.graph && (this.graph = this.graph.destroy());
  5644. }, S.prototype.drawPoints = function() {
  5645. var v = this.chart.renderer;
  5646. this.points.forEach(function(h) {
  5647. h.graphic && h.hasNewShapeType() && (h.graphic = h.graphic.destroy()), h.graphic || (h.graphic = v[h.shapeType](h.shapeArgs).add(h.series.group), h.delayedRendering = !0);
  5648. });
  5649. }, S.prototype.generatePoints = function() {
  5650. b.prototype.generatePoints.call(this), this.updateTotals();
  5651. }, S.prototype.getX = function(v, h, c) {
  5652. var u = this.center, i = this.radii ? this.radii[c.index] || 0 : u[2] / 2;
  5653. return v = Math.asin(f((v - u[1]) / (i + c.labelDistance), -1, 1)), u[0] + (h ? -1 : 1) * Math.cos(v) * (i + c.labelDistance) + (0 < c.labelDistance ? (h ? -1 : 1) * this.options.dataLabels.padding : 0);
  5654. }, S.prototype.hasData = function() {
  5655. return !!this.processedXData.length;
  5656. }, S.prototype.redrawPoints = function() {
  5657. var v = this, h = v.chart, c = h.renderer, u = v.options.shadow, i, p, a, t;
  5658. this.drawEmpty(), !u || v.shadowGroup || h.styledMode || (v.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(v.group)), v.points.forEach(function(s) {
  5659. var n = {};
  5660. if (p = s.graphic, !s.isNull && p) {
  5661. var P = void 0;
  5662. t = s.shapeArgs, i = s.getTranslate(), h.styledMode || (P = s.shadowGroup, u && !P && (P = s.shadowGroup = c.g("shadow").add(v.shadowGroup)), P && P.attr(i), a = v.pointAttribs(s, s.selected && "select")), s.delayedRendering ? (p.setRadialReference(v.center).attr(t).attr(i), h.styledMode || p.attr(a).attr({ "stroke-linejoin": "round" }).shadow(u, P), s.delayedRendering = !1) : (p.setRadialReference(v.center), h.styledMode || O(!0, n, a), O(!0, n, t, i), p.animate(n)), p.attr({ visibility: s.visible ? "inherit" : "hidden" }), p.addClass(s.getClassName(), !0);
  5663. } else
  5664. p && (s.graphic = p.destroy());
  5665. });
  5666. }, S.prototype.sortByAngle = function(v, h) {
  5667. v.sort(function(c, u) {
  5668. return typeof c.angle < "u" && (u.angle - c.angle) * h;
  5669. });
  5670. }, S.prototype.translate = function(v) {
  5671. this.generatePoints();
  5672. var h = this.options, c = h.slicedOffset, u = c + (h.borderWidth || 0), i = x(h.startAngle, h.endAngle), p = this.startAngleRad = i.start;
  5673. i = (this.endAngleRad = i.end) - p;
  5674. var a = this.points, t = h.dataLabels.distance;
  5675. h = h.ignoreHiddenPoint;
  5676. var s = a.length, n, P = 0;
  5677. for (v || (this.center = v = this.getCenter()), n = 0; n < s; n++) {
  5678. var D = a[n], I = p + P * i;
  5679. !D.isValid() || h && !D.visible || (P += D.percentage / 100);
  5680. var W = p + P * i, E = { x: v[0], y: v[1], r: v[2] / 2, innerR: v[3] / 2, start: Math.round(1e3 * I) / 1e3, end: Math.round(1e3 * W) / 1e3 };
  5681. D.shapeType = "arc", D.shapeArgs = E, D.labelDistance = R(D.options.dataLabels && D.options.dataLabels.distance, t), D.labelDistance = k(D.labelDistance, E.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, D.labelDistance), W = (W + I) / 2, W > 1.5 * Math.PI ? W -= 2 * Math.PI : W < -Math.PI / 2 && (W += 2 * Math.PI), D.slicedTranslation = { translateX: Math.round(Math.cos(W) * c), translateY: Math.round(Math.sin(W) * c) }, E = Math.cos(W) * v[2] / 2;
  5682. var X = Math.sin(W) * v[2] / 2;
  5683. D.tooltipPos = [v[0] + 0.7 * E, v[1] + 0.7 * X], D.half = W < -Math.PI / 2 || W > Math.PI / 2 ? 1 : 0, D.angle = W, I = Math.min(u, D.labelDistance / 5), D.labelPosition = { natural: { x: v[0] + E + Math.cos(W) * D.labelDistance, y: v[1] + X + Math.sin(W) * D.labelDistance }, final: {}, alignment: 0 > D.labelDistance ? "center" : D.half ? "right" : "left", connectorPosition: { breakAt: { x: v[0] + E + Math.cos(W) * I, y: v[1] + X + Math.sin(W) * I }, touchingSliceAt: { x: v[0] + E, y: v[1] + X } } };
  5684. }
  5685. T(this, "afterTranslate");
  5686. }, S.prototype.updateTotals = function() {
  5687. var v = this.points, h = v.length, c = this.options.ignoreHiddenPoint, u, i = 0;
  5688. for (u = 0; u < h; u++) {
  5689. var p = v[u];
  5690. !p.isValid() || c && !p.visible || (i += p.y);
  5691. }
  5692. for (this.total = i, u = 0; u < h; u++)
  5693. p = v[u], p.percentage = 0 < i && (p.visible || !c) ? p.y / i * 100 : 0, p.total = i;
  5694. }, S.defaultOptions = O(V.defaultOptions, {
  5695. center: [null, null],
  5696. clip: !1,
  5697. colorByPoint: !0,
  5698. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  5699. return this.point.isNull ? void 0 : this.point.name;
  5700. }, softConnector: !0, x: 0 },
  5701. fillColor: void 0,
  5702. ignoreHiddenPoint: !0,
  5703. inactiveOtherPoints: !0,
  5704. legendType: "point",
  5705. marker: null,
  5706. size: null,
  5707. showInLegend: !1,
  5708. slicedOffset: 10,
  5709. stickyTracking: !1,
  5710. tooltip: { followPointer: !0 },
  5711. borderColor: "#ffffff",
  5712. borderWidth: 1,
  5713. lineWidth: void 0,
  5714. states: { hover: { brightness: 0.1 } }
  5715. }), S;
  5716. }(V), l(j.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: U.drawRectangle, drawTracker: N.prototype.drawTracker, getCenter: y.getCenter, getSymbol: _, isCartesian: !1, noSharedTooltip: !0, pointAttribs: N.prototype.pointAttribs, pointClass: G, requireSorting: !1, searchPoint: _, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("pie", j), j;
  5717. }), C(o, "Series/Pie/PieDataLabel.js", [
  5718. o["Core/Series/DataLabel.js"],
  5719. o["Core/Globals.js"],
  5720. o["Core/Renderer/RendererUtilities.js"],
  5721. o["Core/Series/SeriesRegistry.js"],
  5722. o["Core/Utilities.js"]
  5723. ], function(y, N, _, U, G) {
  5724. var V = N.noop, F = _.distribute, B = U.series, j = G.arrayMax, w = G.clamp, x = G.defined, f = G.merge, l = G.pick, T = G.relativeLength, O;
  5725. return function(R) {
  5726. function k() {
  5727. var c = this, u = c.data, i = c.chart, p = c.options.dataLabels || {}, a = p.connectorPadding, t = i.plotWidth, s = i.plotHeight, n = i.plotLeft, P = Math.round(i.chartWidth / 3), D = c.center, I = D[2] / 2, W = D[1], E = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, z, $, Q, A, H, Y, Z, q, it, et;
  5728. c.visible && (p.enabled || c._hasPointLabels) && (u.forEach(function(nt) {
  5729. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  5730. }), B.prototype.drawDataLabels.apply(c), u.forEach(function(nt) {
  5731. nt.dataLabel && (nt.visible ? (E[nt.half].push(nt), nt.dataLabel._pos = null, !x(p.style.width) && !x(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > P && (nt.dataLabel.css({ width: Math.round(0.7 * P) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  5732. }), E.forEach(function(nt, rt) {
  5733. var ct = nt.length, gt = [], dt;
  5734. if (ct) {
  5735. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  5736. var ht = Math.max(0, W - I - c.maxLabelDistance), at = Math.min(W + I + c.maxLabelDistance, i.plotHeight);
  5737. nt.forEach(function(J) {
  5738. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, W - I - J.labelDistance), J.bottom = Math.min(W + I + J.labelDistance, i.plotHeight), dt = J.dataLabel.getBBox().height || 21, J.distributeBox = { target: J.labelPosition.natural.y - J.top + dt / 2, size: dt, rank: J.y }, gt.push(J.distributeBox));
  5739. }), ht = at + dt - ht, F(gt, ht, ht / 5);
  5740. }
  5741. for (it = 0; it < ct; it++) {
  5742. if (m = nt[it], A = m.labelPosition, $ = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", Z = ht = A.natural.y, gt && x(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (H = m.distributeBox.size, Z = g.radialDistributionY(m))), delete m.positionIndex, p.justify)
  5743. Y = g.justify(m, I, D);
  5744. else
  5745. switch (p.alignTo) {
  5746. case "connectors":
  5747. Y = g.alignToConnectors(nt, rt, t, n);
  5748. break;
  5749. case "plotEdges":
  5750. Y = g.alignToPlotEdges($, rt, t, n);
  5751. break;
  5752. default:
  5753. Y = g.radialDistributionX(c, m, Z, ht);
  5754. }
  5755. $._attr = { visibility: q, align: A.alignment }, et = m.options.dataLabels || {}, $._pos = { x: Y + l(et.x, p.x) + ({ left: a, right: -a }[A.alignment] || 0), y: Z + l(et.y, p.y) - 10 }, A.final.x = Y, A.final.y = Z, l(p.crop, !0) && (Q = $.getBBox().width, ht = null, Y - Q < a && rt === 1 ? (ht = Math.round(Q - Y + a), X[3] = Math.max(ht, X[3])) : Y + Q > t - a && rt === 0 && (ht = Math.round(Y + Q - t + a), X[1] = Math.max(ht, X[1])), 0 > Z - H / 2 ? X[0] = Math.max(Math.round(-Z + H / 2), X[0]) : Z + H / 2 > s && (X[2] = Math.max(Math.round(Z + H / 2 - s), X[2])), $.sideOverflow = ht);
  5756. }
  5757. }
  5758. }), j(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  5759. if (et = f(p, nt.options.dataLabels), L = l(et.connectorWidth, 1)) {
  5760. var rt;
  5761. z = nt.connector, ($ = nt.dataLabel) && $._pos && nt.visible && 0 < nt.labelDistance ? (q = $._attr.visibility, (rt = !z) && (nt.connector = z = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || z.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), z[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), z.attr("visibility", q)) : z && (nt.connector = z.destroy());
  5762. }
  5763. }));
  5764. }
  5765. function b() {
  5766. this.points.forEach(function(c) {
  5767. var u = c.dataLabel, i;
  5768. u && c.visible && ((i = u._pos) ? (u.sideOverflow && (u._attr.width = Math.max(u.getBBox().width - u.sideOverflow, 0), u.css({ width: u._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), u.shortened = !0), u.attr(u._attr), u[u.moved ? "animate" : "attr"](i), u.moved = !0) : u && u.attr({ y: -9999 })), delete c.distributeBox;
  5769. }, this);
  5770. }
  5771. function S(c) {
  5772. var u = this.center, i = this.options, p = i.center, a = i.minSize || 80, t = i.size !== null;
  5773. if (!t) {
  5774. if (p[0] !== null)
  5775. var s = Math.max(u[2] - Math.max(c[1], c[3]), a);
  5776. else
  5777. s = Math.max(u[2] - c[1] - c[3], a), u[0] += (c[3] - c[1]) / 2;
  5778. p[1] !== null ? s = w(s, a, u[2] - Math.max(c[0], c[2])) : (s = w(s, a, u[2] - c[0] - c[2]), u[1] += (c[0] - c[2]) / 2), s < u[2] ? (u[2] = s, u[3] = Math.min(T(i.innerSize || 0, s), s), this.translate(u), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  5779. }
  5780. return t;
  5781. }
  5782. var v = [], h = { radialDistributionY: function(c) {
  5783. return c.top + c.distributeBox.pos;
  5784. }, radialDistributionX: function(c, u, i, p) {
  5785. return c.getX(i < u.top + 2 || i > u.bottom - 2 ? p : i, u.half, u);
  5786. }, justify: function(c, u, i) {
  5787. return i[0] + (c.half ? -1 : 1) * (u + c.labelDistance);
  5788. }, alignToPlotEdges: function(c, u, i, p) {
  5789. return c = c.getBBox().width, u ? c + p : i - c - p;
  5790. }, alignToConnectors: function(c, u, i, p) {
  5791. var a = 0, t;
  5792. return c.forEach(function(s) {
  5793. t = s.dataLabel.getBBox().width, t > a && (a = t);
  5794. }), u ? a + p : i - a - p;
  5795. } };
  5796. R.compose = function(c) {
  5797. y.compose(B), v.indexOf(c) === -1 && (v.push(c), c = c.prototype, c.dataLabelPositioners = h, c.alignDataLabel = V, c.drawDataLabels = k, c.placeDataLabels = b, c.verifyDataLabelOverflow = S);
  5798. };
  5799. }(O || (O = {})), O;
  5800. }), C(o, "Extensions/OverlappingDataLabels.js", [o["Core/Chart/Chart.js"], o["Core/Utilities.js"]], function(y, N) {
  5801. function _(w, x) {
  5802. var f = !1;
  5803. if (w) {
  5804. var l = w.newOpacity;
  5805. w.oldOpacity !== l && (w.alignAttr && w.placed ? (w[l ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), f = !0, w.alignAttr.opacity = l, w[w.isOld ? "animate" : "attr"](w.alignAttr, null, function() {
  5806. x.styledMode || w.css({ pointerEvents: l ? "auto" : "none" });
  5807. }), G(x, "afterHideOverlappingLabel")) : w.attr({ opacity: l })), w.isOld = !0;
  5808. }
  5809. return f;
  5810. }
  5811. var U = N.addEvent, G = N.fireEvent, V = N.isArray, F = N.isNumber, B = N.objectEach, j = N.pick;
  5812. U(y, "render", function() {
  5813. var w = this, x = [];
  5814. (this.labelCollectors || []).forEach(function(f) {
  5815. x = x.concat(f());
  5816. }), (this.yAxis || []).forEach(function(f) {
  5817. f.stacking && f.options.stackLabels && !f.options.stackLabels.allowOverlap && B(f.stacking.stacks, function(l) {
  5818. B(l, function(T) {
  5819. T.label && T.label.visibility !== "hidden" && x.push(T.label);
  5820. });
  5821. });
  5822. }), (this.series || []).forEach(function(f) {
  5823. var l = f.options.dataLabels;
  5824. f.visible && (l.enabled !== !1 || f._hasPointLabels) && (l = function(T) {
  5825. return T.forEach(function(O) {
  5826. O.visible && (V(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(R) {
  5827. var k = R.options;
  5828. R.labelrank = j(k.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), k.allowOverlap ? (R.oldOpacity = R.opacity, R.newOpacity = 1, _(R, w)) : x.push(R);
  5829. });
  5830. });
  5831. }, l(f.nodes || []), l(f.points));
  5832. }), this.hideOverlappingLabels(x);
  5833. }), y.prototype.hideOverlappingLabels = function(w) {
  5834. var x = this, f = w.length, l = x.renderer, T, O, R, k = !1, b = function(h) {
  5835. var c, u = h.box ? 0 : h.padding || 0, i = c = 0, p;
  5836. if (h && (!h.alignAttr || h.placed)) {
  5837. var a = h.alignAttr || { x: h.attr("x"), y: h.attr("y") }, t = h.parentGroup;
  5838. h.width || (c = h.getBBox(), h.width = c.width, h.height = c.height, c = l.fontMetrics(null, h.element).h);
  5839. var s = h.width - 2 * u;
  5840. return (p = { left: "0", center: "0.5", right: "1" }[h.alignValue]) ? i = +p * s : F(h.x) && Math.round(h.x) !== h.translateX && (i = h.x - h.translateX), { x: a.x + (t.translateX || 0) + u - (i || 0), y: a.y + (t.translateY || 0) + u - c, width: h.width - 2 * u, height: h.height - 2 * u };
  5841. }
  5842. };
  5843. for (O = 0; O < f; O++)
  5844. (T = w[O]) && (T.oldOpacity = T.opacity, T.newOpacity = 1, T.absoluteBox = b(T));
  5845. for (w.sort(function(h, c) {
  5846. return (c.labelrank || 0) - (h.labelrank || 0);
  5847. }), O = 0; O < f; O++) {
  5848. var S = (b = w[O]) && b.absoluteBox;
  5849. for (T = O + 1; T < f; ++T) {
  5850. var v = (R = w[T]) && R.absoluteBox;
  5851. !S || !v || b === R || b.newOpacity === 0 || R.newOpacity === 0 || v.x >= S.x + S.width || v.x + v.width <= S.x || v.y >= S.y + S.height || v.y + v.height <= S.y || ((b.labelrank < R.labelrank ? b : R).newOpacity = 0);
  5852. }
  5853. }
  5854. w.forEach(function(h) {
  5855. _(h, x) && (k = !0);
  5856. }), k && G(x, "afterHideAllOverlappingLabels");
  5857. };
  5858. }), C(
  5859. o,
  5860. "Core/Responsive.js",
  5861. [o["Core/Utilities.js"]],
  5862. function(y) {
  5863. var N = y.extend, _ = y.find, U = y.isArray, G = y.isObject, V = y.merge, F = y.objectEach, B = y.pick, j = y.splat, w = y.uniqueKey, x;
  5864. return function(f) {
  5865. var l = [];
  5866. f.compose = function(O) {
  5867. return l.indexOf(O) === -1 && (l.push(O), N(O.prototype, T.prototype)), O;
  5868. };
  5869. var T = function() {
  5870. function O() {
  5871. }
  5872. return O.prototype.currentOptions = function(R) {
  5873. function k(v, h, c, u) {
  5874. var i;
  5875. F(v, function(p, a) {
  5876. if (!u && -1 < b.collectionsWithUpdate.indexOf(a) && h[a])
  5877. for (p = j(p), c[a] = [], i = 0; i < Math.max(p.length, h[a].length); i++)
  5878. h[a][i] && (p[i] === void 0 ? c[a][i] = h[a][i] : (c[a][i] = {}, k(p[i], h[a][i], c[a][i], u + 1)));
  5879. else
  5880. G(p) ? (c[a] = U(p) ? [] : {}, k(p, h[a] || {}, c[a], u + 1)) : c[a] = typeof h[a] > "u" ? null : h[a];
  5881. });
  5882. }
  5883. var b = this, S = {};
  5884. return k(R, this.options, S, 0), S;
  5885. }, O.prototype.matchResponsiveRule = function(R, k) {
  5886. var b = R.condition;
  5887. (b.callback || function() {
  5888. return this.chartWidth <= B(b.maxWidth, Number.MAX_VALUE) && this.chartHeight <= B(b.maxHeight, Number.MAX_VALUE) && this.chartWidth >= B(b.minWidth, 0) && this.chartHeight >= B(b.minHeight, 0);
  5889. }).call(this) && k.push(R._id);
  5890. }, O.prototype.setResponsive = function(R, k) {
  5891. var b = this, S = this.options.responsive, v = this.currentResponsive, h = [];
  5892. !k && S && S.rules && S.rules.forEach(function(c) {
  5893. typeof c._id > "u" && (c._id = w()), b.matchResponsiveRule(c, h);
  5894. }, this), k = V.apply(void 0, h.map(function(c) {
  5895. return _((S || {}).rules || [], function(u) {
  5896. return u._id === c;
  5897. });
  5898. }).map(function(c) {
  5899. return c && c.chartOptions;
  5900. })), k.isResponsiveOptions = !0, h = h.toString() || void 0, h !== (v && v.ruleIds) && (v && this.update(v.undoOptions, R, !0), h ? (v = this.currentOptions(k), v.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: h, mergedOptions: k, undoOptions: v }, this.update(k, R, !0)) : this.currentResponsive = void 0);
  5901. }, O;
  5902. }();
  5903. }(x || (x = {})), x;
  5904. }
  5905. ), C(o, "masters/highcharts.src.js", [
  5906. o["Core/Globals.js"],
  5907. o["Core/Utilities.js"],
  5908. o["Core/DefaultOptions.js"],
  5909. o["Core/Animation/Fx.js"],
  5910. o["Core/Animation/AnimationUtilities.js"],
  5911. o["Core/Renderer/HTML/AST.js"],
  5912. o["Core/FormatUtilities.js"],
  5913. o["Core/Renderer/RendererUtilities.js"],
  5914. o["Core/Renderer/SVG/SVGElement.js"],
  5915. o["Core/Renderer/SVG/SVGRenderer.js"],
  5916. o["Core/Renderer/HTML/HTMLElement.js"],
  5917. o["Core/Renderer/HTML/HTMLRenderer.js"],
  5918. o["Core/Axis/Axis.js"],
  5919. o["Core/Axis/DateTimeAxis.js"],
  5920. o["Core/Axis/LogarithmicAxis.js"],
  5921. o["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  5922. o["Core/Axis/Tick.js"],
  5923. o["Core/Tooltip.js"],
  5924. o["Core/Series/Point.js"],
  5925. o["Core/Pointer.js"],
  5926. o["Core/MSPointer.js"],
  5927. o["Core/Legend/Legend.js"],
  5928. o["Core/Chart/Chart.js"],
  5929. o["Core/Series/Series.js"],
  5930. o["Core/Series/SeriesRegistry.js"],
  5931. o["Series/Column/ColumnSeries.js"],
  5932. o["Series/Column/ColumnDataLabel.js"],
  5933. o["Series/Pie/PieSeries.js"],
  5934. o["Series/Pie/PieDataLabel.js"],
  5935. o["Core/Series/DataLabel.js"],
  5936. o["Core/Responsive.js"],
  5937. o["Core/Color/Color.js"],
  5938. o["Core/Time.js"]
  5939. ], function(y, N, _, U, G, V, F, B, j, w, x, f, l, T, O, R, k, b, S, v, h, c, u, i, p, a, t, s, n, P, D, I, W) {
  5940. return y.animate = G.animate, y.animObject = G.animObject, y.getDeferredAnimation = G.getDeferredAnimation, y.setAnimation = G.setAnimation, y.stop = G.stop, y.timers = U.timers, y.AST = V, y.Axis = l, y.Chart = u, y.chart = u.chart, y.Fx = U, y.Legend = c, y.PlotLineOrBand = R, y.Point = S, y.Pointer = h.isRequired() ? h : v, y.Series = i, y.SVGElement = j, y.SVGRenderer = w, y.Tick = k, y.Time = W, y.Tooltip = b, y.Color = I, y.color = I.parse, f.compose(w), x.compose(j), y.defaultOptions = _.defaultOptions, y.getOptions = _.getOptions, y.time = _.defaultTime, y.setOptions = _.setOptions, y.dateFormat = F.dateFormat, y.format = F.format, y.numberFormat = F.numberFormat, y.addEvent = N.addEvent, y.arrayMax = N.arrayMax, y.arrayMin = N.arrayMin, y.attr = N.attr, y.clearTimeout = N.clearTimeout, y.correctFloat = N.correctFloat, y.createElement = N.createElement, y.css = N.css, y.defined = N.defined, y.destroyObjectProperties = N.destroyObjectProperties, y.discardElement = N.discardElement, y.distribute = B.distribute, y.erase = N.erase, y.error = N.error, y.extend = N.extend, y.extendClass = N.extendClass, y.find = N.find, y.fireEvent = N.fireEvent, y.getMagnitude = N.getMagnitude, y.getStyle = N.getStyle, y.inArray = N.inArray, y.isArray = N.isArray, y.isClass = N.isClass, y.isDOMElement = N.isDOMElement, y.isFunction = N.isFunction, y.isNumber = N.isNumber, y.isObject = N.isObject, y.isString = N.isString, y.keys = N.keys, y.merge = N.merge, y.normalizeTickInterval = N.normalizeTickInterval, y.objectEach = N.objectEach, y.offset = N.offset, y.pad = N.pad, y.pick = N.pick, y.pInt = N.pInt, y.relativeLength = N.relativeLength, y.removeEvent = N.removeEvent, y.seriesType = p.seriesType, y.splat = N.splat, y.stableSort = N.stableSort, y.syncTimeout = N.syncTimeout, y.timeUnits = N.timeUnits, y.uniqueKey = N.uniqueKey, y.useSerialIds = N.useSerialIds, y.wrap = N.wrap, t.compose(a), P.compose(i), T.compose(l), O.compose(l), n.compose(s), R.compose(l), D.compose(u), y;
  5941. }), C(o, "Core/Axis/OrdinalAxis.js", [
  5942. o["Core/Axis/Axis.js"],
  5943. o["Core/Globals.js"],
  5944. o["Core/Series/Series.js"],
  5945. o["Core/Utilities.js"]
  5946. ], function(y, N, _, U) {
  5947. var G = U.addEvent, V = U.correctFloat, F = U.css, B = U.defined, j = U.error, w = U.pick, x = U.timeUnits, f = [], l;
  5948. return function(T) {
  5949. function O(t, s, n, P, D, I, W) {
  5950. D === void 0 && (D = []), I === void 0 && (I = 0);
  5951. var E = {}, X = this.options.tickPixelInterval, g = this.chart.time, m = [], L, z, $ = 0, Q = [], A = -Number.MAX_VALUE;
  5952. if (!this.options.ordinal && !this.options.breaks || !D || 3 > D.length || typeof s > "u")
  5953. return g.getTimeTicks.apply(g, arguments);
  5954. var H = D.length;
  5955. for (L = 0; L < H; L++) {
  5956. var Y = L && D[L - 1] > n;
  5957. if (D[L] < s && ($ = L), L === H - 1 || D[L + 1] - D[L] > 5 * I || Y) {
  5958. if (D[L] > A) {
  5959. for (z = g.getTimeTicks(t, D[$], D[L], P); z.length && z[0] <= A; )
  5960. z.shift();
  5961. z.length && (A = z[z.length - 1]), m.push(Q.length), Q = Q.concat(z);
  5962. }
  5963. $ = L + 1;
  5964. }
  5965. if (Y)
  5966. break;
  5967. }
  5968. if (z) {
  5969. if (z = z.info, W && z.unitRange <= x.hour) {
  5970. for (L = Q.length - 1, $ = 1; $ < L; $++)
  5971. if (g.dateFormat("%d", Q[$]) !== g.dateFormat("%d", Q[$ - 1])) {
  5972. E[Q[$]] = "day";
  5973. var Z = !0;
  5974. }
  5975. Z && (E[Q[0]] = "day"), z.higherRanks = E;
  5976. }
  5977. z.segmentStarts = m, Q.info = z;
  5978. } else
  5979. j(12, !1, this.chart);
  5980. if (W && B(X)) {
  5981. for (z = Q.length, g = [], $ = [], L = void 0, Z = z; Z--; )
  5982. m = this.translate(Q[Z]), L && ($[Z] = L - m), g[Z] = L = m;
  5983. for ($.sort(), $ = $[Math.floor($.length / 2)], $ < 0.6 * X && ($ = null), Z = Q[z - 1] > n ? z - 1 : z, L = void 0; Z--; )
  5984. m = g[Z], z = Math.abs(L - m), L && z < 0.8 * X && ($ === null || z < 0.8 * $) ? (E[Q[Z]] && !E[Q[Z + 1]] ? (z = Z + 1, L = m) : z = Z, Q.splice(z, 1)) : L = m;
  5985. }
  5986. return Q;
  5987. }
  5988. function R(t) {
  5989. var s = this.ordinal.positions;
  5990. if (!s)
  5991. return t;
  5992. var n = s.length - 1;
  5993. if (0 > t)
  5994. t = s[0];
  5995. else if (t > n)
  5996. t = s[n];
  5997. else {
  5998. n = Math.floor(t);
  5999. var P = t - n;
  6000. }
  6001. return typeof P < "u" && typeof s[n] < "u" ? s[n] + (P ? P * (s[n + 1] - s[n]) : 0) : t;
  6002. }
  6003. function k(t) {
  6004. var s = this.ordinal, n = s.positions;
  6005. if (!n)
  6006. return t;
  6007. var P = (t - (this.old ? this.old.min : this.min)) * (this.old ? this.old.transA : this.transA) + this.minPixelPadding;
  6008. if (0 < P && P < this.left + this.len || (s.extendedOrdinalPositions || (s.extendedOrdinalPositions = s.getExtendedPositions()), n = s.extendedOrdinalPositions), n && n.length) {
  6009. if (t = s.getIndexOfPoint(P, n), s = V(t % 1), 0 <= t && t < n.length - 1)
  6010. return n[Math.floor(t)] + s * (n[Math.ceil(t)] - n[Math.floor(t)]);
  6011. s = n.length, P = n[0], n = n[s - 1];
  6012. var D = (n - P) / (s - 1);
  6013. return 0 > t ? P + D * t : n + D * (t - s);
  6014. }
  6015. return t;
  6016. }
  6017. function b(t, s) {
  6018. var n = T.Additions.findIndexOf(t, s, !0);
  6019. return t[n] === s ? n : n + (s - t[n]) / (t[n + 1] - t[n]);
  6020. }
  6021. function S() {
  6022. this.ordinal || (this.ordinal = new T.Additions(this));
  6023. }
  6024. function v() {
  6025. this.isXAxis && B(this.options.overscroll) && this.max === this.dataMax && (!this.chart.mouseIsDown || this.isInternal) && (!this.eventArgs || this.eventArgs && this.eventArgs.trigger !== "navigator") && (this.max += this.options.overscroll, !this.isInternal && B(this.userMin) && (this.min += this.options.overscroll));
  6026. }
  6027. function h() {
  6028. this.horiz && !this.isDirty && (this.isDirty = this.isOrdinal && this.chart.navigator && !this.chart.navigator.adaptToUpdatedData);
  6029. }
  6030. function c() {
  6031. this.ordinal && (this.ordinal.beforeSetTickPositions(), this.tickInterval = this.ordinal.postProcessTickInterval(this.tickInterval));
  6032. }
  6033. function u(t) {
  6034. var s = this.xAxis[0], n = s.options.overscroll, P = t.originalEvent.chartX, D = this.options.chart.panning, I = !1;
  6035. if (D && D.type !== "y" && s.options.ordinal && s.series.length) {
  6036. var W = this.mouseDownX, E = s.getExtremes(), X = E.dataMax, g = E.min, m = E.max, L = this.hoverPoints, z = s.closestPointRange || s.ordinal && s.ordinal.overscrollPointsRange;
  6037. W = (W - P) / (s.translationSlope * (s.ordinal.slope || z)), z = { ordinal: { positions: s.ordinal.getExtendedPositions() } };
  6038. var $ = s.index2val, Q = s.val2lin, A = void 0, H = A = void 0, Y = void 0;
  6039. z.ordinal.positions ? 1 < Math.abs(W) && (L && L.forEach(function(Z) {
  6040. Z.setState();
  6041. }), 0 > W ? (H = z, Y = s.ordinal.positions ? s : z) : (H = s.ordinal.positions ? s : z, Y = z), A = Y.ordinal.positions, X > A[A.length - 1] && A.push(X), this.fixedRange = m - g, A = s.navigatorAxis.toFixedRange(void 0, void 0, $.apply(H, [Q.apply(H, [g, !0]) + W]), $.apply(Y, [Q.apply(Y, [m, !0]) + W])), A.min >= Math.min(
  6042. E.dataMin,
  6043. g
  6044. ) && A.max <= Math.max(X, m) + n && s.setExtremes(A.min, A.max, !0, !1, { trigger: "pan" }), this.mouseDownX = P, F(this.container, { cursor: "move" })) : I = !0;
  6045. } else
  6046. I = !0;
  6047. I || D && /y/.test(D.type) ? n && (s.max = s.dataMax + n) : t.preventDefault();
  6048. }
  6049. function i() {
  6050. var t = this.xAxis;
  6051. t && t.options.ordinal && (delete t.ordinal.index, delete t.ordinal.extendedOrdinalPositions);
  6052. }
  6053. function p(t, s) {
  6054. var n = this.ordinal, P = n.positions, D = n.slope, I = n.extendedOrdinalPositions;
  6055. if (!P)
  6056. return t;
  6057. var W = P.length;
  6058. if (P[0] <= t && P[W - 1] >= t)
  6059. t = b(P, t);
  6060. else {
  6061. if (I || (I = n.getExtendedPositions && n.getExtendedPositions(), n.extendedOrdinalPositions = I), !I || !I.length)
  6062. return t;
  6063. W = I.length, D || (D = (I[W - 1] - I[0]) / W), P = b(I, P[0]), t >= I[0] && t <= I[W - 1] ? t = b(I, t) - P : t < I[0] ? (t = I[0] - t, t = -P - t / D) : (t -= I[W - 1], t = t / D + W - P);
  6064. }
  6065. return s ? t : D * (t || 0) + n.offset;
  6066. }
  6067. T.compose = function(t, s, n) {
  6068. if (f.indexOf(t) === -1) {
  6069. f.push(t);
  6070. var P = t.prototype;
  6071. P.getTimeTicks = O, P.index2val = R, P.lin2val = k, P.val2lin = p, P.ordinal2lin = P.val2lin, G(t, "afterInit", S), G(t, "foundExtremes", v), G(t, "afterSetScale", h), G(t, "initialAxisTranslation", c);
  6072. }
  6073. return f.indexOf(n) === -1 && (f.push(n), G(n, "pan", u)), f.indexOf(s) === -1 && (f.push(s), G(s, "updatedData", i)), t;
  6074. };
  6075. var a = function() {
  6076. function t(s) {
  6077. this.index = {}, this.axis = s;
  6078. }
  6079. return t.prototype.beforeSetTickPositions = function() {
  6080. var s = this.axis, n = s.ordinal, P = s.getExtremes(), D = P.min, I = P.max, W = s.isXAxis && !!s.options.breaks;
  6081. P = s.options.ordinal;
  6082. var E = s.chart.options.chart.ignoreHiddenSeries, X, g, m = [], L = Number.MAX_VALUE, z = !1;
  6083. if (P || W) {
  6084. s.series.forEach(function(A, H) {
  6085. if (X = [], !(E && A.visible === !1 || A.takeOrdinalPosition === !1 && !W) && (m = m.concat(A.processedXData), $ = m.length, m.sort(function(Y, Z) {
  6086. return Y - Z;
  6087. }), L = Math.min(L, w(A.closestPointRange, L)), $)) {
  6088. for (H = 0; H < $ - 1; )
  6089. m[H] !== m[H + 1] && X.push(m[H + 1]), H++;
  6090. X[0] !== m[0] && X.unshift(m[0]), m = X;
  6091. }
  6092. });
  6093. var $ = m.length;
  6094. if (2 < $) {
  6095. var Q = m[1] - m[0];
  6096. for (g = $ - 1; g-- && !z; )
  6097. m[g + 1] - m[g] !== Q && (z = !0);
  6098. !s.options.keepOrdinalPadding && (m[0] - D > Q || I - m[m.length - 1] > Q) && (z = !0);
  6099. } else
  6100. s.options.overscroll && ($ === 2 ? L = m[1] - m[0] : $ === 1 ? (L = s.options.overscroll, m = [m[0], m[0] + L]) : L = n.overscrollPointsRange);
  6101. z || s.forceOrdinal ? (s.options.overscroll && (n.overscrollPointsRange = L, m = m.concat(n.getOverscrollPositions())), n.positions = m, Q = s.ordinal2lin(Math.max(D, m[0]), !0), g = Math.max(s.ordinal2lin(Math.min(I, m[m.length - 1]), !0), 1), n.slope = I = (I - D) / (g - Q), n.offset = D - Q * I) : (n.overscrollPointsRange = w(s.closestPointRange, n.overscrollPointsRange), n.positions = s.ordinal.slope = n.offset = void 0);
  6102. }
  6103. s.isOrdinal = P && z, n.groupIntervalFactor = null;
  6104. }, t.findIndexOf = function(s, n, P) {
  6105. for (var D = 0, I = s.length - 1, W; D < I; )
  6106. W = Math.ceil((D + I) / 2), s[W] <= n ? D = W : I = W - 1;
  6107. return s[D] === n || P ? D : -1;
  6108. }, t.prototype.getExtendedPositions = function() {
  6109. var s = this, n = s.axis, P = n.constructor.prototype, D = n.chart, I = n.series[0].currentDataGrouping, W = I ? I.count + I.unitName : "raw", E = n.options.overscroll, X = n.getExtremes(), g = void 0, m = s.index;
  6110. if (m || (m = s.index = {}), !m[W]) {
  6111. var L = {
  6112. series: [],
  6113. chart: D,
  6114. forceOrdinal: !1,
  6115. getExtremes: function() {
  6116. return { min: X.dataMin, max: X.dataMax + E };
  6117. },
  6118. getGroupPixelWidth: P.getGroupPixelWidth,
  6119. getTimeTicks: P.getTimeTicks,
  6120. options: { ordinal: !0 },
  6121. ordinal: { getGroupIntervalFactor: this.getGroupIntervalFactor },
  6122. ordinal2lin: P.ordinal2lin,
  6123. getIndexOfPoint: P.getIndexOfPoint,
  6124. val2lin: P.val2lin
  6125. };
  6126. L.ordinal.axis = L, n.series.forEach(function(z) {
  6127. g = { xAxis: L, xData: z.xData.slice(), chart: D, destroyGroupedData: N.noop, getProcessedData: _.prototype.getProcessedData, applyGrouping: _.prototype.applyGrouping }, g.xData = g.xData.concat(s.getOverscrollPositions()), g.options = { dataGrouping: I ? { firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", enabled: !0, forced: !0, approximation: "open", units: [[I.unitName, [I.count]]] } : { enabled: !1 } }, L.series.push(g), z.processData.apply(g);
  6128. }), g.closestPointRange !== g.basePointRange && g.currentDataGrouping && (L.forceOrdinal = !0), n.ordinal.beforeSetTickPositions.apply({ axis: L }), m[W] = L.ordinal.positions;
  6129. }
  6130. return m[W];
  6131. }, t.prototype.getGroupIntervalFactor = function(s, n, P) {
  6132. P = P.processedXData;
  6133. var D = P.length, I = [], W = this.groupIntervalFactor;
  6134. if (!W) {
  6135. for (W = 0; W < D - 1; W++)
  6136. I[W] = P[W + 1] - P[W];
  6137. I.sort(function(E, X) {
  6138. return E - X;
  6139. }), I = I[Math.floor(D / 2)], s = Math.max(s, P[0]), n = Math.min(n, P[D - 1]), this.groupIntervalFactor = W = D * I / (n - s);
  6140. }
  6141. return W;
  6142. }, t.prototype.getIndexOfPoint = function(s, n) {
  6143. var P = this.axis, D = this.positions ? this.positions[0] : 0, I = P.series[0].points && P.series[0].points[0] && P.series[0].points[0].plotX || P.minPixelPadding;
  6144. return 1 < P.series.length && P.series.forEach(function(W) {
  6145. W.points && B(W.points[0]) && B(W.points[0].plotX) && W.points[0].plotX < I && (I = W.points[0].plotX);
  6146. }), s = (s - I) / (P.translationSlope * (this.slope || P.closestPointRange || this.overscrollPointsRange)), t.findIndexOf(n, D) + s;
  6147. }, t.prototype.getOverscrollPositions = function() {
  6148. var s = this.axis, n = s.options.overscroll, P = this.overscrollPointsRange, D = [], I = s.dataMax;
  6149. if (B(P))
  6150. for (; I <= s.dataMax + n; )
  6151. I += P, D.push(I);
  6152. return D;
  6153. }, t.prototype.postProcessTickInterval = function(s) {
  6154. var n = this.axis, P = this.slope;
  6155. return P ? n.options.breaks ? n.closestPointRange || s : s / (P / n.closestPointRange) : s;
  6156. }, t;
  6157. }();
  6158. T.Additions = a;
  6159. }(l || (l = {})), l;
  6160. }), C(o, "Series/DataModifyComposition.js", [o["Core/Axis/Axis.js"], o["Core/Series/Point.js"], o["Core/Series/Series.js"], o["Core/Utilities.js"]], function(y, N, _, U) {
  6161. var G = N.prototype.tooltipFormatter, V = U.addEvent, F = U.arrayMax, B = U.arrayMin, j = U.correctFloat, w = U.defined, x = U.isArray, f = U.isNumber, l = U.isString, T = U.pick, O;
  6162. return function(R) {
  6163. function k(s, n, P) {
  6164. this.isXAxis || (this.series.forEach(function(D) {
  6165. s === "compare" && typeof n != "boolean" ? D.setCompare(n, !1) : s !== "cumulative" || l(n) || D.setCumulative(n, !1);
  6166. }), T(P, !0) && this.chart.redraw());
  6167. }
  6168. function b(s) {
  6169. var n = this, P = n.series.chart.numberFormatter, D = function(I) {
  6170. s = s.replace("{point." + I + "}", (0 < n[I] && I === "change" ? "+" : "") + P(n[I], T(n.series.tooltipOptions.changeDecimals, 2)));
  6171. };
  6172. return w(n.change) && D("change"), w(n.cumulativeSum) && D("cumulativeSum"), G.apply(this, [s]);
  6173. }
  6174. function S() {
  6175. var s = this.options.compare;
  6176. if (s === "percent" || s === "value" || this.options.cumulative) {
  6177. var n = new t(this);
  6178. s === "percent" || s === "value" ? n.initCompare(s) : n.initCumulative();
  6179. }
  6180. this.dataModify = n;
  6181. }
  6182. function v(s) {
  6183. s = s.dataExtremes;
  6184. var n = s.activeYData;
  6185. if (this.dataModify && s) {
  6186. var P = void 0;
  6187. this.options.compare ? P = [this.dataModify.modifyValue(s.dataMin), this.dataModify.modifyValue(s.dataMax)] : this.options.cumulative && x(n) && 2 <= n.length && (P = t.getCumulativeExtremes(n)), P && (s.dataMin = B(P), s.dataMax = F(P));
  6188. }
  6189. }
  6190. function h(s, n) {
  6191. this.options.compare = this.userOptions.compare = s, this.update({}, T(n, !0)), !this.dataModify || s !== "value" && s !== "percent" ? this.points.forEach(function(P) {
  6192. delete P.change;
  6193. }) : this.dataModify.initCompare(s);
  6194. }
  6195. function c() {
  6196. if (this.xAxis && this.processedYData && this.dataModify) {
  6197. var s = this.processedXData, n = this.processedYData, P = n.length, D = this.options.compareStart === !0 ? 0 : 1, I = -1, W;
  6198. for (this.pointArrayMap && (I = this.pointArrayMap.indexOf(this.options.pointValKey || this.pointValKey || "y")), W = 0; W < P - D; W++) {
  6199. var E = n[W] && -1 < I ? n[W][I] : n[W];
  6200. if (f(E) && E !== 0 && s[W + D] >= (this.xAxis.min || 0)) {
  6201. this.dataModify.compareValue = E;
  6202. break;
  6203. }
  6204. }
  6205. }
  6206. }
  6207. function u(s, n) {
  6208. this.setModifier("compare", s, n);
  6209. }
  6210. function i(s, n) {
  6211. s = T(s, !1), this.options.cumulative = this.userOptions.cumulative = s, this.update({}, T(n, !0)), this.dataModify ? this.dataModify.initCumulative() : this.points.forEach(function(P) {
  6212. delete P.cumulativeSum;
  6213. });
  6214. }
  6215. function p(s, n) {
  6216. this.setModifier("cumulative", s, n);
  6217. }
  6218. var a = [];
  6219. R.compose = function(s, n, P) {
  6220. if (a.indexOf(s) === -1) {
  6221. a.push(s);
  6222. var D = s.prototype;
  6223. D.setCompare = h, D.setCumulative = i, V(s, "afterInit", S), V(s, "afterGetExtremes", v), V(s, "afterProcessData", c);
  6224. }
  6225. return a.indexOf(n) === -1 && (a.push(n), n = n.prototype, n.setCompare = u, n.setModifier = k, n.setCumulative = p), a.indexOf(P) === -1 && (a.push(P), P.prototype.tooltipFormatter = b), s;
  6226. };
  6227. var t = function() {
  6228. function s(n) {
  6229. this.series = n;
  6230. }
  6231. return s.prototype.modifyValue = function() {
  6232. return 0;
  6233. }, s.getCumulativeExtremes = function(n) {
  6234. var P = 1 / 0, D = -1 / 0;
  6235. return n.reduce(function(I, W) {
  6236. return W = I + W, P = Math.min(P, W, I), D = Math.max(
  6237. D,
  6238. W,
  6239. I
  6240. ), W;
  6241. }), [P, D];
  6242. }, s.prototype.initCompare = function(n) {
  6243. this.modifyValue = function(P, D) {
  6244. P === null && (P = 0);
  6245. var I = this.compareValue;
  6246. return typeof P < "u" && typeof I < "u" ? (P = n === "value" ? P - I : P / I * 100 - (this.series.options.compareBase === 100 ? 0 : 100), typeof D < "u" && (D = this.series.points[D]) && (D.change = P), P) : 0;
  6247. };
  6248. }, s.prototype.initCumulative = function() {
  6249. this.modifyValue = function(n, P) {
  6250. if (n === null && (n = 0), n !== void 0 && P !== void 0) {
  6251. var D = 0 < P ? this.series.points[P - 1] : null;
  6252. return D && D.cumulativeSum && (n = j(D.cumulativeSum + n)), (P = this.series.points[P]) && (P.cumulativeSum = n), n;
  6253. }
  6254. return 0;
  6255. };
  6256. }, s;
  6257. }();
  6258. R.Additions = t;
  6259. }(O || (O = {})), O;
  6260. }), C(o, "Core/Axis/BrokenAxis.js", [o["Extensions/Stacking.js"], o["Core/Utilities.js"]], function(y, N) {
  6261. var _ = N.addEvent, U = N.find, G = N.fireEvent, V = N.isArray, F = N.isNumber, B = N.pick, j;
  6262. return function(w) {
  6263. function x() {
  6264. typeof this.brokenAxis < "u" && this.brokenAxis.setBreaks(this.options.breaks, !1);
  6265. }
  6266. function f() {
  6267. this.brokenAxis && this.brokenAxis.hasBreaks && (this.options.ordinal = !1);
  6268. }
  6269. function l() {
  6270. var h = this.brokenAxis;
  6271. if (h && h.hasBreaks) {
  6272. for (var c = this.tickPositions, u = this.tickPositions.info, i = [], p = 0; p < c.length; p++)
  6273. h.isInAnyBreak(c[p]) || i.push(c[p]);
  6274. this.tickPositions = i, this.tickPositions.info = u;
  6275. }
  6276. }
  6277. function T() {
  6278. this.brokenAxis || (this.brokenAxis = new v(this));
  6279. }
  6280. function O() {
  6281. var h = this.options.connectNulls, c = this.points, u = this.xAxis, i = this.yAxis;
  6282. if (this.isDirty)
  6283. for (var p = c.length; p--; ) {
  6284. var a = c[p], t = !(a.y === null && h === !1) && (u && u.brokenAxis && u.brokenAxis.isInAnyBreak(a.x, !0) || i && i.brokenAxis && i.brokenAxis.isInAnyBreak(a.y, !0));
  6285. a.visible = t ? !1 : a.options.visible !== !1;
  6286. }
  6287. }
  6288. function R() {
  6289. this.drawBreaks(this.xAxis, ["x"]), this.drawBreaks(this.yAxis, B(this.pointArrayMap, ["y"]));
  6290. }
  6291. function k(h, c) {
  6292. var u = this, i = u.points, p, a, t, s;
  6293. if (h && h.brokenAxis && h.brokenAxis.hasBreaks) {
  6294. var n = h.brokenAxis;
  6295. c.forEach(function(P) {
  6296. p = n && n.breakArray || [], a = h.isXAxis ? h.min : B(u.options.threshold, h.min), i.forEach(function(D) {
  6297. s = B(D["stack" + P.toUpperCase()], D[P]), p.forEach(function(I) {
  6298. F(a) && F(s) && (t = !1, a < I.from && s > I.to || a > I.from && s < I.from ? t = "pointBreak" : (a < I.from && s > I.from && s < I.to || a > I.from && s > I.to && s < I.from) && (t = "pointInBreak"), t && G(h, t, { point: D, brk: I }));
  6299. });
  6300. });
  6301. });
  6302. }
  6303. }
  6304. function b() {
  6305. var h = this.currentDataGrouping, c = h && h.gapSize;
  6306. h = this.points.slice();
  6307. var u = this.yAxis, i = this.options.gapSize, p = h.length - 1, a;
  6308. if (i && 0 < p)
  6309. for (this.options.gapUnit !== "value" && (i *= this.basePointRange), c && c > i && c >= this.basePointRange && (i = c), a = void 0; p--; )
  6310. a && a.visible !== !1 || (a = h[p + 1]), c = h[p], a.visible !== !1 && c.visible !== !1 && (a.x - c.x > i && (a = (c.x + a.x) / 2, h.splice(p + 1, 0, { isNull: !0, x: a }), u.stacking && this.options.stacking && (a = u.stacking.stacks[this.stackKey][a] = new y(u, u.options.stackLabels, !1, a, this.stack), a.total = 0)), a = c);
  6311. return this.getGraphPath(h);
  6312. }
  6313. var S = [];
  6314. w.compose = function(h, c) {
  6315. if (S.indexOf(h) === -1 && (S.push(h), h.keepProps.push("brokenAxis"), _(h, "init", T), _(h, "afterInit", x), _(h, "afterSetTickPositions", l), _(h, "afterSetOptions", f)), S.indexOf(c) === -1) {
  6316. S.push(c);
  6317. var u = c.prototype;
  6318. u.drawBreaks = k, u.gappedPath = b, _(c, "afterGeneratePoints", O), _(
  6319. c,
  6320. "afterRender",
  6321. R
  6322. );
  6323. }
  6324. return h;
  6325. };
  6326. var v = function() {
  6327. function h(c) {
  6328. this.hasBreaks = !1, this.axis = c;
  6329. }
  6330. return h.isInBreak = function(c, u) {
  6331. var i = c.repeat || 1 / 0, p = c.from, a = c.to - c.from;
  6332. return u = u >= p ? (u - p) % i : i - (p - u) % i, c.inclusive ? u <= a : u < a && u !== 0;
  6333. }, h.lin2Val = function(c) {
  6334. var u = this.brokenAxis;
  6335. if (u = u && u.breakArray, !u || !F(c))
  6336. return c;
  6337. var i;
  6338. for (i = 0; i < u.length; i++) {
  6339. var p = u[i];
  6340. if (p.from >= c)
  6341. break;
  6342. (p.to < c || h.isInBreak(p, c)) && (c += p.len);
  6343. }
  6344. return c;
  6345. }, h.val2Lin = function(c) {
  6346. var u = this.brokenAxis;
  6347. if (u = u && u.breakArray, !u || !F(c))
  6348. return c;
  6349. var i = c, p;
  6350. for (p = 0; p < u.length; p++) {
  6351. var a = u[p];
  6352. if (a.to <= c)
  6353. i -= a.len;
  6354. else {
  6355. if (a.from >= c)
  6356. break;
  6357. if (h.isInBreak(a, c)) {
  6358. i -= c - a.from;
  6359. break;
  6360. }
  6361. }
  6362. }
  6363. return i;
  6364. }, h.prototype.findBreakAt = function(c, u) {
  6365. return U(u, function(i) {
  6366. return i.from < c && c < i.to;
  6367. });
  6368. }, h.prototype.isInAnyBreak = function(c, u) {
  6369. var i = this.axis, p = i.options.breaks || [], a = p.length, t;
  6370. if (a && F(c)) {
  6371. for (; a--; )
  6372. if (h.isInBreak(p[a], c)) {
  6373. var s = !0;
  6374. t || (t = B(p[a].showPoints, !i.isXAxis));
  6375. }
  6376. var n = s && u ? s && !t : s;
  6377. }
  6378. return n;
  6379. }, h.prototype.setBreaks = function(c, u) {
  6380. var i = this, p = i.axis, a = V(c) && !!c.length;
  6381. p.isDirty = i.hasBreaks !== a, i.hasBreaks = a, p.options.breaks = p.userOptions.breaks = c, p.forceRedraw = !0, p.series.forEach(function(t) {
  6382. t.isDirty = !0;
  6383. }), a || p.val2lin !== h.val2Lin || (delete p.val2lin, delete p.lin2val), a && (p.userOptions.ordinal = !1, p.lin2val = h.lin2Val, p.val2lin = h.val2Lin, p.setExtremes = function(t, s, n, P, D) {
  6384. if (i.hasBreaks) {
  6385. for (var I = this.options.breaks || [], W; W = i.findBreakAt(t, I); )
  6386. t = W.to;
  6387. for (; W = i.findBreakAt(s, I); )
  6388. s = W.from;
  6389. s < t && (s = t);
  6390. }
  6391. p.constructor.prototype.setExtremes.call(this, t, s, n, P, D);
  6392. }, p.setAxisTranslation = function() {
  6393. if (p.constructor.prototype.setAxisTranslation.call(this), i.unitLength = void 0, i.hasBreaks) {
  6394. var t = p.options.breaks || [], s = [], n = [], P = B(p.pointRangePadding, 0), D = 0, I, W = p.userMin || p.min, E = p.userMax || p.max, X;
  6395. t.forEach(function(L) {
  6396. I = L.repeat || 1 / 0, F(W) && F(E) && (h.isInBreak(L, W) && (W += L.to % I - W % I), h.isInBreak(L, E) && (E -= E % I - L.from % I));
  6397. }), t.forEach(function(L) {
  6398. if (m = L.from, I = L.repeat || 1 / 0, F(W) && F(E)) {
  6399. for (; m - I > W; )
  6400. m -= I;
  6401. for (; m < W; )
  6402. m += I;
  6403. for (X = m; X < E; X += I)
  6404. s.push({ value: X, move: "in" }), s.push({ value: X + L.to - L.from, move: "out", size: L.breakSize });
  6405. }
  6406. }), s.sort(function(L, z) {
  6407. return L.value === z.value ? (L.move === "in" ? 0 : 1) - (z.move === "in" ? 0 : 1) : L.value - z.value;
  6408. });
  6409. var g = 0, m = W;
  6410. s.forEach(function(L) {
  6411. g += L.move === "in" ? 1 : -1, g === 1 && L.move === "in" && (m = L.value), g === 0 && F(m) && (n.push({ from: m, to: L.value, len: L.value - m - (L.size || 0) }), D += L.value - m - (L.size || 0));
  6412. }), i.breakArray = n, F(W) && F(E) && F(p.min) && (i.unitLength = E - W - D + P, G(p, "afterBreaks"), p.staticScale ? p.transA = p.staticScale : i.unitLength && (p.transA *= (E - p.min + P) / i.unitLength), P && (p.minPixelPadding = p.transA * (p.minPointOffset || 0)), p.min = W, p.max = E);
  6413. }
  6414. }), B(u, !0) && p.chart.redraw();
  6415. }, h;
  6416. }();
  6417. w.Additions = v;
  6418. }(j || (j = {})), j;
  6419. }), C(o, "masters/modules/broken-axis.src.js", [o["Core/Globals.js"], o["Core/Axis/BrokenAxis.js"]], function(y, N) {
  6420. N.compose(y.Axis, y.Series);
  6421. }), C(o, "Extensions/DataGrouping.js", [
  6422. o["Core/Axis/Axis.js"],
  6423. o["Core/Axis/DateTimeAxis.js"],
  6424. o["Core/FormatUtilities.js"],
  6425. o["Core/Globals.js"],
  6426. o["Core/Series/Point.js"],
  6427. o["Core/Series/Series.js"],
  6428. o["Core/Tooltip.js"],
  6429. o["Core/DefaultOptions.js"],
  6430. o["Core/Utilities.js"]
  6431. ], function(y, N, _, U, G, V, F, B, j) {
  6432. var w = _.format, x = V.prototype;
  6433. _ = j.addEvent;
  6434. var f = j.arrayMax, l = j.arrayMin, T = j.correctFloat, O = j.defined, R = j.error, k = j.extend, b = j.isNumber, S = j.merge, v = j.pick, h = U.approximations = {
  6435. sum: function(t) {
  6436. var s = t.length;
  6437. if (!s && t.hasNulls)
  6438. var n = null;
  6439. else if (s)
  6440. for (n = 0; s--; )
  6441. n += t[s];
  6442. return n;
  6443. },
  6444. average: function(t) {
  6445. var s = t.length;
  6446. return t = h.sum(t), b(t) && s && (t = T(t / s)), t;
  6447. },
  6448. averages: function() {
  6449. var t = [];
  6450. return [].forEach.call(arguments, function(s) {
  6451. t.push(h.average(s));
  6452. }), typeof t[0] > "u" ? void 0 : t;
  6453. },
  6454. open: function(t) {
  6455. return t.length ? t[0] : t.hasNulls ? null : void 0;
  6456. },
  6457. high: function(t) {
  6458. return t.length ? f(t) : t.hasNulls ? null : void 0;
  6459. },
  6460. low: function(t) {
  6461. return t.length ? l(t) : t.hasNulls ? null : void 0;
  6462. },
  6463. close: function(t) {
  6464. return t.length ? t[t.length - 1] : t.hasNulls ? null : void 0;
  6465. },
  6466. hlc: function(t, s, n) {
  6467. if (t = h.high(t), s = h.low(s), n = h.close(n), b(t) || b(s) || b(n))
  6468. return [t, s, n];
  6469. },
  6470. ohlc: function(t, s, n, P) {
  6471. if (t = h.open(t), s = h.high(s), n = h.low(n), P = h.close(P), b(t) || b(s) || b(n) || b(P))
  6472. return [t, s, n, P];
  6473. },
  6474. range: function(t, s) {
  6475. if (t = h.low(t), s = h.high(s), b(t) || b(s))
  6476. return [t, s];
  6477. if (t === null && s === null)
  6478. return null;
  6479. }
  6480. };
  6481. j = function(t, s, n, P) {
  6482. var D = this, I = D.data, W = D.options && D.options.data, E = [], X = [], g = [], m = t.length, L = !!s, z = [], $ = D.pointArrayMap, Q = $ && $.length, A = ["x"].concat($ || ["y"]), H = this.options.dataGrouping && this.options.dataGrouping.groupAll, Y = 0, Z = 0, q;
  6483. P = typeof P == "function" ? P : h[P] ? h[P] : h[D.getDGApproximation && D.getDGApproximation() || "average"], Q ? $.forEach(function() {
  6484. z.push([]);
  6485. }) : z.push([]);
  6486. var it = Q || 1;
  6487. for (q = 0; q <= m && !(t[q] >= n[0]); q++)
  6488. ;
  6489. for (q; q <= m; q++) {
  6490. for (; typeof n[Y + 1] < "u" && t[q] >= n[Y + 1] || q === m; ) {
  6491. var et = n[Y];
  6492. D.dataGroupInfo = { start: H ? Z : D.cropStart + Z, length: z[0].length };
  6493. var nt = P.apply(D, z);
  6494. for (D.pointClass && !O(D.dataGroupInfo.options) && (D.dataGroupInfo.options = S(D.pointClass.prototype.optionsToObject.call({ series: D }, D.options.data[D.cropStart + Z])), A.forEach(function(ct) {
  6495. delete D.dataGroupInfo.options[ct];
  6496. })), typeof nt < "u" && (E.push(et), X.push(nt), g.push(D.dataGroupInfo)), Z = q, et = 0; et < it; et++)
  6497. z[et].length = 0, z[et].hasNulls = !1;
  6498. if (Y += 1, q === m)
  6499. break;
  6500. }
  6501. if (q === m)
  6502. break;
  6503. if ($) {
  6504. et = D.options.dataGrouping && D.options.dataGrouping.groupAll ? q : D.cropStart + q, nt = I && I[et] || D.pointClass.prototype.applyOptions.apply({ series: D }, [W[et]]);
  6505. var rt = void 0;
  6506. for (et = 0; et < Q; et++)
  6507. rt = nt[$[et]], b(rt) ? z[et].push(rt) : rt === null && (z[et].hasNulls = !0);
  6508. } else
  6509. et = L ? s[q] : null, b(et) ? z[0].push(et) : et === null && (z[0].hasNulls = !0);
  6510. }
  6511. return { groupedXData: E, groupedYData: X, groupMap: g };
  6512. };
  6513. var c = { approximations: h, groupData: j }, u = x.generatePoints, i = { groupPixelWidth: 2, dateTimeLabelFormats: { millisecond: [
  6514. "%A, %b %e, %H:%M:%S.%L",
  6515. "%A, %b %e, %H:%M:%S.%L",
  6516. "-%H:%M:%S.%L"
  6517. ], second: ["%A, %b %e, %H:%M:%S", "%A, %b %e, %H:%M:%S", "-%H:%M:%S"], minute: ["%A, %b %e, %H:%M", "%A, %b %e, %H:%M", "-%H:%M"], hour: ["%A, %b %e, %H:%M", "%A, %b %e, %H:%M", "-%H:%M"], day: ["%A, %b %e, %Y", "%A, %b %e", "-%A, %b %e, %Y"], week: ["Week from %A, %b %e, %Y", "%A, %b %e", "-%A, %b %e, %Y"], month: ["%B %Y", "%B", "-%B %Y"], year: ["%Y", "%Y", "-%Y"] } }, p = {
  6518. line: {},
  6519. spline: {},
  6520. area: {},
  6521. areaspline: {},
  6522. arearange: {},
  6523. column: { groupPixelWidth: 10 },
  6524. columnrange: { groupPixelWidth: 10 },
  6525. candlestick: { groupPixelWidth: 10 },
  6526. ohlc: { groupPixelWidth: 5 },
  6527. hlc: { groupPixelWidth: 5 },
  6528. heikinashi: { groupPixelWidth: 10 }
  6529. }, a = U.defaultDataGroupingUnits = [["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]], ["week", [1]], ["month", [1, 3, 6]], ["year", null]];
  6530. return x.getDGApproximation = function() {
  6531. return this.is("arearange") ? "range" : this.is("ohlc") ? "ohlc" : this.is("hlc") ? "hlc" : this.is("column") ? "sum" : "average";
  6532. }, x.groupData = j, x.applyGrouping = function(t) {
  6533. var s = this.chart, n = this.options.dataGrouping, P = this.allowDG !== !1 && n && v(n.enabled, s.options.isStock), D = this.visible || !s.options.chart.ignoreHiddenSeries, I, W = this.currentDataGrouping, E = !1;
  6534. if (P && !this.requireSorting && (this.requireSorting = E = !0), t = !!(this.isCartesian && !this.isDirty && !this.xAxis.isDirty && !this.yAxis.isDirty && !t) || !P, E && (this.requireSorting = !1), !t) {
  6535. this.destroyGroupedData(), P = n.groupAll ? this.xData : this.processedXData;
  6536. var X = n.groupAll ? this.yData : this.processedYData;
  6537. t = s.plotSizeX, E = this.xAxis;
  6538. var g = E.options.ordinal, m = this.groupPixelWidth;
  6539. if (m && P && P.length) {
  6540. this.isDirty = I = !0, this.points = null;
  6541. var L = E.getExtremes(), z = L.min;
  6542. L = L.max, g = g && E.ordinal && E.ordinal.getGroupIntervalFactor(z, L, this) || 1, t = E.getTimeTicks(N.Additions.prototype.normalizeTimeTickInterval(m * (L - z) / t * g, n.units || a), Math.min(z, P[0]), Math.max(L, P[P.length - 1]), E.options.startOfWeek, P, this.closestPointRange), m = x.groupData.apply(this, [P, X, t, n.approximation]), P = m.groupedXData, X = m.groupedYData, g = 0, n && n.smoothed && P.length && (n.firstAnchor = "firstPoint", n.anchor = "middle", n.lastAnchor = "lastPoint", R(32, !1, s, { "dataGrouping.smoothed": "use dataGrouping.anchor" })), s = P;
  6543. var $ = this.options.dataGrouping;
  6544. if (z = this.currentDataGrouping && this.currentDataGrouping.gapSize, $ && this.xData && z && this.groupMap) {
  6545. var Q = s.length - 1, A = $.anchor, H = v($.firstAnchor, A);
  6546. if ($ = v($.lastAnchor, A), A && A !== "start") {
  6547. var Y = z * { middle: 0.5, end: 1 }[A];
  6548. for (A = s.length - 1; A-- && 0 < A; )
  6549. s[A] += Y;
  6550. }
  6551. if (H && H !== "start" && this.xData[0] >= s[0]) {
  6552. A = this.groupMap[0].start, Y = this.groupMap[0].length;
  6553. var Z = void 0;
  6554. b(A) && b(Y) && (Z = A + (Y - 1)), s[0] = { middle: s[0] + 0.5 * z, end: s[0] + z, firstPoint: this.xData[0], lastPoint: Z && this.xData[Z] }[H];
  6555. }
  6556. $ && $ !== "start" && z && s[Q] >= L - z && (L = this.groupMap[this.groupMap.length - 1].start, s[Q] = { middle: s[Q] + 0.5 * z, end: s[Q] + z, firstPoint: L && this.xData[L], lastPoint: this.xData[this.xData.length - 1] }[$]);
  6557. }
  6558. for (L = 1; L < t.length; L++)
  6559. t.info.segmentStarts && t.info.segmentStarts.indexOf(L) !== -1 || (g = Math.max(t[L] - t[L - 1], g));
  6560. L = t.info, L.gapSize = g, this.closestPointRange = t.info.totalRange, this.groupMap = m.groupMap, D && (D = P, O(D[0]) && b(E.min) && b(E.dataMin) && D[0] < E.min && ((!O(E.options.min) && E.min <= E.dataMin || E.min === E.dataMin) && (E.min = Math.min(D[0], E.min)), E.dataMin = Math.min(D[0], E.dataMin)), O(D[D.length - 1]) && b(E.max) && b(E.dataMax) && D[D.length - 1] > E.max && ((!O(E.options.max) && b(E.dataMax) && E.max >= E.dataMax || E.max === E.dataMax) && (E.max = Math.max(D[D.length - 1], E.max)), E.dataMax = Math.max(D[D.length - 1], E.dataMax))), n.groupAll && (this.allGroupedData = X, n = this.cropData(P, X, E.min, E.max, 1), P = n.xData, X = n.yData, this.cropStart = n.start), this.processedXData = P, this.processedYData = X;
  6561. } else
  6562. this.groupMap = null;
  6563. this.hasGroupedData = I, this.currentDataGrouping = L, this.preventGraphAnimation = (W && W.totalRange) !== (L && L.totalRange);
  6564. }
  6565. }, x.destroyGroupedData = function() {
  6566. this.groupedData && (this.groupedData.forEach(function(t, s) {
  6567. t && (this.groupedData[s] = t.destroy ? t.destroy() : null);
  6568. }, this), this.groupedData.length = 0);
  6569. }, x.generatePoints = function() {
  6570. u.apply(this), this.destroyGroupedData(), this.groupedData = this.hasGroupedData ? this.points : null;
  6571. }, y.prototype.applyGrouping = function(t) {
  6572. var s = this;
  6573. s.series.forEach(function(n) {
  6574. n.groupPixelWidth = void 0, n.groupPixelWidth = s.getGroupPixelWidth && s.getGroupPixelWidth(), n.groupPixelWidth && (n.hasProcessed = !0), n.applyGrouping(!!t.hasExtemesChanged);
  6575. });
  6576. }, y.prototype.getGroupPixelWidth = function() {
  6577. var t = this.series, s = t.length, n, P = 0, D = !1, I;
  6578. for (n = s; n--; )
  6579. (I = t[n].options.dataGrouping) && (P = Math.max(P, v(I.groupPixelWidth, i.groupPixelWidth)));
  6580. for (n = s; n--; )
  6581. (I = t[n].options.dataGrouping) && (s = (t[n].processedXData || t[n].data).length, (t[n].groupPixelWidth || s > this.chart.plotSizeX / P || s && I.forced) && (D = !0));
  6582. return D ? P : 0;
  6583. }, y.prototype.setDataGrouping = function(t, s) {
  6584. var n;
  6585. if (s = v(s, !0), t || (t = { forced: !1, units: null }), this instanceof y)
  6586. for (n = this.series.length; n--; )
  6587. this.series[n].update({ dataGrouping: t }, !1);
  6588. else
  6589. this.chart.options.series.forEach(function(P) {
  6590. P.dataGrouping = t;
  6591. }, !1);
  6592. this.ordinal && (this.ordinal.slope = void 0), s && this.chart.redraw();
  6593. }, _(y, "postProcessData", y.prototype.applyGrouping), _(G, "update", function() {
  6594. if (this.dataGroup)
  6595. return R(
  6596. 24,
  6597. !1,
  6598. this.series.chart
  6599. ), !1;
  6600. }), _(F, "headerFormatter", function(t) {
  6601. var s = this.chart, n = s.time, P = t.labelConfig, D = P.series, I = D.tooltipOptions, W = D.options.dataGrouping, E = I.xDateFormat, X = D.xAxis, g = I[t.isFooter ? "footerFormat" : "headerFormat"];
  6602. if (X && X.options.type === "datetime" && W && b(P.key)) {
  6603. var m = D.currentDataGrouping;
  6604. if (W = W.dateTimeLabelFormats || i.dateTimeLabelFormats, m)
  6605. if (I = W[m.unitName], m.count === 1)
  6606. E = I[0];
  6607. else {
  6608. E = I[1];
  6609. var L = I[2];
  6610. }
  6611. else
  6612. !E && W && X.dateTime && (E = X.dateTime.getXDateFormat(P.x, I.dateTimeLabelFormats));
  6613. E = n.dateFormat(E, P.key), L && (E += n.dateFormat(L, P.key + m.totalRange - 1)), D.chart.styledMode && (g = this.styledModeFormat(g)), t.text = w(g, { point: k(P.point, { key: E }), series: D }, s), t.preventDefault();
  6614. }
  6615. }), _(V, "destroy", x.destroyGroupedData), _(V, "afterSetOptions", function(t) {
  6616. t = t.options;
  6617. var s = this.type, n = this.chart.options.plotOptions, P = B.defaultOptions.plotOptions[s].dataGrouping, D = this.useCommonDataGrouping && i;
  6618. if (n && (p[s] || D)) {
  6619. P || (P = S(i, p[s]));
  6620. var I = this.chart.rangeSelector;
  6621. t.dataGrouping = S(
  6622. D,
  6623. P,
  6624. n.series && n.series.dataGrouping,
  6625. n[s].dataGrouping,
  6626. this.userOptions.dataGrouping,
  6627. !t.isInternal && I && b(I.selected) && I.buttonOptions[I.selected].dataGrouping
  6628. );
  6629. }
  6630. }), _(y, "afterSetScale", function() {
  6631. this.series.forEach(function(t) {
  6632. t.hasProcessed = !1;
  6633. });
  6634. }), U.dataGrouping = c, c;
  6635. }), C(o, "Series/HLC/HLCPoint.js", [o["Core/Series/SeriesRegistry.js"]], function(y) {
  6636. var N = this && this.__extends || function() {
  6637. var _ = function(U, G) {
  6638. return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(V, F) {
  6639. V.__proto__ = F;
  6640. } || function(V, F) {
  6641. for (var B in F)
  6642. F.hasOwnProperty(B) && (V[B] = F[B]);
  6643. }, _(U, G);
  6644. };
  6645. return function(U, G) {
  6646. function V() {
  6647. this.constructor = U;
  6648. }
  6649. _(U, G), U.prototype = G === null ? Object.create(G) : (V.prototype = G.prototype, new V());
  6650. };
  6651. }();
  6652. return function(_) {
  6653. function U() {
  6654. var G = _ !== null && _.apply(this, arguments) || this;
  6655. return G.close = void 0, G.high = void 0, G.low = void 0, G.options = void 0, G.plotClose = void 0, G.series = void 0, G;
  6656. }
  6657. return N(U, _), U;
  6658. }(y.seriesTypes.column.prototype.pointClass);
  6659. }), C(
  6660. o,
  6661. "Series/HLC/HLCSeries.js",
  6662. [o["Series/HLC/HLCPoint.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]],
  6663. function(y, N, _) {
  6664. var U = this && this.__extends || function() {
  6665. var B = function(j, w) {
  6666. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, f) {
  6667. x.__proto__ = f;
  6668. } || function(x, f) {
  6669. for (var l in f)
  6670. f.hasOwnProperty(l) && (x[l] = f[l]);
  6671. }, B(j, w);
  6672. };
  6673. return function(j, w) {
  6674. function x() {
  6675. this.constructor = j;
  6676. }
  6677. B(j, w), j.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  6678. };
  6679. }(), G = N.seriesTypes.column, V = _.extend, F = _.merge;
  6680. return _ = function(B) {
  6681. function j() {
  6682. var w = B !== null && B.apply(this, arguments) || this;
  6683. return w.data = void 0, w.options = void 0, w.points = void 0, w.yData = void 0, w;
  6684. }
  6685. return U(j, B), j.prototype.extendStem = function(w, x, f) {
  6686. var l = w[0];
  6687. w = w[1], typeof l[2] == "number" && (l[2] = Math.max(f + x, l[2])), typeof w[2] == "number" && (w[2] = Math.min(f - x, w[2]));
  6688. }, j.prototype.getPointPath = function(w, x) {
  6689. x = x.strokeWidth();
  6690. var f = w.series, l = x % 2 / 2, T = Math.round(w.plotX) - l, O = Math.round(w.shapeArgs.width / 2), R = [["M", T, Math.round(w.yBottom)], ["L", T, Math.round(w.plotHigh)]];
  6691. return w.close !== null && (w = Math.round(w.plotClose) + l, R.push(["M", T, w], ["L", T + O, w]), f.extendStem(R, x / 2, w)), R;
  6692. }, j.prototype.drawSinglePoint = function(w) {
  6693. var x = w.series, f = x.chart, l = w.graphic, T = !l;
  6694. typeof w.plotY < "u" && (l || (w.graphic = l = f.renderer.path().add(x.group)), f.styledMode || l.attr(x.pointAttribs(w, w.selected && "select")), x = x.getPointPath(w, l), l[T ? "attr" : "animate"]({ d: x }).addClass(w.getClassName(), !0));
  6695. }, j.prototype.drawPoints = function() {
  6696. this.points.forEach(this.drawSinglePoint);
  6697. }, j.prototype.init = function() {
  6698. B.prototype.init.apply(this, arguments), this.options.stacking = void 0;
  6699. }, j.prototype.pointAttribs = function(w, x) {
  6700. return w = B.prototype.pointAttribs.call(this, w, x), delete w.fill, w;
  6701. }, j.prototype.toYData = function(w) {
  6702. return [w.high, w.low, w.close];
  6703. }, j.prototype.translate = function() {
  6704. var w = this, x = w.yAxis, f = this.pointArrayMap && this.pointArrayMap.slice() || [], l = f.map(function(T) {
  6705. return "plot" + (T.charAt(0).toUpperCase() + T.slice(1));
  6706. });
  6707. l.push("yBottom"), f.push("low"), B.prototype.translate.apply(w), w.points.forEach(function(T) {
  6708. f.forEach(function(O, R) {
  6709. O = T[O], O !== null && (w.dataModify && (O = w.dataModify.modifyValue(O)), T[l[R]] = x.toPixels(O, !0));
  6710. }), T.tooltipPos[1] = T.plotHigh + x.pos - w.chart.plotTop;
  6711. });
  6712. }, j.defaultOptions = F(G.defaultOptions, { lineWidth: 1, tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>' }, threshold: null, states: { hover: { lineWidth: 3 } }, stickyTracking: !0 }), j;
  6713. }(G), V(_.prototype, { animate: null, directTouch: !1, pointArrayMap: ["high", "low", "close"], pointAttrToOptions: {
  6714. stroke: "color",
  6715. "stroke-width": "lineWidth"
  6716. }, pointValKey: "close" }), _.prototype.pointClass = y, N.registerSeriesType("hlc", _), _;
  6717. }
  6718. ), C(o, "Series/OHLC/OHLCPoint.js", [o["Core/Series/SeriesRegistry.js"]], function(y) {
  6719. var N = this && this.__extends || function() {
  6720. var _ = function(U, G) {
  6721. return _ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(V, F) {
  6722. V.__proto__ = F;
  6723. } || function(V, F) {
  6724. for (var B in F)
  6725. F.hasOwnProperty(B) && (V[B] = F[B]);
  6726. }, _(U, G);
  6727. };
  6728. return function(U, G) {
  6729. function V() {
  6730. this.constructor = U;
  6731. }
  6732. _(U, G), U.prototype = G === null ? Object.create(G) : (V.prototype = G.prototype, new V());
  6733. };
  6734. }();
  6735. return function(_) {
  6736. function U() {
  6737. var G = _ !== null && _.apply(this, arguments) || this;
  6738. return G.open = void 0, G.options = void 0, G.plotOpen = void 0, G.series = void 0, G;
  6739. }
  6740. return N(U, _), U.prototype.getClassName = function() {
  6741. return _.prototype.getClassName.call(this) + (this.open < this.close ? " highcharts-point-up" : " highcharts-point-down");
  6742. }, U.prototype.resolveUpColor = function() {
  6743. this.open < this.close && !this.options.color && this.series.options.upColor && (this.color = this.series.options.upColor);
  6744. }, U.prototype.resolveColor = function() {
  6745. _.prototype.resolveColor.call(this), this.resolveUpColor();
  6746. }, U.prototype.getZone = function() {
  6747. var G = _.prototype.getZone.call(this);
  6748. return this.resolveUpColor(), G;
  6749. }, U.prototype.applyOptions = function() {
  6750. return _.prototype.applyOptions.apply(this, arguments), this.resolveColor && this.resolveColor(), this;
  6751. }, U;
  6752. }(y.seriesTypes.hlc.prototype.pointClass);
  6753. }), C(
  6754. o,
  6755. "Series/OHLC/OHLCSeries.js",
  6756. [o["Series/OHLC/OHLCPoint.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]],
  6757. function(y, N, _) {
  6758. var U = this && this.__extends || function() {
  6759. var x = function(f, l) {
  6760. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, O) {
  6761. T.__proto__ = O;
  6762. } || function(T, O) {
  6763. for (var R in O)
  6764. O.hasOwnProperty(R) && (T[R] = O[R]);
  6765. }, x(f, l);
  6766. };
  6767. return function(f, l) {
  6768. function T() {
  6769. this.constructor = f;
  6770. }
  6771. x(f, l), f.prototype = l === null ? Object.create(l) : (T.prototype = l.prototype, new T());
  6772. };
  6773. }(), G = N.series, V = N.seriesTypes.hlc, F = _.addEvent, B = _.extend, j = _.merge, w = function(x) {
  6774. function f() {
  6775. var l = x !== null && x.apply(this, arguments) || this;
  6776. return l.data = void 0, l.options = void 0, l.points = void 0, l;
  6777. }
  6778. return U(f, x), f.prototype.getPointPath = function(l, T) {
  6779. var O = x.prototype.getPointPath.call(this, l, T);
  6780. T = T.strokeWidth();
  6781. var R = T % 2 / 2, k = Math.round(l.plotX) - R, b = Math.round(l.shapeArgs.width / 2);
  6782. return l.open !== null && (l = Math.round(l.plotOpen) + R, O.push(["M", k, l], ["L", k - b, l]), x.prototype.extendStem.call(this, O, T / 2, l)), O;
  6783. }, f.prototype.pointAttribs = function(l, T) {
  6784. T = x.prototype.pointAttribs.call(this, l, T);
  6785. var O = this.options;
  6786. return delete T.fill, !l.options.color && O.upColor && l.open < l.close && (T.stroke = O.upColor), T;
  6787. }, f.prototype.toYData = function(l) {
  6788. return [l.open, l.high, l.low, l.close];
  6789. }, f.defaultOptions = j(V.defaultOptions, { tooltip: { pointFormat: '<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>' } }), f;
  6790. }(V);
  6791. return B(w.prototype, { pointArrayMap: ["open", "high", "low", "close"] }), w.prototype.pointClass = y, N.registerSeriesType("ohlc", w), F(G, "init", function(x) {
  6792. x = x.options, x.useOhlcData && x.id !== "highcharts-navigator-series" && B(this, { pointValKey: w.prototype.pointValKey, pointArrayMap: w.prototype.pointArrayMap, toYData: w.prototype.toYData });
  6793. }), F(G, "afterSetOptions", function(x) {
  6794. x = x.options;
  6795. var f = x.dataGrouping;
  6796. f && x.useOhlcData && x.id !== "highcharts-navigator-series" && (f.approximation = "ohlc");
  6797. }), w;
  6798. }
  6799. ), C(o, "Series/Candlestick/CandlestickSeries.js", [o["Core/DefaultOptions.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  6800. var U = this && this.__extends || function() {
  6801. var j = function(w, x) {
  6802. return j = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, l) {
  6803. f.__proto__ = l;
  6804. } || function(f, l) {
  6805. for (var T in l)
  6806. l.hasOwnProperty(T) && (f[T] = l[T]);
  6807. }, j(w, x);
  6808. };
  6809. return function(w, x) {
  6810. function f() {
  6811. this.constructor = w;
  6812. }
  6813. j(w, x), w.prototype = x === null ? Object.create(x) : (f.prototype = x.prototype, new f());
  6814. };
  6815. }(), G = y.defaultOptions;
  6816. y = N.seriesTypes;
  6817. var V = y.column, F = y.ohlc, B = _.merge;
  6818. return _ = function(j) {
  6819. function w() {
  6820. var x = j !== null && j.apply(this, arguments) || this;
  6821. return x.data = void 0, x.options = void 0, x.points = void 0, x;
  6822. }
  6823. return U(w, j), w.prototype.pointAttribs = function(x, f) {
  6824. var l = V.prototype.pointAttribs.call(this, x, f), T = this.options, O = x.open < x.close, R = T.lineColor || this.color, k = x.color || this.color;
  6825. return l["stroke-width"] = T.lineWidth, l.fill = x.options.color || O && T.upColor || k, l.stroke = x.options.lineColor || O && T.upLineColor || R, f && (x = T.states[f], l.fill = x.color || l.fill, l.stroke = x.lineColor || l.stroke, l["stroke-width"] = x.lineWidth || l["stroke-width"]), l;
  6826. }, w.prototype.drawPoints = function() {
  6827. var x = this, f = x.chart, l = x.yAxis.reversed;
  6828. x.points.forEach(function(T) {
  6829. var O = T.graphic, R = !O;
  6830. if (typeof T.plotY < "u") {
  6831. O || (T.graphic = O = f.renderer.path().add(x.group)), x.chart.styledMode || O.attr(x.pointAttribs(T, T.selected && "select")).shadow(x.options.shadow);
  6832. var k = O.strokeWidth() % 2 / 2, b = Math.round(T.plotX) - k, S = T.plotOpen, v = T.plotClose, h = Math.min(S, v);
  6833. S = Math.max(S, v);
  6834. var c = Math.round(T.shapeArgs.width / 2);
  6835. v = l ? S !== T.yBottom : Math.round(h) !== Math.round(T.plotHigh);
  6836. var u = l ? Math.round(h) !== Math.round(T.plotHigh) : S !== T.yBottom;
  6837. h = Math.round(h) + k, S = Math.round(S) + k, k = [], k.push(["M", b - c, S], ["L", b - c, h], ["L", b + c, h], ["L", b + c, S], ["Z"], ["M", b, h], ["L", b, v ? Math.round(l ? T.yBottom : T.plotHigh) : h], ["M", b, S], ["L", b, u ? Math.round(l ? T.plotHigh : T.yBottom) : S]), O[R ? "attr" : "animate"]({ d: k }).addClass(T.getClassName(), !0);
  6838. }
  6839. });
  6840. }, w.defaultOptions = B(F.defaultOptions, G.plotOptions, { states: { hover: { lineWidth: 2 } }, tooltip: G.plotOptions.ohlc.tooltip, threshold: null, lineColor: "#000000", lineWidth: 1, upColor: "#ffffff", stickyTracking: !0 }), w;
  6841. }(F), N.registerSeriesType("candlestick", _), _;
  6842. }), C(o, "Series/Flags/FlagsPoint.js", [o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N) {
  6843. var _ = this && this.__extends || function() {
  6844. var G = function(V, F) {
  6845. return G = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, j) {
  6846. B.__proto__ = j;
  6847. } || function(B, j) {
  6848. for (var w in j)
  6849. j.hasOwnProperty(w) && (B[w] = j[w]);
  6850. }, G(V, F);
  6851. };
  6852. return function(V, F) {
  6853. function B() {
  6854. this.constructor = V;
  6855. }
  6856. G(V, F), V.prototype = F === null ? Object.create(F) : (B.prototype = F.prototype, new B());
  6857. };
  6858. }(), U = N.isNumber;
  6859. return function(G) {
  6860. function V() {
  6861. var F = G !== null && G.apply(this, arguments) || this;
  6862. return F.options = void 0, F.series = void 0, F;
  6863. }
  6864. return _(V, G), V.prototype.isValid = function() {
  6865. return U(this.y) || typeof this.y > "u";
  6866. }, V.prototype.hasNewShapeType = function() {
  6867. var F = this.options.shape || this.series.options.shape;
  6868. return this.graphic && F && F !== this.graphic.symbolKey;
  6869. }, V;
  6870. }(y.seriesTypes.column.prototype.pointClass);
  6871. }), C(o, "Series/OnSeriesComposition.js", [
  6872. o["Series/Column/ColumnSeries.js"],
  6873. o["Core/Series/Series.js"],
  6874. o["Core/Utilities.js"]
  6875. ], function(y, N, _) {
  6876. var U = y.prototype, G = N.prototype, V = _.defined, F = _.stableSort, B;
  6877. return function(j) {
  6878. function w() {
  6879. return G.getPlotBox.call(this.options.onSeries && this.chart.get(this.options.onSeries) || this);
  6880. }
  6881. function x() {
  6882. U.translate.apply(this);
  6883. var l = this, T = l.options, O = l.chart, R = l.points, k = T.onSeries, b = (k = k && O.get(k)) && k.options.step, S = k && k.points, v = O.inverted, h = l.xAxis, c = l.yAxis;
  6884. O = R.length - 1;
  6885. var u;
  6886. T = T.onKey || "y";
  6887. var i = S && S.length, p = 0, a;
  6888. if (k && k.visible && i) {
  6889. p = (k.pointXOffset || 0) + (k.barW || 0) / 2;
  6890. var t = k.currentDataGrouping, s = S[i - 1].x + (t ? t.totalRange : 0);
  6891. for (F(R, function(D, I) {
  6892. return D.x - I.x;
  6893. }), T = "plot" + T[0].toUpperCase() + T.substr(1); i-- && R[O]; ) {
  6894. var n = S[i];
  6895. if (t = R[O], t.y = n.y, n.x <= t.x && typeof n[T] < "u") {
  6896. if (t.x <= s && (t.plotY = n[T], n.x < t.x && !b && (a = S[i + 1]) && typeof a[T] < "u")) {
  6897. var P = (t.x - n.x) / (a.x - n.x);
  6898. t.plotY += P * (a[T] - n[T]), t.y += P * (a.y - n.y);
  6899. }
  6900. if (O--, i++, 0 > O)
  6901. break;
  6902. }
  6903. }
  6904. }
  6905. R.forEach(function(D, I) {
  6906. if (D.plotX += p, (typeof D.plotY > "u" || v) && (0 <= D.plotX && D.plotX <= h.len ? v ? (D.plotY = h.translate(D.x, 0, 1, 0, 1), D.plotX = V(D.y) ? c.translate(D.y, 0, 0, 0, 1) : 0) : D.plotY = (h.opposite ? 0 : l.yAxis.len) + h.offset : D.shapeArgs = {}), (u = R[I - 1]) && u.plotX === D.plotX) {
  6907. typeof u.stackIndex > "u" && (u.stackIndex = 0);
  6908. var W = u.stackIndex + 1;
  6909. }
  6910. D.stackIndex = W;
  6911. }), this.onSeries = k;
  6912. }
  6913. var f = [];
  6914. j.compose = function(l) {
  6915. if (f.indexOf(l) === -1) {
  6916. f.push(l);
  6917. var T = l.prototype;
  6918. T.getPlotBox = w, T.translate = x;
  6919. }
  6920. return l;
  6921. }, j.getPlotBox = w, j.translate = x;
  6922. }(B || (B = {})), B;
  6923. }), C(
  6924. o,
  6925. "Series/Flags/FlagsSymbols.js",
  6926. [o["Core/Renderer/RendererRegistry.js"], o["Core/Renderer/SVG/SVGRenderer.js"]],
  6927. function(y, N) {
  6928. function _(G) {
  6929. U[G + "pin"] = function(V, F, B, j, w) {
  6930. var x = w && w.anchorX;
  6931. w = w && w.anchorY, G === "circle" && j > B && (V -= Math.round((j - B) / 2), B = j);
  6932. var f = U[G](V, F, B, j);
  6933. if (x && w) {
  6934. var l = x;
  6935. G === "circle" ? l = V + B / 2 : (V = f[0], B = f[1], V[0] === "M" && B[0] === "L" && (l = (V[1] + B[1]) / 2)), f.push(["M", l, F > w ? F : F + j], ["L", x, w]), f = f.concat(U.circle(x - 1, w - 1, 2, 2));
  6936. }
  6937. return f;
  6938. };
  6939. }
  6940. var U = N.prototype.symbols;
  6941. return U.flag = function(G, V, F, B, j) {
  6942. var w = j && j.anchorX || G;
  6943. j = j && j.anchorY || V;
  6944. var x = U.circle(w - 1, j - 1, 2, 2);
  6945. return x.push(["M", w, j], ["L", G, V + B], ["L", G, V], ["L", G + F, V], ["L", G + F, V + B], ["L", G, V + B], ["Z"]), x;
  6946. }, _("circle"), _("square"), y = y.getRendererType(), y !== N && (y.prototype.symbols.circlepin = U.circlepin, y.prototype.symbols.flag = U.flag, y.prototype.symbols.squarepin = U.squarepin), U;
  6947. }
  6948. ), C(o, "Series/Flags/FlagsSeries.js", [
  6949. o["Series/Flags/FlagsPoint.js"],
  6950. o["Core/Globals.js"],
  6951. o["Series/OnSeriesComposition.js"],
  6952. o["Core/Renderer/RendererUtilities.js"],
  6953. o["Core/Series/SeriesRegistry.js"],
  6954. o["Core/Renderer/SVG/SVGElement.js"],
  6955. o["Core/Utilities.js"]
  6956. ], function(y, N, _, U, G, V, F) {
  6957. var B = this && this.__extends || function() {
  6958. var k = function(b, S) {
  6959. return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, h) {
  6960. v.__proto__ = h;
  6961. } || function(v, h) {
  6962. for (var c in h)
  6963. h.hasOwnProperty(c) && (v[c] = h[c]);
  6964. }, k(b, S);
  6965. };
  6966. return function(b, S) {
  6967. function v() {
  6968. this.constructor = b;
  6969. }
  6970. k(b, S), b.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  6971. };
  6972. }();
  6973. N = N.noop;
  6974. var j = U.distribute, w = G.series, x = G.seriesTypes.column, f = F.addEvent, l = F.defined;
  6975. U = F.extend;
  6976. var T = F.merge, O = F.objectEach, R = F.wrap;
  6977. return F = function(k) {
  6978. function b() {
  6979. var S = k !== null && k.apply(this, arguments) || this;
  6980. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  6981. }
  6982. return B(b, k), b.prototype.animate = function(S) {
  6983. S && this.setClip();
  6984. }, b.prototype.drawPoints = function() {
  6985. var S = this.points, v = this.chart, h = v.renderer, c = v.inverted, u = this.options, i = u.y, p, a = this.yAxis, t = {}, s = [];
  6986. for (p = S.length; p--; ) {
  6987. var n = S[p], P = (c ? n.plotY : n.plotX) > this.xAxis.len, D = n.plotX, I = n.stackIndex, W = n.options.shape || u.shape, E = n.plotY;
  6988. typeof E < "u" && (E = n.plotY + i - (typeof I < "u" && I * u.stackDistance)), n.anchorX = I ? void 0 : n.plotX;
  6989. var X = I ? void 0 : n.plotY, g = W !== "flag";
  6990. I = n.graphic, typeof E < "u" && 0 <= D && !P ? (I && n.hasNewShapeType() && (I = I.destroy()), I || (I = n.graphic = h.label("", null, null, W, null, null, u.useHTML).addClass("highcharts-point").add(this.markerGroup), n.graphic.div && (n.graphic.div.point = n), I.isNew = !0), I.attr({
  6991. align: g ? "center" : "left",
  6992. width: u.width,
  6993. height: u.height,
  6994. "text-align": u.textAlign
  6995. }), v.styledMode || I.attr(this.pointAttribs(n)).css(T(u.style, n.style)).shadow(u.shadow), 0 < D && (D -= I.strokeWidth() % 2), W = { y: E, anchorY: X }, u.allowOverlapX && (W.x = D, W.anchorX = n.anchorX), I.attr({ text: n.options.title || u.title || "A" })[I.isNew ? "attr" : "animate"](W), u.allowOverlapX || (t[n.plotX] ? t[n.plotX].size = Math.max(t[n.plotX].size, I.width) : t[n.plotX] = { align: g ? 0.5 : 0, size: I.width, target: D, anchorX: D }), n.tooltipPos = [D, E + a.pos - v.plotTop]) : I && (n.graphic = I.destroy());
  6996. }
  6997. if (!u.allowOverlapX) {
  6998. var m = 100;
  6999. O(t, function(L) {
  7000. L.plotX = L.anchorX, s.push(L), m = Math.max(L.size, m);
  7001. }), j(s, c ? a.len : this.xAxis.len, m), S.forEach(function(L) {
  7002. var z = L.graphic && t[L.plotX];
  7003. z && (L.graphic[L.graphic.isNew ? "attr" : "animate"]({ x: z.pos + z.align * z.size, anchorX: L.anchorX }), l(z.pos) ? L.graphic.isNew = !1 : (L.graphic.attr({ x: -9999, anchorX: -9999 }), L.graphic.isNew = !0));
  7004. });
  7005. }
  7006. u.useHTML && R(this.markerGroup, "on", function(L) {
  7007. return V.prototype.on.apply(L.apply(this, [].slice.call(arguments, 1)), [].slice.call(arguments, 1));
  7008. });
  7009. }, b.prototype.drawTracker = function() {
  7010. var S = this.points;
  7011. k.prototype.drawTracker.call(this), S.forEach(function(v) {
  7012. var h = v.graphic;
  7013. h && (v.unbindMouseOver && v.unbindMouseOver(), v.unbindMouseOver = f(h.element, "mouseover", function() {
  7014. 0 < v.stackIndex && !v.raised && (v._y = h.y, h.attr({ y: v._y - 8 }), v.raised = !0), S.forEach(function(c) {
  7015. c !== v && c.raised && c.graphic && (c.graphic.attr({ y: c._y }), c.raised = !1);
  7016. });
  7017. }));
  7018. });
  7019. }, b.prototype.pointAttribs = function(S, v) {
  7020. var h = this.options, c = S && S.color || this.color, u = h.lineColor, i = S && S.lineWidth;
  7021. return S = S && S.fillColor || h.fillColor, v && (S = h.states[v].fillColor, u = h.states[v].lineColor, i = h.states[v].lineWidth), { fill: S || c, stroke: u || c, "stroke-width": i || h.lineWidth || 0 };
  7022. }, b.prototype.setClip = function() {
  7023. w.prototype.setClip.apply(this, arguments), this.options.clip !== !1 && this.sharedClipKey && this.markerGroup && this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey]);
  7024. }, b.defaultOptions = T(x.defaultOptions, {
  7025. pointRange: 0,
  7026. allowOverlapX: !1,
  7027. shape: "flag",
  7028. stackDistance: 12,
  7029. textAlign: "center",
  7030. tooltip: { pointFormat: "{point.text}" },
  7031. threshold: null,
  7032. y: -30,
  7033. fillColor: "#ffffff",
  7034. lineWidth: 1,
  7035. states: { hover: { lineColor: "#000000", fillColor: "#ccd6eb" } },
  7036. style: { fontSize: "11px", fontWeight: "bold" }
  7037. }), b;
  7038. }(x), _.compose(F), U(F.prototype, { allowDG: !1, forceCrop: !0, invertible: !1, noSharedTooltip: !0, pointClass: y, sorted: !1, takeOrdinalPosition: !1, trackerGroups: ["markerGroup"], buildKDTree: N, init: w.prototype.init, invertGroups: N }), G.registerSeriesType("flags", F), F;
  7039. }), C(o, "Core/Axis/ScrollbarAxis.js", [o["Core/Utilities.js"]], function(y) {
  7040. var N = y.addEvent, _ = y.defined, U = y.pick;
  7041. return function() {
  7042. function G() {
  7043. }
  7044. return G.compose = function(V, F) {
  7045. if (G.composed.indexOf(V) === -1)
  7046. G.composed.push(V);
  7047. else
  7048. return V;
  7049. var B = function(j) {
  7050. var w = U(j.options && j.options.min, j.min), x = U(j.options && j.options.max, j.max);
  7051. return { axisMin: w, axisMax: x, scrollMin: _(j.dataMin) ? Math.min(w, j.min, j.dataMin, U(j.threshold, 1 / 0)) : w, scrollMax: _(j.dataMax) ? Math.max(x, j.max, j.dataMax, U(j.threshold, -1 / 0)) : x };
  7052. };
  7053. return N(V, "afterInit", function() {
  7054. var j = this;
  7055. j.options && j.options.scrollbar && j.options.scrollbar.enabled && (j.options.scrollbar.vertical = !j.horiz, j.options.startOnTick = j.options.endOnTick = !1, j.scrollbar = new F(j.chart.renderer, j.options.scrollbar, j.chart), N(j.scrollbar, "changed", function(w) {
  7056. var x = B(j), f = x.axisMax, l = x.scrollMin, T = x.scrollMax - l;
  7057. _(x.axisMin) && _(f) && (j.horiz && !j.reversed || !j.horiz && j.reversed ? (x = l + T * this.to, l += T * this.from) : (x = l + T * (1 - this.from), l += T * (1 - this.to)), this.shouldUpdateExtremes(w.DOMType) ? j.setExtremes(l, x, !0, w.DOMType !== "mousemove" && w.DOMType !== "touchmove", w) : this.setRange(
  7058. this.from,
  7059. this.to
  7060. ));
  7061. }));
  7062. }), N(V, "afterRender", function() {
  7063. var j = B(this), w = j.scrollMin, x = j.scrollMax;
  7064. j = this.scrollbar;
  7065. var f = this.axisTitleMargin + (this.titleOffset || 0), l = this.chart.scrollbarsOffsets, T = this.options.margin || 0;
  7066. j && (this.horiz ? (this.opposite || (l[1] += f), j.position(this.left, this.top + this.height + 2 + l[1] - (this.opposite ? T : 0), this.width, this.height), this.opposite || (l[1] += T), f = 1) : (this.opposite && (l[0] += f), j.position(
  7067. j.options.opposite ? this.left + this.width + 2 + l[0] - (this.opposite ? 0 : T) : this.opposite ? 0 : T,
  7068. this.top,
  7069. this.width,
  7070. this.height
  7071. ), this.opposite && (l[0] += T), f = 0), l[f] += j.size + j.options.margin, isNaN(w) || isNaN(x) || !_(this.min) || !_(this.max) || this.min === this.max ? j.setRange(0, 1) : (l = (this.min - w) / (x - w), w = (this.max - w) / (x - w), this.horiz && !this.reversed || !this.horiz && this.reversed ? j.setRange(l, w) : j.setRange(1 - w, 1 - l)));
  7072. }), N(V, "afterGetOffset", function() {
  7073. var j = this.scrollbar && !this.scrollbar.options.opposite;
  7074. j = this.horiz ? 2 : j ? 3 : 1;
  7075. var w = this.scrollbar;
  7076. w && (this.chart.scrollbarsOffsets = [0, 0], this.chart.axisOffset[j] += w.size + w.options.margin);
  7077. }), V;
  7078. }, G.composed = [], G;
  7079. }();
  7080. }), C(o, "Core/ScrollbarDefaults.js", [o["Core/Globals.js"]], function(y) {
  7081. return {
  7082. height: y.isTouchDevice ? 20 : 14,
  7083. barBorderRadius: 0,
  7084. buttonBorderRadius: 0,
  7085. liveRedraw: void 0,
  7086. margin: 10,
  7087. minWidth: 6,
  7088. opposite: !0,
  7089. step: 0.2,
  7090. zIndex: 3,
  7091. barBackgroundColor: "#cccccc",
  7092. barBorderWidth: 1,
  7093. barBorderColor: "#cccccc",
  7094. buttonArrowColor: "#333333",
  7095. buttonBackgroundColor: "#e6e6e6",
  7096. buttonBorderColor: "#cccccc",
  7097. buttonBorderWidth: 1,
  7098. rifleColor: "#333333",
  7099. trackBackgroundColor: "#f2f2f2",
  7100. trackBorderColor: "#f2f2f2",
  7101. trackBorderWidth: 1
  7102. };
  7103. }), C(o, "Core/Scrollbar.js", [o["Core/DefaultOptions.js"], o["Core/Globals.js"], o["Core/Axis/ScrollbarAxis.js"], o["Core/ScrollbarDefaults.js"], o["Core/Utilities.js"]], function(y, N, _, U, G) {
  7104. var V = y.defaultOptions, F = G.addEvent, B = G.correctFloat, j = G.defined, w = G.destroyObjectProperties, x = G.fireEvent, f = G.merge, l = G.pick, T = G.removeEvent;
  7105. return y = function() {
  7106. function O(R, k, b) {
  7107. this._events = [], this.chart = void 0, this.from = this.chartY = this.chartX = 0, this.scrollbar = this.renderer = this.options = this.group = void 0, this.scrollbarButtons = [], this.scrollbarGroup = void 0, this.scrollbarLeft = 0, this.scrollbarRifles = void 0, this.scrollbarStrokeWidth = 1, this.to = this.size = this.scrollbarTop = 0, this.track = void 0, this.trackBorderWidth = 1, this.userOptions = void 0, this.y = this.x = 0, this.init(R, k, b);
  7108. }
  7109. return O.compose = function(R) {
  7110. _.compose(R, O);
  7111. }, O.swapXY = function(R, k) {
  7112. return k && R.forEach(function(b) {
  7113. for (var S = b.length, v, h = 0; h < S; h += 2)
  7114. v = b[h + 1], typeof v == "number" && (b[h + 1] = b[h + 2], b[h + 2] = v);
  7115. }), R;
  7116. }, O.prototype.addEvents = function() {
  7117. var R = this.options.inverted ? [1, 0] : [0, 1], k = this.scrollbarButtons, b = this.scrollbarGroup.element, S = this.track.element, v = this.mouseDownHandler.bind(this), h = this.mouseMoveHandler.bind(this), c = this.mouseUpHandler.bind(this);
  7118. R = [[k[R[0]].element, "click", this.buttonToMinClick.bind(this)], [k[R[1]].element, "click", this.buttonToMaxClick.bind(this)], [S, "click", this.trackClick.bind(this)], [b, "mousedown", v], [b.ownerDocument, "mousemove", h], [b.ownerDocument, "mouseup", c]], N.hasTouch && R.push(
  7119. [b, "touchstart", v],
  7120. [b.ownerDocument, "touchmove", h],
  7121. [b.ownerDocument, "touchend", c]
  7122. ), R.forEach(function(u) {
  7123. F.apply(null, u);
  7124. }), this._events = R;
  7125. }, O.prototype.buttonToMaxClick = function(R) {
  7126. var k = (this.to - this.from) * l(this.options.step, 0.2);
  7127. this.updatePosition(this.from + k, this.to + k), x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: R });
  7128. }, O.prototype.buttonToMinClick = function(R) {
  7129. var k = B(this.to - this.from) * l(this.options.step, 0.2);
  7130. this.updatePosition(B(this.from - k), B(this.to - k)), x(this, "changed", {
  7131. from: this.from,
  7132. to: this.to,
  7133. trigger: "scrollbar",
  7134. DOMEvent: R
  7135. });
  7136. }, O.prototype.cursorToScrollbarPosition = function(R) {
  7137. var k = this.options;
  7138. return k = k.minWidth > this.calculatedWidth ? k.minWidth : 0, { chartX: (R.chartX - this.x - this.xOffset) / (this.barWidth - k), chartY: (R.chartY - this.y - this.yOffset) / (this.barWidth - k) };
  7139. }, O.prototype.destroy = function() {
  7140. var R = this, k = R.chart.scroller;
  7141. R.removeEvents(), ["track", "scrollbarRifles", "scrollbar", "scrollbarGroup", "group"].forEach(function(b) {
  7142. R[b] && R[b].destroy && (R[b] = R[b].destroy());
  7143. }), k && R === k.scrollbar && (k.scrollbar = null, w(k.scrollbarButtons));
  7144. }, O.prototype.drawScrollbarButton = function(R) {
  7145. var k = this.renderer, b = this.scrollbarButtons, S = this.options, v = this.size, h = k.g().add(this.group);
  7146. b.push(h), h = k.rect().addClass("highcharts-scrollbar-button").add(h), this.chart.styledMode || h.attr({ stroke: S.buttonBorderColor, "stroke-width": S.buttonBorderWidth, fill: S.buttonBackgroundColor }), h.attr(h.crisp({ x: -0.5, y: -0.5, width: v + 1, height: v + 1, r: S.buttonBorderRadius }, h.strokeWidth())), h = k.path(O.swapXY([["M", v / 2 + (R ? -1 : 1), v / 2 - 3], ["L", v / 2 + (R ? -1 : 1), v / 2 + 3], ["L", v / 2 + (R ? 2 : -2), v / 2]], S.vertical)).addClass("highcharts-scrollbar-arrow").add(b[R]), this.chart.styledMode || h.attr({ fill: S.buttonArrowColor });
  7147. }, O.prototype.init = function(R, k, b) {
  7148. this.scrollbarButtons = [], this.renderer = R, this.userOptions = k, this.options = f(U, V.scrollbar, k), this.chart = b, this.size = l(this.options.size, this.options.height), k.enabled && (this.render(), this.addEvents());
  7149. }, O.prototype.mouseDownHandler = function(R) {
  7150. R = this.chart.pointer.normalize(R), R = this.cursorToScrollbarPosition(R), this.chartX = R.chartX, this.chartY = R.chartY, this.initPositions = [this.from, this.to], this.grabbedCenter = !0;
  7151. }, O.prototype.mouseMoveHandler = function(R) {
  7152. var k = this.chart.pointer.normalize(R), b = this.options.vertical ? "chartY" : "chartX", S = this.initPositions || [];
  7153. !this.grabbedCenter || R.touches && R.touches[0][b] === 0 || (k = this.cursorToScrollbarPosition(k)[b], b = this[b], b = k - b, this.hasDragged = !0, this.updatePosition(S[0] + b, S[1] + b), this.hasDragged && x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: R.type, DOMEvent: R }));
  7154. }, O.prototype.mouseUpHandler = function(R) {
  7155. this.hasDragged && x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: R.type, DOMEvent: R }), this.grabbedCenter = this.hasDragged = this.chartX = this.chartY = null;
  7156. }, O.prototype.position = function(R, k, b, S) {
  7157. var v = this.options.vertical, h = this.rendered ? "animate" : "attr", c = 0;
  7158. this.x = R, this.y = k + this.trackBorderWidth, this.width = b, this.xOffset = this.height = S, this.yOffset = c, v ? (this.width = this.yOffset = b = c = this.size, this.xOffset = k = 0, this.barWidth = S - 2 * b, this.x = R += this.options.margin) : (this.height = this.xOffset = S = k = this.size, this.barWidth = b - 2 * S, this.y += this.options.margin), this.group[h]({ translateX: R, translateY: this.y }), this.track[h]({ width: b, height: S }), this.scrollbarButtons[1][h]({ translateX: v ? 0 : b - k, translateY: v ? S - c : 0 });
  7159. }, O.prototype.removeEvents = function() {
  7160. this._events.forEach(function(R) {
  7161. T.apply(null, R);
  7162. }), this._events.length = 0;
  7163. }, O.prototype.render = function() {
  7164. var R = this.renderer, k = this.options, b = this.size, S = this.chart.styledMode, v = R.g("scrollbar").attr({ zIndex: k.zIndex, translateY: -99999 }).add();
  7165. this.group = v, this.track = R.rect().addClass("highcharts-scrollbar-track").attr({ x: 0, r: k.trackBorderRadius || 0, height: b, width: b }).add(v), S || this.track.attr({ fill: k.trackBackgroundColor, stroke: k.trackBorderColor, "stroke-width": k.trackBorderWidth }), this.trackBorderWidth = this.track.strokeWidth(), this.track.attr({ y: -this.trackBorderWidth % 2 / 2 }), this.scrollbarGroup = R.g().add(v), this.scrollbar = R.rect().addClass("highcharts-scrollbar-thumb").attr({ height: b, width: b, r: k.barBorderRadius || 0 }).add(this.scrollbarGroup), this.scrollbarRifles = R.path(O.swapXY([["M", -3, b / 4], ["L", -3, 2 * b / 3], ["M", 0, b / 4], ["L", 0, 2 * b / 3], ["M", 3, b / 4], ["L", 3, 2 * b / 3]], k.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup), S || (this.scrollbar.attr({ fill: k.barBackgroundColor, stroke: k.barBorderColor, "stroke-width": k.barBorderWidth }), this.scrollbarRifles.attr({ stroke: k.rifleColor, "stroke-width": 1 })), this.scrollbarStrokeWidth = this.scrollbar.strokeWidth(), this.scrollbarGroup.translate(-this.scrollbarStrokeWidth % 2 / 2, -this.scrollbarStrokeWidth % 2 / 2), this.drawScrollbarButton(0), this.drawScrollbarButton(1);
  7166. }, O.prototype.setRange = function(R, k) {
  7167. var b = this.options, S = b.vertical, v = b.minWidth, h = this.barWidth, c = !this.rendered || this.hasDragged || this.chart.navigator && this.chart.navigator.hasDragged ? "attr" : "animate";
  7168. if (j(h)) {
  7169. var u = h * Math.min(k, 1);
  7170. R = Math.max(R, 0);
  7171. var i = Math.ceil(h * R);
  7172. this.calculatedWidth = u = B(u - i), u < v && (i = (h - v + u) * R, u = v), v = Math.floor(i + this.xOffset + this.yOffset), h = u / 2 - 0.5, this.from = R, this.to = k, S ? (this.scrollbarGroup[c]({ translateY: v }), this.scrollbar[c]({ height: u }), this.scrollbarRifles[c]({ translateY: h }), this.scrollbarTop = v, this.scrollbarLeft = 0) : (this.scrollbarGroup[c]({ translateX: v }), this.scrollbar[c]({ width: u }), this.scrollbarRifles[c]({ translateX: h }), this.scrollbarLeft = v, this.scrollbarTop = 0), 12 >= u ? this.scrollbarRifles.hide() : this.scrollbarRifles.show(!0), b.showFull === !1 && (0 >= R && 1 <= k ? this.group.hide() : this.group.show()), this.rendered = !0;
  7173. }
  7174. }, O.prototype.shouldUpdateExtremes = function(R) {
  7175. return l(this.options.liveRedraw, N.svg && !N.isTouchDevice && !this.chart.isBoosting) || R === "mouseup" || R === "touchend" || !j(R);
  7176. }, O.prototype.trackClick = function(R) {
  7177. var k = this.chart.pointer.normalize(R), b = this.to - this.from, S = this.y + this.scrollbarTop, v = this.x + this.scrollbarLeft;
  7178. this.options.vertical && k.chartY > S || !this.options.vertical && k.chartX > v ? this.updatePosition(this.from + b, this.to + b) : this.updatePosition(this.from - b, this.to - b), x(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: R });
  7179. }, O.prototype.update = function(R) {
  7180. this.destroy(), this.init(this.chart.renderer, f(
  7181. !0,
  7182. this.options,
  7183. R
  7184. ), this.chart);
  7185. }, O.prototype.updatePosition = function(R, k) {
  7186. 1 < k && (R = B(1 - B(k - R)), k = 1), 0 > R && (k = B(k - R), R = 0), this.from = R, this.to = k;
  7187. }, O.defaultOptions = U, O;
  7188. }(), V.scrollbar = f(!0, y.defaultOptions, V.scrollbar), y;
  7189. }), C(o, "Core/Axis/NavigatorAxis.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  7190. var _ = y.isTouchDevice, U = N.addEvent, G = N.correctFloat, V = N.defined, F = N.isNumber, B = N.pick, j = function() {
  7191. function w(x) {
  7192. this.axis = x;
  7193. }
  7194. return w.prototype.destroy = function() {
  7195. this.axis = void 0;
  7196. }, w.prototype.toFixedRange = function(x, f, l, T) {
  7197. var O = this.axis, R = O.chart;
  7198. R = R && R.fixedRange;
  7199. var k = (O.pointRange || 0) / 2;
  7200. return x = B(l, O.translate(x, !0, !O.horiz)), f = B(T, O.translate(f, !0, !O.horiz)), O = R && (f - x) / R, V(l) || (x = G(x + k)), V(T) || (f = G(f - k)), 0.7 < O && 1.3 > O && (T ? x = f - R : f = x + R), F(x) && F(f) || (x = f = void 0), { min: x, max: f };
  7201. }, w;
  7202. }();
  7203. return function() {
  7204. function w() {
  7205. }
  7206. return w.compose = function(x) {
  7207. x.keepProps.push("navigatorAxis"), U(x, "init", function() {
  7208. this.navigatorAxis || (this.navigatorAxis = new j(this));
  7209. }), U(x, "zoom", function(f) {
  7210. var l = this.chart.options, T = l.navigator, O = this.navigatorAxis, R = l.chart.pinchType, k = l.rangeSelector;
  7211. l = l.chart.zoomType, this.isXAxis && (T && T.enabled || k && k.enabled) && (l === "y" ? f.zoomed = !1 : (!_ && l === "xy" || _ && R === "xy") && this.options.range && (T = O.previousZoom, V(f.newMin) ? O.previousZoom = [this.min, this.max] : T && (f.newMin = T[0], f.newMax = T[1], O.previousZoom = void 0))), typeof f.zoomed < "u" && f.preventDefault();
  7212. });
  7213. }, w.AdditionsClass = j, w;
  7214. }();
  7215. }), C(o, "Core/Navigator.js", [
  7216. o["Core/Axis/Axis.js"],
  7217. o["Core/Chart/Chart.js"],
  7218. o["Core/Color/Color.js"],
  7219. o["Core/Globals.js"],
  7220. o["Core/Axis/NavigatorAxis.js"],
  7221. o["Core/DefaultOptions.js"],
  7222. o["Core/Renderer/RendererRegistry.js"],
  7223. o["Core/Scrollbar.js"],
  7224. o["Core/Series/Series.js"],
  7225. o["Core/Series/SeriesRegistry.js"],
  7226. o["Core/Utilities.js"]
  7227. ], function(y, N, _, U, G, V, F, B, j, w, x) {
  7228. _ = _.parse;
  7229. var f = U.hasTouch, l = U.isTouchDevice, T = V.defaultOptions, O = x.addEvent, R = x.clamp, k = x.correctFloat, b = x.defined, S = x.destroyObjectProperties, v = x.erase, h = x.extend, c = x.find, u = x.isArray, i = x.isNumber, p = x.merge, a = x.pick, t = x.removeEvent, s = x.splat, n = function(D) {
  7230. for (var I = [], W = 1; W < arguments.length; W++)
  7231. I[W - 1] = arguments[W];
  7232. if (I = [].filter.call(I, i), I.length)
  7233. return Math[D].apply(0, I);
  7234. };
  7235. V = typeof w.seriesTypes.areaspline > "u" ? "line" : "areaspline", h(T, { navigator: { height: 40, margin: 25, maskInside: !0, handles: { width: 7, height: 15, symbols: ["navigator-handle", "navigator-handle"], enabled: !0, lineWidth: 1, backgroundColor: "#f2f2f2", borderColor: "#999999" }, maskFill: _("#6685c2").setOpacity(0.3).get(), outlineColor: "#cccccc", outlineWidth: 1, series: {
  7236. type: V,
  7237. fillOpacity: 0.05,
  7238. lineWidth: 1,
  7239. compare: null,
  7240. dataGrouping: { approximation: "average", enabled: !0, groupPixelWidth: 2, firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", units: [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2, 3, 4]], ["week", [1, 2, 3]], ["month", [1, 3, 6]], ["year", null]] },
  7241. dataLabels: { enabled: !1, zIndex: 2 },
  7242. id: "highcharts-navigator-series",
  7243. className: "highcharts-navigator-series",
  7244. lineColor: null,
  7245. marker: { enabled: !1 },
  7246. threshold: null
  7247. }, xAxis: { overscroll: 0, className: "highcharts-navigator-xaxis", tickLength: 0, lineWidth: 0, gridLineColor: "#e6e6e6", gridLineWidth: 1, tickPixelInterval: 200, labels: { align: "left", style: { color: "#999999" }, x: 3, y: -4 }, crosshair: !1 }, yAxis: { className: "highcharts-navigator-yaxis", gridLineWidth: 0, startOnTick: !1, endOnTick: !1, minPadding: 0.1, maxPadding: 0.1, labels: { enabled: !1 }, crosshair: !1, title: { text: null }, tickLength: 0, tickWidth: 0 } } }), F.getRendererType().prototype.symbols["navigator-handle"] = function(D, I, W, E, X) {
  7248. return D = (X && X.width || 0) / 2, I = Math.round(D / 3) + 0.5, X = X && X.height || 0, [["M", -D - 1, 0.5], ["L", D, 0.5], ["L", D, X + 0.5], ["L", -D - 1, X + 0.5], ["L", -D - 1, 0.5], ["M", -I, 4], ["L", -I, X - 3], ["M", I - 1, 4], ["L", I - 1, X - 3]];
  7249. };
  7250. var P = function() {
  7251. function D(I) {
  7252. this.zoomedMin = this.zoomedMax = this.yAxis = this.xAxis = this.top = this.size = this.shades = this.rendered = this.range = this.outlineHeight = this.outline = this.opposite = this.navigatorSize = this.navigatorSeries = this.navigatorOptions = this.navigatorGroup = this.navigatorEnabled = this.left = this.height = this.handles = this.chart = this.baseSeries = void 0, this.init(I);
  7253. }
  7254. return D.prototype.drawHandle = function(I, W, E, X) {
  7255. var g = this.navigatorOptions.handles.height;
  7256. this.handles[W][X](E ? { translateX: Math.round(this.left + this.height / 2), translateY: Math.round(this.top + parseInt(I, 10) + 0.5 - g) } : { translateX: Math.round(this.left + parseInt(I, 10)), translateY: Math.round(this.top + this.height / 2 - g / 2 - 1) });
  7257. }, D.prototype.drawOutline = function(I, W, E, X) {
  7258. var g = this.navigatorOptions.maskInside, m = this.outline.strokeWidth(), L = m / 2, z = m % 2 / 2;
  7259. m = this.outlineHeight;
  7260. var $ = this.scrollbarHeight || 0, Q = this.size, A = this.left - $, H = this.top;
  7261. E ? (A -= L, E = H + W + z, W = H + I + z, z = [["M", A + m, H - $ - z], ["L", A + m, E], ["L", A, E], ["L", A, W], ["L", A + m, W], ["L", A + m, H + Q + $]], g && z.push(["M", A + m, E - L], ["L", A + m, W + L])) : (I += A + $ - z, W += A + $ - z, H += L, z = [["M", A, H], ["L", I, H], ["L", I, H + m], ["L", W, H + m], ["L", W, H], ["L", A + Q + 2 * $, H]], g && z.push(["M", I - L, H], ["L", W + L, H])), this.outline[X]({ d: z });
  7262. }, D.prototype.drawMasks = function(I, W, E, X) {
  7263. var g = this.left, m = this.top, L = this.height;
  7264. if (E)
  7265. var z = [g, g, g], $ = [m, m + I, m + W], Q = [L, L, L], A = [I, W - I, this.size - W];
  7266. else
  7267. z = [g, g + I, g + W], $ = [m, m, m], Q = [I, W - I, this.size - W], A = [L, L, L];
  7268. this.shades.forEach(function(H, Y) {
  7269. H[X]({ x: z[Y], y: $[Y], width: Q[Y], height: A[Y] });
  7270. });
  7271. }, D.prototype.renderElements = function() {
  7272. var I = this, W = I.navigatorOptions, E = W.maskInside, X = I.chart, g = X.renderer, m, L = { cursor: X.inverted ? "ns-resize" : "ew-resize" };
  7273. I.navigatorGroup = m = g.g("navigator").attr({ zIndex: 8, visibility: "hidden" }).add(), [!E, E, !E].forEach(function(z, $) {
  7274. I.shades[$] = g.rect().addClass("highcharts-navigator-mask" + ($ === 1 ? "-inside" : "-outside")).add(m), X.styledMode || I.shades[$].attr({ fill: z ? W.maskFill : "rgba(0,0,0,0)" }).css($ === 1 && L);
  7275. }), I.outline = g.path().addClass("highcharts-navigator-outline").add(m), X.styledMode || I.outline.attr({ "stroke-width": W.outlineWidth, stroke: W.outlineColor }), W.handles.enabled && [0, 1].forEach(function(z) {
  7276. if (W.handles.inverted = X.inverted, I.handles[z] = g.symbol(W.handles.symbols[z], -W.handles.width / 2 - 1, 0, W.handles.width, W.handles.height, W.handles), I.handles[z].attr({ zIndex: 7 - z }).addClass("highcharts-navigator-handle highcharts-navigator-handle-" + ["left", "right"][z]).add(m), !X.styledMode) {
  7277. var $ = W.handles;
  7278. I.handles[z].attr({ fill: $.backgroundColor, stroke: $.borderColor, "stroke-width": $.lineWidth }).css(L);
  7279. }
  7280. });
  7281. }, D.prototype.update = function(I) {
  7282. (this.series || []).forEach(function(W) {
  7283. W.baseSeries && delete W.baseSeries.navigatorSeries;
  7284. }), this.destroy(), p(!0, this.chart.options.navigator, this.options, I), this.init(this.chart);
  7285. }, D.prototype.render = function(I, W, E, X) {
  7286. var g = this.chart, m = this.scrollbarHeight, L, z = this.xAxis, $ = z.pointRange || 0, Q = z.navigatorAxis.fake ? g.xAxis[0] : z, A = this.navigatorEnabled, H, Y = this.rendered, Z = g.inverted, q = g.xAxis[0].minRange, it = g.xAxis[0].options.maxRange;
  7287. if (!this.hasDragged || b(E)) {
  7288. if (I = k(I - $ / 2), W = k(W + $ / 2), !i(I) || !i(W))
  7289. if (Y)
  7290. E = 0, X = a(z.width, Q.width);
  7291. else
  7292. return;
  7293. this.left = a(z.left, g.plotLeft + m + (Z ? g.plotWidth : 0)), this.size = H = L = a(z.len, (Z ? g.plotHeight : g.plotWidth) - 2 * m), g = Z ? m : L + 2 * m, E = a(E, z.toPixels(I, !0)), X = a(X, z.toPixels(W, !0)), i(E) && Math.abs(E) !== 1 / 0 || (E = 0, X = g), I = z.toValue(E, !0), W = z.toValue(X, !0);
  7294. var et = Math.abs(k(W - I));
  7295. et < q ? this.grabbedLeft ? E = z.toPixels(W - q - $, !0) : this.grabbedRight && (X = z.toPixels(I + q + $, !0)) : b(it) && k(et - $) > it && (this.grabbedLeft ? E = z.toPixels(W - it - $, !0) : this.grabbedRight && (X = z.toPixels(I + it + $, !0))), this.zoomedMax = R(Math.max(E, X), 0, H), this.zoomedMin = R(this.fixedWidth ? this.zoomedMax - this.fixedWidth : Math.min(E, X), 0, H), this.range = this.zoomedMax - this.zoomedMin, H = Math.round(this.zoomedMax), E = Math.round(this.zoomedMin), A && (this.navigatorGroup.attr({ visibility: "visible" }), Y = Y && !this.hasDragged ? "animate" : "attr", this.drawMasks(E, H, Z, Y), this.drawOutline(E, H, Z, Y), this.navigatorOptions.handles.enabled && (this.drawHandle(E, 0, Z, Y), this.drawHandle(H, 1, Z, Y))), this.scrollbar && (Z ? (Z = this.top - m, Q = this.left - m + (A || !Q.opposite ? 0 : (Q.titleOffset || 0) + Q.axisTitleMargin), m = L + 2 * m) : (Z = this.top + (A ? this.height : -m), Q = this.left - m), this.scrollbar.position(Q, Z, g, m), this.scrollbar.setRange(this.zoomedMin / (L || 1), this.zoomedMax / (L || 1))), this.rendered = !0;
  7296. }
  7297. }, D.prototype.addMouseEvents = function() {
  7298. var I = this, W = I.chart, E = W.container, X = [], g, m;
  7299. I.mouseMoveHandler = g = function(L) {
  7300. I.onMouseMove(L);
  7301. }, I.mouseUpHandler = m = function(L) {
  7302. I.onMouseUp(L);
  7303. }, X = I.getPartsEvents("mousedown"), X.push(O(W.renderTo, "mousemove", g), O(E.ownerDocument, "mouseup", m)), f && (X.push(O(W.renderTo, "touchmove", g), O(E.ownerDocument, "touchend", m)), X.concat(I.getPartsEvents("touchstart"))), I.eventsToUnbind = X, I.series && I.series[0] && X.push(O(I.series[0].xAxis, "foundExtremes", function() {
  7304. W.navigator.modifyNavigatorAxisExtremes();
  7305. }));
  7306. }, D.prototype.getPartsEvents = function(I) {
  7307. var W = this, E = [];
  7308. return ["shades", "handles"].forEach(function(X) {
  7309. W[X].forEach(function(g, m) {
  7310. E.push(O(g.element, I, function(L) {
  7311. W[X + "Mousedown"](L, m);
  7312. }));
  7313. });
  7314. }), E;
  7315. }, D.prototype.shadesMousedown = function(I, W) {
  7316. I = this.chart.pointer.normalize(I);
  7317. var E = this.chart, X = this.xAxis, g = this.zoomedMin, m = this.left, L = this.size, z = this.range, $ = I.chartX;
  7318. if (E.inverted && ($ = I.chartY, m = this.top), W === 1)
  7319. this.grabbedCenter = $, this.fixedWidth = z, this.dragOffset = $ - g;
  7320. else {
  7321. if (I = $ - m - z / 2, W === 0)
  7322. I = Math.max(0, I);
  7323. else if (W === 2 && I + z >= L)
  7324. if (I = L - z, this.reversedExtremes) {
  7325. I -= z;
  7326. var Q = this.getUnionExtremes().dataMin;
  7327. } else
  7328. var A = this.getUnionExtremes().dataMax;
  7329. I !== g && (this.fixedWidth = z, W = X.navigatorAxis.toFixedRange(I, I + z, Q, A), b(W.min) && E.xAxis[0].setExtremes(Math.min(W.min, W.max), Math.max(W.min, W.max), !0, null, { trigger: "navigator" }));
  7330. }
  7331. }, D.prototype.handlesMousedown = function(I, W) {
  7332. this.chart.pointer.normalize(I), I = this.chart;
  7333. var E = I.xAxis[0], X = this.reversedExtremes;
  7334. W === 0 ? (this.grabbedLeft = !0, this.otherHandlePos = this.zoomedMax, this.fixedExtreme = X ? E.min : E.max) : (this.grabbedRight = !0, this.otherHandlePos = this.zoomedMin, this.fixedExtreme = X ? E.max : E.min), I.fixedRange = null;
  7335. }, D.prototype.onMouseMove = function(I) {
  7336. var W = this, E = W.chart, X = W.left, g = W.navigatorSize, m = W.range, L = W.dragOffset, z = E.inverted;
  7337. I.touches && I.touches[0].pageX === 0 || (I = E.pointer.normalize(I), E = I.chartX, z && (X = W.top, E = I.chartY), W.grabbedLeft ? (W.hasDragged = !0, W.render(0, 0, E - X, W.otherHandlePos)) : W.grabbedRight ? (W.hasDragged = !0, W.render(0, 0, W.otherHandlePos, E - X)) : W.grabbedCenter && (W.hasDragged = !0, E < L ? E = L : E > g + L - m && (E = g + L - m), W.render(0, 0, E - L, E - L + m)), W.hasDragged && W.scrollbar && a(W.scrollbar.options.liveRedraw, U.svg && !l && !this.chart.isBoosting) && (I.DOMType = I.type, setTimeout(function() {
  7338. W.onMouseUp(I);
  7339. }, 0)));
  7340. }, D.prototype.onMouseUp = function(I) {
  7341. var W = this.chart, E = this.xAxis, X = this.scrollbar, g = I.DOMEvent || I, m = W.inverted, L = this.rendered && !this.hasDragged ? "animate" : "attr";
  7342. if (this.hasDragged && (!X || !X.hasDragged) || I.trigger === "scrollbar") {
  7343. if (X = this.getUnionExtremes(), this.zoomedMin === this.otherHandlePos)
  7344. var z = this.fixedExtreme;
  7345. else if (this.zoomedMax === this.otherHandlePos)
  7346. var $ = this.fixedExtreme;
  7347. this.zoomedMax === this.size && ($ = this.reversedExtremes ? X.dataMin : X.dataMax), this.zoomedMin === 0 && (z = this.reversedExtremes ? X.dataMax : X.dataMin), E = E.navigatorAxis.toFixedRange(this.zoomedMin, this.zoomedMax, z, $), b(E.min) && W.xAxis[0].setExtremes(Math.min(E.min, E.max), Math.max(E.min, E.max), !0, this.hasDragged ? !1 : null, { trigger: "navigator", triggerOp: "navigator-drag", DOMEvent: g });
  7348. }
  7349. I.DOMType !== "mousemove" && I.DOMType !== "touchmove" && (this.grabbedLeft = this.grabbedRight = this.grabbedCenter = this.fixedWidth = this.fixedExtreme = this.otherHandlePos = this.hasDragged = this.dragOffset = null), this.navigatorEnabled && i(this.zoomedMin) && i(this.zoomedMax) && (W = Math.round(this.zoomedMin), I = Math.round(this.zoomedMax), this.shades && this.drawMasks(W, I, m, L), this.outline && this.drawOutline(W, I, m, L), this.navigatorOptions.handles.enabled && Object.keys(this.handles).length === this.handles.length && (this.drawHandle(W, 0, m, L), this.drawHandle(I, 1, m, L)));
  7350. }, D.prototype.removeEvents = function() {
  7351. this.eventsToUnbind && (this.eventsToUnbind.forEach(function(I) {
  7352. I();
  7353. }), this.eventsToUnbind = void 0), this.removeBaseSeriesEvents();
  7354. }, D.prototype.removeBaseSeriesEvents = function() {
  7355. var I = this.baseSeries || [];
  7356. this.navigatorEnabled && I[0] && (this.navigatorOptions.adaptToUpdatedData !== !1 && I.forEach(function(W) {
  7357. t(W, "updatedData", this.updatedDataHandler);
  7358. }, this), I[0].xAxis && t(I[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes));
  7359. }, D.prototype.init = function(I) {
  7360. var W = I.options, E = W.navigator, X = E.enabled, g = W.scrollbar, m = g.enabled;
  7361. W = X ? E.height : 0;
  7362. var L = m ? g.height : 0;
  7363. this.handles = [], this.shades = [], this.chart = I, this.setBaseSeries(), this.height = W, this.scrollbarHeight = L, this.scrollbarEnabled = m, this.navigatorEnabled = X, this.navigatorOptions = E, this.scrollbarOptions = g, this.outlineHeight = W + L, this.opposite = a(E.opposite, !(X || !I.inverted));
  7364. var z = this;
  7365. X = z.baseSeries, g = I.xAxis.length, m = I.yAxis.length;
  7366. var $ = X && X[0] && X[0].xAxis || I.xAxis[0] || { options: {} };
  7367. I.isDirtyBox = !0, z.navigatorEnabled ? (z.xAxis = new y(I, p(
  7368. { breaks: $.options.breaks, ordinal: $.options.ordinal },
  7369. E.xAxis,
  7370. { id: "navigator-x-axis", yAxis: "navigator-y-axis", isX: !0, type: "datetime", index: g, isInternal: !0, offset: 0, keepOrdinalPadding: !0, startOnTick: !1, endOnTick: !1, minPadding: 0, maxPadding: 0, zoomEnabled: !1 },
  7371. I.inverted ? { offsets: [L, 0, -L, 0], width: W } : { offsets: [0, -L, 0, L], height: W }
  7372. )), z.yAxis = new y(I, p(E.yAxis, { id: "navigator-y-axis", alignTicks: !1, offset: 0, index: m, isInternal: !0, reversed: a(E.yAxis && E.yAxis.reversed, I.yAxis[0] && I.yAxis[0].reversed, !1), zoomEnabled: !1 }, I.inverted ? { width: W } : { height: W })), X || E.series.data ? z.updateNavigatorSeries(!1) : I.series.length === 0 && (z.unbindRedraw = O(I, "beforeRedraw", function() {
  7373. 0 < I.series.length && !z.series && (z.setBaseSeries(), z.unbindRedraw());
  7374. })), z.reversedExtremes = I.inverted && !z.xAxis.reversed || !I.inverted && z.xAxis.reversed, z.renderElements(), z.addMouseEvents()) : (z.xAxis = {
  7375. chart: I,
  7376. navigatorAxis: { fake: !0 },
  7377. translate: function(Q, A) {
  7378. var H = I.xAxis[0], Y = H.getExtremes(), Z = H.len - 2 * L, q = n("min", H.options.min, Y.dataMin);
  7379. return H = n("max", H.options.max, Y.dataMax) - q, A ? Q * H / Z + q : Z * (Q - q) / H;
  7380. },
  7381. toPixels: function(Q) {
  7382. return this.translate(Q);
  7383. },
  7384. toValue: function(Q) {
  7385. return this.translate(Q, !0);
  7386. }
  7387. }, z.xAxis.navigatorAxis.axis = z.xAxis, z.xAxis.navigatorAxis.toFixedRange = G.AdditionsClass.prototype.toFixedRange.bind(z.xAxis.navigatorAxis)), I.options.scrollbar.enabled && (I.scrollbar = z.scrollbar = new B(I.renderer, p(I.options.scrollbar, { margin: z.navigatorEnabled ? 0 : 10, vertical: I.inverted }), I), O(z.scrollbar, "changed", function(Q) {
  7388. var A = z.size, H = A * this.to;
  7389. A *= this.from, z.hasDragged = z.scrollbar.hasDragged, z.render(0, 0, A, H), this.shouldUpdateExtremes(Q.DOMType) && setTimeout(function() {
  7390. z.onMouseUp(Q);
  7391. });
  7392. })), z.addBaseSeriesEvents(), z.addChartEvents();
  7393. }, D.prototype.getUnionExtremes = function(I) {
  7394. var W = this.chart.xAxis[0], E = this.xAxis, X = E.options, g = W.options, m;
  7395. return I && W.dataMin === null || (m = { dataMin: a(X && X.min, n("min", g.min, W.dataMin, E.dataMin, E.min)), dataMax: a(X && X.max, n("max", g.max, W.dataMax, E.dataMax, E.max)) }), m;
  7396. }, D.prototype.setBaseSeries = function(I, W) {
  7397. var E = this.chart, X = this.baseSeries = [];
  7398. I = I || E.options && E.options.navigator.baseSeries || (E.series.length ? c(
  7399. E.series,
  7400. function(g) {
  7401. return !g.options.isInternal;
  7402. }
  7403. ).index : 0), (E.series || []).forEach(function(g, m) {
  7404. g.options.isInternal || !g.options.showInNavigator && (m !== I && g.options.id !== I || g.options.showInNavigator === !1) || X.push(g);
  7405. }), this.xAxis && !this.xAxis.navigatorAxis.fake && this.updateNavigatorSeries(!0, W);
  7406. }, D.prototype.updateNavigatorSeries = function(I, W) {
  7407. var E = this, X = E.chart, g = E.baseSeries, m, L, z = E.navigatorOptions.series, $, Q = {
  7408. enableMouseTracking: !1,
  7409. index: null,
  7410. linkedTo: null,
  7411. group: "nav",
  7412. padXAxis: !1,
  7413. xAxis: "navigator-x-axis",
  7414. yAxis: "navigator-y-axis",
  7415. showInLegend: !1,
  7416. stacking: void 0,
  7417. isInternal: !0,
  7418. states: { inactive: { opacity: 1 } }
  7419. }, A = E.series = (E.series || []).filter(function(H) {
  7420. var Y = H.baseSeries;
  7421. return 0 > g.indexOf(Y) ? (Y && (t(Y, "updatedData", E.updatedDataHandler), delete Y.navigatorSeries), H.chart && H.destroy(), !1) : !0;
  7422. });
  7423. g && g.length && g.forEach(function(H) {
  7424. var Y = H.navigatorSeries, Z = h({ color: H.color, visible: H.visible }, u(z) ? T.navigator.series : z);
  7425. Y && E.navigatorOptions.adaptToUpdatedData === !1 || (Q.name = "Navigator " + g.length, m = H.options || {}, $ = m.navigatorOptions || {}, Z.dataLabels = s(Z.dataLabels), L = p(m, Q, Z, $), L.pointRange = a(Z.pointRange, $.pointRange, T.plotOptions[L.type || "line"].pointRange), Z = $.data || Z.data, E.hasNavigatorData = E.hasNavigatorData || !!Z, L.data = Z || m.data && m.data.slice(0), Y && Y.options ? Y.update(L, W) : (H.navigatorSeries = X.initSeries(L), H.navigatorSeries.baseSeries = H, A.push(H.navigatorSeries)));
  7426. }), (z.data && (!g || !g.length) || u(z)) && (E.hasNavigatorData = !1, z = s(z), z.forEach(function(H, Y) {
  7427. Q.name = "Navigator " + (A.length + 1), L = p(
  7428. T.navigator.series,
  7429. { color: X.series[Y] && !X.series[Y].options.isInternal && X.series[Y].color || X.options.colors[Y] || X.options.colors[0] },
  7430. Q,
  7431. H
  7432. ), L.data = H.data, L.data && (E.hasNavigatorData = !0, A.push(X.initSeries(L)));
  7433. })), I && this.addBaseSeriesEvents();
  7434. }, D.prototype.addBaseSeriesEvents = function() {
  7435. var I = this, W = I.baseSeries || [];
  7436. W[0] && W[0].xAxis && W[0].eventsToUnbind.push(O(W[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes)), W.forEach(function(E) {
  7437. E.eventsToUnbind.push(O(E, "show", function() {
  7438. this.navigatorSeries && this.navigatorSeries.setVisible(
  7439. !0,
  7440. !1
  7441. );
  7442. })), E.eventsToUnbind.push(O(E, "hide", function() {
  7443. this.navigatorSeries && this.navigatorSeries.setVisible(!1, !1);
  7444. })), this.navigatorOptions.adaptToUpdatedData !== !1 && E.xAxis && E.eventsToUnbind.push(O(E, "updatedData", this.updatedDataHandler)), E.eventsToUnbind.push(O(E, "remove", function() {
  7445. this.navigatorSeries && (v(I.series, this.navigatorSeries), b(this.navigatorSeries.options) && this.navigatorSeries.remove(!1), delete this.navigatorSeries);
  7446. }));
  7447. }, this);
  7448. }, D.prototype.getBaseSeriesMin = function(I) {
  7449. return this.baseSeries.reduce(function(W, E) {
  7450. return Math.min(W, E.xData ? E.xData[0] : W);
  7451. }, I);
  7452. }, D.prototype.modifyNavigatorAxisExtremes = function() {
  7453. var I = this.xAxis, W;
  7454. typeof I.getExtremes < "u" && (!(W = this.getUnionExtremes(!0)) || W.dataMin === I.min && W.dataMax === I.max || (I.min = W.dataMin, I.max = W.dataMax));
  7455. }, D.prototype.modifyBaseAxisExtremes = function() {
  7456. var I = this.chart.navigator, W = this.getExtremes(), E = W.dataMin, X = W.dataMax;
  7457. W = W.max - W.min;
  7458. var g = I.stickToMin, m = I.stickToMax, L = a(this.options.overscroll, 0), z = I.series && I.series[0], $ = !!this.setExtremes;
  7459. if (!this.eventArgs || this.eventArgs.trigger !== "rangeSelectorButton") {
  7460. if (g)
  7461. var Q = E, A = Q + W;
  7462. m && (A = X + L, g || (Q = Math.max(E, A - W, I.getBaseSeriesMin(z && z.xData ? z.xData[0] : -Number.MAX_VALUE)))), $ && (g || m) && i(Q) && (this.min = this.userMin = Q, this.max = this.userMax = A);
  7463. }
  7464. I.stickToMin = I.stickToMax = null;
  7465. }, D.prototype.updatedDataHandler = function() {
  7466. var I = this.chart.navigator, W = this.navigatorSeries;
  7467. I.stickToMax = I.reversedExtremes ? Math.round(I.zoomedMin) === 0 : Math.round(I.zoomedMax) >= Math.round(I.size), I.stickToMin = I.shouldStickToMin(
  7468. this,
  7469. I
  7470. ), W && !I.hasNavigatorData && (W.options.pointStart = this.xData[0], W.setData(this.options.data, !1, null, !1));
  7471. }, D.prototype.shouldStickToMin = function(I, W) {
  7472. W = W.getBaseSeriesMin(I.xData[0]);
  7473. var E = I.xAxis;
  7474. I = E.max;
  7475. var X = E.min;
  7476. return E = E.options.range, i(I) && i(X) ? E && 0 < I - W ? I - W < E : X <= W : !1;
  7477. }, D.prototype.addChartEvents = function() {
  7478. this.eventsToUnbind || (this.eventsToUnbind = []), this.eventsToUnbind.push(O(this.chart, "redraw", function() {
  7479. var I = this.navigator, W = I && (I.baseSeries && I.baseSeries[0] && I.baseSeries[0].xAxis || this.xAxis[0]);
  7480. W && I.render(W.min, W.max);
  7481. }), O(this.chart, "getMargins", function() {
  7482. var I = this.navigator, W = I.opposite ? "plotTop" : "marginBottom";
  7483. this.inverted && (W = I.opposite ? "marginRight" : "plotLeft"), this[W] = (this[W] || 0) + (I.navigatorEnabled || !this.inverted ? I.outlineHeight : 0) + I.navigatorOptions.margin;
  7484. }));
  7485. }, D.prototype.destroy = function() {
  7486. this.removeEvents(), this.xAxis && (v(this.chart.xAxis, this.xAxis), v(this.chart.axes, this.xAxis)), this.yAxis && (v(this.chart.yAxis, this.yAxis), v(this.chart.axes, this.yAxis)), (this.series || []).forEach(function(I) {
  7487. I.destroy && I.destroy();
  7488. }), "series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(I) {
  7489. this[I] && this[I].destroy && this[I].destroy(), this[I] = null;
  7490. }, this), [this.handles].forEach(function(I) {
  7491. S(I);
  7492. }, this);
  7493. }, D;
  7494. }();
  7495. return U.Navigator || (U.Navigator = P, G.compose(y), O(N, "beforeShowResetZoom", function() {
  7496. var D = this.options, I = D.navigator, W = D.rangeSelector;
  7497. if ((I && I.enabled || W && W.enabled) && (!l && D.chart.zoomType === "x" || l && D.chart.pinchType === "x"))
  7498. return !1;
  7499. }), O(N, "beforeRender", function() {
  7500. var D = this.options;
  7501. (D.navigator.enabled || D.scrollbar.enabled) && (this.scroller = this.navigator = new P(this));
  7502. }), O(N, "afterSetChartSize", function() {
  7503. var D = this.legend, I = this.navigator;
  7504. if (I) {
  7505. var W = D && D.options, E = I.xAxis, X = I.yAxis, g = I.scrollbarHeight;
  7506. this.inverted ? (I.left = I.opposite ? this.chartWidth - g - I.height : this.spacing[3] + g, I.top = this.plotTop + g) : (I.left = a(E.left, this.plotLeft + g), I.top = I.navigatorOptions.top || this.chartHeight - I.height - g - this.spacing[2] - (this.rangeSelector && this.extraBottomMargin ? this.rangeSelector.getHeight() : 0) - (W && W.verticalAlign === "bottom" && W.layout !== "proximate" && W.enabled && !W.floating ? D.legendHeight + a(W.margin, 10) : 0) - (this.titleOffset ? this.titleOffset[2] : 0)), E && X && (this.inverted ? E.options.left = X.options.left = I.left : E.options.top = X.options.top = I.top, E.setAxisSize(), X.setAxisSize());
  7507. }
  7508. }), O(N, "update", function(D) {
  7509. var I = D.options.navigator || {}, W = D.options.scrollbar || {};
  7510. this.navigator || this.scroller || !I.enabled && !W.enabled || (p(
  7511. !0,
  7512. this.options.navigator,
  7513. I
  7514. ), p(!0, this.options.scrollbar, W), delete D.options.navigator, delete D.options.scrollbar);
  7515. }), O(N, "afterUpdate", function(D) {
  7516. this.navigator || this.scroller || !this.options.navigator.enabled && !this.options.scrollbar.enabled || (this.scroller = this.navigator = new P(this), a(D.redraw, !0) && this.redraw(D.animation));
  7517. }), O(N, "afterAddSeries", function() {
  7518. this.navigator && this.navigator.setBaseSeries(null, !1);
  7519. }), O(j, "afterUpdate", function() {
  7520. this.chart.navigator && !this.options.isInternal && this.chart.navigator.setBaseSeries(
  7521. null,
  7522. !1
  7523. );
  7524. }), N.prototype.callbacks.push(function(D) {
  7525. var I = D.navigator;
  7526. I && D.xAxis[0] && (D = D.xAxis[0].getExtremes(), I.render(D.min, D.max));
  7527. })), U.Navigator = P, U.Navigator;
  7528. }), C(o, "Extensions/RangeSelector.js", [o["Core/Axis/Axis.js"], o["Core/Chart/Chart.js"], o["Core/Globals.js"], o["Core/DefaultOptions.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V) {
  7529. function F(s) {
  7530. if (s.indexOf("%L") !== -1)
  7531. return "text";
  7532. var n = "aAdewbBmoyY".split("").some(function(D) {
  7533. return s.indexOf("%" + D) !== -1;
  7534. }), P = "HkIlMS".split("").some(function(D) {
  7535. return s.indexOf("%" + D) !== -1;
  7536. });
  7537. return n && P ? "datetime-local" : n ? "date" : P ? "time" : "text";
  7538. }
  7539. var B = U.defaultOptions, j = V.addEvent, w = V.createElement, x = V.css, f = V.defined, l = V.destroyObjectProperties, T = V.discardElement, O = V.extend, R = V.find, k = V.fireEvent, b = V.isNumber, S = V.merge, v = V.objectEach, h = V.pad, c = V.pick, u = V.pInt, i = V.splat;
  7540. O(B, { rangeSelector: { allButtonsEnabled: !1, buttons: void 0, buttonSpacing: 5, dropdown: "responsive", enabled: void 0, verticalAlign: "top", buttonTheme: {
  7541. width: 28,
  7542. height: 18,
  7543. padding: 2,
  7544. zIndex: 7
  7545. }, floating: !1, x: 0, y: 0, height: void 0, inputBoxBorderColor: "none", inputBoxHeight: 17, inputBoxWidth: void 0, inputDateFormat: "%b %e, %Y", inputDateParser: void 0, inputEditDateFormat: "%Y-%m-%d", inputEnabled: !0, inputPosition: { align: "right", x: 0, y: 0 }, inputSpacing: 5, selected: void 0, buttonPosition: { align: "left", x: 0, y: 0 }, inputStyle: { color: "#335cad", cursor: "pointer" }, labelStyle: { color: "#666666" } } }), O(B.lang, { rangeSelectorZoom: "Zoom", rangeSelectorFrom: "", rangeSelectorTo: "→" });
  7546. var p = function() {
  7547. function s(n) {
  7548. this.buttons = void 0, this.buttonOptions = s.prototype.defaultButtons, this.initialButtonGroupWidth = 0, this.options = void 0, this.chart = n, this.init(n);
  7549. }
  7550. return s.prototype.clickButton = function(n, P) {
  7551. var D = this.chart, I = this.buttonOptions[n], W = D.xAxis[0], E = D.scroller && D.scroller.getUnionExtremes() || W || {}, X = E.dataMin, g = E.dataMax, m = W && Math.round(Math.min(W.max, c(g, W.max))), L = I.type;
  7552. E = I._range;
  7553. var z, $ = I.dataGrouping;
  7554. if (X !== null && g !== null) {
  7555. if (D.fixedRange = E, this.setSelected(n), $ && (this.forcedDataGrouping = !0, y.prototype.setDataGrouping.call(W || { chart: this.chart }, $, !1), this.frozenStates = I.preserveDataGrouping), L === "month" || L === "year")
  7556. if (W) {
  7557. L = { range: I, max: m, chart: D, dataMin: X, dataMax: g };
  7558. var Q = W.minFromRange.call(L);
  7559. b(L.newMax) && (m = L.newMax);
  7560. } else
  7561. E = I;
  7562. else if (E)
  7563. Q = Math.max(m - E, X), m = Math.min(Q + E, g);
  7564. else if (L === "ytd")
  7565. if (W)
  7566. typeof g > "u" && (X = Number.MAX_VALUE, g = Number.MIN_VALUE, D.series.forEach(function(Z) {
  7567. Z = Z.xData, X = Math.min(Z[0], X), g = Math.max(Z[Z.length - 1], g);
  7568. }), P = !1), m = this.getYTDExtremes(
  7569. g,
  7570. X,
  7571. D.time.useUTC
  7572. ), Q = z = m.min, m = m.max;
  7573. else {
  7574. this.deferredYTDClick = n;
  7575. return;
  7576. }
  7577. else
  7578. L === "all" && W && (D.navigator && D.navigator.baseSeries[0] && (D.navigator.baseSeries[0].xAxis.options.range = void 0), Q = X, m = g);
  7579. if (f(Q) && (Q += I._offsetMin), f(m) && (m += I._offsetMax), this.dropdown && (this.dropdown.selectedIndex = n + 1), W)
  7580. W.setExtremes(Q, m, c(P, !0), void 0, { trigger: "rangeSelectorButton", rangeSelectorButton: I });
  7581. else {
  7582. var A = i(D.options.xAxis)[0], H = A.range;
  7583. A.range = E;
  7584. var Y = A.min;
  7585. A.min = z, j(D, "load", function() {
  7586. A.range = H, A.min = Y;
  7587. });
  7588. }
  7589. k(
  7590. this,
  7591. "afterBtnClick"
  7592. );
  7593. }
  7594. }, s.prototype.setSelected = function(n) {
  7595. this.selected = this.options.selected = n;
  7596. }, s.prototype.init = function(n) {
  7597. var P = this, D = n.options.rangeSelector, I = D.buttons || P.defaultButtons.slice(), W = D.selected, E = function() {
  7598. var X = P.minInput, g = P.maxInput;
  7599. X && X.blur && k(X, "blur"), g && g.blur && k(g, "blur");
  7600. };
  7601. P.chart = n, P.options = D, P.buttons = [], P.buttonOptions = I, this.eventsToUnbind = [], this.eventsToUnbind.push(j(n.container, "mousedown", E)), this.eventsToUnbind.push(j(n, "resize", E)), I.forEach(P.computeButtonRange), typeof W < "u" && I[W] && this.clickButton(W, !1), this.eventsToUnbind.push(j(n, "load", function() {
  7602. n.xAxis && n.xAxis[0] && j(n.xAxis[0], "setExtremes", function(X) {
  7603. this.max - this.min !== n.fixedRange && X.trigger !== "rangeSelectorButton" && X.trigger !== "updatedData" && P.forcedDataGrouping && !P.frozenStates && this.setDataGrouping(!1, !1);
  7604. });
  7605. }));
  7606. }, s.prototype.updateButtonStates = function() {
  7607. var n = this, P = this.chart, D = this.dropdown, I = P.xAxis[0], W = Math.round(I.max - I.min), E = !I.hasVisibleSeries, X = P.scroller && P.scroller.getUnionExtremes() || I, g = X.dataMin, m = X.dataMax;
  7608. P = n.getYTDExtremes(m, g, P.time.useUTC);
  7609. var L = P.min, z = P.max, $ = n.selected, Q = b($), A = n.options.allButtonsEnabled, H = n.buttons;
  7610. n.buttonOptions.forEach(function(Y, Z) {
  7611. var q = Y._range, it = Y.type, et = Y.count || 1, nt = H[Z], rt = 0, ct = Y._offsetMax - Y._offsetMin;
  7612. Y = Z === $;
  7613. var gt = q > m - g, dt = q < I.minRange, ht = !1, at = !1;
  7614. q = q === W, (it === "month" || it === "year") && W + 36e5 >= 864e5 * { month: 28, year: 365 }[it] * et - ct && W - 36e5 <= 864e5 * { month: 31, year: 366 }[it] * et + ct ? q = !0 : it === "ytd" ? (q = z - L + ct === W, ht = !Y) : it === "all" && (q = I.max - I.min >= m - g, at = !Y && Q && q), it = !A && (gt || dt || at || E), et = Y && q || q && !Q && !ht || Y && n.frozenStates, it ? rt = 3 : et && (Q = !0, rt = 2), nt.state !== rt && (nt.setState(rt), D && (D.options[Z + 1].disabled = it, rt === 2 && (D.selectedIndex = Z + 1)), rt === 0 && $ === Z && n.setSelected());
  7615. });
  7616. }, s.prototype.computeButtonRange = function(n) {
  7617. var P = n.type, D = n.count || 1, I = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5 };
  7618. I[P] ? n._range = I[P] * D : (P === "month" || P === "year") && (n._range = 864e5 * { month: 30, year: 365 }[P] * D), n._offsetMin = c(n.offsetMin, 0), n._offsetMax = c(n.offsetMax, 0), n._range += n._offsetMax - n._offsetMin;
  7619. }, s.prototype.getInputValue = function(n) {
  7620. n = n === "min" ? this.minInput : this.maxInput;
  7621. var P = this.chart.options.rangeSelector, D = this.chart.time;
  7622. return n ? (n.type === "text" && P.inputDateParser || this.defaultInputDateParser)(n.value, D.useUTC, D) : 0;
  7623. }, s.prototype.setInputValue = function(n, P) {
  7624. var D = this.options, I = this.chart.time, W = n === "min" ? this.minInput : this.maxInput;
  7625. if (n = n === "min" ? this.minDateBox : this.maxDateBox, W) {
  7626. var E = W.getAttribute("data-hc-time");
  7627. E = f(E) ? Number(E) : void 0, f(P) && (f(E) && W.setAttribute("data-hc-time-previous", E), W.setAttribute("data-hc-time", P), E = P), W.value = I.dateFormat(this.inputTypeFormats[W.type] || D.inputEditDateFormat, E), n && n.attr({ text: I.dateFormat(D.inputDateFormat, E) });
  7628. }
  7629. }, s.prototype.setInputExtremes = function(n, P, D) {
  7630. if (n = n === "min" ? this.minInput : this.maxInput) {
  7631. var I = this.inputTypeFormats[n.type], W = this.chart.time;
  7632. I && (P = W.dateFormat(I, P), n.min !== P && (n.min = P), D = W.dateFormat(I, D), n.max !== D && (n.max = D));
  7633. }
  7634. }, s.prototype.showInput = function(n) {
  7635. var P = n === "min" ? this.minDateBox : this.maxDateBox;
  7636. if ((n = n === "min" ? this.minInput : this.maxInput) && P && this.inputGroup) {
  7637. var D = n.type === "text", I = this.inputGroup, W = I.translateX;
  7638. I = I.translateY;
  7639. var E = this.options.inputBoxWidth;
  7640. x(n, { width: D ? P.width + (E ? -2 : 20) + "px" : "auto", height: D ? P.height - 2 + "px" : "auto", border: "2px solid silver" }), D && E ? x(n, { left: W + P.x + "px", top: I + "px" }) : x(n, { left: Math.min(Math.round(P.x + W - (n.offsetWidth - P.width) / 2), this.chart.chartWidth - n.offsetWidth) + "px", top: I - (n.offsetHeight - P.height) / 2 + "px" });
  7641. }
  7642. }, s.prototype.hideInput = function(n) {
  7643. (n = n === "min" ? this.minInput : this.maxInput) && x(n, { top: "-9999em", border: 0, width: "1px", height: "1px" });
  7644. }, s.prototype.defaultInputDateParser = function(n, P, D) {
  7645. var I = n.split("/").join("-").split(" ").join("T");
  7646. if (I.indexOf("T") === -1 && (I += "T00:00"), P)
  7647. I += "Z";
  7648. else {
  7649. var W;
  7650. (W = _.isSafari) && (W = I, W = !(6 < W.length && (W.lastIndexOf("-") === W.length - 6 || W.lastIndexOf("+") === W.length - 6))), W && (W = new Date(I).getTimezoneOffset() / 60, I += 0 >= W ? "+" + h(-W) + ":00" : "-" + h(W) + ":00");
  7651. }
  7652. return I = Date.parse(I), b(I) || (n = n.split("-"), I = Date.UTC(u(n[0]), u(n[1]) - 1, u(n[2]))), D && P && b(I) && (I += D.getTimezoneOffset(I)), I;
  7653. }, s.prototype.drawInput = function(n) {
  7654. function P() {
  7655. var A = E.getInputValue(n), H = D.xAxis[0], Y = D.scroller && D.scroller.xAxis ? D.scroller.xAxis : H, Z = Y.dataMin;
  7656. Y = Y.dataMax;
  7657. var q = E.maxInput, it = E.minInput;
  7658. A !== Number($.getAttribute("data-hc-time-previous")) && b(A) && ($.setAttribute("data-hc-time-previous", A), L && q && b(Z) ? A > Number(q.getAttribute("data-hc-time")) ? A = void 0 : A < Z && (A = Z) : it && b(Y) && (A < Number(it.getAttribute("data-hc-time")) ? A = void 0 : A > Y && (A = Y)), typeof A < "u" && H.setExtremes(L ? A : H.min, L ? H.max : A, void 0, void 0, { trigger: "rangeSelectorInput" }));
  7659. }
  7660. var D = this.chart, I = this.div, W = this.inputGroup, E = this, X = D.renderer.style || {}, g = D.renderer, m = D.options.rangeSelector, L = n === "min", z = B.lang[L ? "rangeSelectorFrom" : "rangeSelectorTo"] || "";
  7661. z = g.label(z, 0).addClass("highcharts-range-label").attr({ padding: z ? 2 : 0, height: z ? m.inputBoxHeight : 0 }).add(W), g = g.label("", 0).addClass("highcharts-range-input").attr({ padding: 2, width: m.inputBoxWidth, height: m.inputBoxHeight, "text-align": "center" }).on(
  7662. "click",
  7663. function() {
  7664. E.showInput(n), E[n + "Input"].focus();
  7665. }
  7666. ), D.styledMode || g.attr({ stroke: m.inputBoxBorderColor, "stroke-width": 1 }), g.add(W);
  7667. var $ = w("input", { name: n, className: "highcharts-range-selector" }, void 0, I);
  7668. $.setAttribute("type", F(m.inputDateFormat || "%b %e, %Y")), D.styledMode || (z.css(S(X, m.labelStyle)), g.css(S({ color: "#333333" }, X, m.inputStyle)), x($, O({
  7669. position: "absolute",
  7670. border: 0,
  7671. boxShadow: "0 0 15px rgba(0,0,0,0.3)",
  7672. width: "1px",
  7673. height: "1px",
  7674. padding: 0,
  7675. textAlign: "center",
  7676. fontSize: X.fontSize,
  7677. fontFamily: X.fontFamily,
  7678. top: "-9999em"
  7679. }, m.inputStyle))), $.onfocus = function() {
  7680. E.showInput(n);
  7681. }, $.onblur = function() {
  7682. $ === _.doc.activeElement && P(), E.hideInput(n), E.setInputValue(n), $.blur();
  7683. };
  7684. var Q = !1;
  7685. return $.onchange = function() {
  7686. Q || (P(), E.hideInput(n), $.blur());
  7687. }, $.onkeypress = function(A) {
  7688. A.keyCode === 13 && P();
  7689. }, $.onkeydown = function(A) {
  7690. Q = !0, A.keyCode !== 38 && A.keyCode !== 40 || P();
  7691. }, $.onkeyup = function() {
  7692. Q = !1;
  7693. }, { dateBox: g, input: $, label: z };
  7694. }, s.prototype.getPosition = function() {
  7695. var n = this.chart, P = n.options.rangeSelector;
  7696. return n = P.verticalAlign === "top" ? n.plotTop - n.axisOffset[0] : 0, { buttonTop: n + P.buttonPosition.y, inputTop: n + P.inputPosition.y - 10 };
  7697. }, s.prototype.getYTDExtremes = function(n, P, D) {
  7698. var I = this.chart.time, W = new I.Date(n), E = I.get("FullYear", W);
  7699. return D = D ? I.Date.UTC(E, 0, 1) : +new I.Date(E, 0, 1), P = Math.max(P, D), W = W.getTime(), { max: Math.min(n || W, W), min: P };
  7700. }, s.prototype.render = function(n, P) {
  7701. var D = this.chart, I = D.renderer, W = D.container, E = D.options, X = E.rangeSelector, g = c(E.chart.style && E.chart.style.zIndex, 0) + 1;
  7702. if (E = X.inputEnabled, X.enabled !== !1) {
  7703. if (this.rendered || (this.group = I.g("range-selector-group").attr({ zIndex: 7 }).add(), this.div = w("div", void 0, { position: "relative", height: 0, zIndex: g }), this.buttonOptions.length && this.renderButtons(), W.parentNode && W.parentNode.insertBefore(this.div, W), E && (this.inputGroup = I.g("input-group").add(this.group), I = this.drawInput("min"), this.minDateBox = I.dateBox, this.minLabel = I.label, this.minInput = I.input, I = this.drawInput("max"), this.maxDateBox = I.dateBox, this.maxLabel = I.label, this.maxInput = I.input)), E && (this.setInputValue(
  7704. "min",
  7705. n
  7706. ), this.setInputValue("max", P), n = D.scroller && D.scroller.getUnionExtremes() || D.xAxis[0] || {}, f(n.dataMin) && f(n.dataMax) && (D = D.xAxis[0].minRange || 0, this.setInputExtremes("min", n.dataMin, Math.min(n.dataMax, this.getInputValue("max")) - D), this.setInputExtremes("max", Math.max(n.dataMin, this.getInputValue("min")) + D, n.dataMax)), this.inputGroup)) {
  7707. var m = 0;
  7708. [this.minLabel, this.minDateBox, this.maxLabel, this.maxDateBox].forEach(function(L) {
  7709. if (L) {
  7710. var z = L.getBBox().width;
  7711. z && (L.attr({ x: m }), m += z + X.inputSpacing);
  7712. }
  7713. });
  7714. }
  7715. this.alignElements(), this.rendered = !0;
  7716. }
  7717. }, s.prototype.renderButtons = function() {
  7718. var n = this, P = this.buttons, D = this.options, I = B.lang, W = this.chart.renderer, E = S(D.buttonTheme), X = E && E.states, g = E.width || 28;
  7719. delete E.width, delete E.states, this.buttonGroup = W.g("range-selector-buttons").add(this.group);
  7720. var m = this.dropdown = w("select", void 0, { position: "absolute", width: "1px", height: "1px", padding: 0, border: 0, top: "-9999em", cursor: "pointer", opacity: 1e-4 }, this.div);
  7721. j(m, "touchstart", function() {
  7722. m.style.fontSize = "16px";
  7723. }), [[_.isMS ? "mouseover" : "mouseenter"], [_.isMS ? "mouseout" : "mouseleave"], ["change", "click"]].forEach(function(L) {
  7724. var z = L[0], $ = L[1];
  7725. j(m, z, function() {
  7726. var Q = P[n.currentButtonIndex()];
  7727. Q && k(Q.element, $ || z);
  7728. });
  7729. }), this.zoomText = W.label(I && I.rangeSelectorZoom || "", 0).attr({ padding: D.buttonTheme.padding, height: D.buttonTheme.height, paddingLeft: 0, paddingRight: 0 }).add(this.buttonGroup), this.chart.styledMode || (this.zoomText.css(D.labelStyle), E["stroke-width"] = c(E["stroke-width"], 0)), w(
  7730. "option",
  7731. { textContent: this.zoomText.textStr, disabled: !0 },
  7732. void 0,
  7733. m
  7734. ), this.buttonOptions.forEach(function(L, z) {
  7735. w("option", { textContent: L.title || L.text }, void 0, m), P[z] = W.button(L.text, 0, 0, function($) {
  7736. var Q = L.events && L.events.click, A;
  7737. Q && (A = Q.call(L, $)), A !== !1 && n.clickButton(z), n.isActive = !0;
  7738. }, E, X && X.hover, X && X.select, X && X.disabled).attr({ "text-align": "center", width: g }).add(n.buttonGroup), L.title && P[z].attr("title", L.title);
  7739. });
  7740. }, s.prototype.alignElements = function() {
  7741. var n = this, P = this.buttonGroup, D = this.buttons, I = this.chart, W = this.group, E = this.inputGroup, X = this.options, g = this.zoomText, m = I.options, L = m.exporting && m.exporting.enabled !== !1 && m.navigation && m.navigation.buttonOptions;
  7742. m = X.buttonPosition;
  7743. var z = X.inputPosition, $ = X.verticalAlign, Q = function(Z, q) {
  7744. return L && n.titleCollision(I) && $ === "top" && q.align === "right" && q.y - Z.getBBox().height - 12 < (L.y || 0) + (L.height || 0) + I.spacing[0] ? -40 : 0;
  7745. }, A = I.plotLeft;
  7746. if (W && m && z) {
  7747. var H = m.x - I.spacing[3];
  7748. if (P) {
  7749. if (this.positionButtons(), !this.initialButtonGroupWidth) {
  7750. var Y = 0;
  7751. g && (Y += g.getBBox().width + 5), D.forEach(function(Z, q) {
  7752. Y += Z.width, q !== D.length - 1 && (Y += X.buttonSpacing);
  7753. }), this.initialButtonGroupWidth = Y;
  7754. }
  7755. A -= I.spacing[3], this.updateButtonStates(), g = Q(P, m), this.alignButtonGroup(g), W.placed = P.placed = I.hasLoaded;
  7756. }
  7757. P = 0, E && (P = Q(E, z), z.align === "left" ? H = A : z.align === "right" && (H = -Math.max(I.axisOffset[1], -P)), E.align({ y: z.y, width: E.getBBox().width, align: z.align, x: z.x + H - 2 }, !0, I.spacingBox), E.placed = I.hasLoaded), this.handleCollision(P), W.align({ verticalAlign: $ }, !0, I.spacingBox), E = W.alignAttr.translateY, P = W.getBBox().height + 20, Q = 0, $ === "bottom" && (Q = (Q = I.legend && I.legend.options) && Q.verticalAlign === "bottom" && Q.enabled && !Q.floating ? I.legend.legendHeight + c(Q.margin, 10) : 0, P = P + Q - 20, Q = E - P - (X.floating ? 0 : X.y) - (I.titleOffset ? I.titleOffset[2] : 0) - 10), $ === "top" ? (X.floating && (Q = 0), I.titleOffset && I.titleOffset[0] && (Q = I.titleOffset[0]), Q += I.margin[0] - I.spacing[0] || 0) : $ === "middle" && (z.y === m.y ? Q = E : (z.y || m.y) && (Q = 0 > z.y || 0 > m.y ? Q - Math.min(z.y, m.y) : E - P)), W.translate(X.x, X.y + Math.floor(Q)), m = this.minInput, z = this.maxInput, E = this.dropdown, X.inputEnabled && m && z && (m.style.marginTop = W.translateY + "px", z.style.marginTop = W.translateY + "px"), E && (E.style.marginTop = W.translateY + "px");
  7758. }
  7759. }, s.prototype.alignButtonGroup = function(n, P) {
  7760. var D = this.chart, I = this.buttonGroup, W = this.options.buttonPosition, E = D.plotLeft - D.spacing[3], X = W.x - D.spacing[3];
  7761. W.align === "right" ? X += n - E : W.align === "center" && (X -= E / 2), I && I.align({ y: W.y, width: c(P, this.initialButtonGroupWidth), align: W.align, x: X }, !0, D.spacingBox);
  7762. }, s.prototype.positionButtons = function() {
  7763. var n = this.buttons, P = this.chart, D = this.options, I = this.zoomText, W = P.hasLoaded ? "animate" : "attr", E = D.buttonPosition, X = P.plotLeft, g = X;
  7764. I && I.visibility !== "hidden" && (I[W]({ x: c(X + E.x, X) }), g += E.x + I.getBBox().width + 5), this.buttonOptions.forEach(function(m, L) {
  7765. n[L].visibility !== "hidden" ? (n[L][W]({ x: g }), g += n[L].width + D.buttonSpacing) : n[L][W]({ x: X });
  7766. });
  7767. }, s.prototype.handleCollision = function(n) {
  7768. var P = this, D = this.chart, I = this.buttonGroup, W = this.inputGroup, E = this.options, X = E.buttonPosition, g = E.dropdown, m = E.inputPosition;
  7769. E = function() {
  7770. var $ = 0;
  7771. return P.buttons.forEach(function(Q) {
  7772. Q = Q.getBBox(), Q.width > $ && ($ = Q.width);
  7773. }), $;
  7774. };
  7775. var L = function($) {
  7776. if (W && I) {
  7777. var Q = W.alignAttr.translateX + W.alignOptions.x - n + W.getBBox().x + 2, A = W.alignOptions.width, H = I.alignAttr.translateX + I.getBBox().x;
  7778. return H + $ > Q && Q + A > H && X.y < m.y + W.getBBox().height;
  7779. }
  7780. return !1;
  7781. }, z = function() {
  7782. W && I && W.attr({ translateX: W.alignAttr.translateX + (D.axisOffset[1] >= -n ? 0 : -n), translateY: W.alignAttr.translateY + I.getBBox().height + 10 });
  7783. };
  7784. if (I) {
  7785. if (g === "always") {
  7786. this.collapseButtons(n), L(E()) && z();
  7787. return;
  7788. }
  7789. g === "never" && this.expandButtons();
  7790. }
  7791. W && I ? m.align === X.align || L(this.initialButtonGroupWidth + 20) ? g === "responsive" ? (this.collapseButtons(n), L(E()) && z()) : z() : g === "responsive" && this.expandButtons() : I && g === "responsive" && (this.initialButtonGroupWidth > D.plotWidth ? this.collapseButtons(n) : this.expandButtons());
  7792. }, s.prototype.collapseButtons = function(n) {
  7793. var P = this.buttons, D = this.buttonOptions, I = this.chart, W = this.dropdown, E = this.options, X = this.zoomText, g = I.userOptions.rangeSelector && I.userOptions.rangeSelector.buttonTheme || {}, m = function(z) {
  7794. return { text: z ? z + " ▾" : "▾", width: "auto", paddingLeft: c(E.buttonTheme.paddingLeft, g.padding, 8), paddingRight: c(E.buttonTheme.paddingRight, g.padding, 8) };
  7795. };
  7796. X && X.hide();
  7797. var L = !1;
  7798. D.forEach(function(z, $) {
  7799. $ = P[$], $.state !== 2 ? $.hide() : ($.show(), $.attr(m(z.text)), L = !0);
  7800. }), L || (W && (W.selectedIndex = 0), P[0].show(), P[0].attr(m(this.zoomText && this.zoomText.textStr))), D = E.buttonPosition.align, this.positionButtons(), D !== "right" && D !== "center" || this.alignButtonGroup(n, P[this.currentButtonIndex()].getBBox().width), this.showDropdown();
  7801. }, s.prototype.expandButtons = function() {
  7802. var n = this.buttons, P = this.buttonOptions, D = this.options, I = this.zoomText;
  7803. this.hideDropdown(), I && I.show(), P.forEach(function(W, E) {
  7804. E = n[E], E.show(), E.attr({ text: W.text, width: D.buttonTheme.width || 28, paddingLeft: c(D.buttonTheme.paddingLeft, "unset"), paddingRight: c(D.buttonTheme.paddingRight, "unset") }), 2 > E.state && E.setState(0);
  7805. }), this.positionButtons();
  7806. }, s.prototype.currentButtonIndex = function() {
  7807. var n = this.dropdown;
  7808. return n && 0 < n.selectedIndex ? n.selectedIndex - 1 : 0;
  7809. }, s.prototype.showDropdown = function() {
  7810. var n = this.buttonGroup, P = this.buttons, D = this.chart, I = this.dropdown;
  7811. if (n && I) {
  7812. var W = n.translateX;
  7813. n = n.translateY, P = P[this.currentButtonIndex()].getBBox(), x(I, { left: D.plotLeft + W + "px", top: n + 0.5 + "px", width: P.width + "px", height: P.height + "px" }), this.hasVisibleDropdown = !0;
  7814. }
  7815. }, s.prototype.hideDropdown = function() {
  7816. var n = this.dropdown;
  7817. n && (x(n, { top: "-9999em", width: "1px", height: "1px" }), this.hasVisibleDropdown = !1);
  7818. }, s.prototype.getHeight = function() {
  7819. var n = this.options, P = this.group, D = n.y, I = n.buttonPosition.y, W = n.inputPosition.y;
  7820. return n.height ? n.height : (this.alignElements(), n = P ? P.getBBox(!0).height + 13 + D : 0, P = Math.min(W, I), (0 > W && 0 > I || 0 < W && 0 < I) && (n += Math.abs(P)), n);
  7821. }, s.prototype.titleCollision = function(n) {
  7822. return !(n.options.title.text || n.options.subtitle.text);
  7823. }, s.prototype.update = function(n) {
  7824. var P = this.chart;
  7825. S(!0, P.options.rangeSelector, n), this.destroy(), this.init(P), this.render();
  7826. }, s.prototype.destroy = function() {
  7827. var n = this, P = n.minInput, D = n.maxInput;
  7828. n.eventsToUnbind && (n.eventsToUnbind.forEach(function(I) {
  7829. return I();
  7830. }), n.eventsToUnbind = void 0), l(n.buttons), P && (P.onfocus = P.onblur = P.onchange = null), D && (D.onfocus = D.onblur = D.onchange = null), v(n, function(I, W) {
  7831. I && W !== "chart" && (I instanceof G ? I.destroy() : I instanceof window.HTMLElement && T(I)), I !== s.prototype[W] && (n[W] = null);
  7832. }, this);
  7833. }, s;
  7834. }();
  7835. if (p.prototype.defaultButtons = [
  7836. { type: "month", count: 1, text: "1m", title: "View 1 month" },
  7837. { type: "month", count: 3, text: "3m", title: "View 3 months" },
  7838. { type: "month", count: 6, text: "6m", title: "View 6 months" },
  7839. { type: "ytd", text: "YTD", title: "View year to date" },
  7840. { type: "year", count: 1, text: "1y", title: "View 1 year" },
  7841. { type: "all", text: "All", title: "View all" }
  7842. ], p.prototype.inputTypeFormats = { "datetime-local": "%Y-%m-%dT%H:%M:%S", date: "%Y-%m-%d", time: "%H:%M:%S" }, y.prototype.minFromRange = function() {
  7843. var s = this.range, n = s.type, P = this.max, D = this.chart.time, I = function(g, m) {
  7844. var L = n === "year" ? "FullYear" : "Month", z = new D.Date(g), $ = D.get(L, z);
  7845. return D.set(L, z, $ + m), $ === D.get(L, z) && D.set("Date", z, 0), z.getTime() - g;
  7846. };
  7847. if (b(s))
  7848. var W = P - s, E = s;
  7849. else
  7850. W = P + I(P, -s.count), this.chart && (this.chart.fixedRange = P - W);
  7851. var X = c(this.dataMin, Number.MIN_VALUE);
  7852. return b(W) || (W = X), W <= X && (W = X, typeof E > "u" && (E = I(W, s.count)), this.newMax = Math.min(W + E, this.dataMax)), b(P) || (W = void 0), W;
  7853. }, !_.RangeSelector) {
  7854. var a = [], t = function(s) {
  7855. function n() {
  7856. D && (P = s.xAxis[0].getExtremes(), I = s.legend, E = D && D.options.verticalAlign, b(P.min) && D.render(P.min, P.max), I.display && E === "top" && E === I.options.verticalAlign && (W = S(s.spacingBox), W.y = I.options.layout === "vertical" ? s.plotTop : W.y + D.getHeight(), I.group.placed = !1, I.align(W)));
  7857. }
  7858. var P, D = s.rangeSelector, I, W, E;
  7859. D && (R(a, function(X) {
  7860. return X[0] === s;
  7861. }) || a.push([s, [j(s.xAxis[0], "afterSetExtremes", function(X) {
  7862. D && D.render(X.min, X.max);
  7863. }), j(s, "redraw", n)]]), n());
  7864. };
  7865. j(N, "afterGetContainer", function() {
  7866. this.options.rangeSelector && this.options.rangeSelector.enabled && (this.rangeSelector = new p(this));
  7867. }), j(N, "beforeRender", function() {
  7868. var s = this.axes, n = this.rangeSelector;
  7869. n && (b(n.deferredYTDClick) && (n.clickButton(n.deferredYTDClick), delete n.deferredYTDClick), s.forEach(function(P) {
  7870. P.updateNames(), P.setScale();
  7871. }), this.getAxisMargins(), n.render(), s = n.options.verticalAlign, n.options.floating || (s === "bottom" ? this.extraBottomMargin = !0 : s !== "middle" && (this.extraTopMargin = !0)));
  7872. }), j(N, "update", function(s) {
  7873. var n = s.options.rangeSelector;
  7874. s = this.rangeSelector;
  7875. var P = this.extraBottomMargin, D = this.extraTopMargin;
  7876. n && n.enabled && !f(s) && this.options.rangeSelector && (this.options.rangeSelector.enabled = !0, this.rangeSelector = s = new p(this)), this.extraTopMargin = this.extraBottomMargin = !1, s && (t(this), n = n && n.verticalAlign || s.options && s.options.verticalAlign, s.options.floating || (n === "bottom" ? this.extraBottomMargin = !0 : n !== "middle" && (this.extraTopMargin = !0)), this.extraBottomMargin !== P || this.extraTopMargin !== D) && (this.isDirtyBox = !0);
  7877. }), j(N, "render", function() {
  7878. var s = this.rangeSelector;
  7879. s && !s.options.floating && (s.render(), s = s.options.verticalAlign, s === "bottom" ? this.extraBottomMargin = !0 : s !== "middle" && (this.extraTopMargin = !0));
  7880. }), j(N, "getMargins", function() {
  7881. var s = this.rangeSelector;
  7882. s && (s = s.getHeight(), this.extraTopMargin && (this.plotTop += s), this.extraBottomMargin && (this.marginBottom += s));
  7883. }), N.prototype.callbacks.push(t), j(N, "destroy", function() {
  7884. for (var s = 0; s < a.length; s++) {
  7885. var n = a[s];
  7886. if (n[0] === this) {
  7887. n[1].forEach(function(P) {
  7888. return P();
  7889. }), a.splice(s, 1);
  7890. break;
  7891. }
  7892. }
  7893. }), _.RangeSelector = p;
  7894. }
  7895. return p;
  7896. }), C(
  7897. o,
  7898. "Core/Chart/StockChart.js",
  7899. [o["Core/Animation/AnimationUtilities.js"], o["Core/Axis/Axis.js"], o["Core/Chart/Chart.js"], o["Core/FormatUtilities.js"], o["Core/DefaultOptions.js"], o["Core/Series/Series.js"], o["Core/Renderer/SVG/SVGRenderer.js"], o["Core/Utilities.js"]],
  7900. function(y, N, _, U, G, V, F, B) {
  7901. function j(u, i) {
  7902. return u === "xAxis" ? { minPadding: 0, maxPadding: 0, overscroll: 0, ordinal: !0, title: { text: null }, labels: { overflow: "justify" }, showLastLabel: !0 } : u === "yAxis" ? { labels: { y: -2 }, opposite: h(i.opposite, !0), showLastLabel: !(!i.categories && i.type !== "category"), title: { text: null } } : {};
  7903. }
  7904. function w(u, i) {
  7905. if (u === "xAxis") {
  7906. u = l();
  7907. var p = { type: "datetime", categories: void 0 };
  7908. return h(i.navigator && i.navigator.enabled, u.navigator.enabled, !0) && (p.startOnTick = !1, p.endOnTick = !1), p;
  7909. }
  7910. return {};
  7911. }
  7912. var x = this && this.__extends || function() {
  7913. var u = function(i, p) {
  7914. return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, t) {
  7915. a.__proto__ = t;
  7916. } || function(a, t) {
  7917. for (var s in t)
  7918. t.hasOwnProperty(s) && (a[s] = t[s]);
  7919. }, u(i, p);
  7920. };
  7921. return function(i, p) {
  7922. function a() {
  7923. this.constructor = i;
  7924. }
  7925. u(i, p), i.prototype = p === null ? Object.create(p) : (a.prototype = p.prototype, new a());
  7926. };
  7927. }(), f = U.format, l = G.getOptions;
  7928. y = B.addEvent;
  7929. var T = B.clamp, O = B.defined, R = B.extend, k = B.find, b = B.isNumber, S = B.isString, v = B.merge, h = B.pick, c = B.splat;
  7930. return B = function(u) {
  7931. function i() {
  7932. return u !== null && u.apply(this, arguments) || this;
  7933. }
  7934. return x(i, u), i.prototype.init = function(p, a) {
  7935. var t = l(), s = p.xAxis, n = p.yAxis, P = h(p.navigator && p.navigator.enabled, t.navigator.enabled, !0);
  7936. p.xAxis = p.yAxis = void 0, P = v({ chart: { panning: { enabled: !0, type: "x" }, pinchType: "x" }, navigator: { enabled: P }, scrollbar: { enabled: h(t.scrollbar && t.scrollbar.enabled, !0) }, rangeSelector: { enabled: h(t.rangeSelector.enabled, !0) }, title: { text: null }, tooltip: { split: h(t.tooltip.split, !0), crosshairs: !0 }, legend: { enabled: !1 } }, p, { isStock: !0 }), p.xAxis = s, p.yAxis = n, P.xAxis = c(p.xAxis || {}).map(function(D, I) {
  7937. return v(j("xAxis", D), t.xAxis, t.xAxis && t.xAxis[I], D, w("xAxis", p));
  7938. }), P.yAxis = c(p.yAxis || {}).map(function(D, I) {
  7939. return v(j("yAxis", D), t.yAxis, t.yAxis && t.yAxis[I], D);
  7940. }), u.prototype.init.call(this, P, a);
  7941. }, i.prototype.createAxis = function(p, a) {
  7942. return a.axis = v(j(p, a.axis), a.axis, w(p, this.userOptions)), u.prototype.createAxis.call(this, p, a);
  7943. }, i;
  7944. }(_), function(u) {
  7945. u.stockChart = function(i, p, a) {
  7946. return new u(i, p, a);
  7947. };
  7948. }(B || (B = {})), y(V, "setOptions", function(u) {
  7949. var i;
  7950. this.chart.options.isStock && (this.is("column") || this.is("columnrange") ? i = { borderWidth: 0, shadow: !1 } : this.is("scatter") || this.is("sma") || (i = { marker: { enabled: !1, radius: 2 } }), i && (u.plotOptions[this.type] = v(u.plotOptions[this.type], i)));
  7951. }), y(N, "autoLabelAlign", function(u) {
  7952. var i = this.chart, p = this.options;
  7953. i = i._labelPanes = i._labelPanes || {};
  7954. var a = this.options.labels;
  7955. this.chart.options.isStock && this.coll === "yAxis" && (p = p.top + "," + p.height, !i[p] && a.enabled && (a.x === 15 && (a.x = 0), typeof a.align > "u" && (a.align = "right"), i[p] = this, u.align = "right", u.preventDefault()));
  7956. }), y(N, "destroy", function() {
  7957. var u = this.chart, i = this.options && this.options.top + "," + this.options.height;
  7958. i && u._labelPanes && u._labelPanes[i] === this && delete u._labelPanes[i];
  7959. }), y(N, "getPlotLinePath", function(u) {
  7960. function i(H) {
  7961. var Y = H === "xAxis" ? "yAxis" : "xAxis";
  7962. return H = p.options[Y], b(H) ? [t[Y][H]] : S(H) ? [t.get(H)] : a.map(function(Z) {
  7963. return Z[Y];
  7964. });
  7965. }
  7966. var p = this, a = this.isLinked && !this.series ? this.linkedParent.series : this.series, t = p.chart, s = t.renderer, n = p.left, P = p.top, D, I, W, E, X = [], g = [], m = u.translatedValue, L = u.value, z = u.force;
  7967. if (t.options.isStock && u.acrossPanes !== !1 && p.coll === "xAxis" || p.coll === "yAxis") {
  7968. u.preventDefault(), g = i(p.coll);
  7969. var $ = p.isXAxis ? t.yAxis : t.xAxis;
  7970. $.forEach(function(H) {
  7971. if (!O(H.options.id) || H.options.id.indexOf("navigator") === -1) {
  7972. var Y = H.isXAxis ? "yAxis" : "xAxis";
  7973. Y = O(H.options[Y]) ? t[Y][H.options[Y]] : t[Y][0], p === Y && g.push(H);
  7974. }
  7975. });
  7976. var Q = g.length ? [] : [p.isXAxis ? t.yAxis[0] : t.xAxis[0]];
  7977. g.forEach(function(H) {
  7978. Q.indexOf(H) !== -1 || k(Q, function(Y) {
  7979. return Y.pos === H.pos && Y.len === H.len;
  7980. }) || Q.push(H);
  7981. });
  7982. var A = h(m, p.translate(L, null, null, u.old));
  7983. b(A) && (p.horiz ? Q.forEach(function(H) {
  7984. var Y;
  7985. I = H.pos, E = I + H.len, D = W = Math.round(A + p.transB), z !== "pass" && (D < n || D > n + p.width) && (z ? D = W = T(D, n, n + p.width) : Y = !0), Y || X.push(["M", D, I], ["L", W, E]);
  7986. }) : Q.forEach(function(H) {
  7987. var Y;
  7988. D = H.pos, W = D + H.len, I = E = Math.round(P + p.height - A), z !== "pass" && (I < P || I > P + p.height) && (z ? I = E = T(I, P, P + p.height) : Y = !0), Y || X.push(["M", D, I], ["L", W, E]);
  7989. })), u.path = 0 < X.length ? s.crispPolyLine(X, u.lineWidth || 1) : null;
  7990. }
  7991. }), F.prototype.crispPolyLine = function(u, i) {
  7992. for (var p = 0; p < u.length; p += 2) {
  7993. var a = u[p], t = u[p + 1];
  7994. a[1] === t[1] && (a[1] = t[1] = Math.round(a[1]) - i % 2 / 2), a[2] === t[2] && (a[2] = t[2] = Math.round(a[2]) + i % 2 / 2);
  7995. }
  7996. return u;
  7997. }, y(N, "afterHideCrosshair", function() {
  7998. this.crossLabel && (this.crossLabel = this.crossLabel.hide());
  7999. }), y(N, "afterDrawCrosshair", function(u) {
  8000. var i, p;
  8001. if (this.crosshair && this.crosshair.label && this.crosshair.label.enabled && this.cross && b(this.min) && b(this.max)) {
  8002. var a = this.chart, t = this.logarithmic, s = this.crosshair.label, n = this.horiz, P = this.opposite, D = this.left, I = this.top, W = this.crossLabel, E = s.format, X = "", g = this.options.tickPosition === "inside", m = this.crosshair.snap !== !1, L = 0, z = u.e || this.cross && this.cross.e;
  8003. u = u.point;
  8004. var $ = this.min, Q = this.max;
  8005. t && ($ = t.lin2log($), Q = t.lin2log(Q)), t = n ? "center" : P ? this.labelAlign === "right" ? "right" : "left" : this.labelAlign === "left" ? "left" : "center", W || (W = this.crossLabel = a.renderer.label("", 0, void 0, s.shape || "callout").addClass("highcharts-crosshair-label highcharts-color-" + (u ? u.series.colorIndex : this.series[0] && this.series[0].colorIndex)).attr({ align: s.align || t, padding: h(s.padding, 8), r: h(s.borderRadius, 3), zIndex: 2 }).add(this.labelGroup), a.styledMode || W.attr({ fill: s.backgroundColor || u && u.series && u.series.color || "#666666", stroke: s.borderColor || "", "stroke-width": s.borderWidth || 0 }).css(R({ color: "#ffffff", fontWeight: "normal", fontSize: "11px", textAlign: "center" }, s.style || {}))), n ? (t = m ? (u.plotX || 0) + D : z.chartX, I += P ? 0 : this.height) : (t = P ? this.width + D : 0, I = m ? (u.plotY || 0) + I : z.chartY), E || s.formatter || (this.dateTime && (X = "%b %d, %Y"), E = "{value" + (X ? ":" + X : "") + "}"), X = m ? this.isXAxis ? u.x : u.y : this.toValue(n ? z.chartX : z.chartY), m = u ? u.series.isPointInside(u) : b(X) && X > $ && X < Q, z = "", E ? z = f(E, { value: X }, a) : s.formatter && b(X) && (z = s.formatter.call(this, X)), W.attr({ text: z, x: t, y: I, visibility: m ? "visible" : "hidden" }), s = W.getBBox(), b(W.y) && (n ? (g && !P || !g && P) && (I = W.y - s.height) : I = W.y - s.height / 2), n ? (i = D - s.x, p = D + this.width - s.x) : (i = this.labelAlign === "left" ? D : 0, p = this.labelAlign === "right" ? D + this.width : a.chartWidth), W.translateX < i && (L = i - W.translateX), W.translateX + s.width >= p && (L = -(W.translateX + s.width - p)), W.attr({ x: t + L, y: I, anchorX: n ? t : this.opposite ? 0 : a.chartWidth, anchorY: n ? this.opposite ? a.chartHeight : 0 : I + s.height / 2 });
  8006. }
  8007. }), V.prototype.forceCropping = function() {
  8008. var u = this.chart, i = this.options.dataGrouping;
  8009. return this.allowDG !== !1 && i && h(i.enabled, u.options.isStock);
  8010. }, y(_, "update", function(u) {
  8011. u = u.options, "scrollbar" in u && this.navigator && (v(!0, this.options.scrollbar, u.scrollbar), this.navigator.update({}, !1), delete u.scrollbar);
  8012. }), B;
  8013. }
  8014. ), C(o, "masters/modules/stock.src.js", [
  8015. o["Core/Globals.js"],
  8016. o["Core/Axis/OrdinalAxis.js"],
  8017. o["Series/DataModifyComposition.js"],
  8018. o["Core/Scrollbar.js"],
  8019. o["Core/Chart/StockChart.js"]
  8020. ], function(y, N, _, U, G) {
  8021. y.Scrollbar = U, y.StockChart = y.stockChart = G.stockChart, U.compose(y.Axis), N.compose(y.Axis, y.Series, y.Chart), _.compose(y.Series, y.Axis, y.Point);
  8022. }), C(o, "masters/highstock.src.js", [o["masters/highcharts.src.js"]], function(y) {
  8023. return y.product = "Highstock", y;
  8024. }), o["masters/highstock.src.js"]._modules = o, o["masters/highstock.src.js"];
  8025. });
  8026. })(eu);
  8027. var U0 = eu.exports;
  8028. const Vr = /* @__PURE__ */ Mn(U0);
  8029. var iu = { exports: {} };
  8030. (function(r) {
  8031. (function(d, C) {
  8032. r.exports ? (C.default = C, r.exports = d.document ? C(d) : C) : (d.Highcharts && d.Highcharts.error(16, !0), d.Highcharts = C(d));
  8033. })(typeof window < "u" ? window : Gr, function(d) {
  8034. function C(y, N, _, U) {
  8035. y.hasOwnProperty(N) || (y[N] = U.apply(null, _));
  8036. }
  8037. var o = {};
  8038. return C(o, "Core/Globals.js", [], function() {
  8039. var y = typeof d < "u" ? d : typeof window < "u" ? window : {}, N;
  8040. return function(_) {
  8041. _.SVG_NS = "http://www.w3.org/2000/svg", _.product = "Highcharts", _.version = "9.3.3", _.win = y, _.doc = _.win.document, _.svg = _.doc && _.doc.createElementNS && !!_.doc.createElementNS(_.SVG_NS, "svg").createSVGRect, _.userAgent = _.win.navigator && _.win.navigator.userAgent || "", _.isChrome = _.userAgent.indexOf("Chrome") !== -1, _.isFirefox = _.userAgent.indexOf("Firefox") !== -1, _.isMS = /(edge|msie|trident)/i.test(_.userAgent) && !_.win.opera, _.isSafari = !_.isChrome && _.userAgent.indexOf("Safari") !== -1, _.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(_.userAgent), _.isWebKit = _.userAgent.indexOf("AppleWebKit") !== -1, _.deg2rad = 2 * Math.PI / 360, _.hasBidiBug = _.isFirefox && 4 > parseInt(_.userAgent.split("Firefox/")[1], 10), _.hasTouch = !!_.win.TouchEvent, _.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], _.noop = function() {
  8042. }, _.supportsPassiveEvents = function() {
  8043. var U = !1;
  8044. if (!_.isMS) {
  8045. var G = Object.defineProperty({}, "passive", { get: function() {
  8046. U = !0;
  8047. } });
  8048. _.win.addEventListener && _.win.removeEventListener && (_.win.addEventListener(
  8049. "testPassive",
  8050. _.noop,
  8051. G
  8052. ), _.win.removeEventListener("testPassive", _.noop, G));
  8053. }
  8054. return U;
  8055. }(), _.charts = [], _.dateFormats = {}, _.seriesTypes = {}, _.symbolSizes = {}, _.chartCount = 0;
  8056. }(N || (N = {})), N;
  8057. }), C(o, "Core/Utilities.js", [o["Core/Globals.js"]], function(y) {
  8058. function N(t, s, n, P) {
  8059. var D = s ? "Highcharts error" : "Highcharts warning";
  8060. t === 32 && (t = D + ": Deprecated member");
  8061. var I = w(t), W = I ? D + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  8062. if (typeof P < "u") {
  8063. var E = "";
  8064. I && (W += "?"), b(P, function(X, g) {
  8065. E += `
  8066. - ` + g + ": " + X, I && (W += encodeURI(g) + "=" + encodeURI(X));
  8067. }), W += E;
  8068. }
  8069. v(y, "displayError", { chart: n, code: t, message: W, params: P }, function() {
  8070. if (s)
  8071. throw Error(W);
  8072. u.console && N.messages.indexOf(W) === -1 && console.warn(W);
  8073. }), N.messages.push(W);
  8074. }
  8075. function _(t, s) {
  8076. var n = {};
  8077. return b(t, function(P, D) {
  8078. F(t[D], !0) && !t.nodeType && s[D] ? (P = _(t[D], s[D]), Object.keys(P).length && (n[D] = P)) : (F(t[D]) || t[D] !== s[D]) && (n[D] = t[D]);
  8079. }), n;
  8080. }
  8081. function U(t, s) {
  8082. return parseInt(t, s || 10);
  8083. }
  8084. function G(t) {
  8085. return typeof t == "string";
  8086. }
  8087. function V(t) {
  8088. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  8089. }
  8090. function F(t, s) {
  8091. return !!t && typeof t == "object" && (!s || !V(t));
  8092. }
  8093. function B(t) {
  8094. return F(t) && typeof t.nodeType == "number";
  8095. }
  8096. function j(t) {
  8097. var s = t && t.constructor;
  8098. return !(!F(t, !0) || B(t) || !s || !s.name || s.name === "Object");
  8099. }
  8100. function w(t) {
  8101. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  8102. }
  8103. function x(t) {
  8104. return typeof t < "u" && t !== null;
  8105. }
  8106. function f(t, s, n) {
  8107. var P;
  8108. return G(s) ? x(n) ? t.setAttribute(s, n) : t && t.getAttribute && ((P = t.getAttribute(s)) || s !== "class" || (P = t.getAttribute(s + "Name"))) : b(s, function(D, I) {
  8109. x(D) ? t.setAttribute(I, D) : t.removeAttribute(I);
  8110. }), P;
  8111. }
  8112. function l(t, s) {
  8113. var n;
  8114. t || (t = {});
  8115. for (n in s)
  8116. t[n] = s[n];
  8117. return t;
  8118. }
  8119. function T() {
  8120. for (var t = arguments, s = t.length, n = 0; n < s; n++) {
  8121. var P = t[n];
  8122. if (typeof P < "u" && P !== null)
  8123. return P;
  8124. }
  8125. }
  8126. function O(t, s) {
  8127. y.isMS && !y.svg && s && typeof s.opacity < "u" && (s.filter = "alpha(opacity=" + 100 * s.opacity + ")"), l(t.style, s);
  8128. }
  8129. function R(t, s) {
  8130. return 1e14 < t ? t : parseFloat(t.toPrecision(s || 14));
  8131. }
  8132. function k(t, s, n) {
  8133. var P = y.getStyle || k;
  8134. if (s === "width")
  8135. return s = Math.min(t.offsetWidth, t.scrollWidth), n = t.getBoundingClientRect && t.getBoundingClientRect().width, n < s && n >= s - 1 && (s = Math.floor(n)), Math.max(0, s - (P(t, "padding-left", !0) || 0) - (P(t, "padding-right", !0) || 0));
  8136. if (s === "height")
  8137. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (P(t, "padding-top", !0) || 0) - (P(t, "padding-bottom", !0) || 0));
  8138. if (u.getComputedStyle || N(27, !0), t = u.getComputedStyle(t, void 0)) {
  8139. var D = t.getPropertyValue(s);
  8140. T(n, s !== "opacity") && (D = U(D));
  8141. }
  8142. return D;
  8143. }
  8144. function b(t, s, n) {
  8145. for (var P in t)
  8146. Object.hasOwnProperty.call(t, P) && s.call(n || t[P], t[P], P, t);
  8147. }
  8148. function S(t, s, n) {
  8149. function P(E, X) {
  8150. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  8151. g && g.call(t, E, X, !1);
  8152. }
  8153. function D(E) {
  8154. var X;
  8155. if (t.nodeName) {
  8156. if (s) {
  8157. var g = {};
  8158. g[s] = !0;
  8159. } else
  8160. g = E;
  8161. b(g, function(m, L) {
  8162. if (E[L])
  8163. for (X = E[L].length; X--; )
  8164. P(L, E[L][X].fn);
  8165. });
  8166. }
  8167. }
  8168. var I = typeof t == "function" && t.prototype || t;
  8169. if (Object.hasOwnProperty.call(I, "hcEvents")) {
  8170. var W = I.hcEvents;
  8171. s ? (I = W[s] || [], n ? (W[s] = I.filter(function(E) {
  8172. return n !== E.fn;
  8173. }), P(s, n)) : (D(W), W[s] = [])) : (D(W), delete I.hcEvents);
  8174. }
  8175. }
  8176. function v(t, s, n, P) {
  8177. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  8178. var D = c.createEvent("Events");
  8179. D.initEvent(s, !0, !0), n = l(D, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(s, n);
  8180. } else if (t.hcEvents) {
  8181. n.target || l(n, { preventDefault: function() {
  8182. n.defaultPrevented = !0;
  8183. }, target: t, type: s }), D = [];
  8184. for (var I = t, W = !1; I.hcEvents; )
  8185. Object.hasOwnProperty.call(I, "hcEvents") && I.hcEvents[s] && (D.length && (W = !0), D.unshift.apply(D, I.hcEvents[s])), I = Object.getPrototypeOf(I);
  8186. W && D.sort(function(E, X) {
  8187. return E.order - X.order;
  8188. }), D.forEach(function(E) {
  8189. E.fn.call(t, n) === !1 && n.preventDefault();
  8190. });
  8191. }
  8192. P && !n.defaultPrevented && P.call(t, n);
  8193. }
  8194. var h = y.charts, c = y.doc, u = y.win;
  8195. (N || (N = {})).messages = [], Math.easeInOutSine = function(t) {
  8196. return -0.5 * (Math.cos(Math.PI * t) - 1);
  8197. };
  8198. var i = Array.prototype.find ? function(t, s) {
  8199. return t.find(s);
  8200. } : function(t, s) {
  8201. var n, P = t.length;
  8202. for (n = 0; n < P; n++)
  8203. if (s(t[n], n))
  8204. return t[n];
  8205. };
  8206. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, s) {
  8207. y[s] = function(n) {
  8208. var P;
  8209. return N(32, !1, void 0, (P = {}, P["Highcharts." + s] = "use Array." + t, P)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  8210. };
  8211. });
  8212. var p, a = function() {
  8213. var t = Math.random().toString(36).substring(2, 9) + "-", s = 0;
  8214. return function() {
  8215. return "highcharts-" + (p ? "" : t) + s++;
  8216. };
  8217. }();
  8218. return u.jQuery && (u.jQuery.fn.highcharts = function() {
  8219. var t = [].slice.call(arguments);
  8220. if (this[0])
  8221. return t[0] ? (new y[G(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : h[f(this[0], "data-highcharts-chart")];
  8222. }), i = { addEvent: function(t, s, n, P) {
  8223. P === void 0 && (P = {});
  8224. var D = typeof t == "function" && t.prototype || t;
  8225. Object.hasOwnProperty.call(D, "hcEvents") || (D.hcEvents = {}), D = D.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  8226. var I = t.addEventListener || y.addEventListenerPolyfill;
  8227. return I && I.call(t, s, n, y.supportsPassiveEvents ? { passive: P.passive === void 0 ? s.indexOf("touch") !== -1 : P.passive, capture: !1 } : !1), D[s] || (D[s] = []), D[s].push({ fn: n, order: typeof P.order == "number" ? P.order : 1 / 0 }), D[s].sort(function(W, E) {
  8228. return W.order - E.order;
  8229. }), function() {
  8230. S(t, s, n);
  8231. };
  8232. }, arrayMax: function(t) {
  8233. for (var s = t.length, n = t[0]; s--; )
  8234. t[s] > n && (n = t[s]);
  8235. return n;
  8236. }, arrayMin: function(t) {
  8237. for (var s = t.length, n = t[0]; s--; )
  8238. t[s] < n && (n = t[s]);
  8239. return n;
  8240. }, attr: f, clamp: function(t, s, n) {
  8241. return t > s ? t < n ? t : n : s;
  8242. }, cleanRecursively: _, clearTimeout: function(t) {
  8243. x(t) && clearTimeout(t);
  8244. }, correctFloat: R, createElement: function(t, s, n, P, D) {
  8245. return t = c.createElement(t), s && l(t, s), D && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), P && P.appendChild(t), t;
  8246. }, css: O, defined: x, destroyObjectProperties: function(t, s) {
  8247. b(t, function(n, P) {
  8248. n && n !== s && n.destroy && n.destroy(), delete t[P];
  8249. });
  8250. }, discardElement: function(t) {
  8251. t && t.parentElement && t.parentElement.removeChild(t);
  8252. }, erase: function(t, s) {
  8253. for (var n = t.length; n--; )
  8254. if (t[n] === s) {
  8255. t.splice(n, 1);
  8256. break;
  8257. }
  8258. }, error: N, extend: l, extendClass: function(t, s) {
  8259. var n = function() {
  8260. };
  8261. return n.prototype = new t(), l(n.prototype, s), n;
  8262. }, find: i, fireEvent: v, getMagnitude: function(t) {
  8263. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  8264. }, getNestedProperty: function(t, s) {
  8265. for (t = t.split("."); t.length && x(s); ) {
  8266. var n = t.shift();
  8267. if (typeof n > "u" || n === "__proto__" || (s = s[n], !x(s) || typeof s == "function" || typeof s.nodeType == "number" || s === u))
  8268. return;
  8269. }
  8270. return s;
  8271. }, getStyle: k, inArray: function(t, s, n) {
  8272. return N(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), s.indexOf(t, n);
  8273. }, isArray: V, isClass: j, isDOMElement: B, isFunction: function(t) {
  8274. return typeof t == "function";
  8275. }, isNumber: w, isObject: F, isString: G, keys: function(t) {
  8276. return N(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  8277. }, merge: function() {
  8278. var t, s = arguments, n = {}, P = function(I, W) {
  8279. return typeof I != "object" && (I = {}), b(W, function(E, X) {
  8280. X !== "__proto__" && X !== "constructor" && (!F(E, !0) || j(E) || B(E) ? I[X] = W[X] : I[X] = P(I[X] || {}, E));
  8281. }), I;
  8282. };
  8283. s[0] === !0 && (n = s[1], s = Array.prototype.slice.call(s, 2));
  8284. var D = s.length;
  8285. for (t = 0; t < D; t++)
  8286. n = P(n, s[t]);
  8287. return n;
  8288. }, normalizeTickInterval: function(t, s, n, P, D) {
  8289. var I = t;
  8290. n = T(n, 1);
  8291. var W = t / n;
  8292. for (s || (s = D ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], P === !1 && (n === 1 ? s = s.filter(function(E) {
  8293. return E % 1 === 0;
  8294. }) : 0.1 >= n && (s = [1 / n]))), P = 0; P < s.length && (I = s[P], !(D && I * n >= t || !D && W <= (s[P] + (s[P + 1] || s[P])) / 2)); P++)
  8295. ;
  8296. return I = R(I * n, -Math.round(Math.log(1e-3) / Math.LN10));
  8297. }, objectEach: b, offset: function(t) {
  8298. var s = c.documentElement;
  8299. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (u.pageYOffset || s.scrollTop) - (s.clientTop || 0), left: t.left + (u.pageXOffset || s.scrollLeft) - (s.clientLeft || 0), width: t.width, height: t.height };
  8300. }, pad: function(t, s, n) {
  8301. return Array((s || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  8302. }, pick: T, pInt: U, relativeLength: function(t, s, n) {
  8303. return /%$/.test(t) ? s * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  8304. }, removeEvent: S, splat: function(t) {
  8305. return V(t) ? t : [t];
  8306. }, stableSort: function(t, s) {
  8307. var n = t.length, P, D;
  8308. for (D = 0; D < n; D++)
  8309. t[D].safeI = D;
  8310. for (t.sort(function(I, W) {
  8311. return P = s(I, W), P === 0 ? I.safeI - W.safeI : P;
  8312. }), D = 0; D < n; D++)
  8313. delete t[D].safeI;
  8314. }, syncTimeout: function(t, s, n) {
  8315. return 0 < s ? setTimeout(t, s, n) : (t.call(0, n), -1);
  8316. }, timeUnits: {
  8317. millisecond: 1,
  8318. second: 1e3,
  8319. minute: 6e4,
  8320. hour: 36e5,
  8321. day: 864e5,
  8322. week: 6048e5,
  8323. month: 24192e5,
  8324. year: 314496e5
  8325. }, uniqueKey: a, useSerialIds: function(t) {
  8326. return p = T(t, p);
  8327. }, wrap: function(t, s, n) {
  8328. var P = t[s];
  8329. t[s] = function() {
  8330. var D = Array.prototype.slice.call(arguments), I = arguments, W = this;
  8331. return W.proceed = function() {
  8332. P.apply(W, arguments.length ? arguments : I);
  8333. }, D.unshift(P), D = n.apply(this, D), W.proceed = null, D;
  8334. };
  8335. } }, i;
  8336. }), C(o, "Core/Chart/ChartDefaults.js", [], function() {
  8337. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  8338. 10,
  8339. 10,
  8340. 15,
  8341. 10
  8342. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  8343. }), C(o, "Core/Color/Color.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  8344. var _ = N.isNumber, U = N.merge, G = N.pInt;
  8345. return N = function() {
  8346. function V(F) {
  8347. this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
  8348. var B = y.Color;
  8349. if (B && B !== V)
  8350. return new B(F);
  8351. if (!(this instanceof V))
  8352. return new V(F);
  8353. this.init(F);
  8354. }
  8355. return V.parse = function(F) {
  8356. return F ? new V(F) : V.None;
  8357. }, V.prototype.init = function(F) {
  8358. var B;
  8359. if (typeof F == "object" && typeof F.stops < "u")
  8360. this.stops = F.stops.map(function(f) {
  8361. return new V(f[1]);
  8362. });
  8363. else if (typeof F == "string") {
  8364. if (this.input = F = V.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
  8365. var j = F.length, w = parseInt(F.substr(1), 16);
  8366. j === 7 ? B = [(w & 16711680) >> 16, (w & 65280) >> 8, w & 255, 1] : j === 4 && (B = [(w & 3840) >> 4 | (w & 3840) >> 8, (w & 240) >> 4 | w & 240, (w & 15) << 4 | w & 15, 1]);
  8367. }
  8368. if (!B)
  8369. for (w = V.parsers.length; w-- && !B; ) {
  8370. var x = V.parsers[w];
  8371. (j = x.regex.exec(F)) && (B = x.parse(j));
  8372. }
  8373. }
  8374. B && (this.rgba = B);
  8375. }, V.prototype.get = function(F) {
  8376. var B = this.input, j = this.rgba;
  8377. if (typeof B == "object" && typeof this.stops < "u") {
  8378. var w = U(B);
  8379. return w.stops = [].slice.call(w.stops), this.stops.forEach(function(x, f) {
  8380. w.stops[f] = [w.stops[f][0], x.get(F)];
  8381. }), w;
  8382. }
  8383. return j && _(j[0]) ? F === "rgb" || !F && j[3] === 1 ? "rgb(" + j[0] + "," + j[1] + "," + j[2] + ")" : F === "a" ? "" + j[3] : "rgba(" + j.join(",") + ")" : B;
  8384. }, V.prototype.brighten = function(F) {
  8385. var B = this.rgba;
  8386. if (this.stops)
  8387. this.stops.forEach(function(w) {
  8388. w.brighten(F);
  8389. });
  8390. else if (_(F) && F !== 0)
  8391. for (var j = 0; 3 > j; j++)
  8392. B[j] += G(255 * F), 0 > B[j] && (B[j] = 0), 255 < B[j] && (B[j] = 255);
  8393. return this;
  8394. }, V.prototype.setOpacity = function(F) {
  8395. return this.rgba[3] = F, this;
  8396. }, V.prototype.tweenTo = function(F, B) {
  8397. var j = this.rgba, w = F.rgba;
  8398. return !_(j[0]) || !_(w[0]) ? F.input || "none" : (F = w[3] !== 1 || j[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(w[0] + (j[0] - w[0]) * (1 - B)) + "," + Math.round(w[1] + (j[1] - w[1]) * (1 - B)) + "," + Math.round(w[2] + (j[2] - w[2]) * (1 - B)) + (F ? "," + (w[3] + (j[3] - w[3]) * (1 - B)) : "") + ")");
  8399. }, V.names = { white: "#ffffff", black: "#000000" }, V.parsers = [{
  8400. 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*\)/,
  8401. parse: function(F) {
  8402. return [G(F[1]), G(F[2]), G(F[3]), parseFloat(F[4], 10)];
  8403. }
  8404. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
  8405. return [G(F[1]), G(F[2]), G(F[3]), 1];
  8406. } }], V.None = new V(""), V;
  8407. }(), N;
  8408. }), C(o, "Core/Color/Palettes.js", [], function() {
  8409. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  8410. }), C(o, "Core/Time.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  8411. var _ = y.win, U = N.defined, G = N.error, V = N.extend, F = N.isObject, B = N.merge, j = N.objectEach, w = N.pad, x = N.pick, f = N.splat, l = N.timeUnits, T = y.isSafari && _.Intl && _.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && _.Intl && !_.Intl.DateTimeFormat.prototype.formatRange;
  8412. return N = function() {
  8413. function R(k) {
  8414. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = _.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(k);
  8415. }
  8416. return R.prototype.get = function(k, b) {
  8417. if (this.variableTimezone || this.timezoneOffset) {
  8418. var S = b.getTime(), v = S - this.getTimezoneOffset(b);
  8419. return b.setTime(v), k = b["getUTC" + k](), b.setTime(S), k;
  8420. }
  8421. return this.useUTC ? b["getUTC" + k]() : b["get" + k]();
  8422. }, R.prototype.set = function(k, b, S) {
  8423. if (this.variableTimezone || this.timezoneOffset) {
  8424. if (k === "Milliseconds" || k === "Seconds" || k === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  8425. return b["setUTC" + k](S);
  8426. var v = this.getTimezoneOffset(b);
  8427. return v = b.getTime() - v, b.setTime(v), b["setUTC" + k](S), k = this.getTimezoneOffset(b), v = b.getTime() + k, b.setTime(v);
  8428. }
  8429. return this.useUTC || T && k === "FullYear" ? b["setUTC" + k](S) : b["set" + k](S);
  8430. }, R.prototype.update = function(k) {
  8431. var b = x(k && k.useUTC, !0);
  8432. this.options = k = B(!0, this.options || {}, k), this.Date = k.Date || _.Date || Date, this.timezoneOffset = (this.useUTC = b) && k.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = b && !(!k.getTimezoneOffset && !k.timezone);
  8433. }, R.prototype.makeTime = function(k, b, S, v, h, c) {
  8434. if (this.useUTC) {
  8435. var u = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(u);
  8436. u += i;
  8437. var p = this.getTimezoneOffset(u);
  8438. i !== p ? u += p - i : i - 36e5 !== this.getTimezoneOffset(u - 36e5) || O || (u -= 36e5);
  8439. } else
  8440. u = new this.Date(k, b, x(S, 1), x(v, 0), x(h, 0), x(c, 0)).getTime();
  8441. return u;
  8442. }, R.prototype.timezoneOffsetFunction = function() {
  8443. var k = this, b = this.options, S = b.getTimezoneOffset, v = b.moment || _.moment;
  8444. if (!this.useUTC)
  8445. return function(h) {
  8446. return 6e4 * new Date(h.toString()).getTimezoneOffset();
  8447. };
  8448. if (b.timezone) {
  8449. if (v)
  8450. return function(h) {
  8451. return 6e4 * -v.tz(h, b.timezone).utcOffset();
  8452. };
  8453. G(25);
  8454. }
  8455. return this.useUTC && S ? function(h) {
  8456. return 6e4 * S(h.valueOf());
  8457. } : function() {
  8458. return 6e4 * (k.timezoneOffset || 0);
  8459. };
  8460. }, R.prototype.dateFormat = function(k, b, S) {
  8461. if (!U(b) || isNaN(b))
  8462. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  8463. k = x(k, "%Y-%m-%d %H:%M:%S");
  8464. var v = this, h = new this.Date(b), c = this.get("Hours", h), u = this.get("Day", h), i = this.get("Date", h), p = this.get("Month", h), a = this.get("FullYear", h), t = y.defaultOptions.lang, s = t && t.weekdays, n = t && t.shortWeekdays;
  8465. return h = V({ a: n ? n[u] : s[u].substr(0, 3), A: s[u], d: w(i), e: w(i, 2, " "), w: u, b: t.shortMonths[p], B: t.months[p], m: w(p + 1), o: p + 1, y: a.toString().substr(2, 2), Y: a, H: w(c), k: c, I: w(c % 12 || 12), l: c % 12 || 12, M: w(this.get("Minutes", h)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: w(h.getSeconds()), L: w(Math.floor(b % 1e3), 3) }, y.dateFormats), j(h, function(P, D) {
  8466. for (; k.indexOf("%" + D) !== -1; )
  8467. k = k.replace("%" + D, typeof P == "function" ? P.call(v, b) : P);
  8468. }), S ? k.substr(0, 1).toUpperCase() + k.substr(1) : k;
  8469. }, R.prototype.resolveDTLFormat = function(k) {
  8470. return F(k, !0) ? k : (k = f(k), { main: k[0], from: k[1], to: k[2] });
  8471. }, R.prototype.getTimeTicks = function(k, b, S, v) {
  8472. var h = this, c = [], u = {}, i = new h.Date(b), p = k.unitRange, a = k.count || 1, t;
  8473. if (v = x(v, 1), U(b)) {
  8474. if (h.set(
  8475. "Milliseconds",
  8476. i,
  8477. p >= l.second ? 0 : a * Math.floor(h.get("Milliseconds", i) / a)
  8478. ), p >= l.second && h.set("Seconds", i, p >= l.minute ? 0 : a * Math.floor(h.get("Seconds", i) / a)), p >= l.minute && h.set("Minutes", i, p >= l.hour ? 0 : a * Math.floor(h.get("Minutes", i) / a)), p >= l.hour && h.set("Hours", i, p >= l.day ? 0 : a * Math.floor(h.get("Hours", i) / a)), p >= l.day && h.set("Date", i, p >= l.month ? 1 : Math.max(1, a * Math.floor(h.get("Date", i) / a))), p >= l.month) {
  8479. h.set("Month", i, p >= l.year ? 0 : a * Math.floor(h.get("Month", i) / a));
  8480. var s = h.get("FullYear", i);
  8481. }
  8482. p >= l.year && h.set(
  8483. "FullYear",
  8484. i,
  8485. s - s % a
  8486. ), p === l.week && (s = h.get("Day", i), h.set("Date", i, h.get("Date", i) - s + v + (s < v ? -7 : 0))), s = h.get("FullYear", i), v = h.get("Month", i);
  8487. var n = h.get("Date", i), P = h.get("Hours", i);
  8488. for (b = i.getTime(), !h.variableTimezone && h.useUTC || !U(S) || (t = S - b > 4 * l.month || h.getTimezoneOffset(b) !== h.getTimezoneOffset(S)), b = i.getTime(), i = 1; b < S; )
  8489. c.push(b), b = p === l.year ? h.makeTime(s + i * a, 0) : p === l.month ? h.makeTime(s, v + i * a) : !t || p !== l.day && p !== l.week ? t && p === l.hour && 1 < a ? h.makeTime(s, v, n, P + i * a) : b + p * a : h.makeTime(s, v, n + i * a * (p === l.day ? 1 : 7)), i++;
  8490. c.push(b), p <= l.hour && 1e4 > c.length && c.forEach(function(D) {
  8491. D % 18e5 === 0 && h.dateFormat("%H%M%S%L", D) === "000000000" && (u[D] = "day");
  8492. });
  8493. }
  8494. return c.info = V(k, { higherRanks: u, totalRange: p * a }), c;
  8495. }, R.prototype.getDateFormat = function(k, b, S, v) {
  8496. var h = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, u = "millisecond";
  8497. for (i in l) {
  8498. if (k === l.week && +this.dateFormat("%w", b) === S && h.substr(6) === "00:00:00.000") {
  8499. var i = "week";
  8500. break;
  8501. }
  8502. if (l[i] > k) {
  8503. i = u;
  8504. break;
  8505. }
  8506. if (c[i] && h.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  8507. break;
  8508. i !== "week" && (u = i);
  8509. }
  8510. if (i)
  8511. var p = this.resolveDTLFormat(v[i]).main;
  8512. return p;
  8513. }, R;
  8514. }(), N;
  8515. }), C(o, "Core/DefaultOptions.js", [o["Core/Chart/ChartDefaults.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Color/Palettes.js"], o["Core/Time.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V) {
  8516. N = N.parse;
  8517. var F = V.merge, B = {
  8518. colors: U.colors,
  8519. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  8520. lang: {
  8521. loading: "Loading...",
  8522. months: "January February March April May June July August September October November December".split(" "),
  8523. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  8524. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  8525. decimalPoint: ".",
  8526. numericSymbols: "kMGTPE".split(""),
  8527. resetZoom: "Reset zoom",
  8528. resetZoomTitle: "Reset zoom level 1:1",
  8529. thousandsSep: " "
  8530. },
  8531. global: {},
  8532. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  8533. chart: y,
  8534. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  8535. subtitle: { text: "", align: "center", widthAdjust: -44 },
  8536. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  8537. plotOptions: {},
  8538. labels: { style: { position: "absolute", color: "#333333" } },
  8539. legend: {
  8540. enabled: !0,
  8541. align: "center",
  8542. alignColumns: !0,
  8543. className: "highcharts-no-tooltip",
  8544. layout: "horizontal",
  8545. labelFormatter: function() {
  8546. return this.name;
  8547. },
  8548. borderColor: "#999999",
  8549. borderRadius: 0,
  8550. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  8551. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  8552. itemHoverStyle: { color: "#000000" },
  8553. itemHiddenStyle: { color: "#cccccc" },
  8554. shadow: !1,
  8555. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  8556. squareSymbol: !0,
  8557. symbolPadding: 5,
  8558. verticalAlign: "bottom",
  8559. x: 0,
  8560. y: 0,
  8561. title: { style: { fontWeight: "bold" } }
  8562. },
  8563. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  8564. tooltip: {
  8565. enabled: !0,
  8566. animation: _.svg,
  8567. borderRadius: 3,
  8568. dateTimeLabelFormats: {
  8569. millisecond: "%A, %b %e, %H:%M:%S.%L",
  8570. second: "%A, %b %e, %H:%M:%S",
  8571. minute: "%A, %b %e, %H:%M",
  8572. hour: "%A, %b %e, %H:%M",
  8573. day: "%A, %b %e, %Y",
  8574. week: "Week from %A, %b %e, %Y",
  8575. month: "%B %Y",
  8576. year: "%Y"
  8577. },
  8578. footerFormat: "",
  8579. headerShape: "callout",
  8580. hideDelay: 500,
  8581. padding: 8,
  8582. shape: "callout",
  8583. shared: !1,
  8584. snap: _.isTouchDevice ? 25 : 10,
  8585. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  8586. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  8587. backgroundColor: N("#f7f7f7").setOpacity(0.85).get(),
  8588. borderWidth: 1,
  8589. shadow: !0,
  8590. stickOnContact: !1,
  8591. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  8592. useHTML: !1
  8593. },
  8594. credits: { enabled: !0, href: "https://www.highcharts.com?credits", position: { align: "right", x: -10, verticalAlign: "bottom", y: -5 }, style: { cursor: "pointer", color: "#999999", fontSize: "9px" }, text: "Highcharts.com" }
  8595. };
  8596. B.chart.styledMode = !1;
  8597. var j = new G(F(B.global, B.time));
  8598. return y = { defaultOptions: B, defaultTime: j, getOptions: function() {
  8599. return B;
  8600. }, setOptions: function(w) {
  8601. return F(!0, B, w), (w.time || w.global) && (_.time ? _.time.update(F(
  8602. B.global,
  8603. B.time,
  8604. w.global,
  8605. w.time
  8606. )) : _.time = j), B;
  8607. } }, y;
  8608. }), C(o, "Core/Animation/Fx.js", [o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N, _) {
  8609. var U = y.parse, G = N.win, V = _.isNumber, F = _.objectEach;
  8610. return function() {
  8611. function B(j, w, x) {
  8612. this.pos = NaN, this.options = w, this.elem = j, this.prop = x;
  8613. }
  8614. return B.prototype.dSetter = function() {
  8615. var j = this.paths, w = j && j[0];
  8616. j = j && j[1];
  8617. var x = this.now || 0, f = [];
  8618. if (x !== 1 && w && j)
  8619. if (w.length === j.length && 1 > x)
  8620. for (var l = 0; l < j.length; l++) {
  8621. for (var T = w[l], O = j[l], R = [], k = 0; k < O.length; k++) {
  8622. var b = T[k], S = O[k];
  8623. V(b) && V(S) && (O[0] !== "A" || k !== 4 && k !== 5) ? R[k] = b + x * (S - b) : R[k] = S;
  8624. }
  8625. f.push(R);
  8626. }
  8627. else
  8628. f = j;
  8629. else
  8630. f = this.toD || [];
  8631. this.elem.attr("d", f, void 0, !0);
  8632. }, B.prototype.update = function() {
  8633. var j = this.elem, w = this.prop, x = this.now, f = this.options.step;
  8634. this[w + "Setter"] ? this[w + "Setter"]() : j.attr ? j.element && j.attr(w, x, null, !0) : j.style[w] = x + this.unit, f && f.call(j, x, this);
  8635. }, B.prototype.run = function(j, w, x) {
  8636. var f = this, l = f.options, T = function(k) {
  8637. return T.stopped ? !1 : f.step(k);
  8638. }, O = G.requestAnimationFrame || function(k) {
  8639. setTimeout(
  8640. k,
  8641. 13
  8642. );
  8643. }, R = function() {
  8644. for (var k = 0; k < B.timers.length; k++)
  8645. B.timers[k]() || B.timers.splice(k--, 1);
  8646. B.timers.length && O(R);
  8647. };
  8648. j !== w || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = j, this.end = w, this.unit = x, this.now = this.start, this.pos = 0, T.elem = this.elem, T.prop = this.prop, T() && B.timers.push(T) === 1 && O(R)) : (delete l.curAnim[this.prop], l.complete && Object.keys(l.curAnim).length === 0 && l.complete.call(this.elem));
  8649. }, B.prototype.step = function(j) {
  8650. var w = +/* @__PURE__ */ new Date(), x = this.options, f = this.elem, l = x.complete, T = x.duration, O = x.curAnim;
  8651. if (f.attr && !f.element)
  8652. j = !1;
  8653. else if (j || w >= T + this.startTime) {
  8654. this.now = this.end, this.pos = 1, this.update();
  8655. var R = O[this.prop] = !0;
  8656. F(O, function(k) {
  8657. k !== !0 && (R = !1);
  8658. }), R && l && l.call(f), j = !1;
  8659. } else
  8660. this.pos = x.easing((w - this.startTime) / T), this.now = this.start + (this.end - this.start) * this.pos, this.update(), j = !0;
  8661. return j;
  8662. }, B.prototype.initPath = function(j, w, x) {
  8663. function f(h, c) {
  8664. for (; h.length < v; ) {
  8665. var u = h[0], i = c[v - h.length];
  8666. i && u[0] === "M" && (h[0] = i[0] === "C" ? ["C", u[1], u[2], u[1], u[2], u[1], u[2]] : [
  8667. "L",
  8668. u[1],
  8669. u[2]
  8670. ]), h.unshift(u), R && (u = h.pop(), h.push(h[h.length - 1], u));
  8671. }
  8672. }
  8673. function l(h, c) {
  8674. for (; h.length < v; )
  8675. if (c = h[Math.floor(h.length / k) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), R) {
  8676. var u = h[Math.floor(h.length / k)].slice();
  8677. h.splice(h.length / 2, 0, c, u);
  8678. } else
  8679. h.push(c);
  8680. }
  8681. var T = j.startX, O = j.endX;
  8682. x = x.slice();
  8683. var R = j.isArea, k = R ? 2 : 1;
  8684. if (w = w && w.slice(), !w)
  8685. return [x, x];
  8686. if (T && O && O.length) {
  8687. for (j = 0; j < T.length; j++)
  8688. if (T[j] === O[0]) {
  8689. var b = j;
  8690. break;
  8691. } else if (T[0] === O[O.length - T.length + j]) {
  8692. b = j;
  8693. var S = !0;
  8694. break;
  8695. } else if (T[T.length - 1] === O[O.length - T.length + j]) {
  8696. b = T.length - j;
  8697. break;
  8698. }
  8699. typeof b > "u" && (w = []);
  8700. }
  8701. if (w.length && V(b)) {
  8702. var v = x.length + b * k;
  8703. S ? (f(w, x), l(x, w)) : (f(x, w), l(w, x));
  8704. }
  8705. return [w, x];
  8706. }, B.prototype.fillSetter = function() {
  8707. B.prototype.strokeSetter.apply(this, arguments);
  8708. }, B.prototype.strokeSetter = function() {
  8709. this.elem.attr(this.prop, U(this.start).tweenTo(U(this.end), this.pos), void 0, !0);
  8710. }, B.timers = [], B;
  8711. }();
  8712. }), C(o, "Core/Animation/AnimationUtilities.js", [o["Core/Animation/Fx.js"], o["Core/Utilities.js"]], function(y, N) {
  8713. function _(l) {
  8714. return j(l) ? w({ duration: 500, defer: 0 }, l) : { duration: l ? 500 : 0, defer: 0 };
  8715. }
  8716. function U(l, T) {
  8717. for (var O = y.timers.length; O--; )
  8718. y.timers[O].elem !== l || T && T !== y.timers[O].prop || (y.timers[O].stopped = !0);
  8719. }
  8720. var G = N.defined, V = N.getStyle, F = N.isArray, B = N.isNumber, j = N.isObject, w = N.merge, x = N.objectEach, f = N.pick;
  8721. return { animate: function(l, T, O) {
  8722. var R, k = "", b, S;
  8723. if (!j(O)) {
  8724. var v = arguments;
  8725. O = { duration: v[2], easing: v[3], complete: v[4] };
  8726. }
  8727. B(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = w(T), x(T, function(h, c) {
  8728. U(l, c), S = new y(l, O, c), b = void 0, c === "d" && F(T.d) ? (S.paths = S.initPath(l, l.pathArray, T.d), S.toD = T.d, R = 0, b = 1) : l.attr ? R = l.attr(c) : (R = parseFloat(V(l, c)) || 0, c !== "opacity" && (k = "px")), b || (b = h), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), S.run(R, b, k);
  8729. });
  8730. }, animObject: _, getDeferredAnimation: function(l, T, O) {
  8731. var R = _(T), k = 0, b = 0;
  8732. return (O ? [O] : l.series).forEach(function(S) {
  8733. S = _(S.options.animation), k = T && G(T.defer) ? R.defer : Math.max(k, S.duration + S.defer), b = Math.min(R.duration, S.duration);
  8734. }), l.renderer.forExport && (k = 0), { defer: Math.max(0, k - b), duration: Math.min(k, b) };
  8735. }, setAnimation: function(l, T) {
  8736. T.renderer.globalAnimation = f(l, T.options.chart.animation, !0);
  8737. }, stop: U };
  8738. }), C(o, "Core/Renderer/HTML/AST.js", [o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N) {
  8739. var _ = y.SVG_NS, U = N.attr, G = N.createElement, V = N.error, F = N.isFunction, B = N.isString, j = N.objectEach, w = N.splat, x = (N = y.win.trustedTypes) && F(N.createPolicy) && N.createPolicy("highcharts", { createHTML: function(T) {
  8740. return T;
  8741. } }), f = x ? x.createHTML("") : "";
  8742. try {
  8743. var l = !!new DOMParser().parseFromString(f, "text/html");
  8744. } catch {
  8745. l = !1;
  8746. }
  8747. return F = function() {
  8748. function T(O) {
  8749. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  8750. }
  8751. return T.filterUserAttributes = function(O) {
  8752. return j(O, function(R, k) {
  8753. var b = !0;
  8754. T.allowedAttributes.indexOf(k) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(k) !== -1 && (b = B(R) && T.allowedReferences.some(function(S) {
  8755. return R.indexOf(S) === 0;
  8756. })), b || (V("Highcharts warning: Invalid attribute '" + k + "' in config"), delete O[k]);
  8757. }), O;
  8758. }, T.setElementHTML = function(O, R) {
  8759. O.innerHTML = T.emptyHTML, R && new T(R).addToDOM(O);
  8760. }, T.prototype.addToDOM = function(O) {
  8761. function R(k, b) {
  8762. var S;
  8763. return w(k).forEach(function(v) {
  8764. var h = v.tagName, c = v.textContent ? y.doc.createTextNode(v.textContent) : void 0;
  8765. if (h)
  8766. if (h === "#text")
  8767. var u = c;
  8768. else if (T.allowedTags.indexOf(h) !== -1) {
  8769. h = y.doc.createElementNS(h === "svg" ? _ : b.namespaceURI || _, h);
  8770. var i = v.attributes || {};
  8771. j(v, function(p, a) {
  8772. a !== "tagName" && a !== "attributes" && a !== "children" && a !== "textContent" && (i[a] = p);
  8773. }), U(h, T.filterUserAttributes(i)), c && h.appendChild(c), R(v.children || [], h), u = h;
  8774. } else
  8775. V("Highcharts warning: Invalid tagName " + h + " in config");
  8776. u && b.appendChild(u), S = u;
  8777. }), S;
  8778. }
  8779. return R(this.nodes, O);
  8780. }, T.prototype.parseMarkup = function(O) {
  8781. var R = [];
  8782. if (O = O.trim(), l)
  8783. O = new DOMParser().parseFromString(x ? x.createHTML(O) : O, "text/html");
  8784. else {
  8785. var k = G("div");
  8786. k.innerHTML = O, O = { body: k };
  8787. }
  8788. var b = function(S, v) {
  8789. var h = S.nodeName.toLowerCase(), c = { tagName: h };
  8790. if (h === "#text" && (c.textContent = S.textContent || ""), h = S.attributes) {
  8791. var u = {};
  8792. [].forEach.call(h, function(p) {
  8793. u[p.name] = p.value;
  8794. }), c.attributes = u;
  8795. }
  8796. if (S.childNodes.length) {
  8797. var i = [];
  8798. [].forEach.call(S.childNodes, function(p) {
  8799. b(p, i);
  8800. }), i.length && (c.children = i);
  8801. }
  8802. v.push(c);
  8803. };
  8804. return [].forEach.call(O.body.childNodes, function(S) {
  8805. return b(S, R);
  8806. }), R;
  8807. }, T.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 textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), T.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), T.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 thead tbody tspan td th tr u ul #text".split(" "), T.emptyHTML = f, T;
  8808. }(), F;
  8809. }), C(
  8810. o,
  8811. "Core/FormatUtilities.js",
  8812. [o["Core/DefaultOptions.js"], o["Core/Utilities.js"]],
  8813. function(y, N) {
  8814. function _(w, x, f, l) {
  8815. w = +w || 0, x = +x;
  8816. var T = U.lang, O = (w.toString().split(".")[1] || "").split("e")[0].length, R = w.toString().split("e"), k = x;
  8817. if (x === -1)
  8818. x = Math.min(O, 20);
  8819. else if (!F(x))
  8820. x = 2;
  8821. else if (x && R[1] && 0 > R[1]) {
  8822. var b = x + +R[1];
  8823. 0 <= b ? (R[0] = (+R[0]).toExponential(b).split("e")[0], x = b) : (R[0] = R[0].split(".")[0] || 0, w = 20 > x ? (R[0] * Math.pow(10, R[1])).toFixed(x) : 0, R[1] = 0);
  8824. }
  8825. b = (Math.abs(R[1] ? R[0] : w) + Math.pow(10, -Math.max(x, O) - 1)).toFixed(x), O = String(j(b));
  8826. var S = 3 < O.length ? O.length % 3 : 0;
  8827. return f = B(f, T.decimalPoint), l = B(l, T.thousandsSep), w = (0 > w ? "-" : "") + (S ? O.substr(0, S) + l : ""), w = 0 > +R[1] && !k ? "0" : w + O.substr(S).replace(/(\d{3})(?=\d)/g, "$1" + l), x && (w += f + b.slice(-x)), R[1] && +w != 0 && (w += "e" + R[1]), w;
  8828. }
  8829. var U = y.defaultOptions, G = y.defaultTime, V = N.getNestedProperty, F = N.isNumber, B = N.pick, j = N.pInt;
  8830. return { dateFormat: function(w, x, f) {
  8831. return G.dateFormat(w, x, f);
  8832. }, format: function(w, x, f) {
  8833. var l = "{", T = !1, O = /f$/, R = /\.([0-9])/, k = U.lang, b = f && f.time || G;
  8834. f = f && f.numberFormatter || _;
  8835. for (var S = []; w; ) {
  8836. var v = w.indexOf(l);
  8837. if (v === -1)
  8838. break;
  8839. var h = w.slice(0, v);
  8840. if (T) {
  8841. if (h = h.split(":"), l = V(h.shift() || "", x), h.length && typeof l == "number")
  8842. if (h = h.join(":"), O.test(h)) {
  8843. var c = parseInt((h.match(R) || ["", "-1"])[1], 10);
  8844. l !== null && (l = f(l, c, k.decimalPoint, -1 < h.indexOf(",") ? k.thousandsSep : ""));
  8845. } else
  8846. l = b.dateFormat(h, l);
  8847. S.push(l);
  8848. } else
  8849. S.push(h);
  8850. w = w.slice(v + 1), l = (T = !T) ? "}" : "{";
  8851. }
  8852. return S.push(w), S.join("");
  8853. }, numberFormat: _ };
  8854. }
  8855. ), C(o, "Core/Renderer/RendererUtilities.js", [o["Core/Utilities.js"]], function(y) {
  8856. var N = y.clamp, _ = y.pick, U = y.stableSort, G;
  8857. return function(V) {
  8858. function F(B, j, w) {
  8859. var x = B, f = x.reducedLen || j, l = function(S, v) {
  8860. return (v.rank || 0) - (S.rank || 0);
  8861. }, T = function(S, v) {
  8862. return S.target - v.target;
  8863. }, O, R = !0, k = [], b = 0;
  8864. for (O = B.length; O--; )
  8865. b += B[O].size;
  8866. if (b > f) {
  8867. for (U(B, l), b = O = 0; b <= f; )
  8868. b += B[O].size, O++;
  8869. k = B.splice(O - 1, B.length);
  8870. }
  8871. for (U(B, T), B = B.map(function(S) {
  8872. return { size: S.size, targets: [S.target], align: _(S.align, 0.5) };
  8873. }); R; ) {
  8874. for (O = B.length; O--; )
  8875. f = B[O], l = (Math.min.apply(0, f.targets) + Math.max.apply(0, f.targets)) / 2, f.pos = N(
  8876. l - f.size * f.align,
  8877. 0,
  8878. j - f.size
  8879. );
  8880. for (O = B.length, R = !1; O--; )
  8881. 0 < O && B[O - 1].pos + B[O - 1].size > B[O].pos && (B[O - 1].size += B[O].size, B[O - 1].targets = B[O - 1].targets.concat(B[O].targets), B[O - 1].align = 0.5, B[O - 1].pos + B[O - 1].size > j && (B[O - 1].pos = j - B[O - 1].size), B.splice(O, 1), R = !0);
  8882. }
  8883. return x.push.apply(x, k), O = 0, B.some(function(S) {
  8884. var v = 0;
  8885. return (S.targets || []).some(function() {
  8886. return x[O].pos = S.pos + v, typeof w < "u" && Math.abs(x[O].pos - x[O].target) > w ? (x.slice(0, O + 1).forEach(function(h) {
  8887. return delete h.pos;
  8888. }), x.reducedLen = (x.reducedLen || j) - 0.1 * j, x.reducedLen > 0.1 * j && F(x, j, w), !0) : (v += x[O].size, O++, !1);
  8889. });
  8890. }), U(x, T), x;
  8891. }
  8892. V.distribute = F;
  8893. }(G || (G = {})), G;
  8894. }), C(o, "Core/Renderer/SVG/SVGElement.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Renderer/HTML/AST.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N, _, U, G) {
  8895. var V = y.animate, F = y.animObject, B = y.stop, j = U.deg2rad, w = U.doc, x = U.noop, f = U.svg, l = U.SVG_NS, T = U.win, O = G.addEvent, R = G.attr, k = G.createElement, b = G.css, S = G.defined, v = G.erase, h = G.extend, c = G.fireEvent, u = G.isArray, i = G.isFunction, p = G.isNumber, a = G.isString, t = G.merge, s = G.objectEach, n = G.pick, P = G.pInt, D = G.syncTimeout, I = G.uniqueKey;
  8896. return y = function() {
  8897. function W() {
  8898. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = l, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  8899. }
  8900. return W.prototype._defaultGetter = function(E) {
  8901. return E = n(this[E + "Value"], this[E], this.element ? this.element.getAttribute(E) : null, 0), /^[\-0-9\.]+$/.test(E) && (E = parseFloat(E)), E;
  8902. }, W.prototype._defaultSetter = function(E, X, g) {
  8903. g.setAttribute(X, E);
  8904. }, W.prototype.add = function(E) {
  8905. var X = this.renderer, g = this.element;
  8906. if (E && (this.parentGroup = E), this.parentInverted = E && E.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !E || E.handleZ || this.zIndex)
  8907. var m = this.zIndexSetter();
  8908. return m || (E ? E.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  8909. }, W.prototype.addClass = function(E, X) {
  8910. var g = X ? "" : this.attr("class") || "";
  8911. return E = (E || "").split(/ /g).reduce(function(m, L) {
  8912. return g.indexOf(L) === -1 && m.push(L), m;
  8913. }, g ? [g] : []).join(" "), E !== g && this.attr("class", E), this;
  8914. }, W.prototype.afterSetters = function() {
  8915. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  8916. }, W.prototype.align = function(E, X, g) {
  8917. var m = {}, L = this.renderer, z = L.alignedObjects, $, Q, A;
  8918. E ? (this.alignOptions = E, this.alignByTranslate = X, (!g || a(g)) && (this.alignTo = $ = g || "renderer", v(z, this), z.push(this), g = void 0)) : (E = this.alignOptions, X = this.alignByTranslate, $ = this.alignTo), g = n(g, L[$], $ === "scrollablePlotBox" ? L.plotBox : void 0, L), $ = E.align;
  8919. var H = E.verticalAlign;
  8920. return L = (g.x || 0) + (E.x || 0), z = (g.y || 0) + (E.y || 0), $ === "right" ? Q = 1 : $ === "center" && (Q = 2), Q && (L += (g.width - (E.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), H === "bottom" ? A = 1 : H === "middle" && (A = 2), A && (z += (g.height - (E.height || 0)) / A), m[X ? "translateY" : "y"] = Math.round(z), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  8921. }, W.prototype.alignSetter = function(E) {
  8922. var X = { left: "start", center: "middle", right: "end" };
  8923. X[E] && (this.alignValue = E, this.element.setAttribute(
  8924. "text-anchor",
  8925. X[E]
  8926. ));
  8927. }, W.prototype.animate = function(E, X, g) {
  8928. var m = this, L = F(n(X, this.renderer.globalAnimation, !0));
  8929. return X = L.defer, n(w.hidden, w.msHidden, w.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), D(function() {
  8930. m.element && V(m, E, L);
  8931. }, X)) : (this.attr(E, void 0, g), s(E, function(z, $) {
  8932. L.step && L.step.call(this, z, { prop: $, pos: 1, elem: this });
  8933. }, this)), this;
  8934. }, W.prototype.applyTextOutline = function(E) {
  8935. var X = this.element;
  8936. E.indexOf("contrast") !== -1 && (E = E.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  8937. var g = E.split(" ");
  8938. if (E = g[g.length - 1], (g = g[0]) && g !== "none" && U.svg) {
  8939. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(z, $, Q) {
  8940. return 2 * Number($) + Q;
  8941. }), this.removeTextOutline();
  8942. var m = w.createElementNS(l, "tspan");
  8943. R(m, { class: "highcharts-text-outline", fill: E, stroke: E, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(z) {
  8944. var $ = z.cloneNode(!0);
  8945. $.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  8946. return $.removeAttribute(Q);
  8947. }), m.appendChild($);
  8948. });
  8949. var L = w.createElementNS(l, "tspan");
  8950. L.textContent = "​", ["x", "y"].forEach(function(z) {
  8951. var $ = X.getAttribute(z);
  8952. $ && L.setAttribute(z, $);
  8953. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  8954. }
  8955. }, W.prototype.attr = function(E, X, g, m) {
  8956. var L = this.element, z = this.symbolCustomAttribs, $, Q = this, A, H;
  8957. if (typeof E == "string" && typeof X < "u") {
  8958. var Y = E;
  8959. E = {}, E[Y] = X;
  8960. }
  8961. return typeof E == "string" ? Q = (this[E + "Getter"] || this._defaultGetter).call(this, E, L) : (s(E, function(Z, q) {
  8962. A = !1, m || B(this, q), this.symbolName && z.indexOf(q) !== -1 && ($ || (this.symbolAttr(E), $ = !0), A = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), A || (H = this[q + "Setter"] || this._defaultSetter, H.call(this, Z, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, Z, H));
  8963. }, this), this.afterSetters()), g && g.call(this), Q;
  8964. }, W.prototype.clip = function(E) {
  8965. return this.attr("clip-path", E ? "url(" + this.renderer.url + "#" + E.id + ")" : "none");
  8966. }, W.prototype.crisp = function(E, X) {
  8967. X = X || E.strokeWidth || 0;
  8968. var g = Math.round(X) % 2 / 2;
  8969. return E.x = Math.floor(E.x || this.x || 0) + g, E.y = Math.floor(E.y || this.y || 0) + g, E.width = Math.floor((E.width || this.width || 0) - 2 * g), E.height = Math.floor((E.height || this.height || 0) - 2 * g), S(E.strokeWidth) && (E.strokeWidth = X), E;
  8970. }, W.prototype.complexColor = function(E, X, g) {
  8971. var m = this.renderer, L, z, $, Q, A, H, Y, Z, q, it, et = [], nt;
  8972. c(this.renderer, "complexColor", { args: arguments }, function() {
  8973. if (E.radialGradient ? z = "radialGradient" : E.linearGradient && (z = "linearGradient"), z) {
  8974. if ($ = E[z], A = m.gradients, H = E.stops, q = g.radialReference, u($) && (E[z] = $ = { x1: $[0], y1: $[1], x2: $[2], y2: $[3], gradientUnits: "userSpaceOnUse" }), z === "radialGradient" && q && !S($.gradientUnits) && (Q = $, $ = t($, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), s($, function(ct, gt) {
  8975. gt !== "id" && et.push(gt, ct);
  8976. }), s(H, function(ct) {
  8977. et.push(ct);
  8978. }), et = et.join(","), A[et])
  8979. it = A[et].attr("id");
  8980. else {
  8981. $.id = it = I();
  8982. var rt = A[et] = m.createElement(z).attr($).add(m.defs);
  8983. rt.radAttr = Q, rt.stops = [], H.forEach(function(ct) {
  8984. ct[1].indexOf("rgba") === 0 ? (L = _.parse(ct[1]), Y = L.get("rgb"), Z = L.get("a")) : (Y = ct[1], Z = 1), ct = m.createElement("stop").attr({
  8985. offset: ct[0],
  8986. "stop-color": Y,
  8987. "stop-opacity": Z
  8988. }).add(rt), rt.stops.push(ct);
  8989. });
  8990. }
  8991. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, E.toString = function() {
  8992. return nt;
  8993. };
  8994. }
  8995. });
  8996. }, W.prototype.css = function(E) {
  8997. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], z = "", $ = !X;
  8998. if (E && E.color && (E.fill = E.color), X && s(E, function(H, Y) {
  8999. X && X[Y] !== H && (g[Y] = H, $ = !0);
  9000. }), $) {
  9001. if (X && (E = h(X, g)), E) {
  9002. if (E.width === null || E.width === "auto")
  9003. delete this.textWidth;
  9004. else if (m.nodeName.toLowerCase() === "text" && E.width)
  9005. var Q = this.textWidth = P(E.width);
  9006. }
  9007. if (this.styles = E, Q && !f && this.renderer.forExport && delete E.width, m.namespaceURI === this.SVG_NS) {
  9008. var A = function(H, Y) {
  9009. return "-" + Y.toLowerCase();
  9010. };
  9011. s(E, function(H, Y) {
  9012. L.indexOf(Y) === -1 && (z += Y.replace(/([A-Z])/g, A) + ":" + H + ";");
  9013. }), z && R(m, "style", z);
  9014. } else
  9015. b(m, E);
  9016. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), E && E.textOutline && this.applyTextOutline(E.textOutline));
  9017. }
  9018. return this;
  9019. }, W.prototype.dashstyleSetter = function(E) {
  9020. var X = this["stroke-width"];
  9021. if (X === "inherit" && (X = 1), E = E && E.toLowerCase()) {
  9022. var g = E.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(",");
  9023. for (E = g.length; E--; )
  9024. g[E] = "" + P(g[E]) * n(X, NaN);
  9025. E = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", E);
  9026. }
  9027. }, W.prototype.destroy = function() {
  9028. var E = this, X = E.element || {}, g = E.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && E.parentGroup || void 0;
  9029. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, B(E), E.clipPath && m) {
  9030. var z = E.clipPath;
  9031. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function($) {
  9032. -1 < $.getAttribute("clip-path").indexOf(z.element.id) && $.removeAttribute("clip-path");
  9033. }), E.clipPath = z.destroy();
  9034. }
  9035. if (E.stops) {
  9036. for (m = 0; m < E.stops.length; m++)
  9037. E.stops[m].destroy();
  9038. E.stops.length = 0, E.stops = void 0;
  9039. }
  9040. for (E.safeRemoveChild(X), g.styledMode || E.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  9041. X = L.parentGroup, E.safeRemoveChild(L.div), delete L.div, L = X;
  9042. E.alignTo && v(g.alignedObjects, E), s(E, function($, Q) {
  9043. E[Q] && E[Q].parentGroup === E && E[Q].destroy && E[Q].destroy(), delete E[Q];
  9044. });
  9045. }, W.prototype.destroyShadows = function() {
  9046. (this.shadows || []).forEach(function(E) {
  9047. this.safeRemoveChild(E);
  9048. }, this), this.shadows = void 0;
  9049. }, W.prototype.destroyTextPath = function(E, X) {
  9050. var g = E.getElementsByTagName("text")[0];
  9051. if (g) {
  9052. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  9053. for (E = this.textPathWrapper.element.childNodes; E.length; )
  9054. g.appendChild(E[0]);
  9055. g.removeChild(this.textPathWrapper.element);
  9056. }
  9057. } else
  9058. (E.getAttribute("dx") || E.getAttribute("dy")) && (E.removeAttribute("dx"), E.removeAttribute("dy"));
  9059. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  9060. }, W.prototype.dSetter = function(E, X, g) {
  9061. u(E) && (typeof E[0] == "string" && (E = this.renderer.pathToSegments(E)), this.pathArray = E, E = E.reduce(function(m, L, z) {
  9062. return L && L.join ? (z ? m + " " : "") + L.join(" ") : (L || "").toString();
  9063. }, "")), /(NaN| {2}|^$)/.test(E) && (E = "M 0 0"), this[X] !== E && (g.setAttribute(X, E), this[X] = E);
  9064. }, W.prototype.fadeOut = function(E) {
  9065. var X = this;
  9066. X.animate({ opacity: 0 }, { duration: n(E, 150), complete: function() {
  9067. X.attr({ y: -9999 }).hide();
  9068. } });
  9069. }, W.prototype.fillSetter = function(E, X, g) {
  9070. typeof E == "string" ? g.setAttribute(X, E) : E && this.complexColor(E, X, g);
  9071. }, W.prototype.getBBox = function(E, X) {
  9072. var g = this.renderer, m = this.element, L = this.styles, z = this.textStr, $ = g.cache, Q = g.cacheKeys, A = m.namespaceURI === this.SVG_NS;
  9073. X = n(X, this.rotation, 0);
  9074. var H = g.styledMode ? m && W.prototype.getStyle.call(m, "font-size") : L && L.fontSize, Y;
  9075. if (S(z)) {
  9076. var Z = z.toString();
  9077. Z.indexOf("<") === -1 && (Z = Z.replace(/[0-9]/g, "0")), Z += ["", X, H, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  9078. }
  9079. if (Z && !E && (Y = $[Z]), !Y) {
  9080. if (A || g.forExport) {
  9081. try {
  9082. var q = this.fakeTS && function(it) {
  9083. var et = m.querySelector(".highcharts-text-outline");
  9084. et && b(et, { display: it });
  9085. };
  9086. i(q) && q("none"), Y = m.getBBox ? h({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  9087. } catch {
  9088. }
  9089. (!Y || 0 > Y.width) && (Y = {
  9090. width: 0,
  9091. height: 0
  9092. });
  9093. } else
  9094. Y = this.htmlGetBBox();
  9095. if (g.isSVG && (E = Y.width, g = Y.height, A && (Y.height = g = { "11px,17": 14, "13px,20": 16 }[(H || "") + "," + Math.round(g)] || g), X && (A = X * j, Y.width = Math.abs(g * Math.sin(A)) + Math.abs(E * Math.cos(A)), Y.height = Math.abs(g * Math.cos(A)) + Math.abs(E * Math.sin(A)))), Z && (z === "" || 0 < Y.height)) {
  9096. for (; 250 < Q.length; )
  9097. delete $[Q.shift()];
  9098. $[Z] || Q.push(Z), $[Z] = Y;
  9099. }
  9100. }
  9101. return Y;
  9102. }, W.prototype.getStyle = function(E) {
  9103. return T.getComputedStyle(this.element || this, "").getPropertyValue(E);
  9104. }, W.prototype.hasClass = function(E) {
  9105. return ("" + this.attr("class")).split(" ").indexOf(E) !== -1;
  9106. }, W.prototype.hide = function(E) {
  9107. return E ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  9108. }, W.prototype.htmlGetBBox = function() {
  9109. return { height: 0, width: 0, x: 0, y: 0 };
  9110. }, W.prototype.init = function(E, X) {
  9111. this.element = X === "span" ? k(X) : w.createElementNS(this.SVG_NS, X), this.renderer = E, c(this, "afterInit");
  9112. }, W.prototype.invert = function(E) {
  9113. return this.inverted = E, this.updateTransform(), this;
  9114. }, W.prototype.on = function(E, X) {
  9115. var g = this.onEvents;
  9116. return g[E] && g[E](), g[E] = O(
  9117. this.element,
  9118. E,
  9119. X
  9120. ), this;
  9121. }, W.prototype.opacitySetter = function(E, X, g) {
  9122. this.opacity = E = Number(Number(E).toFixed(3)), g.setAttribute(X, E);
  9123. }, W.prototype.removeClass = function(E) {
  9124. return this.attr("class", ("" + this.attr("class")).replace(a(E) ? new RegExp("(^| )" + E + "( |$)") : E, " ").replace(/ +/g, " ").trim());
  9125. }, W.prototype.removeTextOutline = function() {
  9126. var E = this.element.querySelector("tspan.highcharts-text-outline");
  9127. E && this.safeRemoveChild(E);
  9128. }, W.prototype.safeRemoveChild = function(E) {
  9129. var X = E.parentNode;
  9130. X && X.removeChild(E);
  9131. }, W.prototype.setRadialReference = function(E) {
  9132. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  9133. return this.element.radialReference = E, X && X.radAttr && X.animate(this.renderer.getRadialAttr(E, X.radAttr)), this;
  9134. }, W.prototype.setTextPath = function(E, X) {
  9135. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, z = !1, $ = this.textPathWrapper, Q = !$;
  9136. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  9137. var A = N.filterUserAttributes(X.attributes);
  9138. if (E && X && X.enabled) {
  9139. $ && $.element.parentNode === null ? (Q = !0, $ = $.destroy()) : $ && this.removeTextOutline.call($.parentGroup), this.options && this.options.padding && (A.dx = -this.options.padding), $ || (this.textPathWrapper = $ = this.renderer.createElement("textPath"), z = !0);
  9140. var H = $.element;
  9141. if ((X = E.element.getAttribute("id")) || E.element.setAttribute("id", X = I()), Q)
  9142. for (m.setAttribute("y", 0), p(A.dx) && m.setAttribute("x", -A.dx), E = [].slice.call(m.childNodes), Q = 0; Q < E.length; Q++) {
  9143. var Y = E[Q];
  9144. Y.nodeType !== T.Node.TEXT_NODE && Y.nodeName !== "tspan" || H.appendChild(Y);
  9145. }
  9146. z && $ && $.add({ element: m }), H.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), S(A.dy) && (H.parentNode.setAttribute("dy", A.dy), delete A.dy), S(A.dx) && (H.parentNode.setAttribute("dx", A.dx), delete A.dx), s(A, function(Z, q) {
  9147. H.setAttribute(L[q] || q, Z);
  9148. }), g.removeAttribute("transform"), this.removeTextOutline.call($), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = x;
  9149. } else
  9150. $ && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, E), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  9151. return this;
  9152. }, W.prototype.shadow = function(E, X, g) {
  9153. var m = [], L = this.element, z = this.oldShadowOptions, $ = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, A;
  9154. if (E === !0 ? A = $ : typeof E == "object" && (A = h($, E)), A && (A && z && s(A, function(it, et) {
  9155. it !== z[et] && (Q = !0);
  9156. }), Q && this.destroyShadows(), this.oldShadowOptions = A), !A)
  9157. this.destroyShadows();
  9158. else if (!this.shadows) {
  9159. var H = A.opacity / A.width, Y = this.parentInverted ? "translate(" + A.offsetY + ", " + A.offsetX + ")" : "translate(" + A.offsetX + ", " + A.offsetY + ")";
  9160. for ($ = 1; $ <= A.width; $++) {
  9161. var Z = L.cloneNode(!1), q = 2 * A.width + 1 - 2 * $;
  9162. R(Z, { stroke: E.color || "#000000", "stroke-opacity": H * $, "stroke-width": q, transform: Y, fill: "none" }), Z.setAttribute("class", (Z.getAttribute("class") || "") + " highcharts-shadow"), g && (R(Z, "height", Math.max(R(Z, "height") - q, 0)), Z.cutHeight = q), X ? X.element.appendChild(Z) : L.parentNode && L.parentNode.insertBefore(Z, L), m.push(Z);
  9163. }
  9164. this.shadows = m;
  9165. }
  9166. return this;
  9167. }, W.prototype.show = function(E) {
  9168. return this.attr({ visibility: E ? "inherit" : "visible" });
  9169. }, W.prototype.strokeSetter = function(E, X, g) {
  9170. this[X] = E, this.stroke && this["stroke-width"] ? (W.prototype.fillSetter.call(this, this.stroke, "stroke", g), g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0) : X === "stroke-width" && E === 0 && this.hasStroke ? (g.removeAttribute("stroke"), this.hasStroke = !1) : this.renderer.styledMode && this["stroke-width"] && (g.setAttribute("stroke-width", this["stroke-width"]), this.hasStroke = !0);
  9171. }, W.prototype.strokeWidth = function() {
  9172. if (!this.renderer.styledMode)
  9173. return this["stroke-width"] || 0;
  9174. var E = this.getStyle("stroke-width"), X = 0;
  9175. if (E.indexOf("px") === E.length - 2)
  9176. X = P(E);
  9177. else if (E !== "") {
  9178. var g = w.createElementNS(l, "rect");
  9179. R(g, { width: E, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  9180. }
  9181. return X;
  9182. }, W.prototype.symbolAttr = function(E) {
  9183. var X = this;
  9184. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  9185. X[g] = n(E[g], X[g]);
  9186. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  9187. }, W.prototype.textSetter = function(E) {
  9188. E !== this.textStr && (delete this.textPxLength, this.textStr = E, this.added && this.renderer.buildText(this));
  9189. }, W.prototype.titleSetter = function(E) {
  9190. var X = this.element, g = X.getElementsByTagName("title")[0] || w.createElementNS(this.SVG_NS, "title");
  9191. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(E, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  9192. /&gt;/g,
  9193. ">"
  9194. );
  9195. }, W.prototype.toFront = function() {
  9196. var E = this.element;
  9197. return E.parentNode.appendChild(E), this;
  9198. }, W.prototype.translate = function(E, X) {
  9199. return this.attr({ translateX: E, translateY: X });
  9200. }, W.prototype.updateShadows = function(E, X, g) {
  9201. var m = this.shadows;
  9202. if (m)
  9203. for (var L = m.length; L--; )
  9204. g.call(m[L], E === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : E === "d" ? this.d : X, E, m[L]);
  9205. }, W.prototype.updateTransform = function() {
  9206. var E = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, z = this.element, $ = this.translateX || 0, Q = this.translateY || 0;
  9207. g && ($ += this.width, Q += this.height), $ = ["translate(" + $ + "," + Q + ")"], S(L) && $.push("matrix(" + L.join(",") + ")"), g ? $.push("rotate(90) scale(-1,1)") : m && $.push("rotate(" + m + " " + n(this.rotationOriginX, z.getAttribute("x"), 0) + " " + n(this.rotationOriginY, z.getAttribute("y") || 0) + ")"), (S(E) || S(X)) && $.push("scale(" + n(E, 1) + " " + n(X, 1) + ")"), $.length && z.setAttribute("transform", $.join(" "));
  9208. }, W.prototype.visibilitySetter = function(E, X, g) {
  9209. E === "inherit" ? g.removeAttribute(X) : this[X] !== E && g.setAttribute(
  9210. X,
  9211. E
  9212. ), this[X] = E;
  9213. }, W.prototype.xGetter = function(E) {
  9214. return this.element.nodeName === "circle" && (E === "x" ? E = "cx" : E === "y" && (E = "cy")), this._defaultGetter(E);
  9215. }, W.prototype.zIndexSetter = function(E, X) {
  9216. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, z = this.element;
  9217. g = L === g.box;
  9218. var $ = !1, Q = this.added, A;
  9219. if (S(E) ? (z.setAttribute("data-z-index", E), E = +E, this[X] === E && (Q = !1)) : S(this[X]) && z.removeAttribute("data-z-index"), this[X] = E, Q) {
  9220. for ((E = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, A = X.length - 1; 0 <= A && !$; A--) {
  9221. m = X[A], Q = m.getAttribute("data-z-index");
  9222. var H = !S(Q);
  9223. m !== z && (0 > E && H && !g && !A ? (L.insertBefore(z, X[A]), $ = !0) : (P(Q) <= E || H && (!S(E) || 0 <= E)) && (L.insertBefore(z, X[A + 1] || null), $ = !0));
  9224. }
  9225. $ || (L.insertBefore(z, X[g ? 3 : 0] || null), $ = !0);
  9226. }
  9227. return $;
  9228. }, W;
  9229. }(), y.prototype["stroke-widthSetter"] = y.prototype.strokeSetter, y.prototype.yGetter = y.prototype.xGetter, y.prototype.matrixSetter = y.prototype.rotationOriginXSetter = y.prototype.rotationOriginYSetter = y.prototype.rotationSetter = y.prototype.scaleXSetter = y.prototype.scaleYSetter = y.prototype.translateXSetter = y.prototype.translateYSetter = y.prototype.verticalAlignSetter = function(W, E) {
  9230. this[E] = W, this.doTransform = !0;
  9231. }, y;
  9232. }), C(o, "Core/Renderer/RendererRegistry.js", [o["Core/Globals.js"]], function(y) {
  9233. var N;
  9234. return function(_) {
  9235. _.rendererTypes = {};
  9236. var U;
  9237. _.getRendererType = function(G) {
  9238. return G === void 0 && (G = U), _.rendererTypes[G] || _.rendererTypes[U];
  9239. }, _.registerRendererType = function(G, V, F) {
  9240. _.rendererTypes[G] = V, (!U || F) && (U = G, y.Renderer = V);
  9241. };
  9242. }(N || (N = {})), N;
  9243. }), C(
  9244. o,
  9245. "Core/Renderer/SVG/SVGLabel.js",
  9246. [o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]],
  9247. function(y, N) {
  9248. var _ = this && this.__extends || function() {
  9249. var w = function(x, f) {
  9250. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, T) {
  9251. l.__proto__ = T;
  9252. } || function(l, T) {
  9253. for (var O in T)
  9254. T.hasOwnProperty(O) && (l[O] = T[O]);
  9255. }, w(x, f);
  9256. };
  9257. return function(x, f) {
  9258. function l() {
  9259. this.constructor = x;
  9260. }
  9261. w(x, f), x.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
  9262. };
  9263. }(), U = N.defined, G = N.extend, V = N.isNumber, F = N.merge, B = N.pick, j = N.removeEvent;
  9264. return function(w) {
  9265. function x(f, l, T, O, R, k, b, S, v, h) {
  9266. var c = w.call(this) || this;
  9267. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(f, "g"), c.textStr = l, c.x = T, c.y = O, c.anchorX = k, c.anchorY = b, c.baseline = v, c.className = h, c.addClass(h === "button" ? "highcharts-no-tooltip" : "highcharts-label"), h && c.addClass("highcharts-" + h), c.text = f.text(void 0, 0, 0, S).attr({ zIndex: 1 });
  9268. var u;
  9269. return typeof R == "string" && ((u = /^url\((.*?)\)$/.test(R)) || c.renderer.symbols[R]) && (c.symbolKey = R), c.bBox = x.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = f.styledMode || u, c.deferredAttr = {}, c.alignFactor = 0, c;
  9270. }
  9271. return _(x, w), x.prototype.alignSetter = function(f) {
  9272. f = { left: 0, center: 0.5, right: 1 }[f], f !== this.alignFactor && (this.alignFactor = f, this.bBox && V(this.xSetting) && this.attr({ x: this.xSetting }));
  9273. }, x.prototype.anchorXSetter = function(f, l) {
  9274. this.anchorX = f, this.boxAttr(l, Math.round(f) - this.getCrispAdjust() - this.xSetting);
  9275. }, x.prototype.anchorYSetter = function(f, l) {
  9276. this.anchorY = f, this.boxAttr(l, f - this.ySetting);
  9277. }, x.prototype.boxAttr = function(f, l) {
  9278. this.box ? this.box.attr(f, l) : this.deferredAttr[f] = l;
  9279. }, x.prototype.css = function(f) {
  9280. if (f) {
  9281. var l = {};
  9282. f = F(f), x.textProps.forEach(function(O) {
  9283. typeof f[O] < "u" && (l[O] = f[O], delete f[O]);
  9284. }), this.text.css(l);
  9285. var T = "width" in l;
  9286. "fontSize" in l || "fontWeight" in l ? this.updateTextPadding() : T && this.updateBoxSize();
  9287. }
  9288. return y.prototype.css.call(this, f);
  9289. }, x.prototype.destroy = function() {
  9290. j(this.element, "mouseenter"), j(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  9291. }, x.prototype.fillSetter = function(f, l) {
  9292. f && (this.needsBox = !0), this.fill = f, this.boxAttr(l, f);
  9293. }, x.prototype.getBBox = function() {
  9294. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  9295. var f = this.padding, l = B(this.paddingLeft, f);
  9296. return { width: this.width, height: this.height, x: this.bBox.x - l, y: this.bBox.y - f };
  9297. }, x.prototype.getCrispAdjust = function() {
  9298. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  9299. this["stroke-width"],
  9300. 10
  9301. ) : 0) % 2 / 2;
  9302. }, x.prototype.heightSetter = function(f) {
  9303. this.heightSetting = f;
  9304. }, x.prototype.onAdd = function() {
  9305. var f = this.textStr;
  9306. this.text.add(this), this.attr({ text: U(f) ? f : "", x: this.x, y: this.y }), this.box && U(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  9307. }, x.prototype.paddingSetter = function(f, l) {
  9308. V(f) ? f !== this[l] && (this[l] = f, this.updateTextPadding()) : this[l] = void 0;
  9309. }, x.prototype.rSetter = function(f, l) {
  9310. this.boxAttr(l, f);
  9311. }, x.prototype.shadow = function(f) {
  9312. return f && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(f)), this;
  9313. }, x.prototype.strokeSetter = function(f, l) {
  9314. this.stroke = f, this.boxAttr(l, f);
  9315. }, x.prototype["stroke-widthSetter"] = function(f, l) {
  9316. f && (this.needsBox = !0), this["stroke-width"] = f, this.boxAttr(l, f);
  9317. }, x.prototype["text-alignSetter"] = function(f) {
  9318. this.textAlign = f;
  9319. }, x.prototype.textSetter = function(f) {
  9320. typeof f < "u" && this.text.attr({ text: f }), this.updateTextPadding();
  9321. }, x.prototype.updateBoxSize = function() {
  9322. var f = this.text.element.style, l = {}, T = this.padding, O = this.bBox = V(this.widthSetting) && V(this.heightSetting) && !this.textAlign || !U(this.text.textStr) ? x.emptyBBox : this.text.getBBox();
  9323. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * T, f = this.renderer.fontMetrics(f && f.fontSize, this.text), this.baselineOffset = T + Math.min((this.text.firstLineMetrics || f).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - f.h) / 2), this.needsBox && (this.box || (T = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), T.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), T.add(this)), T = this.getCrispAdjust(), l.x = T, l.y = (this.baseline ? -this.baselineOffset : 0) + T, l.width = Math.round(this.width), l.height = Math.round(this.height), this.box.attr(G(l, this.deferredAttr)), this.deferredAttr = {});
  9324. }, x.prototype.updateTextPadding = function() {
  9325. var f = this.text;
  9326. this.updateBoxSize();
  9327. var l = this.baseline ? 0 : this.baselineOffset, T = B(this.paddingLeft, this.padding);
  9328. U(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (T += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (T !== f.x || l !== f.y) && (f.attr("x", T), f.hasBoxWidthChanged && (this.bBox = f.getBBox(!0)), typeof l < "u" && f.attr("y", l)), f.x = T, f.y = l;
  9329. }, x.prototype.widthSetter = function(f) {
  9330. this.widthSetting = V(f) ? f : void 0;
  9331. }, x.prototype.getPaddedWidth = function() {
  9332. var f = this.padding, l = B(this.paddingLeft, f);
  9333. return f = B(this.paddingRight, f), (this.widthSetting || this.bBox.width || 0) + l + f;
  9334. }, x.prototype.xSetter = function(f) {
  9335. this.x = f, this.alignFactor && (f -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(f), this.attr("translateX", this.xSetting);
  9336. }, x.prototype.ySetter = function(f) {
  9337. this.ySetting = this.y = Math.round(f), this.attr("translateY", this.ySetting);
  9338. }, x.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, x.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), x;
  9339. }(y);
  9340. }
  9341. ), C(
  9342. o,
  9343. "Core/Renderer/SVG/Symbols.js",
  9344. [o["Core/Utilities.js"]],
  9345. function(y) {
  9346. function N(B, j, w, x, f) {
  9347. var l = [];
  9348. if (f) {
  9349. var T = f.start || 0, O = F(f.r, w);
  9350. w = F(f.r, x || w);
  9351. var R = (f.end || 0) - 1e-3;
  9352. x = f.innerR;
  9353. var k = F(f.open, 1e-3 > Math.abs((f.end || 0) - T - 2 * Math.PI)), b = Math.cos(T), S = Math.sin(T), v = Math.cos(R), h = Math.sin(R);
  9354. T = F(f.longArc, 1e-3 > R - T - Math.PI ? 0 : 1), l.push(["M", B + O * b, j + w * S], ["A", O, w, 0, T, F(f.clockwise, 1), B + O * v, j + w * h]), G(x) && l.push(k ? ["M", B + x * v, j + x * h] : ["L", B + x * v, j + x * h], ["A", x, x, 0, T, G(f.clockwise) ? 1 - f.clockwise : 0, B + x * b, j + x * S]), k || l.push(["Z"]);
  9355. }
  9356. return l;
  9357. }
  9358. function _(B, j, w, x, f) {
  9359. return f && f.r ? U(B, j, w, x, f) : [["M", B, j], ["L", B + w, j], ["L", B + w, j + x], ["L", B, j + x], ["Z"]];
  9360. }
  9361. function U(B, j, w, x, f) {
  9362. return f = f && f.r || 0, [["M", B + f, j], ["L", B + w - f, j], ["C", B + w, j, B + w, j, B + w, j + f], ["L", B + w, j + x - f], ["C", B + w, j + x, B + w, j + x, B + w - f, j + x], ["L", B + f, j + x], ["C", B, j + x, B, j + x, B, j + x - f], ["L", B, j + f], ["C", B, j, B, j, B + f, j]];
  9363. }
  9364. var G = y.defined, V = y.isNumber, F = y.pick;
  9365. return { arc: N, callout: function(B, j, w, x, f) {
  9366. var l = Math.min(f && f.r || 0, w, x), T = l + 6, O = f && f.anchorX;
  9367. f = f && f.anchorY || 0;
  9368. var R = U(B, j, w, x, { r: l });
  9369. return V(O) && (B + O >= w ? f > j + T && f < j + x - T ? R.splice(3, 1, ["L", B + w, f - 6], ["L", B + w + 6, f], ["L", B + w, f + 6], ["L", B + w, j + x - l]) : R.splice(3, 1, ["L", B + w, x / 2], ["L", O, f], ["L", B + w, x / 2], ["L", B + w, j + x - l]) : 0 >= B + O ? f > j + T && f < j + x - T ? R.splice(7, 1, ["L", B, f + 6], ["L", B - 6, f], ["L", B, f - 6], ["L", B, j + l]) : R.splice(7, 1, ["L", B, x / 2], ["L", O, f], ["L", B, x / 2], ["L", B, j + l]) : f && f > x && O > B + T && O < B + w - T ? R.splice(5, 1, ["L", O + 6, j + x], ["L", O, j + x + 6], ["L", O - 6, j + x], ["L", B + l, j + x]) : f && 0 > f && O > B + T && O < B + w - T && R.splice(1, 1, ["L", O - 6, j], ["L", O, j - 6], ["L", O + 6, j], ["L", w - l, j])), R;
  9370. }, circle: function(B, j, w, x) {
  9371. return N(B + w / 2, j + x / 2, w / 2, x / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  9372. }, diamond: function(B, j, w, x) {
  9373. return [["M", B + w / 2, j], ["L", B + w, j + x / 2], ["L", B + w / 2, j + x], ["L", B, j + x / 2], ["Z"]];
  9374. }, rect: _, roundedRect: U, square: _, triangle: function(B, j, w, x) {
  9375. return [["M", B + w / 2, j], ["L", B + w, j + x], ["L", B, j + x], ["Z"]];
  9376. }, "triangle-down": function(B, j, w, x) {
  9377. return [["M", B, j], ["L", B + w, j], ["L", B + w / 2, j + x], ["Z"]];
  9378. } };
  9379. }
  9380. ), C(o, "Core/Renderer/SVG/TextBuilder.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Globals.js"], o["Core/Utilities.js"]], function(y, N, _) {
  9381. var U = N.doc, G = N.SVG_NS, V = N.win, F = _.attr, B = _.isString, j = _.objectEach, w = _.pick;
  9382. return function() {
  9383. function x(f) {
  9384. var l = f.styles;
  9385. this.renderer = f.renderer, this.svgElement = f, this.width = f.textWidth, this.textLineHeight = l && l.lineHeight, this.textOutline = l && l.textOutline, this.ellipsis = !(!l || l.textOverflow !== "ellipsis"), this.noWrap = !(!l || l.whiteSpace !== "nowrap"), this.fontSize = l && l.fontSize;
  9386. }
  9387. return x.prototype.buildSVG = function() {
  9388. var f = this.svgElement, l = f.element, T = f.renderer, O = w(f.textStr, "").toString(), R = O.indexOf("<") !== -1, k = l.childNodes;
  9389. T = this.width && !f.added && T.box;
  9390. var b = /<br.*?>/g, S = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  9391. if (S !== f.textCache) {
  9392. for (f.textCache = S, delete f.actualWidth, S = k.length; S--; )
  9393. l.removeChild(k[S]);
  9394. R || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (T && T.appendChild(l), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(f.element), this.modifyDOM(), this.ellipsis && (l.textContent || "").indexOf("…") !== -1 && f.attr(
  9395. "title",
  9396. this.unescapeEntities(f.textStr || "", ["&lt;", "&gt;"])
  9397. ), T && T.removeChild(l)) : l.appendChild(U.createTextNode(this.unescapeEntities(O))), B(this.textOutline) && f.applyTextOutline && f.applyTextOutline(this.textOutline);
  9398. }
  9399. }, x.prototype.modifyDOM = function() {
  9400. var f = this, l = this.svgElement, T = F(l.element, "x");
  9401. l.firstLineMetrics = void 0;
  9402. for (var O; (O = l.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  9403. l.element.removeChild(O);
  9404. [].forEach.call(l.element.querySelectorAll("tspan.highcharts-br"), function(S, v) {
  9405. S.nextSibling && S.previousSibling && (v === 0 && S.previousSibling.nodeType === 1 && (l.firstLineMetrics = l.renderer.fontMetrics(void 0, S.previousSibling)), F(S, { dy: f.getLineHeight(S.nextSibling), x: T }));
  9406. });
  9407. var R = this.width || 0;
  9408. if (R) {
  9409. var k = function(S, v) {
  9410. var h = S.textContent || "", c = h.replace(/([^\^])-/g, "$1- ").split(" "), u = !f.noWrap && (1 < c.length || 1 < l.element.childNodes.length), i = f.getLineHeight(v), p = 0, a = l.actualWidth;
  9411. if (f.ellipsis)
  9412. h && f.truncate(S, h, void 0, 0, Math.max(0, R - parseInt(f.fontSize || 12, 10)), function(t, s) {
  9413. return t.substring(
  9414. 0,
  9415. s
  9416. ) + "…";
  9417. });
  9418. else if (u) {
  9419. for (h = [], u = []; v.firstChild && v.firstChild !== S; )
  9420. u.push(v.firstChild), v.removeChild(v.firstChild);
  9421. for (; c.length; )
  9422. c.length && !f.noWrap && 0 < p && (h.push(S.textContent || ""), S.textContent = c.join(" ").replace(/- /g, "-")), f.truncate(S, void 0, c, p === 0 && a || 0, R, function(t, s) {
  9423. return c.slice(0, s).join(" ").replace(/- /g, "-");
  9424. }), a = l.actualWidth, p++;
  9425. u.forEach(function(t) {
  9426. v.insertBefore(t, S);
  9427. }), h.forEach(function(t) {
  9428. v.insertBefore(U.createTextNode(t), S), t = U.createElementNS(G, "tspan"), t.textContent = "​", F(t, { dy: i, x: T }), v.insertBefore(t, S);
  9429. });
  9430. }
  9431. }, b = function(S) {
  9432. [].slice.call(S.childNodes).forEach(function(v) {
  9433. v.nodeType === V.Node.TEXT_NODE ? k(v, S) : (v.className.baseVal.indexOf("highcharts-br") !== -1 && (l.actualWidth = 0), b(v));
  9434. });
  9435. };
  9436. b(l.element);
  9437. }
  9438. }, x.prototype.getLineHeight = function(f) {
  9439. var l;
  9440. return f = f.nodeType === V.Node.TEXT_NODE ? f.parentElement : f, this.renderer.styledMode || (l = f && /(px|em)$/.test(f.style.fontSize) ? f.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  9441. this.textLineHeight.toString(),
  9442. 10
  9443. ) : this.renderer.fontMetrics(l, f || this.svgElement.element).h;
  9444. }, x.prototype.modifyTree = function(f) {
  9445. var l = this, T = function(O, R) {
  9446. var k = O.attributes;
  9447. k = k === void 0 ? {} : k;
  9448. var b = O.children, S = O.tagName, v = l.renderer.styledMode;
  9449. S === "b" || S === "strong" ? v ? k.class = "highcharts-strong" : k.style = "font-weight:bold;" + (k.style || "") : (S === "i" || S === "em") && (v ? k.class = "highcharts-emphasized" : k.style = "font-style:italic;" + (k.style || "")), B(k.style) && (k.style = k.style.replace(/(;| |^)color([ :])/, "$1fill$2")), S === "br" ? (k.class = "highcharts-br", O.textContent = "​", (R = f[R + 1]) && R.textContent && (R.textContent = R.textContent.replace(/^ +/gm, ""))) : S === "a" && b && b.some(function(h) {
  9450. return h.tagName === "#text";
  9451. }) && (O.children = [{ children: b, tagName: "tspan" }]), S !== "#text" && S !== "a" && (O.tagName = "tspan"), O.attributes = k, b && b.filter(function(h) {
  9452. return h.tagName !== "#text";
  9453. }).forEach(T);
  9454. };
  9455. f.forEach(T);
  9456. }, x.prototype.truncate = function(f, l, T, O, R, k) {
  9457. var b = this.svgElement, S = b.renderer, v = b.rotation, h = [], c = T ? 1 : 0, u = (l || T || "").length, i = u, p, a = function(s, n) {
  9458. n = n || s;
  9459. var P = f.parentNode;
  9460. if (P && typeof h[n] > "u")
  9461. if (P.getSubStringLength)
  9462. try {
  9463. h[n] = O + P.getSubStringLength(0, T ? n + 1 : n);
  9464. } catch {
  9465. }
  9466. else
  9467. S.getSpanWidth && (f.textContent = k(l || T, s), h[n] = O + S.getSpanWidth(b, f));
  9468. return h[n];
  9469. };
  9470. b.rotation = 0;
  9471. var t = a(f.textContent.length);
  9472. if (O + t > R) {
  9473. for (; c <= u; )
  9474. i = Math.ceil((c + u) / 2), T && (p = k(T, i)), t = a(i, p && p.length - 1), c === u ? c = u + 1 : t > R ? u = i - 1 : c = i;
  9475. u === 0 ? f.textContent = "" : l && u === l.length - 1 || (f.textContent = p || k(l || T, i));
  9476. }
  9477. T && T.splice(0, i), b.actualWidth = t, b.rotation = v;
  9478. }, x.prototype.unescapeEntities = function(f, l) {
  9479. return j(this.renderer.escapes, function(T, O) {
  9480. l && l.indexOf(T) !== -1 || (f = f.toString().replace(new RegExp(T, "g"), O));
  9481. }), f;
  9482. }, x;
  9483. }();
  9484. }), C(o, "Core/Renderer/SVG/SVGRenderer.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Renderer/RendererRegistry.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Renderer/SVG/SVGLabel.js"], o["Core/Renderer/SVG/Symbols.js"], o["Core/Renderer/SVG/TextBuilder.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V, F, B, j) {
  9485. var w = _.charts, x = _.deg2rad, f = _.doc, l = _.isFirefox, T = _.isMS, O = _.isWebKit, R = _.noop, k = _.SVG_NS, b = _.symbolSizes, S = _.win, v = j.addEvent, h = j.attr, c = j.createElement, u = j.css, i = j.defined, p = j.destroyObjectProperties, a = j.extend, t = j.isArray, s = j.isNumber, n = j.isObject, P = j.isString, D = j.merge, I = j.pick, W = j.pInt, E = j.uniqueKey, X;
  9486. return _ = function() {
  9487. function g(m, L, z, $, Q, A, H) {
  9488. 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(m, L, z, $, Q, A, H);
  9489. }
  9490. return g.prototype.init = function(m, L, z, $, Q, A, H) {
  9491. var Y = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), Z = Y.element;
  9492. H || Y.css(this.getStyle($)), m.appendChild(Z), h(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && h(Z, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = Z, this.boxWrapper = Y, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(f.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = A, this.forExport = Q, this.styledMode = H, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, z, !1);
  9493. var q;
  9494. l && m.getBoundingClientRect && (L = function() {
  9495. u(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), u(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  9496. }, L(), this.unSubPixelFix = v(S, "resize", L));
  9497. }, g.prototype.definition = function(m) {
  9498. return new y([m]).addToDOM(this.defs.element);
  9499. }, g.prototype.getReferenceURL = function() {
  9500. if ((l || O) && f.getElementsByTagName("base").length) {
  9501. if (!i(X)) {
  9502. var m = E();
  9503. m = new y([{ tagName: "svg", attributes: { width: 8, height: 8 }, children: [{ tagName: "defs", children: [{ tagName: "clipPath", attributes: { id: m }, children: [{ tagName: "rect", attributes: { width: 4, height: 4 } }] }] }, { tagName: "rect", attributes: { id: "hitme", width: 8, height: 8, "clip-path": "url(#" + m + ")", fill: "rgba(0,0,0,0.001)" } }] }]).addToDOM(f.body), u(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  9504. var L = f.elementFromPoint(6, 6);
  9505. X = (L && L.id) === "hitme", f.body.removeChild(m);
  9506. }
  9507. if (X)
  9508. return S.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  9509. }
  9510. return "";
  9511. }, g.prototype.getStyle = function(m) {
  9512. return this.style = a({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  9513. }, g.prototype.setStyle = function(m) {
  9514. this.boxWrapper.css(this.getStyle(m));
  9515. }, g.prototype.isHidden = function() {
  9516. return !this.boxWrapper.getBBox().width;
  9517. }, g.prototype.destroy = function() {
  9518. var m = this.defs;
  9519. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), p(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  9520. }, g.prototype.createElement = function(m) {
  9521. var L = new this.Element();
  9522. return L.init(this, m), L;
  9523. }, g.prototype.getRadialAttr = function(m, L) {
  9524. return { cx: m[0] - m[2] / 2 + (L.cx || 0) * m[2], cy: m[1] - m[2] / 2 + (L.cy || 0) * m[2], r: (L.r || 0) * m[2] };
  9525. }, g.prototype.buildText = function(m) {
  9526. new B(m).buildSVG();
  9527. }, g.prototype.getContrast = function(m) {
  9528. return m = N.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  9529. }, g.prototype.button = function(m, L, z, $, Q, A, H, Y, Z, q) {
  9530. var it = this.label(m, L, z, Z, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? D(Q) : {};
  9531. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(D({ padding: 8, r: 2 }, rt)), !et) {
  9532. rt = D({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  9533. var ct = rt.style;
  9534. delete rt.style, A = D(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(A || {}));
  9535. var gt = A.style;
  9536. delete A.style, H = D(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(H || {}));
  9537. var dt = H.style;
  9538. delete H.style, Y = D(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(Y || {}));
  9539. var ht = Y.style;
  9540. delete Y.style;
  9541. }
  9542. return v(it.element, T ? "mouseover" : "mouseenter", function() {
  9543. nt !== 3 && it.setState(1);
  9544. }), v(it.element, T ? "mouseout" : "mouseleave", function() {
  9545. nt !== 3 && it.setState(nt);
  9546. }), it.setState = function(at) {
  9547. at !== 1 && (it.state = nt = at), it.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-" + ["normal", "hover", "pressed", "disabled"][at || 0]), et || it.attr([rt, A, H, Y][at || 0]).css([ct, gt, dt, ht][at || 0]);
  9548. }, et || it.attr(rt).css(a({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  9549. return at.stopPropagation();
  9550. }).on("click", function(at) {
  9551. nt !== 3 && $.call(it, at);
  9552. });
  9553. }, g.prototype.crispLine = function(m, L, z) {
  9554. z === void 0 && (z = "round");
  9555. var $ = m[0], Q = m[1];
  9556. return i($[1]) && $[1] === Q[1] && ($[1] = Q[1] = Math[z]($[1]) - L % 2 / 2), i($[2]) && $[2] === Q[2] && ($[2] = Q[2] = Math[z]($[2]) + L % 2 / 2), m;
  9557. }, g.prototype.path = function(m) {
  9558. var L = this.styledMode ? {} : { fill: "none" };
  9559. return t(m) ? L.d = m : n(m) && a(L, m), this.createElement("path").attr(L);
  9560. }, g.prototype.circle = function(m, L, z) {
  9561. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: z }, L = this.createElement("circle"), L.xSetter = L.ySetter = function($, Q, A) {
  9562. A.setAttribute("c" + Q, $);
  9563. }, L.attr(m);
  9564. }, g.prototype.arc = function(m, L, z, $, Q, A) {
  9565. return n(m) ? ($ = m, L = $.y, z = $.r, m = $.x) : $ = { innerR: $, start: Q, end: A }, m = this.symbol("arc", m, L, z, z, $), m.r = z, m;
  9566. }, g.prototype.rect = function(m, L, z, $, Q, A) {
  9567. Q = n(m) ? m.r : Q;
  9568. var H = this.createElement("rect");
  9569. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(z, 0), height: Math.max($, 0) }, this.styledMode || (typeof A < "u" && (m["stroke-width"] = A, m = H.crisp(m)), m.fill = "none"), Q && (m.r = Q), H.rSetter = function(Y, Z, q) {
  9570. H.r = Y, h(q, { rx: Y, ry: Y });
  9571. }, H.rGetter = function() {
  9572. return H.r || 0;
  9573. }, H.attr(m);
  9574. }, g.prototype.setSize = function(m, L, z) {
  9575. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  9576. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  9577. }, duration: I(
  9578. z,
  9579. !0
  9580. ) ? void 0 : 0 }), this.alignElements();
  9581. }, g.prototype.g = function(m) {
  9582. var L = this.createElement("g");
  9583. return m ? L.attr({ class: "highcharts-" + m }) : L;
  9584. }, g.prototype.image = function(m, L, z, $, Q, A) {
  9585. var H = { preserveAspectRatio: "none" }, Y = function(q, it) {
  9586. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  9587. };
  9588. s(L) && (H.x = L), s(z) && (H.y = z), s($) && (H.width = $), s(Q) && (H.height = Q);
  9589. var Z = this.createElement("image").attr(H);
  9590. return L = function(q) {
  9591. Y(Z.element, m), A.call(Z, q);
  9592. }, A ? (Y(
  9593. Z.element,
  9594. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  9595. ), z = new S.Image(), v(z, "load", L), z.src = m, z.complete && L({})) : Y(Z.element, m), Z;
  9596. }, g.prototype.symbol = function(m, L, z, $, Q, A) {
  9597. var H = this, Y = /^url\((.*?)\)$/, Z = Y.test(m), q = !Z && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  9598. if (it) {
  9599. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(z || 0), $ || 0, Q || 0, A));
  9600. var nt = this.path(et);
  9601. H.styledMode || nt.attr("fill", "none"), a(nt, { symbolName: q || void 0, x: L, y: z, width: $, height: Q }), A && a(nt, A);
  9602. } else if (Z) {
  9603. var rt = m.match(Y)[1], ct = nt = this.image(rt);
  9604. ct.imgwidth = I(b[rt] && b[rt].width, A && A.width), ct.imgheight = I(b[rt] && b[rt].height, A && A.height);
  9605. var gt = function(dt) {
  9606. return dt.attr({ width: dt.width, height: dt.height });
  9607. };
  9608. ["width", "height"].forEach(function(dt) {
  9609. ct[dt + "Setter"] = function(ht, at) {
  9610. var J = this["img" + at];
  9611. this[at] = ht, i(J) && (A && A.backgroundSize === "within" && this.width && this.height && (J = Math.round(J * Math.min(this.width / this.imgwidth, this.height / this.imgheight))), this.element && this.element.setAttribute(at, J), this.alignByTranslate || (ht = ((this[at] || 0) - J) / 2, this.attr(at === "width" ? { translateX: ht } : { translateY: ht })));
  9612. };
  9613. }), i(L) && ct.attr({ x: L, y: z }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  9614. var dt = w[H.chartIndex];
  9615. this.width === 0 && (u(this, { position: "absolute", top: "-999em" }), f.body.appendChild(this)), b[rt] = { width: this.width, height: this.height }, ct.imgwidth = this.width, ct.imgheight = this.height, ct.element && gt(ct), this.parentNode && this.parentNode.removeChild(this), H.imgCount--, !H.imgCount && dt && !dt.hasLoaded && dt.onload();
  9616. }, src: rt }), this.imgCount++);
  9617. }
  9618. return nt;
  9619. }, g.prototype.clipRect = function(m, L, z, $) {
  9620. var Q = E() + "-", A = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  9621. return m = this.rect(m, L, z, $, 0).add(A), m.id = Q, m.clipPath = A, m.count = 0, m;
  9622. }, g.prototype.text = function(m, L, z, $) {
  9623. var Q = {};
  9624. return $ && (this.allowHTML || !this.forExport) ? this.html(m, L, z) : (Q.x = Math.round(L || 0), z && (Q.y = Math.round(z)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!$ || this.forExport && !this.allowHTML) && (m.xSetter = function(A, H, Y) {
  9625. for (var Z = Y.getElementsByTagName("tspan"), q = Y.getAttribute(H), it = 0, et; it < Z.length; it++)
  9626. et = Z[it], et.getAttribute(H) === q && et.setAttribute(H, A);
  9627. Y.setAttribute(H, A);
  9628. }), m);
  9629. }, g.prototype.fontMetrics = function(m, L) {
  9630. return m = !this.styledMode && /px/.test(m) || !S.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && G.prototype.getStyle.call(L, "font-size"), m = /px/.test(m) ? W(m) : 12, L = 24 > m ? m + 3 : Math.round(1.2 * m), { h: L, b: Math.round(0.8 * L), f: m };
  9631. }, g.prototype.rotCorr = function(m, L, z) {
  9632. var $ = m;
  9633. return L && z && ($ = Math.max($ * Math.cos(L * x), 4)), { x: -m / 3 * Math.sin(L * x), y: $ };
  9634. }, g.prototype.pathToSegments = function(m) {
  9635. for (var L = [], z = [], $ = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  9636. P(z[0]) && s(m[Q]) && z.length === $[z[0].toUpperCase()] && m.splice(Q, 0, z[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (z.length && L.push(z.slice(0)), z.length = 0), z.push(m[Q]);
  9637. return L.push(z.slice(0)), L;
  9638. }, g.prototype.label = function(m, L, z, $, Q, A, H, Y, Z) {
  9639. return new V(this, m, L, z, $, Q, A, H, Y, Z);
  9640. }, g.prototype.alignElements = function() {
  9641. this.alignedObjects.forEach(function(m) {
  9642. return m.align();
  9643. });
  9644. }, g;
  9645. }(), a(_.prototype, { Element: G, SVG_NS: k, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: F, draw: R }), U.registerRendererType("svg", _, !0), _;
  9646. }), C(o, "Core/Renderer/HTML/HTMLElement.js", [o["Core/Globals.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Utilities.js"]], function(y, N, _) {
  9647. var U = this && this.__extends || function() {
  9648. var T = function(O, R) {
  9649. return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(k, b) {
  9650. k.__proto__ = b;
  9651. } || function(k, b) {
  9652. for (var S in b)
  9653. b.hasOwnProperty(S) && (k[S] = b[S]);
  9654. }, T(O, R);
  9655. };
  9656. return function(O, R) {
  9657. function k() {
  9658. this.constructor = O;
  9659. }
  9660. T(O, R), O.prototype = R === null ? Object.create(R) : (k.prototype = R.prototype, new k());
  9661. };
  9662. }(), G = y.isFirefox, V = y.isMS, F = y.isWebKit, B = y.win, j = _.css, w = _.defined, x = _.extend, f = _.pick, l = _.pInt;
  9663. return function(T) {
  9664. function O() {
  9665. return T !== null && T.apply(this, arguments) || this;
  9666. }
  9667. return U(O, T), O.compose = function(R) {
  9668. if (O.composedClasses.indexOf(R) === -1) {
  9669. O.composedClasses.push(R);
  9670. var k = O.prototype, b = R.prototype;
  9671. b.getSpanCorrection = k.getSpanCorrection, b.htmlCss = k.htmlCss, b.htmlGetBBox = k.htmlGetBBox, b.htmlUpdateTransform = k.htmlUpdateTransform, b.setSpanRotation = k.setSpanRotation;
  9672. }
  9673. return R;
  9674. }, O.prototype.getSpanCorrection = function(R, k, b) {
  9675. this.xCorr = -R * b, this.yCorr = -k;
  9676. }, O.prototype.htmlCss = function(R) {
  9677. var k = this.element.tagName === "SPAN" && R && "width" in R, b = f(k && R.width, void 0);
  9678. if (k) {
  9679. delete R.width, this.textWidth = b;
  9680. var S = !0;
  9681. }
  9682. return R && R.textOverflow === "ellipsis" && (R.whiteSpace = "nowrap", R.overflow = "hidden"), this.styles = x(this.styles, R), j(this.element, R), S && this.htmlUpdateTransform(), this;
  9683. }, O.prototype.htmlGetBBox = function() {
  9684. var R = this.element;
  9685. return { x: R.offsetLeft, y: R.offsetTop, width: R.offsetWidth, height: R.offsetHeight };
  9686. }, O.prototype.htmlUpdateTransform = function() {
  9687. if (this.added) {
  9688. var R = this.renderer, k = this.element, b = this.translateX || 0, S = this.translateY || 0, v = this.x || 0, h = this.y || 0, c = this.textAlign || "left", u = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  9689. if (i = i && i.whiteSpace, j(k, { marginLeft: b, marginTop: S }), !R.styledMode && this.shadows && this.shadows.forEach(function(P) {
  9690. j(P, { marginLeft: b + 1, marginTop: S + 1 });
  9691. }), this.inverted && [].forEach.call(k.childNodes, function(P) {
  9692. R.invertChild(P, k);
  9693. }), k.tagName === "SPAN") {
  9694. var p = this.rotation, a = this.textWidth && l(this.textWidth), t = [p, c, k.innerHTML, this.textWidth, this.textAlign].join(), s = void 0;
  9695. if (s = !1, a !== this.oldTextWidth) {
  9696. if (this.textPxLength)
  9697. var n = this.textPxLength;
  9698. else
  9699. j(k, { width: "", whiteSpace: i || "nowrap" }), n = k.offsetWidth;
  9700. (a > this.oldTextWidth || n > a) && (/[ \-]/.test(k.textContent || k.innerText) || k.style.textOverflow === "ellipsis") && (j(k, { width: n > a || p ? a + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = a, s = !0);
  9701. }
  9702. this.hasBoxWidthChanged = s, t !== this.cTT && (s = R.fontMetrics(k.style.fontSize, k).b, !w(p) || p === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(p, u, s), this.getSpanCorrection(!w(p) && this.textPxLength || k.offsetWidth, s, u, p, c)), j(k, { left: v + (this.xCorr || 0) + "px", top: h + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = p, this.oldAlign = c;
  9703. }
  9704. } else
  9705. this.alignOnAdd = !0;
  9706. }, O.prototype.setSpanRotation = function(R, k, b) {
  9707. var S = {}, v = V && !/Edge/.test(B.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : G ? "MozTransform" : B.opera ? "-o-transform" : void 0;
  9708. v && (S[v] = S.transform = "rotate(" + R + "deg)", S[v + (G ? "Origin" : "-origin")] = S.transformOrigin = 100 * k + "% " + b + "px", j(this.element, S));
  9709. }, O.composedClasses = [], O;
  9710. }(N);
  9711. }), C(
  9712. o,
  9713. "Core/Renderer/HTML/HTMLRenderer.js",
  9714. [o["Core/Renderer/HTML/AST.js"], o["Core/Renderer/SVG/SVGElement.js"], o["Core/Renderer/SVG/SVGRenderer.js"], o["Core/Utilities.js"]],
  9715. function(y, N, _, U) {
  9716. var G = this && this.__extends || function() {
  9717. var w = function(x, f) {
  9718. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, T) {
  9719. l.__proto__ = T;
  9720. } || function(l, T) {
  9721. for (var O in T)
  9722. T.hasOwnProperty(O) && (l[O] = T[O]);
  9723. }, w(x, f);
  9724. };
  9725. return function(x, f) {
  9726. function l() {
  9727. this.constructor = x;
  9728. }
  9729. w(x, f), x.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
  9730. };
  9731. }(), V = U.attr, F = U.createElement, B = U.extend, j = U.pick;
  9732. return function(w) {
  9733. function x() {
  9734. return w !== null && w.apply(this, arguments) || this;
  9735. }
  9736. return G(x, w), x.compose = function(f) {
  9737. return x.composedClasses.indexOf(f) === -1 && (x.composedClasses.push(f), f.prototype.html = x.prototype.html), f;
  9738. }, x.prototype.html = function(f, l, T) {
  9739. var O = this.createElement("span"), R = O.element, k = O.renderer, b = k.isSVG, S = function(v, h) {
  9740. ["opacity", "visibility"].forEach(function(c) {
  9741. v[c + "Setter"] = function(u, i, p) {
  9742. var a = v.div ? v.div.style : h;
  9743. N.prototype[c + "Setter"].call(this, u, i, p), a && (a[i] = u);
  9744. };
  9745. }), v.addedSetters = !0;
  9746. };
  9747. return O.textSetter = function(v) {
  9748. v !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, j(v, "")), this.textStr = v, O.doTransform = !0);
  9749. }, b && S(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(v, h) {
  9750. h === "align" ? O.alignValue = O.textAlign = v : O[h] = v, O.doTransform = !0;
  9751. }, O.afterSetters = function() {
  9752. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  9753. }, O.attr({ text: f, x: Math.round(l), y: Math.round(T) }).css({ position: "absolute" }), k.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), R.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(v) {
  9754. var h = k.box.parentNode, c = [];
  9755. if (this.parentGroup = v) {
  9756. var u = v.div;
  9757. if (!u) {
  9758. for (; v; )
  9759. c.push(v), v = v.parentGroup;
  9760. c.reverse().forEach(function(i) {
  9761. function p(n, P) {
  9762. i[P] = n, P === "translateX" ? s.left = n + "px" : s.top = n + "px", i.doTransform = !0;
  9763. }
  9764. var a = V(i.element, "class"), t = i.styles || {};
  9765. u = i.div = i.div || F("div", a ? { className: a } : void 0, {
  9766. position: "absolute",
  9767. left: (i.translateX || 0) + "px",
  9768. top: (i.translateY || 0) + "px",
  9769. display: i.display,
  9770. opacity: i.opacity,
  9771. cursor: t.cursor,
  9772. pointerEvents: t.pointerEvents,
  9773. visibility: i.visibility
  9774. }, u || h);
  9775. var s = u.style;
  9776. B(i, { classSetter: function(n) {
  9777. return function(P) {
  9778. this.element.setAttribute("class", P), n.className = P;
  9779. };
  9780. }(u), on: function() {
  9781. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  9782. }, translateXSetter: p, translateYSetter: p }), i.addedSetters || S(i);
  9783. });
  9784. }
  9785. } else
  9786. u = h;
  9787. return u.appendChild(R), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  9788. }), O;
  9789. }, x.composedClasses = [], x;
  9790. }(_);
  9791. }
  9792. ), C(o, "Core/Axis/AxisDefaults.js", [], function() {
  9793. var y;
  9794. return function(N) {
  9795. N.defaultXAxisOptions = { alignTicks: !0, allowDecimals: void 0, panningEnabled: !0, zIndex: 2, zoomEnabled: !0, dateTimeLabelFormats: { millisecond: { main: "%H:%M:%S.%L", range: !1 }, second: { main: "%H:%M:%S", range: !1 }, minute: { main: "%H:%M", range: !1 }, hour: { main: "%H:%M", range: !1 }, day: { main: "%e. %b" }, week: { main: "%e. %b" }, month: { main: "%b '%y" }, year: { main: "%Y" } }, endOnTick: !1, gridLineDashStyle: "Solid", gridZIndex: 1, labels: {
  9796. autoRotation: void 0,
  9797. autoRotationLimit: 80,
  9798. distance: void 0,
  9799. enabled: !0,
  9800. indentation: 10,
  9801. overflow: "justify",
  9802. padding: 5,
  9803. reserveSpace: void 0,
  9804. rotation: void 0,
  9805. staggerLines: 0,
  9806. step: 0,
  9807. useHTML: !1,
  9808. x: 0,
  9809. zIndex: 7,
  9810. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  9811. }, maxPadding: 0.01, minorGridLineDashStyle: "Solid", minorTickLength: 2, minorTickPosition: "outside", minPadding: 0.01, offset: void 0, opposite: !1, reversed: void 0, reversedStacks: !1, showEmpty: !0, showFirstLabel: !0, showLastLabel: !0, startOfWeek: 1, startOnTick: !1, tickLength: 10, tickPixelInterval: 100, tickmarkPlacement: "between", tickPosition: "outside", title: {
  9812. align: "middle",
  9813. rotation: 0,
  9814. useHTML: !1,
  9815. x: 0,
  9816. y: 0,
  9817. style: { color: "#666666" }
  9818. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, N.defaultYAxisOptions = { reversedStacks: !0, endOnTick: !0, maxPadding: 0.05, minPadding: 0.05, tickPixelInterval: 72, showLastLabel: !0, labels: { x: -8 }, startOnTick: !0, title: { rotation: 270, text: "Values" }, stackLabels: {
  9819. animation: {},
  9820. allowOverlap: !1,
  9821. enabled: !1,
  9822. crop: !0,
  9823. overflow: "justify",
  9824. formatter: function() {
  9825. var _ = this.axis.chart.numberFormatter;
  9826. return _(this.total, -1);
  9827. },
  9828. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  9829. }, gridLineWidth: 1, lineWidth: 0 }, N.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, N.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, N.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, N.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  9830. }(y || (y = {})), y;
  9831. }), C(o, "Core/Foundation.js", [o["Core/Utilities.js"]], function(y) {
  9832. var N = y.addEvent, _ = y.isFunction, U = y.objectEach, G = y.removeEvent, V;
  9833. return function(F) {
  9834. F.registerEventOptions = function(B, j) {
  9835. B.eventOptions = B.eventOptions || {}, U(j.events, function(w, x) {
  9836. B.eventOptions[x] !== w && (B.eventOptions[x] && (G(B, x, B.eventOptions[x]), delete B.eventOptions[x]), _(w) && (B.eventOptions[x] = w, N(B, x, w)));
  9837. });
  9838. };
  9839. }(V || (V = {})), V;
  9840. }), C(
  9841. o,
  9842. "Core/Axis/Tick.js",
  9843. [o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Utilities.js"]],
  9844. function(y, N, _) {
  9845. var U = N.deg2rad, G = _.clamp, V = _.correctFloat, F = _.defined, B = _.destroyObjectProperties, j = _.extend, w = _.fireEvent, x = _.isNumber, f = _.merge, l = _.objectEach, T = _.pick;
  9846. return N = function() {
  9847. function O(R, k, b, S, v) {
  9848. this.isNewLabel = this.isNew = !0, this.axis = R, this.pos = k, this.type = b || "", this.parameters = v || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, w(this, "init"), b || S || this.addLabel();
  9849. }
  9850. return O.prototype.addLabel = function() {
  9851. var R = this, k = R.axis, b = k.options, S = k.chart, v = k.categories, h = k.logarithmic, c = k.names, u = R.pos, i = T(R.options && R.options.labels, b.labels), p = k.tickPositions, a = u === p[0], t = u === p[p.length - 1], s = (!i.step || i.step === 1) && k.tickInterval === 1;
  9852. p = p.info;
  9853. var n = R.label, P;
  9854. if (v = this.parameters.category || (v ? T(v[u], c[u], u) : u), h && x(v) && (v = V(h.lin2log(v))), k.dateTime)
  9855. if (p)
  9856. var D = S.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && p.higherRanks[u] || p.unitName]), I = D.main;
  9857. else
  9858. x(v) && (I = k.dateTime.getXDateFormat(v, b.dateTimeLabelFormats || {}));
  9859. R.isFirst = a, R.isLast = t;
  9860. var W = {
  9861. axis: k,
  9862. chart: S,
  9863. dateTimeLabelFormat: I,
  9864. isFirst: a,
  9865. isLast: t,
  9866. pos: u,
  9867. tick: R,
  9868. tickPositionInfo: p,
  9869. value: v
  9870. };
  9871. w(this, "labelFormat", W);
  9872. var E = function(g) {
  9873. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = k.defaultLabelFormatter.call(g), y.format(i.format, g, S)) : k.defaultLabelFormatter.call(g, g);
  9874. };
  9875. b = E.call(W, W);
  9876. var X = D && D.list;
  9877. R.shortenLabel = X ? function() {
  9878. for (P = 0; P < X.length; P++)
  9879. if (j(W, { dateTimeLabelFormat: X[P] }), n.attr({ text: E.call(W, W) }), n.getBBox().width < k.getSlotWidth(R) - 2 * i.padding)
  9880. return;
  9881. n.attr({ text: "" });
  9882. } : void 0, s && k._addedPlotLB && R.moveLabel(b, i), F(n) || R.movedLabel ? n && n.textStr !== b && !s && (!n.textWidth || i.style.width || n.styles.width || n.css({ width: null }), n.attr({ text: b }), n.textPxLength = n.getBBox().width) : (R.label = n = R.createLabel({ x: 0, y: 0 }, b, i), R.rotation = 0);
  9883. }, O.prototype.createLabel = function(R, k, b) {
  9884. var S = this.axis, v = S.chart;
  9885. return (R = F(k) && b.enabled ? v.renderer.text(k, R.x, R.y, b.useHTML).add(S.labelGroup) : null) && (v.styledMode || R.css(f(b.style)), R.textPxLength = R.getBBox().width), R;
  9886. }, O.prototype.destroy = function() {
  9887. B(
  9888. this,
  9889. this.axis
  9890. );
  9891. }, O.prototype.getPosition = function(R, k, b, S) {
  9892. var v = this.axis, h = v.chart, c = S && h.oldChartHeight || h.chartHeight;
  9893. return R = { x: R ? V(v.translate(k + b, null, null, S) + v.transB) : v.left + v.offset + (v.opposite ? (S && h.oldChartWidth || h.chartWidth) - v.right - v.left : 0), y: R ? c - v.bottom + v.offset - (v.opposite ? v.height : 0) : V(c - v.translate(k + b, null, null, S) - v.transB) }, R.y = G(R.y, -1e5, 1e5), w(this, "afterGetPosition", { pos: R }), R;
  9894. }, O.prototype.getLabelPosition = function(R, k, b, S, v, h, c, u) {
  9895. var i = this.axis, p = i.transA, a = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, s = i.tickRotCorr || { x: 0, y: 0 }, n = S || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), P = {}, D = v.y;
  9896. return F(D) || (D = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? s.y + 8 : Math.cos(b.rotation * U) * (s.y - b.getBBox(!1, 0).height / 2)), R = R + v.x + n + s.x - (h && S ? h * p * (a ? -1 : 1) : 0), k = k + D - (h && !S ? h * p * (a ? 1 : -1) : 0), t && (b = c / (u || 1) % t, i.opposite && (b = t - b - 1), k += i.labelOffset / t * b), P.x = R, P.y = Math.round(k), w(this, "afterGetLabelPosition", { pos: P, tickmarkOffset: h, index: c }), P;
  9897. }, O.prototype.getLabelSize = function() {
  9898. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  9899. }, O.prototype.getMarkPath = function(R, k, b, S, v, h) {
  9900. return h.crispLine([["M", R, k], ["L", R + (v ? 0 : -b), k + (v ? b : 0)]], S);
  9901. }, O.prototype.handleOverflow = function(R) {
  9902. var k = this.axis, b = k.options.labels, S = R.x, v = k.chart.chartWidth, h = k.chart.spacing, c = T(k.labelLeft, Math.min(k.pos, h[3]));
  9903. h = T(k.labelRight, Math.max(k.isRadial ? 0 : k.pos + k.len, v - h[1]));
  9904. var u = this.label, i = this.rotation, p = { left: 0, center: 0.5, right: 1 }[k.labelAlign || u.attr("align")], a = u.getBBox().width, t = k.getSlotWidth(this), s = {}, n = t, P = 1, D;
  9905. i || b.overflow !== "justify" ? 0 > i && S - p * a < c ? D = Math.round(S / Math.cos(i * U) - c) : 0 < i && S + p * a > h && (D = Math.round((v - S) / Math.cos(i * U))) : (v = S + (1 - p) * a, S - p * a < c ? n = R.x + n * (1 - p) - c : v > h && (n = h - R.x + n * p, P = -1), n = Math.min(t, n), n < t && k.labelAlign === "center" && (R.x += P * (t - n - p * (t - Math.min(a, n)))), (a > n || k.autoRotation && (u.styles || {}).width) && (D = n)), D && (this.shortenLabel ? this.shortenLabel() : (s.width = Math.floor(D) + "px", (b.style || {}).textOverflow || (s.textOverflow = "ellipsis"), u.css(s)));
  9906. }, O.prototype.moveLabel = function(R, k) {
  9907. var b = this, S = b.label, v = b.axis, h = v.reversed, c = !1;
  9908. if (S && S.textStr === R ? (b.movedLabel = S, c = !0, delete b.label) : l(v.ticks, function(i) {
  9909. c || i.isNew || i === b || !i.label || i.label.textStr !== R || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  9910. }), !c && (b.labelPos || S)) {
  9911. var u = b.labelPos || S.xy;
  9912. S = v.horiz ? h ? 0 : v.width + v.left : u.x, v = v.horiz ? u.y : h ? v.width + v.left : 0, b.movedLabel = b.createLabel({ x: S, y: v }, R, k), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  9913. }
  9914. }, O.prototype.render = function(R, k, b) {
  9915. var S = this.axis, v = S.horiz, h = this.pos, c = T(this.tickmarkOffset, S.tickmarkOffset);
  9916. h = this.getPosition(v, h, c, k), c = h.x;
  9917. var u = h.y;
  9918. S = v && c === S.pos + S.len || !v && u === S.pos ? -1 : 1, v = T(b, this.label && this.label.newOpacity, 1), b = T(b, 1), this.isActive = !0, this.renderGridLine(k, b, S), this.renderMark(h, b, S), this.renderLabel(h, k, v, R), this.isNew = !1, w(this, "afterRender");
  9919. }, O.prototype.renderGridLine = function(R, k, b) {
  9920. var S = this.axis, v = S.options, h = {}, c = this.pos, u = this.type, i = T(
  9921. this.tickmarkOffset,
  9922. S.tickmarkOffset
  9923. ), p = S.chart.renderer, a = this.gridLine, t = v.gridLineWidth, s = v.gridLineColor, n = v.gridLineDashStyle;
  9924. this.type === "minor" && (t = v.minorGridLineWidth, s = v.minorGridLineColor, n = v.minorGridLineDashStyle), a || (S.chart.styledMode || (h.stroke = s, h["stroke-width"] = t || 0, h.dashstyle = n), u || (h.zIndex = 1), R && (k = 0), this.gridLine = a = p.path().attr(h).addClass("highcharts-" + (u ? u + "-" : "") + "grid-line").add(S.gridGroup)), a && (b = S.getPlotLinePath({ value: c + i, lineWidth: a.strokeWidth() * b, force: "pass", old: R })) && a[R || this.isNew ? "attr" : "animate"]({ d: b, opacity: k });
  9925. }, O.prototype.renderMark = function(R, k, b) {
  9926. var S = this.axis, v = S.options, h = S.chart.renderer, c = this.type, u = S.tickSize(c ? c + "Tick" : "tick"), i = R.x;
  9927. R = R.y;
  9928. var p = T(v[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && S.isXAxis ? 1 : 0);
  9929. v = v[c !== "minor" ? "tickColor" : "minorTickColor"];
  9930. var a = this.mark, t = !a;
  9931. u && (S.opposite && (u[0] = -u[0]), a || (this.mark = a = h.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(S.axisGroup), S.chart.styledMode || a.attr({ stroke: v, "stroke-width": p })), a[t ? "attr" : "animate"]({ d: this.getMarkPath(
  9932. i,
  9933. R,
  9934. u[0],
  9935. a.strokeWidth() * b,
  9936. S.horiz,
  9937. h
  9938. ), opacity: k }));
  9939. }, O.prototype.renderLabel = function(R, k, b, S) {
  9940. var v = this.axis, h = v.horiz, c = v.options, u = this.label, i = c.labels, p = i.step;
  9941. v = T(this.tickmarkOffset, v.tickmarkOffset);
  9942. var a = R.x;
  9943. R = R.y;
  9944. var t = !0;
  9945. u && x(a) && (u.xy = R = this.getLabelPosition(a, R, u, h, i, v, S, p), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !h || i.step || i.rotation || k || b === 0 || this.handleOverflow(R), p && S % p && (t = !1), t && x(R.y) ? (R.opacity = b, u[this.isNewLabel ? "attr" : "animate"](R), this.isNewLabel = !1) : (u.attr("y", -9999), this.isNewLabel = !0));
  9946. }, O.prototype.replaceMovedLabel = function() {
  9947. var R = this.label, k = this.axis, b = k.reversed;
  9948. if (R && !this.isNew) {
  9949. var S = k.horiz ? b ? k.left : k.width + k.left : R.xy.x;
  9950. b = k.horiz ? R.xy.y : b ? k.width + k.top : k.top, R.animate({ x: S, y: b, opacity: 0 }, void 0, R.destroy), delete this.label;
  9951. }
  9952. k.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  9953. }, O;
  9954. }(), N;
  9955. }
  9956. ), C(o, "Core/Axis/Axis.js", [
  9957. o["Core/Animation/AnimationUtilities.js"],
  9958. o["Core/Axis/AxisDefaults.js"],
  9959. o["Core/Color/Color.js"],
  9960. o["Core/DefaultOptions.js"],
  9961. o["Core/Foundation.js"],
  9962. o["Core/Globals.js"],
  9963. o["Core/Axis/Tick.js"],
  9964. o["Core/Utilities.js"]
  9965. ], function(y, N, _, U, G, V, F, B) {
  9966. var j = y.animObject, w = U.defaultOptions, x = G.registerEventOptions, f = V.deg2rad, l = B.arrayMax, T = B.arrayMin, O = B.clamp, R = B.correctFloat, k = B.defined, b = B.destroyObjectProperties, S = B.erase, v = B.error, h = B.extend, c = B.fireEvent, u = B.getMagnitude, i = B.isArray, p = B.isNumber, a = B.isString, t = B.merge, s = B.normalizeTickInterval, n = B.objectEach, P = B.pick, D = B.relativeLength, I = B.removeEvent, W = B.splat, E = B.syncTimeout;
  9967. return y = function() {
  9968. function X(g, m) {
  9969. 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.categories = this.bottom = this.alternateBands = void 0, this.init(g, m);
  9970. }
  9971. return X.prototype.init = function(g, m) {
  9972. var L = m.isX;
  9973. this.chart = g, this.horiz = g.inverted && !this.isZAxis ? !L : L, this.isXAxis = L, this.coll = this.coll || (L ? "xAxis" : "yAxis"), c(this, "init", { userOptions: m }), this.opposite = P(m.opposite, this.opposite), this.side = P(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  9974. var z = this.options, $ = z.labels, Q = z.type;
  9975. this.userOptions = m, this.minPixelPadding = 0, this.reversed = P(z.reversed, this.reversed), this.visible = z.visible, this.zoomEnabled = z.zoomEnabled, this.hasNames = Q === "category" || z.categories === !0, this.categories = z.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = k(z.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = z.minRange || z.maxZoom, this.range = z.range, this.offset = z.offset || 0, this.min = this.max = null, m = P(z.crosshair, W(g.options.tooltip.crosshairs)[L ? 0 : 1]), this.crosshair = m === !0 ? {} : m, g.axes.indexOf(this) === -1 && (L ? g.axes.splice(g.xAxis.length, 0, this) : g.axes.push(this), g[this.coll].push(this)), this.series = this.series || [], g.inverted && !this.isZAxis && L && typeof this.reversed > "u" && (this.reversed = !0), this.labelRotation = p($.rotation) ? $.rotation : void 0, x(this, z), c(this, "afterInit");
  9976. }, X.prototype.setOptions = function(g) {
  9977. this.options = t(N.defaultXAxisOptions, this.coll === "yAxis" && N.defaultYAxisOptions, [N.defaultTopAxisOptions, N.defaultRightAxisOptions, N.defaultBottomAxisOptions, N.defaultLeftAxisOptions][this.side], t(w[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  9978. }, X.prototype.defaultLabelFormatter = function(g) {
  9979. var m = this.axis;
  9980. g = this.chart.numberFormatter;
  9981. var L = p(this.value) ? this.value : NaN, z = m.chart.time, $ = this.dateTimeLabelFormat, Q = w.lang, A = Q.numericSymbols;
  9982. Q = Q.numericSymbolMagnitude || 1e3;
  9983. var H = m.logarithmic ? Math.abs(L) : m.tickInterval, Y = A && A.length;
  9984. if (m.categories)
  9985. var Z = "" + this.value;
  9986. else if ($)
  9987. Z = z.dateFormat($, L);
  9988. else if (Y && 1e3 <= H)
  9989. for (; Y-- && typeof Z > "u"; )
  9990. m = Math.pow(Q, Y + 1), H >= m && 10 * L % m === 0 && A[Y] !== null && L !== 0 && (Z = g(L / m, -1) + A[Y]);
  9991. return typeof Z > "u" && (Z = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), Z;
  9992. }, X.prototype.getSeriesExtremes = function() {
  9993. var g = this, m = g.chart, L;
  9994. c(this, "getSeriesExtremes", null, function() {
  9995. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(z) {
  9996. if (z.visible || !m.options.chart.ignoreHiddenSeries) {
  9997. var $ = z.options, Q = $.threshold;
  9998. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  9999. if ($ = z.xData, $.length) {
  10000. $ = g.logarithmic ? $.filter(g.validatePositiveValue) : $, L = z.getXExtremes($);
  10001. var A = L.min, H = L.max;
  10002. p(A) || A instanceof Date || ($ = $.filter(p), L = z.getXExtremes($), A = L.min, H = L.max), $.length && (g.dataMin = Math.min(P(g.dataMin, A), A), g.dataMax = Math.max(P(g.dataMax, H), H));
  10003. }
  10004. } else
  10005. z = z.applyExtremes(), p(z.dataMin) && (A = z.dataMin, g.dataMin = Math.min(P(g.dataMin, A), A)), p(z.dataMax) && (H = z.dataMax, g.dataMax = Math.max(P(g.dataMax, H), H)), k(Q) && (g.threshold = Q), (!$.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  10006. }
  10007. });
  10008. }), c(this, "afterGetSeriesExtremes");
  10009. }, X.prototype.translate = function(g, m, L, z, $, Q) {
  10010. var A = this.linkedParent || this, H = z && A.old ? A.old.min : A.min, Y = A.minPixelPadding;
  10011. $ = (A.isOrdinal || A.brokenAxis && A.brokenAxis.hasBreaks || A.logarithmic && $) && A.lin2val;
  10012. var Z = 1, q = 0;
  10013. return z = z && A.old ? A.old.transA : A.transA, z || (z = A.transA), L && (Z *= -1, q = A.len), A.reversed && (Z *= -1, q -= Z * (A.sector || A.len)), m ? (g = (g * Z + q - Y) / z + H, $ && (g = A.lin2val(g))) : ($ && (g = A.val2lin(g)), g = p(H) ? Z * (g - H) * z + q + Z * Y + (p(Q) ? z * Q : 0) : void 0), g;
  10014. }, X.prototype.toPixels = function(g, m) {
  10015. return this.translate(
  10016. g,
  10017. !1,
  10018. !this.horiz,
  10019. null,
  10020. !0
  10021. ) + (m ? 0 : this.pos);
  10022. }, X.prototype.toValue = function(g, m) {
  10023. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  10024. }, X.prototype.getPlotLinePath = function(g) {
  10025. function m(at, J, tt) {
  10026. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : ht = !0), at;
  10027. }
  10028. var L = this, z = L.chart, $ = L.left, Q = L.top, A = g.old, H = g.value, Y = g.lineWidth, Z = A && z.oldChartHeight || z.chartHeight, q = A && z.oldChartWidth || z.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, ht;
  10029. return g = {
  10030. value: H,
  10031. lineWidth: Y,
  10032. old: A,
  10033. force: nt,
  10034. acrossPanes: g.acrossPanes,
  10035. translatedValue: et
  10036. }, c(this, "getPlotLinePath", g, function(at) {
  10037. et = P(et, L.translate(H, null, null, A)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round(Z - et - it), p(et) ? L.horiz ? (ct = Q, dt = Z - L.bottom, rt = gt = m(rt, $, $ + L.width)) : (rt = $, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (ht = !0, nt = !1), at.path = ht && !nt ? null : z.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], Y || 1);
  10038. }), g.path;
  10039. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  10040. var z = R(Math.floor(m / g) * g);
  10041. L = R(Math.ceil(L / g) * g);
  10042. var $ = [], Q;
  10043. if (R(z + g) === z && (Q = 20), this.single)
  10044. return [m];
  10045. for (m = z; m <= L && ($.push(m), m = R(m + g, Q), m !== A); )
  10046. var A = m;
  10047. return $;
  10048. }, X.prototype.getMinorTickInterval = function() {
  10049. var g = this.options;
  10050. return g.minorTicks === !0 ? P(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  10051. }, X.prototype.getMinorTickPositions = function() {
  10052. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, z = this.pointRangePadding || 0, $ = this.min - z;
  10053. z = this.max + z;
  10054. var Q = z - $, A = [];
  10055. if (Q && Q / L < this.len / 3) {
  10056. var H = this.logarithmic;
  10057. if (H)
  10058. this.paddedTicks.forEach(function(Y, Z, q) {
  10059. Z && A.push.apply(
  10060. A,
  10061. H.getLogTickPositions(L, q[Z - 1], q[Z], !0)
  10062. );
  10063. });
  10064. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  10065. A = A.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), $, z, g.startOfWeek));
  10066. else
  10067. for (g = $ + (m[0] - $) % L; g <= z && g !== A[0]; g += L)
  10068. A.push(g);
  10069. }
  10070. return A.length !== 0 && this.trimTicks(A), A;
  10071. }, X.prototype.adjustForMinRange = function() {
  10072. var g = this.options, m = this.logarithmic, L = this.min, z = this.max, $ = 0, Q, A, H, Y;
  10073. if (this.isXAxis && typeof this.minRange > "u" && !m && (k(g.min) || k(g.max) || k(g.floor) || k(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  10074. if (H = et.xData, Y = et.xIncrement ? 1 : H.length - 1, 1 < H.length)
  10075. for (Q = Y; 0 < Q; Q--)
  10076. A = H[Q] - H[Q - 1], (!$ || A < $) && ($ = A);
  10077. }), this.minRange = Math.min(5 * $, this.dataMax - this.dataMin))), z - L < this.minRange) {
  10078. var Z = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - z + L) / 2;
  10079. it = [L - it, P(g.min, L - it)], Z && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = l(it), z = [L + q, P(g.max, L + q)], Z && (z[2] = m ? m.log2lin(this.dataMax) : this.dataMax), z = T(z), z - L < q && (it[0] = z - q, it[1] = P(g.min, z - q), L = l(it));
  10080. }
  10081. this.min = L, this.max = z;
  10082. }, X.prototype.getClosest = function() {
  10083. var g;
  10084. return this.categories ? g = 1 : this.series.forEach(function(m) {
  10085. var L = m.closestPointRange, z = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  10086. !m.noSharedTooltip && k(L) && z && (g = k(g) ? Math.min(g, L) : L);
  10087. }), g;
  10088. }, X.prototype.nameToX = function(g) {
  10089. var m = i(this.categories), L = m ? this.categories : this.names, z = g.options.x;
  10090. if (g.series.requireSorting = !1, k(z) || (z = this.options.uniqueNames ? m ? L.indexOf(g.name) : P(L.keys[g.name], -1) : g.series.autoIncrement()), z === -1) {
  10091. if (!m)
  10092. var $ = L.length;
  10093. } else
  10094. $ = z;
  10095. return typeof $ < "u" && (this.names[$] = g.name, this.names.keys[g.name] = $), $;
  10096. }, X.prototype.updateNames = function() {
  10097. var g = this, m = this.names;
  10098. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  10099. delete m.keys[L];
  10100. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  10101. L.xIncrement = null, (!L.points || L.isDirtyData) && (g.max = Math.max(g.max, L.xData.length - 1), L.processData(), L.generatePoints()), L.data.forEach(function(z, $) {
  10102. if (z && z.options && typeof z.name < "u") {
  10103. var Q = g.nameToX(z);
  10104. typeof Q < "u" && Q !== z.x && (z.x = Q, L.xData[$] = Q);
  10105. }
  10106. });
  10107. }));
  10108. }, X.prototype.setAxisTranslation = function() {
  10109. var g = this, m = g.max - g.min, L = g.linkedParent, z = !!g.categories, $ = g.isXAxis, Q = g.axisPointRange || 0, A = 0, H = 0, Y = g.transA;
  10110. if ($ || z || Q) {
  10111. var Z = g.getClosest();
  10112. L ? (A = L.minPointOffset, H = L.pointRangePadding) : g.series.forEach(function(q) {
  10113. var it = z ? 1 : $ ? P(q.options.pointRange, Z, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  10114. Q = Math.max(Q, it), (!g.single || z) && (q = q.is("xrange") ? !$ : $, A = Math.max(A, q && a(et) ? 0 : it / 2), H = Math.max(H, q && et === "on" ? 0 : it));
  10115. }), L = g.ordinal && g.ordinal.slope && Z ? g.ordinal.slope / Z : 1, g.minPointOffset = A *= L, g.pointRangePadding = H *= L, g.pointRange = Math.min(Q, g.single && z ? 1 : m), $ && (g.closestPointRange = Z);
  10116. }
  10117. g.translationSlope = g.transA = Y = g.staticScale || g.len / (m + H || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = Y * A, c(this, "afterSetAxisTranslation");
  10118. }, X.prototype.minFromRange = function() {
  10119. return this.max - this.range;
  10120. }, X.prototype.setTickInterval = function(g) {
  10121. var m = this.chart, L = this.logarithmic, z = this.options, $ = this.isXAxis, Q = this.isLinked, A = z.tickPixelInterval, H = this.categories, Y = this.softThreshold, Z = z.maxPadding, q = z.minPadding, it = p(z.tickInterval) && 0 <= z.tickInterval ? z.tickInterval : void 0, et = p(this.threshold) ? this.threshold : null;
  10122. this.dateTime || H || Q || this.getTickAmount();
  10123. var nt = P(this.userMin, z.min), rt = P(this.userMax, z.max);
  10124. if (Q) {
  10125. this.linkedParent = m[this.coll][z.linkedTo];
  10126. var ct = this.linkedParent.getExtremes();
  10127. this.min = P(ct.min, ct.dataMin), this.max = P(ct.max, ct.dataMax), z.type !== this.linkedParent.options.type && v(11, 1, m);
  10128. } else {
  10129. if (Y && k(et)) {
  10130. if (this.dataMin >= et)
  10131. ct = et, q = 0;
  10132. else if (this.dataMax <= et) {
  10133. var gt = et;
  10134. Z = 0;
  10135. }
  10136. }
  10137. this.min = P(nt, ct, this.dataMin), this.max = P(rt, gt, this.dataMax);
  10138. }
  10139. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, P(this.dataMin, this.min)) && v(10, 1, m), this.min = R(L.log2lin(this.min), 16), this.max = R(L.log2lin(this.max), 16)), this.range && k(this.max) && (this.userMin = this.min = nt = Math.max(this.dataMin, this.minFromRange()), this.userMax = rt = this.max, this.range = null), c(this, "foundExtremes"), this.beforePadding && this.beforePadding(), this.adjustForMinRange(), !(H || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && k(this.min) && k(this.max) && (m = this.max - this.min) && (!k(nt) && q && (this.min -= m * q), !k(rt) && Z && (this.max += m * Z)), p(this.userMin) || (p(z.softMin) && z.softMin < this.min && (this.min = nt = z.softMin), p(z.floor) && (this.min = Math.max(this.min, z.floor))), p(this.userMax) || (p(z.softMax) && z.softMax > this.max && (this.max = rt = z.softMax), p(z.ceiling) && (this.max = Math.min(this.max, z.ceiling))), Y && k(this.dataMin) && (et = et || 0, !k(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !k(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), p(this.min) && p(this.max) && !this.chart.polar && this.min > this.max && (k(this.options.min) ? this.max = this.min : k(this.options.max) && (this.min = this.max)), this.tickInterval = this.min === this.max || typeof this.min > "u" || typeof this.max > "u" ? 1 : Q && this.linkedParent && !it && A === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : P(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, H ? 1 : (this.max - this.min) * A / Math.max(this.len, A)), $ && !g) {
  10140. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  10141. this.series.forEach(function(ht) {
  10142. ht.forceCrop = ht.forceCropping && ht.forceCropping(), ht.processData(dt);
  10143. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  10144. }
  10145. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = P(z.minTickInterval, this.dateTime && !this.series.some(function(ht) {
  10146. return ht.noSharedTooltip;
  10147. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = s(this.tickInterval, void 0, u(this.tickInterval), P(z.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  10148. }, X.prototype.setTickPositions = function() {
  10149. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), z = this.hasVerticalPanning(), $ = this.coll === "colorAxis", Q = ($ || !z) && g.startOnTick;
  10150. z = ($ || !z) && g.endOnTick, $ = g.tickPositioner, this.tickmarkOffset = this.categories && g.tickmarkPlacement === "between" && this.tickInterval === 1 ? 0.5 : 0, this.minorTickInterval = L === "auto" && this.tickInterval ? this.tickInterval / 5 : L, this.single = this.min === this.max && k(this.min) && !this.tickAmount && (parseInt(this.min, 10) === this.min || g.allowDecimals !== !1), this.tickPositions = L = m && m.slice(), !L && (this.ordinal && this.ordinal.positions || !((this.max - this.min) / this.tickInterval > Math.max(2 * this.len, 200)) ? L = this.dateTime ? this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval, g.units), this.min, this.max, g.startOfWeek, this.ordinal && this.ordinal.positions, this.closestPointRange, !0) : this.logarithmic ? this.logarithmic.getLogTickPositions(this.tickInterval, this.min, this.max) : this.getLinearTickPositions(
  10151. this.tickInterval,
  10152. this.min,
  10153. this.max
  10154. ) : (L = [this.min, this.max], v(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, $ && ($ = $.apply(this, [this.min, this.max]))) && (this.tickPositions = L = $), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, z), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(A) {
  10155. return A.is("heatmap") && A.options.pointPlacement === "between";
  10156. }) && (this.min -= 0.5, this.max += 0.5), m || $ || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  10157. }, X.prototype.trimTicks = function(g, m, L) {
  10158. var z = g[0], $ = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  10159. if (c(this, "trimTicks"), !this.isLinked) {
  10160. if (m && z !== -1 / 0)
  10161. this.min = z;
  10162. else
  10163. for (; this.min - Q > g[0]; )
  10164. g.shift();
  10165. if (L)
  10166. this.max = $;
  10167. else
  10168. for (; this.max + Q < g[g.length - 1]; )
  10169. g.pop();
  10170. g.length === 0 && k(z) && !this.options.tickPositions && g.push(($ + z) / 2);
  10171. }
  10172. }, X.prototype.alignToOthers = function() {
  10173. var g = {}, m = this.options, L;
  10174. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(z) {
  10175. var $ = z.options;
  10176. $ = [z.horiz ? $.left : $.top, $.width, $.height, $.pane].join(), z.series.length && (g[$] ? L = !0 : g[$] = 1);
  10177. }), L;
  10178. }, X.prototype.getTickAmount = function() {
  10179. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  10180. !k(g.tickInterval) && !L && this.len < m && !this.isRadial && !this.logarithmic && g.startOnTick && g.endOnTick && (L = 2), !L && this.alignToOthers() && (L = Math.ceil(this.len / m) + 1), 4 > L && (this.finalTickAmt = L, L = 5), this.tickAmount = L;
  10181. }, X.prototype.adjustTickAmount = function() {
  10182. var g = this.options, m = this.tickInterval, L = this.tickPositions, z = this.tickAmount, $ = this.finalTickAmt, Q = L && L.length, A = P(this.threshold, this.softThreshold ? 0 : null);
  10183. if (this.hasData() && p(this.min) && p(this.max)) {
  10184. if (Q < z) {
  10185. for (; L.length < z; )
  10186. L.length % 2 || this.min === A ? L.push(R(L[L.length - 1] + m)) : L.unshift(R(L[0] - m));
  10187. this.transA *= (Q - 1) / (z - 1), this.min = g.startOnTick ? L[0] : Math.min(this.min, L[0]), this.max = g.endOnTick ? L[L.length - 1] : Math.max(this.max, L[L.length - 1]);
  10188. } else
  10189. Q > z && (this.tickInterval *= 2, this.setTickPositions());
  10190. if (k($)) {
  10191. for (m = g = L.length; m--; )
  10192. ($ === 3 && m % 2 === 1 || 2 >= $ && 0 < m && m < g - 1) && L.splice(m, 1);
  10193. this.finalTickAmt = void 0;
  10194. }
  10195. }
  10196. }, X.prototype.setScale = function() {
  10197. var g = !1, m = !1;
  10198. this.series.forEach(function(z) {
  10199. g = g || z.isDirtyData || z.isDirty, m = m || z.xAxis && z.xAxis.isDirty || !1;
  10200. }), this.setAxisSize();
  10201. var L = this.len !== (this.old && this.old.len);
  10202. L || g || m || 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.forceRedraw = !1, this.getSeriesExtremes(), this.setTickInterval(), this.isDirty || (this.isDirty = L || this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max))) : this.stacking && this.stacking.cleanStacks(), g && this.panningState && (this.panningState.isDirty = !0), c(this, "afterSetScale");
  10203. }, X.prototype.setExtremes = function(g, m, L, z, $) {
  10204. var Q = this, A = Q.chart;
  10205. L = P(L, !0), Q.series.forEach(function(H) {
  10206. delete H.kdTree;
  10207. }), $ = h($, { min: g, max: m }), c(Q, "setExtremes", $, function() {
  10208. Q.userMin = g, Q.userMax = m, Q.eventArgs = $, L && A.redraw(z);
  10209. });
  10210. }, X.prototype.zoom = function(g, m) {
  10211. var L = this, z = this.dataMin, $ = this.dataMax, Q = this.options, A = Math.min(z, P(Q.min, z)), H = Math.max($, P(Q.max, $));
  10212. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(Y) {
  10213. var Z = Y.newMin, q = Y.newMax;
  10214. (Z !== L.min || q !== L.max) && (L.allowZoomOutside || (k(z) && (Z < A && (Z = A), Z > H && (Z = H)), k($) && (q < A && (q = A), q > H && (q = H))), L.displayBtn = typeof Z < "u" || typeof q < "u", L.setExtremes(Z, q, !1, void 0, { trigger: "zoom" })), Y.zoomed = !0;
  10215. }), g.zoomed;
  10216. }, X.prototype.setAxisSize = function() {
  10217. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], z = this.horiz, $ = this.width = Math.round(D(P(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(D(P(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), A = this.top = Math.round(D(P(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  10218. m = this.left = Math.round(D(P(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - A, this.right = g.chartWidth - $ - m, this.len = Math.max(z ? $ : Q, 0), this.pos = z ? m : A;
  10219. }, X.prototype.getExtremes = function() {
  10220. var g = this.logarithmic;
  10221. return { min: g ? R(g.lin2log(this.min)) : this.min, max: g ? R(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  10222. }, X.prototype.getThreshold = function(g) {
  10223. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  10224. return m = m ? m.lin2log(this.max) : this.max, g === null || g === -1 / 0 ? g = L : g === 1 / 0 ? g = m : L > g ? g = L : m < g && (g = m), this.translate(g, 0, 1, 0, 1);
  10225. }, X.prototype.autoLabelAlign = function(g) {
  10226. var m = (P(g, 0) - 90 * this.side + 720) % 360;
  10227. return g = { align: "center" }, c(
  10228. this,
  10229. "autoLabelAlign",
  10230. g,
  10231. function(L) {
  10232. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  10233. }
  10234. ), g.align;
  10235. }, X.prototype.tickSize = function(g) {
  10236. var m = this.options, L = P(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), z = m[g === "tick" ? "tickLength" : "minorTickLength"];
  10237. if (L && z) {
  10238. m[g + "Position"] === "inside" && (z = -z);
  10239. var $ = [z, L];
  10240. }
  10241. return g = { tickSize: $ }, c(this, "afterTickSize", g), g.tickSize;
  10242. }, X.prototype.labelMetrics = function() {
  10243. var g = this.tickPositions && this.tickPositions[0] || 0;
  10244. return this.chart.renderer.fontMetrics(
  10245. this.options.labels.style.fontSize,
  10246. this.ticks[g] && this.ticks[g].label
  10247. );
  10248. }, X.prototype.unsquish = function() {
  10249. var g = this.options.labels, m = this.horiz, L = this.tickInterval, z = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), $ = g.rotation, Q = this.labelMetrics(), A = Math.max(this.max - this.min, 0), H = function(nt) {
  10250. var rt = nt / (z || 1);
  10251. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > A && nt !== 1 / 0 && z !== 1 / 0 && A && (rt = Math.ceil(A / L)), R(rt * L);
  10252. }, Y = L, Z, q, it = Number.MAX_VALUE;
  10253. if (m) {
  10254. if (!g.staggerLines && !g.step)
  10255. if (p($))
  10256. var et = [$];
  10257. else
  10258. z < g.autoRotationLimit && (et = g.autoRotation);
  10259. et && et.forEach(function(nt) {
  10260. if (nt === $ || nt && -90 <= nt && 90 >= nt) {
  10261. q = H(Math.abs(Q.h / Math.sin(f * nt)));
  10262. var rt = q + Math.abs(nt / 360);
  10263. rt < it && (it = rt, Z = nt, Y = q);
  10264. }
  10265. });
  10266. } else
  10267. g.step || (Y = H(Q.h));
  10268. return this.autoRotation = et, this.labelRotation = P(Z, p($) ? $ : 0), Y;
  10269. }, X.prototype.getSlotWidth = function(g) {
  10270. var m = this.chart, L = this.horiz, z = this.options.labels, $ = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  10271. if (g && p(g.slotWidth))
  10272. return g.slotWidth;
  10273. if (L && 2 > z.step)
  10274. return z.rotation ? 0 : (this.staggerLines || 1) * this.len / $;
  10275. if (!L) {
  10276. if (g = z.style.width, g !== void 0)
  10277. return parseInt(String(g), 10);
  10278. if (Q)
  10279. return Q - m.spacing[3];
  10280. }
  10281. return 0.33 * m.chartWidth;
  10282. }, X.prototype.renderUnsquish = function() {
  10283. var g = this.chart, m = g.renderer, L = this.tickPositions, z = this.ticks, $ = this.options.labels, Q = $.style, A = this.horiz, H = this.getSlotWidth(), Y = Math.max(1, Math.round(H - 2 * $.padding)), Z = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  10284. if (a($.rotation) || (Z.rotation = $.rotation || 0), L.forEach(function(gt) {
  10285. gt = z[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  10286. }), this.maxLabelLength = et, this.autoRotation)
  10287. et > Y && et > q.h ? Z.rotation = this.labelRotation : this.labelRotation = 0;
  10288. else if (H) {
  10289. var nt = Y;
  10290. if (!it) {
  10291. var rt = "clip";
  10292. for (Y = L.length; !A && Y--; ) {
  10293. var ct = L[Y];
  10294. (ct = z[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > H && ct.css({ width: H + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  10295. }
  10296. }
  10297. }
  10298. Z.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = $.align || this.autoLabelAlign(this.labelRotation)) && (Z.align = this.labelAlign), L.forEach(function(gt) {
  10299. var dt = (gt = z[gt]) && gt.label, ht = Q.width, at = {};
  10300. dt && (dt.attr(Z), gt.shortenLabel ? gt.shortenLabel() : nt && !ht && Q.whiteSpace !== "nowrap" && (nt < dt.textPxLength || dt.element.tagName === "SPAN") ? (at.width = nt + "px", it || (at.textOverflow = dt.specificTextOverflow || rt), dt.css(at)) : dt.styles && dt.styles.width && !at.width && !ht && dt.css({ width: null }), delete dt.specificTextOverflow, gt.rotation = Z.rotation);
  10301. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  10302. }, X.prototype.hasData = function() {
  10303. return this.series.some(function(g) {
  10304. return g.hasData();
  10305. }) || this.options.showEmpty && k(this.min) && k(this.max);
  10306. }, X.prototype.addTitle = function(g) {
  10307. var m = this.chart.renderer, L = this.horiz, z = this.opposite, $ = this.options.title, Q = this.chart.styledMode, A;
  10308. this.axisTitle || ((A = $.textAlign) || (A = (L ? { low: "left", middle: "center", high: "right" } : { low: z ? "right" : "left", middle: "center", high: z ? "left" : "right" })[$.align]), this.axisTitle = m.text($.text || "", 0, 0, $.useHTML).attr({ zIndex: 7, rotation: $.rotation, align: A }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t($.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || $.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  10309. }, X.prototype.generateTick = function(g) {
  10310. var m = this.ticks;
  10311. m[g] ? m[g].addLabel() : m[g] = new F(this, g);
  10312. }, X.prototype.getOffset = function() {
  10313. var g = this, m = this, L = m.chart, z = m.horiz, $ = m.options, Q = m.side, A = m.ticks, H = m.tickPositions, Y = m.coll, Z = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = $.title, rt = $.labels, ct = L.axisOffset;
  10314. L = L.clipOffset;
  10315. var gt = [
  10316. -1,
  10317. 1,
  10318. 1,
  10319. -1
  10320. ][Q], dt = $.className, ht, at = 0, J = 0, tt = 0;
  10321. if (m.showAxis = ht = et || $.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  10322. var ot = function(pt, yt, vt) {
  10323. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + Y.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add(Z);
  10324. };
  10325. m.gridGroup = ot("grid", "-grid", $.gridZIndex), m.axisGroup = ot("axis", "", $.zIndex), m.labelGroup = ot("axis-labels", "-labels", rt.zIndex);
  10326. }
  10327. if (et || m.isLinked ? (H.forEach(function(pt) {
  10328. m.generateTick(pt);
  10329. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, P(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && H.forEach(function(pt) {
  10330. tt = Math.max(A[pt].getLabelSize(), tt);
  10331. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(A, function(pt, yt) {
  10332. pt.destroy(), delete A[yt];
  10333. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(ht), ht && nt.reserveSpace !== !1)) {
  10334. m.titleOffset = at = m.axisTitle.getBBox()[z ? "height" : "width"];
  10335. var lt = nt.offset;
  10336. J = k(lt) ? 0 : P(nt.margin, z ? 5 : 10);
  10337. }
  10338. m.renderLine(), m.offset = gt * P($.offset, ct[Q] ? ct[Q] + ($.margin || 0) : 0), m.tickRotCorr = m.tickRotCorr || { x: 0, y: 0 }, nt = Q === 0 ? -m.labelMetrics().h : Q === 2 ? m.tickRotCorr.y : 0, et = Math.abs(tt) + J, tt && (et = et - nt + gt * (z ? P(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = P(lt, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(A, H)), Y !== "colorAxis" && (z = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, H && H.length && z ? z[0] + gt * m.offset : 0), $ = !m.axisLine || $.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(L[it], $)), c(this, "afterGetOffset");
  10339. }, X.prototype.getLinePath = function(g) {
  10340. var m = this.chart, L = this.opposite, z = this.offset, $ = this.horiz, Q = this.left + (L ? this.width : 0) + z;
  10341. return z = m.chartHeight - this.bottom - (L ? this.height : 0) + z, L && (g *= -1), m.renderer.crispLine([["M", $ ? this.left : Q, $ ? z : this.top], ["L", $ ? m.chartWidth - this.right : Q, $ ? z : m.chartHeight - this.bottom]], g);
  10342. }, X.prototype.renderLine = function() {
  10343. 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 }));
  10344. }, X.prototype.getTitlePosition = function() {
  10345. var g = this.horiz, m = this.left, L = this.top, z = this.len, $ = this.options.title, Q = g ? m : L, A = this.opposite, H = this.offset, Y = $.x, Z = $.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics($.style.fontSize, q);
  10346. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), z = { low: Q + (g ? 0 : z), middle: Q + z / 2, high: Q + (g ? z : 0) }[$.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (A ? -1 : 1) * this.axisTitleMargin + [-q, q, it.f, -q][this.side], g = { x: g ? z + Y : m + (A ? this.width : 0) + H + Y, y: g ? m + Z - (A ? this.height : 0) + H : z + Z }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  10347. }, X.prototype.renderMinorTick = function(g, m) {
  10348. var L = this.minorTicks;
  10349. L[g] || (L[g] = new F(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  10350. }, X.prototype.renderTick = function(g, m, L) {
  10351. var z = this.ticks;
  10352. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (z[g] || (z[g] = new F(this, g)), L && z[g].isNew && z[g].render(
  10353. m,
  10354. !0,
  10355. -1
  10356. ), z[g].render(m));
  10357. }, X.prototype.render = function() {
  10358. var g = this, m = g.chart, L = g.logarithmic, z = g.options, $ = g.isLinked, Q = g.tickPositions, A = g.axisTitle, H = g.ticks, Y = g.minorTicks, Z = g.alternateBands, q = z.stackLabels, it = z.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = j(m.renderer.globalAnimation), gt, dt;
  10359. if (g.labelEdge.length = 0, g.overlap = !1, [H, Y, Z].forEach(function(at) {
  10360. n(at, function(J) {
  10361. J.isActive = !1;
  10362. });
  10363. }), g.hasData() || $) {
  10364. var ht = g.chart.hasRendered && g.old && p(g.old.min);
  10365. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  10366. g.renderMinorTick(at, ht);
  10367. }), Q.length && (Q.forEach(function(at, J) {
  10368. g.renderTick(at, J, ht);
  10369. }), et && (g.min === 0 || g.single) && (H[-1] || (H[-1] = new F(g, -1, null, !0)), H[-1].render(-1))), it && Q.forEach(function(at, J) {
  10370. dt = typeof Q[J + 1] < "u" ? Q[J + 1] + et : g.max - et, J % 2 === 0 && at < g.max && dt <= g.max + (m.polar ? -et : et) && (Z[at] || (Z[at] = new V.PlotLineOrBand(g)), gt = at + et, Z[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, Z[at].render(), Z[at].isActive = !0);
  10371. }), g._addedPlotLB || (g._addedPlotLB = !0, (z.plotLines || []).concat(z.plotBands || []).forEach(function(at) {
  10372. g.addPlotBandOrLine(at);
  10373. }));
  10374. }
  10375. [H, Y, Z].forEach(function(at) {
  10376. var J = [], tt = ct.duration;
  10377. n(at, function(ot, lt) {
  10378. ot.isActive || (ot.render(lt, !1, 0), ot.isActive = !1, J.push(lt));
  10379. }), E(function() {
  10380. for (var ot = J.length; ot--; )
  10381. at[J[ot]] && !at[J[ot]].isActive && (at[J[ot]].destroy(), delete at[J[ot]]);
  10382. }, at !== Z && m.hasRendered && tt ? tt : 0);
  10383. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), A && rt && (z = g.getTitlePosition(), p(z.y) ? (A[A.isNew ? "attr" : "animate"](z), A.isNew = !1) : (A.attr("y", -9999), A.isNew = !0)), q && q.enabled && g.stacking && g.stacking.renderStackTotals(), g.old = { len: g.len, max: g.max, min: g.min, transA: g.transA, userMax: g.userMax, userMin: g.userMin }, g.isDirty = !1, c(this, "afterRender");
  10384. }, X.prototype.redraw = function() {
  10385. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  10386. g.render();
  10387. })), this.series.forEach(function(g) {
  10388. g.isDirty = !0;
  10389. });
  10390. }, X.prototype.getKeepProps = function() {
  10391. return this.keepProps || X.keepProps;
  10392. }, X.prototype.destroy = function(g) {
  10393. var m = this, L = m.plotLinesAndBands, z = this.eventOptions;
  10394. if (c(this, "destroy", { keepEvents: g }), g || I(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  10395. b(Q);
  10396. }), L)
  10397. for (g = L.length; g--; )
  10398. L[g].destroy();
  10399. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  10400. m[Q] && (m[Q] = m[Q].destroy());
  10401. });
  10402. for (var $ in m.plotLinesAndBandsGroups)
  10403. m.plotLinesAndBandsGroups[$] = m.plotLinesAndBandsGroups[$].destroy();
  10404. n(m, function(Q, A) {
  10405. m.getKeepProps().indexOf(A) === -1 && delete m[A];
  10406. }), this.eventOptions = z;
  10407. }, X.prototype.drawCrosshair = function(g, m) {
  10408. var L = this.crosshair, z = P(L && L.snap, !0), $ = this.chart, Q, A = this.cross;
  10409. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (k(m) || !z) !== !1) {
  10410. if (z ? k(m) && (Q = P(this.coll !== "colorAxis" ? m.crosshairPos : null, this.isXAxis ? m.plotX : this.len - m.plotY)) : Q = g && (this.horiz ? g.chartX - this.pos : this.len - g.chartY + this.pos), k(Q)) {
  10411. var H = { value: m && (this.isXAxis ? m.x : P(m.stackY, m.y)), translatedValue: Q };
  10412. $.polar && h(H, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), H = this.getPlotLinePath(H) || null;
  10413. }
  10414. if (!k(H)) {
  10415. this.hideCrosshair();
  10416. return;
  10417. }
  10418. z = this.categories && !this.isRadial, A || (this.cross = A = $.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (z ? "category " : "thin ") + (L.className || "")).attr({ zIndex: P(L.zIndex, 2) }).add(), $.styledMode || (A.attr({ stroke: L.color || (z ? _.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": P(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && A.attr({ dashstyle: L.dashStyle }))), A.show().attr({ d: H }), z && !L.width && A.attr({ "stroke-width": this.transA }), this.cross.e = g;
  10419. } else
  10420. this.hideCrosshair();
  10421. c(this, "afterDrawCrosshair", { e: g, point: m });
  10422. }, X.prototype.hideCrosshair = function() {
  10423. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  10424. }, X.prototype.hasVerticalPanning = function() {
  10425. var g = this.chart.options.chart.panning;
  10426. return !!(g && g.enabled && /y/.test(g.type));
  10427. }, X.prototype.validatePositiveValue = function(g) {
  10428. return p(g) && 0 < g;
  10429. }, X.prototype.update = function(g, m) {
  10430. var L = this.chart;
  10431. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, P(m, !0) && L.redraw();
  10432. }, X.prototype.remove = function(g) {
  10433. for (var m = this.chart, L = this.coll, z = this.series, $ = z.length; $--; )
  10434. z[$] && z[$].remove(!1);
  10435. S(m.axes, this), S(m[L], this), m[L].forEach(function(Q, A) {
  10436. Q.options.index = Q.userOptions.index = A;
  10437. }), this.destroy(), m.isDirtyBox = !0, P(g, !0) && m.redraw();
  10438. }, X.prototype.setTitle = function(g, m) {
  10439. this.update({ title: g }, m);
  10440. }, X.prototype.setCategories = function(g, m) {
  10441. this.update(
  10442. { categories: g },
  10443. m
  10444. );
  10445. }, X.defaultOptions = N.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  10446. }(), y;
  10447. }), C(o, "Core/Axis/DateTimeAxis.js", [o["Core/Utilities.js"]], function(y) {
  10448. var N = y.addEvent, _ = y.getMagnitude, U = y.normalizeTickInterval, G = y.timeUnits, V;
  10449. return function(F) {
  10450. function B() {
  10451. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  10452. }
  10453. function j(f) {
  10454. f.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new x(this));
  10455. }
  10456. var w = [];
  10457. F.compose = function(f) {
  10458. return w.indexOf(f) === -1 && (w.push(f), f.keepProps.push("dateTime"), f.prototype.getTimeTicks = B, N(f, "init", j)), f;
  10459. };
  10460. var x = function() {
  10461. function f(l) {
  10462. this.axis = l;
  10463. }
  10464. return f.prototype.normalizeTimeTickInterval = function(l, T) {
  10465. var O = T || [["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]];
  10466. T = O[O.length - 1];
  10467. var R = G[T[0]], k = T[1], b;
  10468. for (b = 0; b < O.length && (T = O[b], R = G[T[0]], k = T[1], !(O[b + 1] && l <= (R * k[k.length - 1] + G[O[b + 1][0]]) / 2)); b++)
  10469. ;
  10470. return R === G.year && l < 5 * R && (k = [1, 2, 5]), l = U(l / R, k, T[0] === "year" ? Math.max(_(l / R), 1) : 1), { unitRange: R, count: l, unitName: T[0] };
  10471. }, f.prototype.getXDateFormat = function(l, T) {
  10472. var O = this.axis;
  10473. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, l, O.options.startOfWeek, T) || T.year : T.day;
  10474. }, f;
  10475. }();
  10476. F.Additions = x;
  10477. }(V || (V = {})), V;
  10478. }), C(o, "Core/Axis/LogarithmicAxis.js", [o["Core/Utilities.js"]], function(y) {
  10479. var N = y.addEvent, _ = y.getMagnitude, U = y.normalizeTickInterval, G = y.pick, V;
  10480. return function(F) {
  10481. function B(f) {
  10482. var l = this.logarithmic;
  10483. f.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : l || (this.logarithmic = new x(this));
  10484. }
  10485. function j() {
  10486. var f = this.logarithmic;
  10487. f && (this.lin2val = function(l) {
  10488. return f.lin2log(l);
  10489. }, this.val2lin = function(l) {
  10490. return f.log2lin(l);
  10491. });
  10492. }
  10493. var w = [];
  10494. F.compose = function(f) {
  10495. return w.indexOf(f) === -1 && (w.push(f), f.keepProps.push("logarithmic"), N(f, "init", B), N(f, "afterInit", j)), f;
  10496. };
  10497. var x = function() {
  10498. function f(l) {
  10499. this.axis = l;
  10500. }
  10501. return f.prototype.getLogTickPositions = function(l, T, O, R) {
  10502. var k = this.axis, b = k.len, S = k.options, v = [];
  10503. if (R || (this.minorAutoInterval = void 0), 0.5 <= l)
  10504. l = Math.round(l), v = k.getLinearTickPositions(l, T, O);
  10505. else if (0.08 <= l) {
  10506. var h = Math.floor(T), c, u = S = void 0;
  10507. for (b = 0.3 < l ? [1, 2, 4] : 0.15 < l ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; h < O + 1 && !u; h++) {
  10508. var i = b.length;
  10509. for (c = 0; c < i && !u; c++) {
  10510. var p = this.log2lin(this.lin2log(h) * b[c]);
  10511. p > T && (!R || S <= O) && typeof S < "u" && v.push(S), S > O && (u = !0), S = p;
  10512. }
  10513. }
  10514. } else
  10515. T = this.lin2log(T), O = this.lin2log(O), l = R ? k.getMinorTickInterval() : S.tickInterval, l = G(l === "auto" ? null : l, this.minorAutoInterval, S.tickPixelInterval / (R ? 5 : 1) * (O - T) / ((R ? b / k.tickPositions.length : b) || 1)), l = U(l, void 0, _(l)), v = k.getLinearTickPositions(l, T, O).map(this.log2lin), R || (this.minorAutoInterval = l / 5);
  10516. return R || (k.tickInterval = l), v;
  10517. }, f.prototype.lin2log = function(l) {
  10518. return Math.pow(10, l);
  10519. }, f.prototype.log2lin = function(l) {
  10520. return Math.log(l) / Math.LN10;
  10521. }, f;
  10522. }();
  10523. F.Additions = x;
  10524. }(V || (V = {})), V;
  10525. }), C(o, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [o["Core/Utilities.js"]], function(y) {
  10526. var N = y.erase, _ = y.extend, U = y.isNumber, G;
  10527. return function(V) {
  10528. var F = [], B;
  10529. V.compose = function(w, x) {
  10530. return B || (B = w), F.indexOf(x) === -1 && (F.push(x), _(x.prototype, j.prototype)), x;
  10531. };
  10532. var j = function() {
  10533. function w() {
  10534. }
  10535. return w.prototype.getPlotBandPath = function(x, f, l) {
  10536. l === void 0 && (l = this.options);
  10537. var T = this.getPlotLinePath({ value: f, force: !0, acrossPanes: l.acrossPanes }), O = [], R = this.horiz;
  10538. if (f = !U(this.min) || !U(this.max) || x < this.min && f < this.min || x > this.max && f > this.max, x = this.getPlotLinePath({ value: x, force: !0, acrossPanes: l.acrossPanes }), l = 1, x && T) {
  10539. if (f) {
  10540. var k = x.toString() === T.toString();
  10541. l = 0;
  10542. }
  10543. for (f = 0; f < x.length; f += 2) {
  10544. var b = x[f], S = x[f + 1], v = T[f], h = T[f + 1];
  10545. b[0] !== "M" && b[0] !== "L" || S[0] !== "M" && S[0] !== "L" || v[0] !== "M" && v[0] !== "L" || h[0] !== "M" && h[0] !== "L" || (R && v[1] === b[1] ? (v[1] += l, h[1] += l) : R || v[2] !== b[2] || (v[2] += l, h[2] += l), O.push(["M", b[1], b[2]], ["L", S[1], S[2]], ["L", h[1], h[2]], ["L", v[1], v[2]], ["Z"])), O.isFlat = k;
  10546. }
  10547. }
  10548. return O;
  10549. }, w.prototype.addPlotBand = function(x) {
  10550. return this.addPlotBandOrLine(x, "plotBands");
  10551. }, w.prototype.addPlotLine = function(x) {
  10552. return this.addPlotBandOrLine(
  10553. x,
  10554. "plotLines"
  10555. );
  10556. }, w.prototype.addPlotBandOrLine = function(x, f) {
  10557. var l = this, T = this.userOptions, O = new B(this, x);
  10558. if (this.visible && (O = O.render()), O) {
  10559. if (this._addedPlotLB || (this._addedPlotLB = !0, (T.plotLines || []).concat(T.plotBands || []).forEach(function(k) {
  10560. l.addPlotBandOrLine(k);
  10561. })), f) {
  10562. var R = T[f] || [];
  10563. R.push(x), T[f] = R;
  10564. }
  10565. this.plotLinesAndBands.push(O);
  10566. }
  10567. return O;
  10568. }, w.prototype.removePlotBandOrLine = function(x) {
  10569. var f = this.plotLinesAndBands, l = this.options, T = this.userOptions;
  10570. if (f) {
  10571. for (var O = f.length; O--; )
  10572. f[O].id === x && f[O].destroy();
  10573. [l.plotLines || [], T.plotLines || [], l.plotBands || [], T.plotBands || []].forEach(function(R) {
  10574. for (O = R.length; O--; )
  10575. (R[O] || {}).id === x && N(R, R[O]);
  10576. });
  10577. }
  10578. }, w.prototype.removePlotBand = function(x) {
  10579. this.removePlotBandOrLine(x);
  10580. }, w.prototype.removePlotLine = function(x) {
  10581. this.removePlotBandOrLine(x);
  10582. }, w;
  10583. }();
  10584. }(G || (G = {})), G;
  10585. }), C(o, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [o["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], o["Core/Utilities.js"]], function(y, N) {
  10586. var _ = N.arrayMax, U = N.arrayMin, G = N.defined, V = N.destroyObjectProperties, F = N.erase, B = N.fireEvent, j = N.merge, w = N.objectEach, x = N.pick;
  10587. return N = function() {
  10588. function f(l, T) {
  10589. this.axis = l, T && (this.options = T, this.id = T.id);
  10590. }
  10591. return f.compose = function(l) {
  10592. return y.compose(f, l);
  10593. }, f.prototype.render = function() {
  10594. B(this, "render");
  10595. var l = this, T = l.axis, O = T.horiz, R = T.logarithmic, k = l.options, b = k.color, S = x(k.zIndex, 0), v = k.events, h = {}, c = T.chart.renderer, u = k.label, i = l.label, p = k.to, a = k.from, t = k.value, s = l.svgElem, n = [], P = G(a) && G(p);
  10596. n = G(t);
  10597. var D = !s, I = { class: "highcharts-plot-" + (P ? "band " : "line ") + (k.className || "") }, W = P ? "bands" : "lines";
  10598. if (R && (a = R.log2lin(a), p = R.log2lin(p), t = R.log2lin(t)), T.chart.styledMode || (n ? (I.stroke = b || "#999999", I["stroke-width"] = x(k.width, 1), k.dashStyle && (I.dashstyle = k.dashStyle)) : P && (I.fill = b || "#e6ebf5", k.borderWidth && (I.stroke = k.borderColor, I["stroke-width"] = k.borderWidth))), h.zIndex = S, W += "-" + S, (R = T.plotLinesAndBandsGroups[W]) || (T.plotLinesAndBandsGroups[W] = R = c.g("plot-" + W).attr(h).add()), D && (l.svgElem = s = c.path().attr(I).add(R)), n)
  10599. n = T.getPlotLinePath({
  10600. value: t,
  10601. lineWidth: s.strokeWidth(),
  10602. acrossPanes: k.acrossPanes
  10603. });
  10604. else if (P)
  10605. n = T.getPlotBandPath(a, p, k);
  10606. else
  10607. return;
  10608. return !l.eventsAdded && v && (w(v, function(E, X) {
  10609. s.on(X, function(g) {
  10610. v[X].apply(l, [g]);
  10611. });
  10612. }), l.eventsAdded = !0), (D || !s.d) && n && n.length ? s.attr({ d: n }) : s && (n ? (s.show(!0), s.animate({ d: n })) : s.d && (s.hide(), i && (l.label = i = i.destroy()))), u && (G(u.text) || G(u.formatter)) && n && n.length && 0 < T.width && 0 < T.height && !n.isFlat ? (u = j({ align: O && P && "center", x: O ? !P && 4 : 10, verticalAlign: !O && P && "middle", y: O ? P ? 16 : 10 : P ? 6 : -4, rotation: O && !P && 90 }, u), this.renderLabel(
  10613. u,
  10614. n,
  10615. P,
  10616. S
  10617. )) : i && i.hide(), l;
  10618. }, f.prototype.renderLabel = function(l, T, O, R) {
  10619. var k = this.axis, b = k.chart.renderer, S = this.label;
  10620. S || (this.label = S = b.text(this.getLabelText(l), 0, 0, l.useHTML).attr({ align: l.textAlign || l.align, rotation: l.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (l.className || ""), zIndex: R }).add(), k.chart.styledMode || S.css(j({ textOverflow: "ellipsis" }, l.style))), R = T.xBounds || [T[0][1], T[1][1], O ? T[2][1] : T[0][1]], T = T.yBounds || [T[0][2], T[1][2], O ? T[2][2] : T[0][2]], O = U(R), b = U(T), S.align(
  10621. l,
  10622. !1,
  10623. { x: O, y: b, width: _(R) - O, height: _(T) - b }
  10624. ), S.alignValue && S.alignValue !== "left" || S.css({ width: (S.rotation === 90 ? k.height - (S.alignAttr.y - k.top) : k.width - (S.alignAttr.x - k.left)) + "px" }), S.show(!0);
  10625. }, f.prototype.getLabelText = function(l) {
  10626. return G(l.formatter) ? l.formatter.call(this) : l.text;
  10627. }, f.prototype.destroy = function() {
  10628. F(this.axis.plotLinesAndBands, this), delete this.axis, V(this);
  10629. }, f;
  10630. }(), N;
  10631. }), C(o, "Core/Tooltip.js", [
  10632. o["Core/FormatUtilities.js"],
  10633. o["Core/Globals.js"],
  10634. o["Core/Renderer/RendererUtilities.js"],
  10635. o["Core/Renderer/RendererRegistry.js"],
  10636. o["Core/Utilities.js"]
  10637. ], function(y, N, _, U, G) {
  10638. var V = y.format, F = N.doc, B = _.distribute, j = G.addEvent, w = G.clamp, x = G.css, f = G.defined, l = G.discardElement, T = G.extend, O = G.fireEvent, R = G.isArray, k = G.isNumber, b = G.isString, S = G.merge, v = G.pick, h = G.splat, c = G.syncTimeout;
  10639. return y = function() {
  10640. function u(i, p) {
  10641. this.allowShared = !0, this.container = void 0, this.crosshairs = [], this.distance = 0, this.isHidden = !0, this.isSticky = !1, this.now = {}, this.options = {}, this.outside = !1, this.chart = i, this.init(i, p);
  10642. }
  10643. return u.prototype.applyFilter = function() {
  10644. var i = this.chart;
  10645. i.renderer.definition({ tagName: "filter", attributes: { id: "drop-shadow-" + i.index, opacity: 0.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: 0.3 } }] }, { tagName: "feMerge", children: [{ tagName: "feMergeNode" }, { tagName: "feMergeNode", attributes: { in: "SourceGraphic" } }] }] });
  10646. }, u.prototype.bodyFormatter = function(i) {
  10647. return i.map(function(p) {
  10648. var a = p.series.tooltipOptions;
  10649. return (a[(p.point.formatPrefix || "point") + "Formatter"] || p.point.tooltipFormatter).call(p.point, a[(p.point.formatPrefix || "point") + "Format"] || "");
  10650. });
  10651. }, u.prototype.cleanSplit = function(i) {
  10652. this.chart.series.forEach(function(p) {
  10653. var a = p && p.tt;
  10654. a && (!a.isActive || i ? p.tt = a.destroy() : a.isActive = !1);
  10655. });
  10656. }, u.prototype.defaultFormatter = function(i) {
  10657. var p = this.points || h(this), a = [i.tooltipFooterHeaderFormatter(p[0])];
  10658. return a = a.concat(i.bodyFormatter(p)), a.push(i.tooltipFooterHeaderFormatter(
  10659. p[0],
  10660. !0
  10661. )), a;
  10662. }, u.prototype.destroy = function() {
  10663. this.label && (this.label = this.label.destroy()), this.split && this.tt && (this.cleanSplit(!0), this.tt = this.tt.destroy()), this.renderer && (this.renderer = this.renderer.destroy(), l(this.container)), G.clearTimeout(this.hideTimer), G.clearTimeout(this.tooltipTimeout);
  10664. }, u.prototype.getAnchor = function(i, p) {
  10665. var a = this.chart, t = a.pointer, s = a.inverted, n = a.plotTop, P = a.plotLeft, D, I, W = 0, E = 0;
  10666. return i = h(i), this.followPointer && p ? (typeof p.chartX > "u" && (p = t.normalize(p)), t = [p.chartX - P, p.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  10667. D = X.series.yAxis, I = X.series.xAxis, W += X.plotX || 0, E += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, I && D && (s ? (W += n + a.plotHeight - I.len - I.pos, E += P + a.plotWidth - D.len - D.pos) : (W += I.pos - P, E += D.pos - n));
  10668. }), W /= i.length, E /= i.length, t = [s ? a.plotWidth - E : W, s ? a.plotHeight - W : E], this.shared && 1 < i.length && p && (s ? t[0] = p.chartX - P : t[1] = p.chartY - n)), t.map(Math.round);
  10669. }, u.prototype.getLabel = function() {
  10670. var i = this, p = this.chart.styledMode, a = this.options, t = this.split && this.allowShared, s = "tooltip" + (f(a.className) ? " " + a.className : ""), n = a.style.pointerEvents || (!this.followPointer && a.stickOnContact ? "auto" : "none"), P = function() {
  10671. i.inContact = !0;
  10672. }, D = function(z) {
  10673. var $ = i.chart.hoverSeries;
  10674. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(z.relatedTarget, "highcharts-tooltip"), !i.inContact && $ && $.onMouseOut && $.onMouseOut();
  10675. }, I, W = this.chart.renderer;
  10676. if (i.label) {
  10677. var E = !i.label.hasClass("highcharts-label");
  10678. (t && !E || !t && E) && i.destroy();
  10679. }
  10680. if (!this.label) {
  10681. if (this.outside) {
  10682. E = this.chart.options.chart.style;
  10683. var X = U.getRendererType();
  10684. this.container = I = N.doc.createElement("div"), I.className = "highcharts-tooltip-container", x(I, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (E && E.zIndex || 0) + 3) }), j(I, "mouseenter", P), j(I, "mouseleave", D), N.doc.body.appendChild(I), this.renderer = W = new X(I, 0, 0, E, void 0, void 0, W.styledMode);
  10685. }
  10686. if (t ? this.label = W.g(s) : (this.label = W.label("", 0, 0, a.shape, void 0, void 0, a.useHTML, void 0, s).attr({ padding: a.padding, r: a.borderRadius }), p || this.label.attr({ fill: a.backgroundColor, "stroke-width": a.borderWidth }).css(a.style).css({ pointerEvents: n }).shadow(a.shadow)), p && a.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  10687. var g = this.label, m = g.xSetter, L = g.ySetter;
  10688. g.xSetter = function(z) {
  10689. m.call(g, i.distance), I.style.left = z + "px";
  10690. }, g.ySetter = function(z) {
  10691. L.call(g, i.distance), I.style.top = z + "px";
  10692. };
  10693. }
  10694. this.label.on("mouseenter", P).on("mouseleave", D).attr({ zIndex: 8 }).add();
  10695. }
  10696. return this.label;
  10697. }, u.prototype.getPosition = function(i, p, a) {
  10698. var t = this.chart, s = this.distance, n = {}, P = t.inverted && a.h || 0, D = this.outside, I = D ? F.documentElement.clientWidth - 2 * s : t.chartWidth, W = D ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : t.chartHeight, E = t.pointer.getChartPosition(), X = function(Y) {
  10699. var Z = Y === "x";
  10700. return [Y, Z ? I : W, Z ? i : p].concat(D ? [Z ? i * E.scaleX : p * E.scaleY, Z ? E.left - s + (a.plotX + t.plotLeft) * E.scaleX : E.top - s + (a.plotY + t.plotTop) * E.scaleY, 0, Z ? I : W] : [Z ? i : p, Z ? a.plotX + t.plotLeft : a.plotY + t.plotTop, Z ? t.plotLeft : t.plotTop, Z ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  10701. }, g = X("y"), m = X("x"), L;
  10702. X = !!a.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  10703. var z = !this.followPointer && v(a.ttBelow, !t.inverted === X), $ = function(Y, Z, q, it, et, nt, rt) {
  10704. var ct = D ? Y === "y" ? s * E.scaleY : s * E.scaleX : s, gt = (q - it) / 2, dt = it < et - s, ht = et + s + it < Z, at = et - ct - q + gt;
  10705. if (et = et + ct - gt, z && ht)
  10706. n[Y] = et;
  10707. else if (!z && dt)
  10708. n[Y] = at;
  10709. else if (dt)
  10710. n[Y] = Math.min(rt - it, 0 > at - P ? at : at - P);
  10711. else if (ht)
  10712. n[Y] = Math.max(nt, et + P + q > Z ? et : et + P);
  10713. else
  10714. return !1;
  10715. }, Q = function(Y, Z, q, it, et) {
  10716. var nt;
  10717. return et < s || et > Z - s ? nt = !1 : n[Y] = et < q / 2 ? 1 : et > Z - it / 2 ? Z - it - 2 : et - q / 2, nt;
  10718. }, A = function(Y) {
  10719. var Z = g;
  10720. g = m, m = Z, L = Y;
  10721. }, H = function() {
  10722. $.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (A(!0), H()) : L ? n.x = n.y = 0 : (A(!0), H());
  10723. };
  10724. return (t.inverted || 1 < this.len) && A(), H(), n;
  10725. }, u.prototype.hide = function(i) {
  10726. var p = this;
  10727. G.clearTimeout(this.hideTimer), i = v(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  10728. p.getLabel().fadeOut(i && void 0), p.isHidden = !0;
  10729. }, i));
  10730. }, u.prototype.init = function(i, p) {
  10731. this.chart = i, this.options = p, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = p.split && !i.inverted && !i.polar, this.shared = p.shared || this.split, this.outside = v(p.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  10732. }, u.prototype.shouldStickOnContact = function() {
  10733. return !(this.followPointer || !this.options.stickOnContact);
  10734. }, u.prototype.isStickyOnContact = function() {
  10735. return !(!this.shouldStickOnContact() || !this.inContact);
  10736. }, u.prototype.move = function(i, p, a, t) {
  10737. var s = this, n = s.now, P = s.options.animation !== !1 && !s.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(p - n.y)), D = s.followPointer || 1 < s.len;
  10738. T(n, { x: P ? (2 * n.x + i) / 3 : i, y: P ? (n.y + p) / 2 : p, anchorX: D ? void 0 : P ? (2 * n.anchorX + a) / 3 : a, anchorY: D ? void 0 : P ? (n.anchorY + t) / 2 : t }), s.getLabel().attr(n), s.drawTracker(), P && (G.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  10739. s && s.move(i, p, a, t);
  10740. }, 32));
  10741. }, u.prototype.refresh = function(i, p) {
  10742. var a = this.chart, t = this.options, s = h(i), n = s[0], P = [], D = t.formatter || this.defaultFormatter, I = this.shared, W = a.styledMode, E = {};
  10743. if (t.enabled) {
  10744. G.clearTimeout(this.hideTimer), this.allowShared = !(!R(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, p);
  10745. var X = i[0], g = i[1];
  10746. if (I && this.allowShared ? (a.pointer.applyInactiveState(s), s.forEach(function(z) {
  10747. z.setState("hover"), P.push(z.getLabelConfig());
  10748. }), E = { x: n.category, y: n.y }, E.points = P) : E = n.getLabelConfig(), this.len = P.length, D = D.call(E, this), I = n.series, this.distance = v(
  10749. I.tooltipOptions.distance,
  10750. 16
  10751. ), D === !1)
  10752. this.hide();
  10753. else {
  10754. if (this.split && this.allowShared)
  10755. this.renderSplit(D, s);
  10756. else {
  10757. var m = X, L = g;
  10758. if (p && a.pointer.isDirectTouch && (m = p.chartX - a.plotLeft, L = p.chartY - a.plotTop), a.polar || I.options.clip === !1 || s.some(function(z) {
  10759. return z.series.shouldShowTooltip(m, L);
  10760. }))
  10761. p = this.getLabel(), t.style.width && !W || p.css({ width: this.chart.spacingBox.width + "px" }), p.attr({ text: D && D.join ? D.join("") : D }), p.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + v(n.colorIndex, I.colorIndex)), W || p.attr({ stroke: t.borderColor || n.color || I.color || "#666666" }), this.updatePosition({ plotX: X, plotY: g, negative: n.negative, ttBelow: n.ttBelow, h: i[2] || 0 });
  10762. else {
  10763. this.hide();
  10764. return;
  10765. }
  10766. }
  10767. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  10768. }
  10769. O(this, "refresh");
  10770. }
  10771. }, u.prototype.renderSplit = function(i, p) {
  10772. function a(ht, at, J, tt, ot) {
  10773. return ot === void 0 && (ot = !0), J ? (at = it ? 0 : ct, ht = w(ht - tt / 2, Y.left, Y.right - tt - (t.outside ? et : 0))) : (at -= nt, ht = ot ? ht - tt - Q : ht + Q, ht = w(ht, ot ? ht : Y.left, Y.right)), { x: ht, y: at };
  10774. }
  10775. var t = this, s = t.chart, n = t.chart, P = n.chartWidth, D = n.chartHeight, I = n.plotHeight, W = n.plotLeft, E = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  10776. g = g === void 0 ? 0 : g;
  10777. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  10778. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  10779. var z = L.scrollLeft;
  10780. L = L.scrollTop;
  10781. var $ = n.styledMode, Q = t.distance, A = t.options, H = t.options.positioner, Y = t.outside && typeof m != "number" ? F.documentElement.getBoundingClientRect() : { left: z, right: z + P, top: L, bottom: L + D }, Z = t.getLabel(), q = this.renderer || s.renderer, it = !(!s.xAxis[0] || !s.xAxis[0].opposite);
  10782. s = X.getChartPosition();
  10783. var et = s.left;
  10784. s = s.top;
  10785. var nt = E + L, rt = 0, ct = I - g;
  10786. b(i) && (i = [!1, i]), i = i.slice(0, p.length + 1).reduce(function(ht, at, J) {
  10787. if (at !== !1 && at !== "") {
  10788. J = p[J - 1] || { isHeader: !0, plotX: p[0].plotX, plotY: I, series: {} };
  10789. var tt = J.isHeader, ot = tt ? t : J.series;
  10790. at = at.toString();
  10791. var lt = ot.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + v(J.colorIndex, yt.colorIndex, "none");
  10792. if (lt || (lt = { padding: A.padding, r: A.borderRadius }, $ || (lt.fill = A.backgroundColor, lt["stroke-width"] = A.borderWidth), lt = q.label("", 0, 0, A[pt ? "headerShape" : "shape"], void 0, void 0, A.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(lt).add(Z)), lt.isActive = !0, lt.attr({ text: at }), $ || lt.css(A.style).shadow(A.shadow).attr({ stroke: A.borderColor || J.color || yt.color || "#333333" }), ot = ot.tt = lt, pt = ot.getBBox(), at = pt.width + ot.strokeWidth(), tt && (rt = pt.height, ct += rt, it && (nt -= rt)), yt = J.plotX, yt = yt === void 0 ? 0 : yt, vt = J.plotY, vt = vt === void 0 ? 0 : vt, lt = J.series, J.isHeader) {
  10793. yt = W + yt;
  10794. var Ct = E + I / 2;
  10795. } else {
  10796. var Pt = lt.xAxis, At = lt.yAxis;
  10797. yt = Pt.pos + w(yt, -Q, Pt.len + Q), lt.shouldShowTooltip(0, At.pos - E + vt, { ignoreX: !0 }) && (Ct = At.pos + vt);
  10798. }
  10799. yt = w(
  10800. yt,
  10801. Y.left - Q,
  10802. Y.right + Q
  10803. ), typeof Ct == "number" ? (pt = pt.height + 1, vt = H ? H.call(t, at, pt, J) : a(yt, Ct, tt, at), ht.push({ align: H ? 0 : void 0, anchorX: yt, anchorY: Ct, boxWidth: at, point: J, rank: v(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: ot, x: vt.x })) : ot.isActive = !1;
  10804. }
  10805. return ht;
  10806. }, []), !H && i.some(function(ht) {
  10807. var at = (t.outside ? et : 0) + ht.anchorX;
  10808. return at < Y.left && at + ht.boxWidth < Y.right ? !0 : at < et - Y.left + ht.boxWidth && Y.right - at > at;
  10809. }) && (i = i.map(function(ht) {
  10810. var at = a(ht.anchorX, ht.anchorY, ht.point.isHeader, ht.boxWidth, !1);
  10811. return T(ht, { target: at.y, x: at.x });
  10812. })), t.cleanSplit(), B(i, ct);
  10813. var gt = et, dt = et;
  10814. i.forEach(function(ht) {
  10815. var at = ht.x, J = ht.boxWidth;
  10816. ht = ht.isHeader, ht || (t.outside && et + at < gt && (gt = et + at), !ht && t.outside && gt + J > dt && (dt = et + at));
  10817. }), i.forEach(function(ht) {
  10818. var at = ht.x, J = ht.anchorX, tt = ht.pos, ot = ht.point.isHeader;
  10819. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: ht.anchorY }, t.outside && at < J) {
  10820. var lt = et - gt;
  10821. 0 < lt && (ot || (tt.x = at + lt, tt.anchorX = J + lt), ot && (tt.x = (dt - gt) / 2, tt.anchorX = J + lt));
  10822. }
  10823. ht.tt.attr(tt);
  10824. }), i = t.container, g = t.renderer, t.outside && i && g && (n = Z.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = s + "px");
  10825. }, u.prototype.drawTracker = function() {
  10826. if (this.followPointer || !this.options.stickOnContact)
  10827. this.tracker && this.tracker.destroy();
  10828. else {
  10829. var i = this.chart, p = this.label, a = this.shared ? i.hoverPoints : i.hoverPoint;
  10830. if (p && a) {
  10831. var t = { x: 0, y: 0, width: 0, height: 0 };
  10832. a = this.getAnchor(a);
  10833. var s = p.getBBox();
  10834. a[0] += i.plotLeft - p.translateX, a[1] += i.plotTop - p.translateY, t.x = Math.min(0, a[0]), t.y = Math.min(0, a[1]), t.width = 0 > a[0] ? Math.max(Math.abs(a[0]), s.width - a[0]) : Math.max(
  10835. Math.abs(a[0]),
  10836. s.width
  10837. ), t.height = 0 > a[1] ? Math.max(Math.abs(a[1]), s.height - Math.abs(a[1])) : Math.max(Math.abs(a[1]), s.height), this.tracker ? this.tracker.attr(t) : (this.tracker = p.renderer.rect(t).addClass("highcharts-tracker").add(p), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  10838. }
  10839. }
  10840. }, u.prototype.styledModeFormat = function(i) {
  10841. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  10842. }, u.prototype.tooltipFooterHeaderFormatter = function(i, p) {
  10843. var a = i.series, t = a.tooltipOptions, s = a.xAxis, n = s && s.dateTime;
  10844. s = { isFooter: p, labelConfig: i };
  10845. var P = t.xDateFormat, D = t[p ? "footerFormat" : "headerFormat"];
  10846. return O(this, "headerFormatter", s, function(I) {
  10847. n && !P && k(i.key) && (P = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && P && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  10848. D = D.replace("{point." + W + "}", "{point." + W + ":" + P + "}");
  10849. }), a.chart.styledMode && (D = this.styledModeFormat(D)), I.text = V(D, { point: i, series: a }, this.chart);
  10850. }), s.text;
  10851. }, u.prototype.update = function(i) {
  10852. this.destroy(), S(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, S(!0, this.options, i));
  10853. }, u.prototype.updatePosition = function(i) {
  10854. var p = this.chart, a = this.options, t = p.pointer, s = this.getLabel();
  10855. t = t.getChartPosition();
  10856. var n = (a.positioner || this.getPosition).call(this, s.width, s.height, i), P = i.plotX + p.plotLeft;
  10857. i = i.plotY + p.plotTop, this.outside && (a = a.borderWidth + 2 * this.distance, this.renderer.setSize(s.width + a, s.height + a, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (x(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), P *= t.scaleX, i *= t.scaleY), P += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), P, i);
  10858. }, u;
  10859. }(), y;
  10860. }), C(o, "Core/Series/Point.js", [o["Core/Renderer/HTML/AST.js"], o["Core/Animation/AnimationUtilities.js"], o["Core/DefaultOptions.js"], o["Core/FormatUtilities.js"], o["Core/Utilities.js"]], function(y, N, _, U, G) {
  10861. var V = N.animObject, F = _.defaultOptions, B = U.format, j = G.addEvent, w = G.defined, x = G.erase, f = G.extend, l = G.fireEvent, T = G.getNestedProperty, O = G.isArray, R = G.isFunction, k = G.isNumber, b = G.isObject, S = G.merge, v = G.objectEach, h = G.pick, c = G.syncTimeout, u = G.removeEvent, i = G.uniqueKey;
  10862. return N = function() {
  10863. function p() {
  10864. this.colorIndex = this.category = void 0, this.formatPrefix = "point", this.id = void 0, this.isNull = !1, this.percentage = this.options = this.name = void 0, this.selected = !1, this.total = this.series = void 0, this.visible = !0, this.x = void 0;
  10865. }
  10866. return p.prototype.animateBeforeDestroy = function() {
  10867. var a = this, t = { x: a.startXPos, opacity: 0 }, s = a.getGraphicalProps();
  10868. s.singular.forEach(function(n) {
  10869. a[n] = a[n].animate(n === "dataLabel" ? { x: a[n].startXPos, y: a[n].startYPos, opacity: 0 } : t);
  10870. }), s.plural.forEach(function(n) {
  10871. a[n].forEach(function(P) {
  10872. P.element && P.animate(f({ x: a.startXPos }, P.startYPos ? { x: P.startXPos, y: P.startYPos } : {}));
  10873. });
  10874. });
  10875. }, p.prototype.applyOptions = function(a, t) {
  10876. var s = this.series, n = s.options.pointValKey || s.pointValKey;
  10877. return a = p.prototype.optionsToObject.call(this, a), f(this, a), this.options = this.options ? f(this.options, a) : a, a.group && delete this.group, a.dataLabels && delete this.dataLabels, n && (this.y = p.prototype.getNestedProperty.call(
  10878. this,
  10879. n
  10880. )), this.formatPrefix = (this.isNull = h(this.isValid && !this.isValid(), this.x === null || !k(this.y))) ? "null" : "point", this.selected && (this.state = "select"), "name" in this && typeof t > "u" && s.xAxis && s.xAxis.hasNames && (this.x = s.xAxis.nameToX(this)), typeof this.x > "u" && s ? this.x = typeof t > "u" ? s.autoIncrement() : t : k(a.x) && s.options.relativeXValue && (this.x = s.autoIncrement(a.x)), this;
  10881. }, p.prototype.destroy = function() {
  10882. function a() {
  10883. (t.graphic || t.dataLabel || t.dataLabels) && (u(t), t.destroyElements());
  10884. for (I in t)
  10885. t[I] = null;
  10886. }
  10887. var t = this, s = t.series, n = s.chart;
  10888. s = s.options.dataSorting;
  10889. var P = n.hoverPoints, D = V(t.series.chart.renderer.globalAnimation), I;
  10890. t.legendItem && n.legend.destroyItem(t), P && (t.setState(), x(P, t), P.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), s && s.enabled ? (this.animateBeforeDestroy(), c(a, D.duration)) : a(), n.pointCount--;
  10891. }, p.prototype.destroyElements = function(a) {
  10892. var t = this;
  10893. a = t.getGraphicalProps(a), a.singular.forEach(function(s) {
  10894. t[s] = t[s].destroy();
  10895. }), a.plural.forEach(function(s) {
  10896. t[s].forEach(function(n) {
  10897. n.element && n.destroy();
  10898. }), delete t[s];
  10899. });
  10900. }, p.prototype.firePointEvent = function(a, t, s) {
  10901. var n = this, P = this.series.options;
  10902. (P.point.events[a] || n.options && n.options.events && n.options.events[a]) && n.importEvents(), a === "click" && P.allowPointSelect && (s = function(D) {
  10903. n.select && n.select(null, D.ctrlKey || D.metaKey || D.shiftKey);
  10904. }), l(n, a, t, s);
  10905. }, p.prototype.getClassName = function() {
  10906. return "highcharts-point" + (this.selected ? " highcharts-point-select" : "") + (this.negative ? " highcharts-negative" : "") + (this.isNull ? " highcharts-null-point" : "") + (typeof this.colorIndex < "u" ? " highcharts-color-" + this.colorIndex : "") + (this.options.className ? " " + this.options.className : "") + (this.zone && this.zone.className ? " " + this.zone.className.replace("highcharts-negative", "") : "");
  10907. }, p.prototype.getGraphicalProps = function(a) {
  10908. var t = this, s = [], n = { singular: [], plural: [] }, P;
  10909. for (a = a || { graphic: 1, dataLabel: 1 }, a.graphic && s.push("graphic", "upperGraphic", "shadowGroup"), a.dataLabel && s.push("dataLabel", "dataLabelUpper", "connector"), P = s.length; P--; ) {
  10910. var D = s[P];
  10911. t[D] && n.singular.push(D);
  10912. }
  10913. return ["dataLabel", "connector"].forEach(function(I) {
  10914. var W = I + "s";
  10915. a[I] && t[W] && n.plural.push(W);
  10916. }), n;
  10917. }, p.prototype.getLabelConfig = function() {
  10918. 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 };
  10919. }, p.prototype.getNestedProperty = function(a) {
  10920. if (a)
  10921. return a.indexOf("custom.") === 0 ? T(a, this.options) : this[a];
  10922. }, p.prototype.getZone = function() {
  10923. var a = this.series, t = a.zones;
  10924. a = a.zoneAxis || "y";
  10925. var s, n = 0;
  10926. for (s = t[n]; this[a] >= s.value; )
  10927. s = t[++n];
  10928. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = s && s.color && !this.options.color ? s.color : this.nonZonedColor, s;
  10929. }, p.prototype.hasNewShapeType = function() {
  10930. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  10931. }, p.prototype.init = function(a, t, s) {
  10932. return this.series = a, this.applyOptions(t, s), this.id = w(this.id) ? this.id : i(), this.resolveColor(), a.chart.pointCount++, l(this, "afterInit"), this;
  10933. }, p.prototype.optionsToObject = function(a) {
  10934. var t = this.series, s = t.options.keys, n = s || t.pointArrayMap || ["y"], P = n.length, D = {}, I = 0, W = 0;
  10935. if (k(a) || a === null)
  10936. D[n[0]] = a;
  10937. else if (O(a))
  10938. for (!s && a.length > P && (t = typeof a[0], t === "string" ? D.name = a[0] : t === "number" && (D.x = a[0]), I++); W < P; )
  10939. s && typeof a[I] > "u" || (0 < n[W].indexOf(".") ? p.prototype.setNestedProperty(D, a[I], n[W]) : D[n[W]] = a[I]), I++, W++;
  10940. else
  10941. typeof a == "object" && (D = a, a.dataLabels && (t._hasPointLabels = !0), a.marker && (t._hasPointMarkers = !0));
  10942. return D;
  10943. }, p.prototype.resolveColor = function() {
  10944. var a = this.series, t = a.chart.styledMode, s = a.chart.options.chart.colorCount;
  10945. if (delete this.nonZonedColor, a.options.colorByPoint) {
  10946. if (!t) {
  10947. s = a.options.colors || a.chart.options.colors;
  10948. var n = s[a.colorCounter];
  10949. s = s.length;
  10950. }
  10951. t = a.colorCounter, a.colorCounter++, a.colorCounter === s && (a.colorCounter = 0);
  10952. } else
  10953. t || (n = a.color), t = a.colorIndex;
  10954. this.colorIndex = h(this.options.colorIndex, t), this.color = h(this.options.color, n);
  10955. }, p.prototype.setNestedProperty = function(a, t, s) {
  10956. return s.split(".").reduce(function(n, P, D, I) {
  10957. return n[P] = I.length - 1 === D ? t : b(n[P], !0) ? n[P] : {}, n[P];
  10958. }, a), a;
  10959. }, p.prototype.tooltipFormatter = function(a) {
  10960. var t = this.series, s = t.tooltipOptions, n = h(s.valueDecimals, ""), P = s.valuePrefix || "", D = s.valueSuffix || "";
  10961. return t.chart.styledMode && (a = t.chart.tooltip.styledModeFormat(a)), (t.pointArrayMap || ["y"]).forEach(function(I) {
  10962. I = "{point." + I, (P || D) && (a = a.replace(RegExp(I + "}", "g"), P + I + "}" + D)), a = a.replace(RegExp(I + "}", "g"), I + ":,." + n + "f}");
  10963. }), B(a, { point: this, series: this.series }, t.chart);
  10964. }, p.prototype.update = function(a, t, s, n) {
  10965. function P() {
  10966. D.applyOptions(a);
  10967. var m = W && D.hasDummyGraphic;
  10968. m = D.y === null ? !m : m, W && m && (D.graphic = W.destroy(), delete D.hasDummyGraphic), b(a, !0) && (W && W.element && a && a.marker && typeof a.marker.symbol < "u" && (D.graphic = W.destroy()), a && a.dataLabels && D.dataLabel && (D.dataLabel = D.dataLabel.destroy()), D.connector && (D.connector = D.connector.destroy())), g = D.index, I.updateParallelArrays(D, g), X.data[g] = b(X.data[g], !0) || b(a, !0) ? D.options : h(a, X.data[g]), I.isDirty = I.isDirtyData = !0, !I.fixedBox && I.hasCartesianSeries && (E.isDirtyBox = !0), X.legendType === "point" && (E.isDirtyLegend = !0), t && E.redraw(s);
  10969. }
  10970. var D = this, I = D.series, W = D.graphic, E = I.chart, X = I.options, g;
  10971. t = h(t, !0), n === !1 ? P() : D.firePointEvent("update", { options: a }, P);
  10972. }, p.prototype.remove = function(a, t) {
  10973. this.series.removePoint(this.series.data.indexOf(this), a, t);
  10974. }, p.prototype.select = function(a, t) {
  10975. var s = this, n = s.series, P = n.chart;
  10976. this.selectedStaging = a = h(a, !s.selected), s.firePointEvent(a ? "select" : "unselect", { accumulate: t }, function() {
  10977. s.selected = s.options.selected = a, n.options.data[n.data.indexOf(s)] = s.options, s.setState(a && "select"), t || P.getSelectedPoints().forEach(function(D) {
  10978. var I = D.series;
  10979. D.selected && D !== s && (D.selected = D.options.selected = !1, I.options.data[I.data.indexOf(D)] = D.options, D.setState(P.hoverPoints && I.options.inactiveOtherPoints ? "inactive" : ""), D.firePointEvent("unselect"));
  10980. });
  10981. }), delete this.selectedStaging;
  10982. }, p.prototype.onMouseOver = function(a) {
  10983. var t = this.series.chart, s = t.pointer;
  10984. a = a ? s.normalize(a) : s.getChartCoordinatesFromPoint(this, t.inverted), s.runPointActions(
  10985. a,
  10986. this
  10987. );
  10988. }, p.prototype.onMouseOut = function() {
  10989. var a = this.series.chart;
  10990. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (a.hoverPoints || []).forEach(function(t) {
  10991. t.setState();
  10992. }), a.hoverPoints = a.hoverPoint = null;
  10993. }, p.prototype.importEvents = function() {
  10994. if (!this.hasImportedEvents) {
  10995. var a = this, t = S(a.series.options.point, a.options).events;
  10996. a.events = t, v(t, function(s, n) {
  10997. R(s) && j(a, n, s);
  10998. }), this.hasImportedEvents = !0;
  10999. }
  11000. }, p.prototype.setState = function(a, t) {
  11001. var s = this.series, n = this.state, P = s.options.states[a || "normal"] || {}, D = F.plotOptions[s.type].marker && s.options.marker, I = D && D.enabled === !1, W = D && D.states && D.states[a || "normal"] || {}, E = W.enabled === !1, X = this.marker || {}, g = s.chart, m = D && s.markerAttribs, L = s.halo, z, $ = s.stateMarkerGraphic;
  11002. if (a = a || "", !(a === this.state && !t || this.selected && a !== "select" || P.enabled === !1 || a && (E || I && W.enabled === !1) || a && X.states && X.states[a] && X.states[a].enabled === !1)) {
  11003. if (this.state = a, m && (z = s.markerAttribs(this, a)), this.graphic && !this.hasDummyGraphic) {
  11004. if (n && this.graphic.removeClass("highcharts-point-" + n), a && this.graphic.addClass("highcharts-point-" + a), !g.styledMode) {
  11005. var Q = s.pointAttribs(this, a), A = h(g.options.chart.animation, P.animation);
  11006. s.options.inactiveOtherPoints && k(Q.opacity) && ((this.dataLabels || []).forEach(function(H) {
  11007. H && H.animate({ opacity: Q.opacity }, A);
  11008. }), this.connector && this.connector.animate({ opacity: Q.opacity }, A)), this.graphic.animate(Q, A);
  11009. }
  11010. z && this.graphic.animate(z, h(g.options.chart.animation, W.animation, D.animation)), $ && $.hide();
  11011. } else
  11012. a && W && (n = X.symbol || s.symbol, $ && $.currentSymbol !== n && ($ = $.destroy()), z && ($ ? $[t ? "animate" : "attr"]({ x: z.x, y: z.y }) : n && (s.stateMarkerGraphic = $ = g.renderer.symbol(n, z.x, z.y, z.width, z.height).add(s.markerGroup), $.currentSymbol = n)), !g.styledMode && $ && this.state !== "inactive" && $.attr(s.pointAttribs(this, a))), $ && ($[a && this.isInside ? "show" : "hide"](), $.element.point = this, $.addClass(this.getClassName(), !0));
  11013. P = P.halo, z = ($ = this.graphic || $) && $.visibility || "inherit", P && P.size && $ && z !== "hidden" && !this.isCluster ? (L || (s.halo = L = g.renderer.path().add($.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(P.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + h(this.colorIndex, s.colorIndex) + (this.className ? " " + this.className : ""), visibility: z, zIndex: -1 }), L.point = this, g.styledMode || L.attr(f({ fill: this.color || s.color, "fill-opacity": P.opacity }, y.filterUserAttributes(P.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), l(this, "afterSetState", { state: a });
  11014. }
  11015. }, p.prototype.haloPath = function(a) {
  11016. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - a, this.plotY - a, 2 * a, 2 * a);
  11017. }, p;
  11018. }(), N;
  11019. }), C(o, "Core/Pointer.js", [o["Core/Color/Color.js"], o["Core/Globals.js"], o["Core/Tooltip.js"], o["Core/Utilities.js"]], function(y, N, _, U) {
  11020. var G = y.parse, V = N.charts, F = N.noop, B = U.addEvent, j = U.attr, w = U.css, x = U.defined, f = U.extend, l = U.find, T = U.fireEvent, O = U.isNumber, R = U.isObject, k = U.objectEach, b = U.offset, S = U.pick, v = U.splat;
  11021. return y = function() {
  11022. function h(c, u) {
  11023. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = u, this.init(c, u);
  11024. }
  11025. return h.prototype.applyInactiveState = function(c) {
  11026. var u = [], i;
  11027. (c || []).forEach(function(p) {
  11028. i = p.series, u.push(i), i.linkedParent && u.push(i.linkedParent), i.linkedSeries && (u = u.concat(i.linkedSeries)), i.navigatorSeries && u.push(i.navigatorSeries);
  11029. }), this.chart.series.forEach(function(p) {
  11030. u.indexOf(p) === -1 ? p.setState("inactive", !0) : p.options.inactiveOtherPoints && p.setAllPointsToState("inactive");
  11031. });
  11032. }, h.prototype.destroy = function() {
  11033. var c = this;
  11034. this.eventsToUnbind.forEach(function(u) {
  11035. return u();
  11036. }), this.eventsToUnbind = [], N.chartCount || (h.unbindDocumentMouseUp && (h.unbindDocumentMouseUp = h.unbindDocumentMouseUp()), h.unbindDocumentTouchEnd && (h.unbindDocumentTouchEnd = h.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), k(c, function(u, i) {
  11037. c[i] = void 0;
  11038. });
  11039. }, h.prototype.drag = function(c) {
  11040. var u = this.chart, i = u.options.chart, p = this.zoomHor, a = this.zoomVert, t = u.plotLeft, s = u.plotTop, n = u.plotWidth, P = u.plotHeight, D = this.mouseDownX || 0, I = this.mouseDownY || 0, W = R(i.panning) ? i.panning && i.panning.enabled : i.panning, E = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  11041. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < s ? g = s : g > s + P && (g = s + P), this.hasDragged = Math.sqrt(Math.pow(D - X, 2) + Math.pow(I - g, 2)), 10 < this.hasDragged)) {
  11042. var L = u.isInsidePlot(D - t, I - s, { visiblePlotOnly: !0 });
  11043. !u.hasCartesianSeries && !u.mapView || !this.zoomX && !this.zoomY || !L || E || m || (this.selectionMarker = m = u.renderer.rect(t, s, p ? 1 : n, a ? 1 : P, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), u.styledMode || m.attr({ fill: i.selectionMarkerFill || G("#335cad").setOpacity(0.25).get() })), m && p && (p = X - D, m.attr({ width: Math.abs(p), x: (0 < p ? 0 : p) + D })), m && a && (p = g - I, m.attr({ height: Math.abs(p), y: (0 < p ? 0 : p) + I })), L && !m && W && u.pan(c, i.panning);
  11044. }
  11045. }, h.prototype.dragStart = function(c) {
  11046. var u = this.chart;
  11047. u.mouseIsDown = c.type, u.cancelClick = !1, u.mouseDownX = this.mouseDownX = c.chartX, u.mouseDownY = this.mouseDownY = c.chartY;
  11048. }, h.prototype.drop = function(c) {
  11049. var u = this, i = this.chart, p = this.hasPinched;
  11050. if (this.selectionMarker) {
  11051. var a = this.selectionMarker, t = a.attr ? a.attr("x") : a.x, s = a.attr ? a.attr("y") : a.y, n = a.attr ? a.attr("width") : a.width, P = a.attr ? a.attr("height") : a.height, D = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: s, width: n, height: P }, I = !!i.mapView;
  11052. (this.hasDragged || p) && (i.axes.forEach(function(W) {
  11053. if (W.zoomEnabled && x(W.min) && (p || u[{ xAxis: "zoomX", yAxis: "zoomY" }[W.coll]]) && O(t) && O(s)) {
  11054. var E = W.horiz, X = c.type === "touchend" ? W.minPixelPadding : 0, g = W.toValue((E ? t : s) + X);
  11055. E = W.toValue((E ? t + n : s + P) - X), D[W.coll].push({ axis: W, min: Math.min(g, E), max: Math.max(g, E) }), I = !0;
  11056. }
  11057. }), I && T(i, "selection", D, function(W) {
  11058. i.zoom(f(
  11059. W,
  11060. p ? { animation: !1 } : null
  11061. ));
  11062. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), p && this.scaleGroups();
  11063. }
  11064. i && O(i.index) && (w(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  11065. }, h.prototype.findNearestKDPoint = function(c, u, i) {
  11066. var p = this.chart, a = p.hoverPoint;
  11067. if (p = p.tooltip, a && p && p.isStickyOnContact())
  11068. return a;
  11069. var t;
  11070. return c.forEach(function(s) {
  11071. var n = !(s.noSharedTooltip && u) && 0 > s.options.findNearestPointBy.indexOf("y");
  11072. if (s = s.searchPoint(i, n), (n = R(s, !0) && s.series) && !(n = !R(t, !0))) {
  11073. n = t.distX - s.distX;
  11074. var P = t.dist - s.dist, D = (s.series.group && s.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  11075. n = 0 < (n !== 0 && u ? n : P !== 0 ? P : D !== 0 ? D : t.series.index > s.series.index ? -1 : 1);
  11076. }
  11077. n && (t = s);
  11078. }), t;
  11079. }, h.prototype.getChartCoordinatesFromPoint = function(c, u) {
  11080. var i = c.series, p = i.xAxis;
  11081. i = i.yAxis;
  11082. var a = c.shapeArgs;
  11083. if (p && i) {
  11084. var t = S(c.clientX, c.plotX), s = c.plotY || 0;
  11085. return c.isNode && a && O(a.x) && O(a.y) && (t = a.x, s = a.y), u ? { chartX: i.len + i.pos - s, chartY: p.len + p.pos - t } : { chartX: t + p.pos, chartY: s + i.pos };
  11086. }
  11087. if (a && a.x && a.y)
  11088. return { chartX: a.x, chartY: a.y };
  11089. }, h.prototype.getChartPosition = function() {
  11090. if (this.chartPosition)
  11091. return this.chartPosition;
  11092. var c = this.chart.container, u = b(c);
  11093. this.chartPosition = { left: u.left, top: u.top, scaleX: 1, scaleY: 1 };
  11094. var i = c.offsetWidth;
  11095. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = u.width / i, this.chartPosition.scaleY = u.height / c), this.chartPosition;
  11096. }, h.prototype.getCoordinates = function(c) {
  11097. var u = { xAxis: [], yAxis: [] };
  11098. return this.chart.axes.forEach(function(i) {
  11099. u[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  11100. }), u;
  11101. }, h.prototype.getHoverData = function(c, u, i, p, a, t) {
  11102. var s = [];
  11103. p = !(!p || !c);
  11104. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: a };
  11105. T(this, "beforeGetHoverData", n);
  11106. var P = u && !u.stickyTracking ? [u] : i.filter(function(I) {
  11107. return n.filter ? n.filter(I) : I.visible && !(!a && I.directTouch) && S(I.options.enableMouseTracking, !0) && I.stickyTracking;
  11108. }), D = p || !t ? c : this.findNearestKDPoint(P, a, t);
  11109. return u = D && D.series, D && (a && !u.noSharedTooltip ? (P = i.filter(function(I) {
  11110. return n.filter ? n.filter(I) : I.visible && !(!a && I.directTouch) && S(I.options.enableMouseTracking, !0) && !I.noSharedTooltip;
  11111. }), P.forEach(function(I) {
  11112. var W = l(I.points, function(E) {
  11113. return E.x === D.x && !E.isNull;
  11114. });
  11115. R(W) && (I.chart.isBoosting && (W = I.getPoint(W)), s.push(W));
  11116. })) : s.push(D)), n = { hoverPoint: D }, T(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: u, hoverPoints: s };
  11117. }, h.prototype.getPointFromEvent = function(c) {
  11118. c = c.target;
  11119. for (var u; c && !u; )
  11120. u = c.point, c = c.parentNode;
  11121. return u;
  11122. }, h.prototype.onTrackerMouseOut = function(c) {
  11123. c = c.relatedTarget || c.toElement;
  11124. var u = this.chart.hoverSeries;
  11125. this.isDirectTouch = !1, !u || !c || u.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + u.index) && this.inClass(c, "highcharts-tracker") || u.onMouseOut();
  11126. }, h.prototype.inClass = function(c, u) {
  11127. for (var i; c; ) {
  11128. if (i = j(c, "class")) {
  11129. if (i.indexOf(u) !== -1)
  11130. return !0;
  11131. if (i.indexOf("highcharts-container") !== -1)
  11132. return !1;
  11133. }
  11134. c = c.parentNode;
  11135. }
  11136. }, h.prototype.init = function(c, u) {
  11137. this.options = u, this.chart = c, this.runChartClick = !(!u.chart.events || !u.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, _ && (c.tooltip = new _(c, u.tooltip), this.followTouchMove = S(u.tooltip.followTouchMove, !0)), this.setDOMEvents();
  11138. }, h.prototype.normalize = function(c, u) {
  11139. var i = c.touches, p = i ? i.length ? i.item(0) : S(i.changedTouches, c.changedTouches)[0] : c;
  11140. return u || (u = this.getChartPosition()), i = p.pageX - u.left, p = p.pageY - u.top, i /= u.scaleX, p /= u.scaleY, f(c, { chartX: Math.round(i), chartY: Math.round(p) });
  11141. }, h.prototype.onContainerClick = function(c) {
  11142. var u = this.chart, i = u.hoverPoint;
  11143. c = this.normalize(c);
  11144. var p = u.plotLeft, a = u.plotTop;
  11145. u.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (T(i.series, "click", f(c, { point: i })), u.hoverPoint && i.firePointEvent("click", c)) : (f(c, this.getCoordinates(c)), u.isInsidePlot(c.chartX - p, c.chartY - a, { visiblePlotOnly: !0 }) && T(u, "click", c)));
  11146. }, h.prototype.onContainerMouseDown = function(c) {
  11147. var u = ((c.buttons || c.button) & 1) === 1;
  11148. c = this.normalize(c), N.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || u) && (this.zoomOption(c), u && c.preventDefault && c.preventDefault(), this.dragStart(c));
  11149. }, h.prototype.onContainerMouseLeave = function(c) {
  11150. var u = V[S(h.hoverChartIndex, -1)], i = this.chart.tooltip;
  11151. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), u && (c.relatedTarget || c.toElement) && (u.pointer.reset(), u.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  11152. }, h.prototype.onContainerMouseEnter = function(c) {
  11153. delete this.chartPosition;
  11154. }, h.prototype.onContainerMouseMove = function(c) {
  11155. var u = this.chart;
  11156. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (u.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), u.openMenu || !this.inClass(c.target, "highcharts-tracker") && !u.isInsidePlot(c.chartX - u.plotLeft, c.chartY - u.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  11157. }, h.prototype.onDocumentTouchEnd = function(c) {
  11158. var u = V[S(
  11159. h.hoverChartIndex,
  11160. -1
  11161. )];
  11162. u && u.pointer.drop(c);
  11163. }, h.prototype.onContainerTouchMove = function(c) {
  11164. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  11165. }, h.prototype.onContainerTouchStart = function(c) {
  11166. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  11167. }, h.prototype.onDocumentMouseMove = function(c) {
  11168. var u = this.chart, i = this.chartPosition;
  11169. c = this.normalize(c, i);
  11170. var p = u.tooltip;
  11171. !i || p && p.isStickyOnContact() || u.isInsidePlot(c.chartX - u.plotLeft, c.chartY - u.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  11172. }, h.prototype.onDocumentMouseUp = function(c) {
  11173. var u = V[S(h.hoverChartIndex, -1)];
  11174. u && u.pointer.drop(c);
  11175. }, h.prototype.pinch = function(c) {
  11176. var u = this, i = u.chart, p = u.pinchDown, a = c.touches || [], t = a.length, s = u.lastValidTouch, n = u.hasZoom, P = {}, D = t === 1 && (u.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || u.runChartClick), I = {}, W = u.selectionMarker;
  11177. 1 < t ? u.initiated = !0 : t === 1 && this.followTouchMove && (u.initiated = !1), n && u.initiated && !D && c.cancelable !== !1 && c.preventDefault(), [].map.call(a, function(E) {
  11178. return u.normalize(E);
  11179. }), c.type === "touchstart" ? ([].forEach.call(a, function(E, X) {
  11180. p[X] = { chartX: E.chartX, chartY: E.chartY };
  11181. }), s.x = [p[0].chartX, p[1] && p[1].chartX], s.y = [p[0].chartY, p[1] && p[1].chartY], i.axes.forEach(function(E) {
  11182. if (E.zoomEnabled) {
  11183. var X = i.bounds[E.horiz ? "h" : "v"], g = E.minPixelPadding, m = E.toPixels(Math.min(S(E.options.min, E.dataMin), E.dataMin)), L = E.toPixels(Math.max(S(E.options.max, E.dataMax), E.dataMax)), z = Math.max(m, L);
  11184. X.min = Math.min(E.pos, Math.min(
  11185. m,
  11186. L
  11187. ) - g), X.max = Math.max(E.pos + E.len, z + g);
  11188. }
  11189. }), u.res = !0) : u.followTouchMove && t === 1 ? this.runPointActions(u.normalize(c)) : p.length && (T(i, "touchpan", { originalEvent: c }, function() {
  11190. W || (u.selectionMarker = W = f({ destroy: F, touch: !0 }, i.plotBox)), u.pinchTranslate(p, a, P, W, I, s), u.hasPinched = n, u.scaleGroups(P, I);
  11191. }), u.res && (u.res = !1, this.reset(!1, 0)));
  11192. }, h.prototype.pinchTranslate = function(c, u, i, p, a, t) {
  11193. this.zoomHor && this.pinchTranslateDirection(!0, c, u, i, p, a, t), this.zoomVert && this.pinchTranslateDirection(!1, c, u, i, p, a, t);
  11194. }, h.prototype.pinchTranslateDirection = function(c, u, i, p, a, t, s, n) {
  11195. var P = this.chart, D = c ? "x" : "y", I = c ? "X" : "Y", W = "chart" + I, E = c ? "width" : "height", X = P["plot" + (c ? "Left" : "Top")], g = P.inverted, m = P.bounds[c ? "h" : "v"], L = u.length === 1, z = u[0][W], $ = !L && u[1][W];
  11196. u = function() {
  11197. typeof Z == "number" && 20 < Math.abs(z - $) && (H = n || Math.abs(Y - Z) / Math.abs(z - $)), A = (X - Y) / H + z, Q = P["plot" + (c ? "Width" : "Height")] / H;
  11198. };
  11199. var Q, A, H = n || 1, Y = i[0][W], Z = !L && i[1][W];
  11200. if (u(), i = A, i < m.min) {
  11201. i = m.min;
  11202. var q = !0;
  11203. } else
  11204. i + Q > m.max && (i = m.max - Q, q = !0);
  11205. q ? (Y -= 0.8 * (Y - s[D][0]), typeof Z == "number" && (Z -= 0.8 * (Z - s[D][1])), u()) : s[D] = [Y, Z], g || (t[D] = A - X, t[E] = Q), t = g ? 1 / H : H, a[E] = Q, a[D] = i, p[g ? c ? "scaleY" : "scaleX" : "scale" + I] = H, p["translate" + I] = t * X + (Y - t * z);
  11206. }, h.prototype.reset = function(c, u) {
  11207. var i = this.chart, p = i.hoverSeries, a = i.hoverPoint, t = i.hoverPoints, s = i.tooltip, n = s && s.shared ? t : a;
  11208. c && n && v(n).forEach(function(P) {
  11209. P.series.isCartesian && typeof P.plotX > "u" && (c = !1);
  11210. }), c ? s && n && v(n).length && (s.refresh(n), s.shared && t ? t.forEach(function(P) {
  11211. P.setState(P.state, !0), P.series.isCartesian && (P.series.xAxis.crosshair && P.series.xAxis.drawCrosshair(
  11212. null,
  11213. P
  11214. ), P.series.yAxis.crosshair && P.series.yAxis.drawCrosshair(null, P));
  11215. }) : a && (a.setState(a.state, !0), i.axes.forEach(function(P) {
  11216. P.crosshair && a.series[P.coll] === P && P.drawCrosshair(null, a);
  11217. }))) : (a && a.onMouseOut(), t && t.forEach(function(P) {
  11218. P.setState();
  11219. }), p && p.onMouseOut(), s && s.hide(u), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(P) {
  11220. P.hideCrosshair();
  11221. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  11222. }, h.prototype.runPointActions = function(c, u) {
  11223. var i = this.chart, p = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, a = p ? p.shared : !1, t = u || i.hoverPoint, s = t && t.series || i.hoverSeries;
  11224. u = this.getHoverData(t, s, i.series, (!c || c.type !== "touchmove") && (!!u || s && s.directTouch && this.isDirectTouch), a, c), t = u.hoverPoint, s = u.hoverSeries;
  11225. var n = u.hoverPoints;
  11226. if (u = s && s.tooltipOptions.followPointer && !s.tooltipOptions.split, a = a && s && !s.noSharedTooltip, t && (t !== i.hoverPoint || p && p.isHidden)) {
  11227. if ((i.hoverPoints || []).forEach(function(P) {
  11228. n.indexOf(P) === -1 && P.setState();
  11229. }), i.hoverSeries !== s && s.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(P) {
  11230. P.setState("hover");
  11231. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  11232. return;
  11233. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), p && p.refresh(a ? n : t, c);
  11234. } else
  11235. u && p && !p.isHidden && (t = p.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && p.updatePosition({ plotX: t[0], plotY: t[1] }));
  11236. this.unDocMouseMove || (this.unDocMouseMove = B(i.container.ownerDocument, "mousemove", function(P) {
  11237. var D = V[h.hoverChartIndex];
  11238. D && D.pointer.onDocumentMouseMove(P);
  11239. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(P) {
  11240. var D = S((P.crosshair || {}).snap, !0), I;
  11241. D && ((I = i.hoverPoint) && I.series[P.coll] === P || (I = l(n, function(W) {
  11242. return W.series[P.coll] === P;
  11243. }))), I || !D ? P.drawCrosshair(c, I) : P.hideCrosshair();
  11244. });
  11245. }, h.prototype.scaleGroups = function(c, u) {
  11246. var i = this.chart;
  11247. i.series.forEach(function(p) {
  11248. var a = c || p.getPlotBox();
  11249. p.group && (p.xAxis && p.xAxis.zoomEnabled || i.mapView) && (p.group.attr(a), p.markerGroup && (p.markerGroup.attr(a), p.markerGroup.clip(u ? i.clipRect : null)), p.dataLabelsGroup && p.dataLabelsGroup.attr(a));
  11250. }), i.clipRect.attr(u || i.clipBox);
  11251. }, h.prototype.setDOMEvents = function() {
  11252. var c = this, u = this.chart.container, i = u.ownerDocument;
  11253. u.onmousedown = this.onContainerMouseDown.bind(this), u.onmousemove = this.onContainerMouseMove.bind(this), u.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(B(u, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(B(u, "mouseleave", this.onContainerMouseLeave.bind(this))), h.unbindDocumentMouseUp || (h.unbindDocumentMouseUp = B(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  11254. for (var p = this.chart.renderTo.parentElement; p && p.tagName !== "BODY"; )
  11255. this.eventsToUnbind.push(B(p, "scroll", function() {
  11256. delete c.chartPosition;
  11257. })), p = p.parentElement;
  11258. N.hasTouch && (this.eventsToUnbind.push(B(u, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(B(u, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), h.unbindDocumentTouchEnd || (h.unbindDocumentTouchEnd = B(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  11259. }, h.prototype.setHoverChartIndex = function() {
  11260. var c = this.chart, u = N.charts[S(h.hoverChartIndex, -1)];
  11261. u && u !== c && u.pointer.onContainerMouseLeave({ relatedTarget: !0 }), u && u.mouseIsDown || (h.hoverChartIndex = c.index);
  11262. }, h.prototype.touch = function(c, u) {
  11263. var i = this.chart;
  11264. if (this.setHoverChartIndex(), c.touches.length === 1)
  11265. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  11266. if (u && this.runPointActions(c), c.type === "touchmove") {
  11267. u = this.pinchDown;
  11268. var p = u[0] ? 4 <= Math.sqrt(Math.pow(u[0].chartX - c.chartX, 2) + Math.pow(u[0].chartY - c.chartY, 2)) : !1;
  11269. }
  11270. S(p, !0) && this.pinch(c);
  11271. } else
  11272. u && this.reset();
  11273. else
  11274. c.touches.length === 2 && this.pinch(c);
  11275. }, h.prototype.touchSelect = function(c) {
  11276. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  11277. }, h.prototype.zoomOption = function(c) {
  11278. var u = this.chart, i = u.options.chart;
  11279. u = u.inverted;
  11280. var p = i.zoomType || "";
  11281. /touch/.test(c.type) && (p = S(i.pinchType, p)), this.zoomX = c = /x/.test(p), this.zoomY = i = /y/.test(p), this.zoomHor = c && !u || i && u, this.zoomVert = i && !u || c && u, this.hasZoom = c || i;
  11282. }, h;
  11283. }(), y;
  11284. }), C(o, "Core/MSPointer.js", [o["Core/Globals.js"], o["Core/Pointer.js"], o["Core/Utilities.js"]], function(y, N, _) {
  11285. function U() {
  11286. var k = [];
  11287. return k.item = function(b) {
  11288. return this[b];
  11289. }, l(O, function(b) {
  11290. k.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  11291. }), k;
  11292. }
  11293. function G(k, b, S, v) {
  11294. var h = F[N.hoverChartIndex || NaN];
  11295. k.pointerType !== "touch" && k.pointerType !== k.MSPOINTER_TYPE_TOUCH || !h || (h = h.pointer, v(k), h[b]({ type: S, target: k.currentTarget, preventDefault: j, touches: U() }));
  11296. }
  11297. var V = this && this.__extends || function() {
  11298. var k = function(b, S) {
  11299. return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, h) {
  11300. v.__proto__ = h;
  11301. } || function(v, h) {
  11302. for (var c in h)
  11303. h.hasOwnProperty(c) && (v[c] = h[c]);
  11304. }, k(b, S);
  11305. };
  11306. return function(b, S) {
  11307. function v() {
  11308. this.constructor = b;
  11309. }
  11310. k(b, S), b.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  11311. };
  11312. }(), F = y.charts, B = y.doc, j = y.noop, w = y.win, x = _.addEvent, f = _.css, l = _.objectEach, T = _.removeEvent, O = {}, R = !!w.PointerEvent;
  11313. return function(k) {
  11314. function b() {
  11315. return k !== null && k.apply(this, arguments) || this;
  11316. }
  11317. return V(b, k), b.isRequired = function() {
  11318. return !(y.hasTouch || !w.PointerEvent && !w.MSPointerEvent);
  11319. }, b.prototype.batchMSEvents = function(S) {
  11320. S(this.chart.container, R ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), S(this.chart.container, R ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), S(B, R ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  11321. }, b.prototype.destroy = function() {
  11322. this.batchMSEvents(T), k.prototype.destroy.call(this);
  11323. }, b.prototype.init = function(S, v) {
  11324. k.prototype.init.call(this, S, v), this.hasZoom && f(S.container, { "-ms-touch-action": "none", "touch-action": "none" });
  11325. }, b.prototype.onContainerPointerDown = function(S) {
  11326. G(S, "onContainerTouchStart", "touchstart", function(v) {
  11327. O[v.pointerId] = { pageX: v.pageX, pageY: v.pageY, target: v.currentTarget };
  11328. });
  11329. }, b.prototype.onContainerPointerMove = function(S) {
  11330. G(S, "onContainerTouchMove", "touchmove", function(v) {
  11331. O[v.pointerId] = {
  11332. pageX: v.pageX,
  11333. pageY: v.pageY
  11334. }, O[v.pointerId].target || (O[v.pointerId].target = v.currentTarget);
  11335. });
  11336. }, b.prototype.onDocumentPointerUp = function(S) {
  11337. G(S, "onDocumentTouchEnd", "touchend", function(v) {
  11338. delete O[v.pointerId];
  11339. });
  11340. }, b.prototype.setDOMEvents = function() {
  11341. k.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(x);
  11342. }, b;
  11343. }(N);
  11344. }), C(o, "Core/Legend/Legend.js", [
  11345. o["Core/Animation/AnimationUtilities.js"],
  11346. o["Core/FormatUtilities.js"],
  11347. o["Core/Globals.js"],
  11348. o["Core/Series/Point.js"],
  11349. o["Core/Renderer/RendererUtilities.js"],
  11350. o["Core/Utilities.js"]
  11351. ], function(y, N, _, U, G, V) {
  11352. var F = y.animObject, B = y.setAnimation, j = N.format;
  11353. y = _.isFirefox;
  11354. var w = _.marginNames;
  11355. _ = _.win;
  11356. var x = G.distribute, f = V.addEvent, l = V.createElement, T = V.css, O = V.defined, R = V.discardElement, k = V.find, b = V.fireEvent, S = V.isNumber, v = V.merge, h = V.pick, c = V.relativeLength, u = V.stableSort, i = V.syncTimeout;
  11357. return G = V.wrap, V = function() {
  11358. function p(a, t) {
  11359. this.allItems = [], this.contentGroup = this.box = void 0, this.display = !1, 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 = {}, this.padding = 0, this.pages = [], this.proximate = !1, this.scrollGroup = void 0, this.widthOption = this.totalItemWidth = this.titleHeight = this.symbolWidth = this.symbolHeight = 0, this.chart = a, this.init(a, t);
  11360. }
  11361. return p.prototype.init = function(a, t) {
  11362. this.chart = a, this.setOptions(t), t.enabled && (this.render(), f(this.chart, "endResize", function() {
  11363. this.legend.positionCheckboxes();
  11364. }), this.proximate ? this.unchartrender = f(this.chart, "render", function() {
  11365. this.legend.proximatePositions(), this.legend.positionItems();
  11366. }) : this.unchartrender && this.unchartrender());
  11367. }, p.prototype.setOptions = function(a) {
  11368. var t = h(a.padding, 8);
  11369. this.options = a, this.chart.styledMode || (this.itemStyle = a.itemStyle, this.itemHiddenStyle = v(this.itemStyle, a.itemHiddenStyle)), this.itemMarginTop = a.itemMarginTop || 0, this.itemMarginBottom = a.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = h(
  11370. a.symbolWidth,
  11371. 16
  11372. ), this.pages = [], this.proximate = a.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  11373. }, p.prototype.update = function(a, t) {
  11374. var s = this.chart;
  11375. this.setOptions(v(!0, this.options, a)), this.destroy(), s.isDirtyLegend = s.isDirtyBox = !0, h(t, !0) && s.redraw(), b(this, "afterUpdate");
  11376. }, p.prototype.colorizeItem = function(a, t) {
  11377. if (a.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  11378. var s = this.options, n = a.legendItem, P = a.legendLine, D = a.legendSymbol, I = this.itemHiddenStyle.color;
  11379. s = t ? s.itemStyle.color : I;
  11380. var W = t && a.color || I, E = a.options && a.options.marker, X = { fill: W };
  11381. n && n.css({ fill: s, color: s }), P && P.attr({ stroke: W }), D && (E && D.isMarker && (X = a.pointAttribs(), t || (X.stroke = X.fill = I)), D.attr(X));
  11382. }
  11383. b(this, "afterColorizeItem", { item: a, visible: t });
  11384. }, p.prototype.positionItems = function() {
  11385. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  11386. }, p.prototype.positionItem = function(a) {
  11387. var t = this, s = this.options, n = s.symbolPadding, P = !s.rtl, D = a._legendItemPos;
  11388. s = D[0], D = D[1];
  11389. var I = a.checkbox, W = a.legendGroup;
  11390. W && W.element && (n = { translateX: P ? s : this.legendWidth - s - 2 * n - 4, translateY: D }, P = function() {
  11391. b(t, "afterPositionItem", { item: a });
  11392. }, O(W.translateY) ? W.animate(n, void 0, P) : (W.attr(n), P())), I && (I.x = s, I.y = D);
  11393. }, p.prototype.destroyItem = function(a) {
  11394. var t = a.checkbox;
  11395. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(s) {
  11396. a[s] && (a[s] = a[s].destroy());
  11397. }), t && R(a.checkbox);
  11398. }, p.prototype.destroy = function() {
  11399. function a(t) {
  11400. this[t] && (this[t] = this[t].destroy());
  11401. }
  11402. this.getAllItems().forEach(function(t) {
  11403. [
  11404. "legendItem",
  11405. "legendGroup"
  11406. ].forEach(a, t);
  11407. }), "clipRect up down pager nav box title group".split(" ").forEach(a, this), this.display = null;
  11408. }, p.prototype.positionCheckboxes = function() {
  11409. var a = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, s = this.titleHeight;
  11410. if (a) {
  11411. var n = a.translateY;
  11412. this.allItems.forEach(function(P) {
  11413. var D = P.checkbox;
  11414. if (D) {
  11415. var I = n + s + D.y + (this.scrollOffset || 0) + 3;
  11416. T(D, { left: a.translateX + P.checkboxOffset + D.x - 20 + "px", top: I + "px", display: this.proximate || I > n - 6 && I < n + t - 6 ? "" : "none" });
  11417. }
  11418. }, this);
  11419. }
  11420. }, p.prototype.renderTitle = function() {
  11421. var a = this.options, t = this.padding, s = a.title, n = 0;
  11422. s.text && (this.title || (this.title = this.chart.renderer.label(s.text, t - 3, t - 4, null, null, null, a.useHTML, null, "legend-title").attr({ zIndex: 1 }), this.chart.styledMode || this.title.css(s.style), this.title.add(this.group)), s.width || this.title.css({ width: this.maxLegendWidth + "px" }), a = this.title.getBBox(), n = a.height, this.offsetWidth = a.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  11423. }, p.prototype.setText = function(a) {
  11424. var t = this.options;
  11425. a.legendItem.attr({ text: t.labelFormat ? j(t.labelFormat, a, this.chart) : t.labelFormatter.call(a) });
  11426. }, p.prototype.renderItem = function(a) {
  11427. var t = this.chart, s = t.renderer, n = this.options, P = this.symbolWidth, D = n.symbolPadding || 0, I = this.itemStyle, W = this.itemHiddenStyle, E = n.layout === "horizontal" ? h(n.itemDistance, 20) : 0, X = !n.rtl, g = !a.series, m = !g && a.series.drawLegendSymbol ? a.series : a, L = m.options, z = this.createCheckboxForItem && L && L.showCheckbox, $ = n.useHTML, Q = a.options.className, A = a.legendItem;
  11428. L = P + D + E + (z ? 20 : 0), A || (a.legendGroup = s.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + a.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + a.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), a.legendItem = A = s.text("", X ? P + D : -D, this.baseline || 0, $), t.styledMode || A.css(v(a.visible ? I : W)), A.attr({ align: X ? "left" : "right", zIndex: 2 }).add(a.legendGroup), this.baseline || (this.fontMetrics = s.fontMetrics(t.styledMode ? 12 : I.fontSize, A), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, A.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = h(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + D + E + (z ? 20 : 0), X && A.attr("x", this.symbolWidth + D))), m.drawLegendSymbol(this, a), this.setItemEvents && this.setItemEvents(a, A, $)), z && !a.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(a), this.colorizeItem(a, a.visible), !t.styledMode && I.width || A.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(a), t = A.getBBox(), s = this.fontMetrics && this.fontMetrics.h || 0, a.itemWidth = a.checkboxOffset = n.itemWidth || a.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, a.itemWidth), this.totalItemWidth += a.itemWidth, this.itemHeight = a.itemHeight = Math.round(a.legendItemHeight || (t.height > 1.5 * s ? t.height : s));
  11429. }, p.prototype.layoutItem = function(a) {
  11430. var t = this.options, s = this.padding, n = t.layout === "horizontal", P = a.itemHeight, D = this.itemMarginBottom, I = this.itemMarginTop, W = n ? h(t.itemDistance, 20) : 0, E = this.maxLegendWidth;
  11431. t = t.alignColumns && this.totalItemWidth > E ? this.maxItemWidth : a.itemWidth, n && this.itemX - s + t > E && (this.itemX = s, this.lastLineHeight && (this.itemY += I + this.lastLineHeight + D), this.lastLineHeight = 0), this.lastItemY = I + this.itemY + D, this.lastLineHeight = Math.max(P, this.lastLineHeight), a._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += I + P + D, this.lastLineHeight = P), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - s - (a.checkbox ? 0 : W) : t) + s, this.offsetWidth);
  11432. }, p.prototype.getAllItems = function() {
  11433. var a = [];
  11434. return this.chart.series.forEach(function(t) {
  11435. var s = t && t.options;
  11436. t && h(s.showInLegend, O(s.linkedTo) ? !1 : void 0, !0) && (a = a.concat(t.legendItems || (s.legendType === "point" ? t.data : t)));
  11437. }), b(this, "afterGetAllItems", { allItems: a }), a;
  11438. }, p.prototype.getAlignment = function() {
  11439. var a = this.options;
  11440. return this.proximate ? a.align.charAt(0) + "tv" : a.floating ? "" : a.align.charAt(0) + a.verticalAlign.charAt(0) + a.layout.charAt(0);
  11441. }, p.prototype.adjustMargins = function(a, t) {
  11442. var s = this.chart, n = this.options, P = this.getAlignment();
  11443. P && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(D, I) {
  11444. D.test(P) && !O(a[I]) && (s[w[I]] = Math.max(s[w[I]], s.legend[(I + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][I] * n[I % 2 ? "x" : "y"] + h(n.margin, 12) + t[I] + (s.titleOffset[I] || 0)));
  11445. });
  11446. }, p.prototype.proximatePositions = function() {
  11447. var a = this.chart, t = [], s = this.options.align === "left";
  11448. this.allItems.forEach(function(n) {
  11449. var P, D = s;
  11450. if (n.yAxis) {
  11451. n.xAxis.options.reversed && (D = !D), n.points && (P = k(D ? n.points : n.points.slice(0).reverse(), function(W) {
  11452. return S(W.plotY);
  11453. })), D = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  11454. var I = n.yAxis.top - a.plotTop;
  11455. n.visible ? (P = P ? P.plotY : n.yAxis.height, P += I - 0.3 * D) : P = I + n.yAxis.height, t.push({ target: P, size: D, item: n });
  11456. }
  11457. }, this), x(t, a.plotHeight).forEach(function(n) {
  11458. n.item._legendItemPos && (n.item._legendItemPos[1] = a.plotTop - a.spacing[0] + n.pos);
  11459. });
  11460. }, p.prototype.render = function() {
  11461. var a = this.chart, t = a.renderer, s = this.options, n = this.padding, P = this.getAllItems(), D = this.group, I = this.box;
  11462. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(s.width, a.spacingBox.width - n);
  11463. var W = a.spacingBox.width - 2 * n - s.x;
  11464. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (W /= 2), this.maxLegendWidth = this.widthOption || W, D || (this.group = D = t.g("legend").addClass(s.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(D), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), u(P, function(X, g) {
  11465. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  11466. }), s.reversed && P.reverse(), this.allItems = P, this.display = W = !!P.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, P.forEach(this.renderItem, this), P.forEach(this.layoutItem, this), P = (this.widthOption || this.offsetWidth) + n;
  11467. var E = this.lastItemY + this.lastLineHeight + this.titleHeight;
  11468. E = this.handleOverflow(E), E += n, I || (this.box = I = t.rect().addClass("highcharts-legend-box").attr({ r: s.borderRadius }).add(D), I.isNew = !0), a.styledMode || I.attr({ stroke: s.borderColor, "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "none" }).shadow(s.shadow), 0 < P && 0 < E && (I[I.isNew ? "attr" : "animate"](I.crisp.call({}, { x: 0, y: 0, width: P, height: E }, I.strokeWidth())), I.isNew = !1), I[W ? "show" : "hide"](), a.styledMode && D.getStyle("display") === "none" && (P = E = 0), this.legendWidth = P, this.legendHeight = E, W && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  11469. }, p.prototype.align = function(a) {
  11470. a === void 0 && (a = this.chart.spacingBox);
  11471. var t = this.chart, s = this.options, n = a.y;
  11472. /(lth|ct|rth)/.test(this.getAlignment()) && 0 < t.titleOffset[0] ? n += t.titleOffset[0] : /(lbh|cb|rbh)/.test(this.getAlignment()) && 0 < t.titleOffset[2] && (n -= t.titleOffset[2]), n !== a.y && (a = v(a, { y: n })), this.group.align(v(s, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : s.verticalAlign }), !0, a);
  11473. }, p.prototype.handleOverflow = function(a) {
  11474. var t = this, s = this.chart, n = s.renderer, P = this.options, D = P.y, I = P.verticalAlign === "top", W = this.padding, E = P.maxHeight, X = P.navigation, g = h(X.animation, !0), m = X.arrowSize || 12, L = this.pages, z = this.allItems, $ = function(q) {
  11475. typeof q == "number" ? Z.attr({ height: q }) : Z && (t.clipRect = Z.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + W + "px,9999px," + (W + q) + "px,0)" : "auto");
  11476. }, Q = function(q) {
  11477. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(Y), s.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  11478. }, A, H;
  11479. D = s.spacingBox.height + (I ? -D : D) - W;
  11480. var Y = this.nav, Z = this.clipRect;
  11481. return P.layout !== "horizontal" || P.verticalAlign === "middle" || P.floating || (D /= 2), E && (D = Math.min(D, E)), L.length = 0, a && 0 < D && a > D && X.enabled !== !1 ? (this.clipHeight = A = Math.max(D - 20 - this.titleHeight - W, 0), this.currentPage = h(this.currentPage, 1), this.fullHeight = a, z.forEach(function(q, it) {
  11482. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  11483. (!rt || et - L[rt - 1] > A && (H || et) !== L[rt - 1]) && (L.push(H || et), rt++), q.pageIx = rt - 1, H && (z[it - 1].pageIx = rt - 1), it === z.length - 1 && et + nt - L[rt - 1] > A && nt <= A && (L.push(et), q.pageIx = rt), et !== H && (H = et);
  11484. }), Z || (Z = t.clipRect = n.clipRect(0, W, 9999, 0), t.contentGroup.clip(Z)), $(A), Y || (this.nav = Y = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(Y), Q("upTracker").on(
  11485. "click",
  11486. function() {
  11487. t.scroll(-1, g);
  11488. }
  11489. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), s.styledMode || this.pager.css(X.style), this.pager.add(Y), this.down = n.symbol("triangle-down", 0, 0, m, m).add(Y), Q("downTracker").on("click", function() {
  11490. t.scroll(1, g);
  11491. })), t.scroll(0), a = D) : Y && ($(), this.nav = Y.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), a;
  11492. }, p.prototype.scroll = function(a, t) {
  11493. var s = this, n = this.chart, P = this.pages, D = P.length, I = this.clipHeight, W = this.options.navigation, E = this.pager, X = this.padding, g = this.currentPage + a;
  11494. g > D && (g = D), 0 < g && (typeof t < "u" && B(t, n), this.nav.attr({ translateX: X, translateY: I + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  11495. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11496. }), E.attr({ text: g + "/" + D }), [this.down, this.downTracker].forEach(
  11497. function(m) {
  11498. m.attr({ x: 18 + this.pager.getBBox().width, class: g === D ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11499. },
  11500. this
  11501. ), n.styledMode || (this.up.attr({ fill: g === 1 ? W.inactiveColor : W.activeColor }), this.upTracker.css({ cursor: g === 1 ? "default" : "pointer" }), this.down.attr({ fill: g === D ? W.inactiveColor : W.activeColor }), this.downTracker.css({ cursor: g === D ? "default" : "pointer" })), this.scrollOffset = -P[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), a = F(h(t, n.renderer.globalAnimation, !0)), i(function() {
  11502. b(s, "afterScroll", { currentPage: g });
  11503. }, a.duration));
  11504. }, p.prototype.setItemEvents = function(a, t, s) {
  11505. var n = this, P = n.chart.renderer.boxWrapper, D = a instanceof U, I = "highcharts-legend-" + (D ? "point" : "series") + "-active", W = n.chart.styledMode, E = function(X) {
  11506. n.allItems.forEach(function(g) {
  11507. a !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  11508. m.setState(X, !D);
  11509. });
  11510. });
  11511. };
  11512. (s ? [t, a.legendSymbol] : [a.legendGroup]).forEach(function(X) {
  11513. X && X.on("mouseover", function() {
  11514. a.visible && E("inactive"), a.setState("hover"), a.visible && P.addClass(I), W || t.css(n.options.itemHoverStyle);
  11515. }).on("mouseout", function() {
  11516. n.chart.styledMode || t.css(v(a.visible ? n.itemStyle : n.itemHiddenStyle)), E(""), P.removeClass(I), a.setState();
  11517. }).on("click", function(g) {
  11518. var m = function() {
  11519. a.setVisible && a.setVisible(), E(a.visible ? "inactive" : "");
  11520. };
  11521. P.removeClass(I), g = { browserEvent: g }, a.firePointEvent ? a.firePointEvent("legendItemClick", g, m) : b(a, "legendItemClick", g, m);
  11522. });
  11523. });
  11524. }, p.prototype.createCheckboxForItem = function(a) {
  11525. a.checkbox = l(
  11526. "input",
  11527. { type: "checkbox", className: "highcharts-legend-checkbox", checked: a.selected, defaultChecked: a.selected },
  11528. this.options.itemCheckboxStyle,
  11529. this.chart.container
  11530. ), f(a.checkbox, "click", function(t) {
  11531. b(a.series || a, "checkboxClick", { checked: t.target.checked, item: a }, function() {
  11532. a.select();
  11533. });
  11534. });
  11535. }, p;
  11536. }(), (/Trident\/7\.0/.test(_.navigator && _.navigator.userAgent) || y) && G(V.prototype, "positionItem", function(p, a) {
  11537. var t = this, s = function() {
  11538. a._legendItemPos && p.call(t, a);
  11539. };
  11540. s(), t.bubbleLegend || setTimeout(s);
  11541. }), V;
  11542. }), C(
  11543. o,
  11544. "Core/Series/SeriesRegistry.js",
  11545. [o["Core/Globals.js"], o["Core/DefaultOptions.js"], o["Core/Series/Point.js"], o["Core/Utilities.js"]],
  11546. function(y, N, _, U) {
  11547. var G = N.defaultOptions, V = U.error, F = U.extendClass, B = U.merge, j;
  11548. return function(w) {
  11549. function x(f, l) {
  11550. var T = G.plotOptions || {}, O = l.defaultOptions;
  11551. l.prototype.pointClass || (l.prototype.pointClass = _), l.prototype.type = f, O && (T[f] = O), w.seriesTypes[f] = l;
  11552. }
  11553. w.seriesTypes = y.seriesTypes, w.getSeries = function(f, l) {
  11554. l === void 0 && (l = {});
  11555. var T = f.options.chart;
  11556. T = l.type || T.type || T.defaultSeriesType || "";
  11557. var O = w.seriesTypes[T];
  11558. return w || V(17, !0, f, { missingModuleFor: T }), T = new O(), typeof T.init == "function" && T.init(f, l), T;
  11559. }, w.registerSeriesType = x, w.seriesType = function(f, l, T, O, R) {
  11560. var k = G.plotOptions || {};
  11561. return l = l || "", k[f] = B(k[l], T), x(f, F(w.seriesTypes[l] || function() {
  11562. }, O)), w.seriesTypes[f].prototype.type = f, R && (w.seriesTypes[f].prototype.pointClass = F(_, R)), w.seriesTypes[f];
  11563. };
  11564. }(j || (j = {})), j;
  11565. }
  11566. ), C(o, "Core/Chart/Chart.js", [
  11567. o["Core/Animation/AnimationUtilities.js"],
  11568. o["Core/Axis/Axis.js"],
  11569. o["Core/FormatUtilities.js"],
  11570. o["Core/Foundation.js"],
  11571. o["Core/Globals.js"],
  11572. o["Core/Legend/Legend.js"],
  11573. o["Core/MSPointer.js"],
  11574. o["Core/DefaultOptions.js"],
  11575. o["Core/Pointer.js"],
  11576. o["Core/Renderer/RendererRegistry.js"],
  11577. o["Core/Series/SeriesRegistry.js"],
  11578. o["Core/Renderer/SVG/SVGRenderer.js"],
  11579. o["Core/Time.js"],
  11580. o["Core/Utilities.js"],
  11581. o["Core/Renderer/HTML/AST.js"]
  11582. ], function(y, N, _, U, G, V, F, B, j, w, x, f, l, T, O) {
  11583. var R = y.animate, k = y.animObject, b = y.setAnimation, S = _.numberFormat, v = U.registerEventOptions, h = G.charts, c = G.doc, u = G.marginNames, i = G.svg, p = G.win, a = B.defaultOptions, t = B.defaultTime, s = x.seriesTypes, n = T.addEvent, P = T.attr, D = T.cleanRecursively, I = T.createElement, W = T.css, E = T.defined, X = T.discardElement, g = T.erase, m = T.error, L = T.extend, z = T.find, $ = T.fireEvent, Q = T.getStyle, A = T.isArray, H = T.isNumber, Y = T.isObject, Z = T.isString, q = T.merge, it = T.objectEach, et = T.pick, nt = T.pInt, rt = T.relativeLength, ct = T.removeEvent, gt = T.splat, dt = T.syncTimeout, ht = T.uniqueKey;
  11584. return y = function() {
  11585. function at(J, tt, ot) {
  11586. 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(J, tt, ot);
  11587. }
  11588. return at.chart = function(J, tt, ot) {
  11589. return new at(J, tt, ot);
  11590. }, at.prototype.getArgs = function(J, tt, ot) {
  11591. Z(J) || J.nodeName ? (this.renderTo = J, this.init(tt, ot)) : this.init(J, tt);
  11592. }, at.prototype.init = function(J, tt) {
  11593. var ot = J.plotOptions || {};
  11594. $(this, "init", { args: arguments }, function() {
  11595. var lt = q(a, J), pt = lt.chart;
  11596. it(lt.plotOptions, function(yt, vt) {
  11597. Y(yt) && (yt.tooltip = ot[vt] && q(ot[vt].tooltip) || void 0);
  11598. }), lt.tooltip.userOptions = J.chart && J.chart.forExport && J.tooltip.userOptions || J.tooltip, this.userOptions = J, this.margin = [], this.spacing = [], this.bounds = { h: {}, v: {} }, this.labelCollectors = [], this.callback = tt, this.isResizing = 0, this.options = lt, this.axes = [], this.series = [], this.time = J.time && Object.keys(J.time).length ? new l(J.time) : G.time, this.numberFormatter = pt.numberFormatter || S, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = h.length, h.push(this), G.chartCount++, v(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, $(this, "afterInit"), this.firstRender();
  11599. });
  11600. }, at.prototype.initSeries = function(J) {
  11601. var tt = this.options.chart;
  11602. tt = J.type || tt.type || tt.defaultSeriesType;
  11603. var ot = s[tt];
  11604. return ot || m(17, !0, this, { missingModuleFor: tt }), tt = new ot(), typeof tt.init == "function" && tt.init(this, J), tt;
  11605. }, at.prototype.setSeriesData = function() {
  11606. this.getSeriesOrderByLinks().forEach(function(J) {
  11607. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  11608. });
  11609. }, at.prototype.getSeriesOrderByLinks = function() {
  11610. return this.series.concat().sort(function(J, tt) {
  11611. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  11612. });
  11613. }, at.prototype.orderSeries = function(J) {
  11614. var tt = this.series;
  11615. J = J || 0;
  11616. for (var ot = tt.length; J < ot; ++J)
  11617. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  11618. }, at.prototype.isInsidePlot = function(J, tt, ot) {
  11619. ot === void 0 && (ot = {});
  11620. var lt = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Pt = 0, At = 0;
  11621. ot.visiblePlotOnly && this.scrollingContainer && (At = this.scrollingContainer, Pt = At.scrollLeft, At = At.scrollTop);
  11622. var St = ot.series;
  11623. if (pt = ot.visiblePlotOnly && Ct || pt, Ct = ot.inverted ? tt : J, tt = ot.inverted ? J : tt, J = { x: Ct, y: tt, isInsidePlot: !0 }, !ot.ignoreX) {
  11624. var Dt = St && (lt ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  11625. Ct = ot.paneCoordinates ? Dt.pos + Ct : yt + Ct, Ct >= Math.max(Pt + yt, Dt.pos) && Ct <= Math.min(Pt + yt + pt.width, Dt.pos + Dt.len) || (J.isInsidePlot = !1);
  11626. }
  11627. return !ot.ignoreY && J.isInsidePlot && (lt = St && (lt ? St.xAxis : St.yAxis) || { pos: vt, len: 1 / 0 }, ot = ot.paneCoordinates ? lt.pos + tt : vt + tt, ot >= Math.max(At + vt, lt.pos) && ot <= Math.min(At + vt + pt.height, lt.pos + lt.len) || (J.isInsidePlot = !1)), $(this, "afterIsInsidePlot", J), J.isInsidePlot;
  11628. }, at.prototype.redraw = function(J) {
  11629. $(this, "beforeRedraw");
  11630. var tt = this.hasCartesianSeries ? this.axes : this.colorAxis || [], ot = this.series, lt = this.pointer, pt = this.legend, yt = this.userOptions.legend, vt = this.renderer, Ct = vt.isHidden(), Pt = [], At = this.isDirtyBox, St = this.isDirtyLegend;
  11631. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = ot.length; J--; ) {
  11632. var Dt = ot[J];
  11633. if (Dt.options.stacking || Dt.options.centerInCategory) {
  11634. var _t = !0;
  11635. if (Dt.isDirty) {
  11636. var Nt = !0;
  11637. break;
  11638. }
  11639. }
  11640. }
  11641. if (Nt)
  11642. for (J = ot.length; J--; )
  11643. Dt = ot[J], Dt.options.stacking && (Dt.isDirty = !0);
  11644. ot.forEach(function(Ot) {
  11645. Ot.isDirty && (Ot.options.legendType === "point" ? (typeof Ot.updateTotals == "function" && Ot.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Ot.isDirtyData && $(Ot, "updatedData");
  11646. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), _t && this.getStacks(), tt.forEach(function(Ot) {
  11647. Ot.updateNames(), Ot.setScale();
  11648. }), this.getMargins(), tt.forEach(function(Ot) {
  11649. Ot.isDirty && (At = !0);
  11650. }), tt.forEach(function(Ot) {
  11651. var Kt = Ot.min + "," + Ot.max;
  11652. Ot.extKey !== Kt && (Ot.extKey = Kt, Pt.push(function() {
  11653. $(Ot, "afterSetExtremes", L(Ot.eventArgs, Ot.getExtremes())), delete Ot.eventArgs;
  11654. })), (At || _t) && Ot.redraw();
  11655. }), At && this.drawChartBox(), $(this, "predraw"), ot.forEach(function(Ot) {
  11656. (At || Ot.isDirty) && Ot.visible && Ot.redraw(), Ot.isDirtyData = !1;
  11657. }), lt && lt.reset(!0), vt.draw(), $(this, "redraw"), $(this, "render"), Ct && this.temporaryDisplay(!0), Pt.forEach(function(Ot) {
  11658. Ot.call();
  11659. });
  11660. }, at.prototype.get = function(J) {
  11661. function tt(yt) {
  11662. return yt.id === J || yt.options && yt.options.id === J;
  11663. }
  11664. for (var ot = this.series, lt = z(this.axes, tt) || z(this.series, tt), pt = 0; !lt && pt < ot.length; pt++)
  11665. lt = z(ot[pt].points || [], tt);
  11666. return lt;
  11667. }, at.prototype.getAxes = function() {
  11668. var J = this, tt = this.options, ot = tt.xAxis = gt(tt.xAxis || {});
  11669. tt = tt.yAxis = gt(tt.yAxis || {}), $(this, "getAxes"), ot.forEach(function(lt, pt) {
  11670. lt.index = pt, lt.isX = !0;
  11671. }), tt.forEach(function(lt, pt) {
  11672. lt.index = pt;
  11673. }), ot.concat(tt).forEach(function(lt) {
  11674. new N(J, lt);
  11675. }), $(this, "afterGetAxes");
  11676. }, at.prototype.getSelectedPoints = function() {
  11677. return this.series.reduce(function(J, tt) {
  11678. return tt.getPointsCollection().forEach(function(ot) {
  11679. et(ot.selectedStaging, ot.selected) && J.push(ot);
  11680. }), J;
  11681. }, []);
  11682. }, at.prototype.getSelectedSeries = function() {
  11683. return this.series.filter(function(J) {
  11684. return J.selected;
  11685. });
  11686. }, at.prototype.setTitle = function(J, tt, ot) {
  11687. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription(
  11688. "caption",
  11689. void 0
  11690. ), this.layOutTitles(ot);
  11691. }, at.prototype.applyDescription = function(J, tt) {
  11692. var ot = this, lt = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  11693. lt = this.options[J] = q(!this.styledMode && { style: lt }, this.options[J], tt);
  11694. var pt = this[J];
  11695. pt && tt && (this[J] = pt = pt.destroy()), lt && !pt && (pt = this.renderer.text(lt.text, 0, 0, lt.useHTML).attr({ align: lt.align, class: "highcharts-" + J, zIndex: lt.zIndex || 4 }).add(), pt.update = function(yt) {
  11696. ot[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  11697. }, this.styledMode || pt.css(lt.style), this[J] = pt);
  11698. }, at.prototype.layOutTitles = function(J) {
  11699. var tt = [0, 0, 0], ot = this.renderer, lt = this.spacingBox;
  11700. ["title", "subtitle", "caption"].forEach(function(yt) {
  11701. var vt = this[yt], Ct = this.options[yt], Pt = Ct.verticalAlign || "top";
  11702. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  11703. var At;
  11704. if (vt) {
  11705. this.styledMode || (At = Ct.style && Ct.style.fontSize), At = ot.fontMetrics(At, vt).b, vt.css({ width: (Ct.width || lt.width + (Ct.widthAdjust || 0)) + "px" });
  11706. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  11707. vt.align(L({ y: Pt === "bottom" ? At : yt + At, height: St }, Ct), !1, "spacingBox"), Ct.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  11708. }
  11709. }, this), tt[0] && (this.options.title.verticalAlign || "top") === "top" && (tt[0] += this.options.title.margin), tt[2] && this.options.caption.verticalAlign === "bottom" && (tt[2] += this.options.caption.margin);
  11710. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  11711. this.titleOffset = tt, $(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  11712. }, at.prototype.getChartSize = function() {
  11713. var J = this.options.chart, tt = J.width;
  11714. J = J.height;
  11715. var ot = this.renderTo;
  11716. E(tt) || (this.containerWidth = Q(ot, "width")), E(J) || (this.containerHeight = Q(ot, "height")), this.chartWidth = Math.max(0, tt || this.containerWidth || 600), this.chartHeight = Math.max(0, rt(J, this.chartWidth) || (1 < this.containerHeight ? this.containerHeight : 400));
  11717. }, at.prototype.temporaryDisplay = function(J) {
  11718. var tt = this.renderTo;
  11719. if (J)
  11720. for (; tt && tt.style; )
  11721. tt.hcOrigStyle && (W(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  11722. else
  11723. for (; tt && tt.style && (c.body.contains(tt) || tt.parentNode || (tt.hcOrigDetached = !0, c.body.appendChild(tt)), (Q(tt, "display", !1) === "none" || tt.hcOricDetached) && (tt.hcOrigStyle = { display: tt.style.display, height: tt.style.height, overflow: tt.style.overflow }, J = { display: "block", overflow: "hidden" }, tt !== this.renderTo && (J.height = 0), W(tt, J), tt.offsetWidth || tt.style.setProperty("display", "block", "important")), tt = tt.parentNode, tt !== c.body); )
  11724. ;
  11725. }, at.prototype.setClassName = function(J) {
  11726. this.container.className = "highcharts-container " + (J || "");
  11727. }, at.prototype.getContainer = function() {
  11728. var J = this.options, tt = J.chart, ot = ht(), lt, pt = this.renderTo;
  11729. pt || (this.renderTo = pt = tt.renderTo), Z(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  11730. var yt = nt(P(pt, "data-highcharts-chart"));
  11731. H(yt) && h[yt] && h[yt].hasRendered && h[yt].destroy(), P(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  11732. var vt = this.chartHeight;
  11733. if (W(pt, { overflow: "hidden" }), this.styledMode || (lt = L({ position: "relative", overflow: "hidden", width: yt + "px", height: vt + "px", textAlign: "left", lineHeight: "normal", zIndex: 0, "-webkit-tap-highlight-color": "rgba(0,0,0,0)", userSelect: "none", "touch-action": "manipulation", outline: "none" }, tt.style || {})), this.container = ot = I("div", { id: ot }, lt, pt), this._cursor = ot.style.cursor, this.renderer = new (tt.renderer || !i ? w.getRendererType(tt.renderer) : f)(ot, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  11734. void 0,
  11735. this
  11736. ), this.setClassName(tt.className), this.styledMode)
  11737. for (var Ct in J.defs)
  11738. this.renderer.definition(J.defs[Ct]);
  11739. else
  11740. this.renderer.setStyle(tt.style);
  11741. this.renderer.chartIndex = this.index, $(this, "afterGetContainer");
  11742. }, at.prototype.getMargins = function(J) {
  11743. var tt = this.spacing, ot = this.margin, lt = this.titleOffset;
  11744. this.resetMargins(), lt[0] && !E(ot[0]) && (this.plotTop = Math.max(this.plotTop, lt[0] + tt[0])), lt[2] && !E(ot[2]) && (this.marginBottom = Math.max(this.marginBottom, lt[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  11745. ot,
  11746. tt
  11747. ), $(this, "getMargins"), J || this.getAxisMargins();
  11748. }, at.prototype.getAxisMargins = function() {
  11749. var J = this, tt = J.axisOffset = [0, 0, 0, 0], ot = J.colorAxis, lt = J.margin, pt = function(yt) {
  11750. yt.forEach(function(vt) {
  11751. vt.visible && vt.getOffset();
  11752. });
  11753. };
  11754. J.hasCartesianSeries ? pt(J.axes) : ot && ot.length && pt(ot), u.forEach(function(yt, vt) {
  11755. E(lt[vt]) || (J[yt] += tt[vt]);
  11756. }), J.setChartSize();
  11757. }, at.prototype.reflow = function(J) {
  11758. var tt = this, ot = tt.options.chart, lt = tt.renderTo, pt = E(ot.width) && E(ot.height), yt = ot.width || Q(lt, "width");
  11759. ot = ot.height || Q(lt, "height"), lt = J ? J.target : p, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && ot && (lt === p || lt === c) && ((yt !== tt.containerWidth || ot !== tt.containerHeight) && (T.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  11760. tt.container && tt.setSize(void 0, void 0, !1);
  11761. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = ot);
  11762. }, at.prototype.setReflow = function(J) {
  11763. var tt = this;
  11764. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(p, "resize", function(ot) {
  11765. tt.options && tt.reflow(ot);
  11766. }), n(this, "destroy", this.unbindReflow));
  11767. }, at.prototype.setSize = function(J, tt, ot) {
  11768. var lt = this, pt = lt.renderer;
  11769. lt.isResizing += 1, b(ot, lt), ot = pt.globalAnimation, lt.oldChartHeight = lt.chartHeight, lt.oldChartWidth = lt.chartWidth, typeof J < "u" && (lt.options.chart.width = J), typeof tt < "u" && (lt.options.chart.height = tt), lt.getChartSize(), lt.styledMode || (ot ? R : W)(lt.container, { width: lt.chartWidth + "px", height: lt.chartHeight + "px" }, ot), lt.setChartSize(!0), pt.setSize(lt.chartWidth, lt.chartHeight, ot), lt.axes.forEach(function(yt) {
  11770. yt.isDirty = !0, yt.setScale();
  11771. }), lt.isDirtyLegend = !0, lt.isDirtyBox = !0, lt.layOutTitles(), lt.getMargins(), lt.redraw(ot), lt.oldChartHeight = null, $(lt, "resize"), dt(function() {
  11772. lt && $(lt, "endResize", null, function() {
  11773. --lt.isResizing;
  11774. });
  11775. }, k(ot).duration);
  11776. }, at.prototype.setChartSize = function(J) {
  11777. var tt = this.inverted, ot = this.renderer, lt = this.chartWidth, pt = this.chartHeight, yt = this.options.chart, vt = this.spacing, Ct = this.clipOffset, Pt, At, St, Dt;
  11778. this.plotLeft = Pt = Math.round(this.plotLeft), this.plotTop = At = Math.round(this.plotTop), this.plotWidth = St = Math.max(0, Math.round(lt - Pt - this.marginRight)), this.plotHeight = Dt = Math.max(0, Math.round(pt - At - this.marginBottom)), this.plotSizeX = tt ? Dt : St, this.plotSizeY = tt ? St : Dt, this.plotBorderWidth = yt.plotBorderWidth || 0, this.spacingBox = ot.spacingBox = { x: vt[3], y: vt[0], width: lt - vt[3] - vt[1], height: pt - vt[0] - vt[2] }, this.plotBox = ot.plotBox = { x: Pt, y: At, width: St, height: Dt }, tt = 2 * Math.floor(this.plotBorderWidth / 2), lt = Math.ceil(Math.max(tt, Ct[3]) / 2), pt = Math.ceil(Math.max(tt, Ct[0]) / 2), this.clipBox = { x: lt, y: pt, width: Math.floor(this.plotSizeX - Math.max(tt, Ct[1]) / 2 - lt), height: Math.max(0, Math.floor(this.plotSizeY - Math.max(tt, Ct[2]) / 2 - pt)) }, J || (this.axes.forEach(function(_t) {
  11779. _t.setAxisSize(), _t.setAxisTranslation();
  11780. }), ot.alignElements()), $(this, "afterSetChartSize", { skipAxes: J });
  11781. }, at.prototype.resetMargins = function() {
  11782. $(this, "resetMargins");
  11783. var J = this, tt = J.options.chart;
  11784. ["margin", "spacing"].forEach(function(ot) {
  11785. var lt = tt[ot], pt = Y(lt) ? lt : [lt, lt, lt, lt];
  11786. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  11787. J[ot][vt] = et(tt[ot + yt], pt[vt]);
  11788. });
  11789. }), u.forEach(function(ot, lt) {
  11790. J[ot] = et(J.margin[lt], J.spacing[lt]);
  11791. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  11792. }, at.prototype.drawChartBox = function() {
  11793. var J = this.options.chart, tt = this.renderer, ot = this.chartWidth, lt = this.chartHeight, pt = this.styledMode, yt = this.plotBGImage, vt = J.backgroundColor, Ct = J.plotBackgroundColor, Pt = J.plotBackgroundImage, At = this.plotLeft, St = this.plotTop, Dt = this.plotWidth, _t = this.plotHeight, Nt = this.plotBox, Ot = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, Yt = "animate";
  11794. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), Yt = "attr"), pt)
  11795. var Vt = be = Gt.strokeWidth();
  11796. else
  11797. Vt = J.borderWidth || 0, be = Vt + (J.shadow ? 8 : 0), vt = { fill: vt || "none" }, (Vt || Gt["stroke-width"]) && (vt.stroke = J.borderColor, vt["stroke-width"] = Vt), Gt.attr(vt).shadow(J.shadow);
  11798. Gt[Yt]({ x: be / 2, y: be / 2, width: ot - be - Vt % 2, height: lt - be - Vt % 2, r: J.borderRadius }), Yt = "animate", Wt || (Yt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[Yt](Nt), pt || (Wt.attr({ fill: Ct || "none" }).shadow(J.plotShadow), Pt && (yt ? (Pt !== yt.attr("href") && yt.attr("href", Pt), yt.animate(Nt)) : this.plotBGImage = tt.image(Pt, At, St, Dt, _t).add())), Ot ? Ot.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), Yt = "animate", Jt || (Yt = "attr", this.plotBorder = Jt = tt.rect().addClass("highcharts-plot-border").attr({ zIndex: 1 }).add()), pt || Jt.attr({ stroke: J.plotBorderColor, "stroke-width": J.plotBorderWidth || 0, fill: "none" }), Jt[Yt](Jt.crisp({ x: At, y: St, width: Dt, height: _t }, -Jt.strokeWidth())), this.isDirtyBox = !1, $(this, "afterDrawChartBox");
  11799. }, at.prototype.propFromSeries = function() {
  11800. var J = this, tt = J.options.chart, ot = J.options.series, lt, pt, yt;
  11801. ["inverted", "angular", "polar"].forEach(function(vt) {
  11802. for (pt = s[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], lt = ot && ot.length; !yt && lt--; )
  11803. (pt = s[ot[lt].type]) && pt.prototype[vt] && (yt = !0);
  11804. J[vt] = yt;
  11805. });
  11806. }, at.prototype.linkSeries = function() {
  11807. var J = this, tt = J.series;
  11808. tt.forEach(function(ot) {
  11809. ot.linkedSeries.length = 0;
  11810. }), tt.forEach(function(ot) {
  11811. var lt = ot.options.linkedTo;
  11812. Z(lt) && (lt = lt === ":previous" ? J.series[ot.index - 1] : J.get(lt)) && lt.linkedParent !== ot && (lt.linkedSeries.push(ot), ot.linkedParent = lt, lt.enabledDataSorting && ot.setDataSortingOptions(), ot.visible = et(ot.options.visible, lt.options.visible, ot.visible));
  11813. }), $(this, "afterLinkSeries");
  11814. }, at.prototype.renderSeries = function() {
  11815. this.series.forEach(function(J) {
  11816. J.translate(), J.render();
  11817. });
  11818. }, at.prototype.renderLabels = function() {
  11819. var J = this, tt = J.options.labels;
  11820. tt.items && tt.items.forEach(function(ot) {
  11821. var lt = L(tt.style, ot.style), pt = nt(lt.left) + J.plotLeft, yt = nt(lt.top) + J.plotTop + 12;
  11822. delete lt.left, delete lt.top, J.renderer.text(ot.html, pt, yt).attr({ zIndex: 2 }).css(lt).add();
  11823. });
  11824. }, at.prototype.render = function() {
  11825. var J = this.axes, tt = this.colorAxis, ot = this.renderer, lt = this.options, pt = function(At) {
  11826. At.forEach(function(St) {
  11827. St.visible && St.render();
  11828. });
  11829. }, yt = 0;
  11830. this.setTitle(), this.legend = new V(this, lt.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), lt = this.plotWidth, J.some(function(At) {
  11831. if (At.horiz && At.visible && At.options.labels.enabled && At.series.length)
  11832. return yt = 21, !0;
  11833. });
  11834. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  11835. J.forEach(function(At) {
  11836. At.setScale();
  11837. }), this.getAxisMargins();
  11838. var Ct = 1.1 < lt / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  11839. (Ct || Pt) && (J.forEach(function(At) {
  11840. (At.horiz && Ct || !At.horiz && Pt) && At.setTickInterval(!0);
  11841. }), this.getMargins()), this.drawChartBox(), this.hasCartesianSeries ? pt(J) : tt && tt.length && pt(tt), this.seriesGroup || (this.seriesGroup = ot.g("series-group").attr({ zIndex: 3 }).add()), this.renderSeries(), this.renderLabels(), this.addCredits(), this.setResponsive && this.setResponsive(), this.hasRendered = !0;
  11842. }, at.prototype.addCredits = function(J) {
  11843. var tt = this, ot = q(!0, this.options.credits, J);
  11844. ot.enabled && !this.credits && (this.credits = this.renderer.text(ot.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  11845. ot.href && (p.location.href = ot.href);
  11846. }).attr({ align: ot.position.align, zIndex: 8 }), tt.styledMode || this.credits.css(ot.style), this.credits.add().align(ot.position), this.credits.update = function(lt) {
  11847. tt.credits = tt.credits.destroy(), tt.addCredits(lt);
  11848. });
  11849. }, at.prototype.destroy = function() {
  11850. var J = this, tt = J.axes, ot = J.series, lt = J.container, pt = lt && lt.parentNode, yt;
  11851. for ($(J, "destroy"), J.renderer.forExport ? g(h, J) : h[J.index] = void 0, G.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  11852. tt[yt] = tt[yt].destroy();
  11853. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = ot.length; yt--; )
  11854. ot[yt] = ot[yt].destroy();
  11855. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  11856. var Ct = J[vt];
  11857. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  11858. }), lt && (lt.innerHTML = O.emptyHTML, ct(lt), pt && X(lt)), it(J, function(vt, Ct) {
  11859. delete J[Ct];
  11860. });
  11861. }, at.prototype.firstRender = function() {
  11862. var J = this, tt = J.options;
  11863. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (A(tt.series) ? tt.series : []).forEach(function(ot) {
  11864. J.initSeries(ot);
  11865. }), J.linkSeries(), J.setSeriesData(), $(J, "beforeRender"), j && (F.isRequired() ? J.pointer = new F(J, tt) : J.pointer = new j(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  11866. }, at.prototype.onload = function() {
  11867. this.callbacks.concat([this.callback]).forEach(function(J) {
  11868. J && typeof this.index < "u" && J.apply(this, [this]);
  11869. }, this), $(this, "load"), $(this, "render"), E(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  11870. }, at.prototype.addSeries = function(J, tt, ot) {
  11871. var lt = this, pt;
  11872. return J && (tt = et(tt, !0), $(lt, "addSeries", { options: J }, function() {
  11873. pt = lt.initSeries(J), lt.isDirtyLegend = !0, lt.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), $(lt, "afterAddSeries", { series: pt }), tt && lt.redraw(ot);
  11874. })), pt;
  11875. }, at.prototype.addAxis = function(J, tt, ot, lt) {
  11876. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: ot, animation: lt });
  11877. }, at.prototype.addColorAxis = function(J, tt, ot) {
  11878. return this.createAxis(
  11879. "colorAxis",
  11880. { axis: J, redraw: tt, animation: ot }
  11881. );
  11882. }, at.prototype.createAxis = function(J, tt) {
  11883. return J = new N(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  11884. }, at.prototype.showLoading = function(J) {
  11885. var tt = this, ot = tt.options, lt = ot.loading, pt = function() {
  11886. yt && W(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  11887. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  11888. yt || (tt.loadingDiv = yt = I("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = I("span", { className: "highcharts-loading-inner" }, null, yt), n(tt, "redraw", pt)), yt.className = "highcharts-loading", O.setElementHTML(vt, et(J, ot.lang.loading, "")), tt.styledMode || (W(yt, L(lt.style, { zIndex: 10 })), W(vt, lt.labelStyle), tt.loadingShown || (W(yt, { opacity: 0, display: "" }), R(yt, { opacity: lt.style.opacity || 0.5 }, { duration: lt.showDuration || 0 }))), tt.loadingShown = !0, pt();
  11889. }, at.prototype.hideLoading = function() {
  11890. var J = this.options, tt = this.loadingDiv;
  11891. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || R(tt, { opacity: 0 }, { duration: J.loading.hideDuration || 100, complete: function() {
  11892. W(tt, { display: "none" });
  11893. } })), this.loadingShown = !1;
  11894. }, at.prototype.update = function(J, tt, ot, lt) {
  11895. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Pt, At;
  11896. $(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = D(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  11897. var St = J.chart;
  11898. if (St) {
  11899. if (q(!0, pt.options.chart, St), "className" in St && pt.setClassName(St.className), "reflow" in St && pt.setReflow(St.reflow), "inverted" in St || "polar" in St || "type" in St) {
  11900. pt.propFromSeries();
  11901. var Dt = !0;
  11902. }
  11903. "alignTicks" in St && (Dt = !0), "events" in St && v(this, St), it(St, function(_t, Nt) {
  11904. pt.propsRequireUpdateSeries.indexOf("chart." + Nt) !== -1 && (Pt = !0), pt.propsRequireDirtyBox.indexOf(Nt) !== -1 && (pt.isDirtyBox = !0), pt.propsRequireReflow.indexOf(Nt) !== -1 && (vt ? pt.isDirtyBox = !0 : At = !0);
  11905. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  11906. }
  11907. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new l(J.time)), q(
  11908. !0,
  11909. pt.options.time,
  11910. J.time
  11911. )), it(J, function(_t, Nt) {
  11912. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(_t, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](_t) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  11913. }), this.collectionsWithUpdate.forEach(function(_t) {
  11914. if (J[_t]) {
  11915. var Nt = [];
  11916. pt[_t].forEach(function(Ot, Kt) {
  11917. Ot.options.isInternal || Nt.push(et(Ot.options.index, Kt));
  11918. }), gt(J[_t]).forEach(function(Ot, Kt) {
  11919. var Gt = E(Ot.id), Wt;
  11920. Gt && (Wt = pt.get(Ot.id)), !Wt && pt[_t] && (Wt = pt[_t][Nt ? Nt[Kt] : Kt]) && Gt && E(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === _t && (Wt.update(Ot, !1), ot && (Wt.touched = !0)), !Wt && ot && pt.collectionsWithInit[_t] && (pt.collectionsWithInit[_t][0].apply(pt, [Ot].concat(pt.collectionsWithInit[_t][1] || []).concat([!1])).touched = !0);
  11921. }), ot && pt[_t].forEach(function(Ot) {
  11922. Ot.touched || Ot.options.isInternal ? delete Ot.touched : Ct.push(Ot);
  11923. });
  11924. }
  11925. }), Ct.forEach(function(_t) {
  11926. _t.chart && _t.remove && _t.remove(!1);
  11927. }), Dt && pt.axes.forEach(function(_t) {
  11928. _t.update({}, !1);
  11929. }), Pt && pt.getSeriesOrderByLinks().forEach(function(_t) {
  11930. _t.chart && _t.update({}, !1);
  11931. }, this), Dt = St && St.width, St = St && (Z(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), At || H(Dt) && Dt !== pt.chartWidth || H(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, lt) : et(tt, !0) && pt.redraw(lt), $(pt, "afterUpdate", { options: J, redraw: tt, animation: lt });
  11932. }, at.prototype.setSubtitle = function(J, tt) {
  11933. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  11934. }, at.prototype.setCaption = function(J, tt) {
  11935. this.applyDescription("caption", J), this.layOutTitles(tt);
  11936. }, at.prototype.showResetZoom = function() {
  11937. function J() {
  11938. tt.zoomOut();
  11939. }
  11940. var tt = this, ot = a.lang, lt = tt.options.chart.resetZoomButton, pt = lt.theme, yt = pt.states, vt = lt.relativeTo === "chart" || lt.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  11941. $(this, "beforeShowResetZoom", null, function() {
  11942. tt.resetZoomButton = tt.renderer.button(ot.resetZoom, null, null, J, pt, yt && yt.hover).attr({ align: lt.position.align, title: ot.resetZoomTitle }).addClass("highcharts-reset-zoom").add().align(lt.position, !1, vt);
  11943. }), $(this, "afterShowResetZoom");
  11944. }, at.prototype.zoomOut = function() {
  11945. $(this, "selection", { resetSelection: !0 }, this.zoom);
  11946. }, at.prototype.zoom = function(J) {
  11947. var tt = this, ot = tt.pointer, lt = tt.inverted ? ot.mouseDownX : ot.mouseDownY, pt = !1, yt;
  11948. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  11949. yt = Ct.zoom();
  11950. }), ot.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  11951. var Pt = Ct.axis, At = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? At + Pt.width : At + Pt.height, Dt = Pt.isXAxis, _t = !1;
  11952. (!Dt && lt >= At && lt <= St || Dt || !E(lt)) && (_t = !0), ot[Dt ? "zoomX" : "zoomY"] && _t && (yt = Pt.zoom(Ct.min, Ct.max), Pt.displayBtn && (pt = !0));
  11953. });
  11954. var vt = tt.resetZoomButton;
  11955. pt && !vt ? tt.showResetZoom() : !pt && Y(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  11956. tt.options.chart.animation,
  11957. J && J.animation,
  11958. 100 > tt.pointCount
  11959. ));
  11960. }, at.prototype.pan = function(J, tt) {
  11961. var ot = this, lt = ot.hoverPoints;
  11962. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  11963. var pt = ot.options.chart, yt = ot.options.mapNavigation && ot.options.mapNavigation.enabled;
  11964. pt && pt.panning && (pt.panning = tt);
  11965. var vt = tt.type, Ct;
  11966. $(this, "pan", { originalEvent: J }, function() {
  11967. lt && lt.forEach(function(St) {
  11968. St.setState();
  11969. });
  11970. var Pt = ot.xAxis;
  11971. vt === "xy" ? Pt = Pt.concat(ot.yAxis) : vt === "y" && (Pt = ot.yAxis);
  11972. var At = {};
  11973. Pt.forEach(function(St) {
  11974. if (St.options.panningEnabled && !St.options.isInternal) {
  11975. var Dt = St.horiz, _t = J[Dt ? "chartX" : "chartY"];
  11976. Dt = Dt ? "mouseDownX" : "mouseDownY";
  11977. var Nt = ot[Dt], Ot = St.minPointOffset || 0, Kt = St.reversed && !ot.inverted || !St.reversed && ot.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - _t, !0) + Ot * Kt, Jt = St.toValue(Nt + St.len - _t, !0) - (Ot * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  11978. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  11979. var Yt = St.panningState;
  11980. !Kt || St.isXAxis || Yt && !Yt.isDirty || St.series.forEach(function(Vt) {
  11981. var Me = Vt.getProcessedData(!0);
  11982. Me = Vt.getExtremes(Me.yData, !0), Yt || (Yt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), H(Me.dataMin) && H(Me.dataMax) && (Yt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Me.dataMin, Yt.startMin), Yt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Me.dataMax, Yt.startMax));
  11983. }), Kt = Math.min(et(Yt && Yt.startMin, Gt.dataMin), Ot ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(Yt && Yt.startMax, Gt.dataMax), Ot ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = Yt, St.isOrdinal || (Ot = Kt - Nt, 0 < Ot && (Wt += Ot, Nt = Kt), Ot = Wt - Jt, 0 < Ot && (Wt = Jt, Nt -= Ot), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(
  11984. Nt,
  11985. Wt,
  11986. !1,
  11987. !1,
  11988. { trigger: "pan" }
  11989. ), ot.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (ot.showResetZoom(), St.displayBtn = !1), Ct = !0), At[Dt] = _t);
  11990. }
  11991. }), it(At, function(St, Dt) {
  11992. ot[Dt] = St;
  11993. }), Ct && ot.redraw(!1), W(ot.container, { cursor: "move" });
  11994. });
  11995. }, at;
  11996. }(), L(y.prototype, {
  11997. callbacks: [],
  11998. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  11999. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  12000. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  12001. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  12002. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  12003. }), y;
  12004. }), C(o, "Core/Legend/LegendSymbol.js", [o["Core/Utilities.js"]], function(y) {
  12005. var N = y.merge, _ = y.pick, U;
  12006. return function(G) {
  12007. G.drawLineMarker = function(V) {
  12008. var F = this.options, B = V.symbolWidth, j = V.symbolHeight, w = j / 2, x = this.chart.renderer, f = this.legendGroup;
  12009. V = V.baseline - Math.round(0.3 * V.fontMetrics.b);
  12010. var l = {}, T = F.marker;
  12011. this.chart.styledMode || (l = { "stroke-width": F.lineWidth || 0 }, F.dashStyle && (l.dashstyle = F.dashStyle)), this.legendLine = x.path([["M", 0, V], ["L", B, V]]).addClass("highcharts-graph").attr(l).add(f), T && T.enabled !== !1 && B && (F = Math.min(_(T.radius, w), w), this.symbol.indexOf("url") === 0 && (T = N(T, { width: j, height: j }), F = 0), this.legendSymbol = B = x.symbol(this.symbol, B / 2 - F, V - F, 2 * F, 2 * F, T).addClass("highcharts-point").add(f), B.isMarker = !0);
  12012. }, G.drawRectangle = function(V, F) {
  12013. var B = V.symbolHeight, j = V.options.squareSymbol;
  12014. F.legendSymbol = this.chart.renderer.rect(j ? (V.symbolWidth - B) / 2 : 0, V.baseline - B + 1, j ? B : V.symbolWidth, B, _(V.options.symbolRadius, B / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(F.legendGroup);
  12015. };
  12016. }(U || (U = {})), U;
  12017. }), C(o, "Core/Series/SeriesDefaults.js", [], function() {
  12018. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  12019. normal: { animation: !0 },
  12020. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  12021. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  12022. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  12023. var y = this.series.chart.numberFormatter;
  12024. return typeof this.y != "number" ? "" : y(this.y, -1);
  12025. }, padding: 5, style: { fontSize: "11px", fontWeight: "bold", color: "contrast", textOutline: "1px contrast" }, verticalAlign: "bottom", x: 0, y: 0 }, cropThreshold: 300, opacity: 1, pointRange: 0, softThreshold: !0, states: {
  12026. normal: { animation: !0 },
  12027. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  12028. select: { animation: { duration: 0 } },
  12029. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  12030. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  12031. }), C(o, "Core/Series/Series.js", [
  12032. o["Core/Animation/AnimationUtilities.js"],
  12033. o["Core/DefaultOptions.js"],
  12034. o["Core/Foundation.js"],
  12035. o["Core/Globals.js"],
  12036. o["Core/Legend/LegendSymbol.js"],
  12037. o["Core/Series/Point.js"],
  12038. o["Core/Series/SeriesDefaults.js"],
  12039. o["Core/Series/SeriesRegistry.js"],
  12040. o["Core/Renderer/SVG/SVGElement.js"],
  12041. o["Core/Utilities.js"]
  12042. ], function(y, N, _, U, G, V, F, B, j, w) {
  12043. var x = y.animObject, f = y.setAnimation, l = N.defaultOptions, T = _.registerEventOptions, O = U.hasTouch, R = U.svg, k = U.win, b = B.seriesTypes, S = w.addEvent, v = w.arrayMax, h = w.arrayMin, c = w.clamp, u = w.cleanRecursively, i = w.correctFloat, p = w.defined, a = w.erase, t = w.error, s = w.extend, n = w.find, P = w.fireEvent, D = w.getNestedProperty, I = w.isArray, W = w.isNumber, E = w.isString, X = w.merge, g = w.objectEach, m = w.pick, L = w.removeEvent, z = w.splat, $ = w.syncTimeout;
  12044. return y = function() {
  12045. function Q() {
  12046. 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;
  12047. }
  12048. return Q.prototype.init = function(A, H) {
  12049. P(this, "init", { options: H });
  12050. var Y = this, Z = A.series;
  12051. this.eventsToUnbind = [], Y.chart = A, Y.options = Y.setOptions(H), H = Y.options, Y.linkedSeries = [], Y.bindAxes(), s(Y, { name: H.name, state: "", visible: H.visible !== !1, selected: H.selected === !0 }), T(this, H);
  12052. var q = H.events;
  12053. (q && q.click || H.point && H.point.events && H.point.events.click || H.allowPointSelect) && (A.runTrackerClick = !0), Y.getColor(), Y.getSymbol(), Y.parallelArrays.forEach(function(et) {
  12054. Y[et + "Data"] || (Y[et + "Data"] = []);
  12055. }), Y.isCartesian && (A.hasCartesianSeries = !0);
  12056. var it;
  12057. Z.length && (it = Z[Z.length - 1]), Y._i = m(it && it._i, -1) + 1, Y.opacity = Y.options.opacity, A.orderSeries(this.insert(Z)), H.dataSorting && H.dataSorting.enabled ? Y.setDataSortingOptions() : Y.points || Y.data || Y.setData(H.data, !1), P(this, "afterInit");
  12058. }, Q.prototype.is = function(A) {
  12059. return b[A] && this instanceof b[A];
  12060. }, Q.prototype.insert = function(A) {
  12061. var H = this.options.index, Y;
  12062. if (W(H)) {
  12063. for (Y = A.length; Y--; )
  12064. if (H >= m(A[Y].options.index, A[Y]._i)) {
  12065. A.splice(Y + 1, 0, this);
  12066. break;
  12067. }
  12068. Y === -1 && A.unshift(this), Y += 1;
  12069. } else
  12070. A.push(this);
  12071. return m(Y, A.length - 1);
  12072. }, Q.prototype.bindAxes = function() {
  12073. var A = this, H = A.options, Y = A.chart, Z;
  12074. P(this, "bindAxes", null, function() {
  12075. (A.axisTypes || []).forEach(function(q) {
  12076. var it = 0;
  12077. Y[q].forEach(function(et) {
  12078. Z = et.options, (H[q] === it && !Z.isInternal || typeof H[q] < "u" && H[q] === Z.id || typeof H[q] > "u" && Z.index === 0) && (A.insert(et.series), A[q] = et, et.isDirty = !0), Z.isInternal || it++;
  12079. }), A[q] || A.optionalAxis === q || t(18, !0, Y);
  12080. });
  12081. }), P(this, "afterBindAxes");
  12082. }, Q.prototype.updateParallelArrays = function(A, H) {
  12083. var Y = A.series, Z = arguments, q = W(H) ? function(it) {
  12084. var et = it === "y" && Y.toYData ? Y.toYData(A) : A[it];
  12085. Y[it + "Data"][H] = et;
  12086. } : function(it) {
  12087. Array.prototype[H].apply(Y[it + "Data"], Array.prototype.slice.call(Z, 2));
  12088. };
  12089. Y.parallelArrays.forEach(q);
  12090. }, Q.prototype.hasData = function() {
  12091. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  12092. }, Q.prototype.autoIncrement = function(A) {
  12093. var H = this.options, Y = H.pointIntervalUnit, Z = H.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  12094. return it = m(it, H.pointStart, 0), this.pointInterval = et = m(this.pointInterval, H.pointInterval, 1), Z && W(A) && (et *= A), Y && (H = new q.Date(it), Y === "day" ? q.set("Date", H, q.get("Date", H) + et) : Y === "month" ? q.set("Month", H, q.get("Month", H) + et) : Y === "year" && q.set("FullYear", H, q.get("FullYear", H) + et), et = H.getTime() - it), Z && W(A) ? it + et : (this.xIncrement = it + et, it);
  12095. }, Q.prototype.setDataSortingOptions = function() {
  12096. var A = this.options;
  12097. s(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), p(A.pointRange) || (A.pointRange = 1);
  12098. }, Q.prototype.setOptions = function(A) {
  12099. var H = this.chart, Y = H.options, Z = Y.plotOptions, q = H.userOptions || {};
  12100. A = X(A), H = H.styledMode;
  12101. var it = { plotOptions: Z, userOptions: A };
  12102. P(this, "setOptions", it);
  12103. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  12104. return this.userOptions = it.userOptions, q = X(et, Z.series, q.plotOptions && q.plotOptions[this.type], A), this.tooltipOptions = X(l.tooltip, l.plotOptions.series && l.plotOptions.series.tooltip, l.plotOptions[this.type].tooltip, Y.tooltip.userOptions, Z.series && Z.series.tooltip, Z[this.type].tooltip, A.tooltip), this.stickyTracking = m(A.stickyTracking, nt[this.type] && nt[this.type].stickyTracking, nt.series && nt.series.stickyTracking, this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : q.stickyTracking), et.marker === null && delete q.marker, this.zoneAxis = q.zoneAxis, Z = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (Y = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, H || (Y.color = q.negativeColor, Y.fillColor = q.negativeFillColor), Z.push(Y)), Z.length && p(Z[Z.length - 1].value) && Z.push(H ? {} : { color: this.color, fillColor: this.fillColor }), P(this, "afterSetOptions", { options: q }), q;
  12105. }, Q.prototype.getName = function() {
  12106. return m(this.options.name, "Series " + (this.index + 1));
  12107. }, Q.prototype.getCyclic = function(A, H, Y) {
  12108. var Z = this.chart, q = this.userOptions, it = A + "Index", et = A + "Counter", nt = Y ? Y.length : m(Z.options.chart[A + "Count"], Z[A + "Count"]);
  12109. if (!H) {
  12110. var rt = m(q[it], q["_" + it]);
  12111. p(rt) || (Z.series.length || (Z[et] = 0), q["_" + it] = rt = Z[et] % nt, Z[et] += 1), Y && (H = Y[rt]);
  12112. }
  12113. typeof rt < "u" && (this[it] = rt), this[A] = H;
  12114. }, Q.prototype.getColor = function() {
  12115. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || l.plotOptions[this.type].color, this.chart.options.colors);
  12116. }, Q.prototype.getPointsCollection = function() {
  12117. return (this.hasGroupedData ? this.points : this.data) || [];
  12118. }, Q.prototype.getSymbol = function() {
  12119. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  12120. }, Q.prototype.findPointIndex = function(A, H) {
  12121. var Y = A.id, Z = A.x, q = this.points, it = this.options.dataSorting, et, nt;
  12122. if (Y)
  12123. it = this.chart.get(Y), it instanceof V && (et = it);
  12124. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  12125. return !ct.touched && ct.index === A.index;
  12126. }, it && it.matchByName ? et = function(ct) {
  12127. return !ct.touched && ct.name === A.name;
  12128. } : this.options.relativeXValue && (et = function(ct) {
  12129. return !ct.touched && ct.options.x === A.x;
  12130. }), et = n(q, et), !et))
  12131. return;
  12132. if (et) {
  12133. var rt = et && et.index;
  12134. typeof rt < "u" && (nt = !0);
  12135. }
  12136. return typeof rt > "u" && W(Z) && (rt = this.xData.indexOf(Z, H)), rt !== -1 && typeof rt < "u" && this.cropped && (rt = rt >= this.cropStart ? rt - this.cropStart : rt), !nt && W(rt) && q[rt] && q[rt].touched && (rt = void 0), rt;
  12137. }, Q.prototype.updateData = function(A, H) {
  12138. var Y = this.options, Z = Y.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = A.length === q.length, rt, ct, gt, dt = !0;
  12139. if (this.xIncrement = null, A.forEach(function(ht, at) {
  12140. var J = p(ht) && this.pointClass.prototype.optionsToObject.call({ series: this }, ht) || {}, tt = J.x;
  12141. J.id || W(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(ht) : q[J] && ht !== Y.data[J] ? (q[J].update(ht, !1, null, !1), q[J].touched = !0, et && (gt = J + 1)) : q[J] && (q[J].touched = !0), (!nt || at !== J || Z && Z.enabled || this.hasDerivedData) && (rt = !0)) : it.push(ht);
  12142. }, this), rt)
  12143. for (A = q.length; A--; )
  12144. (ct = q[A]) && !ct.touched && ct.remove && ct.remove(!1, H);
  12145. else
  12146. !nt || Z && Z.enabled ? dt = !1 : (A.forEach(function(ht, at) {
  12147. ht !== q[at].y && q[at].update && q[at].update(
  12148. ht,
  12149. !1,
  12150. null,
  12151. !1
  12152. );
  12153. }), it.length = 0);
  12154. return q.forEach(function(ht) {
  12155. ht && (ht.touched = !1);
  12156. }), dt ? (it.forEach(function(ht) {
  12157. this.addPoint(ht, !1, null, null, !1);
  12158. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = v(this.xData), this.autoIncrement()), !0) : !1;
  12159. }, Q.prototype.setData = function(A, H, Y, Z) {
  12160. var q = this, it = q.points, et = it && it.length || 0, nt = q.options, rt = q.chart, ct = nt.dataSorting, gt = q.xAxis, dt = nt.turboThreshold, ht = this.xData, at = this.yData, J = q.pointArrayMap;
  12161. J = J && J.length;
  12162. var tt = nt.keys, ot, lt = 0, pt = 1, yt = null;
  12163. A = A || [];
  12164. var vt = A.length;
  12165. if (H = m(H, !0), ct && ct.enabled && (A = this.sortData(A)), Z !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (ot = this.updateData(A, Y)), !ot) {
  12166. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  12167. q[Ct + "Data"].length = 0;
  12168. }), dt && vt > dt)
  12169. if (yt = q.getFirstValidPoint(A), W(yt))
  12170. for (Y = 0; Y < vt; Y++)
  12171. ht[Y] = this.autoIncrement(), at[Y] = A[Y];
  12172. else if (I(yt))
  12173. if (J)
  12174. if (yt.length === J)
  12175. for (Y = 0; Y < vt; Y++)
  12176. ht[Y] = this.autoIncrement(), at[Y] = A[Y];
  12177. else
  12178. for (Y = 0; Y < vt; Y++)
  12179. Z = A[Y], ht[Y] = Z[0], at[Y] = Z.slice(
  12180. 1,
  12181. J + 1
  12182. );
  12183. else if (tt && (lt = tt.indexOf("x"), pt = tt.indexOf("y"), lt = 0 <= lt ? lt : 0, pt = 0 <= pt ? pt : 1), yt.length === 1 && (pt = 0), lt === pt)
  12184. for (Y = 0; Y < vt; Y++)
  12185. ht[Y] = this.autoIncrement(), at[Y] = A[Y][pt];
  12186. else
  12187. for (Y = 0; Y < vt; Y++)
  12188. Z = A[Y], ht[Y] = Z[lt], at[Y] = Z[pt];
  12189. else
  12190. t(12, !1, rt);
  12191. else
  12192. for (Y = 0; Y < vt; Y++)
  12193. typeof A[Y] < "u" && (Z = { series: q }, q.pointClass.prototype.applyOptions.apply(Z, [A[Y]]), q.updateParallelArrays(Z, Y));
  12194. for (at && E(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = A, Y = et; Y--; )
  12195. it[Y] && it[Y].destroy && it[Y].destroy();
  12196. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, Y = !1;
  12197. }
  12198. nt.legendType === "point" && (this.processData(), this.generatePoints()), H && rt.redraw(Y);
  12199. }, Q.prototype.sortData = function(A) {
  12200. var H = this, Y = H.options.dataSorting.sortKey || "y", Z = function(q, it) {
  12201. return p(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  12202. };
  12203. return A.forEach(function(q, it) {
  12204. A[it] = Z(H, q), A[it].index = it;
  12205. }, this), A.concat().sort(function(q, it) {
  12206. return q = D(Y, q), it = D(Y, it), it < q ? -1 : it > q ? 1 : 0;
  12207. }).forEach(function(q, it) {
  12208. q.x = it;
  12209. }, this), H.linkedSeries && H.linkedSeries.forEach(function(q) {
  12210. var it = q.options, et = it.data;
  12211. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  12212. et[rt] = Z(q, nt), A[rt] && (et[rt].x = A[rt].x, et[rt].index = rt);
  12213. }), q.setData(et, !1));
  12214. }), A;
  12215. }, Q.prototype.getProcessedData = function(A) {
  12216. var H = this.xAxis, Y = this.options, Z = Y.cropThreshold, q = A || this.getExtremesFromAll || Y.getExtremesFromAll, it = this.isCartesian;
  12217. A = H && H.val2lin, Y = !(!H || !H.logarithmic);
  12218. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  12219. if (H) {
  12220. gt = H.getExtremes();
  12221. var ht = gt.min, at = gt.max;
  12222. gt = H.categories && !H.names.length;
  12223. }
  12224. if (it && this.sorted && !q && (!Z || dt > Z || this.forceCrop)) {
  12225. if (nt[dt - 1] < ht || nt[0] > at)
  12226. nt = [], rt = [];
  12227. else if (this.yData && (nt[0] < ht || nt[dt - 1] > at)) {
  12228. var J = this.cropData(this.xData, this.yData, ht, at);
  12229. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  12230. }
  12231. }
  12232. for (Z = nt.length || 1; --Z; )
  12233. if (H = Y ? A(nt[Z]) - A(nt[Z - 1]) : nt[Z] - nt[Z - 1], 0 < H && (typeof tt > "u" || H < tt))
  12234. var tt = H;
  12235. else
  12236. 0 > H && ct && !gt && (t(15, !1, this.chart), ct = !1);
  12237. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  12238. }, Q.prototype.processData = function(A) {
  12239. var H = this.xAxis;
  12240. if (this.isCartesian && !this.isDirty && !H.isDirty && !this.yAxis.isDirty && !A)
  12241. return !1;
  12242. A = this.getProcessedData(), this.cropped = A.cropped, this.cropStart = A.cropStart, this.processedXData = A.xData, this.processedYData = A.yData, this.closestPointRange = this.basePointRange = A.closestPointRange, P(this, "afterProcessData");
  12243. }, Q.prototype.cropData = function(A, H, Y, Z, q) {
  12244. var it = A.length, et, nt = 0, rt = it;
  12245. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  12246. if (A[et] >= Y) {
  12247. nt = Math.max(0, et - q);
  12248. break;
  12249. }
  12250. for (Y = et; Y < it; Y++)
  12251. if (A[Y] > Z) {
  12252. rt = Y + q;
  12253. break;
  12254. }
  12255. return { xData: A.slice(nt, rt), yData: H.slice(
  12256. nt,
  12257. rt
  12258. ), start: nt, end: rt };
  12259. }, Q.prototype.generatePoints = function() {
  12260. var A = this.options, H = A.data, Y = this.processedXData, Z = this.processedYData, q = this.pointClass, it = Y.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = A.keys, ct = [];
  12261. A = A.dataGrouping && A.dataGrouping.groupAll ? et : 0;
  12262. var gt, dt, ht = this.data;
  12263. if (!ht && !nt) {
  12264. var at = [];
  12265. at.length = H.length, ht = this.data = at;
  12266. }
  12267. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  12268. if (at = et + dt, nt) {
  12269. var J = new q().init(this, [Y[dt]].concat(z(Z[dt])));
  12270. J.dataGroup = this.groupMap[A + dt], J.dataGroup.options && (J.options = J.dataGroup.options, s(J, J.dataGroup.options), delete J.dataLabels);
  12271. } else
  12272. (J = ht[at]) || typeof H[at] > "u" || (ht[at] = J = new q().init(this, H[at], Y[dt]));
  12273. J && (J.index = nt ? A + dt : at, ct[dt] = J);
  12274. }
  12275. if (this.options.keys = rt, ht && (it !== (gt = ht.length) || nt))
  12276. for (dt = 0; dt < gt; dt++)
  12277. dt !== et || nt || (dt += it), ht[dt] && (ht[dt].destroyElements(), ht[dt].plotX = void 0);
  12278. this.data = ht, this.points = ct, P(this, "afterGeneratePoints");
  12279. }, Q.prototype.getXExtremes = function(A) {
  12280. return { min: h(A), max: v(A) };
  12281. }, Q.prototype.getExtremes = function(A, H) {
  12282. var Y = this.xAxis, Z = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  12283. Z = Z ? Z.positiveValuesOnly : !1;
  12284. var nt, rt = 0, ct = 0, gt = 0;
  12285. A = A || this.stackedYData || this.processedYData || [];
  12286. var dt = A.length;
  12287. if (Y) {
  12288. var ht = Y.getExtremes();
  12289. rt = ht.min, ct = ht.max;
  12290. }
  12291. for (nt = 0; nt < dt; nt++) {
  12292. var at = q[nt];
  12293. ht = A[nt];
  12294. var J = (W(ht) || I(ht)) && (ht.length || 0 < ht || !Z);
  12295. if (at = H || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !Y || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  12296. if (J = ht.length)
  12297. for (; J--; )
  12298. W(ht[J]) && (it[gt++] = ht[J]);
  12299. else
  12300. it[gt++] = ht;
  12301. }
  12302. return A = { activeYData: it, dataMin: h(it), dataMax: v(it) }, P(this, "afterGetExtremes", { dataExtremes: A }), A;
  12303. }, Q.prototype.applyExtremes = function() {
  12304. var A = this.getExtremes();
  12305. return this.dataMin = A.dataMin, this.dataMax = A.dataMax, A;
  12306. }, Q.prototype.getFirstValidPoint = function(A) {
  12307. for (var H = A.length, Y = 0, Z = null; Z === null && Y < H; )
  12308. Z = A[Y], Y++;
  12309. return Z;
  12310. }, Q.prototype.translate = function() {
  12311. this.processedXData || this.processData(), this.generatePoints();
  12312. var A = this.options, H = A.stacking, Y = this.xAxis, Z = Y.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = A.threshold, dt = A.startFromThreshold ? gt : 0, ht = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  12313. for (at = 0; at < nt; at++) {
  12314. var ot = et[at], lt = ot.x, pt = void 0, yt = void 0, vt = ot.y, Ct = ot.low, Pt = H && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  12315. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || Y.positiveValuesOnly && !Y.validatePositiveValue(lt)) && (ot.isNull = !0), ot.plotX = J = i(c(Y.translate(lt, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), H && this.visible && Pt && Pt[lt]) {
  12316. var At = this.getStackIndicator(
  12317. At,
  12318. lt,
  12319. this.index
  12320. );
  12321. ot.isNull || (pt = Pt[lt], yt = pt.points[At.key]);
  12322. }
  12323. if (I(yt) && (Ct = yt[0], vt = yt[1], Ct === dt && At.key === Pt[lt].base && (Ct = m(W(gt) && gt, it.min)), it.positiveValuesOnly && 0 >= Ct && (Ct = null), ot.total = ot.stackTotal = pt.total, ot.percentage = pt.total && ot.y / pt.total * 100, ot.stackY = vt, this.irregularWidths || pt.setOffset(this.pointXOffset || 0, this.barW || 0)), ot.yBottom = p(Ct) ? c(it.translate(Ct, 0, 1, 0, 1), -1e5, 1e5) : null, this.dataModify && (vt = this.dataModify.modifyValue(vt, at)), ot.plotY = void 0, W(vt) && (pt = it.translate(vt, !1, !0, !1, !0), typeof pt < "u" && (ot.plotY = c(
  12324. pt,
  12325. -1e5,
  12326. 1e5
  12327. ))), ot.isInside = this.isPointInside(ot), ot.clientX = ct ? i(Y.translate(lt, 0, 0, 0, 1, rt)) : J, ot.negative = ot[ht] < (A[ht + "Threshold"] || gt || 0), ot.category = Z && typeof Z[ot.x] < "u" ? Z[ot.x] : ot.x, !ot.isNull && ot.visible !== !1) {
  12328. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  12329. var St = J;
  12330. }
  12331. ot.zone = this.zones.length ? ot.getZone() : void 0, !ot.graphic && this.group && q && (ot.isNew = !0);
  12332. }
  12333. this.closestPointRangePx = tt, P(this, "afterTranslate");
  12334. }, Q.prototype.getValidPoints = function(A, H, Y) {
  12335. var Z = this.chart;
  12336. return (A || this.points || []).filter(function(q) {
  12337. return H && !Z.isInsidePlot(q.plotX, q.plotY, { inverted: Z.inverted }) ? !1 : q.visible !== !1 && (Y || !q.isNull);
  12338. });
  12339. }, Q.prototype.getClipBox = function() {
  12340. var A = this.chart, H = this.xAxis, Y = this.yAxis, Z = X(A.clipBox);
  12341. return H && H.len !== A.plotSizeX && (Z.width = H.len), Y && Y.len !== A.plotSizeY && (Z.height = Y.len), Z;
  12342. }, Q.prototype.getSharedClipKey = function() {
  12343. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  12344. }, Q.prototype.setClip = function() {
  12345. var A = this.chart, H = this.group, Y = this.markerGroup, Z = A.sharedClips;
  12346. A = A.renderer;
  12347. var q = this.getClipBox(), it = this.getSharedClipKey(), et = Z[it];
  12348. et ? et.animate(q) : Z[it] = et = A.clipRect(q), H && H.clip(this.options.clip === !1 ? void 0 : et), Y && Y.clip();
  12349. }, Q.prototype.animate = function(A) {
  12350. var H = this.chart, Y = this.group, Z = this.markerGroup, q = H.inverted, it = x(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = H.sharedClips[et], rt = H.sharedClips[et + "m"];
  12351. if (A && Y)
  12352. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = H.plotHeight), nt = H.renderer.clipRect(it), H.sharedClips[et] = nt, rt = H.renderer.clipRect({ x: q ? (H.plotSizeX || 0) + 99 : -99, y: q ? -H.plotLeft : -H.plotTop, width: 99, height: q ? H.chartWidth : H.chartHeight }), H.sharedClips[et + "m"] = rt), Y.clip(nt), Z && Z.clip(rt);
  12353. else if (nt && !nt.hasClass("highcharts-animating")) {
  12354. H = this.getClipBox();
  12355. var ct = it.step;
  12356. Z && Z.element.childNodes.length && (it.step = function(gt, dt) {
  12357. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  12358. }), nt.addClass("highcharts-animating").animate(H, it);
  12359. }
  12360. }, Q.prototype.afterAnimate = function() {
  12361. var A = this;
  12362. this.setClip(), g(
  12363. this.chart.sharedClips,
  12364. function(H, Y, Z) {
  12365. H && !A.chart.container.querySelector('[clip-path="url(#' + H.id + ')"]') && (H.destroy(), delete Z[Y]);
  12366. }
  12367. ), this.finishedAnimating = !0, P(this, "afterAnimate");
  12368. }, Q.prototype.drawPoints = function() {
  12369. var A = this.points, H = this.chart, Y = this.options.marker, Z = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(Y.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= Y.enabledThreshold * Y.radius), et, nt;
  12370. if (Y.enabled !== !1 || this._hasPointMarkers)
  12371. for (et = 0; et < A.length; et++) {
  12372. var rt = A[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  12373. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  12374. var ht = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  12375. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  12376. var J = rt.isInside !== !1;
  12377. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = H.renderer.symbol(ht, at.x, at.y, at.width, at.height, dt ? gt : Y).add(Z), this.enabledDataSorting && H.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !H.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  12378. } else
  12379. nt && (rt.graphic = nt.destroy());
  12380. }
  12381. }, Q.prototype.markerAttribs = function(A, H) {
  12382. var Y = this.options, Z = Y.marker, q = A.marker || {}, it = q.symbol || Z.symbol, et = m(q.radius, Z.radius);
  12383. return H && (Z = Z.states[H], H = q.states && q.states[H], et = m(H && H.radius, Z && Z.radius, et + (Z && Z.radiusPlus || 0))), A.hasImage = it && it.indexOf("url") === 0, A.hasImage && (et = 0), A = { x: Y.crisp ? Math.floor(A.plotX - et) : A.plotX - et, y: A.plotY - et }, et && (A.width = A.height = 2 * et), A;
  12384. }, Q.prototype.pointAttribs = function(A, H) {
  12385. var Y = this.options.marker, Z = A && A.options, q = Z && Z.marker || {}, it = Z && Z.color, et = A && A.color, nt = A && A.zone && A.zone.color, rt = this.color;
  12386. return A = m(q.lineWidth, Y.lineWidth), Z = 1, rt = it || nt || et || rt, it = q.fillColor || Y.fillColor || rt, et = q.lineColor || Y.lineColor || rt, H = H || "normal", Y = Y.states[H] || {}, H = q.states && q.states[H] || {}, A = m(H.lineWidth, Y.lineWidth, A + m(H.lineWidthPlus, Y.lineWidthPlus, 0)), it = H.fillColor || Y.fillColor || it, et = H.lineColor || Y.lineColor || et, Z = m(H.opacity, Y.opacity, Z), { stroke: et, "stroke-width": A, fill: it, opacity: Z };
  12387. }, Q.prototype.destroy = function(A) {
  12388. var H = this, Y = H.chart, Z = /AppleWebKit\/533/.test(k.navigator.userAgent), q = H.data || [], it, et, nt, rt;
  12389. for (P(H, "destroy"), this.removeEvents(A), (H.axisTypes || []).forEach(function(ct) {
  12390. (rt = H[ct]) && rt.series && (a(rt.series, H), rt.isDirty = rt.forceRedraw = !0);
  12391. }), H.legendItem && H.chart.legend.destroyItem(H), et = q.length; et--; )
  12392. (nt = q[et]) && nt.destroy && nt.destroy();
  12393. H.clips && H.clips.forEach(function(ct) {
  12394. return ct.destroy();
  12395. }), w.clearTimeout(H.animationTimeout), g(H, function(ct, gt) {
  12396. ct instanceof j && !ct.survive && (it = Z && gt === "group" ? "hide" : "destroy", ct[it]());
  12397. }), Y.hoverSeries === H && (Y.hoverSeries = void 0), a(Y.series, H), Y.orderSeries(), g(H, function(ct, gt) {
  12398. A && gt === "hcEvents" || delete H[gt];
  12399. });
  12400. }, Q.prototype.applyZones = function() {
  12401. var A = this, H = this.chart, Y = H.renderer, Z = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(H.chartWidth, H.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = H.inverted, gt, dt, ht, at, J, tt, ot, lt, pt = !1;
  12402. if (Z.length && (it || et) && rt && typeof rt.min < "u") {
  12403. var yt = rt.reversed, vt = rt.horiz;
  12404. it && !this.showLine && it.hide(), et && et.hide();
  12405. var Ct = rt.getExtremes();
  12406. Z.forEach(function(Pt, At) {
  12407. gt = yt ? vt ? H.plotWidth : 0 : vt ? 0 : rt.toPixels(Ct.min) || 0, gt = c(m(dt, gt), 0, nt), dt = c(Math.round(rt.toPixels(m(Pt.value, Ct.max), !0) || 0), 0, nt), pt && (gt = dt = rt.toPixels(Ct.max)), at = Math.abs(gt - dt), J = Math.min(gt, dt), tt = Math.max(gt, dt), rt.isXAxis ? (ht = { x: ct ? tt : J, y: 0, width: at, height: nt }, vt || (ht.x = H.plotHeight - ht.x)) : (ht = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (ht.y = H.plotWidth - ht.y)), ct && Y.isVML && (ht = rt.isXAxis ? {
  12408. x: 0,
  12409. y: yt ? J : tt,
  12410. height: ht.width,
  12411. width: H.chartWidth
  12412. } : { x: ht.y - H.plotLeft - H.spacingBox.x, y: 0, width: ht.height, height: H.chartHeight }), q[At] ? q[At].animate(ht) : q[At] = Y.clipRect(ht), ot = A["zone-area-" + At], lt = A["zone-graph-" + At], it && lt && lt.clip(q[At]), et && ot && ot.clip(q[At]), pt = Pt.value > Ct.max, A.resetZones && dt === 0 && (dt = void 0);
  12413. }), this.clips = q;
  12414. } else
  12415. A.visible && (it && it.show(!0), et && et.show(!0));
  12416. }, Q.prototype.invertGroups = function(A) {
  12417. function H() {
  12418. ["group", "markerGroup"].forEach(function(q) {
  12419. Y[q] && (Z.renderer.isVML && Y[q].attr({ width: Y.yAxis.len, height: Y.xAxis.len }), Y[q].width = Y.yAxis.len, Y[q].height = Y.xAxis.len, Y[q].invert(Y.isRadialSeries ? !1 : A));
  12420. });
  12421. }
  12422. var Y = this, Z = Y.chart;
  12423. Y.xAxis && (Y.eventsToUnbind.push(S(Z, "resize", H)), H(), Y.invertGroups = H);
  12424. }, Q.prototype.plotGroup = function(A, H, Y, Z, q) {
  12425. var it = this[A], et = !it;
  12426. return Y = { visibility: Y, zIndex: Z || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (Y.opacity = this.opacity), et && (this[A] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + H + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (p(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(Y)[et ? "attr" : "animate"](this.getPlotBox()), it;
  12427. }, Q.prototype.getPlotBox = function() {
  12428. var A = this.chart, H = this.xAxis, Y = this.yAxis;
  12429. return A.inverted && (H = Y, Y = this.xAxis), { translateX: H ? H.left : A.plotLeft, translateY: Y ? Y.top : A.plotTop, scaleX: 1, scaleY: 1 };
  12430. }, Q.prototype.removeEvents = function(A) {
  12431. A || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(H) {
  12432. H();
  12433. }), this.eventsToUnbind.length = 0);
  12434. }, Q.prototype.render = function() {
  12435. var A = this, H = A.chart, Y = A.options, Z = x(Y.animation), q = A.visible ? "inherit" : "hidden", it = Y.zIndex, et = A.hasRendered, nt = H.seriesGroup, rt = H.inverted;
  12436. H = !A.finishedAnimating && H.renderer.isSVG ? Z.duration : 0, P(this, "render");
  12437. var ct = A.plotGroup("group", "series", q, it, nt);
  12438. A.markerGroup = A.plotGroup("markerGroup", "markers", q, it, nt), Y.clip !== !1 && A.setClip(), A.animate && H && A.animate(!0), ct.inverted = m(A.invertible, A.isCartesian) ? rt : !1, A.drawGraph && (A.drawGraph(), A.applyZones()), A.visible && A.drawPoints(), A.drawDataLabels && A.drawDataLabels(), A.redrawPoints && A.redrawPoints(), A.drawTracker && A.options.enableMouseTracking !== !1 && A.drawTracker(), A.invertGroups(rt), A.animate && H && A.animate(), et || (H && Z.defer && (H += Z.defer), A.animationTimeout = $(function() {
  12439. A.afterAnimate();
  12440. }, H || 0)), A.isDirty = !1, A.hasRendered = !0, P(A, "afterRender");
  12441. }, Q.prototype.redraw = function() {
  12442. var A = this.chart, H = this.isDirty || this.isDirtyData, Y = this.group, Z = this.xAxis, q = this.yAxis;
  12443. Y && (A.inverted && Y.attr({
  12444. width: A.plotWidth,
  12445. height: A.plotHeight
  12446. }), Y.animate({ translateX: m(Z && Z.left, A.plotLeft), translateY: m(q && q.top, A.plotTop) })), this.translate(), this.render(), H && delete this.kdTree;
  12447. }, Q.prototype.searchPoint = function(A, H) {
  12448. var Y = this.xAxis, Z = this.yAxis, q = this.chart.inverted;
  12449. return this.searchKDTree({ clientX: q ? Y.len - A.chartY + Y.pos : A.chartX - Y.pos, plotY: q ? Z.len - A.chartX + Z.pos : A.chartY - Z.pos }, H, A);
  12450. }, Q.prototype.buildKDTree = function(A) {
  12451. function H(q, it, et) {
  12452. var nt = q && q.length;
  12453. if (nt) {
  12454. var rt = Y.kdAxisArray[it % et];
  12455. return q.sort(function(ct, gt) {
  12456. return ct[rt] - gt[rt];
  12457. }), nt = Math.floor(nt / 2), { point: q[nt], left: H(q.slice(0, nt), it + 1, et), right: H(q.slice(nt + 1), it + 1, et) };
  12458. }
  12459. }
  12460. this.buildingKdTree = !0;
  12461. var Y = this, Z = -1 < Y.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  12462. delete Y.kdTree, $(function() {
  12463. Y.kdTree = H(Y.getValidPoints(null, !Y.directTouch), Z, Z), Y.buildingKdTree = !1;
  12464. }, Y.options.kdNow || A && A.type === "touchstart" ? 0 : 1);
  12465. }, Q.prototype.searchKDTree = function(A, H, Y) {
  12466. function Z(rt, ct, gt, dt) {
  12467. var ht = ct.point, at = q.kdAxisArray[gt % dt], J = ht, tt = p(rt[it]) && p(ht[it]) ? Math.pow(rt[it] - ht[it], 2) : null, ot = p(rt[et]) && p(ht[et]) ? Math.pow(rt[et] - ht[et], 2) : null;
  12468. return ot = (tt || 0) + (ot || 0), ht.dist = p(ot) ? Math.sqrt(ot) : Number.MAX_VALUE, ht.distX = p(tt) ? Math.sqrt(tt) : Number.MAX_VALUE, at = rt[at] - ht[at], ot = 0 > at ? "left" : "right", tt = 0 > at ? "right" : "left", ct[ot] && (ot = Z(rt, ct[ot], gt + 1, dt), J = ot[nt] < J[nt] ? ot : ht), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = Z(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  12469. }
  12470. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = H ? "distX" : "dist";
  12471. if (H = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(Y), this.kdTree)
  12472. return Z(
  12473. A,
  12474. this.kdTree,
  12475. H,
  12476. H
  12477. );
  12478. }, Q.prototype.pointPlacementToXValue = function() {
  12479. var A = this.options, H = A.pointRange, Y = this.xAxis;
  12480. return A = A.pointPlacement, A === "between" && (A = Y.reversed ? -0.5 : 0.5), W(A) ? A * (H || Y.pointRange) : 0;
  12481. }, Q.prototype.isPointInside = function(A) {
  12482. var H = this.chart, Y = this.xAxis, Z = this.yAxis;
  12483. return typeof A.plotY < "u" && typeof A.plotX < "u" && 0 <= A.plotY && A.plotY <= (Z ? Z.len : H.plotHeight) && 0 <= A.plotX && A.plotX <= (Y ? Y.len : H.plotWidth);
  12484. }, Q.prototype.drawTracker = function() {
  12485. var A = this, H = A.options, Y = H.trackByArea, Z = [].concat(Y ? A.areaPath : A.graphPath), q = A.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = A.tracker, ct = function(dt) {
  12486. q.hoverSeries !== A && A.onMouseOver();
  12487. }, gt = "rgba(192,192,192," + (R ? 1e-4 : 2e-3) + ")";
  12488. rt ? rt.attr({ d: Z }) : A.graph && (A.tracker = et.path(Z).attr({ visibility: A.visible ? "visible" : "hidden", zIndex: 2 }).addClass(Y ? "highcharts-tracker-area" : "highcharts-tracker-line").add(A.group), q.styledMode || A.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: Y ? gt : "none", "stroke-width": A.graph.strokeWidth() + (Y ? 0 : 2 * nt) }), [A.tracker, A.markerGroup, A.dataLabelsGroup].forEach(function(dt) {
  12489. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(ht) {
  12490. it.onTrackerMouseOut(ht);
  12491. }), H.cursor && !q.styledMode && dt.css({ cursor: H.cursor }), O) && dt.on("touchstart", ct);
  12492. })), P(this, "afterDrawTracker");
  12493. }, Q.prototype.addPoint = function(A, H, Y, Z, q) {
  12494. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  12495. rt = rt && rt.hasNames && rt.names;
  12496. var ct = it.data, gt = this.xData, dt;
  12497. H = m(H, !0);
  12498. var ht = { series: this };
  12499. this.pointClass.prototype.applyOptions.apply(
  12500. ht,
  12501. [A]
  12502. );
  12503. var at = ht.x, J = gt.length;
  12504. if (this.requireSorting && at < gt[J - 1])
  12505. for (dt = !0; J && gt[J - 1] > at; )
  12506. J--;
  12507. this.updateParallelArrays(ht, "splice", J, 0, 0), this.updateParallelArrays(ht, J), rt && ht.name && (rt[at] = ht.name), ct.splice(J, 0, A), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), Y && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(ht, "shift"), ct.shift())), q !== !1 && P(this, "addPoint", { point: ht }), this.isDirtyData = this.isDirty = !0, H && nt.redraw(Z);
  12508. }, Q.prototype.removePoint = function(A, H, Y) {
  12509. var Z = this, q = Z.data, it = q[A], et = Z.points, nt = Z.chart, rt = function() {
  12510. et && et.length === q.length && et.splice(A, 1), q.splice(A, 1), Z.options.data.splice(A, 1), Z.updateParallelArrays(it || { series: Z }, "splice", A, 1), it && it.destroy(), Z.isDirty = !0, Z.isDirtyData = !0, H && nt.redraw();
  12511. };
  12512. f(Y, nt), H = m(H, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  12513. }, Q.prototype.remove = function(A, H, Y, Z) {
  12514. function q() {
  12515. it.destroy(Z), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(A, !0) && et.redraw(H);
  12516. }
  12517. var it = this, et = it.chart;
  12518. Y !== !1 ? P(
  12519. it,
  12520. "remove",
  12521. null,
  12522. q
  12523. ) : q();
  12524. }, Q.prototype.update = function(A, H) {
  12525. A = u(A, this.userOptions), P(this, "update", { options: A });
  12526. var Y = this, Z = Y.chart, q = Y.userOptions, it = Y.initialType || Y.type, et = Z.options.plotOptions, nt = b[it].prototype, rt = Y.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], ht = A.type || q.type || Z.options.chart.type, at = !(this.hasDerivedData || ht && ht !== this.type || typeof A.pointStart < "u" || typeof A.pointInterval < "u" || typeof A.relativeXValue < "u" || Y.hasOptionChanged("dataGrouping") || Y.hasOptionChanged("pointStart") || Y.hasOptionChanged("pointInterval") || Y.hasOptionChanged("pointIntervalUnit") || Y.hasOptionChanged("keys"));
  12527. if (ht = ht || it, at && (dt.push("data", "isDirtyData", "points", "processedXData", "processedYData", "xIncrement", "cropped", "_hasPointMarkers", "_hasPointLabels", "clips", "nodes", "layout", "mapMap", "mapData", "minY", "maxY", "minX", "maxX"), A.visible !== !1 && dt.push("area", "graph"), Y.parallelArrays.forEach(function(tt) {
  12528. dt.push(tt + "Data");
  12529. }), A.data && (A.dataSorting && s(Y.options.dataSorting, A.dataSorting), this.setData(A.data, !1))), A = X(q, rt, { index: typeof q.index > "u" ? Y.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, Y.xData[0]) }, !at && { data: Y.options.data }, A), at && A.data && (A.data = Y.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  12530. dt[tt] = Y[tt], delete Y[tt];
  12531. }), et = !1, b[ht]) {
  12532. if (et = ht !== Y.type, Y.remove(!1, !1, !1, !0), et)
  12533. if (Object.setPrototypeOf)
  12534. Object.setPrototypeOf(Y, b[ht].prototype);
  12535. else {
  12536. rt = Object.hasOwnProperty.call(Y, "hcEvents") && Y.hcEvents;
  12537. for (gt in nt)
  12538. Y[gt] = void 0;
  12539. s(Y, b[ht].prototype), rt ? Y.hcEvents = rt : delete Y.hcEvents;
  12540. }
  12541. } else
  12542. t(17, !0, Z, { missingModuleFor: ht });
  12543. if (dt.forEach(function(tt) {
  12544. Y[tt] = dt[tt];
  12545. }), Y.init(Z, A), at && this.points) {
  12546. var J = Y.options;
  12547. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : Y._hasPointLabels || (A = J.marker, nt = J.dataLabels, !A || A.enabled !== !1 && (q.marker && q.marker.symbol) === A.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  12548. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && Z.legend.destroyItem(tt));
  12549. }, this);
  12550. }
  12551. Y.initialType = it, Z.linkSeries(), et && Y.linkedSeries.length && (Y.isDirtyData = !0), P(this, "afterUpdate"), m(H, !0) && Z.redraw(at ? void 0 : !1);
  12552. }, Q.prototype.setName = function(A) {
  12553. this.name = this.options.name = this.userOptions.name = A, this.chart.isDirtyLegend = !0;
  12554. }, Q.prototype.hasOptionChanged = function(A) {
  12555. var H = this.options[A], Y = this.chart.options.plotOptions, Z = this.userOptions[A];
  12556. return Z ? H !== Z : H !== m(
  12557. Y && Y[this.type] && Y[this.type][A],
  12558. Y && Y.series && Y.series[A],
  12559. H
  12560. );
  12561. }, Q.prototype.onMouseOver = function() {
  12562. var A = this.chart, H = A.hoverSeries;
  12563. A.pointer.setHoverChartIndex(), H && H !== this && H.onMouseOut(), this.options.events.mouseOver && P(this, "mouseOver"), this.setState("hover"), A.hoverSeries = this;
  12564. }, Q.prototype.onMouseOut = function() {
  12565. var A = this.options, H = this.chart, Y = H.tooltip, Z = H.hoverPoint;
  12566. H.hoverSeries = null, Z && Z.onMouseOut(), this && A.events.mouseOut && P(this, "mouseOut"), !Y || this.stickyTracking || Y.shared && !this.noSharedTooltip || Y.hide(), H.series.forEach(function(q) {
  12567. q.setState(
  12568. "",
  12569. !0
  12570. );
  12571. });
  12572. }, Q.prototype.setState = function(A, H) {
  12573. var Y = this, Z = Y.options, q = Y.graph, it = Z.inactiveOtherPoints, et = Z.states, nt = m(et[A || "normal"] && et[A || "normal"].animation, Y.chart.options.chart.animation), rt = Z.lineWidth, ct = 0, gt = Z.opacity;
  12574. if (A = A || "", Y.state !== A && ([Y.group, Y.markerGroup, Y.dataLabelsGroup].forEach(function(dt) {
  12575. dt && (Y.state && dt.removeClass("highcharts-series-" + Y.state), A && dt.addClass("highcharts-series-" + A));
  12576. }), Y.state = A, !Y.chart.styledMode)) {
  12577. if (et[A] && et[A].enabled === !1)
  12578. return;
  12579. if (A && (rt = et[A].lineWidth || rt + (et[A].lineWidthPlus || 0), gt = m(et[A].opacity, gt)), q && !q.dashstyle)
  12580. for (Z = { "stroke-width": rt }, q.animate(Z, nt); Y["zone-graph-" + ct]; )
  12581. Y["zone-graph-" + ct].animate(Z, nt), ct += 1;
  12582. it || [Y.group, Y.markerGroup, Y.dataLabelsGroup, Y.labelBySeries].forEach(function(dt) {
  12583. dt && dt.animate({ opacity: gt }, nt);
  12584. });
  12585. }
  12586. H && it && Y.points && Y.setAllPointsToState(A || void 0);
  12587. }, Q.prototype.setAllPointsToState = function(A) {
  12588. this.points.forEach(function(H) {
  12589. H.setState && H.setState(A);
  12590. });
  12591. }, Q.prototype.setVisible = function(A, H) {
  12592. var Y = this, Z = Y.chart, q = Y.legendItem, it = Z.options.chart.ignoreHiddenSeries, et = Y.visible, nt = (Y.visible = A = Y.options.visible = Y.userOptions.visible = typeof A > "u" ? !et : A) ? "show" : "hide";
  12593. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  12594. Y[rt] && Y[rt][nt]();
  12595. }), (Z.hoverSeries === Y || (Z.hoverPoint && Z.hoverPoint.series) === Y) && Y.onMouseOut(), q && Z.legend.colorizeItem(Y, A), Y.isDirty = !0, Y.options.stacking && Z.series.forEach(function(rt) {
  12596. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  12597. }), Y.linkedSeries.forEach(function(rt) {
  12598. rt.setVisible(A, !1);
  12599. }), it && (Z.isDirtyBox = !0), P(Y, nt), H !== !1 && Z.redraw();
  12600. }, Q.prototype.show = function() {
  12601. this.setVisible(!0);
  12602. }, Q.prototype.hide = function() {
  12603. this.setVisible(!1);
  12604. }, Q.prototype.select = function(A) {
  12605. this.selected = A = this.options.selected = typeof A > "u" ? !this.selected : A, this.checkbox && (this.checkbox.checked = A), P(this, A ? "select" : "unselect");
  12606. }, Q.prototype.shouldShowTooltip = function(A, H, Y) {
  12607. return Y === void 0 && (Y = {}), Y.series = this, Y.visiblePlotOnly = !0, this.chart.isInsidePlot(A, H, Y);
  12608. }, Q.defaultOptions = F, Q;
  12609. }(), s(y.prototype, { axisTypes: [
  12610. "xAxis",
  12611. "yAxis"
  12612. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: G.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: V, requireSorting: !0, sorted: !0 }), B.series = y, y;
  12613. }), C(o, "Extensions/ScrollablePlotArea.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Axis/Axis.js"], o["Core/Chart/Chart.js"], o["Core/Series/Series.js"], o["Core/Renderer/RendererRegistry.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V) {
  12614. var F = y.stop, B = V.addEvent, j = V.createElement, w = V.merge, x = V.pick;
  12615. B(_, "afterSetChartSize", function(f) {
  12616. var l = this.options.chart.scrollablePlotArea, T = l && l.minWidth;
  12617. if (l = l && l.minHeight, !this.renderer.forExport) {
  12618. if (T) {
  12619. if (this.scrollablePixelsX = T = Math.max(0, T - this.chartWidth)) {
  12620. this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.width = this.plotWidth += T, this.inverted ? this.clipBox.height += T : this.clipBox.width += T;
  12621. var O = { 1: { name: "right", value: T } };
  12622. }
  12623. } else
  12624. l && (this.scrollablePixelsY = T = Math.max(
  12625. 0,
  12626. l - this.chartHeight
  12627. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = w(this.plotBox), this.plotBox.height = this.plotHeight += T, this.inverted ? this.clipBox.width += T : this.clipBox.height += T, O = { 2: { name: "bottom", value: T } });
  12628. O && !f.skipAxes && this.axes.forEach(function(R) {
  12629. O[R.side] ? R.getPlotLinePath = function() {
  12630. var k = O[R.side].name, b = this[k];
  12631. this[k] = b - O[R.side].value;
  12632. var S = N.prototype.getPlotLinePath.apply(this, arguments);
  12633. return this[k] = b, S;
  12634. } : (R.setAxisSize(), R.setAxisTranslation());
  12635. });
  12636. }
  12637. }), B(_, "render", function() {
  12638. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  12639. }), _.prototype.setUpScrolling = function() {
  12640. var f = this, l = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  12641. this.scrollablePixelsX && (l.overflowX = "auto"), this.scrollablePixelsY && (l.overflowY = "auto"), this.scrollingParent = j("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = j(
  12642. "div",
  12643. { className: "highcharts-scrolling" },
  12644. l,
  12645. this.scrollingParent
  12646. ), B(this.scrollingContainer, "scroll", function() {
  12647. f.pointer && delete f.pointer.chartPosition;
  12648. }), this.innerContainer = j("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  12649. }, _.prototype.moveFixedElements = function() {
  12650. var f = this.container, l = this.fixedRenderer, T = ".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(" "), O;
  12651. this.scrollablePixelsX && !this.inverted ? O = ".highcharts-yaxis" : this.scrollablePixelsX && this.inverted || this.scrollablePixelsY && !this.inverted ? O = ".highcharts-xaxis" : this.scrollablePixelsY && this.inverted && (O = ".highcharts-yaxis"), O && T.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), T.forEach(function(R) {
  12652. [].forEach.call(f.querySelectorAll(R), function(k) {
  12653. (k.namespaceURI === l.SVG_NS ? l.box : l.box.parentNode).appendChild(k), k.style.pointerEvents = "auto";
  12654. });
  12655. });
  12656. }, _.prototype.applyFixed = function() {
  12657. var f = !this.fixedDiv, l = this.options.chart, T = l.scrollablePlotArea, O = G.getRendererType();
  12658. f ? (this.fixedDiv = j("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (l.style && l.style.zIndex || 0) + 2, top: 0 }, null, !0), this.scrollingContainer && this.scrollingContainer.parentNode.insertBefore(this.fixedDiv, this.scrollingContainer), this.renderTo.style.overflow = "visible", this.fixedRenderer = l = new O(
  12659. this.fixedDiv,
  12660. this.chartWidth,
  12661. this.chartHeight,
  12662. this.options.chart.style
  12663. ), this.scrollableMask = l.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": x(T.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), B(this, "afterShowResetZoom", this.moveFixedElements), B(this, "afterDrilldown", this.moveFixedElements), B(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || f) && (this.scrollableDirty = !1, this.moveFixedElements()), l = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = l + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: l, height: O, viewBox: [0, 0, l, O].join(" ") }), this.chartBackground.attr({ width: l, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", f && (T.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * T.scrollPositionX), T.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * T.scrollPositionY)), O = this.axisOffset, f = this.plotTop - O[0] - 1, T = this.plotLeft - O[3] - 1, l = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  12664. var R = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), k = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  12665. f = this.scrollablePixelsX ? [["M", 0, f], ["L", this.plotLeft - 1, f], ["L", this.plotLeft - 1, l], ["L", 0, l], ["Z"], ["M", R, f], ["L", this.chartWidth, f], ["L", this.chartWidth, l], ["L", R, l], ["Z"]] : this.scrollablePixelsY ? [["M", T, 0], ["L", T, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", T, k], ["L", T, this.chartHeight], ["L", O, this.chartHeight], ["L", O, k], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d: f });
  12666. }, B(N, "afterInit", function() {
  12667. this.chart.scrollableDirty = !0;
  12668. }), B(U, "show", function() {
  12669. this.chart.scrollableDirty = !0;
  12670. });
  12671. }), C(o, "Core/Axis/StackingAxis.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Axis/Axis.js"], o["Core/Utilities.js"]], function(y, N, _) {
  12672. var U = y.getDeferredAnimation, G = _.addEvent, V = _.destroyObjectProperties, F = _.fireEvent, B = _.isNumber, j = _.objectEach, w;
  12673. return function(x) {
  12674. function f() {
  12675. var R = this.stacking;
  12676. if (R) {
  12677. var k = R.stacks;
  12678. j(k, function(b, S) {
  12679. V(b), k[S] = null;
  12680. }), R && R.stackTotalGroup && R.stackTotalGroup.destroy();
  12681. }
  12682. }
  12683. function l() {
  12684. this.stacking || (this.stacking = new O(this));
  12685. }
  12686. var T = [];
  12687. x.compose = function(R) {
  12688. return T.indexOf(R) === -1 && (T.push(R), G(R, "init", l), G(R, "destroy", f)), R;
  12689. };
  12690. var O = function() {
  12691. function R(k) {
  12692. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = k;
  12693. }
  12694. return R.prototype.buildStacks = function() {
  12695. var k = this.axis, b = k.series, S = k.options.reversedStacks, v = b.length, h;
  12696. if (!k.isXAxis) {
  12697. for (this.usePercentage = !1, h = v; h--; ) {
  12698. var c = b[S ? h : v - h - 1];
  12699. c.setStackedPoints(), c.setGroupedPoints();
  12700. }
  12701. for (h = 0; h < v; h++)
  12702. b[h].modifyStacks();
  12703. F(k, "afterBuildStacks");
  12704. }
  12705. }, R.prototype.cleanStacks = function() {
  12706. if (!this.axis.isXAxis) {
  12707. if (this.oldStacks)
  12708. var k = this.stacks = this.oldStacks;
  12709. j(k, function(b) {
  12710. j(b, function(S) {
  12711. S.cumulative = S.total;
  12712. });
  12713. });
  12714. }
  12715. }, R.prototype.resetStacks = function() {
  12716. var k = this, b = k.stacks;
  12717. k.axis.isXAxis || j(b, function(S) {
  12718. j(
  12719. S,
  12720. function(v, h) {
  12721. B(v.touched) && v.touched < k.stacksTouched ? (v.destroy(), delete S[h]) : (v.total = null, v.cumulative = null);
  12722. }
  12723. );
  12724. });
  12725. }, R.prototype.renderStackTotals = function() {
  12726. var k = this.axis, b = k.chart, S = b.renderer, v = this.stacks;
  12727. k = U(b, k.options.stackLabels && k.options.stackLabels.animation || !1);
  12728. var h = this.stackTotalGroup = this.stackTotalGroup || S.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  12729. h.translate(b.plotLeft, b.plotTop), j(v, function(c) {
  12730. j(c, function(u) {
  12731. u.render(h);
  12732. });
  12733. }), h.animate(
  12734. { opacity: 1 },
  12735. k
  12736. );
  12737. }, R;
  12738. }();
  12739. x.Additions = O;
  12740. }(w || (w = {})), w;
  12741. }), C(o, "Extensions/Stacking.js", [o["Core/Axis/Axis.js"], o["Core/Chart/Chart.js"], o["Core/FormatUtilities.js"], o["Core/Globals.js"], o["Core/Series/Series.js"], o["Core/Axis/StackingAxis.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V, F) {
  12742. var B = _.format, j = F.correctFloat, w = F.defined, x = F.destroyObjectProperties, f = F.isArray, l = F.isNumber, T = F.objectEach, O = F.pick, R = function() {
  12743. function k(b, S, v, h, c) {
  12744. var u = b.chart.inverted;
  12745. this.axis = b, this.isNegative = v, this.options = S = S || {}, this.x = h, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: S.align || (u ? v ? "left" : "right" : "center"), verticalAlign: S.verticalAlign || (u ? "middle" : v ? "bottom" : "top"), y: S.y, x: S.x }, this.textAlign = S.textAlign || (u ? v ? "right" : "left" : "center");
  12746. }
  12747. return k.prototype.destroy = function() {
  12748. x(this, this.axis);
  12749. }, k.prototype.render = function(b) {
  12750. var S = this.axis.chart, v = this.options, h = v.format;
  12751. h = h ? B(h, this, S) : v.formatter.call(this), this.label ? this.label.attr({
  12752. text: h,
  12753. visibility: "hidden"
  12754. }) : (this.label = S.renderer.label(h, null, null, v.shape, null, null, v.useHTML, !1, "stack-labels"), h = { r: v.borderRadius || 0, text: h, rotation: v.rotation, padding: O(v.padding, 5), visibility: "hidden" }, S.styledMode || (h.fill = v.backgroundColor, h.stroke = v.borderColor, h["stroke-width"] = v.borderWidth, this.label.css(v.style)), this.label.attr(h), this.label.added || this.label.add(b)), this.label.labelrank = S.plotSizeY;
  12755. }, k.prototype.setOffset = function(b, S, v, h, c) {
  12756. var u = this.axis, i = u.chart;
  12757. h = u.translate(u.stacking.usePercentage ? 100 : h || this.total, 0, 0, 0, 1), v = u.translate(v || 0), v = w(h) && Math.abs(h - v), b = O(c, i.xAxis[0].translate(this.x)) + b, u = w(h) && this.getStackBox(i, this, b, h, S, v, u), S = this.label, v = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  12758. var p = this.textAlign;
  12759. S && u && (c = S.getBBox(), h = S.padding, p = p === "left" ? i.inverted ? -h : h : p === "right" ? c.width : i.inverted && p === "center" ? c.width / 2 : i.inverted ? v ? c.width + h : -h : c.width / 2, v = i.inverted ? c.height / 2 : v ? -h : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), u.x -= p, u.y -= v, S.align(this.alignOptions, null, u), i.isInsidePlot(S.alignAttr.x + p - this.alignOptions.x, S.alignAttr.y + v - this.alignOptions.y) ? S.show() : (S.alignAttr.y = -9999, b = !1), b && G.prototype.justifyDataLabel.call(this.axis, S, this.alignOptions, S.alignAttr, c, u), S.attr({ x: S.alignAttr.x, y: S.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = l(S.x) && l(S.y) && i.isInsidePlot(S.x - h + S.width, S.y) && i.isInsidePlot(S.x + h, S.y)) || S.hide()));
  12760. }, k.prototype.getStackBox = function(b, S, v, h, c, u, i) {
  12761. var p = S.axis.reversed, a = b.inverted, t = i.height + i.pos - (a ? b.plotLeft : b.plotTop);
  12762. return S = S.isNegative && !p || !S.isNegative && p, { x: a ? S ? h - i.right : h - u + i.pos - b.plotLeft : v + b.xAxis[0].transB - b.plotLeft, y: a ? i.height - v - c : S ? t - h - u : t - h, width: a ? u : c, height: a ? c : u };
  12763. }, k;
  12764. }();
  12765. return N.prototype.getStacks = function() {
  12766. var k = this, b = k.inverted;
  12767. k.yAxis.forEach(function(S) {
  12768. S.stacking && S.stacking.stacks && S.hasVisibleSeries && (S.stacking.oldStacks = S.stacking.stacks);
  12769. }), k.series.forEach(function(S) {
  12770. var v = S.xAxis && S.xAxis.options || {};
  12771. !S.options.stacking || S.visible !== !0 && k.options.chart.ignoreHiddenSeries !== !1 || (S.stackKey = [S.type, O(S.options.stack, ""), b ? v.top : v.left, b ? v.height : v.width].join());
  12772. });
  12773. }, V.compose(y), G.prototype.setGroupedPoints = function() {
  12774. var k = this.yAxis.stacking;
  12775. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? G.prototype.setStackedPoints.call(this, "group") : k && T(k.stacks, function(b, S) {
  12776. S.slice(-5) === "group" && (T(b, function(v) {
  12777. return v.destroy();
  12778. }), delete k.stacks[S]);
  12779. });
  12780. }, G.prototype.setStackedPoints = function(k) {
  12781. var b = k || this.options.stacking;
  12782. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  12783. var S = this.processedXData, v = this.processedYData, h = [], c = v.length, u = this.options, i = u.threshold, p = O(u.startFromThreshold && i, 0);
  12784. u = u.stack, k = k ? this.type + "," + b : this.stackKey;
  12785. var a = "-" + k, t = this.negStacks, s = this.yAxis, n = s.stacking.stacks, P = s.stacking.oldStacks, D, I;
  12786. for (s.stacking.stacksTouched += 1, I = 0; I < c; I++) {
  12787. var W = S[I], E = v[I], X = this.getStackIndicator(
  12788. X,
  12789. W,
  12790. this.index
  12791. ), g = X.key, m = (D = t && E < (p ? 0 : i)) ? a : k;
  12792. n[m] || (n[m] = {}), n[m][W] || (P[m] && P[m][W] ? (n[m][W] = P[m][W], n[m][W].total = null) : n[m][W] = new R(s, s.options.stackLabels, D, W, u)), m = n[m][W], E !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, p)], w(m.cumulative) || (m.base = g), m.touched = s.stacking.stacksTouched, 0 < X.index && this.singleStacks === !1 && (m.points[g][0] = m.points[this.index + "," + W + ",0"][0])) : m.points[g] = m.points[this.index] = null, b === "percent" ? (D = D ? k : a, t && n[D] && n[D][W] ? (D = n[D][W], m.total = D.total = Math.max(D.total, m.total) + Math.abs(E) || 0) : m.total = j(m.total + (Math.abs(E) || 0))) : b === "group" ? (f(E) && (E = E[0]), E !== null && (m.total = (m.total || 0) + 1)) : m.total = j(m.total + (E || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, p) + (E || 0), E !== null && (m.points[g].push(m.cumulative), h[I] = m.cumulative, m.hasValidPoints = !0);
  12793. }
  12794. b === "percent" && (s.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = h), s.stacking.oldStacks = {};
  12795. }
  12796. }, G.prototype.modifyStacks = function() {
  12797. var k = this, b = k.stackKey, S = k.yAxis.stacking.stacks, v = k.processedXData, h, c = k.options.stacking;
  12798. k[c + "Stacker"] && [b, "-" + b].forEach(function(u) {
  12799. for (var i = v.length, p, a; i--; )
  12800. p = v[i], h = k.getStackIndicator(h, p, k.index, u), (a = (p = S[u] && S[u][p]) && p.points[h.key]) && k[c + "Stacker"](a, p, i);
  12801. });
  12802. }, G.prototype.percentStacker = function(k, b, S) {
  12803. b = b.total ? 100 / b.total : 0, k[0] = j(k[0] * b), k[1] = j(k[1] * b), this.stackedYData[S] = k[1];
  12804. }, G.prototype.getStackIndicator = function(k, b, S, v) {
  12805. return !w(k) || k.x !== b || v && k.key !== v ? k = { x: b, index: 0, key: v } : k.index++, k.key = [S, b, k.index].join(), k;
  12806. }, U.StackItem = R, U.StackItem;
  12807. }), C(o, "Series/Line/LineSeries.js", [o["Core/Series/Series.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  12808. var U = this && this.__extends || function() {
  12809. var F = function(B, j) {
  12810. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  12811. w.__proto__ = x;
  12812. } || function(w, x) {
  12813. for (var f in x)
  12814. x.hasOwnProperty(f) && (w[f] = x[f]);
  12815. }, F(B, j);
  12816. };
  12817. return function(B, j) {
  12818. function w() {
  12819. this.constructor = B;
  12820. }
  12821. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  12822. };
  12823. }(), G = _.defined, V = _.merge;
  12824. return _ = function(F) {
  12825. function B() {
  12826. var j = F !== null && F.apply(this, arguments) || this;
  12827. return j.data = void 0, j.options = void 0, j.points = void 0, j;
  12828. }
  12829. return U(B, F), B.prototype.drawGraph = function() {
  12830. var j = this, w = this.options, x = (this.gappedPath || this.getGraphPath).call(this), f = this.chart.styledMode, l = [["graph", "highcharts-graph"]];
  12831. f || l[0].push(w.lineColor || this.color || "#cccccc", w.dashStyle), l = j.getZonesGraphs(l), l.forEach(function(T, O) {
  12832. var R = T[0], k = j[R], b = k ? "animate" : "attr";
  12833. k ? (k.endX = j.preventGraphAnimation ? null : x.xMap, k.animate({ d: x })) : x.length && (j[R] = k = j.chart.renderer.path(x).addClass(T[1]).attr({ zIndex: 1 }).add(j.group)), k && !f && (R = { stroke: T[2], "stroke-width": w.lineWidth, fill: j.fillGraph && j.color || "none" }, T[3] ? R.dashstyle = T[3] : w.linecap !== "square" && (R["stroke-linecap"] = R["stroke-linejoin"] = "round"), k[b](R).shadow(2 > O && w.shadow)), k && (k.startX = x.xMap, k.isArea = x.isArea);
  12834. });
  12835. }, B.prototype.getGraphPath = function(j, w, x) {
  12836. var f = this, l = f.options, T = [], O = [], R, k = l.step;
  12837. j = j || f.points;
  12838. var b = j.reversed;
  12839. return b && j.reverse(), (k = { right: 1, center: 2 }[k] || k && 3) && b && (k = 4 - k), j = this.getValidPoints(j, !1, !(l.connectNulls && !w && !x)), j.forEach(function(S, v) {
  12840. var h = S.plotX, c = S.plotY, u = j[v - 1];
  12841. (S.leftCliff || u && u.rightCliff) && !x && (R = !0), S.isNull && !G(w) && 0 < v ? R = !l.connectNulls : S.isNull && !w ? R = !0 : (v === 0 || R ? v = [["M", S.plotX, S.plotY]] : f.getPointSpline ? v = [f.getPointSpline(j, S, v)] : k ? (v = k === 1 ? [["L", u.plotX, c]] : k === 2 ? [["L", (u.plotX + h) / 2, u.plotY], ["L", (u.plotX + h) / 2, c]] : [["L", h, u.plotY]], v.push(["L", h, c])) : v = [["L", h, c]], O.push(S.x), k && (O.push(S.x), k === 2 && O.push(S.x)), T.push.apply(T, v), R = !1);
  12842. }), T.xMap = O, f.graphPath = T;
  12843. }, B.prototype.getZonesGraphs = function(j) {
  12844. return this.zones.forEach(function(w, x) {
  12845. x = ["zone-graph-" + x, "highcharts-graph highcharts-zone-graph-" + x + " " + (w.className || "")], this.chart.styledMode || x.push(w.color || this.color, w.dashStyle || this.options.dashStyle), j.push(x);
  12846. }, this), j;
  12847. }, B.defaultOptions = V(y.defaultOptions, {}), B;
  12848. }(y), N.registerSeriesType("line", _), _;
  12849. }), C(o, "Series/Area/AreaSeries.js", [
  12850. o["Core/Color/Color.js"],
  12851. o["Core/Legend/LegendSymbol.js"],
  12852. o["Core/Series/SeriesRegistry.js"],
  12853. o["Core/Utilities.js"]
  12854. ], function(y, N, _, U) {
  12855. var G = this && this.__extends || function() {
  12856. var x = function(f, l) {
  12857. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, O) {
  12858. T.__proto__ = O;
  12859. } || function(T, O) {
  12860. for (var R in O)
  12861. O.hasOwnProperty(R) && (T[R] = O[R]);
  12862. }, x(f, l);
  12863. };
  12864. return function(f, l) {
  12865. function T() {
  12866. this.constructor = f;
  12867. }
  12868. x(f, l), f.prototype = l === null ? Object.create(l) : (T.prototype = l.prototype, new T());
  12869. };
  12870. }(), V = y.parse, F = _.seriesTypes.line;
  12871. y = U.extend;
  12872. var B = U.merge, j = U.objectEach, w = U.pick;
  12873. return U = function(x) {
  12874. function f() {
  12875. var l = x !== null && x.apply(this, arguments) || this;
  12876. return l.data = void 0, l.options = void 0, l.points = void 0, l;
  12877. }
  12878. return G(f, x), f.prototype.drawGraph = function() {
  12879. this.areaPath = [], x.prototype.drawGraph.apply(this);
  12880. var l = this, T = this.areaPath, O = this.options, R = [["area", "highcharts-area", this.color, O.fillColor]];
  12881. this.zones.forEach(function(k, b) {
  12882. R.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + k.className, k.color || l.color, k.fillColor || O.fillColor]);
  12883. }), R.forEach(function(k) {
  12884. var b = k[0], S = l[b], v = S ? "animate" : "attr", h = {};
  12885. S ? (S.endX = l.preventGraphAnimation ? null : T.xMap, S.animate({ d: T })) : (h.zIndex = 0, S = l[b] = l.chart.renderer.path(T).addClass(k[1]).add(l.group), S.isArea = !0), l.chart.styledMode || (h.fill = w(k[3], V(k[2]).setOpacity(w(O.fillOpacity, 0.75)).get())), S[v](h), S.startX = T.xMap, S.shiftUnit = O.step ? 2 : 1;
  12886. });
  12887. }, f.prototype.getGraphPath = function(l) {
  12888. var T = F.prototype.getGraphPath, O = this.options, R = O.stacking, k = this.yAxis, b, S = [], v = [], h = this.index, c = k.stacking.stacks[this.stackKey], u = O.threshold, i = Math.round(k.getThreshold(O.threshold));
  12889. O = w(O.connectNulls, R === "percent");
  12890. var p = function(n, P, D) {
  12891. var I = l[n];
  12892. n = R && c[I.x].points[h];
  12893. var W = I[D + "Null"] || 0;
  12894. if (D = I[D + "Cliff"] || 0, I = !0, D || W) {
  12895. var E = (W ? n[0] : n[1]) + D, X = n[0] + D;
  12896. I = !!W;
  12897. } else
  12898. !R && l[P] && l[P].isNull && (E = X = u);
  12899. typeof E < "u" && (v.push({ plotX: t, plotY: E === null ? i : k.getThreshold(E), isNull: I, isCliff: !0 }), S.push({ plotX: t, plotY: X === null ? i : k.getThreshold(X), doCurve: !1 }));
  12900. };
  12901. for (l = l || this.points, R && (l = this.getStackPoints(l)), b = 0; b < l.length; b++) {
  12902. R || (l[b].leftCliff = l[b].rightCliff = l[b].leftNull = l[b].rightNull = void 0);
  12903. var a = l[b].isNull, t = w(l[b].rectPlotX, l[b].plotX), s = R ? w(l[b].yBottom, i) : i;
  12904. (!a || O) && (O || p(b, b - 1, "left"), a && !R && O || (v.push(l[b]), S.push({ x: b, plotX: t, plotY: s })), O || p(b, b + 1, "right"));
  12905. }
  12906. return b = T.call(this, v, !0, !0), S.reversed = !0, a = T.call(this, S, !0, !0), (s = a[0]) && s[0] === "M" && (a[0] = ["L", s[1], s[2]]), a = b.concat(a), a.length && a.push(["Z"]), T = T.call(this, v, !1, O), a.xMap = b.xMap, this.areaPath = a, T;
  12907. }, f.prototype.getStackPoints = function(l) {
  12908. var T = this, O = [], R = [], k = this.xAxis, b = this.yAxis, S = b.stacking.stacks[this.stackKey], v = {}, h = b.series, c = h.length, u = b.options.reversedStacks ? 1 : -1, i = h.indexOf(T);
  12909. if (l = l || this.points, this.options.stacking) {
  12910. for (var p = 0; p < l.length; p++)
  12911. l[p].leftNull = l[p].rightNull = void 0, v[l[p].x] = l[p];
  12912. j(S, function(t, s) {
  12913. t.total !== null && R.push(s);
  12914. }), R.sort(function(t, s) {
  12915. return t - s;
  12916. });
  12917. var a = h.map(function(t) {
  12918. return t.visible;
  12919. });
  12920. R.forEach(function(t, s) {
  12921. var n = 0, P, D;
  12922. if (v[t] && !v[t].isNull)
  12923. O.push(v[t]), [-1, 1].forEach(function(W) {
  12924. var E = W === 1 ? "rightNull" : "leftNull", X = 0, g = S[R[s + W]];
  12925. if (g)
  12926. for (var m = i; 0 <= m && m < c; ) {
  12927. var L = h[m].index;
  12928. P = g.points[L], P || (L === T.index ? v[t][E] = !0 : a[m] && (D = S[t].points[L]) && (X -= D[1] - D[0])), m += u;
  12929. }
  12930. v[t][W === 1 ? "rightCliff" : "leftCliff"] = X;
  12931. });
  12932. else {
  12933. for (var I = i; 0 <= I && I < c; ) {
  12934. if (P = S[t].points[h[I].index]) {
  12935. n = P[1];
  12936. break;
  12937. }
  12938. I += u;
  12939. }
  12940. n = w(n, 0), n = b.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: k.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  12941. }
  12942. });
  12943. }
  12944. return O;
  12945. }, f.defaultOptions = B(F.defaultOptions, { threshold: 0 }), f;
  12946. }(F), y(U.prototype, {
  12947. singleStacks: !1,
  12948. drawLegendSymbol: N.drawRectangle
  12949. }), _.registerSeriesType("area", U), U;
  12950. }), C(o, "Series/Spline/SplineSeries.js", [o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N) {
  12951. var _ = this && this.__extends || function() {
  12952. var F = function(B, j) {
  12953. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  12954. w.__proto__ = x;
  12955. } || function(w, x) {
  12956. for (var f in x)
  12957. x.hasOwnProperty(f) && (w[f] = x[f]);
  12958. }, F(B, j);
  12959. };
  12960. return function(B, j) {
  12961. function w() {
  12962. this.constructor = B;
  12963. }
  12964. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  12965. };
  12966. }(), U = y.seriesTypes.line, G = N.merge, V = N.pick;
  12967. return N = function(F) {
  12968. function B() {
  12969. var j = F !== null && F.apply(this, arguments) || this;
  12970. return j.data = void 0, j.options = void 0, j.points = void 0, j;
  12971. }
  12972. return _(B, F), B.prototype.getPointSpline = function(j, w, x) {
  12973. var f = w.plotX || 0, l = w.plotY || 0, T = j[x - 1];
  12974. if (x = j[x + 1], T && !T.isNull && T.doCurve !== !1 && !w.isCliff && x && !x.isNull && x.doCurve !== !1 && !w.isCliff) {
  12975. j = T.plotY || 0;
  12976. var O = x.plotX || 0;
  12977. x = x.plotY || 0;
  12978. var R = 0, k = (1.5 * f + (T.plotX || 0)) / 2.5, b = (1.5 * l + j) / 2.5;
  12979. O = (1.5 * f + O) / 2.5;
  12980. var S = (1.5 * l + x) / 2.5;
  12981. O !== k && (R = (S - b) * (O - f) / (O - k) + l - S), b += R, S += R, b > j && b > l ? (b = Math.max(j, l), S = 2 * l - b) : b < j && b < l && (b = Math.min(j, l), S = 2 * l - b), S > x && S > l ? (S = Math.max(x, l), b = 2 * l - S) : S < x && S < l && (S = Math.min(x, l), b = 2 * l - S), w.rightContX = O, w.rightContY = S;
  12982. }
  12983. return w = ["C", V(T.rightContX, T.plotX, 0), V(T.rightContY, T.plotY, 0), V(k, f, 0), V(b, l, 0), f, l], T.rightContX = T.rightContY = void 0, w;
  12984. }, B.defaultOptions = G(U.defaultOptions), B;
  12985. }(U), y.registerSeriesType("spline", N), N;
  12986. }), C(
  12987. o,
  12988. "Series/AreaSpline/AreaSplineSeries.js",
  12989. [o["Series/Area/AreaSeries.js"], o["Series/Spline/SplineSeries.js"], o["Core/Legend/LegendSymbol.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]],
  12990. function(y, N, _, U, G) {
  12991. var V = this && this.__extends || function() {
  12992. var w = function(x, f) {
  12993. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(l, T) {
  12994. l.__proto__ = T;
  12995. } || function(l, T) {
  12996. for (var O in T)
  12997. T.hasOwnProperty(O) && (l[O] = T[O]);
  12998. }, w(x, f);
  12999. };
  13000. return function(x, f) {
  13001. function l() {
  13002. this.constructor = x;
  13003. }
  13004. w(x, f), x.prototype = f === null ? Object.create(f) : (l.prototype = f.prototype, new l());
  13005. };
  13006. }(), F = y.prototype, B = G.extend, j = G.merge;
  13007. return G = function(w) {
  13008. function x() {
  13009. var f = w !== null && w.apply(this, arguments) || this;
  13010. return f.data = void 0, f.points = void 0, f.options = void 0, f;
  13011. }
  13012. return V(x, w), x.defaultOptions = j(N.defaultOptions, y.defaultOptions), x;
  13013. }(N), B(G.prototype, { getGraphPath: F.getGraphPath, getStackPoints: F.getStackPoints, drawGraph: F.drawGraph, drawLegendSymbol: _.drawRectangle }), U.registerSeriesType("areaspline", G), G;
  13014. }
  13015. ), C(o, "Series/Column/ColumnSeries.js", [
  13016. o["Core/Animation/AnimationUtilities.js"],
  13017. o["Core/Color/Color.js"],
  13018. o["Core/Globals.js"],
  13019. o["Core/Legend/LegendSymbol.js"],
  13020. o["Core/Series/Series.js"],
  13021. o["Core/Series/SeriesRegistry.js"],
  13022. o["Core/Utilities.js"]
  13023. ], function(y, N, _, U, G, V, F) {
  13024. var B = this && this.__extends || function() {
  13025. var c = function(u, i) {
  13026. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, a) {
  13027. p.__proto__ = a;
  13028. } || function(p, a) {
  13029. for (var t in a)
  13030. a.hasOwnProperty(t) && (p[t] = a[t]);
  13031. }, c(u, i);
  13032. };
  13033. return function(u, i) {
  13034. function p() {
  13035. this.constructor = u;
  13036. }
  13037. c(u, i), u.prototype = i === null ? Object.create(i) : (p.prototype = i.prototype, new p());
  13038. };
  13039. }(), j = y.animObject, w = N.parse, x = _.hasTouch;
  13040. y = _.noop;
  13041. var f = F.clamp, l = F.css, T = F.defined, O = F.extend, R = F.fireEvent, k = F.isArray, b = F.isNumber, S = F.merge, v = F.pick, h = F.objectEach;
  13042. return F = function(c) {
  13043. function u() {
  13044. var i = c !== null && c.apply(this, arguments) || this;
  13045. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  13046. }
  13047. return B(u, c), u.prototype.animate = function(i) {
  13048. var p = this, a = this.yAxis, t = p.options, s = this.chart.inverted, n = {}, P = s ? "translateX" : "translateY";
  13049. if (i)
  13050. n.scaleY = 1e-3, i = f(a.toPixels(t.threshold), a.pos, a.pos + a.len), s ? n.translateX = i - a.len : n.translateY = i, p.clipBox && p.setClip(), p.group.attr(n);
  13051. else {
  13052. var D = Number(p.group.attr(P));
  13053. p.group.animate({ scaleY: 1 }, O(j(p.options.animation), { step: function(I, W) {
  13054. p.group && (n[P] = D + W.pos * (a.pos - D), p.group.attr(n));
  13055. } }));
  13056. }
  13057. }, u.prototype.init = function(i, p) {
  13058. c.prototype.init.apply(this, arguments);
  13059. var a = this;
  13060. i = a.chart, i.hasRendered && i.series.forEach(function(t) {
  13061. t.type === a.type && (t.isDirty = !0);
  13062. });
  13063. }, u.prototype.getColumnMetrics = function() {
  13064. var i = this, p = i.options, a = i.xAxis, t = i.yAxis, s = a.options.reversedStacks;
  13065. s = a.reversed && !s || !a.reversed && s;
  13066. var n = {}, P, D = 0;
  13067. p.grouping === !1 ? D = 1 : i.chart.series.forEach(function(X) {
  13068. var g = X.yAxis, m = X.options;
  13069. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  13070. if (m.stacking && m.stacking !== "group") {
  13071. P = X.stackKey, typeof n[P] > "u" && (n[P] = D++);
  13072. var L = n[P];
  13073. } else
  13074. m.grouping !== !1 && (L = D++);
  13075. X.columnIndex = L;
  13076. }
  13077. });
  13078. var I = Math.min(Math.abs(a.transA) * (a.ordinal && a.ordinal.slope || p.pointRange || a.closestPointRange || a.tickInterval || 1), a.len), W = I * p.groupPadding, E = (I - 2 * W) / (D || 1);
  13079. return p = Math.min(p.maxPointWidth || a.len, v(p.pointWidth, E * (1 - 2 * p.pointPadding))), i.columnMetrics = { width: p, offset: (E - p) / 2 + (W + ((i.columnIndex || 0) + (s ? 1 : 0)) * E - I / 2) * (s ? -1 : 1), paddedWidth: E, columnCount: D }, i.columnMetrics;
  13080. }, u.prototype.crispCol = function(i, p, a, t) {
  13081. var s = this.chart, n = this.borderWidth, P = -(n % 2 ? 0.5 : 0);
  13082. return n = n % 2 ? 0.5 : 1, s.inverted && s.renderer.isVML && (n += 1), this.options.crisp && (a = Math.round(i + a) + P, i = Math.round(i) + P, a -= i), t = Math.round(p + t) + n, P = 0.5 >= Math.abs(p) && 0.5 < t, p = Math.round(p) + n, t -= p, P && t && (--p, t += 1), { x: i, y: p, width: a, height: t };
  13083. }, u.prototype.adjustForMissingColumns = function(i, p, a, t) {
  13084. var s = this, n = this.options.stacking;
  13085. if (!a.isNull && 1 < t.columnCount) {
  13086. var P = 0, D = 0;
  13087. h(this.yAxis.stacking && this.yAxis.stacking.stacks, function(I) {
  13088. if (typeof a.x == "number" && (I = I[a.x.toString()])) {
  13089. var W = I.points[s.index], E = I.total;
  13090. n ? (W && (P = D), I.hasValidPoints && D++) : k(W) && (P = W[1], D = E || 0);
  13091. }
  13092. }), i = (a.plotX || 0) + ((D - 1) * t.paddedWidth + p) / 2 - p - P * t.paddedWidth;
  13093. }
  13094. return i;
  13095. }, u.prototype.translate = function() {
  13096. var i = this, p = i.chart, a = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  13097. t = i.borderWidth = v(a.borderWidth, t ? 0 : 1);
  13098. var s = i.xAxis, n = i.yAxis, P = a.threshold, D = i.translatedThreshold = n.getThreshold(P), I = v(a.minPointLength, 5), W = i.getColumnMetrics(), E = W.width, X = i.pointXOffset = W.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(E, 1 + 2 * t);
  13099. p.inverted && (D -= 0.5), a.pointPadding && (L = Math.ceil(L)), G.prototype.translate.apply(i), i.points.forEach(function(z) {
  13100. var $ = v(z.yBottom, D), Q = 999 + Math.abs($), A = z.plotX || 0;
  13101. Q = f(z.plotY, -Q, n.len + Q);
  13102. var H = Math.min(Q, $), Y = Math.max(Q, $) - H, Z = E, q = A + X, it = L;
  13103. I && Math.abs(Y) < I && (Y = I, A = !n.reversed && !z.negative || n.reversed && z.negative, b(P) && b(m) && z.y === P && m <= P && (n.min || 0) < P && (g !== m || (n.max || 0) <= P) && (A = !A), H = Math.abs(H - D) > I ? $ - I : D - (A ? I : 0)), T(z.options.pointWidth) && (Z = it = Math.ceil(z.options.pointWidth), q -= Math.round((Z - E) / 2)), a.centerInCategory && (q = i.adjustForMissingColumns(q, Z, z, W)), z.barX = q, z.pointWidth = Z, z.tooltipPos = p.inverted ? [f(n.len + n.pos - p.plotLeft - Q, n.pos - p.plotLeft, n.len + n.pos - p.plotLeft), s.len + s.pos - p.plotTop - q - it / 2, Y] : [s.left - p.plotLeft + q + it / 2, f(Q + n.pos - p.plotTop, n.pos - p.plotTop, n.len + n.pos - p.plotTop), Y], z.shapeType = i.pointClass.prototype.shapeType || "rect", z.shapeArgs = i.crispCol.apply(i, z.isNull ? [q, D, it, 0] : [q, H, it, Y]);
  13104. });
  13105. }, u.prototype.drawGraph = function() {
  13106. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  13107. }, u.prototype.pointAttribs = function(i, p) {
  13108. var a = this.options, t = this.pointAttrToOptions || {}, s = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", P = i && i.color || this.color, D = i && i[s] || a[s] || P;
  13109. t = i && i.options.dashStyle || a.dashStyle;
  13110. var I = i && i[n] || a[n] || this[n] || 0, W = v(i && i.opacity, a.opacity, 1);
  13111. if (i && this.zones.length) {
  13112. var E = i.getZone();
  13113. P = i.options.color || E && (E.color || i.nonZonedColor) || this.color, E && (D = E.borderColor || D, t = E.dashStyle || t, I = E.borderWidth || I);
  13114. }
  13115. return p && i && (i = S(a.states[p], i.options.states && i.options.states[p] || {}), p = i.brightness, P = i.color || typeof p < "u" && w(P).brighten(i.brightness).get() || P, D = i[s] || D, I = i[n] || I, t = i.dashStyle || t, W = v(i.opacity, W)), s = { fill: P, stroke: D, "stroke-width": I, opacity: W }, t && (s.dashstyle = t), s;
  13116. }, u.prototype.drawPoints = function() {
  13117. var i = this, p = this.chart, a = i.options, t = p.renderer, s = a.animationLimit || 250, n;
  13118. i.points.forEach(function(P) {
  13119. var D = P.graphic, I = !!D, W = D && p.pointCount < s ? "animate" : "attr";
  13120. b(P.plotY) && P.y !== null ? (n = P.shapeArgs, D && P.hasNewShapeType() && (D = D.destroy()), i.enabledDataSorting && (P.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), D || (P.graphic = D = t[P.shapeType](n).add(P.group || i.group)) && i.enabledDataSorting && p.hasRendered && p.pointCount < s && (D.attr({ x: P.startXPos }), I = !0, W = "animate"), D && I && D[W](S(n)), a.borderRadius && D[W]({ r: a.borderRadius }), p.styledMode || D[W](i.pointAttribs(P, P.selected && "select")).shadow(P.allowShadow !== !1 && a.shadow, null, a.stacking && !a.borderRadius), D && (D.addClass(P.getClassName(), !0), D.attr({ visibility: P.visible ? "inherit" : "hidden" }))) : D && (P.graphic = D.destroy());
  13121. });
  13122. }, u.prototype.drawTracker = function() {
  13123. var i = this, p = i.chart, a = p.pointer, t = function(n) {
  13124. var P = a.getPointFromEvent(n);
  13125. typeof P < "u" && (a.isDirectTouch = !0, P.onMouseOver(n));
  13126. }, s;
  13127. i.points.forEach(function(n) {
  13128. s = k(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), s.forEach(function(P) {
  13129. P.div ? P.div.point = n : P.element.point = n;
  13130. });
  13131. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  13132. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(P) {
  13133. a.onTrackerMouseOut(P);
  13134. }), x && i[n].on(
  13135. "touchstart",
  13136. t
  13137. ), !p.styledMode && i.options.cursor && i[n].css(l).css({ cursor: i.options.cursor }));
  13138. }), i._hasTracking = !0), R(this, "afterDrawTracker");
  13139. }, u.prototype.remove = function() {
  13140. var i = this, p = i.chart;
  13141. p.hasRendered && p.series.forEach(function(a) {
  13142. a.type === i.type && (a.isDirty = !0);
  13143. }), G.prototype.remove.apply(i, arguments);
  13144. }, u.defaultOptions = S(G.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  13145. hover: { halo: !1, brightness: 0.1 },
  13146. select: { color: "#cccccc", borderColor: "#000000" }
  13147. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), u;
  13148. }(G), O(F.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: U.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), V.registerSeriesType("column", F), F;
  13149. }), C(o, "Core/Series/DataLabel.js", [
  13150. o["Core/Animation/AnimationUtilities.js"],
  13151. o["Core/FormatUtilities.js"],
  13152. o["Core/Utilities.js"]
  13153. ], function(y, N, _) {
  13154. var U = y.getDeferredAnimation, G = N.format, V = _.defined, F = _.extend, B = _.fireEvent, j = _.isArray, w = _.merge, x = _.objectEach, f = _.pick, l = _.splat, T;
  13155. return function(O) {
  13156. function R(u, i, p, a, t) {
  13157. var s = this, n = this.chart, P = this.isCartesian && n.inverted, D = this.enabledDataSorting, I = f(u.dlBox && u.dlBox.centerX, u.plotX, -9999), W = f(u.plotY, -9999), E = i.getBBox(), X = p.rotation, g = p.align, m = n.isInsidePlot(I, Math.round(W), { inverted: P, paneCoordinates: !0, series: s }), L = function(A) {
  13158. D && s.xAxis && !z && s.setDataLabelStartPos(
  13159. u,
  13160. i,
  13161. t,
  13162. m,
  13163. A
  13164. );
  13165. }, z = f(p.overflow, D ? "none" : "justify") === "justify", $ = this.visible && u.visible !== !1 && (u.series.forceDL || D && !z || m || f(p.inside, !!this.options.stacking) && a && n.isInsidePlot(I, P ? a.x + 1 : a.y + a.height - 1, { inverted: P, paneCoordinates: !0, series: s }));
  13166. if ($) {
  13167. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : p.style.fontSize, i).b;
  13168. a = F({ x: P ? this.yAxis.len - W : I, y: Math.round(P ? this.xAxis.len - I : W), width: 0, height: 0 }, a), F(p, { width: E.width, height: E.height }), X ? (z = !1, I = n.renderer.rotCorr(Q, X), I = { x: a.x + (p.x || 0) + a.width / 2 + I.x, y: a.y + (p.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[p.verticalAlign] * a.height }, L(I), i[t ? "attr" : "animate"](I).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? I.y -= L ? E.height : 0 : g === "center" ? (I.x -= E.width / 2, I.y -= E.height / 2) : g === "right" && (I.x -= E.width, I.y -= L ? 0 : E.height), i.placed = !0, i.alignAttr = I) : (L(a), i.align(p, void 0, a), I = i.alignAttr), z && 0 <= a.height ? this.justifyDataLabel(i, p, I, E, a, t) : f(p.crop, !0) && ($ = n.isInsidePlot(I.x, I.y, { paneCoordinates: !0, series: s }) && n.isInsidePlot(I.x + E.width, I.y + E.height, {
  13169. paneCoordinates: !0,
  13170. series: s
  13171. })), p.shape && !X && i[t ? "attr" : "animate"]({ anchorX: P ? n.plotWidth - u.plotY : u.plotX, anchorY: P ? n.plotHeight - u.plotX : u.plotY });
  13172. }
  13173. t && D && (i.placed = !1), $ || D && !z || (i.hide(!0), i.placed = !1);
  13174. }
  13175. function k(u, i) {
  13176. var p = i.filter;
  13177. return p ? (i = p.operator, u = u[p.property], p = p.value, i === ">" && u > p || i === "<" && u < p || i === ">=" && u >= p || i === "<=" && u <= p || i === "==" && u == p || i === "===" && u === p) : !0;
  13178. }
  13179. function b() {
  13180. var u = this, i = u.chart, p = u.options, a = u.points, t = u.hasRendered || 0, s = i.renderer, n = p.dataLabels, P, D = n.animation;
  13181. if (D = n.defer ? U(
  13182. i,
  13183. D,
  13184. u
  13185. ) : { defer: 0, duration: 0 }, n = v(v(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[u.type] && i.options.plotOptions[u.type].dataLabels), n), B(this, "drawDataLabels"), j(n) || n.enabled || u._hasPointLabels) {
  13186. var I = u.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  13187. I.attr({ opacity: +t }), !t && (t = u.dataLabelsGroup) && (u.visible && I.show(!0), t[p.animation ? "animate" : "attr"]({ opacity: 1 }, D)), a.forEach(function(W) {
  13188. P = l(v(n, W.dlOptions || W.options && W.options.dataLabels)), P.forEach(function(E, X) {
  13189. var g = E.enabled && (!W.isNull || W.dataLabelOnNull) && k(W, E), m = W.connectors ? W.connectors[X] : W.connector, L = W.dataLabels ? W.dataLabels[X] : W.dataLabel, z = f(E.distance, W.labelDistance), $ = !L;
  13190. if (g) {
  13191. var Q = W.getLabelConfig(), A = f(E[W.formatPrefix + "Format"], E.format);
  13192. Q = V(A) ? G(A, Q, i) : (E[W.formatPrefix + "Formatter"] || E.formatter).call(Q, E), A = E.style;
  13193. var H = E.rotation;
  13194. i.styledMode || (A.color = f(E.color, A.color, u.color, "#000000"), A.color === "contrast" ? (W.contrastColor = s.getContrast(W.color || u.color), A.color = !V(z) && E.inside || 0 > z || p.stacking ? W.contrastColor : "#000000") : delete W.contrastColor, p.cursor && (A.cursor = p.cursor));
  13195. var Y = { r: E.borderRadius || 0, rotation: H, padding: E.padding, zIndex: 1 };
  13196. i.styledMode || (Y.fill = E.backgroundColor, Y.stroke = E.borderColor, Y["stroke-width"] = E.borderWidth), x(Y, function(Z, q) {
  13197. typeof Z > "u" && delete Y[q];
  13198. });
  13199. }
  13200. !L || g && V(Q) && !!L.div == !!E.useHTML || (W.dataLabel = L = W.dataLabel && W.dataLabel.destroy(), W.dataLabels && (W.dataLabels.length === 1 ? delete W.dataLabels : delete W.dataLabels[X]), X || delete W.dataLabel, m && (W.connector = W.connector.destroy(), W.connectors && (W.connectors.length === 1 ? delete W.connectors : delete W.connectors[X]))), g && V(Q) && (L ? Y.text = Q : (W.dataLabels = W.dataLabels || [], L = W.dataLabels[X] = H ? s.text(Q, 0, -9999, E.useHTML).addClass("highcharts-data-label") : s.label(Q, 0, -9999, E.shape, null, null, E.useHTML, null, "data-label"), X || (W.dataLabel = L), L.addClass(" highcharts-data-label-color-" + W.colorIndex + " " + (E.className || "") + (E.useHTML ? " highcharts-tracker" : ""))), L.options = E, L.attr(Y), i.styledMode || L.css(A).shadow(E.shadow), L.added || L.add(I), E.textPath && !E.useHTML && (L.setTextPath(W.getDataLabelPath && W.getDataLabelPath(L) || W.graphic, E.textPath), W.dataLabelPath && !E.textPath.enabled && (W.dataLabelPath = W.dataLabelPath.destroy())), u.alignDataLabel(W, L, E, null, $));
  13201. });
  13202. });
  13203. }
  13204. B(this, "afterDrawDataLabels");
  13205. }
  13206. function S(u, i, p, a, t, s) {
  13207. var n = this.chart, P = i.align, D = i.verticalAlign, I = u.box ? 0 : u.padding || 0, W = i.x;
  13208. W = W === void 0 ? 0 : W;
  13209. var E = i.y;
  13210. E = E === void 0 ? 0 : E;
  13211. var X = (p.x || 0) + I;
  13212. if (0 > X) {
  13213. P === "right" && 0 <= W ? (i.align = "left", i.inside = !0) : W -= X;
  13214. var g = !0;
  13215. }
  13216. return X = (p.x || 0) + a.width - I, X > n.plotWidth && (P === "left" && 0 >= W ? (i.align = "right", i.inside = !0) : W += n.plotWidth - X, g = !0), X = p.y + I, 0 > X && (D === "bottom" && 0 <= E ? (i.verticalAlign = "top", i.inside = !0) : E -= X, g = !0), X = (p.y || 0) + a.height - I, X > n.plotHeight && (D === "top" && 0 >= E ? (i.verticalAlign = "bottom", i.inside = !0) : E += n.plotHeight - X, g = !0), g && (i.x = W, i.y = E, u.placed = !s, u.align(i, void 0, t)), g;
  13217. }
  13218. function v(u, i) {
  13219. var p = [], a;
  13220. if (j(u) && !j(i))
  13221. p = u.map(function(t) {
  13222. return w(t, i);
  13223. });
  13224. else if (j(i) && !j(u))
  13225. p = i.map(function(t) {
  13226. return w(u, t);
  13227. });
  13228. else if (j(u) || j(i))
  13229. for (a = Math.max(u.length, i.length); a--; )
  13230. p[a] = w(u[a], i[a]);
  13231. else
  13232. p = w(u, i);
  13233. return p;
  13234. }
  13235. function h(u, i, p, a, t) {
  13236. var s = this.chart, n = s.inverted, P = this.xAxis, D = P.reversed, I = n ? i.height / 2 : i.width / 2;
  13237. u = (u = u.pointWidth) ? u / 2 : 0, i.startXPos = n ? t.x : D ? -I - u : P.width - I + u, i.startYPos = n ? D ? this.yAxis.height - I + u : -I - u : t.y, a ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  13238. { opacity: 0 },
  13239. void 0,
  13240. i.hide
  13241. ), s.hasRendered && (p && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  13242. }
  13243. var c = [];
  13244. O.compose = function(u) {
  13245. if (c.indexOf(u) === -1) {
  13246. var i = u.prototype;
  13247. c.push(u), i.alignDataLabel = R, i.drawDataLabels = b, i.justifyDataLabel = S, i.setDataLabelStartPos = h;
  13248. }
  13249. };
  13250. }(T || (T = {})), T;
  13251. }), C(o, "Series/Column/ColumnDataLabel.js", [o["Core/Series/DataLabel.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  13252. var U = N.series, G = _.merge, V = _.pick, F;
  13253. return function(B) {
  13254. function j(x, f, l, T, O) {
  13255. var R = this.chart.inverted, k = x.series, b = (k.xAxis ? k.xAxis.len : this.chart.plotSizeX) || 0;
  13256. k = (k.yAxis ? k.yAxis.len : this.chart.plotSizeY) || 0;
  13257. var S = x.dlBox || x.shapeArgs, v = V(x.below, x.plotY > V(this.translatedThreshold, k)), h = V(l.inside, !!this.options.stacking);
  13258. S && (T = G(S), 0 > T.y && (T.height += T.y, T.y = 0), S = T.y + T.height - k, 0 < S && S < T.height && (T.height -= S), R && (T = { x: k - T.y - T.height, y: b - T.x - T.width, width: T.height, height: T.width }), h || (R ? (T.x += v ? 0 : T.width, T.width = 0) : (T.y += v ? T.height : 0, T.height = 0))), l.align = V(l.align, !R || h ? "center" : v ? "right" : "left"), l.verticalAlign = V(l.verticalAlign, R || h ? "middle" : v ? "top" : "bottom"), U.prototype.alignDataLabel.call(this, x, f, l, T, O), l.inside && x.contrastColor && f.css({ color: x.contrastColor });
  13259. }
  13260. var w = [];
  13261. B.compose = function(x) {
  13262. y.compose(U), w.indexOf(x) === -1 && (w.push(x), x.prototype.alignDataLabel = j);
  13263. };
  13264. }(F || (F = {})), F;
  13265. }), C(o, "Series/Bar/BarSeries.js", [o["Series/Column/ColumnSeries.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _) {
  13266. var U = this && this.__extends || function() {
  13267. var F = function(B, j) {
  13268. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  13269. w.__proto__ = x;
  13270. } || function(w, x) {
  13271. for (var f in x)
  13272. x.hasOwnProperty(f) && (w[f] = x[f]);
  13273. }, F(B, j);
  13274. };
  13275. return function(B, j) {
  13276. function w() {
  13277. this.constructor = B;
  13278. }
  13279. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  13280. };
  13281. }(), G = _.extend, V = _.merge;
  13282. return _ = function(F) {
  13283. function B() {
  13284. var j = F !== null && F.apply(this, arguments) || this;
  13285. return j.data = void 0, j.options = void 0, j.points = void 0, j;
  13286. }
  13287. return U(B, F), B.defaultOptions = V(
  13288. y.defaultOptions,
  13289. {}
  13290. ), B;
  13291. }(y), G(_.prototype, { inverted: !0 }), N.registerSeriesType("bar", _), _;
  13292. }), C(o, "Series/Scatter/ScatterSeries.js", [o["Series/Column/ColumnSeries.js"], o["Series/Line/LineSeries.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Utilities.js"]], function(y, N, _, U) {
  13293. var G = this && this.__extends || function() {
  13294. var j = function(w, x) {
  13295. return j = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(f, l) {
  13296. f.__proto__ = l;
  13297. } || function(f, l) {
  13298. for (var T in l)
  13299. l.hasOwnProperty(T) && (f[T] = l[T]);
  13300. }, j(w, x);
  13301. };
  13302. return function(w, x) {
  13303. function f() {
  13304. this.constructor = w;
  13305. }
  13306. j(w, x), w.prototype = x === null ? Object.create(x) : (f.prototype = x.prototype, new f());
  13307. };
  13308. }(), V = U.addEvent, F = U.extend, B = U.merge;
  13309. return U = function(j) {
  13310. function w() {
  13311. var x = j !== null && j.apply(this, arguments) || this;
  13312. return x.data = void 0, x.options = void 0, x.points = void 0, x;
  13313. }
  13314. return G(w, j), w.prototype.applyJitter = function() {
  13315. var x = this, f = this.options.jitter, l = this.points.length;
  13316. f && this.points.forEach(function(T, O) {
  13317. ["x", "y"].forEach(function(R, k) {
  13318. var b = "plot" + R.toUpperCase();
  13319. if (f[R] && !T.isNull) {
  13320. var S = x[R + "Axis"], v = f[R] * S.transA;
  13321. if (S && !S.isLog) {
  13322. var h = Math.max(0, T[b] - v);
  13323. S = Math.min(S.len, T[b] + v), k = 1e4 * Math.sin(O + k * l), T[b] = h + (S - h) * (k - Math.floor(k)), R === "x" && (T.clientX = T.plotX);
  13324. }
  13325. }
  13326. });
  13327. });
  13328. }, w.prototype.drawGraph = function() {
  13329. this.options.lineWidth ? j.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  13330. }, w.defaultOptions = B(N.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  13331. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  13332. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  13333. } }), w;
  13334. }(N), F(U.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), V(U, "afterTranslate", function() {
  13335. this.applyJitter();
  13336. }), _.registerSeriesType("scatter", U), U;
  13337. }), C(o, "Series/CenteredUtilities.js", [o["Core/Globals.js"], o["Core/Series/Series.js"], o["Core/Utilities.js"]], function(y, N, _) {
  13338. var U = y.deg2rad, G = _.isNumber, V = _.pick, F = _.relativeLength, B;
  13339. return function(j) {
  13340. j.getCenter = function() {
  13341. var w = this.options, x = this.chart, f = 2 * (w.slicedOffset || 0), l = x.plotWidth - 2 * f, T = x.plotHeight - 2 * f, O = w.center, R = Math.min(l, T), k = w.size, b = w.innerSize || 0;
  13342. for (typeof k == "string" && (k = parseFloat(k)), typeof b == "string" && (b = parseFloat(b)), w = [V(O[0], "50%"), V(O[1], "50%"), V(k && 0 > k ? void 0 : w.size, "100%"), V(b && 0 > b ? void 0 : w.innerSize || 0, "0%")], !x.angular || this instanceof N || (w[3] = 0), O = 0; 4 > O; ++O)
  13343. k = w[O], x = 2 > O || O === 2 && /%$/.test(k), w[O] = F(k, [l, T, R, w[2]][O]) + (x ? f : 0);
  13344. return w[3] > w[2] && (w[3] = w[2]), w;
  13345. }, j.getStartAndEndRadians = function(w, x) {
  13346. return w = G(w) ? w : 0, x = G(x) && x > w && 360 > x - w ? x : w + 360, { start: U * (w + -90), end: U * (x + -90) };
  13347. };
  13348. }(B || (B = {})), B;
  13349. }), C(o, "Series/Pie/PiePoint.js", [o["Core/Animation/AnimationUtilities.js"], o["Core/Series/Point.js"], o["Core/Utilities.js"]], function(y, N, _) {
  13350. var U = this && this.__extends || function() {
  13351. var x = function(f, l) {
  13352. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, O) {
  13353. T.__proto__ = O;
  13354. } || function(T, O) {
  13355. for (var R in O)
  13356. O.hasOwnProperty(R) && (T[R] = O[R]);
  13357. }, x(f, l);
  13358. };
  13359. return function(f, l) {
  13360. function T() {
  13361. this.constructor = f;
  13362. }
  13363. x(f, l), f.prototype = l === null ? Object.create(l) : (T.prototype = l.prototype, new T());
  13364. };
  13365. }(), G = y.setAnimation, V = _.addEvent, F = _.defined;
  13366. y = _.extend;
  13367. var B = _.isNumber, j = _.pick, w = _.relativeLength;
  13368. return N = function(x) {
  13369. function f() {
  13370. var l = x !== null && x.apply(this, arguments) || this;
  13371. return l.labelDistance = void 0, l.options = void 0, l.series = void 0, l;
  13372. }
  13373. return U(f, x), f.prototype.getConnectorPath = function() {
  13374. var l = this.labelPosition, T = this.series.options.dataLabels, O = this.connectorShapes, R = T.connectorShape;
  13375. return O[R] && (R = O[R]), R.call(this, { x: l.final.x, y: l.final.y, alignment: l.alignment }, l.connectorPosition, T);
  13376. }, f.prototype.getTranslate = function() {
  13377. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  13378. }, f.prototype.haloPath = function(l) {
  13379. var T = this.shapeArgs;
  13380. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(T.x, T.y, T.r + l, T.r + l, { innerR: T.r - 1, start: T.start, end: T.end });
  13381. }, f.prototype.init = function() {
  13382. var l = this;
  13383. x.prototype.init.apply(
  13384. this,
  13385. arguments
  13386. ), this.name = j(this.name, "Slice");
  13387. var T = function(O) {
  13388. l.slice(O.type === "select");
  13389. };
  13390. return V(this, "select", T), V(this, "unselect", T), this;
  13391. }, f.prototype.isValid = function() {
  13392. return B(this.y) && 0 <= this.y;
  13393. }, f.prototype.setVisible = function(l, T) {
  13394. var O = this, R = this.series, k = R.chart, b = R.options.ignoreHiddenPoint;
  13395. T = j(T, b), l !== this.visible && (this.visible = this.options.visible = l = typeof l > "u" ? !this.visible : l, R.options.data[R.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(S) {
  13396. O[S] && O[S][l ? "show" : "hide"](l);
  13397. }), this.legendItem && k.legend.colorizeItem(this, l), l || this.state !== "hover" || this.setState(""), b && (R.isDirty = !0), T && k.redraw());
  13398. }, f.prototype.slice = function(l, T, O) {
  13399. var R = this.series;
  13400. G(O, R.chart), j(T, !0), this.sliced = this.options.sliced = F(l) ? l : !this.sliced, R.options.data[R.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  13401. }, f;
  13402. }(N), y(N.prototype, { connectorShapes: { fixedOffset: function(x, f, l) {
  13403. var T = f.breakAt;
  13404. return f = f.touchingSliceAt, [["M", x.x, x.y], l.softConnector ? ["C", x.x + (x.alignment === "left" ? -5 : 5), x.y, 2 * T.x - f.x, 2 * T.y - f.y, T.x, T.y] : ["L", T.x, T.y], ["L", f.x, f.y]];
  13405. }, straight: function(x, f) {
  13406. return f = f.touchingSliceAt, [["M", x.x, x.y], ["L", f.x, f.y]];
  13407. }, crookedLine: function(x, f, l) {
  13408. f = f.touchingSliceAt;
  13409. var T = this.series, O = T.center[0], R = T.chart.plotWidth, k = T.chart.plotLeft;
  13410. T = x.alignment;
  13411. var b = this.shapeArgs.r;
  13412. return l = w(l.crookDistance, 1), R = T === "left" ? O + b + (R + k - O - b) * (1 - l) : k + (O - b) * l, l = ["L", R, x.y], O = !0, (T === "left" ? R > x.x || R < f.x : R < x.x || R > f.x) && (O = !1), x = [["M", x.x, x.y]], O && x.push(l), x.push(["L", f.x, f.y]), x;
  13413. } } }), N;
  13414. }), C(o, "Series/Pie/PieSeries.js", [o["Series/CenteredUtilities.js"], o["Series/Column/ColumnSeries.js"], o["Core/Globals.js"], o["Core/Legend/LegendSymbol.js"], o["Series/Pie/PiePoint.js"], o["Core/Series/Series.js"], o["Core/Series/SeriesRegistry.js"], o["Core/Renderer/SVG/Symbols.js"], o["Core/Utilities.js"]], function(y, N, _, U, G, V, F, B, j) {
  13415. var w = this && this.__extends || function() {
  13416. var b = function(S, v) {
  13417. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, c) {
  13418. h.__proto__ = c;
  13419. } || function(h, c) {
  13420. for (var u in c)
  13421. c.hasOwnProperty(u) && (h[u] = c[u]);
  13422. }, b(S, v);
  13423. };
  13424. return function(S, v) {
  13425. function h() {
  13426. this.constructor = S;
  13427. }
  13428. b(S, v), S.prototype = v === null ? Object.create(v) : (h.prototype = v.prototype, new h());
  13429. };
  13430. }(), x = y.getStartAndEndRadians;
  13431. _ = _.noop;
  13432. var f = j.clamp, l = j.extend, T = j.fireEvent, O = j.merge, R = j.pick, k = j.relativeLength;
  13433. return j = function(b) {
  13434. function S() {
  13435. var v = b !== null && b.apply(this, arguments) || this;
  13436. return v.center = void 0, v.data = void 0, v.maxLabelDistance = void 0, v.options = void 0, v.points = void 0, v;
  13437. }
  13438. return w(S, b), S.prototype.animate = function(v) {
  13439. var h = this, c = h.points, u = h.startAngleRad;
  13440. v || c.forEach(function(i) {
  13441. var p = i.graphic, a = i.shapeArgs;
  13442. p && a && (p.attr({ r: R(i.startR, h.center && h.center[3] / 2), start: u, end: u }), p.animate({ r: a.r, start: a.start, end: a.end }, h.options.animation));
  13443. });
  13444. }, S.prototype.drawEmpty = function() {
  13445. var v = this.startAngleRad, h = this.endAngleRad, c = this.options;
  13446. if (this.total === 0 && this.center) {
  13447. var u = this.center[0], i = this.center[1];
  13448. this.graph || (this.graph = this.chart.renderer.arc(u, i, this.center[1] / 2, 0, v, h).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: B.arc(u, i, this.center[2] / 2, 0, { start: v, end: h, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  13449. } else
  13450. this.graph && (this.graph = this.graph.destroy());
  13451. }, S.prototype.drawPoints = function() {
  13452. var v = this.chart.renderer;
  13453. this.points.forEach(function(h) {
  13454. h.graphic && h.hasNewShapeType() && (h.graphic = h.graphic.destroy()), h.graphic || (h.graphic = v[h.shapeType](h.shapeArgs).add(h.series.group), h.delayedRendering = !0);
  13455. });
  13456. }, S.prototype.generatePoints = function() {
  13457. b.prototype.generatePoints.call(this), this.updateTotals();
  13458. }, S.prototype.getX = function(v, h, c) {
  13459. var u = this.center, i = this.radii ? this.radii[c.index] || 0 : u[2] / 2;
  13460. return v = Math.asin(f((v - u[1]) / (i + c.labelDistance), -1, 1)), u[0] + (h ? -1 : 1) * Math.cos(v) * (i + c.labelDistance) + (0 < c.labelDistance ? (h ? -1 : 1) * this.options.dataLabels.padding : 0);
  13461. }, S.prototype.hasData = function() {
  13462. return !!this.processedXData.length;
  13463. }, S.prototype.redrawPoints = function() {
  13464. var v = this, h = v.chart, c = h.renderer, u = v.options.shadow, i, p, a, t;
  13465. this.drawEmpty(), !u || v.shadowGroup || h.styledMode || (v.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(v.group)), v.points.forEach(function(s) {
  13466. var n = {};
  13467. if (p = s.graphic, !s.isNull && p) {
  13468. var P = void 0;
  13469. t = s.shapeArgs, i = s.getTranslate(), h.styledMode || (P = s.shadowGroup, u && !P && (P = s.shadowGroup = c.g("shadow").add(v.shadowGroup)), P && P.attr(i), a = v.pointAttribs(s, s.selected && "select")), s.delayedRendering ? (p.setRadialReference(v.center).attr(t).attr(i), h.styledMode || p.attr(a).attr({ "stroke-linejoin": "round" }).shadow(u, P), s.delayedRendering = !1) : (p.setRadialReference(v.center), h.styledMode || O(!0, n, a), O(!0, n, t, i), p.animate(n)), p.attr({ visibility: s.visible ? "inherit" : "hidden" }), p.addClass(s.getClassName(), !0);
  13470. } else
  13471. p && (s.graphic = p.destroy());
  13472. });
  13473. }, S.prototype.sortByAngle = function(v, h) {
  13474. v.sort(function(c, u) {
  13475. return typeof c.angle < "u" && (u.angle - c.angle) * h;
  13476. });
  13477. }, S.prototype.translate = function(v) {
  13478. this.generatePoints();
  13479. var h = this.options, c = h.slicedOffset, u = c + (h.borderWidth || 0), i = x(h.startAngle, h.endAngle), p = this.startAngleRad = i.start;
  13480. i = (this.endAngleRad = i.end) - p;
  13481. var a = this.points, t = h.dataLabels.distance;
  13482. h = h.ignoreHiddenPoint;
  13483. var s = a.length, n, P = 0;
  13484. for (v || (this.center = v = this.getCenter()), n = 0; n < s; n++) {
  13485. var D = a[n], I = p + P * i;
  13486. !D.isValid() || h && !D.visible || (P += D.percentage / 100);
  13487. var W = p + P * i, E = { x: v[0], y: v[1], r: v[2] / 2, innerR: v[3] / 2, start: Math.round(1e3 * I) / 1e3, end: Math.round(1e3 * W) / 1e3 };
  13488. D.shapeType = "arc", D.shapeArgs = E, D.labelDistance = R(D.options.dataLabels && D.options.dataLabels.distance, t), D.labelDistance = k(D.labelDistance, E.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, D.labelDistance), W = (W + I) / 2, W > 1.5 * Math.PI ? W -= 2 * Math.PI : W < -Math.PI / 2 && (W += 2 * Math.PI), D.slicedTranslation = { translateX: Math.round(Math.cos(W) * c), translateY: Math.round(Math.sin(W) * c) }, E = Math.cos(W) * v[2] / 2;
  13489. var X = Math.sin(W) * v[2] / 2;
  13490. D.tooltipPos = [v[0] + 0.7 * E, v[1] + 0.7 * X], D.half = W < -Math.PI / 2 || W > Math.PI / 2 ? 1 : 0, D.angle = W, I = Math.min(u, D.labelDistance / 5), D.labelPosition = { natural: { x: v[0] + E + Math.cos(W) * D.labelDistance, y: v[1] + X + Math.sin(W) * D.labelDistance }, final: {}, alignment: 0 > D.labelDistance ? "center" : D.half ? "right" : "left", connectorPosition: { breakAt: { x: v[0] + E + Math.cos(W) * I, y: v[1] + X + Math.sin(W) * I }, touchingSliceAt: { x: v[0] + E, y: v[1] + X } } };
  13491. }
  13492. T(this, "afterTranslate");
  13493. }, S.prototype.updateTotals = function() {
  13494. var v = this.points, h = v.length, c = this.options.ignoreHiddenPoint, u, i = 0;
  13495. for (u = 0; u < h; u++) {
  13496. var p = v[u];
  13497. !p.isValid() || c && !p.visible || (i += p.y);
  13498. }
  13499. for (this.total = i, u = 0; u < h; u++)
  13500. p = v[u], p.percentage = 0 < i && (p.visible || !c) ? p.y / i * 100 : 0, p.total = i;
  13501. }, S.defaultOptions = O(V.defaultOptions, {
  13502. center: [null, null],
  13503. clip: !1,
  13504. colorByPoint: !0,
  13505. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  13506. return this.point.isNull ? void 0 : this.point.name;
  13507. }, softConnector: !0, x: 0 },
  13508. fillColor: void 0,
  13509. ignoreHiddenPoint: !0,
  13510. inactiveOtherPoints: !0,
  13511. legendType: "point",
  13512. marker: null,
  13513. size: null,
  13514. showInLegend: !1,
  13515. slicedOffset: 10,
  13516. stickyTracking: !1,
  13517. tooltip: { followPointer: !0 },
  13518. borderColor: "#ffffff",
  13519. borderWidth: 1,
  13520. lineWidth: void 0,
  13521. states: { hover: { brightness: 0.1 } }
  13522. }), S;
  13523. }(V), l(j.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: U.drawRectangle, drawTracker: N.prototype.drawTracker, getCenter: y.getCenter, getSymbol: _, isCartesian: !1, noSharedTooltip: !0, pointAttribs: N.prototype.pointAttribs, pointClass: G, requireSorting: !1, searchPoint: _, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("pie", j), j;
  13524. }), C(o, "Series/Pie/PieDataLabel.js", [
  13525. o["Core/Series/DataLabel.js"],
  13526. o["Core/Globals.js"],
  13527. o["Core/Renderer/RendererUtilities.js"],
  13528. o["Core/Series/SeriesRegistry.js"],
  13529. o["Core/Utilities.js"]
  13530. ], function(y, N, _, U, G) {
  13531. var V = N.noop, F = _.distribute, B = U.series, j = G.arrayMax, w = G.clamp, x = G.defined, f = G.merge, l = G.pick, T = G.relativeLength, O;
  13532. return function(R) {
  13533. function k() {
  13534. var c = this, u = c.data, i = c.chart, p = c.options.dataLabels || {}, a = p.connectorPadding, t = i.plotWidth, s = i.plotHeight, n = i.plotLeft, P = Math.round(i.chartWidth / 3), D = c.center, I = D[2] / 2, W = D[1], E = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, z, $, Q, A, H, Y, Z, q, it, et;
  13535. c.visible && (p.enabled || c._hasPointLabels) && (u.forEach(function(nt) {
  13536. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  13537. }), B.prototype.drawDataLabels.apply(c), u.forEach(function(nt) {
  13538. nt.dataLabel && (nt.visible ? (E[nt.half].push(nt), nt.dataLabel._pos = null, !x(p.style.width) && !x(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > P && (nt.dataLabel.css({ width: Math.round(0.7 * P) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  13539. }), E.forEach(function(nt, rt) {
  13540. var ct = nt.length, gt = [], dt;
  13541. if (ct) {
  13542. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  13543. var ht = Math.max(0, W - I - c.maxLabelDistance), at = Math.min(W + I + c.maxLabelDistance, i.plotHeight);
  13544. nt.forEach(function(J) {
  13545. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, W - I - J.labelDistance), J.bottom = Math.min(W + I + J.labelDistance, i.plotHeight), dt = J.dataLabel.getBBox().height || 21, J.distributeBox = { target: J.labelPosition.natural.y - J.top + dt / 2, size: dt, rank: J.y }, gt.push(J.distributeBox));
  13546. }), ht = at + dt - ht, F(gt, ht, ht / 5);
  13547. }
  13548. for (it = 0; it < ct; it++) {
  13549. if (m = nt[it], A = m.labelPosition, $ = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", Z = ht = A.natural.y, gt && x(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (H = m.distributeBox.size, Z = g.radialDistributionY(m))), delete m.positionIndex, p.justify)
  13550. Y = g.justify(m, I, D);
  13551. else
  13552. switch (p.alignTo) {
  13553. case "connectors":
  13554. Y = g.alignToConnectors(nt, rt, t, n);
  13555. break;
  13556. case "plotEdges":
  13557. Y = g.alignToPlotEdges($, rt, t, n);
  13558. break;
  13559. default:
  13560. Y = g.radialDistributionX(c, m, Z, ht);
  13561. }
  13562. $._attr = { visibility: q, align: A.alignment }, et = m.options.dataLabels || {}, $._pos = { x: Y + l(et.x, p.x) + ({ left: a, right: -a }[A.alignment] || 0), y: Z + l(et.y, p.y) - 10 }, A.final.x = Y, A.final.y = Z, l(p.crop, !0) && (Q = $.getBBox().width, ht = null, Y - Q < a && rt === 1 ? (ht = Math.round(Q - Y + a), X[3] = Math.max(ht, X[3])) : Y + Q > t - a && rt === 0 && (ht = Math.round(Y + Q - t + a), X[1] = Math.max(ht, X[1])), 0 > Z - H / 2 ? X[0] = Math.max(Math.round(-Z + H / 2), X[0]) : Z + H / 2 > s && (X[2] = Math.max(Math.round(Z + H / 2 - s), X[2])), $.sideOverflow = ht);
  13563. }
  13564. }
  13565. }), j(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  13566. if (et = f(p, nt.options.dataLabels), L = l(et.connectorWidth, 1)) {
  13567. var rt;
  13568. z = nt.connector, ($ = nt.dataLabel) && $._pos && nt.visible && 0 < nt.labelDistance ? (q = $._attr.visibility, (rt = !z) && (nt.connector = z = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || z.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), z[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), z.attr("visibility", q)) : z && (nt.connector = z.destroy());
  13569. }
  13570. }));
  13571. }
  13572. function b() {
  13573. this.points.forEach(function(c) {
  13574. var u = c.dataLabel, i;
  13575. u && c.visible && ((i = u._pos) ? (u.sideOverflow && (u._attr.width = Math.max(u.getBBox().width - u.sideOverflow, 0), u.css({ width: u._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), u.shortened = !0), u.attr(u._attr), u[u.moved ? "animate" : "attr"](i), u.moved = !0) : u && u.attr({ y: -9999 })), delete c.distributeBox;
  13576. }, this);
  13577. }
  13578. function S(c) {
  13579. var u = this.center, i = this.options, p = i.center, a = i.minSize || 80, t = i.size !== null;
  13580. if (!t) {
  13581. if (p[0] !== null)
  13582. var s = Math.max(u[2] - Math.max(c[1], c[3]), a);
  13583. else
  13584. s = Math.max(u[2] - c[1] - c[3], a), u[0] += (c[3] - c[1]) / 2;
  13585. p[1] !== null ? s = w(s, a, u[2] - Math.max(c[0], c[2])) : (s = w(s, a, u[2] - c[0] - c[2]), u[1] += (c[0] - c[2]) / 2), s < u[2] ? (u[2] = s, u[3] = Math.min(T(i.innerSize || 0, s), s), this.translate(u), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  13586. }
  13587. return t;
  13588. }
  13589. var v = [], h = { radialDistributionY: function(c) {
  13590. return c.top + c.distributeBox.pos;
  13591. }, radialDistributionX: function(c, u, i, p) {
  13592. return c.getX(i < u.top + 2 || i > u.bottom - 2 ? p : i, u.half, u);
  13593. }, justify: function(c, u, i) {
  13594. return i[0] + (c.half ? -1 : 1) * (u + c.labelDistance);
  13595. }, alignToPlotEdges: function(c, u, i, p) {
  13596. return c = c.getBBox().width, u ? c + p : i - c - p;
  13597. }, alignToConnectors: function(c, u, i, p) {
  13598. var a = 0, t;
  13599. return c.forEach(function(s) {
  13600. t = s.dataLabel.getBBox().width, t > a && (a = t);
  13601. }), u ? a + p : i - a - p;
  13602. } };
  13603. R.compose = function(c) {
  13604. y.compose(B), v.indexOf(c) === -1 && (v.push(c), c = c.prototype, c.dataLabelPositioners = h, c.alignDataLabel = V, c.drawDataLabels = k, c.placeDataLabels = b, c.verifyDataLabelOverflow = S);
  13605. };
  13606. }(O || (O = {})), O;
  13607. }), C(o, "Extensions/OverlappingDataLabels.js", [o["Core/Chart/Chart.js"], o["Core/Utilities.js"]], function(y, N) {
  13608. function _(w, x) {
  13609. var f = !1;
  13610. if (w) {
  13611. var l = w.newOpacity;
  13612. w.oldOpacity !== l && (w.alignAttr && w.placed ? (w[l ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), f = !0, w.alignAttr.opacity = l, w[w.isOld ? "animate" : "attr"](w.alignAttr, null, function() {
  13613. x.styledMode || w.css({ pointerEvents: l ? "auto" : "none" });
  13614. }), G(x, "afterHideOverlappingLabel")) : w.attr({ opacity: l })), w.isOld = !0;
  13615. }
  13616. return f;
  13617. }
  13618. var U = N.addEvent, G = N.fireEvent, V = N.isArray, F = N.isNumber, B = N.objectEach, j = N.pick;
  13619. U(y, "render", function() {
  13620. var w = this, x = [];
  13621. (this.labelCollectors || []).forEach(function(f) {
  13622. x = x.concat(f());
  13623. }), (this.yAxis || []).forEach(function(f) {
  13624. f.stacking && f.options.stackLabels && !f.options.stackLabels.allowOverlap && B(f.stacking.stacks, function(l) {
  13625. B(l, function(T) {
  13626. T.label && T.label.visibility !== "hidden" && x.push(T.label);
  13627. });
  13628. });
  13629. }), (this.series || []).forEach(function(f) {
  13630. var l = f.options.dataLabels;
  13631. f.visible && (l.enabled !== !1 || f._hasPointLabels) && (l = function(T) {
  13632. return T.forEach(function(O) {
  13633. O.visible && (V(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(R) {
  13634. var k = R.options;
  13635. R.labelrank = j(k.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), k.allowOverlap ? (R.oldOpacity = R.opacity, R.newOpacity = 1, _(R, w)) : x.push(R);
  13636. });
  13637. });
  13638. }, l(f.nodes || []), l(f.points));
  13639. }), this.hideOverlappingLabels(x);
  13640. }), y.prototype.hideOverlappingLabels = function(w) {
  13641. var x = this, f = w.length, l = x.renderer, T, O, R, k = !1, b = function(h) {
  13642. var c, u = h.box ? 0 : h.padding || 0, i = c = 0, p;
  13643. if (h && (!h.alignAttr || h.placed)) {
  13644. var a = h.alignAttr || { x: h.attr("x"), y: h.attr("y") }, t = h.parentGroup;
  13645. h.width || (c = h.getBBox(), h.width = c.width, h.height = c.height, c = l.fontMetrics(null, h.element).h);
  13646. var s = h.width - 2 * u;
  13647. return (p = { left: "0", center: "0.5", right: "1" }[h.alignValue]) ? i = +p * s : F(h.x) && Math.round(h.x) !== h.translateX && (i = h.x - h.translateX), { x: a.x + (t.translateX || 0) + u - (i || 0), y: a.y + (t.translateY || 0) + u - c, width: h.width - 2 * u, height: h.height - 2 * u };
  13648. }
  13649. };
  13650. for (O = 0; O < f; O++)
  13651. (T = w[O]) && (T.oldOpacity = T.opacity, T.newOpacity = 1, T.absoluteBox = b(T));
  13652. for (w.sort(function(h, c) {
  13653. return (c.labelrank || 0) - (h.labelrank || 0);
  13654. }), O = 0; O < f; O++) {
  13655. var S = (b = w[O]) && b.absoluteBox;
  13656. for (T = O + 1; T < f; ++T) {
  13657. var v = (R = w[T]) && R.absoluteBox;
  13658. !S || !v || b === R || b.newOpacity === 0 || R.newOpacity === 0 || v.x >= S.x + S.width || v.x + v.width <= S.x || v.y >= S.y + S.height || v.y + v.height <= S.y || ((b.labelrank < R.labelrank ? b : R).newOpacity = 0);
  13659. }
  13660. }
  13661. w.forEach(function(h) {
  13662. _(h, x) && (k = !0);
  13663. }), k && G(x, "afterHideAllOverlappingLabels");
  13664. };
  13665. }), C(
  13666. o,
  13667. "Core/Responsive.js",
  13668. [o["Core/Utilities.js"]],
  13669. function(y) {
  13670. var N = y.extend, _ = y.find, U = y.isArray, G = y.isObject, V = y.merge, F = y.objectEach, B = y.pick, j = y.splat, w = y.uniqueKey, x;
  13671. return function(f) {
  13672. var l = [];
  13673. f.compose = function(O) {
  13674. return l.indexOf(O) === -1 && (l.push(O), N(O.prototype, T.prototype)), O;
  13675. };
  13676. var T = function() {
  13677. function O() {
  13678. }
  13679. return O.prototype.currentOptions = function(R) {
  13680. function k(v, h, c, u) {
  13681. var i;
  13682. F(v, function(p, a) {
  13683. if (!u && -1 < b.collectionsWithUpdate.indexOf(a) && h[a])
  13684. for (p = j(p), c[a] = [], i = 0; i < Math.max(p.length, h[a].length); i++)
  13685. h[a][i] && (p[i] === void 0 ? c[a][i] = h[a][i] : (c[a][i] = {}, k(p[i], h[a][i], c[a][i], u + 1)));
  13686. else
  13687. G(p) ? (c[a] = U(p) ? [] : {}, k(p, h[a] || {}, c[a], u + 1)) : c[a] = typeof h[a] > "u" ? null : h[a];
  13688. });
  13689. }
  13690. var b = this, S = {};
  13691. return k(R, this.options, S, 0), S;
  13692. }, O.prototype.matchResponsiveRule = function(R, k) {
  13693. var b = R.condition;
  13694. (b.callback || function() {
  13695. return this.chartWidth <= B(b.maxWidth, Number.MAX_VALUE) && this.chartHeight <= B(b.maxHeight, Number.MAX_VALUE) && this.chartWidth >= B(b.minWidth, 0) && this.chartHeight >= B(b.minHeight, 0);
  13696. }).call(this) && k.push(R._id);
  13697. }, O.prototype.setResponsive = function(R, k) {
  13698. var b = this, S = this.options.responsive, v = this.currentResponsive, h = [];
  13699. !k && S && S.rules && S.rules.forEach(function(c) {
  13700. typeof c._id > "u" && (c._id = w()), b.matchResponsiveRule(c, h);
  13701. }, this), k = V.apply(void 0, h.map(function(c) {
  13702. return _((S || {}).rules || [], function(u) {
  13703. return u._id === c;
  13704. });
  13705. }).map(function(c) {
  13706. return c && c.chartOptions;
  13707. })), k.isResponsiveOptions = !0, h = h.toString() || void 0, h !== (v && v.ruleIds) && (v && this.update(v.undoOptions, R, !0), h ? (v = this.currentOptions(k), v.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: h, mergedOptions: k, undoOptions: v }, this.update(k, R, !0)) : this.currentResponsive = void 0);
  13708. }, O;
  13709. }();
  13710. }(x || (x = {})), x;
  13711. }
  13712. ), C(o, "masters/highcharts.src.js", [
  13713. o["Core/Globals.js"],
  13714. o["Core/Utilities.js"],
  13715. o["Core/DefaultOptions.js"],
  13716. o["Core/Animation/Fx.js"],
  13717. o["Core/Animation/AnimationUtilities.js"],
  13718. o["Core/Renderer/HTML/AST.js"],
  13719. o["Core/FormatUtilities.js"],
  13720. o["Core/Renderer/RendererUtilities.js"],
  13721. o["Core/Renderer/SVG/SVGElement.js"],
  13722. o["Core/Renderer/SVG/SVGRenderer.js"],
  13723. o["Core/Renderer/HTML/HTMLElement.js"],
  13724. o["Core/Renderer/HTML/HTMLRenderer.js"],
  13725. o["Core/Axis/Axis.js"],
  13726. o["Core/Axis/DateTimeAxis.js"],
  13727. o["Core/Axis/LogarithmicAxis.js"],
  13728. o["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  13729. o["Core/Axis/Tick.js"],
  13730. o["Core/Tooltip.js"],
  13731. o["Core/Series/Point.js"],
  13732. o["Core/Pointer.js"],
  13733. o["Core/MSPointer.js"],
  13734. o["Core/Legend/Legend.js"],
  13735. o["Core/Chart/Chart.js"],
  13736. o["Core/Series/Series.js"],
  13737. o["Core/Series/SeriesRegistry.js"],
  13738. o["Series/Column/ColumnSeries.js"],
  13739. o["Series/Column/ColumnDataLabel.js"],
  13740. o["Series/Pie/PieSeries.js"],
  13741. o["Series/Pie/PieDataLabel.js"],
  13742. o["Core/Series/DataLabel.js"],
  13743. o["Core/Responsive.js"],
  13744. o["Core/Color/Color.js"],
  13745. o["Core/Time.js"]
  13746. ], function(y, N, _, U, G, V, F, B, j, w, x, f, l, T, O, R, k, b, S, v, h, c, u, i, p, a, t, s, n, P, D, I, W) {
  13747. return y.animate = G.animate, y.animObject = G.animObject, y.getDeferredAnimation = G.getDeferredAnimation, y.setAnimation = G.setAnimation, y.stop = G.stop, y.timers = U.timers, y.AST = V, y.Axis = l, y.Chart = u, y.chart = u.chart, y.Fx = U, y.Legend = c, y.PlotLineOrBand = R, y.Point = S, y.Pointer = h.isRequired() ? h : v, y.Series = i, y.SVGElement = j, y.SVGRenderer = w, y.Tick = k, y.Time = W, y.Tooltip = b, y.Color = I, y.color = I.parse, f.compose(w), x.compose(j), y.defaultOptions = _.defaultOptions, y.getOptions = _.getOptions, y.time = _.defaultTime, y.setOptions = _.setOptions, y.dateFormat = F.dateFormat, y.format = F.format, y.numberFormat = F.numberFormat, y.addEvent = N.addEvent, y.arrayMax = N.arrayMax, y.arrayMin = N.arrayMin, y.attr = N.attr, y.clearTimeout = N.clearTimeout, y.correctFloat = N.correctFloat, y.createElement = N.createElement, y.css = N.css, y.defined = N.defined, y.destroyObjectProperties = N.destroyObjectProperties, y.discardElement = N.discardElement, y.distribute = B.distribute, y.erase = N.erase, y.error = N.error, y.extend = N.extend, y.extendClass = N.extendClass, y.find = N.find, y.fireEvent = N.fireEvent, y.getMagnitude = N.getMagnitude, y.getStyle = N.getStyle, y.inArray = N.inArray, y.isArray = N.isArray, y.isClass = N.isClass, y.isDOMElement = N.isDOMElement, y.isFunction = N.isFunction, y.isNumber = N.isNumber, y.isObject = N.isObject, y.isString = N.isString, y.keys = N.keys, y.merge = N.merge, y.normalizeTickInterval = N.normalizeTickInterval, y.objectEach = N.objectEach, y.offset = N.offset, y.pad = N.pad, y.pick = N.pick, y.pInt = N.pInt, y.relativeLength = N.relativeLength, y.removeEvent = N.removeEvent, y.seriesType = p.seriesType, y.splat = N.splat, y.stableSort = N.stableSort, y.syncTimeout = N.syncTimeout, y.timeUnits = N.timeUnits, y.uniqueKey = N.uniqueKey, y.useSerialIds = N.useSerialIds, y.wrap = N.wrap, t.compose(a), P.compose(i), T.compose(l), O.compose(l), n.compose(s), R.compose(l), D.compose(u), y;
  13748. }), o["masters/highcharts.src.js"]._modules = o, o["masters/highcharts.src.js"];
  13749. });
  13750. })(iu);
  13751. var V0 = iu.exports;
  13752. const ts = /* @__PURE__ */ Mn(V0);
  13753. var ru = { exports: {} };
  13754. (function(r) {
  13755. (function(d) {
  13756. r.exports ? (d.default = d, r.exports = d) : d(typeof Highcharts < "u" ? Highcharts : void 0);
  13757. })(function(d) {
  13758. function C(o, y, N, _) {
  13759. o.hasOwnProperty(y) || (o[y] = _.apply(null, N));
  13760. }
  13761. d = d ? d._modules : {}, C(d, "Extensions/Pane.js", [
  13762. d["Core/Chart/Chart.js"],
  13763. d["Series/CenteredUtilities.js"],
  13764. d["Core/Globals.js"],
  13765. d["Core/Pointer.js"],
  13766. d["Core/Utilities.js"]
  13767. ], function(o, y, N, _, U) {
  13768. function G(x, f, l) {
  13769. return Math.sqrt(Math.pow(x - l[0], 2) + Math.pow(f - l[1], 2)) <= l[2] / 2;
  13770. }
  13771. var V = U.addEvent, F = U.extend, B = U.merge, j = U.pick, w = U.splat;
  13772. return o.prototype.collectionsWithUpdate.push("pane"), U = function() {
  13773. function x(f, l) {
  13774. 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: {
  13775. x1: 0,
  13776. y1: 0,
  13777. x2: 0,
  13778. y2: 1
  13779. }, stops: [[0, "#ffffff"], [1, "#e6e6e6"]] }, from: -Number.MAX_VALUE, innerRadius: 0, to: Number.MAX_VALUE, outerRadius: "105%" }, this.init(f, l);
  13780. }
  13781. return x.prototype.init = function(f, l) {
  13782. this.chart = l, this.background = [], l.pane.push(this), this.setOptions(f);
  13783. }, x.prototype.setOptions = function(f) {
  13784. this.options = B(this.defaultOptions, this.chart.angular ? { background: {} } : void 0, f);
  13785. }, x.prototype.render = function() {
  13786. var f = this.options, l = this.options.background, T = this.chart.renderer;
  13787. if (this.group || (this.group = T.g("pane-group").attr({ zIndex: f.zIndex || 0 }).add()), this.updateCenter(), l)
  13788. for (l = w(l), f = Math.max(l.length, this.background.length || 0), T = 0; T < f; T++)
  13789. l[T] && this.axis ? this.renderBackground(B(this.defaultBackgroundOptions, l[T]), T) : this.background[T] && (this.background[T] = this.background[T].destroy(), this.background.splice(T, 1));
  13790. }, x.prototype.renderBackground = function(f, l) {
  13791. var T = "animate", O = { class: "highcharts-pane " + (f.className || "") };
  13792. this.chart.styledMode || F(O, { fill: f.backgroundColor, stroke: f.borderColor, "stroke-width": f.borderWidth }), this.background[l] || (this.background[l] = this.chart.renderer.path().add(this.group), T = "attr"), this.background[l][T]({ d: this.axis.getPlotBandPath(f.from, f.to, f) }).attr(O);
  13793. }, x.prototype.updateCenter = function(f) {
  13794. this.center = (f || this.axis || {}).center = y.getCenter.call(this);
  13795. }, x.prototype.update = function(f, l) {
  13796. B(!0, this.options, f), this.setOptions(this.options), this.render(), this.chart.axes.forEach(function(T) {
  13797. T.pane === this && (T.pane = null, T.update({}, l));
  13798. }, this);
  13799. }, x;
  13800. }(), o.prototype.getHoverPane = function(x) {
  13801. var f = this, l;
  13802. return x && f.pane.forEach(function(T) {
  13803. var O = x.chartX - f.plotLeft, R = x.chartY - f.plotTop;
  13804. G(f.inverted ? R : O, f.inverted ? O : R, T.center) && (l = T);
  13805. }), l;
  13806. }, V(o, "afterIsInsidePlot", function(x) {
  13807. this.polar && (x.isInsidePlot = this.pane.some(function(f) {
  13808. return G(x.x, x.y, f.center);
  13809. }));
  13810. }), V(_, "beforeGetHoverData", function(x) {
  13811. var f = this.chart;
  13812. f.polar ? (f.hoverPane = f.getHoverPane(x), x.filter = function(l) {
  13813. return l.visible && !(!x.shared && l.directTouch) && j(l.options.enableMouseTracking, !0) && (!f.hoverPane || l.xAxis.pane === f.hoverPane);
  13814. }) : f.hoverPane = void 0;
  13815. }), V(
  13816. _,
  13817. "afterGetHoverData",
  13818. function(x) {
  13819. var f = this.chart;
  13820. x.hoverPoint && x.hoverPoint.plotX && x.hoverPoint.plotY && f.hoverPane && !G(x.hoverPoint.plotX, x.hoverPoint.plotY, f.hoverPane.center) && (x.hoverPoint = void 0);
  13821. }
  13822. ), N.Pane = U, N.Pane;
  13823. }), C(d, "Core/Axis/RadialAxis.js", [d["Core/Axis/AxisDefaults.js"], d["Core/DefaultOptions.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  13824. var U = y.defaultOptions, G = N.noop, V = _.addEvent, F = _.correctFloat, B = _.defined, j = _.extend, w = _.fireEvent, x = _.merge, f = _.pick, l = _.relativeLength, T = _.wrap, O;
  13825. return function(R) {
  13826. function k() {
  13827. this.autoConnect = this.isCircular && typeof f(this.userMax, this.options.max) > "u" && F(this.endAngleRad - this.startAngleRad) === F(2 * Math.PI), !this.isCircular && this.chart.inverted && this.max++, this.autoConnect && (this.max += this.categories && 1 || this.pointRange || this.closestPointRange || 0);
  13828. }
  13829. function b() {
  13830. var Z = this;
  13831. return function() {
  13832. if (Z.isRadial && Z.tickPositions && Z.options.labels && Z.options.labels.allowOverlap !== !0)
  13833. return Z.tickPositions.map(function(q) {
  13834. return Z.ticks[q] && Z.ticks[q].label;
  13835. }).filter(function(q) {
  13836. return !!q;
  13837. });
  13838. };
  13839. }
  13840. function S() {
  13841. return G;
  13842. }
  13843. function v(Z, q, it) {
  13844. var et = this.pane.center, nt = Z.value;
  13845. if (this.isCircular) {
  13846. if (B(nt))
  13847. Z.point && (rt = Z.point.shapeArgs || {}, rt.start && (nt = this.chart.inverted ? this.translate(Z.point.rectPlotY, !0) : Z.point.x));
  13848. else {
  13849. var rt = Z.chartX || 0, ct = Z.chartY || 0;
  13850. nt = this.translate(Math.atan2(ct - it, rt - q) - this.startAngleRad, !0);
  13851. }
  13852. Z = this.getPosition(nt), rt = Z.x, ct = Z.y;
  13853. } else
  13854. B(nt) || (rt = Z.chartX, ct = Z.chartY), B(rt) && B(ct) && (it = et[1] + this.chart.plotTop, nt = this.translate(Math.min(Math.sqrt(Math.pow(rt - q, 2) + Math.pow(ct - it, 2)), et[2] / 2) - et[3] / 2, !0));
  13855. return [nt, rt || 0, ct || 0];
  13856. }
  13857. function h(Z, q, it) {
  13858. Z = this.pane.center;
  13859. var et = this.chart, nt = this.left || 0, rt = this.top || 0, ct = f(q, Z[2] / 2 - this.offset);
  13860. return typeof it > "u" && (it = this.horiz ? 0 : this.center && -this.center[3] / 2), it && (ct += it), this.isCircular || typeof q < "u" ? (q = this.chart.renderer.symbols.arc(nt + Z[0], rt + Z[1], ct, ct, { start: this.startAngleRad, end: this.endAngleRad, open: !0, innerR: 0 }), q.xBounds = [nt + Z[0]], q.yBounds = [rt + Z[1] - ct]) : (q = this.postTranslate(this.angleRad, ct), q = [["M", this.center[0] + et.plotLeft, this.center[1] + et.plotTop], ["L", q.x, q.y]]), q;
  13861. }
  13862. function c() {
  13863. this.constructor.prototype.getOffset.call(this), this.chart.axisOffset[this.side] = 0;
  13864. }
  13865. function u(Z, q, it) {
  13866. var et = this.chart, nt = function(yt) {
  13867. if (typeof yt == "string") {
  13868. var vt = parseInt(yt, 10);
  13869. return J.test(yt) && (vt = vt * gt / 100), vt;
  13870. }
  13871. return yt;
  13872. }, rt = this.center, ct = this.startAngleRad, gt = rt[2] / 2, dt = Math.min(this.offset, 0), ht = this.left || 0, at = this.top || 0, J = /%$/, tt = this.isCircular, ot = f(nt(it.outerRadius), gt), lt = nt(it.innerRadius);
  13873. if (nt = f(nt(it.thickness), 10), this.options.gridLineInterpolation === "polygon")
  13874. dt = this.getPlotLinePath({ value: Z }).concat(this.getPlotLinePath({ value: q, reverse: !0 }));
  13875. else {
  13876. if (Z = Math.max(Z, this.min), q = Math.min(q, this.max), Z = this.translate(Z), q = this.translate(q), tt || (ot = Z || 0, lt = q || 0), it.shape !== "circle" && tt)
  13877. it = ct + (Z || 0), ct += q || 0;
  13878. else {
  13879. it = -Math.PI / 2, ct = 1.5 * Math.PI;
  13880. var pt = !0;
  13881. }
  13882. ot -= dt, dt = et.renderer.symbols.arc(ht + rt[0], at + rt[1], ot, ot, { start: Math.min(it, ct), end: Math.max(it, ct), innerR: f(lt, ot - (nt - dt)), open: pt }), tt && (tt = (ct + it) / 2, ht = ht + rt[0] + rt[2] / 2 * Math.cos(tt), dt.xBounds = tt > -Math.PI / 2 && tt < Math.PI / 2 ? [ht, et.plotWidth] : [0, ht], dt.yBounds = [at + rt[1] + rt[2] / 2 * Math.sin(tt)], dt.yBounds[0] += tt > -Math.PI && 0 > tt || tt > Math.PI ? -10 : 10);
  13883. }
  13884. return dt;
  13885. }
  13886. function i(Z) {
  13887. var q = this, it = this.pane.center, et = this.chart, nt = et.inverted, rt = Z.reverse, ct = this.pane.options.background ? this.pane.options.background[0] || this.pane.options.background : {}, gt = ct.innerRadius || "0%", dt = ct.outerRadius || "100%", ht = it[0] + et.plotLeft, at = it[1] + et.plotTop, J = this.height, tt = Z.isCrosshair;
  13888. ct = it[3] / 2;
  13889. var ot = Z.value, lt, pt = this.getPosition(ot), yt = pt.x;
  13890. if (pt = pt.y, tt && (pt = this.getCrosshairPosition(Z, ht, at), ot = pt[0], yt = pt[1], pt = pt[2]), this.isCircular)
  13891. ot = Math.sqrt(Math.pow(yt - ht, 2) + Math.pow(pt - at, 2)), rt = typeof gt == "string" ? l(gt, 1) : gt / ot, et = typeof dt == "string" ? l(dt, 1) : dt / ot, it && ct && (ct /= ot, rt < ct && (rt = ct), et < ct && (et = ct)), it = [["M", ht + rt * (yt - ht), at - rt * (at - pt)], ["L", yt - (1 - et) * (yt - ht), pt + (1 - et) * (at - pt)]];
  13892. else if ((ot = this.translate(ot)) && (0 > ot || ot > J) && (ot = 0), this.options.gridLineInterpolation === "circle")
  13893. it = this.getLinePath(0, ot, ct);
  13894. else if (it = [], et[nt ? "yAxis" : "xAxis"].forEach(function(vt) {
  13895. vt.pane === q.pane && (lt = vt);
  13896. }), lt)
  13897. for (ht = lt.tickPositions, lt.autoConnect && (ht = ht.concat([ht[0]])), rt && (ht = ht.slice().reverse()), ot && (ot += ct), at = 0; at < ht.length; at++)
  13898. ct = lt.getPosition(ht[at], ot), it.push(at ? ["L", ct.x, ct.y] : ["M", ct.x, ct.y]);
  13899. return it;
  13900. }
  13901. function p(Z, q) {
  13902. return Z = this.translate(Z), this.postTranslate(this.isCircular ? Z : this.angleRad, f(this.isCircular ? q : 0 > Z ? 0 : Z, this.center[2] / 2) - this.offset);
  13903. }
  13904. function a() {
  13905. var Z = this.center, q = this.chart, it = this.options.title;
  13906. return { x: q.plotLeft + Z[0] + (it.x || 0), y: q.plotTop + Z[1] - { high: 0.5, middle: 0.25, low: 0 }[it.align] * Z[2] + (it.y || 0) };
  13907. }
  13908. function t(Z) {
  13909. Z.beforeSetTickPositions = k, Z.createLabelCollector = b, Z.getCrosshairPosition = v, Z.getLinePath = h, Z.getOffset = c, Z.getPlotBandPath = u, Z.getPlotLinePath = i, Z.getPosition = p, Z.getTitlePosition = a, Z.postTranslate = X, Z.setAxisSize = m, Z.setAxisTranslation = L, Z.setOptions = z;
  13910. }
  13911. function s() {
  13912. var Z = this.chart, q = this.options, it = this.pane, et = it && it.options;
  13913. Z.angular && this.isXAxis || !it || !Z.angular && !Z.polar || (this.angleRad = (q.angle || 0) * Math.PI / 180, this.startAngleRad = (et.startAngle - 90) * Math.PI / 180, this.endAngleRad = (f(et.endAngle, et.startAngle + 360) - 90) * Math.PI / 180, this.offset = q.offset || 0);
  13914. }
  13915. function n(Z) {
  13916. this.isRadial && (Z.align = void 0, Z.preventDefault());
  13917. }
  13918. function P() {
  13919. if (this.chart && this.chart.labelCollectors) {
  13920. var Z = this.labelCollector ? this.chart.labelCollectors.indexOf(this.labelCollector) : -1;
  13921. 0 <= Z && this.chart.labelCollectors.splice(Z, 1);
  13922. }
  13923. }
  13924. function D(Z) {
  13925. var q = this.chart, it = q.inverted, et = q.angular, nt = q.polar, rt = this.isXAxis, ct = this.coll, gt = et && rt, dt = q.options;
  13926. Z = Z.userOptions.pane || 0, Z = this.pane = q.pane && q.pane[Z];
  13927. var ht;
  13928. ct === "colorAxis" ? this.isRadial = !1 : (et ? (gt ? (this.isHidden = !0, this.createLabelCollector = S, this.getOffset = G, this.render = this.redraw = g, this.setTitle = this.setCategories = this.setScale = G) : t(this), (ht = !rt) && (this.defaultPolarOptions = H)) : nt && (t(this), this.defaultPolarOptions = (ht = this.horiz) ? A : x(ct === "xAxis" ? o.defaultXAxisOptions : o.defaultYAxisOptions, Y), it && ct === "yAxis" && (this.defaultPolarOptions.stackLabels = o.defaultYAxisOptions.stackLabels, this.defaultPolarOptions.reversedStacks = !0)), et || nt ? (this.isRadial = !0, dt.chart.zoomType = null, this.labelCollector || (this.labelCollector = this.createLabelCollector()), this.labelCollector && q.labelCollectors.push(this.labelCollector)) : this.isRadial = !1, Z && ht && (Z.axis = this), this.isCircular = ht);
  13929. }
  13930. function I() {
  13931. this.isRadial && this.beforeSetTickPositions();
  13932. }
  13933. function W(Z) {
  13934. var q = this.label;
  13935. if (q) {
  13936. var it = this.axis, et = q.getBBox(), nt = it.options.labels, rt = (it.translate(this.pos) + it.startAngleRad + Math.PI / 2) / Math.PI * 180 % 360, ct = Math.round(rt), gt = B(nt.y) ? 0 : 0.3 * -et.height, dt = nt.y, ht = 20, at = nt.align, J = "end", tt = 0 > ct ? ct + 360 : ct, ot = tt, lt = 0, pt = 0;
  13937. if (it.isRadial) {
  13938. var yt = it.getPosition(this.pos, it.center[2] / 2 + l(f(nt.distance, -25), it.center[2] / 2, -it.center[2] / 2));
  13939. nt.rotation === "auto" ? q.attr({ rotation: rt }) : B(dt) || (dt = it.chart.renderer.fontMetrics(q.styles && q.styles.fontSize).b - et.height / 2), B(at) || (it.isCircular ? (et.width > it.len * it.tickInterval / (it.max - it.min) && (ht = 0), at = rt > ht && rt < 180 - ht ? "left" : rt > 180 + ht && rt < 360 - ht ? "right" : "center") : at = "center", q.attr({ align: at })), at === "auto" && it.tickPositions.length === 2 && it.isCircular && (90 < tt && 180 > tt ? tt = 180 - tt : 270 < tt && 360 >= tt && (tt = 540 - tt), 180 < ot && 360 >= ot && (ot = 360 - ot), (it.pane.options.startAngle === ct || it.pane.options.startAngle === ct + 360 || it.pane.options.startAngle === ct - 360) && (J = "start"), at = -90 <= ct && 90 >= ct || -360 <= ct && -270 >= ct || 270 <= ct && 360 >= ct ? J === "start" ? "right" : "left" : J === "start" ? "left" : "right", 70 < ot && 110 > ot && (at = "center"), 15 > tt || 180 <= tt && 195 > tt ? lt = 0.3 * et.height : 15 <= tt && 35 >= tt ? lt = J === "start" ? 0 : 0.75 * et.height : 195 <= tt && 215 >= tt ? lt = J === "start" ? 0.75 * et.height : 0 : 35 < tt && 90 >= tt ? lt = J === "start" ? 0.25 * -et.height : et.height : 215 < tt && 270 >= tt && (lt = J === "start" ? et.height : 0.25 * -et.height), 15 > ot ? pt = J === "start" ? 0.15 * -et.height : 0.15 * et.height : 165 < ot && 180 >= ot && (pt = J === "start" ? 0.15 * et.height : 0.15 * -et.height), q.attr({ align: at }), q.translate(
  13940. pt,
  13941. lt + gt
  13942. )), Z.pos.x = yt.x + (nt.x || 0), Z.pos.y = yt.y + (dt || 0);
  13943. }
  13944. }
  13945. }
  13946. function E(Z) {
  13947. this.axis.getPosition && j(Z.pos, this.axis.getPosition(this.pos));
  13948. }
  13949. function X(Z, q) {
  13950. var it = this.chart, et = this.center;
  13951. return Z = this.startAngleRad + Z, { x: it.plotLeft + et[0] + Math.cos(Z) * q, y: it.plotTop + et[1] + Math.sin(Z) * q };
  13952. }
  13953. function g() {
  13954. this.isDirty = !1;
  13955. }
  13956. function m() {
  13957. if (this.constructor.prototype.setAxisSize.call(this), this.isRadial) {
  13958. this.pane.updateCenter(this);
  13959. var Z = this.center = this.pane.center.slice();
  13960. if (this.isCircular)
  13961. this.sector = this.endAngleRad - this.startAngleRad;
  13962. else {
  13963. var q = this.postTranslate(this.angleRad, Z[3] / 2);
  13964. Z[0] = q.x - this.chart.plotLeft, Z[1] = q.y - this.chart.plotTop;
  13965. }
  13966. this.len = this.width = this.height = (Z[2] - Z[3]) * f(this.sector, 1) / 2;
  13967. }
  13968. }
  13969. function L() {
  13970. 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);
  13971. }
  13972. function z(Z) {
  13973. Z = this.options = x(this.constructor.defaultOptions, this.defaultPolarOptions, U[this.coll], Z), Z.plotBands || (Z.plotBands = []), w(this, "afterSetOptions");
  13974. }
  13975. function $(Z, q, it, et, nt, rt, ct) {
  13976. var gt = this.axis;
  13977. return gt.isRadial ? (Z = gt.getPosition(this.pos, gt.center[2] / 2 + et), q = ["M", q, it, "L", Z.x, Z.y]) : q = Z.call(this, q, it, et, nt, rt, ct), q;
  13978. }
  13979. var Q = [], A = { gridLineWidth: 1, labels: { align: void 0, distance: 15, x: 0, y: void 0, style: { textOverflow: "none" } }, maxPadding: 0, minPadding: 0, showLastLabel: !1, tickLength: 0 }, H = {
  13980. labels: { align: "center", x: 0, y: void 0 },
  13981. minorGridLineWidth: 0,
  13982. minorTickInterval: "auto",
  13983. minorTickLength: 10,
  13984. minorTickPosition: "inside",
  13985. minorTickWidth: 1,
  13986. tickLength: 10,
  13987. tickPosition: "inside",
  13988. tickWidth: 2,
  13989. title: { rotation: 0 },
  13990. zIndex: 2
  13991. }, Y = { gridLineInterpolation: "circle", gridLineWidth: 1, labels: { align: "right", x: -3, y: -2 }, showLastLabel: !1, title: { x: 4, text: null, rotation: 90 } };
  13992. R.compose = function(Z, q) {
  13993. return Q.indexOf(Z) === -1 && (Q.push(Z), V(Z, "afterInit", s), V(Z, "autoLabelAlign", n), V(Z, "destroy", P), V(Z, "init", D), V(Z, "initialAxisTranslation", I)), Q.indexOf(q) === -1 && (Q.push(q), V(
  13994. q,
  13995. "afterGetLabelPosition",
  13996. W
  13997. ), V(q, "afterGetPosition", E), T(q.prototype, "getMarkPath", $)), Z;
  13998. };
  13999. }(O || (O = {})), O;
  14000. }), C(d, "Series/AreaRange/AreaRangePoint.js", [d["Series/Area/AreaSeries.js"], d["Core/Series/Point.js"], d["Core/Utilities.js"]], function(o, y, N) {
  14001. var _ = this && this.__extends || function() {
  14002. var F = function(B, j) {
  14003. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  14004. w.__proto__ = x;
  14005. } || function(w, x) {
  14006. for (var f in x)
  14007. x.hasOwnProperty(f) && (w[f] = x[f]);
  14008. }, F(B, j);
  14009. };
  14010. return function(B, j) {
  14011. function w() {
  14012. this.constructor = B;
  14013. }
  14014. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  14015. };
  14016. }(), U = y.prototype, G = N.defined, V = N.isNumber;
  14017. return function(F) {
  14018. function B() {
  14019. var j = F !== null && F.apply(this, arguments) || this;
  14020. return j.high = void 0, j.low = void 0, j.options = void 0, j.plotHigh = void 0, j.plotLow = void 0, j.plotHighX = void 0, j.plotLowX = void 0, j.plotX = void 0, j.series = void 0, j;
  14021. }
  14022. return _(B, F), B.prototype.setState = function() {
  14023. var j = this.state, w = this.series, x = w.chart.polar;
  14024. G(this.plotHigh) || (this.plotHigh = w.yAxis.toPixels(
  14025. this.high,
  14026. !0
  14027. )), G(this.plotLow) || (this.plotLow = this.plotY = w.yAxis.toPixels(this.low, !0)), w.stateMarkerGraphic && (w.lowerStateMarkerGraphic = w.stateMarkerGraphic, w.stateMarkerGraphic = w.upperStateMarkerGraphic), this.graphic = this.upperGraphic, this.plotY = this.plotHigh, x && (this.plotX = this.plotHighX), U.setState.apply(this, arguments), this.state = j, this.plotY = this.plotLow, this.graphic = this.lowerGraphic, x && (this.plotX = this.plotLowX), w.stateMarkerGraphic && (w.upperStateMarkerGraphic = w.stateMarkerGraphic, w.stateMarkerGraphic = w.lowerStateMarkerGraphic, w.lowerStateMarkerGraphic = void 0), U.setState.apply(this, arguments);
  14028. }, B.prototype.haloPath = function() {
  14029. var j = this.series.chart.polar, w = [];
  14030. return this.plotY = this.plotLow, j && (this.plotX = this.plotLowX), this.isInside && (w = U.haloPath.apply(this, arguments)), this.plotY = this.plotHigh, j && (this.plotX = this.plotHighX), this.isTopInside && (w = w.concat(U.haloPath.apply(this, arguments))), w;
  14031. }, B.prototype.isValid = function() {
  14032. return V(this.low) && V(this.high);
  14033. }, B;
  14034. }(o.prototype.pointClass);
  14035. }), C(
  14036. d,
  14037. "Series/AreaRange/AreaRangeSeries.js",
  14038. [d["Series/AreaRange/AreaRangePoint.js"], d["Series/Area/AreaSeries.js"], d["Series/Column/ColumnSeries.js"], d["Core/Globals.js"], d["Core/Series/Series.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]],
  14039. function(o, y, N, _, U, G, V) {
  14040. var F = this && this.__extends || function() {
  14041. var R = function(k, b) {
  14042. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  14043. S.__proto__ = v;
  14044. } || function(S, v) {
  14045. for (var h in v)
  14046. v.hasOwnProperty(h) && (S[h] = v[h]);
  14047. }, R(k, b);
  14048. };
  14049. return function(k, b) {
  14050. function S() {
  14051. this.constructor = k;
  14052. }
  14053. R(k, b), k.prototype = b === null ? Object.create(b) : (S.prototype = b.prototype, new S());
  14054. };
  14055. }(), B = y.prototype, j = N.prototype;
  14056. N = _.noop;
  14057. var w = U.prototype, x = V.defined, f = V.extend, l = V.isArray, T = V.pick, O = V.merge;
  14058. return U = function(R) {
  14059. function k() {
  14060. var b = R !== null && R.apply(this, arguments) || this;
  14061. return b.data = void 0, b.options = void 0, b.points = void 0, b.lowerStateMarkerGraphic = void 0, b.xAxis = void 0, b;
  14062. }
  14063. return F(k, R), k.prototype.toYData = function(b) {
  14064. return [b.low, b.high];
  14065. }, k.prototype.highToXY = function(b) {
  14066. var S = this.chart, v = this.xAxis.postTranslate(b.rectPlotX || 0, this.yAxis.len - b.plotHigh);
  14067. b.plotHighX = v.x - S.plotLeft, b.plotHigh = v.y - S.plotTop, b.plotLowX = b.plotX;
  14068. }, k.prototype.translate = function() {
  14069. var b = this, S = b.yAxis;
  14070. B.translate.apply(b), b.points.forEach(function(v) {
  14071. var h = v.high, c = v.plotY;
  14072. v.isNull ? v.plotY = null : (v.plotLow = c, v.plotHigh = S.translate(b.dataModify ? b.dataModify.modifyValue(h) : h, 0, 1, 0, 1), b.dataModify && (v.yBottom = v.plotHigh));
  14073. }), this.chart.polar && this.points.forEach(function(v) {
  14074. b.highToXY(v), v.tooltipPos = [(v.plotHighX + v.plotLowX) / 2, (v.plotHigh + v.plotLow) / 2];
  14075. });
  14076. }, k.prototype.getGraphPath = function(b) {
  14077. var S = [], v = [], h, c = B.getGraphPath, u = this.options, i = this.chart.polar, p = i && u.connectEnds !== !1, a = u.connectNulls, t = u.step;
  14078. for (b = b || this.points, h = b.length; h--; ) {
  14079. var s = b[h], n = i ? { plotX: s.rectPlotX, plotY: s.yBottom, doCurve: !1 } : { plotX: s.plotX, plotY: s.plotY, doCurve: !1 };
  14080. s.isNull || p || a || b[h + 1] && !b[h + 1].isNull || v.push(n);
  14081. var P = { polarPlotY: s.polarPlotY, rectPlotX: s.rectPlotX, yBottom: s.yBottom, plotX: T(
  14082. s.plotHighX,
  14083. s.plotX
  14084. ), plotY: s.plotHigh, isNull: s.isNull };
  14085. v.push(P), S.push(P), s.isNull || p || a || b[h - 1] && !b[h - 1].isNull || v.push(n);
  14086. }
  14087. return b = c.call(this, b), t && (t === !0 && (t = "left"), u.step = { left: "right", center: "center", right: "left" }[t]), S = c.call(this, S), v = c.call(this, v), u.step = t, u = [].concat(b, S), !this.chart.polar && v[0] && v[0][0] === "M" && (v[0] = ["L", v[0][1], v[0][2]]), this.graphPath = u, this.areaPath = b.concat(v), u.isArea = !0, u.xMap = b.xMap, this.areaPath.xMap = b.xMap, u;
  14088. }, k.prototype.drawDataLabels = function() {
  14089. var b = this.points, S = b.length, v, h = [], c = this.options.dataLabels, u, i = this.chart.inverted;
  14090. if (c) {
  14091. if (l(c))
  14092. var p = c[0] || { enabled: !1 }, a = c[1] || { enabled: !1 };
  14093. else
  14094. p = f({}, c), p.x = c.xHigh, p.y = c.yHigh, a = f({}, c), a.x = c.xLow, a.y = c.yLow;
  14095. if (p.enabled || this._hasPointLabels) {
  14096. for (v = S; v--; )
  14097. if (u = b[v]) {
  14098. var t = p.inside ? u.plotHigh < u.plotLow : u.plotHigh > u.plotLow;
  14099. u.y = u.high, u._plotY = u.plotY, u.plotY = u.plotHigh, h[v] = u.dataLabel, u.dataLabel = u.dataLabelUpper, u.below = t, i ? p.align || (p.align = t ? "right" : "left") : p.verticalAlign || (p.verticalAlign = t ? "top" : "bottom");
  14100. }
  14101. for (this.options.dataLabels = p, w.drawDataLabels && w.drawDataLabels.apply(this, arguments), v = S; v--; )
  14102. (u = b[v]) && (u.dataLabelUpper = u.dataLabel, u.dataLabel = h[v], delete u.dataLabels, u.y = u.low, u.plotY = u._plotY);
  14103. }
  14104. if (a.enabled || this._hasPointLabels) {
  14105. for (v = S; v--; )
  14106. (u = b[v]) && (t = a.inside ? u.plotHigh < u.plotLow : u.plotHigh > u.plotLow, u.below = !t, i ? a.align || (a.align = t ? "left" : "right") : a.verticalAlign || (a.verticalAlign = t ? "bottom" : "top"));
  14107. this.options.dataLabels = a, w.drawDataLabels && w.drawDataLabels.apply(this, arguments);
  14108. }
  14109. if (p.enabled)
  14110. for (v = S; v--; )
  14111. (u = b[v]) && (u.dataLabels = [u.dataLabelUpper, u.dataLabel].filter(function(s) {
  14112. return !!s;
  14113. }));
  14114. this.options.dataLabels = c;
  14115. }
  14116. }, k.prototype.alignDataLabel = function() {
  14117. j.alignDataLabel.apply(this, arguments);
  14118. }, k.prototype.drawPoints = function() {
  14119. var b = this.points.length, S;
  14120. for (w.drawPoints.apply(this, arguments), S = 0; S < b; ) {
  14121. var v = this.points[S];
  14122. v.origProps = { plotY: v.plotY, plotX: v.plotX, isInside: v.isInside, negative: v.negative, zone: v.zone, y: v.y }, v.lowerGraphic = v.graphic, v.graphic = v.upperGraphic, v.plotY = v.plotHigh, x(v.plotHighX) && (v.plotX = v.plotHighX), v.y = T(v.high, v.origProps.y), v.negative = v.y < (this.options.threshold || 0), this.zones.length && (v.zone = v.getZone()), this.chart.polar || (v.isInside = v.isTopInside = typeof v.plotY < "u" && 0 <= v.plotY && v.plotY <= this.yAxis.len && 0 <= v.plotX && v.plotX <= this.xAxis.len), S++;
  14123. }
  14124. for (w.drawPoints.apply(this, arguments), S = 0; S < b; )
  14125. v = this.points[S], v.upperGraphic = v.graphic, v.graphic = v.lowerGraphic, v.origProps && (f(v, v.origProps), delete v.origProps), S++;
  14126. }, k.defaultOptions = O(y.defaultOptions, {
  14127. lineWidth: 1,
  14128. threshold: null,
  14129. tooltip: { pointFormat: '<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14130. trackByArea: !0,
  14131. dataLabels: { align: void 0, verticalAlign: void 0, xLow: 0, xHigh: 0, yLow: 0, yHigh: 0 }
  14132. }), k;
  14133. }(y), f(U.prototype, { pointArrayMap: ["low", "high"], pointValKey: "low", deferTranslatePolar: !0, pointClass: o, setStackedPoints: N }), G.registerSeriesType("arearange", U), U;
  14134. }
  14135. ), C(d, "Series/AreaSplineRange/AreaSplineRangeSeries.js", [
  14136. d["Series/AreaRange/AreaRangeSeries.js"],
  14137. d["Core/Series/SeriesRegistry.js"],
  14138. d["Core/Utilities.js"]
  14139. ], function(o, y, N) {
  14140. var _ = this && this.__extends || function() {
  14141. var F = function(B, j) {
  14142. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  14143. w.__proto__ = x;
  14144. } || function(w, x) {
  14145. for (var f in x)
  14146. x.hasOwnProperty(f) && (w[f] = x[f]);
  14147. }, F(B, j);
  14148. };
  14149. return function(B, j) {
  14150. function w() {
  14151. this.constructor = B;
  14152. }
  14153. F(B, j), B.prototype = j === null ? Object.create(j) : (w.prototype = j.prototype, new w());
  14154. };
  14155. }(), U = y.seriesTypes.spline, G = N.merge;
  14156. N = N.extend;
  14157. var V = function(F) {
  14158. function B() {
  14159. var j = F !== null && F.apply(this, arguments) || this;
  14160. return j.options = void 0, j.data = void 0, j.points = void 0, j;
  14161. }
  14162. return _(B, F), B.defaultOptions = G(o.defaultOptions), B;
  14163. }(o);
  14164. return N(V.prototype, { getPointSpline: U.prototype.getPointSpline }), y.registerSeriesType("areasplinerange", V), V;
  14165. }), C(d, "Series/BoxPlot/BoxPlotSeries.js", [d["Series/Column/ColumnSeries.js"], d["Core/Globals.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14166. var U = this && this.__extends || function() {
  14167. var B = function(j, w) {
  14168. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, f) {
  14169. x.__proto__ = f;
  14170. } || function(x, f) {
  14171. for (var l in f)
  14172. f.hasOwnProperty(l) && (x[l] = f[l]);
  14173. }, B(j, w);
  14174. };
  14175. return function(j, w) {
  14176. function x() {
  14177. this.constructor = j;
  14178. }
  14179. B(j, w), j.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  14180. };
  14181. }();
  14182. y = y.noop;
  14183. var G = _.extend, V = _.merge, F = _.pick;
  14184. return _ = function(B) {
  14185. function j() {
  14186. var w = B !== null && B.apply(this, arguments) || this;
  14187. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  14188. }
  14189. return U(j, B), j.prototype.pointAttribs = function() {
  14190. return {};
  14191. }, j.prototype.translate = function() {
  14192. var w = this.yAxis, x = this.pointArrayMap;
  14193. B.prototype.translate.apply(this), this.points.forEach(function(f) {
  14194. x.forEach(function(l) {
  14195. f[l] !== null && (f[l + "Plot"] = w.translate(f[l], 0, 1, 0, 1));
  14196. }), f.plotHigh = f.highPlot;
  14197. });
  14198. }, j.prototype.drawPoints = function() {
  14199. var w = this, x = w.options, f = w.chart, l = f.renderer, T, O, R, k, b, S, v = 0, h, c, u, i, p = w.doQuartiles !== !1, a, t = w.options.whiskerLength;
  14200. w.points.forEach(function(s) {
  14201. var n = s.graphic, P = n ? "animate" : "attr", D = s.shapeArgs, I = {}, W = {}, E = {}, X = {}, g = s.color || w.color;
  14202. typeof s.plotY < "u" && (h = Math.round(D.width), c = Math.floor(D.x), u = c + h, i = Math.round(h / 2), T = Math.floor(p ? s.q1Plot : s.lowPlot), O = Math.floor(p ? s.q3Plot : s.lowPlot), R = Math.floor(s.highPlot), k = Math.floor(s.lowPlot), n || (s.graphic = n = l.g("point").add(w.group), s.stem = l.path().addClass("highcharts-boxplot-stem").add(n), t && (s.whiskers = l.path().addClass("highcharts-boxplot-whisker").add(n)), p && (s.box = l.path(void 0).addClass("highcharts-boxplot-box").add(n)), s.medianShape = l.path(void 0).addClass("highcharts-boxplot-median").add(n)), f.styledMode || (W.stroke = s.stemColor || x.stemColor || g, W["stroke-width"] = F(s.stemWidth, x.stemWidth, x.lineWidth), W.dashstyle = s.stemDashStyle || x.stemDashStyle || x.dashStyle, s.stem.attr(W), t && (E.stroke = s.whiskerColor || x.whiskerColor || g, E["stroke-width"] = F(s.whiskerWidth, x.whiskerWidth, x.lineWidth), E.dashstyle = s.whiskerDashStyle || x.whiskerDashStyle || x.dashStyle, s.whiskers.attr(E)), p && (I.fill = s.fillColor || x.fillColor || g, I.stroke = x.lineColor || g, I["stroke-width"] = x.lineWidth || 0, I.dashstyle = s.boxDashStyle || x.boxDashStyle || x.dashStyle, s.box.attr(I)), X.stroke = s.medianColor || x.medianColor || g, X["stroke-width"] = F(s.medianWidth, x.medianWidth, x.lineWidth), X.dashstyle = s.medianDashStyle || x.medianDashStyle || x.dashStyle, s.medianShape.attr(X)), S = s.stem.strokeWidth() % 2 / 2, v = c + i + S, n = [["M", v, O], ["L", v, R], ["M", v, T], ["L", v, k]], s.stem[P]({ d: n }), p && (S = s.box.strokeWidth() % 2 / 2, T = Math.floor(T) + S, O = Math.floor(O) + S, c += S, u += S, n = [["M", c, O], ["L", c, T], ["L", u, T], ["L", u, O], ["L", c, O], ["Z"]], s.box[P]({ d: n })), t && (S = s.whiskers.strokeWidth() % 2 / 2, R += S, k += S, a = /%$/.test(t) ? i * parseFloat(t) / 100 : t / 2, n = [["M", v - a, R], ["L", v + a, R], ["M", v - a, k], ["L", v + a, k]], s.whiskers[P]({ d: n })), b = Math.round(s.medianPlot), S = s.medianShape.strokeWidth() % 2 / 2, b += S, n = [["M", c, b], ["L", u, b]], s.medianShape[P]({ d: n }));
  14203. });
  14204. }, j.prototype.toYData = function(w) {
  14205. return [w.low, w.q1, w.median, w.q3, w.high];
  14206. }, j.defaultOptions = V(o.defaultOptions, {
  14207. threshold: null,
  14208. 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/>' },
  14209. whiskerLength: "50%",
  14210. fillColor: "#ffffff",
  14211. lineWidth: 1,
  14212. medianWidth: 2,
  14213. whiskerWidth: 2
  14214. }), j;
  14215. }(o), G(_.prototype, { pointArrayMap: ["low", "q1", "median", "q3", "high"], pointValKey: "high", drawDataLabels: y, setStackedPoints: y }), N.registerSeriesType("boxplot", _), _;
  14216. }), C(d, "Series/Bubble/BubbleLegendDefaults.js", [], function() {
  14217. return { borderColor: void 0, borderWidth: 2, className: void 0, color: void 0, connectorClassName: void 0, connectorColor: void 0, connectorDistance: 60, connectorWidth: 1, enabled: !1, labels: {
  14218. className: void 0,
  14219. allowOverlap: !1,
  14220. format: "",
  14221. formatter: void 0,
  14222. align: "right",
  14223. style: { fontSize: "10px", color: "#000000" },
  14224. x: 0,
  14225. y: 0
  14226. }, maxSize: 60, minSize: 10, legendIndex: 0, ranges: { value: void 0, borderColor: void 0, color: void 0, connectorColor: void 0 }, sizeBy: "area", sizeByAbsoluteValue: !1, zIndex: 1, zThreshold: 0 };
  14227. }), C(d, "Series/Bubble/BubbleLegendItem.js", [d["Core/Color/Color.js"], d["Core/FormatUtilities.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14228. var U = o.parse, G = N.noop, V = _.arrayMax, F = _.arrayMin, B = _.isNumber, j = _.merge, w = _.pick, x = _.stableSort;
  14229. return function() {
  14230. function f(l, T) {
  14231. this.options = this.symbols = this.visible = this.selected = this.ranges = this.movementX = this.maxLabel = this.legendSymbol = this.legendItemWidth = this.legendItemHeight = this.legendItem = this.legendGroup = this.legend = this.fontMetrics = this.chart = void 0, this.setState = G, this.init(l, T);
  14232. }
  14233. return f.prototype.init = function(l, T) {
  14234. this.options = l, this.visible = !0, this.chart = T.chart, this.legend = T;
  14235. }, f.prototype.addToLegend = function(l) {
  14236. l.splice(
  14237. this.options.legendIndex,
  14238. 0,
  14239. this
  14240. );
  14241. }, f.prototype.drawLegendSymbol = function(l) {
  14242. var T = this.chart, O = this.options, R = w(l.options.itemDistance, 20), k = O.ranges, b = O.connectorDistance;
  14243. this.fontMetrics = T.renderer.fontMetrics(O.labels.style.fontSize), k && k.length && B(k[0].value) ? (x(k, function(S, v) {
  14244. return v.value - S.value;
  14245. }), this.ranges = k, this.setOptions(), this.render(), l = this.getMaxLabelSize(), k = this.ranges[0].radius, T = 2 * k, b = b - k + l.width, b = 0 < b ? b : 0, this.maxLabel = l, this.movementX = O.labels.align === "left" ? b : 0, this.legendItemWidth = T + b + R, this.legendItemHeight = T + this.fontMetrics.h / 2) : l.options.bubbleLegend.autoRanges = !0;
  14246. }, f.prototype.setOptions = function() {
  14247. var l = this.ranges, T = this.options, O = this.chart.series[T.seriesIndex], R = this.legend.baseline, k = { zIndex: T.zIndex, "stroke-width": T.borderWidth }, b = { zIndex: T.zIndex, "stroke-width": T.connectorWidth }, S = { align: this.legend.options.rtl || T.labels.align === "left" ? "right" : "left", zIndex: T.zIndex }, v = O.options.marker.fillOpacity, h = this.chart.styledMode;
  14248. l.forEach(function(c, u) {
  14249. h || (k.stroke = w(c.borderColor, T.borderColor, O.color), k.fill = w(c.color, T.color, v !== 1 ? U(O.color).setOpacity(v).get("rgba") : O.color), b.stroke = w(c.connectorColor, T.connectorColor, O.color)), l[u].radius = this.getRangeRadius(c.value), l[u] = j(l[u], { center: l[0].radius - l[u].radius + R }), h || j(!0, l[u], { bubbleAttribs: j(k), connectorAttribs: j(b), labelAttribs: S });
  14250. }, this);
  14251. }, f.prototype.getRangeRadius = function(l) {
  14252. var T = this.options;
  14253. return this.chart.series[this.options.seriesIndex].getRadius.call(
  14254. this,
  14255. T.ranges[T.ranges.length - 1].value,
  14256. T.ranges[0].value,
  14257. T.minSize,
  14258. T.maxSize,
  14259. l
  14260. );
  14261. }, f.prototype.render = function() {
  14262. var l = this.chart.renderer, T = this.options.zThreshold;
  14263. this.symbols || (this.symbols = { connectors: [], bubbleItems: [], labels: [] }), this.legendSymbol = l.g("bubble-legend"), this.legendItem = l.g("bubble-legend-item"), this.legendSymbol.translateX = 0, this.legendSymbol.translateY = 0, this.ranges.forEach(function(O) {
  14264. O.value >= T && this.renderRange(O);
  14265. }, this), this.legendSymbol.add(this.legendItem), this.legendItem.add(this.legendGroup), this.hideOverlappingLabels();
  14266. }, f.prototype.renderRange = function(l) {
  14267. var T = this.options, O = T.labels, R = this.chart, k = R.series[T.seriesIndex], b = R.renderer, S = this.symbols;
  14268. R = S.labels;
  14269. var v = l.center, h = Math.abs(l.radius), c = T.connectorDistance || 0, u = O.align, i = T.connectorWidth, p = this.ranges[0].radius || 0, a = v - h - T.borderWidth / 2 + i / 2, t = this.fontMetrics;
  14270. t = t.f / 2 - (t.h - t.f) / 2;
  14271. var s = b.styledMode;
  14272. c = this.legend.options.rtl || u === "left" ? -c : c, u === "center" && (c = 0, T.connectorDistance = 0, l.labelAttribs.align = "center"), u = a + T.labels.y;
  14273. var n = p + c + T.labels.x;
  14274. S.bubbleItems.push(b.circle(
  14275. p,
  14276. v + ((a % 1 ? 1 : 0.5) - (i % 2 ? 0 : 0.5)),
  14277. h
  14278. ).attr(s ? {} : l.bubbleAttribs).addClass((s ? "highcharts-color-" + k.colorIndex + " " : "") + "highcharts-bubble-legend-symbol " + (T.className || "")).add(this.legendSymbol)), S.connectors.push(b.path(b.crispLine([["M", p, a], ["L", p + c, a]], T.connectorWidth)).attr(s ? {} : l.connectorAttribs).addClass((s ? "highcharts-color-" + this.options.seriesIndex + " " : "") + "highcharts-bubble-legend-connectors " + (T.connectorClassName || "")).add(this.legendSymbol)), l = b.text(this.formatLabel(l), n, u + t).attr(s ? {} : l.labelAttribs).css(s ? {} : O.style).addClass("highcharts-bubble-legend-labels " + (T.labels.className || "")).add(this.legendSymbol), R.push(l), l.placed = !0, l.alignAttr = { x: n, y: u + t };
  14279. }, f.prototype.getMaxLabelSize = function() {
  14280. var l, T;
  14281. return this.symbols.labels.forEach(function(O) {
  14282. T = O.getBBox(!0), l = l ? T.width > l.width ? T : l : T;
  14283. }), l || {};
  14284. }, f.prototype.formatLabel = function(l) {
  14285. var T = this.options, O = T.labels.formatter;
  14286. T = T.labels.format;
  14287. var R = this.chart.numberFormatter;
  14288. return T ? y.format(T, l) : O ? O.call(l) : R(l.value, 1);
  14289. }, f.prototype.hideOverlappingLabels = function() {
  14290. var l = this.chart, T = this.symbols;
  14291. !this.options.labels.allowOverlap && T && (l.hideOverlappingLabels(T.labels), T.labels.forEach(function(O, R) {
  14292. O.newOpacity ? O.newOpacity !== O.oldOpacity && T.connectors[R].show() : T.connectors[R].hide();
  14293. }));
  14294. }, f.prototype.getRanges = function() {
  14295. var l = this.legend.bubbleLegend, T = l.options.ranges, O, R = Number.MAX_VALUE, k = -Number.MAX_VALUE;
  14296. l.chart.series.forEach(function(S) {
  14297. S.isBubble && !S.ignoreSeries && (O = S.zData.filter(B), O.length && (R = w(S.options.zMin, Math.min(R, Math.max(
  14298. F(O),
  14299. S.options.displayNegative === !1 ? S.options.zThreshold : -Number.MAX_VALUE
  14300. ))), k = w(S.options.zMax, Math.max(k, V(O)))));
  14301. });
  14302. var b = R === k ? [{ value: k }] : [{ value: R }, { value: (R + k) / 2 }, { value: k, autoRanges: !0 }];
  14303. return T.length && T[0].radius && b.reverse(), b.forEach(function(S, v) {
  14304. T && T[v] && (b[v] = j(T[v], S));
  14305. }), b;
  14306. }, f.prototype.predictBubbleSizes = function() {
  14307. var l = this.chart, T = this.fontMetrics, O = l.legend.options, R = O.floating, k = (O = O.layout === "horizontal") ? l.legend.lastLineHeight : 0, b = l.plotSizeX, S = l.plotSizeY, v = l.series[this.options.seriesIndex], h = v.getPxExtremes();
  14308. l = Math.ceil(h.minPxSize), h = Math.ceil(h.maxPxSize);
  14309. var c = Math.min(S, b);
  14310. return v = v.options.maxSize, R || !/%$/.test(v) ? T = h : (v = parseFloat(v), T = (c + k - T.h / 2) * v / 100 / (v / 100 + 1), (O && S - T >= b || !O && b - T >= S) && (T = h)), [l, Math.ceil(T)];
  14311. }, f.prototype.updateRanges = function(l, T) {
  14312. var O = this.legend.options.bubbleLegend;
  14313. O.minSize = l, O.maxSize = T, O.ranges = this.getRanges();
  14314. }, f.prototype.correctSizes = function() {
  14315. var l = this.legend, T = this.chart.series[this.options.seriesIndex].getPxExtremes();
  14316. 1 < Math.abs(Math.ceil(T.maxPxSize) - this.options.maxSize) && (this.updateRanges(this.options.minSize, T.maxPxSize), l.render());
  14317. }, f;
  14318. }();
  14319. }), C(d, "Series/Bubble/BubbleLegendComposition.js", [d["Series/Bubble/BubbleLegendDefaults.js"], d["Series/Bubble/BubbleLegendItem.js"], d["Core/DefaultOptions.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14320. var U = N.setOptions, G = _.addEvent, V = _.objectEach, F = _.wrap, B;
  14321. return function(j) {
  14322. function w(k, b, S) {
  14323. var v = this.legend, h = 0 <= x(this);
  14324. if (v && v.options.enabled && v.bubbleLegend && v.options.bubbleLegend.autoRanges && h) {
  14325. var c = v.bubbleLegend.options;
  14326. h = v.bubbleLegend.predictBubbleSizes(), v.bubbleLegend.updateRanges(h[0], h[1]), c.placed || (v.group.placed = !1, v.allItems.forEach(function(u) {
  14327. u.legendGroup.translateY = null;
  14328. })), v.render(), this.getMargins(), this.axes.forEach(function(u) {
  14329. u.visible && u.render(), c.placed || (u.setScale(), u.updateNames(), V(u.ticks, function(i) {
  14330. i.isNew = !0, i.isNewLabel = !0;
  14331. }));
  14332. }), c.placed = !0, this.getMargins(), k.call(this, b, S), v.bubbleLegend.correctSizes(), O(v, f(v));
  14333. } else
  14334. k.call(this, b, S), v && v.options.enabled && v.bubbleLegend && (v.render(), O(v, f(v)));
  14335. }
  14336. function x(k) {
  14337. k = k.series;
  14338. for (var b = 0; b < k.length; ) {
  14339. if (k[b] && k[b].isBubble && k[b].visible && k[b].zData.length)
  14340. return b;
  14341. b++;
  14342. }
  14343. return -1;
  14344. }
  14345. function f(k) {
  14346. k = k.allItems;
  14347. var b = [], S = k.length, v, h = 0;
  14348. for (v = 0; v < S; v++)
  14349. if (k[v].legendItemHeight && (k[v].itemHeight = k[v].legendItemHeight), k[v] === k[S - 1] || k[v + 1] && k[v]._legendItemPos[1] !== k[v + 1]._legendItemPos[1]) {
  14350. b.push({ height: 0 });
  14351. var c = b[b.length - 1];
  14352. for (h; h <= v; h++)
  14353. k[h].itemHeight > c.height && (c.height = k[h].itemHeight);
  14354. c.step = v;
  14355. }
  14356. return b;
  14357. }
  14358. function l(k) {
  14359. var b = this.bubbleLegend, S = this.options, v = S.bubbleLegend, h = x(this.chart);
  14360. b && b.ranges && b.ranges.length && (v.ranges.length && (v.autoRanges = !!v.ranges[0].autoRanges), this.destroyItem(b)), 0 <= h && S.enabled && v.enabled && (v.seriesIndex = h, this.bubbleLegend = new y(v, this), this.bubbleLegend.addToLegend(k.allItems));
  14361. }
  14362. function T() {
  14363. var k = this.chart, b = this.visible, S = this.chart.legend;
  14364. S && S.bubbleLegend && (this.visible = !b, this.ignoreSeries = b, k = 0 <= x(k), S.bubbleLegend.visible !== k && (S.update({ bubbleLegend: { enabled: k } }), S.bubbleLegend.visible = k), this.visible = b);
  14365. }
  14366. function O(k, b) {
  14367. var S = k.options.rtl, v, h, c, u = 0;
  14368. k.allItems.forEach(function(i, p) {
  14369. v = i.legendGroup.translateX, h = i._legendItemPos[1], ((c = i.movementX) || S && i.ranges) && (c = S ? v - i.options.maxSize / 2 : v + c, i.legendGroup.attr({ translateX: c })), p > b[u].step && u++, i.legendGroup.attr({ translateY: Math.round(h + b[u].height / 2) }), i._legendItemPos[1] = h + b[u].height / 2;
  14370. });
  14371. }
  14372. var R = [];
  14373. j.compose = function(k, b, S) {
  14374. R.indexOf(k) === -1 && (R.push(k), U({ legend: { bubbleLegend: o } }), F(k.prototype, "drawChartBox", w)), R.indexOf(b) === -1 && (R.push(b), G(b, "afterGetAllItems", l)), R.indexOf(S) === -1 && (R.push(S), G(S, "legendItemClick", T));
  14375. };
  14376. }(B || (B = {})), B;
  14377. }), C(d, "Series/Bubble/BubblePoint.js", [d["Core/Series/Point.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N) {
  14378. var _ = this && this.__extends || function() {
  14379. var U = function(G, V) {
  14380. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, B) {
  14381. F.__proto__ = B;
  14382. } || function(F, B) {
  14383. for (var j in B)
  14384. B.hasOwnProperty(j) && (F[j] = B[j]);
  14385. }, U(G, V);
  14386. };
  14387. return function(G, V) {
  14388. function F() {
  14389. this.constructor = G;
  14390. }
  14391. U(G, V), G.prototype = V === null ? Object.create(V) : (F.prototype = V.prototype, new F());
  14392. };
  14393. }();
  14394. return N = N.extend, y = function(U) {
  14395. function G() {
  14396. var V = U !== null && U.apply(this, arguments) || this;
  14397. return V.options = void 0, V.series = void 0, V;
  14398. }
  14399. return _(G, U), G.prototype.haloPath = function(V) {
  14400. return o.prototype.haloPath.call(this, V === 0 ? 0 : (this.marker && this.marker.radius || 0) + V);
  14401. }, G;
  14402. }(y.seriesTypes.scatter.prototype.pointClass), N(y.prototype, { ttBelow: !1 }), y;
  14403. }), C(d, "Series/Bubble/BubbleSeries.js", [
  14404. d["Core/Axis/Axis.js"],
  14405. d["Series/Bubble/BubbleLegendComposition.js"],
  14406. d["Series/Bubble/BubblePoint.js"],
  14407. d["Core/Color/Color.js"],
  14408. d["Core/Globals.js"],
  14409. d["Core/Series/Series.js"],
  14410. d["Core/Series/SeriesRegistry.js"],
  14411. d["Core/Utilities.js"]
  14412. ], function(o, y, N, _, U, G, V, F) {
  14413. var B = this && this.__extends || function() {
  14414. var S = function(v, h) {
  14415. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, u) {
  14416. c.__proto__ = u;
  14417. } || function(c, u) {
  14418. for (var i in u)
  14419. u.hasOwnProperty(i) && (c[i] = u[i]);
  14420. }, S(v, h);
  14421. };
  14422. return function(v, h) {
  14423. function c() {
  14424. this.constructor = v;
  14425. }
  14426. S(v, h), v.prototype = h === null ? Object.create(h) : (c.prototype = h.prototype, new c());
  14427. };
  14428. }(), j = _.parse;
  14429. _ = U.noop;
  14430. var w = V.seriesTypes;
  14431. U = w.column;
  14432. var x = w.scatter;
  14433. w = F.addEvent;
  14434. var f = F.arrayMax, l = F.arrayMin, T = F.clamp, O = F.extend, R = F.isNumber, k = F.merge, b = F.pick;
  14435. return F = function(S) {
  14436. function v() {
  14437. var h = S !== null && S.apply(this, arguments) || this;
  14438. return h.data = void 0, h.maxPxSize = void 0, h.minPxSize = void 0, h.options = void 0, h.points = void 0, h.radii = void 0, h.yData = void 0, h.zData = void 0, h;
  14439. }
  14440. return B(v, S), v.prototype.animate = function(h) {
  14441. !h && this.points.length < this.options.animationLimit && this.points.forEach(function(c) {
  14442. var u = c.graphic;
  14443. u && u.width && (this.hasRendered || u.attr({ x: c.plotX, y: c.plotY, width: 1, height: 1 }), u.animate(this.markerAttribs(c), this.options.animation));
  14444. }, this);
  14445. }, v.prototype.getRadii = function() {
  14446. var h = this, c = this.zData, u = this.yData, i = [], p = this.chart.bubbleZExtremes, a = this.getPxExtremes(), t = a.minPxSize, s = a.maxPxSize;
  14447. if (!p) {
  14448. var n = Number.MAX_VALUE, P = -Number.MAX_VALUE, D;
  14449. this.chart.series.forEach(function(E) {
  14450. E.bubblePadding && (E.visible || !h.chart.options.chart.ignoreHiddenSeries) && (E = E.getZExtremes()) && (n = Math.min(n || E.zMin, E.zMin), P = Math.max(P || E.zMax, E.zMax), D = !0);
  14451. }), D ? (p = { zMin: n, zMax: P }, this.chart.bubbleZExtremes = p) : p = { zMin: 0, zMax: 0 };
  14452. }
  14453. var I = 0;
  14454. for (a = c.length; I < a; I++) {
  14455. var W = c[I];
  14456. i.push(this.getRadius(p.zMin, p.zMax, t, s, W, u[I]));
  14457. }
  14458. this.radii = i;
  14459. }, v.prototype.getRadius = function(h, c, u, i, p, a) {
  14460. var t = this.options, s = t.sizeBy !== "width", n = t.zThreshold, P = c - h, D = 0.5;
  14461. if (a === null || p === null)
  14462. return null;
  14463. if (R(p)) {
  14464. if (t.sizeByAbsoluteValue && (p = Math.abs(p - n), P = Math.max(c - n, Math.abs(h - n)), h = 0), p < h)
  14465. return u / 2 - 1;
  14466. 0 < P && (D = (p - h) / P);
  14467. }
  14468. return s && 0 <= D && (D = Math.sqrt(D)), Math.ceil(u + D * (i - u)) / 2;
  14469. }, v.prototype.hasData = function() {
  14470. return !!this.processedXData.length;
  14471. }, v.prototype.pointAttribs = function(h, c) {
  14472. var u = this.options.marker.fillOpacity;
  14473. return h = G.prototype.pointAttribs.call(this, h, c), u !== 1 && (h.fill = j(h.fill).setOpacity(u).get("rgba")), h;
  14474. }, v.prototype.translate = function() {
  14475. S.prototype.translate.call(this), this.getRadii(), this.translateBubble();
  14476. }, v.prototype.translateBubble = function() {
  14477. for (var h = this.data, c = this.radii, u = this.getPxExtremes().minPxSize, i = h.length; i--; ) {
  14478. var p = h[i], a = c ? c[i] : 0;
  14479. R(a) && a >= u / 2 ? (p.marker = O(p.marker, { radius: a, width: 2 * a, height: 2 * a }), p.dlBox = { x: p.plotX - a, y: p.plotY - a, width: 2 * a, height: 2 * a }) : p.shapeArgs = p.plotY = p.dlBox = void 0;
  14480. }
  14481. }, v.prototype.getPxExtremes = function() {
  14482. var h = Math.min(this.chart.plotWidth, this.chart.plotHeight), c = function(i) {
  14483. if (typeof i == "string") {
  14484. var p = /%$/.test(i);
  14485. i = parseInt(i, 10);
  14486. }
  14487. return p ? h * i / 100 : i;
  14488. }, u = c(b(this.options.minSize, 8));
  14489. return c = Math.max(c(b(this.options.maxSize, "20%")), u), {
  14490. minPxSize: u,
  14491. maxPxSize: c
  14492. };
  14493. }, v.prototype.getZExtremes = function() {
  14494. var h = this.options, c = (this.zData || []).filter(R);
  14495. if (c.length) {
  14496. var u = b(h.zMin, T(l(c), h.displayNegative === !1 ? h.zThreshold || 0 : -Number.MAX_VALUE, Number.MAX_VALUE));
  14497. if (h = b(h.zMax, f(c)), R(u) && R(h))
  14498. return { zMin: u, zMax: h };
  14499. }
  14500. }, v.compose = y.compose, v.defaultOptions = k(x.defaultOptions, { dataLabels: { formatter: function() {
  14501. var h = this.series.chart.numberFormatter, c = this.point.z;
  14502. return R(c) ? h(c, -1) : "";
  14503. }, inside: !0, verticalAlign: "middle" }, animationLimit: 250, marker: {
  14504. lineColor: null,
  14505. lineWidth: 1,
  14506. fillOpacity: 0.5,
  14507. radius: null,
  14508. states: { hover: { radiusPlus: 0 } },
  14509. symbol: "circle"
  14510. }, minSize: 8, maxSize: "20%", softThreshold: !1, states: { hover: { halo: { size: 5 } } }, tooltip: { pointFormat: "({point.x}, {point.y}), Size: {point.z}" }, turboThreshold: 0, zThreshold: 0, zoneAxis: "z" }), v;
  14511. }(x), O(F.prototype, {
  14512. alignDataLabel: U.prototype.alignDataLabel,
  14513. applyZones: _,
  14514. bubblePadding: !0,
  14515. buildKDTree: _,
  14516. directTouch: !0,
  14517. isBubble: !0,
  14518. pointArrayMap: ["y", "z"],
  14519. pointClass: N,
  14520. parallelArrays: ["x", "y", "z"],
  14521. trackerGroups: ["group", "dataLabelsGroup"],
  14522. specialGroup: "group",
  14523. zoneAxis: "z"
  14524. }), w(F, "updatedData", function(S) {
  14525. delete S.target.chart.bubbleZExtremes;
  14526. }), o.prototype.beforePadding = function() {
  14527. var S = this, v = this.len, h = this.chart, c = 0, u = v, i = this.isXAxis, p = i ? "xData" : "yData", a = this.min, t = this.max - a, s = v / t, n;
  14528. this.series.forEach(function(P) {
  14529. if (P.bubblePadding && (P.visible || !h.options.chart.ignoreHiddenSeries)) {
  14530. n = S.allowZoomOutside = !0;
  14531. var D = P[p];
  14532. if (i && P.getRadii(0, 0, P), 0 < t) {
  14533. for (var I = D.length; I--; )
  14534. if (R(D[I]) && S.dataMin <= D[I] && D[I] <= S.max) {
  14535. var W = P.radii && P.radii[I] || 0;
  14536. c = Math.min((D[I] - a) * s - W, c), u = Math.max((D[I] - a) * s + W, u);
  14537. }
  14538. }
  14539. }
  14540. }), n && 0 < t && !this.logarithmic && (u -= v, s *= (v + Math.max(0, c) - Math.min(u, v)) / v, [["min", "userMin", c], ["max", "userMax", u]].forEach(function(P) {
  14541. typeof b(S.options[P[0]], S[P[1]]) > "u" && (S[P[0]] += P[2] / s);
  14542. }));
  14543. }, V.registerSeriesType("bubble", F), F;
  14544. }), C(d, "Series/ColumnRange/ColumnRangePoint.js", [d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y) {
  14545. var N = this && this.__extends || function() {
  14546. var V = function(F, B) {
  14547. return V = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(j, w) {
  14548. j.__proto__ = w;
  14549. } || function(j, w) {
  14550. for (var x in w)
  14551. w.hasOwnProperty(x) && (j[x] = w[x]);
  14552. }, V(F, B);
  14553. };
  14554. return function(F, B) {
  14555. function j() {
  14556. this.constructor = F;
  14557. }
  14558. V(F, B), F.prototype = B === null ? Object.create(B) : (j.prototype = B.prototype, new j());
  14559. };
  14560. }(), _ = o.seriesTypes;
  14561. o = _.column.prototype.pointClass;
  14562. var U = y.extend, G = y.isNumber;
  14563. return y = function(V) {
  14564. function F() {
  14565. var B = V !== null && V.apply(this, arguments) || this;
  14566. return B.series = void 0, B.options = void 0, B.barX = void 0, B.pointWidth = void 0, B.shapeType = void 0, B;
  14567. }
  14568. return N(F, V), F.prototype.isValid = function() {
  14569. return G(this.low);
  14570. }, F;
  14571. }(_.arearange.prototype.pointClass), U(y.prototype, { setState: o.prototype.setState }), y;
  14572. }), C(d, "Series/ColumnRange/ColumnRangeSeries.js", [d["Series/ColumnRange/ColumnRangePoint.js"], d["Core/Globals.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14573. var U = this && this.__extends || function() {
  14574. var T = function(O, R) {
  14575. return T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(k, b) {
  14576. k.__proto__ = b;
  14577. } || function(k, b) {
  14578. for (var S in b)
  14579. b.hasOwnProperty(S) && (k[S] = b[S]);
  14580. }, T(O, R);
  14581. };
  14582. return function(O, R) {
  14583. function k() {
  14584. this.constructor = O;
  14585. }
  14586. T(O, R), O.prototype = R === null ? Object.create(R) : (k.prototype = R.prototype, new k());
  14587. };
  14588. }();
  14589. y = y.noop;
  14590. var G = N.seriesTypes, V = G.arearange, F = G.column, B = F.prototype, j = V.prototype, w = _.clamp, x = _.merge, f = _.pick;
  14591. _ = _.extend;
  14592. var l = { pointRange: null, marker: null, states: { hover: { halo: !1 } } };
  14593. return G = function(T) {
  14594. function O() {
  14595. var R = T !== null && T.apply(this, arguments) || this;
  14596. return R.data = void 0, R.points = void 0, R.options = void 0, R;
  14597. }
  14598. return U(O, T), O.prototype.setOptions = function() {
  14599. return x(!0, arguments[0], { stacking: void 0 }), j.setOptions.apply(this, arguments);
  14600. }, O.prototype.translate = function() {
  14601. var R = this, k = R.yAxis, b = R.xAxis, S = b.startAngleRad, v, h = R.chart, c = R.xAxis.isRadial, u = Math.max(h.chartWidth, h.chartHeight) + 999, i;
  14602. B.translate.apply(R), R.points.forEach(function(p) {
  14603. var a = p.shapeArgs || {}, t = R.options.minPointLength;
  14604. p.plotHigh = i = w(k.translate(p.high, 0, 1, 0, 1), -u, u), p.plotLow = w(p.plotY, -u, u);
  14605. var s = i, n = f(
  14606. p.rectPlotY,
  14607. p.plotY
  14608. ) - i;
  14609. Math.abs(n) < t ? (t -= n, n += t, s -= t / 2) : 0 > n && (n *= -1, s -= n), c ? (v = p.barX + S, p.shapeType = "arc", p.shapeArgs = R.polarArc(s + n, s, v, v + p.pointWidth)) : (a.height = n, a.y = s, t = a.x, t = t === void 0 ? 0 : t, a = a.width, a = a === void 0 ? 0 : a, p.tooltipPos = h.inverted ? [k.len + k.pos - h.plotLeft - s - n / 2, b.len + b.pos - h.plotTop - t - a / 2, n] : [b.left - h.plotLeft + t + a / 2, k.pos - h.plotTop + s + n / 2, n]);
  14610. });
  14611. }, O.prototype.crispCol = function() {
  14612. return B.crispCol.apply(this, arguments);
  14613. }, O.prototype.drawPoints = function() {
  14614. return B.drawPoints.apply(this, arguments);
  14615. }, O.prototype.drawTracker = function() {
  14616. return B.drawTracker.apply(this, arguments);
  14617. }, O.prototype.getColumnMetrics = function() {
  14618. return B.getColumnMetrics.apply(this, arguments);
  14619. }, O.prototype.pointAttribs = function() {
  14620. return B.pointAttribs.apply(this, arguments);
  14621. }, O.prototype.adjustForMissingColumns = function() {
  14622. return B.adjustForMissingColumns.apply(this, arguments);
  14623. }, O.prototype.animate = function() {
  14624. return B.animate.apply(this, arguments);
  14625. }, O.prototype.translate3dPoints = function() {
  14626. return B.translate3dPoints.apply(this, arguments);
  14627. }, O.prototype.translate3dShapes = function() {
  14628. return B.translate3dShapes.apply(this, arguments);
  14629. }, O.defaultOptions = x(F.defaultOptions, V.defaultOptions, l), O;
  14630. }(V), _(G.prototype, { directTouch: !0, trackerGroups: ["group", "dataLabelsGroup"], drawGraph: y, getSymbol: y, polarArc: function() {
  14631. return B.polarArc.apply(this, arguments);
  14632. }, pointClass: o }), N.registerSeriesType("columnrange", G), G;
  14633. }), C(d, "Series/ColumnPyramid/ColumnPyramidSeries.js", [d["Series/Column/ColumnSeries.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N) {
  14634. var _ = this && this.__extends || function() {
  14635. var B = function(j, w) {
  14636. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, f) {
  14637. x.__proto__ = f;
  14638. } || function(x, f) {
  14639. for (var l in f)
  14640. f.hasOwnProperty(l) && (x[l] = f[l]);
  14641. }, B(j, w);
  14642. };
  14643. return function(j, w) {
  14644. function x() {
  14645. this.constructor = j;
  14646. }
  14647. B(j, w), j.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  14648. };
  14649. }(), U = o.prototype, G = N.clamp, V = N.merge, F = N.pick;
  14650. return N = function(B) {
  14651. function j() {
  14652. var w = B !== null && B.apply(this, arguments) || this;
  14653. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  14654. }
  14655. return _(j, B), j.prototype.translate = function() {
  14656. var w = this, x = w.chart, f = w.options, l = w.dense = 2 > w.closestPointRange * w.xAxis.transA;
  14657. l = w.borderWidth = F(f.borderWidth, l ? 0 : 1);
  14658. var T = w.yAxis, O = f.threshold, R = w.translatedThreshold = T.getThreshold(O), k = F(f.minPointLength, 5), b = w.getColumnMetrics(), S = b.width, v = w.barW = Math.max(S, 1 + 2 * l), h = w.pointXOffset = b.offset;
  14659. x.inverted && (R -= 0.5), f.pointPadding && (v = Math.ceil(v)), U.translate.apply(w), w.points.forEach(function(c) {
  14660. var u = F(c.yBottom, R), i = 999 + Math.abs(u), p = G(c.plotY, -i, T.len + i);
  14661. i = c.plotX + h;
  14662. var a = v / 2, t = Math.min(p, u);
  14663. u = Math.max(p, u) - t;
  14664. var s;
  14665. c.barX = i, c.pointWidth = S, c.tooltipPos = x.inverted ? [T.len + T.pos - x.plotLeft - p, w.xAxis.len - i - a, u] : [i + a, p + T.pos - x.plotTop, u], p = O + (c.total || c.y), f.stacking === "percent" && (p = O + (0 > c.y) ? -100 : 100), p = T.toPixels(p, !0);
  14666. var n = (s = x.plotHeight - p - (x.plotHeight - R)) ? a * (t - p) / s : 0, P = s ? a * (t + u - p) / s : 0;
  14667. s = i - n + a, n = i + n + a;
  14668. var D = i + P + a;
  14669. P = i - P + a;
  14670. var I = t - k, W = t + u;
  14671. 0 > c.y && (I = t, W = t + u + k), x.inverted && (D = T.width - t, s = p - (T.width - R), n = a * (p - D) / s, P = a * (p - (D - u)) / s, s = i + a + n, n = s - 2 * n, D = i - P + a, P = i + P + a, I = t, W = t + u - k, 0 > c.y && (W = t + u + k)), c.shapeType = "path", c.shapeArgs = { x: s, y: I, width: n - s, height: u, d: [["M", s, I], ["L", n, I], ["L", D, W], ["L", P, W], ["Z"]] };
  14672. });
  14673. }, j.defaultOptions = V(o.defaultOptions, {}), j;
  14674. }(o), y.registerSeriesType("columnpyramid", N), N;
  14675. }), C(d, "Series/ErrorBar/ErrorBarSeries.js", [d["Series/BoxPlot/BoxPlotSeries.js"], d["Series/Column/ColumnSeries.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14676. var U = this && this.__extends || function() {
  14677. var B = function(j, w) {
  14678. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, f) {
  14679. x.__proto__ = f;
  14680. } || function(x, f) {
  14681. for (var l in f)
  14682. f.hasOwnProperty(l) && (x[l] = f[l]);
  14683. }, B(j, w);
  14684. };
  14685. return function(j, w) {
  14686. function x() {
  14687. this.constructor = j;
  14688. }
  14689. B(j, w), j.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  14690. };
  14691. }(), G = N.seriesTypes.arearange, V = _.merge;
  14692. _ = _.extend;
  14693. var F = function(B) {
  14694. function j() {
  14695. var w = B !== null && B.apply(this, arguments) || this;
  14696. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  14697. }
  14698. return U(j, B), j.prototype.getColumnMetrics = function() {
  14699. return this.linkedParent && this.linkedParent.columnMetrics || y.prototype.getColumnMetrics.call(this);
  14700. }, j.prototype.drawDataLabels = function() {
  14701. var w = this.pointValKey;
  14702. G && (G.prototype.drawDataLabels.call(this), this.data.forEach(function(x) {
  14703. x.y = x[w];
  14704. }));
  14705. }, j.prototype.toYData = function(w) {
  14706. return [w.low, w.high];
  14707. }, j.defaultOptions = V(o.defaultOptions, {
  14708. color: "#000000",
  14709. grouping: !1,
  14710. linkedTo: ":previous",
  14711. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14712. whiskerWidth: null
  14713. }), j;
  14714. }(o);
  14715. return _(F.prototype, { pointArrayMap: ["low", "high"], pointValKey: "high", doQuartiles: !1 }), N.registerSeriesType("errorbar", F), F;
  14716. }), C(d, "Series/Gauge/GaugePoint.js", [d["Core/Series/SeriesRegistry.js"]], function(o) {
  14717. var y = this && this.__extends || function() {
  14718. var N = function(_, U) {
  14719. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(G, V) {
  14720. G.__proto__ = V;
  14721. } || function(G, V) {
  14722. for (var F in V)
  14723. V.hasOwnProperty(F) && (G[F] = V[F]);
  14724. }, N(_, U);
  14725. };
  14726. return function(_, U) {
  14727. function G() {
  14728. this.constructor = _;
  14729. }
  14730. N(_, U), _.prototype = U === null ? Object.create(U) : (G.prototype = U.prototype, new G());
  14731. };
  14732. }();
  14733. return function(N) {
  14734. function _() {
  14735. var U = N !== null && N.apply(this, arguments) || this;
  14736. return U.options = void 0, U.series = void 0, U.shapeArgs = void 0, U;
  14737. }
  14738. return y(_, N), _.prototype.setState = function(U) {
  14739. this.state = U;
  14740. }, _;
  14741. }(o.series.prototype.pointClass);
  14742. }), C(d, "Series/Gauge/GaugeSeries.js", [d["Series/Gauge/GaugePoint.js"], d["Core/Globals.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14743. var U = this && this.__extends || function() {
  14744. var l = function(T, O) {
  14745. return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, k) {
  14746. R.__proto__ = k;
  14747. } || function(R, k) {
  14748. for (var b in k)
  14749. k.hasOwnProperty(b) && (R[b] = k[b]);
  14750. }, l(T, O);
  14751. };
  14752. return function(T, O) {
  14753. function R() {
  14754. this.constructor = T;
  14755. }
  14756. l(T, O), T.prototype = O === null ? Object.create(O) : (R.prototype = O.prototype, new R());
  14757. };
  14758. }();
  14759. y = y.noop;
  14760. var G = N.series, V = N.seriesTypes.column, F = _.clamp, B = _.isNumber, j = _.extend, w = _.merge, x = _.pick, f = _.pInt;
  14761. return _ = function(l) {
  14762. function T() {
  14763. var O = l !== null && l.apply(this, arguments) || this;
  14764. return O.data = void 0, O.points = void 0, O.options = void 0, O.yAxis = void 0, O;
  14765. }
  14766. return U(T, l), T.prototype.translate = function() {
  14767. var O = this.yAxis, R = this.options, k = O.center;
  14768. this.generatePoints(), this.points.forEach(function(b) {
  14769. var S = w(R.dial, b.dial), v = f(x(S.radius, "80%")) * k[2] / 200, h = f(x(S.baseLength, "70%")) * v / 100, c = f(x(S.rearLength, "10%")) * v / 100, u = S.baseWidth || 3, i = S.topWidth || 1, p = R.overshoot, a = O.startAngleRad + O.translate(b.y, null, null, null, !0);
  14770. (B(p) || R.wrap === !1) && (p = B(p) ? p / 180 * Math.PI : 0, a = F(
  14771. a,
  14772. O.startAngleRad - p,
  14773. O.endAngleRad + p
  14774. )), a = 180 * a / Math.PI, b.shapeType = "path", b.shapeArgs = { d: S.path || [["M", -c, -u / 2], ["L", h, -u / 2], ["L", v, -i / 2], ["L", v, i / 2], ["L", h, u / 2], ["L", -c, u / 2], ["Z"]], translateX: k[0], translateY: k[1], rotation: a }, b.plotX = k[0], b.plotY = k[1];
  14775. });
  14776. }, T.prototype.drawPoints = function() {
  14777. var O = this, R = O.chart, k = O.yAxis.center, b = O.pivot, S = O.options, v = S.pivot, h = R.renderer;
  14778. O.points.forEach(function(c) {
  14779. var u = c.graphic, i = c.shapeArgs, p = i.d, a = w(S.dial, c.dial);
  14780. u ? (u.animate(i), i.d = p) : c.graphic = h[c.shapeType](i).attr({
  14781. rotation: i.rotation,
  14782. zIndex: 1
  14783. }).addClass("highcharts-dial").add(O.group), R.styledMode || c.graphic[u ? "animate" : "attr"]({ stroke: a.borderColor || "none", "stroke-width": a.borderWidth || 0, fill: a.backgroundColor || "#000000" });
  14784. }), b ? b.animate({ translateX: k[0], translateY: k[1] }) : (O.pivot = h.circle(0, 0, x(v.radius, 5)).attr({ zIndex: 2 }).addClass("highcharts-pivot").translate(k[0], k[1]).add(O.group), R.styledMode || O.pivot.attr({ "stroke-width": v.borderWidth || 0, stroke: v.borderColor || "#cccccc", fill: v.backgroundColor || "#000000" }));
  14785. }, T.prototype.animate = function(O) {
  14786. var R = this;
  14787. O || R.points.forEach(function(k) {
  14788. var b = k.graphic;
  14789. b && (b.attr({ rotation: 180 * R.yAxis.startAngleRad / Math.PI }), b.animate({ rotation: k.shapeArgs.rotation }, R.options.animation));
  14790. });
  14791. }, T.prototype.render = function() {
  14792. this.group = this.plotGroup("group", "series", this.visible ? "visible" : "hidden", this.options.zIndex, this.chart.seriesGroup), G.prototype.render.call(this), this.group.clip(this.chart.clipRect);
  14793. }, T.prototype.setData = function(O, R) {
  14794. G.prototype.setData.call(this, O, !1), this.processData(), this.generatePoints(), x(R, !0) && this.chart.redraw();
  14795. }, T.prototype.hasData = function() {
  14796. return !!this.points.length;
  14797. }, T.defaultOptions = w(G.defaultOptions, { dataLabels: { borderColor: "#cccccc", borderRadius: 3, borderWidth: 1, crop: !1, defer: !1, enabled: !0, verticalAlign: "top", y: 15, zIndex: 2 }, dial: {}, pivot: {}, tooltip: { headerFormat: "" }, showInLegend: !1 }), T;
  14798. }(G), j(_.prototype, { angular: !0, directTouch: !0, drawGraph: y, drawTracker: V.prototype.drawTracker, fixedBox: !0, forceDL: !0, noSharedTooltip: !0, pointClass: o, trackerGroups: [
  14799. "group",
  14800. "dataLabelsGroup"
  14801. ] }), N.registerSeriesType("gauge", _), _;
  14802. }), C(d, "Series/PackedBubble/PackedBubblePoint.js", [d["Core/Chart/Chart.js"], d["Core/Series/Point.js"], d["Core/Series/SeriesRegistry.js"]], function(o, y, N) {
  14803. var _ = this && this.__extends || function() {
  14804. var U = function(G, V) {
  14805. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, B) {
  14806. F.__proto__ = B;
  14807. } || function(F, B) {
  14808. for (var j in B)
  14809. B.hasOwnProperty(j) && (F[j] = B[j]);
  14810. }, U(G, V);
  14811. };
  14812. return function(G, V) {
  14813. function F() {
  14814. this.constructor = G;
  14815. }
  14816. U(G, V), G.prototype = V === null ? Object.create(V) : (F.prototype = V.prototype, new F());
  14817. };
  14818. }();
  14819. return function(U) {
  14820. function G() {
  14821. var V = U !== null && U.apply(this, arguments) || this;
  14822. return V.degree = NaN, V.mass = NaN, V.radius = NaN, V.options = void 0, V.series = void 0, V.value = null, V;
  14823. }
  14824. return _(G, U), G.prototype.destroy = function() {
  14825. return this.series.layout && this.series.layout.removeElementFromCollection(this, this.series.layout.nodes), y.prototype.destroy.apply(this, arguments);
  14826. }, G.prototype.firePointEvent = function() {
  14827. var V = this.series.options;
  14828. if (this.isParentNode && V.parentNode) {
  14829. var F = V.allowPointSelect;
  14830. V.allowPointSelect = V.parentNode.allowPointSelect, y.prototype.firePointEvent.apply(this, arguments), V.allowPointSelect = F;
  14831. } else
  14832. y.prototype.firePointEvent.apply(this, arguments);
  14833. }, G.prototype.select = function() {
  14834. var V = this.series.chart;
  14835. this.isParentNode ? (V.getSelectedPoints = V.getSelectedParentNodes, y.prototype.select.apply(this, arguments), V.getSelectedPoints = o.prototype.getSelectedPoints) : y.prototype.select.apply(this, arguments);
  14836. }, G;
  14837. }(N.seriesTypes.bubble.prototype.pointClass);
  14838. }), C(d, "Series/Networkgraph/DraggableNodes.js", [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N) {
  14839. var _ = N.addEvent;
  14840. y.dragNodesMixin = { onMouseDown: function(U, G) {
  14841. G = this.chart.pointer.normalize(G), U.fixedPosition = { chartX: G.chartX, chartY: G.chartY, plotX: U.plotX, plotY: U.plotY }, U.inDragMode = !0;
  14842. }, onMouseMove: function(U, G) {
  14843. if (U.fixedPosition && U.inDragMode) {
  14844. var V = this.chart, F = V.pointer.normalize(G);
  14845. G = U.fixedPosition.chartX - F.chartX, F = U.fixedPosition.chartY - F.chartY;
  14846. var B = void 0, j = void 0, w = V.graphLayoutsLookup;
  14847. (5 < Math.abs(G) || 5 < Math.abs(F)) && (B = U.fixedPosition.plotX - G, j = U.fixedPosition.plotY - F, V.isInsidePlot(B, j) && (U.plotX = B, U.plotY = j, U.hasDragged = !0, this.redrawHalo(U), w.forEach(function(x) {
  14848. x.restartSimulation();
  14849. })));
  14850. }
  14851. }, onMouseUp: function(U, G) {
  14852. U.fixedPosition && (U.hasDragged && (this.layout.enableSimulation ? this.layout.start() : this.chart.redraw()), U.inDragMode = U.hasDragged = !1, this.options.fixedDraggable || delete U.fixedPosition);
  14853. }, redrawHalo: function(U) {
  14854. U && this.halo && this.halo.attr({ d: U.haloPath(this.options.states.hover.halo.size) });
  14855. } }, _(o, "load", function() {
  14856. var U = this, G, V, F;
  14857. U.container && (G = _(U.container, "mousedown", function(B) {
  14858. var j = U.hoverPoint;
  14859. j && j.series && j.series.hasDraggableNodes && j.series.options.draggable && (j.series.onMouseDown(j, B), V = _(U.container, "mousemove", function(w) {
  14860. return j && j.series && j.series.onMouseMove(j, w);
  14861. }), F = _(U.container.ownerDocument, "mouseup", function(w) {
  14862. return V(), F(), j && j.series && j.series.onMouseUp(j, w);
  14863. }));
  14864. })), _(U, "destroy", function() {
  14865. G();
  14866. });
  14867. });
  14868. }), C(
  14869. d,
  14870. "Series/Networkgraph/Integrations.js",
  14871. [d["Core/Globals.js"]],
  14872. function(o) {
  14873. o.networkgraphIntegrations = { verlet: { attractiveForceFunction: function(y, N) {
  14874. return (N - y) / y;
  14875. }, repulsiveForceFunction: function(y, N) {
  14876. return (N - y) / y * (N > y ? 1 : 0);
  14877. }, barycenter: function() {
  14878. var y = this.options.gravitationalConstant, N = this.barycenter.xFactor, _ = this.barycenter.yFactor;
  14879. N = (N - (this.box.left + this.box.width) / 2) * y, _ = (_ - (this.box.top + this.box.height) / 2) * y, this.nodes.forEach(function(U) {
  14880. U.fixedPosition || (U.plotX -= N / U.mass / U.degree, U.plotY -= _ / U.mass / U.degree);
  14881. });
  14882. }, repulsive: function(y, N, _) {
  14883. N = N * this.diffTemperature / y.mass / y.degree, y.fixedPosition || (y.plotX += _.x * N, y.plotY += _.y * N);
  14884. }, attractive: function(y, N, _) {
  14885. var U = y.getMass(), G = -_.x * N * this.diffTemperature;
  14886. N = -_.y * N * this.diffTemperature, y.fromNode.fixedPosition || (y.fromNode.plotX -= G * U.fromNode / y.fromNode.degree, y.fromNode.plotY -= N * U.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.plotX += G * U.toNode / y.toNode.degree, y.toNode.plotY += N * U.toNode / y.toNode.degree);
  14887. }, integrate: function(y, N) {
  14888. var _ = -y.options.friction, U = y.options.maxSpeed, G = (N.plotX + N.dispX - N.prevX) * _;
  14889. _ *= N.plotY + N.dispY - N.prevY;
  14890. var V = Math.abs, F = V(G) / (G || 1);
  14891. V = V(_) / (_ || 1), G = F * Math.min(U, Math.abs(G)), _ = V * Math.min(U, Math.abs(_)), N.prevX = N.plotX + N.dispX, N.prevY = N.plotY + N.dispY, N.plotX += G, N.plotY += _, N.temperature = y.vectorLength({ x: G, y: _ });
  14892. }, getK: function(y) {
  14893. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.5);
  14894. } }, euler: { attractiveForceFunction: function(y, N) {
  14895. return y * y / N;
  14896. }, repulsiveForceFunction: function(y, N) {
  14897. return N * N / y;
  14898. }, barycenter: function() {
  14899. var y = this.options.gravitationalConstant, N = this.barycenter.xFactor, _ = this.barycenter.yFactor;
  14900. this.nodes.forEach(function(U) {
  14901. if (!U.fixedPosition) {
  14902. var G = U.getDegree();
  14903. G *= 1 + G / 2, U.dispX += (N - U.plotX) * y * G / U.degree, U.dispY += (_ - U.plotY) * y * G / U.degree;
  14904. }
  14905. });
  14906. }, repulsive: function(y, N, _, U) {
  14907. y.dispX += _.x / U * N / y.degree, y.dispY += _.y / U * N / y.degree;
  14908. }, attractive: function(y, N, _, U) {
  14909. var G = y.getMass(), V = _.x / U * N;
  14910. N *= _.y / U, y.fromNode.fixedPosition || (y.fromNode.dispX -= V * G.fromNode / y.fromNode.degree, y.fromNode.dispY -= N * G.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.dispX += V * G.toNode / y.toNode.degree, y.toNode.dispY += N * G.toNode / y.toNode.degree);
  14911. }, integrate: function(y, N) {
  14912. N.dispX += N.dispX * y.options.friction, N.dispY += N.dispY * y.options.friction;
  14913. var _ = N.temperature = y.vectorLength({ x: N.dispX, y: N.dispY });
  14914. _ !== 0 && (N.plotX += N.dispX / _ * Math.min(Math.abs(N.dispX), y.temperature), N.plotY += N.dispY / _ * Math.min(Math.abs(N.dispY), y.temperature));
  14915. }, getK: function(y) {
  14916. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.3);
  14917. } } };
  14918. }
  14919. ), C(
  14920. d,
  14921. "Series/Networkgraph/QuadTree.js",
  14922. [d["Core/Globals.js"], d["Core/Utilities.js"]],
  14923. function(o, y) {
  14924. y = y.extend;
  14925. var N = o.QuadTreeNode = function(_) {
  14926. this.box = _, this.boxSize = Math.min(_.width, _.height), this.nodes = [], this.body = this.isInternal = !1, this.isEmpty = !0;
  14927. };
  14928. y(N.prototype, { insert: function(_, U) {
  14929. this.isInternal ? this.nodes[this.getBoxPosition(_)].insert(_, U - 1) : (this.isEmpty = !1, this.body ? U ? (this.isInternal = !0, this.divideBox(), this.body !== !0 && (this.nodes[this.getBoxPosition(this.body)].insert(this.body, U - 1), this.body = !0), this.nodes[this.getBoxPosition(_)].insert(_, U - 1)) : (U = new N({
  14930. top: _.plotX,
  14931. left: _.plotY,
  14932. width: 0.1,
  14933. height: 0.1
  14934. }), U.body = _, U.isInternal = !1, this.nodes.push(U)) : (this.isInternal = !1, this.body = _));
  14935. }, updateMassAndCenter: function() {
  14936. var _ = 0, U = 0, G = 0;
  14937. this.isInternal ? (this.nodes.forEach(function(V) {
  14938. V.isEmpty || (_ += V.mass, U += V.plotX * V.mass, G += V.plotY * V.mass);
  14939. }), U /= _, G /= _) : this.body && (_ = this.body.mass, U = this.body.plotX, G = this.body.plotY), this.mass = _, this.plotX = U, this.plotY = G;
  14940. }, divideBox: function() {
  14941. var _ = this.box.width / 2, U = this.box.height / 2;
  14942. this.nodes[0] = new N({
  14943. left: this.box.left,
  14944. top: this.box.top,
  14945. width: _,
  14946. height: U
  14947. }), this.nodes[1] = new N({ left: this.box.left + _, top: this.box.top, width: _, height: U }), this.nodes[2] = new N({ left: this.box.left + _, top: this.box.top + U, width: _, height: U }), this.nodes[3] = new N({ left: this.box.left, top: this.box.top + U, width: _, height: U });
  14948. }, getBoxPosition: function(_) {
  14949. var U = _.plotY < this.box.top + this.box.height / 2;
  14950. return _.plotX < this.box.left + this.box.width / 2 ? U ? 0 : 3 : U ? 1 : 2;
  14951. } }), o = o.QuadTree = function(_, U, G, V) {
  14952. this.box = { left: _, top: U, width: G, height: V }, this.maxDepth = 25, this.root = new N(
  14953. this.box,
  14954. "0"
  14955. ), this.root.isInternal = !0, this.root.isRoot = !0, this.root.divideBox();
  14956. }, y(o.prototype, { insertNodes: function(_) {
  14957. _.forEach(function(U) {
  14958. this.root.insert(U, this.maxDepth);
  14959. }, this);
  14960. }, visitNodeRecursive: function(_, U, G) {
  14961. var V;
  14962. _ || (_ = this.root), _ === this.root && U && (V = U(_)), V !== !1 && (_.nodes.forEach(function(F) {
  14963. if (F.isInternal) {
  14964. if (U && (V = U(F)), V === !1)
  14965. return;
  14966. this.visitNodeRecursive(F, U, G);
  14967. } else
  14968. F.body && U && U(F.body);
  14969. G && G(F);
  14970. }, this), _ === this.root && G && G(_));
  14971. }, calculateMassAndCenter: function() {
  14972. this.visitNodeRecursive(
  14973. null,
  14974. null,
  14975. function(_) {
  14976. _.updateMassAndCenter();
  14977. }
  14978. );
  14979. } });
  14980. }
  14981. ), C(d, "Series/Networkgraph/Layouts.js", [d["Core/Chart/Chart.js"], d["Core/Animation/AnimationUtilities.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  14982. var U = y.setAnimation;
  14983. y = _.addEvent;
  14984. var G = _.clamp, V = _.defined, F = _.extend, B = _.isFunction, j = _.pick;
  14985. N.layouts = { "reingold-fruchterman": function() {
  14986. } }, F(N.layouts["reingold-fruchterman"].prototype, {
  14987. init: function(w) {
  14988. this.options = w, this.nodes = [], this.links = [], this.series = [], this.box = {
  14989. x: 0,
  14990. y: 0,
  14991. width: 0,
  14992. height: 0
  14993. }, this.setInitialRendering(!0), this.integration = N.networkgraphIntegrations[w.integration], this.enableSimulation = w.enableSimulation, this.attractiveForce = j(w.attractiveForce, this.integration.attractiveForceFunction), this.repulsiveForce = j(w.repulsiveForce, this.integration.repulsiveForceFunction), this.approximation = w.approximation;
  14994. },
  14995. updateSimulation: function(w) {
  14996. this.enableSimulation = j(w, this.options.enableSimulation);
  14997. },
  14998. start: function() {
  14999. var w = this.series, x = this.options;
  15000. this.currentStep = 0, this.forces = w[0] && w[0].forces || [], this.chart = w[0] && w[0].chart, this.initialRendering && (this.initPositions(), w.forEach(function(f) {
  15001. f.finishedAnimating = !0, f.render();
  15002. })), this.setK(), this.resetSimulation(x), this.enableSimulation && this.step();
  15003. },
  15004. step: function() {
  15005. var w = this, x = this.series;
  15006. w.currentStep++, w.approximation === "barnes-hut" && (w.createQuadTree(), w.quadTree.calculateMassAndCenter()), w.forces.forEach(function(f) {
  15007. w[f + "Forces"](w.temperature);
  15008. }), w.applyLimits(w.temperature), w.temperature = w.coolDown(
  15009. w.startTemperature,
  15010. w.diffTemperature,
  15011. w.currentStep
  15012. ), w.prevSystemTemperature = w.systemTemperature, w.systemTemperature = w.getSystemTemperature(), w.enableSimulation && (x.forEach(function(f) {
  15013. f.chart && f.render();
  15014. }), w.maxIterations-- && isFinite(w.temperature) && !w.isStable() ? (w.simulation && N.win.cancelAnimationFrame(w.simulation), w.simulation = N.win.requestAnimationFrame(function() {
  15015. w.step();
  15016. })) : w.simulation = !1);
  15017. },
  15018. stop: function() {
  15019. this.simulation && N.win.cancelAnimationFrame(this.simulation);
  15020. },
  15021. setArea: function(w, x, f, l) {
  15022. this.box = {
  15023. left: w,
  15024. top: x,
  15025. width: f,
  15026. height: l
  15027. };
  15028. },
  15029. setK: function() {
  15030. this.k = this.options.linkLength || this.integration.getK(this);
  15031. },
  15032. addElementsToCollection: function(w, x) {
  15033. w.forEach(function(f) {
  15034. x.indexOf(f) === -1 && x.push(f);
  15035. });
  15036. },
  15037. removeElementFromCollection: function(w, x) {
  15038. w = x.indexOf(w), w !== -1 && x.splice(w, 1);
  15039. },
  15040. clear: function() {
  15041. this.nodes.length = 0, this.links.length = 0, this.series.length = 0, this.resetSimulation();
  15042. },
  15043. resetSimulation: function() {
  15044. this.forcedStop = !1, this.systemTemperature = 0, this.setMaxIterations(), this.setTemperature(), this.setDiffTemperature();
  15045. },
  15046. restartSimulation: function() {
  15047. this.simulation ? this.resetSimulation() : (this.setInitialRendering(!1), this.enableSimulation ? this.start() : this.setMaxIterations(1), this.chart && this.chart.redraw(), this.setInitialRendering(!0));
  15048. },
  15049. setMaxIterations: function(w) {
  15050. this.maxIterations = j(w, this.options.maxIterations);
  15051. },
  15052. setTemperature: function() {
  15053. this.temperature = this.startTemperature = Math.sqrt(this.nodes.length);
  15054. },
  15055. setDiffTemperature: function() {
  15056. this.diffTemperature = this.startTemperature / (this.options.maxIterations + 1);
  15057. },
  15058. setInitialRendering: function(w) {
  15059. this.initialRendering = w;
  15060. },
  15061. createQuadTree: function() {
  15062. this.quadTree = new N.QuadTree(this.box.left, this.box.top, this.box.width, this.box.height), this.quadTree.insertNodes(this.nodes);
  15063. },
  15064. initPositions: function() {
  15065. var w = this.options.initialPositions;
  15066. B(w) ? (w.call(this), this.nodes.forEach(function(x) {
  15067. V(x.prevX) || (x.prevX = x.plotX), V(x.prevY) || (x.prevY = x.plotY), x.dispX = 0, x.dispY = 0;
  15068. })) : w === "circle" ? this.setCircularPositions() : this.setRandomPositions();
  15069. },
  15070. setCircularPositions: function() {
  15071. function w(b) {
  15072. b.linksFrom.forEach(function(S) {
  15073. R[S.toNode.id] || (R[S.toNode.id] = !0, O.push(S.toNode), w(S.toNode));
  15074. });
  15075. }
  15076. var x = this.box, f = this.nodes, l = 2 * Math.PI / (f.length + 1), T = f.filter(function(b) {
  15077. return b.linksTo.length === 0;
  15078. }), O = [], R = {}, k = this.options.initialPositionRadius;
  15079. T.forEach(function(b) {
  15080. O.push(b), w(b);
  15081. }), O.length ? f.forEach(function(b) {
  15082. O.indexOf(b) === -1 && O.push(b);
  15083. }) : O = f, O.forEach(function(b, S) {
  15084. b.plotX = b.prevX = j(b.plotX, x.width / 2 + k * Math.cos(S * l)), b.plotY = b.prevY = j(b.plotY, x.height / 2 + k * Math.sin(S * l)), b.dispX = 0, b.dispY = 0;
  15085. });
  15086. },
  15087. setRandomPositions: function() {
  15088. function w(T) {
  15089. return T = T * T / Math.PI, T -= Math.floor(T);
  15090. }
  15091. var x = this.box, f = this.nodes, l = f.length + 1;
  15092. f.forEach(function(T, O) {
  15093. T.plotX = T.prevX = j(T.plotX, x.width * w(O)), T.plotY = T.prevY = j(T.plotY, x.height * w(l + O)), T.dispX = 0, T.dispY = 0;
  15094. });
  15095. },
  15096. force: function(w) {
  15097. this.integration[w].apply(this, Array.prototype.slice.call(arguments, 1));
  15098. },
  15099. barycenterForces: function() {
  15100. this.getBarycenter(), this.force("barycenter");
  15101. },
  15102. getBarycenter: function() {
  15103. var w = 0, x = 0, f = 0;
  15104. return this.nodes.forEach(function(l) {
  15105. x += l.plotX * l.mass, f += l.plotY * l.mass, w += l.mass;
  15106. }), this.barycenter = { x, y: f, xFactor: x / w, yFactor: f / w };
  15107. },
  15108. barnesHutApproximation: function(w, x) {
  15109. var f = this.getDistXY(w, x), l = this.vectorLength(f);
  15110. if (w !== x && l !== 0)
  15111. if (x.isInternal)
  15112. if (x.boxSize / l < this.options.theta && l !== 0) {
  15113. var T = this.repulsiveForce(l, this.k);
  15114. this.force("repulsive", w, T * x.mass, f, l);
  15115. var O = !1;
  15116. } else
  15117. O = !0;
  15118. else
  15119. T = this.repulsiveForce(l, this.k), this.force("repulsive", w, T * x.mass, f, l);
  15120. return O;
  15121. },
  15122. repulsiveForces: function() {
  15123. var w = this;
  15124. w.approximation === "barnes-hut" ? w.nodes.forEach(function(x) {
  15125. w.quadTree.visitNodeRecursive(
  15126. null,
  15127. function(f) {
  15128. return w.barnesHutApproximation(x, f);
  15129. }
  15130. );
  15131. }) : w.nodes.forEach(function(x) {
  15132. w.nodes.forEach(function(f) {
  15133. if (x !== f && !x.fixedPosition) {
  15134. var l = w.getDistXY(x, f), T = w.vectorLength(l);
  15135. if (T !== 0) {
  15136. var O = w.repulsiveForce(T, w.k);
  15137. w.force("repulsive", x, O * f.mass, l, T);
  15138. }
  15139. }
  15140. });
  15141. });
  15142. },
  15143. attractiveForces: function() {
  15144. var w = this, x, f, l;
  15145. w.links.forEach(function(T) {
  15146. T.fromNode && T.toNode && (x = w.getDistXY(T.fromNode, T.toNode), f = w.vectorLength(x), f !== 0 && (l = w.attractiveForce(f, w.k), w.force("attractive", T, l, x, f)));
  15147. });
  15148. },
  15149. applyLimits: function() {
  15150. var w = this;
  15151. w.nodes.forEach(function(x) {
  15152. x.fixedPosition || (w.integration.integrate(w, x), w.applyLimitBox(x, w.box), x.dispX = 0, x.dispY = 0);
  15153. });
  15154. },
  15155. applyLimitBox: function(w, x) {
  15156. var f = w.radius;
  15157. w.plotX = G(w.plotX, x.left + f, x.width - f), w.plotY = G(w.plotY, x.top + f, x.height - f);
  15158. },
  15159. coolDown: function(w, x, f) {
  15160. return w - x * f;
  15161. },
  15162. isStable: function() {
  15163. return 1e-5 > Math.abs(this.systemTemperature - this.prevSystemTemperature) || 0 >= this.temperature;
  15164. },
  15165. getSystemTemperature: function() {
  15166. return this.nodes.reduce(function(w, x) {
  15167. return w + x.temperature;
  15168. }, 0);
  15169. },
  15170. vectorLength: function(w) {
  15171. return Math.sqrt(w.x * w.x + w.y * w.y);
  15172. },
  15173. getDistR: function(w, x) {
  15174. return w = this.getDistXY(w, x), this.vectorLength(w);
  15175. },
  15176. getDistXY: function(w, x) {
  15177. var f = w.plotX - x.plotX;
  15178. return w = w.plotY - x.plotY, { x: f, y: w, absX: Math.abs(f), absY: Math.abs(w) };
  15179. }
  15180. }), y(o, "predraw", function() {
  15181. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(w) {
  15182. w.stop();
  15183. });
  15184. }), y(o, "render", function() {
  15185. function w(l) {
  15186. l.maxIterations-- && isFinite(l.temperature) && !l.isStable() && !l.enableSimulation && (l.beforeStep && l.beforeStep(), l.step(), f = !1, x = !0);
  15187. }
  15188. var x = !1;
  15189. if (this.graphLayoutsLookup) {
  15190. for (U(!1, this), this.graphLayoutsLookup.forEach(function(l) {
  15191. l.start();
  15192. }); !f; ) {
  15193. var f = !0;
  15194. this.graphLayoutsLookup.forEach(w);
  15195. }
  15196. x && this.series.forEach(function(l) {
  15197. l && l.layout && l.render();
  15198. });
  15199. }
  15200. }), y(o, "beforePrint", function() {
  15201. this.graphLayoutsLookup && (this.graphLayoutsLookup.forEach(function(w) {
  15202. w.updateSimulation(!1);
  15203. }), this.redraw());
  15204. }), y(o, "afterPrint", function() {
  15205. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(w) {
  15206. w.updateSimulation();
  15207. }), this.redraw();
  15208. });
  15209. }), C(d, "Series/PackedBubble/PackedBubbleComposition.js", [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N) {
  15210. var _ = y.layouts["reingold-fruchterman"], U = N.addEvent, G = N.extendClass, V = N.pick;
  15211. o.prototype.getSelectedParentNodes = function() {
  15212. var F = [];
  15213. return this.series.forEach(function(B) {
  15214. B.parentNode && B.parentNode.selected && F.push(B.parentNode);
  15215. }), F;
  15216. }, y.networkgraphIntegrations.packedbubble = { repulsiveForceFunction: function(F, B, j, w) {
  15217. return Math.min(F, (j.marker.radius + w.marker.radius) / 2);
  15218. }, barycenter: function() {
  15219. var F = this, B = F.options.gravitationalConstant, j = F.box, w = F.nodes, x, f;
  15220. w.forEach(function(l) {
  15221. F.options.splitSeries && !l.isParentNode ? (x = l.series.parentNode.plotX, f = l.series.parentNode.plotY) : (x = j.width / 2, f = j.height / 2), l.fixedPosition || (l.plotX -= (l.plotX - x) * B / (l.mass * Math.sqrt(w.length)), l.plotY -= (l.plotY - f) * B / (l.mass * Math.sqrt(w.length)));
  15222. });
  15223. }, repulsive: function(F, B, j, w) {
  15224. var x = B * this.diffTemperature / F.mass / F.degree;
  15225. B = j.x * x, j = j.y * x, F.fixedPosition || (F.plotX += B, F.plotY += j), w.fixedPosition || (w.plotX -= B, w.plotY -= j);
  15226. }, integrate: y.networkgraphIntegrations.verlet.integrate, getK: y.noop }, y.layouts.packedbubble = G(_, { beforeStep: function() {
  15227. this.options.marker && this.series.forEach(function(F) {
  15228. F && F.calculateParentRadius();
  15229. });
  15230. }, isStable: function() {
  15231. var F = Math.abs(this.prevSystemTemperature - this.systemTemperature);
  15232. return 1 > Math.abs(10 * this.systemTemperature / Math.sqrt(this.nodes.length)) && 1e-5 > F || 0 >= this.temperature;
  15233. }, setCircularPositions: function() {
  15234. var F = this, B = F.box, j = F.nodes, w = 2 * Math.PI / (j.length + 1), x, f, l = F.options.initialPositionRadius;
  15235. j.forEach(function(T, O) {
  15236. F.options.splitSeries && !T.isParentNode ? (x = T.series.parentNode.plotX, f = T.series.parentNode.plotY) : (x = B.width / 2, f = B.height / 2), T.plotX = T.prevX = V(T.plotX, x + l * Math.cos(T.index || O * w)), T.plotY = T.prevY = V(T.plotY, f + l * Math.sin(T.index || O * w)), T.dispX = 0, T.dispY = 0;
  15237. });
  15238. }, repulsiveForces: function() {
  15239. var F = this, B, j, w, x = F.options.bubblePadding;
  15240. F.nodes.forEach(function(f) {
  15241. f.degree = f.mass, f.neighbours = 0, F.nodes.forEach(function(l) {
  15242. B = 0, f === l || f.fixedPosition || !F.options.seriesInteraction && f.series !== l.series || (w = F.getDistXY(f, l), j = F.vectorLength(w) - (f.marker.radius + l.marker.radius + x), 0 > j && (f.degree += 0.01, f.neighbours++, B = F.repulsiveForce(-j / Math.sqrt(f.neighbours), F.k, f, l)), F.force("repulsive", f, B * l.mass, w, l, j));
  15243. });
  15244. });
  15245. }, applyLimitBox: function(F) {
  15246. if (this.options.splitSeries && !F.isParentNode && this.options.parentNodeLimit) {
  15247. var B = this.getDistXY(F, F.series.parentNode), j = F.series.parentNodeRadius - F.marker.radius - this.vectorLength(B);
  15248. 0 > j && j > -2 * F.marker.radius && (F.plotX -= 0.01 * B.x, F.plotY -= 0.01 * B.y);
  15249. }
  15250. _.prototype.applyLimitBox.apply(this, arguments);
  15251. } }), U(o, "beforeRedraw", function() {
  15252. this.allDataPoints && delete this.allDataPoints;
  15253. });
  15254. }), C(d, "Series/PackedBubble/PackedBubbleSeries.js", [d["Core/Color/Color.js"], d["Core/Globals.js"], d["Series/PackedBubble/PackedBubblePoint.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N, _, U) {
  15255. var G = this && this.__extends || function() {
  15256. var S = function(v, h) {
  15257. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, u) {
  15258. c.__proto__ = u;
  15259. } || function(c, u) {
  15260. for (var i in u)
  15261. u.hasOwnProperty(i) && (c[i] = u[i]);
  15262. }, S(v, h);
  15263. };
  15264. return function(v, h) {
  15265. function c() {
  15266. this.constructor = v;
  15267. }
  15268. S(v, h), v.prototype = h === null ? Object.create(h) : (c.prototype = h.prototype, new c());
  15269. };
  15270. }(), V = o.parse, F = _.series, B = _.seriesTypes.bubble, j = U.addEvent, w = U.clamp, x = U.defined, f = U.extend, l = U.fireEvent, T = U.isArray, O = U.isNumber, R = U.merge, k = U.pick, b = y.dragNodesMixin;
  15271. return o = function(S) {
  15272. function v() {
  15273. var h = S !== null && S.apply(this, arguments) || this;
  15274. return h.chart = void 0, h.data = void 0, h.layout = void 0, h.options = void 0, h.points = void 0, h.xData = void 0, h;
  15275. }
  15276. return G(v, S), v.prototype.accumulateAllPoints = function(h) {
  15277. var c = h.chart, u = [], i, p;
  15278. for (i = 0; i < c.series.length; i++)
  15279. if (h = c.series[i], h.is("packedbubble") && h.visible || !c.options.chart.ignoreHiddenSeries)
  15280. for (p = 0; p < h.yData.length; p++)
  15281. u.push([null, null, h.yData[p], h.index, p, { id: p, marker: { radius: 0 } }]);
  15282. return u;
  15283. }, v.prototype.addLayout = function() {
  15284. var h = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, u = this.chart.graphLayoutsLookup, i = this.chart.options.chart;
  15285. c || (this.chart.graphLayoutsStorage = c = {}, this.chart.graphLayoutsLookup = u = []);
  15286. var p = c[h.type];
  15287. p || (h.enableSimulation = x(i.forExport) ? !i.forExport : h.enableSimulation, c[h.type] = p = new y.layouts[h.type](), p.init(h), u.splice(p.index, 0, p)), this.layout = p, this.points.forEach(function(a) {
  15288. a.mass = 2, a.degree = 1, a.collisionNmb = 1;
  15289. }), p.setArea(0, 0, this.chart.plotWidth, this.chart.plotHeight), p.addElementsToCollection([this], p.series), p.addElementsToCollection(this.points, p.nodes);
  15290. }, v.prototype.addSeriesLayout = function() {
  15291. var h = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, u = this.chart.graphLayoutsLookup, i = R(h, h.parentNodeOptions, { enableSimulation: this.layout.options.enableSimulation }), p = c[h.type + "-series"];
  15292. p || (c[h.type + "-series"] = p = new y.layouts[h.type](), p.init(i), u.splice(p.index, 0, p)), this.parentNodeLayout = p, this.createParentNodes();
  15293. }, v.prototype.calculateParentRadius = function() {
  15294. var h = this.seriesBox();
  15295. this.parentNodeRadius = w(Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20, 20, h ? Math.max(Math.sqrt(Math.pow(
  15296. h.width,
  15297. 2
  15298. ) + Math.pow(h.height, 2)) / 2 + 20, 20) : Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20), this.parentNode && (this.parentNode.marker.radius = this.parentNode.radius = this.parentNodeRadius);
  15299. }, v.prototype.calculateZExtremes = function() {
  15300. var h = this.options.zMin, c = this.options.zMax, u = 1 / 0, i = -1 / 0;
  15301. return h && c ? [h, c] : (this.chart.series.forEach(function(p) {
  15302. p.yData.forEach(function(a) {
  15303. x(a) && (a > i && (i = a), a < u && (u = a));
  15304. });
  15305. }), h = k(h, u), c = k(c, i), [h, c]);
  15306. }, v.prototype.checkOverlap = function(h, c) {
  15307. var u = h[0] - c[0], i = h[1] - c[1];
  15308. return -1e-3 > Math.sqrt(u * u + i * i) - Math.abs(h[2] + c[2]);
  15309. }, v.prototype.createParentNodes = function() {
  15310. var h = this, c = h.chart, u = h.parentNodeLayout, i, p = h.parentNode, a = h.pointClass, t = h.layout.options, s = { radius: h.parentNodeRadius, lineColor: h.color, fillColor: V(h.color).brighten(0.4).get() };
  15311. t.parentNodeOptions && (s = R(t.parentNodeOptions.marker || {}, s)), h.parentNodeMass = 0, h.points.forEach(function(n) {
  15312. h.parentNodeMass += Math.PI * Math.pow(n.marker.radius, 2);
  15313. }), h.calculateParentRadius(), u.nodes.forEach(function(n) {
  15314. n.seriesIndex === h.index && (i = !0);
  15315. }), u.setArea(0, 0, c.plotWidth, c.plotHeight), i || (p || (p = new a().init(this, { mass: h.parentNodeRadius / 2, marker: s, dataLabels: { inside: !1 }, states: { normal: { marker: s }, hover: { marker: s } }, dataLabelOnNull: !0, degree: h.parentNodeRadius, isParentNode: !0, seriesIndex: h.index })), h.parentNode && (p.plotX = h.parentNode.plotX, p.plotY = h.parentNode.plotY), h.parentNode = p, u.addElementsToCollection([h], u.series), u.addElementsToCollection([p], u.nodes));
  15316. }, v.prototype.deferLayout = function() {
  15317. var h = this.options.layoutAlgorithm;
  15318. this.visible && (this.addLayout(), h.splitSeries && this.addSeriesLayout());
  15319. }, v.prototype.destroy = function() {
  15320. this.chart.graphLayoutsLookup && this.chart.graphLayoutsLookup.forEach(function(h) {
  15321. h.removeElementFromCollection(this, h.series);
  15322. }, this), this.parentNode && this.parentNodeLayout && (this.parentNodeLayout.removeElementFromCollection(this.parentNode, this.parentNodeLayout.nodes), this.parentNode.dataLabel && (this.parentNode.dataLabel = this.parentNode.dataLabel.destroy())), F.prototype.destroy.apply(this, arguments);
  15323. }, v.prototype.drawDataLabels = function() {
  15324. var h = this.options.dataLabels.textPath, c = this.points;
  15325. F.prototype.drawDataLabels.apply(this, arguments), this.parentNode && (this.parentNode.formatPrefix = "parentNode", this.points = [this.parentNode], this.options.dataLabels.textPath = this.options.dataLabels.parentNodeTextPath, F.prototype.drawDataLabels.apply(this, arguments), this.points = c, this.options.dataLabels.textPath = h);
  15326. }, v.prototype.drawGraph = function() {
  15327. if (this.layout && this.layout.options.splitSeries) {
  15328. var h = this.chart, c = this.layout.options.parentNodeOptions.marker, u = { fill: c.fillColor || V(this.color).brighten(0.4).get(), opacity: c.fillOpacity, stroke: c.lineColor || this.color, "stroke-width": k(c.lineWidth, this.options.lineWidth) };
  15329. this.parentNodesGroup || (this.parentNodesGroup = this.plotGroup("parentNodesGroup", "parentNode", this.visible ? "inherit" : "hidden", 0.1, h.seriesGroup), this.group.attr({ zIndex: 2 })), this.calculateParentRadius(), c = R({
  15330. x: this.parentNode.plotX - this.parentNodeRadius,
  15331. y: this.parentNode.plotY - this.parentNodeRadius,
  15332. width: 2 * this.parentNodeRadius,
  15333. height: 2 * this.parentNodeRadius
  15334. }, u), this.parentNode.graphic || (this.graph = this.parentNode.graphic = h.renderer.symbol(u.symbol).add(this.parentNodesGroup)), this.parentNode.graphic.attr(c);
  15335. }
  15336. }, v.prototype.drawTracker = function() {
  15337. var h = this.parentNode;
  15338. if (S.prototype.drawTracker.call(this), h) {
  15339. var c = T(h.dataLabels) ? h.dataLabels : h.dataLabel ? [h.dataLabel] : [];
  15340. h.graphic && (h.graphic.element.point = h), c.forEach(function(u) {
  15341. u.div ? u.div.point = h : u.element.point = h;
  15342. });
  15343. }
  15344. }, v.prototype.getPointRadius = function() {
  15345. var h = this, c = h.chart, u = h.options, i = u.useSimulation, p = Math.min(c.plotWidth, c.plotHeight), a = {}, t = [], s = c.allDataPoints, n, P, D, I;
  15346. ["minSize", "maxSize"].forEach(function(E) {
  15347. var X = parseInt(u[E], 10), g = /%$/.test(u[E]);
  15348. a[E] = g ? p * X / 100 : X * Math.sqrt(s.length);
  15349. }), c.minRadius = n = a.minSize / Math.sqrt(s.length), c.maxRadius = P = a.maxSize / Math.sqrt(s.length);
  15350. var W = i ? h.calculateZExtremes() : [n, P];
  15351. (s || []).forEach(function(E, X) {
  15352. D = i ? w(E[2], W[0], W[1]) : E[2], I = h.getRadius(W[0], W[1], n, P, D), I === 0 && (I = null), s[X][2] = I, t.push(I);
  15353. }), h.radii = t;
  15354. }, v.prototype.init = function() {
  15355. return F.prototype.init.apply(this, arguments), this.eventsToUnbind.push(j(this, "updatedData", function() {
  15356. this.chart.series.forEach(function(h) {
  15357. h.type === this.type && (h.isDirty = !0);
  15358. }, this);
  15359. })), this;
  15360. }, v.prototype.onMouseUp = function(h) {
  15361. if (h.fixedPosition && !h.removed) {
  15362. var c, u, i = this.layout, p = this.parentNodeLayout;
  15363. p && i.options.dragBetweenSeries && p.nodes.forEach(function(a) {
  15364. h && h.marker && a !== h.series.parentNode && (c = i.getDistXY(h, a), u = i.vectorLength(c) - a.marker.radius - h.marker.radius, 0 > u && (a.series.addPoint(R(h.options, { plotX: h.plotX, plotY: h.plotY }), !1), i.removeElementFromCollection(h, i.nodes), h.remove()));
  15365. }), b.onMouseUp.apply(this, arguments);
  15366. }
  15367. }, v.prototype.placeBubbles = function(h) {
  15368. var c = this.checkOverlap, u = this.positionBubble, i = [], p = 1, a = 0, t = 0, s = [], n;
  15369. if (h = h.sort(function(P, D) {
  15370. return D[2] - P[2];
  15371. }), h.length) {
  15372. if (i.push([[0, 0, h[0][2], h[0][3], h[0][4]]]), 1 < h.length)
  15373. for (i.push([[0, 0 - h[1][2] - h[0][2], h[1][2], h[1][3], h[1][4]]]), n = 2; n < h.length; n++)
  15374. h[n][2] = h[n][2] || 1, s = u(i[p][a], i[p - 1][t], h[n]), c(s, i[p][0]) ? (i.push([]), t = 0, i[p + 1].push(u(i[p][a], i[p][0], h[n])), p++, a = 0) : 1 < p && i[p - 1][t + 1] && c(s, i[p - 1][t + 1]) ? (t++, i[p].push(u(i[p][a], i[p - 1][t], h[n])), a++) : (a++, i[p].push(s));
  15375. this.chart.stages = i, this.chart.rawPositions = [].concat.apply([], i), this.resizeRadius(), s = this.chart.rawPositions;
  15376. }
  15377. return s;
  15378. }, v.prototype.pointAttribs = function(h, c) {
  15379. var u = this.options, i = u.marker;
  15380. return h && h.isParentNode && u.layoutAlgorithm && u.layoutAlgorithm.parentNodeOptions && (i = u.layoutAlgorithm.parentNodeOptions.marker), u = i.fillOpacity, h = F.prototype.pointAttribs.call(this, h, c), u !== 1 && (h["fill-opacity"] = u), h;
  15381. }, v.prototype.positionBubble = function(h, c, u) {
  15382. var i = Math.sqrt, p = Math.asin, a = Math.acos, t = Math.pow, s = Math.abs;
  15383. return i = i(t(h[0] - c[0], 2) + t(h[1] - c[1], 2)), a = a((t(i, 2) + t(u[2] + c[2], 2) - t(u[2] + h[2], 2)) / (2 * (u[2] + c[2]) * i)), p = p(s(h[0] - c[0]) / i), h = (0 > h[1] - c[1] ? 0 : Math.PI) + a + p * (0 > (h[0] - c[0]) * (h[1] - c[1]) ? 1 : -1), [c[0] + (c[2] + u[2]) * Math.sin(h), c[1] - (c[2] + u[2]) * Math.cos(h), u[2], u[3], u[4]];
  15384. }, v.prototype.render = function() {
  15385. var h = [];
  15386. F.prototype.render.apply(this, arguments), this.options.dataLabels.allowOverlap || (this.data.forEach(function(c) {
  15387. T(c.dataLabels) && c.dataLabels.forEach(function(u) {
  15388. h.push(u);
  15389. });
  15390. }), this.options.useSimulation && this.chart.hideOverlappingLabels(h));
  15391. }, v.prototype.resizeRadius = function() {
  15392. var h = this.chart, c = h.rawPositions, u = Math.min, i = Math.max, p = h.plotLeft, a = h.plotTop, t = h.plotHeight, s = h.plotWidth, n, P, D, I = n = Number.POSITIVE_INFINITY, W = P = Number.NEGATIVE_INFINITY;
  15393. for (D = 0; D < c.length; D++) {
  15394. var E = c[D][2];
  15395. I = u(
  15396. I,
  15397. c[D][0] - E
  15398. ), W = i(W, c[D][0] + E), n = u(n, c[D][1] - E), P = i(P, c[D][1] + E);
  15399. }
  15400. if (D = [W - I, P - n], u = u.apply([], [(s - p) / D[0], (t - a) / D[1]]), 1e-10 < Math.abs(u - 1)) {
  15401. for (D = 0; D < c.length; D++)
  15402. c[D][2] *= u;
  15403. this.placeBubbles(c);
  15404. } else
  15405. h.diffY = t / 2 + a - n - (P - n) / 2, h.diffX = s / 2 + p - I - (W - I) / 2;
  15406. }, v.prototype.seriesBox = function() {
  15407. var h = this.chart, c = Math.max, u = Math.min, i, p = [h.plotLeft, h.plotLeft + h.plotWidth, h.plotTop, h.plotTop + h.plotHeight];
  15408. return this.data.forEach(function(a) {
  15409. x(a.plotX) && x(a.plotY) && a.marker.radius && (i = a.marker.radius, p[0] = u(p[0], a.plotX - i), p[1] = c(p[1], a.plotX + i), p[2] = u(p[2], a.plotY - i), p[3] = c(p[3], a.plotY + i));
  15410. }), O(p.width / p.height) ? p : null;
  15411. }, v.prototype.setVisible = function() {
  15412. var h = this;
  15413. F.prototype.setVisible.apply(h, arguments), h.parentNodeLayout && h.graph ? h.visible ? (h.graph.show(), h.parentNode.dataLabel && h.parentNode.dataLabel.show()) : (h.graph.hide(), h.parentNodeLayout.removeElementFromCollection(h.parentNode, h.parentNodeLayout.nodes), h.parentNode.dataLabel && h.parentNode.dataLabel.hide()) : h.layout && (h.visible ? h.layout.addElementsToCollection(
  15414. h.points,
  15415. h.layout.nodes
  15416. ) : h.points.forEach(function(c) {
  15417. h.layout.removeElementFromCollection(c, h.layout.nodes);
  15418. }));
  15419. }, v.prototype.translate = function() {
  15420. var h = this.chart, c = this.data, u = this.index, i, p = this.options.useSimulation;
  15421. if (this.processedXData = this.xData, this.generatePoints(), x(h.allDataPoints) || (h.allDataPoints = this.accumulateAllPoints(this), this.getPointRadius()), p)
  15422. var a = h.allDataPoints;
  15423. else
  15424. a = this.placeBubbles(h.allDataPoints), this.options.draggable = !1;
  15425. for (i = 0; i < a.length; i++)
  15426. if (a[i][3] === u) {
  15427. var t = c[a[i][4]], s = k(a[i][2], void 0);
  15428. p || (t.plotX = a[i][0] - h.plotLeft + h.diffX, t.plotY = a[i][1] - h.plotTop + h.diffY), O(s) && (t.marker = f(t.marker, { radius: s, width: 2 * s, height: 2 * s }), t.radius = s);
  15429. }
  15430. p && this.deferLayout(), l(this, "afterTranslate");
  15431. }, v.defaultOptions = R(B.defaultOptions, { minSize: "10%", maxSize: "50%", sizeBy: "area", zoneAxis: "y", crisp: !1, tooltip: { pointFormat: "Value: {point.value}" }, draggable: !0, useSimulation: !0, parentNode: { allowPointSelect: !1 }, dataLabels: { formatter: function() {
  15432. var h = this.series.chart.numberFormatter, c = this.point.value;
  15433. return O(c) ? h(c, -1) : "";
  15434. }, parentNodeFormatter: function() {
  15435. return this.name;
  15436. }, parentNodeTextPath: { enabled: !0 }, padding: 0, style: { transition: "opacity 2000ms" } }, layoutAlgorithm: { initialPositions: "circle", initialPositionRadius: 20, bubblePadding: 5, parentNodeLimit: !1, seriesInteraction: !0, dragBetweenSeries: !1, parentNodeOptions: { maxIterations: 400, gravitationalConstant: 0.03, maxSpeed: 50, initialPositionRadius: 100, seriesInteraction: !0, marker: {
  15437. fillColor: null,
  15438. fillOpacity: 1,
  15439. lineWidth: null,
  15440. lineColor: null,
  15441. symbol: "circle"
  15442. } }, enableSimulation: !0, type: "packedbubble", integration: "packedbubble", maxIterations: 1e3, splitSeries: !1, maxSpeed: 5, gravitationalConstant: 0.01, friction: -0.981 } }), v;
  15443. }(B), f(o.prototype, {
  15444. alignDataLabel: F.prototype.alignDataLabel,
  15445. axisTypes: [],
  15446. directTouch: !0,
  15447. forces: ["barycenter", "repulsive"],
  15448. hasDraggableNodes: !0,
  15449. isCartesian: !1,
  15450. noSharedTooltip: !0,
  15451. onMouseDown: b.onMouseDown,
  15452. onMouseMove: b.onMouseMove,
  15453. pointArrayMap: ["value"],
  15454. pointClass: N,
  15455. pointValKey: "value",
  15456. redrawHalo: b.redrawHalo,
  15457. requireSorting: !1,
  15458. searchPoint: y.noop,
  15459. trackerGroups: ["group", "dataLabelsGroup", "parentNodesGroup"]
  15460. }), _.registerSeriesType("packedbubble", o), o;
  15461. }), C(d, "Series/Polygon/PolygonSeries.js", [d["Core/Globals.js"], d["Core/Legend/LegendSymbol.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  15462. var U = this && this.__extends || function() {
  15463. var x = function(f, l) {
  15464. return x = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(T, O) {
  15465. T.__proto__ = O;
  15466. } || function(T, O) {
  15467. for (var R in O)
  15468. O.hasOwnProperty(R) && (T[R] = O[R]);
  15469. }, x(f, l);
  15470. };
  15471. return function(f, l) {
  15472. function T() {
  15473. this.constructor = f;
  15474. }
  15475. x(f, l), f.prototype = l === null ? Object.create(l) : (T.prototype = l.prototype, new T());
  15476. };
  15477. }();
  15478. o = o.noop;
  15479. var G = N.series, V = N.seriesTypes, F = V.area, B = V.line, j = V.scatter;
  15480. V = _.extend;
  15481. var w = _.merge;
  15482. return _ = function(x) {
  15483. function f() {
  15484. var l = x !== null && x.apply(this, arguments) || this;
  15485. return l.data = void 0, l.options = void 0, l.points = void 0, l;
  15486. }
  15487. return U(f, x), f.prototype.getGraphPath = function() {
  15488. for (var l = B.prototype.getGraphPath.call(this), T = l.length + 1; T--; )
  15489. (T === l.length || l[T][0] === "M") && 0 < T && l.splice(T, 0, ["Z"]);
  15490. return this.areaPath = l;
  15491. }, f.prototype.drawGraph = function() {
  15492. this.options.fillColor = this.color, F.prototype.drawGraph.call(this);
  15493. }, f.defaultOptions = w(j.defaultOptions, { marker: { enabled: !1, states: { hover: { enabled: !1 } } }, stickyTracking: !1, tooltip: { followPointer: !0, pointFormat: "" }, trackByArea: !0 }), f;
  15494. }(j), V(_.prototype, { type: "polygon", drawLegendSymbol: y.drawRectangle, drawTracker: G.prototype.drawTracker, setStackedPoints: o }), N.registerSeriesType("polygon", _), _;
  15495. }), C(d, "Core/Axis/WaterfallAxis.js", [d["Extensions/Stacking.js"], d["Core/Utilities.js"]], function(o, y) {
  15496. var N = y.addEvent, _ = y.objectEach, U;
  15497. return function(G) {
  15498. function V() {
  15499. var x = this.waterfall.stacks;
  15500. x && (x.changed = !1, delete x.alreadyChanged);
  15501. }
  15502. function F() {
  15503. var x = this.options.stackLabels;
  15504. x && x.enabled && this.waterfall.stacks && this.waterfall.renderStackTotals();
  15505. }
  15506. function B() {
  15507. for (var x = this.axes, f = this.series, l = f.length; l--; )
  15508. f[l].options.stacking && (x.forEach(function(T) {
  15509. T.isXAxis || (T.waterfall.stacks.changed = !0);
  15510. }), l = 0);
  15511. }
  15512. function j() {
  15513. this.waterfall || (this.waterfall = new w(this));
  15514. }
  15515. var w = function() {
  15516. function x(f) {
  15517. this.axis = f, this.stacks = { changed: !1 };
  15518. }
  15519. return x.prototype.renderStackTotals = function() {
  15520. var f = this.axis, l = f.waterfall.stacks, T = f.stacking && f.stacking.stackTotalGroup, O = new o(f, f.options.stackLabels, !1, 0, void 0);
  15521. this.dummyStackItem = O, _(l, function(R) {
  15522. _(R, function(k) {
  15523. O.total = k.stackTotal, k.label && (O.label = k.label), o.prototype.render.call(O, T), k.label = O.label, delete O.label;
  15524. });
  15525. }), O.total = null;
  15526. }, x;
  15527. }();
  15528. G.Composition = w, G.compose = function(x, f) {
  15529. N(x, "init", j), N(x, "afterBuildStacks", V), N(x, "afterRender", F), N(f, "beforeRedraw", B);
  15530. };
  15531. }(U || (U = {})), U;
  15532. }), C(d, "Series/Waterfall/WaterfallPoint.js", [d["Series/Column/ColumnSeries.js"], d["Core/Series/Point.js"], d["Core/Utilities.js"]], function(o, y, N) {
  15533. var _ = this && this.__extends || function() {
  15534. var G = function(V, F) {
  15535. return G = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, j) {
  15536. B.__proto__ = j;
  15537. } || function(B, j) {
  15538. for (var w in j)
  15539. j.hasOwnProperty(w) && (B[w] = j[w]);
  15540. }, G(V, F);
  15541. };
  15542. return function(V, F) {
  15543. function B() {
  15544. this.constructor = V;
  15545. }
  15546. G(V, F), V.prototype = F === null ? Object.create(F) : (B.prototype = F.prototype, new B());
  15547. };
  15548. }(), U = N.isNumber;
  15549. return function(G) {
  15550. function V() {
  15551. var F = G !== null && G.apply(this, arguments) || this;
  15552. return F.options = void 0, F.series = void 0, F;
  15553. }
  15554. return _(V, G), V.prototype.getClassName = function() {
  15555. var F = y.prototype.getClassName.call(this);
  15556. return this.isSum ? F += " highcharts-sum" : this.isIntermediateSum && (F += " highcharts-intermediate-sum"), F;
  15557. }, V.prototype.isValid = function() {
  15558. return U(this.y) || this.isSum || !!this.isIntermediateSum;
  15559. }, V;
  15560. }(o.prototype.pointClass);
  15561. }), C(d, "Series/Waterfall/WaterfallSeries.js", [d["Core/Axis/Axis.js"], d["Core/Chart/Chart.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"], d["Core/Axis/WaterfallAxis.js"], d["Series/Waterfall/WaterfallPoint.js"]], function(o, y, N, _, U, G) {
  15562. var V = this && this.__extends || function() {
  15563. var k = function(b, S) {
  15564. return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, h) {
  15565. v.__proto__ = h;
  15566. } || function(v, h) {
  15567. for (var c in h)
  15568. h.hasOwnProperty(c) && (v[c] = h[c]);
  15569. }, k(b, S);
  15570. };
  15571. return function(b, S) {
  15572. function v() {
  15573. this.constructor = b;
  15574. }
  15575. k(b, S), b.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  15576. };
  15577. }(), F = N.seriesTypes, B = F.column, j = F.line, w = _.arrayMax, x = _.arrayMin, f = _.correctFloat;
  15578. F = _.extend;
  15579. var l = _.isNumber, T = _.merge, O = _.objectEach, R = _.pick;
  15580. return _ = function(k) {
  15581. function b() {
  15582. var S = k !== null && k.apply(this, arguments) || this;
  15583. return S.chart = void 0, S.data = void 0, S.options = void 0, S.points = void 0, S.stackedYNeg = void 0, S.stackedYPos = void 0, S.stackKey = void 0, S.xData = void 0, S.yAxis = void 0, S.yData = void 0, S;
  15584. }
  15585. return V(b, k), b.prototype.generatePoints = function() {
  15586. var S;
  15587. B.prototype.generatePoints.apply(this);
  15588. var v = 0;
  15589. for (S = this.points.length; v < S; v++) {
  15590. var h = this.points[v], c = this.processedYData[v];
  15591. (h.isIntermediateSum || h.isSum) && (h.y = f(c));
  15592. }
  15593. }, b.prototype.translate = function() {
  15594. var S = this.options, v = this.yAxis, h = R(S.minPointLength, 5), c = h / 2, u = S.threshold || 0, i = u, p = u;
  15595. S = S.stacking;
  15596. var a = v.waterfall.stacks[this.stackKey];
  15597. B.prototype.translate.apply(this);
  15598. for (var t = this.points, s = 0; s < t.length; s++) {
  15599. var n = t[s], P = this.processedYData[s], D = n.shapeArgs;
  15600. if (D && l(P)) {
  15601. var I = [0, P], W = n.y;
  15602. if (S) {
  15603. if (a) {
  15604. if (I = a[s], S === "overlap") {
  15605. var E = I.stackState[I.stateIndex--];
  15606. E = 0 <= W ? E : E - W, Object.hasOwnProperty.call(I, "absolutePos") && delete I.absolutePos, Object.hasOwnProperty.call(I, "absoluteNeg") && delete I.absoluteNeg;
  15607. } else
  15608. 0 <= W ? (E = I.threshold + I.posTotal, I.posTotal -= W) : (E = I.threshold + I.negTotal, I.negTotal -= W, E -= W), !I.posTotal && Object.hasOwnProperty.call(I, "absolutePos") && (I.posTotal = I.absolutePos, delete I.absolutePos), !I.negTotal && Object.hasOwnProperty.call(I, "absoluteNeg") && (I.negTotal = I.absoluteNeg, delete I.absoluteNeg);
  15609. n.isSum || (I.connectorThreshold = I.threshold + I.stackTotal), v.reversed ? (P = 0 <= W ? E - W : E + W, W = E) : (P = E, W = E - W), n.below = P <= u, D.y = v.translate(P, !1, !0, !1, !0) || 0, D.height = Math.abs(D.y - (v.translate(W, !1, !0, !1, !0) || 0)), (W = v.waterfall.dummyStackItem) && (W.x = s, W.label = a[s].label, W.setOffset(this.pointXOffset || 0, this.barW || 0, this.stackedYNeg[s], this.stackedYPos[s]));
  15610. }
  15611. } else
  15612. E = Math.max(i, i + W) + I[0], D.y = v.translate(
  15613. E,
  15614. !1,
  15615. !0,
  15616. !1,
  15617. !0
  15618. ) || 0, n.isSum ? (D.y = v.translate(I[1], !1, !0, !1, !0) || 0, D.height = Math.min(v.translate(I[0], !1, !0, !1, !0) || 0, v.len) - D.y, n.below = I[1] <= u) : n.isIntermediateSum ? (0 <= W ? (P = I[1] + p, W = p) : (P = p, W = I[1] + p), v.reversed && (P ^= W, W ^= P, P ^= W), D.y = v.translate(P, !1, !0, !1, !0) || 0, D.height = Math.abs(D.y - Math.min(v.translate(W, !1, !0, !1, !0) || 0, v.len)), p += I[1], n.below = P <= u) : (D.height = 0 < P ? (v.translate(i, !1, !0, !1, !0) || 0) - D.y : (v.translate(i, !1, !0, !1, !0) || 0) - (v.translate(i - P, !1, !0, !1, !0) || 0), i += P, n.below = i < u), 0 > D.height && (D.y += D.height, D.height *= -1);
  15619. n.plotY = D.y = Math.round(D.y || 0) - this.borderWidth % 2 / 2, D.height = Math.max(Math.round(D.height || 0), 1e-3), n.yBottom = D.y + D.height, D.height <= h && !n.isNull ? (D.height = h, D.y -= c, n.plotY = D.y, n.minPointLengthOffset = 0 > n.y ? -c : c) : (n.isNull && (D.width = 0), n.minPointLengthOffset = 0), W = n.plotY + (n.negative ? D.height : 0), n.below && (n.plotY += D.height), n.tooltipPos && (this.chart.inverted ? n.tooltipPos[0] = v.len - W : n.tooltipPos[1] = W);
  15620. }
  15621. }
  15622. }, b.prototype.processData = function(S) {
  15623. var v = this.options, h = this.yData, c = v.data, u = h.length, i = v.threshold || 0, p, a, t, s, n;
  15624. for (n = a = p = t = s = 0; n < u; n++) {
  15625. var P = h[n], D = c && c[n] ? c[n] : {};
  15626. P === "sum" || D.isSum ? h[n] = f(a) : P === "intermediateSum" || D.isIntermediateSum ? (h[n] = f(p), p = 0) : (a += P, p += P), t = Math.min(a, t), s = Math.max(a, s);
  15627. }
  15628. k.prototype.processData.call(this, S), v.stacking || (this.dataMin = t + i, this.dataMax = s);
  15629. }, b.prototype.toYData = function(S) {
  15630. return S.isSum ? "sum" : S.isIntermediateSum ? "intermediateSum" : S.y;
  15631. }, b.prototype.updateParallelArrays = function(S, v) {
  15632. k.prototype.updateParallelArrays.call(this, S, v), (this.yData[0] === "sum" || this.yData[0] === "intermediateSum") && (this.yData[0] = null);
  15633. }, b.prototype.pointAttribs = function(S, v) {
  15634. var h = this.options.upColor;
  15635. return h && !S.options.color && (S.color = 0 < S.y ? h : null), S = B.prototype.pointAttribs.call(this, S, v), delete S.dashstyle, S;
  15636. }, b.prototype.getGraphPath = function() {
  15637. return [["M", 0, 0]];
  15638. }, b.prototype.getCrispPath = function() {
  15639. var S = this.data, v = this.yAxis, h = S.length, c = Math.round(this.graph.strokeWidth()) % 2 / 2, u = Math.round(this.borderWidth) % 2 / 2, i = this.xAxis.reversed, p = this.yAxis.reversed, a = this.options.stacking, t = [], s;
  15640. for (s = 1; s < h; s++) {
  15641. var n = S[s].shapeArgs, P = S[s - 1], D = S[s - 1].shapeArgs, I = v.waterfall.stacks[this.stackKey], W = 0 < P.y ? -D.height : 0;
  15642. I && D && n && (I = I[s - 1], a ? (I = I.connectorThreshold, W = Math.round(v.translate(I, 0, 1, 0, 1) + (p ? W : 0)) - c) : W = D.y + P.minPointLengthOffset + u - c, t.push(["M", (D.x || 0) + (i ? 0 : D.width || 0), W], ["L", (n.x || 0) + (i && n.width || 0), W])), D && t.length && (!a && 0 > P.y && !p || 0 < P.y && p) && ((P = t[t.length - 2]) && typeof P[2] == "number" && (P[2] += D.height || 0), (P = t[t.length - 1]) && typeof P[2] == "number" && (P[2] += D.height || 0));
  15643. }
  15644. return t;
  15645. }, b.prototype.drawGraph = function() {
  15646. j.prototype.drawGraph.call(this), this.graph.attr({ d: this.getCrispPath() });
  15647. }, b.prototype.setStackedPoints = function() {
  15648. function S($, Q, A, H) {
  15649. if (z)
  15650. for (A; A < z; A++)
  15651. X.stackState[A] += H;
  15652. else
  15653. X.stackState[0] = $, z = X.stackState.length;
  15654. X.stackState.push(X.stackState[z - 1] + Q);
  15655. }
  15656. var v = this.options, h = this.yAxis.waterfall.stacks, c = v.threshold, u = c || 0, i = u, p = this.stackKey, a = this.xData, t = a.length, s, n, P;
  15657. this.yAxis.stacking.usePercentage = !1;
  15658. var D = n = P = u;
  15659. if (this.visible || !this.chart.options.chart.ignoreHiddenSeries) {
  15660. var I = h.changed;
  15661. (s = h.alreadyChanged) && 0 > s.indexOf(p) && (I = !0), h[p] || (h[p] = {}), s = h[p];
  15662. for (var W = 0; W < t; W++) {
  15663. var E = a[W];
  15664. (!s[E] || I) && (s[E] = { negTotal: 0, posTotal: 0, stackTotal: 0, threshold: 0, stateIndex: 0, stackState: [], label: I && s[E] ? s[E].label : void 0 });
  15665. var X = s[E], g = this.yData[W];
  15666. 0 <= g ? X.posTotal += g : X.negTotal += g;
  15667. var m = v.data[W];
  15668. E = X.absolutePos = X.posTotal;
  15669. var L = X.absoluteNeg = X.negTotal;
  15670. X.stackTotal = E + L;
  15671. var z = X.stackState.length;
  15672. m && m.isIntermediateSum ? (S(P, n, 0, P), P = n, n = c, u ^= i, i ^= u, u ^= i) : m && m.isSum ? (S(c, D, z), u = c) : (S(u, g, 0, D), m && (D += g, n += g)), X.stateIndex++, X.threshold = u, u += X.stackTotal;
  15673. }
  15674. h.changed = !1, h.alreadyChanged || (h.alreadyChanged = []), h.alreadyChanged.push(p);
  15675. }
  15676. }, b.prototype.getExtremes = function() {
  15677. var S = this.options.stacking;
  15678. if (S) {
  15679. var v = this.yAxis;
  15680. v = v.waterfall.stacks;
  15681. var h = this.stackedYNeg = [], c = this.stackedYPos = [];
  15682. return S === "overlap" ? O(v[this.stackKey], function(u) {
  15683. h.push(x(u.stackState)), c.push(w(u.stackState));
  15684. }) : O(v[this.stackKey], function(u) {
  15685. h.push(u.negTotal + u.threshold), c.push(u.posTotal + u.threshold);
  15686. }), { dataMin: x(h), dataMax: w(c) };
  15687. }
  15688. return { dataMin: this.dataMin, dataMax: this.dataMax };
  15689. }, b.defaultOptions = T(B.defaultOptions, { dataLabels: { inside: !0 }, lineWidth: 1, lineColor: "#333333", dashStyle: "Dot", borderColor: "#333333", states: { hover: { lineWidthPlus: 0 } } }), b;
  15690. }(B), F(_.prototype, { getZonesGraphs: j.prototype.getZonesGraphs, pointValKey: "y", showLine: !0, pointClass: G }), N.registerSeriesType("waterfall", _), U.compose(o, y), _;
  15691. }), C(d, "Extensions/Polar.js", [
  15692. d["Core/Animation/AnimationUtilities.js"],
  15693. d["Core/Chart/Chart.js"],
  15694. d["Core/Globals.js"],
  15695. d["Extensions/Pane.js"],
  15696. d["Core/Pointer.js"],
  15697. d["Core/Series/Series.js"],
  15698. d["Core/Series/SeriesRegistry.js"],
  15699. d["Core/Renderer/SVG/SVGRenderer.js"],
  15700. d["Core/Utilities.js"]
  15701. ], function(o, y, N, _, U, G, V, F, B) {
  15702. var j = o.animObject;
  15703. V = V.seriesTypes;
  15704. var w = B.addEvent, x = B.defined, f = B.find, l = B.isNumber, T = B.pick, O = B.splat, R = B.uniqueKey;
  15705. o = B.wrap;
  15706. var k = G.prototype;
  15707. U = U.prototype, k.searchPointByAngle = function(v) {
  15708. var h = this.chart, c = this.xAxis.pane.center;
  15709. return this.searchKDTree({ clientX: 180 + -180 / Math.PI * Math.atan2(v.chartX - c[0] - h.plotLeft, v.chartY - c[1] - h.plotTop) });
  15710. }, k.getConnectors = function(v, h, c, u) {
  15711. var i = u ? 1 : 0, p = 0 <= h && h <= v.length - 1 ? h : 0 > h ? v.length - 1 + h : 0;
  15712. h = 0 > p - 1 ? v.length - (1 + i) : p - 1, i = p + 1 > v.length - 1 ? i : p + 1;
  15713. var a = v[h];
  15714. i = v[i];
  15715. var t = a.plotX;
  15716. a = a.plotY;
  15717. var s = i.plotX, n = i.plotY;
  15718. i = v[p].plotX, p = v[p].plotY, t = (1.5 * i + t) / 2.5, a = (1.5 * p + a) / 2.5, s = (1.5 * i + s) / 2.5;
  15719. var P = (1.5 * p + n) / 2.5;
  15720. n = Math.sqrt(Math.pow(t - i, 2) + Math.pow(a - p, 2));
  15721. var D = Math.sqrt(Math.pow(s - i, 2) + Math.pow(P - p, 2));
  15722. return t = Math.atan2(a - p, t - i), P = Math.PI / 2 + (t + Math.atan2(P - p, s - i)) / 2, Math.abs(t - P) > Math.PI / 2 && (P -= Math.PI), t = i + Math.cos(P) * n, a = p + Math.sin(P) * n, s = i + Math.cos(Math.PI + P) * D, P = p + Math.sin(Math.PI + P) * D, i = { rightContX: s, rightContY: P, leftContX: t, leftContY: a, plotX: i, plotY: p }, c && (i.prevPointCont = this.getConnectors(v, h, !1, u)), i;
  15723. }, k.toXY = function(v) {
  15724. var h = this.chart, c = this.xAxis, u = this.yAxis, i = v.plotX, p = v.plotY, a = v.series, t = h.inverted, s = v.y, n = t ? i : u.len - p;
  15725. t && a && !a.isRadialBar && (v.plotY = p = typeof s == "number" && u.translate(s) || 0), v.rectPlotX = i, v.rectPlotY = p, u.center && (n += u.center[3] / 2), l(p) && (u = t ? u.postTranslate(p, n) : c.postTranslate(i, n), v.plotX = v.polarPlotX = u.x - h.plotLeft, v.plotY = v.polarPlotY = u.y - h.plotTop), this.kdByAngle ? (h = (i / Math.PI * 180 + c.pane.options.startAngle) % 360, 0 > h && (h += 360), v.clientX = h) : v.clientX = v.plotX;
  15726. }, V.spline && (o(V.spline.prototype, "getPointSpline", function(v, h, c, u) {
  15727. return this.chart.polar ? u ? (v = this.getConnectors(h, u, !0, this.connectEnds), h = v.prevPointCont && v.prevPointCont.rightContX, c = v.prevPointCont && v.prevPointCont.rightContY, v = ["C", l(h) ? h : v.plotX, l(c) ? c : v.plotY, l(v.leftContX) ? v.leftContX : v.plotX, l(v.leftContY) ? v.leftContY : v.plotY, v.plotX, v.plotY]) : v = ["M", c.plotX, c.plotY] : v = v.call(this, h, c, u), v;
  15728. }), V.areasplinerange && (V.areasplinerange.prototype.getPointSpline = V.spline.prototype.getPointSpline)), w(G, "afterTranslate", function() {
  15729. var v = this.chart;
  15730. if (v.polar && this.xAxis) {
  15731. if ((this.kdByAngle = v.tooltip && v.tooltip.shared) ? this.searchPoint = this.searchPointByAngle : this.options.findNearestPointBy = "xy", !this.preventPostTranslate)
  15732. for (var h = this.points, c = h.length; c--; )
  15733. this.toXY(h[c]), !v.hasParallelCoordinates && !this.yAxis.reversed && h[c].y < this.yAxis.min && (h[c].isNull = !0);
  15734. this.hasClipCircleSetter || (this.hasClipCircleSetter = !!this.eventsToUnbind.push(w(this, "afterRender", function() {
  15735. if (v.polar) {
  15736. var u = this.yAxis.pane.center;
  15737. this.clipCircle ? this.clipCircle.animate({ x: u[0], y: u[1], r: u[2] / 2, innerR: u[3] / 2 }) : this.clipCircle = v.renderer.clipCircle(u[0], u[1], u[2] / 2, u[3] / 2), this.group.clip(this.clipCircle), this.setClip = N.noop;
  15738. }
  15739. })));
  15740. }
  15741. }, { order: 2 }), o(
  15742. V.line.prototype,
  15743. "getGraphPath",
  15744. function(v, h) {
  15745. var c = this, u;
  15746. if (this.chart.polar) {
  15747. for (h = h || this.points, u = 0; u < h.length; u++)
  15748. if (!h[u].isNull) {
  15749. var i = u;
  15750. break;
  15751. }
  15752. if (this.options.connectEnds !== !1 && typeof i < "u") {
  15753. this.connectEnds = !0, h.splice(h.length, 0, h[i]);
  15754. var p = !0;
  15755. }
  15756. h.forEach(function(a) {
  15757. typeof a.polarPlotY > "u" && c.toXY(a);
  15758. });
  15759. }
  15760. return u = v.apply(this, [].slice.call(arguments, 1)), p && h.pop(), u;
  15761. }
  15762. );
  15763. var b = function(v, h) {
  15764. var c = this, u = this.chart, i = this.options.animation, p = this.group, a = this.markerGroup, t = this.xAxis && this.xAxis.center, s = u.plotLeft, n = u.plotTop, P, D, I, W;
  15765. if (u.polar) {
  15766. if (c.isRadialBar)
  15767. h || (c.startAngleRad = T(c.translatedThreshold, c.xAxis.startAngleRad), N.seriesTypes.pie.prototype.animate.call(c, h));
  15768. else if (u.renderer.isSVG)
  15769. if (i = j(i), c.is("column")) {
  15770. if (!h) {
  15771. var E = t[3] / 2;
  15772. c.points.forEach(function(X) {
  15773. P = X.graphic, I = (D = X.shapeArgs) && D.r, W = D && D.innerR, P && D && (P.attr({ r: E, innerR: E }), P.animate({ r: I, innerR: W }, c.options.animation));
  15774. });
  15775. }
  15776. } else
  15777. h ? (v = { translateX: t[0] + s, translateY: t[1] + n, scaleX: 1e-3, scaleY: 1e-3 }, p.attr(v), a && a.attr(v)) : (v = { translateX: s, translateY: n, scaleX: 1, scaleY: 1 }, p.animate(v, i), a && a.animate(v, i));
  15778. } else
  15779. v.call(this, h);
  15780. };
  15781. if (o(k, "animate", b), V.column) {
  15782. var S = V.arearange.prototype;
  15783. V = V.column.prototype, V.polarArc = function(v, h, c, u) {
  15784. var i = this.xAxis.center, p = this.yAxis.len, a = i[3] / 2;
  15785. return h = p - h + a, v = p - T(v, p) + a, this.yAxis.reversed && (0 > h && (h = a), 0 > v && (v = a)), { x: i[0], y: i[1], r: h, innerR: v, start: c, end: u };
  15786. }, o(V, "animate", b), o(V, "translate", function(v) {
  15787. var h = this.options, c = h.stacking, u = this.chart, i = this.xAxis, p = this.yAxis, a = p.reversed, t = p.center, s = i.startAngleRad, n = i.endAngleRad - s;
  15788. if (this.preventPostTranslate = !0, v.call(this), i.isRadial) {
  15789. v = this.points, i = v.length;
  15790. var P = p.translate(p.min), D = p.translate(p.max);
  15791. if (h = h.threshold || 0, u.inverted && l(h)) {
  15792. var I = p.translate(h);
  15793. x(I) && (0 > I ? I = 0 : I > n && (I = n), this.translatedThreshold = I + s);
  15794. }
  15795. for (; i--; ) {
  15796. h = v[i];
  15797. var W = h.barX, E = h.x, X = h.y;
  15798. if (h.shapeType = "arc", u.inverted) {
  15799. if (h.plotY = p.translate(X), c && p.stacking) {
  15800. if (X = p.stacking.stacks[(0 > X ? "-" : "") + this.stackKey], this.visible && X && X[E] && !h.isNull) {
  15801. var g = X[E].points[this.getStackIndicator(void 0, E, this.index).key], m = p.translate(g[0]);
  15802. g = p.translate(g[1]), x(m) && (m = B.clamp(m, 0, n));
  15803. }
  15804. } else
  15805. m = I, g = h.plotY;
  15806. m > g && (g = [m, m = g][0]), a ? g > P ? g = P : m < D ? m = D : (m > P || g < D) && (m = g = n) : m < P ? m = P : g > D ? g = D : (g < P || m > D) && (m = g = 0), p.min > p.max && (m = g = a ? n : 0), m += s, g += s, t && (h.barX = W += t[3] / 2), E = Math.max(W, 0), X = Math.max(W + h.pointWidth, 0), h.shapeArgs = { x: t && t[0], y: t && t[1], r: X, innerR: E, start: m, end: g }, h.opacity = m === g ? 0 : void 0, h.plotY = (x(this.translatedThreshold) && (m < this.translatedThreshold ? m : g)) - s;
  15807. } else
  15808. m = W + s, h.shapeArgs = this.polarArc(h.yBottom, h.plotY, m, m + h.pointWidth);
  15809. this.toXY(h), u.inverted ? (W = p.postTranslate(h.rectPlotY, W + h.pointWidth / 2), h.tooltipPos = [W.x - u.plotLeft, W.y - u.plotTop]) : h.tooltipPos = [h.plotX, h.plotY], t && (h.ttBelow = h.plotY > t[1]);
  15810. }
  15811. }
  15812. }), V.findAlignments = function(v, h) {
  15813. return h.align === null && (h.align = 20 < v && 160 > v ? "left" : 200 < v && 340 > v ? "right" : "center"), h.verticalAlign === null && (h.verticalAlign = 45 > v || 315 < v ? "bottom" : 135 < v && 225 > v ? "top" : "middle"), h;
  15814. }, S && (S.findAlignments = V.findAlignments), o(V, "alignDataLabel", function(v, h, c, u, i, p) {
  15815. var a = this.chart, t = T(u.inside, !!this.options.stacking);
  15816. a.polar ? (v = h.rectPlotX / Math.PI * 180, a.inverted ? (this.forceDL = a.isInsidePlot(h.plotX, Math.round(h.plotY)), t && h.shapeArgs ? (i = h.shapeArgs, i = this.yAxis.postTranslate(((i.start || 0) + (i.end || 0)) / 2 - this.xAxis.startAngleRad, h.barX + h.pointWidth / 2), i = { x: i.x - a.plotLeft, y: i.y - a.plotTop }) : h.tooltipPos && (i = { x: h.tooltipPos[0], y: h.tooltipPos[1] }), u.align = T(u.align, "center"), u.verticalAlign = T(
  15817. u.verticalAlign,
  15818. "middle"
  15819. )) : this.findAlignments && (u = this.findAlignments(v, u)), k.alignDataLabel.call(this, h, c, u, i, p), this.isRadialBar && h.shapeArgs && h.shapeArgs.start === h.shapeArgs.end && c.hide(!0)) : v.call(this, h, c, u, i, p);
  15820. });
  15821. }
  15822. o(U, "getCoordinates", function(v, h) {
  15823. var c = this.chart, u = { xAxis: [], yAxis: [] };
  15824. return c.polar ? c.axes.forEach(function(i) {
  15825. var p = i.isXAxis, a = i.center;
  15826. if (i.coll !== "colorAxis") {
  15827. var t = h.chartX - a[0] - c.plotLeft;
  15828. a = h.chartY - a[1] - c.plotTop, u[p ? "xAxis" : "yAxis"].push({ axis: i, value: i.translate(p ? Math.PI - Math.atan2(t, a) : Math.sqrt(Math.pow(
  15829. t,
  15830. 2
  15831. ) + Math.pow(a, 2)), !0) });
  15832. }
  15833. }) : u = v.call(this, h), u;
  15834. }), F.prototype.clipCircle = function(v, h, c, u) {
  15835. var i = R(), p = this.createElement("clipPath").attr({ id: i }).add(this.defs);
  15836. return v = u ? this.arc(v, h, c, u, 0, 2 * Math.PI).add(p) : this.circle(v, h, c).add(p), v.id = i, v.clipPath = p, v;
  15837. }, w(y, "getAxes", function() {
  15838. this.pane || (this.pane = []), this.options.pane = O(this.options.pane), this.options.pane.forEach(function(v) {
  15839. new _(v, this);
  15840. }, this);
  15841. }), w(y, "afterDrawChartBox", function() {
  15842. this.pane.forEach(function(v) {
  15843. v.render();
  15844. });
  15845. }), w(
  15846. G,
  15847. "afterInit",
  15848. function() {
  15849. var v = this.chart;
  15850. v.inverted && v.polar && (this.isRadialSeries = !0, this.is("column") && (this.isRadialBar = !0));
  15851. }
  15852. ), o(y.prototype, "get", function(v, h) {
  15853. return f(this.pane || [], function(c) {
  15854. return c.options.id === h;
  15855. }) || v.call(this, h);
  15856. });
  15857. }), C(d, "masters/highcharts-more.src.js", [d["Core/Globals.js"], d["Core/Axis/RadialAxis.js"], d["Series/Bubble/BubbleSeries.js"]], function(o, y, N) {
  15858. y.compose(o.Axis, o.Tick), N.compose(o.Chart, o.Legend, o.Series);
  15859. });
  15860. });
  15861. })(ru);
  15862. var $0 = ru.exports;
  15863. const Z0 = /* @__PURE__ */ Mn($0);
  15864. var nu = { exports: {} };
  15865. (function(r) {
  15866. (function(d) {
  15867. r.exports ? (d.default = d, r.exports = d) : d(typeof Highcharts < "u" ? Highcharts : void 0);
  15868. })(function(d) {
  15869. function C(o, y, N, _) {
  15870. o.hasOwnProperty(y) || (o[y] = _.apply(null, N));
  15871. }
  15872. d = d ? d._modules : {}, C(
  15873. d,
  15874. "Extensions/FullScreen.js",
  15875. [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Renderer/HTML/AST.js"], d["Core/Utilities.js"]],
  15876. function(o, y, N, _) {
  15877. var U = _.addEvent;
  15878. return _ = function() {
  15879. function G(V) {
  15880. this.chart = V, this.isOpen = !1, V = V.renderTo, this.browserProps || (typeof V.requestFullscreen == "function" ? this.browserProps = { fullscreenChange: "fullscreenchange", requestFullscreen: "requestFullscreen", exitFullscreen: "exitFullscreen" } : V.mozRequestFullScreen ? this.browserProps = { fullscreenChange: "mozfullscreenchange", requestFullscreen: "mozRequestFullScreen", exitFullscreen: "mozCancelFullScreen" } : V.webkitRequestFullScreen ? this.browserProps = {
  15881. fullscreenChange: "webkitfullscreenchange",
  15882. requestFullscreen: "webkitRequestFullScreen",
  15883. exitFullscreen: "webkitExitFullscreen"
  15884. } : V.msRequestFullscreen && (this.browserProps = { fullscreenChange: "MSFullscreenChange", requestFullscreen: "msRequestFullscreen", exitFullscreen: "msExitFullscreen" }));
  15885. }
  15886. return G.prototype.close = function() {
  15887. var V = this.chart, F = V.options.chart;
  15888. this.isOpen && this.browserProps && V.container.ownerDocument instanceof Document && V.container.ownerDocument[this.browserProps.exitFullscreen](), this.unbindFullscreenEvent && (this.unbindFullscreenEvent = this.unbindFullscreenEvent()), V.setSize(this.origWidth, this.origHeight, !1), this.origHeight = this.origWidth = void 0, F.width = this.origWidthOption, F.height = this.origHeightOption, this.origHeightOption = this.origWidthOption = void 0, this.isOpen = !1, this.setButtonText();
  15889. }, G.prototype.open = function() {
  15890. var V = this, F = V.chart, B = F.options.chart;
  15891. if (B && (V.origWidthOption = B.width, V.origHeightOption = B.height), V.origWidth = F.chartWidth, V.origHeight = F.chartHeight, V.browserProps) {
  15892. var j = U(
  15893. F.container.ownerDocument,
  15894. V.browserProps.fullscreenChange,
  15895. function() {
  15896. V.isOpen ? (V.isOpen = !1, V.close()) : (F.setSize(null, null, !1), V.isOpen = !0, V.setButtonText());
  15897. }
  15898. ), w = U(F, "destroy", j);
  15899. V.unbindFullscreenEvent = function() {
  15900. j(), w();
  15901. }, (B = F.renderTo[V.browserProps.requestFullscreen]()) && B.catch(function() {
  15902. alert("Full screen is not supported inside a frame.");
  15903. });
  15904. }
  15905. }, G.prototype.setButtonText = function() {
  15906. var V = this.chart, F = V.exportDivElements, B = V.options.exporting, j = B && B.buttons && B.buttons.contextButton.menuItems;
  15907. V = V.options.lang, B && B.menuItemDefinitions && V && V.exitFullscreen && V.viewFullscreen && j && F && (F = F[j.indexOf("viewFullscreen")]) && N.setElementHTML(F, this.isOpen ? V.exitFullscreen : B.menuItemDefinitions.viewFullscreen.text || V.viewFullscreen);
  15908. }, G.prototype.toggle = function() {
  15909. this.isOpen ? this.close() : this.open();
  15910. }, G;
  15911. }(), y.Fullscreen = _, U(o, "beforeRender", function() {
  15912. this.fullscreen = new y.Fullscreen(this);
  15913. }), y.Fullscreen;
  15914. }
  15915. ), C(d, "Core/Chart/ChartNavigationComposition.js", [], function() {
  15916. var o;
  15917. return function(y) {
  15918. y.compose = function(_) {
  15919. return _.navigation || (_.navigation = new N(_)), _;
  15920. };
  15921. var N = function() {
  15922. function _(U) {
  15923. this.updates = [], this.chart = U;
  15924. }
  15925. return _.prototype.addUpdate = function(U) {
  15926. this.chart.navigation.updates.push(U);
  15927. }, _.prototype.update = function(U, G) {
  15928. var V = this;
  15929. this.updates.forEach(function(F) {
  15930. F.call(V.chart, U, G);
  15931. });
  15932. }, _;
  15933. }();
  15934. y.Additions = N;
  15935. }(o || (o = {})), o;
  15936. }), C(d, "Extensions/Exporting/ExportingDefaults.js", [d["Core/Globals.js"]], function(o) {
  15937. return { exporting: { type: "image/png", url: "https://export.highcharts.com/", printMaxWidth: 780, scale: 2, buttons: { contextButton: {
  15938. className: "highcharts-contextbutton",
  15939. menuClassName: "highcharts-contextmenu",
  15940. symbol: "menu",
  15941. titleKey: "contextButtonTitle",
  15942. menuItems: "viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")
  15943. } }, menuItemDefinitions: { viewFullscreen: { textKey: "viewFullscreen", onclick: function() {
  15944. this.fullscreen.toggle();
  15945. } }, printChart: { textKey: "printChart", onclick: function() {
  15946. this.print();
  15947. } }, separator: { separator: !0 }, downloadPNG: { textKey: "downloadPNG", onclick: function() {
  15948. this.exportChart();
  15949. } }, downloadJPEG: {
  15950. textKey: "downloadJPEG",
  15951. onclick: function() {
  15952. this.exportChart({ type: "image/jpeg" });
  15953. }
  15954. }, downloadPDF: { textKey: "downloadPDF", onclick: function() {
  15955. this.exportChart({ type: "application/pdf" });
  15956. } }, downloadSVG: { textKey: "downloadSVG", onclick: function() {
  15957. this.exportChart({ type: "image/svg+xml" });
  15958. } } } }, lang: {
  15959. viewFullscreen: "View in full screen",
  15960. exitFullscreen: "Exit from full screen",
  15961. printChart: "Print chart",
  15962. downloadPNG: "Download PNG image",
  15963. downloadJPEG: "Download JPEG image",
  15964. downloadPDF: "Download PDF document",
  15965. downloadSVG: "Download SVG vector image",
  15966. contextButtonTitle: "Chart context menu"
  15967. }, navigation: { buttonOptions: { symbolSize: 14, symbolX: 12.5, symbolY: 10.5, align: "right", buttonSpacing: 3, height: 22, verticalAlign: "top", width: 24, symbolFill: "#666666", symbolStroke: "#666666", symbolStrokeWidth: 3, theme: { padding: 5 } }, menuStyle: { border: "1px solid #999999", background: "#ffffff", padding: "5px 0" }, menuItemStyle: { padding: "0.5em 1em", color: "#333333", background: "none", fontSize: o.isTouchDevice ? "14px" : "11px", transition: "background 250ms, color 250ms" }, menuItemHoverStyle: {
  15968. background: "#335cad",
  15969. color: "#ffffff"
  15970. } } };
  15971. }), C(d, "Extensions/Exporting/ExportingSymbols.js", [], function() {
  15972. var o;
  15973. return function(y) {
  15974. function N(G, V, F, B) {
  15975. return [["M", G, V + 2.5], ["L", G + F, V + 2.5], ["M", G, V + B / 2 + 0.5], ["L", G + F, V + B / 2 + 0.5], ["M", G, V + B - 1.5], ["L", G + F, V + B - 1.5]];
  15976. }
  15977. function _(G, V, F, B) {
  15978. return G = B / 3 - 2, B = [], B = B.concat(this.circle(F - G, V, G, G), this.circle(F - G, V + G + 4, G, G), this.circle(F - G, V + 2 * (G + 4), G, G));
  15979. }
  15980. var U = [];
  15981. y.compose = function(G) {
  15982. U.indexOf(G) === -1 && (U.push(G), G = G.prototype.symbols, G.menu = N, G.menuball = _.bind(G));
  15983. };
  15984. }(o || (o = {})), o;
  15985. }), C(d, "Core/HttpUtilities.js", [d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y) {
  15986. var N = o.doc, _ = y.createElement, U = y.discardElement, G = y.merge, V = y.objectEach, F = { ajax: function(B) {
  15987. var j = G(!0, { url: !1, type: "get", dataType: "json", success: !1, error: !1, data: !1, headers: {} }, B);
  15988. B = { json: "application/json", xml: "application/xml", text: "text/plain", octet: "application/octet-stream" };
  15989. var w = new XMLHttpRequest();
  15990. if (!j.url)
  15991. return !1;
  15992. w.open(j.type.toUpperCase(), j.url, !0), j.headers["Content-Type"] || w.setRequestHeader(
  15993. "Content-Type",
  15994. B[j.dataType] || B.text
  15995. ), V(j.headers, function(x, f) {
  15996. w.setRequestHeader(f, x);
  15997. }), w.onreadystatechange = function() {
  15998. if (w.readyState === 4) {
  15999. if (w.status === 200) {
  16000. var x = w.responseText;
  16001. if (j.dataType === "json")
  16002. try {
  16003. x = JSON.parse(x);
  16004. } catch (f) {
  16005. j.error && j.error(w, f);
  16006. return;
  16007. }
  16008. return j.success && j.success(x);
  16009. }
  16010. j.error && j.error(w, w.responseText);
  16011. }
  16012. };
  16013. try {
  16014. j.data = JSON.stringify(j.data);
  16015. } catch {
  16016. }
  16017. w.send(j.data || !0);
  16018. }, getJSON: function(B, j) {
  16019. F.ajax({ url: B, success: j, dataType: "json", headers: { "Content-Type": "text/plain" } });
  16020. }, post: function(B, j, w) {
  16021. var x = _("form", G({ method: "post", action: B, enctype: "multipart/form-data" }, w), { display: "none" }, N.body);
  16022. V(j, function(f, l) {
  16023. _("input", { type: "hidden", name: l, value: f }, null, x);
  16024. }), x.submit(), U(x);
  16025. } };
  16026. return F;
  16027. }), C(d, "Extensions/Exporting/Exporting.js", [
  16028. d["Core/Renderer/HTML/AST.js"],
  16029. d["Core/Chart/Chart.js"],
  16030. d["Core/Chart/ChartNavigationComposition.js"],
  16031. d["Core/DefaultOptions.js"],
  16032. d["Extensions/Exporting/ExportingDefaults.js"],
  16033. d["Extensions/Exporting/ExportingSymbols.js"],
  16034. d["Core/Globals.js"],
  16035. d["Core/HttpUtilities.js"],
  16036. d["Core/Utilities.js"]
  16037. ], function(o, y, N, _, U, G, V, F, B) {
  16038. y = _.defaultOptions;
  16039. var j = V.doc, w = V.win, x = B.addEvent, f = B.css, l = B.createElement, T = B.discardElement, O = B.extend, R = B.find, k = B.fireEvent, b = B.isObject, S = B.merge, v = B.objectEach, h = B.pick, c = B.removeEvent, u = B.uniqueKey, i;
  16040. return function(p) {
  16041. function a(nt) {
  16042. var rt = this, ct = rt.renderer, gt = S(rt.options.navigation.buttonOptions, nt), dt = gt.onclick, ht = gt.menuItems, at = gt.symbolSize || 12;
  16043. if (rt.btnCount || (rt.btnCount = 0), rt.exportDivElements || (rt.exportDivElements = [], rt.exportSVGElements = []), gt.enabled !== !1 && gt.theme) {
  16044. var J = gt.theme, tt = J.states, ot = tt && tt.hover;
  16045. tt = tt && tt.select;
  16046. var lt;
  16047. rt.styledMode || (J.fill = h(J.fill, "#ffffff"), J.stroke = h(J.stroke, "none")), delete J.states, dt ? lt = function(vt) {
  16048. vt && vt.stopPropagation(), dt.call(rt, vt);
  16049. } : ht && (lt = function(vt) {
  16050. vt && vt.stopPropagation(), rt.contextMenu(pt.menuClassName, ht, pt.translateX, pt.translateY, pt.width, pt.height, pt), pt.setState(2);
  16051. }), gt.text && gt.symbol ? J.paddingLeft = h(J.paddingLeft, 30) : gt.text || O(J, { width: gt.width, height: gt.height, padding: 0 }), rt.styledMode || (J["stroke-linecap"] = "round", J.fill = h(J.fill, "#ffffff"), J.stroke = h(J.stroke, "none"));
  16052. var pt = ct.button(gt.text, 0, 0, lt, J, ot, tt).addClass(nt.className).attr({ title: h(rt.options.lang[gt._titleKey || gt.titleKey], "") });
  16053. if (pt.menuClassName = nt.menuClassName || "highcharts-menu-" + rt.btnCount++, gt.symbol) {
  16054. var yt = ct.symbol(gt.symbol, gt.symbolX - at / 2, gt.symbolY - at / 2, at, at, { width: at, height: at }).addClass("highcharts-button-symbol").attr({ zIndex: 1 }).add(pt);
  16055. rt.styledMode || yt.attr({ stroke: gt.symbolStroke, fill: gt.symbolFill, "stroke-width": gt.symbolStrokeWidth || 1 });
  16056. }
  16057. pt.add(rt.exportingGroup).align(O(
  16058. gt,
  16059. { width: pt.width, x: h(gt.x, rt.buttonOffset) }
  16060. ), !0, "spacingBox"), rt.buttonOffset += (pt.width + gt.buttonSpacing) * (gt.align === "right" ? -1 : 1), rt.exportSVGElements.push(pt, yt);
  16061. }
  16062. }
  16063. function t() {
  16064. if (this.printReverseInfo) {
  16065. var nt = this.printReverseInfo, rt = nt.childNodes, ct = nt.origDisplay;
  16066. nt = nt.resetParams, this.moveContainers(this.renderTo), [].forEach.call(rt, function(gt, dt) {
  16067. gt.nodeType === 1 && (gt.style.display = ct[dt] || "");
  16068. }), this.isPrinting = !1, nt && this.setSize.apply(this, nt), delete this.printReverseInfo, et = void 0, k(this, "afterPrint");
  16069. }
  16070. }
  16071. function s() {
  16072. var nt = j.body, rt = this.options.exporting.printMaxWidth, ct = { childNodes: nt.childNodes, origDisplay: [], resetParams: void 0 };
  16073. this.isPrinting = !0, this.pointer.reset(null, 0), k(this, "beforePrint"), rt && this.chartWidth > rt && (ct.resetParams = [this.options.chart.width, void 0, !1], this.setSize(rt, void 0, !1)), [].forEach.call(ct.childNodes, function(gt, dt) {
  16074. gt.nodeType === 1 && (ct.origDisplay[dt] = gt.style.display, gt.style.display = "none");
  16075. }), this.moveContainers(nt), this.printReverseInfo = ct;
  16076. }
  16077. function n(nt) {
  16078. nt.renderExporting(), x(nt, "redraw", nt.renderExporting), x(nt, "destroy", nt.destroyExport);
  16079. }
  16080. function P(nt, rt, ct, gt, dt, ht, at) {
  16081. var J = this, tt = J.options.navigation, ot = J.chartWidth, lt = J.chartHeight, pt = "cache-" + nt, yt = Math.max(dt, ht), vt = J[pt];
  16082. if (!vt) {
  16083. J.exportContextMenu = J[pt] = vt = l("div", { className: nt }, { position: "absolute", zIndex: 1e3, padding: yt + "px", pointerEvents: "auto" }, J.fixedDiv || J.container);
  16084. var Ct = l("ul", { className: "highcharts-menu" }, { listStyle: "none", margin: 0, padding: 0 }, vt);
  16085. J.styledMode || f(Ct, O(
  16086. { MozBoxShadow: "3px 3px 10px #888", WebkitBoxShadow: "3px 3px 10px #888", boxShadow: "3px 3px 10px #888" },
  16087. tt.menuStyle
  16088. )), vt.hideMenu = function() {
  16089. f(vt, { display: "none" }), at && at.setState(0), J.openMenu = !1, f(J.renderTo, { overflow: "hidden" }), f(J.container, { overflow: "hidden" }), B.clearTimeout(vt.hideTimer), k(J, "exportMenuHidden");
  16090. }, J.exportEvents.push(x(vt, "mouseleave", function() {
  16091. vt.hideTimer = w.setTimeout(vt.hideMenu, 500);
  16092. }), x(vt, "mouseenter", function() {
  16093. B.clearTimeout(vt.hideTimer);
  16094. }), x(j, "mouseup", function(Pt) {
  16095. J.pointer.inClass(Pt.target, nt) || vt.hideMenu();
  16096. }), x(vt, "click", function() {
  16097. J.openMenu && vt.hideMenu();
  16098. })), rt.forEach(function(Pt) {
  16099. if (typeof Pt == "string" && (Pt = J.options.exporting.menuItemDefinitions[Pt]), b(Pt, !0)) {
  16100. var At = void 0;
  16101. Pt.separator ? At = l("hr", void 0, void 0, Ct) : (Pt.textKey === "viewData" && J.isDataTableVisible && (Pt.textKey = "hideData"), At = l("li", { className: "highcharts-menu-item", onclick: function(St) {
  16102. St && St.stopPropagation(), vt.hideMenu(), Pt.onclick && Pt.onclick.apply(J, arguments);
  16103. } }, void 0, Ct), o.setElementHTML(At, Pt.text || J.options.lang[Pt.textKey]), J.styledMode || (At.onmouseover = function() {
  16104. f(this, tt.menuItemHoverStyle);
  16105. }, At.onmouseout = function() {
  16106. f(this, tt.menuItemStyle);
  16107. }, f(At, O({ cursor: "pointer" }, tt.menuItemStyle)))), J.exportDivElements.push(At);
  16108. }
  16109. }), J.exportDivElements.push(Ct, vt), J.exportMenuWidth = vt.offsetWidth, J.exportMenuHeight = vt.offsetHeight;
  16110. }
  16111. rt = { display: "block" }, ct + J.exportMenuWidth > ot ? rt.right = ot - ct - dt - yt + "px" : rt.left = ct - yt + "px", gt + ht + J.exportMenuHeight > lt && at.alignOptions.verticalAlign !== "top" ? rt.bottom = lt - gt - yt + "px" : rt.top = gt + ht - yt + "px", f(vt, rt), f(J.renderTo, { overflow: "" }), f(J.container, { overflow: "" }), J.openMenu = !0, k(J, "exportMenuShown");
  16112. }
  16113. function D(nt) {
  16114. var rt = nt ? nt.target : this, ct = rt.exportSVGElements, gt = rt.exportDivElements;
  16115. nt = rt.exportEvents;
  16116. var dt;
  16117. ct && (ct.forEach(function(ht, at) {
  16118. ht && (ht.onclick = ht.ontouchstart = null, dt = "cache-" + ht.menuClassName, rt[dt] && delete rt[dt], ct[at] = ht.destroy());
  16119. }), ct.length = 0), rt.exportingGroup && (rt.exportingGroup.destroy(), delete rt.exportingGroup), gt && (gt.forEach(function(ht, at) {
  16120. ht && (B.clearTimeout(ht.hideTimer), c(ht, "mouseleave"), gt[at] = ht.onmouseout = ht.onmouseover = ht.ontouchstart = ht.onclick = null, T(ht));
  16121. }), gt.length = 0), nt && (nt.forEach(function(ht) {
  16122. ht();
  16123. }), nt.length = 0);
  16124. }
  16125. function I(nt, rt) {
  16126. rt = this.getSVGForExport(nt, rt), nt = S(this.options.exporting, nt), F.post(nt.url, { filename: nt.filename ? nt.filename.replace(/\//g, "-") : this.getFilename(), type: nt.type, width: nt.width || 0, scale: nt.scale, svg: rt }, nt.formAttributes);
  16127. }
  16128. function W() {
  16129. return this.styledMode && this.inlineStyles(), this.container.innerHTML;
  16130. }
  16131. function E() {
  16132. var nt = this.userOptions.title && this.userOptions.title.text, rt = this.options.exporting.filename;
  16133. return rt ? rt.replace(/\//g, "-") : (typeof nt == "string" && (rt = nt.toLowerCase().replace(/<\/?[^>]+(>|$)/g, "").replace(/[\s_]+/g, "-").replace(
  16134. /[^a-z0-9\-]/g,
  16135. ""
  16136. ).replace(/^[\-]+/g, "").replace(/[\-]+/g, "-").substr(0, 24).replace(/[\-]+$/g, "")), (!rt || 5 > rt.length) && (rt = "chart"), rt);
  16137. }
  16138. function X(nt) {
  16139. var rt, ct = S(this.options, nt);
  16140. ct.plotOptions = S(this.userOptions.plotOptions, nt && nt.plotOptions), ct.time = S(this.userOptions.time, nt && nt.time);
  16141. var gt = l("div", null, { position: "absolute", top: "-9999em", width: this.chartWidth + "px", height: this.chartHeight + "px" }, j.body), dt = this.renderTo.style.width, ht = this.renderTo.style.height;
  16142. dt = ct.exporting.sourceWidth || ct.chart.width || /px$/.test(dt) && parseInt(dt, 10) || (ct.isGantt ? 800 : 600), ht = ct.exporting.sourceHeight || ct.chart.height || /px$/.test(ht) && parseInt(ht, 10) || 400, O(ct.chart, { animation: !1, renderTo: gt, forExport: !0, renderer: "SVGRenderer", width: dt, height: ht }), ct.exporting.enabled = !1, delete ct.data, ct.series = [], this.series.forEach(function(tt) {
  16143. rt = S(tt.userOptions, { animation: !1, enableMouseTracking: !1, showCheckbox: !1, visible: tt.visible }), rt.isInternal || ct.series.push(rt);
  16144. });
  16145. var at = {};
  16146. this.axes.forEach(function(tt) {
  16147. tt.userOptions.internalKey || (tt.userOptions.internalKey = u()), tt.options.isInternal || (at[tt.coll] || (at[tt.coll] = !0, ct[tt.coll] = []), ct[tt.coll].push(S(tt.userOptions, { visible: tt.visible })));
  16148. });
  16149. var J = new this.constructor(ct, this.callback);
  16150. return nt && ["xAxis", "yAxis", "series"].forEach(function(tt) {
  16151. var ot = {};
  16152. nt[tt] && (ot[tt] = nt[tt], J.update(ot));
  16153. }), this.axes.forEach(function(tt) {
  16154. var ot = R(J.axes, function(yt) {
  16155. return yt.options.internalKey === tt.userOptions.internalKey;
  16156. }), lt = tt.getExtremes(), pt = lt.userMin;
  16157. lt = lt.userMax, ot && (typeof pt < "u" && pt !== ot.min || typeof lt < "u" && lt !== ot.max) && ot.setExtremes(
  16158. pt,
  16159. lt,
  16160. !0,
  16161. !1
  16162. );
  16163. }), ht = J.getChartHTML(), k(this, "getSVG", { chartCopy: J }), ht = this.sanitizeSVG(ht, ct), ct = null, J.destroy(), T(gt), ht;
  16164. }
  16165. function g(nt, rt) {
  16166. var ct = this.options.exporting;
  16167. return this.getSVG(S({ chart: { borderRadius: 0 } }, ct.chartOptions, rt, { exporting: { sourceWidth: nt && nt.sourceWidth || ct.sourceWidth, sourceHeight: nt && nt.sourceHeight || ct.sourceHeight } }));
  16168. }
  16169. function m(nt) {
  16170. return nt.replace(/([A-Z])/g, function(rt, ct) {
  16171. return "-" + ct.toLowerCase();
  16172. });
  16173. }
  16174. function L() {
  16175. function nt(J) {
  16176. function tt(St, Dt) {
  16177. if (lt = pt = !1, ct.length) {
  16178. for (yt = ct.length; yt-- && !pt; )
  16179. pt = ct[yt].test(Dt);
  16180. lt = !pt;
  16181. }
  16182. for (Dt === "transform" && St === "none" && (lt = !0), yt = rt.length; yt-- && !lt; )
  16183. lt = rt[yt].test(Dt) || typeof St == "function";
  16184. lt || Ct[Dt] === St && J.nodeName !== "svg" || gt[J.nodeName][Dt] === St || (q && q.indexOf(Dt) === -1 ? ot += m(Dt) + ":" + St + ";" : St && J.setAttribute(m(Dt), St));
  16185. }
  16186. var ot = "", lt, pt, yt;
  16187. if (J.nodeType === 1 && it.indexOf(J.nodeName) === -1) {
  16188. var vt = w.getComputedStyle(J, null), Ct = J.nodeName === "svg" ? {} : w.getComputedStyle(J.parentNode, null);
  16189. if (!gt[J.nodeName]) {
  16190. dt = at.getElementsByTagName("svg")[0];
  16191. var Pt = at.createElementNS(J.namespaceURI, J.nodeName);
  16192. dt.appendChild(Pt), gt[J.nodeName] = S(w.getComputedStyle(Pt, null)), J.nodeName === "text" && delete gt.text.fill, dt.removeChild(Pt);
  16193. }
  16194. if (V.isFirefox || V.isMS)
  16195. for (var At in vt)
  16196. tt(vt[At], At);
  16197. else
  16198. v(vt, tt);
  16199. ot && (vt = J.getAttribute("style"), J.setAttribute("style", (vt ? vt + ";" : "") + ot)), J.nodeName === "svg" && J.setAttribute("stroke-width", "1px"), J.nodeName !== "text" && [].forEach.call(J.children || J.childNodes, nt);
  16200. }
  16201. }
  16202. var rt = Z, ct = p.inlineWhitelist, gt = {}, dt, ht = j.createElement("iframe");
  16203. f(ht, { width: "1px", height: "1px", visibility: "hidden" }), j.body.appendChild(ht);
  16204. var at = ht.contentWindow.document;
  16205. at.open(), at.write('<svg xmlns="http://www.w3.org/2000/svg"></svg>'), at.close(), nt(this.container.querySelector("svg")), dt.parentNode.removeChild(dt), ht.parentNode.removeChild(ht);
  16206. }
  16207. function z(nt) {
  16208. (this.fixedDiv ? [this.fixedDiv, this.scrollingContainer] : [this.container]).forEach(function(rt) {
  16209. nt.appendChild(rt);
  16210. });
  16211. }
  16212. function $() {
  16213. var nt = this;
  16214. nt.exporting = { update: function(rt, ct) {
  16215. nt.isDirtyExporting = !0, S(!0, nt.options.exporting, rt), h(ct, !0) && nt.redraw();
  16216. } }, N.compose(nt).navigation.addUpdate(function(rt, ct) {
  16217. nt.isDirtyExporting = !0, S(!0, nt.options.navigation, rt), h(ct, !0) && nt.redraw();
  16218. });
  16219. }
  16220. function Q() {
  16221. var nt = this;
  16222. nt.isPrinting || (et = nt, V.isSafari || nt.beforePrint(), setTimeout(function() {
  16223. w.focus(), w.print(), V.isSafari || setTimeout(function() {
  16224. nt.afterPrint();
  16225. }, 1e3);
  16226. }, 1));
  16227. }
  16228. function A() {
  16229. var nt = this, rt = nt.options.exporting, ct = rt.buttons, gt = nt.isDirtyExporting || !nt.exportSVGElements;
  16230. nt.buttonOffset = 0, nt.isDirtyExporting && nt.destroyExport(), gt && rt.enabled !== !1 && (nt.exportEvents = [], nt.exportingGroup = nt.exportingGroup || nt.renderer.g("exporting-group").attr({ zIndex: 3 }).add(), v(ct, function(dt) {
  16231. nt.addButton(dt);
  16232. }), nt.isDirtyExporting = !1);
  16233. }
  16234. function H(nt, rt) {
  16235. var ct = nt.indexOf("</svg>") + 6, gt = nt.substr(ct);
  16236. return nt = nt.substr(0, ct), rt && rt.exporting && rt.exporting.allowHTML && gt && (gt = '<foreignObject x="0" y="0" width="' + rt.chart.width + '" height="' + rt.chart.height + '"><body xmlns="http://www.w3.org/1999/xhtml">' + gt.replace(/(<(?:img|br).*?(?=>))>/g, "$1 />") + "</body></foreignObject>", nt = nt.replace("</svg>", gt + "</svg>")), nt = nt.replace(/zIndex="[^"]+"/g, "").replace(/symbolName="[^"]+"/g, "").replace(
  16237. /jQuery[0-9]+="[^"]+"/g,
  16238. ""
  16239. ).replace(/url\(("|&quot;)(.*?)("|&quot;);?\)/g, "url($2)").replace(/url\([^#]+#/g, "url(#").replace(/<svg /, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (|NS[0-9]+:)href=/g, " xlink:href=").replace(/\n/, " ").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g, '$1="rgb($2)" $1-opacity="$3"').replace(/&nbsp;/g, " ").replace(/&shy;/g, "­"), this.ieSanitizeSVG && (nt = this.ieSanitizeSVG(nt)), nt;
  16240. }
  16241. var Y = [], Z = [
  16242. /-/,
  16243. /^(clipPath|cssText|d|height|width)$/,
  16244. /^font$/,
  16245. /[lL]ogical(Width|Height)$/,
  16246. /perspective/,
  16247. /TapHighlightColor/,
  16248. /^transition/,
  16249. /^length$/
  16250. ], q = "fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");
  16251. p.inlineWhitelist = [];
  16252. var it = ["clipPath", "defs", "desc"], et;
  16253. p.compose = function(nt, rt) {
  16254. G.compose(rt), Y.indexOf(nt) === -1 && (Y.push(nt), rt = nt.prototype, rt.afterPrint = t, rt.exportChart = I, rt.inlineStyles = L, rt.print = Q, rt.sanitizeSVG = H, rt.getChartHTML = W, rt.getSVG = X, rt.getSVGForExport = g, rt.getFilename = E, rt.moveContainers = z, rt.beforePrint = s, rt.contextMenu = P, rt.addButton = a, rt.destroyExport = D, rt.renderExporting = A, rt.callbacks.push(n), x(nt, "init", $), V.isSafari && V.win.matchMedia("print").addListener(function(ct) {
  16255. et && (ct.matches ? et.beforePrint() : et.afterPrint());
  16256. }));
  16257. };
  16258. }(i || (i = {})), y.exporting = S(U.exporting, y.exporting), y.lang = S(U.lang, y.lang), y.navigation = S(U.navigation, y.navigation), i;
  16259. }), C(d, "masters/modules/exporting.src.js", [d["Core/Globals.js"], d["Extensions/Exporting/Exporting.js"], d["Core/HttpUtilities.js"]], function(o, y, N) {
  16260. o.HttpUtilities = N, o.ajax = N.ajax, o.getJSON = N.getJSON, o.post = N.post, y.compose(o.Chart, o.Renderer);
  16261. });
  16262. });
  16263. })(nu);
  16264. var K0 = nu.exports;
  16265. const J0 = /* @__PURE__ */ Mn(K0);
  16266. var su = { exports: {} };
  16267. (function(r) {
  16268. (function(d) {
  16269. r.exports ? (d.default = d, r.exports = d) : d(typeof Highcharts < "u" ? Highcharts : void 0);
  16270. })(function(d) {
  16271. function C(o, y, N, _) {
  16272. o.hasOwnProperty(y) || (o[y] = _.apply(null, N));
  16273. }
  16274. d = d ? d._modules : {}, C(d, "Extensions/Boost/Boostables.js", [], function() {
  16275. return "area arearange column columnrange bar line scatter heatmap bubble treemap".split(" ");
  16276. }), C(d, "Extensions/Boost/BoostableMap.js", [d["Extensions/Boost/Boostables.js"]], function(o) {
  16277. var y = {};
  16278. return o.forEach(function(N) {
  16279. y[N] = 1;
  16280. }), y;
  16281. }), C(d, "Extensions/Boost/WGLShader.js", [d["Core/Utilities.js"]], function(o) {
  16282. var y = o.clamp, N = o.error, _ = o.pick;
  16283. return function(U) {
  16284. function G() {
  16285. v.length && N("[highcharts boost] shader error - " + v.join(`
  16286. `));
  16287. }
  16288. function V(c, u) {
  16289. var i = U.createShader(u === "vertex" ? U.VERTEX_SHADER : U.FRAGMENT_SHADER);
  16290. return U.shaderSource(i, c), U.compileShader(i), U.getShaderParameter(i, U.COMPILE_STATUS) ? i : (v.push("when compiling " + u + ` shader:
  16291. ` + U.getShaderInfoLog(i)), !1);
  16292. }
  16293. function F() {
  16294. function c(p) {
  16295. return U.getUniformLocation(w, p);
  16296. }
  16297. var u = V(
  16298. `#version 100
  16299. #define LN10 2.302585092994046
  16300. precision highp float;
  16301. attribute vec4 aVertexPosition;
  16302. attribute vec4 aColor;
  16303. varying highp vec2 position;
  16304. varying highp vec4 vColor;
  16305. uniform mat4 uPMatrix;
  16306. uniform float pSize;
  16307. uniform float translatedThreshold;
  16308. uniform bool hasThreshold;
  16309. uniform bool skipTranslation;
  16310. uniform float xAxisTrans;
  16311. uniform float xAxisMin;
  16312. uniform float xAxisMinPad;
  16313. uniform float xAxisPointRange;
  16314. uniform float xAxisLen;
  16315. uniform bool xAxisPostTranslate;
  16316. uniform float xAxisOrdinalSlope;
  16317. uniform float xAxisOrdinalOffset;
  16318. uniform float xAxisPos;
  16319. uniform bool xAxisCVSCoord;
  16320. uniform bool xAxisIsLog;
  16321. uniform bool xAxisReversed;
  16322. uniform float yAxisTrans;
  16323. uniform float yAxisMin;
  16324. uniform float yAxisMinPad;
  16325. uniform float yAxisPointRange;
  16326. uniform float yAxisLen;
  16327. uniform bool yAxisPostTranslate;
  16328. uniform float yAxisOrdinalSlope;
  16329. uniform float yAxisOrdinalOffset;
  16330. uniform float yAxisPos;
  16331. uniform bool yAxisCVSCoord;
  16332. uniform bool yAxisIsLog;
  16333. uniform bool yAxisReversed;
  16334. uniform bool isBubble;
  16335. uniform bool bubbleSizeByArea;
  16336. uniform float bubbleZMin;
  16337. uniform float bubbleZMax;
  16338. uniform float bubbleZThreshold;
  16339. uniform float bubbleMinSize;
  16340. uniform float bubbleMaxSize;
  16341. uniform bool bubbleSizeAbs;
  16342. uniform bool isInverted;
  16343. float bubbleRadius(){
  16344. float value = aVertexPosition.w;
  16345. float zMax = bubbleZMax;
  16346. float zMin = bubbleZMin;
  16347. float radius = 0.0;
  16348. float pos = 0.0;
  16349. float zRange = zMax - zMin;
  16350. if (bubbleSizeAbs){
  16351. value = value - bubbleZThreshold;
  16352. zMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);
  16353. zMin = 0.0;
  16354. }
  16355. if (value < zMin){
  16356. radius = bubbleZMin / 2.0 - 1.0;
  16357. } else {
  16358. pos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;
  16359. if (bubbleSizeByArea && pos > 0.0){
  16360. pos = sqrt(pos);
  16361. }
  16362. radius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;
  16363. }
  16364. return radius * 2.0;
  16365. }
  16366. float translate(float val,
  16367. float pointPlacement,
  16368. float localA,
  16369. float localMin,
  16370. float minPixelPadding,
  16371. float pointRange,
  16372. float len,
  16373. bool cvsCoord,
  16374. bool isLog,
  16375. bool reversed
  16376. ){
  16377. float sign = 1.0;
  16378. float cvsOffset = 0.0;
  16379. if (cvsCoord) {
  16380. sign *= -1.0;
  16381. cvsOffset = len;
  16382. }
  16383. if (isLog) {
  16384. val = log(val) / LN10;
  16385. }
  16386. if (reversed) {
  16387. sign *= -1.0;
  16388. cvsOffset -= sign * len;
  16389. }
  16390. return sign * (val - localMin) * localA + cvsOffset +
  16391. (sign * minPixelPadding);
  16392. }
  16393. float xToPixels(float value) {
  16394. if (skipTranslation){
  16395. return value;// + xAxisPos;
  16396. }
  16397. return translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;
  16398. }
  16399. float yToPixels(float value, float checkTreshold) {
  16400. float v;
  16401. if (skipTranslation){
  16402. v = value;// + yAxisPos;
  16403. } else {
  16404. v = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;
  16405. if (v > yAxisLen) {
  16406. v = yAxisLen;
  16407. }
  16408. }
  16409. if (checkTreshold > 0.0 && hasThreshold) {
  16410. v = min(v, translatedThreshold);
  16411. }
  16412. return v;
  16413. }
  16414. void main(void) {
  16415. if (isBubble){
  16416. gl_PointSize = bubbleRadius();
  16417. } else {
  16418. gl_PointSize = pSize;
  16419. }
  16420. vColor = aColor;
  16421. if (skipTranslation && isInverted) {
  16422. gl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);
  16423. } else if (isInverted) {
  16424. gl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);
  16425. } else {
  16426. gl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);
  16427. }
  16428. }`,
  16429. "vertex"
  16430. ), i = V(`precision highp float;
  16431. uniform vec4 fillColor;
  16432. varying highp vec2 position;
  16433. varying highp vec4 vColor;
  16434. uniform sampler2D uSampler;
  16435. uniform bool isCircle;
  16436. uniform bool hasColor;
  16437. void main(void) {
  16438. vec4 col = fillColor;
  16439. vec4 tcol = texture2D(uSampler, gl_PointCoord.st);
  16440. if (hasColor) {
  16441. col = vColor;
  16442. }
  16443. if (isCircle) {
  16444. col *= tcol;
  16445. if (tcol.r < 0.0) {
  16446. discard;
  16447. } else {
  16448. gl_FragColor = col;
  16449. }
  16450. } else {
  16451. gl_FragColor = col;
  16452. }
  16453. }`, "fragment");
  16454. return !u || !i ? (w = !1, G(), !1) : (w = U.createProgram(), U.attachShader(w, u), U.attachShader(w, i), U.linkProgram(w), U.getProgramParameter(w, U.LINK_STATUS) ? (U.useProgram(w), U.bindAttribLocation(w, 0, "aVertexPosition"), x = c("uPMatrix"), f = c("pSize"), l = c("fillColor"), T = c("isBubble"), O = c("bubbleSizeAbs"), R = c("bubbleSizeByArea"), h = c("uSampler"), k = c("skipTranslation"), b = c("isCircle"), S = c("isInverted"), !0) : (v.push(U.getProgramInfoLog(w)), G(), w = !1));
  16455. }
  16456. function B(c, u) {
  16457. U && w && (c = j[c] = j[c] || U.getUniformLocation(w, c), U.uniform1f(c, u));
  16458. }
  16459. var j = {}, w, x, f, l, T, O, R, k, b, S, v = [], h;
  16460. return U && !F() ? !1 : { psUniform: function() {
  16461. return f;
  16462. }, pUniform: function() {
  16463. return x;
  16464. }, fillColorUniform: function() {
  16465. return l;
  16466. }, setBubbleUniforms: function(c, u, i) {
  16467. var p = c.options, a = Number.MAX_VALUE, t = -Number.MAX_VALUE;
  16468. if (U && w && c.is("bubble")) {
  16469. var s = c.getPxExtremes();
  16470. a = _(p.zMin, y(u, p.displayNegative === !1 ? p.zThreshold : -Number.MAX_VALUE, a)), t = _(p.zMax, Math.max(t, i)), U.uniform1i(T, 1), U.uniform1i(b, 1), U.uniform1i(R, c.options.sizeBy !== "width"), U.uniform1i(O, c.options.sizeByAbsoluteValue), B("bubbleZMin", a), B("bubbleZMax", t), B("bubbleZThreshold", c.options.zThreshold), B("bubbleMinSize", s.minPxSize), B("bubbleMaxSize", s.maxPxSize);
  16471. }
  16472. }, bind: function() {
  16473. U && w && U.useProgram(w);
  16474. }, program: function() {
  16475. return w;
  16476. }, create: F, setUniform: B, setPMatrix: function(c) {
  16477. U && w && U.uniformMatrix4fv(x, !1, c);
  16478. }, setColor: function(c) {
  16479. U && w && U.uniform4f(l, c[0] / 255, c[1] / 255, c[2] / 255, c[3]);
  16480. }, setPointSize: function(c) {
  16481. U && w && U.uniform1f(f, c);
  16482. }, setSkipTranslation: function(c) {
  16483. U && w && U.uniform1i(k, c === !0 ? 1 : 0);
  16484. }, setTexture: function(c) {
  16485. U && w && U.uniform1i(h, c);
  16486. }, setDrawAsCircle: function(c) {
  16487. U && w && U.uniform1i(b, c ? 1 : 0);
  16488. }, reset: function() {
  16489. U && w && (U.uniform1i(T, 0), U.uniform1i(b, 0));
  16490. }, setInverted: function(c) {
  16491. U && w && U.uniform1i(S, c);
  16492. }, destroy: function() {
  16493. U && w && (U.deleteProgram(w), w = !1);
  16494. } };
  16495. };
  16496. }), C(d, "Extensions/Boost/WGLVBuffer.js", [], function() {
  16497. return function(o, y, N) {
  16498. function _() {
  16499. U && (o.deleteBuffer(U), G = U = !1), B = 0, V = N || 2, j = [];
  16500. }
  16501. var U = !1, G = !1, V = N || 2, F = !1, B = 0, j;
  16502. return {
  16503. destroy: _,
  16504. bind: function() {
  16505. if (!U)
  16506. return !1;
  16507. o.vertexAttribPointer(G, V, o.FLOAT, !1, 0, 0);
  16508. },
  16509. data: j,
  16510. build: function(w, x, f) {
  16511. var l;
  16512. return j = w || [], j && j.length !== 0 || F ? (V = f || V, U && o.deleteBuffer(U), F || (l = new Float32Array(j)), U = o.createBuffer(), o.bindBuffer(o.ARRAY_BUFFER, U), o.bufferData(o.ARRAY_BUFFER, F || l, o.STATIC_DRAW), G = o.getAttribLocation(y.program(), x), o.enableVertexAttribArray(G), !0) : (_(), !1);
  16513. },
  16514. render: function(w, x, f) {
  16515. var l = F ? F.length : j.length;
  16516. return !U || !l || ((!w || w > l || 0 > w) && (w = 0), (!x || x > l) && (x = l), w >= x) ? !1 : (o.drawArrays(o[(f || "points").toUpperCase()], w / V, (x - w) / V), !0);
  16517. },
  16518. allocate: function(w) {
  16519. B = -1, F = new Float32Array(4 * w);
  16520. },
  16521. push: function(w, x, f, l) {
  16522. F && (F[++B] = w, F[++B] = x, F[++B] = f, F[++B] = l);
  16523. }
  16524. };
  16525. };
  16526. }), C(d, "Extensions/Boost/WGLRenderer.js", [d["Core/Color/Color.js"], d["Extensions/Boost/WGLShader.js"], d["Extensions/Boost/WGLVBuffer.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N, _, U) {
  16527. var G = o.parse, V = _.doc, F = U.isNumber, B = U.isObject, j = U.merge, w = U.objectEach, x = U.pick;
  16528. return function(f) {
  16529. function l(m) {
  16530. if (m.isSeriesBoosting) {
  16531. var L = !!m.options.stacking, z = m.xData || m.options.xData || m.processedXData;
  16532. return L = (L ? m.data : z || m.options.data).length, m.type === "treemap" ? L *= 12 : m.type === "heatmap" ? L *= 6 : E[m.type] && (L *= 2), L;
  16533. }
  16534. return 0;
  16535. }
  16536. function T() {
  16537. p.clear(p.COLOR_BUFFER_BIT | p.DEPTH_BUFFER_BIT);
  16538. }
  16539. function O(m, L) {
  16540. function z($t) {
  16541. $t && (L.colorData.push($t[0]), L.colorData.push($t[1]), L.colorData.push($t[2]), L.colorData.push($t[3]));
  16542. }
  16543. function $($t, de, ge, Re, De) {
  16544. z(De), g.usePreallocated ? (u.push($t, de, ge ? 1 : 0, Re || 1), i += 4) : (s.push($t), s.push(de), s.push(ge ? 1 : 0), s.push(Re || 1));
  16545. }
  16546. function Q() {
  16547. L.segments.length && (L.segments[L.segments.length - 1].to = s.length || i);
  16548. }
  16549. function A() {
  16550. L.segments.length && L.segments[L.segments.length - 1].from === (s.length || i) || (Q(), L.segments.push({ from: s.length || i }));
  16551. }
  16552. function H($t, de, ge, Re, De) {
  16553. z(De), $($t + ge, de), z(De), $($t, de), z(De), $($t, de + Re), z(De), $($t, de + Re), z(De), $($t + ge, de + Re), z(De), $($t + ge, de);
  16554. }
  16555. function Y($t, de) {
  16556. g.useGPUTranslations || (L.skipTranslation = !0, $t.x = lt.toPixels($t.x, !0), $t.y = ot.toPixels($t.y, !0)), de ? s = [$t.x, $t.y, 0, 2].concat(s) : $($t.x, $t.y, 0, 2);
  16557. }
  16558. var Z = m.pointArrayMap && m.pointArrayMap.join(",") === "low,high", q = m.chart, it = m.options, et = !!it.stacking, nt = it.data, rt = m.xAxis.getExtremes(), ct = rt.min, gt = rt.max;
  16559. rt = m.yAxis.getExtremes();
  16560. var dt = rt.min, ht = rt.max, at = m.xData || it.xData || m.processedXData, J = m.yData || it.yData || m.processedYData, tt = m.zData || it.zData || m.processedZData, ot = m.yAxis, lt = m.xAxis, pt = m.chart.plotWidth, yt = !at || at.length === 0, vt = it.connectNulls;
  16561. rt = m.points || !1;
  16562. var Ct = !1, Pt = !1, At, St, Dt = et ? m.data : at || nt, _t = { x: Number.MAX_VALUE, y: 0 }, Nt = { x: -Number.MAX_VALUE, y: 0 }, Ot = 0, Kt = !1, Gt, Wt, Jt, be, Yt = -1, Vt = !1, Me = !1, Or, us = typeof q.index > "u", En = !1, On = !1, $e = !1, Ln = E[m.type], _n = !1, Jr = !0, ds = !0, Go = it.zoneAxis || "y", Lr = it.zones || !1, Xi = !1, fs = it.threshold, Dn = !1;
  16563. if (!(it.boostData && 0 < it.boostData.length)) {
  16564. if (it.gapSize && (Dn = it.gapUnit !== "value" ? it.gapSize * m.closestPointRange : it.gapSize), Lr) {
  16565. var _r = [];
  16566. Lr.forEach(function($t, de) {
  16567. if ($t.color) {
  16568. var ge = G($t.color).rgba;
  16569. ge[0] /= 255, ge[1] /= 255, ge[2] /= 255, _r[de] = ge, Xi || typeof $t.value < "u" || (Xi = ge);
  16570. }
  16571. }), Xi || (at = m.pointAttribs && m.pointAttribs().fill || m.color, Xi = G(at).rgba, Xi[0] /= 255, Xi[1] /= 255, Xi[2] /= 255);
  16572. }
  16573. if (q.inverted && (pt = m.chart.plotHeight), m.closestPointRangePx = Number.MAX_VALUE, A(), rt && 0 < rt.length)
  16574. L.skipTranslation = !0, L.drawMode = "triangles", rt[0].node && rt[0].node.levelDynamic && rt.sort(function($t, de) {
  16575. if ($t.node) {
  16576. if ($t.node.levelDynamic > de.node.levelDynamic)
  16577. return 1;
  16578. if ($t.node.levelDynamic < de.node.levelDynamic)
  16579. return -1;
  16580. }
  16581. return 0;
  16582. }), rt.forEach(function($t) {
  16583. var de = $t.plotY;
  16584. if (typeof de < "u" && !isNaN(de) && $t.y !== null && $t.shapeArgs) {
  16585. var ge = $t.shapeArgs;
  16586. de = ge.x, de = de === void 0 ? 0 : de;
  16587. var Re = ge.y;
  16588. Re = Re === void 0 ? 0 : Re;
  16589. var De = ge.width;
  16590. De = De === void 0 ? 0 : De, ge = ge.height, ge = ge === void 0 ? 0 : ge;
  16591. var qr = q.styledMode ? $t.series.colorAttribs($t) : qr = $t.series.pointAttribs($t);
  16592. $t = qr["stroke-width"] || 0, $e = G(qr.fill).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255, m.type === "treemap" && ($t = $t || 1, St = G(qr.stroke).rgba, St[0] /= 255, St[1] /= 255, St[2] /= 255, H(de, Re, De, ge, St), $t /= 2), m.type === "heatmap" && q.inverted && (de = lt.len - de, Re = ot.len - Re, De = -De, ge = -ge), H(de + $t, Re + $t, De - 2 * $t, ge - 2 * $t, $e);
  16593. }
  16594. });
  16595. else {
  16596. for (rt = function() {
  16597. if (Jt = Dt[++Yt], typeof Jt > "u")
  16598. return "continue";
  16599. if (us)
  16600. return "break";
  16601. var $t = nt && nt[Yt];
  16602. if (!yt && B($t, !0) && $t.color && ($e = G($t.color).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255), yt ? (Gt = Jt[0], Wt = Jt[1], Dt[Yt + 1] && (Me = Dt[Yt + 1][0]), Dt[Yt - 1] && (Vt = Dt[Yt - 1][0]), 3 <= Jt.length && (be = Jt[2], Jt[2] > L.zMax && (L.zMax = Jt[2]), Jt[2] < L.zMin && (L.zMin = Jt[2]))) : (Gt = Jt, Wt = J[Yt], Dt[Yt + 1] && (Me = Dt[Yt + 1]), Dt[Yt - 1] && (Vt = Dt[Yt - 1]), tt && tt.length && (be = tt[Yt], tt[Yt] > L.zMax && (L.zMax = tt[Yt]), tt[Yt] < L.zMin && (L.zMin = tt[Yt]))), !vt && (Gt === null || Wt === null))
  16603. return A(), "continue";
  16604. if (Me && Me >= ct && Me <= gt && (En = !0), Vt && Vt >= ct && Vt <= gt && (On = !0), Z ? (yt && (Wt = Jt.slice(1, 3)), Or = Wt[0], Wt = Wt[1]) : et && (Gt = Jt.x, Wt = Jt.stackY, Or = Wt - Jt.y), dt !== null && typeof dt < "u" && ht !== null && typeof ht < "u" && (Jr = Wt >= dt && Wt <= ht), Gt > gt && Nt.x < gt && (Nt.x = Gt, Nt.y = Wt), Gt < ct && _t.x > ct && (_t.x = Gt, _t.y = Wt), Wt === null && vt)
  16605. return "continue";
  16606. if (Wt === null || !Jr && !En && !On)
  16607. return A(), "continue";
  16608. if ((Me >= ct || Gt >= ct) && (Vt <= gt || Gt <= gt) && (_n = !0), !_n && !En && !On)
  16609. return "continue";
  16610. if (Dn && Gt - Vt > Dn && A(), Lr) {
  16611. var de;
  16612. Lr.some(function(ge, Re) {
  16613. var De = Lr[Re - 1];
  16614. return Go === "x" ? typeof ge.value < "u" && Gt <= ge.value ? (_r[Re] && (!De || Gt >= De.value) && (de = _r[Re]), !0) : !1 : typeof ge.value < "u" && Wt <= ge.value ? (_r[Re] && (!De || Wt >= De.value) && (de = _r[Re]), !0) : !1;
  16615. }), $e = de || Xi || $e;
  16616. }
  16617. if (!g.useGPUTranslations && (L.skipTranslation = !0, Gt = lt.toPixels(Gt, !0), Wt = ot.toPixels(Wt, !0), Gt > pt && L.drawMode === "points"))
  16618. return "continue";
  16619. if (L.hasMarkers && _n && Ct !== !1 && (m.closestPointRangePx = Math.min(m.closestPointRangePx, Math.abs(Gt - Ct))), !g.useGPUTranslations && !g.usePreallocated && Ct && 1 > Math.abs(Gt - Ct) && Pt && 1 > Math.abs(Wt - Pt))
  16620. return g.debug.showSkipSummary && ++Ot, "continue";
  16621. Ln && (At = Or, (Or === !1 || typeof Or > "u") && (At = 0 > Wt ? Wt : 0), Z || et || (At = Math.max(fs === null ? dt : fs, dt)), g.useGPUTranslations || (At = ot.toPixels(At, !0)), $(Gt, At, 0, 0, $e)), it.step && !ds && $(Gt, Pt, 0, 2, $e), $(Gt, Wt, 0, m.type === "bubble" ? be || 1 : 2, $e), Ct = Gt, Pt = Wt, Kt = !0, ds = !1;
  16622. }; Yt < Dt.length - 1 && rt() !== "break"; )
  16623. ;
  16624. g.debug.showSkipSummary && console.log("skipped points:", Ot), Kt || vt === !1 || m.drawMode !== "line_strip" || (_t.x < Number.MAX_VALUE && Y(_t, !0), Nt.x > -Number.MAX_VALUE && Y(Nt));
  16625. }
  16626. Q();
  16627. }
  16628. }
  16629. function R() {
  16630. I = [], P.data = s = [], n = [], u && u.destroy();
  16631. }
  16632. function k(m) {
  16633. c && (c.setUniform("xAxisTrans", m.transA), c.setUniform("xAxisMin", m.min), c.setUniform("xAxisMinPad", m.minPixelPadding), c.setUniform("xAxisPointRange", m.pointRange), c.setUniform("xAxisLen", m.len), c.setUniform(
  16634. "xAxisPos",
  16635. m.pos
  16636. ), c.setUniform("xAxisCVSCoord", !m.horiz), c.setUniform("xAxisIsLog", !!m.logarithmic), c.setUniform("xAxisReversed", !!m.reversed));
  16637. }
  16638. function b(m) {
  16639. c && (c.setUniform("yAxisTrans", m.transA), c.setUniform("yAxisMin", m.min), c.setUniform("yAxisMinPad", m.minPixelPadding), c.setUniform("yAxisPointRange", m.pointRange), c.setUniform("yAxisLen", m.len), c.setUniform("yAxisPos", m.pos), c.setUniform("yAxisCVSCoord", !m.horiz), c.setUniform("yAxisIsLog", !!m.logarithmic), c.setUniform("yAxisReversed", !!m.reversed));
  16640. }
  16641. function S(m, L) {
  16642. c.setUniform("hasThreshold", m), c.setUniform("translatedThreshold", L);
  16643. }
  16644. function v(m) {
  16645. if (m)
  16646. a = m.chartWidth || 800, t = m.chartHeight || 400;
  16647. else
  16648. return !1;
  16649. if (!(p && a && t && c))
  16650. return !1;
  16651. g.debug.timeRendering && console.time("gl rendering"), p.canvas.width = a, p.canvas.height = t, c.bind(), p.viewport(0, 0, a, t), c.setPMatrix([2 / a, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]), 1 < g.lineWidth && !_.isMS && p.lineWidth(g.lineWidth), u.build(P.data, "aVertexPosition", 4), u.bind(), c.setInverted(m.inverted), I.forEach(function(L, z) {
  16652. var $ = L.series.options, Q = $.marker, A = typeof $.lineWidth < "u" ? $.lineWidth : 1, H = $.threshold, Y = F(H), Z = L.series.yAxis.getThreshold(H);
  16653. if (H = x($.marker ? $.marker.enabled : null, L.series.xAxis.isRadial ? !0 : null, L.series.closestPointRangePx > 2 * (($.marker ? $.marker.radius : 10) || 10)), Q = W[Q && Q.symbol || L.series.symbol] || W.circle, L.segments.length !== 0 && L.segments[0].from !== L.segments[0].to) {
  16654. if (Q.isReady && (p.bindTexture(p.TEXTURE_2D, Q.handle), c.setTexture(Q.handle)), m.styledMode ? Q = L.series.markerGroup && L.series.markerGroup.getStyle("fill") : (Q = L.drawMode === "points" && L.series.pointAttribs && L.series.pointAttribs().fill || L.series.color, $.colorByPoint && (Q = L.series.chart.options.colors[z])), L.series.fillOpacity && $.fillOpacity && (Q = new o(Q).setOpacity(x($.fillOpacity, 1)).get()), Q = G(Q).rgba, g.useAlpha || (Q[3] = 1), L.drawMode === "lines" && g.useAlpha && 1 > Q[3] && (Q[3] /= 10), $.boostBlending === "add" ? (p.blendFunc(p.SRC_ALPHA, p.ONE), p.blendEquation(p.FUNC_ADD)) : $.boostBlending === "mult" || $.boostBlending === "multiply" ? p.blendFunc(p.DST_COLOR, p.ZERO) : $.boostBlending === "darken" ? (p.blendFunc(p.ONE, p.ONE), p.blendEquation(p.FUNC_MIN)) : p.blendFuncSeparate(p.SRC_ALPHA, p.ONE_MINUS_SRC_ALPHA, p.ONE, p.ONE_MINUS_SRC_ALPHA), c.reset(), 0 < L.colorData.length ? (c.setUniform("hasColor", 1), z = N(p, c), z.build(L.colorData, "aColor", 4), z.bind()) : p.disableVertexAttribArray(p.getAttribLocation(c.program(), "aColor")), c.setColor(Q), k(L.series.xAxis), b(L.series.yAxis), S(Y, Z), L.drawMode === "points" && ($.marker && F($.marker.radius) ? c.setPointSize(2 * $.marker.radius) : c.setPointSize(1)), c.setSkipTranslation(L.skipTranslation), L.series.type === "bubble" && c.setBubbleUniforms(L.series, L.zMin, L.zMax), c.setDrawAsCircle(X[L.series.type] || !1), 0 < A || L.drawMode !== "line_strip")
  16655. for (A = 0; A < L.segments.length; A++)
  16656. u.render(L.segments[A].from, L.segments[A].to, L.drawMode);
  16657. if (L.hasMarkers && H)
  16658. for ($.marker && F($.marker.radius) ? c.setPointSize(2 * $.marker.radius) : c.setPointSize(10), c.setDrawAsCircle(!0), A = 0; A < L.segments.length; A++)
  16659. u.render(L.segments[A].from, L.segments[A].to, "POINTS");
  16660. }
  16661. }), g.debug.timeRendering && console.timeEnd("gl rendering"), f && f(), R();
  16662. }
  16663. function h(m) {
  16664. if (T(), m.renderer.forExport)
  16665. return v(m);
  16666. D ? v(m) : setTimeout(function() {
  16667. h(m);
  16668. }, 1);
  16669. }
  16670. var c = !1, u = !1, i = 0, p = !1, a = 0, t = 0, s = !1, n = !1, P = {}, D = !1, I = [], W = {}, E = { column: !0, columnrange: !0, bar: !0, area: !0, arearange: !0 }, X = { scatter: !0, bubble: !0 }, g = { pointSize: 1, lineWidth: 1, fillColor: "#AA00AA", useAlpha: !0, usePreallocated: !1, useGPUTranslations: !1, debug: { timeRendering: !1, timeSeriesProcessing: !1, timeSetup: !1, timeBufferCopy: !1, timeKDTree: !1, showSkipSummary: !1 } };
  16671. return P = { allocateBufferForSingleSeries: function(m) {
  16672. var L = 0;
  16673. g.usePreallocated && (m.isSeriesBoosting && (L = l(m)), u.allocate(L));
  16674. }, pushSeries: function(m) {
  16675. 0 < I.length && I[I.length - 1].hasMarkers && (I[I.length - 1].markerTo = n.length), g.debug.timeSeriesProcessing && console.time("building " + m.type + " series");
  16676. var L = { segments: [], markerFrom: n.length, colorData: [], series: m, zMin: Number.MAX_VALUE, zMax: -Number.MAX_VALUE, hasMarkers: m.options.marker ? m.options.marker.enabled !== !1 : !1, showMarkers: !0, drawMode: {
  16677. area: "lines",
  16678. arearange: "lines",
  16679. areaspline: "line_strip",
  16680. column: "lines",
  16681. columnrange: "lines",
  16682. bar: "lines",
  16683. line: "line_strip",
  16684. scatter: "points",
  16685. heatmap: "triangles",
  16686. treemap: "triangles",
  16687. bubble: "points"
  16688. }[m.type] || "line_strip" };
  16689. m.index >= I.length ? I.push(L) : I[m.index] = L, O(m, L), g.debug.timeSeriesProcessing && console.timeEnd("building " + m.type + " series");
  16690. }, setSize: function(m, L) {
  16691. a === m && t === L || !c || (a = m, t = L, c.bind(), c.setPMatrix([2 / a, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]));
  16692. }, inited: function() {
  16693. return D;
  16694. }, setThreshold: S, init: function(m, L) {
  16695. function z(A, H) {
  16696. var Y = { isReady: !1, texture: V.createElement("canvas"), handle: p.createTexture() }, Z = Y.texture.getContext("2d");
  16697. W[A] = Y, Y.texture.width = 512, Y.texture.height = 512, Z.mozImageSmoothingEnabled = !1, Z.webkitImageSmoothingEnabled = !1, Z.msImageSmoothingEnabled = !1, Z.imageSmoothingEnabled = !1, Z.strokeStyle = "rgba(255, 255, 255, 0)", Z.fillStyle = "#FFF", H(Z);
  16698. try {
  16699. p.activeTexture(p.TEXTURE0), p.bindTexture(p.TEXTURE_2D, Y.handle), p.texImage2D(p.TEXTURE_2D, 0, p.RGBA, p.RGBA, p.UNSIGNED_BYTE, Y.texture), p.texParameteri(p.TEXTURE_2D, p.TEXTURE_WRAP_S, p.CLAMP_TO_EDGE), p.texParameteri(
  16700. p.TEXTURE_2D,
  16701. p.TEXTURE_WRAP_T,
  16702. p.CLAMP_TO_EDGE
  16703. ), p.texParameteri(p.TEXTURE_2D, p.TEXTURE_MAG_FILTER, p.LINEAR), p.texParameteri(p.TEXTURE_2D, p.TEXTURE_MIN_FILTER, p.LINEAR), p.bindTexture(p.TEXTURE_2D, null), Y.isReady = !0;
  16704. } catch {
  16705. }
  16706. }
  16707. var $ = 0, Q = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
  16708. if (D = !1, !m)
  16709. return !1;
  16710. for (g.debug.timeSetup && console.time("gl setup"); $ < Q.length && !(p = m.getContext(Q[$], {})); $++)
  16711. ;
  16712. if (p)
  16713. L || R();
  16714. else
  16715. return !1;
  16716. return p.enable(p.BLEND), p.blendFunc(p.SRC_ALPHA, p.ONE_MINUS_SRC_ALPHA), p.disable(p.DEPTH_TEST), p.depthFunc(p.LESS), c = y(p), c ? (u = N(p, c), z("circle", function(A) {
  16717. A.beginPath(), A.arc(256, 256, 256, 0, 2 * Math.PI), A.stroke(), A.fill();
  16718. }), z("square", function(A) {
  16719. A.fillRect(0, 0, 512, 512);
  16720. }), z("diamond", function(A) {
  16721. A.beginPath(), A.moveTo(256, 0), A.lineTo(512, 256), A.lineTo(256, 512), A.lineTo(0, 256), A.lineTo(256, 0), A.fill();
  16722. }), z("triangle", function(A) {
  16723. A.beginPath(), A.moveTo(0, 512), A.lineTo(256, 0), A.lineTo(512, 512), A.lineTo(0, 512), A.fill();
  16724. }), z("triangle-down", function(A) {
  16725. A.beginPath(), A.moveTo(0, 0), A.lineTo(256, 512), A.lineTo(
  16726. 512,
  16727. 0
  16728. ), A.lineTo(0, 0), A.fill();
  16729. }), D = !0, g.debug.timeSetup && console.timeEnd("gl setup"), !0) : !1;
  16730. }, render: h, settings: g, valid: function() {
  16731. return p !== !1;
  16732. }, clear: T, flush: R, setXAxis: k, setYAxis: b, data: s, gl: function() {
  16733. return p;
  16734. }, allocateBuffer: function(m) {
  16735. var L = 0;
  16736. g.usePreallocated && (m.series.forEach(function(z) {
  16737. z.isSeriesBoosting && (L += l(z));
  16738. }), u.allocate(L));
  16739. }, destroy: function() {
  16740. R(), u.destroy(), c.destroy(), p && (w(W, function(m) {
  16741. m.handle && p.deleteTexture(m.handle);
  16742. }), p.canvas.width = 1, p.canvas.height = 1);
  16743. }, setOptions: function(m) {
  16744. j(
  16745. !0,
  16746. g,
  16747. m
  16748. );
  16749. } };
  16750. };
  16751. }), C(d, "Extensions/Boost/BoostAttach.js", [d["Core/Chart/Chart.js"], d["Extensions/Boost/WGLRenderer.js"], d["Core/Globals.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  16752. var U = N.doc, G = _.error, V;
  16753. return function(F, B) {
  16754. var j = F.chartWidth, w = F.chartHeight, x = F, f = F.seriesGroup || B.group, l = U.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility", "1.1");
  16755. return x = F.isChartSeriesBoosting() ? F : B, l = !1, V || (V = U.createElement("canvas")), x.renderTarget || (x.canvas = V, F.renderer.forExport || !l ? (x.renderTarget = F.renderer.image("", 0, 0, j, w).addClass("highcharts-boost-canvas").add(f), x.boostClear = function() {
  16756. x.renderTarget.attr({ href: "" });
  16757. }, x.boostCopy = function() {
  16758. x.boostResizeTarget(), x.renderTarget.attr({ href: x.canvas.toDataURL("image/png") });
  16759. }) : (x.renderTargetFo = F.renderer.createElement("foreignObject").add(f), x.renderTarget = U.createElement("canvas"), x.renderTargetCtx = x.renderTarget.getContext("2d"), x.renderTargetFo.element.appendChild(x.renderTarget), x.boostClear = function() {
  16760. x.renderTarget.width = x.canvas.width, x.renderTarget.height = x.canvas.height;
  16761. }, x.boostCopy = function() {
  16762. x.renderTarget.width = x.canvas.width, x.renderTarget.height = x.canvas.height, x.renderTargetCtx.drawImage(x.canvas, 0, 0);
  16763. }), x.boostResizeTarget = function() {
  16764. j = F.chartWidth, w = F.chartHeight, (x.renderTargetFo || x.renderTarget).attr({ x: 0, y: 0, width: j, height: w }).css({ pointerEvents: "none", mixedBlendMode: "normal", opacity: 1 }), x instanceof o && x.markerGroup.translate(F.plotLeft, F.plotTop);
  16765. }, x.boostClipRect = F.renderer.clipRect(), (x.renderTargetFo || x.renderTarget).clip(x.boostClipRect), x instanceof o && (x.markerGroup = x.renderer.g().add(f), x.markerGroup.translate(B.xAxis.pos, B.yAxis.pos))), x.canvas.width = j, x.canvas.height = w, x.boostClipRect.attr(F.getBoostClipRect(x)), x.boostResizeTarget(), x.boostClear(), x.ogl || (x.ogl = y(function() {
  16766. x.ogl.settings.debug.timeBufferCopy && console.time("buffer copy"), x.boostCopy(), x.ogl.settings.debug.timeBufferCopy && console.timeEnd("buffer copy");
  16767. }), x.ogl.init(x.canvas) || G("[highcharts boost] - unable to init WebGL renderer"), x.ogl.setOptions(F.options.boost || {}), x instanceof o && x.ogl.allocateBuffer(F)), x.ogl.setSize(j, w), x.ogl;
  16768. };
  16769. }), C(d, "Extensions/Boost/BoostUtils.js", [d["Core/Globals.js"], d["Extensions/Boost/BoostableMap.js"], d["Extensions/Boost/BoostAttach.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  16770. function U() {
  16771. for (var f = [], l = 0; l < arguments.length; l++)
  16772. f[l] = arguments[l];
  16773. var T = -Number.MAX_VALUE;
  16774. return f.forEach(function(O) {
  16775. if (typeof O < "u" && O !== null && typeof O.length < "u" && 0 < O.length)
  16776. return T = O.length, !0;
  16777. }), T;
  16778. }
  16779. function G(f, l, T) {
  16780. f && l.renderTarget && l.canvas && !(T || l.chart).isChartSeriesBoosting() && f.render(T || l.chart);
  16781. }
  16782. function V(f, l) {
  16783. f && l.renderTarget && l.canvas && !l.chart.isChartSeriesBoosting() && f.allocateBufferForSingleSeries(l);
  16784. }
  16785. function F(f, l, T, O, R, k) {
  16786. R = R || 0, O = O || 3e3;
  16787. for (var b = R + O, S = !0; S && R < b && R < f.length; )
  16788. S = l(f[R], R), ++R;
  16789. S && (R < f.length ? k ? F(f, l, T, O, R, k) : j.requestAnimationFrame ? j.requestAnimationFrame(function() {
  16790. F(f, l, T, O, R);
  16791. }) : setTimeout(function() {
  16792. F(f, l, T, O, R);
  16793. }) : T && T());
  16794. }
  16795. function B() {
  16796. var f = 0, l, T = [
  16797. "webgl",
  16798. "experimental-webgl",
  16799. "moz-webgl",
  16800. "webkit-3d"
  16801. ], O = !1;
  16802. if (typeof j.WebGLRenderingContext < "u")
  16803. for (l = w.createElement("canvas"); f < T.length; f++)
  16804. try {
  16805. if (O = l.getContext(T[f]), typeof O < "u" && O !== null)
  16806. return !0;
  16807. } catch {
  16808. }
  16809. return !1;
  16810. }
  16811. var j = o.win, w = o.doc, x = _.pick;
  16812. return _ = { patientMax: U, boostEnabled: function(f) {
  16813. return x(f && f.options && f.options.boost && f.options.boost.enabled, !0);
  16814. }, shouldForceChartSeriesBoosting: function(f) {
  16815. var l = 0, T = 0, O = x(f.options.boost && f.options.boost.allowForce, !0);
  16816. if (typeof f.boostForceChartBoost < "u")
  16817. return f.boostForceChartBoost;
  16818. if (1 < f.series.length)
  16819. for (var R = 0; R < f.series.length; R++) {
  16820. var k = f.series[R];
  16821. k.options.boostThreshold !== 0 && k.visible !== !1 && k.type !== "heatmap" && (y[k.type] && ++T, U(k.processedXData, k.options.data, k.points) >= (k.options.boostThreshold || Number.MAX_VALUE) && ++l);
  16822. }
  16823. return f.boostForceChartBoost = O && (T === f.series.length && 0 < l || 5 < l), f.boostForceChartBoost;
  16824. }, renderIfNotSeriesBoosting: G, allocateIfNotSeriesBoosting: V, eachAsync: F, hasWebGLSupport: B, pointDrawHandler: function(f) {
  16825. var l = !0;
  16826. if (this.chart.options && this.chart.options.boost && (l = typeof this.chart.options.boost.enabled > "u" ? !0 : this.chart.options.boost.enabled), !l || !this.isSeriesBoosting)
  16827. return f.call(this);
  16828. this.chart.isBoosting = !0, (f = N(this.chart, this)) && (V(f, this), f.pushSeries(this)), G(f, this);
  16829. } }, o.hasWebGLSupport = B, _;
  16830. }), C(
  16831. d,
  16832. "Extensions/Boost/BoostInit.js",
  16833. [d["Core/Chart/Chart.js"], d["Core/Globals.js"], d["Core/Series/Series.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"], d["Extensions/Boost/BoostUtils.js"], d["Extensions/Boost/BoostAttach.js"]],
  16834. function(o, y, N, _, U, G, V) {
  16835. var F = y.noop, B = _.seriesTypes, j = U.addEvent, w = U.extend, x = U.fireEvent, f = U.wrap, l = G.eachAsync, T = G.pointDrawHandler, O = G.allocateIfNotSeriesBoosting, R = G.renderIfNotSeriesBoosting, k = G.shouldForceChartSeriesBoosting, b;
  16836. return function() {
  16837. w(N.prototype, { renderCanvas: function() {
  16838. function S(dt, ht) {
  16839. var at = !1, J = typeof i.index > "u", tt = !0;
  16840. if (typeof dt > "u")
  16841. return !0;
  16842. if (!J) {
  16843. if (H)
  16844. var ot = dt[0], lt = dt[1];
  16845. else
  16846. ot = dt, lt = s[ht];
  16847. z ? (H && (lt = dt.slice(1, 3)), at = lt[0], lt = lt[1]) : $ && (ot = dt.x, lt = dt.stackY, at = lt - dt.y), A || (tt = lt >= I && lt <= W), lt !== null && ot >= P && ot <= D && tt && (dt = p.toPixels(ot, !0), g ? ((typeof q > "u" || dt === X) && (z || (at = lt), (typeof it > "u" || lt > Z) && (Z = lt, it = ht), (typeof q > "u" || at < Y) && (Y = at, q = ht)), dt !== X && (typeof q < "u" && (lt = a.toPixels(Z, !0), L = a.toPixels(Y, !0), rt(dt, lt, it), L !== lt && rt(dt, L, q)), q = it = void 0, X = dt)) : (lt = Math.ceil(a.toPixels(lt, !0)), rt(dt, lt, ht)));
  16848. }
  16849. return !J;
  16850. }
  16851. function v() {
  16852. x(h, "renderedCanvas"), delete h.buildKDTree, h.buildKDTree(), ct.debug.timeKDTree && console.timeEnd("kd tree building");
  16853. }
  16854. var h = this, c = h.options || {}, u = !1, i = h.chart, p = this.xAxis, a = this.yAxis, t = c.xData || h.processedXData, s = c.yData || h.processedYData, n = c.data;
  16855. u = p.getExtremes();
  16856. var P = u.min, D = u.max;
  16857. u = a.getExtremes();
  16858. var I = u.min, W = u.max, E = {}, X, g = !!h.sampling, m = c.enableMouseTracking !== !1, L = a.getThreshold(c.threshold), z = h.pointArrayMap && h.pointArrayMap.join(",") === "low,high", $ = !!c.stacking, Q = h.cropStart || 0, A = h.requireSorting, H = !t, Y, Z, q, it, et = c.findNearestPointBy === "x", nt = this.xData || this.options.xData || this.processedXData || !1, rt = function(dt, ht, at) {
  16859. dt = Math.ceil(dt), b = et ? dt : dt + "," + ht, m && !E[b] && (E[b] = !0, i.inverted && (dt = p.len - dt, ht = a.len - ht), gt.push({ x: nt ? nt[Q + at] : !1, clientX: dt, plotX: dt, plotY: ht, i: Q + at }));
  16860. };
  16861. u = V(i, h), i.isBoosting = !0;
  16862. var ct = u.settings;
  16863. if (this.visible) {
  16864. (this.points || this.graph) && this.destroyGraphics(), i.isChartSeriesBoosting() ? (this.markerGroup && this.markerGroup !== i.markerGroup && this.markerGroup.destroy(), this.markerGroup = i.markerGroup, this.renderTarget && (this.renderTarget = this.renderTarget.destroy())) : (this.markerGroup === i.markerGroup && (this.markerGroup = void 0), this.markerGroup = h.plotGroup("markerGroup", "markers", !0, 1, i.seriesGroup));
  16865. var gt = this.points = [];
  16866. h.buildKDTree = F, u && (O(u, this), u.pushSeries(h), R(u, this, i)), i.renderer.forExport || (ct.debug.timeKDTree && console.time("kd tree building"), l($ ? h.data : t || n, S, v));
  16867. }
  16868. } }), ["heatmap", "treemap"].forEach(function(S) {
  16869. B[S] && f(B[S].prototype, "drawPoints", T);
  16870. }), B.bubble && (delete B.bubble.prototype.buildKDTree, f(B.bubble.prototype, "markerAttribs", function(S) {
  16871. return this.isSeriesBoosting ? !1 : S.apply(this, [].slice.call(arguments, 1));
  16872. })), B.scatter.prototype.fill = !0, w(B.area.prototype, { fill: !0, fillOpacity: !0, sampling: !0 }), w(B.column.prototype, { fill: !0, sampling: !0 }), o.prototype.propsRequireUpdateSeries.push("boost"), o.prototype.callbacks.push(function(S) {
  16873. j(S, "predraw", function() {
  16874. S.boostForceChartBoost = void 0, S.boostForceChartBoost = k(S), S.isBoosting = !1, !S.isChartSeriesBoosting() && S.didBoost && (S.didBoost = !1), S.boostClear && S.boostClear(), S.canvas && S.ogl && S.isChartSeriesBoosting() && (S.didBoost = !0, S.ogl.allocateBuffer(S)), S.markerGroup && S.xAxis && 0 < S.xAxis.length && S.yAxis && 0 < S.yAxis.length && S.markerGroup.translate(S.xAxis[0].pos, S.yAxis[0].pos);
  16875. }), j(S, "render", function() {
  16876. S.ogl && S.isChartSeriesBoosting() && S.ogl.render(S);
  16877. });
  16878. var v = -1, h = -1;
  16879. j(S.pointer, "afterGetHoverData", function() {
  16880. var c = S.hoverSeries;
  16881. if (S.markerGroup && c) {
  16882. var u = S.inverted ? c.yAxis : c.xAxis;
  16883. c = S.inverted ? c.xAxis : c.yAxis, (u && u.pos !== v || c && c.pos !== h) && (S.markerGroup.translate(u.pos, c.pos), v = u.pos, h = c.pos);
  16884. }
  16885. });
  16886. });
  16887. };
  16888. }
  16889. ), C(
  16890. d,
  16891. "Extensions/BoostCanvas.js",
  16892. [d["Core/Chart/Chart.js"], d["Core/Color/Color.js"], d["Core/Globals.js"], d["Core/Series/Series.js"], d["Core/Series/SeriesRegistry.js"], d["Core/Utilities.js"]],
  16893. function(o, y, N, _, U, G) {
  16894. var V = y.parse, F = N.doc, B = N.noop, j = U.seriesTypes, w = G.addEvent, x = G.extend, f = G.fireEvent, l = G.isNumber, T = G.merge, O = G.pick, R = G.wrap, k;
  16895. return function() {
  16896. N.seriesTypes.heatmap && R(N.seriesTypes.heatmap.prototype, "drawPoints", function() {
  16897. var b = this.chart, S = this.getContext(), v = this.chart.inverted, h = this.xAxis, c = this.yAxis;
  16898. S ? (this.points.forEach(function(u) {
  16899. var i = u.plotY;
  16900. if (typeof i < "u" && !isNaN(i) && u.y !== null && S) {
  16901. var p = u.shapeArgs || {};
  16902. i = p.x, i = i === void 0 ? 0 : i;
  16903. var a = p.y;
  16904. a = a === void 0 ? 0 : a;
  16905. var t = p.width;
  16906. t = t === void 0 ? 0 : t, p = p.height, p = p === void 0 ? 0 : p, u = b.styledMode ? u.series.colorAttribs(u) : u.series.pointAttribs(u), S.fillStyle = u.fill, v ? S.fillRect(c.len - a + h.left, h.len - i + c.top, -p, -t) : S.fillRect(i + h.left, a + c.top, t, p);
  16907. }
  16908. }), this.canvasToSVG()) : this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser");
  16909. }), x(_.prototype, { getContext: function() {
  16910. var b = this.chart, S = b.chartWidth, v = b.chartHeight, h = b.seriesGroup || this.group, c = this, u = function(p, a, t, s, n, P, D) {
  16911. p.call(this, t, a, s, n, P, D);
  16912. };
  16913. b.isChartSeriesBoosting() && (c = b, h = b.seriesGroup);
  16914. var i = c.ctx;
  16915. return c.canvas || (c.canvas = F.createElement("canvas"), c.renderTarget = b.renderer.image("", 0, 0, S, v).addClass("highcharts-boost-canvas").add(h), c.ctx = i = c.canvas.getContext("2d"), b.inverted && ["moveTo", "lineTo", "rect", "arc"].forEach(function(p) {
  16916. R(i, p, u);
  16917. }), c.boostCopy = function() {
  16918. c.renderTarget.attr({ href: c.canvas.toDataURL("image/png") });
  16919. }, c.boostClear = function() {
  16920. i.clearRect(0, 0, c.canvas.width, c.canvas.height), c === this && c.renderTarget.attr({ href: "" });
  16921. }, c.boostClipRect = b.renderer.clipRect(), c.renderTarget.clip(c.boostClipRect)), c.canvas.width !== S && (c.canvas.width = S), c.canvas.height !== v && (c.canvas.height = v), c.renderTarget.attr({ x: 0, y: 0, width: S, height: v, style: "pointer-events: none", href: "" }), c.boostClipRect.attr(b.getBoostClipRect(c)), i;
  16922. }, canvasToSVG: function() {
  16923. this.chart.isChartSeriesBoosting() ? this.boostClear && this.boostClear() : (this.boostCopy || this.chart.boostCopy) && (this.boostCopy || this.chart.boostCopy)();
  16924. }, cvsLineTo: function(b, S, v) {
  16925. b.lineTo(S, v);
  16926. }, renderCanvas: function() {
  16927. var b = this, S = b.options, v = b.chart, h = this.xAxis, c = this.yAxis, u = (v.options.boost || {}).timeRendering || !1, i = 0, p = b.processedXData, a = b.processedYData, t = S.data, s = h.getExtremes(), n = s.min, P = s.max;
  16928. s = c.getExtremes();
  16929. var D = s.min, I = s.max, W = {}, E, X = !!b.sampling, g = S.marker && S.marker.radius, m = this.cvsDrawPoint, L = S.lineWidth ? this.cvsLineTo : void 0, z = g && 1 >= g ? this.cvsMarkerSquare : this.cvsMarkerCircle, $ = this.cvsStrokeBatch || 1e3, Q = S.enableMouseTracking !== !1, A;
  16930. s = S.threshold;
  16931. var H = c.getThreshold(s), Y = l(s), Z = H, q = this.fill, it = b.pointArrayMap && b.pointArrayMap.join(",") === "low,high", et = !!S.stacking, nt = b.cropStart || 0;
  16932. s = v.options.loading;
  16933. var rt = b.requireSorting, ct, gt = S.connectNulls, dt = !p, ht, at, J, tt, ot, lt = et ? b.data : p || t, pt = b.fillOpacity ? y.parse(b.color).setOpacity(O(S.fillOpacity, 0.75)).get() : b.color, yt = function() {
  16934. q ? (Dt.fillStyle = pt, Dt.fill()) : (Dt.strokeStyle = b.color, Dt.lineWidth = S.lineWidth, Dt.stroke());
  16935. }, vt = function(_t, Nt, Ot, Kt) {
  16936. i === 0 && (Dt.beginPath(), L && (Dt.lineJoin = "round")), v.scroller && b.options.className === "highcharts-navigator-series" ? (Nt += v.scroller.top, Ot && (Ot += v.scroller.top)) : Nt += v.plotTop, _t += v.plotLeft, ct ? Dt.moveTo(_t, Nt) : m ? m(Dt, _t, Nt, Ot, A) : L ? L(Dt, _t, Nt) : z && z.call(b, Dt, _t, Nt, g, Kt), i += 1, i === $ && (yt(), i = 0), A = { clientX: _t, plotY: Nt, yBottom: Ot };
  16937. }, Ct = S.findNearestPointBy === "x", Pt = this.xData || this.options.xData || this.processedXData || !1, At = function(_t, Nt, Ot) {
  16938. ot = Ct ? _t : _t + "," + Nt, Q && !W[ot] && (W[ot] = !0, v.inverted && (_t = h.len - _t, Nt = c.len - Nt), St.push({ x: Pt ? Pt[nt + Ot] : !1, clientX: _t, plotX: _t, plotY: Nt, i: nt + Ot }));
  16939. };
  16940. this.renderTarget && this.renderTarget.attr({ href: "" }), (this.points || this.graph) && this.destroyGraphics(), b.plotGroup("group", "series", b.visible ? "visible" : "hidden", S.zIndex, v.seriesGroup), b.markerGroup = b.group, w(b, "destroy", function() {
  16941. b.markerGroup = null;
  16942. });
  16943. var St = this.points = [], Dt = this.getContext();
  16944. b.buildKDTree = B, this.boostClear && this.boostClear(), this.visible && (99999 < t.length && (v.options.loading = T(s, { labelStyle: {
  16945. backgroundColor: V("#ffffff").setOpacity(0.75).get(),
  16946. padding: "1em",
  16947. borderRadius: "0.5em"
  16948. }, style: { backgroundColor: "none", opacity: 1 } }), G.clearTimeout(k), v.showLoading("Drawing..."), v.options.loading = s), u && console.time("canvas rendering"), N.eachAsync(lt, function(_t, Nt) {
  16949. var Ot = !1, Kt = !1, Gt = !1, Wt = !1, Jt = typeof v.index > "u", be = !0;
  16950. if (!Jt) {
  16951. if (dt) {
  16952. var Yt = _t[0], Vt = _t[1];
  16953. lt[Nt + 1] && (Gt = lt[Nt + 1][0]), lt[Nt - 1] && (Wt = lt[Nt - 1][0]);
  16954. } else
  16955. Yt = _t, Vt = a[Nt], lt[Nt + 1] && (Gt = lt[Nt + 1]), lt[Nt - 1] && (Wt = lt[Nt - 1]);
  16956. if (Gt && Gt >= n && Gt <= P && (Ot = !0), Wt && Wt >= n && Wt <= P && (Kt = !0), it) {
  16957. dt && (Vt = _t.slice(1, 3));
  16958. var Me = Vt[0];
  16959. Vt = Vt[1];
  16960. } else
  16961. et && (Yt = _t.x, Vt = _t.stackY, Me = Vt - _t.y);
  16962. _t = Vt === null, rt || (be = Vt >= D && Vt <= I), !_t && (Yt >= n && Yt <= P && be || Ot || Kt) && (Yt = Math.round(h.toPixels(Yt, !0)), X ? ((typeof J > "u" || Yt === E) && (it || (Me = Vt), (typeof tt > "u" || Vt > at) && (at = Vt, tt = Nt), (typeof J > "u" || Me < ht) && (ht = Me, J = Nt)), Yt !== E && (typeof J < "u" && (Vt = c.toPixels(at, !0), H = c.toPixels(ht, !0), vt(Yt, Y ? Math.min(Vt, Z) : Vt, Y ? Math.max(H, Z) : H, Nt), At(Yt, Vt, tt), H !== Vt && At(Yt, H, J)), J = tt = void 0, E = Yt)) : (Vt = Math.round(c.toPixels(Vt, !0)), vt(Yt, Vt, H, Nt), At(Yt, Vt, Nt))), ct = _t && !gt, Nt % 5e4 === 0 && (b.boostCopy || b.chart.boostCopy) && (b.boostCopy || b.chart.boostCopy)();
  16963. }
  16964. return !Jt;
  16965. }, function() {
  16966. var _t = v.loadingDiv, Nt = v.loadingShown;
  16967. yt(), b.canvasToSVG(), u && console.timeEnd("canvas rendering"), f(b, "renderedCanvas"), Nt && (x(_t.style, { transition: "opacity 250ms", opacity: 0 }), v.loadingShown = !1, k = setTimeout(function() {
  16968. _t.parentNode && _t.parentNode.removeChild(_t), v.loadingDiv = v.loadingSpan = null;
  16969. }, 250)), delete b.buildKDTree, b.buildKDTree();
  16970. }, v.renderer.forExport ? Number.MAX_VALUE : void 0));
  16971. } }), j.scatter.prototype.cvsMarkerCircle = function(b, S, v, h) {
  16972. b.moveTo(S, v), b.arc(S, v, h, 0, 2 * Math.PI, !1);
  16973. }, j.scatter.prototype.cvsMarkerSquare = function(b, S, v, h) {
  16974. b.rect(S - h, v - h, 2 * h, 2 * h);
  16975. }, j.scatter.prototype.fill = !0, j.bubble && (j.bubble.prototype.cvsMarkerCircle = function(b, S, v, h, c) {
  16976. b.moveTo(S, v), b.arc(S, v, this.radii && this.radii[c], 0, 2 * Math.PI, !1);
  16977. }, j.bubble.prototype.cvsStrokeBatch = 1), x(j.area.prototype, {
  16978. cvsDrawPoint: function(b, S, v, h, c) {
  16979. c && S !== c.clientX && (b.moveTo(c.clientX, c.yBottom), b.lineTo(c.clientX, c.plotY), b.lineTo(S, v), b.lineTo(S, h));
  16980. },
  16981. fill: !0,
  16982. fillOpacity: !0,
  16983. sampling: !0
  16984. }), x(j.column.prototype, { cvsDrawPoint: function(b, S, v, h) {
  16985. b.rect(S - 1, v, 1, h - v);
  16986. }, fill: !0, sampling: !0 }), o.prototype.callbacks.push(function(b) {
  16987. w(b, "predraw", function() {
  16988. b.renderTarget && b.renderTarget.attr({ href: "" }), b.canvas && b.canvas.getContext("2d").clearRect(0, 0, b.canvas.width, b.canvas.height);
  16989. }), w(b, "render", function() {
  16990. b.boostCopy && b.boostCopy();
  16991. });
  16992. });
  16993. };
  16994. }
  16995. ), C(d, "Extensions/Boost/BoostOverrides.js", [
  16996. d["Core/Chart/Chart.js"],
  16997. d["Core/DefaultOptions.js"],
  16998. d["Core/Series/Point.js"],
  16999. d["Core/Series/Series.js"],
  17000. d["Core/Series/SeriesRegistry.js"],
  17001. d["Core/Utilities.js"],
  17002. d["Extensions/Boost/BoostUtils.js"],
  17003. d["Extensions/Boost/Boostables.js"],
  17004. d["Extensions/Boost/BoostableMap.js"]
  17005. ], function(o, y, N, _, U, G, V, F, B) {
  17006. y = y.getOptions;
  17007. var j = U.seriesTypes;
  17008. U = G.addEvent;
  17009. var w = G.error, x = G.isArray, f = G.isNumber, l = G.pick, T = G.wrap, O = V.boostEnabled, R = V.shouldForceChartSeriesBoosting, k = y().plotOptions;
  17010. o.prototype.isChartSeriesBoosting = function() {
  17011. return l(this.options.boost && this.options.boost.seriesThreshold, 50) <= this.series.length || R(this);
  17012. }, o.prototype.getBoostClipRect = function(b) {
  17013. var S = { x: this.plotLeft, y: this.plotTop, width: this.plotWidth, height: this.plotHeight };
  17014. return b === this && (b = this.inverted ? this.xAxis : this.yAxis, 1 >= b.length ? (S.y = Math.min(b[0].pos, S.y), S.height = b[0].pos - this.plotTop + b[0].len) : S.height = this.plotHeight), S;
  17015. }, _.prototype.getPoint = function(b) {
  17016. var S = b, v = this.xData || this.options.xData || this.processedXData || !1;
  17017. return !b || b instanceof this.pointClass || (S = new this.pointClass().init(this, this.options.data[b.i], v ? v[b.i] : void 0), S.category = l(this.xAxis.categories ? this.xAxis.categories[S.x] : S.x, S.x), S.dist = b.dist, S.distX = b.distX, S.plotX = b.plotX, S.plotY = b.plotY, S.index = b.i, S.isInside = this.isPointInside(b)), S;
  17018. }, T(_.prototype, "searchPoint", function(b) {
  17019. return this.getPoint(b.apply(this, [].slice.call(arguments, 1)));
  17020. }), T(N.prototype, "haloPath", function(b) {
  17021. var S = this.series, v = this.plotX, h = this.plotY, c = S.chart.inverted;
  17022. S.isSeriesBoosting && c && (this.plotX = S.yAxis.len - h, this.plotY = S.xAxis.len - v);
  17023. var u = b.apply(this, Array.prototype.slice.call(
  17024. arguments,
  17025. 1
  17026. ));
  17027. return S.isSeriesBoosting && c && (this.plotX = v, this.plotY = h), u;
  17028. }), T(_.prototype, "markerAttribs", function(b, S) {
  17029. var v = S.plotX, h = S.plotY, c = this.chart.inverted;
  17030. this.isSeriesBoosting && c && (S.plotX = this.yAxis.len - h, S.plotY = this.xAxis.len - v);
  17031. var u = b.apply(this, Array.prototype.slice.call(arguments, 1));
  17032. return this.isSeriesBoosting && c && (S.plotX = v, S.plotY = h), u;
  17033. }), U(_, "destroy", function() {
  17034. var b = this, S = b.chart;
  17035. S.markerGroup === b.markerGroup && (b.markerGroup = null), S.hoverPoints && (S.hoverPoints = S.hoverPoints.filter(function(v) {
  17036. return v.series === b;
  17037. })), S.hoverPoint && S.hoverPoint.series === b && (S.hoverPoint = null);
  17038. }), T(_.prototype, "getExtremes", function(b) {
  17039. return this.isSeriesBoosting && this.hasExtremes && this.hasExtremes() ? {} : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17040. }), ["translate", "generatePoints", "drawTracker", "drawPoints", "render"].forEach(function(b) {
  17041. function S(v) {
  17042. var h = this.options.stacking && (b === "translate" || b === "generatePoints");
  17043. !this.isSeriesBoosting || h || !O(this.chart) || this.type === "heatmap" || this.type === "treemap" || !B[this.type] || this.options.boostThreshold === 0 ? v.call(this) : this[b + "Canvas"] && this[b + "Canvas"]();
  17044. }
  17045. T(_.prototype, b, S), b === "translate" && "column bar arearange columnrange heatmap treemap".split(" ").forEach(function(v) {
  17046. j[v] && T(j[v].prototype, b, S);
  17047. });
  17048. }), T(_.prototype, "processData", function(b) {
  17049. function S(c) {
  17050. return v.forceCrop ? !1 : v.chart.isChartSeriesBoosting() || (c ? c.length : 0) >= (v.options.boostThreshold || Number.MAX_VALUE);
  17051. }
  17052. var v = this, h = this.options.data;
  17053. O(this.chart) && B[this.type] ? (S(h) && this.type !== "heatmap" && this.type !== "treemap" && !this.options.stacking && this.hasExtremes && this.hasExtremes(!0) || (b.apply(this, Array.prototype.slice.call(arguments, 1)), h = this.processedXData), (this.isSeriesBoosting = S(h)) ? (h = void 0, this.options.data && this.options.data.length && (h = this.getFirstValidPoint(this.options.data), f(h) || x(h) || w(12, !1, this.chart)), this.enterBoost()) : this.exitBoost && this.exitBoost()) : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17054. }), U(_, "hide", function() {
  17055. this.canvas && this.renderTarget && (this.ogl && this.ogl.clear(), this.boostClear());
  17056. }), _.prototype.enterBoost = function() {
  17057. this.alteredByBoost = [], ["allowDG", "directTouch", "stickyTracking"].forEach(function(b) {
  17058. this.alteredByBoost.push({ prop: b, val: this[b], own: Object.hasOwnProperty.call(this, b) });
  17059. }, this), this.directTouch = this.allowDG = !1, this.finishedAnimating = this.stickyTracking = !0, this.labelBySeries && (this.labelBySeries = this.labelBySeries.destroy());
  17060. }, _.prototype.exitBoost = function() {
  17061. (this.alteredByBoost || []).forEach(
  17062. function(b) {
  17063. b.own ? this[b.prop] = b.val : delete this[b.prop];
  17064. },
  17065. this
  17066. ), this.boostClear && this.boostClear();
  17067. }, _.prototype.hasExtremes = function(b) {
  17068. var S = this.options, v = this.xAxis && this.xAxis.options, h = this.yAxis && this.yAxis.options, c = this.colorAxis && this.colorAxis.options;
  17069. return S.data.length > (S.boostThreshold || Number.MAX_VALUE) && f(h.min) && f(h.max) && (!b || f(v.min) && f(v.max)) && (!c || f(c.min) && f(c.max));
  17070. }, _.prototype.destroyGraphics = function() {
  17071. var b = this, S = this, v = this.points, h, c;
  17072. if (v)
  17073. for (c = 0; c < v.length; c += 1)
  17074. (h = v[c]) && h.destroyElements && h.destroyElements();
  17075. [
  17076. "graph",
  17077. "area",
  17078. "tracker"
  17079. ].forEach(function(u) {
  17080. S[u] && (S[u] = S[u].destroy());
  17081. }), this.getZonesGraphs && this.getZonesGraphs([["graph", "highcharts-graph"]]).forEach(function(u) {
  17082. var i = b[u[0]];
  17083. i && (b[u[0]] = i.destroy());
  17084. });
  17085. }, F.forEach(function(b) {
  17086. k[b] && (k[b].boostThreshold = 5e3, k[b].boostData = [], j[b].prototype.fillOpacity = !0);
  17087. });
  17088. }), C(d, "Extensions/Boost/NamedColors.js", [d["Core/Color/Color.js"]], function(o) {
  17089. var y = {
  17090. aliceblue: "#f0f8ff",
  17091. antiquewhite: "#faebd7",
  17092. aqua: "#00ffff",
  17093. aquamarine: "#7fffd4",
  17094. azure: "#f0ffff",
  17095. beige: "#f5f5dc",
  17096. bisque: "#ffe4c4",
  17097. black: "#000000",
  17098. blanchedalmond: "#ffebcd",
  17099. blue: "#0000ff",
  17100. blueviolet: "#8a2be2",
  17101. brown: "#a52a2a",
  17102. burlywood: "#deb887",
  17103. cadetblue: "#5f9ea0",
  17104. chartreuse: "#7fff00",
  17105. chocolate: "#d2691e",
  17106. coral: "#ff7f50",
  17107. cornflowerblue: "#6495ed",
  17108. cornsilk: "#fff8dc",
  17109. crimson: "#dc143c",
  17110. cyan: "#00ffff",
  17111. darkblue: "#00008b",
  17112. darkcyan: "#008b8b",
  17113. darkgoldenrod: "#b8860b",
  17114. darkgray: "#a9a9a9",
  17115. darkgreen: "#006400",
  17116. darkkhaki: "#bdb76b",
  17117. darkmagenta: "#8b008b",
  17118. darkolivegreen: "#556b2f",
  17119. darkorange: "#ff8c00",
  17120. darkorchid: "#9932cc",
  17121. darkred: "#8b0000",
  17122. darksalmon: "#e9967a",
  17123. darkseagreen: "#8fbc8f",
  17124. darkslateblue: "#483d8b",
  17125. darkslategray: "#2f4f4f",
  17126. darkturquoise: "#00ced1",
  17127. darkviolet: "#9400d3",
  17128. deeppink: "#ff1493",
  17129. deepskyblue: "#00bfff",
  17130. dimgray: "#696969",
  17131. dodgerblue: "#1e90ff",
  17132. feldspar: "#d19275",
  17133. firebrick: "#b22222",
  17134. floralwhite: "#fffaf0",
  17135. forestgreen: "#228b22",
  17136. fuchsia: "#ff00ff",
  17137. gainsboro: "#dcdcdc",
  17138. ghostwhite: "#f8f8ff",
  17139. gold: "#ffd700",
  17140. goldenrod: "#daa520",
  17141. gray: "#808080",
  17142. green: "#008000",
  17143. greenyellow: "#adff2f",
  17144. honeydew: "#f0fff0",
  17145. hotpink: "#ff69b4",
  17146. indianred: "#cd5c5c",
  17147. indigo: "#4b0082",
  17148. ivory: "#fffff0",
  17149. khaki: "#f0e68c",
  17150. lavender: "#e6e6fa",
  17151. lavenderblush: "#fff0f5",
  17152. lawngreen: "#7cfc00",
  17153. lemonchiffon: "#fffacd",
  17154. lightblue: "#add8e6",
  17155. lightcoral: "#f08080",
  17156. lightcyan: "#e0ffff",
  17157. lightgoldenrodyellow: "#fafad2",
  17158. lightgrey: "#d3d3d3",
  17159. lightgreen: "#90ee90",
  17160. lightpink: "#ffb6c1",
  17161. lightsalmon: "#ffa07a",
  17162. lightseagreen: "#20b2aa",
  17163. lightskyblue: "#87cefa",
  17164. lightslateblue: "#8470ff",
  17165. lightslategray: "#778899",
  17166. lightsteelblue: "#b0c4de",
  17167. lightyellow: "#ffffe0",
  17168. lime: "#00ff00",
  17169. limegreen: "#32cd32",
  17170. linen: "#faf0e6",
  17171. magenta: "#ff00ff",
  17172. maroon: "#800000",
  17173. mediumaquamarine: "#66cdaa",
  17174. mediumblue: "#0000cd",
  17175. mediumorchid: "#ba55d3",
  17176. mediumpurple: "#9370d8",
  17177. mediumseagreen: "#3cb371",
  17178. mediumslateblue: "#7b68ee",
  17179. mediumspringgreen: "#00fa9a",
  17180. mediumturquoise: "#48d1cc",
  17181. mediumvioletred: "#c71585",
  17182. midnightblue: "#191970",
  17183. mintcream: "#f5fffa",
  17184. mistyrose: "#ffe4e1",
  17185. moccasin: "#ffe4b5",
  17186. navajowhite: "#ffdead",
  17187. navy: "#000080",
  17188. oldlace: "#fdf5e6",
  17189. olive: "#808000",
  17190. olivedrab: "#6b8e23",
  17191. orange: "#ffa500",
  17192. orangered: "#ff4500",
  17193. orchid: "#da70d6",
  17194. palegoldenrod: "#eee8aa",
  17195. palegreen: "#98fb98",
  17196. paleturquoise: "#afeeee",
  17197. palevioletred: "#d87093",
  17198. papayawhip: "#ffefd5",
  17199. peachpuff: "#ffdab9",
  17200. peru: "#cd853f",
  17201. pink: "#ffc0cb",
  17202. plum: "#dda0dd",
  17203. powderblue: "#b0e0e6",
  17204. purple: "#800080",
  17205. red: "#ff0000",
  17206. rosybrown: "#bc8f8f",
  17207. royalblue: "#4169e1",
  17208. saddlebrown: "#8b4513",
  17209. salmon: "#fa8072",
  17210. sandybrown: "#f4a460",
  17211. seagreen: "#2e8b57",
  17212. seashell: "#fff5ee",
  17213. sienna: "#a0522d",
  17214. silver: "#c0c0c0",
  17215. skyblue: "#87ceeb",
  17216. slateblue: "#6a5acd",
  17217. slategray: "#708090",
  17218. snow: "#fffafa",
  17219. springgreen: "#00ff7f",
  17220. steelblue: "#4682b4",
  17221. tan: "#d2b48c",
  17222. teal: "#008080",
  17223. thistle: "#d8bfd8",
  17224. tomato: "#ff6347",
  17225. turquoise: "#40e0d0",
  17226. violet: "#ee82ee",
  17227. violetred: "#d02090",
  17228. wheat: "#f5deb3",
  17229. white: "#ffffff",
  17230. whitesmoke: "#f5f5f5",
  17231. yellow: "#ffff00",
  17232. yellowgreen: "#9acd32"
  17233. };
  17234. return o.names = y;
  17235. }), C(d, "Extensions/Boost/Boost.js", [d["Extensions/Boost/BoostUtils.js"], d["Extensions/Boost/BoostInit.js"], d["Extensions/BoostCanvas.js"], d["Core/Utilities.js"]], function(o, y, N, _) {
  17236. _ = _.error, o = o.hasWebGLSupport, o() ? y() : typeof N < "u" ? N() : _(26);
  17237. }), C(d, "masters/modules/boost.src.js", [], function() {
  17238. });
  17239. });
  17240. })(su);
  17241. var q0 = su.exports;
  17242. const Q0 = /* @__PURE__ */ Mn(q0), t1 = (r) => {
  17243. let d = window.location.protocol;
  17244. /^http(s)?:&/.test(d) || (d = "http:");
  17245. let C = {
  17246. lang: {
  17247. // Highcharts
  17248. contextButtonTitle: "图表导出菜单",
  17249. decimalPoint: ".",
  17250. downloadJPEG: "下载 JPEG 图片",
  17251. downloadPDF: "下载 PDF 文件",
  17252. downloadPNG: "下载 PNG 文件",
  17253. downloadSVG: "下载 SVG 文件",
  17254. downloadXLS: "下载 XLS 文件",
  17255. drillUpText: "◁ 返回 {series.name}",
  17256. exitFullscreen: "退出全屏",
  17257. exportData: {
  17258. categoryDatetimeHeader: "时间",
  17259. categoryHeader: "类别"
  17260. },
  17261. openInCloud: "在 Highcharts Cloud 中打开",
  17262. invalidDate: "无效的时间",
  17263. loading: "加载中...",
  17264. months: [
  17265. "一月",
  17266. "二月",
  17267. "三月",
  17268. "四月",
  17269. "五月",
  17270. "六月",
  17271. "七月",
  17272. "八月",
  17273. "九月",
  17274. "十月",
  17275. "十一月",
  17276. "十二月"
  17277. ],
  17278. navigation: {
  17279. popup: {
  17280. addButton: "新增",
  17281. arrowLine: "直线",
  17282. arrowRay: "射线",
  17283. arrowSegment: "线段",
  17284. background: "背景",
  17285. backgroundColor: "背景颜色",
  17286. backgroundColors: "背景颜色",
  17287. borderColor: "边框颜色",
  17288. borderRadius: "圆角",
  17289. borderWidth: "边框大小",
  17290. circle: "圆",
  17291. color: "颜色",
  17292. connector: "连接",
  17293. crooked3: "Crooked 3 line",
  17294. crooked5: "Crooked 5 line",
  17295. crosshairX: "竖直准星线",
  17296. crosshairY: "水平准星线",
  17297. editButton: "编辑",
  17298. elliott3: "Elliott 3 line",
  17299. elliott5: "Elliott 5 line",
  17300. fibonacci: "斐波纳契",
  17301. fill: "填充颜色",
  17302. flags: "标志",
  17303. fontSize: "字体大小",
  17304. format: "文本",
  17305. height: "高度",
  17306. horizontalLine: "水平线",
  17307. infinityLine: "无限线",
  17308. innerBackground: "内背景",
  17309. label: "文字标签",
  17310. labelOptions: "文字标签配置",
  17311. labels: "文字标签",
  17312. line: "线",
  17313. lines: "线条",
  17314. measure: "Measure",
  17315. measureX: "Measure X",
  17316. measureXY: "Measure XY",
  17317. measureY: "Measure Y",
  17318. name: "名字",
  17319. outerBackground: "外背景",
  17320. padding: "内间距",
  17321. parallelChannel: "并行通道",
  17322. pitchfork: "杈子",
  17323. ray: "射线",
  17324. rectangle: "矩形",
  17325. removeButton: "删除",
  17326. saveButton: "保存",
  17327. segment: "段落",
  17328. series: "数据列",
  17329. shapeOptions: "图形配置",
  17330. shapes: "图形",
  17331. simpleShapes: "简单图形",
  17332. stroke: "线条颜色",
  17333. strokeWidth: "线条粗细",
  17334. style: "样式",
  17335. title: "标题",
  17336. tunnel: "通道",
  17337. typeOptions: "详情",
  17338. verticalArrow: "竖直箭头",
  17339. verticalCounter: "竖直计数器",
  17340. verticalLabel: "竖直标签",
  17341. verticalLine: "竖直线",
  17342. volume: "成交量"
  17343. }
  17344. },
  17345. noData: "暂无数据",
  17346. numericSymbols: null,
  17347. printChart: "打印图表",
  17348. resetZoom: "重置缩放比例",
  17349. resetZoomTitle: "重置为原始大小",
  17350. shortMonths: [
  17351. "一月",
  17352. "二月",
  17353. "三月",
  17354. "四月",
  17355. "五月",
  17356. "六月",
  17357. "七月",
  17358. "八月",
  17359. "九月",
  17360. "十月",
  17361. "十一月",
  17362. "十二月"
  17363. ],
  17364. thousandsSep: ",",
  17365. viewData: "查看数据表格",
  17366. viewFullscreen: "全屏查看",
  17367. weekdays: [
  17368. "星期天",
  17369. "星期一",
  17370. "星期二",
  17371. "星期三",
  17372. "星期四",
  17373. "星期五",
  17374. "星期六"
  17375. ],
  17376. viewData: "查看数据表格",
  17377. // Highstock
  17378. rangeSelectorFrom: "开始时间",
  17379. rangeSelectorTo: "结束时间",
  17380. rangeSelectorZoom: "范围",
  17381. // Highmaps
  17382. zoomIn: "缩小",
  17383. zoomOut: "放大"
  17384. },
  17385. global: {
  17386. // 不使用 UTC时间
  17387. useUTC: !1,
  17388. timezoneOffset: -8 * 60,
  17389. canvasToolsURL: d + "//cdn.hcharts.cn/highcharts/modules/canvas-tools.js",
  17390. VMLRadialGradientURL: d + +"//cdn.hcharts.cn/highcharts/gfx/vml-radial-gradient.png"
  17391. },
  17392. exporting: {
  17393. url: d + "//export.highcharts.com.cn"
  17394. },
  17395. credits: {
  17396. text: "Highcharts.com.cn",
  17397. href: "https://www.highcharts.com.cn"
  17398. },
  17399. /**
  17400. * Highstock
  17401. */
  17402. rangeSelector: {
  17403. inputDateFormat: "%Y-%m-%d",
  17404. buttons: [
  17405. {
  17406. type: "month",
  17407. count: 1,
  17408. text: "月"
  17409. },
  17410. {
  17411. type: "month",
  17412. count: 3,
  17413. text: "季度"
  17414. },
  17415. {
  17416. type: "month",
  17417. count: 6,
  17418. text: "半年"
  17419. },
  17420. {
  17421. type: "ytd",
  17422. text: "YTD"
  17423. },
  17424. {
  17425. type: "year",
  17426. count: 1,
  17427. text: "年"
  17428. },
  17429. {
  17430. type: "all",
  17431. text: "所有"
  17432. }
  17433. ]
  17434. },
  17435. plotOptions: {
  17436. series: {
  17437. dataGrouping: {
  17438. dateTimeLabelFormats: {
  17439. /* millisecond: [
  17440. '%Y-%m-%d %H:%M:%S.%L',
  17441. '%Y-%m-%d %H:%M:%S.%L',
  17442. ' ~ %H:%M:%S.%L',
  17443. ],
  17444. second: ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S', ' ~ %H:%M:%S'],
  17445. minute: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'],
  17446. hour: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'], */
  17447. day: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17448. week: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17449. month: ["%Y/%m", "%Y/%m", " ~ %Y/%m"],
  17450. year: ["%Y", "%Y", " ~ %Y"]
  17451. }
  17452. }
  17453. }
  17454. }
  17455. };
  17456. r.setOptions(C);
  17457. };
  17458. //! moment.js
  17459. //! version : 2.30.1
  17460. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  17461. //! license : MIT
  17462. //! momentjs.com
  17463. var ou;
  17464. function Xt() {
  17465. return ou.apply(null, arguments);
  17466. }
  17467. function e1(r) {
  17468. ou = r;
  17469. }
  17470. function ji(r) {
  17471. return r instanceof Array || Object.prototype.toString.call(r) === "[object Array]";
  17472. }
  17473. function $r(r) {
  17474. return r != null && Object.prototype.toString.call(r) === "[object Object]";
  17475. }
  17476. function me(r, d) {
  17477. return Object.prototype.hasOwnProperty.call(r, d);
  17478. }
  17479. function Tl(r) {
  17480. if (Object.getOwnPropertyNames)
  17481. return Object.getOwnPropertyNames(r).length === 0;
  17482. var d;
  17483. for (d in r)
  17484. if (me(r, d))
  17485. return !1;
  17486. return !0;
  17487. }
  17488. function ai(r) {
  17489. return r === void 0;
  17490. }
  17491. function ur(r) {
  17492. return typeof r == "number" || Object.prototype.toString.call(r) === "[object Number]";
  17493. }
  17494. function as(r) {
  17495. return r instanceof Date || Object.prototype.toString.call(r) === "[object Date]";
  17496. }
  17497. function au(r, d) {
  17498. var C = [], o, y = r.length;
  17499. for (o = 0; o < y; ++o)
  17500. C.push(d(r[o], o));
  17501. return C;
  17502. }
  17503. function Tr(r, d) {
  17504. for (var C in d)
  17505. me(d, C) && (r[C] = d[C]);
  17506. return me(d, "toString") && (r.toString = d.toString), me(d, "valueOf") && (r.valueOf = d.valueOf), r;
  17507. }
  17508. function $i(r, d, C, o) {
  17509. return Ou(r, d, C, o, !0).utc();
  17510. }
  17511. function i1() {
  17512. return {
  17513. empty: !1,
  17514. unusedTokens: [],
  17515. unusedInput: [],
  17516. overflow: -2,
  17517. charsLeftOver: 0,
  17518. nullInput: !1,
  17519. invalidEra: null,
  17520. invalidMonth: null,
  17521. invalidFormat: !1,
  17522. userInvalidated: !1,
  17523. iso: !1,
  17524. parsedDateParts: [],
  17525. era: null,
  17526. meridiem: null,
  17527. rfc2822: !1,
  17528. weekdayMismatch: !1
  17529. };
  17530. }
  17531. function oe(r) {
  17532. return r._pf == null && (r._pf = i1()), r._pf;
  17533. }
  17534. var dl;
  17535. Array.prototype.some ? dl = Array.prototype.some : dl = function(r) {
  17536. var d = Object(this), C = d.length >>> 0, o;
  17537. for (o = 0; o < C; o++)
  17538. if (o in d && r.call(this, d[o], o, d))
  17539. return !0;
  17540. return !1;
  17541. };
  17542. function Pl(r) {
  17543. var d = null, C = !1, o = r._d && !isNaN(r._d.getTime());
  17544. if (o && (d = oe(r), C = dl.call(d.parsedDateParts, function(y) {
  17545. return y != null;
  17546. }), o = d.overflow < 0 && !d.empty && !d.invalidEra && !d.invalidMonth && !d.invalidWeekday && !d.weekdayMismatch && !d.nullInput && !d.invalidFormat && !d.userInvalidated && (!d.meridiem || d.meridiem && C), r._strict && (o = o && d.charsLeftOver === 0 && d.unusedTokens.length === 0 && d.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(r))
  17547. r._isValid = o;
  17548. else
  17549. return o;
  17550. return r._isValid;
  17551. }
  17552. function Ao(r) {
  17553. var d = $i(NaN);
  17554. return r != null ? Tr(oe(d), r) : oe(d).userInvalidated = !0, d;
  17555. }
  17556. var Lp = Xt.momentProperties = [], il = !1;
  17557. function El(r, d) {
  17558. var C, o, y, N = Lp.length;
  17559. if (ai(d._isAMomentObject) || (r._isAMomentObject = d._isAMomentObject), ai(d._i) || (r._i = d._i), ai(d._f) || (r._f = d._f), ai(d._l) || (r._l = d._l), ai(d._strict) || (r._strict = d._strict), ai(d._tzm) || (r._tzm = d._tzm), ai(d._isUTC) || (r._isUTC = d._isUTC), ai(d._offset) || (r._offset = d._offset), ai(d._pf) || (r._pf = oe(d)), ai(d._locale) || (r._locale = d._locale), N > 0)
  17560. for (C = 0; C < N; C++)
  17561. o = Lp[C], y = d[o], ai(y) || (r[o] = y);
  17562. return r;
  17563. }
  17564. function ls(r) {
  17565. El(this, r), this._d = new Date(r._d != null ? r._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), il === !1 && (il = !0, Xt.updateOffset(this), il = !1);
  17566. }
  17567. function Wi(r) {
  17568. return r instanceof ls || r != null && r._isAMomentObject != null;
  17569. }
  17570. function lu(r) {
  17571. Xt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + r);
  17572. }
  17573. function Pi(r, d) {
  17574. var C = !0;
  17575. return Tr(function() {
  17576. if (Xt.deprecationHandler != null && Xt.deprecationHandler(null, r), C) {
  17577. var o = [], y, N, _, U = arguments.length;
  17578. for (N = 0; N < U; N++) {
  17579. if (y = "", typeof arguments[N] == "object") {
  17580. y += `
  17581. [` + N + "] ";
  17582. for (_ in arguments[0])
  17583. me(arguments[0], _) && (y += _ + ": " + arguments[0][_] + ", ");
  17584. y = y.slice(0, -2);
  17585. } else
  17586. y = arguments[N];
  17587. o.push(y);
  17588. }
  17589. lu(
  17590. r + `
  17591. Arguments: ` + Array.prototype.slice.call(o).join("") + `
  17592. ` + new Error().stack
  17593. ), C = !1;
  17594. }
  17595. return d.apply(this, arguments);
  17596. }, d);
  17597. }
  17598. var _p = {};
  17599. function hu(r, d) {
  17600. Xt.deprecationHandler != null && Xt.deprecationHandler(r, d), _p[r] || (lu(d), _p[r] = !0);
  17601. }
  17602. Xt.suppressDeprecationWarnings = !1;
  17603. Xt.deprecationHandler = null;
  17604. function Zi(r) {
  17605. return typeof Function < "u" && r instanceof Function || Object.prototype.toString.call(r) === "[object Function]";
  17606. }
  17607. function r1(r) {
  17608. var d, C;
  17609. for (C in r)
  17610. me(r, C) && (d = r[C], Zi(d) ? this[C] = d : this["_" + C] = d);
  17611. this._config = r, this._dayOfMonthOrdinalParseLenient = new RegExp(
  17612. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
  17613. );
  17614. }
  17615. function fl(r, d) {
  17616. var C = Tr({}, r), o;
  17617. for (o in d)
  17618. me(d, o) && ($r(r[o]) && $r(d[o]) ? (C[o] = {}, Tr(C[o], r[o]), Tr(C[o], d[o])) : d[o] != null ? C[o] = d[o] : delete C[o]);
  17619. for (o in r)
  17620. me(r, o) && !me(d, o) && $r(r[o]) && (C[o] = Tr({}, C[o]));
  17621. return C;
  17622. }
  17623. function Ol(r) {
  17624. r != null && this.set(r);
  17625. }
  17626. var gl;
  17627. Object.keys ? gl = Object.keys : gl = function(r) {
  17628. var d, C = [];
  17629. for (d in r)
  17630. me(r, d) && C.push(d);
  17631. return C;
  17632. };
  17633. var n1 = {
  17634. sameDay: "[Today at] LT",
  17635. nextDay: "[Tomorrow at] LT",
  17636. nextWeek: "dddd [at] LT",
  17637. lastDay: "[Yesterday at] LT",
  17638. lastWeek: "[Last] dddd [at] LT",
  17639. sameElse: "L"
  17640. };
  17641. function s1(r, d, C) {
  17642. var o = this._calendar[r] || this._calendar.sameElse;
  17643. return Zi(o) ? o.call(d, C) : o;
  17644. }
  17645. function Vi(r, d, C) {
  17646. var o = "" + Math.abs(r), y = d - o.length, N = r >= 0;
  17647. return (N ? C ? "+" : "" : "-") + Math.pow(10, Math.max(0, y)).toString().substr(1) + o;
  17648. }
  17649. var Ll = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, ro = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, rl = {}, vn = {};
  17650. function Zt(r, d, C, o) {
  17651. var y = o;
  17652. typeof o == "string" && (y = function() {
  17653. return this[o]();
  17654. }), r && (vn[r] = y), d && (vn[d[0]] = function() {
  17655. return Vi(y.apply(this, arguments), d[1], d[2]);
  17656. }), C && (vn[C] = function() {
  17657. return this.localeData().ordinal(
  17658. y.apply(this, arguments),
  17659. r
  17660. );
  17661. });
  17662. }
  17663. function o1(r) {
  17664. return r.match(/\[[\s\S]/) ? r.replace(/^\[|\]$/g, "") : r.replace(/\\/g, "");
  17665. }
  17666. function a1(r) {
  17667. var d = r.match(Ll), C, o;
  17668. for (C = 0, o = d.length; C < o; C++)
  17669. vn[d[C]] ? d[C] = vn[d[C]] : d[C] = o1(d[C]);
  17670. return function(y) {
  17671. var N = "", _;
  17672. for (_ = 0; _ < o; _++)
  17673. N += Zi(d[_]) ? d[_].call(y, r) : d[_];
  17674. return N;
  17675. };
  17676. }
  17677. function oo(r, d) {
  17678. return r.isValid() ? (d = cu(d, r.localeData()), rl[d] = rl[d] || a1(d), rl[d](r)) : r.localeData().invalidDate();
  17679. }
  17680. function cu(r, d) {
  17681. var C = 5;
  17682. function o(y) {
  17683. return d.longDateFormat(y) || y;
  17684. }
  17685. for (ro.lastIndex = 0; C >= 0 && ro.test(r); )
  17686. r = r.replace(
  17687. ro,
  17688. o
  17689. ), ro.lastIndex = 0, C -= 1;
  17690. return r;
  17691. }
  17692. var l1 = {
  17693. LTS: "h:mm:ss A",
  17694. LT: "h:mm A",
  17695. L: "MM/DD/YYYY",
  17696. LL: "MMMM D, YYYY",
  17697. LLL: "MMMM D, YYYY h:mm A",
  17698. LLLL: "dddd, MMMM D, YYYY h:mm A"
  17699. };
  17700. function h1(r) {
  17701. var d = this._longDateFormat[r], C = this._longDateFormat[r.toUpperCase()];
  17702. return d || !C ? d : (this._longDateFormat[r] = C.match(Ll).map(function(o) {
  17703. return o === "MMMM" || o === "MM" || o === "DD" || o === "dddd" ? o.slice(1) : o;
  17704. }).join(""), this._longDateFormat[r]);
  17705. }
  17706. var c1 = "Invalid date";
  17707. function p1() {
  17708. return this._invalidDate;
  17709. }
  17710. var u1 = "%d", d1 = /\d{1,2}/;
  17711. function f1(r) {
  17712. return this._ordinal.replace("%d", r);
  17713. }
  17714. var g1 = {
  17715. future: "in %s",
  17716. past: "%s ago",
  17717. s: "a few seconds",
  17718. ss: "%d seconds",
  17719. m: "a minute",
  17720. mm: "%d minutes",
  17721. h: "an hour",
  17722. hh: "%d hours",
  17723. d: "a day",
  17724. dd: "%d days",
  17725. w: "a week",
  17726. ww: "%d weeks",
  17727. M: "a month",
  17728. MM: "%d months",
  17729. y: "a year",
  17730. yy: "%d years"
  17731. };
  17732. function m1(r, d, C, o) {
  17733. var y = this._relativeTime[C];
  17734. return Zi(y) ? y(r, d, C, o) : y.replace(/%d/i, r);
  17735. }
  17736. function y1(r, d) {
  17737. var C = this._relativeTime[r > 0 ? "future" : "past"];
  17738. return Zi(C) ? C(d) : C.replace(/%s/i, d);
  17739. }
  17740. var Dp = {
  17741. D: "date",
  17742. dates: "date",
  17743. date: "date",
  17744. d: "day",
  17745. days: "day",
  17746. day: "day",
  17747. e: "weekday",
  17748. weekdays: "weekday",
  17749. weekday: "weekday",
  17750. E: "isoWeekday",
  17751. isoweekdays: "isoWeekday",
  17752. isoweekday: "isoWeekday",
  17753. DDD: "dayOfYear",
  17754. dayofyears: "dayOfYear",
  17755. dayofyear: "dayOfYear",
  17756. h: "hour",
  17757. hours: "hour",
  17758. hour: "hour",
  17759. ms: "millisecond",
  17760. milliseconds: "millisecond",
  17761. millisecond: "millisecond",
  17762. m: "minute",
  17763. minutes: "minute",
  17764. minute: "minute",
  17765. M: "month",
  17766. months: "month",
  17767. month: "month",
  17768. Q: "quarter",
  17769. quarters: "quarter",
  17770. quarter: "quarter",
  17771. s: "second",
  17772. seconds: "second",
  17773. second: "second",
  17774. gg: "weekYear",
  17775. weekyears: "weekYear",
  17776. weekyear: "weekYear",
  17777. GG: "isoWeekYear",
  17778. isoweekyears: "isoWeekYear",
  17779. isoweekyear: "isoWeekYear",
  17780. w: "week",
  17781. weeks: "week",
  17782. week: "week",
  17783. W: "isoWeek",
  17784. isoweeks: "isoWeek",
  17785. isoweek: "isoWeek",
  17786. y: "year",
  17787. years: "year",
  17788. year: "year"
  17789. };
  17790. function Ei(r) {
  17791. return typeof r == "string" ? Dp[r] || Dp[r.toLowerCase()] : void 0;
  17792. }
  17793. function _l(r) {
  17794. var d = {}, C, o;
  17795. for (o in r)
  17796. me(r, o) && (C = Ei(o), C && (d[C] = r[o]));
  17797. return d;
  17798. }
  17799. var v1 = {
  17800. date: 9,
  17801. day: 11,
  17802. weekday: 11,
  17803. isoWeekday: 11,
  17804. dayOfYear: 4,
  17805. hour: 13,
  17806. millisecond: 16,
  17807. minute: 14,
  17808. month: 8,
  17809. quarter: 7,
  17810. second: 15,
  17811. weekYear: 1,
  17812. isoWeekYear: 1,
  17813. week: 5,
  17814. isoWeek: 5,
  17815. year: 1
  17816. };
  17817. function x1(r) {
  17818. var d = [], C;
  17819. for (C in r)
  17820. me(r, C) && d.push({ unit: C, priority: v1[C] });
  17821. return d.sort(function(o, y) {
  17822. return o.priority - y.priority;
  17823. }), d;
  17824. }
  17825. var pu = /\d/, mi = /\d\d/, uu = /\d{3}/, Dl = /\d{4}/, To = /[+-]?\d{6}/, Pe = /\d\d?/, du = /\d\d\d\d?/, fu = /\d\d\d\d\d\d?/, Po = /\d{1,3}/, Il = /\d{1,4}/, Eo = /[+-]?\d{1,6}/, Cn = /\d+/, Oo = /[+-]?\d+/, b1 = /Z|[+-]\d\d:?\d\d/gi, Lo = /Z|[+-]\d\d(?::?\d\d)?/gi, S1 = /[+-]?\d+(\.\d{1,3})?/, hs = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, kn = /^[1-9]\d?/, Rl = /^([1-9]\d|\d)/, mo;
  17826. mo = {};
  17827. function Ft(r, d, C) {
  17828. mo[r] = Zi(d) ? d : function(o, y) {
  17829. return o && C ? C : d;
  17830. };
  17831. }
  17832. function w1(r, d) {
  17833. return me(mo, r) ? mo[r](d._strict, d._locale) : new RegExp(M1(r));
  17834. }
  17835. function M1(r) {
  17836. return cr(
  17837. r.replace("\\", "").replace(
  17838. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  17839. function(d, C, o, y, N) {
  17840. return C || o || y || N;
  17841. }
  17842. )
  17843. );
  17844. }
  17845. function cr(r) {
  17846. return r.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
  17847. }
  17848. function ki(r) {
  17849. return r < 0 ? Math.ceil(r) || 0 : Math.floor(r);
  17850. }
  17851. function pe(r) {
  17852. var d = +r, C = 0;
  17853. return d !== 0 && isFinite(d) && (C = ki(d)), C;
  17854. }
  17855. var ml = {};
  17856. function we(r, d) {
  17857. var C, o = d, y;
  17858. for (typeof r == "string" && (r = [r]), ur(d) && (o = function(N, _) {
  17859. _[d] = pe(N);
  17860. }), y = r.length, C = 0; C < y; C++)
  17861. ml[r[C]] = o;
  17862. }
  17863. function cs(r, d) {
  17864. we(r, function(C, o, y, N) {
  17865. y._w = y._w || {}, d(C, y._w, y, N);
  17866. });
  17867. }
  17868. function C1(r, d, C) {
  17869. d != null && me(ml, r) && ml[r](d, C._a, C, r);
  17870. }
  17871. function _o(r) {
  17872. return r % 4 === 0 && r % 100 !== 0 || r % 400 === 0;
  17873. }
  17874. var Qe = 0, lr = 1, Ui = 2, Ge = 3, Ri = 4, hr = 5, Hr = 6, k1 = 7, A1 = 8;
  17875. Zt("Y", 0, 0, function() {
  17876. var r = this.year();
  17877. return r <= 9999 ? Vi(r, 4) : "+" + r;
  17878. });
  17879. Zt(0, ["YY", 2], 0, function() {
  17880. return this.year() % 100;
  17881. });
  17882. Zt(0, ["YYYY", 4], 0, "year");
  17883. Zt(0, ["YYYYY", 5], 0, "year");
  17884. Zt(0, ["YYYYYY", 6, !0], 0, "year");
  17885. Ft("Y", Oo);
  17886. Ft("YY", Pe, mi);
  17887. Ft("YYYY", Il, Dl);
  17888. Ft("YYYYY", Eo, To);
  17889. Ft("YYYYYY", Eo, To);
  17890. we(["YYYYY", "YYYYYY"], Qe);
  17891. we("YYYY", function(r, d) {
  17892. d[Qe] = r.length === 2 ? Xt.parseTwoDigitYear(r) : pe(r);
  17893. });
  17894. we("YY", function(r, d) {
  17895. d[Qe] = Xt.parseTwoDigitYear(r);
  17896. });
  17897. we("Y", function(r, d) {
  17898. d[Qe] = parseInt(r, 10);
  17899. });
  17900. function Qn(r) {
  17901. return _o(r) ? 366 : 365;
  17902. }
  17903. Xt.parseTwoDigitYear = function(r) {
  17904. return pe(r) + (pe(r) > 68 ? 1900 : 2e3);
  17905. };
  17906. var gu = An("FullYear", !0);
  17907. function T1() {
  17908. return _o(this.year());
  17909. }
  17910. function An(r, d) {
  17911. return function(C) {
  17912. return C != null ? (mu(this, r, C), Xt.updateOffset(this, d), this) : es(this, r);
  17913. };
  17914. }
  17915. function es(r, d) {
  17916. if (!r.isValid())
  17917. return NaN;
  17918. var C = r._d, o = r._isUTC;
  17919. switch (d) {
  17920. case "Milliseconds":
  17921. return o ? C.getUTCMilliseconds() : C.getMilliseconds();
  17922. case "Seconds":
  17923. return o ? C.getUTCSeconds() : C.getSeconds();
  17924. case "Minutes":
  17925. return o ? C.getUTCMinutes() : C.getMinutes();
  17926. case "Hours":
  17927. return o ? C.getUTCHours() : C.getHours();
  17928. case "Date":
  17929. return o ? C.getUTCDate() : C.getDate();
  17930. case "Day":
  17931. return o ? C.getUTCDay() : C.getDay();
  17932. case "Month":
  17933. return o ? C.getUTCMonth() : C.getMonth();
  17934. case "FullYear":
  17935. return o ? C.getUTCFullYear() : C.getFullYear();
  17936. default:
  17937. return NaN;
  17938. }
  17939. }
  17940. function mu(r, d, C) {
  17941. var o, y, N, _, U;
  17942. if (!(!r.isValid() || isNaN(C))) {
  17943. switch (o = r._d, y = r._isUTC, d) {
  17944. case "Milliseconds":
  17945. return void (y ? o.setUTCMilliseconds(C) : o.setMilliseconds(C));
  17946. case "Seconds":
  17947. return void (y ? o.setUTCSeconds(C) : o.setSeconds(C));
  17948. case "Minutes":
  17949. return void (y ? o.setUTCMinutes(C) : o.setMinutes(C));
  17950. case "Hours":
  17951. return void (y ? o.setUTCHours(C) : o.setHours(C));
  17952. case "Date":
  17953. return void (y ? o.setUTCDate(C) : o.setDate(C));
  17954. case "FullYear":
  17955. break;
  17956. default:
  17957. return;
  17958. }
  17959. N = C, _ = r.month(), U = r.date(), U = U === 29 && _ === 1 && !_o(N) ? 28 : U, y ? o.setUTCFullYear(N, _, U) : o.setFullYear(N, _, U);
  17960. }
  17961. }
  17962. function P1(r) {
  17963. return r = Ei(r), Zi(this[r]) ? this[r]() : this;
  17964. }
  17965. function E1(r, d) {
  17966. if (typeof r == "object") {
  17967. r = _l(r);
  17968. var C = x1(r), o, y = C.length;
  17969. for (o = 0; o < y; o++)
  17970. this[C[o].unit](r[C[o].unit]);
  17971. } else if (r = Ei(r), Zi(this[r]))
  17972. return this[r](d);
  17973. return this;
  17974. }
  17975. function O1(r, d) {
  17976. return (r % d + d) % d;
  17977. }
  17978. var We;
  17979. Array.prototype.indexOf ? We = Array.prototype.indexOf : We = function(r) {
  17980. var d;
  17981. for (d = 0; d < this.length; ++d)
  17982. if (this[d] === r)
  17983. return d;
  17984. return -1;
  17985. };
  17986. function Nl(r, d) {
  17987. if (isNaN(r) || isNaN(d))
  17988. return NaN;
  17989. var C = O1(d, 12);
  17990. return r += (d - C) / 12, C === 1 ? _o(r) ? 29 : 28 : 31 - C % 7 % 2;
  17991. }
  17992. Zt("M", ["MM", 2], "Mo", function() {
  17993. return this.month() + 1;
  17994. });
  17995. Zt("MMM", 0, 0, function(r) {
  17996. return this.localeData().monthsShort(this, r);
  17997. });
  17998. Zt("MMMM", 0, 0, function(r) {
  17999. return this.localeData().months(this, r);
  18000. });
  18001. Ft("M", Pe, kn);
  18002. Ft("MM", Pe, mi);
  18003. Ft("MMM", function(r, d) {
  18004. return d.monthsShortRegex(r);
  18005. });
  18006. Ft("MMMM", function(r, d) {
  18007. return d.monthsRegex(r);
  18008. });
  18009. we(["M", "MM"], function(r, d) {
  18010. d[lr] = pe(r) - 1;
  18011. });
  18012. we(["MMM", "MMMM"], function(r, d, C, o) {
  18013. var y = C._locale.monthsParse(r, o, C._strict);
  18014. y != null ? d[lr] = y : oe(C).invalidMonth = r;
  18015. });
  18016. var L1 = "January_February_March_April_May_June_July_August_September_October_November_December".split(
  18017. "_"
  18018. ), yu = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), vu = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, _1 = hs, D1 = hs;
  18019. function I1(r, d) {
  18020. return r ? ji(this._months) ? this._months[r.month()] : this._months[(this._months.isFormat || vu).test(d) ? "format" : "standalone"][r.month()] : ji(this._months) ? this._months : this._months.standalone;
  18021. }
  18022. function R1(r, d) {
  18023. return r ? ji(this._monthsShort) ? this._monthsShort[r.month()] : this._monthsShort[vu.test(d) ? "format" : "standalone"][r.month()] : ji(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
  18024. }
  18025. function N1(r, d, C) {
  18026. var o, y, N, _ = r.toLocaleLowerCase();
  18027. if (!this._monthsParse)
  18028. for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], o = 0; o < 12; ++o)
  18029. N = $i([2e3, o]), this._shortMonthsParse[o] = this.monthsShort(
  18030. N,
  18031. ""
  18032. ).toLocaleLowerCase(), this._longMonthsParse[o] = this.months(N, "").toLocaleLowerCase();
  18033. return C ? d === "MMM" ? (y = We.call(this._shortMonthsParse, _), y !== -1 ? y : null) : (y = We.call(this._longMonthsParse, _), y !== -1 ? y : null) : d === "MMM" ? (y = We.call(this._shortMonthsParse, _), y !== -1 ? y : (y = We.call(this._longMonthsParse, _), y !== -1 ? y : null)) : (y = We.call(this._longMonthsParse, _), y !== -1 ? y : (y = We.call(this._shortMonthsParse, _), y !== -1 ? y : null));
  18034. }
  18035. function B1(r, d, C) {
  18036. var o, y, N;
  18037. if (this._monthsParseExact)
  18038. return N1.call(this, r, d, C);
  18039. for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), o = 0; o < 12; o++) {
  18040. if (y = $i([2e3, o]), C && !this._longMonthsParse[o] && (this._longMonthsParse[o] = new RegExp(
  18041. "^" + this.months(y, "").replace(".", "") + "$",
  18042. "i"
  18043. ), this._shortMonthsParse[o] = new RegExp(
  18044. "^" + this.monthsShort(y, "").replace(".", "") + "$",
  18045. "i"
  18046. )), !C && !this._monthsParse[o] && (N = "^" + this.months(y, "") + "|^" + this.monthsShort(y, ""), this._monthsParse[o] = new RegExp(N.replace(".", ""), "i")), C && d === "MMMM" && this._longMonthsParse[o].test(r))
  18047. return o;
  18048. if (C && d === "MMM" && this._shortMonthsParse[o].test(r))
  18049. return o;
  18050. if (!C && this._monthsParse[o].test(r))
  18051. return o;
  18052. }
  18053. }
  18054. function xu(r, d) {
  18055. if (!r.isValid())
  18056. return r;
  18057. if (typeof d == "string") {
  18058. if (/^\d+$/.test(d))
  18059. d = pe(d);
  18060. else if (d = r.localeData().monthsParse(d), !ur(d))
  18061. return r;
  18062. }
  18063. var C = d, o = r.date();
  18064. return o = o < 29 ? o : Math.min(o, Nl(r.year(), C)), r._isUTC ? r._d.setUTCMonth(C, o) : r._d.setMonth(C, o), r;
  18065. }
  18066. function bu(r) {
  18067. return r != null ? (xu(this, r), Xt.updateOffset(this, !0), this) : es(this, "Month");
  18068. }
  18069. function j1() {
  18070. return Nl(this.year(), this.month());
  18071. }
  18072. function W1(r) {
  18073. return this._monthsParseExact ? (me(this, "_monthsRegex") || Su.call(this), r ? this._monthsShortStrictRegex : this._monthsShortRegex) : (me(this, "_monthsShortRegex") || (this._monthsShortRegex = _1), this._monthsShortStrictRegex && r ? this._monthsShortStrictRegex : this._monthsShortRegex);
  18074. }
  18075. function Y1(r) {
  18076. return this._monthsParseExact ? (me(this, "_monthsRegex") || Su.call(this), r ? this._monthsStrictRegex : this._monthsRegex) : (me(this, "_monthsRegex") || (this._monthsRegex = D1), this._monthsStrictRegex && r ? this._monthsStrictRegex : this._monthsRegex);
  18077. }
  18078. function Su() {
  18079. function r(G, V) {
  18080. return V.length - G.length;
  18081. }
  18082. var d = [], C = [], o = [], y, N, _, U;
  18083. for (y = 0; y < 12; y++)
  18084. N = $i([2e3, y]), _ = cr(this.monthsShort(N, "")), U = cr(this.months(N, "")), d.push(_), C.push(U), o.push(U), o.push(_);
  18085. d.sort(r), C.sort(r), o.sort(r), this._monthsRegex = new RegExp("^(" + o.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
  18086. "^(" + C.join("|") + ")",
  18087. "i"
  18088. ), this._monthsShortStrictRegex = new RegExp(
  18089. "^(" + d.join("|") + ")",
  18090. "i"
  18091. );
  18092. }
  18093. function z1(r, d, C, o, y, N, _) {
  18094. var U;
  18095. return r < 100 && r >= 0 ? (U = new Date(r + 400, d, C, o, y, N, _), isFinite(U.getFullYear()) && U.setFullYear(r)) : U = new Date(r, d, C, o, y, N, _), U;
  18096. }
  18097. function is(r) {
  18098. var d, C;
  18099. return r < 100 && r >= 0 ? (C = Array.prototype.slice.call(arguments), C[0] = r + 400, d = new Date(Date.UTC.apply(null, C)), isFinite(d.getUTCFullYear()) && d.setUTCFullYear(r)) : d = new Date(Date.UTC.apply(null, arguments)), d;
  18100. }
  18101. function yo(r, d, C) {
  18102. var o = 7 + d - C, y = (7 + is(r, 0, o).getUTCDay() - d) % 7;
  18103. return -y + o - 1;
  18104. }
  18105. function wu(r, d, C, o, y) {
  18106. var N = (7 + C - o) % 7, _ = yo(r, o, y), U = 1 + 7 * (d - 1) + N + _, G, V;
  18107. return U <= 0 ? (G = r - 1, V = Qn(G) + U) : U > Qn(r) ? (G = r + 1, V = U - Qn(r)) : (G = r, V = U), {
  18108. year: G,
  18109. dayOfYear: V
  18110. };
  18111. }
  18112. function rs(r, d, C) {
  18113. var o = yo(r.year(), d, C), y = Math.floor((r.dayOfYear() - o - 1) / 7) + 1, N, _;
  18114. return y < 1 ? (_ = r.year() - 1, N = y + pr(_, d, C)) : y > pr(r.year(), d, C) ? (N = y - pr(r.year(), d, C), _ = r.year() + 1) : (_ = r.year(), N = y), {
  18115. week: N,
  18116. year: _
  18117. };
  18118. }
  18119. function pr(r, d, C) {
  18120. var o = yo(r, d, C), y = yo(r + 1, d, C);
  18121. return (Qn(r) - o + y) / 7;
  18122. }
  18123. Zt("w", ["ww", 2], "wo", "week");
  18124. Zt("W", ["WW", 2], "Wo", "isoWeek");
  18125. Ft("w", Pe, kn);
  18126. Ft("ww", Pe, mi);
  18127. Ft("W", Pe, kn);
  18128. Ft("WW", Pe, mi);
  18129. cs(
  18130. ["w", "ww", "W", "WW"],
  18131. function(r, d, C, o) {
  18132. d[o.substr(0, 1)] = pe(r);
  18133. }
  18134. );
  18135. function X1(r) {
  18136. return rs(r, this._week.dow, this._week.doy).week;
  18137. }
  18138. var G1 = {
  18139. dow: 0,
  18140. // Sunday is the first day of the week.
  18141. doy: 6
  18142. // The week that contains Jan 6th is the first week of the year.
  18143. };
  18144. function H1() {
  18145. return this._week.dow;
  18146. }
  18147. function F1() {
  18148. return this._week.doy;
  18149. }
  18150. function U1(r) {
  18151. var d = this.localeData().week(this);
  18152. return r == null ? d : this.add((r - d) * 7, "d");
  18153. }
  18154. function V1(r) {
  18155. var d = rs(this, 1, 4).week;
  18156. return r == null ? d : this.add((r - d) * 7, "d");
  18157. }
  18158. Zt("d", 0, "do", "day");
  18159. Zt("dd", 0, 0, function(r) {
  18160. return this.localeData().weekdaysMin(this, r);
  18161. });
  18162. Zt("ddd", 0, 0, function(r) {
  18163. return this.localeData().weekdaysShort(this, r);
  18164. });
  18165. Zt("dddd", 0, 0, function(r) {
  18166. return this.localeData().weekdays(this, r);
  18167. });
  18168. Zt("e", 0, 0, "weekday");
  18169. Zt("E", 0, 0, "isoWeekday");
  18170. Ft("d", Pe);
  18171. Ft("e", Pe);
  18172. Ft("E", Pe);
  18173. Ft("dd", function(r, d) {
  18174. return d.weekdaysMinRegex(r);
  18175. });
  18176. Ft("ddd", function(r, d) {
  18177. return d.weekdaysShortRegex(r);
  18178. });
  18179. Ft("dddd", function(r, d) {
  18180. return d.weekdaysRegex(r);
  18181. });
  18182. cs(["dd", "ddd", "dddd"], function(r, d, C, o) {
  18183. var y = C._locale.weekdaysParse(r, o, C._strict);
  18184. y != null ? d.d = y : oe(C).invalidWeekday = r;
  18185. });
  18186. cs(["d", "e", "E"], function(r, d, C, o) {
  18187. d[o] = pe(r);
  18188. });
  18189. function $1(r, d) {
  18190. return typeof r != "string" ? r : isNaN(r) ? (r = d.weekdaysParse(r), typeof r == "number" ? r : null) : parseInt(r, 10);
  18191. }
  18192. function Z1(r, d) {
  18193. return typeof r == "string" ? d.weekdaysParse(r) % 7 || 7 : isNaN(r) ? null : r;
  18194. }
  18195. function Bl(r, d) {
  18196. return r.slice(d, 7).concat(r.slice(0, d));
  18197. }
  18198. var K1 = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Mu = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), J1 = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), q1 = hs, Q1 = hs, tb = hs;
  18199. function eb(r, d) {
  18200. var C = ji(this._weekdays) ? this._weekdays : this._weekdays[r && r !== !0 && this._weekdays.isFormat.test(d) ? "format" : "standalone"];
  18201. return r === !0 ? Bl(C, this._week.dow) : r ? C[r.day()] : C;
  18202. }
  18203. function ib(r) {
  18204. return r === !0 ? Bl(this._weekdaysShort, this._week.dow) : r ? this._weekdaysShort[r.day()] : this._weekdaysShort;
  18205. }
  18206. function rb(r) {
  18207. return r === !0 ? Bl(this._weekdaysMin, this._week.dow) : r ? this._weekdaysMin[r.day()] : this._weekdaysMin;
  18208. }
  18209. function nb(r, d, C) {
  18210. var o, y, N, _ = r.toLocaleLowerCase();
  18211. if (!this._weekdaysParse)
  18212. for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], o = 0; o < 7; ++o)
  18213. N = $i([2e3, 1]).day(o), this._minWeekdaysParse[o] = this.weekdaysMin(
  18214. N,
  18215. ""
  18216. ).toLocaleLowerCase(), this._shortWeekdaysParse[o] = this.weekdaysShort(
  18217. N,
  18218. ""
  18219. ).toLocaleLowerCase(), this._weekdaysParse[o] = this.weekdays(N, "").toLocaleLowerCase();
  18220. return C ? d === "dddd" ? (y = We.call(this._weekdaysParse, _), y !== -1 ? y : null) : d === "ddd" ? (y = We.call(this._shortWeekdaysParse, _), y !== -1 ? y : null) : (y = We.call(this._minWeekdaysParse, _), y !== -1 ? y : null) : d === "dddd" ? (y = We.call(this._weekdaysParse, _), y !== -1 || (y = We.call(this._shortWeekdaysParse, _), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, _), y !== -1 ? y : null)) : d === "ddd" ? (y = We.call(this._shortWeekdaysParse, _), y !== -1 || (y = We.call(this._weekdaysParse, _), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, _), y !== -1 ? y : null)) : (y = We.call(this._minWeekdaysParse, _), y !== -1 || (y = We.call(this._weekdaysParse, _), y !== -1) ? y : (y = We.call(this._shortWeekdaysParse, _), y !== -1 ? y : null));
  18221. }
  18222. function sb(r, d, C) {
  18223. var o, y, N;
  18224. if (this._weekdaysParseExact)
  18225. return nb.call(this, r, d, C);
  18226. for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), o = 0; o < 7; o++) {
  18227. if (y = $i([2e3, 1]).day(o), C && !this._fullWeekdaysParse[o] && (this._fullWeekdaysParse[o] = new RegExp(
  18228. "^" + this.weekdays(y, "").replace(".", "\\.?") + "$",
  18229. "i"
  18230. ), this._shortWeekdaysParse[o] = new RegExp(
  18231. "^" + this.weekdaysShort(y, "").replace(".", "\\.?") + "$",
  18232. "i"
  18233. ), this._minWeekdaysParse[o] = new RegExp(
  18234. "^" + this.weekdaysMin(y, "").replace(".", "\\.?") + "$",
  18235. "i"
  18236. )), this._weekdaysParse[o] || (N = "^" + this.weekdays(y, "") + "|^" + this.weekdaysShort(y, "") + "|^" + this.weekdaysMin(y, ""), this._weekdaysParse[o] = new RegExp(N.replace(".", ""), "i")), C && d === "dddd" && this._fullWeekdaysParse[o].test(r))
  18237. return o;
  18238. if (C && d === "ddd" && this._shortWeekdaysParse[o].test(r))
  18239. return o;
  18240. if (C && d === "dd" && this._minWeekdaysParse[o].test(r))
  18241. return o;
  18242. if (!C && this._weekdaysParse[o].test(r))
  18243. return o;
  18244. }
  18245. }
  18246. function ob(r) {
  18247. if (!this.isValid())
  18248. return r != null ? this : NaN;
  18249. var d = es(this, "Day");
  18250. return r != null ? (r = $1(r, this.localeData()), this.add(r - d, "d")) : d;
  18251. }
  18252. function ab(r) {
  18253. if (!this.isValid())
  18254. return r != null ? this : NaN;
  18255. var d = (this.day() + 7 - this.localeData()._week.dow) % 7;
  18256. return r == null ? d : this.add(r - d, "d");
  18257. }
  18258. function lb(r) {
  18259. if (!this.isValid())
  18260. return r != null ? this : NaN;
  18261. if (r != null) {
  18262. var d = Z1(r, this.localeData());
  18263. return this.day(this.day() % 7 ? d : d - 7);
  18264. } else
  18265. return this.day() || 7;
  18266. }
  18267. function hb(r) {
  18268. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || jl.call(this), r ? this._weekdaysStrictRegex : this._weekdaysRegex) : (me(this, "_weekdaysRegex") || (this._weekdaysRegex = q1), this._weekdaysStrictRegex && r ? this._weekdaysStrictRegex : this._weekdaysRegex);
  18269. }
  18270. function cb(r) {
  18271. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || jl.call(this), r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (me(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Q1), this._weekdaysShortStrictRegex && r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
  18272. }
  18273. function pb(r) {
  18274. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || jl.call(this), r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (me(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = tb), this._weekdaysMinStrictRegex && r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
  18275. }
  18276. function jl() {
  18277. function r(F, B) {
  18278. return B.length - F.length;
  18279. }
  18280. var d = [], C = [], o = [], y = [], N, _, U, G, V;
  18281. for (N = 0; N < 7; N++)
  18282. _ = $i([2e3, 1]).day(N), U = cr(this.weekdaysMin(_, "")), G = cr(this.weekdaysShort(_, "")), V = cr(this.weekdays(_, "")), d.push(U), C.push(G), o.push(V), y.push(U), y.push(G), y.push(V);
  18283. d.sort(r), C.sort(r), o.sort(r), y.sort(r), this._weekdaysRegex = new RegExp("^(" + y.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
  18284. "^(" + o.join("|") + ")",
  18285. "i"
  18286. ), this._weekdaysShortStrictRegex = new RegExp(
  18287. "^(" + C.join("|") + ")",
  18288. "i"
  18289. ), this._weekdaysMinStrictRegex = new RegExp(
  18290. "^(" + d.join("|") + ")",
  18291. "i"
  18292. );
  18293. }
  18294. function Wl() {
  18295. return this.hours() % 12 || 12;
  18296. }
  18297. function ub() {
  18298. return this.hours() || 24;
  18299. }
  18300. Zt("H", ["HH", 2], 0, "hour");
  18301. Zt("h", ["hh", 2], 0, Wl);
  18302. Zt("k", ["kk", 2], 0, ub);
  18303. Zt("hmm", 0, 0, function() {
  18304. return "" + Wl.apply(this) + Vi(this.minutes(), 2);
  18305. });
  18306. Zt("hmmss", 0, 0, function() {
  18307. return "" + Wl.apply(this) + Vi(this.minutes(), 2) + Vi(this.seconds(), 2);
  18308. });
  18309. Zt("Hmm", 0, 0, function() {
  18310. return "" + this.hours() + Vi(this.minutes(), 2);
  18311. });
  18312. Zt("Hmmss", 0, 0, function() {
  18313. return "" + this.hours() + Vi(this.minutes(), 2) + Vi(this.seconds(), 2);
  18314. });
  18315. function Cu(r, d) {
  18316. Zt(r, 0, 0, function() {
  18317. return this.localeData().meridiem(
  18318. this.hours(),
  18319. this.minutes(),
  18320. d
  18321. );
  18322. });
  18323. }
  18324. Cu("a", !0);
  18325. Cu("A", !1);
  18326. function ku(r, d) {
  18327. return d._meridiemParse;
  18328. }
  18329. Ft("a", ku);
  18330. Ft("A", ku);
  18331. Ft("H", Pe, Rl);
  18332. Ft("h", Pe, kn);
  18333. Ft("k", Pe, kn);
  18334. Ft("HH", Pe, mi);
  18335. Ft("hh", Pe, mi);
  18336. Ft("kk", Pe, mi);
  18337. Ft("hmm", du);
  18338. Ft("hmmss", fu);
  18339. Ft("Hmm", du);
  18340. Ft("Hmmss", fu);
  18341. we(["H", "HH"], Ge);
  18342. we(["k", "kk"], function(r, d, C) {
  18343. var o = pe(r);
  18344. d[Ge] = o === 24 ? 0 : o;
  18345. });
  18346. we(["a", "A"], function(r, d, C) {
  18347. C._isPm = C._locale.isPM(r), C._meridiem = r;
  18348. });
  18349. we(["h", "hh"], function(r, d, C) {
  18350. d[Ge] = pe(r), oe(C).bigHour = !0;
  18351. });
  18352. we("hmm", function(r, d, C) {
  18353. var o = r.length - 2;
  18354. d[Ge] = pe(r.substr(0, o)), d[Ri] = pe(r.substr(o)), oe(C).bigHour = !0;
  18355. });
  18356. we("hmmss", function(r, d, C) {
  18357. var o = r.length - 4, y = r.length - 2;
  18358. d[Ge] = pe(r.substr(0, o)), d[Ri] = pe(r.substr(o, 2)), d[hr] = pe(r.substr(y)), oe(C).bigHour = !0;
  18359. });
  18360. we("Hmm", function(r, d, C) {
  18361. var o = r.length - 2;
  18362. d[Ge] = pe(r.substr(0, o)), d[Ri] = pe(r.substr(o));
  18363. });
  18364. we("Hmmss", function(r, d, C) {
  18365. var o = r.length - 4, y = r.length - 2;
  18366. d[Ge] = pe(r.substr(0, o)), d[Ri] = pe(r.substr(o, 2)), d[hr] = pe(r.substr(y));
  18367. });
  18368. function db(r) {
  18369. return (r + "").toLowerCase().charAt(0) === "p";
  18370. }
  18371. var fb = /[ap]\.?m?\.?/i, gb = An("Hours", !0);
  18372. function mb(r, d, C) {
  18373. return r > 11 ? C ? "pm" : "PM" : C ? "am" : "AM";
  18374. }
  18375. var Au = {
  18376. calendar: n1,
  18377. longDateFormat: l1,
  18378. invalidDate: c1,
  18379. ordinal: u1,
  18380. dayOfMonthOrdinalParse: d1,
  18381. relativeTime: g1,
  18382. months: L1,
  18383. monthsShort: yu,
  18384. week: G1,
  18385. weekdays: K1,
  18386. weekdaysMin: J1,
  18387. weekdaysShort: Mu,
  18388. meridiemParse: fb
  18389. }, Oe = {}, Zn = {}, ns;
  18390. function yb(r, d) {
  18391. var C, o = Math.min(r.length, d.length);
  18392. for (C = 0; C < o; C += 1)
  18393. if (r[C] !== d[C])
  18394. return C;
  18395. return o;
  18396. }
  18397. function Ip(r) {
  18398. return r && r.toLowerCase().replace("_", "-");
  18399. }
  18400. function vb(r) {
  18401. for (var d = 0, C, o, y, N; d < r.length; ) {
  18402. for (N = Ip(r[d]).split("-"), C = N.length, o = Ip(r[d + 1]), o = o ? o.split("-") : null; C > 0; ) {
  18403. if (y = Do(N.slice(0, C).join("-")), y)
  18404. return y;
  18405. if (o && o.length >= C && yb(N, o) >= C - 1)
  18406. break;
  18407. C--;
  18408. }
  18409. d++;
  18410. }
  18411. return ns;
  18412. }
  18413. function xb(r) {
  18414. return !!(r && r.match("^[^/\\\\]*$"));
  18415. }
  18416. function Do(r) {
  18417. var d = null, C;
  18418. if (Oe[r] === void 0 && typeof module < "u" && module && module.exports && xb(r))
  18419. try {
  18420. d = ns._abbr, C = require, C("./locale/" + r), Er(d);
  18421. } catch {
  18422. Oe[r] = null;
  18423. }
  18424. return Oe[r];
  18425. }
  18426. function Er(r, d) {
  18427. var C;
  18428. return r && (ai(d) ? C = fr(r) : C = Yl(r, d), C ? ns = C : typeof console < "u" && console.warn && console.warn(
  18429. "Locale " + r + " not found. Did you forget to load it?"
  18430. )), ns._abbr;
  18431. }
  18432. function Yl(r, d) {
  18433. if (d !== null) {
  18434. var C, o = Au;
  18435. if (d.abbr = r, Oe[r] != null)
  18436. hu(
  18437. "defineLocaleOverride",
  18438. "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
  18439. ), o = Oe[r]._config;
  18440. else if (d.parentLocale != null)
  18441. if (Oe[d.parentLocale] != null)
  18442. o = Oe[d.parentLocale]._config;
  18443. else if (C = Do(d.parentLocale), C != null)
  18444. o = C._config;
  18445. else
  18446. return Zn[d.parentLocale] || (Zn[d.parentLocale] = []), Zn[d.parentLocale].push({
  18447. name: r,
  18448. config: d
  18449. }), null;
  18450. return Oe[r] = new Ol(fl(o, d)), Zn[r] && Zn[r].forEach(function(y) {
  18451. Yl(y.name, y.config);
  18452. }), Er(r), Oe[r];
  18453. } else
  18454. return delete Oe[r], null;
  18455. }
  18456. function bb(r, d) {
  18457. if (d != null) {
  18458. var C, o, y = Au;
  18459. Oe[r] != null && Oe[r].parentLocale != null ? Oe[r].set(fl(Oe[r]._config, d)) : (o = Do(r), o != null && (y = o._config), d = fl(y, d), o == null && (d.abbr = r), C = new Ol(d), C.parentLocale = Oe[r], Oe[r] = C), Er(r);
  18460. } else
  18461. Oe[r] != null && (Oe[r].parentLocale != null ? (Oe[r] = Oe[r].parentLocale, r === Er() && Er(r)) : Oe[r] != null && delete Oe[r]);
  18462. return Oe[r];
  18463. }
  18464. function fr(r) {
  18465. var d;
  18466. if (r && r._locale && r._locale._abbr && (r = r._locale._abbr), !r)
  18467. return ns;
  18468. if (!ji(r)) {
  18469. if (d = Do(r), d)
  18470. return d;
  18471. r = [r];
  18472. }
  18473. return vb(r);
  18474. }
  18475. function Sb() {
  18476. return gl(Oe);
  18477. }
  18478. function zl(r) {
  18479. var d, C = r._a;
  18480. return C && oe(r).overflow === -2 && (d = C[lr] < 0 || C[lr] > 11 ? lr : C[Ui] < 1 || C[Ui] > Nl(C[Qe], C[lr]) ? Ui : C[Ge] < 0 || C[Ge] > 24 || C[Ge] === 24 && (C[Ri] !== 0 || C[hr] !== 0 || C[Hr] !== 0) ? Ge : C[Ri] < 0 || C[Ri] > 59 ? Ri : C[hr] < 0 || C[hr] > 59 ? hr : C[Hr] < 0 || C[Hr] > 999 ? Hr : -1, oe(r)._overflowDayOfYear && (d < Qe || d > Ui) && (d = Ui), oe(r)._overflowWeeks && d === -1 && (d = k1), oe(r)._overflowWeekday && d === -1 && (d = A1), oe(r).overflow = d), r;
  18481. }
  18482. var wb = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Mb = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Cb = /Z|[+-]\d\d(?::?\d\d)?/, no = [
  18483. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  18484. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  18485. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  18486. ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
  18487. ["YYYY-DDD", /\d{4}-\d{3}/],
  18488. ["YYYY-MM", /\d{4}-\d\d/, !1],
  18489. ["YYYYYYMMDD", /[+-]\d{10}/],
  18490. ["YYYYMMDD", /\d{8}/],
  18491. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  18492. ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
  18493. ["YYYYDDD", /\d{7}/],
  18494. ["YYYYMM", /\d{6}/, !1],
  18495. ["YYYY", /\d{4}/, !1]
  18496. ], nl = [
  18497. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  18498. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  18499. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  18500. ["HH:mm", /\d\d:\d\d/],
  18501. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  18502. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  18503. ["HHmmss", /\d\d\d\d\d\d/],
  18504. ["HHmm", /\d\d\d\d/],
  18505. ["HH", /\d\d/]
  18506. ], kb = /^\/?Date\((-?\d+)/i, Ab = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, Tb = {
  18507. UT: 0,
  18508. GMT: 0,
  18509. EDT: -4 * 60,
  18510. EST: -5 * 60,
  18511. CDT: -5 * 60,
  18512. CST: -6 * 60,
  18513. MDT: -6 * 60,
  18514. MST: -7 * 60,
  18515. PDT: -7 * 60,
  18516. PST: -8 * 60
  18517. };
  18518. function Tu(r) {
  18519. var d, C, o = r._i, y = wb.exec(o) || Mb.exec(o), N, _, U, G, V = no.length, F = nl.length;
  18520. if (y) {
  18521. for (oe(r).iso = !0, d = 0, C = V; d < C; d++)
  18522. if (no[d][1].exec(y[1])) {
  18523. _ = no[d][0], N = no[d][2] !== !1;
  18524. break;
  18525. }
  18526. if (_ == null) {
  18527. r._isValid = !1;
  18528. return;
  18529. }
  18530. if (y[3]) {
  18531. for (d = 0, C = F; d < C; d++)
  18532. if (nl[d][1].exec(y[3])) {
  18533. U = (y[2] || " ") + nl[d][0];
  18534. break;
  18535. }
  18536. if (U == null) {
  18537. r._isValid = !1;
  18538. return;
  18539. }
  18540. }
  18541. if (!N && U != null) {
  18542. r._isValid = !1;
  18543. return;
  18544. }
  18545. if (y[4])
  18546. if (Cb.exec(y[4]))
  18547. G = "Z";
  18548. else {
  18549. r._isValid = !1;
  18550. return;
  18551. }
  18552. r._f = _ + (U || "") + (G || ""), Gl(r);
  18553. } else
  18554. r._isValid = !1;
  18555. }
  18556. function Pb(r, d, C, o, y, N) {
  18557. var _ = [
  18558. Eb(r),
  18559. yu.indexOf(d),
  18560. parseInt(C, 10),
  18561. parseInt(o, 10),
  18562. parseInt(y, 10)
  18563. ];
  18564. return N && _.push(parseInt(N, 10)), _;
  18565. }
  18566. function Eb(r) {
  18567. var d = parseInt(r, 10);
  18568. return d <= 49 ? 2e3 + d : d <= 999 ? 1900 + d : d;
  18569. }
  18570. function Ob(r) {
  18571. return r.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
  18572. }
  18573. function Lb(r, d, C) {
  18574. if (r) {
  18575. var o = Mu.indexOf(r), y = new Date(
  18576. d[0],
  18577. d[1],
  18578. d[2]
  18579. ).getDay();
  18580. if (o !== y)
  18581. return oe(C).weekdayMismatch = !0, C._isValid = !1, !1;
  18582. }
  18583. return !0;
  18584. }
  18585. function _b(r, d, C) {
  18586. if (r)
  18587. return Tb[r];
  18588. if (d)
  18589. return 0;
  18590. var o = parseInt(C, 10), y = o % 100, N = (o - y) / 100;
  18591. return N * 60 + y;
  18592. }
  18593. function Pu(r) {
  18594. var d = Ab.exec(Ob(r._i)), C;
  18595. if (d) {
  18596. if (C = Pb(
  18597. d[4],
  18598. d[3],
  18599. d[2],
  18600. d[5],
  18601. d[6],
  18602. d[7]
  18603. ), !Lb(d[1], C, r))
  18604. return;
  18605. r._a = C, r._tzm = _b(d[8], d[9], d[10]), r._d = is.apply(null, r._a), r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), oe(r).rfc2822 = !0;
  18606. } else
  18607. r._isValid = !1;
  18608. }
  18609. function Db(r) {
  18610. var d = kb.exec(r._i);
  18611. if (d !== null) {
  18612. r._d = /* @__PURE__ */ new Date(+d[1]);
  18613. return;
  18614. }
  18615. if (Tu(r), r._isValid === !1)
  18616. delete r._isValid;
  18617. else
  18618. return;
  18619. if (Pu(r), r._isValid === !1)
  18620. delete r._isValid;
  18621. else
  18622. return;
  18623. r._strict ? r._isValid = !1 : Xt.createFromInputFallback(r);
  18624. }
  18625. Xt.createFromInputFallback = Pi(
  18626. "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
  18627. function(r) {
  18628. r._d = /* @__PURE__ */ new Date(r._i + (r._useUTC ? " UTC" : ""));
  18629. }
  18630. );
  18631. function gn(r, d, C) {
  18632. return r ?? d ?? C;
  18633. }
  18634. function Ib(r) {
  18635. var d = new Date(Xt.now());
  18636. return r._useUTC ? [
  18637. d.getUTCFullYear(),
  18638. d.getUTCMonth(),
  18639. d.getUTCDate()
  18640. ] : [d.getFullYear(), d.getMonth(), d.getDate()];
  18641. }
  18642. function Xl(r) {
  18643. var d, C, o = [], y, N, _;
  18644. if (!r._d) {
  18645. for (y = Ib(r), r._w && r._a[Ui] == null && r._a[lr] == null && Rb(r), r._dayOfYear != null && (_ = gn(r._a[Qe], y[Qe]), (r._dayOfYear > Qn(_) || r._dayOfYear === 0) && (oe(r)._overflowDayOfYear = !0), C = is(_, 0, r._dayOfYear), r._a[lr] = C.getUTCMonth(), r._a[Ui] = C.getUTCDate()), d = 0; d < 3 && r._a[d] == null; ++d)
  18646. r._a[d] = o[d] = y[d];
  18647. for (; d < 7; d++)
  18648. r._a[d] = o[d] = r._a[d] == null ? d === 2 ? 1 : 0 : r._a[d];
  18649. r._a[Ge] === 24 && r._a[Ri] === 0 && r._a[hr] === 0 && r._a[Hr] === 0 && (r._nextDay = !0, r._a[Ge] = 0), r._d = (r._useUTC ? is : z1).apply(
  18650. null,
  18651. o
  18652. ), N = r._useUTC ? r._d.getUTCDay() : r._d.getDay(), r._tzm != null && r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), r._nextDay && (r._a[Ge] = 24), r._w && typeof r._w.d < "u" && r._w.d !== N && (oe(r).weekdayMismatch = !0);
  18653. }
  18654. }
  18655. function Rb(r) {
  18656. var d, C, o, y, N, _, U, G, V;
  18657. d = r._w, d.GG != null || d.W != null || d.E != null ? (N = 1, _ = 4, C = gn(
  18658. d.GG,
  18659. r._a[Qe],
  18660. rs(Te(), 1, 4).year
  18661. ), o = gn(d.W, 1), y = gn(d.E, 1), (y < 1 || y > 7) && (G = !0)) : (N = r._locale._week.dow, _ = r._locale._week.doy, V = rs(Te(), N, _), C = gn(d.gg, r._a[Qe], V.year), o = gn(d.w, V.week), d.d != null ? (y = d.d, (y < 0 || y > 6) && (G = !0)) : d.e != null ? (y = d.e + N, (d.e < 0 || d.e > 6) && (G = !0)) : y = N), o < 1 || o > pr(C, N, _) ? oe(r)._overflowWeeks = !0 : G != null ? oe(r)._overflowWeekday = !0 : (U = wu(C, o, y, N, _), r._a[Qe] = U.year, r._dayOfYear = U.dayOfYear);
  18662. }
  18663. Xt.ISO_8601 = function() {
  18664. };
  18665. Xt.RFC_2822 = function() {
  18666. };
  18667. function Gl(r) {
  18668. if (r._f === Xt.ISO_8601) {
  18669. Tu(r);
  18670. return;
  18671. }
  18672. if (r._f === Xt.RFC_2822) {
  18673. Pu(r);
  18674. return;
  18675. }
  18676. r._a = [], oe(r).empty = !0;
  18677. var d = "" + r._i, C, o, y, N, _, U = d.length, G = 0, V, F;
  18678. for (y = cu(r._f, r._locale).match(Ll) || [], F = y.length, C = 0; C < F; C++)
  18679. N = y[C], o = (d.match(w1(N, r)) || [])[0], o && (_ = d.substr(0, d.indexOf(o)), _.length > 0 && oe(r).unusedInput.push(_), d = d.slice(
  18680. d.indexOf(o) + o.length
  18681. ), G += o.length), vn[N] ? (o ? oe(r).empty = !1 : oe(r).unusedTokens.push(N), C1(N, o, r)) : r._strict && !o && oe(r).unusedTokens.push(N);
  18682. oe(r).charsLeftOver = U - G, d.length > 0 && oe(r).unusedInput.push(d), r._a[Ge] <= 12 && oe(r).bigHour === !0 && r._a[Ge] > 0 && (oe(r).bigHour = void 0), oe(r).parsedDateParts = r._a.slice(0), oe(r).meridiem = r._meridiem, r._a[Ge] = Nb(
  18683. r._locale,
  18684. r._a[Ge],
  18685. r._meridiem
  18686. ), V = oe(r).era, V !== null && (r._a[Qe] = r._locale.erasConvertYear(V, r._a[Qe])), Xl(r), zl(r);
  18687. }
  18688. function Nb(r, d, C) {
  18689. var o;
  18690. return C == null ? d : r.meridiemHour != null ? r.meridiemHour(d, C) : (r.isPM != null && (o = r.isPM(C), o && d < 12 && (d += 12), !o && d === 12 && (d = 0)), d);
  18691. }
  18692. function Bb(r) {
  18693. var d, C, o, y, N, _, U = !1, G = r._f.length;
  18694. if (G === 0) {
  18695. oe(r).invalidFormat = !0, r._d = /* @__PURE__ */ new Date(NaN);
  18696. return;
  18697. }
  18698. for (y = 0; y < G; y++)
  18699. N = 0, _ = !1, d = El({}, r), r._useUTC != null && (d._useUTC = r._useUTC), d._f = r._f[y], Gl(d), Pl(d) && (_ = !0), N += oe(d).charsLeftOver, N += oe(d).unusedTokens.length * 10, oe(d).score = N, U ? N < o && (o = N, C = d) : (o == null || N < o || _) && (o = N, C = d, _ && (U = !0));
  18700. Tr(r, C || d);
  18701. }
  18702. function jb(r) {
  18703. if (!r._d) {
  18704. var d = _l(r._i), C = d.day === void 0 ? d.date : d.day;
  18705. r._a = au(
  18706. [d.year, d.month, C, d.hour, d.minute, d.second, d.millisecond],
  18707. function(o) {
  18708. return o && parseInt(o, 10);
  18709. }
  18710. ), Xl(r);
  18711. }
  18712. }
  18713. function Wb(r) {
  18714. var d = new ls(zl(Eu(r)));
  18715. return d._nextDay && (d.add(1, "d"), d._nextDay = void 0), d;
  18716. }
  18717. function Eu(r) {
  18718. var d = r._i, C = r._f;
  18719. return r._locale = r._locale || fr(r._l), d === null || C === void 0 && d === "" ? Ao({ nullInput: !0 }) : (typeof d == "string" && (r._i = d = r._locale.preparse(d)), Wi(d) ? new ls(zl(d)) : (as(d) ? r._d = d : ji(C) ? Bb(r) : C ? Gl(r) : Yb(r), Pl(r) || (r._d = null), r));
  18720. }
  18721. function Yb(r) {
  18722. var d = r._i;
  18723. ai(d) ? r._d = new Date(Xt.now()) : as(d) ? r._d = new Date(d.valueOf()) : typeof d == "string" ? Db(r) : ji(d) ? (r._a = au(d.slice(0), function(C) {
  18724. return parseInt(C, 10);
  18725. }), Xl(r)) : $r(d) ? jb(r) : ur(d) ? r._d = new Date(d) : Xt.createFromInputFallback(r);
  18726. }
  18727. function Ou(r, d, C, o, y) {
  18728. var N = {};
  18729. return (d === !0 || d === !1) && (o = d, d = void 0), (C === !0 || C === !1) && (o = C, C = void 0), ($r(r) && Tl(r) || ji(r) && r.length === 0) && (r = void 0), N._isAMomentObject = !0, N._useUTC = N._isUTC = y, N._l = C, N._i = r, N._f = d, N._strict = o, Wb(N);
  18730. }
  18731. function Te(r, d, C, o) {
  18732. return Ou(r, d, C, o, !1);
  18733. }
  18734. var zb = Pi(
  18735. "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  18736. function() {
  18737. var r = Te.apply(null, arguments);
  18738. return this.isValid() && r.isValid() ? r < this ? this : r : Ao();
  18739. }
  18740. ), Xb = Pi(
  18741. "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  18742. function() {
  18743. var r = Te.apply(null, arguments);
  18744. return this.isValid() && r.isValid() ? r > this ? this : r : Ao();
  18745. }
  18746. );
  18747. function Lu(r, d) {
  18748. var C, o;
  18749. if (d.length === 1 && ji(d[0]) && (d = d[0]), !d.length)
  18750. return Te();
  18751. for (C = d[0], o = 1; o < d.length; ++o)
  18752. (!d[o].isValid() || d[o][r](C)) && (C = d[o]);
  18753. return C;
  18754. }
  18755. function Gb() {
  18756. var r = [].slice.call(arguments, 0);
  18757. return Lu("isBefore", r);
  18758. }
  18759. function Hb() {
  18760. var r = [].slice.call(arguments, 0);
  18761. return Lu("isAfter", r);
  18762. }
  18763. var Fb = function() {
  18764. return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
  18765. }, Kn = [
  18766. "year",
  18767. "quarter",
  18768. "month",
  18769. "week",
  18770. "day",
  18771. "hour",
  18772. "minute",
  18773. "second",
  18774. "millisecond"
  18775. ];
  18776. function Ub(r) {
  18777. var d, C = !1, o, y = Kn.length;
  18778. for (d in r)
  18779. if (me(r, d) && !(We.call(Kn, d) !== -1 && (r[d] == null || !isNaN(r[d]))))
  18780. return !1;
  18781. for (o = 0; o < y; ++o)
  18782. if (r[Kn[o]]) {
  18783. if (C)
  18784. return !1;
  18785. parseFloat(r[Kn[o]]) !== pe(r[Kn[o]]) && (C = !0);
  18786. }
  18787. return !0;
  18788. }
  18789. function Vb() {
  18790. return this._isValid;
  18791. }
  18792. function $b() {
  18793. return Yi(NaN);
  18794. }
  18795. function Io(r) {
  18796. var d = _l(r), C = d.year || 0, o = d.quarter || 0, y = d.month || 0, N = d.week || d.isoWeek || 0, _ = d.day || 0, U = d.hour || 0, G = d.minute || 0, V = d.second || 0, F = d.millisecond || 0;
  18797. this._isValid = Ub(d), this._milliseconds = +F + V * 1e3 + // 1000
  18798. G * 6e4 + // 1000 * 60
  18799. U * 1e3 * 60 * 60, this._days = +_ + N * 7, this._months = +y + o * 3 + C * 12, this._data = {}, this._locale = fr(), this._bubble();
  18800. }
  18801. function ao(r) {
  18802. return r instanceof Io;
  18803. }
  18804. function yl(r) {
  18805. return r < 0 ? Math.round(-1 * r) * -1 : Math.round(r);
  18806. }
  18807. function Zb(r, d, C) {
  18808. var o = Math.min(r.length, d.length), y = Math.abs(r.length - d.length), N = 0, _;
  18809. for (_ = 0; _ < o; _++)
  18810. (C && r[_] !== d[_] || !C && pe(r[_]) !== pe(d[_])) && N++;
  18811. return N + y;
  18812. }
  18813. function _u(r, d) {
  18814. Zt(r, 0, 0, function() {
  18815. var C = this.utcOffset(), o = "+";
  18816. return C < 0 && (C = -C, o = "-"), o + Vi(~~(C / 60), 2) + d + Vi(~~C % 60, 2);
  18817. });
  18818. }
  18819. _u("Z", ":");
  18820. _u("ZZ", "");
  18821. Ft("Z", Lo);
  18822. Ft("ZZ", Lo);
  18823. we(["Z", "ZZ"], function(r, d, C) {
  18824. C._useUTC = !0, C._tzm = Hl(Lo, r);
  18825. });
  18826. var Kb = /([\+\-]|\d\d)/gi;
  18827. function Hl(r, d) {
  18828. var C = (d || "").match(r), o, y, N;
  18829. return C === null ? null : (o = C[C.length - 1] || [], y = (o + "").match(Kb) || ["-", 0, 0], N = +(y[1] * 60) + pe(y[2]), N === 0 ? 0 : y[0] === "+" ? N : -N);
  18830. }
  18831. function Fl(r, d) {
  18832. var C, o;
  18833. return d._isUTC ? (C = d.clone(), o = (Wi(r) || as(r) ? r.valueOf() : Te(r).valueOf()) - C.valueOf(), C._d.setTime(C._d.valueOf() + o), Xt.updateOffset(C, !1), C) : Te(r).local();
  18834. }
  18835. function vl(r) {
  18836. return -Math.round(r._d.getTimezoneOffset());
  18837. }
  18838. Xt.updateOffset = function() {
  18839. };
  18840. function Jb(r, d, C) {
  18841. var o = this._offset || 0, y;
  18842. if (!this.isValid())
  18843. return r != null ? this : NaN;
  18844. if (r != null) {
  18845. if (typeof r == "string") {
  18846. if (r = Hl(Lo, r), r === null)
  18847. return this;
  18848. } else
  18849. Math.abs(r) < 16 && !C && (r = r * 60);
  18850. return !this._isUTC && d && (y = vl(this)), this._offset = r, this._isUTC = !0, y != null && this.add(y, "m"), o !== r && (!d || this._changeInProgress ? Ru(
  18851. this,
  18852. Yi(r - o, "m"),
  18853. 1,
  18854. !1
  18855. ) : this._changeInProgress || (this._changeInProgress = !0, Xt.updateOffset(this, !0), this._changeInProgress = null)), this;
  18856. } else
  18857. return this._isUTC ? o : vl(this);
  18858. }
  18859. function qb(r, d) {
  18860. return r != null ? (typeof r != "string" && (r = -r), this.utcOffset(r, d), this) : -this.utcOffset();
  18861. }
  18862. function Qb(r) {
  18863. return this.utcOffset(0, r);
  18864. }
  18865. function tS(r) {
  18866. return this._isUTC && (this.utcOffset(0, r), this._isUTC = !1, r && this.subtract(vl(this), "m")), this;
  18867. }
  18868. function eS() {
  18869. if (this._tzm != null)
  18870. this.utcOffset(this._tzm, !1, !0);
  18871. else if (typeof this._i == "string") {
  18872. var r = Hl(b1, this._i);
  18873. r != null ? this.utcOffset(r) : this.utcOffset(0, !0);
  18874. }
  18875. return this;
  18876. }
  18877. function iS(r) {
  18878. return this.isValid() ? (r = r ? Te(r).utcOffset() : 0, (this.utcOffset() - r) % 60 === 0) : !1;
  18879. }
  18880. function rS() {
  18881. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  18882. }
  18883. function nS() {
  18884. if (!ai(this._isDSTShifted))
  18885. return this._isDSTShifted;
  18886. var r = {}, d;
  18887. return El(r, this), r = Eu(r), r._a ? (d = r._isUTC ? $i(r._a) : Te(r._a), this._isDSTShifted = this.isValid() && Zb(r._a, d.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
  18888. }
  18889. function sS() {
  18890. return this.isValid() ? !this._isUTC : !1;
  18891. }
  18892. function oS() {
  18893. return this.isValid() ? this._isUTC : !1;
  18894. }
  18895. function Du() {
  18896. return this.isValid() ? this._isUTC && this._offset === 0 : !1;
  18897. }
  18898. var aS = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, lS = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  18899. function Yi(r, d) {
  18900. var C = r, o = null, y, N, _;
  18901. return ao(r) ? C = {
  18902. ms: r._milliseconds,
  18903. d: r._days,
  18904. M: r._months
  18905. } : ur(r) || !isNaN(+r) ? (C = {}, d ? C[d] = +r : C.milliseconds = +r) : (o = aS.exec(r)) ? (y = o[1] === "-" ? -1 : 1, C = {
  18906. y: 0,
  18907. d: pe(o[Ui]) * y,
  18908. h: pe(o[Ge]) * y,
  18909. m: pe(o[Ri]) * y,
  18910. s: pe(o[hr]) * y,
  18911. ms: pe(yl(o[Hr] * 1e3)) * y
  18912. // the millisecond decimal point is included in the match
  18913. }) : (o = lS.exec(r)) ? (y = o[1] === "-" ? -1 : 1, C = {
  18914. y: Xr(o[2], y),
  18915. M: Xr(o[3], y),
  18916. w: Xr(o[4], y),
  18917. d: Xr(o[5], y),
  18918. h: Xr(o[6], y),
  18919. m: Xr(o[7], y),
  18920. s: Xr(o[8], y)
  18921. }) : C == null ? C = {} : typeof C == "object" && ("from" in C || "to" in C) && (_ = hS(
  18922. Te(C.from),
  18923. Te(C.to)
  18924. ), C = {}, C.ms = _.milliseconds, C.M = _.months), N = new Io(C), ao(r) && me(r, "_locale") && (N._locale = r._locale), ao(r) && me(r, "_isValid") && (N._isValid = r._isValid), N;
  18925. }
  18926. Yi.fn = Io.prototype;
  18927. Yi.invalid = $b;
  18928. function Xr(r, d) {
  18929. var C = r && parseFloat(r.replace(",", "."));
  18930. return (isNaN(C) ? 0 : C) * d;
  18931. }
  18932. function Rp(r, d) {
  18933. var C = {};
  18934. return C.months = d.month() - r.month() + (d.year() - r.year()) * 12, r.clone().add(C.months, "M").isAfter(d) && --C.months, C.milliseconds = +d - +r.clone().add(C.months, "M"), C;
  18935. }
  18936. function hS(r, d) {
  18937. var C;
  18938. return r.isValid() && d.isValid() ? (d = Fl(d, r), r.isBefore(d) ? C = Rp(r, d) : (C = Rp(d, r), C.milliseconds = -C.milliseconds, C.months = -C.months), C) : { milliseconds: 0, months: 0 };
  18939. }
  18940. function Iu(r, d) {
  18941. return function(C, o) {
  18942. var y, N;
  18943. return o !== null && !isNaN(+o) && (hu(
  18944. d,
  18945. "moment()." + d + "(period, number) is deprecated. Please use moment()." + d + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
  18946. ), N = C, C = o, o = N), y = Yi(C, o), Ru(this, y, r), this;
  18947. };
  18948. }
  18949. function Ru(r, d, C, o) {
  18950. var y = d._milliseconds, N = yl(d._days), _ = yl(d._months);
  18951. r.isValid() && (o = o ?? !0, _ && xu(r, es(r, "Month") + _ * C), N && mu(r, "Date", es(r, "Date") + N * C), y && r._d.setTime(r._d.valueOf() + y * C), o && Xt.updateOffset(r, N || _));
  18952. }
  18953. var cS = Iu(1, "add"), pS = Iu(-1, "subtract");
  18954. function Nu(r) {
  18955. return typeof r == "string" || r instanceof String;
  18956. }
  18957. function uS(r) {
  18958. return Wi(r) || as(r) || Nu(r) || ur(r) || fS(r) || dS(r) || r === null || r === void 0;
  18959. }
  18960. function dS(r) {
  18961. var d = $r(r) && !Tl(r), C = !1, o = [
  18962. "years",
  18963. "year",
  18964. "y",
  18965. "months",
  18966. "month",
  18967. "M",
  18968. "days",
  18969. "day",
  18970. "d",
  18971. "dates",
  18972. "date",
  18973. "D",
  18974. "hours",
  18975. "hour",
  18976. "h",
  18977. "minutes",
  18978. "minute",
  18979. "m",
  18980. "seconds",
  18981. "second",
  18982. "s",
  18983. "milliseconds",
  18984. "millisecond",
  18985. "ms"
  18986. ], y, N, _ = o.length;
  18987. for (y = 0; y < _; y += 1)
  18988. N = o[y], C = C || me(r, N);
  18989. return d && C;
  18990. }
  18991. function fS(r) {
  18992. var d = ji(r), C = !1;
  18993. return d && (C = r.filter(function(o) {
  18994. return !ur(o) && Nu(r);
  18995. }).length === 0), d && C;
  18996. }
  18997. function gS(r) {
  18998. var d = $r(r) && !Tl(r), C = !1, o = [
  18999. "sameDay",
  19000. "nextDay",
  19001. "lastDay",
  19002. "nextWeek",
  19003. "lastWeek",
  19004. "sameElse"
  19005. ], y, N;
  19006. for (y = 0; y < o.length; y += 1)
  19007. N = o[y], C = C || me(r, N);
  19008. return d && C;
  19009. }
  19010. function mS(r, d) {
  19011. var C = r.diff(d, "days", !0);
  19012. return C < -6 ? "sameElse" : C < -1 ? "lastWeek" : C < 0 ? "lastDay" : C < 1 ? "sameDay" : C < 2 ? "nextDay" : C < 7 ? "nextWeek" : "sameElse";
  19013. }
  19014. function yS(r, d) {
  19015. arguments.length === 1 && (arguments[0] ? uS(arguments[0]) ? (r = arguments[0], d = void 0) : gS(arguments[0]) && (d = arguments[0], r = void 0) : (r = void 0, d = void 0));
  19016. var C = r || Te(), o = Fl(C, this).startOf("day"), y = Xt.calendarFormat(this, o) || "sameElse", N = d && (Zi(d[y]) ? d[y].call(this, C) : d[y]);
  19017. return this.format(
  19018. N || this.localeData().calendar(y, this, Te(C))
  19019. );
  19020. }
  19021. function vS() {
  19022. return new ls(this);
  19023. }
  19024. function xS(r, d) {
  19025. var C = Wi(r) ? r : Te(r);
  19026. return this.isValid() && C.isValid() ? (d = Ei(d) || "millisecond", d === "millisecond" ? this.valueOf() > C.valueOf() : C.valueOf() < this.clone().startOf(d).valueOf()) : !1;
  19027. }
  19028. function bS(r, d) {
  19029. var C = Wi(r) ? r : Te(r);
  19030. return this.isValid() && C.isValid() ? (d = Ei(d) || "millisecond", d === "millisecond" ? this.valueOf() < C.valueOf() : this.clone().endOf(d).valueOf() < C.valueOf()) : !1;
  19031. }
  19032. function SS(r, d, C, o) {
  19033. var y = Wi(r) ? r : Te(r), N = Wi(d) ? d : Te(d);
  19034. return this.isValid() && y.isValid() && N.isValid() ? (o = o || "()", (o[0] === "(" ? this.isAfter(y, C) : !this.isBefore(y, C)) && (o[1] === ")" ? this.isBefore(N, C) : !this.isAfter(N, C))) : !1;
  19035. }
  19036. function wS(r, d) {
  19037. var C = Wi(r) ? r : Te(r), o;
  19038. return this.isValid() && C.isValid() ? (d = Ei(d) || "millisecond", d === "millisecond" ? this.valueOf() === C.valueOf() : (o = C.valueOf(), this.clone().startOf(d).valueOf() <= o && o <= this.clone().endOf(d).valueOf())) : !1;
  19039. }
  19040. function MS(r, d) {
  19041. return this.isSame(r, d) || this.isAfter(r, d);
  19042. }
  19043. function CS(r, d) {
  19044. return this.isSame(r, d) || this.isBefore(r, d);
  19045. }
  19046. function kS(r, d, C) {
  19047. var o, y, N;
  19048. if (!this.isValid())
  19049. return NaN;
  19050. if (o = Fl(r, this), !o.isValid())
  19051. return NaN;
  19052. switch (y = (o.utcOffset() - this.utcOffset()) * 6e4, d = Ei(d), d) {
  19053. case "year":
  19054. N = lo(this, o) / 12;
  19055. break;
  19056. case "month":
  19057. N = lo(this, o);
  19058. break;
  19059. case "quarter":
  19060. N = lo(this, o) / 3;
  19061. break;
  19062. case "second":
  19063. N = (this - o) / 1e3;
  19064. break;
  19065. case "minute":
  19066. N = (this - o) / 6e4;
  19067. break;
  19068. case "hour":
  19069. N = (this - o) / 36e5;
  19070. break;
  19071. case "day":
  19072. N = (this - o - y) / 864e5;
  19073. break;
  19074. case "week":
  19075. N = (this - o - y) / 6048e5;
  19076. break;
  19077. default:
  19078. N = this - o;
  19079. }
  19080. return C ? N : ki(N);
  19081. }
  19082. function lo(r, d) {
  19083. if (r.date() < d.date())
  19084. return -lo(d, r);
  19085. var C = (d.year() - r.year()) * 12 + (d.month() - r.month()), o = r.clone().add(C, "months"), y, N;
  19086. return d - o < 0 ? (y = r.clone().add(C - 1, "months"), N = (d - o) / (o - y)) : (y = r.clone().add(C + 1, "months"), N = (d - o) / (y - o)), -(C + N) || 0;
  19087. }
  19088. Xt.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
  19089. Xt.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  19090. function AS() {
  19091. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
  19092. }
  19093. function TS(r) {
  19094. if (!this.isValid())
  19095. return null;
  19096. var d = r !== !0, C = d ? this.clone().utc() : this;
  19097. return C.year() < 0 || C.year() > 9999 ? oo(
  19098. C,
  19099. d ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19100. ) : Zi(Date.prototype.toISOString) ? d ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", oo(C, "Z")) : oo(
  19101. C,
  19102. d ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19103. );
  19104. }
  19105. function PS() {
  19106. if (!this.isValid())
  19107. return "moment.invalid(/* " + this._i + " */)";
  19108. var r = "moment", d = "", C, o, y, N;
  19109. return this.isLocal() || (r = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", d = "Z"), C = "[" + r + '("]', o = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", y = "-MM-DD[T]HH:mm:ss.SSS", N = d + '[")]', this.format(C + o + y + N);
  19110. }
  19111. function ES(r) {
  19112. r || (r = this.isUtc() ? Xt.defaultFormatUtc : Xt.defaultFormat);
  19113. var d = oo(this, r);
  19114. return this.localeData().postformat(d);
  19115. }
  19116. function OS(r, d) {
  19117. return this.isValid() && (Wi(r) && r.isValid() || Te(r).isValid()) ? Yi({ to: this, from: r }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
  19118. }
  19119. function LS(r) {
  19120. return this.from(Te(), r);
  19121. }
  19122. function _S(r, d) {
  19123. return this.isValid() && (Wi(r) && r.isValid() || Te(r).isValid()) ? Yi({ from: this, to: r }).locale(this.locale()).humanize(!d) : this.localeData().invalidDate();
  19124. }
  19125. function DS(r) {
  19126. return this.to(Te(), r);
  19127. }
  19128. function Bu(r) {
  19129. var d;
  19130. return r === void 0 ? this._locale._abbr : (d = fr(r), d != null && (this._locale = d), this);
  19131. }
  19132. var ju = Pi(
  19133. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  19134. function(r) {
  19135. return r === void 0 ? this.localeData() : this.locale(r);
  19136. }
  19137. );
  19138. function Wu() {
  19139. return this._locale;
  19140. }
  19141. var vo = 1e3, xn = 60 * vo, xo = 60 * xn, Yu = (365 * 400 + 97) * 24 * xo;
  19142. function bn(r, d) {
  19143. return (r % d + d) % d;
  19144. }
  19145. function zu(r, d, C) {
  19146. return r < 100 && r >= 0 ? new Date(r + 400, d, C) - Yu : new Date(r, d, C).valueOf();
  19147. }
  19148. function Xu(r, d, C) {
  19149. return r < 100 && r >= 0 ? Date.UTC(r + 400, d, C) - Yu : Date.UTC(r, d, C);
  19150. }
  19151. function IS(r) {
  19152. var d, C;
  19153. if (r = Ei(r), r === void 0 || r === "millisecond" || !this.isValid())
  19154. return this;
  19155. switch (C = this._isUTC ? Xu : zu, r) {
  19156. case "year":
  19157. d = C(this.year(), 0, 1);
  19158. break;
  19159. case "quarter":
  19160. d = C(
  19161. this.year(),
  19162. this.month() - this.month() % 3,
  19163. 1
  19164. );
  19165. break;
  19166. case "month":
  19167. d = C(this.year(), this.month(), 1);
  19168. break;
  19169. case "week":
  19170. d = C(
  19171. this.year(),
  19172. this.month(),
  19173. this.date() - this.weekday()
  19174. );
  19175. break;
  19176. case "isoWeek":
  19177. d = C(
  19178. this.year(),
  19179. this.month(),
  19180. this.date() - (this.isoWeekday() - 1)
  19181. );
  19182. break;
  19183. case "day":
  19184. case "date":
  19185. d = C(this.year(), this.month(), this.date());
  19186. break;
  19187. case "hour":
  19188. d = this._d.valueOf(), d -= bn(
  19189. d + (this._isUTC ? 0 : this.utcOffset() * xn),
  19190. xo
  19191. );
  19192. break;
  19193. case "minute":
  19194. d = this._d.valueOf(), d -= bn(d, xn);
  19195. break;
  19196. case "second":
  19197. d = this._d.valueOf(), d -= bn(d, vo);
  19198. break;
  19199. }
  19200. return this._d.setTime(d), Xt.updateOffset(this, !0), this;
  19201. }
  19202. function RS(r) {
  19203. var d, C;
  19204. if (r = Ei(r), r === void 0 || r === "millisecond" || !this.isValid())
  19205. return this;
  19206. switch (C = this._isUTC ? Xu : zu, r) {
  19207. case "year":
  19208. d = C(this.year() + 1, 0, 1) - 1;
  19209. break;
  19210. case "quarter":
  19211. d = C(
  19212. this.year(),
  19213. this.month() - this.month() % 3 + 3,
  19214. 1
  19215. ) - 1;
  19216. break;
  19217. case "month":
  19218. d = C(this.year(), this.month() + 1, 1) - 1;
  19219. break;
  19220. case "week":
  19221. d = C(
  19222. this.year(),
  19223. this.month(),
  19224. this.date() - this.weekday() + 7
  19225. ) - 1;
  19226. break;
  19227. case "isoWeek":
  19228. d = C(
  19229. this.year(),
  19230. this.month(),
  19231. this.date() - (this.isoWeekday() - 1) + 7
  19232. ) - 1;
  19233. break;
  19234. case "day":
  19235. case "date":
  19236. d = C(this.year(), this.month(), this.date() + 1) - 1;
  19237. break;
  19238. case "hour":
  19239. d = this._d.valueOf(), d += xo - bn(
  19240. d + (this._isUTC ? 0 : this.utcOffset() * xn),
  19241. xo
  19242. ) - 1;
  19243. break;
  19244. case "minute":
  19245. d = this._d.valueOf(), d += xn - bn(d, xn) - 1;
  19246. break;
  19247. case "second":
  19248. d = this._d.valueOf(), d += vo - bn(d, vo) - 1;
  19249. break;
  19250. }
  19251. return this._d.setTime(d), Xt.updateOffset(this, !0), this;
  19252. }
  19253. function NS() {
  19254. return this._d.valueOf() - (this._offset || 0) * 6e4;
  19255. }
  19256. function BS() {
  19257. return Math.floor(this.valueOf() / 1e3);
  19258. }
  19259. function jS() {
  19260. return new Date(this.valueOf());
  19261. }
  19262. function WS() {
  19263. var r = this;
  19264. return [
  19265. r.year(),
  19266. r.month(),
  19267. r.date(),
  19268. r.hour(),
  19269. r.minute(),
  19270. r.second(),
  19271. r.millisecond()
  19272. ];
  19273. }
  19274. function YS() {
  19275. var r = this;
  19276. return {
  19277. years: r.year(),
  19278. months: r.month(),
  19279. date: r.date(),
  19280. hours: r.hours(),
  19281. minutes: r.minutes(),
  19282. seconds: r.seconds(),
  19283. milliseconds: r.milliseconds()
  19284. };
  19285. }
  19286. function zS() {
  19287. return this.isValid() ? this.toISOString() : null;
  19288. }
  19289. function XS() {
  19290. return Pl(this);
  19291. }
  19292. function GS() {
  19293. return Tr({}, oe(this));
  19294. }
  19295. function HS() {
  19296. return oe(this).overflow;
  19297. }
  19298. function FS() {
  19299. return {
  19300. input: this._i,
  19301. format: this._f,
  19302. locale: this._locale,
  19303. isUTC: this._isUTC,
  19304. strict: this._strict
  19305. };
  19306. }
  19307. Zt("N", 0, 0, "eraAbbr");
  19308. Zt("NN", 0, 0, "eraAbbr");
  19309. Zt("NNN", 0, 0, "eraAbbr");
  19310. Zt("NNNN", 0, 0, "eraName");
  19311. Zt("NNNNN", 0, 0, "eraNarrow");
  19312. Zt("y", ["y", 1], "yo", "eraYear");
  19313. Zt("y", ["yy", 2], 0, "eraYear");
  19314. Zt("y", ["yyy", 3], 0, "eraYear");
  19315. Zt("y", ["yyyy", 4], 0, "eraYear");
  19316. Ft("N", Ul);
  19317. Ft("NN", Ul);
  19318. Ft("NNN", Ul);
  19319. Ft("NNNN", iw);
  19320. Ft("NNNNN", rw);
  19321. we(
  19322. ["N", "NN", "NNN", "NNNN", "NNNNN"],
  19323. function(r, d, C, o) {
  19324. var y = C._locale.erasParse(r, o, C._strict);
  19325. y ? oe(C).era = y : oe(C).invalidEra = r;
  19326. }
  19327. );
  19328. Ft("y", Cn);
  19329. Ft("yy", Cn);
  19330. Ft("yyy", Cn);
  19331. Ft("yyyy", Cn);
  19332. Ft("yo", nw);
  19333. we(["y", "yy", "yyy", "yyyy"], Qe);
  19334. we(["yo"], function(r, d, C, o) {
  19335. var y;
  19336. C._locale._eraYearOrdinalRegex && (y = r.match(C._locale._eraYearOrdinalRegex)), C._locale.eraYearOrdinalParse ? d[Qe] = C._locale.eraYearOrdinalParse(r, y) : d[Qe] = parseInt(r, 10);
  19337. });
  19338. function US(r, d) {
  19339. var C, o, y, N = this._eras || fr("en")._eras;
  19340. for (C = 0, o = N.length; C < o; ++C) {
  19341. switch (typeof N[C].since) {
  19342. case "string":
  19343. y = Xt(N[C].since).startOf("day"), N[C].since = y.valueOf();
  19344. break;
  19345. }
  19346. switch (typeof N[C].until) {
  19347. case "undefined":
  19348. N[C].until = 1 / 0;
  19349. break;
  19350. case "string":
  19351. y = Xt(N[C].until).startOf("day").valueOf(), N[C].until = y.valueOf();
  19352. break;
  19353. }
  19354. }
  19355. return N;
  19356. }
  19357. function VS(r, d, C) {
  19358. var o, y, N = this.eras(), _, U, G;
  19359. for (r = r.toUpperCase(), o = 0, y = N.length; o < y; ++o)
  19360. if (_ = N[o].name.toUpperCase(), U = N[o].abbr.toUpperCase(), G = N[o].narrow.toUpperCase(), C)
  19361. switch (d) {
  19362. case "N":
  19363. case "NN":
  19364. case "NNN":
  19365. if (U === r)
  19366. return N[o];
  19367. break;
  19368. case "NNNN":
  19369. if (_ === r)
  19370. return N[o];
  19371. break;
  19372. case "NNNNN":
  19373. if (G === r)
  19374. return N[o];
  19375. break;
  19376. }
  19377. else if ([_, U, G].indexOf(r) >= 0)
  19378. return N[o];
  19379. }
  19380. function $S(r, d) {
  19381. var C = r.since <= r.until ? 1 : -1;
  19382. return d === void 0 ? Xt(r.since).year() : Xt(r.since).year() + (d - r.offset) * C;
  19383. }
  19384. function ZS() {
  19385. var r, d, C, o = this.localeData().eras();
  19386. for (r = 0, d = o.length; r < d; ++r)
  19387. if (C = this.clone().startOf("day").valueOf(), o[r].since <= C && C <= o[r].until || o[r].until <= C && C <= o[r].since)
  19388. return o[r].name;
  19389. return "";
  19390. }
  19391. function KS() {
  19392. var r, d, C, o = this.localeData().eras();
  19393. for (r = 0, d = o.length; r < d; ++r)
  19394. if (C = this.clone().startOf("day").valueOf(), o[r].since <= C && C <= o[r].until || o[r].until <= C && C <= o[r].since)
  19395. return o[r].narrow;
  19396. return "";
  19397. }
  19398. function JS() {
  19399. var r, d, C, o = this.localeData().eras();
  19400. for (r = 0, d = o.length; r < d; ++r)
  19401. if (C = this.clone().startOf("day").valueOf(), o[r].since <= C && C <= o[r].until || o[r].until <= C && C <= o[r].since)
  19402. return o[r].abbr;
  19403. return "";
  19404. }
  19405. function qS() {
  19406. var r, d, C, o, y = this.localeData().eras();
  19407. for (r = 0, d = y.length; r < d; ++r)
  19408. if (C = y[r].since <= y[r].until ? 1 : -1, o = this.clone().startOf("day").valueOf(), y[r].since <= o && o <= y[r].until || y[r].until <= o && o <= y[r].since)
  19409. return (this.year() - Xt(y[r].since).year()) * C + y[r].offset;
  19410. return this.year();
  19411. }
  19412. function QS(r) {
  19413. return me(this, "_erasNameRegex") || Vl.call(this), r ? this._erasNameRegex : this._erasRegex;
  19414. }
  19415. function tw(r) {
  19416. return me(this, "_erasAbbrRegex") || Vl.call(this), r ? this._erasAbbrRegex : this._erasRegex;
  19417. }
  19418. function ew(r) {
  19419. return me(this, "_erasNarrowRegex") || Vl.call(this), r ? this._erasNarrowRegex : this._erasRegex;
  19420. }
  19421. function Ul(r, d) {
  19422. return d.erasAbbrRegex(r);
  19423. }
  19424. function iw(r, d) {
  19425. return d.erasNameRegex(r);
  19426. }
  19427. function rw(r, d) {
  19428. return d.erasNarrowRegex(r);
  19429. }
  19430. function nw(r, d) {
  19431. return d._eraYearOrdinalRegex || Cn;
  19432. }
  19433. function Vl() {
  19434. var r = [], d = [], C = [], o = [], y, N, _, U, G, V = this.eras();
  19435. for (y = 0, N = V.length; y < N; ++y)
  19436. _ = cr(V[y].name), U = cr(V[y].abbr), G = cr(V[y].narrow), d.push(_), r.push(U), C.push(G), o.push(_), o.push(U), o.push(G);
  19437. this._erasRegex = new RegExp("^(" + o.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + d.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
  19438. "^(" + C.join("|") + ")",
  19439. "i"
  19440. );
  19441. }
  19442. Zt(0, ["gg", 2], 0, function() {
  19443. return this.weekYear() % 100;
  19444. });
  19445. Zt(0, ["GG", 2], 0, function() {
  19446. return this.isoWeekYear() % 100;
  19447. });
  19448. function Ro(r, d) {
  19449. Zt(0, [r, r.length], 0, d);
  19450. }
  19451. Ro("gggg", "weekYear");
  19452. Ro("ggggg", "weekYear");
  19453. Ro("GGGG", "isoWeekYear");
  19454. Ro("GGGGG", "isoWeekYear");
  19455. Ft("G", Oo);
  19456. Ft("g", Oo);
  19457. Ft("GG", Pe, mi);
  19458. Ft("gg", Pe, mi);
  19459. Ft("GGGG", Il, Dl);
  19460. Ft("gggg", Il, Dl);
  19461. Ft("GGGGG", Eo, To);
  19462. Ft("ggggg", Eo, To);
  19463. cs(
  19464. ["gggg", "ggggg", "GGGG", "GGGGG"],
  19465. function(r, d, C, o) {
  19466. d[o.substr(0, 2)] = pe(r);
  19467. }
  19468. );
  19469. cs(["gg", "GG"], function(r, d, C, o) {
  19470. d[o] = Xt.parseTwoDigitYear(r);
  19471. });
  19472. function sw(r) {
  19473. return Gu.call(
  19474. this,
  19475. r,
  19476. this.week(),
  19477. this.weekday() + this.localeData()._week.dow,
  19478. this.localeData()._week.dow,
  19479. this.localeData()._week.doy
  19480. );
  19481. }
  19482. function ow(r) {
  19483. return Gu.call(
  19484. this,
  19485. r,
  19486. this.isoWeek(),
  19487. this.isoWeekday(),
  19488. 1,
  19489. 4
  19490. );
  19491. }
  19492. function aw() {
  19493. return pr(this.year(), 1, 4);
  19494. }
  19495. function lw() {
  19496. return pr(this.isoWeekYear(), 1, 4);
  19497. }
  19498. function hw() {
  19499. var r = this.localeData()._week;
  19500. return pr(this.year(), r.dow, r.doy);
  19501. }
  19502. function cw() {
  19503. var r = this.localeData()._week;
  19504. return pr(this.weekYear(), r.dow, r.doy);
  19505. }
  19506. function Gu(r, d, C, o, y) {
  19507. var N;
  19508. return r == null ? rs(this, o, y).year : (N = pr(r, o, y), d > N && (d = N), pw.call(this, r, d, C, o, y));
  19509. }
  19510. function pw(r, d, C, o, y) {
  19511. var N = wu(r, d, C, o, y), _ = is(N.year, 0, N.dayOfYear);
  19512. return this.year(_.getUTCFullYear()), this.month(_.getUTCMonth()), this.date(_.getUTCDate()), this;
  19513. }
  19514. Zt("Q", 0, "Qo", "quarter");
  19515. Ft("Q", pu);
  19516. we("Q", function(r, d) {
  19517. d[lr] = (pe(r) - 1) * 3;
  19518. });
  19519. function uw(r) {
  19520. return r == null ? Math.ceil((this.month() + 1) / 3) : this.month((r - 1) * 3 + this.month() % 3);
  19521. }
  19522. Zt("D", ["DD", 2], "Do", "date");
  19523. Ft("D", Pe, kn);
  19524. Ft("DD", Pe, mi);
  19525. Ft("Do", function(r, d) {
  19526. return r ? d._dayOfMonthOrdinalParse || d._ordinalParse : d._dayOfMonthOrdinalParseLenient;
  19527. });
  19528. we(["D", "DD"], Ui);
  19529. we("Do", function(r, d) {
  19530. d[Ui] = pe(r.match(Pe)[0]);
  19531. });
  19532. var Hu = An("Date", !0);
  19533. Zt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
  19534. Ft("DDD", Po);
  19535. Ft("DDDD", uu);
  19536. we(["DDD", "DDDD"], function(r, d, C) {
  19537. C._dayOfYear = pe(r);
  19538. });
  19539. function dw(r) {
  19540. var d = Math.round(
  19541. (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
  19542. ) + 1;
  19543. return r == null ? d : this.add(r - d, "d");
  19544. }
  19545. Zt("m", ["mm", 2], 0, "minute");
  19546. Ft("m", Pe, Rl);
  19547. Ft("mm", Pe, mi);
  19548. we(["m", "mm"], Ri);
  19549. var fw = An("Minutes", !1);
  19550. Zt("s", ["ss", 2], 0, "second");
  19551. Ft("s", Pe, Rl);
  19552. Ft("ss", Pe, mi);
  19553. we(["s", "ss"], hr);
  19554. var gw = An("Seconds", !1);
  19555. Zt("S", 0, 0, function() {
  19556. return ~~(this.millisecond() / 100);
  19557. });
  19558. Zt(0, ["SS", 2], 0, function() {
  19559. return ~~(this.millisecond() / 10);
  19560. });
  19561. Zt(0, ["SSS", 3], 0, "millisecond");
  19562. Zt(0, ["SSSS", 4], 0, function() {
  19563. return this.millisecond() * 10;
  19564. });
  19565. Zt(0, ["SSSSS", 5], 0, function() {
  19566. return this.millisecond() * 100;
  19567. });
  19568. Zt(0, ["SSSSSS", 6], 0, function() {
  19569. return this.millisecond() * 1e3;
  19570. });
  19571. Zt(0, ["SSSSSSS", 7], 0, function() {
  19572. return this.millisecond() * 1e4;
  19573. });
  19574. Zt(0, ["SSSSSSSS", 8], 0, function() {
  19575. return this.millisecond() * 1e5;
  19576. });
  19577. Zt(0, ["SSSSSSSSS", 9], 0, function() {
  19578. return this.millisecond() * 1e6;
  19579. });
  19580. Ft("S", Po, pu);
  19581. Ft("SS", Po, mi);
  19582. Ft("SSS", Po, uu);
  19583. var Pr, Fu;
  19584. for (Pr = "SSSS"; Pr.length <= 9; Pr += "S")
  19585. Ft(Pr, Cn);
  19586. function mw(r, d) {
  19587. d[Hr] = pe(("0." + r) * 1e3);
  19588. }
  19589. for (Pr = "S"; Pr.length <= 9; Pr += "S")
  19590. we(Pr, mw);
  19591. Fu = An("Milliseconds", !1);
  19592. Zt("z", 0, 0, "zoneAbbr");
  19593. Zt("zz", 0, 0, "zoneName");
  19594. function yw() {
  19595. return this._isUTC ? "UTC" : "";
  19596. }
  19597. function vw() {
  19598. return this._isUTC ? "Coordinated Universal Time" : "";
  19599. }
  19600. var jt = ls.prototype;
  19601. jt.add = cS;
  19602. jt.calendar = yS;
  19603. jt.clone = vS;
  19604. jt.diff = kS;
  19605. jt.endOf = RS;
  19606. jt.format = ES;
  19607. jt.from = OS;
  19608. jt.fromNow = LS;
  19609. jt.to = _S;
  19610. jt.toNow = DS;
  19611. jt.get = P1;
  19612. jt.invalidAt = HS;
  19613. jt.isAfter = xS;
  19614. jt.isBefore = bS;
  19615. jt.isBetween = SS;
  19616. jt.isSame = wS;
  19617. jt.isSameOrAfter = MS;
  19618. jt.isSameOrBefore = CS;
  19619. jt.isValid = XS;
  19620. jt.lang = ju;
  19621. jt.locale = Bu;
  19622. jt.localeData = Wu;
  19623. jt.max = Xb;
  19624. jt.min = zb;
  19625. jt.parsingFlags = GS;
  19626. jt.set = E1;
  19627. jt.startOf = IS;
  19628. jt.subtract = pS;
  19629. jt.toArray = WS;
  19630. jt.toObject = YS;
  19631. jt.toDate = jS;
  19632. jt.toISOString = TS;
  19633. jt.inspect = PS;
  19634. typeof Symbol < "u" && Symbol.for != null && (jt[Symbol.for("nodejs.util.inspect.custom")] = function() {
  19635. return "Moment<" + this.format() + ">";
  19636. });
  19637. jt.toJSON = zS;
  19638. jt.toString = AS;
  19639. jt.unix = BS;
  19640. jt.valueOf = NS;
  19641. jt.creationData = FS;
  19642. jt.eraName = ZS;
  19643. jt.eraNarrow = KS;
  19644. jt.eraAbbr = JS;
  19645. jt.eraYear = qS;
  19646. jt.year = gu;
  19647. jt.isLeapYear = T1;
  19648. jt.weekYear = sw;
  19649. jt.isoWeekYear = ow;
  19650. jt.quarter = jt.quarters = uw;
  19651. jt.month = bu;
  19652. jt.daysInMonth = j1;
  19653. jt.week = jt.weeks = U1;
  19654. jt.isoWeek = jt.isoWeeks = V1;
  19655. jt.weeksInYear = hw;
  19656. jt.weeksInWeekYear = cw;
  19657. jt.isoWeeksInYear = aw;
  19658. jt.isoWeeksInISOWeekYear = lw;
  19659. jt.date = Hu;
  19660. jt.day = jt.days = ob;
  19661. jt.weekday = ab;
  19662. jt.isoWeekday = lb;
  19663. jt.dayOfYear = dw;
  19664. jt.hour = jt.hours = gb;
  19665. jt.minute = jt.minutes = fw;
  19666. jt.second = jt.seconds = gw;
  19667. jt.millisecond = jt.milliseconds = Fu;
  19668. jt.utcOffset = Jb;
  19669. jt.utc = Qb;
  19670. jt.local = tS;
  19671. jt.parseZone = eS;
  19672. jt.hasAlignedHourOffset = iS;
  19673. jt.isDST = rS;
  19674. jt.isLocal = sS;
  19675. jt.isUtcOffset = oS;
  19676. jt.isUtc = Du;
  19677. jt.isUTC = Du;
  19678. jt.zoneAbbr = yw;
  19679. jt.zoneName = vw;
  19680. jt.dates = Pi(
  19681. "dates accessor is deprecated. Use date instead.",
  19682. Hu
  19683. );
  19684. jt.months = Pi(
  19685. "months accessor is deprecated. Use month instead",
  19686. bu
  19687. );
  19688. jt.years = Pi(
  19689. "years accessor is deprecated. Use year instead",
  19690. gu
  19691. );
  19692. jt.zone = Pi(
  19693. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  19694. qb
  19695. );
  19696. jt.isDSTShifted = Pi(
  19697. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  19698. nS
  19699. );
  19700. function xw(r) {
  19701. return Te(r * 1e3);
  19702. }
  19703. function bw() {
  19704. return Te.apply(null, arguments).parseZone();
  19705. }
  19706. function Uu(r) {
  19707. return r;
  19708. }
  19709. var ye = Ol.prototype;
  19710. ye.calendar = s1;
  19711. ye.longDateFormat = h1;
  19712. ye.invalidDate = p1;
  19713. ye.ordinal = f1;
  19714. ye.preparse = Uu;
  19715. ye.postformat = Uu;
  19716. ye.relativeTime = m1;
  19717. ye.pastFuture = y1;
  19718. ye.set = r1;
  19719. ye.eras = US;
  19720. ye.erasParse = VS;
  19721. ye.erasConvertYear = $S;
  19722. ye.erasAbbrRegex = tw;
  19723. ye.erasNameRegex = QS;
  19724. ye.erasNarrowRegex = ew;
  19725. ye.months = I1;
  19726. ye.monthsShort = R1;
  19727. ye.monthsParse = B1;
  19728. ye.monthsRegex = Y1;
  19729. ye.monthsShortRegex = W1;
  19730. ye.week = X1;
  19731. ye.firstDayOfYear = F1;
  19732. ye.firstDayOfWeek = H1;
  19733. ye.weekdays = eb;
  19734. ye.weekdaysMin = rb;
  19735. ye.weekdaysShort = ib;
  19736. ye.weekdaysParse = sb;
  19737. ye.weekdaysRegex = hb;
  19738. ye.weekdaysShortRegex = cb;
  19739. ye.weekdaysMinRegex = pb;
  19740. ye.isPM = db;
  19741. ye.meridiem = mb;
  19742. function bo(r, d, C, o) {
  19743. var y = fr(), N = $i().set(o, d);
  19744. return y[C](N, r);
  19745. }
  19746. function Vu(r, d, C) {
  19747. if (ur(r) && (d = r, r = void 0), r = r || "", d != null)
  19748. return bo(r, d, C, "month");
  19749. var o, y = [];
  19750. for (o = 0; o < 12; o++)
  19751. y[o] = bo(r, o, C, "month");
  19752. return y;
  19753. }
  19754. function $l(r, d, C, o) {
  19755. typeof r == "boolean" ? (ur(d) && (C = d, d = void 0), d = d || "") : (d = r, C = d, r = !1, ur(d) && (C = d, d = void 0), d = d || "");
  19756. var y = fr(), N = r ? y._week.dow : 0, _, U = [];
  19757. if (C != null)
  19758. return bo(d, (C + N) % 7, o, "day");
  19759. for (_ = 0; _ < 7; _++)
  19760. U[_] = bo(d, (_ + N) % 7, o, "day");
  19761. return U;
  19762. }
  19763. function Sw(r, d) {
  19764. return Vu(r, d, "months");
  19765. }
  19766. function ww(r, d) {
  19767. return Vu(r, d, "monthsShort");
  19768. }
  19769. function Mw(r, d, C) {
  19770. return $l(r, d, C, "weekdays");
  19771. }
  19772. function Cw(r, d, C) {
  19773. return $l(r, d, C, "weekdaysShort");
  19774. }
  19775. function kw(r, d, C) {
  19776. return $l(r, d, C, "weekdaysMin");
  19777. }
  19778. Er("en", {
  19779. eras: [
  19780. {
  19781. since: "0001-01-01",
  19782. until: 1 / 0,
  19783. offset: 1,
  19784. name: "Anno Domini",
  19785. narrow: "AD",
  19786. abbr: "AD"
  19787. },
  19788. {
  19789. since: "0000-12-31",
  19790. until: -1 / 0,
  19791. offset: 1,
  19792. name: "Before Christ",
  19793. narrow: "BC",
  19794. abbr: "BC"
  19795. }
  19796. ],
  19797. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19798. ordinal: function(r) {
  19799. var d = r % 10, C = pe(r % 100 / 10) === 1 ? "th" : d === 1 ? "st" : d === 2 ? "nd" : d === 3 ? "rd" : "th";
  19800. return r + C;
  19801. }
  19802. });
  19803. Xt.lang = Pi(
  19804. "moment.lang is deprecated. Use moment.locale instead.",
  19805. Er
  19806. );
  19807. Xt.langData = Pi(
  19808. "moment.langData is deprecated. Use moment.localeData instead.",
  19809. fr
  19810. );
  19811. var sr = Math.abs;
  19812. function Aw() {
  19813. var r = this._data;
  19814. return this._milliseconds = sr(this._milliseconds), this._days = sr(this._days), this._months = sr(this._months), r.milliseconds = sr(r.milliseconds), r.seconds = sr(r.seconds), r.minutes = sr(r.minutes), r.hours = sr(r.hours), r.months = sr(r.months), r.years = sr(r.years), this;
  19815. }
  19816. function $u(r, d, C, o) {
  19817. var y = Yi(d, C);
  19818. return r._milliseconds += o * y._milliseconds, r._days += o * y._days, r._months += o * y._months, r._bubble();
  19819. }
  19820. function Tw(r, d) {
  19821. return $u(this, r, d, 1);
  19822. }
  19823. function Pw(r, d) {
  19824. return $u(this, r, d, -1);
  19825. }
  19826. function Np(r) {
  19827. return r < 0 ? Math.floor(r) : Math.ceil(r);
  19828. }
  19829. function Ew() {
  19830. var r = this._milliseconds, d = this._days, C = this._months, o = this._data, y, N, _, U, G;
  19831. return r >= 0 && d >= 0 && C >= 0 || r <= 0 && d <= 0 && C <= 0 || (r += Np(xl(C) + d) * 864e5, d = 0, C = 0), o.milliseconds = r % 1e3, y = ki(r / 1e3), o.seconds = y % 60, N = ki(y / 60), o.minutes = N % 60, _ = ki(N / 60), o.hours = _ % 24, d += ki(_ / 24), G = ki(Zu(d)), C += G, d -= Np(xl(G)), U = ki(C / 12), C %= 12, o.days = d, o.months = C, o.years = U, this;
  19832. }
  19833. function Zu(r) {
  19834. return r * 4800 / 146097;
  19835. }
  19836. function xl(r) {
  19837. return r * 146097 / 4800;
  19838. }
  19839. function Ow(r) {
  19840. if (!this.isValid())
  19841. return NaN;
  19842. var d, C, o = this._milliseconds;
  19843. if (r = Ei(r), r === "month" || r === "quarter" || r === "year")
  19844. switch (d = this._days + o / 864e5, C = this._months + Zu(d), r) {
  19845. case "month":
  19846. return C;
  19847. case "quarter":
  19848. return C / 3;
  19849. case "year":
  19850. return C / 12;
  19851. }
  19852. else
  19853. switch (d = this._days + Math.round(xl(this._months)), r) {
  19854. case "week":
  19855. return d / 7 + o / 6048e5;
  19856. case "day":
  19857. return d + o / 864e5;
  19858. case "hour":
  19859. return d * 24 + o / 36e5;
  19860. case "minute":
  19861. return d * 1440 + o / 6e4;
  19862. case "second":
  19863. return d * 86400 + o / 1e3;
  19864. case "millisecond":
  19865. return Math.floor(d * 864e5) + o;
  19866. default:
  19867. throw new Error("Unknown unit " + r);
  19868. }
  19869. }
  19870. function gr(r) {
  19871. return function() {
  19872. return this.as(r);
  19873. };
  19874. }
  19875. var Ku = gr("ms"), Lw = gr("s"), _w = gr("m"), Dw = gr("h"), Iw = gr("d"), Rw = gr("w"), Nw = gr("M"), Bw = gr("Q"), jw = gr("y"), Ww = Ku;
  19876. function Yw() {
  19877. return Yi(this);
  19878. }
  19879. function zw(r) {
  19880. return r = Ei(r), this.isValid() ? this[r + "s"]() : NaN;
  19881. }
  19882. function Kr(r) {
  19883. return function() {
  19884. return this.isValid() ? this._data[r] : NaN;
  19885. };
  19886. }
  19887. var Xw = Kr("milliseconds"), Gw = Kr("seconds"), Hw = Kr("minutes"), Fw = Kr("hours"), Uw = Kr("days"), Vw = Kr("months"), $w = Kr("years");
  19888. function Zw() {
  19889. return ki(this.days() / 7);
  19890. }
  19891. var or = Math.round, mn = {
  19892. ss: 44,
  19893. // a few seconds to seconds
  19894. s: 45,
  19895. // seconds to minute
  19896. m: 45,
  19897. // minutes to hour
  19898. h: 22,
  19899. // hours to day
  19900. d: 26,
  19901. // days to month/week
  19902. w: null,
  19903. // weeks to month
  19904. M: 11
  19905. // months to year
  19906. };
  19907. function Kw(r, d, C, o, y) {
  19908. return y.relativeTime(d || 1, !!C, r, o);
  19909. }
  19910. function Jw(r, d, C, o) {
  19911. var y = Yi(r).abs(), N = or(y.as("s")), _ = or(y.as("m")), U = or(y.as("h")), G = or(y.as("d")), V = or(y.as("M")), F = or(y.as("w")), B = or(y.as("y")), j = N <= C.ss && ["s", N] || N < C.s && ["ss", N] || _ <= 1 && ["m"] || _ < C.m && ["mm", _] || U <= 1 && ["h"] || U < C.h && ["hh", U] || G <= 1 && ["d"] || G < C.d && ["dd", G];
  19912. return C.w != null && (j = j || F <= 1 && ["w"] || F < C.w && ["ww", F]), j = j || V <= 1 && ["M"] || V < C.M && ["MM", V] || B <= 1 && ["y"] || ["yy", B], j[2] = d, j[3] = +r > 0, j[4] = o, Kw.apply(null, j);
  19913. }
  19914. function qw(r) {
  19915. return r === void 0 ? or : typeof r == "function" ? (or = r, !0) : !1;
  19916. }
  19917. function Qw(r, d) {
  19918. return mn[r] === void 0 ? !1 : d === void 0 ? mn[r] : (mn[r] = d, r === "s" && (mn.ss = d - 1), !0);
  19919. }
  19920. function tM(r, d) {
  19921. if (!this.isValid())
  19922. return this.localeData().invalidDate();
  19923. var C = !1, o = mn, y, N;
  19924. return typeof r == "object" && (d = r, r = !1), typeof r == "boolean" && (C = r), typeof d == "object" && (o = Object.assign({}, mn, d), d.s != null && d.ss == null && (o.ss = d.s - 1)), y = this.localeData(), N = Jw(this, !C, o, y), C && (N = y.pastFuture(+this, N)), y.postformat(N);
  19925. }
  19926. var sl = Math.abs;
  19927. function fn(r) {
  19928. return (r > 0) - (r < 0) || +r;
  19929. }
  19930. function No() {
  19931. if (!this.isValid())
  19932. return this.localeData().invalidDate();
  19933. var r = sl(this._milliseconds) / 1e3, d = sl(this._days), C = sl(this._months), o, y, N, _, U = this.asSeconds(), G, V, F, B;
  19934. return U ? (o = ki(r / 60), y = ki(o / 60), r %= 60, o %= 60, N = ki(C / 12), C %= 12, _ = r ? r.toFixed(3).replace(/\.?0+$/, "") : "", G = U < 0 ? "-" : "", V = fn(this._months) !== fn(U) ? "-" : "", F = fn(this._days) !== fn(U) ? "-" : "", B = fn(this._milliseconds) !== fn(U) ? "-" : "", G + "P" + (N ? V + N + "Y" : "") + (C ? V + C + "M" : "") + (d ? F + d + "D" : "") + (y || o || r ? "T" : "") + (y ? B + y + "H" : "") + (o ? B + o + "M" : "") + (r ? B + _ + "S" : "")) : "P0D";
  19935. }
  19936. var fe = Io.prototype;
  19937. fe.isValid = Vb;
  19938. fe.abs = Aw;
  19939. fe.add = Tw;
  19940. fe.subtract = Pw;
  19941. fe.as = Ow;
  19942. fe.asMilliseconds = Ku;
  19943. fe.asSeconds = Lw;
  19944. fe.asMinutes = _w;
  19945. fe.asHours = Dw;
  19946. fe.asDays = Iw;
  19947. fe.asWeeks = Rw;
  19948. fe.asMonths = Nw;
  19949. fe.asQuarters = Bw;
  19950. fe.asYears = jw;
  19951. fe.valueOf = Ww;
  19952. fe._bubble = Ew;
  19953. fe.clone = Yw;
  19954. fe.get = zw;
  19955. fe.milliseconds = Xw;
  19956. fe.seconds = Gw;
  19957. fe.minutes = Hw;
  19958. fe.hours = Fw;
  19959. fe.days = Uw;
  19960. fe.weeks = Zw;
  19961. fe.months = Vw;
  19962. fe.years = $w;
  19963. fe.humanize = tM;
  19964. fe.toISOString = No;
  19965. fe.toString = No;
  19966. fe.toJSON = No;
  19967. fe.locale = Bu;
  19968. fe.localeData = Wu;
  19969. fe.toIsoString = Pi(
  19970. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  19971. No
  19972. );
  19973. fe.lang = ju;
  19974. Zt("X", 0, 0, "unix");
  19975. Zt("x", 0, 0, "valueOf");
  19976. Ft("x", Oo);
  19977. Ft("X", S1);
  19978. we("X", function(r, d, C) {
  19979. C._d = new Date(parseFloat(r) * 1e3);
  19980. });
  19981. we("x", function(r, d, C) {
  19982. C._d = new Date(pe(r));
  19983. });
  19984. //! moment.js
  19985. Xt.version = "2.30.1";
  19986. e1(Te);
  19987. Xt.fn = jt;
  19988. Xt.min = Gb;
  19989. Xt.max = Hb;
  19990. Xt.now = Fb;
  19991. Xt.utc = $i;
  19992. Xt.unix = xw;
  19993. Xt.months = Sw;
  19994. Xt.isDate = as;
  19995. Xt.locale = Er;
  19996. Xt.invalid = Ao;
  19997. Xt.duration = Yi;
  19998. Xt.isMoment = Wi;
  19999. Xt.weekdays = Mw;
  20000. Xt.parseZone = bw;
  20001. Xt.localeData = fr;
  20002. Xt.isDuration = ao;
  20003. Xt.monthsShort = ww;
  20004. Xt.weekdaysMin = kw;
  20005. Xt.defineLocale = Yl;
  20006. Xt.updateLocale = bb;
  20007. Xt.locales = Sb;
  20008. Xt.weekdaysShort = Cw;
  20009. Xt.normalizeUnits = Ei;
  20010. Xt.relativeTimeRounding = qw;
  20011. Xt.relativeTimeThreshold = Qw;
  20012. Xt.calendarFormat = mS;
  20013. Xt.prototype = jt;
  20014. Xt.HTML5_FMT = {
  20015. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  20016. // <input type="datetime-local" />
  20017. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  20018. // <input type="datetime-local" step="1" />
  20019. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  20020. // <input type="datetime-local" step="0.001" />
  20021. DATE: "YYYY-MM-DD",
  20022. // <input type="date" />
  20023. TIME: "HH:mm",
  20024. // <input type="time" />
  20025. TIME_SECONDS: "HH:mm:ss",
  20026. // <input type="time" step="1" />
  20027. TIME_MS: "HH:mm:ss.SSS",
  20028. // <input type="time" step="0.001" />
  20029. WEEK: "GGGG-[W]WW",
  20030. // <input type="week" />
  20031. MONTH: "YYYY-MM"
  20032. // <input type="month" />
  20033. };
  20034. var So = { exports: {} };
  20035. /**
  20036. * @license
  20037. * Lodash <https://lodash.com/>
  20038. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  20039. * Released under MIT license <https://lodash.com/license>
  20040. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  20041. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  20042. */
  20043. So.exports;
  20044. (function(r, d) {
  20045. (function() {
  20046. var C, o = "4.17.21", y = 200, N = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", _ = "Expected a function", U = "Invalid `variable` option passed into `_.template`", G = "__lodash_hash_undefined__", V = 500, F = "__lodash_placeholder__", B = 1, j = 2, w = 4, x = 1, f = 2, l = 1, T = 2, O = 4, R = 8, k = 16, b = 32, S = 64, v = 128, h = 256, c = 512, u = 30, i = "...", p = 800, a = 16, t = 1, s = 2, n = 3, P = 1 / 0, D = 9007199254740991, I = 17976931348623157e292, W = 0 / 0, E = 4294967295, X = E - 1, g = E >>> 1, m = [
  20047. ["ary", v],
  20048. ["bind", l],
  20049. ["bindKey", T],
  20050. ["curry", R],
  20051. ["curryRight", k],
  20052. ["flip", c],
  20053. ["partial", b],
  20054. ["partialRight", S],
  20055. ["rearg", h]
  20056. ], L = "[object Arguments]", z = "[object Array]", $ = "[object AsyncFunction]", Q = "[object Boolean]", A = "[object Date]", H = "[object DOMException]", Y = "[object Error]", Z = "[object Function]", q = "[object GeneratorFunction]", it = "[object Map]", et = "[object Number]", nt = "[object Null]", rt = "[object Object]", ct = "[object Promise]", gt = "[object Proxy]", dt = "[object RegExp]", ht = "[object Set]", at = "[object String]", J = "[object Symbol]", tt = "[object Undefined]", ot = "[object WeakMap]", lt = "[object WeakSet]", pt = "[object ArrayBuffer]", yt = "[object DataView]", vt = "[object Float32Array]", Ct = "[object Float64Array]", Pt = "[object Int8Array]", At = "[object Int16Array]", St = "[object Int32Array]", Dt = "[object Uint8Array]", _t = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Ot = "[object Uint32Array]", Kt = /\b__p \+= '';/g, Gt = /\b(__p \+=) '' \+/g, Wt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Jt = /&(?:amp|lt|gt|quot|#39);/g, be = /[&<>"']/g, Yt = RegExp(Jt.source), Vt = RegExp(be.source), Me = /<%-([\s\S]+?)%>/g, Or = /<%([\s\S]+?)%>/g, us = /<%=([\s\S]+?)%>/g, En = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, On = /^\w*$/, $e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ln = /[\\^$.*+?()[\]{}|]/g, _n = RegExp(Ln.source), Jr = /^\s+/, ds = /\s/, Go = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Lr = /\{\n\/\* \[wrapped with (.+)\] \*/, Xi = /,? & /, fs = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Dn = /[()=,{}\[\]\/\s]/, _r = /\\(\\)?/g, $t = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, de = /\w*$/, ge = /^[-+]0x[0-9a-f]+$/i, Re = /^0b[01]+$/i, De = /^\[object .+?Constructor\]$/, qr = /^0o[0-7]+$/i, Od = /^(?:0|[1-9]\d*)$/, Ld = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, gs = /($^)/, _d = /['\n\r\u2028\u2029\\]/g, ms = "\\ud800-\\udfff", Dd = "\\u0300-\\u036f", Id = "\\ufe20-\\ufe2f", Rd = "\\u20d0-\\u20ff", sh = Dd + Id + Rd, oh = "\\u2700-\\u27bf", ah = "a-z\\xdf-\\xf6\\xf8-\\xff", Nd = "\\xac\\xb1\\xd7\\xf7", Bd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", jd = "\\u2000-\\u206f", Wd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", lh = "A-Z\\xc0-\\xd6\\xd8-\\xde", hh = "\\ufe0e\\ufe0f", ch = Nd + Bd + jd + Wd, Ho = "['’]", Yd = "[" + ms + "]", ph = "[" + ch + "]", ys = "[" + sh + "]", uh = "\\d+", zd = "[" + oh + "]", dh = "[" + ah + "]", fh = "[^" + ms + ch + uh + oh + ah + lh + "]", Fo = "\\ud83c[\\udffb-\\udfff]", Xd = "(?:" + ys + "|" + Fo + ")", gh = "[^" + ms + "]", Uo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Vo = "[\\ud800-\\udbff][\\udc00-\\udfff]", Qr = "[" + lh + "]", mh = "\\u200d", yh = "(?:" + dh + "|" + fh + ")", Gd = "(?:" + Qr + "|" + fh + ")", vh = "(?:" + Ho + "(?:d|ll|m|re|s|t|ve))?", xh = "(?:" + Ho + "(?:D|LL|M|RE|S|T|VE))?", bh = Xd + "?", Sh = "[" + hh + "]?", Hd = "(?:" + mh + "(?:" + [gh, Uo, Vo].join("|") + ")" + Sh + bh + ")*", Fd = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ud = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", wh = Sh + bh + Hd, Vd = "(?:" + [zd, Uo, Vo].join("|") + ")" + wh, $d = "(?:" + [gh + ys + "?", ys, Uo, Vo, Yd].join("|") + ")", Zd = RegExp(Ho, "g"), Kd = RegExp(ys, "g"), $o = RegExp(Fo + "(?=" + Fo + ")|" + $d + wh, "g"), Jd = RegExp([
  20057. Qr + "?" + dh + "+" + vh + "(?=" + [ph, Qr, "$"].join("|") + ")",
  20058. Gd + "+" + xh + "(?=" + [ph, Qr + yh, "$"].join("|") + ")",
  20059. Qr + "?" + yh + "+" + vh,
  20060. Qr + "+" + xh,
  20061. Ud,
  20062. Fd,
  20063. uh,
  20064. Vd
  20065. ].join("|"), "g"), qd = RegExp("[" + mh + ms + sh + hh + "]"), Qd = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, tf = [
  20066. "Array",
  20067. "Buffer",
  20068. "DataView",
  20069. "Date",
  20070. "Error",
  20071. "Float32Array",
  20072. "Float64Array",
  20073. "Function",
  20074. "Int8Array",
  20075. "Int16Array",
  20076. "Int32Array",
  20077. "Map",
  20078. "Math",
  20079. "Object",
  20080. "Promise",
  20081. "RegExp",
  20082. "Set",
  20083. "String",
  20084. "Symbol",
  20085. "TypeError",
  20086. "Uint8Array",
  20087. "Uint8ClampedArray",
  20088. "Uint16Array",
  20089. "Uint32Array",
  20090. "WeakMap",
  20091. "_",
  20092. "clearTimeout",
  20093. "isFinite",
  20094. "parseInt",
  20095. "setTimeout"
  20096. ], ef = -1, Ae = {};
  20097. Ae[vt] = Ae[Ct] = Ae[Pt] = Ae[At] = Ae[St] = Ae[Dt] = Ae[_t] = Ae[Nt] = Ae[Ot] = !0, Ae[L] = Ae[z] = Ae[pt] = Ae[Q] = Ae[yt] = Ae[A] = Ae[Y] = Ae[Z] = Ae[it] = Ae[et] = Ae[rt] = Ae[dt] = Ae[ht] = Ae[at] = Ae[ot] = !1;
  20098. var ke = {};
  20099. ke[L] = ke[z] = ke[pt] = ke[yt] = ke[Q] = ke[A] = ke[vt] = ke[Ct] = ke[Pt] = ke[At] = ke[St] = ke[it] = ke[et] = ke[rt] = ke[dt] = ke[ht] = ke[at] = ke[J] = ke[Dt] = ke[_t] = ke[Nt] = ke[Ot] = !0, ke[Y] = ke[Z] = ke[ot] = !1;
  20100. var rf = {
  20101. // Latin-1 Supplement block.
  20102. À: "A",
  20103. Á: "A",
  20104. Â: "A",
  20105. Ã: "A",
  20106. Ä: "A",
  20107. Å: "A",
  20108. à: "a",
  20109. á: "a",
  20110. â: "a",
  20111. ã: "a",
  20112. ä: "a",
  20113. å: "a",
  20114. Ç: "C",
  20115. ç: "c",
  20116. Ð: "D",
  20117. ð: "d",
  20118. È: "E",
  20119. É: "E",
  20120. Ê: "E",
  20121. Ë: "E",
  20122. è: "e",
  20123. é: "e",
  20124. ê: "e",
  20125. ë: "e",
  20126. Ì: "I",
  20127. Í: "I",
  20128. Î: "I",
  20129. Ï: "I",
  20130. ì: "i",
  20131. í: "i",
  20132. î: "i",
  20133. ï: "i",
  20134. Ñ: "N",
  20135. ñ: "n",
  20136. Ò: "O",
  20137. Ó: "O",
  20138. Ô: "O",
  20139. Õ: "O",
  20140. Ö: "O",
  20141. Ø: "O",
  20142. ò: "o",
  20143. ó: "o",
  20144. ô: "o",
  20145. õ: "o",
  20146. ö: "o",
  20147. ø: "o",
  20148. Ù: "U",
  20149. Ú: "U",
  20150. Û: "U",
  20151. Ü: "U",
  20152. ù: "u",
  20153. ú: "u",
  20154. û: "u",
  20155. ü: "u",
  20156. Ý: "Y",
  20157. ý: "y",
  20158. ÿ: "y",
  20159. Æ: "Ae",
  20160. æ: "ae",
  20161. Þ: "Th",
  20162. þ: "th",
  20163. ß: "ss",
  20164. // Latin Extended-A block.
  20165. Ā: "A",
  20166. Ă: "A",
  20167. Ą: "A",
  20168. ā: "a",
  20169. ă: "a",
  20170. ą: "a",
  20171. Ć: "C",
  20172. Ĉ: "C",
  20173. Ċ: "C",
  20174. Č: "C",
  20175. ć: "c",
  20176. ĉ: "c",
  20177. ċ: "c",
  20178. č: "c",
  20179. Ď: "D",
  20180. Đ: "D",
  20181. ď: "d",
  20182. đ: "d",
  20183. Ē: "E",
  20184. Ĕ: "E",
  20185. Ė: "E",
  20186. Ę: "E",
  20187. Ě: "E",
  20188. ē: "e",
  20189. ĕ: "e",
  20190. ė: "e",
  20191. ę: "e",
  20192. ě: "e",
  20193. Ĝ: "G",
  20194. Ğ: "G",
  20195. Ġ: "G",
  20196. Ģ: "G",
  20197. ĝ: "g",
  20198. ğ: "g",
  20199. ġ: "g",
  20200. ģ: "g",
  20201. Ĥ: "H",
  20202. Ħ: "H",
  20203. ĥ: "h",
  20204. ħ: "h",
  20205. Ĩ: "I",
  20206. Ī: "I",
  20207. Ĭ: "I",
  20208. Į: "I",
  20209. İ: "I",
  20210. ĩ: "i",
  20211. ī: "i",
  20212. ĭ: "i",
  20213. į: "i",
  20214. ı: "i",
  20215. Ĵ: "J",
  20216. ĵ: "j",
  20217. Ķ: "K",
  20218. ķ: "k",
  20219. ĸ: "k",
  20220. Ĺ: "L",
  20221. Ļ: "L",
  20222. Ľ: "L",
  20223. Ŀ: "L",
  20224. Ł: "L",
  20225. ĺ: "l",
  20226. ļ: "l",
  20227. ľ: "l",
  20228. ŀ: "l",
  20229. ł: "l",
  20230. Ń: "N",
  20231. Ņ: "N",
  20232. Ň: "N",
  20233. Ŋ: "N",
  20234. ń: "n",
  20235. ņ: "n",
  20236. ň: "n",
  20237. ŋ: "n",
  20238. Ō: "O",
  20239. Ŏ: "O",
  20240. Ő: "O",
  20241. ō: "o",
  20242. ŏ: "o",
  20243. ő: "o",
  20244. Ŕ: "R",
  20245. Ŗ: "R",
  20246. Ř: "R",
  20247. ŕ: "r",
  20248. ŗ: "r",
  20249. ř: "r",
  20250. Ś: "S",
  20251. Ŝ: "S",
  20252. Ş: "S",
  20253. Š: "S",
  20254. ś: "s",
  20255. ŝ: "s",
  20256. ş: "s",
  20257. š: "s",
  20258. Ţ: "T",
  20259. Ť: "T",
  20260. Ŧ: "T",
  20261. ţ: "t",
  20262. ť: "t",
  20263. ŧ: "t",
  20264. Ũ: "U",
  20265. Ū: "U",
  20266. Ŭ: "U",
  20267. Ů: "U",
  20268. Ű: "U",
  20269. Ų: "U",
  20270. ũ: "u",
  20271. ū: "u",
  20272. ŭ: "u",
  20273. ů: "u",
  20274. ű: "u",
  20275. ų: "u",
  20276. Ŵ: "W",
  20277. ŵ: "w",
  20278. Ŷ: "Y",
  20279. ŷ: "y",
  20280. Ÿ: "Y",
  20281. Ź: "Z",
  20282. Ż: "Z",
  20283. Ž: "Z",
  20284. ź: "z",
  20285. ż: "z",
  20286. ž: "z",
  20287. IJ: "IJ",
  20288. ij: "ij",
  20289. Œ: "Oe",
  20290. œ: "oe",
  20291. ʼn: "'n",
  20292. ſ: "s"
  20293. }, nf = {
  20294. "&": "&amp;",
  20295. "<": "&lt;",
  20296. ">": "&gt;",
  20297. '"': "&quot;",
  20298. "'": "&#39;"
  20299. }, sf = {
  20300. "&amp;": "&",
  20301. "&lt;": "<",
  20302. "&gt;": ">",
  20303. "&quot;": '"',
  20304. "&#39;": "'"
  20305. }, of = {
  20306. "\\": "\\",
  20307. "'": "'",
  20308. "\n": "n",
  20309. "\r": "r",
  20310. "\u2028": "u2028",
  20311. "\u2029": "u2029"
  20312. }, af = parseFloat, lf = parseInt, Mh = typeof Gr == "object" && Gr && Gr.Object === Object && Gr, hf = typeof self == "object" && self && self.Object === Object && self, Ue = Mh || hf || Function("return this")(), Zo = d && !d.nodeType && d, Dr = Zo && !0 && r && !r.nodeType && r, Ch = Dr && Dr.exports === Zo, Ko = Ch && Mh.process, yi = function() {
  20313. try {
  20314. var wt = Dr && Dr.require && Dr.require("util").types;
  20315. return wt || Ko && Ko.binding && Ko.binding("util");
  20316. } catch {
  20317. }
  20318. }(), kh = yi && yi.isArrayBuffer, Ah = yi && yi.isDate, Th = yi && yi.isMap, Ph = yi && yi.isRegExp, Eh = yi && yi.isSet, Oh = yi && yi.isTypedArray;
  20319. function hi(wt, Lt, Tt) {
  20320. switch (Tt.length) {
  20321. case 0:
  20322. return wt.call(Lt);
  20323. case 1:
  20324. return wt.call(Lt, Tt[0]);
  20325. case 2:
  20326. return wt.call(Lt, Tt[0], Tt[1]);
  20327. case 3:
  20328. return wt.call(Lt, Tt[0], Tt[1], Tt[2]);
  20329. }
  20330. return wt.apply(Lt, Tt);
  20331. }
  20332. function cf(wt, Lt, Tt, Ht) {
  20333. for (var ee = -1, ve = wt == null ? 0 : wt.length; ++ee < ve; ) {
  20334. var ze = wt[ee];
  20335. Lt(Ht, ze, Tt(ze), wt);
  20336. }
  20337. return Ht;
  20338. }
  20339. function vi(wt, Lt) {
  20340. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht && Lt(wt[Tt], Tt, wt) !== !1; )
  20341. ;
  20342. return wt;
  20343. }
  20344. function pf(wt, Lt) {
  20345. for (var Tt = wt == null ? 0 : wt.length; Tt-- && Lt(wt[Tt], Tt, wt) !== !1; )
  20346. ;
  20347. return wt;
  20348. }
  20349. function Lh(wt, Lt) {
  20350. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht; )
  20351. if (!Lt(wt[Tt], Tt, wt))
  20352. return !1;
  20353. return !0;
  20354. }
  20355. function mr(wt, Lt) {
  20356. for (var Tt = -1, Ht = wt == null ? 0 : wt.length, ee = 0, ve = []; ++Tt < Ht; ) {
  20357. var ze = wt[Tt];
  20358. Lt(ze, Tt, wt) && (ve[ee++] = ze);
  20359. }
  20360. return ve;
  20361. }
  20362. function vs(wt, Lt) {
  20363. var Tt = wt == null ? 0 : wt.length;
  20364. return !!Tt && tn(wt, Lt, 0) > -1;
  20365. }
  20366. function Jo(wt, Lt, Tt) {
  20367. for (var Ht = -1, ee = wt == null ? 0 : wt.length; ++Ht < ee; )
  20368. if (Tt(Lt, wt[Ht]))
  20369. return !0;
  20370. return !1;
  20371. }
  20372. function Ee(wt, Lt) {
  20373. for (var Tt = -1, Ht = wt == null ? 0 : wt.length, ee = Array(Ht); ++Tt < Ht; )
  20374. ee[Tt] = Lt(wt[Tt], Tt, wt);
  20375. return ee;
  20376. }
  20377. function yr(wt, Lt) {
  20378. for (var Tt = -1, Ht = Lt.length, ee = wt.length; ++Tt < Ht; )
  20379. wt[ee + Tt] = Lt[Tt];
  20380. return wt;
  20381. }
  20382. function qo(wt, Lt, Tt, Ht) {
  20383. var ee = -1, ve = wt == null ? 0 : wt.length;
  20384. for (Ht && ve && (Tt = wt[++ee]); ++ee < ve; )
  20385. Tt = Lt(Tt, wt[ee], ee, wt);
  20386. return Tt;
  20387. }
  20388. function uf(wt, Lt, Tt, Ht) {
  20389. var ee = wt == null ? 0 : wt.length;
  20390. for (Ht && ee && (Tt = wt[--ee]); ee--; )
  20391. Tt = Lt(Tt, wt[ee], ee, wt);
  20392. return Tt;
  20393. }
  20394. function Qo(wt, Lt) {
  20395. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht; )
  20396. if (Lt(wt[Tt], Tt, wt))
  20397. return !0;
  20398. return !1;
  20399. }
  20400. var df = ta("length");
  20401. function ff(wt) {
  20402. return wt.split("");
  20403. }
  20404. function gf(wt) {
  20405. return wt.match(fs) || [];
  20406. }
  20407. function _h(wt, Lt, Tt) {
  20408. var Ht;
  20409. return Tt(wt, function(ee, ve, ze) {
  20410. if (Lt(ee, ve, ze))
  20411. return Ht = ve, !1;
  20412. }), Ht;
  20413. }
  20414. function xs(wt, Lt, Tt, Ht) {
  20415. for (var ee = wt.length, ve = Tt + (Ht ? 1 : -1); Ht ? ve-- : ++ve < ee; )
  20416. if (Lt(wt[ve], ve, wt))
  20417. return ve;
  20418. return -1;
  20419. }
  20420. function tn(wt, Lt, Tt) {
  20421. return Lt === Lt ? Tf(wt, Lt, Tt) : xs(wt, Dh, Tt);
  20422. }
  20423. function mf(wt, Lt, Tt, Ht) {
  20424. for (var ee = Tt - 1, ve = wt.length; ++ee < ve; )
  20425. if (Ht(wt[ee], Lt))
  20426. return ee;
  20427. return -1;
  20428. }
  20429. function Dh(wt) {
  20430. return wt !== wt;
  20431. }
  20432. function Ih(wt, Lt) {
  20433. var Tt = wt == null ? 0 : wt.length;
  20434. return Tt ? ia(wt, Lt) / Tt : W;
  20435. }
  20436. function ta(wt) {
  20437. return function(Lt) {
  20438. return Lt == null ? C : Lt[wt];
  20439. };
  20440. }
  20441. function ea(wt) {
  20442. return function(Lt) {
  20443. return wt == null ? C : wt[Lt];
  20444. };
  20445. }
  20446. function Rh(wt, Lt, Tt, Ht, ee) {
  20447. return ee(wt, function(ve, ze, Ce) {
  20448. Tt = Ht ? (Ht = !1, ve) : Lt(Tt, ve, ze, Ce);
  20449. }), Tt;
  20450. }
  20451. function yf(wt, Lt) {
  20452. var Tt = wt.length;
  20453. for (wt.sort(Lt); Tt--; )
  20454. wt[Tt] = wt[Tt].value;
  20455. return wt;
  20456. }
  20457. function ia(wt, Lt) {
  20458. for (var Tt, Ht = -1, ee = wt.length; ++Ht < ee; ) {
  20459. var ve = Lt(wt[Ht]);
  20460. ve !== C && (Tt = Tt === C ? ve : Tt + ve);
  20461. }
  20462. return Tt;
  20463. }
  20464. function ra(wt, Lt) {
  20465. for (var Tt = -1, Ht = Array(wt); ++Tt < wt; )
  20466. Ht[Tt] = Lt(Tt);
  20467. return Ht;
  20468. }
  20469. function vf(wt, Lt) {
  20470. return Ee(Lt, function(Tt) {
  20471. return [Tt, wt[Tt]];
  20472. });
  20473. }
  20474. function Nh(wt) {
  20475. return wt && wt.slice(0, Yh(wt) + 1).replace(Jr, "");
  20476. }
  20477. function ci(wt) {
  20478. return function(Lt) {
  20479. return wt(Lt);
  20480. };
  20481. }
  20482. function na(wt, Lt) {
  20483. return Ee(Lt, function(Tt) {
  20484. return wt[Tt];
  20485. });
  20486. }
  20487. function In(wt, Lt) {
  20488. return wt.has(Lt);
  20489. }
  20490. function Bh(wt, Lt) {
  20491. for (var Tt = -1, Ht = wt.length; ++Tt < Ht && tn(Lt, wt[Tt], 0) > -1; )
  20492. ;
  20493. return Tt;
  20494. }
  20495. function jh(wt, Lt) {
  20496. for (var Tt = wt.length; Tt-- && tn(Lt, wt[Tt], 0) > -1; )
  20497. ;
  20498. return Tt;
  20499. }
  20500. function xf(wt, Lt) {
  20501. for (var Tt = wt.length, Ht = 0; Tt--; )
  20502. wt[Tt] === Lt && ++Ht;
  20503. return Ht;
  20504. }
  20505. var bf = ea(rf), Sf = ea(nf);
  20506. function wf(wt) {
  20507. return "\\" + of[wt];
  20508. }
  20509. function Mf(wt, Lt) {
  20510. return wt == null ? C : wt[Lt];
  20511. }
  20512. function en(wt) {
  20513. return qd.test(wt);
  20514. }
  20515. function Cf(wt) {
  20516. return Qd.test(wt);
  20517. }
  20518. function kf(wt) {
  20519. for (var Lt, Tt = []; !(Lt = wt.next()).done; )
  20520. Tt.push(Lt.value);
  20521. return Tt;
  20522. }
  20523. function sa(wt) {
  20524. var Lt = -1, Tt = Array(wt.size);
  20525. return wt.forEach(function(Ht, ee) {
  20526. Tt[++Lt] = [ee, Ht];
  20527. }), Tt;
  20528. }
  20529. function Wh(wt, Lt) {
  20530. return function(Tt) {
  20531. return wt(Lt(Tt));
  20532. };
  20533. }
  20534. function vr(wt, Lt) {
  20535. for (var Tt = -1, Ht = wt.length, ee = 0, ve = []; ++Tt < Ht; ) {
  20536. var ze = wt[Tt];
  20537. (ze === Lt || ze === F) && (wt[Tt] = F, ve[ee++] = Tt);
  20538. }
  20539. return ve;
  20540. }
  20541. function bs(wt) {
  20542. var Lt = -1, Tt = Array(wt.size);
  20543. return wt.forEach(function(Ht) {
  20544. Tt[++Lt] = Ht;
  20545. }), Tt;
  20546. }
  20547. function Af(wt) {
  20548. var Lt = -1, Tt = Array(wt.size);
  20549. return wt.forEach(function(Ht) {
  20550. Tt[++Lt] = [Ht, Ht];
  20551. }), Tt;
  20552. }
  20553. function Tf(wt, Lt, Tt) {
  20554. for (var Ht = Tt - 1, ee = wt.length; ++Ht < ee; )
  20555. if (wt[Ht] === Lt)
  20556. return Ht;
  20557. return -1;
  20558. }
  20559. function Pf(wt, Lt, Tt) {
  20560. for (var Ht = Tt + 1; Ht--; )
  20561. if (wt[Ht] === Lt)
  20562. return Ht;
  20563. return Ht;
  20564. }
  20565. function rn(wt) {
  20566. return en(wt) ? Of(wt) : df(wt);
  20567. }
  20568. function Oi(wt) {
  20569. return en(wt) ? Lf(wt) : ff(wt);
  20570. }
  20571. function Yh(wt) {
  20572. for (var Lt = wt.length; Lt-- && ds.test(wt.charAt(Lt)); )
  20573. ;
  20574. return Lt;
  20575. }
  20576. var Ef = ea(sf);
  20577. function Of(wt) {
  20578. for (var Lt = $o.lastIndex = 0; $o.test(wt); )
  20579. ++Lt;
  20580. return Lt;
  20581. }
  20582. function Lf(wt) {
  20583. return wt.match($o) || [];
  20584. }
  20585. function _f(wt) {
  20586. return wt.match(Jd) || [];
  20587. }
  20588. var Df = function wt(Lt) {
  20589. Lt = Lt == null ? Ue : nn.defaults(Ue.Object(), Lt, nn.pick(Ue, tf));
  20590. var Tt = Lt.Array, Ht = Lt.Date, ee = Lt.Error, ve = Lt.Function, ze = Lt.Math, Ce = Lt.Object, oa = Lt.RegExp, If = Lt.String, xi = Lt.TypeError, Ss = Tt.prototype, Rf = ve.prototype, sn = Ce.prototype, ws = Lt["__core-js_shared__"], Ms = Rf.toString, Se = sn.hasOwnProperty, Nf = 0, zh = function() {
  20591. var e = /[^.]+$/.exec(ws && ws.keys && ws.keys.IE_PROTO || "");
  20592. return e ? "Symbol(src)_1." + e : "";
  20593. }(), Cs = sn.toString, Bf = Ms.call(Ce), jf = Ue._, Wf = oa(
  20594. "^" + Ms.call(Se).replace(Ln, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  20595. ), ks = Ch ? Lt.Buffer : C, xr = Lt.Symbol, As = Lt.Uint8Array, Xh = ks ? ks.allocUnsafe : C, Ts = Wh(Ce.getPrototypeOf, Ce), Gh = Ce.create, Hh = sn.propertyIsEnumerable, Ps = Ss.splice, Fh = xr ? xr.isConcatSpreadable : C, Rn = xr ? xr.iterator : C, Ir = xr ? xr.toStringTag : C, Es = function() {
  20596. try {
  20597. var e = Wr(Ce, "defineProperty");
  20598. return e({}, "", {}), e;
  20599. } catch {
  20600. }
  20601. }(), Yf = Lt.clearTimeout !== Ue.clearTimeout && Lt.clearTimeout, zf = Ht && Ht.now !== Ue.Date.now && Ht.now, Xf = Lt.setTimeout !== Ue.setTimeout && Lt.setTimeout, Os = ze.ceil, Ls = ze.floor, aa = Ce.getOwnPropertySymbols, Gf = ks ? ks.isBuffer : C, Uh = Lt.isFinite, Hf = Ss.join, Ff = Wh(Ce.keys, Ce), Xe = ze.max, Ze = ze.min, Uf = Ht.now, Vf = Lt.parseInt, Vh = ze.random, $f = Ss.reverse, la = Wr(Lt, "DataView"), Nn = Wr(Lt, "Map"), ha = Wr(Lt, "Promise"), on = Wr(Lt, "Set"), Bn = Wr(Lt, "WeakMap"), jn = Wr(Ce, "create"), _s = Bn && new Bn(), an = {}, Zf = Yr(la), Kf = Yr(Nn), Jf = Yr(ha), qf = Yr(on), Qf = Yr(Bn), Ds = xr ? xr.prototype : C, Wn = Ds ? Ds.valueOf : C, $h = Ds ? Ds.toString : C;
  20602. function ft(e) {
  20603. if (Ne(e) && !ie(e) && !(e instanceof ce)) {
  20604. if (e instanceof bi)
  20605. return e;
  20606. if (Se.call(e, "__wrapped__"))
  20607. return Zc(e);
  20608. }
  20609. return new bi(e);
  20610. }
  20611. var ln = function() {
  20612. function e() {
  20613. }
  20614. return function(M) {
  20615. if (!Ie(M))
  20616. return {};
  20617. if (Gh)
  20618. return Gh(M);
  20619. e.prototype = M;
  20620. var K = new e();
  20621. return e.prototype = C, K;
  20622. };
  20623. }();
  20624. function Is() {
  20625. }
  20626. function bi(e, M) {
  20627. this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!M, this.__index__ = 0, this.__values__ = C;
  20628. }
  20629. ft.templateSettings = {
  20630. /**
  20631. * Used to detect `data` property values to be HTML-escaped.
  20632. *
  20633. * @memberOf _.templateSettings
  20634. * @type {RegExp}
  20635. */
  20636. escape: Me,
  20637. /**
  20638. * Used to detect code to be evaluated.
  20639. *
  20640. * @memberOf _.templateSettings
  20641. * @type {RegExp}
  20642. */
  20643. evaluate: Or,
  20644. /**
  20645. * Used to detect `data` property values to inject.
  20646. *
  20647. * @memberOf _.templateSettings
  20648. * @type {RegExp}
  20649. */
  20650. interpolate: us,
  20651. /**
  20652. * Used to reference the data object in the template text.
  20653. *
  20654. * @memberOf _.templateSettings
  20655. * @type {string}
  20656. */
  20657. variable: "",
  20658. /**
  20659. * Used to import variables into the compiled template.
  20660. *
  20661. * @memberOf _.templateSettings
  20662. * @type {Object}
  20663. */
  20664. imports: {
  20665. /**
  20666. * A reference to the `lodash` function.
  20667. *
  20668. * @memberOf _.templateSettings.imports
  20669. * @type {Function}
  20670. */
  20671. _: ft
  20672. }
  20673. }, ft.prototype = Is.prototype, ft.prototype.constructor = ft, bi.prototype = ln(Is.prototype), bi.prototype.constructor = bi;
  20674. function ce(e) {
  20675. this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = E, this.__views__ = [];
  20676. }
  20677. function tg() {
  20678. var e = new ce(this.__wrapped__);
  20679. return e.__actions__ = ri(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = ri(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = ri(this.__views__), e;
  20680. }
  20681. function eg() {
  20682. if (this.__filtered__) {
  20683. var e = new ce(this);
  20684. e.__dir__ = -1, e.__filtered__ = !0;
  20685. } else
  20686. e = this.clone(), e.__dir__ *= -1;
  20687. return e;
  20688. }
  20689. function ig() {
  20690. var e = this.__wrapped__.value(), M = this.__dir__, K = ie(e), st = M < 0, ut = K ? e.length : 0, mt = fm(0, ut, this.__views__), xt = mt.start, bt = mt.end, Mt = bt - xt, It = st ? bt : xt - 1, Rt = this.__iteratees__, Bt = Rt.length, zt = 0, Ut = Ze(Mt, this.__takeCount__);
  20691. if (!K || !st && ut == Mt && Ut == Mt)
  20692. return vc(e, this.__actions__);
  20693. var Qt = [];
  20694. t:
  20695. for (; Mt-- && zt < Ut; ) {
  20696. It += M;
  20697. for (var ae = -1, te = e[It]; ++ae < Bt; ) {
  20698. var he = Rt[ae], ue = he.iteratee, di = he.type, ii = ue(te);
  20699. if (di == s)
  20700. te = ii;
  20701. else if (!ii) {
  20702. if (di == t)
  20703. continue t;
  20704. break t;
  20705. }
  20706. }
  20707. Qt[zt++] = te;
  20708. }
  20709. return Qt;
  20710. }
  20711. ce.prototype = ln(Is.prototype), ce.prototype.constructor = ce;
  20712. function Rr(e) {
  20713. var M = -1, K = e == null ? 0 : e.length;
  20714. for (this.clear(); ++M < K; ) {
  20715. var st = e[M];
  20716. this.set(st[0], st[1]);
  20717. }
  20718. }
  20719. function rg() {
  20720. this.__data__ = jn ? jn(null) : {}, this.size = 0;
  20721. }
  20722. function ng(e) {
  20723. var M = this.has(e) && delete this.__data__[e];
  20724. return this.size -= M ? 1 : 0, M;
  20725. }
  20726. function sg(e) {
  20727. var M = this.__data__;
  20728. if (jn) {
  20729. var K = M[e];
  20730. return K === G ? C : K;
  20731. }
  20732. return Se.call(M, e) ? M[e] : C;
  20733. }
  20734. function og(e) {
  20735. var M = this.__data__;
  20736. return jn ? M[e] !== C : Se.call(M, e);
  20737. }
  20738. function ag(e, M) {
  20739. var K = this.__data__;
  20740. return this.size += this.has(e) ? 0 : 1, K[e] = jn && M === C ? G : M, this;
  20741. }
  20742. Rr.prototype.clear = rg, Rr.prototype.delete = ng, Rr.prototype.get = sg, Rr.prototype.has = og, Rr.prototype.set = ag;
  20743. function Ki(e) {
  20744. var M = -1, K = e == null ? 0 : e.length;
  20745. for (this.clear(); ++M < K; ) {
  20746. var st = e[M];
  20747. this.set(st[0], st[1]);
  20748. }
  20749. }
  20750. function lg() {
  20751. this.__data__ = [], this.size = 0;
  20752. }
  20753. function hg(e) {
  20754. var M = this.__data__, K = Rs(M, e);
  20755. if (K < 0)
  20756. return !1;
  20757. var st = M.length - 1;
  20758. return K == st ? M.pop() : Ps.call(M, K, 1), --this.size, !0;
  20759. }
  20760. function cg(e) {
  20761. var M = this.__data__, K = Rs(M, e);
  20762. return K < 0 ? C : M[K][1];
  20763. }
  20764. function pg(e) {
  20765. return Rs(this.__data__, e) > -1;
  20766. }
  20767. function ug(e, M) {
  20768. var K = this.__data__, st = Rs(K, e);
  20769. return st < 0 ? (++this.size, K.push([e, M])) : K[st][1] = M, this;
  20770. }
  20771. Ki.prototype.clear = lg, Ki.prototype.delete = hg, Ki.prototype.get = cg, Ki.prototype.has = pg, Ki.prototype.set = ug;
  20772. function Ji(e) {
  20773. var M = -1, K = e == null ? 0 : e.length;
  20774. for (this.clear(); ++M < K; ) {
  20775. var st = e[M];
  20776. this.set(st[0], st[1]);
  20777. }
  20778. }
  20779. function dg() {
  20780. this.size = 0, this.__data__ = {
  20781. hash: new Rr(),
  20782. map: new (Nn || Ki)(),
  20783. string: new Rr()
  20784. };
  20785. }
  20786. function fg(e) {
  20787. var M = Vs(this, e).delete(e);
  20788. return this.size -= M ? 1 : 0, M;
  20789. }
  20790. function gg(e) {
  20791. return Vs(this, e).get(e);
  20792. }
  20793. function mg(e) {
  20794. return Vs(this, e).has(e);
  20795. }
  20796. function yg(e, M) {
  20797. var K = Vs(this, e), st = K.size;
  20798. return K.set(e, M), this.size += K.size == st ? 0 : 1, this;
  20799. }
  20800. Ji.prototype.clear = dg, Ji.prototype.delete = fg, Ji.prototype.get = gg, Ji.prototype.has = mg, Ji.prototype.set = yg;
  20801. function Nr(e) {
  20802. var M = -1, K = e == null ? 0 : e.length;
  20803. for (this.__data__ = new Ji(); ++M < K; )
  20804. this.add(e[M]);
  20805. }
  20806. function vg(e) {
  20807. return this.__data__.set(e, G), this;
  20808. }
  20809. function xg(e) {
  20810. return this.__data__.has(e);
  20811. }
  20812. Nr.prototype.add = Nr.prototype.push = vg, Nr.prototype.has = xg;
  20813. function Li(e) {
  20814. var M = this.__data__ = new Ki(e);
  20815. this.size = M.size;
  20816. }
  20817. function bg() {
  20818. this.__data__ = new Ki(), this.size = 0;
  20819. }
  20820. function Sg(e) {
  20821. var M = this.__data__, K = M.delete(e);
  20822. return this.size = M.size, K;
  20823. }
  20824. function wg(e) {
  20825. return this.__data__.get(e);
  20826. }
  20827. function Mg(e) {
  20828. return this.__data__.has(e);
  20829. }
  20830. function Cg(e, M) {
  20831. var K = this.__data__;
  20832. if (K instanceof Ki) {
  20833. var st = K.__data__;
  20834. if (!Nn || st.length < y - 1)
  20835. return st.push([e, M]), this.size = ++K.size, this;
  20836. K = this.__data__ = new Ji(st);
  20837. }
  20838. return K.set(e, M), this.size = K.size, this;
  20839. }
  20840. Li.prototype.clear = bg, Li.prototype.delete = Sg, Li.prototype.get = wg, Li.prototype.has = Mg, Li.prototype.set = Cg;
  20841. function Zh(e, M) {
  20842. var K = ie(e), st = !K && zr(e), ut = !K && !st && Cr(e), mt = !K && !st && !ut && un(e), xt = K || st || ut || mt, bt = xt ? ra(e.length, If) : [], Mt = bt.length;
  20843. for (var It in e)
  20844. (M || Se.call(e, It)) && !(xt && // Safari 9 has enumerable `arguments.length` in strict mode.
  20845. (It == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  20846. ut && (It == "offset" || It == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  20847. mt && (It == "buffer" || It == "byteLength" || It == "byteOffset") || // Skip index properties.
  20848. er(It, Mt))) && bt.push(It);
  20849. return bt;
  20850. }
  20851. function Kh(e) {
  20852. var M = e.length;
  20853. return M ? e[ba(0, M - 1)] : C;
  20854. }
  20855. function kg(e, M) {
  20856. return $s(ri(e), Br(M, 0, e.length));
  20857. }
  20858. function Ag(e) {
  20859. return $s(ri(e));
  20860. }
  20861. function ca(e, M, K) {
  20862. (K !== C && !_i(e[M], K) || K === C && !(M in e)) && qi(e, M, K);
  20863. }
  20864. function Yn(e, M, K) {
  20865. var st = e[M];
  20866. (!(Se.call(e, M) && _i(st, K)) || K === C && !(M in e)) && qi(e, M, K);
  20867. }
  20868. function Rs(e, M) {
  20869. for (var K = e.length; K--; )
  20870. if (_i(e[K][0], M))
  20871. return K;
  20872. return -1;
  20873. }
  20874. function Tg(e, M, K, st) {
  20875. return br(e, function(ut, mt, xt) {
  20876. M(st, ut, K(ut), xt);
  20877. }), st;
  20878. }
  20879. function Jh(e, M) {
  20880. return e && Hi(M, He(M), e);
  20881. }
  20882. function Pg(e, M) {
  20883. return e && Hi(M, si(M), e);
  20884. }
  20885. function qi(e, M, K) {
  20886. M == "__proto__" && Es ? Es(e, M, {
  20887. configurable: !0,
  20888. enumerable: !0,
  20889. value: K,
  20890. writable: !0
  20891. }) : e[M] = K;
  20892. }
  20893. function pa(e, M) {
  20894. for (var K = -1, st = M.length, ut = Tt(st), mt = e == null; ++K < st; )
  20895. ut[K] = mt ? C : Fa(e, M[K]);
  20896. return ut;
  20897. }
  20898. function Br(e, M, K) {
  20899. return e === e && (K !== C && (e = e <= K ? e : K), M !== C && (e = e >= M ? e : M)), e;
  20900. }
  20901. function Si(e, M, K, st, ut, mt) {
  20902. var xt, bt = M & B, Mt = M & j, It = M & w;
  20903. if (K && (xt = ut ? K(e, st, ut, mt) : K(e)), xt !== C)
  20904. return xt;
  20905. if (!Ie(e))
  20906. return e;
  20907. var Rt = ie(e);
  20908. if (Rt) {
  20909. if (xt = mm(e), !bt)
  20910. return ri(e, xt);
  20911. } else {
  20912. var Bt = Ke(e), zt = Bt == Z || Bt == q;
  20913. if (Cr(e))
  20914. return Sc(e, bt);
  20915. if (Bt == rt || Bt == L || zt && !ut) {
  20916. if (xt = Mt || zt ? {} : Yc(e), !bt)
  20917. return Mt ? sm(e, Pg(xt, e)) : nm(e, Jh(xt, e));
  20918. } else {
  20919. if (!ke[Bt])
  20920. return ut ? e : {};
  20921. xt = ym(e, Bt, bt);
  20922. }
  20923. }
  20924. mt || (mt = new Li());
  20925. var Ut = mt.get(e);
  20926. if (Ut)
  20927. return Ut;
  20928. mt.set(e, xt), gp(e) ? e.forEach(function(te) {
  20929. xt.add(Si(te, M, K, te, e, mt));
  20930. }) : dp(e) && e.forEach(function(te, he) {
  20931. xt.set(he, Si(te, M, K, he, e, mt));
  20932. });
  20933. var Qt = It ? Mt ? La : Oa : Mt ? si : He, ae = Rt ? C : Qt(e);
  20934. return vi(ae || e, function(te, he) {
  20935. ae && (he = te, te = e[he]), Yn(xt, he, Si(te, M, K, he, e, mt));
  20936. }), xt;
  20937. }
  20938. function Eg(e) {
  20939. var M = He(e);
  20940. return function(K) {
  20941. return qh(K, e, M);
  20942. };
  20943. }
  20944. function qh(e, M, K) {
  20945. var st = K.length;
  20946. if (e == null)
  20947. return !st;
  20948. for (e = Ce(e); st--; ) {
  20949. var ut = K[st], mt = M[ut], xt = e[ut];
  20950. if (xt === C && !(ut in e) || !mt(xt))
  20951. return !1;
  20952. }
  20953. return !0;
  20954. }
  20955. function Qh(e, M, K) {
  20956. if (typeof e != "function")
  20957. throw new xi(_);
  20958. return Vn(function() {
  20959. e.apply(C, K);
  20960. }, M);
  20961. }
  20962. function zn(e, M, K, st) {
  20963. var ut = -1, mt = vs, xt = !0, bt = e.length, Mt = [], It = M.length;
  20964. if (!bt)
  20965. return Mt;
  20966. K && (M = Ee(M, ci(K))), st ? (mt = Jo, xt = !1) : M.length >= y && (mt = In, xt = !1, M = new Nr(M));
  20967. t:
  20968. for (; ++ut < bt; ) {
  20969. var Rt = e[ut], Bt = K == null ? Rt : K(Rt);
  20970. if (Rt = st || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  20971. for (var zt = It; zt--; )
  20972. if (M[zt] === Bt)
  20973. continue t;
  20974. Mt.push(Rt);
  20975. } else
  20976. mt(M, Bt, st) || Mt.push(Rt);
  20977. }
  20978. return Mt;
  20979. }
  20980. var br = Ac(Gi), tc = Ac(da, !0);
  20981. function Og(e, M) {
  20982. var K = !0;
  20983. return br(e, function(st, ut, mt) {
  20984. return K = !!M(st, ut, mt), K;
  20985. }), K;
  20986. }
  20987. function Ns(e, M, K) {
  20988. for (var st = -1, ut = e.length; ++st < ut; ) {
  20989. var mt = e[st], xt = M(mt);
  20990. if (xt != null && (bt === C ? xt === xt && !ui(xt) : K(xt, bt)))
  20991. var bt = xt, Mt = mt;
  20992. }
  20993. return Mt;
  20994. }
  20995. function Lg(e, M, K, st) {
  20996. var ut = e.length;
  20997. for (K = se(K), K < 0 && (K = -K > ut ? 0 : ut + K), st = st === C || st > ut ? ut : se(st), st < 0 && (st += ut), st = K > st ? 0 : yp(st); K < st; )
  20998. e[K++] = M;
  20999. return e;
  21000. }
  21001. function ec(e, M) {
  21002. var K = [];
  21003. return br(e, function(st, ut, mt) {
  21004. M(st, ut, mt) && K.push(st);
  21005. }), K;
  21006. }
  21007. function Ve(e, M, K, st, ut) {
  21008. var mt = -1, xt = e.length;
  21009. for (K || (K = xm), ut || (ut = []); ++mt < xt; ) {
  21010. var bt = e[mt];
  21011. M > 0 && K(bt) ? M > 1 ? Ve(bt, M - 1, K, st, ut) : yr(ut, bt) : st || (ut[ut.length] = bt);
  21012. }
  21013. return ut;
  21014. }
  21015. var ua = Tc(), ic = Tc(!0);
  21016. function Gi(e, M) {
  21017. return e && ua(e, M, He);
  21018. }
  21019. function da(e, M) {
  21020. return e && ic(e, M, He);
  21021. }
  21022. function Bs(e, M) {
  21023. return mr(M, function(K) {
  21024. return ir(e[K]);
  21025. });
  21026. }
  21027. function jr(e, M) {
  21028. M = wr(M, e);
  21029. for (var K = 0, st = M.length; e != null && K < st; )
  21030. e = e[Fi(M[K++])];
  21031. return K && K == st ? e : C;
  21032. }
  21033. function rc(e, M, K) {
  21034. var st = M(e);
  21035. return ie(e) ? st : yr(st, K(e));
  21036. }
  21037. function ti(e) {
  21038. return e == null ? e === C ? tt : nt : Ir && Ir in Ce(e) ? dm(e) : Am(e);
  21039. }
  21040. function fa(e, M) {
  21041. return e > M;
  21042. }
  21043. function _g(e, M) {
  21044. return e != null && Se.call(e, M);
  21045. }
  21046. function Dg(e, M) {
  21047. return e != null && M in Ce(e);
  21048. }
  21049. function Ig(e, M, K) {
  21050. return e >= Ze(M, K) && e < Xe(M, K);
  21051. }
  21052. function ga(e, M, K) {
  21053. for (var st = K ? Jo : vs, ut = e[0].length, mt = e.length, xt = mt, bt = Tt(mt), Mt = 1 / 0, It = []; xt--; ) {
  21054. var Rt = e[xt];
  21055. xt && M && (Rt = Ee(Rt, ci(M))), Mt = Ze(Rt.length, Mt), bt[xt] = !K && (M || ut >= 120 && Rt.length >= 120) ? new Nr(xt && Rt) : C;
  21056. }
  21057. Rt = e[0];
  21058. var Bt = -1, zt = bt[0];
  21059. t:
  21060. for (; ++Bt < ut && It.length < Mt; ) {
  21061. var Ut = Rt[Bt], Qt = M ? M(Ut) : Ut;
  21062. if (Ut = K || Ut !== 0 ? Ut : 0, !(zt ? In(zt, Qt) : st(It, Qt, K))) {
  21063. for (xt = mt; --xt; ) {
  21064. var ae = bt[xt];
  21065. if (!(ae ? In(ae, Qt) : st(e[xt], Qt, K)))
  21066. continue t;
  21067. }
  21068. zt && zt.push(Qt), It.push(Ut);
  21069. }
  21070. }
  21071. return It;
  21072. }
  21073. function Rg(e, M, K, st) {
  21074. return Gi(e, function(ut, mt, xt) {
  21075. M(st, K(ut), mt, xt);
  21076. }), st;
  21077. }
  21078. function Xn(e, M, K) {
  21079. M = wr(M, e), e = Hc(e, M);
  21080. var st = e == null ? e : e[Fi(Mi(M))];
  21081. return st == null ? C : hi(st, e, K);
  21082. }
  21083. function nc(e) {
  21084. return Ne(e) && ti(e) == L;
  21085. }
  21086. function Ng(e) {
  21087. return Ne(e) && ti(e) == pt;
  21088. }
  21089. function Bg(e) {
  21090. return Ne(e) && ti(e) == A;
  21091. }
  21092. function Gn(e, M, K, st, ut) {
  21093. return e === M ? !0 : e == null || M == null || !Ne(e) && !Ne(M) ? e !== e && M !== M : jg(e, M, K, st, Gn, ut);
  21094. }
  21095. function jg(e, M, K, st, ut, mt) {
  21096. var xt = ie(e), bt = ie(M), Mt = xt ? z : Ke(e), It = bt ? z : Ke(M);
  21097. Mt = Mt == L ? rt : Mt, It = It == L ? rt : It;
  21098. var Rt = Mt == rt, Bt = It == rt, zt = Mt == It;
  21099. if (zt && Cr(e)) {
  21100. if (!Cr(M))
  21101. return !1;
  21102. xt = !0, Rt = !1;
  21103. }
  21104. if (zt && !Rt)
  21105. return mt || (mt = new Li()), xt || un(e) ? Bc(e, M, K, st, ut, mt) : pm(e, M, Mt, K, st, ut, mt);
  21106. if (!(K & x)) {
  21107. var Ut = Rt && Se.call(e, "__wrapped__"), Qt = Bt && Se.call(M, "__wrapped__");
  21108. if (Ut || Qt) {
  21109. var ae = Ut ? e.value() : e, te = Qt ? M.value() : M;
  21110. return mt || (mt = new Li()), ut(ae, te, K, st, mt);
  21111. }
  21112. }
  21113. return zt ? (mt || (mt = new Li()), um(e, M, K, st, ut, mt)) : !1;
  21114. }
  21115. function Wg(e) {
  21116. return Ne(e) && Ke(e) == it;
  21117. }
  21118. function ma(e, M, K, st) {
  21119. var ut = K.length, mt = ut, xt = !st;
  21120. if (e == null)
  21121. return !mt;
  21122. for (e = Ce(e); ut--; ) {
  21123. var bt = K[ut];
  21124. if (xt && bt[2] ? bt[1] !== e[bt[0]] : !(bt[0] in e))
  21125. return !1;
  21126. }
  21127. for (; ++ut < mt; ) {
  21128. bt = K[ut];
  21129. var Mt = bt[0], It = e[Mt], Rt = bt[1];
  21130. if (xt && bt[2]) {
  21131. if (It === C && !(Mt in e))
  21132. return !1;
  21133. } else {
  21134. var Bt = new Li();
  21135. if (st)
  21136. var zt = st(It, Rt, Mt, e, M, Bt);
  21137. if (!(zt === C ? Gn(Rt, It, x | f, st, Bt) : zt))
  21138. return !1;
  21139. }
  21140. }
  21141. return !0;
  21142. }
  21143. function sc(e) {
  21144. if (!Ie(e) || Sm(e))
  21145. return !1;
  21146. var M = ir(e) ? Wf : De;
  21147. return M.test(Yr(e));
  21148. }
  21149. function Yg(e) {
  21150. return Ne(e) && ti(e) == dt;
  21151. }
  21152. function zg(e) {
  21153. return Ne(e) && Ke(e) == ht;
  21154. }
  21155. function Xg(e) {
  21156. return Ne(e) && to(e.length) && !!Ae[ti(e)];
  21157. }
  21158. function oc(e) {
  21159. return typeof e == "function" ? e : e == null ? oi : typeof e == "object" ? ie(e) ? hc(e[0], e[1]) : lc(e) : Pp(e);
  21160. }
  21161. function ya(e) {
  21162. if (!Un(e))
  21163. return Ff(e);
  21164. var M = [];
  21165. for (var K in Ce(e))
  21166. Se.call(e, K) && K != "constructor" && M.push(K);
  21167. return M;
  21168. }
  21169. function Gg(e) {
  21170. if (!Ie(e))
  21171. return km(e);
  21172. var M = Un(e), K = [];
  21173. for (var st in e)
  21174. st == "constructor" && (M || !Se.call(e, st)) || K.push(st);
  21175. return K;
  21176. }
  21177. function va(e, M) {
  21178. return e < M;
  21179. }
  21180. function ac(e, M) {
  21181. var K = -1, st = ni(e) ? Tt(e.length) : [];
  21182. return br(e, function(ut, mt, xt) {
  21183. st[++K] = M(ut, mt, xt);
  21184. }), st;
  21185. }
  21186. function lc(e) {
  21187. var M = Da(e);
  21188. return M.length == 1 && M[0][2] ? Xc(M[0][0], M[0][1]) : function(K) {
  21189. return K === e || ma(K, e, M);
  21190. };
  21191. }
  21192. function hc(e, M) {
  21193. return Ra(e) && zc(M) ? Xc(Fi(e), M) : function(K) {
  21194. var st = Fa(K, e);
  21195. return st === C && st === M ? Ua(K, e) : Gn(M, st, x | f);
  21196. };
  21197. }
  21198. function js(e, M, K, st, ut) {
  21199. e !== M && ua(M, function(mt, xt) {
  21200. if (ut || (ut = new Li()), Ie(mt))
  21201. Hg(e, M, xt, K, js, st, ut);
  21202. else {
  21203. var bt = st ? st(Ba(e, xt), mt, xt + "", e, M, ut) : C;
  21204. bt === C && (bt = mt), ca(e, xt, bt);
  21205. }
  21206. }, si);
  21207. }
  21208. function Hg(e, M, K, st, ut, mt, xt) {
  21209. var bt = Ba(e, K), Mt = Ba(M, K), It = xt.get(Mt);
  21210. if (It) {
  21211. ca(e, K, It);
  21212. return;
  21213. }
  21214. var Rt = mt ? mt(bt, Mt, K + "", e, M, xt) : C, Bt = Rt === C;
  21215. if (Bt) {
  21216. var zt = ie(Mt), Ut = !zt && Cr(Mt), Qt = !zt && !Ut && un(Mt);
  21217. Rt = Mt, zt || Ut || Qt ? ie(bt) ? Rt = bt : Be(bt) ? Rt = ri(bt) : Ut ? (Bt = !1, Rt = Sc(Mt, !0)) : Qt ? (Bt = !1, Rt = wc(Mt, !0)) : Rt = [] : $n(Mt) || zr(Mt) ? (Rt = bt, zr(bt) ? Rt = vp(bt) : (!Ie(bt) || ir(bt)) && (Rt = Yc(Mt))) : Bt = !1;
  21218. }
  21219. Bt && (xt.set(Mt, Rt), ut(Rt, Mt, st, mt, xt), xt.delete(Mt)), ca(e, K, Rt);
  21220. }
  21221. function cc(e, M) {
  21222. var K = e.length;
  21223. if (K)
  21224. return M += M < 0 ? K : 0, er(M, K) ? e[M] : C;
  21225. }
  21226. function pc(e, M, K) {
  21227. M.length ? M = Ee(M, function(mt) {
  21228. return ie(mt) ? function(xt) {
  21229. return jr(xt, mt.length === 1 ? mt[0] : mt);
  21230. } : mt;
  21231. }) : M = [oi];
  21232. var st = -1;
  21233. M = Ee(M, ci(qt()));
  21234. var ut = ac(e, function(mt, xt, bt) {
  21235. var Mt = Ee(M, function(It) {
  21236. return It(mt);
  21237. });
  21238. return { criteria: Mt, index: ++st, value: mt };
  21239. });
  21240. return yf(ut, function(mt, xt) {
  21241. return rm(mt, xt, K);
  21242. });
  21243. }
  21244. function Fg(e, M) {
  21245. return uc(e, M, function(K, st) {
  21246. return Ua(e, st);
  21247. });
  21248. }
  21249. function uc(e, M, K) {
  21250. for (var st = -1, ut = M.length, mt = {}; ++st < ut; ) {
  21251. var xt = M[st], bt = jr(e, xt);
  21252. K(bt, xt) && Hn(mt, wr(xt, e), bt);
  21253. }
  21254. return mt;
  21255. }
  21256. function Ug(e) {
  21257. return function(M) {
  21258. return jr(M, e);
  21259. };
  21260. }
  21261. function xa(e, M, K, st) {
  21262. var ut = st ? mf : tn, mt = -1, xt = M.length, bt = e;
  21263. for (e === M && (M = ri(M)), K && (bt = Ee(e, ci(K))); ++mt < xt; )
  21264. for (var Mt = 0, It = M[mt], Rt = K ? K(It) : It; (Mt = ut(bt, Rt, Mt, st)) > -1; )
  21265. bt !== e && Ps.call(bt, Mt, 1), Ps.call(e, Mt, 1);
  21266. return e;
  21267. }
  21268. function dc(e, M) {
  21269. for (var K = e ? M.length : 0, st = K - 1; K--; ) {
  21270. var ut = M[K];
  21271. if (K == st || ut !== mt) {
  21272. var mt = ut;
  21273. er(ut) ? Ps.call(e, ut, 1) : Ma(e, ut);
  21274. }
  21275. }
  21276. return e;
  21277. }
  21278. function ba(e, M) {
  21279. return e + Ls(Vh() * (M - e + 1));
  21280. }
  21281. function Vg(e, M, K, st) {
  21282. for (var ut = -1, mt = Xe(Os((M - e) / (K || 1)), 0), xt = Tt(mt); mt--; )
  21283. xt[st ? mt : ++ut] = e, e += K;
  21284. return xt;
  21285. }
  21286. function Sa(e, M) {
  21287. var K = "";
  21288. if (!e || M < 1 || M > D)
  21289. return K;
  21290. do
  21291. M % 2 && (K += e), M = Ls(M / 2), M && (e += e);
  21292. while (M);
  21293. return K;
  21294. }
  21295. function le(e, M) {
  21296. return ja(Gc(e, M, oi), e + "");
  21297. }
  21298. function $g(e) {
  21299. return Kh(dn(e));
  21300. }
  21301. function Zg(e, M) {
  21302. var K = dn(e);
  21303. return $s(K, Br(M, 0, K.length));
  21304. }
  21305. function Hn(e, M, K, st) {
  21306. if (!Ie(e))
  21307. return e;
  21308. M = wr(M, e);
  21309. for (var ut = -1, mt = M.length, xt = mt - 1, bt = e; bt != null && ++ut < mt; ) {
  21310. var Mt = Fi(M[ut]), It = K;
  21311. if (Mt === "__proto__" || Mt === "constructor" || Mt === "prototype")
  21312. return e;
  21313. if (ut != xt) {
  21314. var Rt = bt[Mt];
  21315. It = st ? st(Rt, Mt, bt) : C, It === C && (It = Ie(Rt) ? Rt : er(M[ut + 1]) ? [] : {});
  21316. }
  21317. Yn(bt, Mt, It), bt = bt[Mt];
  21318. }
  21319. return e;
  21320. }
  21321. var fc = _s ? function(e, M) {
  21322. return _s.set(e, M), e;
  21323. } : oi, Kg = Es ? function(e, M) {
  21324. return Es(e, "toString", {
  21325. configurable: !0,
  21326. enumerable: !1,
  21327. value: $a(M),
  21328. writable: !0
  21329. });
  21330. } : oi;
  21331. function Jg(e) {
  21332. return $s(dn(e));
  21333. }
  21334. function wi(e, M, K) {
  21335. var st = -1, ut = e.length;
  21336. M < 0 && (M = -M > ut ? 0 : ut + M), K = K > ut ? ut : K, K < 0 && (K += ut), ut = M > K ? 0 : K - M >>> 0, M >>>= 0;
  21337. for (var mt = Tt(ut); ++st < ut; )
  21338. mt[st] = e[st + M];
  21339. return mt;
  21340. }
  21341. function qg(e, M) {
  21342. var K;
  21343. return br(e, function(st, ut, mt) {
  21344. return K = M(st, ut, mt), !K;
  21345. }), !!K;
  21346. }
  21347. function Ws(e, M, K) {
  21348. var st = 0, ut = e == null ? st : e.length;
  21349. if (typeof M == "number" && M === M && ut <= g) {
  21350. for (; st < ut; ) {
  21351. var mt = st + ut >>> 1, xt = e[mt];
  21352. xt !== null && !ui(xt) && (K ? xt <= M : xt < M) ? st = mt + 1 : ut = mt;
  21353. }
  21354. return ut;
  21355. }
  21356. return wa(e, M, oi, K);
  21357. }
  21358. function wa(e, M, K, st) {
  21359. var ut = 0, mt = e == null ? 0 : e.length;
  21360. if (mt === 0)
  21361. return 0;
  21362. M = K(M);
  21363. for (var xt = M !== M, bt = M === null, Mt = ui(M), It = M === C; ut < mt; ) {
  21364. var Rt = Ls((ut + mt) / 2), Bt = K(e[Rt]), zt = Bt !== C, Ut = Bt === null, Qt = Bt === Bt, ae = ui(Bt);
  21365. if (xt)
  21366. var te = st || Qt;
  21367. else
  21368. It ? te = Qt && (st || zt) : bt ? te = Qt && zt && (st || !Ut) : Mt ? te = Qt && zt && !Ut && (st || !ae) : Ut || ae ? te = !1 : te = st ? Bt <= M : Bt < M;
  21369. te ? ut = Rt + 1 : mt = Rt;
  21370. }
  21371. return Ze(mt, X);
  21372. }
  21373. function gc(e, M) {
  21374. for (var K = -1, st = e.length, ut = 0, mt = []; ++K < st; ) {
  21375. var xt = e[K], bt = M ? M(xt) : xt;
  21376. if (!K || !_i(bt, Mt)) {
  21377. var Mt = bt;
  21378. mt[ut++] = xt === 0 ? 0 : xt;
  21379. }
  21380. }
  21381. return mt;
  21382. }
  21383. function mc(e) {
  21384. return typeof e == "number" ? e : ui(e) ? W : +e;
  21385. }
  21386. function pi(e) {
  21387. if (typeof e == "string")
  21388. return e;
  21389. if (ie(e))
  21390. return Ee(e, pi) + "";
  21391. if (ui(e))
  21392. return $h ? $h.call(e) : "";
  21393. var M = e + "";
  21394. return M == "0" && 1 / e == -P ? "-0" : M;
  21395. }
  21396. function Sr(e, M, K) {
  21397. var st = -1, ut = vs, mt = e.length, xt = !0, bt = [], Mt = bt;
  21398. if (K)
  21399. xt = !1, ut = Jo;
  21400. else if (mt >= y) {
  21401. var It = M ? null : hm(e);
  21402. if (It)
  21403. return bs(It);
  21404. xt = !1, ut = In, Mt = new Nr();
  21405. } else
  21406. Mt = M ? [] : bt;
  21407. t:
  21408. for (; ++st < mt; ) {
  21409. var Rt = e[st], Bt = M ? M(Rt) : Rt;
  21410. if (Rt = K || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  21411. for (var zt = Mt.length; zt--; )
  21412. if (Mt[zt] === Bt)
  21413. continue t;
  21414. M && Mt.push(Bt), bt.push(Rt);
  21415. } else
  21416. ut(Mt, Bt, K) || (Mt !== bt && Mt.push(Bt), bt.push(Rt));
  21417. }
  21418. return bt;
  21419. }
  21420. function Ma(e, M) {
  21421. return M = wr(M, e), e = Hc(e, M), e == null || delete e[Fi(Mi(M))];
  21422. }
  21423. function yc(e, M, K, st) {
  21424. return Hn(e, M, K(jr(e, M)), st);
  21425. }
  21426. function Ys(e, M, K, st) {
  21427. for (var ut = e.length, mt = st ? ut : -1; (st ? mt-- : ++mt < ut) && M(e[mt], mt, e); )
  21428. ;
  21429. return K ? wi(e, st ? 0 : mt, st ? mt + 1 : ut) : wi(e, st ? mt + 1 : 0, st ? ut : mt);
  21430. }
  21431. function vc(e, M) {
  21432. var K = e;
  21433. return K instanceof ce && (K = K.value()), qo(M, function(st, ut) {
  21434. return ut.func.apply(ut.thisArg, yr([st], ut.args));
  21435. }, K);
  21436. }
  21437. function Ca(e, M, K) {
  21438. var st = e.length;
  21439. if (st < 2)
  21440. return st ? Sr(e[0]) : [];
  21441. for (var ut = -1, mt = Tt(st); ++ut < st; )
  21442. for (var xt = e[ut], bt = -1; ++bt < st; )
  21443. bt != ut && (mt[ut] = zn(mt[ut] || xt, e[bt], M, K));
  21444. return Sr(Ve(mt, 1), M, K);
  21445. }
  21446. function xc(e, M, K) {
  21447. for (var st = -1, ut = e.length, mt = M.length, xt = {}; ++st < ut; ) {
  21448. var bt = st < mt ? M[st] : C;
  21449. K(xt, e[st], bt);
  21450. }
  21451. return xt;
  21452. }
  21453. function ka(e) {
  21454. return Be(e) ? e : [];
  21455. }
  21456. function Aa(e) {
  21457. return typeof e == "function" ? e : oi;
  21458. }
  21459. function wr(e, M) {
  21460. return ie(e) ? e : Ra(e, M) ? [e] : $c(xe(e));
  21461. }
  21462. var Qg = le;
  21463. function Mr(e, M, K) {
  21464. var st = e.length;
  21465. return K = K === C ? st : K, !M && K >= st ? e : wi(e, M, K);
  21466. }
  21467. var bc = Yf || function(e) {
  21468. return Ue.clearTimeout(e);
  21469. };
  21470. function Sc(e, M) {
  21471. if (M)
  21472. return e.slice();
  21473. var K = e.length, st = Xh ? Xh(K) : new e.constructor(K);
  21474. return e.copy(st), st;
  21475. }
  21476. function Ta(e) {
  21477. var M = new e.constructor(e.byteLength);
  21478. return new As(M).set(new As(e)), M;
  21479. }
  21480. function tm(e, M) {
  21481. var K = M ? Ta(e.buffer) : e.buffer;
  21482. return new e.constructor(K, e.byteOffset, e.byteLength);
  21483. }
  21484. function em(e) {
  21485. var M = new e.constructor(e.source, de.exec(e));
  21486. return M.lastIndex = e.lastIndex, M;
  21487. }
  21488. function im(e) {
  21489. return Wn ? Ce(Wn.call(e)) : {};
  21490. }
  21491. function wc(e, M) {
  21492. var K = M ? Ta(e.buffer) : e.buffer;
  21493. return new e.constructor(K, e.byteOffset, e.length);
  21494. }
  21495. function Mc(e, M) {
  21496. if (e !== M) {
  21497. var K = e !== C, st = e === null, ut = e === e, mt = ui(e), xt = M !== C, bt = M === null, Mt = M === M, It = ui(M);
  21498. if (!bt && !It && !mt && e > M || mt && xt && Mt && !bt && !It || st && xt && Mt || !K && Mt || !ut)
  21499. return 1;
  21500. if (!st && !mt && !It && e < M || It && K && ut && !st && !mt || bt && K && ut || !xt && ut || !Mt)
  21501. return -1;
  21502. }
  21503. return 0;
  21504. }
  21505. function rm(e, M, K) {
  21506. for (var st = -1, ut = e.criteria, mt = M.criteria, xt = ut.length, bt = K.length; ++st < xt; ) {
  21507. var Mt = Mc(ut[st], mt[st]);
  21508. if (Mt) {
  21509. if (st >= bt)
  21510. return Mt;
  21511. var It = K[st];
  21512. return Mt * (It == "desc" ? -1 : 1);
  21513. }
  21514. }
  21515. return e.index - M.index;
  21516. }
  21517. function Cc(e, M, K, st) {
  21518. for (var ut = -1, mt = e.length, xt = K.length, bt = -1, Mt = M.length, It = Xe(mt - xt, 0), Rt = Tt(Mt + It), Bt = !st; ++bt < Mt; )
  21519. Rt[bt] = M[bt];
  21520. for (; ++ut < xt; )
  21521. (Bt || ut < mt) && (Rt[K[ut]] = e[ut]);
  21522. for (; It--; )
  21523. Rt[bt++] = e[ut++];
  21524. return Rt;
  21525. }
  21526. function kc(e, M, K, st) {
  21527. for (var ut = -1, mt = e.length, xt = -1, bt = K.length, Mt = -1, It = M.length, Rt = Xe(mt - bt, 0), Bt = Tt(Rt + It), zt = !st; ++ut < Rt; )
  21528. Bt[ut] = e[ut];
  21529. for (var Ut = ut; ++Mt < It; )
  21530. Bt[Ut + Mt] = M[Mt];
  21531. for (; ++xt < bt; )
  21532. (zt || ut < mt) && (Bt[Ut + K[xt]] = e[ut++]);
  21533. return Bt;
  21534. }
  21535. function ri(e, M) {
  21536. var K = -1, st = e.length;
  21537. for (M || (M = Tt(st)); ++K < st; )
  21538. M[K] = e[K];
  21539. return M;
  21540. }
  21541. function Hi(e, M, K, st) {
  21542. var ut = !K;
  21543. K || (K = {});
  21544. for (var mt = -1, xt = M.length; ++mt < xt; ) {
  21545. var bt = M[mt], Mt = st ? st(K[bt], e[bt], bt, K, e) : C;
  21546. Mt === C && (Mt = e[bt]), ut ? qi(K, bt, Mt) : Yn(K, bt, Mt);
  21547. }
  21548. return K;
  21549. }
  21550. function nm(e, M) {
  21551. return Hi(e, Ia(e), M);
  21552. }
  21553. function sm(e, M) {
  21554. return Hi(e, jc(e), M);
  21555. }
  21556. function zs(e, M) {
  21557. return function(K, st) {
  21558. var ut = ie(K) ? cf : Tg, mt = M ? M() : {};
  21559. return ut(K, e, qt(st, 2), mt);
  21560. };
  21561. }
  21562. function hn(e) {
  21563. return le(function(M, K) {
  21564. var st = -1, ut = K.length, mt = ut > 1 ? K[ut - 1] : C, xt = ut > 2 ? K[2] : C;
  21565. for (mt = e.length > 3 && typeof mt == "function" ? (ut--, mt) : C, xt && ei(K[0], K[1], xt) && (mt = ut < 3 ? C : mt, ut = 1), M = Ce(M); ++st < ut; ) {
  21566. var bt = K[st];
  21567. bt && e(M, bt, st, mt);
  21568. }
  21569. return M;
  21570. });
  21571. }
  21572. function Ac(e, M) {
  21573. return function(K, st) {
  21574. if (K == null)
  21575. return K;
  21576. if (!ni(K))
  21577. return e(K, st);
  21578. for (var ut = K.length, mt = M ? ut : -1, xt = Ce(K); (M ? mt-- : ++mt < ut) && st(xt[mt], mt, xt) !== !1; )
  21579. ;
  21580. return K;
  21581. };
  21582. }
  21583. function Tc(e) {
  21584. return function(M, K, st) {
  21585. for (var ut = -1, mt = Ce(M), xt = st(M), bt = xt.length; bt--; ) {
  21586. var Mt = xt[e ? bt : ++ut];
  21587. if (K(mt[Mt], Mt, mt) === !1)
  21588. break;
  21589. }
  21590. return M;
  21591. };
  21592. }
  21593. function om(e, M, K) {
  21594. var st = M & l, ut = Fn(e);
  21595. function mt() {
  21596. var xt = this && this !== Ue && this instanceof mt ? ut : e;
  21597. return xt.apply(st ? K : this, arguments);
  21598. }
  21599. return mt;
  21600. }
  21601. function Pc(e) {
  21602. return function(M) {
  21603. M = xe(M);
  21604. var K = en(M) ? Oi(M) : C, st = K ? K[0] : M.charAt(0), ut = K ? Mr(K, 1).join("") : M.slice(1);
  21605. return st[e]() + ut;
  21606. };
  21607. }
  21608. function cn(e) {
  21609. return function(M) {
  21610. return qo(Ap(kp(M).replace(Zd, "")), e, "");
  21611. };
  21612. }
  21613. function Fn(e) {
  21614. return function() {
  21615. var M = arguments;
  21616. switch (M.length) {
  21617. case 0:
  21618. return new e();
  21619. case 1:
  21620. return new e(M[0]);
  21621. case 2:
  21622. return new e(M[0], M[1]);
  21623. case 3:
  21624. return new e(M[0], M[1], M[2]);
  21625. case 4:
  21626. return new e(M[0], M[1], M[2], M[3]);
  21627. case 5:
  21628. return new e(M[0], M[1], M[2], M[3], M[4]);
  21629. case 6:
  21630. return new e(M[0], M[1], M[2], M[3], M[4], M[5]);
  21631. case 7:
  21632. return new e(M[0], M[1], M[2], M[3], M[4], M[5], M[6]);
  21633. }
  21634. var K = ln(e.prototype), st = e.apply(K, M);
  21635. return Ie(st) ? st : K;
  21636. };
  21637. }
  21638. function am(e, M, K) {
  21639. var st = Fn(e);
  21640. function ut() {
  21641. for (var mt = arguments.length, xt = Tt(mt), bt = mt, Mt = pn(ut); bt--; )
  21642. xt[bt] = arguments[bt];
  21643. var It = mt < 3 && xt[0] !== Mt && xt[mt - 1] !== Mt ? [] : vr(xt, Mt);
  21644. if (mt -= It.length, mt < K)
  21645. return Dc(
  21646. e,
  21647. M,
  21648. Xs,
  21649. ut.placeholder,
  21650. C,
  21651. xt,
  21652. It,
  21653. C,
  21654. C,
  21655. K - mt
  21656. );
  21657. var Rt = this && this !== Ue && this instanceof ut ? st : e;
  21658. return hi(Rt, this, xt);
  21659. }
  21660. return ut;
  21661. }
  21662. function Ec(e) {
  21663. return function(M, K, st) {
  21664. var ut = Ce(M);
  21665. if (!ni(M)) {
  21666. var mt = qt(K, 3);
  21667. M = He(M), K = function(bt) {
  21668. return mt(ut[bt], bt, ut);
  21669. };
  21670. }
  21671. var xt = e(M, K, st);
  21672. return xt > -1 ? ut[mt ? M[xt] : xt] : C;
  21673. };
  21674. }
  21675. function Oc(e) {
  21676. return tr(function(M) {
  21677. var K = M.length, st = K, ut = bi.prototype.thru;
  21678. for (e && M.reverse(); st--; ) {
  21679. var mt = M[st];
  21680. if (typeof mt != "function")
  21681. throw new xi(_);
  21682. if (ut && !xt && Us(mt) == "wrapper")
  21683. var xt = new bi([], !0);
  21684. }
  21685. for (st = xt ? st : K; ++st < K; ) {
  21686. mt = M[st];
  21687. var bt = Us(mt), Mt = bt == "wrapper" ? _a(mt) : C;
  21688. Mt && Na(Mt[0]) && Mt[1] == (v | R | b | h) && !Mt[4].length && Mt[9] == 1 ? xt = xt[Us(Mt[0])].apply(xt, Mt[3]) : xt = mt.length == 1 && Na(mt) ? xt[bt]() : xt.thru(mt);
  21689. }
  21690. return function() {
  21691. var It = arguments, Rt = It[0];
  21692. if (xt && It.length == 1 && ie(Rt))
  21693. return xt.plant(Rt).value();
  21694. for (var Bt = 0, zt = K ? M[Bt].apply(this, It) : Rt; ++Bt < K; )
  21695. zt = M[Bt].call(this, zt);
  21696. return zt;
  21697. };
  21698. });
  21699. }
  21700. function Xs(e, M, K, st, ut, mt, xt, bt, Mt, It) {
  21701. var Rt = M & v, Bt = M & l, zt = M & T, Ut = M & (R | k), Qt = M & c, ae = zt ? C : Fn(e);
  21702. function te() {
  21703. for (var he = arguments.length, ue = Tt(he), di = he; di--; )
  21704. ue[di] = arguments[di];
  21705. if (Ut)
  21706. var ii = pn(te), fi = xf(ue, ii);
  21707. if (st && (ue = Cc(ue, st, ut, Ut)), mt && (ue = kc(ue, mt, xt, Ut)), he -= fi, Ut && he < It) {
  21708. var je = vr(ue, ii);
  21709. return Dc(
  21710. e,
  21711. M,
  21712. Xs,
  21713. te.placeholder,
  21714. K,
  21715. ue,
  21716. je,
  21717. bt,
  21718. Mt,
  21719. It - he
  21720. );
  21721. }
  21722. var Di = Bt ? K : this, nr = zt ? Di[e] : e;
  21723. return he = ue.length, bt ? ue = Tm(ue, bt) : Qt && he > 1 && ue.reverse(), Rt && Mt < he && (ue.length = Mt), this && this !== Ue && this instanceof te && (nr = ae || Fn(nr)), nr.apply(Di, ue);
  21724. }
  21725. return te;
  21726. }
  21727. function Lc(e, M) {
  21728. return function(K, st) {
  21729. return Rg(K, e, M(st), {});
  21730. };
  21731. }
  21732. function Gs(e, M) {
  21733. return function(K, st) {
  21734. var ut;
  21735. if (K === C && st === C)
  21736. return M;
  21737. if (K !== C && (ut = K), st !== C) {
  21738. if (ut === C)
  21739. return st;
  21740. typeof K == "string" || typeof st == "string" ? (K = pi(K), st = pi(st)) : (K = mc(K), st = mc(st)), ut = e(K, st);
  21741. }
  21742. return ut;
  21743. };
  21744. }
  21745. function Pa(e) {
  21746. return tr(function(M) {
  21747. return M = Ee(M, ci(qt())), le(function(K) {
  21748. var st = this;
  21749. return e(M, function(ut) {
  21750. return hi(ut, st, K);
  21751. });
  21752. });
  21753. });
  21754. }
  21755. function Hs(e, M) {
  21756. M = M === C ? " " : pi(M);
  21757. var K = M.length;
  21758. if (K < 2)
  21759. return K ? Sa(M, e) : M;
  21760. var st = Sa(M, Os(e / rn(M)));
  21761. return en(M) ? Mr(Oi(st), 0, e).join("") : st.slice(0, e);
  21762. }
  21763. function lm(e, M, K, st) {
  21764. var ut = M & l, mt = Fn(e);
  21765. function xt() {
  21766. for (var bt = -1, Mt = arguments.length, It = -1, Rt = st.length, Bt = Tt(Rt + Mt), zt = this && this !== Ue && this instanceof xt ? mt : e; ++It < Rt; )
  21767. Bt[It] = st[It];
  21768. for (; Mt--; )
  21769. Bt[It++] = arguments[++bt];
  21770. return hi(zt, ut ? K : this, Bt);
  21771. }
  21772. return xt;
  21773. }
  21774. function _c(e) {
  21775. return function(M, K, st) {
  21776. return st && typeof st != "number" && ei(M, K, st) && (K = st = C), M = rr(M), K === C ? (K = M, M = 0) : K = rr(K), st = st === C ? M < K ? 1 : -1 : rr(st), Vg(M, K, st, e);
  21777. };
  21778. }
  21779. function Fs(e) {
  21780. return function(M, K) {
  21781. return typeof M == "string" && typeof K == "string" || (M = Ci(M), K = Ci(K)), e(M, K);
  21782. };
  21783. }
  21784. function Dc(e, M, K, st, ut, mt, xt, bt, Mt, It) {
  21785. var Rt = M & R, Bt = Rt ? xt : C, zt = Rt ? C : xt, Ut = Rt ? mt : C, Qt = Rt ? C : mt;
  21786. M |= Rt ? b : S, M &= ~(Rt ? S : b), M & O || (M &= ~(l | T));
  21787. var ae = [
  21788. e,
  21789. M,
  21790. ut,
  21791. Ut,
  21792. Bt,
  21793. Qt,
  21794. zt,
  21795. bt,
  21796. Mt,
  21797. It
  21798. ], te = K.apply(C, ae);
  21799. return Na(e) && Fc(te, ae), te.placeholder = st, Uc(te, e, M);
  21800. }
  21801. function Ea(e) {
  21802. var M = ze[e];
  21803. return function(K, st) {
  21804. if (K = Ci(K), st = st == null ? 0 : Ze(se(st), 292), st && Uh(K)) {
  21805. var ut = (xe(K) + "e").split("e"), mt = M(ut[0] + "e" + (+ut[1] + st));
  21806. return ut = (xe(mt) + "e").split("e"), +(ut[0] + "e" + (+ut[1] - st));
  21807. }
  21808. return M(K);
  21809. };
  21810. }
  21811. var hm = on && 1 / bs(new on([, -0]))[1] == P ? function(e) {
  21812. return new on(e);
  21813. } : Ja;
  21814. function Ic(e) {
  21815. return function(M) {
  21816. var K = Ke(M);
  21817. return K == it ? sa(M) : K == ht ? Af(M) : vf(M, e(M));
  21818. };
  21819. }
  21820. function Qi(e, M, K, st, ut, mt, xt, bt) {
  21821. var Mt = M & T;
  21822. if (!Mt && typeof e != "function")
  21823. throw new xi(_);
  21824. var It = st ? st.length : 0;
  21825. if (It || (M &= ~(b | S), st = ut = C), xt = xt === C ? xt : Xe(se(xt), 0), bt = bt === C ? bt : se(bt), It -= ut ? ut.length : 0, M & S) {
  21826. var Rt = st, Bt = ut;
  21827. st = ut = C;
  21828. }
  21829. var zt = Mt ? C : _a(e), Ut = [
  21830. e,
  21831. M,
  21832. K,
  21833. st,
  21834. ut,
  21835. Rt,
  21836. Bt,
  21837. mt,
  21838. xt,
  21839. bt
  21840. ];
  21841. if (zt && Cm(Ut, zt), e = Ut[0], M = Ut[1], K = Ut[2], st = Ut[3], ut = Ut[4], bt = Ut[9] = Ut[9] === C ? Mt ? 0 : e.length : Xe(Ut[9] - It, 0), !bt && M & (R | k) && (M &= ~(R | k)), !M || M == l)
  21842. var Qt = om(e, M, K);
  21843. else
  21844. M == R || M == k ? Qt = am(e, M, bt) : (M == b || M == (l | b)) && !ut.length ? Qt = lm(e, M, K, st) : Qt = Xs.apply(C, Ut);
  21845. var ae = zt ? fc : Fc;
  21846. return Uc(ae(Qt, Ut), e, M);
  21847. }
  21848. function Rc(e, M, K, st) {
  21849. return e === C || _i(e, sn[K]) && !Se.call(st, K) ? M : e;
  21850. }
  21851. function Nc(e, M, K, st, ut, mt) {
  21852. return Ie(e) && Ie(M) && (mt.set(M, e), js(e, M, C, Nc, mt), mt.delete(M)), e;
  21853. }
  21854. function cm(e) {
  21855. return $n(e) ? C : e;
  21856. }
  21857. function Bc(e, M, K, st, ut, mt) {
  21858. var xt = K & x, bt = e.length, Mt = M.length;
  21859. if (bt != Mt && !(xt && Mt > bt))
  21860. return !1;
  21861. var It = mt.get(e), Rt = mt.get(M);
  21862. if (It && Rt)
  21863. return It == M && Rt == e;
  21864. var Bt = -1, zt = !0, Ut = K & f ? new Nr() : C;
  21865. for (mt.set(e, M), mt.set(M, e); ++Bt < bt; ) {
  21866. var Qt = e[Bt], ae = M[Bt];
  21867. if (st)
  21868. var te = xt ? st(ae, Qt, Bt, M, e, mt) : st(Qt, ae, Bt, e, M, mt);
  21869. if (te !== C) {
  21870. if (te)
  21871. continue;
  21872. zt = !1;
  21873. break;
  21874. }
  21875. if (Ut) {
  21876. if (!Qo(M, function(he, ue) {
  21877. if (!In(Ut, ue) && (Qt === he || ut(Qt, he, K, st, mt)))
  21878. return Ut.push(ue);
  21879. })) {
  21880. zt = !1;
  21881. break;
  21882. }
  21883. } else if (!(Qt === ae || ut(Qt, ae, K, st, mt))) {
  21884. zt = !1;
  21885. break;
  21886. }
  21887. }
  21888. return mt.delete(e), mt.delete(M), zt;
  21889. }
  21890. function pm(e, M, K, st, ut, mt, xt) {
  21891. switch (K) {
  21892. case yt:
  21893. if (e.byteLength != M.byteLength || e.byteOffset != M.byteOffset)
  21894. return !1;
  21895. e = e.buffer, M = M.buffer;
  21896. case pt:
  21897. return !(e.byteLength != M.byteLength || !mt(new As(e), new As(M)));
  21898. case Q:
  21899. case A:
  21900. case et:
  21901. return _i(+e, +M);
  21902. case Y:
  21903. return e.name == M.name && e.message == M.message;
  21904. case dt:
  21905. case at:
  21906. return e == M + "";
  21907. case it:
  21908. var bt = sa;
  21909. case ht:
  21910. var Mt = st & x;
  21911. if (bt || (bt = bs), e.size != M.size && !Mt)
  21912. return !1;
  21913. var It = xt.get(e);
  21914. if (It)
  21915. return It == M;
  21916. st |= f, xt.set(e, M);
  21917. var Rt = Bc(bt(e), bt(M), st, ut, mt, xt);
  21918. return xt.delete(e), Rt;
  21919. case J:
  21920. if (Wn)
  21921. return Wn.call(e) == Wn.call(M);
  21922. }
  21923. return !1;
  21924. }
  21925. function um(e, M, K, st, ut, mt) {
  21926. var xt = K & x, bt = Oa(e), Mt = bt.length, It = Oa(M), Rt = It.length;
  21927. if (Mt != Rt && !xt)
  21928. return !1;
  21929. for (var Bt = Mt; Bt--; ) {
  21930. var zt = bt[Bt];
  21931. if (!(xt ? zt in M : Se.call(M, zt)))
  21932. return !1;
  21933. }
  21934. var Ut = mt.get(e), Qt = mt.get(M);
  21935. if (Ut && Qt)
  21936. return Ut == M && Qt == e;
  21937. var ae = !0;
  21938. mt.set(e, M), mt.set(M, e);
  21939. for (var te = xt; ++Bt < Mt; ) {
  21940. zt = bt[Bt];
  21941. var he = e[zt], ue = M[zt];
  21942. if (st)
  21943. var di = xt ? st(ue, he, zt, M, e, mt) : st(he, ue, zt, e, M, mt);
  21944. if (!(di === C ? he === ue || ut(he, ue, K, st, mt) : di)) {
  21945. ae = !1;
  21946. break;
  21947. }
  21948. te || (te = zt == "constructor");
  21949. }
  21950. if (ae && !te) {
  21951. var ii = e.constructor, fi = M.constructor;
  21952. ii != fi && "constructor" in e && "constructor" in M && !(typeof ii == "function" && ii instanceof ii && typeof fi == "function" && fi instanceof fi) && (ae = !1);
  21953. }
  21954. return mt.delete(e), mt.delete(M), ae;
  21955. }
  21956. function tr(e) {
  21957. return ja(Gc(e, C, qc), e + "");
  21958. }
  21959. function Oa(e) {
  21960. return rc(e, He, Ia);
  21961. }
  21962. function La(e) {
  21963. return rc(e, si, jc);
  21964. }
  21965. var _a = _s ? function(e) {
  21966. return _s.get(e);
  21967. } : Ja;
  21968. function Us(e) {
  21969. for (var M = e.name + "", K = an[M], st = Se.call(an, M) ? K.length : 0; st--; ) {
  21970. var ut = K[st], mt = ut.func;
  21971. if (mt == null || mt == e)
  21972. return ut.name;
  21973. }
  21974. return M;
  21975. }
  21976. function pn(e) {
  21977. var M = Se.call(ft, "placeholder") ? ft : e;
  21978. return M.placeholder;
  21979. }
  21980. function qt() {
  21981. var e = ft.iteratee || Za;
  21982. return e = e === Za ? oc : e, arguments.length ? e(arguments[0], arguments[1]) : e;
  21983. }
  21984. function Vs(e, M) {
  21985. var K = e.__data__;
  21986. return bm(M) ? K[typeof M == "string" ? "string" : "hash"] : K.map;
  21987. }
  21988. function Da(e) {
  21989. for (var M = He(e), K = M.length; K--; ) {
  21990. var st = M[K], ut = e[st];
  21991. M[K] = [st, ut, zc(ut)];
  21992. }
  21993. return M;
  21994. }
  21995. function Wr(e, M) {
  21996. var K = Mf(e, M);
  21997. return sc(K) ? K : C;
  21998. }
  21999. function dm(e) {
  22000. var M = Se.call(e, Ir), K = e[Ir];
  22001. try {
  22002. e[Ir] = C;
  22003. var st = !0;
  22004. } catch {
  22005. }
  22006. var ut = Cs.call(e);
  22007. return st && (M ? e[Ir] = K : delete e[Ir]), ut;
  22008. }
  22009. var Ia = aa ? function(e) {
  22010. return e == null ? [] : (e = Ce(e), mr(aa(e), function(M) {
  22011. return Hh.call(e, M);
  22012. }));
  22013. } : qa, jc = aa ? function(e) {
  22014. for (var M = []; e; )
  22015. yr(M, Ia(e)), e = Ts(e);
  22016. return M;
  22017. } : qa, Ke = ti;
  22018. (la && Ke(new la(new ArrayBuffer(1))) != yt || Nn && Ke(new Nn()) != it || ha && Ke(ha.resolve()) != ct || on && Ke(new on()) != ht || Bn && Ke(new Bn()) != ot) && (Ke = function(e) {
  22019. var M = ti(e), K = M == rt ? e.constructor : C, st = K ? Yr(K) : "";
  22020. if (st)
  22021. switch (st) {
  22022. case Zf:
  22023. return yt;
  22024. case Kf:
  22025. return it;
  22026. case Jf:
  22027. return ct;
  22028. case qf:
  22029. return ht;
  22030. case Qf:
  22031. return ot;
  22032. }
  22033. return M;
  22034. });
  22035. function fm(e, M, K) {
  22036. for (var st = -1, ut = K.length; ++st < ut; ) {
  22037. var mt = K[st], xt = mt.size;
  22038. switch (mt.type) {
  22039. case "drop":
  22040. e += xt;
  22041. break;
  22042. case "dropRight":
  22043. M -= xt;
  22044. break;
  22045. case "take":
  22046. M = Ze(M, e + xt);
  22047. break;
  22048. case "takeRight":
  22049. e = Xe(e, M - xt);
  22050. break;
  22051. }
  22052. }
  22053. return { start: e, end: M };
  22054. }
  22055. function gm(e) {
  22056. var M = e.match(Lr);
  22057. return M ? M[1].split(Xi) : [];
  22058. }
  22059. function Wc(e, M, K) {
  22060. M = wr(M, e);
  22061. for (var st = -1, ut = M.length, mt = !1; ++st < ut; ) {
  22062. var xt = Fi(M[st]);
  22063. if (!(mt = e != null && K(e, xt)))
  22064. break;
  22065. e = e[xt];
  22066. }
  22067. return mt || ++st != ut ? mt : (ut = e == null ? 0 : e.length, !!ut && to(ut) && er(xt, ut) && (ie(e) || zr(e)));
  22068. }
  22069. function mm(e) {
  22070. var M = e.length, K = new e.constructor(M);
  22071. return M && typeof e[0] == "string" && Se.call(e, "index") && (K.index = e.index, K.input = e.input), K;
  22072. }
  22073. function Yc(e) {
  22074. return typeof e.constructor == "function" && !Un(e) ? ln(Ts(e)) : {};
  22075. }
  22076. function ym(e, M, K) {
  22077. var st = e.constructor;
  22078. switch (M) {
  22079. case pt:
  22080. return Ta(e);
  22081. case Q:
  22082. case A:
  22083. return new st(+e);
  22084. case yt:
  22085. return tm(e, K);
  22086. case vt:
  22087. case Ct:
  22088. case Pt:
  22089. case At:
  22090. case St:
  22091. case Dt:
  22092. case _t:
  22093. case Nt:
  22094. case Ot:
  22095. return wc(e, K);
  22096. case it:
  22097. return new st();
  22098. case et:
  22099. case at:
  22100. return new st(e);
  22101. case dt:
  22102. return em(e);
  22103. case ht:
  22104. return new st();
  22105. case J:
  22106. return im(e);
  22107. }
  22108. }
  22109. function vm(e, M) {
  22110. var K = M.length;
  22111. if (!K)
  22112. return e;
  22113. var st = K - 1;
  22114. return M[st] = (K > 1 ? "& " : "") + M[st], M = M.join(K > 2 ? ", " : " "), e.replace(Go, `{
  22115. /* [wrapped with ` + M + `] */
  22116. `);
  22117. }
  22118. function xm(e) {
  22119. return ie(e) || zr(e) || !!(Fh && e && e[Fh]);
  22120. }
  22121. function er(e, M) {
  22122. var K = typeof e;
  22123. return M = M ?? D, !!M && (K == "number" || K != "symbol" && Od.test(e)) && e > -1 && e % 1 == 0 && e < M;
  22124. }
  22125. function ei(e, M, K) {
  22126. if (!Ie(K))
  22127. return !1;
  22128. var st = typeof M;
  22129. return (st == "number" ? ni(K) && er(M, K.length) : st == "string" && M in K) ? _i(K[M], e) : !1;
  22130. }
  22131. function Ra(e, M) {
  22132. if (ie(e))
  22133. return !1;
  22134. var K = typeof e;
  22135. return K == "number" || K == "symbol" || K == "boolean" || e == null || ui(e) ? !0 : On.test(e) || !En.test(e) || M != null && e in Ce(M);
  22136. }
  22137. function bm(e) {
  22138. var M = typeof e;
  22139. return M == "string" || M == "number" || M == "symbol" || M == "boolean" ? e !== "__proto__" : e === null;
  22140. }
  22141. function Na(e) {
  22142. var M = Us(e), K = ft[M];
  22143. if (typeof K != "function" || !(M in ce.prototype))
  22144. return !1;
  22145. if (e === K)
  22146. return !0;
  22147. var st = _a(K);
  22148. return !!st && e === st[0];
  22149. }
  22150. function Sm(e) {
  22151. return !!zh && zh in e;
  22152. }
  22153. var wm = ws ? ir : Qa;
  22154. function Un(e) {
  22155. var M = e && e.constructor, K = typeof M == "function" && M.prototype || sn;
  22156. return e === K;
  22157. }
  22158. function zc(e) {
  22159. return e === e && !Ie(e);
  22160. }
  22161. function Xc(e, M) {
  22162. return function(K) {
  22163. return K == null ? !1 : K[e] === M && (M !== C || e in Ce(K));
  22164. };
  22165. }
  22166. function Mm(e) {
  22167. var M = qs(e, function(st) {
  22168. return K.size === V && K.clear(), st;
  22169. }), K = M.cache;
  22170. return M;
  22171. }
  22172. function Cm(e, M) {
  22173. var K = e[1], st = M[1], ut = K | st, mt = ut < (l | T | v), xt = st == v && K == R || st == v && K == h && e[7].length <= M[8] || st == (v | h) && M[7].length <= M[8] && K == R;
  22174. if (!(mt || xt))
  22175. return e;
  22176. st & l && (e[2] = M[2], ut |= K & l ? 0 : O);
  22177. var bt = M[3];
  22178. if (bt) {
  22179. var Mt = e[3];
  22180. e[3] = Mt ? Cc(Mt, bt, M[4]) : bt, e[4] = Mt ? vr(e[3], F) : M[4];
  22181. }
  22182. return bt = M[5], bt && (Mt = e[5], e[5] = Mt ? kc(Mt, bt, M[6]) : bt, e[6] = Mt ? vr(e[5], F) : M[6]), bt = M[7], bt && (e[7] = bt), st & v && (e[8] = e[8] == null ? M[8] : Ze(e[8], M[8])), e[9] == null && (e[9] = M[9]), e[0] = M[0], e[1] = ut, e;
  22183. }
  22184. function km(e) {
  22185. var M = [];
  22186. if (e != null)
  22187. for (var K in Ce(e))
  22188. M.push(K);
  22189. return M;
  22190. }
  22191. function Am(e) {
  22192. return Cs.call(e);
  22193. }
  22194. function Gc(e, M, K) {
  22195. return M = Xe(M === C ? e.length - 1 : M, 0), function() {
  22196. for (var st = arguments, ut = -1, mt = Xe(st.length - M, 0), xt = Tt(mt); ++ut < mt; )
  22197. xt[ut] = st[M + ut];
  22198. ut = -1;
  22199. for (var bt = Tt(M + 1); ++ut < M; )
  22200. bt[ut] = st[ut];
  22201. return bt[M] = K(xt), hi(e, this, bt);
  22202. };
  22203. }
  22204. function Hc(e, M) {
  22205. return M.length < 2 ? e : jr(e, wi(M, 0, -1));
  22206. }
  22207. function Tm(e, M) {
  22208. for (var K = e.length, st = Ze(M.length, K), ut = ri(e); st--; ) {
  22209. var mt = M[st];
  22210. e[st] = er(mt, K) ? ut[mt] : C;
  22211. }
  22212. return e;
  22213. }
  22214. function Ba(e, M) {
  22215. if (!(M === "constructor" && typeof e[M] == "function") && M != "__proto__")
  22216. return e[M];
  22217. }
  22218. var Fc = Vc(fc), Vn = Xf || function(e, M) {
  22219. return Ue.setTimeout(e, M);
  22220. }, ja = Vc(Kg);
  22221. function Uc(e, M, K) {
  22222. var st = M + "";
  22223. return ja(e, vm(st, Pm(gm(st), K)));
  22224. }
  22225. function Vc(e) {
  22226. var M = 0, K = 0;
  22227. return function() {
  22228. var st = Uf(), ut = a - (st - K);
  22229. if (K = st, ut > 0) {
  22230. if (++M >= p)
  22231. return arguments[0];
  22232. } else
  22233. M = 0;
  22234. return e.apply(C, arguments);
  22235. };
  22236. }
  22237. function $s(e, M) {
  22238. var K = -1, st = e.length, ut = st - 1;
  22239. for (M = M === C ? st : M; ++K < M; ) {
  22240. var mt = ba(K, ut), xt = e[mt];
  22241. e[mt] = e[K], e[K] = xt;
  22242. }
  22243. return e.length = M, e;
  22244. }
  22245. var $c = Mm(function(e) {
  22246. var M = [];
  22247. return e.charCodeAt(0) === 46 && M.push(""), e.replace($e, function(K, st, ut, mt) {
  22248. M.push(ut ? mt.replace(_r, "$1") : st || K);
  22249. }), M;
  22250. });
  22251. function Fi(e) {
  22252. if (typeof e == "string" || ui(e))
  22253. return e;
  22254. var M = e + "";
  22255. return M == "0" && 1 / e == -P ? "-0" : M;
  22256. }
  22257. function Yr(e) {
  22258. if (e != null) {
  22259. try {
  22260. return Ms.call(e);
  22261. } catch {
  22262. }
  22263. try {
  22264. return e + "";
  22265. } catch {
  22266. }
  22267. }
  22268. return "";
  22269. }
  22270. function Pm(e, M) {
  22271. return vi(m, function(K) {
  22272. var st = "_." + K[0];
  22273. M & K[1] && !vs(e, st) && e.push(st);
  22274. }), e.sort();
  22275. }
  22276. function Zc(e) {
  22277. if (e instanceof ce)
  22278. return e.clone();
  22279. var M = new bi(e.__wrapped__, e.__chain__);
  22280. return M.__actions__ = ri(e.__actions__), M.__index__ = e.__index__, M.__values__ = e.__values__, M;
  22281. }
  22282. function Em(e, M, K) {
  22283. (K ? ei(e, M, K) : M === C) ? M = 1 : M = Xe(se(M), 0);
  22284. var st = e == null ? 0 : e.length;
  22285. if (!st || M < 1)
  22286. return [];
  22287. for (var ut = 0, mt = 0, xt = Tt(Os(st / M)); ut < st; )
  22288. xt[mt++] = wi(e, ut, ut += M);
  22289. return xt;
  22290. }
  22291. function Om(e) {
  22292. for (var M = -1, K = e == null ? 0 : e.length, st = 0, ut = []; ++M < K; ) {
  22293. var mt = e[M];
  22294. mt && (ut[st++] = mt);
  22295. }
  22296. return ut;
  22297. }
  22298. function Lm() {
  22299. var e = arguments.length;
  22300. if (!e)
  22301. return [];
  22302. for (var M = Tt(e - 1), K = arguments[0], st = e; st--; )
  22303. M[st - 1] = arguments[st];
  22304. return yr(ie(K) ? ri(K) : [K], Ve(M, 1));
  22305. }
  22306. var _m = le(function(e, M) {
  22307. return Be(e) ? zn(e, Ve(M, 1, Be, !0)) : [];
  22308. }), Dm = le(function(e, M) {
  22309. var K = Mi(M);
  22310. return Be(K) && (K = C), Be(e) ? zn(e, Ve(M, 1, Be, !0), qt(K, 2)) : [];
  22311. }), Im = le(function(e, M) {
  22312. var K = Mi(M);
  22313. return Be(K) && (K = C), Be(e) ? zn(e, Ve(M, 1, Be, !0), C, K) : [];
  22314. });
  22315. function Rm(e, M, K) {
  22316. var st = e == null ? 0 : e.length;
  22317. return st ? (M = K || M === C ? 1 : se(M), wi(e, M < 0 ? 0 : M, st)) : [];
  22318. }
  22319. function Nm(e, M, K) {
  22320. var st = e == null ? 0 : e.length;
  22321. return st ? (M = K || M === C ? 1 : se(M), M = st - M, wi(e, 0, M < 0 ? 0 : M)) : [];
  22322. }
  22323. function Bm(e, M) {
  22324. return e && e.length ? Ys(e, qt(M, 3), !0, !0) : [];
  22325. }
  22326. function jm(e, M) {
  22327. return e && e.length ? Ys(e, qt(M, 3), !0) : [];
  22328. }
  22329. function Wm(e, M, K, st) {
  22330. var ut = e == null ? 0 : e.length;
  22331. return ut ? (K && typeof K != "number" && ei(e, M, K) && (K = 0, st = ut), Lg(e, M, K, st)) : [];
  22332. }
  22333. function Kc(e, M, K) {
  22334. var st = e == null ? 0 : e.length;
  22335. if (!st)
  22336. return -1;
  22337. var ut = K == null ? 0 : se(K);
  22338. return ut < 0 && (ut = Xe(st + ut, 0)), xs(e, qt(M, 3), ut);
  22339. }
  22340. function Jc(e, M, K) {
  22341. var st = e == null ? 0 : e.length;
  22342. if (!st)
  22343. return -1;
  22344. var ut = st - 1;
  22345. return K !== C && (ut = se(K), ut = K < 0 ? Xe(st + ut, 0) : Ze(ut, st - 1)), xs(e, qt(M, 3), ut, !0);
  22346. }
  22347. function qc(e) {
  22348. var M = e == null ? 0 : e.length;
  22349. return M ? Ve(e, 1) : [];
  22350. }
  22351. function Ym(e) {
  22352. var M = e == null ? 0 : e.length;
  22353. return M ? Ve(e, P) : [];
  22354. }
  22355. function zm(e, M) {
  22356. var K = e == null ? 0 : e.length;
  22357. return K ? (M = M === C ? 1 : se(M), Ve(e, M)) : [];
  22358. }
  22359. function Xm(e) {
  22360. for (var M = -1, K = e == null ? 0 : e.length, st = {}; ++M < K; ) {
  22361. var ut = e[M];
  22362. st[ut[0]] = ut[1];
  22363. }
  22364. return st;
  22365. }
  22366. function Qc(e) {
  22367. return e && e.length ? e[0] : C;
  22368. }
  22369. function Gm(e, M, K) {
  22370. var st = e == null ? 0 : e.length;
  22371. if (!st)
  22372. return -1;
  22373. var ut = K == null ? 0 : se(K);
  22374. return ut < 0 && (ut = Xe(st + ut, 0)), tn(e, M, ut);
  22375. }
  22376. function Hm(e) {
  22377. var M = e == null ? 0 : e.length;
  22378. return M ? wi(e, 0, -1) : [];
  22379. }
  22380. var Fm = le(function(e) {
  22381. var M = Ee(e, ka);
  22382. return M.length && M[0] === e[0] ? ga(M) : [];
  22383. }), Um = le(function(e) {
  22384. var M = Mi(e), K = Ee(e, ka);
  22385. return M === Mi(K) ? M = C : K.pop(), K.length && K[0] === e[0] ? ga(K, qt(M, 2)) : [];
  22386. }), Vm = le(function(e) {
  22387. var M = Mi(e), K = Ee(e, ka);
  22388. return M = typeof M == "function" ? M : C, M && K.pop(), K.length && K[0] === e[0] ? ga(K, C, M) : [];
  22389. });
  22390. function $m(e, M) {
  22391. return e == null ? "" : Hf.call(e, M);
  22392. }
  22393. function Mi(e) {
  22394. var M = e == null ? 0 : e.length;
  22395. return M ? e[M - 1] : C;
  22396. }
  22397. function Zm(e, M, K) {
  22398. var st = e == null ? 0 : e.length;
  22399. if (!st)
  22400. return -1;
  22401. var ut = st;
  22402. return K !== C && (ut = se(K), ut = ut < 0 ? Xe(st + ut, 0) : Ze(ut, st - 1)), M === M ? Pf(e, M, ut) : xs(e, Dh, ut, !0);
  22403. }
  22404. function Km(e, M) {
  22405. return e && e.length ? cc(e, se(M)) : C;
  22406. }
  22407. var Jm = le(tp);
  22408. function tp(e, M) {
  22409. return e && e.length && M && M.length ? xa(e, M) : e;
  22410. }
  22411. function qm(e, M, K) {
  22412. return e && e.length && M && M.length ? xa(e, M, qt(K, 2)) : e;
  22413. }
  22414. function Qm(e, M, K) {
  22415. return e && e.length && M && M.length ? xa(e, M, C, K) : e;
  22416. }
  22417. var ty = tr(function(e, M) {
  22418. var K = e == null ? 0 : e.length, st = pa(e, M);
  22419. return dc(e, Ee(M, function(ut) {
  22420. return er(ut, K) ? +ut : ut;
  22421. }).sort(Mc)), st;
  22422. });
  22423. function ey(e, M) {
  22424. var K = [];
  22425. if (!(e && e.length))
  22426. return K;
  22427. var st = -1, ut = [], mt = e.length;
  22428. for (M = qt(M, 3); ++st < mt; ) {
  22429. var xt = e[st];
  22430. M(xt, st, e) && (K.push(xt), ut.push(st));
  22431. }
  22432. return dc(e, ut), K;
  22433. }
  22434. function Wa(e) {
  22435. return e == null ? e : $f.call(e);
  22436. }
  22437. function iy(e, M, K) {
  22438. var st = e == null ? 0 : e.length;
  22439. return st ? (K && typeof K != "number" && ei(e, M, K) ? (M = 0, K = st) : (M = M == null ? 0 : se(M), K = K === C ? st : se(K)), wi(e, M, K)) : [];
  22440. }
  22441. function ry(e, M) {
  22442. return Ws(e, M);
  22443. }
  22444. function ny(e, M, K) {
  22445. return wa(e, M, qt(K, 2));
  22446. }
  22447. function sy(e, M) {
  22448. var K = e == null ? 0 : e.length;
  22449. if (K) {
  22450. var st = Ws(e, M);
  22451. if (st < K && _i(e[st], M))
  22452. return st;
  22453. }
  22454. return -1;
  22455. }
  22456. function oy(e, M) {
  22457. return Ws(e, M, !0);
  22458. }
  22459. function ay(e, M, K) {
  22460. return wa(e, M, qt(K, 2), !0);
  22461. }
  22462. function ly(e, M) {
  22463. var K = e == null ? 0 : e.length;
  22464. if (K) {
  22465. var st = Ws(e, M, !0) - 1;
  22466. if (_i(e[st], M))
  22467. return st;
  22468. }
  22469. return -1;
  22470. }
  22471. function hy(e) {
  22472. return e && e.length ? gc(e) : [];
  22473. }
  22474. function cy(e, M) {
  22475. return e && e.length ? gc(e, qt(M, 2)) : [];
  22476. }
  22477. function py(e) {
  22478. var M = e == null ? 0 : e.length;
  22479. return M ? wi(e, 1, M) : [];
  22480. }
  22481. function uy(e, M, K) {
  22482. return e && e.length ? (M = K || M === C ? 1 : se(M), wi(e, 0, M < 0 ? 0 : M)) : [];
  22483. }
  22484. function dy(e, M, K) {
  22485. var st = e == null ? 0 : e.length;
  22486. return st ? (M = K || M === C ? 1 : se(M), M = st - M, wi(e, M < 0 ? 0 : M, st)) : [];
  22487. }
  22488. function fy(e, M) {
  22489. return e && e.length ? Ys(e, qt(M, 3), !1, !0) : [];
  22490. }
  22491. function gy(e, M) {
  22492. return e && e.length ? Ys(e, qt(M, 3)) : [];
  22493. }
  22494. var my = le(function(e) {
  22495. return Sr(Ve(e, 1, Be, !0));
  22496. }), yy = le(function(e) {
  22497. var M = Mi(e);
  22498. return Be(M) && (M = C), Sr(Ve(e, 1, Be, !0), qt(M, 2));
  22499. }), vy = le(function(e) {
  22500. var M = Mi(e);
  22501. return M = typeof M == "function" ? M : C, Sr(Ve(e, 1, Be, !0), C, M);
  22502. });
  22503. function xy(e) {
  22504. return e && e.length ? Sr(e) : [];
  22505. }
  22506. function by(e, M) {
  22507. return e && e.length ? Sr(e, qt(M, 2)) : [];
  22508. }
  22509. function Sy(e, M) {
  22510. return M = typeof M == "function" ? M : C, e && e.length ? Sr(e, C, M) : [];
  22511. }
  22512. function Ya(e) {
  22513. if (!(e && e.length))
  22514. return [];
  22515. var M = 0;
  22516. return e = mr(e, function(K) {
  22517. if (Be(K))
  22518. return M = Xe(K.length, M), !0;
  22519. }), ra(M, function(K) {
  22520. return Ee(e, ta(K));
  22521. });
  22522. }
  22523. function ep(e, M) {
  22524. if (!(e && e.length))
  22525. return [];
  22526. var K = Ya(e);
  22527. return M == null ? K : Ee(K, function(st) {
  22528. return hi(M, C, st);
  22529. });
  22530. }
  22531. var wy = le(function(e, M) {
  22532. return Be(e) ? zn(e, M) : [];
  22533. }), My = le(function(e) {
  22534. return Ca(mr(e, Be));
  22535. }), Cy = le(function(e) {
  22536. var M = Mi(e);
  22537. return Be(M) && (M = C), Ca(mr(e, Be), qt(M, 2));
  22538. }), ky = le(function(e) {
  22539. var M = Mi(e);
  22540. return M = typeof M == "function" ? M : C, Ca(mr(e, Be), C, M);
  22541. }), Ay = le(Ya);
  22542. function Ty(e, M) {
  22543. return xc(e || [], M || [], Yn);
  22544. }
  22545. function Py(e, M) {
  22546. return xc(e || [], M || [], Hn);
  22547. }
  22548. var Ey = le(function(e) {
  22549. var M = e.length, K = M > 1 ? e[M - 1] : C;
  22550. return K = typeof K == "function" ? (e.pop(), K) : C, ep(e, K);
  22551. });
  22552. function ip(e) {
  22553. var M = ft(e);
  22554. return M.__chain__ = !0, M;
  22555. }
  22556. function Oy(e, M) {
  22557. return M(e), e;
  22558. }
  22559. function Zs(e, M) {
  22560. return M(e);
  22561. }
  22562. var Ly = tr(function(e) {
  22563. var M = e.length, K = M ? e[0] : 0, st = this.__wrapped__, ut = function(mt) {
  22564. return pa(mt, e);
  22565. };
  22566. return M > 1 || this.__actions__.length || !(st instanceof ce) || !er(K) ? this.thru(ut) : (st = st.slice(K, +K + (M ? 1 : 0)), st.__actions__.push({
  22567. func: Zs,
  22568. args: [ut],
  22569. thisArg: C
  22570. }), new bi(st, this.__chain__).thru(function(mt) {
  22571. return M && !mt.length && mt.push(C), mt;
  22572. }));
  22573. });
  22574. function _y() {
  22575. return ip(this);
  22576. }
  22577. function Dy() {
  22578. return new bi(this.value(), this.__chain__);
  22579. }
  22580. function Iy() {
  22581. this.__values__ === C && (this.__values__ = mp(this.value()));
  22582. var e = this.__index__ >= this.__values__.length, M = e ? C : this.__values__[this.__index__++];
  22583. return { done: e, value: M };
  22584. }
  22585. function Ry() {
  22586. return this;
  22587. }
  22588. function Ny(e) {
  22589. for (var M, K = this; K instanceof Is; ) {
  22590. var st = Zc(K);
  22591. st.__index__ = 0, st.__values__ = C, M ? ut.__wrapped__ = st : M = st;
  22592. var ut = st;
  22593. K = K.__wrapped__;
  22594. }
  22595. return ut.__wrapped__ = e, M;
  22596. }
  22597. function By() {
  22598. var e = this.__wrapped__;
  22599. if (e instanceof ce) {
  22600. var M = e;
  22601. return this.__actions__.length && (M = new ce(this)), M = M.reverse(), M.__actions__.push({
  22602. func: Zs,
  22603. args: [Wa],
  22604. thisArg: C
  22605. }), new bi(M, this.__chain__);
  22606. }
  22607. return this.thru(Wa);
  22608. }
  22609. function jy() {
  22610. return vc(this.__wrapped__, this.__actions__);
  22611. }
  22612. var Wy = zs(function(e, M, K) {
  22613. Se.call(e, K) ? ++e[K] : qi(e, K, 1);
  22614. });
  22615. function Yy(e, M, K) {
  22616. var st = ie(e) ? Lh : Og;
  22617. return K && ei(e, M, K) && (M = C), st(e, qt(M, 3));
  22618. }
  22619. function zy(e, M) {
  22620. var K = ie(e) ? mr : ec;
  22621. return K(e, qt(M, 3));
  22622. }
  22623. var Xy = Ec(Kc), Gy = Ec(Jc);
  22624. function Hy(e, M) {
  22625. return Ve(Ks(e, M), 1);
  22626. }
  22627. function Fy(e, M) {
  22628. return Ve(Ks(e, M), P);
  22629. }
  22630. function Uy(e, M, K) {
  22631. return K = K === C ? 1 : se(K), Ve(Ks(e, M), K);
  22632. }
  22633. function rp(e, M) {
  22634. var K = ie(e) ? vi : br;
  22635. return K(e, qt(M, 3));
  22636. }
  22637. function np(e, M) {
  22638. var K = ie(e) ? pf : tc;
  22639. return K(e, qt(M, 3));
  22640. }
  22641. var Vy = zs(function(e, M, K) {
  22642. Se.call(e, K) ? e[K].push(M) : qi(e, K, [M]);
  22643. });
  22644. function $y(e, M, K, st) {
  22645. e = ni(e) ? e : dn(e), K = K && !st ? se(K) : 0;
  22646. var ut = e.length;
  22647. return K < 0 && (K = Xe(ut + K, 0)), eo(e) ? K <= ut && e.indexOf(M, K) > -1 : !!ut && tn(e, M, K) > -1;
  22648. }
  22649. var Zy = le(function(e, M, K) {
  22650. var st = -1, ut = typeof M == "function", mt = ni(e) ? Tt(e.length) : [];
  22651. return br(e, function(xt) {
  22652. mt[++st] = ut ? hi(M, xt, K) : Xn(xt, M, K);
  22653. }), mt;
  22654. }), Ky = zs(function(e, M, K) {
  22655. qi(e, K, M);
  22656. });
  22657. function Ks(e, M) {
  22658. var K = ie(e) ? Ee : ac;
  22659. return K(e, qt(M, 3));
  22660. }
  22661. function Jy(e, M, K, st) {
  22662. return e == null ? [] : (ie(M) || (M = M == null ? [] : [M]), K = st ? C : K, ie(K) || (K = K == null ? [] : [K]), pc(e, M, K));
  22663. }
  22664. var qy = zs(function(e, M, K) {
  22665. e[K ? 0 : 1].push(M);
  22666. }, function() {
  22667. return [[], []];
  22668. });
  22669. function Qy(e, M, K) {
  22670. var st = ie(e) ? qo : Rh, ut = arguments.length < 3;
  22671. return st(e, qt(M, 4), K, ut, br);
  22672. }
  22673. function tv(e, M, K) {
  22674. var st = ie(e) ? uf : Rh, ut = arguments.length < 3;
  22675. return st(e, qt(M, 4), K, ut, tc);
  22676. }
  22677. function ev(e, M) {
  22678. var K = ie(e) ? mr : ec;
  22679. return K(e, Qs(qt(M, 3)));
  22680. }
  22681. function iv(e) {
  22682. var M = ie(e) ? Kh : $g;
  22683. return M(e);
  22684. }
  22685. function rv(e, M, K) {
  22686. (K ? ei(e, M, K) : M === C) ? M = 1 : M = se(M);
  22687. var st = ie(e) ? kg : Zg;
  22688. return st(e, M);
  22689. }
  22690. function nv(e) {
  22691. var M = ie(e) ? Ag : Jg;
  22692. return M(e);
  22693. }
  22694. function sv(e) {
  22695. if (e == null)
  22696. return 0;
  22697. if (ni(e))
  22698. return eo(e) ? rn(e) : e.length;
  22699. var M = Ke(e);
  22700. return M == it || M == ht ? e.size : ya(e).length;
  22701. }
  22702. function ov(e, M, K) {
  22703. var st = ie(e) ? Qo : qg;
  22704. return K && ei(e, M, K) && (M = C), st(e, qt(M, 3));
  22705. }
  22706. var av = le(function(e, M) {
  22707. if (e == null)
  22708. return [];
  22709. var K = M.length;
  22710. return K > 1 && ei(e, M[0], M[1]) ? M = [] : K > 2 && ei(M[0], M[1], M[2]) && (M = [M[0]]), pc(e, Ve(M, 1), []);
  22711. }), Js = zf || function() {
  22712. return Ue.Date.now();
  22713. };
  22714. function lv(e, M) {
  22715. if (typeof M != "function")
  22716. throw new xi(_);
  22717. return e = se(e), function() {
  22718. if (--e < 1)
  22719. return M.apply(this, arguments);
  22720. };
  22721. }
  22722. function sp(e, M, K) {
  22723. return M = K ? C : M, M = e && M == null ? e.length : M, Qi(e, v, C, C, C, C, M);
  22724. }
  22725. function op(e, M) {
  22726. var K;
  22727. if (typeof M != "function")
  22728. throw new xi(_);
  22729. return e = se(e), function() {
  22730. return --e > 0 && (K = M.apply(this, arguments)), e <= 1 && (M = C), K;
  22731. };
  22732. }
  22733. var za = le(function(e, M, K) {
  22734. var st = l;
  22735. if (K.length) {
  22736. var ut = vr(K, pn(za));
  22737. st |= b;
  22738. }
  22739. return Qi(e, st, M, K, ut);
  22740. }), ap = le(function(e, M, K) {
  22741. var st = l | T;
  22742. if (K.length) {
  22743. var ut = vr(K, pn(ap));
  22744. st |= b;
  22745. }
  22746. return Qi(M, st, e, K, ut);
  22747. });
  22748. function lp(e, M, K) {
  22749. M = K ? C : M;
  22750. var st = Qi(e, R, C, C, C, C, C, M);
  22751. return st.placeholder = lp.placeholder, st;
  22752. }
  22753. function hp(e, M, K) {
  22754. M = K ? C : M;
  22755. var st = Qi(e, k, C, C, C, C, C, M);
  22756. return st.placeholder = hp.placeholder, st;
  22757. }
  22758. function cp(e, M, K) {
  22759. var st, ut, mt, xt, bt, Mt, It = 0, Rt = !1, Bt = !1, zt = !0;
  22760. if (typeof e != "function")
  22761. throw new xi(_);
  22762. M = Ci(M) || 0, Ie(K) && (Rt = !!K.leading, Bt = "maxWait" in K, mt = Bt ? Xe(Ci(K.maxWait) || 0, M) : mt, zt = "trailing" in K ? !!K.trailing : zt);
  22763. function Ut(je) {
  22764. var Di = st, nr = ut;
  22765. return st = ut = C, It = je, xt = e.apply(nr, Di), xt;
  22766. }
  22767. function Qt(je) {
  22768. return It = je, bt = Vn(he, M), Rt ? Ut(je) : xt;
  22769. }
  22770. function ae(je) {
  22771. var Di = je - Mt, nr = je - It, Ep = M - Di;
  22772. return Bt ? Ze(Ep, mt - nr) : Ep;
  22773. }
  22774. function te(je) {
  22775. var Di = je - Mt, nr = je - It;
  22776. return Mt === C || Di >= M || Di < 0 || Bt && nr >= mt;
  22777. }
  22778. function he() {
  22779. var je = Js();
  22780. if (te(je))
  22781. return ue(je);
  22782. bt = Vn(he, ae(je));
  22783. }
  22784. function ue(je) {
  22785. return bt = C, zt && st ? Ut(je) : (st = ut = C, xt);
  22786. }
  22787. function di() {
  22788. bt !== C && bc(bt), It = 0, st = Mt = ut = bt = C;
  22789. }
  22790. function ii() {
  22791. return bt === C ? xt : ue(Js());
  22792. }
  22793. function fi() {
  22794. var je = Js(), Di = te(je);
  22795. if (st = arguments, ut = this, Mt = je, Di) {
  22796. if (bt === C)
  22797. return Qt(Mt);
  22798. if (Bt)
  22799. return bc(bt), bt = Vn(he, M), Ut(Mt);
  22800. }
  22801. return bt === C && (bt = Vn(he, M)), xt;
  22802. }
  22803. return fi.cancel = di, fi.flush = ii, fi;
  22804. }
  22805. var hv = le(function(e, M) {
  22806. return Qh(e, 1, M);
  22807. }), cv = le(function(e, M, K) {
  22808. return Qh(e, Ci(M) || 0, K);
  22809. });
  22810. function pv(e) {
  22811. return Qi(e, c);
  22812. }
  22813. function qs(e, M) {
  22814. if (typeof e != "function" || M != null && typeof M != "function")
  22815. throw new xi(_);
  22816. var K = function() {
  22817. var st = arguments, ut = M ? M.apply(this, st) : st[0], mt = K.cache;
  22818. if (mt.has(ut))
  22819. return mt.get(ut);
  22820. var xt = e.apply(this, st);
  22821. return K.cache = mt.set(ut, xt) || mt, xt;
  22822. };
  22823. return K.cache = new (qs.Cache || Ji)(), K;
  22824. }
  22825. qs.Cache = Ji;
  22826. function Qs(e) {
  22827. if (typeof e != "function")
  22828. throw new xi(_);
  22829. return function() {
  22830. var M = arguments;
  22831. switch (M.length) {
  22832. case 0:
  22833. return !e.call(this);
  22834. case 1:
  22835. return !e.call(this, M[0]);
  22836. case 2:
  22837. return !e.call(this, M[0], M[1]);
  22838. case 3:
  22839. return !e.call(this, M[0], M[1], M[2]);
  22840. }
  22841. return !e.apply(this, M);
  22842. };
  22843. }
  22844. function uv(e) {
  22845. return op(2, e);
  22846. }
  22847. var dv = Qg(function(e, M) {
  22848. M = M.length == 1 && ie(M[0]) ? Ee(M[0], ci(qt())) : Ee(Ve(M, 1), ci(qt()));
  22849. var K = M.length;
  22850. return le(function(st) {
  22851. for (var ut = -1, mt = Ze(st.length, K); ++ut < mt; )
  22852. st[ut] = M[ut].call(this, st[ut]);
  22853. return hi(e, this, st);
  22854. });
  22855. }), Xa = le(function(e, M) {
  22856. var K = vr(M, pn(Xa));
  22857. return Qi(e, b, C, M, K);
  22858. }), pp = le(function(e, M) {
  22859. var K = vr(M, pn(pp));
  22860. return Qi(e, S, C, M, K);
  22861. }), fv = tr(function(e, M) {
  22862. return Qi(e, h, C, C, C, M);
  22863. });
  22864. function gv(e, M) {
  22865. if (typeof e != "function")
  22866. throw new xi(_);
  22867. return M = M === C ? M : se(M), le(e, M);
  22868. }
  22869. function mv(e, M) {
  22870. if (typeof e != "function")
  22871. throw new xi(_);
  22872. return M = M == null ? 0 : Xe(se(M), 0), le(function(K) {
  22873. var st = K[M], ut = Mr(K, 0, M);
  22874. return st && yr(ut, st), hi(e, this, ut);
  22875. });
  22876. }
  22877. function yv(e, M, K) {
  22878. var st = !0, ut = !0;
  22879. if (typeof e != "function")
  22880. throw new xi(_);
  22881. return Ie(K) && (st = "leading" in K ? !!K.leading : st, ut = "trailing" in K ? !!K.trailing : ut), cp(e, M, {
  22882. leading: st,
  22883. maxWait: M,
  22884. trailing: ut
  22885. });
  22886. }
  22887. function vv(e) {
  22888. return sp(e, 1);
  22889. }
  22890. function xv(e, M) {
  22891. return Xa(Aa(M), e);
  22892. }
  22893. function bv() {
  22894. if (!arguments.length)
  22895. return [];
  22896. var e = arguments[0];
  22897. return ie(e) ? e : [e];
  22898. }
  22899. function Sv(e) {
  22900. return Si(e, w);
  22901. }
  22902. function wv(e, M) {
  22903. return M = typeof M == "function" ? M : C, Si(e, w, M);
  22904. }
  22905. function Mv(e) {
  22906. return Si(e, B | w);
  22907. }
  22908. function Cv(e, M) {
  22909. return M = typeof M == "function" ? M : C, Si(e, B | w, M);
  22910. }
  22911. function kv(e, M) {
  22912. return M == null || qh(e, M, He(M));
  22913. }
  22914. function _i(e, M) {
  22915. return e === M || e !== e && M !== M;
  22916. }
  22917. var Av = Fs(fa), Tv = Fs(function(e, M) {
  22918. return e >= M;
  22919. }), zr = nc(function() {
  22920. return arguments;
  22921. }()) ? nc : function(e) {
  22922. return Ne(e) && Se.call(e, "callee") && !Hh.call(e, "callee");
  22923. }, ie = Tt.isArray, Pv = kh ? ci(kh) : Ng;
  22924. function ni(e) {
  22925. return e != null && to(e.length) && !ir(e);
  22926. }
  22927. function Be(e) {
  22928. return Ne(e) && ni(e);
  22929. }
  22930. function Ev(e) {
  22931. return e === !0 || e === !1 || Ne(e) && ti(e) == Q;
  22932. }
  22933. var Cr = Gf || Qa, Ov = Ah ? ci(Ah) : Bg;
  22934. function Lv(e) {
  22935. return Ne(e) && e.nodeType === 1 && !$n(e);
  22936. }
  22937. function _v(e) {
  22938. if (e == null)
  22939. return !0;
  22940. if (ni(e) && (ie(e) || typeof e == "string" || typeof e.splice == "function" || Cr(e) || un(e) || zr(e)))
  22941. return !e.length;
  22942. var M = Ke(e);
  22943. if (M == it || M == ht)
  22944. return !e.size;
  22945. if (Un(e))
  22946. return !ya(e).length;
  22947. for (var K in e)
  22948. if (Se.call(e, K))
  22949. return !1;
  22950. return !0;
  22951. }
  22952. function Dv(e, M) {
  22953. return Gn(e, M);
  22954. }
  22955. function Iv(e, M, K) {
  22956. K = typeof K == "function" ? K : C;
  22957. var st = K ? K(e, M) : C;
  22958. return st === C ? Gn(e, M, C, K) : !!st;
  22959. }
  22960. function Ga(e) {
  22961. if (!Ne(e))
  22962. return !1;
  22963. var M = ti(e);
  22964. return M == Y || M == H || typeof e.message == "string" && typeof e.name == "string" && !$n(e);
  22965. }
  22966. function Rv(e) {
  22967. return typeof e == "number" && Uh(e);
  22968. }
  22969. function ir(e) {
  22970. if (!Ie(e))
  22971. return !1;
  22972. var M = ti(e);
  22973. return M == Z || M == q || M == $ || M == gt;
  22974. }
  22975. function up(e) {
  22976. return typeof e == "number" && e == se(e);
  22977. }
  22978. function to(e) {
  22979. return typeof e == "number" && e > -1 && e % 1 == 0 && e <= D;
  22980. }
  22981. function Ie(e) {
  22982. var M = typeof e;
  22983. return e != null && (M == "object" || M == "function");
  22984. }
  22985. function Ne(e) {
  22986. return e != null && typeof e == "object";
  22987. }
  22988. var dp = Th ? ci(Th) : Wg;
  22989. function Nv(e, M) {
  22990. return e === M || ma(e, M, Da(M));
  22991. }
  22992. function Bv(e, M, K) {
  22993. return K = typeof K == "function" ? K : C, ma(e, M, Da(M), K);
  22994. }
  22995. function jv(e) {
  22996. return fp(e) && e != +e;
  22997. }
  22998. function Wv(e) {
  22999. if (wm(e))
  23000. throw new ee(N);
  23001. return sc(e);
  23002. }
  23003. function Yv(e) {
  23004. return e === null;
  23005. }
  23006. function zv(e) {
  23007. return e == null;
  23008. }
  23009. function fp(e) {
  23010. return typeof e == "number" || Ne(e) && ti(e) == et;
  23011. }
  23012. function $n(e) {
  23013. if (!Ne(e) || ti(e) != rt)
  23014. return !1;
  23015. var M = Ts(e);
  23016. if (M === null)
  23017. return !0;
  23018. var K = Se.call(M, "constructor") && M.constructor;
  23019. return typeof K == "function" && K instanceof K && Ms.call(K) == Bf;
  23020. }
  23021. var Ha = Ph ? ci(Ph) : Yg;
  23022. function Xv(e) {
  23023. return up(e) && e >= -D && e <= D;
  23024. }
  23025. var gp = Eh ? ci(Eh) : zg;
  23026. function eo(e) {
  23027. return typeof e == "string" || !ie(e) && Ne(e) && ti(e) == at;
  23028. }
  23029. function ui(e) {
  23030. return typeof e == "symbol" || Ne(e) && ti(e) == J;
  23031. }
  23032. var un = Oh ? ci(Oh) : Xg;
  23033. function Gv(e) {
  23034. return e === C;
  23035. }
  23036. function Hv(e) {
  23037. return Ne(e) && Ke(e) == ot;
  23038. }
  23039. function Fv(e) {
  23040. return Ne(e) && ti(e) == lt;
  23041. }
  23042. var Uv = Fs(va), Vv = Fs(function(e, M) {
  23043. return e <= M;
  23044. });
  23045. function mp(e) {
  23046. if (!e)
  23047. return [];
  23048. if (ni(e))
  23049. return eo(e) ? Oi(e) : ri(e);
  23050. if (Rn && e[Rn])
  23051. return kf(e[Rn]());
  23052. var M = Ke(e), K = M == it ? sa : M == ht ? bs : dn;
  23053. return K(e);
  23054. }
  23055. function rr(e) {
  23056. if (!e)
  23057. return e === 0 ? e : 0;
  23058. if (e = Ci(e), e === P || e === -P) {
  23059. var M = e < 0 ? -1 : 1;
  23060. return M * I;
  23061. }
  23062. return e === e ? e : 0;
  23063. }
  23064. function se(e) {
  23065. var M = rr(e), K = M % 1;
  23066. return M === M ? K ? M - K : M : 0;
  23067. }
  23068. function yp(e) {
  23069. return e ? Br(se(e), 0, E) : 0;
  23070. }
  23071. function Ci(e) {
  23072. if (typeof e == "number")
  23073. return e;
  23074. if (ui(e))
  23075. return W;
  23076. if (Ie(e)) {
  23077. var M = typeof e.valueOf == "function" ? e.valueOf() : e;
  23078. e = Ie(M) ? M + "" : M;
  23079. }
  23080. if (typeof e != "string")
  23081. return e === 0 ? e : +e;
  23082. e = Nh(e);
  23083. var K = Re.test(e);
  23084. return K || qr.test(e) ? lf(e.slice(2), K ? 2 : 8) : ge.test(e) ? W : +e;
  23085. }
  23086. function vp(e) {
  23087. return Hi(e, si(e));
  23088. }
  23089. function $v(e) {
  23090. return e ? Br(se(e), -D, D) : e === 0 ? e : 0;
  23091. }
  23092. function xe(e) {
  23093. return e == null ? "" : pi(e);
  23094. }
  23095. var Zv = hn(function(e, M) {
  23096. if (Un(M) || ni(M)) {
  23097. Hi(M, He(M), e);
  23098. return;
  23099. }
  23100. for (var K in M)
  23101. Se.call(M, K) && Yn(e, K, M[K]);
  23102. }), xp = hn(function(e, M) {
  23103. Hi(M, si(M), e);
  23104. }), io = hn(function(e, M, K, st) {
  23105. Hi(M, si(M), e, st);
  23106. }), Kv = hn(function(e, M, K, st) {
  23107. Hi(M, He(M), e, st);
  23108. }), Jv = tr(pa);
  23109. function qv(e, M) {
  23110. var K = ln(e);
  23111. return M == null ? K : Jh(K, M);
  23112. }
  23113. var Qv = le(function(e, M) {
  23114. e = Ce(e);
  23115. var K = -1, st = M.length, ut = st > 2 ? M[2] : C;
  23116. for (ut && ei(M[0], M[1], ut) && (st = 1); ++K < st; )
  23117. for (var mt = M[K], xt = si(mt), bt = -1, Mt = xt.length; ++bt < Mt; ) {
  23118. var It = xt[bt], Rt = e[It];
  23119. (Rt === C || _i(Rt, sn[It]) && !Se.call(e, It)) && (e[It] = mt[It]);
  23120. }
  23121. return e;
  23122. }), tx = le(function(e) {
  23123. return e.push(C, Nc), hi(bp, C, e);
  23124. });
  23125. function ex(e, M) {
  23126. return _h(e, qt(M, 3), Gi);
  23127. }
  23128. function ix(e, M) {
  23129. return _h(e, qt(M, 3), da);
  23130. }
  23131. function rx(e, M) {
  23132. return e == null ? e : ua(e, qt(M, 3), si);
  23133. }
  23134. function nx(e, M) {
  23135. return e == null ? e : ic(e, qt(M, 3), si);
  23136. }
  23137. function sx(e, M) {
  23138. return e && Gi(e, qt(M, 3));
  23139. }
  23140. function ox(e, M) {
  23141. return e && da(e, qt(M, 3));
  23142. }
  23143. function ax(e) {
  23144. return e == null ? [] : Bs(e, He(e));
  23145. }
  23146. function lx(e) {
  23147. return e == null ? [] : Bs(e, si(e));
  23148. }
  23149. function Fa(e, M, K) {
  23150. var st = e == null ? C : jr(e, M);
  23151. return st === C ? K : st;
  23152. }
  23153. function hx(e, M) {
  23154. return e != null && Wc(e, M, _g);
  23155. }
  23156. function Ua(e, M) {
  23157. return e != null && Wc(e, M, Dg);
  23158. }
  23159. var cx = Lc(function(e, M, K) {
  23160. M != null && typeof M.toString != "function" && (M = Cs.call(M)), e[M] = K;
  23161. }, $a(oi)), px = Lc(function(e, M, K) {
  23162. M != null && typeof M.toString != "function" && (M = Cs.call(M)), Se.call(e, M) ? e[M].push(K) : e[M] = [K];
  23163. }, qt), ux = le(Xn);
  23164. function He(e) {
  23165. return ni(e) ? Zh(e) : ya(e);
  23166. }
  23167. function si(e) {
  23168. return ni(e) ? Zh(e, !0) : Gg(e);
  23169. }
  23170. function dx(e, M) {
  23171. var K = {};
  23172. return M = qt(M, 3), Gi(e, function(st, ut, mt) {
  23173. qi(K, M(st, ut, mt), st);
  23174. }), K;
  23175. }
  23176. function fx(e, M) {
  23177. var K = {};
  23178. return M = qt(M, 3), Gi(e, function(st, ut, mt) {
  23179. qi(K, ut, M(st, ut, mt));
  23180. }), K;
  23181. }
  23182. var gx = hn(function(e, M, K) {
  23183. js(e, M, K);
  23184. }), bp = hn(function(e, M, K, st) {
  23185. js(e, M, K, st);
  23186. }), mx = tr(function(e, M) {
  23187. var K = {};
  23188. if (e == null)
  23189. return K;
  23190. var st = !1;
  23191. M = Ee(M, function(mt) {
  23192. return mt = wr(mt, e), st || (st = mt.length > 1), mt;
  23193. }), Hi(e, La(e), K), st && (K = Si(K, B | j | w, cm));
  23194. for (var ut = M.length; ut--; )
  23195. Ma(K, M[ut]);
  23196. return K;
  23197. });
  23198. function yx(e, M) {
  23199. return Sp(e, Qs(qt(M)));
  23200. }
  23201. var vx = tr(function(e, M) {
  23202. return e == null ? {} : Fg(e, M);
  23203. });
  23204. function Sp(e, M) {
  23205. if (e == null)
  23206. return {};
  23207. var K = Ee(La(e), function(st) {
  23208. return [st];
  23209. });
  23210. return M = qt(M), uc(e, K, function(st, ut) {
  23211. return M(st, ut[0]);
  23212. });
  23213. }
  23214. function xx(e, M, K) {
  23215. M = wr(M, e);
  23216. var st = -1, ut = M.length;
  23217. for (ut || (ut = 1, e = C); ++st < ut; ) {
  23218. var mt = e == null ? C : e[Fi(M[st])];
  23219. mt === C && (st = ut, mt = K), e = ir(mt) ? mt.call(e) : mt;
  23220. }
  23221. return e;
  23222. }
  23223. function bx(e, M, K) {
  23224. return e == null ? e : Hn(e, M, K);
  23225. }
  23226. function Sx(e, M, K, st) {
  23227. return st = typeof st == "function" ? st : C, e == null ? e : Hn(e, M, K, st);
  23228. }
  23229. var wp = Ic(He), Mp = Ic(si);
  23230. function wx(e, M, K) {
  23231. var st = ie(e), ut = st || Cr(e) || un(e);
  23232. if (M = qt(M, 4), K == null) {
  23233. var mt = e && e.constructor;
  23234. ut ? K = st ? new mt() : [] : Ie(e) ? K = ir(mt) ? ln(Ts(e)) : {} : K = {};
  23235. }
  23236. return (ut ? vi : Gi)(e, function(xt, bt, Mt) {
  23237. return M(K, xt, bt, Mt);
  23238. }), K;
  23239. }
  23240. function Mx(e, M) {
  23241. return e == null ? !0 : Ma(e, M);
  23242. }
  23243. function Cx(e, M, K) {
  23244. return e == null ? e : yc(e, M, Aa(K));
  23245. }
  23246. function kx(e, M, K, st) {
  23247. return st = typeof st == "function" ? st : C, e == null ? e : yc(e, M, Aa(K), st);
  23248. }
  23249. function dn(e) {
  23250. return e == null ? [] : na(e, He(e));
  23251. }
  23252. function Ax(e) {
  23253. return e == null ? [] : na(e, si(e));
  23254. }
  23255. function Tx(e, M, K) {
  23256. return K === C && (K = M, M = C), K !== C && (K = Ci(K), K = K === K ? K : 0), M !== C && (M = Ci(M), M = M === M ? M : 0), Br(Ci(e), M, K);
  23257. }
  23258. function Px(e, M, K) {
  23259. return M = rr(M), K === C ? (K = M, M = 0) : K = rr(K), e = Ci(e), Ig(e, M, K);
  23260. }
  23261. function Ex(e, M, K) {
  23262. if (K && typeof K != "boolean" && ei(e, M, K) && (M = K = C), K === C && (typeof M == "boolean" ? (K = M, M = C) : typeof e == "boolean" && (K = e, e = C)), e === C && M === C ? (e = 0, M = 1) : (e = rr(e), M === C ? (M = e, e = 0) : M = rr(M)), e > M) {
  23263. var st = e;
  23264. e = M, M = st;
  23265. }
  23266. if (K || e % 1 || M % 1) {
  23267. var ut = Vh();
  23268. return Ze(e + ut * (M - e + af("1e-" + ((ut + "").length - 1))), M);
  23269. }
  23270. return ba(e, M);
  23271. }
  23272. var Ox = cn(function(e, M, K) {
  23273. return M = M.toLowerCase(), e + (K ? Cp(M) : M);
  23274. });
  23275. function Cp(e) {
  23276. return Va(xe(e).toLowerCase());
  23277. }
  23278. function kp(e) {
  23279. return e = xe(e), e && e.replace(Ld, bf).replace(Kd, "");
  23280. }
  23281. function Lx(e, M, K) {
  23282. e = xe(e), M = pi(M);
  23283. var st = e.length;
  23284. K = K === C ? st : Br(se(K), 0, st);
  23285. var ut = K;
  23286. return K -= M.length, K >= 0 && e.slice(K, ut) == M;
  23287. }
  23288. function _x(e) {
  23289. return e = xe(e), e && Vt.test(e) ? e.replace(be, Sf) : e;
  23290. }
  23291. function Dx(e) {
  23292. return e = xe(e), e && _n.test(e) ? e.replace(Ln, "\\$&") : e;
  23293. }
  23294. var Ix = cn(function(e, M, K) {
  23295. return e + (K ? "-" : "") + M.toLowerCase();
  23296. }), Rx = cn(function(e, M, K) {
  23297. return e + (K ? " " : "") + M.toLowerCase();
  23298. }), Nx = Pc("toLowerCase");
  23299. function Bx(e, M, K) {
  23300. e = xe(e), M = se(M);
  23301. var st = M ? rn(e) : 0;
  23302. if (!M || st >= M)
  23303. return e;
  23304. var ut = (M - st) / 2;
  23305. return Hs(Ls(ut), K) + e + Hs(Os(ut), K);
  23306. }
  23307. function jx(e, M, K) {
  23308. e = xe(e), M = se(M);
  23309. var st = M ? rn(e) : 0;
  23310. return M && st < M ? e + Hs(M - st, K) : e;
  23311. }
  23312. function Wx(e, M, K) {
  23313. e = xe(e), M = se(M);
  23314. var st = M ? rn(e) : 0;
  23315. return M && st < M ? Hs(M - st, K) + e : e;
  23316. }
  23317. function Yx(e, M, K) {
  23318. return K || M == null ? M = 0 : M && (M = +M), Vf(xe(e).replace(Jr, ""), M || 0);
  23319. }
  23320. function zx(e, M, K) {
  23321. return (K ? ei(e, M, K) : M === C) ? M = 1 : M = se(M), Sa(xe(e), M);
  23322. }
  23323. function Xx() {
  23324. var e = arguments, M = xe(e[0]);
  23325. return e.length < 3 ? M : M.replace(e[1], e[2]);
  23326. }
  23327. var Gx = cn(function(e, M, K) {
  23328. return e + (K ? "_" : "") + M.toLowerCase();
  23329. });
  23330. function Hx(e, M, K) {
  23331. return K && typeof K != "number" && ei(e, M, K) && (M = K = C), K = K === C ? E : K >>> 0, K ? (e = xe(e), e && (typeof M == "string" || M != null && !Ha(M)) && (M = pi(M), !M && en(e)) ? Mr(Oi(e), 0, K) : e.split(M, K)) : [];
  23332. }
  23333. var Fx = cn(function(e, M, K) {
  23334. return e + (K ? " " : "") + Va(M);
  23335. });
  23336. function Ux(e, M, K) {
  23337. return e = xe(e), K = K == null ? 0 : Br(se(K), 0, e.length), M = pi(M), e.slice(K, K + M.length) == M;
  23338. }
  23339. function Vx(e, M, K) {
  23340. var st = ft.templateSettings;
  23341. K && ei(e, M, K) && (M = C), e = xe(e), M = io({}, M, st, Rc);
  23342. var ut = io({}, M.imports, st.imports, Rc), mt = He(ut), xt = na(ut, mt), bt, Mt, It = 0, Rt = M.interpolate || gs, Bt = "__p += '", zt = oa(
  23343. (M.escape || gs).source + "|" + Rt.source + "|" + (Rt === us ? $t : gs).source + "|" + (M.evaluate || gs).source + "|$",
  23344. "g"
  23345. ), Ut = "//# sourceURL=" + (Se.call(M, "sourceURL") ? (M.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++ef + "]") + `
  23346. `;
  23347. e.replace(zt, function(te, he, ue, di, ii, fi) {
  23348. return ue || (ue = di), Bt += e.slice(It, fi).replace(_d, wf), he && (bt = !0, Bt += `' +
  23349. __e(` + he + `) +
  23350. '`), ii && (Mt = !0, Bt += `';
  23351. ` + ii + `;
  23352. __p += '`), ue && (Bt += `' +
  23353. ((__t = (` + ue + `)) == null ? '' : __t) +
  23354. '`), It = fi + te.length, te;
  23355. }), Bt += `';
  23356. `;
  23357. var Qt = Se.call(M, "variable") && M.variable;
  23358. if (!Qt)
  23359. Bt = `with (obj) {
  23360. ` + Bt + `
  23361. }
  23362. `;
  23363. else if (Dn.test(Qt))
  23364. throw new ee(U);
  23365. Bt = (Mt ? Bt.replace(Kt, "") : Bt).replace(Gt, "$1").replace(Wt, "$1;"), Bt = "function(" + (Qt || "obj") + `) {
  23366. ` + (Qt ? "" : `obj || (obj = {});
  23367. `) + "var __t, __p = ''" + (bt ? ", __e = _.escape" : "") + (Mt ? `, __j = Array.prototype.join;
  23368. function print() { __p += __j.call(arguments, '') }
  23369. ` : `;
  23370. `) + Bt + `return __p
  23371. }`;
  23372. var ae = Tp(function() {
  23373. return ve(mt, Ut + "return " + Bt).apply(C, xt);
  23374. });
  23375. if (ae.source = Bt, Ga(ae))
  23376. throw ae;
  23377. return ae;
  23378. }
  23379. function $x(e) {
  23380. return xe(e).toLowerCase();
  23381. }
  23382. function Zx(e) {
  23383. return xe(e).toUpperCase();
  23384. }
  23385. function Kx(e, M, K) {
  23386. if (e = xe(e), e && (K || M === C))
  23387. return Nh(e);
  23388. if (!e || !(M = pi(M)))
  23389. return e;
  23390. var st = Oi(e), ut = Oi(M), mt = Bh(st, ut), xt = jh(st, ut) + 1;
  23391. return Mr(st, mt, xt).join("");
  23392. }
  23393. function Jx(e, M, K) {
  23394. if (e = xe(e), e && (K || M === C))
  23395. return e.slice(0, Yh(e) + 1);
  23396. if (!e || !(M = pi(M)))
  23397. return e;
  23398. var st = Oi(e), ut = jh(st, Oi(M)) + 1;
  23399. return Mr(st, 0, ut).join("");
  23400. }
  23401. function qx(e, M, K) {
  23402. if (e = xe(e), e && (K || M === C))
  23403. return e.replace(Jr, "");
  23404. if (!e || !(M = pi(M)))
  23405. return e;
  23406. var st = Oi(e), ut = Bh(st, Oi(M));
  23407. return Mr(st, ut).join("");
  23408. }
  23409. function Qx(e, M) {
  23410. var K = u, st = i;
  23411. if (Ie(M)) {
  23412. var ut = "separator" in M ? M.separator : ut;
  23413. K = "length" in M ? se(M.length) : K, st = "omission" in M ? pi(M.omission) : st;
  23414. }
  23415. e = xe(e);
  23416. var mt = e.length;
  23417. if (en(e)) {
  23418. var xt = Oi(e);
  23419. mt = xt.length;
  23420. }
  23421. if (K >= mt)
  23422. return e;
  23423. var bt = K - rn(st);
  23424. if (bt < 1)
  23425. return st;
  23426. var Mt = xt ? Mr(xt, 0, bt).join("") : e.slice(0, bt);
  23427. if (ut === C)
  23428. return Mt + st;
  23429. if (xt && (bt += Mt.length - bt), Ha(ut)) {
  23430. if (e.slice(bt).search(ut)) {
  23431. var It, Rt = Mt;
  23432. for (ut.global || (ut = oa(ut.source, xe(de.exec(ut)) + "g")), ut.lastIndex = 0; It = ut.exec(Rt); )
  23433. var Bt = It.index;
  23434. Mt = Mt.slice(0, Bt === C ? bt : Bt);
  23435. }
  23436. } else if (e.indexOf(pi(ut), bt) != bt) {
  23437. var zt = Mt.lastIndexOf(ut);
  23438. zt > -1 && (Mt = Mt.slice(0, zt));
  23439. }
  23440. return Mt + st;
  23441. }
  23442. function t0(e) {
  23443. return e = xe(e), e && Yt.test(e) ? e.replace(Jt, Ef) : e;
  23444. }
  23445. var e0 = cn(function(e, M, K) {
  23446. return e + (K ? " " : "") + M.toUpperCase();
  23447. }), Va = Pc("toUpperCase");
  23448. function Ap(e, M, K) {
  23449. return e = xe(e), M = K ? C : M, M === C ? Cf(e) ? _f(e) : gf(e) : e.match(M) || [];
  23450. }
  23451. var Tp = le(function(e, M) {
  23452. try {
  23453. return hi(e, C, M);
  23454. } catch (K) {
  23455. return Ga(K) ? K : new ee(K);
  23456. }
  23457. }), i0 = tr(function(e, M) {
  23458. return vi(M, function(K) {
  23459. K = Fi(K), qi(e, K, za(e[K], e));
  23460. }), e;
  23461. });
  23462. function r0(e) {
  23463. var M = e == null ? 0 : e.length, K = qt();
  23464. return e = M ? Ee(e, function(st) {
  23465. if (typeof st[1] != "function")
  23466. throw new xi(_);
  23467. return [K(st[0]), st[1]];
  23468. }) : [], le(function(st) {
  23469. for (var ut = -1; ++ut < M; ) {
  23470. var mt = e[ut];
  23471. if (hi(mt[0], this, st))
  23472. return hi(mt[1], this, st);
  23473. }
  23474. });
  23475. }
  23476. function n0(e) {
  23477. return Eg(Si(e, B));
  23478. }
  23479. function $a(e) {
  23480. return function() {
  23481. return e;
  23482. };
  23483. }
  23484. function s0(e, M) {
  23485. return e == null || e !== e ? M : e;
  23486. }
  23487. var o0 = Oc(), a0 = Oc(!0);
  23488. function oi(e) {
  23489. return e;
  23490. }
  23491. function Za(e) {
  23492. return oc(typeof e == "function" ? e : Si(e, B));
  23493. }
  23494. function l0(e) {
  23495. return lc(Si(e, B));
  23496. }
  23497. function h0(e, M) {
  23498. return hc(e, Si(M, B));
  23499. }
  23500. var c0 = le(function(e, M) {
  23501. return function(K) {
  23502. return Xn(K, e, M);
  23503. };
  23504. }), p0 = le(function(e, M) {
  23505. return function(K) {
  23506. return Xn(e, K, M);
  23507. };
  23508. });
  23509. function Ka(e, M, K) {
  23510. var st = He(M), ut = Bs(M, st);
  23511. K == null && !(Ie(M) && (ut.length || !st.length)) && (K = M, M = e, e = this, ut = Bs(M, He(M)));
  23512. var mt = !(Ie(K) && "chain" in K) || !!K.chain, xt = ir(e);
  23513. return vi(ut, function(bt) {
  23514. var Mt = M[bt];
  23515. e[bt] = Mt, xt && (e.prototype[bt] = function() {
  23516. var It = this.__chain__;
  23517. if (mt || It) {
  23518. var Rt = e(this.__wrapped__), Bt = Rt.__actions__ = ri(this.__actions__);
  23519. return Bt.push({ func: Mt, args: arguments, thisArg: e }), Rt.__chain__ = It, Rt;
  23520. }
  23521. return Mt.apply(e, yr([this.value()], arguments));
  23522. });
  23523. }), e;
  23524. }
  23525. function u0() {
  23526. return Ue._ === this && (Ue._ = jf), this;
  23527. }
  23528. function Ja() {
  23529. }
  23530. function d0(e) {
  23531. return e = se(e), le(function(M) {
  23532. return cc(M, e);
  23533. });
  23534. }
  23535. var f0 = Pa(Ee), g0 = Pa(Lh), m0 = Pa(Qo);
  23536. function Pp(e) {
  23537. return Ra(e) ? ta(Fi(e)) : Ug(e);
  23538. }
  23539. function y0(e) {
  23540. return function(M) {
  23541. return e == null ? C : jr(e, M);
  23542. };
  23543. }
  23544. var v0 = _c(), x0 = _c(!0);
  23545. function qa() {
  23546. return [];
  23547. }
  23548. function Qa() {
  23549. return !1;
  23550. }
  23551. function b0() {
  23552. return {};
  23553. }
  23554. function S0() {
  23555. return "";
  23556. }
  23557. function w0() {
  23558. return !0;
  23559. }
  23560. function M0(e, M) {
  23561. if (e = se(e), e < 1 || e > D)
  23562. return [];
  23563. var K = E, st = Ze(e, E);
  23564. M = qt(M), e -= E;
  23565. for (var ut = ra(st, M); ++K < e; )
  23566. M(K);
  23567. return ut;
  23568. }
  23569. function C0(e) {
  23570. return ie(e) ? Ee(e, Fi) : ui(e) ? [e] : ri($c(xe(e)));
  23571. }
  23572. function k0(e) {
  23573. var M = ++Nf;
  23574. return xe(e) + M;
  23575. }
  23576. var A0 = Gs(function(e, M) {
  23577. return e + M;
  23578. }, 0), T0 = Ea("ceil"), P0 = Gs(function(e, M) {
  23579. return e / M;
  23580. }, 1), E0 = Ea("floor");
  23581. function O0(e) {
  23582. return e && e.length ? Ns(e, oi, fa) : C;
  23583. }
  23584. function L0(e, M) {
  23585. return e && e.length ? Ns(e, qt(M, 2), fa) : C;
  23586. }
  23587. function _0(e) {
  23588. return Ih(e, oi);
  23589. }
  23590. function D0(e, M) {
  23591. return Ih(e, qt(M, 2));
  23592. }
  23593. function I0(e) {
  23594. return e && e.length ? Ns(e, oi, va) : C;
  23595. }
  23596. function R0(e, M) {
  23597. return e && e.length ? Ns(e, qt(M, 2), va) : C;
  23598. }
  23599. var N0 = Gs(function(e, M) {
  23600. return e * M;
  23601. }, 1), B0 = Ea("round"), j0 = Gs(function(e, M) {
  23602. return e - M;
  23603. }, 0);
  23604. function W0(e) {
  23605. return e && e.length ? ia(e, oi) : 0;
  23606. }
  23607. function Y0(e, M) {
  23608. return e && e.length ? ia(e, qt(M, 2)) : 0;
  23609. }
  23610. return ft.after = lv, ft.ary = sp, ft.assign = Zv, ft.assignIn = xp, ft.assignInWith = io, ft.assignWith = Kv, ft.at = Jv, ft.before = op, ft.bind = za, ft.bindAll = i0, ft.bindKey = ap, ft.castArray = bv, ft.chain = ip, ft.chunk = Em, ft.compact = Om, ft.concat = Lm, ft.cond = r0, ft.conforms = n0, ft.constant = $a, ft.countBy = Wy, ft.create = qv, ft.curry = lp, ft.curryRight = hp, ft.debounce = cp, ft.defaults = Qv, ft.defaultsDeep = tx, ft.defer = hv, ft.delay = cv, ft.difference = _m, ft.differenceBy = Dm, ft.differenceWith = Im, ft.drop = Rm, ft.dropRight = Nm, ft.dropRightWhile = Bm, ft.dropWhile = jm, ft.fill = Wm, ft.filter = zy, ft.flatMap = Hy, ft.flatMapDeep = Fy, ft.flatMapDepth = Uy, ft.flatten = qc, ft.flattenDeep = Ym, ft.flattenDepth = zm, ft.flip = pv, ft.flow = o0, ft.flowRight = a0, ft.fromPairs = Xm, ft.functions = ax, ft.functionsIn = lx, ft.groupBy = Vy, ft.initial = Hm, ft.intersection = Fm, ft.intersectionBy = Um, ft.intersectionWith = Vm, ft.invert = cx, ft.invertBy = px, ft.invokeMap = Zy, ft.iteratee = Za, ft.keyBy = Ky, ft.keys = He, ft.keysIn = si, ft.map = Ks, ft.mapKeys = dx, ft.mapValues = fx, ft.matches = l0, ft.matchesProperty = h0, ft.memoize = qs, ft.merge = gx, ft.mergeWith = bp, ft.method = c0, ft.methodOf = p0, ft.mixin = Ka, ft.negate = Qs, ft.nthArg = d0, ft.omit = mx, ft.omitBy = yx, ft.once = uv, ft.orderBy = Jy, ft.over = f0, ft.overArgs = dv, ft.overEvery = g0, ft.overSome = m0, ft.partial = Xa, ft.partialRight = pp, ft.partition = qy, ft.pick = vx, ft.pickBy = Sp, ft.property = Pp, ft.propertyOf = y0, ft.pull = Jm, ft.pullAll = tp, ft.pullAllBy = qm, ft.pullAllWith = Qm, ft.pullAt = ty, ft.range = v0, ft.rangeRight = x0, ft.rearg = fv, ft.reject = ev, ft.remove = ey, ft.rest = gv, ft.reverse = Wa, ft.sampleSize = rv, ft.set = bx, ft.setWith = Sx, ft.shuffle = nv, ft.slice = iy, ft.sortBy = av, ft.sortedUniq = hy, ft.sortedUniqBy = cy, ft.split = Hx, ft.spread = mv, ft.tail = py, ft.take = uy, ft.takeRight = dy, ft.takeRightWhile = fy, ft.takeWhile = gy, ft.tap = Oy, ft.throttle = yv, ft.thru = Zs, ft.toArray = mp, ft.toPairs = wp, ft.toPairsIn = Mp, ft.toPath = C0, ft.toPlainObject = vp, ft.transform = wx, ft.unary = vv, ft.union = my, ft.unionBy = yy, ft.unionWith = vy, ft.uniq = xy, ft.uniqBy = by, ft.uniqWith = Sy, ft.unset = Mx, ft.unzip = Ya, ft.unzipWith = ep, ft.update = Cx, ft.updateWith = kx, ft.values = dn, ft.valuesIn = Ax, ft.without = wy, ft.words = Ap, ft.wrap = xv, ft.xor = My, ft.xorBy = Cy, ft.xorWith = ky, ft.zip = Ay, ft.zipObject = Ty, ft.zipObjectDeep = Py, ft.zipWith = Ey, ft.entries = wp, ft.entriesIn = Mp, ft.extend = xp, ft.extendWith = io, Ka(ft, ft), ft.add = A0, ft.attempt = Tp, ft.camelCase = Ox, ft.capitalize = Cp, ft.ceil = T0, ft.clamp = Tx, ft.clone = Sv, ft.cloneDeep = Mv, ft.cloneDeepWith = Cv, ft.cloneWith = wv, ft.conformsTo = kv, ft.deburr = kp, ft.defaultTo = s0, ft.divide = P0, ft.endsWith = Lx, ft.eq = _i, ft.escape = _x, ft.escapeRegExp = Dx, ft.every = Yy, ft.find = Xy, ft.findIndex = Kc, ft.findKey = ex, ft.findLast = Gy, ft.findLastIndex = Jc, ft.findLastKey = ix, ft.floor = E0, ft.forEach = rp, ft.forEachRight = np, ft.forIn = rx, ft.forInRight = nx, ft.forOwn = sx, ft.forOwnRight = ox, ft.get = Fa, ft.gt = Av, ft.gte = Tv, ft.has = hx, ft.hasIn = Ua, ft.head = Qc, ft.identity = oi, ft.includes = $y, ft.indexOf = Gm, ft.inRange = Px, ft.invoke = ux, ft.isArguments = zr, ft.isArray = ie, ft.isArrayBuffer = Pv, ft.isArrayLike = ni, ft.isArrayLikeObject = Be, ft.isBoolean = Ev, ft.isBuffer = Cr, ft.isDate = Ov, ft.isElement = Lv, ft.isEmpty = _v, ft.isEqual = Dv, ft.isEqualWith = Iv, ft.isError = Ga, ft.isFinite = Rv, ft.isFunction = ir, ft.isInteger = up, ft.isLength = to, ft.isMap = dp, ft.isMatch = Nv, ft.isMatchWith = Bv, ft.isNaN = jv, ft.isNative = Wv, ft.isNil = zv, ft.isNull = Yv, ft.isNumber = fp, ft.isObject = Ie, ft.isObjectLike = Ne, ft.isPlainObject = $n, ft.isRegExp = Ha, ft.isSafeInteger = Xv, ft.isSet = gp, ft.isString = eo, ft.isSymbol = ui, ft.isTypedArray = un, ft.isUndefined = Gv, ft.isWeakMap = Hv, ft.isWeakSet = Fv, ft.join = $m, ft.kebabCase = Ix, ft.last = Mi, ft.lastIndexOf = Zm, ft.lowerCase = Rx, ft.lowerFirst = Nx, ft.lt = Uv, ft.lte = Vv, ft.max = O0, ft.maxBy = L0, ft.mean = _0, ft.meanBy = D0, ft.min = I0, ft.minBy = R0, ft.stubArray = qa, ft.stubFalse = Qa, ft.stubObject = b0, ft.stubString = S0, ft.stubTrue = w0, ft.multiply = N0, ft.nth = Km, ft.noConflict = u0, ft.noop = Ja, ft.now = Js, ft.pad = Bx, ft.padEnd = jx, ft.padStart = Wx, ft.parseInt = Yx, ft.random = Ex, ft.reduce = Qy, ft.reduceRight = tv, ft.repeat = zx, ft.replace = Xx, ft.result = xx, ft.round = B0, ft.runInContext = wt, ft.sample = iv, ft.size = sv, ft.snakeCase = Gx, ft.some = ov, ft.sortedIndex = ry, ft.sortedIndexBy = ny, ft.sortedIndexOf = sy, ft.sortedLastIndex = oy, ft.sortedLastIndexBy = ay, ft.sortedLastIndexOf = ly, ft.startCase = Fx, ft.startsWith = Ux, ft.subtract = j0, ft.sum = W0, ft.sumBy = Y0, ft.template = Vx, ft.times = M0, ft.toFinite = rr, ft.toInteger = se, ft.toLength = yp, ft.toLower = $x, ft.toNumber = Ci, ft.toSafeInteger = $v, ft.toString = xe, ft.toUpper = Zx, ft.trim = Kx, ft.trimEnd = Jx, ft.trimStart = qx, ft.truncate = Qx, ft.unescape = t0, ft.uniqueId = k0, ft.upperCase = e0, ft.upperFirst = Va, ft.each = rp, ft.eachRight = np, ft.first = Qc, Ka(ft, function() {
  23611. var e = {};
  23612. return Gi(ft, function(M, K) {
  23613. Se.call(ft.prototype, K) || (e[K] = M);
  23614. }), e;
  23615. }(), { chain: !1 }), ft.VERSION = o, vi(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
  23616. ft[e].placeholder = ft;
  23617. }), vi(["drop", "take"], function(e, M) {
  23618. ce.prototype[e] = function(K) {
  23619. K = K === C ? 1 : Xe(se(K), 0);
  23620. var st = this.__filtered__ && !M ? new ce(this) : this.clone();
  23621. return st.__filtered__ ? st.__takeCount__ = Ze(K, st.__takeCount__) : st.__views__.push({
  23622. size: Ze(K, E),
  23623. type: e + (st.__dir__ < 0 ? "Right" : "")
  23624. }), st;
  23625. }, ce.prototype[e + "Right"] = function(K) {
  23626. return this.reverse()[e](K).reverse();
  23627. };
  23628. }), vi(["filter", "map", "takeWhile"], function(e, M) {
  23629. var K = M + 1, st = K == t || K == n;
  23630. ce.prototype[e] = function(ut) {
  23631. var mt = this.clone();
  23632. return mt.__iteratees__.push({
  23633. iteratee: qt(ut, 3),
  23634. type: K
  23635. }), mt.__filtered__ = mt.__filtered__ || st, mt;
  23636. };
  23637. }), vi(["head", "last"], function(e, M) {
  23638. var K = "take" + (M ? "Right" : "");
  23639. ce.prototype[e] = function() {
  23640. return this[K](1).value()[0];
  23641. };
  23642. }), vi(["initial", "tail"], function(e, M) {
  23643. var K = "drop" + (M ? "" : "Right");
  23644. ce.prototype[e] = function() {
  23645. return this.__filtered__ ? new ce(this) : this[K](1);
  23646. };
  23647. }), ce.prototype.compact = function() {
  23648. return this.filter(oi);
  23649. }, ce.prototype.find = function(e) {
  23650. return this.filter(e).head();
  23651. }, ce.prototype.findLast = function(e) {
  23652. return this.reverse().find(e);
  23653. }, ce.prototype.invokeMap = le(function(e, M) {
  23654. return typeof e == "function" ? new ce(this) : this.map(function(K) {
  23655. return Xn(K, e, M);
  23656. });
  23657. }), ce.prototype.reject = function(e) {
  23658. return this.filter(Qs(qt(e)));
  23659. }, ce.prototype.slice = function(e, M) {
  23660. e = se(e);
  23661. var K = this;
  23662. return K.__filtered__ && (e > 0 || M < 0) ? new ce(K) : (e < 0 ? K = K.takeRight(-e) : e && (K = K.drop(e)), M !== C && (M = se(M), K = M < 0 ? K.dropRight(-M) : K.take(M - e)), K);
  23663. }, ce.prototype.takeRightWhile = function(e) {
  23664. return this.reverse().takeWhile(e).reverse();
  23665. }, ce.prototype.toArray = function() {
  23666. return this.take(E);
  23667. }, Gi(ce.prototype, function(e, M) {
  23668. var K = /^(?:filter|find|map|reject)|While$/.test(M), st = /^(?:head|last)$/.test(M), ut = ft[st ? "take" + (M == "last" ? "Right" : "") : M], mt = st || /^find/.test(M);
  23669. ut && (ft.prototype[M] = function() {
  23670. var xt = this.__wrapped__, bt = st ? [1] : arguments, Mt = xt instanceof ce, It = bt[0], Rt = Mt || ie(xt), Bt = function(he) {
  23671. var ue = ut.apply(ft, yr([he], bt));
  23672. return st && zt ? ue[0] : ue;
  23673. };
  23674. Rt && K && typeof It == "function" && It.length != 1 && (Mt = Rt = !1);
  23675. var zt = this.__chain__, Ut = !!this.__actions__.length, Qt = mt && !zt, ae = Mt && !Ut;
  23676. if (!mt && Rt) {
  23677. xt = ae ? xt : new ce(this);
  23678. var te = e.apply(xt, bt);
  23679. return te.__actions__.push({ func: Zs, args: [Bt], thisArg: C }), new bi(te, zt);
  23680. }
  23681. return Qt && ae ? e.apply(this, bt) : (te = this.thru(Bt), Qt ? st ? te.value()[0] : te.value() : te);
  23682. });
  23683. }), vi(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
  23684. var M = Ss[e], K = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", st = /^(?:pop|shift)$/.test(e);
  23685. ft.prototype[e] = function() {
  23686. var ut = arguments;
  23687. if (st && !this.__chain__) {
  23688. var mt = this.value();
  23689. return M.apply(ie(mt) ? mt : [], ut);
  23690. }
  23691. return this[K](function(xt) {
  23692. return M.apply(ie(xt) ? xt : [], ut);
  23693. });
  23694. };
  23695. }), Gi(ce.prototype, function(e, M) {
  23696. var K = ft[M];
  23697. if (K) {
  23698. var st = K.name + "";
  23699. Se.call(an, st) || (an[st] = []), an[st].push({ name: M, func: K });
  23700. }
  23701. }), an[Xs(C, T).name] = [{
  23702. name: "wrapper",
  23703. func: C
  23704. }], ce.prototype.clone = tg, ce.prototype.reverse = eg, ce.prototype.value = ig, ft.prototype.at = Ly, ft.prototype.chain = _y, ft.prototype.commit = Dy, ft.prototype.next = Iy, ft.prototype.plant = Ny, ft.prototype.reverse = By, ft.prototype.toJSON = ft.prototype.valueOf = ft.prototype.value = jy, ft.prototype.first = ft.prototype.head, Rn && (ft.prototype[Rn] = Ry), ft;
  23705. }, nn = Df();
  23706. Dr ? ((Dr.exports = nn)._ = nn, Zo._ = nn) : Ue._ = nn;
  23707. }).call(Gr);
  23708. })(So, So.exports);
  23709. var eM = So.exports;
  23710. const ss = /* @__PURE__ */ Mn(eM);
  23711. t1(Vr);
  23712. J0(Vr);
  23713. Z0(Vr);
  23714. Q0(Vr);
  23715. let ho = null, _e = Le(null), Fe = Le("zh"), ol = Le(""), re = Le(null);
  23716. const kt = z0({
  23717. //极值数据
  23718. leftIndex: -1,
  23719. //左侧上下限对应下标
  23720. rightIndex: -1,
  23721. //右侧上下限对应下标
  23722. rightTwoIndex: -1,
  23723. //右2上下限对应下标
  23724. hasLeftAxis: !1,
  23725. hasRightAxis: !1,
  23726. hasRightTwoAxis: !1,
  23727. hasXAxis: !1,
  23728. leftMin: 0,
  23729. leftMax: 0,
  23730. rightMin: 0,
  23731. rightMax: 0,
  23732. rightTwoMin: 0,
  23733. rightTwoMax: 0,
  23734. xMin: 0,
  23735. xMax: 0
  23736. });
  23737. let li = !1, Ju = Le(!1);
  23738. const Zl = Le(document.body.clientWidth < 1200 ? "phone" : "pc");
  23739. function iM() {
  23740. return {
  23741. options: re,
  23742. axisLimitState: kt,
  23743. chartRender: rM,
  23744. setLimitData: CM,
  23745. isUseSelfLimit: Ju
  23746. };
  23747. }
  23748. function rM({ data: r, renderId: d, lang: C = "zh", changeLangIsCheck: o, showChartTitle: y = !0, shouldUseSelfLimit: N = !1 }) {
  23749. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1, kt.hasLeftAxis = !1, kt.hasRightAxis = !1, kt.hasRightTwoAxis = !1, kt.hasXAxis = !1, Ju.value || (kt.leftMin = 0, kt.leftMax = 0, kt.rightMin = 0, kt.rightMax = 0, kt.rightTwoMin = 0, kt.rightTwoMax = 0, kt.xMin = 0, kt.xMax = 0);
  23750. let _ = {};
  23751. Fe.value = C, ol.value = d, _e.value = r, li = N, [1, 11, 12].includes(r.ChartInfo.Source) ? _ = {
  23752. 1: Bp,
  23753. 2: pM,
  23754. 3: ll,
  23755. 4: ll,
  23756. 5: uM,
  23757. 6: ll,
  23758. 7: gM,
  23759. 10: bM,
  23760. 11: wM,
  23761. 14: hM
  23762. }[r.ChartInfo.ChartType](r) : [2, 5].includes(r.ChartInfo.Source) ? _ = vM(r) : [3].includes(r.ChartInfo.Source) ? _ = xM(r) : [4, 6, 7, 8].includes(r.ChartInfo.Source) ? _ = Bp(r) : [9].includes(r.ChartInfo.Source) ? _ = cM(r) : r.ChartInfo.Source === 10 && (kt.hasLeftAxis = !0, kt.leftMin = r.ChartInfo.LeftMin ? Number(r.ChartInfo.LeftMin) : Number(r.DataResp.YMinValue), kt.leftMax = r.ChartInfo.LeftMax ? Number(r.ChartInfo.LeftMax) : Number(r.DataResp.YMaxValue), kt.hasXAxis = !0, kt.xMin = r.ChartInfo.XMin ? Number(r.ChartInfo.XMin) : Number(r.DataResp.XMinValue), kt.xMax = r.ChartInfo.XMax ? Number(r.ChartInfo.XMax) : Number(r.DataResp.XMaxValue), _ = SM(r));
  23763. let U = nM();
  23764. return re.value = { ...go, ...U, ..._ }, lM(y), aM(o), Vr.setOptions({ global: { useUTC: r.ChartInfo.ChartType == 2 } }), (_.series ? _.series.some((V) => V.chartType === "linear") : !1) ? ho = Vr.chart(ol.value, re.value) : ho = Vr.stockChart(ol.value, re.value), ho;
  23765. }
  23766. function nM() {
  23767. if (!_e.value.ChartInfo.ChartThemeStyle)
  23768. return {};
  23769. let r = JSON.parse(_e.value.ChartInfo.ChartThemeStyle);
  23770. return {
  23771. legend: {
  23772. ...go.legend,
  23773. ...r.legendOptions
  23774. },
  23775. chart: {
  23776. ...go.chart,
  23777. ...r.drawOption
  23778. },
  23779. colors: r.colorsOptions
  23780. };
  23781. }
  23782. function Ai(r, d) {
  23783. const { MarkersLines: C, ChartType: o } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23784. return C ? JSON.parse(C).filter((G) => G.isShow && G.axis === r).map((G) => {
  23785. let V = r === 3 && d === "datetime", F;
  23786. if (V) {
  23787. let B = o === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23788. F = o === 2 ? (/* @__PURE__ */ new Date(`${B}-${G.value}`)).getTime() : new Date(G.value).getTime();
  23789. } else
  23790. F = Number(G.value);
  23791. return {
  23792. value: F,
  23793. dashStyle: G.dashStyle,
  23794. width: Number(G.lineWidth),
  23795. color: G.color,
  23796. label: {
  23797. text: G.text || "",
  23798. verticalAlign: G.textPosition,
  23799. style: {
  23800. color: G.textColor,
  23801. fontSize: G.textFontSize
  23802. }
  23803. }
  23804. };
  23805. }) : [];
  23806. }
  23807. function Ti(r, d) {
  23808. const { MarkersAreas: C, ChartType: o } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23809. return C ? JSON.parse(C).filter((G) => G.isShow && G.axis === r).map((G) => {
  23810. let V = r === 3 && d === "datetime", F, B;
  23811. if (V) {
  23812. let w = o === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23813. F = o === 2 ? (/* @__PURE__ */ new Date(`${w}-${G.fromValue}`)).getTime() : new Date(G.fromValue).getTime(), B = o === 2 ? (/* @__PURE__ */ new Date(`${w}-${G.toValue}`)).getTime() : new Date(G.toValue).getTime();
  23814. } else
  23815. F = Number(G.fromValue), B = Number(G.toValue);
  23816. let j = {
  23817. top: 12,
  23818. middle: 0,
  23819. bottom: -10
  23820. };
  23821. return {
  23822. from: F,
  23823. to: B,
  23824. color: G.color,
  23825. label: {
  23826. text: G.text || "",
  23827. verticalAlign: G.textPosition,
  23828. y: j[G.textPosition],
  23829. style: {
  23830. color: G.textColor,
  23831. fontSize: G.textFontSize
  23832. }
  23833. }
  23834. };
  23835. }) : [];
  23836. }
  23837. function qu({ LatestDate: r, PredictChartColor: d }) {
  23838. return {
  23839. zoneAxis: "x",
  23840. zones: [{
  23841. value: new Date(r).getTime() + 1
  23842. }, {
  23843. dashStyle: "ShortDot",
  23844. color: d
  23845. }]
  23846. };
  23847. }
  23848. function sM(r) {
  23849. return r ? {
  23850. zoneAxis: "x",
  23851. zones: [{
  23852. value: new Date(r).getTime() + 1
  23853. }, {
  23854. dashStyle: "ShortDot"
  23855. }]
  23856. } : {};
  23857. }
  23858. function Qu(r, d, C) {
  23859. let o = Xt(d).diff(Xt(r), "years", !0);
  23860. return !!([5, 6].includes(C) && o <= 1);
  23861. }
  23862. function al(r, d) {
  23863. const { IsAxis: C, IsOrder: o, EdbInfoType: y, LeadValue: N, LeadUnit: _ } = r, U = d == "zh" ? {
  23864. 0: "右轴",
  23865. 2: "右2轴"
  23866. } : {
  23867. 0: "RHS",
  23868. 2: "2-RHS"
  23869. }, G = d == "zh" ? {
  23870. 1: "逆序"
  23871. } : {
  23872. 1: "REV"
  23873. }, V = d == "zh" ? {
  23874. 0: "领先"
  23875. } : {
  23876. 0: "Lead"
  23877. }, F = d === "zh" ? _ : F0[_];
  23878. let B = U[C] || "", j = G[Number(o)] ? `${B ? "," : ""}${G[Number(o)]}` : "", w = V[y] ? `${B || j ? "," : ""}${V[y]}${N}${F}` : "";
  23879. return B || j || w ? `(${B}${j}${w})` : "";
  23880. }
  23881. function wo(r, d, C = "zh") {
  23882. let o = "";
  23883. const y = r.EdbNameEn ? `${r.EdbNameEn}${al(r, "en")}` : "", N = d.length > 1 ? `${r.EdbAliasName || r.EdbName}(${r.SourceName})${al(r, "zh")}` : `${r.EdbAliasName || r.EdbName}${al(r, "zh")}`;
  23884. if (o = C == "zh" ? N : y || N, o.length > 20) {
  23885. let _ = [];
  23886. for (let U = 0; U < o.length / 20; U++)
  23887. _.push(o.slice(U * 20, U * 20 + 20));
  23888. o = _.join("<br>");
  23889. }
  23890. return o;
  23891. }
  23892. function Kl(r) {
  23893. let d = r.filter((y) => y.IsAxis === 1), C = r.filter((y) => !y.IsAxis), o = r.filter((y) => y.IsAxis === 2);
  23894. return [d, C, o].flat(1 / 0);
  23895. }
  23896. function oM() {
  23897. let r = !0;
  23898. return _e.value.ChartInfo.ChartNameEn || (r = !1), _e.value.EdbInfoList.forEach((d) => {
  23899. d.EdbNameEn || (r = !1), _e.value.ChartInfo.ChartType !== 10 && d.Unit && !d.UnitEn && (r = !1);
  23900. }), r;
  23901. }
  23902. function aM(r) {
  23903. if (r && !oM())
  23904. return;
  23905. const { ChartType: d, Source: C } = _e.value.ChartInfo;
  23906. C == 1 && (d == 5 ? (re.value.yAxis.title.text = Fe.value == "zh" ? re.value.yAxis.title.textZh : re.value.yAxis.title.textEn, re.value.xAxis.title.text = Fe.value == "zh" ? re.value.xAxis.title.textZh : re.value.xAxis.title.textEn, re.value.series.forEach((o) => {
  23907. o.name = Fe.value == "zh" ? o.nameZh : o.nameEn;
  23908. }), re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterZh : re.value.tooltip.formatterEn) : (re.value.yAxis.forEach((o) => {
  23909. o.title.text = Fe.value == "zh" ? o.title.textZh : o.title.textEn;
  23910. }), d != 2 && re.value.series.forEach((o) => {
  23911. o.name = Fe.value == "zh" ? o.nameZh : o.nameEn != "无英文名称" ? o.nameEn : `<span style="color:#999">${o.nameEn}</span>`;
  23912. }), d === 10 && (re.value.xAxis.title.text = Fe.value == "zh" ? re.value.xAxis.title.textZh : re.value.xAxis.title.textEn, re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterCh : re.value.tooltip.formatterEn, re.value.series.forEach((o) => {
  23913. o.linkedTo || o.data.forEach((y) => {
  23914. y.dataLabels.format = Fe.value == "zh" ? y.dataLabels.formatZh : y.dataLabels.formatEn || "无英文标签", y.dataLabels.color = Fe.value === "en" && !y.dataLabels.formatEn ? "#999" : "#333";
  23915. });
  23916. })), [7, 11].includes(d) && (re.value.xAxis.categories = _e.value.XEdbIdValue.map((o) => Fe.value == "zh" ? _e.value.EdbInfoList.find((y) => y.EdbInfoId === o).EdbAliasName || _e.value.EdbInfoList.find((y) => y.EdbInfoId === o).EdbName : _e.value.EdbInfoList.find((y) => y.EdbInfoId === o).EdbNameEn)))), [2, 3, 4].includes(C) && (re.value.yAxis.forEach((o) => {
  23917. o.title.text = Fe.value == "zh" ? o.title.textZh : o.title.textEn || o.title.textZh;
  23918. }), re.value.series.forEach((o) => {
  23919. o.name = Fe.value == "en" && o.nameEn || o.nameZh;
  23920. }), re.value.tooltip.formatter = Fe.value == "en" ? re.value.tooltip.formatterEn : re.value.tooltip.formatterZh, C == 2 && (re.value.xAxis.categories = Fr.value.filter((o) => o.IsHide === 0).map((o) => Fe.value == "en" ? o.NameEn : o.Name)), [3].includes(C) && (re.value.xAxis.title.text = Fe.value == "en" && re.value.xAxis.title.textEn || re.value.xAxis.title.textZh));
  23921. }
  23922. function lM(r) {
  23923. if (r) {
  23924. const d = _e.value.ChartInfo;
  23925. re.value.title.textZh = d.ChartName, re.value.title.textEn = d.ChartNameEn, re.value.title.text = Fe.value == "zh" ? re.value.title.textZh : re.value.title.textEn || re.value.title.textZh;
  23926. } else
  23927. re.value.title.text = "";
  23928. }
  23929. function hM(r) {
  23930. const d = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { XDataList: C, UnitList: o, SeriesList: y, IsHeap: N } = r.DataResp;
  23931. kt.leftIndex = y.findIndex((B) => B.IsAxis === 1), kt.rightIndex = y.findIndex((B) => !B.IsAxis), kt.rightTwoIndex = y.findIndex((B) => B.IsAxis === 2), kt.leftIndex != -1 && (kt.hasLeftAxis = !0), kt.rightIndex != -1 && (kt.hasRightAxis = !0), kt.rightTwoIndex != -1 && (kt.hasRightTwoAxis = !0);
  23932. const _ = {
  23933. categories: C.map((B) => this.currentLang == "en" ? B.NameEn : B.Name),
  23934. tickWidth: 1,
  23935. labels: {
  23936. style: {
  23937. ...d && d.xAxisOptions.style
  23938. }
  23939. },
  23940. plotBands: Ti(3),
  23941. plotLines: Ai(3)
  23942. };
  23943. let U = [], G = [];
  23944. const V = y.some((B) => B.IsAxis === 2) ? Kl(y) : ss.cloneDeep(y);
  23945. return V.forEach((B, j) => {
  23946. const w = V.findIndex(
  23947. (v) => v.IsAxis === B.IsAxis
  23948. ), x = {
  23949. 1: ["LeftName", "LeftNameEn"],
  23950. 0: ["RightName", "RightNameEn"],
  23951. 2: ["RightTwoName", "RightTwoNameEn"]
  23952. };
  23953. let f = 0, l = 0;
  23954. const T = {
  23955. 0: ["rightMin", "rightMax"],
  23956. 1: ["leftMin", "leftMax"],
  23957. 2: ["rightTwoMin", "rightTwoMax"]
  23958. };
  23959. T[B.IsAxis] && (f = kt[`${T[B.IsAxis][0]}`] || 0, l = kt[`${T[B.IsAxis][1]}`] || 0);
  23960. let O = {
  23961. ...dr,
  23962. title: {
  23963. text: o[x[B.IsAxis][0]],
  23964. textCh: o[x[B.IsAxis][0]],
  23965. // 中文
  23966. // 中文不存在,无论英文有无都显示空
  23967. textEn: o[x[B.IsAxis][0]] ? o[x[B.IsAxis][1]] : "",
  23968. // 英文
  23969. style: {
  23970. ...d && d.yAxisOptions.style
  23971. },
  23972. align: "high",
  23973. rotation: 0,
  23974. y: -12,
  23975. // x: (item.IsAxis===0 && this.rightTwoIndex>-1) ? -chartData[this.rightTwoIndex].Unit.length*12 : 0,
  23976. textAlign: B.IsAxis === 1 ? "left" : "right",
  23977. reserveSpace: !1
  23978. },
  23979. labels: {
  23980. formatter: function(v) {
  23981. return v.value;
  23982. },
  23983. align: "center",
  23984. x: [0, 2].includes(B.IsAxis) ? 5 : -5,
  23985. style: {
  23986. ...d && d.yAxisOptions.style
  23987. }
  23988. },
  23989. opposite: [0, 2].includes(B.IsAxis),
  23990. min: Number(f),
  23991. max: Number(l),
  23992. tickWidth: 1,
  23993. visible: w === j,
  23994. plotBands: Ti(B.IsAxis),
  23995. plotLines: Ai(B.IsAxis)
  23996. }, R = j;
  23997. N == 1 && (R = 0);
  23998. let k = B.DataList || [];
  23999. k.forEach((v, h) => {
  24000. B.NoDataEdbIndex.includes(h) && (k[h] = null);
  24001. });
  24002. const b = d ? j % d.lineOptionList.length : j;
  24003. let S = {
  24004. data: k,
  24005. type: B.ChartStyle || "",
  24006. dashStyle: d && d.lineOptionList[b].dashStyle || "Solid",
  24007. chartType: "linear",
  24008. yAxis: R,
  24009. name: B.SeriesName,
  24010. nameZh: B.SeriesName,
  24011. nameEn: B.SeriesNameEn,
  24012. unitName: o[x[B.IsAxis][0]],
  24013. unitNameCh: o[x[B.IsAxis][0]],
  24014. unitNameEn: o[x[B.IsAxis][0]] ? o[x[B.IsAxis][1]] : "",
  24015. color: B.ChartColor,
  24016. lineWidth: Number(B.ChartWidth) || d && d.lineOptionList[b].lineWidth,
  24017. borderWidth: 1,
  24018. borderColor: B.ChartColor,
  24019. marker: {
  24020. //展示数据点
  24021. enabled: !!(B.ChartStyle != "column" && B.IsPoint),
  24022. radius: d && d.lineOptionList[b].radius || 5
  24023. },
  24024. dataLabels: {
  24025. //展示数值
  24026. enabled: !!B.IsNumber,
  24027. align: B.ChartStyle == "column" ? "center" : void 0,
  24028. y: B.ChartStyle == "column" ? -20 : 0,
  24029. inside: B.ChartStyle == "column" ? !1 : void 0,
  24030. crop: B.ChartStyle != "column"
  24031. },
  24032. stacking: N == 1 ? "normal" : void 0,
  24033. zIndex: ["line", "spline"].includes(B.ChartStyle) ? 1 : 0
  24034. //防止组合图曲线被遮住
  24035. };
  24036. U.push(O), G.push(S);
  24037. }), {
  24038. title: {
  24039. text: ""
  24040. },
  24041. tooltip: {
  24042. formatter: function() {
  24043. let B = `<b>${this.points[0].x}</b>`;
  24044. return this.points.forEach((j) => {
  24045. const w = G.find((x) => x.name === j.series.name);
  24046. B = B + `<br><span style="color:${j.color}">●</span>${w.name}:${j.y} ${w.unitNameCh}`;
  24047. }), B;
  24048. },
  24049. formatterCh: function() {
  24050. let B = `<b>${this.points[0].x}</b>`;
  24051. return this.points.forEach((j) => {
  24052. const w = G.find((x) => x.name === j.series.name);
  24053. B = B + `<br><span style="color:${j.color}">●</span>${w.nameCh}:${j.y} ${w.unitNameCh}`;
  24054. }), B;
  24055. },
  24056. formatterEn: function() {
  24057. let B = `<b>${this.points[0].x}</b>`;
  24058. return this.points.forEach((j) => {
  24059. const w = G.find((x) => x.name === j.series.name);
  24060. B = B + `<br><span style="color:${j.color}">●</span>${w.nameEn}:${j.y} ${w.unitNameEn}`;
  24061. }), B;
  24062. },
  24063. shared: !0
  24064. },
  24065. series: G,
  24066. yAxis: U,
  24067. xAxis: _
  24068. };
  24069. }
  24070. function cM(r) {
  24071. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24072. const d = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { DataList: C, LeftMaxValue: o, LeftMinValue: y, RightMaxValue: N, RightMinValue: _ } = r.DataResp, U = {
  24073. ...wn,
  24074. tickWidth: 1,
  24075. labels: {
  24076. style: {
  24077. ...d && d.xAxisOptions.style
  24078. }
  24079. }
  24080. };
  24081. let G = [], V = [];
  24082. return C.forEach((B, j) => {
  24083. let w = {
  24084. ...dr,
  24085. title: {
  24086. text: B.Unit,
  24087. textCh: B.Unit,
  24088. // 中文
  24089. textEn: B.UnitEn || B.Unit,
  24090. align: "high",
  24091. rotation: 0,
  24092. y: -15,
  24093. reserveSpace: !1,
  24094. style: {
  24095. ...d && d.yAxisOptions.style
  24096. }
  24097. },
  24098. labels: {
  24099. style: {
  24100. ...d && d.yAxisOptions.style
  24101. }
  24102. },
  24103. opposite: B.IsAxis !== 1,
  24104. min: Number(j === 0 ? y : _),
  24105. max: Number(j === 0 ? o : N),
  24106. tickWidth: 1
  24107. };
  24108. const x = d ? j % d.lineOptionList.length : j;
  24109. let f = {
  24110. data: B.Value.map((l) => [l.X, l.Y]),
  24111. dashStyle: d && d.lineOptionList[x].dashStyle || "Solid",
  24112. type: d && d.lineOptionList[x].lineType || "spline",
  24113. yAxis: j,
  24114. name: B.Name,
  24115. nameZh: B.Name,
  24116. nameEn: B.NameEn || B.Name,
  24117. color: B.Color,
  24118. lineWidth: d && d.lineOptionList[x].lineWidth || 3,
  24119. chartType: "linear",
  24120. zIndex: 1
  24121. };
  24122. V.push(f), G.push(w);
  24123. }), {
  24124. title: {
  24125. text: ""
  24126. },
  24127. tooltip: {
  24128. formatter: function() {
  24129. let B = C[0].Value.map((f) => f.X), j = B[1] - B[0], x = `<b>${`[${this.x},${this.x + j}]`}</b>`;
  24130. return this.points.forEach((f) => {
  24131. x += `<br><span style="color:${f.color}">●</span>${f.series.name}: ${f.y}%<br>`;
  24132. }), x;
  24133. },
  24134. shared: !0
  24135. },
  24136. series: V,
  24137. yAxis: G,
  24138. xAxis: U
  24139. };
  24140. }
  24141. function Bp(r) {
  24142. const d = r.ChartInfo.Source === 1, C = [4, 6, 7, 8].includes(r.ChartInfo.Source) ? [r.DataResp] : r.EdbInfoList;
  24143. let o = [], y = [], N = {}, _ = C.findIndex((f) => f.IsAxis === 1), U = C.findIndex((f) => !f.IsAxis), G = C.findIndex((f) => f.IsAxis === 2);
  24144. kt.leftIndex = _, kt.rightIndex = U, kt.rightTwoIndex = G;
  24145. const V = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24146. let F = [], B = C.some((f) => f.IsAxis === 2) ? Kl(C) : C;
  24147. B.forEach((f, l) => {
  24148. let T = B.findIndex((t) => t.IsAxis === f.IsAxis), O = f.EdbName, R = B.filter(
  24149. (t) => O === t.EdbName
  24150. ), k = wo(f, R, "zh"), b = wo(f, R, "en"), S = f.EdbInfoCategoryType === 1 ? qu(f) : {};
  24151. const v = V ? l % V.lineOptionList.length : l;
  24152. let h = {
  24153. data: [],
  24154. dataGrouping: {
  24155. enabled: !1
  24156. },
  24157. type: V && V.lineOptionList[v].lineType || "spline",
  24158. dashStyle: V && V.lineOptionList[v].dashStyle || "Solid",
  24159. yAxis: l,
  24160. name: k,
  24161. nameZh: k,
  24162. nameEn: b,
  24163. color: f.ChartColor,
  24164. lineWidth: Number(f.ChartWidth) || V && V.lineOptionList[v].lineWidth || 1,
  24165. visible: !0,
  24166. LatestDate: f.LatestDate,
  24167. LatestValue: f.LatestValue,
  24168. marker: V && V.lineOptionList[v].dataMark && V.lineOptionList[v].dataMark != "none" ? {
  24169. enabled: !0,
  24170. symbol: V.lineOptionList[v].markType || "circle",
  24171. fillColor: V.lineOptionList[v].markColor,
  24172. radius: V.lineOptionList[v].markSize
  24173. } : {},
  24174. ...S
  24175. };
  24176. f.DataList = f.DataList || [];
  24177. for (let t of f.DataList)
  24178. h.data.push([t.DataTimestamp, t.Value]);
  24179. o.push(h), f.IsAxis, console.log("useSelfLimit", li);
  24180. let c = 0, u = 0;
  24181. if ((!li || !d) && (c = f.MinData, u = f.MaxData), li && d) {
  24182. const t = {
  24183. 0: ["rightMin", "rightMax"],
  24184. 1: ["leftMin", "leftMax"],
  24185. 2: ["rightTwoMin", "rightTwoMax"]
  24186. };
  24187. t[f.IsAxis] && (c = kt[`${t[f.IsAxis][0]}`] || 0, u = kt[`${t[f.IsAxis][1]}`] || 0);
  24188. }
  24189. const i = r.ChartInfo.Source === 12 ? f.ConvertUnit : f.ConvertUnit || f.Unit, p = r.ChartInfo.Source === 12 ? f.ConvertEnUnit : f.ConvertEnUnit || f.UnitEn || f.ConvertUnit || f.Unit;
  24190. let a = {
  24191. ...dr,
  24192. IsAxis: f.IsAxis,
  24193. labels: {
  24194. formatter: function(t) {
  24195. return T !== l ? "" : t.value;
  24196. },
  24197. align: "center",
  24198. x: [0, 2].includes(f.IsAxis) ? 5 : -5,
  24199. style: {
  24200. ...V && V.yAxisOptions.style
  24201. }
  24202. },
  24203. tickWidth: T !== l ? 0 : 1,
  24204. title: {
  24205. text: T !== l ? "" : `${i}`,
  24206. textZh: i,
  24207. //中文单位
  24208. textEn: i ? p : "",
  24209. //英文单位,但如果无中文单位则不显示
  24210. align: "high",
  24211. rotation: 0,
  24212. y: -15,
  24213. x: f.IsAxis === 0 && G > -1 ? -B[G].Unit.length * 12 : 0,
  24214. textAlign: f.IsAxis === 1 ? "left" : "right",
  24215. reserveSpace: !1,
  24216. style: {
  24217. ...V && V.yAxisOptions.style
  24218. }
  24219. },
  24220. opposite: [0, 2].includes(f.IsAxis),
  24221. reversed: f.IsOrder,
  24222. min: Number(c),
  24223. max: Number(u),
  24224. visible: T === l,
  24225. chartEdbInfo: f,
  24226. //指标数据用于在保存时读取指标数据
  24227. plotBands: Ti(f.IsAxis),
  24228. plotLines: Ai(f.IsAxis)
  24229. };
  24230. y.push(a), f.DataList.length > 0 && (F.push(f.DataList[0].DataTimestamp), F.push(f.DataList[f.DataList.length - 1].DataTimestamp));
  24231. });
  24232. let j = Math.min.apply(null, F), w = Math.max.apply(null, F);
  24233. const x = Qu(j, w, r.ChartInfo.DateType);
  24234. return N = {
  24235. ...tu,
  24236. labels: {
  24237. formatter: function(f) {
  24238. return x ? ts.dateFormat("%m/%d", f.value) : ts.dateFormat("%y/%m", f.value);
  24239. },
  24240. style: {
  24241. ...V && V.xAxisOptions.style
  24242. }
  24243. },
  24244. tickInterval: Zl.value === "phone" ? (w - j) / 6 / (24 * 3600 * 1e3) > 30 ? (w - j) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24245. plotBands: Ti(3, "datetime"),
  24246. plotLines: Ai(3, "datetime")
  24247. }, y.forEach((f) => {
  24248. f.IsAxis === 1 ? (kt.hasLeftAxis = !0, (!li || !d) && (kt.leftMin = C[_].MinData, kt.leftMax = C[_].MaxData, f.min = C[_].MinData, f.max = C[_].MaxData)) : f.IsAxis === 2 ? (kt.hasRightTwoAxis = !0, (!li || !d) && (kt.rightTwoMin = C[G].MinData, kt.rightTwoMax = C[G].MaxData, f.min = C[G].MinData, f.max = C[G].MaxData)) : (kt.hasRightAxis = !0, (!li || !d) && (kt.rightMin = C[U].MinData, kt.rightMax = C[U].MaxData, f.min = C[U].MinData, f.max = C[U].MaxData));
  24249. }), {
  24250. series: o,
  24251. xAxis: [N],
  24252. yAxis: y,
  24253. rangeSelector: { enabled: !1 }
  24254. };
  24255. }
  24256. function pM(r) {
  24257. var b;
  24258. kt.leftIndex = 0;
  24259. const { RightAxis: d = {} } = r.DataResp || {};
  24260. kt.rightIndex = d.IsShow ? 1 : -1, kt.rightTwoIndex = -1;
  24261. const C = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24262. let o = {};
  24263. const y = r.EdbInfoList[0], N = r.ChartInfo.Calendar || "公历", _ = C && C.colorsOptions.reverse();
  24264. let U = [], G = [];
  24265. const V = N === "农历" ? y.DataList.filter((S, v) => v > 0) : y.DataList;
  24266. C && (C.lineOptionList = C.lineOptionList.reverse().slice(-V.length));
  24267. let F = 0;
  24268. V.forEach((S, v) => {
  24269. let h = y.EdbInfoCategoryType === 1 ? sM(S.CuttingDataTimestamp) : {};
  24270. const c = C ? v % C.lineOptionList.length : v;
  24271. let u = {
  24272. data: [],
  24273. dataGrouping: {
  24274. enabled: !1
  24275. },
  24276. type: C && C.lineOptionList[c].lineType || y.ChartStyle,
  24277. dashStyle: C && C.lineOptionList[c].dashStyle || "Solid",
  24278. yAxis: 0,
  24279. name: S.ChartLegend,
  24280. lineWidth: C && C.lineOptionList[c].lineWidth || 1,
  24281. // color:colorsArr.slice(-chartDataHandle.length)[lineIndex], //与PC端的配置不同步,导致两边 十条之后的线条颜色不对应
  24282. visible: !0,
  24283. marker: C && C.lineOptionList[c].dataMark && C.lineOptionList[c].dataMark != "none" ? {
  24284. enabled: !0,
  24285. symbol: C.lineOptionList[c].markType || "circle",
  24286. fillColor: C.lineOptionList[c].markColor,
  24287. radius: C.lineOptionList[c].markSize
  24288. } : {},
  24289. ...h
  24290. };
  24291. if (S.DataList = S.DataList || [], (S.DataList || []).length > 0) {
  24292. let p = S.DataList[S.DataList.length - 1].DataTimestamp - S.DataList[0].DataTimestamp;
  24293. F = Math.max(F, p);
  24294. }
  24295. for (let p of S.DataList)
  24296. u.data.push([p.DataTimestamp, p.Value]);
  24297. U.push(u);
  24298. }), o.colors = _.slice(-V.length);
  24299. const { MaxMinLimits: B = {}, SamePeriodAverage: j = {}, SamePeriodStandardDeviation: w = {} } = r.DataResp || {};
  24300. if (B.IsShow && B.List && B.List.length) {
  24301. let S = {
  24302. type: "arearange",
  24303. //上下限是一个范围
  24304. data: [],
  24305. name: B.Legend || "同期上下限",
  24306. color: B.Color || "#075EEE",
  24307. fillOpacity: so(B.Color || "") > 0.75 ? 0.75 : so(B.Color || "")
  24308. //透明度最高0.75
  24309. };
  24310. B.List.forEach((v) => {
  24311. S.data.push([v.DataTimestamp, v.MinValue, v.MaxValue]);
  24312. }), U.push(S);
  24313. }
  24314. if (j.IsShow && j.List) {
  24315. let S = {
  24316. type: "line",
  24317. data: [],
  24318. lineWidth: j.LineWidth,
  24319. dashStyle: j.LineType,
  24320. name: j.Legend || "同期均值",
  24321. color: j.Color || "#075EEE"
  24322. };
  24323. j.List.forEach((v) => {
  24324. S.data.push([v.DataTimestamp, v.Value]);
  24325. }), U.push(S);
  24326. }
  24327. if (w.IsShow && w.List) {
  24328. let S = {
  24329. type: "arearange",
  24330. //标准差也是一个范围
  24331. data: [],
  24332. name: w.Legend || "同期标准差",
  24333. color: w.Color || "#075EEE",
  24334. fillOpacity: so(w.Color || "") > 0.75 ? 0.75 : so(w.Color || "")
  24335. };
  24336. w.List.forEach((v) => {
  24337. S.data.push([v.DataTimestamp, v.MinValue, v.MaxValue]);
  24338. }), U.push(S);
  24339. }
  24340. if (d.IsShow) {
  24341. let v = {
  24342. ...d.Style === "column" ? {
  24343. //柱形
  24344. type: "column",
  24345. color: d.ChartColor
  24346. } : {
  24347. //标记点
  24348. type: "spline",
  24349. lineWidth: d.LineWidth,
  24350. dashStyle: d.LineStyle,
  24351. color: d.IsConnected ? d.LineColor : "rgba(255, 255, 255, 0)",
  24352. //没有连线颜色设置为透明
  24353. marker: {
  24354. enabled: !0,
  24355. symbol: d.Shape,
  24356. fillColor: d.ChartColor,
  24357. radius: d.Size
  24358. }
  24359. },
  24360. name: d.Legend || "",
  24361. data: [],
  24362. yAxis: 1
  24363. };
  24364. ((d.IndicatorType === 1 ? d.EdbInfoList[0].DataList : (b = r.EdbInfoList[1]) == null ? void 0 : b.DataList) || []).forEach((c) => {
  24365. v.data.push([c.DataTimestamp, c.Value]);
  24366. }), U.push(v);
  24367. }
  24368. let x = 0, f = 0, l = 0, T = 0;
  24369. li ? (x = kt.leftMin || 0, f = kt.leftMax || 0, kt.rightIndex !== -1 && (l = kt.rightMin || 0, T = kt.rightMax || 0)) : (x = y.MinData, f = y.MaxData);
  24370. const O = y.ConvertUnit || y.Unit, R = y.ConvertEnUnit || y.UnitEn || y.ConvertUnit || y.Unit;
  24371. if (G = [{
  24372. IsAxis: y.IsAxis,
  24373. labels: {
  24374. align: "center",
  24375. y: 5,
  24376. style: {
  24377. ...C && C.yAxisOptions.style
  24378. }
  24379. },
  24380. title: {
  24381. text: `${O}`,
  24382. textZh: O,
  24383. // 中文
  24384. // 中文不存在,无论英文有无都显示空
  24385. textEn: O ? R || "英文单位" : "",
  24386. // 英文
  24387. align: "high",
  24388. rotation: 0,
  24389. y: -5,
  24390. x: 0,
  24391. textAlign: "left",
  24392. reserveSpace: !1,
  24393. style: {
  24394. ...C && C.yAxisOptions.style
  24395. }
  24396. },
  24397. max: Number(f),
  24398. min: Number(x),
  24399. plotBands: Ti(1),
  24400. plotLines: Ai(1),
  24401. lineWidth: 1,
  24402. lineColor: "#bfbfbf",
  24403. tickColor: "#bfbfbf",
  24404. offset: 0,
  24405. opposite: !1,
  24406. reversed: !1,
  24407. visible: !0,
  24408. gridLineWidth: 0,
  24409. tickWidth: 1,
  24410. tickLength: 5,
  24411. tickPosition: "inside",
  24412. endOnTick: !1,
  24413. startOnTick: !1,
  24414. showLastLabel: !0,
  24415. //显示最后刻度值
  24416. tickPixelInterval: 50
  24417. // chartEdbInfo:item//指标数据
  24418. }], d.IsShow) {
  24419. const S = (d.IndicatorType === 1 ? d.EdbInfoList[0] : r.EdbInfoList[1]) || { Unit: "" };
  24420. d.IndicatorType === 1 ? S.Unit = d.NumFormat === 1 ? "%" : "" : S.Unit = r.EdbInfoList[1] && (r.EdbInfoList[1].ConvertUnit || r.EdbInfoList[1].Unit) || "", G.push({
  24421. ...H0.yAxis,
  24422. opposite: !0,
  24423. //右轴
  24424. labels: {
  24425. align: "center",
  24426. y: 5,
  24427. style: {
  24428. ...C && C.yAxisOptions.style
  24429. }
  24430. },
  24431. title: {
  24432. text: S.Unit || "",
  24433. style: {
  24434. ...C && C.yAxisOptions.style
  24435. },
  24436. align: "high",
  24437. rotation: 0,
  24438. y: -5,
  24439. x: 0,
  24440. textAlign: "right",
  24441. reserveSpace: !1
  24442. },
  24443. max: Number(T),
  24444. min: Number(l)
  24445. });
  24446. }
  24447. o.series = U, o.yAxis = G, kt.hasLeftAxis = !0, li || (kt.leftMin = Number(y.MinData), kt.leftMax = Number(y.MaxData));
  24448. let k = {
  24449. tickPosition: "inside",
  24450. lineColor: "#bfbfbf",
  24451. tickColor: "#bfbfbf",
  24452. tickLength: 5,
  24453. type: "datetime",
  24454. ordinal: !1,
  24455. dateTimeLabelFormats: {
  24456. day: "%y/%m",
  24457. week: "%y/%m",
  24458. month: "%y/%m",
  24459. year: "%y/%m"
  24460. },
  24461. labels: {
  24462. formatter: (S) => ts.dateFormat("%m/%d", S.value),
  24463. style: {
  24464. ...C && C.xAxisOptions.style
  24465. }
  24466. },
  24467. tickInterval: Zl.value === "phone" ? F / 6 : void 0,
  24468. //季节图
  24469. plotBands: Ti(3, "datetime"),
  24470. plotLines: Ai(3, "datetime")
  24471. };
  24472. return o.xAxis = [k], o.tooltip = {
  24473. split: !1,
  24474. shared: !0,
  24475. dateTimeLabelFormats: {
  24476. // 时间格式化字符
  24477. day: "%m/%d",
  24478. week: "%m/%d",
  24479. month: "%m/%d",
  24480. year: "%m/%d"
  24481. },
  24482. xDateFormat: "%m/%d"
  24483. }, {
  24484. ...o
  24485. // title: {
  24486. // enabled: true,
  24487. // text:e.ChartInfo.ChartName
  24488. // },
  24489. // legend:{
  24490. // enabled:true,
  24491. // verticalAlign: 'top',
  24492. // y:-10,
  24493. // x:(10 * data.Unit.length)/2
  24494. // }
  24495. };
  24496. }
  24497. function ll(r) {
  24498. const d = r.EdbInfoList;
  24499. let o = {
  24500. 3: "areaspline",
  24501. 4: "column",
  24502. 6: ""
  24503. }[r.ChartInfo.ChartType];
  24504. const y = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24505. let N = [], _ = [], U = {}, G, V, F, B = [], j = d.some((l) => l.IsAxis === 2) ? Kl(d) : d;
  24506. j.forEach((l, T) => {
  24507. let O = j.findIndex((n) => n.IsAxis === l.IsAxis), R = T;
  24508. [3, 4].includes(r.ChartInfo.ChartType) ? R = 0 : r.ChartInfo.ChartType === 6 && ["areaspline", "column"].includes(l.ChartStyle) && (R = j.findIndex((n) => n.ChartStyle === l.ChartStyle)), l.IsAxis = R === T ? l.IsAxis : j[R].IsAxis, l.IsOrder = R === T ? l.IsOrder : j[R].IsOrder, G = [3, 4].includes(r.ChartInfo.ChartType) ? j[R].IsAxis ? R : -1 : d.findIndex((n) => n.IsAxis === 1), V = [3, 4].includes(r.ChartInfo.ChartType) ? j[R].IsAxis ? -1 : R : d.findIndex((n) => !n.IsAxis), F = [3, 4].includes(r.ChartInfo.ChartType) ? -1 : d.findIndex((n) => n.IsAxis === 2), kt.leftIndex = G, kt.rightIndex = V, kt.rightTwoIndex = F;
  24509. let k = l.EdbName, b = j.filter(
  24510. (n) => k === n.EdbName
  24511. ), S = wo(l, b, "zh"), v = wo(l, b, "en"), h = l.EdbInfoCategoryType === 1 ? qu(l) : {};
  24512. const c = y ? T % y.lineOptionList.length : T;
  24513. let u = {
  24514. data: [],
  24515. dataGrouping: {
  24516. enabled: !1
  24517. },
  24518. type: o || l.ChartStyle,
  24519. yAxis: R,
  24520. name: S,
  24521. nameZh: S,
  24522. nameEn: v,
  24523. color: l.ChartColor,
  24524. lineWidth: Number(l.ChartWidth) || y && y.lineOptionList[c].lineWidth || 1,
  24525. fillColor: r.ChartInfo.ChartType === 3 || r.ChartInfo.ChartType === 6 && l.ChartStyle === "areaspline" ? l.ChartColor : void 0,
  24526. visible: !0,
  24527. LatestDate: l.LatestDate,
  24528. LatestValue: l.LatestValue,
  24529. ...h,
  24530. stacking: r.ChartInfo.ChartType == 6 && !r.DataResp.IsHeap ? void 0 : "normal"
  24531. };
  24532. l.DataList = l.DataList || [];
  24533. for (let n of l.DataList)
  24534. u.data.push([n.DataTimestamp, n.Value]);
  24535. N.push(u);
  24536. let i = 0, p = 0;
  24537. if (!li)
  24538. i = j[O].MinData, p = j[O].MaxData;
  24539. else {
  24540. const n = {
  24541. 0: ["rightMin", "rightMax"],
  24542. 1: ["leftMin", "leftMax"],
  24543. 2: ["rightTwoMin", "rightTwoMax"]
  24544. };
  24545. n[l.IsAxis] && (i = kt[`${n[l.IsAxis][0]}`] || 0, p = kt[`${n[l.IsAxis][1]}`] || 0);
  24546. }
  24547. l.IsAxis;
  24548. const a = l.ConvertUnit || l.Unit, t = l.ConvertEnUnit || l.UnitEn || l.ConvertUnit || l.Unit;
  24549. let s = {
  24550. ...dr,
  24551. IsAxis: l.IsAxis,
  24552. labels: {
  24553. formatter: function(n) {
  24554. return O !== T ? "" : n.value;
  24555. },
  24556. align: "center",
  24557. x: [0, 2].includes(l.IsAxis) ? 5 : -5,
  24558. style: {
  24559. ...y && y.yAxisOptions.style
  24560. }
  24561. },
  24562. title: {
  24563. // text: sameSideIndex !== index ? '' : `${item.Unit}`,
  24564. text: a,
  24565. textZh: a,
  24566. // 中文
  24567. // 中文不存在,无论英文有无都显示空
  24568. textEn: a ? t || "英文单位" : "",
  24569. // 英文
  24570. align: "high",
  24571. rotation: 0,
  24572. y: -15,
  24573. x: l.IsAxis === 0 && F > -1 ? -j[F].Unit.length * 12 : 0,
  24574. textAlign: l.IsAxis === 1 ? "left" : "right",
  24575. reserveSpace: !1,
  24576. style: {
  24577. ...y && y.yAxisOptions.style
  24578. }
  24579. },
  24580. opposite: [0, 2].includes(l.IsAxis),
  24581. reversed: l.IsOrder,
  24582. min: Number(i),
  24583. max: Number(p),
  24584. tickWidth: O !== T ? 0 : 1,
  24585. visible: R === T && O === T,
  24586. plotBands: Ti(l.IsAxis),
  24587. plotLines: Ai(l.IsAxis),
  24588. chartEdbInfo: l
  24589. //指标数据用于在保存时读取指标数据
  24590. };
  24591. _.push(s), l.DataList.length > 0 && (B.push(l.DataList[0].DataTimestamp), B.push(l.DataList[l.DataList.length - 1].DataTimestamp));
  24592. });
  24593. let w = Math.min.apply(null, B), x = Math.max.apply(null, B);
  24594. const f = Qu(w, x, r.ChartInfo.DateType);
  24595. return U = {
  24596. ...tu,
  24597. labels: {
  24598. formatter: function(l) {
  24599. return f ? ts.dateFormat("%m/%d", l.value) : ts.dateFormat("%y/%m", l.value);
  24600. },
  24601. style: {
  24602. ...y && y.xAxisOptions.style
  24603. }
  24604. },
  24605. tickInterval: Zl.value === "phone" ? (x - w) / 6 / (24 * 3600 * 1e3) > 30 ? (x - w) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24606. plotBands: Ti(3, "datetime"),
  24607. plotLines: Ai(3, "datetime")
  24608. }, _.forEach((l) => {
  24609. l.IsAxis === 1 ? (kt.hasLeftAxis = !0, li || (kt.leftMin = d[G].MinData, kt.leftMax = d[G].MaxData, l.min = d[G].MinData, l.max = d[G].MaxData)) : l.IsAxis === 2 ? (kt.hasRightTwoAxis = !0, li || (kt.rightTwoMin = d[F].MinData, kt.rightTwoMax = d[F].MaxData, l.min = d[F].MinData, l.max = d[F].MaxData)) : (kt.hasRightAxis = !0, li || (kt.rightMin = d[V].MinData, kt.rightMax = d[V].MaxData, l.min = d[V].MinData, l.max = d[V].MaxData));
  24610. }), {
  24611. series: N,
  24612. xAxis: U,
  24613. yAxis: _,
  24614. rangeSelector: { enabled: !1 }
  24615. };
  24616. }
  24617. function uM(r) {
  24618. kt.leftIndex = 1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24619. const d = r.EdbInfoList, { ChartInfo: C } = r, o = C.ChartThemeStyle ? JSON.parse(C.ChartThemeStyle) : null;
  24620. kt.hasLeftAxis = !0;
  24621. const y = [];
  24622. let N = {}, _ = ss.cloneDeep(d)[0].DataList || [], U = ss.cloneDeep(d)[1].DataList || [];
  24623. _.forEach((R) => {
  24624. U.forEach((k) => {
  24625. if (R.DataTimestamp === k.DataTimestamp) {
  24626. let b = R.Value + "_" + k.Value;
  24627. N[b] ? N[b].push(Xt(R.DataTimestamp).format("YYYY/MM/DD")) : N[b] = [Xt(R.DataTimestamp).format("YYYY/MM/DD")], y.push({
  24628. x: R.Value,
  24629. y: k.Value
  24630. });
  24631. }
  24632. });
  24633. }), y.sort((R, k) => R - k);
  24634. let G = {
  24635. formatter: function() {
  24636. return `<strong>${N[this.x + "_" + this.y].length > 4 ? N[this.x + "_" + this.y].slice(0, 4).join() + "..." : N[this.x + "_" + this.y].join()}</strong><br>
  24637. ${d[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24638. ${d[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24639. `;
  24640. },
  24641. // 中文
  24642. formatterCh: function() {
  24643. return `<strong>${N[this.x + "_" + this.y].length > 4 ? N[this.x + "_" + this.y].slice(0, 4).join() + "..." : N[this.x + "_" + this.y].join()}</strong><br>
  24644. ${d[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24645. ${d[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24646. `;
  24647. },
  24648. // 英文
  24649. formatterEn: function() {
  24650. let R = `${d[0].EdbNameEn}`, k = `${d[1].EdbNameEn}`;
  24651. return `<strong>${N[this.x + "_" + this.y].length > 4 ? N[this.x + "_" + this.y].slice(0, 4).join() + "..." : N[this.x + "_" + this.y].join()}</strong><br>
  24652. ${R}: <span style="font-weight: 600"> ${this.x}</span><br>
  24653. ${k}: <span style="font-weight: 600"> ${this.y}</span>
  24654. `;
  24655. }
  24656. };
  24657. const { IsOrder: V, ChartColor: F } = d[0];
  24658. let B = 0, j = 0;
  24659. li ? (B = kt.leftMin || 0, j = kt.leftMax || 0) : (B = r.ChartInfo.LeftMin || 0, j = r.ChartInfo.LeftMax || 0), console.log("check limit", B, j);
  24660. const w = d[1].ConvertUnit || d[1].Unit, x = d[1].ConvertEnUnit || d[1].UnitEn || d[1].ConvertUnit || d[1].Unit;
  24661. let f = {
  24662. title: {
  24663. text: `${w}`,
  24664. textZh: w,
  24665. textEn: w ? x : "",
  24666. align: "high",
  24667. rotation: 0,
  24668. y: -15,
  24669. x: 0,
  24670. textAlign: "left",
  24671. reserveSpace: !1,
  24672. style: {
  24673. ...o && o.yAxisOptions.style
  24674. }
  24675. },
  24676. labels: {
  24677. formatter: function(R) {
  24678. return R.value;
  24679. },
  24680. align: "center",
  24681. style: {
  24682. ...o && o.yAxisOptions.style
  24683. }
  24684. },
  24685. opposite: !1,
  24686. reversed: V,
  24687. min: Number(B),
  24688. max: Number(j),
  24689. tickWidth: 1,
  24690. tickLength: 5,
  24691. lineWidth: 1,
  24692. lineColor: "#bfbfbf",
  24693. tickColor: "#bfbfbf",
  24694. offset: 0,
  24695. visible: !0,
  24696. gridLineWidth: 0,
  24697. tickPosition: "inside",
  24698. endOnTick: !1,
  24699. startOnTick: !1,
  24700. showLastLabel: !0,
  24701. tickPixelInterval: 50,
  24702. plotBands: Ti(1),
  24703. plotLines: Ai(1)
  24704. }, l = {
  24705. data: [],
  24706. type: "scatter",
  24707. name: `${C.ChartName}${V ? "(逆序)" : ""}`,
  24708. nameZh: `${C.ChartName}${V ? "(逆序)" : ""}`,
  24709. nameEn: C.ChartNameEn ? `${C.ChartNameEn}${V ? "(reverse)" : ""}` : "",
  24710. color: F,
  24711. visible: !0,
  24712. chartType: "linear",
  24713. marker: {
  24714. radius: o && o.lineOptionList[0].radius || 5
  24715. }
  24716. };
  24717. y.forEach((R) => {
  24718. l.data.push([R.x, R.y]);
  24719. });
  24720. const T = d[0].ConvertUnit || d[0].Unit, O = d[0].ConvertEnUnit || d[0].UnitEn || d[0].ConvertUnit || d[0].Unit;
  24721. return {
  24722. title: {
  24723. text: ""
  24724. },
  24725. series: [l],
  24726. yAxis: f,
  24727. xAxis: {
  24728. ...wn,
  24729. title: {
  24730. text: `${T}`,
  24731. textZh: T,
  24732. textEn: T ? O : "",
  24733. align: "high",
  24734. rotation: 0,
  24735. x: 0,
  24736. offset: 20,
  24737. style: {
  24738. ...o && o.xAxisOptions.style
  24739. }
  24740. },
  24741. labels: {
  24742. style: {
  24743. ...o && o.xAxisOptions.style
  24744. }
  24745. }
  24746. },
  24747. tooltip: G
  24748. };
  24749. }
  24750. const td = Le([]), ed = Le([]), dM = Le([]);
  24751. function fM(r) {
  24752. var F, B, j;
  24753. let d = [];
  24754. const C = ss.cloneDeep(td.value), o = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24755. let y = {
  24756. ...wn,
  24757. categories: ed.value,
  24758. tickWidth: 1,
  24759. labels: {
  24760. style: {
  24761. ...o && o.xAxisOptions.style
  24762. }
  24763. }
  24764. };
  24765. const { leftMin: N, leftMax: _ } = kt, U = (F = r.ChartInfo) == null ? void 0 : F.Unit, G = ((B = r.ChartInfo) == null ? void 0 : B.UnitEn) || ((j = r.ChartInfo) == null ? void 0 : j.Unit);
  24766. let V = {
  24767. ...dr,
  24768. title: {
  24769. text: U,
  24770. textZh: U,
  24771. textEn: G,
  24772. align: "high",
  24773. rotation: 0,
  24774. y: -12,
  24775. x: 0,
  24776. textAlign: "left",
  24777. reserveSpace: !1,
  24778. style: {
  24779. ...o && o.yAxisOptions.style
  24780. }
  24781. },
  24782. labels: {
  24783. formatter: function(w) {
  24784. return w.value;
  24785. },
  24786. align: "center",
  24787. style: {
  24788. ...o && o.yAxisOptions.style
  24789. }
  24790. },
  24791. min: Number(N),
  24792. max: Number(_),
  24793. opposite: !1,
  24794. tickWidth: 1,
  24795. plotBands: Ti(1),
  24796. plotLines: Ai(1)
  24797. };
  24798. return C.forEach((w) => {
  24799. let x = {
  24800. data: w.Value,
  24801. type: "column",
  24802. yAxis: 0,
  24803. name: w.Name || w.Date,
  24804. nameZh: w.Name || w.Date,
  24805. nameEn: w.Date,
  24806. color: w.Color,
  24807. chartType: "linear",
  24808. visible: !0
  24809. };
  24810. d.push(x);
  24811. }), {
  24812. title: {
  24813. text: ""
  24814. },
  24815. plotOptions: {
  24816. column: {
  24817. stacking: null
  24818. }
  24819. },
  24820. series: d,
  24821. yAxis: [V],
  24822. xAxis: y
  24823. };
  24824. }
  24825. function gM(r) {
  24826. const { XEdbIdValue: d, YDataList: C, EdbInfoList: o, ChartInfo: y } = r;
  24827. let N = d.map((_) => o.find((U) => U.EdbInfoId === _).EdbAliasName);
  24828. return kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1, td.value = C, ed.value = N, dM.value = o, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), fM(r);
  24829. }
  24830. const id = Le([]), Fr = Le([]), Ii = Le([]), mM = (r, d) => {
  24831. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24832. const C = _e.value.ChartInfo.ChartThemeStyle ? JSON.parse(_e.value.ChartInfo.ChartThemeStyle) : null;
  24833. let o = [];
  24834. const y = ss.cloneDeep(id.value);
  24835. console.log(y);
  24836. let N = {
  24837. ...wn,
  24838. categories: Fr.value.filter((G) => G.IsHide === 0).map((G) => G.Name),
  24839. tickWidth: 1,
  24840. labels: {
  24841. style: {
  24842. ...C && C.xAxisOptions.style
  24843. }
  24844. }
  24845. }, _ = {
  24846. ...dr,
  24847. title: {
  24848. text: Ii.value[0].Unit,
  24849. textZh: Ii.value[0].Unit,
  24850. textEn: Ii.value[0].Unit ? Ii.value[0].UnitEn || "英文单位" : "",
  24851. align: "high",
  24852. rotation: 0,
  24853. y: -15,
  24854. textAlign: "left",
  24855. reserveSpace: !1,
  24856. style: {
  24857. ...C && C.yAxisOptions.style
  24858. }
  24859. },
  24860. labels: {
  24861. formatter: function(G) {
  24862. return G.value;
  24863. },
  24864. align: "center",
  24865. style: {
  24866. ...C && C.yAxisOptions.style
  24867. }
  24868. },
  24869. min: Number(r),
  24870. max: Number(d),
  24871. opposite: !1,
  24872. tickWidth: 1
  24873. };
  24874. return y.forEach((G, V) => {
  24875. let F = yM(G);
  24876. const B = C ? V % C.lineOptionList.length : V;
  24877. let j = {
  24878. data: F,
  24879. type: C && C.lineOptionList[B].lineType || "spline",
  24880. dashStyle: C && C.lineOptionList[B].dashStyle || "Solid",
  24881. yAxis: 0,
  24882. name: G.Name,
  24883. nameZh: G.Name,
  24884. nameEn: G.NameEn,
  24885. color: G.Color,
  24886. chartType: "linear",
  24887. lineWidth: C && C.lineOptionList[B].lineWidth || 3,
  24888. visible: !0,
  24889. marker: {
  24890. enabled: !1
  24891. }
  24892. };
  24893. o.push(j);
  24894. }), {
  24895. title: {
  24896. text: ""
  24897. },
  24898. series: o,
  24899. yAxis: [_],
  24900. xAxis: N,
  24901. tooltip: {
  24902. formatter: function() {
  24903. const G = this;
  24904. let V = "";
  24905. return G.points.forEach((F) => {
  24906. let B = y.find((x) => x.Name === F.series.name), j = Fr.value.findIndex((x) => x.Name === G.x);
  24907. const w = B.XEdbInfoIdList[j];
  24908. if (w) {
  24909. const x = Ii.value.some((l) => l.EdbInfoId === w);
  24910. let f = _e.value.ChartInfo.Source === 5 ? x ? B.NameList[j] : `${_e.value.DataResp.ProfitName}(${B.NameList[j]})` : Ii.value.find((l) => l.EdbInfoId === B.XEdbInfoIdList[j]).EdbName;
  24911. V += `<b>${f}</b>`, B.NoDataEdbList.includes(B.XEdbInfoIdList[j]) ? V += `<br><span style="color:${F.color}">●</span>${B.Date}: 无<br>` : V += `<br><span style="color:${F.color}">●</span>${B.Date}: ${F.y}<br>`;
  24912. }
  24913. }), V || "无合约";
  24914. },
  24915. formatterCh: function() {
  24916. const G = this;
  24917. let V = "";
  24918. return G.points.forEach((F) => {
  24919. let B = y.find((x) => x.Name === F.series.name), j = Fr.value.findIndex((x) => x.Name === G.x);
  24920. const w = B.XEdbInfoIdList[j];
  24921. if (w) {
  24922. const x = Ii.value.some((l) => l.EdbInfoId === w);
  24923. let f = _e.value.ChartInfo.Source === 5 ? x ? B.NameList[j] : `${_e.value.DataResp.ProfitName}(${B.NameList[j]})` : Ii.value.find((l) => l.EdbInfoId === B.XEdbInfoIdList[j]).EdbName;
  24924. V += `<b>${f}</b>`, B.NoDataEdbList.includes(B.XEdbInfoIdList[j]) ? V += `<br><span style="color:${F.color}">●</span>${B.Date}: 无<br>` : V += `<br><span style="color:${F.color}">●</span>${B.Date}: ${F.y}<br>`;
  24925. }
  24926. }), V || "无合约";
  24927. },
  24928. formatterEn: function() {
  24929. const G = this;
  24930. let V = "";
  24931. return G.points.forEach((F) => {
  24932. let B = y.find((x) => x.NameEn === F.series.name), j = Fr.value.findIndex((x) => x.NameEn === G.x);
  24933. const w = B.XEdbInfoIdList[j];
  24934. if (w) {
  24935. const x = Ii.value.some((l) => l.EdbInfoId === w);
  24936. let f = _e.value.ChartInfo.Source === 5 ? x ? B.NameList[j] : `${_e.value.DataResp.ProfitNameEn}(${B.NameList[j]})` : Ii.value.find((l) => l.EdbInfoId === B.XEdbInfoIdList[j]).EdbNameEn;
  24937. V += `<b>${f}</b>`, B.NoDataEdbList.includes(B.XEdbInfoIdList[j]) ? V += `<br><span style="color:${F.color}">●</span>${B.Date}: 无<br>` : V += `<br><span style="color:${F.color}">●</span>${B.Date}: ${F.y}<br>`;
  24938. }
  24939. }), V || "无合约";
  24940. },
  24941. shared: !0
  24942. }
  24943. };
  24944. };
  24945. function yM(r) {
  24946. let d = r.XEdbInfoIdList.filter((_) => !r.NoDataEdbList.includes(_)), C = r.XEdbInfoIdList.findIndex((_) => _ === d[0]), o = r.XEdbInfoIdList.findIndex((_) => _ === d[d.length - 1]), y = r.Value.map((_, U) => U < C || U > o ? null : _), N = [];
  24947. return Fr.value.forEach((_, U) => {
  24948. _.IsHide !== 1 && N.push(y[U]);
  24949. }), N;
  24950. }
  24951. function vM(r) {
  24952. const { XDataList: d, YDataList: C, EdbInfoList: o, ChartInfo: y, DataResp: N } = r;
  24953. return Ii.value = o, id.value = y.Source === 5 ? N.YDataList : C, Fr.value = y.Source === 5 ? N.XDataList : d, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), mM(y.LeftMin, y.LeftMax);
  24954. }
  24955. function xM(r) {
  24956. const d = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24957. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24958. let C = {
  24959. categories: r.ChartInfo.Source === 3 ? r.XEdbIdValue : r.DataResp.XDateTimeValue,
  24960. tickWidth: 1,
  24961. title: {
  24962. text: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24963. textZh: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24964. textEn: r.ChartInfo.Source === 3 ? `stage(${Op[r.CorrelationChartInfo.LeadUnit]})` : null,
  24965. align: "high",
  24966. rotation: 0,
  24967. x: 0,
  24968. y: 10,
  24969. offset: 20,
  24970. style: {
  24971. ...d && d.xAxisOptions.style
  24972. }
  24973. },
  24974. labels: {
  24975. style: {
  24976. ...d && d.xAxisOptions.style
  24977. }
  24978. },
  24979. tickInterval: 1,
  24980. offset: 0,
  24981. tickmarkPlacement: "on"
  24982. }, o = {
  24983. ...dr,
  24984. title: {
  24985. text: "相关性系数",
  24986. textZh: "相关性系数",
  24987. textEn: "Correlation coefficient",
  24988. align: "high",
  24989. rotation: 0,
  24990. y: -15,
  24991. textAlign: "left",
  24992. reserveSpace: !1,
  24993. style: {
  24994. ...d && d.yAxisOptions.style
  24995. }
  24996. },
  24997. labels: {
  24998. formatter: function(V) {
  24999. return V.value;
  25000. },
  25001. align: "center",
  25002. style: {
  25003. ...d && d.yAxisOptions.style
  25004. }
  25005. },
  25006. opposite: !1,
  25007. tickWidth: 1
  25008. }, y = [];
  25009. r.YDataList.forEach((V, F) => {
  25010. const B = d ? F % d.lineOptionList.length : F;
  25011. let j = {
  25012. data: V.Value,
  25013. type: d && d.lineOptionList[B].lineType || "spline",
  25014. dashStyle: d && d.lineOptionList[B].dashStyle || "Solid",
  25015. yAxis: 0,
  25016. name: V.Name || r.ChartInfo.ChartName,
  25017. nameZh: V.Name || r.ChartInfo.ChartName,
  25018. nameEn: V.NameEn || r.ChartInfo.ChartNameEn,
  25019. color: V.Color,
  25020. chartType: "linear",
  25021. lineWidth: d && d.lineOptionList[B].lineWidth || 3,
  25022. visible: !0,
  25023. marker: {
  25024. enabled: !1
  25025. }
  25026. };
  25027. y.push(j);
  25028. });
  25029. const { LeadValue: N, LeadUnit: _ } = r.CorrelationChartInfo, { Source: U } = r.ChartInfo;
  25030. let G = {
  25031. formatter: function() {
  25032. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${U === 3 ? this.x + "期" : N + _}</p>`;
  25033. },
  25034. formatterCh: function() {
  25035. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${U === 3 ? this.x + "期" : N + _}</p>`;
  25036. },
  25037. formatterEn: function() {
  25038. return `<p>Correlation coefficient:${this.y.toFixed(4)}</p><br><p>lead${U === 3 ? this.x + "stage" : N + Op[_]}</p>`;
  25039. }
  25040. };
  25041. return fo(() => {
  25042. re.value = {
  25043. isRelevanceChart: r.ChartInfo.Source === 3,
  25044. title: {
  25045. text: ""
  25046. },
  25047. series: y,
  25048. yAxis: [o],
  25049. xAxis: C,
  25050. tooltip: G
  25051. }, ho.update(re.value, !0);
  25052. }), {
  25053. isRelevanceChart: !0,
  25054. title: {
  25055. text: ""
  25056. },
  25057. series: y,
  25058. yAxis: [o],
  25059. xAxis: C,
  25060. tooltip: G
  25061. };
  25062. }
  25063. function bM({ DataResp: r, ChartInfo: d }) {
  25064. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25065. const C = d.ChartThemeStyle ? JSON.parse(d.ChartThemeStyle) : null, { DataList: o, XName: y, XNameEn: N, XUnitName: _, XUnitNameEn: U, YName: G, YNameEn: V, YUnitName: F, YUnitNameEn: B } = r, j = Number(r.YMinValue), w = Number(r.YMaxValue), x = Number(r.XMinValue), f = Number(r.XMaxValue);
  25066. kt.hasLeftAxis = !0, kt.hasXAxis = !0, kt.leftMin = j, kt.leftMax = w, kt.xMin = x, kt.xMax = f;
  25067. let l = {
  25068. ...dr,
  25069. title: {
  25070. text: G,
  25071. textZh: G,
  25072. // 中文
  25073. textEn: V || "",
  25074. style: {
  25075. ...C && C.yAxisOptions.style
  25076. },
  25077. align: "middle"
  25078. },
  25079. labels: {
  25080. style: {
  25081. ...C && C.yAxisOptions.style
  25082. }
  25083. },
  25084. opposite: !1,
  25085. reversed: !1,
  25086. min: Number(j),
  25087. max: Number(w),
  25088. tickWidth: 1,
  25089. plotBands: Ti(1),
  25090. plotLines: Ai(1)
  25091. }, T = {
  25092. ...wn,
  25093. title: {
  25094. text: y,
  25095. textZh: y,
  25096. // 中文
  25097. textEn: N || "",
  25098. style: {
  25099. ...C && C.xAxisOptions.style
  25100. },
  25101. align: "middle"
  25102. },
  25103. labels: {
  25104. style: {
  25105. ...C && C.xAxisOptions.style
  25106. }
  25107. },
  25108. min: Number(x),
  25109. max: Number(f),
  25110. plotBands: Ti(3),
  25111. plotLines: Ai(3)
  25112. }, O = [];
  25113. return o.forEach((k, b) => {
  25114. const S = C ? b % C.lineOptionList.length : b;
  25115. let v = {
  25116. data: [],
  25117. type: "scatter",
  25118. name: k.Name,
  25119. nameZh: k.Name,
  25120. nameEn: k.NameEn,
  25121. color: k.Color,
  25122. lineWidth: 0,
  25123. chartType: "linear",
  25124. zIndex: 1,
  25125. visible: !0,
  25126. marker: {
  25127. radius: C && C.lineOptionList[S].radius || 5
  25128. }
  25129. };
  25130. if (k.EdbInfoList.forEach((h) => {
  25131. v.data.push({
  25132. x: h.XValue,
  25133. y: h.YValue,
  25134. dataLabels: {
  25135. enabled: h.IsShow,
  25136. allowOverlap: !0,
  25137. align: "left",
  25138. format: h.Name,
  25139. formatZh: h.Name,
  25140. formatEn: h.NameEn
  25141. }
  25142. });
  25143. }), O.push(v), k.ShowTrendLine) {
  25144. let c = {
  25145. data: k.TrendLimitData.map((u, i) => i === k.TrendLimitData.length - 1 ? {
  25146. x: u.X,
  25147. y: u.Y,
  25148. dataLabels: {
  25149. enabled: k.ShowRSquare || k.ShowFitEquation,
  25150. align: "left",
  25151. color: k.Color,
  25152. x: 20,
  25153. y: 30,
  25154. zIndex: 9,
  25155. allowOverlap: !0,
  25156. formatter: function() {
  25157. let p = "";
  25158. return k.ShowRSquare && k.ShowFitEquation ? p = `<span>${k.TrendLine}</span><br><span>R²=${k.RSquare}</span>` : k.ShowRSquare && !k.ShowFitEquation ? p = `<span>R²=${k.RSquare}</span>` : k.ShowFitEquation && !k.ShowRSquare && (p = `<span>${k.TrendLine}</span>`), p;
  25159. }
  25160. }
  25161. } : {
  25162. x: u.X,
  25163. y: u.Y
  25164. }),
  25165. type: "spline",
  25166. linkedTo: ":previous",
  25167. color: k.Color,
  25168. lineWidth: 1,
  25169. chartType: "linear",
  25170. enableMouseTracking: !1,
  25171. dashStyle: "Dash",
  25172. zIndex: 2,
  25173. visible: !0,
  25174. marker: {
  25175. enabled: !1
  25176. }
  25177. };
  25178. O.push(c);
  25179. }
  25180. }), {
  25181. title: {
  25182. text: ""
  25183. },
  25184. series: O,
  25185. yAxis: [l],
  25186. xAxis: T,
  25187. tooltip: {
  25188. formatter: function() {
  25189. let b = o.find((v) => v.Name === this.series.name).EdbInfoList.find((v) => v.XValue === this.x && v.YValue === this.y), S = `<b>${b.Name}</b>`;
  25190. return S += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, S += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, S;
  25191. },
  25192. formatterCh: function() {
  25193. let b = o.find((v) => v.Name === this.series.name).EdbInfoList.find((v) => v.XValue === this.x && v.YValue === this.y), S = `<b>${b.Name}</b>`;
  25194. return S += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, S += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, S;
  25195. },
  25196. formatterEn: function() {
  25197. let b = o.find((v) => v.NameEn === this.series.name).EdbInfoList.find((v) => v.XValue === this.x && v.YValue === this.y), S = `<b>${b.NameEn}</b>`;
  25198. return S += `<br><span style="color:${this.color}">●</span>${b.XNameEn}: ${this.x} ${b.XDate}<br>`, S += `<span style="color:${this.color}">●</span>${b.YNameEn}: ${this.y} ${b.YDate}`, S;
  25199. }
  25200. }
  25201. };
  25202. }
  25203. function SM({ DataResp: r, EdbInfoList: d, ChartInfo: C }) {
  25204. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25205. const o = C.ChartThemeStyle ? JSON.parse(C.ChartThemeStyle) : null, { DataList: y, XName: N, YName: _, XNameEn: U, YNameEn: G, XMaxValue: V, XMinValue: F, YMaxValue: B, YMinValue: j } = r, { leftMin: w, leftMax: x, xMin: f, xMax: l } = kt;
  25206. let T = {
  25207. ...dr,
  25208. title: {
  25209. text: _,
  25210. textCh: _,
  25211. // 中文
  25212. textEn: G || _,
  25213. align: "middle",
  25214. style: {
  25215. ...o && o.xAxisOptions.style
  25216. }
  25217. },
  25218. labels: {
  25219. style: {
  25220. ...o && o.xAxisOptions.style
  25221. }
  25222. },
  25223. opposite: !1,
  25224. reversed: !1,
  25225. min: Number(w),
  25226. max: Number(x),
  25227. tickWidth: 1
  25228. }, O = {
  25229. ...wn,
  25230. title: {
  25231. text: N,
  25232. textCh: N,
  25233. // 中文
  25234. textEn: U || N,
  25235. align: "middle",
  25236. style: {
  25237. ...o && o.xAxisOptions.style
  25238. }
  25239. },
  25240. labels: {
  25241. style: {
  25242. ...o && o.xAxisOptions.style
  25243. }
  25244. },
  25245. min: Number(f),
  25246. max: Number(l)
  25247. }, R = [];
  25248. const k = {
  25249. //标签对应文字
  25250. 1: "最新",
  25251. 3: "Fix"
  25252. };
  25253. return y.forEach((S) => {
  25254. let v = {
  25255. data: [],
  25256. type: "scatter",
  25257. name: S.Name,
  25258. nameZh: S.Name,
  25259. nameEn: S.NameEn || S.Name,
  25260. color: S.Color,
  25261. lineWidth: 0,
  25262. chartType: "linear",
  25263. zIndex: 1
  25264. };
  25265. S.CoordinatePointData.forEach((h) => {
  25266. v.data.push({
  25267. x: h.X,
  25268. y: h.Y,
  25269. dataLabels: {
  25270. enabled: h.ShowTips === 1,
  25271. allowOverlap: !0,
  25272. align: "left",
  25273. format: k[h.DateType] || `-${h.DaysAgo}D`
  25274. }
  25275. });
  25276. }), R.push(v);
  25277. }), {
  25278. title: {
  25279. text: ""
  25280. },
  25281. series: R,
  25282. yAxis: [T],
  25283. xAxis: O,
  25284. tooltip: {
  25285. formatter: function() {
  25286. let v = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), h = d.find((i) => i.EdbInfoId === v.XEdbInfoId), c = d.find((i) => i.EdbInfoId === v.YEdbInfoId), u = `<b>${this.series.name}</b>`;
  25287. return u += `<br><span style="color:${this.color}">●</span>${h.EdbName}: ${this.x} ${v.XDate}<br>`, u += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${v.YDate}`, u;
  25288. },
  25289. formatterCh: function() {
  25290. let v = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), h = d.find((i) => i.EdbInfoId === v.XEdbInfoId), c = d.find((i) => i.EdbInfoId === v.YEdbInfoId), u = `<b>${this.series.name}</b>`;
  25291. return u += `<br><span style="color:${this.color}">●</span>${h.EdbName}: ${this.x} ${v.XDate}<br>`, u += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${v.YDate}`, u;
  25292. },
  25293. formatterEn: function() {
  25294. let v = y.find((i) => i.NameEn === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), h = d.find((i) => i.EdbInfoId === v.XEdbInfoId), c = d.find((i) => i.EdbInfoId === v.YEdbInfoId), u = `<b>${this.series.name}</b>`;
  25295. return u += `<br><span style="color:${this.color}">●</span>${h.EdbNameEn}: ${this.x} ${v.XDate}<br>`, u += `<span style="color:${this.color}">●</span>${c.EdbNameEn}: ${this.y} ${v.YDate}`, u;
  25296. }
  25297. }
  25298. };
  25299. }
  25300. function wM({ DataResp: r, EdbInfoList: d, ChartInfo: C }) {
  25301. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25302. const { YDataList: o, XEdbIdValue: y } = r;
  25303. let N = d.filter((F) => y.includes(F.EdbInfoId));
  25304. kt.hasLeftAxis = !0, kt.leftMin = Number(C.LeftMin), kt.leftMax = Number(C.LeftMax);
  25305. const _ = C.ChartThemeStyle ? JSON.parse(C.ChartThemeStyle) : null;
  25306. let U = {
  25307. lineWidth: 0,
  25308. tickLength: 0,
  25309. tickmarkPlacement: "on",
  25310. categories: N.map((F) => F.EdbAliasName || F.EdbName),
  25311. labels: {
  25312. allowOverlap: !0,
  25313. autoRotationLimit: 40,
  25314. style: {
  25315. ..._ && _.xAxisOptions.style
  25316. }
  25317. }
  25318. }, G = [{
  25319. gridLineInterpolation: "polygon",
  25320. gridLineWidth: 1,
  25321. lineWidth: 0,
  25322. endOnTick: !1,
  25323. startOnTick: !1,
  25324. showLastLabel: !0,
  25325. // tickAmount:4,
  25326. title: {
  25327. text: C.Unit,
  25328. textCh: C.Unit,
  25329. textEn: C.UnitEn,
  25330. align: "high",
  25331. rotation: 0,
  25332. y: 5,
  25333. x: 10,
  25334. textAlign: "left",
  25335. reserveSpace: !1,
  25336. style: {
  25337. ..._ && _.yAxisOptions.style
  25338. }
  25339. },
  25340. labels: {
  25341. allowOverlap: !0,
  25342. style: {
  25343. ..._ && _.yAxisOptions.style
  25344. }
  25345. },
  25346. min: Number(C.LeftMin),
  25347. max: Number(C.LeftMax)
  25348. }], V = [];
  25349. return o.forEach((F, B) => {
  25350. const j = _ ? B % _.lineOptionList.length : B;
  25351. let w = {
  25352. name: F.Name || F.Date,
  25353. nameZh: F.Name || F.Date,
  25354. nameEn: F.Date,
  25355. data: F.Value,
  25356. pointPlacement: "on",
  25357. type: _ && _.lineOptionList[j].lineType || "line",
  25358. dashStyle: _ && _.lineOptionList[j].dashStyle || "Solid",
  25359. yAxis: 0,
  25360. color: F.Color,
  25361. lineWidth: _ && _.lineOptionList[j].lineWidth || 1,
  25362. chartType: "linear"
  25363. };
  25364. V.push(w);
  25365. }), {
  25366. chart: {
  25367. ...go.chart,
  25368. ..._ == null ? void 0 : _.drawOption,
  25369. spacing: [2, 10, 2, 10],
  25370. polar: !0
  25371. },
  25372. title: {
  25373. text: ""
  25374. },
  25375. pane: {
  25376. size: "85%"
  25377. },
  25378. series: V,
  25379. yAxis: G,
  25380. xAxis: U
  25381. };
  25382. }
  25383. function so(r = "rgba(51, 51, 51, 1)") {
  25384. const d = r.match(/(\d(\.\d+)?)+/g) || ["", "", "", 1];
  25385. return parseFloat(d[3] || 1);
  25386. }
  25387. function MM(r = [], d, C = {}) {
  25388. if (d.ChartType === 5) {
  25389. r[1] && (kt.leftMin = r[1].MinData, kt.leftMax = r[1].MaxData);
  25390. return;
  25391. }
  25392. const o = r.filter((_) => _.IsAxis === 1).map((_) => [Number(_.MinData), Number(_.MaxData)]), y = r.filter((_) => !_.IsAxis).map((_) => [Number(_.MinData), Number(_.MaxData)]), N = r.filter((_) => _.IsAxis === 2).map((_) => [Number(_.MinData), Number(_.MaxData)]);
  25393. if (o.length) {
  25394. const {
  25395. Max: _,
  25396. Min: U
  25397. } = Sn(o.flat());
  25398. kt.leftMin = U, kt.leftMax = _;
  25399. }
  25400. if (y.length) {
  25401. const {
  25402. Max: _,
  25403. Min: U
  25404. } = Sn(y.flat());
  25405. kt.rightMin = U, kt.rightMax = _;
  25406. }
  25407. if (N.length) {
  25408. const {
  25409. Max: _,
  25410. Min: U
  25411. } = Sn(N.flat());
  25412. kt.rightTwoMin = U, kt.rightTwoMax = _;
  25413. }
  25414. d.ChartType === 2 && C.RightAxis && C.RightAxis.IsAdd && C.RightAxis.IsShow && (C.RightAxis.IndicatorType === 1 ? (kt.rightMin = C.RightAxis.EdbInfoList[0].MinData || 0, kt.rightMax = C.RightAxis.EdbInfoList[0].MaxData || 0) : (kt.rightMin = r[1].MinData || 0, kt.rightMax = r[1].MaxData || 0));
  25415. }
  25416. function Sn(r) {
  25417. return {
  25418. Max: Math.max(...r),
  25419. Min: Math.min(...r)
  25420. };
  25421. }
  25422. function CM({ EdbInfoList: r, ChartInfo: d, DataResp: C }) {
  25423. const {
  25424. //左右轴极值字段
  25425. LeftMin: o = 0,
  25426. LeftMax: y = 0,
  25427. RightMin: N = 0,
  25428. RightMax: _ = 0,
  25429. Right2Min: U = 0,
  25430. Right2Max: G = 0,
  25431. MinMaxSave: V
  25432. } = d;
  25433. V ? (kt.leftMin = Number(o), kt.leftMax = Number(y), kt.rightMin = Number(N), kt.rightMax = Number(_), kt.rightTwoMin = Number(U), kt.rightTwoMax = Number(G), kM(r, d), console.log("check", kt.leftMin, kt.leftMax)) : MM(r, d, C || {});
  25434. }
  25435. function kM(r = [], d) {
  25436. if (d.ChartType === 5) {
  25437. r[1] && Number(kt.leftMin) === 0 && Number(kt.leftMax) === 0 && (kt.leftMin = r[1].MinData, kt.leftMax = r[1].MaxData);
  25438. return;
  25439. }
  25440. if (Number(kt.leftMin) === 0 && Number(kt.leftMax) === 0) {
  25441. const C = r.filter((o) => o.IsAxis === 1).map((o) => [Number(o.MinData), Number(o.MaxData)]);
  25442. if (C.length) {
  25443. const { Max: o, Min: y } = Sn(C.flat());
  25444. kt.leftMin = y, kt.leftMax = o;
  25445. }
  25446. }
  25447. if (Number(kt.rightMin) === 0 && Number(kt.rightMax) === 0) {
  25448. const C = r.filter((o) => !o.IsAxis).map((o) => [Number(o.MinData), Number(o.MaxData)]);
  25449. if (C.length) {
  25450. const { Max: o, Min: y } = Sn(C.flat());
  25451. kt.rightMin = y, kt.rightMax = o;
  25452. }
  25453. }
  25454. if (Number(kt.rightTwoMin) === 0 && Number(kt.rightTwoMax) === 0) {
  25455. const C = r.filter((o) => o.IsAxis === 2).map((o) => [Number(o.MinData), Number(o.MaxData)]);
  25456. if (C.length) {
  25457. const { Max: o, Min: y } = Sn(C.flat());
  25458. kt.rightTwoMin = y, kt.rightTwoMax = o;
  25459. }
  25460. }
  25461. }
  25462. function rd(r, d) {
  25463. return function() {
  25464. return r.apply(d, arguments);
  25465. };
  25466. }
  25467. const { toString: AM } = Object.prototype, { getPrototypeOf: Jl } = Object, Bo = ((r) => (d) => {
  25468. const C = AM.call(d);
  25469. return r[C] || (r[C] = C.slice(8, -1).toLowerCase());
  25470. })(/* @__PURE__ */ Object.create(null)), zi = (r) => (r = r.toLowerCase(), (d) => Bo(d) === r), jo = (r) => (d) => typeof d === r, { isArray: Tn } = Array, os = jo("undefined");
  25471. function TM(r) {
  25472. return r !== null && !os(r) && r.constructor !== null && !os(r.constructor) && gi(r.constructor.isBuffer) && r.constructor.isBuffer(r);
  25473. }
  25474. const nd = zi("ArrayBuffer");
  25475. function PM(r) {
  25476. let d;
  25477. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? d = ArrayBuffer.isView(r) : d = r && r.buffer && nd(r.buffer), d;
  25478. }
  25479. const EM = jo("string"), gi = jo("function"), sd = jo("number"), Wo = (r) => r !== null && typeof r == "object", OM = (r) => r === !0 || r === !1, co = (r) => {
  25480. if (Bo(r) !== "object")
  25481. return !1;
  25482. const d = Jl(r);
  25483. return (d === null || d === Object.prototype || Object.getPrototypeOf(d) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
  25484. }, LM = zi("Date"), _M = zi("File"), DM = zi("Blob"), IM = zi("FileList"), RM = (r) => Wo(r) && gi(r.pipe), NM = (r) => {
  25485. let d;
  25486. return r && (typeof FormData == "function" && r instanceof FormData || gi(r.append) && ((d = Bo(r)) === "formdata" || // detect form-data instance
  25487. d === "object" && gi(r.toString) && r.toString() === "[object FormData]"));
  25488. }, BM = zi("URLSearchParams"), [jM, WM, YM, zM] = ["ReadableStream", "Request", "Response", "Headers"].map(zi), XM = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  25489. function ps(r, d, { allOwnKeys: C = !1 } = {}) {
  25490. if (r === null || typeof r > "u")
  25491. return;
  25492. let o, y;
  25493. if (typeof r != "object" && (r = [r]), Tn(r))
  25494. for (o = 0, y = r.length; o < y; o++)
  25495. d.call(null, r[o], o, r);
  25496. else {
  25497. const N = C ? Object.getOwnPropertyNames(r) : Object.keys(r), _ = N.length;
  25498. let U;
  25499. for (o = 0; o < _; o++)
  25500. U = N[o], d.call(null, r[U], U, r);
  25501. }
  25502. }
  25503. function od(r, d) {
  25504. d = d.toLowerCase();
  25505. const C = Object.keys(r);
  25506. let o = C.length, y;
  25507. for (; o-- > 0; )
  25508. if (y = C[o], d === y.toLowerCase())
  25509. return y;
  25510. return null;
  25511. }
  25512. const Ur = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), ad = (r) => !os(r) && r !== Ur;
  25513. function bl() {
  25514. const { caseless: r } = ad(this) && this || {}, d = {}, C = (o, y) => {
  25515. const N = r && od(d, y) || y;
  25516. co(d[N]) && co(o) ? d[N] = bl(d[N], o) : co(o) ? d[N] = bl({}, o) : Tn(o) ? d[N] = o.slice() : d[N] = o;
  25517. };
  25518. for (let o = 0, y = arguments.length; o < y; o++)
  25519. arguments[o] && ps(arguments[o], C);
  25520. return d;
  25521. }
  25522. const GM = (r, d, C, { allOwnKeys: o } = {}) => (ps(d, (y, N) => {
  25523. C && gi(y) ? r[N] = rd(y, C) : r[N] = y;
  25524. }, { allOwnKeys: o }), r), HM = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), FM = (r, d, C, o) => {
  25525. r.prototype = Object.create(d.prototype, o), r.prototype.constructor = r, Object.defineProperty(r, "super", {
  25526. value: d.prototype
  25527. }), C && Object.assign(r.prototype, C);
  25528. }, UM = (r, d, C, o) => {
  25529. let y, N, _;
  25530. const U = {};
  25531. if (d = d || {}, r == null)
  25532. return d;
  25533. do {
  25534. for (y = Object.getOwnPropertyNames(r), N = y.length; N-- > 0; )
  25535. _ = y[N], (!o || o(_, r, d)) && !U[_] && (d[_] = r[_], U[_] = !0);
  25536. r = C !== !1 && Jl(r);
  25537. } while (r && (!C || C(r, d)) && r !== Object.prototype);
  25538. return d;
  25539. }, VM = (r, d, C) => {
  25540. r = String(r), (C === void 0 || C > r.length) && (C = r.length), C -= d.length;
  25541. const o = r.indexOf(d, C);
  25542. return o !== -1 && o === C;
  25543. }, $M = (r) => {
  25544. if (!r)
  25545. return null;
  25546. if (Tn(r))
  25547. return r;
  25548. let d = r.length;
  25549. if (!sd(d))
  25550. return null;
  25551. const C = new Array(d);
  25552. for (; d-- > 0; )
  25553. C[d] = r[d];
  25554. return C;
  25555. }, ZM = ((r) => (d) => r && d instanceof r)(typeof Uint8Array < "u" && Jl(Uint8Array)), KM = (r, d) => {
  25556. const o = (r && r[Symbol.iterator]).call(r);
  25557. let y;
  25558. for (; (y = o.next()) && !y.done; ) {
  25559. const N = y.value;
  25560. d.call(r, N[0], N[1]);
  25561. }
  25562. }, JM = (r, d) => {
  25563. let C;
  25564. const o = [];
  25565. for (; (C = r.exec(d)) !== null; )
  25566. o.push(C);
  25567. return o;
  25568. }, qM = zi("HTMLFormElement"), QM = (r) => r.toLowerCase().replace(
  25569. /[-_\s]([a-z\d])(\w*)/g,
  25570. function(C, o, y) {
  25571. return o.toUpperCase() + y;
  25572. }
  25573. ), jp = (({ hasOwnProperty: r }) => (d, C) => r.call(d, C))(Object.prototype), tC = zi("RegExp"), ld = (r, d) => {
  25574. const C = Object.getOwnPropertyDescriptors(r), o = {};
  25575. ps(C, (y, N) => {
  25576. let _;
  25577. (_ = d(y, N, r)) !== !1 && (o[N] = _ || y);
  25578. }), Object.defineProperties(r, o);
  25579. }, eC = (r) => {
  25580. ld(r, (d, C) => {
  25581. if (gi(r) && ["arguments", "caller", "callee"].indexOf(C) !== -1)
  25582. return !1;
  25583. const o = r[C];
  25584. if (gi(o)) {
  25585. if (d.enumerable = !1, "writable" in d) {
  25586. d.writable = !1;
  25587. return;
  25588. }
  25589. d.set || (d.set = () => {
  25590. throw Error("Can not rewrite read-only method '" + C + "'");
  25591. });
  25592. }
  25593. });
  25594. }, iC = (r, d) => {
  25595. const C = {}, o = (y) => {
  25596. y.forEach((N) => {
  25597. C[N] = !0;
  25598. });
  25599. };
  25600. return Tn(r) ? o(r) : o(String(r).split(d)), C;
  25601. }, rC = () => {
  25602. }, nC = (r, d) => r != null && Number.isFinite(r = +r) ? r : d, hl = "abcdefghijklmnopqrstuvwxyz", Wp = "0123456789", hd = {
  25603. DIGIT: Wp,
  25604. ALPHA: hl,
  25605. ALPHA_DIGIT: hl + hl.toUpperCase() + Wp
  25606. }, sC = (r = 16, d = hd.ALPHA_DIGIT) => {
  25607. let C = "";
  25608. const { length: o } = d;
  25609. for (; r--; )
  25610. C += d[Math.random() * o | 0];
  25611. return C;
  25612. };
  25613. function oC(r) {
  25614. return !!(r && gi(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]);
  25615. }
  25616. const aC = (r) => {
  25617. const d = new Array(10), C = (o, y) => {
  25618. if (Wo(o)) {
  25619. if (d.indexOf(o) >= 0)
  25620. return;
  25621. if (!("toJSON" in o)) {
  25622. d[y] = o;
  25623. const N = Tn(o) ? [] : {};
  25624. return ps(o, (_, U) => {
  25625. const G = C(_, y + 1);
  25626. !os(G) && (N[U] = G);
  25627. }), d[y] = void 0, N;
  25628. }
  25629. }
  25630. return o;
  25631. };
  25632. return C(r, 0);
  25633. }, lC = zi("AsyncFunction"), hC = (r) => r && (Wo(r) || gi(r)) && gi(r.then) && gi(r.catch), cd = ((r, d) => r ? setImmediate : d ? ((C, o) => (Ur.addEventListener("message", ({ source: y, data: N }) => {
  25634. y === Ur && N === C && o.length && o.shift()();
  25635. }, !1), (y) => {
  25636. o.push(y), Ur.postMessage(C, "*");
  25637. }))(`axios@${Math.random()}`, []) : (C) => setTimeout(C))(
  25638. typeof setImmediate == "function",
  25639. gi(Ur.postMessage)
  25640. ), cC = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ur) : typeof process < "u" && process.nextTick || cd, Et = {
  25641. isArray: Tn,
  25642. isArrayBuffer: nd,
  25643. isBuffer: TM,
  25644. isFormData: NM,
  25645. isArrayBufferView: PM,
  25646. isString: EM,
  25647. isNumber: sd,
  25648. isBoolean: OM,
  25649. isObject: Wo,
  25650. isPlainObject: co,
  25651. isReadableStream: jM,
  25652. isRequest: WM,
  25653. isResponse: YM,
  25654. isHeaders: zM,
  25655. isUndefined: os,
  25656. isDate: LM,
  25657. isFile: _M,
  25658. isBlob: DM,
  25659. isRegExp: tC,
  25660. isFunction: gi,
  25661. isStream: RM,
  25662. isURLSearchParams: BM,
  25663. isTypedArray: ZM,
  25664. isFileList: IM,
  25665. forEach: ps,
  25666. merge: bl,
  25667. extend: GM,
  25668. trim: XM,
  25669. stripBOM: HM,
  25670. inherits: FM,
  25671. toFlatObject: UM,
  25672. kindOf: Bo,
  25673. kindOfTest: zi,
  25674. endsWith: VM,
  25675. toArray: $M,
  25676. forEachEntry: KM,
  25677. matchAll: JM,
  25678. isHTMLForm: qM,
  25679. hasOwnProperty: jp,
  25680. hasOwnProp: jp,
  25681. // an alias to avoid ESLint no-prototype-builtins detection
  25682. reduceDescriptors: ld,
  25683. freezeMethods: eC,
  25684. toObjectSet: iC,
  25685. toCamelCase: QM,
  25686. noop: rC,
  25687. toFiniteNumber: nC,
  25688. findKey: od,
  25689. global: Ur,
  25690. isContextDefined: ad,
  25691. ALPHABET: hd,
  25692. generateString: sC,
  25693. isSpecCompliantForm: oC,
  25694. toJSONObject: aC,
  25695. isAsyncFn: lC,
  25696. isThenable: hC,
  25697. setImmediate: cd,
  25698. asap: cC
  25699. };
  25700. function ne(r, d, C, o, y) {
  25701. Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", d && (this.code = d), C && (this.config = C), o && (this.request = o), y && (this.response = y);
  25702. }
  25703. Et.inherits(ne, Error, {
  25704. toJSON: function() {
  25705. return {
  25706. // Standard
  25707. message: this.message,
  25708. name: this.name,
  25709. // Microsoft
  25710. description: this.description,
  25711. number: this.number,
  25712. // Mozilla
  25713. fileName: this.fileName,
  25714. lineNumber: this.lineNumber,
  25715. columnNumber: this.columnNumber,
  25716. stack: this.stack,
  25717. // Axios
  25718. config: Et.toJSONObject(this.config),
  25719. code: this.code,
  25720. status: this.response && this.response.status ? this.response.status : null
  25721. };
  25722. }
  25723. });
  25724. const pd = ne.prototype, ud = {};
  25725. [
  25726. "ERR_BAD_OPTION_VALUE",
  25727. "ERR_BAD_OPTION",
  25728. "ECONNABORTED",
  25729. "ETIMEDOUT",
  25730. "ERR_NETWORK",
  25731. "ERR_FR_TOO_MANY_REDIRECTS",
  25732. "ERR_DEPRECATED",
  25733. "ERR_BAD_RESPONSE",
  25734. "ERR_BAD_REQUEST",
  25735. "ERR_CANCELED",
  25736. "ERR_NOT_SUPPORT",
  25737. "ERR_INVALID_URL"
  25738. // eslint-disable-next-line func-names
  25739. ].forEach((r) => {
  25740. ud[r] = { value: r };
  25741. });
  25742. Object.defineProperties(ne, ud);
  25743. Object.defineProperty(pd, "isAxiosError", { value: !0 });
  25744. ne.from = (r, d, C, o, y, N) => {
  25745. const _ = Object.create(pd);
  25746. return Et.toFlatObject(r, _, function(G) {
  25747. return G !== Error.prototype;
  25748. }, (U) => U !== "isAxiosError"), ne.call(_, r.message, d, C, o, y), _.cause = r, _.name = r.name, N && Object.assign(_, N), _;
  25749. };
  25750. const pC = null;
  25751. function Sl(r) {
  25752. return Et.isPlainObject(r) || Et.isArray(r);
  25753. }
  25754. function dd(r) {
  25755. return Et.endsWith(r, "[]") ? r.slice(0, -2) : r;
  25756. }
  25757. function Yp(r, d, C) {
  25758. return r ? r.concat(d).map(function(y, N) {
  25759. return y = dd(y), !C && N ? "[" + y + "]" : y;
  25760. }).join(C ? "." : "") : d;
  25761. }
  25762. function uC(r) {
  25763. return Et.isArray(r) && !r.some(Sl);
  25764. }
  25765. const dC = Et.toFlatObject(Et, {}, null, function(d) {
  25766. return /^is[A-Z]/.test(d);
  25767. });
  25768. function Yo(r, d, C) {
  25769. if (!Et.isObject(r))
  25770. throw new TypeError("target must be an object");
  25771. d = d || new FormData(), C = Et.toFlatObject(C, {
  25772. metaTokens: !0,
  25773. dots: !1,
  25774. indexes: !1
  25775. }, !1, function(f, l) {
  25776. return !Et.isUndefined(l[f]);
  25777. });
  25778. const o = C.metaTokens, y = C.visitor || F, N = C.dots, _ = C.indexes, G = (C.Blob || typeof Blob < "u" && Blob) && Et.isSpecCompliantForm(d);
  25779. if (!Et.isFunction(y))
  25780. throw new TypeError("visitor must be a function");
  25781. function V(x) {
  25782. if (x === null)
  25783. return "";
  25784. if (Et.isDate(x))
  25785. return x.toISOString();
  25786. if (!G && Et.isBlob(x))
  25787. throw new ne("Blob is not supported. Use a Buffer instead.");
  25788. return Et.isArrayBuffer(x) || Et.isTypedArray(x) ? G && typeof Blob == "function" ? new Blob([x]) : Buffer.from(x) : x;
  25789. }
  25790. function F(x, f, l) {
  25791. let T = x;
  25792. if (x && !l && typeof x == "object") {
  25793. if (Et.endsWith(f, "{}"))
  25794. f = o ? f : f.slice(0, -2), x = JSON.stringify(x);
  25795. else if (Et.isArray(x) && uC(x) || (Et.isFileList(x) || Et.endsWith(f, "[]")) && (T = Et.toArray(x)))
  25796. return f = dd(f), T.forEach(function(R, k) {
  25797. !(Et.isUndefined(R) || R === null) && d.append(
  25798. // eslint-disable-next-line no-nested-ternary
  25799. _ === !0 ? Yp([f], k, N) : _ === null ? f : f + "[]",
  25800. V(R)
  25801. );
  25802. }), !1;
  25803. }
  25804. return Sl(x) ? !0 : (d.append(Yp(l, f, N), V(x)), !1);
  25805. }
  25806. const B = [], j = Object.assign(dC, {
  25807. defaultVisitor: F,
  25808. convertValue: V,
  25809. isVisitable: Sl
  25810. });
  25811. function w(x, f) {
  25812. if (!Et.isUndefined(x)) {
  25813. if (B.indexOf(x) !== -1)
  25814. throw Error("Circular reference detected in " + f.join("."));
  25815. B.push(x), Et.forEach(x, function(T, O) {
  25816. (!(Et.isUndefined(T) || T === null) && y.call(
  25817. d,
  25818. T,
  25819. Et.isString(O) ? O.trim() : O,
  25820. f,
  25821. j
  25822. )) === !0 && w(T, f ? f.concat(O) : [O]);
  25823. }), B.pop();
  25824. }
  25825. }
  25826. if (!Et.isObject(r))
  25827. throw new TypeError("data must be an object");
  25828. return w(r), d;
  25829. }
  25830. function zp(r) {
  25831. const d = {
  25832. "!": "%21",
  25833. "'": "%27",
  25834. "(": "%28",
  25835. ")": "%29",
  25836. "~": "%7E",
  25837. "%20": "+",
  25838. "%00": "\0"
  25839. };
  25840. return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g, function(o) {
  25841. return d[o];
  25842. });
  25843. }
  25844. function ql(r, d) {
  25845. this._pairs = [], r && Yo(r, this, d);
  25846. }
  25847. const fd = ql.prototype;
  25848. fd.append = function(d, C) {
  25849. this._pairs.push([d, C]);
  25850. };
  25851. fd.toString = function(d) {
  25852. const C = d ? function(o) {
  25853. return d.call(this, o, zp);
  25854. } : zp;
  25855. return this._pairs.map(function(y) {
  25856. return C(y[0]) + "=" + C(y[1]);
  25857. }, "").join("&");
  25858. };
  25859. function fC(r) {
  25860. return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  25861. }
  25862. function gd(r, d, C) {
  25863. if (!d)
  25864. return r;
  25865. const o = C && C.encode || fC, y = C && C.serialize;
  25866. let N;
  25867. if (y ? N = y(d, C) : N = Et.isURLSearchParams(d) ? d.toString() : new ql(d, C).toString(o), N) {
  25868. const _ = r.indexOf("#");
  25869. _ !== -1 && (r = r.slice(0, _)), r += (r.indexOf("?") === -1 ? "?" : "&") + N;
  25870. }
  25871. return r;
  25872. }
  25873. class gC {
  25874. constructor() {
  25875. this.handlers = [];
  25876. }
  25877. /**
  25878. * Add a new interceptor to the stack
  25879. *
  25880. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  25881. * @param {Function} rejected The function to handle `reject` for a `Promise`
  25882. *
  25883. * @return {Number} An ID used to remove interceptor later
  25884. */
  25885. use(d, C, o) {
  25886. return this.handlers.push({
  25887. fulfilled: d,
  25888. rejected: C,
  25889. synchronous: o ? o.synchronous : !1,
  25890. runWhen: o ? o.runWhen : null
  25891. }), this.handlers.length - 1;
  25892. }
  25893. /**
  25894. * Remove an interceptor from the stack
  25895. *
  25896. * @param {Number} id The ID that was returned by `use`
  25897. *
  25898. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  25899. */
  25900. eject(d) {
  25901. this.handlers[d] && (this.handlers[d] = null);
  25902. }
  25903. /**
  25904. * Clear all interceptors from the stack
  25905. *
  25906. * @returns {void}
  25907. */
  25908. clear() {
  25909. this.handlers && (this.handlers = []);
  25910. }
  25911. /**
  25912. * Iterate over all the registered interceptors
  25913. *
  25914. * This method is particularly useful for skipping over any
  25915. * interceptors that may have become `null` calling `eject`.
  25916. *
  25917. * @param {Function} fn The function to call for each interceptor
  25918. *
  25919. * @returns {void}
  25920. */
  25921. forEach(d) {
  25922. Et.forEach(this.handlers, function(o) {
  25923. o !== null && d(o);
  25924. });
  25925. }
  25926. }
  25927. const Xp = gC, md = {
  25928. silentJSONParsing: !0,
  25929. forcedJSONParsing: !0,
  25930. clarifyTimeoutError: !1
  25931. }, mC = typeof URLSearchParams < "u" ? URLSearchParams : ql, yC = typeof FormData < "u" ? FormData : null, vC = typeof Blob < "u" ? Blob : null, xC = {
  25932. isBrowser: !0,
  25933. classes: {
  25934. URLSearchParams: mC,
  25935. FormData: yC,
  25936. Blob: vC
  25937. },
  25938. protocols: ["http", "https", "file", "blob", "url", "data"]
  25939. }, Ql = typeof window < "u" && typeof document < "u", bC = ((r) => Ql && ["ReactNative", "NativeScript", "NS"].indexOf(r) < 0)(typeof navigator < "u" && navigator.product), SC = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
  25940. self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), wC = Ql && window.location.href || "http://localhost", MC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  25941. __proto__: null,
  25942. hasBrowserEnv: Ql,
  25943. hasStandardBrowserEnv: bC,
  25944. hasStandardBrowserWebWorkerEnv: SC,
  25945. origin: wC
  25946. }, Symbol.toStringTag, { value: "Module" })), Ni = {
  25947. ...MC,
  25948. ...xC
  25949. };
  25950. function CC(r, d) {
  25951. return Yo(r, new Ni.classes.URLSearchParams(), Object.assign({
  25952. visitor: function(C, o, y, N) {
  25953. return Ni.isNode && Et.isBuffer(C) ? (this.append(o, C.toString("base64")), !1) : N.defaultVisitor.apply(this, arguments);
  25954. }
  25955. }, d));
  25956. }
  25957. function kC(r) {
  25958. return Et.matchAll(/\w+|\[(\w*)]/g, r).map((d) => d[0] === "[]" ? "" : d[1] || d[0]);
  25959. }
  25960. function AC(r) {
  25961. const d = {}, C = Object.keys(r);
  25962. let o;
  25963. const y = C.length;
  25964. let N;
  25965. for (o = 0; o < y; o++)
  25966. N = C[o], d[N] = r[N];
  25967. return d;
  25968. }
  25969. function yd(r) {
  25970. function d(C, o, y, N) {
  25971. let _ = C[N++];
  25972. if (_ === "__proto__")
  25973. return !0;
  25974. const U = Number.isFinite(+_), G = N >= C.length;
  25975. return _ = !_ && Et.isArray(y) ? y.length : _, G ? (Et.hasOwnProp(y, _) ? y[_] = [y[_], o] : y[_] = o, !U) : ((!y[_] || !Et.isObject(y[_])) && (y[_] = []), d(C, o, y[_], N) && Et.isArray(y[_]) && (y[_] = AC(y[_])), !U);
  25976. }
  25977. if (Et.isFormData(r) && Et.isFunction(r.entries)) {
  25978. const C = {};
  25979. return Et.forEachEntry(r, (o, y) => {
  25980. d(kC(o), y, C, 0);
  25981. }), C;
  25982. }
  25983. return null;
  25984. }
  25985. function TC(r, d, C) {
  25986. if (Et.isString(r))
  25987. try {
  25988. return (d || JSON.parse)(r), Et.trim(r);
  25989. } catch (o) {
  25990. if (o.name !== "SyntaxError")
  25991. throw o;
  25992. }
  25993. return (C || JSON.stringify)(r);
  25994. }
  25995. const th = {
  25996. transitional: md,
  25997. adapter: ["xhr", "http", "fetch"],
  25998. transformRequest: [function(d, C) {
  25999. const o = C.getContentType() || "", y = o.indexOf("application/json") > -1, N = Et.isObject(d);
  26000. if (N && Et.isHTMLForm(d) && (d = new FormData(d)), Et.isFormData(d))
  26001. return y ? JSON.stringify(yd(d)) : d;
  26002. if (Et.isArrayBuffer(d) || Et.isBuffer(d) || Et.isStream(d) || Et.isFile(d) || Et.isBlob(d) || Et.isReadableStream(d))
  26003. return d;
  26004. if (Et.isArrayBufferView(d))
  26005. return d.buffer;
  26006. if (Et.isURLSearchParams(d))
  26007. return C.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), d.toString();
  26008. let U;
  26009. if (N) {
  26010. if (o.indexOf("application/x-www-form-urlencoded") > -1)
  26011. return CC(d, this.formSerializer).toString();
  26012. if ((U = Et.isFileList(d)) || o.indexOf("multipart/form-data") > -1) {
  26013. const G = this.env && this.env.FormData;
  26014. return Yo(
  26015. U ? { "files[]": d } : d,
  26016. G && new G(),
  26017. this.formSerializer
  26018. );
  26019. }
  26020. }
  26021. return N || y ? (C.setContentType("application/json", !1), TC(d)) : d;
  26022. }],
  26023. transformResponse: [function(d) {
  26024. const C = this.transitional || th.transitional, o = C && C.forcedJSONParsing, y = this.responseType === "json";
  26025. if (Et.isResponse(d) || Et.isReadableStream(d))
  26026. return d;
  26027. if (d && Et.isString(d) && (o && !this.responseType || y)) {
  26028. const _ = !(C && C.silentJSONParsing) && y;
  26029. try {
  26030. return JSON.parse(d);
  26031. } catch (U) {
  26032. if (_)
  26033. throw U.name === "SyntaxError" ? ne.from(U, ne.ERR_BAD_RESPONSE, this, null, this.response) : U;
  26034. }
  26035. }
  26036. return d;
  26037. }],
  26038. /**
  26039. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  26040. * timeout is not created.
  26041. */
  26042. timeout: 0,
  26043. xsrfCookieName: "XSRF-TOKEN",
  26044. xsrfHeaderName: "X-XSRF-TOKEN",
  26045. maxContentLength: -1,
  26046. maxBodyLength: -1,
  26047. env: {
  26048. FormData: Ni.classes.FormData,
  26049. Blob: Ni.classes.Blob
  26050. },
  26051. validateStatus: function(d) {
  26052. return d >= 200 && d < 300;
  26053. },
  26054. headers: {
  26055. common: {
  26056. Accept: "application/json, text/plain, */*",
  26057. "Content-Type": void 0
  26058. }
  26059. }
  26060. };
  26061. Et.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => {
  26062. th.headers[r] = {};
  26063. });
  26064. const eh = th, PC = Et.toObjectSet([
  26065. "age",
  26066. "authorization",
  26067. "content-length",
  26068. "content-type",
  26069. "etag",
  26070. "expires",
  26071. "from",
  26072. "host",
  26073. "if-modified-since",
  26074. "if-unmodified-since",
  26075. "last-modified",
  26076. "location",
  26077. "max-forwards",
  26078. "proxy-authorization",
  26079. "referer",
  26080. "retry-after",
  26081. "user-agent"
  26082. ]), EC = (r) => {
  26083. const d = {};
  26084. let C, o, y;
  26085. return r && r.split(`
  26086. `).forEach(function(_) {
  26087. y = _.indexOf(":"), C = _.substring(0, y).trim().toLowerCase(), o = _.substring(y + 1).trim(), !(!C || d[C] && PC[C]) && (C === "set-cookie" ? d[C] ? d[C].push(o) : d[C] = [o] : d[C] = d[C] ? d[C] + ", " + o : o);
  26088. }), d;
  26089. }, Gp = Symbol("internals");
  26090. function Jn(r) {
  26091. return r && String(r).trim().toLowerCase();
  26092. }
  26093. function po(r) {
  26094. return r === !1 || r == null ? r : Et.isArray(r) ? r.map(po) : String(r);
  26095. }
  26096. function OC(r) {
  26097. const d = /* @__PURE__ */ Object.create(null), C = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  26098. let o;
  26099. for (; o = C.exec(r); )
  26100. d[o[1]] = o[2];
  26101. return d;
  26102. }
  26103. const LC = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
  26104. function cl(r, d, C, o, y) {
  26105. if (Et.isFunction(o))
  26106. return o.call(this, d, C);
  26107. if (y && (d = C), !!Et.isString(d)) {
  26108. if (Et.isString(o))
  26109. return d.indexOf(o) !== -1;
  26110. if (Et.isRegExp(o))
  26111. return o.test(d);
  26112. }
  26113. }
  26114. function _C(r) {
  26115. return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (d, C, o) => C.toUpperCase() + o);
  26116. }
  26117. function DC(r, d) {
  26118. const C = Et.toCamelCase(" " + d);
  26119. ["get", "set", "has"].forEach((o) => {
  26120. Object.defineProperty(r, o + C, {
  26121. value: function(y, N, _) {
  26122. return this[o].call(this, d, y, N, _);
  26123. },
  26124. configurable: !0
  26125. });
  26126. });
  26127. }
  26128. class zo {
  26129. constructor(d) {
  26130. d && this.set(d);
  26131. }
  26132. set(d, C, o) {
  26133. const y = this;
  26134. function N(U, G, V) {
  26135. const F = Jn(G);
  26136. if (!F)
  26137. throw new Error("header name must be a non-empty string");
  26138. const B = Et.findKey(y, F);
  26139. (!B || y[B] === void 0 || V === !0 || V === void 0 && y[B] !== !1) && (y[B || G] = po(U));
  26140. }
  26141. const _ = (U, G) => Et.forEach(U, (V, F) => N(V, F, G));
  26142. if (Et.isPlainObject(d) || d instanceof this.constructor)
  26143. _(d, C);
  26144. else if (Et.isString(d) && (d = d.trim()) && !LC(d))
  26145. _(EC(d), C);
  26146. else if (Et.isHeaders(d))
  26147. for (const [U, G] of d.entries())
  26148. N(G, U, o);
  26149. else
  26150. d != null && N(C, d, o);
  26151. return this;
  26152. }
  26153. get(d, C) {
  26154. if (d = Jn(d), d) {
  26155. const o = Et.findKey(this, d);
  26156. if (o) {
  26157. const y = this[o];
  26158. if (!C)
  26159. return y;
  26160. if (C === !0)
  26161. return OC(y);
  26162. if (Et.isFunction(C))
  26163. return C.call(this, y, o);
  26164. if (Et.isRegExp(C))
  26165. return C.exec(y);
  26166. throw new TypeError("parser must be boolean|regexp|function");
  26167. }
  26168. }
  26169. }
  26170. has(d, C) {
  26171. if (d = Jn(d), d) {
  26172. const o = Et.findKey(this, d);
  26173. return !!(o && this[o] !== void 0 && (!C || cl(this, this[o], o, C)));
  26174. }
  26175. return !1;
  26176. }
  26177. delete(d, C) {
  26178. const o = this;
  26179. let y = !1;
  26180. function N(_) {
  26181. if (_ = Jn(_), _) {
  26182. const U = Et.findKey(o, _);
  26183. U && (!C || cl(o, o[U], U, C)) && (delete o[U], y = !0);
  26184. }
  26185. }
  26186. return Et.isArray(d) ? d.forEach(N) : N(d), y;
  26187. }
  26188. clear(d) {
  26189. const C = Object.keys(this);
  26190. let o = C.length, y = !1;
  26191. for (; o--; ) {
  26192. const N = C[o];
  26193. (!d || cl(this, this[N], N, d, !0)) && (delete this[N], y = !0);
  26194. }
  26195. return y;
  26196. }
  26197. normalize(d) {
  26198. const C = this, o = {};
  26199. return Et.forEach(this, (y, N) => {
  26200. const _ = Et.findKey(o, N);
  26201. if (_) {
  26202. C[_] = po(y), delete C[N];
  26203. return;
  26204. }
  26205. const U = d ? _C(N) : String(N).trim();
  26206. U !== N && delete C[N], C[U] = po(y), o[U] = !0;
  26207. }), this;
  26208. }
  26209. concat(...d) {
  26210. return this.constructor.concat(this, ...d);
  26211. }
  26212. toJSON(d) {
  26213. const C = /* @__PURE__ */ Object.create(null);
  26214. return Et.forEach(this, (o, y) => {
  26215. o != null && o !== !1 && (C[y] = d && Et.isArray(o) ? o.join(", ") : o);
  26216. }), C;
  26217. }
  26218. [Symbol.iterator]() {
  26219. return Object.entries(this.toJSON())[Symbol.iterator]();
  26220. }
  26221. toString() {
  26222. return Object.entries(this.toJSON()).map(([d, C]) => d + ": " + C).join(`
  26223. `);
  26224. }
  26225. get [Symbol.toStringTag]() {
  26226. return "AxiosHeaders";
  26227. }
  26228. static from(d) {
  26229. return d instanceof this ? d : new this(d);
  26230. }
  26231. static concat(d, ...C) {
  26232. const o = new this(d);
  26233. return C.forEach((y) => o.set(y)), o;
  26234. }
  26235. static accessor(d) {
  26236. const o = (this[Gp] = this[Gp] = {
  26237. accessors: {}
  26238. }).accessors, y = this.prototype;
  26239. function N(_) {
  26240. const U = Jn(_);
  26241. o[U] || (DC(y, _), o[U] = !0);
  26242. }
  26243. return Et.isArray(d) ? d.forEach(N) : N(d), this;
  26244. }
  26245. }
  26246. zo.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  26247. Et.reduceDescriptors(zo.prototype, ({ value: r }, d) => {
  26248. let C = d[0].toUpperCase() + d.slice(1);
  26249. return {
  26250. get: () => r,
  26251. set(o) {
  26252. this[C] = o;
  26253. }
  26254. };
  26255. });
  26256. Et.freezeMethods(zo);
  26257. const Bi = zo;
  26258. function pl(r, d) {
  26259. const C = this || eh, o = d || C, y = Bi.from(o.headers);
  26260. let N = o.data;
  26261. return Et.forEach(r, function(U) {
  26262. N = U.call(C, N, y.normalize(), d ? d.status : void 0);
  26263. }), y.normalize(), N;
  26264. }
  26265. function vd(r) {
  26266. return !!(r && r.__CANCEL__);
  26267. }
  26268. function Pn(r, d, C) {
  26269. ne.call(this, r ?? "canceled", ne.ERR_CANCELED, d, C), this.name = "CanceledError";
  26270. }
  26271. Et.inherits(Pn, ne, {
  26272. __CANCEL__: !0
  26273. });
  26274. function xd(r, d, C) {
  26275. const o = C.config.validateStatus;
  26276. !C.status || !o || o(C.status) ? r(C) : d(new ne(
  26277. "Request failed with status code " + C.status,
  26278. [ne.ERR_BAD_REQUEST, ne.ERR_BAD_RESPONSE][Math.floor(C.status / 100) - 4],
  26279. C.config,
  26280. C.request,
  26281. C
  26282. ));
  26283. }
  26284. function IC(r) {
  26285. const d = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r);
  26286. return d && d[1] || "";
  26287. }
  26288. function RC(r, d) {
  26289. r = r || 10;
  26290. const C = new Array(r), o = new Array(r);
  26291. let y = 0, N = 0, _;
  26292. return d = d !== void 0 ? d : 1e3, function(G) {
  26293. const V = Date.now(), F = o[N];
  26294. _ || (_ = V), C[y] = G, o[y] = V;
  26295. let B = N, j = 0;
  26296. for (; B !== y; )
  26297. j += C[B++], B = B % r;
  26298. if (y = (y + 1) % r, y === N && (N = (N + 1) % r), V - _ < d)
  26299. return;
  26300. const w = F && V - F;
  26301. return w ? Math.round(j * 1e3 / w) : void 0;
  26302. };
  26303. }
  26304. function NC(r, d) {
  26305. let C = 0, o = 1e3 / d, y, N;
  26306. const _ = (V, F = Date.now()) => {
  26307. C = F, y = null, N && (clearTimeout(N), N = null), r.apply(null, V);
  26308. };
  26309. return [(...V) => {
  26310. const F = Date.now(), B = F - C;
  26311. B >= o ? _(V, F) : (y = V, N || (N = setTimeout(() => {
  26312. N = null, _(y);
  26313. }, o - B)));
  26314. }, () => y && _(y)];
  26315. }
  26316. const Mo = (r, d, C = 3) => {
  26317. let o = 0;
  26318. const y = RC(50, 250);
  26319. return NC((N) => {
  26320. const _ = N.loaded, U = N.lengthComputable ? N.total : void 0, G = _ - o, V = y(G), F = _ <= U;
  26321. o = _;
  26322. const B = {
  26323. loaded: _,
  26324. total: U,
  26325. progress: U ? _ / U : void 0,
  26326. bytes: G,
  26327. rate: V || void 0,
  26328. estimated: V && U && F ? (U - _) / V : void 0,
  26329. event: N,
  26330. lengthComputable: U != null,
  26331. [d ? "download" : "upload"]: !0
  26332. };
  26333. r(B);
  26334. }, C);
  26335. }, Hp = (r, d) => {
  26336. const C = r != null;
  26337. return [(o) => d[0]({
  26338. lengthComputable: C,
  26339. total: r,
  26340. loaded: o
  26341. }), d[1]];
  26342. }, Fp = (r) => (...d) => Et.asap(() => r(...d)), BC = Ni.hasStandardBrowserEnv ? (
  26343. // Standard browser envs have full support of the APIs needed to test
  26344. // whether the request URL is of the same origin as current location.
  26345. function() {
  26346. const d = /(msie|trident)/i.test(navigator.userAgent), C = document.createElement("a");
  26347. let o;
  26348. function y(N) {
  26349. let _ = N;
  26350. return d && (C.setAttribute("href", _), _ = C.href), C.setAttribute("href", _), {
  26351. href: C.href,
  26352. protocol: C.protocol ? C.protocol.replace(/:$/, "") : "",
  26353. host: C.host,
  26354. search: C.search ? C.search.replace(/^\?/, "") : "",
  26355. hash: C.hash ? C.hash.replace(/^#/, "") : "",
  26356. hostname: C.hostname,
  26357. port: C.port,
  26358. pathname: C.pathname.charAt(0) === "/" ? C.pathname : "/" + C.pathname
  26359. };
  26360. }
  26361. return o = y(window.location.href), function(_) {
  26362. const U = Et.isString(_) ? y(_) : _;
  26363. return U.protocol === o.protocol && U.host === o.host;
  26364. };
  26365. }()
  26366. ) : (
  26367. // Non standard browser envs (web workers, react-native) lack needed support.
  26368. function() {
  26369. return function() {
  26370. return !0;
  26371. };
  26372. }()
  26373. ), jC = Ni.hasStandardBrowserEnv ? (
  26374. // Standard browser envs support document.cookie
  26375. {
  26376. write(r, d, C, o, y, N) {
  26377. const _ = [r + "=" + encodeURIComponent(d)];
  26378. Et.isNumber(C) && _.push("expires=" + new Date(C).toGMTString()), Et.isString(o) && _.push("path=" + o), Et.isString(y) && _.push("domain=" + y), N === !0 && _.push("secure"), document.cookie = _.join("; ");
  26379. },
  26380. read(r) {
  26381. const d = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
  26382. return d ? decodeURIComponent(d[3]) : null;
  26383. },
  26384. remove(r) {
  26385. this.write(r, "", Date.now() - 864e5);
  26386. }
  26387. }
  26388. ) : (
  26389. // Non-standard browser env (web workers, react-native) lack needed support.
  26390. {
  26391. write() {
  26392. },
  26393. read() {
  26394. return null;
  26395. },
  26396. remove() {
  26397. }
  26398. }
  26399. );
  26400. function WC(r) {
  26401. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
  26402. }
  26403. function YC(r, d) {
  26404. return d ? r.replace(/\/?\/$/, "") + "/" + d.replace(/^\/+/, "") : r;
  26405. }
  26406. function bd(r, d) {
  26407. return r && !WC(d) ? YC(r, d) : d;
  26408. }
  26409. const Up = (r) => r instanceof Bi ? { ...r } : r;
  26410. function Zr(r, d) {
  26411. d = d || {};
  26412. const C = {};
  26413. function o(V, F, B) {
  26414. return Et.isPlainObject(V) && Et.isPlainObject(F) ? Et.merge.call({ caseless: B }, V, F) : Et.isPlainObject(F) ? Et.merge({}, F) : Et.isArray(F) ? F.slice() : F;
  26415. }
  26416. function y(V, F, B) {
  26417. if (Et.isUndefined(F)) {
  26418. if (!Et.isUndefined(V))
  26419. return o(void 0, V, B);
  26420. } else
  26421. return o(V, F, B);
  26422. }
  26423. function N(V, F) {
  26424. if (!Et.isUndefined(F))
  26425. return o(void 0, F);
  26426. }
  26427. function _(V, F) {
  26428. if (Et.isUndefined(F)) {
  26429. if (!Et.isUndefined(V))
  26430. return o(void 0, V);
  26431. } else
  26432. return o(void 0, F);
  26433. }
  26434. function U(V, F, B) {
  26435. if (B in d)
  26436. return o(V, F);
  26437. if (B in r)
  26438. return o(void 0, V);
  26439. }
  26440. const G = {
  26441. url: N,
  26442. method: N,
  26443. data: N,
  26444. baseURL: _,
  26445. transformRequest: _,
  26446. transformResponse: _,
  26447. paramsSerializer: _,
  26448. timeout: _,
  26449. timeoutMessage: _,
  26450. withCredentials: _,
  26451. withXSRFToken: _,
  26452. adapter: _,
  26453. responseType: _,
  26454. xsrfCookieName: _,
  26455. xsrfHeaderName: _,
  26456. onUploadProgress: _,
  26457. onDownloadProgress: _,
  26458. decompress: _,
  26459. maxContentLength: _,
  26460. maxBodyLength: _,
  26461. beforeRedirect: _,
  26462. transport: _,
  26463. httpAgent: _,
  26464. httpsAgent: _,
  26465. cancelToken: _,
  26466. socketPath: _,
  26467. responseEncoding: _,
  26468. validateStatus: U,
  26469. headers: (V, F) => y(Up(V), Up(F), !0)
  26470. };
  26471. return Et.forEach(Object.keys(Object.assign({}, r, d)), function(F) {
  26472. const B = G[F] || y, j = B(r[F], d[F], F);
  26473. Et.isUndefined(j) && B !== U || (C[F] = j);
  26474. }), C;
  26475. }
  26476. const Sd = (r) => {
  26477. const d = Zr({}, r);
  26478. let { data: C, withXSRFToken: o, xsrfHeaderName: y, xsrfCookieName: N, headers: _, auth: U } = d;
  26479. d.headers = _ = Bi.from(_), d.url = gd(bd(d.baseURL, d.url), r.params, r.paramsSerializer), U && _.set(
  26480. "Authorization",
  26481. "Basic " + btoa((U.username || "") + ":" + (U.password ? unescape(encodeURIComponent(U.password)) : ""))
  26482. );
  26483. let G;
  26484. if (Et.isFormData(C)) {
  26485. if (Ni.hasStandardBrowserEnv || Ni.hasStandardBrowserWebWorkerEnv)
  26486. _.setContentType(void 0);
  26487. else if ((G = _.getContentType()) !== !1) {
  26488. const [V, ...F] = G ? G.split(";").map((B) => B.trim()).filter(Boolean) : [];
  26489. _.setContentType([V || "multipart/form-data", ...F].join("; "));
  26490. }
  26491. }
  26492. if (Ni.hasStandardBrowserEnv && (o && Et.isFunction(o) && (o = o(d)), o || o !== !1 && BC(d.url))) {
  26493. const V = y && N && jC.read(N);
  26494. V && _.set(y, V);
  26495. }
  26496. return d;
  26497. }, zC = typeof XMLHttpRequest < "u", XC = zC && function(r) {
  26498. return new Promise(function(C, o) {
  26499. const y = Sd(r);
  26500. let N = y.data;
  26501. const _ = Bi.from(y.headers).normalize();
  26502. let { responseType: U, onUploadProgress: G, onDownloadProgress: V } = y, F, B, j, w, x;
  26503. function f() {
  26504. w && w(), x && x(), y.cancelToken && y.cancelToken.unsubscribe(F), y.signal && y.signal.removeEventListener("abort", F);
  26505. }
  26506. let l = new XMLHttpRequest();
  26507. l.open(y.method.toUpperCase(), y.url, !0), l.timeout = y.timeout;
  26508. function T() {
  26509. if (!l)
  26510. return;
  26511. const R = Bi.from(
  26512. "getAllResponseHeaders" in l && l.getAllResponseHeaders()
  26513. ), b = {
  26514. data: !U || U === "text" || U === "json" ? l.responseText : l.response,
  26515. status: l.status,
  26516. statusText: l.statusText,
  26517. headers: R,
  26518. config: r,
  26519. request: l
  26520. };
  26521. xd(function(v) {
  26522. C(v), f();
  26523. }, function(v) {
  26524. o(v), f();
  26525. }, b), l = null;
  26526. }
  26527. "onloadend" in l ? l.onloadend = T : l.onreadystatechange = function() {
  26528. !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(T);
  26529. }, l.onabort = function() {
  26530. l && (o(new ne("Request aborted", ne.ECONNABORTED, r, l)), l = null);
  26531. }, l.onerror = function() {
  26532. o(new ne("Network Error", ne.ERR_NETWORK, r, l)), l = null;
  26533. }, l.ontimeout = function() {
  26534. let k = y.timeout ? "timeout of " + y.timeout + "ms exceeded" : "timeout exceeded";
  26535. const b = y.transitional || md;
  26536. y.timeoutErrorMessage && (k = y.timeoutErrorMessage), o(new ne(
  26537. k,
  26538. b.clarifyTimeoutError ? ne.ETIMEDOUT : ne.ECONNABORTED,
  26539. r,
  26540. l
  26541. )), l = null;
  26542. }, N === void 0 && _.setContentType(null), "setRequestHeader" in l && Et.forEach(_.toJSON(), function(k, b) {
  26543. l.setRequestHeader(b, k);
  26544. }), Et.isUndefined(y.withCredentials) || (l.withCredentials = !!y.withCredentials), U && U !== "json" && (l.responseType = y.responseType), V && ([j, x] = Mo(V, !0), l.addEventListener("progress", j)), G && l.upload && ([B, w] = Mo(G), l.upload.addEventListener("progress", B), l.upload.addEventListener("loadend", w)), (y.cancelToken || y.signal) && (F = (R) => {
  26545. l && (o(!R || R.type ? new Pn(null, r, l) : R), l.abort(), l = null);
  26546. }, y.cancelToken && y.cancelToken.subscribe(F), y.signal && (y.signal.aborted ? F() : y.signal.addEventListener("abort", F)));
  26547. const O = IC(y.url);
  26548. if (O && Ni.protocols.indexOf(O) === -1) {
  26549. o(new ne("Unsupported protocol " + O + ":", ne.ERR_BAD_REQUEST, r));
  26550. return;
  26551. }
  26552. l.send(N || null);
  26553. });
  26554. }, GC = (r, d) => {
  26555. let C = new AbortController(), o;
  26556. const y = function(G) {
  26557. if (!o) {
  26558. o = !0, _();
  26559. const V = G instanceof Error ? G : this.reason;
  26560. C.abort(V instanceof ne ? V : new Pn(V instanceof Error ? V.message : V));
  26561. }
  26562. };
  26563. let N = d && setTimeout(() => {
  26564. y(new ne(`timeout ${d} of ms exceeded`, ne.ETIMEDOUT));
  26565. }, d);
  26566. const _ = () => {
  26567. r && (N && clearTimeout(N), N = null, r.forEach((G) => {
  26568. G && (G.removeEventListener ? G.removeEventListener("abort", y) : G.unsubscribe(y));
  26569. }), r = null);
  26570. };
  26571. r.forEach((G) => G && G.addEventListener && G.addEventListener("abort", y));
  26572. const { signal: U } = C;
  26573. return U.unsubscribe = _, [U, () => {
  26574. N && clearTimeout(N), N = null;
  26575. }];
  26576. }, HC = GC, FC = function* (r, d) {
  26577. let C = r.byteLength;
  26578. if (!d || C < d) {
  26579. yield r;
  26580. return;
  26581. }
  26582. let o = 0, y;
  26583. for (; o < C; )
  26584. y = o + d, yield r.slice(o, y), o = y;
  26585. }, UC = async function* (r, d, C) {
  26586. for await (const o of r)
  26587. yield* FC(ArrayBuffer.isView(o) ? o : await C(String(o)), d);
  26588. }, Vp = (r, d, C, o, y) => {
  26589. const N = UC(r, d, y);
  26590. let _ = 0, U, G = (V) => {
  26591. U || (U = !0, o && o(V));
  26592. };
  26593. return new ReadableStream({
  26594. async pull(V) {
  26595. try {
  26596. const { done: F, value: B } = await N.next();
  26597. if (F) {
  26598. G(), V.close();
  26599. return;
  26600. }
  26601. let j = B.byteLength;
  26602. if (C) {
  26603. let w = _ += j;
  26604. C(w);
  26605. }
  26606. V.enqueue(new Uint8Array(B));
  26607. } catch (F) {
  26608. throw G(F), F;
  26609. }
  26610. },
  26611. cancel(V) {
  26612. return G(V), N.return();
  26613. }
  26614. }, {
  26615. highWaterMark: 2
  26616. });
  26617. }, Xo = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wd = Xo && typeof ReadableStream == "function", wl = Xo && (typeof TextEncoder == "function" ? ((r) => (d) => r.encode(d))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), Md = (r, ...d) => {
  26618. try {
  26619. return !!r(...d);
  26620. } catch {
  26621. return !1;
  26622. }
  26623. }, VC = wd && Md(() => {
  26624. let r = !1;
  26625. const d = new Request(Ni.origin, {
  26626. body: new ReadableStream(),
  26627. method: "POST",
  26628. get duplex() {
  26629. return r = !0, "half";
  26630. }
  26631. }).headers.has("Content-Type");
  26632. return r && !d;
  26633. }), $p = 64 * 1024, Ml = wd && Md(() => Et.isReadableStream(new Response("").body)), Co = {
  26634. stream: Ml && ((r) => r.body)
  26635. };
  26636. Xo && ((r) => {
  26637. ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
  26638. !Co[d] && (Co[d] = Et.isFunction(r[d]) ? (C) => C[d]() : (C, o) => {
  26639. throw new ne(`Response type '${d}' is not supported`, ne.ERR_NOT_SUPPORT, o);
  26640. });
  26641. });
  26642. })(new Response());
  26643. const $C = async (r) => {
  26644. if (r == null)
  26645. return 0;
  26646. if (Et.isBlob(r))
  26647. return r.size;
  26648. if (Et.isSpecCompliantForm(r))
  26649. return (await new Request(r).arrayBuffer()).byteLength;
  26650. if (Et.isArrayBufferView(r) || Et.isArrayBuffer(r))
  26651. return r.byteLength;
  26652. if (Et.isURLSearchParams(r) && (r = r + ""), Et.isString(r))
  26653. return (await wl(r)).byteLength;
  26654. }, ZC = async (r, d) => {
  26655. const C = Et.toFiniteNumber(r.getContentLength());
  26656. return C ?? $C(d);
  26657. }, KC = Xo && (async (r) => {
  26658. let {
  26659. url: d,
  26660. method: C,
  26661. data: o,
  26662. signal: y,
  26663. cancelToken: N,
  26664. timeout: _,
  26665. onDownloadProgress: U,
  26666. onUploadProgress: G,
  26667. responseType: V,
  26668. headers: F,
  26669. withCredentials: B = "same-origin",
  26670. fetchOptions: j
  26671. } = Sd(r);
  26672. V = V ? (V + "").toLowerCase() : "text";
  26673. let [w, x] = y || N || _ ? HC([y, N], _) : [], f, l;
  26674. const T = () => {
  26675. !f && setTimeout(() => {
  26676. w && w.unsubscribe();
  26677. }), f = !0;
  26678. };
  26679. let O;
  26680. try {
  26681. if (G && VC && C !== "get" && C !== "head" && (O = await ZC(F, o)) !== 0) {
  26682. let S = new Request(d, {
  26683. method: "POST",
  26684. body: o,
  26685. duplex: "half"
  26686. }), v;
  26687. if (Et.isFormData(o) && (v = S.headers.get("content-type")) && F.setContentType(v), S.body) {
  26688. const [h, c] = Hp(
  26689. O,
  26690. Mo(Fp(G))
  26691. );
  26692. o = Vp(S.body, $p, h, c, wl);
  26693. }
  26694. }
  26695. Et.isString(B) || (B = B ? "include" : "omit"), l = new Request(d, {
  26696. ...j,
  26697. signal: w,
  26698. method: C.toUpperCase(),
  26699. headers: F.normalize().toJSON(),
  26700. body: o,
  26701. duplex: "half",
  26702. credentials: B
  26703. });
  26704. let R = await fetch(l);
  26705. const k = Ml && (V === "stream" || V === "response");
  26706. if (Ml && (U || k)) {
  26707. const S = {};
  26708. ["status", "statusText", "headers"].forEach((u) => {
  26709. S[u] = R[u];
  26710. });
  26711. const v = Et.toFiniteNumber(R.headers.get("content-length")), [h, c] = U && Hp(
  26712. v,
  26713. Mo(Fp(U), !0)
  26714. ) || [];
  26715. R = new Response(
  26716. Vp(R.body, $p, h, () => {
  26717. c && c(), k && T();
  26718. }, wl),
  26719. S
  26720. );
  26721. }
  26722. V = V || "text";
  26723. let b = await Co[Et.findKey(Co, V) || "text"](R, r);
  26724. return !k && T(), x && x(), await new Promise((S, v) => {
  26725. xd(S, v, {
  26726. data: b,
  26727. headers: Bi.from(R.headers),
  26728. status: R.status,
  26729. statusText: R.statusText,
  26730. config: r,
  26731. request: l
  26732. });
  26733. });
  26734. } catch (R) {
  26735. throw T(), R && R.name === "TypeError" && /fetch/i.test(R.message) ? Object.assign(
  26736. new ne("Network Error", ne.ERR_NETWORK, r, l),
  26737. {
  26738. cause: R.cause || R
  26739. }
  26740. ) : ne.from(R, R && R.code, r, l);
  26741. }
  26742. }), Cl = {
  26743. http: pC,
  26744. xhr: XC,
  26745. fetch: KC
  26746. };
  26747. Et.forEach(Cl, (r, d) => {
  26748. if (r) {
  26749. try {
  26750. Object.defineProperty(r, "name", { value: d });
  26751. } catch {
  26752. }
  26753. Object.defineProperty(r, "adapterName", { value: d });
  26754. }
  26755. });
  26756. const Zp = (r) => `- ${r}`, JC = (r) => Et.isFunction(r) || r === null || r === !1, Cd = {
  26757. getAdapter: (r) => {
  26758. r = Et.isArray(r) ? r : [r];
  26759. const { length: d } = r;
  26760. let C, o;
  26761. const y = {};
  26762. for (let N = 0; N < d; N++) {
  26763. C = r[N];
  26764. let _;
  26765. if (o = C, !JC(C) && (o = Cl[(_ = String(C)).toLowerCase()], o === void 0))
  26766. throw new ne(`Unknown adapter '${_}'`);
  26767. if (o)
  26768. break;
  26769. y[_ || "#" + N] = o;
  26770. }
  26771. if (!o) {
  26772. const N = Object.entries(y).map(
  26773. ([U, G]) => `adapter ${U} ` + (G === !1 ? "is not supported by the environment" : "is not available in the build")
  26774. );
  26775. let _ = d ? N.length > 1 ? `since :
  26776. ` + N.map(Zp).join(`
  26777. `) : " " + Zp(N[0]) : "as no adapter specified";
  26778. throw new ne(
  26779. "There is no suitable adapter to dispatch the request " + _,
  26780. "ERR_NOT_SUPPORT"
  26781. );
  26782. }
  26783. return o;
  26784. },
  26785. adapters: Cl
  26786. };
  26787. function ul(r) {
  26788. if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
  26789. throw new Pn(null, r);
  26790. }
  26791. function Kp(r) {
  26792. return ul(r), r.headers = Bi.from(r.headers), r.data = pl.call(
  26793. r,
  26794. r.transformRequest
  26795. ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), Cd.getAdapter(r.adapter || eh.adapter)(r).then(function(o) {
  26796. return ul(r), o.data = pl.call(
  26797. r,
  26798. r.transformResponse,
  26799. o
  26800. ), o.headers = Bi.from(o.headers), o;
  26801. }, function(o) {
  26802. return vd(o) || (ul(r), o && o.response && (o.response.data = pl.call(
  26803. r,
  26804. r.transformResponse,
  26805. o.response
  26806. ), o.response.headers = Bi.from(o.response.headers))), Promise.reject(o);
  26807. });
  26808. }
  26809. const kd = "1.7.3", ih = {};
  26810. ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, d) => {
  26811. ih[r] = function(o) {
  26812. return typeof o === r || "a" + (d < 1 ? "n " : " ") + r;
  26813. };
  26814. });
  26815. const Jp = {};
  26816. ih.transitional = function(d, C, o) {
  26817. function y(N, _) {
  26818. return "[Axios v" + kd + "] Transitional option '" + N + "'" + _ + (o ? ". " + o : "");
  26819. }
  26820. return (N, _, U) => {
  26821. if (d === !1)
  26822. throw new ne(
  26823. y(_, " has been removed" + (C ? " in " + C : "")),
  26824. ne.ERR_DEPRECATED
  26825. );
  26826. return C && !Jp[_] && (Jp[_] = !0, console.warn(
  26827. y(
  26828. _,
  26829. " has been deprecated since v" + C + " and will be removed in the near future"
  26830. )
  26831. )), d ? d(N, _, U) : !0;
  26832. };
  26833. };
  26834. function qC(r, d, C) {
  26835. if (typeof r != "object")
  26836. throw new ne("options must be an object", ne.ERR_BAD_OPTION_VALUE);
  26837. const o = Object.keys(r);
  26838. let y = o.length;
  26839. for (; y-- > 0; ) {
  26840. const N = o[y], _ = d[N];
  26841. if (_) {
  26842. const U = r[N], G = U === void 0 || _(U, N, r);
  26843. if (G !== !0)
  26844. throw new ne("option " + N + " must be " + G, ne.ERR_BAD_OPTION_VALUE);
  26845. continue;
  26846. }
  26847. if (C !== !0)
  26848. throw new ne("Unknown option " + N, ne.ERR_BAD_OPTION);
  26849. }
  26850. }
  26851. const kl = {
  26852. assertOptions: qC,
  26853. validators: ih
  26854. }, kr = kl.validators;
  26855. class ko {
  26856. constructor(d) {
  26857. this.defaults = d, this.interceptors = {
  26858. request: new Xp(),
  26859. response: new Xp()
  26860. };
  26861. }
  26862. /**
  26863. * Dispatch a request
  26864. *
  26865. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  26866. * @param {?Object} config
  26867. *
  26868. * @returns {Promise} The Promise to be fulfilled
  26869. */
  26870. async request(d, C) {
  26871. try {
  26872. return await this._request(d, C);
  26873. } catch (o) {
  26874. if (o instanceof Error) {
  26875. let y;
  26876. Error.captureStackTrace ? Error.captureStackTrace(y = {}) : y = new Error();
  26877. const N = y.stack ? y.stack.replace(/^.+\n/, "") : "";
  26878. try {
  26879. o.stack ? N && !String(o.stack).endsWith(N.replace(/^.+\n.+\n/, "")) && (o.stack += `
  26880. ` + N) : o.stack = N;
  26881. } catch {
  26882. }
  26883. }
  26884. throw o;
  26885. }
  26886. }
  26887. _request(d, C) {
  26888. typeof d == "string" ? (C = C || {}, C.url = d) : C = d || {}, C = Zr(this.defaults, C);
  26889. const { transitional: o, paramsSerializer: y, headers: N } = C;
  26890. o !== void 0 && kl.assertOptions(o, {
  26891. silentJSONParsing: kr.transitional(kr.boolean),
  26892. forcedJSONParsing: kr.transitional(kr.boolean),
  26893. clarifyTimeoutError: kr.transitional(kr.boolean)
  26894. }, !1), y != null && (Et.isFunction(y) ? C.paramsSerializer = {
  26895. serialize: y
  26896. } : kl.assertOptions(y, {
  26897. encode: kr.function,
  26898. serialize: kr.function
  26899. }, !0)), C.method = (C.method || this.defaults.method || "get").toLowerCase();
  26900. let _ = N && Et.merge(
  26901. N.common,
  26902. N[C.method]
  26903. );
  26904. N && Et.forEach(
  26905. ["delete", "get", "head", "post", "put", "patch", "common"],
  26906. (x) => {
  26907. delete N[x];
  26908. }
  26909. ), C.headers = Bi.concat(_, N);
  26910. const U = [];
  26911. let G = !0;
  26912. this.interceptors.request.forEach(function(f) {
  26913. typeof f.runWhen == "function" && f.runWhen(C) === !1 || (G = G && f.synchronous, U.unshift(f.fulfilled, f.rejected));
  26914. });
  26915. const V = [];
  26916. this.interceptors.response.forEach(function(f) {
  26917. V.push(f.fulfilled, f.rejected);
  26918. });
  26919. let F, B = 0, j;
  26920. if (!G) {
  26921. const x = [Kp.bind(this), void 0];
  26922. for (x.unshift.apply(x, U), x.push.apply(x, V), j = x.length, F = Promise.resolve(C); B < j; )
  26923. F = F.then(x[B++], x[B++]);
  26924. return F;
  26925. }
  26926. j = U.length;
  26927. let w = C;
  26928. for (B = 0; B < j; ) {
  26929. const x = U[B++], f = U[B++];
  26930. try {
  26931. w = x(w);
  26932. } catch (l) {
  26933. f.call(this, l);
  26934. break;
  26935. }
  26936. }
  26937. try {
  26938. F = Kp.call(this, w);
  26939. } catch (x) {
  26940. return Promise.reject(x);
  26941. }
  26942. for (B = 0, j = V.length; B < j; )
  26943. F = F.then(V[B++], V[B++]);
  26944. return F;
  26945. }
  26946. getUri(d) {
  26947. d = Zr(this.defaults, d);
  26948. const C = bd(d.baseURL, d.url);
  26949. return gd(C, d.params, d.paramsSerializer);
  26950. }
  26951. }
  26952. Et.forEach(["delete", "get", "head", "options"], function(d) {
  26953. ko.prototype[d] = function(C, o) {
  26954. return this.request(Zr(o || {}, {
  26955. method: d,
  26956. url: C,
  26957. data: (o || {}).data
  26958. }));
  26959. };
  26960. });
  26961. Et.forEach(["post", "put", "patch"], function(d) {
  26962. function C(o) {
  26963. return function(N, _, U) {
  26964. return this.request(Zr(U || {}, {
  26965. method: d,
  26966. headers: o ? {
  26967. "Content-Type": "multipart/form-data"
  26968. } : {},
  26969. url: N,
  26970. data: _
  26971. }));
  26972. };
  26973. }
  26974. ko.prototype[d] = C(), ko.prototype[d + "Form"] = C(!0);
  26975. });
  26976. const uo = ko;
  26977. class rh {
  26978. constructor(d) {
  26979. if (typeof d != "function")
  26980. throw new TypeError("executor must be a function.");
  26981. let C;
  26982. this.promise = new Promise(function(N) {
  26983. C = N;
  26984. });
  26985. const o = this;
  26986. this.promise.then((y) => {
  26987. if (!o._listeners)
  26988. return;
  26989. let N = o._listeners.length;
  26990. for (; N-- > 0; )
  26991. o._listeners[N](y);
  26992. o._listeners = null;
  26993. }), this.promise.then = (y) => {
  26994. let N;
  26995. const _ = new Promise((U) => {
  26996. o.subscribe(U), N = U;
  26997. }).then(y);
  26998. return _.cancel = function() {
  26999. o.unsubscribe(N);
  27000. }, _;
  27001. }, d(function(N, _, U) {
  27002. o.reason || (o.reason = new Pn(N, _, U), C(o.reason));
  27003. });
  27004. }
  27005. /**
  27006. * Throws a `CanceledError` if cancellation has been requested.
  27007. */
  27008. throwIfRequested() {
  27009. if (this.reason)
  27010. throw this.reason;
  27011. }
  27012. /**
  27013. * Subscribe to the cancel signal
  27014. */
  27015. subscribe(d) {
  27016. if (this.reason) {
  27017. d(this.reason);
  27018. return;
  27019. }
  27020. this._listeners ? this._listeners.push(d) : this._listeners = [d];
  27021. }
  27022. /**
  27023. * Unsubscribe from the cancel signal
  27024. */
  27025. unsubscribe(d) {
  27026. if (!this._listeners)
  27027. return;
  27028. const C = this._listeners.indexOf(d);
  27029. C !== -1 && this._listeners.splice(C, 1);
  27030. }
  27031. /**
  27032. * Returns an object that contains a new `CancelToken` and a function that, when called,
  27033. * cancels the `CancelToken`.
  27034. */
  27035. static source() {
  27036. let d;
  27037. return {
  27038. token: new rh(function(y) {
  27039. d = y;
  27040. }),
  27041. cancel: d
  27042. };
  27043. }
  27044. }
  27045. const QC = rh;
  27046. function tk(r) {
  27047. return function(C) {
  27048. return r.apply(null, C);
  27049. };
  27050. }
  27051. function ek(r) {
  27052. return Et.isObject(r) && r.isAxiosError === !0;
  27053. }
  27054. const Al = {
  27055. Continue: 100,
  27056. SwitchingProtocols: 101,
  27057. Processing: 102,
  27058. EarlyHints: 103,
  27059. Ok: 200,
  27060. Created: 201,
  27061. Accepted: 202,
  27062. NonAuthoritativeInformation: 203,
  27063. NoContent: 204,
  27064. ResetContent: 205,
  27065. PartialContent: 206,
  27066. MultiStatus: 207,
  27067. AlreadyReported: 208,
  27068. ImUsed: 226,
  27069. MultipleChoices: 300,
  27070. MovedPermanently: 301,
  27071. Found: 302,
  27072. SeeOther: 303,
  27073. NotModified: 304,
  27074. UseProxy: 305,
  27075. Unused: 306,
  27076. TemporaryRedirect: 307,
  27077. PermanentRedirect: 308,
  27078. BadRequest: 400,
  27079. Unauthorized: 401,
  27080. PaymentRequired: 402,
  27081. Forbidden: 403,
  27082. NotFound: 404,
  27083. MethodNotAllowed: 405,
  27084. NotAcceptable: 406,
  27085. ProxyAuthenticationRequired: 407,
  27086. RequestTimeout: 408,
  27087. Conflict: 409,
  27088. Gone: 410,
  27089. LengthRequired: 411,
  27090. PreconditionFailed: 412,
  27091. PayloadTooLarge: 413,
  27092. UriTooLong: 414,
  27093. UnsupportedMediaType: 415,
  27094. RangeNotSatisfiable: 416,
  27095. ExpectationFailed: 417,
  27096. ImATeapot: 418,
  27097. MisdirectedRequest: 421,
  27098. UnprocessableEntity: 422,
  27099. Locked: 423,
  27100. FailedDependency: 424,
  27101. TooEarly: 425,
  27102. UpgradeRequired: 426,
  27103. PreconditionRequired: 428,
  27104. TooManyRequests: 429,
  27105. RequestHeaderFieldsTooLarge: 431,
  27106. UnavailableForLegalReasons: 451,
  27107. InternalServerError: 500,
  27108. NotImplemented: 501,
  27109. BadGateway: 502,
  27110. ServiceUnavailable: 503,
  27111. GatewayTimeout: 504,
  27112. HttpVersionNotSupported: 505,
  27113. VariantAlsoNegotiates: 506,
  27114. InsufficientStorage: 507,
  27115. LoopDetected: 508,
  27116. NotExtended: 510,
  27117. NetworkAuthenticationRequired: 511
  27118. };
  27119. Object.entries(Al).forEach(([r, d]) => {
  27120. Al[d] = r;
  27121. });
  27122. const ik = Al;
  27123. function Ad(r) {
  27124. const d = new uo(r), C = rd(uo.prototype.request, d);
  27125. return Et.extend(C, uo.prototype, d, { allOwnKeys: !0 }), Et.extend(C, d, null, { allOwnKeys: !0 }), C.create = function(y) {
  27126. return Ad(Zr(r, y));
  27127. }, C;
  27128. }
  27129. const Ye = Ad(eh);
  27130. Ye.Axios = uo;
  27131. Ye.CanceledError = Pn;
  27132. Ye.CancelToken = QC;
  27133. Ye.isCancel = vd;
  27134. Ye.VERSION = kd;
  27135. Ye.toFormData = Yo;
  27136. Ye.AxiosError = ne;
  27137. Ye.Cancel = Ye.CanceledError;
  27138. Ye.all = function(d) {
  27139. return Promise.all(d);
  27140. };
  27141. Ye.spread = tk;
  27142. Ye.isAxiosError = ek;
  27143. Ye.mergeConfig = Zr;
  27144. Ye.AxiosHeaders = Bi;
  27145. Ye.formToJSON = (r) => yd(Et.isHTMLForm(r) ? new FormData(r) : r);
  27146. Ye.getAdapter = Cd.getAdapter;
  27147. Ye.HttpStatusCode = ik;
  27148. Ye.default = Ye;
  27149. const rk = Ye;
  27150. let nk = {
  27151. baseURL: "/api",
  27152. timeout: 10 * 60 * 1e3
  27153. };
  27154. const nh = rk.create(nk);
  27155. nh.interceptors.request.use(
  27156. function(r) {
  27157. return r;
  27158. },
  27159. function(r) {
  27160. return console.error(r), Promise.reject(r);
  27161. }
  27162. );
  27163. nh.interceptors.response.use(
  27164. function(r) {
  27165. let d = r.data;
  27166. return r.status !== 200 && console.error("网络异常"), d || console.error("服务器开了个小差"), d.Ret === 408 && console.error(d.Msg), d.Ret === 403 && console.error(d.Msg || "网络异常"), d;
  27167. },
  27168. function(r) {
  27169. return console.error(r), Promise.reject(r);
  27170. }
  27171. );
  27172. const Td = (r, d) => nh.post(r, d), sk = (r) => Td("/chart/detail", r), ok = (r) => Td("/excel/detail", r);
  27173. function Pd(r) {
  27174. if (r.indexOf("?") === -1)
  27175. return {};
  27176. const C = r.split("?")[1].split("&"), o = {};
  27177. return C.forEach((y) => {
  27178. const [N, _] = y.split("=");
  27179. o[N] = decodeURIComponent(_);
  27180. }), o;
  27181. }
  27182. const ak = `@charset "UTF-8";div[data-v-f415cce0]{box-sizing:border-box}.hz-chart-wrap[data-v-f415cce0]{font:initial;page-break-inside:avoid;max-width:1200PX;height:100%;overflow:hidden;position:relative;margin:0 auto;border:1PX solid rgba(0,0,0,.125)!important;background:#fff;border-radius:5PX;display:flex;flex-direction:column;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.hz-chart-wrap .hz-chart-head[data-v-f415cce0]{box-sizing:border-box;background-color:#f2f2f2;border-bottom:1px solid rgba(0,0,0,.125);cursor:pointer;min-height:40PX;display:flex;align-items:center;padding:2PX 10PX}.hz-chart-wrap .hz-chart-head .chart-title[data-v-f415cce0]{width:100%}.hz-chart-wrap .chart-wrapper[data-v-f415cce0]{position:relative;display:flex;height:100%;width:100%}.hz-chart-wrap .chart-wrapper .hz-chart-content[data-v-f415cce0]{width:100%;flex:1}.hz-chart-wrap .chart-wrapper .mark[data-v-f415cce0]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-image:none;background-position:center center;background-repeat:no-repeat;background-size:contain;pointer-events:none;width:80%;height:80%}.hz-chart-wrap .notfound[data-v-f415cce0]{flex:1;overflow:hidden;padding:10PX;color:#777;text-align:center}.hz-chart-wrap .chart-bottom-info[data-v-f415cce0]{padding-right:10PX;padding-bottom:0;padding-left:25PX;display:flex}.hz-chart-wrap .chart-bottom-info .chart-instruction[data-v-f415cce0]{max-width:80%;flex:1;text-align:right;margin-left:auto}.hz-chart-wrap .hz-chart-footer[data-v-f415cce0]{padding-left:25PX;padding-right:10PX;padding-bottom:10PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:1px}.hz-chart-wrap .text_oneLine[data-v-f415cce0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  27183. `, Ed = (r, d) => {
  27184. const C = r.__vccOpts || r;
  27185. for (const [o, y] of d)
  27186. C[o] = y;
  27187. return C;
  27188. }, lk = { class: "hz-chart-head" }, hk = {
  27189. key: 0,
  27190. class: "chart-wrapper"
  27191. }, ck = ["id"], pk = {
  27192. key: 1,
  27193. class: "notfound"
  27194. }, uk = {
  27195. key: 2,
  27196. class: "chart-bottom-info bootom-source"
  27197. }, dk = ["textContent"], fk = {
  27198. __name: "EtaChart.ce",
  27199. props: {
  27200. src: "",
  27201. width: "",
  27202. height: "",
  27203. style: ""
  27204. },
  27205. setup(r) {
  27206. const { chartRender: d, setLimitData: C, isUseSelfLimit: o } = iM(), y = r, N = Pd(y.src), _ = Le(null), U = Le(""), G = Le(null), V = Le(null), F = Le(!1), B = Le(null), j = Le(null), w = Le(null);
  27207. async function x() {
  27208. if (!N.code) {
  27209. F.value = !1;
  27210. return;
  27211. }
  27212. try {
  27213. const l = await sk({
  27214. UniqueCode: N.code
  27215. });
  27216. if (l.Ret !== 200)
  27217. return;
  27218. G.value = l.Data.ChartInfo, V.value = l.Data.ChartInfo.Source === 1 ? l.Data.EdbInfoList : [l.Data.EdbInfoList[0]], U.value = `hz-chart_${N.code}_${(/* @__PURE__ */ new Date()).getTime()}`, f(), F.value = !0, l.Data.ChartInfo.Source === 1 && ![7, 10, 11].includes(l.Data.ChartInfo.ChartType) ? (o.value = !0, C(l.Data)) : o.value = !1, fo(() => {
  27219. d({
  27220. data: l.Data,
  27221. renderId: _.value,
  27222. lang: N.language,
  27223. changeLangIsCheck: !1,
  27224. showChartTitle: !1,
  27225. shouldUseSelfLimit: !0
  27226. }), l.Data.WaterMark && (B.value.style.backgroundImage = `url(${l.Data.WaterMark})`);
  27227. }), fo(() => {
  27228. var T;
  27229. w.value && (w.value.style.maxWidth = ((T = j.value) == null ? void 0 : T.clientWidth) + "px");
  27230. });
  27231. } catch {
  27232. F.value = !1;
  27233. }
  27234. }
  27235. const f = () => {
  27236. N.language = N.fromPage || N.lang || "zh";
  27237. };
  27238. return x(), (l, T) => {
  27239. var O, R, k, b;
  27240. return Je(), qe("div", {
  27241. class: "hz-chart-wrap",
  27242. ref_key: "chartContainer",
  27243. ref: j,
  27244. style: Ar([y.style + ";height:" + y.height + "px", { margin: "0 0 10px 0" }])
  27245. }, [
  27246. ar("header", lk, [
  27247. G.value ? (Je(), qe("span", {
  27248. key: 0,
  27249. class: "chart-title",
  27250. style: Ar(G.value.ChartThemeStyle ? `
  27251. text-align:${JSON.parse(G.value.ChartThemeStyle).titleOptions.align};
  27252. font-size:${JSON.parse(G.value.ChartThemeStyle).titleOptions.style.fontSize}px;
  27253. color:${JSON.parse(G.value.ChartThemeStyle).titleOptions.style.color}
  27254. ` : "")
  27255. }, yn(X0(N).language === "en" ? G.value.ChartNameEn : G.value.ChartName), 5)) : qn("", !0)
  27256. ]),
  27257. F.value ? (Je(), qe("div", hk, [
  27258. ar("div", {
  27259. id: U.value,
  27260. ref_key: "chartContentEl",
  27261. ref: _,
  27262. class: "hz-chart-content"
  27263. }, null, 8, ck),
  27264. ar("div", {
  27265. class: "mark",
  27266. ref_key: "markDom",
  27267. ref: B
  27268. }, null, 512)
  27269. ])) : (Je(), qe("div", pk, " 哎吆,你的图飞了,赶快去找管理员救命吧~ ")),
  27270. (O = G.value) != null && O.Instructions && JSON.parse((R = G.value) == null ? void 0 : R.Instructions).isShow ? (Je(), qe("div", uk, [
  27271. ar("div", {
  27272. class: "chart-instruction text_oneLine",
  27273. textContent: yn(JSON.parse(G.value.Instructions).text),
  27274. style: Ar(`
  27275. color: ${JSON.parse(G.value.Instructions).color};
  27276. font-size: ${JSON.parse(G.value.Instructions).fontSize}px
  27277. `)
  27278. }, null, 12, dk)
  27279. ])) : qn("", !0),
  27280. (k = G.value) != null && k.SourcesFrom && ((b = JSON.parse(G.value.SourcesFrom)) != null && b.isShow) ? (Je(), qe("div", {
  27281. key: 3,
  27282. class: "hz-chart-footer",
  27283. ref_key: "chartFooter",
  27284. ref: w,
  27285. style: Ar(`
  27286. color: ${JSON.parse(G.value.SourcesFrom).color};
  27287. font-size: ${JSON.parse(G.value.SourcesFrom).fontSize}px;
  27288. `)
  27289. }, [
  27290. qp(" source:"),
  27291. ar("em", null, yn(JSON.parse(G.value.SourcesFrom).text), 1)
  27292. ], 4)) : qn("", !0)
  27293. ], 4);
  27294. };
  27295. }
  27296. }, gk = /* @__PURE__ */ Ed(fk, [["styles", [ak]], ["__scopeId", "data-v-f415cce0"]]), mk = `@charset "UTF-8";.sheet-show-wrapper[data-v-98ab6c2e]{max-width:1200PX;overflow:hidden;position:relative;margin:0 auto;background:#fff;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.sheet-show-wrapper .title[data-v-98ab6c2e]{font-size:17PX;font-weight:400;padding:0 10PX;margin:0 0 8PX}.sheet-show-wrapper .table-wrapper[data-v-98ab6c2e]{max-width:calc(100vw - 20PX);margin:0 auto;overflow:auto}.sheet-show-wrapper .table-wrapper table[data-v-98ab6c2e]{width:100%;font-size:14PX;color:#333;table-layout:auto}.sheet-show-wrapper .table-wrapper table td[data-v-98ab6c2e],.sheet-show-wrapper .table-wrapper table th[data-v-98ab6c2e]{width:auto;height:auto;padding:.4em 0;word-break:break-all;word-wrap:break-word;line-height:1.2em;border:1PX solid #dcdfe6;text-align:center;background-color:#fff;border-left:none;border-top:none}.sheet-show-wrapper .table-wrapper table td[data-v-98ab6c2e]:first-child,.sheet-show-wrapper .table-wrapper table th[data-v-98ab6c2e]:first-child{border-left:1PX solid #dcdfe6}.sheet-show-wrapper .table-wrapper table .data-cell[data-v-98ab6c2e]{color:#333}.sheet-show-wrapper .table-wrapper table .data-cell.one-bg[data-v-98ab6c2e]{background-color:#efeef1}.sheet-show-wrapper .table-wrapper table .data-cell.two-bg[data-v-98ab6c2e]{background-color:#fff}.sheet-show-wrapper .table-wrapper table .thead-sticky[data-v-98ab6c2e]{position:sticky;top:0}.sheet-show-wrapper .table-wrapper table .head-column[data-v-98ab6c2e]{background-color:#505b78;color:#fff}.sheet-show-wrapper .table-wrapper table .split-word span[data-v-98ab6c2e]{display:inline}.sheet-show-wrapper .sheet-source[data-v-98ab6c2e]{margin-top:5PX;min-width:150PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  27297. `, yk = { class: "table-wrapper" }, vk = ["colspan", "rowspan"], xk = {
  27298. key: 0,
  27299. class: "split-word"
  27300. }, bk = { key: 1 }, Sk = {
  27301. __name: "EtaTable.ce",
  27302. props: {
  27303. src: "",
  27304. width: "",
  27305. height: "",
  27306. style: ""
  27307. },
  27308. setup(r) {
  27309. const C = Pd(r.src), o = Le({}), y = Le(!1), N = Le(null), _ = Le(null), U = (V) => JSON.stringify({
  27310. isShow: !0,
  27311. text: V,
  27312. color: "#606266",
  27313. fontSize: 9
  27314. });
  27315. async function G() {
  27316. const V = await ok({ UniqueCode: C.code, FromScene: Number(C.fromScene || "") });
  27317. V.Ret === 200 && (o.value = V.Data, o.value.SourcesFrom || (o.value.SourcesFrom = V.Data.ExcelSource ? U(V.Data.ExcelSource || "") : ""), y.value = !0, fo(() => {
  27318. var F;
  27319. console.log(N.value.clientWidth), _.value && (_.value.style.maxWidth = ((F = N.value) == null ? void 0 : F.clientWidth) + "px");
  27320. }));
  27321. }
  27322. return G(), (V, F) => {
  27323. var B, j;
  27324. return y.value ? (Je(), qe("div", {
  27325. key: 0,
  27326. class: "sheet-show-wrapper",
  27327. ref_key: "sheetRef",
  27328. ref: N
  27329. }, [
  27330. ar("div", yk, [
  27331. ar("table", {
  27332. cellpadding: "0",
  27333. cellspacing: "0",
  27334. style: Ar(`font-size: ${((B = o.value.Config) == null ? void 0 : B.FontSize) || 12}PX`)
  27335. }, [
  27336. ar("tbody", null, [
  27337. (Je(!0), qe(tl, null, el((j = o.value.TableInfo) == null ? void 0 : j.TableDataList, (w, x) => (Je(), qe("tr", { key: x }, [
  27338. (Je(!0), qe(tl, null, el(w, (f, l) => (Je(), qe("td", {
  27339. class: G0(["data-cell", {
  27340. "one-bg": (x + 1) % 2 && x > 0,
  27341. "tow-bg": (x + 1) % 2 !== 0 && x > 0,
  27342. "head-column": x === 0
  27343. }]),
  27344. key: l,
  27345. colspan: f.mc.cs || 1,
  27346. rowspan: f.mc.rs || 1,
  27347. style: Ar(`
  27348. color: ${f.fc};
  27349. font-weight: ${f.bl ? "bold" : "normal"};
  27350. font-style: ${f.it ? "italic" : "normal"};
  27351. background: ${f.bg};
  27352. `)
  27353. }, [
  27354. f.ct.s ? (Je(), qe("div", xk, [
  27355. (Je(!0), qe(tl, null, el(f.ct.s, (T, O) => (Je(), qe("span", {
  27356. key: `${x}_${l}_${O}`,
  27357. style: Ar(`
  27358. color: ${T.fc};
  27359. font-weight: ${T.bl ? "bold" : "normal"};
  27360. font-style: ${T.it ? "italic" : "normal"};
  27361. `)
  27362. }, yn(T.v), 5))), 128))
  27363. ])) : (Je(), qe("div", bk, yn(f.m), 1))
  27364. ], 14, vk))), 128))
  27365. ]))), 128))
  27366. ])
  27367. ], 4)
  27368. ]),
  27369. o.value.SourcesFrom && JSON.parse(o.value.SourcesFrom).isShow ? (Je(), qe("div", {
  27370. key: 0,
  27371. class: "sheet-source",
  27372. ref_key: "sheetFooter",
  27373. ref: _,
  27374. style: Ar(`
  27375. color: ${JSON.parse(o.value.SourcesFrom).color};
  27376. font-size: ${JSON.parse(o.value.SourcesFrom).fontSize}px;
  27377. `)
  27378. }, [
  27379. qp(" source:"),
  27380. ar("em", null, yn(JSON.parse(o.value.SourcesFrom).text), 1)
  27381. ], 4)) : qn("", !0)
  27382. ], 512)) : qn("", !0);
  27383. };
  27384. }
  27385. }, wk = /* @__PURE__ */ Ed(Sk, [["styles", [mk]], ["__scopeId", "data-v-98ab6c2e"]]), Mk = Qp(gk), Ck = Qp(wk);
  27386. function Ak() {
  27387. customElements.define("eta-chart", Mk), customElements.define("eta-table", Ck);
  27388. }
  27389. export {
  27390. Ak as registerEtaComp
  27391. };