eta_comp.js 1.5 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089
  1. import { ref as Le, reactive as C0, nextTick as fo, openBlock as Je, createElementBlock as qe, normalizeStyle as Pr, createElementVNode as ar, toDisplayString as yn, unref as k0, createCommentVNode as Kn, createTextVNode as Up, Fragment as Qa, renderList as tl, normalizeClass as A0, defineCustomElement as Vp } 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. }, T0 = {
  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. }, Mn = {
  162. tickPosition: "inside",
  163. lineColor: "#bfbfbf",
  164. tickColor: "#bfbfbf",
  165. tickLength: 5,
  166. ordinal: !1,
  167. type: "linear"
  168. }, fr = {
  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. }, $p = {
  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. }, P0 = {
  197. 年: "Y",
  198. 季: "Q",
  199. 月: "M",
  200. 周: "W",
  201. 天: "D"
  202. }, Ep = {
  203. 年: "Year",
  204. 季: "Season",
  205. 月: "Month",
  206. 周: "Week",
  207. 天: "Day"
  208. };
  209. var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ul = {}, E0 = {
  210. get exports() {
  211. return ul;
  212. },
  213. set exports(r) {
  214. ul = r;
  215. }
  216. };
  217. (function(r) {
  218. (function(f, E) {
  219. r.exports ? (E.default = E, r.exports = f.document ? E(f) : E) : (f.Highcharts && f.Highcharts.error(16, !0), f.Highcharts = E(f));
  220. })(typeof window < "u" ? window : Fr, function(f) {
  221. function E(y, j, I, Z) {
  222. y.hasOwnProperty(j) || (y[j] = Z.apply(null, I));
  223. }
  224. var l = {};
  225. return E(l, "Core/Globals.js", [], function() {
  226. var y = typeof f < "u" ? f : typeof window < "u" ? window : {}, j;
  227. return function(I) {
  228. I.SVG_NS = "http://www.w3.org/2000/svg", I.product = "Highcharts", I.version = "9.3.3", I.win = y, I.doc = I.win.document, I.svg = I.doc && I.doc.createElementNS && !!I.doc.createElementNS(I.SVG_NS, "svg").createSVGRect, I.userAgent = I.win.navigator && I.win.navigator.userAgent || "", I.isChrome = I.userAgent.indexOf("Chrome") !== -1, I.isFirefox = I.userAgent.indexOf("Firefox") !== -1, I.isMS = /(edge|msie|trident)/i.test(I.userAgent) && !I.win.opera, I.isSafari = !I.isChrome && I.userAgent.indexOf("Safari") !== -1, I.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(I.userAgent), I.isWebKit = I.userAgent.indexOf("AppleWebKit") !== -1, I.deg2rad = 2 * Math.PI / 360, I.hasBidiBug = I.isFirefox && 4 > parseInt(I.userAgent.split("Firefox/")[1], 10), I.hasTouch = !!I.win.TouchEvent, I.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], I.noop = function() {
  229. }, I.supportsPassiveEvents = function() {
  230. var Z = !1;
  231. if (!I.isMS) {
  232. var H = Object.defineProperty({}, "passive", { get: function() {
  233. Z = !0;
  234. } });
  235. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  236. "testPassive",
  237. I.noop,
  238. H
  239. ), I.win.removeEventListener("testPassive", I.noop, H));
  240. }
  241. return Z;
  242. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  243. }(j || (j = {})), j;
  244. }), E(l, "Core/Utilities.js", [l["Core/Globals.js"]], function(y) {
  245. function j(t, s, n, T) {
  246. var _ = s ? "Highcharts error" : "Highcharts warning";
  247. t === 32 && (t = _ + ": Deprecated member");
  248. var D = S(t), W = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  249. if (typeof T < "u") {
  250. var P = "";
  251. D && (W += "?"), b(T, function(X, g) {
  252. P += `
  253. - ` + g + ": " + X, D && (W += encodeURI(g) + "=" + encodeURI(X));
  254. }), W += P;
  255. }
  256. x(y, "displayError", { chart: n, code: t, message: W, params: T }, function() {
  257. if (s)
  258. throw Error(W);
  259. p.console && j.messages.indexOf(W) === -1 && console.warn(W);
  260. }), j.messages.push(W);
  261. }
  262. function I(t, s) {
  263. var n = {};
  264. return b(t, function(T, _) {
  265. F(t[_], !0) && !t.nodeType && s[_] ? (T = I(t[_], s[_]), Object.keys(T).length && (n[_] = T)) : (F(t[_]) || t[_] !== s[_]) && (n[_] = t[_]);
  266. }), n;
  267. }
  268. function Z(t, s) {
  269. return parseInt(t, s || 10);
  270. }
  271. function H(t) {
  272. return typeof t == "string";
  273. }
  274. function U(t) {
  275. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  276. }
  277. function F(t, s) {
  278. return !!t && typeof t == "object" && (!s || !U(t));
  279. }
  280. function N(t) {
  281. return F(t) && typeof t.nodeType == "number";
  282. }
  283. function R(t) {
  284. var s = t && t.constructor;
  285. return !(!F(t, !0) || N(t) || !s || !s.name || s.name === "Object");
  286. }
  287. function S(t) {
  288. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  289. }
  290. function v(t) {
  291. return typeof t < "u" && t !== null;
  292. }
  293. function d(t, s, n) {
  294. var T;
  295. return H(s) ? v(n) ? t.setAttribute(s, n) : t && t.getAttribute && ((T = t.getAttribute(s)) || s !== "class" || (T = t.getAttribute(s + "Name"))) : b(s, function(_, D) {
  296. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  297. }), T;
  298. }
  299. function u(t, s) {
  300. var n;
  301. t || (t = {});
  302. for (n in s)
  303. t[n] = s[n];
  304. return t;
  305. }
  306. function A() {
  307. for (var t = arguments, s = t.length, n = 0; n < s; n++) {
  308. var T = t[n];
  309. if (typeof T < "u" && T !== null)
  310. return T;
  311. }
  312. }
  313. function O(t, s) {
  314. y.isMS && !y.svg && s && typeof s.opacity < "u" && (s.filter = "alpha(opacity=" + 100 * s.opacity + ")"), u(t.style, s);
  315. }
  316. function B(t, s) {
  317. return 1e14 < t ? t : parseFloat(t.toPrecision(s || 14));
  318. }
  319. function C(t, s, n) {
  320. var T = y.getStyle || C;
  321. if (s === "width")
  322. 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 - (T(t, "padding-left", !0) || 0) - (T(t, "padding-right", !0) || 0));
  323. if (s === "height")
  324. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (T(t, "padding-top", !0) || 0) - (T(t, "padding-bottom", !0) || 0));
  325. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  326. var _ = t.getPropertyValue(s);
  327. A(n, s !== "opacity") && (_ = Z(_));
  328. }
  329. return _;
  330. }
  331. function b(t, s, n) {
  332. for (var T in t)
  333. Object.hasOwnProperty.call(t, T) && s.call(n || t[T], t[T], T, t);
  334. }
  335. function w(t, s, n) {
  336. function T(P, X) {
  337. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  338. g && g.call(t, P, X, !1);
  339. }
  340. function _(P) {
  341. var X;
  342. if (t.nodeName) {
  343. if (s) {
  344. var g = {};
  345. g[s] = !0;
  346. } else
  347. g = P;
  348. b(g, function(m, L) {
  349. if (P[L])
  350. for (X = P[L].length; X--; )
  351. T(L, P[L][X].fn);
  352. });
  353. }
  354. }
  355. var D = typeof t == "function" && t.prototype || t;
  356. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  357. var W = D.hcEvents;
  358. s ? (D = W[s] || [], n ? (W[s] = D.filter(function(P) {
  359. return n !== P.fn;
  360. }), T(s, n)) : (_(W), W[s] = [])) : (_(W), delete D.hcEvents);
  361. }
  362. }
  363. function x(t, s, n, T) {
  364. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  365. var _ = c.createEvent("Events");
  366. _.initEvent(s, !0, !0), n = u(_, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(s, n);
  367. } else if (t.hcEvents) {
  368. n.target || u(n, { preventDefault: function() {
  369. n.defaultPrevented = !0;
  370. }, target: t, type: s }), _ = [];
  371. for (var D = t, W = !1; D.hcEvents; )
  372. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[s] && (_.length && (W = !0), _.unshift.apply(_, D.hcEvents[s])), D = Object.getPrototypeOf(D);
  373. W && _.sort(function(P, X) {
  374. return P.order - X.order;
  375. }), _.forEach(function(P) {
  376. P.fn.call(t, n) === !1 && n.preventDefault();
  377. });
  378. }
  379. T && !n.defaultPrevented && T.call(t, n);
  380. }
  381. var a = y.charts, c = y.doc, p = y.win;
  382. (j || (j = {})).messages = [], Math.easeInOutSine = function(t) {
  383. return -0.5 * (Math.cos(Math.PI * t) - 1);
  384. };
  385. var i = Array.prototype.find ? function(t, s) {
  386. return t.find(s);
  387. } : function(t, s) {
  388. var n, T = t.length;
  389. for (n = 0; n < T; n++)
  390. if (s(t[n], n))
  391. return t[n];
  392. };
  393. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, s) {
  394. y[s] = function(n) {
  395. var T;
  396. return j(32, !1, void 0, (T = {}, T["Highcharts." + s] = "use Array." + t, T)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  397. };
  398. });
  399. var h, o = function() {
  400. var t = Math.random().toString(36).substring(2, 9) + "-", s = 0;
  401. return function() {
  402. return "highcharts-" + (h ? "" : t) + s++;
  403. };
  404. }();
  405. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  406. var t = [].slice.call(arguments);
  407. if (this[0])
  408. return t[0] ? (new y[H(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[d(this[0], "data-highcharts-chart")];
  409. }), i = { addEvent: function(t, s, n, T) {
  410. T === void 0 && (T = {});
  411. var _ = typeof t == "function" && t.prototype || t;
  412. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  413. var D = t.addEventListener || y.addEventListenerPolyfill;
  414. return D && D.call(t, s, n, y.supportsPassiveEvents ? { passive: T.passive === void 0 ? s.indexOf("touch") !== -1 : T.passive, capture: !1 } : !1), _[s] || (_[s] = []), _[s].push({ fn: n, order: typeof T.order == "number" ? T.order : 1 / 0 }), _[s].sort(function(W, P) {
  415. return W.order - P.order;
  416. }), function() {
  417. w(t, s, n);
  418. };
  419. }, arrayMax: function(t) {
  420. for (var s = t.length, n = t[0]; s--; )
  421. t[s] > n && (n = t[s]);
  422. return n;
  423. }, arrayMin: function(t) {
  424. for (var s = t.length, n = t[0]; s--; )
  425. t[s] < n && (n = t[s]);
  426. return n;
  427. }, attr: d, clamp: function(t, s, n) {
  428. return t > s ? t < n ? t : n : s;
  429. }, cleanRecursively: I, clearTimeout: function(t) {
  430. v(t) && clearTimeout(t);
  431. }, correctFloat: B, createElement: function(t, s, n, T, _) {
  432. return t = c.createElement(t), s && u(t, s), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), T && T.appendChild(t), t;
  433. }, css: O, defined: v, destroyObjectProperties: function(t, s) {
  434. b(t, function(n, T) {
  435. n && n !== s && n.destroy && n.destroy(), delete t[T];
  436. });
  437. }, discardElement: function(t) {
  438. t && t.parentElement && t.parentElement.removeChild(t);
  439. }, erase: function(t, s) {
  440. for (var n = t.length; n--; )
  441. if (t[n] === s) {
  442. t.splice(n, 1);
  443. break;
  444. }
  445. }, error: j, extend: u, extendClass: function(t, s) {
  446. var n = function() {
  447. };
  448. return n.prototype = new t(), u(n.prototype, s), n;
  449. }, find: i, fireEvent: x, getMagnitude: function(t) {
  450. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  451. }, getNestedProperty: function(t, s) {
  452. for (t = t.split("."); t.length && v(s); ) {
  453. var n = t.shift();
  454. if (typeof n > "u" || n === "__proto__" || (s = s[n], !v(s) || typeof s == "function" || typeof s.nodeType == "number" || s === p))
  455. return;
  456. }
  457. return s;
  458. }, getStyle: C, inArray: function(t, s, n) {
  459. return j(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), s.indexOf(t, n);
  460. }, isArray: U, isClass: R, isDOMElement: N, isFunction: function(t) {
  461. return typeof t == "function";
  462. }, isNumber: S, isObject: F, isString: H, keys: function(t) {
  463. return j(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  464. }, merge: function() {
  465. var t, s = arguments, n = {}, T = function(D, W) {
  466. return typeof D != "object" && (D = {}), b(W, function(P, X) {
  467. X !== "__proto__" && X !== "constructor" && (!F(P, !0) || R(P) || N(P) ? D[X] = W[X] : D[X] = T(D[X] || {}, P));
  468. }), D;
  469. };
  470. s[0] === !0 && (n = s[1], s = Array.prototype.slice.call(s, 2));
  471. var _ = s.length;
  472. for (t = 0; t < _; t++)
  473. n = T(n, s[t]);
  474. return n;
  475. }, normalizeTickInterval: function(t, s, n, T, _) {
  476. var D = t;
  477. n = A(n, 1);
  478. var W = t / n;
  479. for (s || (s = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], T === !1 && (n === 1 ? s = s.filter(function(P) {
  480. return P % 1 === 0;
  481. }) : 0.1 >= n && (s = [1 / n]))), T = 0; T < s.length && (D = s[T], !(_ && D * n >= t || !_ && W <= (s[T] + (s[T + 1] || s[T])) / 2)); T++)
  482. ;
  483. return D = B(D * n, -Math.round(Math.log(1e-3) / Math.LN10));
  484. }, objectEach: b, offset: function(t) {
  485. var s = c.documentElement;
  486. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || s.scrollTop) - (s.clientTop || 0), left: t.left + (p.pageXOffset || s.scrollLeft) - (s.clientLeft || 0), width: t.width, height: t.height };
  487. }, pad: function(t, s, n) {
  488. return Array((s || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  489. }, pick: A, pInt: Z, relativeLength: function(t, s, n) {
  490. return /%$/.test(t) ? s * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  491. }, removeEvent: w, splat: function(t) {
  492. return U(t) ? t : [t];
  493. }, stableSort: function(t, s) {
  494. var n = t.length, T, _;
  495. for (_ = 0; _ < n; _++)
  496. t[_].safeI = _;
  497. for (t.sort(function(D, W) {
  498. return T = s(D, W), T === 0 ? D.safeI - W.safeI : T;
  499. }), _ = 0; _ < n; _++)
  500. delete t[_].safeI;
  501. }, syncTimeout: function(t, s, n) {
  502. return 0 < s ? setTimeout(t, s, n) : (t.call(0, n), -1);
  503. }, timeUnits: {
  504. millisecond: 1,
  505. second: 1e3,
  506. minute: 6e4,
  507. hour: 36e5,
  508. day: 864e5,
  509. week: 6048e5,
  510. month: 24192e5,
  511. year: 314496e5
  512. }, uniqueKey: o, useSerialIds: function(t) {
  513. return h = A(t, h);
  514. }, wrap: function(t, s, n) {
  515. var T = t[s];
  516. t[s] = function() {
  517. var _ = Array.prototype.slice.call(arguments), D = arguments, W = this;
  518. return W.proceed = function() {
  519. T.apply(W, arguments.length ? arguments : D);
  520. }, _.unshift(T), _ = n.apply(this, _), W.proceed = null, _;
  521. };
  522. } }, i;
  523. }), E(l, "Core/Chart/ChartDefaults.js", [], function() {
  524. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  525. 10,
  526. 10,
  527. 15,
  528. 10
  529. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  530. }), E(l, "Core/Color/Color.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  531. var I = j.isNumber, Z = j.merge, H = j.pInt;
  532. return j = function() {
  533. function U(F) {
  534. this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
  535. var N = y.Color;
  536. if (N && N !== U)
  537. return new N(F);
  538. if (!(this instanceof U))
  539. return new U(F);
  540. this.init(F);
  541. }
  542. return U.parse = function(F) {
  543. return F ? new U(F) : U.None;
  544. }, U.prototype.init = function(F) {
  545. var N;
  546. if (typeof F == "object" && typeof F.stops < "u")
  547. this.stops = F.stops.map(function(d) {
  548. return new U(d[1]);
  549. });
  550. else if (typeof F == "string") {
  551. if (this.input = F = U.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
  552. var R = F.length, S = parseInt(F.substr(1), 16);
  553. R === 7 ? N = [(S & 16711680) >> 16, (S & 65280) >> 8, S & 255, 1] : R === 4 && (N = [(S & 3840) >> 4 | (S & 3840) >> 8, (S & 240) >> 4 | S & 240, (S & 15) << 4 | S & 15, 1]);
  554. }
  555. if (!N)
  556. for (S = U.parsers.length; S-- && !N; ) {
  557. var v = U.parsers[S];
  558. (R = v.regex.exec(F)) && (N = v.parse(R));
  559. }
  560. }
  561. N && (this.rgba = N);
  562. }, U.prototype.get = function(F) {
  563. var N = this.input, R = this.rgba;
  564. if (typeof N == "object" && typeof this.stops < "u") {
  565. var S = Z(N);
  566. return S.stops = [].slice.call(S.stops), this.stops.forEach(function(v, d) {
  567. S.stops[d] = [S.stops[d][0], v.get(F)];
  568. }), S;
  569. }
  570. return R && I(R[0]) ? F === "rgb" || !F && R[3] === 1 ? "rgb(" + R[0] + "," + R[1] + "," + R[2] + ")" : F === "a" ? "" + R[3] : "rgba(" + R.join(",") + ")" : N;
  571. }, U.prototype.brighten = function(F) {
  572. var N = this.rgba;
  573. if (this.stops)
  574. this.stops.forEach(function(S) {
  575. S.brighten(F);
  576. });
  577. else if (I(F) && F !== 0)
  578. for (var R = 0; 3 > R; R++)
  579. N[R] += H(255 * F), 0 > N[R] && (N[R] = 0), 255 < N[R] && (N[R] = 255);
  580. return this;
  581. }, U.prototype.setOpacity = function(F) {
  582. return this.rgba[3] = F, this;
  583. }, U.prototype.tweenTo = function(F, N) {
  584. var R = this.rgba, S = F.rgba;
  585. return !I(R[0]) || !I(S[0]) ? F.input || "none" : (F = S[3] !== 1 || R[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(S[0] + (R[0] - S[0]) * (1 - N)) + "," + Math.round(S[1] + (R[1] - S[1]) * (1 - N)) + "," + Math.round(S[2] + (R[2] - S[2]) * (1 - N)) + (F ? "," + (S[3] + (R[3] - S[3]) * (1 - N)) : "") + ")");
  586. }, U.names = { white: "#ffffff", black: "#000000" }, U.parsers = [{
  587. 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*\)/,
  588. parse: function(F) {
  589. return [H(F[1]), H(F[2]), H(F[3]), parseFloat(F[4], 10)];
  590. }
  591. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
  592. return [H(F[1]), H(F[2]), H(F[3]), 1];
  593. } }], U.None = new U(""), U;
  594. }(), j;
  595. }), E(l, "Core/Color/Palettes.js", [], function() {
  596. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  597. }), E(l, "Core/Time.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  598. var I = y.win, Z = j.defined, H = j.error, U = j.extend, F = j.isObject, N = j.merge, R = j.objectEach, S = j.pad, v = j.pick, d = j.splat, u = j.timeUnits, A = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  599. return j = function() {
  600. function B(C) {
  601. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(C);
  602. }
  603. return B.prototype.get = function(C, b) {
  604. if (this.variableTimezone || this.timezoneOffset) {
  605. var w = b.getTime(), x = w - this.getTimezoneOffset(b);
  606. return b.setTime(x), C = b["getUTC" + C](), b.setTime(w), C;
  607. }
  608. return this.useUTC ? b["getUTC" + C]() : b["get" + C]();
  609. }, B.prototype.set = function(C, b, w) {
  610. if (this.variableTimezone || this.timezoneOffset) {
  611. if (C === "Milliseconds" || C === "Seconds" || C === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  612. return b["setUTC" + C](w);
  613. var x = this.getTimezoneOffset(b);
  614. return x = b.getTime() - x, b.setTime(x), b["setUTC" + C](w), C = this.getTimezoneOffset(b), x = b.getTime() + C, b.setTime(x);
  615. }
  616. return this.useUTC || A && C === "FullYear" ? b["setUTC" + C](w) : b["set" + C](w);
  617. }, B.prototype.update = function(C) {
  618. var b = v(C && C.useUTC, !0);
  619. this.options = C = N(!0, this.options || {}, C), this.Date = C.Date || I.Date || Date, this.timezoneOffset = (this.useUTC = b) && C.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = b && !(!C.getTimezoneOffset && !C.timezone);
  620. }, B.prototype.makeTime = function(C, b, w, x, a, c) {
  621. if (this.useUTC) {
  622. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  623. p += i;
  624. var h = this.getTimezoneOffset(p);
  625. i !== h ? p += h - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  626. } else
  627. p = new this.Date(C, b, v(w, 1), v(x, 0), v(a, 0), v(c, 0)).getTime();
  628. return p;
  629. }, B.prototype.timezoneOffsetFunction = function() {
  630. var C = this, b = this.options, w = b.getTimezoneOffset, x = b.moment || I.moment;
  631. if (!this.useUTC)
  632. return function(a) {
  633. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  634. };
  635. if (b.timezone) {
  636. if (x)
  637. return function(a) {
  638. return 6e4 * -x.tz(a, b.timezone).utcOffset();
  639. };
  640. H(25);
  641. }
  642. return this.useUTC && w ? function(a) {
  643. return 6e4 * w(a.valueOf());
  644. } : function() {
  645. return 6e4 * (C.timezoneOffset || 0);
  646. };
  647. }, B.prototype.dateFormat = function(C, b, w) {
  648. if (!Z(b) || isNaN(b))
  649. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  650. C = v(C, "%Y-%m-%d %H:%M:%S");
  651. var x = this, a = new this.Date(b), c = this.get("Hours", a), p = this.get("Day", a), i = this.get("Date", a), h = this.get("Month", a), o = this.get("FullYear", a), t = y.defaultOptions.lang, s = t && t.weekdays, n = t && t.shortWeekdays;
  652. return a = U({ a: n ? n[p] : s[p].substr(0, 3), A: s[p], d: S(i), e: S(i, 2, " "), w: p, b: t.shortMonths[h], B: t.months[h], m: S(h + 1), o: h + 1, y: o.toString().substr(2, 2), Y: o, H: S(c), k: c, I: S(c % 12 || 12), l: c % 12 || 12, M: S(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: S(a.getSeconds()), L: S(Math.floor(b % 1e3), 3) }, y.dateFormats), R(a, function(T, _) {
  653. for (; C.indexOf("%" + _) !== -1; )
  654. C = C.replace("%" + _, typeof T == "function" ? T.call(x, b) : T);
  655. }), w ? C.substr(0, 1).toUpperCase() + C.substr(1) : C;
  656. }, B.prototype.resolveDTLFormat = function(C) {
  657. return F(C, !0) ? C : (C = d(C), { main: C[0], from: C[1], to: C[2] });
  658. }, B.prototype.getTimeTicks = function(C, b, w, x) {
  659. var a = this, c = [], p = {}, i = new a.Date(b), h = C.unitRange, o = C.count || 1, t;
  660. if (x = v(x, 1), Z(b)) {
  661. if (a.set(
  662. "Milliseconds",
  663. i,
  664. h >= u.second ? 0 : o * Math.floor(a.get("Milliseconds", i) / o)
  665. ), h >= u.second && a.set("Seconds", i, h >= u.minute ? 0 : o * Math.floor(a.get("Seconds", i) / o)), h >= u.minute && a.set("Minutes", i, h >= u.hour ? 0 : o * Math.floor(a.get("Minutes", i) / o)), h >= u.hour && a.set("Hours", i, h >= u.day ? 0 : o * Math.floor(a.get("Hours", i) / o)), h >= u.day && a.set("Date", i, h >= u.month ? 1 : Math.max(1, o * Math.floor(a.get("Date", i) / o))), h >= u.month) {
  666. a.set("Month", i, h >= u.year ? 0 : o * Math.floor(a.get("Month", i) / o));
  667. var s = a.get("FullYear", i);
  668. }
  669. h >= u.year && a.set(
  670. "FullYear",
  671. i,
  672. s - s % o
  673. ), h === u.week && (s = a.get("Day", i), a.set("Date", i, a.get("Date", i) - s + x + (s < x ? -7 : 0))), s = a.get("FullYear", i), x = a.get("Month", i);
  674. var n = a.get("Date", i), T = a.get("Hours", i);
  675. for (b = i.getTime(), !a.variableTimezone && a.useUTC || !Z(w) || (t = w - b > 4 * u.month || a.getTimezoneOffset(b) !== a.getTimezoneOffset(w)), b = i.getTime(), i = 1; b < w; )
  676. c.push(b), b = h === u.year ? a.makeTime(s + i * o, 0) : h === u.month ? a.makeTime(s, x + i * o) : !t || h !== u.day && h !== u.week ? t && h === u.hour && 1 < o ? a.makeTime(s, x, n, T + i * o) : b + h * o : a.makeTime(s, x, n + i * o * (h === u.day ? 1 : 7)), i++;
  677. c.push(b), h <= u.hour && 1e4 > c.length && c.forEach(function(_) {
  678. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  679. });
  680. }
  681. return c.info = U(C, { higherRanks: p, totalRange: h * o }), c;
  682. }, B.prototype.getDateFormat = function(C, b, w, x) {
  683. var a = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  684. for (i in u) {
  685. if (C === u.week && +this.dateFormat("%w", b) === w && a.substr(6) === "00:00:00.000") {
  686. var i = "week";
  687. break;
  688. }
  689. if (u[i] > C) {
  690. i = p;
  691. break;
  692. }
  693. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  694. break;
  695. i !== "week" && (p = i);
  696. }
  697. if (i)
  698. var h = this.resolveDTLFormat(x[i]).main;
  699. return h;
  700. }, B;
  701. }(), j;
  702. }), E(l, "Core/DefaultOptions.js", [l["Core/Chart/ChartDefaults.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Color/Palettes.js"], l["Core/Time.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  703. j = j.parse;
  704. var F = U.merge, N = {
  705. colors: Z.colors,
  706. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  707. lang: {
  708. loading: "Loading...",
  709. months: "January February March April May June July August September October November December".split(" "),
  710. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  711. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  712. decimalPoint: ".",
  713. numericSymbols: "kMGTPE".split(""),
  714. resetZoom: "Reset zoom",
  715. resetZoomTitle: "Reset zoom level 1:1",
  716. thousandsSep: " "
  717. },
  718. global: {},
  719. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  720. chart: y,
  721. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  722. subtitle: { text: "", align: "center", widthAdjust: -44 },
  723. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  724. plotOptions: {},
  725. labels: { style: { position: "absolute", color: "#333333" } },
  726. legend: {
  727. enabled: !0,
  728. align: "center",
  729. alignColumns: !0,
  730. className: "highcharts-no-tooltip",
  731. layout: "horizontal",
  732. labelFormatter: function() {
  733. return this.name;
  734. },
  735. borderColor: "#999999",
  736. borderRadius: 0,
  737. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  738. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  739. itemHoverStyle: { color: "#000000" },
  740. itemHiddenStyle: { color: "#cccccc" },
  741. shadow: !1,
  742. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  743. squareSymbol: !0,
  744. symbolPadding: 5,
  745. verticalAlign: "bottom",
  746. x: 0,
  747. y: 0,
  748. title: { style: { fontWeight: "bold" } }
  749. },
  750. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  751. tooltip: {
  752. enabled: !0,
  753. animation: I.svg,
  754. borderRadius: 3,
  755. dateTimeLabelFormats: {
  756. millisecond: "%A, %b %e, %H:%M:%S.%L",
  757. second: "%A, %b %e, %H:%M:%S",
  758. minute: "%A, %b %e, %H:%M",
  759. hour: "%A, %b %e, %H:%M",
  760. day: "%A, %b %e, %Y",
  761. week: "Week from %A, %b %e, %Y",
  762. month: "%B %Y",
  763. year: "%Y"
  764. },
  765. footerFormat: "",
  766. headerShape: "callout",
  767. hideDelay: 500,
  768. padding: 8,
  769. shape: "callout",
  770. shared: !1,
  771. snap: I.isTouchDevice ? 25 : 10,
  772. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  773. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  774. backgroundColor: j("#f7f7f7").setOpacity(0.85).get(),
  775. borderWidth: 1,
  776. shadow: !0,
  777. stickOnContact: !1,
  778. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  779. useHTML: !1
  780. },
  781. 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" }
  782. };
  783. N.chart.styledMode = !1;
  784. var R = new H(F(N.global, N.time));
  785. return y = { defaultOptions: N, defaultTime: R, getOptions: function() {
  786. return N;
  787. }, setOptions: function(S) {
  788. return F(!0, N, S), (S.time || S.global) && (I.time ? I.time.update(F(
  789. N.global,
  790. N.time,
  791. S.global,
  792. S.time
  793. )) : I.time = R), N;
  794. } }, y;
  795. }), E(l, "Core/Animation/Fx.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  796. var Z = y.parse, H = j.win, U = I.isNumber, F = I.objectEach;
  797. return function() {
  798. function N(R, S, v) {
  799. this.pos = NaN, this.options = S, this.elem = R, this.prop = v;
  800. }
  801. return N.prototype.dSetter = function() {
  802. var R = this.paths, S = R && R[0];
  803. R = R && R[1];
  804. var v = this.now || 0, d = [];
  805. if (v !== 1 && S && R)
  806. if (S.length === R.length && 1 > v)
  807. for (var u = 0; u < R.length; u++) {
  808. for (var A = S[u], O = R[u], B = [], C = 0; C < O.length; C++) {
  809. var b = A[C], w = O[C];
  810. U(b) && U(w) && (O[0] !== "A" || C !== 4 && C !== 5) ? B[C] = b + v * (w - b) : B[C] = w;
  811. }
  812. d.push(B);
  813. }
  814. else
  815. d = R;
  816. else
  817. d = this.toD || [];
  818. this.elem.attr("d", d, void 0, !0);
  819. }, N.prototype.update = function() {
  820. var R = this.elem, S = this.prop, v = this.now, d = this.options.step;
  821. this[S + "Setter"] ? this[S + "Setter"]() : R.attr ? R.element && R.attr(S, v, null, !0) : R.style[S] = v + this.unit, d && d.call(R, v, this);
  822. }, N.prototype.run = function(R, S, v) {
  823. var d = this, u = d.options, A = function(C) {
  824. return A.stopped ? !1 : d.step(C);
  825. }, O = H.requestAnimationFrame || function(C) {
  826. setTimeout(
  827. C,
  828. 13
  829. );
  830. }, B = function() {
  831. for (var C = 0; C < N.timers.length; C++)
  832. N.timers[C]() || N.timers.splice(C--, 1);
  833. N.timers.length && O(B);
  834. };
  835. R !== S || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = R, this.end = S, this.unit = v, this.now = this.start, this.pos = 0, A.elem = this.elem, A.prop = this.prop, A() && N.timers.push(A) === 1 && O(B)) : (delete u.curAnim[this.prop], u.complete && Object.keys(u.curAnim).length === 0 && u.complete.call(this.elem));
  836. }, N.prototype.step = function(R) {
  837. var S = +/* @__PURE__ */ new Date(), v = this.options, d = this.elem, u = v.complete, A = v.duration, O = v.curAnim;
  838. if (d.attr && !d.element)
  839. R = !1;
  840. else if (R || S >= A + this.startTime) {
  841. this.now = this.end, this.pos = 1, this.update();
  842. var B = O[this.prop] = !0;
  843. F(O, function(C) {
  844. C !== !0 && (B = !1);
  845. }), B && u && u.call(d), R = !1;
  846. } else
  847. this.pos = v.easing((S - this.startTime) / A), this.now = this.start + (this.end - this.start) * this.pos, this.update(), R = !0;
  848. return R;
  849. }, N.prototype.initPath = function(R, S, v) {
  850. function d(a, c) {
  851. for (; a.length < x; ) {
  852. var p = a[0], i = c[x - a.length];
  853. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  854. "L",
  855. p[1],
  856. p[2]
  857. ]), a.unshift(p), B && (p = a.pop(), a.push(a[a.length - 1], p));
  858. }
  859. }
  860. function u(a, c) {
  861. for (; a.length < x; )
  862. if (c = a[Math.floor(a.length / C) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), B) {
  863. var p = a[Math.floor(a.length / C)].slice();
  864. a.splice(a.length / 2, 0, c, p);
  865. } else
  866. a.push(c);
  867. }
  868. var A = R.startX, O = R.endX;
  869. v = v.slice();
  870. var B = R.isArea, C = B ? 2 : 1;
  871. if (S = S && S.slice(), !S)
  872. return [v, v];
  873. if (A && O && O.length) {
  874. for (R = 0; R < A.length; R++)
  875. if (A[R] === O[0]) {
  876. var b = R;
  877. break;
  878. } else if (A[0] === O[O.length - A.length + R]) {
  879. b = R;
  880. var w = !0;
  881. break;
  882. } else if (A[A.length - 1] === O[O.length - A.length + R]) {
  883. b = A.length - R;
  884. break;
  885. }
  886. typeof b > "u" && (S = []);
  887. }
  888. if (S.length && U(b)) {
  889. var x = v.length + b * C;
  890. w ? (d(S, v), u(v, S)) : (d(v, S), u(S, v));
  891. }
  892. return [S, v];
  893. }, N.prototype.fillSetter = function() {
  894. N.prototype.strokeSetter.apply(this, arguments);
  895. }, N.prototype.strokeSetter = function() {
  896. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  897. }, N.timers = [], N;
  898. }();
  899. }), E(l, "Core/Animation/AnimationUtilities.js", [l["Core/Animation/Fx.js"], l["Core/Utilities.js"]], function(y, j) {
  900. function I(u) {
  901. return R(u) ? S({ duration: 500, defer: 0 }, u) : { duration: u ? 500 : 0, defer: 0 };
  902. }
  903. function Z(u, A) {
  904. for (var O = y.timers.length; O--; )
  905. y.timers[O].elem !== u || A && A !== y.timers[O].prop || (y.timers[O].stopped = !0);
  906. }
  907. var H = j.defined, U = j.getStyle, F = j.isArray, N = j.isNumber, R = j.isObject, S = j.merge, v = j.objectEach, d = j.pick;
  908. return { animate: function(u, A, O) {
  909. var B, C = "", b, w;
  910. if (!R(O)) {
  911. var x = arguments;
  912. O = { duration: x[2], easing: x[3], complete: x[4] };
  913. }
  914. N(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = S(A), v(A, function(a, c) {
  915. Z(u, c), w = new y(u, O, c), b = void 0, c === "d" && F(A.d) ? (w.paths = w.initPath(u, u.pathArray, A.d), w.toD = A.d, B = 0, b = 1) : u.attr ? B = u.attr(c) : (B = parseFloat(U(u, c)) || 0, c !== "opacity" && (C = "px")), b || (b = a), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), w.run(B, b, C);
  916. });
  917. }, animObject: I, getDeferredAnimation: function(u, A, O) {
  918. var B = I(A), C = 0, b = 0;
  919. return (O ? [O] : u.series).forEach(function(w) {
  920. w = I(w.options.animation), C = A && H(A.defer) ? B.defer : Math.max(C, w.duration + w.defer), b = Math.min(B.duration, w.duration);
  921. }), u.renderer.forExport && (C = 0), { defer: Math.max(0, C - b), duration: Math.min(C, b) };
  922. }, setAnimation: function(u, A) {
  923. A.renderer.globalAnimation = d(u, A.options.chart.animation, !0);
  924. }, stop: Z };
  925. }), E(l, "Core/Renderer/HTML/AST.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  926. var I = y.SVG_NS, Z = j.attr, H = j.createElement, U = j.error, F = j.isFunction, N = j.isString, R = j.objectEach, S = j.splat, v = (j = y.win.trustedTypes) && F(j.createPolicy) && j.createPolicy("highcharts", { createHTML: function(A) {
  927. return A;
  928. } }), d = v ? v.createHTML("") : "";
  929. try {
  930. var u = !!new DOMParser().parseFromString(d, "text/html");
  931. } catch {
  932. u = !1;
  933. }
  934. return F = function() {
  935. function A(O) {
  936. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  937. }
  938. return A.filterUserAttributes = function(O) {
  939. return R(O, function(B, C) {
  940. var b = !0;
  941. A.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = N(B) && A.allowedReferences.some(function(w) {
  942. return B.indexOf(w) === 0;
  943. })), b || (U("Highcharts warning: Invalid attribute '" + C + "' in config"), delete O[C]);
  944. }), O;
  945. }, A.setElementHTML = function(O, B) {
  946. O.innerHTML = A.emptyHTML, B && new A(B).addToDOM(O);
  947. }, A.prototype.addToDOM = function(O) {
  948. function B(C, b) {
  949. var w;
  950. return S(C).forEach(function(x) {
  951. var a = x.tagName, c = x.textContent ? y.doc.createTextNode(x.textContent) : void 0;
  952. if (a)
  953. if (a === "#text")
  954. var p = c;
  955. else if (A.allowedTags.indexOf(a) !== -1) {
  956. a = y.doc.createElementNS(a === "svg" ? I : b.namespaceURI || I, a);
  957. var i = x.attributes || {};
  958. R(x, function(h, o) {
  959. o !== "tagName" && o !== "attributes" && o !== "children" && o !== "textContent" && (i[o] = h);
  960. }), Z(a, A.filterUserAttributes(i)), c && a.appendChild(c), B(x.children || [], a), p = a;
  961. } else
  962. U("Highcharts warning: Invalid tagName " + a + " in config");
  963. p && b.appendChild(p), w = p;
  964. }), w;
  965. }
  966. return B(this.nodes, O);
  967. }, A.prototype.parseMarkup = function(O) {
  968. var B = [];
  969. if (O = O.trim(), u)
  970. O = new DOMParser().parseFromString(v ? v.createHTML(O) : O, "text/html");
  971. else {
  972. var C = H("div");
  973. C.innerHTML = O, O = { body: C };
  974. }
  975. var b = function(w, x) {
  976. var a = w.nodeName.toLowerCase(), c = { tagName: a };
  977. if (a === "#text" && (c.textContent = w.textContent || ""), a = w.attributes) {
  978. var p = {};
  979. [].forEach.call(a, function(h) {
  980. p[h.name] = h.value;
  981. }), c.attributes = p;
  982. }
  983. if (w.childNodes.length) {
  984. var i = [];
  985. [].forEach.call(w.childNodes, function(h) {
  986. b(h, i);
  987. }), i.length && (c.children = i);
  988. }
  989. x.push(c);
  990. };
  991. return [].forEach.call(O.body.childNodes, function(w) {
  992. return b(w, B);
  993. }), B;
  994. }, A.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(" "), A.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), A.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(" "), A.emptyHTML = d, A;
  995. }(), F;
  996. }), E(
  997. l,
  998. "Core/FormatUtilities.js",
  999. [l["Core/DefaultOptions.js"], l["Core/Utilities.js"]],
  1000. function(y, j) {
  1001. function I(S, v, d, u) {
  1002. S = +S || 0, v = +v;
  1003. var A = Z.lang, O = (S.toString().split(".")[1] || "").split("e")[0].length, B = S.toString().split("e"), C = v;
  1004. if (v === -1)
  1005. v = Math.min(O, 20);
  1006. else if (!F(v))
  1007. v = 2;
  1008. else if (v && B[1] && 0 > B[1]) {
  1009. var b = v + +B[1];
  1010. 0 <= b ? (B[0] = (+B[0]).toExponential(b).split("e")[0], v = b) : (B[0] = B[0].split(".")[0] || 0, S = 20 > v ? (B[0] * Math.pow(10, B[1])).toFixed(v) : 0, B[1] = 0);
  1011. }
  1012. b = (Math.abs(B[1] ? B[0] : S) + Math.pow(10, -Math.max(v, O) - 1)).toFixed(v), O = String(R(b));
  1013. var w = 3 < O.length ? O.length % 3 : 0;
  1014. return d = N(d, A.decimalPoint), u = N(u, A.thousandsSep), S = (0 > S ? "-" : "") + (w ? O.substr(0, w) + u : ""), S = 0 > +B[1] && !C ? "0" : S + O.substr(w).replace(/(\d{3})(?=\d)/g, "$1" + u), v && (S += d + b.slice(-v)), B[1] && +S != 0 && (S += "e" + B[1]), S;
  1015. }
  1016. var Z = y.defaultOptions, H = y.defaultTime, U = j.getNestedProperty, F = j.isNumber, N = j.pick, R = j.pInt;
  1017. return { dateFormat: function(S, v, d) {
  1018. return H.dateFormat(S, v, d);
  1019. }, format: function(S, v, d) {
  1020. var u = "{", A = !1, O = /f$/, B = /\.([0-9])/, C = Z.lang, b = d && d.time || H;
  1021. d = d && d.numberFormatter || I;
  1022. for (var w = []; S; ) {
  1023. var x = S.indexOf(u);
  1024. if (x === -1)
  1025. break;
  1026. var a = S.slice(0, x);
  1027. if (A) {
  1028. if (a = a.split(":"), u = U(a.shift() || "", v), a.length && typeof u == "number")
  1029. if (a = a.join(":"), O.test(a)) {
  1030. var c = parseInt((a.match(B) || ["", "-1"])[1], 10);
  1031. u !== null && (u = d(u, c, C.decimalPoint, -1 < a.indexOf(",") ? C.thousandsSep : ""));
  1032. } else
  1033. u = b.dateFormat(a, u);
  1034. w.push(u);
  1035. } else
  1036. w.push(a);
  1037. S = S.slice(x + 1), u = (A = !A) ? "}" : "{";
  1038. }
  1039. return w.push(S), w.join("");
  1040. }, numberFormat: I };
  1041. }
  1042. ), E(l, "Core/Renderer/RendererUtilities.js", [l["Core/Utilities.js"]], function(y) {
  1043. var j = y.clamp, I = y.pick, Z = y.stableSort, H;
  1044. return function(U) {
  1045. function F(N, R, S) {
  1046. var v = N, d = v.reducedLen || R, u = function(w, x) {
  1047. return (x.rank || 0) - (w.rank || 0);
  1048. }, A = function(w, x) {
  1049. return w.target - x.target;
  1050. }, O, B = !0, C = [], b = 0;
  1051. for (O = N.length; O--; )
  1052. b += N[O].size;
  1053. if (b > d) {
  1054. for (Z(N, u), b = O = 0; b <= d; )
  1055. b += N[O].size, O++;
  1056. C = N.splice(O - 1, N.length);
  1057. }
  1058. for (Z(N, A), N = N.map(function(w) {
  1059. return { size: w.size, targets: [w.target], align: I(w.align, 0.5) };
  1060. }); B; ) {
  1061. for (O = N.length; O--; )
  1062. d = N[O], u = (Math.min.apply(0, d.targets) + Math.max.apply(0, d.targets)) / 2, d.pos = j(
  1063. u - d.size * d.align,
  1064. 0,
  1065. R - d.size
  1066. );
  1067. for (O = N.length, B = !1; O--; )
  1068. 0 < O && N[O - 1].pos + N[O - 1].size > N[O].pos && (N[O - 1].size += N[O].size, N[O - 1].targets = N[O - 1].targets.concat(N[O].targets), N[O - 1].align = 0.5, N[O - 1].pos + N[O - 1].size > R && (N[O - 1].pos = R - N[O - 1].size), N.splice(O, 1), B = !0);
  1069. }
  1070. return v.push.apply(v, C), O = 0, N.some(function(w) {
  1071. var x = 0;
  1072. return (w.targets || []).some(function() {
  1073. return v[O].pos = w.pos + x, typeof S < "u" && Math.abs(v[O].pos - v[O].target) > S ? (v.slice(0, O + 1).forEach(function(a) {
  1074. return delete a.pos;
  1075. }), v.reducedLen = (v.reducedLen || R) - 0.1 * R, v.reducedLen > 0.1 * R && F(v, R, S), !0) : (x += v[O].size, O++, !1);
  1076. });
  1077. }), Z(v, A), v;
  1078. }
  1079. U.distribute = F;
  1080. }(H || (H = {})), H;
  1081. }), E(l, "Core/Renderer/SVG/SVGElement.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  1082. var U = y.animate, F = y.animObject, N = y.stop, R = Z.deg2rad, S = Z.doc, v = Z.noop, d = Z.svg, u = Z.SVG_NS, A = Z.win, O = H.addEvent, B = H.attr, C = H.createElement, b = H.css, w = H.defined, x = H.erase, a = H.extend, c = H.fireEvent, p = H.isArray, i = H.isFunction, h = H.isNumber, o = H.isString, t = H.merge, s = H.objectEach, n = H.pick, T = H.pInt, _ = H.syncTimeout, D = H.uniqueKey;
  1083. return y = function() {
  1084. function W() {
  1085. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = u, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  1086. }
  1087. return W.prototype._defaultGetter = function(P) {
  1088. return P = n(this[P + "Value"], this[P], this.element ? this.element.getAttribute(P) : null, 0), /^[\-0-9\.]+$/.test(P) && (P = parseFloat(P)), P;
  1089. }, W.prototype._defaultSetter = function(P, X, g) {
  1090. g.setAttribute(X, P);
  1091. }, W.prototype.add = function(P) {
  1092. var X = this.renderer, g = this.element;
  1093. if (P && (this.parentGroup = P), this.parentInverted = P && P.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !P || P.handleZ || this.zIndex)
  1094. var m = this.zIndexSetter();
  1095. return m || (P ? P.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  1096. }, W.prototype.addClass = function(P, X) {
  1097. var g = X ? "" : this.attr("class") || "";
  1098. return P = (P || "").split(/ /g).reduce(function(m, L) {
  1099. return g.indexOf(L) === -1 && m.push(L), m;
  1100. }, g ? [g] : []).join(" "), P !== g && this.attr("class", P), this;
  1101. }, W.prototype.afterSetters = function() {
  1102. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  1103. }, W.prototype.align = function(P, X, g) {
  1104. var m = {}, L = this.renderer, Y = L.alignedObjects, V, Q, k;
  1105. P ? (this.alignOptions = P, this.alignByTranslate = X, (!g || o(g)) && (this.alignTo = V = g || "renderer", x(Y, this), Y.push(this), g = void 0)) : (P = this.alignOptions, X = this.alignByTranslate, V = this.alignTo), g = n(g, L[V], V === "scrollablePlotBox" ? L.plotBox : void 0, L), V = P.align;
  1106. var G = P.verticalAlign;
  1107. return L = (g.x || 0) + (P.x || 0), Y = (g.y || 0) + (P.y || 0), V === "right" ? Q = 1 : V === "center" && (Q = 2), Q && (L += (g.width - (P.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (g.height - (P.height || 0)) / k), m[X ? "translateY" : "y"] = Math.round(Y), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  1108. }, W.prototype.alignSetter = function(P) {
  1109. var X = { left: "start", center: "middle", right: "end" };
  1110. X[P] && (this.alignValue = P, this.element.setAttribute(
  1111. "text-anchor",
  1112. X[P]
  1113. ));
  1114. }, W.prototype.animate = function(P, X, g) {
  1115. var m = this, L = F(n(X, this.renderer.globalAnimation, !0));
  1116. return X = L.defer, n(S.hidden, S.msHidden, S.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), _(function() {
  1117. m.element && U(m, P, L);
  1118. }, X)) : (this.attr(P, void 0, g), s(P, function(Y, V) {
  1119. L.step && L.step.call(this, Y, { prop: V, pos: 1, elem: this });
  1120. }, this)), this;
  1121. }, W.prototype.applyTextOutline = function(P) {
  1122. var X = this.element;
  1123. P.indexOf("contrast") !== -1 && (P = P.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  1124. var g = P.split(" ");
  1125. if (P = g[g.length - 1], (g = g[0]) && g !== "none" && Z.svg) {
  1126. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(Y, V, Q) {
  1127. return 2 * Number(V) + Q;
  1128. }), this.removeTextOutline();
  1129. var m = S.createElementNS(u, "tspan");
  1130. B(m, { class: "highcharts-text-outline", fill: P, stroke: P, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  1131. var V = Y.cloneNode(!0);
  1132. V.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  1133. return V.removeAttribute(Q);
  1134. }), m.appendChild(V);
  1135. });
  1136. var L = S.createElementNS(u, "tspan");
  1137. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  1138. var V = X.getAttribute(Y);
  1139. V && L.setAttribute(Y, V);
  1140. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  1141. }
  1142. }, W.prototype.attr = function(P, X, g, m) {
  1143. var L = this.element, Y = this.symbolCustomAttribs, V, Q = this, k, G;
  1144. if (typeof P == "string" && typeof X < "u") {
  1145. var z = P;
  1146. P = {}, P[z] = X;
  1147. }
  1148. return typeof P == "string" ? Q = (this[P + "Getter"] || this._defaultGetter).call(this, P, L) : (s(P, function($, q) {
  1149. k = !1, m || N(this, q), this.symbolName && Y.indexOf(q) !== -1 && (V || (this.symbolAttr(P), V = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, $, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, $, G));
  1150. }, this), this.afterSetters()), g && g.call(this), Q;
  1151. }, W.prototype.clip = function(P) {
  1152. return this.attr("clip-path", P ? "url(" + this.renderer.url + "#" + P.id + ")" : "none");
  1153. }, W.prototype.crisp = function(P, X) {
  1154. X = X || P.strokeWidth || 0;
  1155. var g = Math.round(X) % 2 / 2;
  1156. return P.x = Math.floor(P.x || this.x || 0) + g, P.y = Math.floor(P.y || this.y || 0) + g, P.width = Math.floor((P.width || this.width || 0) - 2 * g), P.height = Math.floor((P.height || this.height || 0) - 2 * g), w(P.strokeWidth) && (P.strokeWidth = X), P;
  1157. }, W.prototype.complexColor = function(P, X, g) {
  1158. var m = this.renderer, L, Y, V, Q, k, G, z, $, q, it, et = [], nt;
  1159. c(this.renderer, "complexColor", { args: arguments }, function() {
  1160. if (P.radialGradient ? Y = "radialGradient" : P.linearGradient && (Y = "linearGradient"), Y) {
  1161. if (V = P[Y], k = m.gradients, G = P.stops, q = g.radialReference, p(V) && (P[Y] = V = { x1: V[0], y1: V[1], x2: V[2], y2: V[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !w(V.gradientUnits) && (Q = V, V = t(V, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), s(V, function(ct, gt) {
  1162. gt !== "id" && et.push(gt, ct);
  1163. }), s(G, function(ct) {
  1164. et.push(ct);
  1165. }), et = et.join(","), k[et])
  1166. it = k[et].attr("id");
  1167. else {
  1168. V.id = it = D();
  1169. var rt = k[et] = m.createElement(Y).attr(V).add(m.defs);
  1170. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  1171. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), $ = L.get("a")) : (z = ct[1], $ = 1), ct = m.createElement("stop").attr({
  1172. offset: ct[0],
  1173. "stop-color": z,
  1174. "stop-opacity": $
  1175. }).add(rt), rt.stops.push(ct);
  1176. });
  1177. }
  1178. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, P.toString = function() {
  1179. return nt;
  1180. };
  1181. }
  1182. });
  1183. }, W.prototype.css = function(P) {
  1184. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", V = !X;
  1185. if (P && P.color && (P.fill = P.color), X && s(P, function(G, z) {
  1186. X && X[z] !== G && (g[z] = G, V = !0);
  1187. }), V) {
  1188. if (X && (P = a(X, g)), P) {
  1189. if (P.width === null || P.width === "auto")
  1190. delete this.textWidth;
  1191. else if (m.nodeName.toLowerCase() === "text" && P.width)
  1192. var Q = this.textWidth = T(P.width);
  1193. }
  1194. if (this.styles = P, Q && !d && this.renderer.forExport && delete P.width, m.namespaceURI === this.SVG_NS) {
  1195. var k = function(G, z) {
  1196. return "-" + z.toLowerCase();
  1197. };
  1198. s(P, function(G, z) {
  1199. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  1200. }), Y && B(m, "style", Y);
  1201. } else
  1202. b(m, P);
  1203. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), P && P.textOutline && this.applyTextOutline(P.textOutline));
  1204. }
  1205. return this;
  1206. }, W.prototype.dashstyleSetter = function(P) {
  1207. var X = this["stroke-width"];
  1208. if (X === "inherit" && (X = 1), P = P && P.toLowerCase()) {
  1209. var g = P.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(",");
  1210. for (P = g.length; P--; )
  1211. g[P] = "" + T(g[P]) * n(X, NaN);
  1212. P = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", P);
  1213. }
  1214. }, W.prototype.destroy = function() {
  1215. var P = this, X = P.element || {}, g = P.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && P.parentGroup || void 0;
  1216. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, N(P), P.clipPath && m) {
  1217. var Y = P.clipPath;
  1218. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(V) {
  1219. -1 < V.getAttribute("clip-path").indexOf(Y.element.id) && V.removeAttribute("clip-path");
  1220. }), P.clipPath = Y.destroy();
  1221. }
  1222. if (P.stops) {
  1223. for (m = 0; m < P.stops.length; m++)
  1224. P.stops[m].destroy();
  1225. P.stops.length = 0, P.stops = void 0;
  1226. }
  1227. for (P.safeRemoveChild(X), g.styledMode || P.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  1228. X = L.parentGroup, P.safeRemoveChild(L.div), delete L.div, L = X;
  1229. P.alignTo && x(g.alignedObjects, P), s(P, function(V, Q) {
  1230. P[Q] && P[Q].parentGroup === P && P[Q].destroy && P[Q].destroy(), delete P[Q];
  1231. });
  1232. }, W.prototype.destroyShadows = function() {
  1233. (this.shadows || []).forEach(function(P) {
  1234. this.safeRemoveChild(P);
  1235. }, this), this.shadows = void 0;
  1236. }, W.prototype.destroyTextPath = function(P, X) {
  1237. var g = P.getElementsByTagName("text")[0];
  1238. if (g) {
  1239. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  1240. for (P = this.textPathWrapper.element.childNodes; P.length; )
  1241. g.appendChild(P[0]);
  1242. g.removeChild(this.textPathWrapper.element);
  1243. }
  1244. } else
  1245. (P.getAttribute("dx") || P.getAttribute("dy")) && (P.removeAttribute("dx"), P.removeAttribute("dy"));
  1246. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  1247. }, W.prototype.dSetter = function(P, X, g) {
  1248. p(P) && (typeof P[0] == "string" && (P = this.renderer.pathToSegments(P)), this.pathArray = P, P = P.reduce(function(m, L, Y) {
  1249. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  1250. }, "")), /(NaN| {2}|^$)/.test(P) && (P = "M 0 0"), this[X] !== P && (g.setAttribute(X, P), this[X] = P);
  1251. }, W.prototype.fadeOut = function(P) {
  1252. var X = this;
  1253. X.animate({ opacity: 0 }, { duration: n(P, 150), complete: function() {
  1254. X.attr({ y: -9999 }).hide();
  1255. } });
  1256. }, W.prototype.fillSetter = function(P, X, g) {
  1257. typeof P == "string" ? g.setAttribute(X, P) : P && this.complexColor(P, X, g);
  1258. }, W.prototype.getBBox = function(P, X) {
  1259. var g = this.renderer, m = this.element, L = this.styles, Y = this.textStr, V = g.cache, Q = g.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  1260. X = n(X, this.rotation, 0);
  1261. var G = g.styledMode ? m && W.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  1262. if (w(Y)) {
  1263. var $ = Y.toString();
  1264. $.indexOf("<") === -1 && ($ = $.replace(/[0-9]/g, "0")), $ += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  1265. }
  1266. if ($ && !P && (z = V[$]), !z) {
  1267. if (k || g.forExport) {
  1268. try {
  1269. var q = this.fakeTS && function(it) {
  1270. var et = m.querySelector(".highcharts-text-outline");
  1271. et && b(et, { display: it });
  1272. };
  1273. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  1274. } catch {
  1275. }
  1276. (!z || 0 > z.width) && (z = {
  1277. width: 0,
  1278. height: 0
  1279. });
  1280. } else
  1281. z = this.htmlGetBBox();
  1282. if (g.isSVG && (P = z.width, g = z.height, k && (z.height = g = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(g)] || g), X && (k = X * R, z.width = Math.abs(g * Math.sin(k)) + Math.abs(P * Math.cos(k)), z.height = Math.abs(g * Math.cos(k)) + Math.abs(P * Math.sin(k)))), $ && (Y === "" || 0 < z.height)) {
  1283. for (; 250 < Q.length; )
  1284. delete V[Q.shift()];
  1285. V[$] || Q.push($), V[$] = z;
  1286. }
  1287. }
  1288. return z;
  1289. }, W.prototype.getStyle = function(P) {
  1290. return A.getComputedStyle(this.element || this, "").getPropertyValue(P);
  1291. }, W.prototype.hasClass = function(P) {
  1292. return ("" + this.attr("class")).split(" ").indexOf(P) !== -1;
  1293. }, W.prototype.hide = function(P) {
  1294. return P ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  1295. }, W.prototype.htmlGetBBox = function() {
  1296. return { height: 0, width: 0, x: 0, y: 0 };
  1297. }, W.prototype.init = function(P, X) {
  1298. this.element = X === "span" ? C(X) : S.createElementNS(this.SVG_NS, X), this.renderer = P, c(this, "afterInit");
  1299. }, W.prototype.invert = function(P) {
  1300. return this.inverted = P, this.updateTransform(), this;
  1301. }, W.prototype.on = function(P, X) {
  1302. var g = this.onEvents;
  1303. return g[P] && g[P](), g[P] = O(
  1304. this.element,
  1305. P,
  1306. X
  1307. ), this;
  1308. }, W.prototype.opacitySetter = function(P, X, g) {
  1309. this.opacity = P = Number(Number(P).toFixed(3)), g.setAttribute(X, P);
  1310. }, W.prototype.removeClass = function(P) {
  1311. return this.attr("class", ("" + this.attr("class")).replace(o(P) ? new RegExp("(^| )" + P + "( |$)") : P, " ").replace(/ +/g, " ").trim());
  1312. }, W.prototype.removeTextOutline = function() {
  1313. var P = this.element.querySelector("tspan.highcharts-text-outline");
  1314. P && this.safeRemoveChild(P);
  1315. }, W.prototype.safeRemoveChild = function(P) {
  1316. var X = P.parentNode;
  1317. X && X.removeChild(P);
  1318. }, W.prototype.setRadialReference = function(P) {
  1319. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  1320. return this.element.radialReference = P, X && X.radAttr && X.animate(this.renderer.getRadialAttr(P, X.radAttr)), this;
  1321. }, W.prototype.setTextPath = function(P, X) {
  1322. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, Y = !1, V = this.textPathWrapper, Q = !V;
  1323. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  1324. var k = j.filterUserAttributes(X.attributes);
  1325. if (P && X && X.enabled) {
  1326. V && V.element.parentNode === null ? (Q = !0, V = V.destroy()) : V && this.removeTextOutline.call(V.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), V || (this.textPathWrapper = V = this.renderer.createElement("textPath"), Y = !0);
  1327. var G = V.element;
  1328. if ((X = P.element.getAttribute("id")) || P.element.setAttribute("id", X = D()), Q)
  1329. for (m.setAttribute("y", 0), h(k.dx) && m.setAttribute("x", -k.dx), P = [].slice.call(m.childNodes), Q = 0; Q < P.length; Q++) {
  1330. var z = P[Q];
  1331. z.nodeType !== A.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  1332. }
  1333. Y && V && V.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), w(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), w(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), s(k, function($, q) {
  1334. G.setAttribute(L[q] || q, $);
  1335. }), g.removeAttribute("transform"), this.removeTextOutline.call(V), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = v;
  1336. } else
  1337. V && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, P), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  1338. return this;
  1339. }, W.prototype.shadow = function(P, X, g) {
  1340. var m = [], L = this.element, Y = this.oldShadowOptions, V = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  1341. if (P === !0 ? k = V : typeof P == "object" && (k = a(V, P)), k && (k && Y && s(k, function(it, et) {
  1342. it !== Y[et] && (Q = !0);
  1343. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  1344. this.destroyShadows();
  1345. else if (!this.shadows) {
  1346. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  1347. for (V = 1; V <= k.width; V++) {
  1348. var $ = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * V;
  1349. B($, { stroke: P.color || "#000000", "stroke-opacity": G * V, "stroke-width": q, transform: z, fill: "none" }), $.setAttribute("class", ($.getAttribute("class") || "") + " highcharts-shadow"), g && (B($, "height", Math.max(B($, "height") - q, 0)), $.cutHeight = q), X ? X.element.appendChild($) : L.parentNode && L.parentNode.insertBefore($, L), m.push($);
  1350. }
  1351. this.shadows = m;
  1352. }
  1353. return this;
  1354. }, W.prototype.show = function(P) {
  1355. return this.attr({ visibility: P ? "inherit" : "visible" });
  1356. }, W.prototype.strokeSetter = function(P, X, g) {
  1357. this[X] = P, 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" && P === 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);
  1358. }, W.prototype.strokeWidth = function() {
  1359. if (!this.renderer.styledMode)
  1360. return this["stroke-width"] || 0;
  1361. var P = this.getStyle("stroke-width"), X = 0;
  1362. if (P.indexOf("px") === P.length - 2)
  1363. X = T(P);
  1364. else if (P !== "") {
  1365. var g = S.createElementNS(u, "rect");
  1366. B(g, { width: P, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  1367. }
  1368. return X;
  1369. }, W.prototype.symbolAttr = function(P) {
  1370. var X = this;
  1371. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  1372. X[g] = n(P[g], X[g]);
  1373. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  1374. }, W.prototype.textSetter = function(P) {
  1375. P !== this.textStr && (delete this.textPxLength, this.textStr = P, this.added && this.renderer.buildText(this));
  1376. }, W.prototype.titleSetter = function(P) {
  1377. var X = this.element, g = X.getElementsByTagName("title")[0] || S.createElementNS(this.SVG_NS, "title");
  1378. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(P, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  1379. /&gt;/g,
  1380. ">"
  1381. );
  1382. }, W.prototype.toFront = function() {
  1383. var P = this.element;
  1384. return P.parentNode.appendChild(P), this;
  1385. }, W.prototype.translate = function(P, X) {
  1386. return this.attr({ translateX: P, translateY: X });
  1387. }, W.prototype.updateShadows = function(P, X, g) {
  1388. var m = this.shadows;
  1389. if (m)
  1390. for (var L = m.length; L--; )
  1391. g.call(m[L], P === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : P === "d" ? this.d : X, P, m[L]);
  1392. }, W.prototype.updateTransform = function() {
  1393. var P = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, V = this.translateX || 0, Q = this.translateY || 0;
  1394. g && (V += this.width, Q += this.height), V = ["translate(" + V + "," + Q + ")"], w(L) && V.push("matrix(" + L.join(",") + ")"), g ? V.push("rotate(90) scale(-1,1)") : m && V.push("rotate(" + m + " " + n(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + n(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (w(P) || w(X)) && V.push("scale(" + n(P, 1) + " " + n(X, 1) + ")"), V.length && Y.setAttribute("transform", V.join(" "));
  1395. }, W.prototype.visibilitySetter = function(P, X, g) {
  1396. P === "inherit" ? g.removeAttribute(X) : this[X] !== P && g.setAttribute(
  1397. X,
  1398. P
  1399. ), this[X] = P;
  1400. }, W.prototype.xGetter = function(P) {
  1401. return this.element.nodeName === "circle" && (P === "x" ? P = "cx" : P === "y" && (P = "cy")), this._defaultGetter(P);
  1402. }, W.prototype.zIndexSetter = function(P, X) {
  1403. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, Y = this.element;
  1404. g = L === g.box;
  1405. var V = !1, Q = this.added, k;
  1406. if (w(P) ? (Y.setAttribute("data-z-index", P), P = +P, this[X] === P && (Q = !1)) : w(this[X]) && Y.removeAttribute("data-z-index"), this[X] = P, Q) {
  1407. for ((P = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !V; k--) {
  1408. m = X[k], Q = m.getAttribute("data-z-index");
  1409. var G = !w(Q);
  1410. m !== Y && (0 > P && G && !g && !k ? (L.insertBefore(Y, X[k]), V = !0) : (T(Q) <= P || G && (!w(P) || 0 <= P)) && (L.insertBefore(Y, X[k + 1] || null), V = !0));
  1411. }
  1412. V || (L.insertBefore(Y, X[g ? 3 : 0] || null), V = !0);
  1413. }
  1414. return V;
  1415. }, W;
  1416. }(), 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, P) {
  1417. this[P] = W, this.doTransform = !0;
  1418. }, y;
  1419. }), E(l, "Core/Renderer/RendererRegistry.js", [l["Core/Globals.js"]], function(y) {
  1420. var j;
  1421. return function(I) {
  1422. I.rendererTypes = {};
  1423. var Z;
  1424. I.getRendererType = function(H) {
  1425. return H === void 0 && (H = Z), I.rendererTypes[H] || I.rendererTypes[Z];
  1426. }, I.registerRendererType = function(H, U, F) {
  1427. I.rendererTypes[H] = U, (!Z || F) && (Z = H, y.Renderer = U);
  1428. };
  1429. }(j || (j = {})), j;
  1430. }), E(
  1431. l,
  1432. "Core/Renderer/SVG/SVGLabel.js",
  1433. [l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]],
  1434. function(y, j) {
  1435. var I = this && this.__extends || function() {
  1436. var S = function(v, d) {
  1437. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, A) {
  1438. u.__proto__ = A;
  1439. } || function(u, A) {
  1440. for (var O in A)
  1441. A.hasOwnProperty(O) && (u[O] = A[O]);
  1442. }, S(v, d);
  1443. };
  1444. return function(v, d) {
  1445. function u() {
  1446. this.constructor = v;
  1447. }
  1448. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  1449. };
  1450. }(), Z = j.defined, H = j.extend, U = j.isNumber, F = j.merge, N = j.pick, R = j.removeEvent;
  1451. return function(S) {
  1452. function v(d, u, A, O, B, C, b, w, x, a) {
  1453. var c = S.call(this) || this;
  1454. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(d, "g"), c.textStr = u, c.x = A, c.y = O, c.anchorX = C, c.anchorY = b, c.baseline = x, c.className = a, c.addClass(a === "button" ? "highcharts-no-tooltip" : "highcharts-label"), a && c.addClass("highcharts-" + a), c.text = d.text(void 0, 0, 0, w).attr({ zIndex: 1 });
  1455. var p;
  1456. return typeof B == "string" && ((p = /^url\((.*?)\)$/.test(B)) || c.renderer.symbols[B]) && (c.symbolKey = B), c.bBox = v.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = d.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  1457. }
  1458. return I(v, S), v.prototype.alignSetter = function(d) {
  1459. d = { left: 0, center: 0.5, right: 1 }[d], d !== this.alignFactor && (this.alignFactor = d, this.bBox && U(this.xSetting) && this.attr({ x: this.xSetting }));
  1460. }, v.prototype.anchorXSetter = function(d, u) {
  1461. this.anchorX = d, this.boxAttr(u, Math.round(d) - this.getCrispAdjust() - this.xSetting);
  1462. }, v.prototype.anchorYSetter = function(d, u) {
  1463. this.anchorY = d, this.boxAttr(u, d - this.ySetting);
  1464. }, v.prototype.boxAttr = function(d, u) {
  1465. this.box ? this.box.attr(d, u) : this.deferredAttr[d] = u;
  1466. }, v.prototype.css = function(d) {
  1467. if (d) {
  1468. var u = {};
  1469. d = F(d), v.textProps.forEach(function(O) {
  1470. typeof d[O] < "u" && (u[O] = d[O], delete d[O]);
  1471. }), this.text.css(u);
  1472. var A = "width" in u;
  1473. "fontSize" in u || "fontWeight" in u ? this.updateTextPadding() : A && this.updateBoxSize();
  1474. }
  1475. return y.prototype.css.call(this, d);
  1476. }, v.prototype.destroy = function() {
  1477. R(this.element, "mouseenter"), R(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  1478. }, v.prototype.fillSetter = function(d, u) {
  1479. d && (this.needsBox = !0), this.fill = d, this.boxAttr(u, d);
  1480. }, v.prototype.getBBox = function() {
  1481. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  1482. var d = this.padding, u = N(this.paddingLeft, d);
  1483. return { width: this.width, height: this.height, x: this.bBox.x - u, y: this.bBox.y - d };
  1484. }, v.prototype.getCrispAdjust = function() {
  1485. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  1486. this["stroke-width"],
  1487. 10
  1488. ) : 0) % 2 / 2;
  1489. }, v.prototype.heightSetter = function(d) {
  1490. this.heightSetting = d;
  1491. }, v.prototype.onAdd = function() {
  1492. var d = this.textStr;
  1493. this.text.add(this), this.attr({ text: Z(d) ? d : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  1494. }, v.prototype.paddingSetter = function(d, u) {
  1495. U(d) ? d !== this[u] && (this[u] = d, this.updateTextPadding()) : this[u] = void 0;
  1496. }, v.prototype.rSetter = function(d, u) {
  1497. this.boxAttr(u, d);
  1498. }, v.prototype.shadow = function(d) {
  1499. return d && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(d)), this;
  1500. }, v.prototype.strokeSetter = function(d, u) {
  1501. this.stroke = d, this.boxAttr(u, d);
  1502. }, v.prototype["stroke-widthSetter"] = function(d, u) {
  1503. d && (this.needsBox = !0), this["stroke-width"] = d, this.boxAttr(u, d);
  1504. }, v.prototype["text-alignSetter"] = function(d) {
  1505. this.textAlign = d;
  1506. }, v.prototype.textSetter = function(d) {
  1507. typeof d < "u" && this.text.attr({ text: d }), this.updateTextPadding();
  1508. }, v.prototype.updateBoxSize = function() {
  1509. var d = this.text.element.style, u = {}, A = this.padding, O = this.bBox = U(this.widthSetting) && U(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? v.emptyBBox : this.text.getBBox();
  1510. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * A, d = this.renderer.fontMetrics(d && d.fontSize, this.text), this.baselineOffset = A + Math.min((this.text.firstLineMetrics || d).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - d.h) / 2), this.needsBox && (this.box || (A = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), A.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), A.add(this)), A = this.getCrispAdjust(), u.x = A, u.y = (this.baseline ? -this.baselineOffset : 0) + A, u.width = Math.round(this.width), u.height = Math.round(this.height), this.box.attr(H(u, this.deferredAttr)), this.deferredAttr = {});
  1511. }, v.prototype.updateTextPadding = function() {
  1512. var d = this.text;
  1513. this.updateBoxSize();
  1514. var u = this.baseline ? 0 : this.baselineOffset, A = N(this.paddingLeft, this.padding);
  1515. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (A += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (A !== d.x || u !== d.y) && (d.attr("x", A), d.hasBoxWidthChanged && (this.bBox = d.getBBox(!0)), typeof u < "u" && d.attr("y", u)), d.x = A, d.y = u;
  1516. }, v.prototype.widthSetter = function(d) {
  1517. this.widthSetting = U(d) ? d : void 0;
  1518. }, v.prototype.getPaddedWidth = function() {
  1519. var d = this.padding, u = N(this.paddingLeft, d);
  1520. return d = N(this.paddingRight, d), (this.widthSetting || this.bBox.width || 0) + u + d;
  1521. }, v.prototype.xSetter = function(d) {
  1522. this.x = d, this.alignFactor && (d -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(d), this.attr("translateX", this.xSetting);
  1523. }, v.prototype.ySetter = function(d) {
  1524. this.ySetting = this.y = Math.round(d), this.attr("translateY", this.ySetting);
  1525. }, v.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, v.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), v;
  1526. }(y);
  1527. }
  1528. ), E(
  1529. l,
  1530. "Core/Renderer/SVG/Symbols.js",
  1531. [l["Core/Utilities.js"]],
  1532. function(y) {
  1533. function j(N, R, S, v, d) {
  1534. var u = [];
  1535. if (d) {
  1536. var A = d.start || 0, O = F(d.r, S);
  1537. S = F(d.r, v || S);
  1538. var B = (d.end || 0) - 1e-3;
  1539. v = d.innerR;
  1540. var C = F(d.open, 1e-3 > Math.abs((d.end || 0) - A - 2 * Math.PI)), b = Math.cos(A), w = Math.sin(A), x = Math.cos(B), a = Math.sin(B);
  1541. A = F(d.longArc, 1e-3 > B - A - Math.PI ? 0 : 1), u.push(["M", N + O * b, R + S * w], ["A", O, S, 0, A, F(d.clockwise, 1), N + O * x, R + S * a]), H(v) && u.push(C ? ["M", N + v * x, R + v * a] : ["L", N + v * x, R + v * a], ["A", v, v, 0, A, H(d.clockwise) ? 1 - d.clockwise : 0, N + v * b, R + v * w]), C || u.push(["Z"]);
  1542. }
  1543. return u;
  1544. }
  1545. function I(N, R, S, v, d) {
  1546. return d && d.r ? Z(N, R, S, v, d) : [["M", N, R], ["L", N + S, R], ["L", N + S, R + v], ["L", N, R + v], ["Z"]];
  1547. }
  1548. function Z(N, R, S, v, d) {
  1549. return d = d && d.r || 0, [["M", N + d, R], ["L", N + S - d, R], ["C", N + S, R, N + S, R, N + S, R + d], ["L", N + S, R + v - d], ["C", N + S, R + v, N + S, R + v, N + S - d, R + v], ["L", N + d, R + v], ["C", N, R + v, N, R + v, N, R + v - d], ["L", N, R + d], ["C", N, R, N, R, N + d, R]];
  1550. }
  1551. var H = y.defined, U = y.isNumber, F = y.pick;
  1552. return { arc: j, callout: function(N, R, S, v, d) {
  1553. var u = Math.min(d && d.r || 0, S, v), A = u + 6, O = d && d.anchorX;
  1554. d = d && d.anchorY || 0;
  1555. var B = Z(N, R, S, v, { r: u });
  1556. return U(O) && (N + O >= S ? d > R + A && d < R + v - A ? B.splice(3, 1, ["L", N + S, d - 6], ["L", N + S + 6, d], ["L", N + S, d + 6], ["L", N + S, R + v - u]) : B.splice(3, 1, ["L", N + S, v / 2], ["L", O, d], ["L", N + S, v / 2], ["L", N + S, R + v - u]) : 0 >= N + O ? d > R + A && d < R + v - A ? B.splice(7, 1, ["L", N, d + 6], ["L", N - 6, d], ["L", N, d - 6], ["L", N, R + u]) : B.splice(7, 1, ["L", N, v / 2], ["L", O, d], ["L", N, v / 2], ["L", N, R + u]) : d && d > v && O > N + A && O < N + S - A ? B.splice(5, 1, ["L", O + 6, R + v], ["L", O, R + v + 6], ["L", O - 6, R + v], ["L", N + u, R + v]) : d && 0 > d && O > N + A && O < N + S - A && B.splice(1, 1, ["L", O - 6, R], ["L", O, R - 6], ["L", O + 6, R], ["L", S - u, R])), B;
  1557. }, circle: function(N, R, S, v) {
  1558. return j(N + S / 2, R + v / 2, S / 2, v / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  1559. }, diamond: function(N, R, S, v) {
  1560. return [["M", N + S / 2, R], ["L", N + S, R + v / 2], ["L", N + S / 2, R + v], ["L", N, R + v / 2], ["Z"]];
  1561. }, rect: I, roundedRect: Z, square: I, triangle: function(N, R, S, v) {
  1562. return [["M", N + S / 2, R], ["L", N + S, R + v], ["L", N, R + v], ["Z"]];
  1563. }, "triangle-down": function(N, R, S, v) {
  1564. return [["M", N, R], ["L", N + S, R], ["L", N + S / 2, R + v], ["Z"]];
  1565. } };
  1566. }
  1567. ), E(l, "Core/Renderer/SVG/TextBuilder.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  1568. var Z = j.doc, H = j.SVG_NS, U = j.win, F = I.attr, N = I.isString, R = I.objectEach, S = I.pick;
  1569. return function() {
  1570. function v(d) {
  1571. var u = d.styles;
  1572. this.renderer = d.renderer, this.svgElement = d, this.width = d.textWidth, this.textLineHeight = u && u.lineHeight, this.textOutline = u && u.textOutline, this.ellipsis = !(!u || u.textOverflow !== "ellipsis"), this.noWrap = !(!u || u.whiteSpace !== "nowrap"), this.fontSize = u && u.fontSize;
  1573. }
  1574. return v.prototype.buildSVG = function() {
  1575. var d = this.svgElement, u = d.element, A = d.renderer, O = S(d.textStr, "").toString(), B = O.indexOf("<") !== -1, C = u.childNodes;
  1576. A = this.width && !d.added && A.box;
  1577. var b = /<br.*?>/g, w = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  1578. if (w !== d.textCache) {
  1579. for (d.textCache = w, delete d.actualWidth, w = C.length; w--; )
  1580. u.removeChild(C[w]);
  1581. B || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (A && A.appendChild(u), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(d.element), this.modifyDOM(), this.ellipsis && (u.textContent || "").indexOf("…") !== -1 && d.attr(
  1582. "title",
  1583. this.unescapeEntities(d.textStr || "", ["&lt;", "&gt;"])
  1584. ), A && A.removeChild(u)) : u.appendChild(Z.createTextNode(this.unescapeEntities(O))), N(this.textOutline) && d.applyTextOutline && d.applyTextOutline(this.textOutline);
  1585. }
  1586. }, v.prototype.modifyDOM = function() {
  1587. var d = this, u = this.svgElement, A = F(u.element, "x");
  1588. u.firstLineMetrics = void 0;
  1589. for (var O; (O = u.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  1590. u.element.removeChild(O);
  1591. [].forEach.call(u.element.querySelectorAll("tspan.highcharts-br"), function(w, x) {
  1592. w.nextSibling && w.previousSibling && (x === 0 && w.previousSibling.nodeType === 1 && (u.firstLineMetrics = u.renderer.fontMetrics(void 0, w.previousSibling)), F(w, { dy: d.getLineHeight(w.nextSibling), x: A }));
  1593. });
  1594. var B = this.width || 0;
  1595. if (B) {
  1596. var C = function(w, x) {
  1597. var a = w.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !d.noWrap && (1 < c.length || 1 < u.element.childNodes.length), i = d.getLineHeight(x), h = 0, o = u.actualWidth;
  1598. if (d.ellipsis)
  1599. a && d.truncate(w, a, void 0, 0, Math.max(0, B - parseInt(d.fontSize || 12, 10)), function(t, s) {
  1600. return t.substring(
  1601. 0,
  1602. s
  1603. ) + "…";
  1604. });
  1605. else if (p) {
  1606. for (a = [], p = []; x.firstChild && x.firstChild !== w; )
  1607. p.push(x.firstChild), x.removeChild(x.firstChild);
  1608. for (; c.length; )
  1609. c.length && !d.noWrap && 0 < h && (a.push(w.textContent || ""), w.textContent = c.join(" ").replace(/- /g, "-")), d.truncate(w, void 0, c, h === 0 && o || 0, B, function(t, s) {
  1610. return c.slice(0, s).join(" ").replace(/- /g, "-");
  1611. }), o = u.actualWidth, h++;
  1612. p.forEach(function(t) {
  1613. x.insertBefore(t, w);
  1614. }), a.forEach(function(t) {
  1615. x.insertBefore(Z.createTextNode(t), w), t = Z.createElementNS(H, "tspan"), t.textContent = "​", F(t, { dy: i, x: A }), x.insertBefore(t, w);
  1616. });
  1617. }
  1618. }, b = function(w) {
  1619. [].slice.call(w.childNodes).forEach(function(x) {
  1620. x.nodeType === U.Node.TEXT_NODE ? C(x, w) : (x.className.baseVal.indexOf("highcharts-br") !== -1 && (u.actualWidth = 0), b(x));
  1621. });
  1622. };
  1623. b(u.element);
  1624. }
  1625. }, v.prototype.getLineHeight = function(d) {
  1626. var u;
  1627. return d = d.nodeType === U.Node.TEXT_NODE ? d.parentElement : d, this.renderer.styledMode || (u = d && /(px|em)$/.test(d.style.fontSize) ? d.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  1628. this.textLineHeight.toString(),
  1629. 10
  1630. ) : this.renderer.fontMetrics(u, d || this.svgElement.element).h;
  1631. }, v.prototype.modifyTree = function(d) {
  1632. var u = this, A = function(O, B) {
  1633. var C = O.attributes;
  1634. C = C === void 0 ? {} : C;
  1635. var b = O.children, w = O.tagName, x = u.renderer.styledMode;
  1636. w === "b" || w === "strong" ? x ? C.class = "highcharts-strong" : C.style = "font-weight:bold;" + (C.style || "") : (w === "i" || w === "em") && (x ? C.class = "highcharts-emphasized" : C.style = "font-style:italic;" + (C.style || "")), N(C.style) && (C.style = C.style.replace(/(;| |^)color([ :])/, "$1fill$2")), w === "br" ? (C.class = "highcharts-br", O.textContent = "​", (B = d[B + 1]) && B.textContent && (B.textContent = B.textContent.replace(/^ +/gm, ""))) : w === "a" && b && b.some(function(a) {
  1637. return a.tagName === "#text";
  1638. }) && (O.children = [{ children: b, tagName: "tspan" }]), w !== "#text" && w !== "a" && (O.tagName = "tspan"), O.attributes = C, b && b.filter(function(a) {
  1639. return a.tagName !== "#text";
  1640. }).forEach(A);
  1641. };
  1642. d.forEach(A);
  1643. }, v.prototype.truncate = function(d, u, A, O, B, C) {
  1644. var b = this.svgElement, w = b.renderer, x = b.rotation, a = [], c = A ? 1 : 0, p = (u || A || "").length, i = p, h, o = function(s, n) {
  1645. n = n || s;
  1646. var T = d.parentNode;
  1647. if (T && typeof a[n] > "u")
  1648. if (T.getSubStringLength)
  1649. try {
  1650. a[n] = O + T.getSubStringLength(0, A ? n + 1 : n);
  1651. } catch {
  1652. }
  1653. else
  1654. w.getSpanWidth && (d.textContent = C(u || A, s), a[n] = O + w.getSpanWidth(b, d));
  1655. return a[n];
  1656. };
  1657. b.rotation = 0;
  1658. var t = o(d.textContent.length);
  1659. if (O + t > B) {
  1660. for (; c <= p; )
  1661. i = Math.ceil((c + p) / 2), A && (h = C(A, i)), t = o(i, h && h.length - 1), c === p ? c = p + 1 : t > B ? p = i - 1 : c = i;
  1662. p === 0 ? d.textContent = "" : u && p === u.length - 1 || (d.textContent = h || C(u || A, i));
  1663. }
  1664. A && A.splice(0, i), b.actualWidth = t, b.rotation = x;
  1665. }, v.prototype.unescapeEntities = function(d, u) {
  1666. return R(this.renderer.escapes, function(A, O) {
  1667. u && u.indexOf(A) !== -1 || (d = d.toString().replace(new RegExp(A, "g"), O));
  1668. }), d;
  1669. }, v;
  1670. }();
  1671. }), E(l, "Core/Renderer/SVG/SVGRenderer.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGLabel.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Renderer/SVG/TextBuilder.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, N, R) {
  1672. var S = I.charts, v = I.deg2rad, d = I.doc, u = I.isFirefox, A = I.isMS, O = I.isWebKit, B = I.noop, C = I.SVG_NS, b = I.symbolSizes, w = I.win, x = R.addEvent, a = R.attr, c = R.createElement, p = R.css, i = R.defined, h = R.destroyObjectProperties, o = R.extend, t = R.isArray, s = R.isNumber, n = R.isObject, T = R.isString, _ = R.merge, D = R.pick, W = R.pInt, P = R.uniqueKey, X;
  1673. return I = function() {
  1674. function g(m, L, Y, V, Q, k, G) {
  1675. 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, Y, V, Q, k, G);
  1676. }
  1677. return g.prototype.init = function(m, L, Y, V, Q, k, G) {
  1678. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), $ = z.element;
  1679. G || z.css(this.getStyle(V)), m.appendChild($), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a($, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = $, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = k, this.forExport = Q, this.styledMode = G, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, Y, !1);
  1680. var q;
  1681. u && m.getBoundingClientRect && (L = function() {
  1682. p(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), p(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  1683. }, L(), this.unSubPixelFix = x(w, "resize", L));
  1684. }, g.prototype.definition = function(m) {
  1685. return new y([m]).addToDOM(this.defs.element);
  1686. }, g.prototype.getReferenceURL = function() {
  1687. if ((u || O) && d.getElementsByTagName("base").length) {
  1688. if (!i(X)) {
  1689. var m = P();
  1690. 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(d.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  1691. var L = d.elementFromPoint(6, 6);
  1692. X = (L && L.id) === "hitme", d.body.removeChild(m);
  1693. }
  1694. if (X)
  1695. return w.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  1696. }
  1697. return "";
  1698. }, g.prototype.getStyle = function(m) {
  1699. return this.style = o({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  1700. }, g.prototype.setStyle = function(m) {
  1701. this.boxWrapper.css(this.getStyle(m));
  1702. }, g.prototype.isHidden = function() {
  1703. return !this.boxWrapper.getBBox().width;
  1704. }, g.prototype.destroy = function() {
  1705. var m = this.defs;
  1706. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), h(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  1707. }, g.prototype.createElement = function(m) {
  1708. var L = new this.Element();
  1709. return L.init(this, m), L;
  1710. }, g.prototype.getRadialAttr = function(m, L) {
  1711. 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] };
  1712. }, g.prototype.buildText = function(m) {
  1713. new N(m).buildSVG();
  1714. }, g.prototype.getContrast = function(m) {
  1715. return m = j.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  1716. }, g.prototype.button = function(m, L, Y, V, Q, k, G, z, $, q) {
  1717. var it = this.label(m, L, Y, $, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  1718. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  1719. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  1720. var ct = rt.style;
  1721. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  1722. var gt = k.style;
  1723. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  1724. var dt = G.style;
  1725. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  1726. var ht = z.style;
  1727. delete z.style;
  1728. }
  1729. return x(it.element, A ? "mouseover" : "mouseenter", function() {
  1730. nt !== 3 && it.setState(1);
  1731. }), x(it.element, A ? "mouseout" : "mouseleave", function() {
  1732. nt !== 3 && it.setState(nt);
  1733. }), it.setState = function(at) {
  1734. 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, k, G, z][at || 0]).css([ct, gt, dt, ht][at || 0]);
  1735. }, et || it.attr(rt).css(o({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  1736. return at.stopPropagation();
  1737. }).on("click", function(at) {
  1738. nt !== 3 && V.call(it, at);
  1739. });
  1740. }, g.prototype.crispLine = function(m, L, Y) {
  1741. Y === void 0 && (Y = "round");
  1742. var V = m[0], Q = m[1];
  1743. return i(V[1]) && V[1] === Q[1] && (V[1] = Q[1] = Math[Y](V[1]) - L % 2 / 2), i(V[2]) && V[2] === Q[2] && (V[2] = Q[2] = Math[Y](V[2]) + L % 2 / 2), m;
  1744. }, g.prototype.path = function(m) {
  1745. var L = this.styledMode ? {} : { fill: "none" };
  1746. return t(m) ? L.d = m : n(m) && o(L, m), this.createElement("path").attr(L);
  1747. }, g.prototype.circle = function(m, L, Y) {
  1748. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(V, Q, k) {
  1749. k.setAttribute("c" + Q, V);
  1750. }, L.attr(m);
  1751. }, g.prototype.arc = function(m, L, Y, V, Q, k) {
  1752. return n(m) ? (V = m, L = V.y, Y = V.r, m = V.x) : V = { innerR: V, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, V), m.r = Y, m;
  1753. }, g.prototype.rect = function(m, L, Y, V, Q, k) {
  1754. Q = n(m) ? m.r : Q;
  1755. var G = this.createElement("rect");
  1756. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(V, 0) }, this.styledMode || (typeof k < "u" && (m["stroke-width"] = k, m = G.crisp(m)), m.fill = "none"), Q && (m.r = Q), G.rSetter = function(z, $, q) {
  1757. G.r = z, a(q, { rx: z, ry: z });
  1758. }, G.rGetter = function() {
  1759. return G.r || 0;
  1760. }, G.attr(m);
  1761. }, g.prototype.setSize = function(m, L, Y) {
  1762. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  1763. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  1764. }, duration: D(
  1765. Y,
  1766. !0
  1767. ) ? void 0 : 0 }), this.alignElements();
  1768. }, g.prototype.g = function(m) {
  1769. var L = this.createElement("g");
  1770. return m ? L.attr({ class: "highcharts-" + m }) : L;
  1771. }, g.prototype.image = function(m, L, Y, V, Q, k) {
  1772. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  1773. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  1774. };
  1775. s(L) && (G.x = L), s(Y) && (G.y = Y), s(V) && (G.width = V), s(Q) && (G.height = Q);
  1776. var $ = this.createElement("image").attr(G);
  1777. return L = function(q) {
  1778. z($.element, m), k.call($, q);
  1779. }, k ? (z(
  1780. $.element,
  1781. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  1782. ), Y = new w.Image(), x(Y, "load", L), Y.src = m, Y.complete && L({})) : z($.element, m), $;
  1783. }, g.prototype.symbol = function(m, L, Y, V, Q, k) {
  1784. var G = this, z = /^url\((.*?)\)$/, $ = z.test(m), q = !$ && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  1785. if (it) {
  1786. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), V || 0, Q || 0, k));
  1787. var nt = this.path(et);
  1788. G.styledMode || nt.attr("fill", "none"), o(nt, { symbolName: q || void 0, x: L, y: Y, width: V, height: Q }), k && o(nt, k);
  1789. } else if ($) {
  1790. var rt = m.match(z)[1], ct = nt = this.image(rt);
  1791. ct.imgwidth = D(b[rt] && b[rt].width, k && k.width), ct.imgheight = D(b[rt] && b[rt].height, k && k.height);
  1792. var gt = function(dt) {
  1793. return dt.attr({ width: dt.width, height: dt.height });
  1794. };
  1795. ["width", "height"].forEach(function(dt) {
  1796. ct[dt + "Setter"] = function(ht, at) {
  1797. var J = this["img" + at];
  1798. this[at] = ht, i(J) && (k && k.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 })));
  1799. };
  1800. }), i(L) && ct.attr({ x: L, y: Y }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  1801. var dt = S[G.chartIndex];
  1802. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), d.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), G.imgCount--, !G.imgCount && dt && !dt.hasLoaded && dt.onload();
  1803. }, src: rt }), this.imgCount++);
  1804. }
  1805. return nt;
  1806. }, g.prototype.clipRect = function(m, L, Y, V) {
  1807. var Q = P() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  1808. return m = this.rect(m, L, Y, V, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  1809. }, g.prototype.text = function(m, L, Y, V) {
  1810. var Q = {};
  1811. return V && (this.allowHTML || !this.forExport) ? this.html(m, L, Y) : (Q.x = Math.round(L || 0), Y && (Q.y = Math.round(Y)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!V || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  1812. for (var $ = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < $.length; it++)
  1813. et = $[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  1814. z.setAttribute(G, k);
  1815. }), m);
  1816. }, g.prototype.fontMetrics = function(m, L) {
  1817. return m = !this.styledMode && /px/.test(m) || !w.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && H.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 };
  1818. }, g.prototype.rotCorr = function(m, L, Y) {
  1819. var V = m;
  1820. return L && Y && (V = Math.max(V * Math.cos(L * v), 4)), { x: -m / 3 * Math.sin(L * v), y: V };
  1821. }, g.prototype.pathToSegments = function(m) {
  1822. for (var L = [], Y = [], V = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  1823. T(Y[0]) && s(m[Q]) && Y.length === V[Y[0].toUpperCase()] && m.splice(Q, 0, Y[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (Y.length && L.push(Y.slice(0)), Y.length = 0), Y.push(m[Q]);
  1824. return L.push(Y.slice(0)), L;
  1825. }, g.prototype.label = function(m, L, Y, V, Q, k, G, z, $) {
  1826. return new U(this, m, L, Y, V, Q, k, G, z, $);
  1827. }, g.prototype.alignElements = function() {
  1828. this.alignedObjects.forEach(function(m) {
  1829. return m.align();
  1830. });
  1831. }, g;
  1832. }(), o(I.prototype, { Element: H, SVG_NS: C, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: F, draw: B }), Z.registerRendererType("svg", I, !0), I;
  1833. }), E(l, "Core/Renderer/HTML/HTMLElement.js", [l["Core/Globals.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]], function(y, j, I) {
  1834. var Z = this && this.__extends || function() {
  1835. var A = function(O, B) {
  1836. return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  1837. C.__proto__ = b;
  1838. } || function(C, b) {
  1839. for (var w in b)
  1840. b.hasOwnProperty(w) && (C[w] = b[w]);
  1841. }, A(O, B);
  1842. };
  1843. return function(O, B) {
  1844. function C() {
  1845. this.constructor = O;
  1846. }
  1847. A(O, B), O.prototype = B === null ? Object.create(B) : (C.prototype = B.prototype, new C());
  1848. };
  1849. }(), H = y.isFirefox, U = y.isMS, F = y.isWebKit, N = y.win, R = I.css, S = I.defined, v = I.extend, d = I.pick, u = I.pInt;
  1850. return function(A) {
  1851. function O() {
  1852. return A !== null && A.apply(this, arguments) || this;
  1853. }
  1854. return Z(O, A), O.compose = function(B) {
  1855. if (O.composedClasses.indexOf(B) === -1) {
  1856. O.composedClasses.push(B);
  1857. var C = O.prototype, b = B.prototype;
  1858. b.getSpanCorrection = C.getSpanCorrection, b.htmlCss = C.htmlCss, b.htmlGetBBox = C.htmlGetBBox, b.htmlUpdateTransform = C.htmlUpdateTransform, b.setSpanRotation = C.setSpanRotation;
  1859. }
  1860. return B;
  1861. }, O.prototype.getSpanCorrection = function(B, C, b) {
  1862. this.xCorr = -B * b, this.yCorr = -C;
  1863. }, O.prototype.htmlCss = function(B) {
  1864. var C = this.element.tagName === "SPAN" && B && "width" in B, b = d(C && B.width, void 0);
  1865. if (C) {
  1866. delete B.width, this.textWidth = b;
  1867. var w = !0;
  1868. }
  1869. return B && B.textOverflow === "ellipsis" && (B.whiteSpace = "nowrap", B.overflow = "hidden"), this.styles = v(this.styles, B), R(this.element, B), w && this.htmlUpdateTransform(), this;
  1870. }, O.prototype.htmlGetBBox = function() {
  1871. var B = this.element;
  1872. return { x: B.offsetLeft, y: B.offsetTop, width: B.offsetWidth, height: B.offsetHeight };
  1873. }, O.prototype.htmlUpdateTransform = function() {
  1874. if (this.added) {
  1875. var B = this.renderer, C = this.element, b = this.translateX || 0, w = this.translateY || 0, x = this.x || 0, a = this.y || 0, c = this.textAlign || "left", p = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  1876. if (i = i && i.whiteSpace, R(C, { marginLeft: b, marginTop: w }), !B.styledMode && this.shadows && this.shadows.forEach(function(T) {
  1877. R(T, { marginLeft: b + 1, marginTop: w + 1 });
  1878. }), this.inverted && [].forEach.call(C.childNodes, function(T) {
  1879. B.invertChild(T, C);
  1880. }), C.tagName === "SPAN") {
  1881. var h = this.rotation, o = this.textWidth && u(this.textWidth), t = [h, c, C.innerHTML, this.textWidth, this.textAlign].join(), s = void 0;
  1882. if (s = !1, o !== this.oldTextWidth) {
  1883. if (this.textPxLength)
  1884. var n = this.textPxLength;
  1885. else
  1886. R(C, { width: "", whiteSpace: i || "nowrap" }), n = C.offsetWidth;
  1887. (o > this.oldTextWidth || n > o) && (/[ \-]/.test(C.textContent || C.innerText) || C.style.textOverflow === "ellipsis") && (R(C, { width: n > o || h ? o + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = o, s = !0);
  1888. }
  1889. this.hasBoxWidthChanged = s, t !== this.cTT && (s = B.fontMetrics(C.style.fontSize, C).b, !S(h) || h === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(h, p, s), this.getSpanCorrection(!S(h) && this.textPxLength || C.offsetWidth, s, p, h, c)), R(C, { left: x + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = h, this.oldAlign = c;
  1890. }
  1891. } else
  1892. this.alignOnAdd = !0;
  1893. }, O.prototype.setSpanRotation = function(B, C, b) {
  1894. var w = {}, x = U && !/Edge/.test(N.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : H ? "MozTransform" : N.opera ? "-o-transform" : void 0;
  1895. x && (w[x] = w.transform = "rotate(" + B + "deg)", w[x + (H ? "Origin" : "-origin")] = w.transformOrigin = 100 * C + "% " + b + "px", R(this.element, w));
  1896. }, O.composedClasses = [], O;
  1897. }(j);
  1898. }), E(
  1899. l,
  1900. "Core/Renderer/HTML/HTMLRenderer.js",
  1901. [l["Core/Renderer/HTML/AST.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGRenderer.js"], l["Core/Utilities.js"]],
  1902. function(y, j, I, Z) {
  1903. var H = this && this.__extends || function() {
  1904. var S = function(v, d) {
  1905. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, A) {
  1906. u.__proto__ = A;
  1907. } || function(u, A) {
  1908. for (var O in A)
  1909. A.hasOwnProperty(O) && (u[O] = A[O]);
  1910. }, S(v, d);
  1911. };
  1912. return function(v, d) {
  1913. function u() {
  1914. this.constructor = v;
  1915. }
  1916. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  1917. };
  1918. }(), U = Z.attr, F = Z.createElement, N = Z.extend, R = Z.pick;
  1919. return function(S) {
  1920. function v() {
  1921. return S !== null && S.apply(this, arguments) || this;
  1922. }
  1923. return H(v, S), v.compose = function(d) {
  1924. return v.composedClasses.indexOf(d) === -1 && (v.composedClasses.push(d), d.prototype.html = v.prototype.html), d;
  1925. }, v.prototype.html = function(d, u, A) {
  1926. var O = this.createElement("span"), B = O.element, C = O.renderer, b = C.isSVG, w = function(x, a) {
  1927. ["opacity", "visibility"].forEach(function(c) {
  1928. x[c + "Setter"] = function(p, i, h) {
  1929. var o = x.div ? x.div.style : a;
  1930. j.prototype[c + "Setter"].call(this, p, i, h), o && (o[i] = p);
  1931. };
  1932. }), x.addedSetters = !0;
  1933. };
  1934. return O.textSetter = function(x) {
  1935. x !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, R(x, "")), this.textStr = x, O.doTransform = !0);
  1936. }, b && w(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(x, a) {
  1937. a === "align" ? O.alignValue = O.textAlign = x : O[a] = x, O.doTransform = !0;
  1938. }, O.afterSetters = function() {
  1939. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  1940. }, O.attr({ text: d, x: Math.round(u), y: Math.round(A) }).css({ position: "absolute" }), C.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), B.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(x) {
  1941. var a = C.box.parentNode, c = [];
  1942. if (this.parentGroup = x) {
  1943. var p = x.div;
  1944. if (!p) {
  1945. for (; x; )
  1946. c.push(x), x = x.parentGroup;
  1947. c.reverse().forEach(function(i) {
  1948. function h(n, T) {
  1949. i[T] = n, T === "translateX" ? s.left = n + "px" : s.top = n + "px", i.doTransform = !0;
  1950. }
  1951. var o = U(i.element, "class"), t = i.styles || {};
  1952. p = i.div = i.div || F("div", o ? { className: o } : void 0, {
  1953. position: "absolute",
  1954. left: (i.translateX || 0) + "px",
  1955. top: (i.translateY || 0) + "px",
  1956. display: i.display,
  1957. opacity: i.opacity,
  1958. cursor: t.cursor,
  1959. pointerEvents: t.pointerEvents,
  1960. visibility: i.visibility
  1961. }, p || a);
  1962. var s = p.style;
  1963. N(i, { classSetter: function(n) {
  1964. return function(T) {
  1965. this.element.setAttribute("class", T), n.className = T;
  1966. };
  1967. }(p), on: function() {
  1968. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  1969. }, translateXSetter: h, translateYSetter: h }), i.addedSetters || w(i);
  1970. });
  1971. }
  1972. } else
  1973. p = a;
  1974. return p.appendChild(B), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  1975. }), O;
  1976. }, v.composedClasses = [], v;
  1977. }(I);
  1978. }
  1979. ), E(l, "Core/Axis/AxisDefaults.js", [], function() {
  1980. var y;
  1981. return function(j) {
  1982. j.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: {
  1983. autoRotation: void 0,
  1984. autoRotationLimit: 80,
  1985. distance: void 0,
  1986. enabled: !0,
  1987. indentation: 10,
  1988. overflow: "justify",
  1989. padding: 5,
  1990. reserveSpace: void 0,
  1991. rotation: void 0,
  1992. staggerLines: 0,
  1993. step: 0,
  1994. useHTML: !1,
  1995. x: 0,
  1996. zIndex: 7,
  1997. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  1998. }, 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: {
  1999. align: "middle",
  2000. rotation: 0,
  2001. useHTML: !1,
  2002. x: 0,
  2003. y: 0,
  2004. style: { color: "#666666" }
  2005. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, j.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: {
  2006. animation: {},
  2007. allowOverlap: !1,
  2008. enabled: !1,
  2009. crop: !0,
  2010. overflow: "justify",
  2011. formatter: function() {
  2012. var I = this.axis.chart.numberFormatter;
  2013. return I(this.total, -1);
  2014. },
  2015. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  2016. }, gridLineWidth: 1, lineWidth: 0 }, j.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, j.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, j.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, j.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  2017. }(y || (y = {})), y;
  2018. }), E(l, "Core/Foundation.js", [l["Core/Utilities.js"]], function(y) {
  2019. var j = y.addEvent, I = y.isFunction, Z = y.objectEach, H = y.removeEvent, U;
  2020. return function(F) {
  2021. F.registerEventOptions = function(N, R) {
  2022. N.eventOptions = N.eventOptions || {}, Z(R.events, function(S, v) {
  2023. N.eventOptions[v] !== S && (N.eventOptions[v] && (H(N, v, N.eventOptions[v]), delete N.eventOptions[v]), I(S) && (N.eventOptions[v] = S, j(N, v, S)));
  2024. });
  2025. };
  2026. }(U || (U = {})), U;
  2027. }), E(
  2028. l,
  2029. "Core/Axis/Tick.js",
  2030. [l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Utilities.js"]],
  2031. function(y, j, I) {
  2032. var Z = j.deg2rad, H = I.clamp, U = I.correctFloat, F = I.defined, N = I.destroyObjectProperties, R = I.extend, S = I.fireEvent, v = I.isNumber, d = I.merge, u = I.objectEach, A = I.pick;
  2033. return j = function() {
  2034. function O(B, C, b, w, x) {
  2035. this.isNewLabel = this.isNew = !0, this.axis = B, this.pos = C, this.type = b || "", this.parameters = x || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, S(this, "init"), b || w || this.addLabel();
  2036. }
  2037. return O.prototype.addLabel = function() {
  2038. var B = this, C = B.axis, b = C.options, w = C.chart, x = C.categories, a = C.logarithmic, c = C.names, p = B.pos, i = A(B.options && B.options.labels, b.labels), h = C.tickPositions, o = p === h[0], t = p === h[h.length - 1], s = (!i.step || i.step === 1) && C.tickInterval === 1;
  2039. h = h.info;
  2040. var n = B.label, T;
  2041. if (x = this.parameters.category || (x ? A(x[p], c[p], p) : p), a && v(x) && (x = U(a.lin2log(x))), C.dateTime)
  2042. if (h)
  2043. var _ = w.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && h.higherRanks[p] || h.unitName]), D = _.main;
  2044. else
  2045. v(x) && (D = C.dateTime.getXDateFormat(x, b.dateTimeLabelFormats || {}));
  2046. B.isFirst = o, B.isLast = t;
  2047. var W = {
  2048. axis: C,
  2049. chart: w,
  2050. dateTimeLabelFormat: D,
  2051. isFirst: o,
  2052. isLast: t,
  2053. pos: p,
  2054. tick: B,
  2055. tickPositionInfo: h,
  2056. value: x
  2057. };
  2058. S(this, "labelFormat", W);
  2059. var P = function(g) {
  2060. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = C.defaultLabelFormatter.call(g), y.format(i.format, g, w)) : C.defaultLabelFormatter.call(g, g);
  2061. };
  2062. b = P.call(W, W);
  2063. var X = _ && _.list;
  2064. B.shortenLabel = X ? function() {
  2065. for (T = 0; T < X.length; T++)
  2066. if (R(W, { dateTimeLabelFormat: X[T] }), n.attr({ text: P.call(W, W) }), n.getBBox().width < C.getSlotWidth(B) - 2 * i.padding)
  2067. return;
  2068. n.attr({ text: "" });
  2069. } : void 0, s && C._addedPlotLB && B.moveLabel(b, i), F(n) || B.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) : (B.label = n = B.createLabel({ x: 0, y: 0 }, b, i), B.rotation = 0);
  2070. }, O.prototype.createLabel = function(B, C, b) {
  2071. var w = this.axis, x = w.chart;
  2072. return (B = F(C) && b.enabled ? x.renderer.text(C, B.x, B.y, b.useHTML).add(w.labelGroup) : null) && (x.styledMode || B.css(d(b.style)), B.textPxLength = B.getBBox().width), B;
  2073. }, O.prototype.destroy = function() {
  2074. N(
  2075. this,
  2076. this.axis
  2077. );
  2078. }, O.prototype.getPosition = function(B, C, b, w) {
  2079. var x = this.axis, a = x.chart, c = w && a.oldChartHeight || a.chartHeight;
  2080. return B = { x: B ? U(x.translate(C + b, null, null, w) + x.transB) : x.left + x.offset + (x.opposite ? (w && a.oldChartWidth || a.chartWidth) - x.right - x.left : 0), y: B ? c - x.bottom + x.offset - (x.opposite ? x.height : 0) : U(c - x.translate(C + b, null, null, w) - x.transB) }, B.y = H(B.y, -1e5, 1e5), S(this, "afterGetPosition", { pos: B }), B;
  2081. }, O.prototype.getLabelPosition = function(B, C, b, w, x, a, c, p) {
  2082. var i = this.axis, h = i.transA, o = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, s = i.tickRotCorr || { x: 0, y: 0 }, n = w || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), T = {}, _ = x.y;
  2083. return F(_) || (_ = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? s.y + 8 : Math.cos(b.rotation * Z) * (s.y - b.getBBox(!1, 0).height / 2)), B = B + x.x + n + s.x - (a && w ? a * h * (o ? -1 : 1) : 0), C = C + _ - (a && !w ? a * h * (o ? 1 : -1) : 0), t && (b = c / (p || 1) % t, i.opposite && (b = t - b - 1), C += i.labelOffset / t * b), T.x = B, T.y = Math.round(C), S(this, "afterGetLabelPosition", { pos: T, tickmarkOffset: a, index: c }), T;
  2084. }, O.prototype.getLabelSize = function() {
  2085. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  2086. }, O.prototype.getMarkPath = function(B, C, b, w, x, a) {
  2087. return a.crispLine([["M", B, C], ["L", B + (x ? 0 : -b), C + (x ? b : 0)]], w);
  2088. }, O.prototype.handleOverflow = function(B) {
  2089. var C = this.axis, b = C.options.labels, w = B.x, x = C.chart.chartWidth, a = C.chart.spacing, c = A(C.labelLeft, Math.min(C.pos, a[3]));
  2090. a = A(C.labelRight, Math.max(C.isRadial ? 0 : C.pos + C.len, x - a[1]));
  2091. var p = this.label, i = this.rotation, h = { left: 0, center: 0.5, right: 1 }[C.labelAlign || p.attr("align")], o = p.getBBox().width, t = C.getSlotWidth(this), s = {}, n = t, T = 1, _;
  2092. i || b.overflow !== "justify" ? 0 > i && w - h * o < c ? _ = Math.round(w / Math.cos(i * Z) - c) : 0 < i && w + h * o > a && (_ = Math.round((x - w) / Math.cos(i * Z))) : (x = w + (1 - h) * o, w - h * o < c ? n = B.x + n * (1 - h) - c : x > a && (n = a - B.x + n * h, T = -1), n = Math.min(t, n), n < t && C.labelAlign === "center" && (B.x += T * (t - n - h * (t - Math.min(o, n)))), (o > n || C.autoRotation && (p.styles || {}).width) && (_ = n)), _ && (this.shortenLabel ? this.shortenLabel() : (s.width = Math.floor(_) + "px", (b.style || {}).textOverflow || (s.textOverflow = "ellipsis"), p.css(s)));
  2093. }, O.prototype.moveLabel = function(B, C) {
  2094. var b = this, w = b.label, x = b.axis, a = x.reversed, c = !1;
  2095. if (w && w.textStr === B ? (b.movedLabel = w, c = !0, delete b.label) : u(x.ticks, function(i) {
  2096. c || i.isNew || i === b || !i.label || i.label.textStr !== B || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  2097. }), !c && (b.labelPos || w)) {
  2098. var p = b.labelPos || w.xy;
  2099. w = x.horiz ? a ? 0 : x.width + x.left : p.x, x = x.horiz ? p.y : a ? x.width + x.left : 0, b.movedLabel = b.createLabel({ x: w, y: x }, B, C), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  2100. }
  2101. }, O.prototype.render = function(B, C, b) {
  2102. var w = this.axis, x = w.horiz, a = this.pos, c = A(this.tickmarkOffset, w.tickmarkOffset);
  2103. a = this.getPosition(x, a, c, C), c = a.x;
  2104. var p = a.y;
  2105. w = x && c === w.pos + w.len || !x && p === w.pos ? -1 : 1, x = A(b, this.label && this.label.newOpacity, 1), b = A(b, 1), this.isActive = !0, this.renderGridLine(C, b, w), this.renderMark(a, b, w), this.renderLabel(a, C, x, B), this.isNew = !1, S(this, "afterRender");
  2106. }, O.prototype.renderGridLine = function(B, C, b) {
  2107. var w = this.axis, x = w.options, a = {}, c = this.pos, p = this.type, i = A(
  2108. this.tickmarkOffset,
  2109. w.tickmarkOffset
  2110. ), h = w.chart.renderer, o = this.gridLine, t = x.gridLineWidth, s = x.gridLineColor, n = x.gridLineDashStyle;
  2111. this.type === "minor" && (t = x.minorGridLineWidth, s = x.minorGridLineColor, n = x.minorGridLineDashStyle), o || (w.chart.styledMode || (a.stroke = s, a["stroke-width"] = t || 0, a.dashstyle = n), p || (a.zIndex = 1), B && (C = 0), this.gridLine = o = h.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(w.gridGroup)), o && (b = w.getPlotLinePath({ value: c + i, lineWidth: o.strokeWidth() * b, force: "pass", old: B })) && o[B || this.isNew ? "attr" : "animate"]({ d: b, opacity: C });
  2112. }, O.prototype.renderMark = function(B, C, b) {
  2113. var w = this.axis, x = w.options, a = w.chart.renderer, c = this.type, p = w.tickSize(c ? c + "Tick" : "tick"), i = B.x;
  2114. B = B.y;
  2115. var h = A(x[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && w.isXAxis ? 1 : 0);
  2116. x = x[c !== "minor" ? "tickColor" : "minorTickColor"];
  2117. var o = this.mark, t = !o;
  2118. p && (w.opposite && (p[0] = -p[0]), o || (this.mark = o = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(w.axisGroup), w.chart.styledMode || o.attr({ stroke: x, "stroke-width": h })), o[t ? "attr" : "animate"]({ d: this.getMarkPath(
  2119. i,
  2120. B,
  2121. p[0],
  2122. o.strokeWidth() * b,
  2123. w.horiz,
  2124. a
  2125. ), opacity: C }));
  2126. }, O.prototype.renderLabel = function(B, C, b, w) {
  2127. var x = this.axis, a = x.horiz, c = x.options, p = this.label, i = c.labels, h = i.step;
  2128. x = A(this.tickmarkOffset, x.tickmarkOffset);
  2129. var o = B.x;
  2130. B = B.y;
  2131. var t = !0;
  2132. p && v(o) && (p.xy = B = this.getLabelPosition(o, B, p, a, i, x, w, h), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !a || i.step || i.rotation || C || b === 0 || this.handleOverflow(B), h && w % h && (t = !1), t && v(B.y) ? (B.opacity = b, p[this.isNewLabel ? "attr" : "animate"](B), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  2133. }, O.prototype.replaceMovedLabel = function() {
  2134. var B = this.label, C = this.axis, b = C.reversed;
  2135. if (B && !this.isNew) {
  2136. var w = C.horiz ? b ? C.left : C.width + C.left : B.xy.x;
  2137. b = C.horiz ? B.xy.y : b ? C.width + C.top : C.top, B.animate({ x: w, y: b, opacity: 0 }, void 0, B.destroy), delete this.label;
  2138. }
  2139. C.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  2140. }, O;
  2141. }(), j;
  2142. }
  2143. ), E(l, "Core/Axis/Axis.js", [
  2144. l["Core/Animation/AnimationUtilities.js"],
  2145. l["Core/Axis/AxisDefaults.js"],
  2146. l["Core/Color/Color.js"],
  2147. l["Core/DefaultOptions.js"],
  2148. l["Core/Foundation.js"],
  2149. l["Core/Globals.js"],
  2150. l["Core/Axis/Tick.js"],
  2151. l["Core/Utilities.js"]
  2152. ], function(y, j, I, Z, H, U, F, N) {
  2153. var R = y.animObject, S = Z.defaultOptions, v = H.registerEventOptions, d = U.deg2rad, u = N.arrayMax, A = N.arrayMin, O = N.clamp, B = N.correctFloat, C = N.defined, b = N.destroyObjectProperties, w = N.erase, x = N.error, a = N.extend, c = N.fireEvent, p = N.getMagnitude, i = N.isArray, h = N.isNumber, o = N.isString, t = N.merge, s = N.normalizeTickInterval, n = N.objectEach, T = N.pick, _ = N.relativeLength, D = N.removeEvent, W = N.splat, P = N.syncTimeout;
  2154. return y = function() {
  2155. function X(g, m) {
  2156. 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);
  2157. }
  2158. return X.prototype.init = function(g, m) {
  2159. var L = m.isX;
  2160. 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 = T(m.opposite, this.opposite), this.side = T(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  2161. var Y = this.options, V = Y.labels, Q = Y.type;
  2162. this.userOptions = m, this.minPixelPadding = 0, this.reversed = T(Y.reversed, this.reversed), this.visible = Y.visible, this.zoomEnabled = Y.zoomEnabled, this.hasNames = Q === "category" || Y.categories === !0, this.categories = Y.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = C(Y.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = Y.minRange || Y.maxZoom, this.range = Y.range, this.offset = Y.offset || 0, this.min = this.max = null, m = T(Y.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 = h(V.rotation) ? V.rotation : void 0, v(this, Y), c(this, "afterInit");
  2163. }, X.prototype.setOptions = function(g) {
  2164. this.options = t(j.defaultXAxisOptions, this.coll === "yAxis" && j.defaultYAxisOptions, [j.defaultTopAxisOptions, j.defaultRightAxisOptions, j.defaultBottomAxisOptions, j.defaultLeftAxisOptions][this.side], t(S[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  2165. }, X.prototype.defaultLabelFormatter = function(g) {
  2166. var m = this.axis;
  2167. g = this.chart.numberFormatter;
  2168. var L = h(this.value) ? this.value : NaN, Y = m.chart.time, V = this.dateTimeLabelFormat, Q = S.lang, k = Q.numericSymbols;
  2169. Q = Q.numericSymbolMagnitude || 1e3;
  2170. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  2171. if (m.categories)
  2172. var $ = "" + this.value;
  2173. else if (V)
  2174. $ = Y.dateFormat(V, L);
  2175. else if (z && 1e3 <= G)
  2176. for (; z-- && typeof $ > "u"; )
  2177. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && ($ = g(L / m, -1) + k[z]);
  2178. return typeof $ > "u" && ($ = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), $;
  2179. }, X.prototype.getSeriesExtremes = function() {
  2180. var g = this, m = g.chart, L;
  2181. c(this, "getSeriesExtremes", null, function() {
  2182. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(Y) {
  2183. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  2184. var V = Y.options, Q = V.threshold;
  2185. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  2186. if (V = Y.xData, V.length) {
  2187. V = g.logarithmic ? V.filter(g.validatePositiveValue) : V, L = Y.getXExtremes(V);
  2188. var k = L.min, G = L.max;
  2189. h(k) || k instanceof Date || (V = V.filter(h), L = Y.getXExtremes(V), k = L.min, G = L.max), V.length && (g.dataMin = Math.min(T(g.dataMin, k), k), g.dataMax = Math.max(T(g.dataMax, G), G));
  2190. }
  2191. } else
  2192. Y = Y.applyExtremes(), h(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(T(g.dataMin, k), k)), h(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(T(g.dataMax, G), G)), C(Q) && (g.threshold = Q), (!V.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  2193. }
  2194. });
  2195. }), c(this, "afterGetSeriesExtremes");
  2196. }, X.prototype.translate = function(g, m, L, Y, V, Q) {
  2197. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  2198. V = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && V) && k.lin2val;
  2199. var $ = 1, q = 0;
  2200. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && ($ *= -1, q = k.len), k.reversed && ($ *= -1, q -= $ * (k.sector || k.len)), m ? (g = (g * $ + q - z) / Y + G, V && (g = k.lin2val(g))) : (V && (g = k.val2lin(g)), g = h(G) ? $ * (g - G) * Y + q + $ * z + (h(Q) ? Y * Q : 0) : void 0), g;
  2201. }, X.prototype.toPixels = function(g, m) {
  2202. return this.translate(
  2203. g,
  2204. !1,
  2205. !this.horiz,
  2206. null,
  2207. !0
  2208. ) + (m ? 0 : this.pos);
  2209. }, X.prototype.toValue = function(g, m) {
  2210. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  2211. }, X.prototype.getPlotLinePath = function(g) {
  2212. function m(at, J, tt) {
  2213. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : ht = !0), at;
  2214. }
  2215. var L = this, Y = L.chart, V = L.left, Q = L.top, k = g.old, G = g.value, z = g.lineWidth, $ = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, ht;
  2216. return g = {
  2217. value: G,
  2218. lineWidth: z,
  2219. old: k,
  2220. force: nt,
  2221. acrossPanes: g.acrossPanes,
  2222. translatedValue: et
  2223. }, c(this, "getPlotLinePath", g, function(at) {
  2224. et = T(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round($ - et - it), h(et) ? L.horiz ? (ct = Q, dt = $ - L.bottom, rt = gt = m(rt, V, V + L.width)) : (rt = V, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (ht = !0, nt = !1), at.path = ht && !nt ? null : Y.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], z || 1);
  2225. }), g.path;
  2226. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  2227. var Y = B(Math.floor(m / g) * g);
  2228. L = B(Math.ceil(L / g) * g);
  2229. var V = [], Q;
  2230. if (B(Y + g) === Y && (Q = 20), this.single)
  2231. return [m];
  2232. for (m = Y; m <= L && (V.push(m), m = B(m + g, Q), m !== k); )
  2233. var k = m;
  2234. return V;
  2235. }, X.prototype.getMinorTickInterval = function() {
  2236. var g = this.options;
  2237. return g.minorTicks === !0 ? T(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  2238. }, X.prototype.getMinorTickPositions = function() {
  2239. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, V = this.min - Y;
  2240. Y = this.max + Y;
  2241. var Q = Y - V, k = [];
  2242. if (Q && Q / L < this.len / 3) {
  2243. var G = this.logarithmic;
  2244. if (G)
  2245. this.paddedTicks.forEach(function(z, $, q) {
  2246. $ && k.push.apply(
  2247. k,
  2248. G.getLogTickPositions(L, q[$ - 1], q[$], !0)
  2249. );
  2250. });
  2251. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  2252. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), V, Y, g.startOfWeek));
  2253. else
  2254. for (g = V + (m[0] - V) % L; g <= Y && g !== k[0]; g += L)
  2255. k.push(g);
  2256. }
  2257. return k.length !== 0 && this.trimTicks(k), k;
  2258. }, X.prototype.adjustForMinRange = function() {
  2259. var g = this.options, m = this.logarithmic, L = this.min, Y = this.max, V = 0, Q, k, G, z;
  2260. if (this.isXAxis && typeof this.minRange > "u" && !m && (C(g.min) || C(g.max) || C(g.floor) || C(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  2261. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  2262. for (Q = z; 0 < Q; Q--)
  2263. k = G[Q] - G[Q - 1], (!V || k < V) && (V = k);
  2264. }), this.minRange = Math.min(5 * V, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  2265. var $ = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  2266. it = [L - it, T(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = u(it), Y = [L + q, T(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = A(Y), Y - L < q && (it[0] = Y - q, it[1] = T(g.min, Y - q), L = u(it));
  2267. }
  2268. this.min = L, this.max = Y;
  2269. }, X.prototype.getClosest = function() {
  2270. var g;
  2271. return this.categories ? g = 1 : this.series.forEach(function(m) {
  2272. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  2273. !m.noSharedTooltip && C(L) && Y && (g = C(g) ? Math.min(g, L) : L);
  2274. }), g;
  2275. }, X.prototype.nameToX = function(g) {
  2276. var m = i(this.categories), L = m ? this.categories : this.names, Y = g.options.x;
  2277. if (g.series.requireSorting = !1, C(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(g.name) : T(L.keys[g.name], -1) : g.series.autoIncrement()), Y === -1) {
  2278. if (!m)
  2279. var V = L.length;
  2280. } else
  2281. V = Y;
  2282. return typeof V < "u" && (this.names[V] = g.name, this.names.keys[g.name] = V), V;
  2283. }, X.prototype.updateNames = function() {
  2284. var g = this, m = this.names;
  2285. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  2286. delete m.keys[L];
  2287. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  2288. 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(Y, V) {
  2289. if (Y && Y.options && typeof Y.name < "u") {
  2290. var Q = g.nameToX(Y);
  2291. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[V] = Q);
  2292. }
  2293. });
  2294. }));
  2295. }, X.prototype.setAxisTranslation = function() {
  2296. var g = this, m = g.max - g.min, L = g.linkedParent, Y = !!g.categories, V = g.isXAxis, Q = g.axisPointRange || 0, k = 0, G = 0, z = g.transA;
  2297. if (V || Y || Q) {
  2298. var $ = g.getClosest();
  2299. L ? (k = L.minPointOffset, G = L.pointRangePadding) : g.series.forEach(function(q) {
  2300. var it = Y ? 1 : V ? T(q.options.pointRange, $, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  2301. Q = Math.max(Q, it), (!g.single || Y) && (q = q.is("xrange") ? !V : V, k = Math.max(k, q && o(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  2302. }), L = g.ordinal && g.ordinal.slope && $ ? g.ordinal.slope / $ : 1, g.minPointOffset = k *= L, g.pointRangePadding = G *= L, g.pointRange = Math.min(Q, g.single && Y ? 1 : m), V && (g.closestPointRange = $);
  2303. }
  2304. g.translationSlope = g.transA = z = g.staticScale || g.len / (m + G || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  2305. }, X.prototype.minFromRange = function() {
  2306. return this.max - this.range;
  2307. }, X.prototype.setTickInterval = function(g) {
  2308. var m = this.chart, L = this.logarithmic, Y = this.options, V = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, $ = Y.maxPadding, q = Y.minPadding, it = h(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = h(this.threshold) ? this.threshold : null;
  2309. this.dateTime || G || Q || this.getTickAmount();
  2310. var nt = T(this.userMin, Y.min), rt = T(this.userMax, Y.max);
  2311. if (Q) {
  2312. this.linkedParent = m[this.coll][Y.linkedTo];
  2313. var ct = this.linkedParent.getExtremes();
  2314. this.min = T(ct.min, ct.dataMin), this.max = T(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && x(11, 1, m);
  2315. } else {
  2316. if (z && C(et)) {
  2317. if (this.dataMin >= et)
  2318. ct = et, q = 0;
  2319. else if (this.dataMax <= et) {
  2320. var gt = et;
  2321. $ = 0;
  2322. }
  2323. }
  2324. this.min = T(nt, ct, this.dataMin), this.max = T(rt, gt, this.dataMax);
  2325. }
  2326. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, T(this.dataMin, this.min)) && x(10, 1, m), this.min = B(L.log2lin(this.min), 16), this.max = B(L.log2lin(this.max), 16)), this.range && C(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(), !(G || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && C(this.min) && C(this.max) && (m = this.max - this.min) && (!C(nt) && q && (this.min -= m * q), !C(rt) && $ && (this.max += m * $)), h(this.userMin) || (h(Y.softMin) && Y.softMin < this.min && (this.min = nt = Y.softMin), h(Y.floor) && (this.min = Math.max(this.min, Y.floor))), h(this.userMax) || (h(Y.softMax) && Y.softMax > this.max && (this.max = rt = Y.softMax), h(Y.ceiling) && (this.max = Math.min(this.max, Y.ceiling))), z && C(this.dataMin) && (et = et || 0, !C(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !C(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), h(this.min) && h(this.max) && !this.chart.polar && this.min > this.max && (C(this.options.min) ? this.max = this.min : C(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 && k === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : T(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, G ? 1 : (this.max - this.min) * k / Math.max(this.len, k)), V && !g) {
  2327. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  2328. this.series.forEach(function(ht) {
  2329. ht.forceCrop = ht.forceCropping && ht.forceCropping(), ht.processData(dt);
  2330. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  2331. }
  2332. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = T(Y.minTickInterval, this.dateTime && !this.series.some(function(ht) {
  2333. return ht.noSharedTooltip;
  2334. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = s(this.tickInterval, void 0, p(this.tickInterval), T(Y.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  2335. }, X.prototype.setTickPositions = function() {
  2336. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), V = this.coll === "colorAxis", Q = (V || !Y) && g.startOnTick;
  2337. Y = (V || !Y) && g.endOnTick, V = 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 && C(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(
  2338. this.tickInterval,
  2339. this.min,
  2340. this.max
  2341. ) : (L = [this.min, this.max], x(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, V && (V = V.apply(this, [this.min, this.max]))) && (this.tickPositions = L = V), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  2342. return k.is("heatmap") && k.options.pointPlacement === "between";
  2343. }) && (this.min -= 0.5, this.max += 0.5), m || V || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  2344. }, X.prototype.trimTicks = function(g, m, L) {
  2345. var Y = g[0], V = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  2346. if (c(this, "trimTicks"), !this.isLinked) {
  2347. if (m && Y !== -1 / 0)
  2348. this.min = Y;
  2349. else
  2350. for (; this.min - Q > g[0]; )
  2351. g.shift();
  2352. if (L)
  2353. this.max = V;
  2354. else
  2355. for (; this.max + Q < g[g.length - 1]; )
  2356. g.pop();
  2357. g.length === 0 && C(Y) && !this.options.tickPositions && g.push((V + Y) / 2);
  2358. }
  2359. }, X.prototype.alignToOthers = function() {
  2360. var g = {}, m = this.options, L;
  2361. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  2362. var V = Y.options;
  2363. V = [Y.horiz ? V.left : V.top, V.width, V.height, V.pane].join(), Y.series.length && (g[V] ? L = !0 : g[V] = 1);
  2364. }), L;
  2365. }, X.prototype.getTickAmount = function() {
  2366. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  2367. !C(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;
  2368. }, X.prototype.adjustTickAmount = function() {
  2369. var g = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, V = this.finalTickAmt, Q = L && L.length, k = T(this.threshold, this.softThreshold ? 0 : null);
  2370. if (this.hasData() && h(this.min) && h(this.max)) {
  2371. if (Q < Y) {
  2372. for (; L.length < Y; )
  2373. L.length % 2 || this.min === k ? L.push(B(L[L.length - 1] + m)) : L.unshift(B(L[0] - m));
  2374. this.transA *= (Q - 1) / (Y - 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]);
  2375. } else
  2376. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  2377. if (C(V)) {
  2378. for (m = g = L.length; m--; )
  2379. (V === 3 && m % 2 === 1 || 2 >= V && 0 < m && m < g - 1) && L.splice(m, 1);
  2380. this.finalTickAmt = void 0;
  2381. }
  2382. }
  2383. }, X.prototype.setScale = function() {
  2384. var g = !1, m = !1;
  2385. this.series.forEach(function(Y) {
  2386. g = g || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  2387. }), this.setAxisSize();
  2388. var L = this.len !== (this.old && this.old.len);
  2389. 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");
  2390. }, X.prototype.setExtremes = function(g, m, L, Y, V) {
  2391. var Q = this, k = Q.chart;
  2392. L = T(L, !0), Q.series.forEach(function(G) {
  2393. delete G.kdTree;
  2394. }), V = a(V, { min: g, max: m }), c(Q, "setExtremes", V, function() {
  2395. Q.userMin = g, Q.userMax = m, Q.eventArgs = V, L && k.redraw(Y);
  2396. });
  2397. }, X.prototype.zoom = function(g, m) {
  2398. var L = this, Y = this.dataMin, V = this.dataMax, Q = this.options, k = Math.min(Y, T(Q.min, Y)), G = Math.max(V, T(Q.max, V));
  2399. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(z) {
  2400. var $ = z.newMin, q = z.newMax;
  2401. ($ !== L.min || q !== L.max) && (L.allowZoomOutside || (C(Y) && ($ < k && ($ = k), $ > G && ($ = G)), C(V) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof $ < "u" || typeof q < "u", L.setExtremes($, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  2402. }), g.zoomed;
  2403. }, X.prototype.setAxisSize = function() {
  2404. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, V = this.width = Math.round(_(T(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(T(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(T(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  2405. m = this.left = Math.round(_(T(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - k, this.right = g.chartWidth - V - m, this.len = Math.max(Y ? V : Q, 0), this.pos = Y ? m : k;
  2406. }, X.prototype.getExtremes = function() {
  2407. var g = this.logarithmic;
  2408. return { min: g ? B(g.lin2log(this.min)) : this.min, max: g ? B(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  2409. }, X.prototype.getThreshold = function(g) {
  2410. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  2411. 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);
  2412. }, X.prototype.autoLabelAlign = function(g) {
  2413. var m = (T(g, 0) - 90 * this.side + 720) % 360;
  2414. return g = { align: "center" }, c(
  2415. this,
  2416. "autoLabelAlign",
  2417. g,
  2418. function(L) {
  2419. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  2420. }
  2421. ), g.align;
  2422. }, X.prototype.tickSize = function(g) {
  2423. var m = this.options, L = T(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[g === "tick" ? "tickLength" : "minorTickLength"];
  2424. if (L && Y) {
  2425. m[g + "Position"] === "inside" && (Y = -Y);
  2426. var V = [Y, L];
  2427. }
  2428. return g = { tickSize: V }, c(this, "afterTickSize", g), g.tickSize;
  2429. }, X.prototype.labelMetrics = function() {
  2430. var g = this.tickPositions && this.tickPositions[0] || 0;
  2431. return this.chart.renderer.fontMetrics(
  2432. this.options.labels.style.fontSize,
  2433. this.ticks[g] && this.ticks[g].label
  2434. );
  2435. }, X.prototype.unsquish = function() {
  2436. var g = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), V = g.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  2437. var rt = nt / (Y || 1);
  2438. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), B(rt * L);
  2439. }, z = L, $, q, it = Number.MAX_VALUE;
  2440. if (m) {
  2441. if (!g.staggerLines && !g.step)
  2442. if (h(V))
  2443. var et = [V];
  2444. else
  2445. Y < g.autoRotationLimit && (et = g.autoRotation);
  2446. et && et.forEach(function(nt) {
  2447. if (nt === V || nt && -90 <= nt && 90 >= nt) {
  2448. q = G(Math.abs(Q.h / Math.sin(d * nt)));
  2449. var rt = q + Math.abs(nt / 360);
  2450. rt < it && (it = rt, $ = nt, z = q);
  2451. }
  2452. });
  2453. } else
  2454. g.step || (z = G(Q.h));
  2455. return this.autoRotation = et, this.labelRotation = T($, h(V) ? V : 0), z;
  2456. }, X.prototype.getSlotWidth = function(g) {
  2457. var m = this.chart, L = this.horiz, Y = this.options.labels, V = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  2458. if (g && h(g.slotWidth))
  2459. return g.slotWidth;
  2460. if (L && 2 > Y.step)
  2461. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / V;
  2462. if (!L) {
  2463. if (g = Y.style.width, g !== void 0)
  2464. return parseInt(String(g), 10);
  2465. if (Q)
  2466. return Q - m.spacing[3];
  2467. }
  2468. return 0.33 * m.chartWidth;
  2469. }, X.prototype.renderUnsquish = function() {
  2470. var g = this.chart, m = g.renderer, L = this.tickPositions, Y = this.ticks, V = this.options.labels, Q = V.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * V.padding)), $ = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  2471. if (o(V.rotation) || ($.rotation = V.rotation || 0), L.forEach(function(gt) {
  2472. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  2473. }), this.maxLabelLength = et, this.autoRotation)
  2474. et > z && et > q.h ? $.rotation = this.labelRotation : this.labelRotation = 0;
  2475. else if (G) {
  2476. var nt = z;
  2477. if (!it) {
  2478. var rt = "clip";
  2479. for (z = L.length; !k && z--; ) {
  2480. var ct = L[z];
  2481. (ct = Y[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > G && ct.css({ width: G + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  2482. }
  2483. }
  2484. }
  2485. $.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = V.align || this.autoLabelAlign(this.labelRotation)) && ($.align = this.labelAlign), L.forEach(function(gt) {
  2486. var dt = (gt = Y[gt]) && gt.label, ht = Q.width, at = {};
  2487. dt && (dt.attr($), 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 = $.rotation);
  2488. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  2489. }, X.prototype.hasData = function() {
  2490. return this.series.some(function(g) {
  2491. return g.hasData();
  2492. }) || this.options.showEmpty && C(this.min) && C(this.max);
  2493. }, X.prototype.addTitle = function(g) {
  2494. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, V = this.options.title, Q = this.chart.styledMode, k;
  2495. this.axisTitle || ((k = V.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[V.align]), this.axisTitle = m.text(V.text || "", 0, 0, V.useHTML).attr({ zIndex: 7, rotation: V.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(V.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || V.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  2496. }, X.prototype.generateTick = function(g) {
  2497. var m = this.ticks;
  2498. m[g] ? m[g].addLabel() : m[g] = new F(this, g);
  2499. }, X.prototype.getOffset = function() {
  2500. var g = this, m = this, L = m.chart, Y = m.horiz, V = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, $ = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = V.title, rt = V.labels, ct = L.axisOffset;
  2501. L = L.clipOffset;
  2502. var gt = [
  2503. -1,
  2504. 1,
  2505. 1,
  2506. -1
  2507. ][Q], dt = V.className, ht, at = 0, J = 0, tt = 0;
  2508. if (m.showAxis = ht = et || V.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  2509. var ot = function(pt, yt, vt) {
  2510. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add($);
  2511. };
  2512. m.gridGroup = ot("grid", "-grid", V.gridZIndex), m.axisGroup = ot("axis", "", V.zIndex), m.labelGroup = ot("axis-labels", "-labels", rt.zIndex);
  2513. }
  2514. if (et || m.isLinked ? (G.forEach(function(pt) {
  2515. m.generateTick(pt);
  2516. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, T(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && G.forEach(function(pt) {
  2517. tt = Math.max(k[pt].getLabelSize(), tt);
  2518. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(k, function(pt, yt) {
  2519. pt.destroy(), delete k[yt];
  2520. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(ht), ht && nt.reserveSpace !== !1)) {
  2521. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  2522. var lt = nt.offset;
  2523. J = C(lt) ? 0 : T(nt.margin, Y ? 5 : 10);
  2524. }
  2525. m.renderLine(), m.offset = gt * T(
  2526. V.offset,
  2527. ct[Q] ? ct[Q] + (V.margin || 0) : 0
  2528. ), 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 * (Y ? T(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = T(lt, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(k, G)), z !== "colorAxis" && (Y = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, G && G.length && Y ? Y[0] + gt * m.offset : 0), V = !m.axisLine || V.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(
  2529. L[it],
  2530. V
  2531. )), c(this, "afterGetOffset");
  2532. }, X.prototype.getLinePath = function(g) {
  2533. var m = this.chart, L = this.opposite, Y = this.offset, V = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  2534. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (g *= -1), m.renderer.crispLine([["M", V ? this.left : Q, V ? Y : this.top], ["L", V ? m.chartWidth - this.right : Q, V ? Y : m.chartHeight - this.bottom]], g);
  2535. }, X.prototype.renderLine = function() {
  2536. 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 }));
  2537. }, X.prototype.getTitlePosition = function() {
  2538. var g = this.horiz, m = this.left, L = this.top, Y = this.len, V = this.options.title, Q = g ? m : L, k = this.opposite, G = this.offset, z = V.x, $ = V.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(V.style.fontSize, q);
  2539. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (g ? 0 : Y), middle: Q + Y / 2, high: Q + (g ? Y : 0) }[V.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [
  2540. -q,
  2541. q,
  2542. it.f,
  2543. -q
  2544. ][this.side], g = { x: g ? Y + z : m + (k ? this.width : 0) + G + z, y: g ? m + $ - (k ? this.height : 0) + G : Y + $ }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  2545. }, X.prototype.renderMinorTick = function(g, m) {
  2546. var L = this.minorTicks;
  2547. L[g] || (L[g] = new F(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  2548. }, X.prototype.renderTick = function(g, m, L) {
  2549. var Y = this.ticks;
  2550. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (Y[g] || (Y[g] = new F(this, g)), L && Y[g].isNew && Y[g].render(m, !0, -1), Y[g].render(m));
  2551. }, X.prototype.render = function() {
  2552. var g = this, m = g.chart, L = g.logarithmic, Y = g.options, V = g.isLinked, Q = g.tickPositions, k = g.axisTitle, G = g.ticks, z = g.minorTicks, $ = g.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = R(m.renderer.globalAnimation), gt, dt;
  2553. if (g.labelEdge.length = 0, g.overlap = !1, [G, z, $].forEach(function(at) {
  2554. n(at, function(J) {
  2555. J.isActive = !1;
  2556. });
  2557. }), g.hasData() || V) {
  2558. var ht = g.chart.hasRendered && g.old && h(g.old.min);
  2559. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  2560. g.renderMinorTick(
  2561. at,
  2562. ht
  2563. );
  2564. }), Q.length && (Q.forEach(function(at, J) {
  2565. g.renderTick(at, J, ht);
  2566. }), et && (g.min === 0 || g.single) && (G[-1] || (G[-1] = new F(g, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  2567. 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) && ($[at] || ($[at] = new U.PlotLineOrBand(g)), gt = at + et, $[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, $[at].render(), $[at].isActive = !0);
  2568. }), g._addedPlotLB || (g._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  2569. g.addPlotBandOrLine(at);
  2570. }));
  2571. }
  2572. [G, z, $].forEach(function(at) {
  2573. var J = [], tt = ct.duration;
  2574. n(at, function(ot, lt) {
  2575. ot.isActive || (ot.render(lt, !1, 0), ot.isActive = !1, J.push(lt));
  2576. }), P(function() {
  2577. for (var ot = J.length; ot--; )
  2578. at[J[ot]] && !at[J[ot]].isActive && (at[J[ot]].destroy(), delete at[J[ot]]);
  2579. }, at !== $ && m.hasRendered && tt ? tt : 0);
  2580. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = g.getTitlePosition(), h(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr(
  2581. "y",
  2582. -9999
  2583. ), k.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");
  2584. }, X.prototype.redraw = function() {
  2585. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  2586. g.render();
  2587. })), this.series.forEach(function(g) {
  2588. g.isDirty = !0;
  2589. });
  2590. }, X.prototype.getKeepProps = function() {
  2591. return this.keepProps || X.keepProps;
  2592. }, X.prototype.destroy = function(g) {
  2593. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  2594. if (c(this, "destroy", { keepEvents: g }), g || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  2595. b(Q);
  2596. }), L)
  2597. for (g = L.length; g--; )
  2598. L[g].destroy();
  2599. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  2600. m[Q] && (m[Q] = m[Q].destroy());
  2601. });
  2602. for (var V in m.plotLinesAndBandsGroups)
  2603. m.plotLinesAndBandsGroups[V] = m.plotLinesAndBandsGroups[V].destroy();
  2604. n(m, function(Q, k) {
  2605. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  2606. }), this.eventOptions = Y;
  2607. }, X.prototype.drawCrosshair = function(g, m) {
  2608. var L = this.crosshair, Y = T(L && L.snap, !0), V = this.chart, Q, k = this.cross;
  2609. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (C(m) || !Y) !== !1) {
  2610. if (Y ? C(m) && (Q = T(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), C(Q)) {
  2611. var G = { value: m && (this.isXAxis ? m.x : T(m.stackY, m.y)), translatedValue: Q };
  2612. V.polar && a(G, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  2613. }
  2614. if (!C(G)) {
  2615. this.hideCrosshair();
  2616. return;
  2617. }
  2618. Y = this.categories && !this.isRadial, k || (this.cross = k = V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: T(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": T(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && k.attr({ dashstyle: L.dashStyle }))), k.show().attr({ d: G }), Y && !L.width && k.attr({ "stroke-width": this.transA }), this.cross.e = g;
  2619. } else
  2620. this.hideCrosshair();
  2621. c(this, "afterDrawCrosshair", { e: g, point: m });
  2622. }, X.prototype.hideCrosshair = function() {
  2623. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  2624. }, X.prototype.hasVerticalPanning = function() {
  2625. var g = this.chart.options.chart.panning;
  2626. return !!(g && g.enabled && /y/.test(g.type));
  2627. }, X.prototype.validatePositiveValue = function(g) {
  2628. return h(g) && 0 < g;
  2629. }, X.prototype.update = function(g, m) {
  2630. var L = this.chart;
  2631. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, T(m, !0) && L.redraw();
  2632. }, X.prototype.remove = function(g) {
  2633. for (var m = this.chart, L = this.coll, Y = this.series, V = Y.length; V--; )
  2634. Y[V] && Y[V].remove(!1);
  2635. w(m.axes, this), w(m[L], this), m[L].forEach(function(Q, k) {
  2636. Q.options.index = Q.userOptions.index = k;
  2637. }), this.destroy(), m.isDirtyBox = !0, T(g, !0) && m.redraw();
  2638. }, X.prototype.setTitle = function(g, m) {
  2639. this.update({ title: g }, m);
  2640. }, X.prototype.setCategories = function(g, m) {
  2641. this.update({ categories: g }, m);
  2642. }, X.defaultOptions = j.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  2643. }(), y;
  2644. }), E(l, "Core/Axis/DateTimeAxis.js", [l["Core/Utilities.js"]], function(y) {
  2645. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.timeUnits, U;
  2646. return function(F) {
  2647. function N() {
  2648. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  2649. }
  2650. function R(d) {
  2651. d.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new v(this));
  2652. }
  2653. var S = [];
  2654. F.compose = function(d) {
  2655. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("dateTime"), d.prototype.getTimeTicks = N, j(
  2656. d,
  2657. "init",
  2658. R
  2659. )), d;
  2660. };
  2661. var v = function() {
  2662. function d(u) {
  2663. this.axis = u;
  2664. }
  2665. return d.prototype.normalizeTimeTickInterval = function(u, A) {
  2666. var O = A || [["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]];
  2667. A = O[O.length - 1];
  2668. var B = H[A[0]], C = A[1], b;
  2669. for (b = 0; b < O.length && (A = O[b], B = H[A[0]], C = A[1], !(O[b + 1] && u <= (B * C[C.length - 1] + H[O[b + 1][0]]) / 2)); b++)
  2670. ;
  2671. return B === H.year && u < 5 * B && (C = [1, 2, 5]), u = Z(u / B, C, A[0] === "year" ? Math.max(I(u / B), 1) : 1), { unitRange: B, count: u, unitName: A[0] };
  2672. }, d.prototype.getXDateFormat = function(u, A) {
  2673. var O = this.axis;
  2674. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, u, O.options.startOfWeek, A) || A.year : A.day;
  2675. }, d;
  2676. }();
  2677. F.Additions = v;
  2678. }(U || (U = {})), U;
  2679. }), E(l, "Core/Axis/LogarithmicAxis.js", [l["Core/Utilities.js"]], function(y) {
  2680. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.pick, U;
  2681. return function(F) {
  2682. function N(d) {
  2683. var u = this.logarithmic;
  2684. d.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : u || (this.logarithmic = new v(this));
  2685. }
  2686. function R() {
  2687. var d = this.logarithmic;
  2688. d && (this.lin2val = function(u) {
  2689. return d.lin2log(u);
  2690. }, this.val2lin = function(u) {
  2691. return d.log2lin(u);
  2692. });
  2693. }
  2694. var S = [];
  2695. F.compose = function(d) {
  2696. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("logarithmic"), j(d, "init", N), j(d, "afterInit", R)), d;
  2697. };
  2698. var v = function() {
  2699. function d(u) {
  2700. this.axis = u;
  2701. }
  2702. return d.prototype.getLogTickPositions = function(u, A, O, B) {
  2703. var C = this.axis, b = C.len, w = C.options, x = [];
  2704. if (B || (this.minorAutoInterval = void 0), 0.5 <= u)
  2705. u = Math.round(u), x = C.getLinearTickPositions(u, A, O);
  2706. else if (0.08 <= u) {
  2707. var a = Math.floor(A), c, p = w = void 0;
  2708. for (b = 0.3 < u ? [1, 2, 4] : 0.15 < u ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  2709. var i = b.length;
  2710. for (c = 0; c < i && !p; c++) {
  2711. var h = this.log2lin(this.lin2log(a) * b[c]);
  2712. h > A && (!B || w <= O) && typeof w < "u" && x.push(w), w > O && (p = !0), w = h;
  2713. }
  2714. }
  2715. } else
  2716. A = this.lin2log(A), O = this.lin2log(O), u = B ? C.getMinorTickInterval() : w.tickInterval, u = H(u === "auto" ? null : u, this.minorAutoInterval, w.tickPixelInterval / (B ? 5 : 1) * (O - A) / ((B ? b / C.tickPositions.length : b) || 1)), u = Z(u, void 0, I(u)), x = C.getLinearTickPositions(u, A, O).map(this.log2lin), B || (this.minorAutoInterval = u / 5);
  2717. return B || (C.tickInterval = u), x;
  2718. }, d.prototype.lin2log = function(u) {
  2719. return Math.pow(10, u);
  2720. }, d.prototype.log2lin = function(u) {
  2721. return Math.log(u) / Math.LN10;
  2722. }, d;
  2723. }();
  2724. F.Additions = v;
  2725. }(U || (U = {})), U;
  2726. }), E(l, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [l["Core/Utilities.js"]], function(y) {
  2727. var j = y.erase, I = y.extend, Z = y.isNumber, H;
  2728. return function(U) {
  2729. var F = [], N;
  2730. U.compose = function(S, v) {
  2731. return N || (N = S), F.indexOf(v) === -1 && (F.push(v), I(v.prototype, R.prototype)), v;
  2732. };
  2733. var R = function() {
  2734. function S() {
  2735. }
  2736. return S.prototype.getPlotBandPath = function(v, d, u) {
  2737. u === void 0 && (u = this.options);
  2738. var A = this.getPlotLinePath({ value: d, force: !0, acrossPanes: u.acrossPanes }), O = [], B = this.horiz;
  2739. if (d = !Z(this.min) || !Z(this.max) || v < this.min && d < this.min || v > this.max && d > this.max, v = this.getPlotLinePath({ value: v, force: !0, acrossPanes: u.acrossPanes }), u = 1, v && A) {
  2740. if (d) {
  2741. var C = v.toString() === A.toString();
  2742. u = 0;
  2743. }
  2744. for (d = 0; d < v.length; d += 2) {
  2745. var b = v[d], w = v[d + 1], x = A[d], a = A[d + 1];
  2746. b[0] !== "M" && b[0] !== "L" || w[0] !== "M" && w[0] !== "L" || x[0] !== "M" && x[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (B && x[1] === b[1] ? (x[1] += u, a[1] += u) : B || x[2] !== b[2] || (x[2] += u, a[2] += u), O.push(["M", b[1], b[2]], ["L", w[1], w[2]], ["L", a[1], a[2]], ["L", x[1], x[2]], ["Z"])), O.isFlat = C;
  2747. }
  2748. }
  2749. return O;
  2750. }, S.prototype.addPlotBand = function(v) {
  2751. return this.addPlotBandOrLine(v, "plotBands");
  2752. }, S.prototype.addPlotLine = function(v) {
  2753. return this.addPlotBandOrLine(v, "plotLines");
  2754. }, S.prototype.addPlotBandOrLine = function(v, d) {
  2755. var u = this, A = this.userOptions, O = new N(this, v);
  2756. if (this.visible && (O = O.render()), O) {
  2757. if (this._addedPlotLB || (this._addedPlotLB = !0, (A.plotLines || []).concat(A.plotBands || []).forEach(function(C) {
  2758. u.addPlotBandOrLine(C);
  2759. })), d) {
  2760. var B = A[d] || [];
  2761. B.push(v), A[d] = B;
  2762. }
  2763. this.plotLinesAndBands.push(O);
  2764. }
  2765. return O;
  2766. }, S.prototype.removePlotBandOrLine = function(v) {
  2767. var d = this.plotLinesAndBands, u = this.options, A = this.userOptions;
  2768. if (d) {
  2769. for (var O = d.length; O--; )
  2770. d[O].id === v && d[O].destroy();
  2771. [u.plotLines || [], A.plotLines || [], u.plotBands || [], A.plotBands || []].forEach(function(B) {
  2772. for (O = B.length; O--; )
  2773. (B[O] || {}).id === v && j(B, B[O]);
  2774. });
  2775. }
  2776. }, S.prototype.removePlotBand = function(v) {
  2777. this.removePlotBandOrLine(v);
  2778. }, S.prototype.removePlotLine = function(v) {
  2779. this.removePlotBandOrLine(v);
  2780. }, S;
  2781. }();
  2782. }(H || (H = {})), H;
  2783. }), E(l, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [l["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], l["Core/Utilities.js"]], function(y, j) {
  2784. var I = j.arrayMax, Z = j.arrayMin, H = j.defined, U = j.destroyObjectProperties, F = j.erase, N = j.fireEvent, R = j.merge, S = j.objectEach, v = j.pick;
  2785. return j = function() {
  2786. function d(u, A) {
  2787. this.axis = u, A && (this.options = A, this.id = A.id);
  2788. }
  2789. return d.compose = function(u) {
  2790. return y.compose(d, u);
  2791. }, d.prototype.render = function() {
  2792. N(this, "render");
  2793. var u = this, A = u.axis, O = A.horiz, B = A.logarithmic, C = u.options, b = C.color, w = v(C.zIndex, 0), x = C.events, a = {}, c = A.chart.renderer, p = C.label, i = u.label, h = C.to, o = C.from, t = C.value, s = u.svgElem, n = [], T = H(o) && H(h);
  2794. n = H(t);
  2795. var _ = !s, D = { class: "highcharts-plot-" + (T ? "band " : "line ") + (C.className || "") }, W = T ? "bands" : "lines";
  2796. if (B && (o = B.log2lin(o), h = B.log2lin(h), t = B.log2lin(t)), A.chart.styledMode || (n ? (D.stroke = b || "#999999", D["stroke-width"] = v(C.width, 1), C.dashStyle && (D.dashstyle = C.dashStyle)) : T && (D.fill = b || "#e6ebf5", C.borderWidth && (D.stroke = C.borderColor, D["stroke-width"] = C.borderWidth))), a.zIndex = w, W += "-" + w, (B = A.plotLinesAndBandsGroups[W]) || (A.plotLinesAndBandsGroups[W] = B = c.g("plot-" + W).attr(a).add()), _ && (u.svgElem = s = c.path().attr(D).add(B)), n)
  2797. n = A.getPlotLinePath({ value: t, lineWidth: s.strokeWidth(), acrossPanes: C.acrossPanes });
  2798. else if (T)
  2799. n = A.getPlotBandPath(
  2800. o,
  2801. h,
  2802. C
  2803. );
  2804. else
  2805. return;
  2806. return !u.eventsAdded && x && (S(x, function(P, X) {
  2807. s.on(X, function(g) {
  2808. x[X].apply(u, [g]);
  2809. });
  2810. }), u.eventsAdded = !0), (_ || !s.d) && n && n.length ? s.attr({ d: n }) : s && (n ? (s.show(!0), s.animate({ d: n })) : s.d && (s.hide(), i && (u.label = i = i.destroy()))), p && (H(p.text) || H(p.formatter)) && n && n.length && 0 < A.width && 0 < A.height && !n.isFlat ? (p = R({ align: O && T && "center", x: O ? !T && 4 : 10, verticalAlign: !O && T && "middle", y: O ? T ? 16 : 10 : T ? 6 : -4, rotation: O && !T && 90 }, p), this.renderLabel(p, n, T, w)) : i && i.hide(), u;
  2811. }, d.prototype.renderLabel = function(u, A, O, B) {
  2812. var C = this.axis, b = C.chart.renderer, w = this.label;
  2813. w || (this.label = w = b.text(this.getLabelText(u), 0, 0, u.useHTML).attr({ align: u.textAlign || u.align, rotation: u.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (u.className || ""), zIndex: B }).add(), C.chart.styledMode || w.css(R({ textOverflow: "ellipsis" }, u.style))), B = A.xBounds || [A[0][1], A[1][1], O ? A[2][1] : A[0][1]], A = A.yBounds || [A[0][2], A[1][2], O ? A[2][2] : A[0][2]], O = Z(B), b = Z(A), w.align(u, !1, { x: O, y: b, width: I(B) - O, height: I(A) - b }), w.alignValue && w.alignValue !== "left" || w.css({ width: (w.rotation === 90 ? C.height - (w.alignAttr.y - C.top) : C.width - (w.alignAttr.x - C.left)) + "px" }), w.show(!0);
  2814. }, d.prototype.getLabelText = function(u) {
  2815. return H(u.formatter) ? u.formatter.call(this) : u.text;
  2816. }, d.prototype.destroy = function() {
  2817. F(this.axis.plotLinesAndBands, this), delete this.axis, U(this);
  2818. }, d;
  2819. }(), j;
  2820. }), E(
  2821. l,
  2822. "Core/Tooltip.js",
  2823. [l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Renderer/RendererUtilities.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Utilities.js"]],
  2824. function(y, j, I, Z, H) {
  2825. var U = y.format, F = j.doc, N = I.distribute, R = H.addEvent, S = H.clamp, v = H.css, d = H.defined, u = H.discardElement, A = H.extend, O = H.fireEvent, B = H.isArray, C = H.isNumber, b = H.isString, w = H.merge, x = H.pick, a = H.splat, c = H.syncTimeout;
  2826. return y = function() {
  2827. function p(i, h) {
  2828. 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, h);
  2829. }
  2830. return p.prototype.applyFilter = function() {
  2831. var i = this.chart;
  2832. i.renderer.definition({
  2833. tagName: "filter",
  2834. attributes: { id: "drop-shadow-" + i.index, opacity: 0.5 },
  2835. 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" } }] }]
  2836. });
  2837. }, p.prototype.bodyFormatter = function(i) {
  2838. return i.map(function(h) {
  2839. var o = h.series.tooltipOptions;
  2840. return (o[(h.point.formatPrefix || "point") + "Formatter"] || h.point.tooltipFormatter).call(h.point, o[(h.point.formatPrefix || "point") + "Format"] || "");
  2841. });
  2842. }, p.prototype.cleanSplit = function(i) {
  2843. this.chart.series.forEach(function(h) {
  2844. var o = h && h.tt;
  2845. o && (!o.isActive || i ? h.tt = o.destroy() : o.isActive = !1);
  2846. });
  2847. }, p.prototype.defaultFormatter = function(i) {
  2848. var h = this.points || a(this), o = [i.tooltipFooterHeaderFormatter(h[0])];
  2849. return o = o.concat(i.bodyFormatter(h)), o.push(i.tooltipFooterHeaderFormatter(h[0], !0)), o;
  2850. }, p.prototype.destroy = function() {
  2851. 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(), u(this.container)), H.clearTimeout(this.hideTimer), H.clearTimeout(this.tooltipTimeout);
  2852. }, p.prototype.getAnchor = function(i, h) {
  2853. var o = this.chart, t = o.pointer, s = o.inverted, n = o.plotTop, T = o.plotLeft, _, D, W = 0, P = 0;
  2854. return i = a(i), this.followPointer && h ? (typeof h.chartX > "u" && (h = t.normalize(h)), t = [h.chartX - T, h.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  2855. _ = X.series.yAxis, D = X.series.xAxis, W += X.plotX || 0, P += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (s ? (W += n + o.plotHeight - D.len - D.pos, P += T + o.plotWidth - _.len - _.pos) : (W += D.pos - T, P += _.pos - n));
  2856. }), W /= i.length, P /= i.length, t = [s ? o.plotWidth - P : W, s ? o.plotHeight - W : P], this.shared && 1 < i.length && h && (s ? t[0] = h.chartX - T : t[1] = h.chartY - n)), t.map(Math.round);
  2857. }, p.prototype.getLabel = function() {
  2858. var i = this, h = this.chart.styledMode, o = this.options, t = this.split && this.allowShared, s = "tooltip" + (d(o.className) ? " " + o.className : ""), n = o.style.pointerEvents || (!this.followPointer && o.stickOnContact ? "auto" : "none"), T = function() {
  2859. i.inContact = !0;
  2860. }, _ = function(Y) {
  2861. var V = i.chart.hoverSeries;
  2862. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && V && V.onMouseOut && V.onMouseOut();
  2863. }, D, W = this.chart.renderer;
  2864. if (i.label) {
  2865. var P = !i.label.hasClass("highcharts-label");
  2866. (t && !P || !t && P) && i.destroy();
  2867. }
  2868. if (!this.label) {
  2869. if (this.outside) {
  2870. P = this.chart.options.chart.style;
  2871. var X = Z.getRendererType();
  2872. this.container = D = j.doc.createElement("div"), D.className = "highcharts-tooltip-container", v(D, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (P && P.zIndex || 0) + 3) }), R(D, "mouseenter", T), R(D, "mouseleave", _), j.doc.body.appendChild(D), this.renderer = W = new X(D, 0, 0, P, void 0, void 0, W.styledMode);
  2873. }
  2874. if (t ? this.label = W.g(s) : (this.label = W.label("", 0, 0, o.shape, void 0, void 0, o.useHTML, void 0, s).attr({ padding: o.padding, r: o.borderRadius }), h || this.label.attr({
  2875. fill: o.backgroundColor,
  2876. "stroke-width": o.borderWidth
  2877. }).css(o.style).css({ pointerEvents: n }).shadow(o.shadow)), h && o.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  2878. var g = this.label, m = g.xSetter, L = g.ySetter;
  2879. g.xSetter = function(Y) {
  2880. m.call(g, i.distance), D.style.left = Y + "px";
  2881. }, g.ySetter = function(Y) {
  2882. L.call(g, i.distance), D.style.top = Y + "px";
  2883. };
  2884. }
  2885. this.label.on("mouseenter", T).on("mouseleave", _).attr({ zIndex: 8 }).add();
  2886. }
  2887. return this.label;
  2888. }, p.prototype.getPosition = function(i, h, o) {
  2889. var t = this.chart, s = this.distance, n = {}, T = t.inverted && o.h || 0, _ = this.outside, D = _ ? F.documentElement.clientWidth - 2 * s : t.chartWidth, W = _ ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : t.chartHeight, P = t.pointer.getChartPosition(), X = function(z) {
  2890. var $ = z === "x";
  2891. return [z, $ ? D : W, $ ? i : h].concat(_ ? [$ ? i * P.scaleX : h * P.scaleY, $ ? P.left - s + (o.plotX + t.plotLeft) * P.scaleX : P.top - s + (o.plotY + t.plotTop) * P.scaleY, 0, $ ? D : W] : [$ ? i : h, $ ? o.plotX + t.plotLeft : o.plotY + t.plotTop, $ ? t.plotLeft : t.plotTop, $ ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  2892. }, g = X("y"), m = X("x"), L;
  2893. X = !!o.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  2894. var Y = !this.followPointer && x(o.ttBelow, !t.inverted === X), V = function(z, $, q, it, et, nt, rt) {
  2895. var ct = _ ? z === "y" ? s * P.scaleY : s * P.scaleX : s, gt = (q - it) / 2, dt = it < et - s, ht = et + s + it < $, at = et - ct - q + gt;
  2896. if (et = et + ct - gt, Y && ht)
  2897. n[z] = et;
  2898. else if (!Y && dt)
  2899. n[z] = at;
  2900. else if (dt)
  2901. n[z] = Math.min(rt - it, 0 > at - T ? at : at - T);
  2902. else if (ht)
  2903. n[z] = Math.max(nt, et + T + q > $ ? et : et + T);
  2904. else
  2905. return !1;
  2906. }, Q = function(z, $, q, it, et) {
  2907. var nt;
  2908. return et < s || et > $ - s ? nt = !1 : n[z] = et < q / 2 ? 1 : et > $ - it / 2 ? $ - it - 2 : et - q / 2, nt;
  2909. }, k = function(z) {
  2910. var $ = g;
  2911. g = m, m = $, L = z;
  2912. }, G = function() {
  2913. V.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? n.x = n.y = 0 : (k(!0), G());
  2914. };
  2915. return (t.inverted || 1 < this.len) && k(), G(), n;
  2916. }, p.prototype.hide = function(i) {
  2917. var h = this;
  2918. H.clearTimeout(this.hideTimer), i = x(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  2919. h.getLabel().fadeOut(i && void 0), h.isHidden = !0;
  2920. }, i));
  2921. }, p.prototype.init = function(i, h) {
  2922. this.chart = i, this.options = h, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = h.split && !i.inverted && !i.polar, this.shared = h.shared || this.split, this.outside = x(h.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  2923. }, p.prototype.shouldStickOnContact = function() {
  2924. return !(this.followPointer || !this.options.stickOnContact);
  2925. }, p.prototype.isStickyOnContact = function() {
  2926. return !(!this.shouldStickOnContact() || !this.inContact);
  2927. }, p.prototype.move = function(i, h, o, t) {
  2928. var s = this, n = s.now, T = s.options.animation !== !1 && !s.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(h - n.y)), _ = s.followPointer || 1 < s.len;
  2929. A(n, { x: T ? (2 * n.x + i) / 3 : i, y: T ? (n.y + h) / 2 : h, anchorX: _ ? void 0 : T ? (2 * n.anchorX + o) / 3 : o, anchorY: _ ? void 0 : T ? (n.anchorY + t) / 2 : t }), s.getLabel().attr(n), s.drawTracker(), T && (H.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  2930. s && s.move(i, h, o, t);
  2931. }, 32));
  2932. }, p.prototype.refresh = function(i, h) {
  2933. var o = this.chart, t = this.options, s = a(i), n = s[0], T = [], _ = t.formatter || this.defaultFormatter, D = this.shared, W = o.styledMode, P = {};
  2934. if (t.enabled) {
  2935. H.clearTimeout(this.hideTimer), this.allowShared = !(!B(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, h);
  2936. var X = i[0], g = i[1];
  2937. if (D && this.allowShared ? (o.pointer.applyInactiveState(s), s.forEach(function(Y) {
  2938. Y.setState("hover"), T.push(Y.getLabelConfig());
  2939. }), P = { x: n.category, y: n.y }, P.points = T) : P = n.getLabelConfig(), this.len = T.length, _ = _.call(P, this), D = n.series, this.distance = x(D.tooltipOptions.distance, 16), _ === !1)
  2940. this.hide();
  2941. else {
  2942. if (this.split && this.allowShared)
  2943. this.renderSplit(
  2944. _,
  2945. s
  2946. );
  2947. else {
  2948. var m = X, L = g;
  2949. if (h && o.pointer.isDirectTouch && (m = h.chartX - o.plotLeft, L = h.chartY - o.plotTop), o.polar || D.options.clip === !1 || s.some(function(Y) {
  2950. return Y.series.shouldShowTooltip(m, L);
  2951. }))
  2952. h = this.getLabel(), t.style.width && !W || h.css({ width: this.chart.spacingBox.width + "px" }), h.attr({ text: _ && _.join ? _.join("") : _ }), h.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + x(n.colorIndex, D.colorIndex)), W || h.attr({ stroke: t.borderColor || n.color || D.color || "#666666" }), this.updatePosition({
  2953. plotX: X,
  2954. plotY: g,
  2955. negative: n.negative,
  2956. ttBelow: n.ttBelow,
  2957. h: i[2] || 0
  2958. });
  2959. else {
  2960. this.hide();
  2961. return;
  2962. }
  2963. }
  2964. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  2965. }
  2966. O(this, "refresh");
  2967. }
  2968. }, p.prototype.renderSplit = function(i, h) {
  2969. function o(ht, at, J, tt, ot) {
  2970. return ot === void 0 && (ot = !0), J ? (at = it ? 0 : ct, ht = S(ht - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, ht = ot ? ht - tt - Q : ht + Q, ht = S(ht, ot ? ht : z.left, z.right)), { x: ht, y: at };
  2971. }
  2972. var t = this, s = t.chart, n = t.chart, T = n.chartWidth, _ = n.chartHeight, D = n.plotHeight, W = n.plotLeft, P = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  2973. g = g === void 0 ? 0 : g;
  2974. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  2975. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  2976. var Y = L.scrollLeft;
  2977. L = L.scrollTop;
  2978. var V = n.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? F.documentElement.getBoundingClientRect() : { left: Y, right: Y + T, top: L, bottom: L + _ }, $ = t.getLabel(), q = this.renderer || s.renderer, it = !(!s.xAxis[0] || !s.xAxis[0].opposite);
  2979. s = X.getChartPosition();
  2980. var et = s.left;
  2981. s = s.top;
  2982. var nt = P + L, rt = 0, ct = D - g;
  2983. b(i) && (i = [!1, i]), i = i.slice(0, h.length + 1).reduce(function(ht, at, J) {
  2984. if (at !== !1 && at !== "") {
  2985. J = h[J - 1] || { isHeader: !0, plotX: h[0].plotX, plotY: D, series: {} };
  2986. var tt = J.isHeader, ot = tt ? t : J.series;
  2987. at = at.toString();
  2988. var lt = ot.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + x(J.colorIndex, yt.colorIndex, "none");
  2989. if (lt || (lt = { padding: k.padding, r: k.borderRadius }, V || (lt.fill = k.backgroundColor, lt["stroke-width"] = k.borderWidth), lt = q.label("", 0, 0, k[pt ? "headerShape" : "shape"], void 0, void 0, k.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(lt).add($)), lt.isActive = !0, lt.attr({ text: at }), V || lt.css(k.style).shadow(k.shadow).attr({ stroke: k.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) {
  2990. yt = W + yt;
  2991. var Ct = P + D / 2;
  2992. } else {
  2993. var Pt = lt.xAxis, At = lt.yAxis;
  2994. yt = Pt.pos + S(yt, -Q, Pt.len + Q), lt.shouldShowTooltip(0, At.pos - P + vt, { ignoreX: !0 }) && (Ct = At.pos + vt);
  2995. }
  2996. yt = S(yt, z.left - Q, z.right + Q), typeof Ct == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : o(
  2997. yt,
  2998. Ct,
  2999. tt,
  3000. at
  3001. ), ht.push({ align: G ? 0 : void 0, anchorX: yt, anchorY: Ct, boxWidth: at, point: J, rank: x(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: ot, x: vt.x })) : ot.isActive = !1;
  3002. }
  3003. return ht;
  3004. }, []), !G && i.some(function(ht) {
  3005. var at = (t.outside ? et : 0) + ht.anchorX;
  3006. return at < z.left && at + ht.boxWidth < z.right ? !0 : at < et - z.left + ht.boxWidth && z.right - at > at;
  3007. }) && (i = i.map(function(ht) {
  3008. var at = o(ht.anchorX, ht.anchorY, ht.point.isHeader, ht.boxWidth, !1);
  3009. return A(ht, { target: at.y, x: at.x });
  3010. })), t.cleanSplit(), N(i, ct);
  3011. var gt = et, dt = et;
  3012. i.forEach(function(ht) {
  3013. var at = ht.x, J = ht.boxWidth;
  3014. ht = ht.isHeader, ht || (t.outside && et + at < gt && (gt = et + at), !ht && t.outside && gt + J > dt && (dt = et + at));
  3015. }), i.forEach(function(ht) {
  3016. var at = ht.x, J = ht.anchorX, tt = ht.pos, ot = ht.point.isHeader;
  3017. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: ht.anchorY }, t.outside && at < J) {
  3018. var lt = et - gt;
  3019. 0 < lt && (ot || (tt.x = at + lt, tt.anchorX = J + lt), ot && (tt.x = (dt - gt) / 2, tt.anchorX = J + lt));
  3020. }
  3021. ht.tt.attr(tt);
  3022. }), i = t.container, g = t.renderer, t.outside && i && g && (n = $.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = s + "px");
  3023. }, p.prototype.drawTracker = function() {
  3024. if (this.followPointer || !this.options.stickOnContact)
  3025. this.tracker && this.tracker.destroy();
  3026. else {
  3027. var i = this.chart, h = this.label, o = this.shared ? i.hoverPoints : i.hoverPoint;
  3028. if (h && o) {
  3029. var t = { x: 0, y: 0, width: 0, height: 0 };
  3030. o = this.getAnchor(o);
  3031. var s = h.getBBox();
  3032. o[0] += i.plotLeft - h.translateX, o[1] += i.plotTop - h.translateY, t.x = Math.min(0, o[0]), t.y = Math.min(0, o[1]), t.width = 0 > o[0] ? Math.max(Math.abs(o[0]), s.width - o[0]) : Math.max(Math.abs(o[0]), s.width), t.height = 0 > o[1] ? Math.max(Math.abs(o[1]), s.height - Math.abs(o[1])) : Math.max(Math.abs(o[1]), s.height), this.tracker ? this.tracker.attr(t) : (this.tracker = h.renderer.rect(t).addClass("highcharts-tracker").add(h), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  3033. }
  3034. }
  3035. }, p.prototype.styledModeFormat = function(i) {
  3036. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  3037. }, p.prototype.tooltipFooterHeaderFormatter = function(i, h) {
  3038. var o = i.series, t = o.tooltipOptions, s = o.xAxis, n = s && s.dateTime;
  3039. s = {
  3040. isFooter: h,
  3041. labelConfig: i
  3042. };
  3043. var T = t.xDateFormat, _ = t[h ? "footerFormat" : "headerFormat"];
  3044. return O(this, "headerFormatter", s, function(D) {
  3045. n && !T && C(i.key) && (T = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && T && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  3046. _ = _.replace("{point." + W + "}", "{point." + W + ":" + T + "}");
  3047. }), o.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = U(_, { point: i, series: o }, this.chart);
  3048. }), s.text;
  3049. }, p.prototype.update = function(i) {
  3050. this.destroy(), w(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, w(!0, this.options, i));
  3051. }, p.prototype.updatePosition = function(i) {
  3052. var h = this.chart, o = this.options, t = h.pointer, s = this.getLabel();
  3053. t = t.getChartPosition();
  3054. var n = (o.positioner || this.getPosition).call(this, s.width, s.height, i), T = i.plotX + h.plotLeft;
  3055. i = i.plotY + h.plotTop, this.outside && (o = o.borderWidth + 2 * this.distance, this.renderer.setSize(s.width + o, s.height + o, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (v(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), T *= t.scaleX, i *= t.scaleY), T += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), T, i);
  3056. }, p;
  3057. }(), y;
  3058. }
  3059. ), E(l, "Core/Series/Point.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Animation/AnimationUtilities.js"], l["Core/DefaultOptions.js"], l["Core/FormatUtilities.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  3060. var U = j.animObject, F = I.defaultOptions, N = Z.format, R = H.addEvent, S = H.defined, v = H.erase, d = H.extend, u = H.fireEvent, A = H.getNestedProperty, O = H.isArray, B = H.isFunction, C = H.isNumber, b = H.isObject, w = H.merge, x = H.objectEach, a = H.pick, c = H.syncTimeout, p = H.removeEvent, i = H.uniqueKey;
  3061. return j = function() {
  3062. function h() {
  3063. 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;
  3064. }
  3065. return h.prototype.animateBeforeDestroy = function() {
  3066. var o = this, t = { x: o.startXPos, opacity: 0 }, s = o.getGraphicalProps();
  3067. s.singular.forEach(function(n) {
  3068. o[n] = o[n].animate(n === "dataLabel" ? {
  3069. x: o[n].startXPos,
  3070. y: o[n].startYPos,
  3071. opacity: 0
  3072. } : t);
  3073. }), s.plural.forEach(function(n) {
  3074. o[n].forEach(function(T) {
  3075. T.element && T.animate(d({ x: o.startXPos }, T.startYPos ? { x: T.startXPos, y: T.startYPos } : {}));
  3076. });
  3077. });
  3078. }, h.prototype.applyOptions = function(o, t) {
  3079. var s = this.series, n = s.options.pointValKey || s.pointValKey;
  3080. return o = h.prototype.optionsToObject.call(this, o), d(this, o), this.options = this.options ? d(this.options, o) : o, o.group && delete this.group, o.dataLabels && delete this.dataLabels, n && (this.y = h.prototype.getNestedProperty.call(this, n)), this.formatPrefix = (this.isNull = a(this.isValid && !this.isValid(), this.x === null || !C(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 : C(o.x) && s.options.relativeXValue && (this.x = s.autoIncrement(o.x)), this;
  3081. }, h.prototype.destroy = function() {
  3082. function o() {
  3083. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  3084. for (D in t)
  3085. t[D] = null;
  3086. }
  3087. var t = this, s = t.series, n = s.chart;
  3088. s = s.options.dataSorting;
  3089. var T = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  3090. t.legendItem && n.legend.destroyItem(t), T && (t.setState(), v(T, t), T.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), s && s.enabled ? (this.animateBeforeDestroy(), c(o, _.duration)) : o(), n.pointCount--;
  3091. }, h.prototype.destroyElements = function(o) {
  3092. var t = this;
  3093. o = t.getGraphicalProps(o), o.singular.forEach(function(s) {
  3094. t[s] = t[s].destroy();
  3095. }), o.plural.forEach(function(s) {
  3096. t[s].forEach(function(n) {
  3097. n.element && n.destroy();
  3098. }), delete t[s];
  3099. });
  3100. }, h.prototype.firePointEvent = function(o, t, s) {
  3101. var n = this, T = this.series.options;
  3102. (T.point.events[o] || n.options && n.options.events && n.options.events[o]) && n.importEvents(), o === "click" && T.allowPointSelect && (s = function(_) {
  3103. n.select && n.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  3104. }), u(n, o, t, s);
  3105. }, h.prototype.getClassName = function() {
  3106. 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", "") : "");
  3107. }, h.prototype.getGraphicalProps = function(o) {
  3108. var t = this, s = [], n = { singular: [], plural: [] }, T;
  3109. for (o = o || { graphic: 1, dataLabel: 1 }, o.graphic && s.push("graphic", "upperGraphic", "shadowGroup"), o.dataLabel && s.push("dataLabel", "dataLabelUpper", "connector"), T = s.length; T--; ) {
  3110. var _ = s[T];
  3111. t[_] && n.singular.push(_);
  3112. }
  3113. return ["dataLabel", "connector"].forEach(function(D) {
  3114. var W = D + "s";
  3115. o[D] && t[W] && n.plural.push(W);
  3116. }), n;
  3117. }, h.prototype.getLabelConfig = function() {
  3118. 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 };
  3119. }, h.prototype.getNestedProperty = function(o) {
  3120. if (o)
  3121. return o.indexOf("custom.") === 0 ? A(o, this.options) : this[o];
  3122. }, h.prototype.getZone = function() {
  3123. var o = this.series, t = o.zones;
  3124. o = o.zoneAxis || "y";
  3125. var s, n = 0;
  3126. for (s = t[n]; this[o] >= s.value; )
  3127. s = t[++n];
  3128. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = s && s.color && !this.options.color ? s.color : this.nonZonedColor, s;
  3129. }, h.prototype.hasNewShapeType = function() {
  3130. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  3131. }, h.prototype.init = function(o, t, s) {
  3132. return this.series = o, this.applyOptions(t, s), this.id = S(this.id) ? this.id : i(), this.resolveColor(), o.chart.pointCount++, u(this, "afterInit"), this;
  3133. }, h.prototype.optionsToObject = function(o) {
  3134. var t = this.series, s = t.options.keys, n = s || t.pointArrayMap || ["y"], T = n.length, _ = {}, D = 0, W = 0;
  3135. if (C(o) || o === null)
  3136. _[n[0]] = o;
  3137. else if (O(o))
  3138. for (!s && o.length > T && (t = typeof o[0], t === "string" ? _.name = o[0] : t === "number" && (_.x = o[0]), D++); W < T; )
  3139. s && typeof o[D] > "u" || (0 < n[W].indexOf(".") ? h.prototype.setNestedProperty(_, o[D], n[W]) : _[n[W]] = o[D]), D++, W++;
  3140. else
  3141. typeof o == "object" && (_ = o, o.dataLabels && (t._hasPointLabels = !0), o.marker && (t._hasPointMarkers = !0));
  3142. return _;
  3143. }, h.prototype.resolveColor = function() {
  3144. var o = this.series, t = o.chart.styledMode, s = o.chart.options.chart.colorCount;
  3145. if (delete this.nonZonedColor, o.options.colorByPoint) {
  3146. if (!t) {
  3147. s = o.options.colors || o.chart.options.colors;
  3148. var n = s[o.colorCounter];
  3149. s = s.length;
  3150. }
  3151. t = o.colorCounter, o.colorCounter++, o.colorCounter === s && (o.colorCounter = 0);
  3152. } else
  3153. t || (n = o.color), t = o.colorIndex;
  3154. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, n);
  3155. }, h.prototype.setNestedProperty = function(o, t, s) {
  3156. return s.split(".").reduce(function(n, T, _, D) {
  3157. return n[T] = D.length - 1 === _ ? t : b(n[T], !0) ? n[T] : {}, n[T];
  3158. }, o), o;
  3159. }, h.prototype.tooltipFormatter = function(o) {
  3160. var t = this.series, s = t.tooltipOptions, n = a(s.valueDecimals, ""), T = s.valuePrefix || "", _ = s.valueSuffix || "";
  3161. return t.chart.styledMode && (o = t.chart.tooltip.styledModeFormat(o)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  3162. D = "{point." + D, (T || _) && (o = o.replace(RegExp(D + "}", "g"), T + D + "}" + _)), o = o.replace(RegExp(D + "}", "g"), D + ":,." + n + "f}");
  3163. }), N(o, { point: this, series: this.series }, t.chart);
  3164. }, h.prototype.update = function(o, t, s, n) {
  3165. function T() {
  3166. _.applyOptions(o);
  3167. var m = W && _.hasDummyGraphic;
  3168. m = _.y === null ? !m : m, W && m && (_.graphic = W.destroy(), delete _.hasDummyGraphic), b(o, !0) && (W && W.element && o && o.marker && typeof o.marker.symbol < "u" && (_.graphic = W.destroy()), o && o.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), g = _.index, D.updateParallelArrays(_, g), X.data[g] = b(X.data[g], !0) || b(o, !0) ? _.options : a(o, X.data[g]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (P.isDirtyBox = !0), X.legendType === "point" && (P.isDirtyLegend = !0), t && P.redraw(s);
  3169. }
  3170. var _ = this, D = _.series, W = _.graphic, P = D.chart, X = D.options, g;
  3171. t = a(t, !0), n === !1 ? T() : _.firePointEvent("update", { options: o }, T);
  3172. }, h.prototype.remove = function(o, t) {
  3173. this.series.removePoint(this.series.data.indexOf(this), o, t);
  3174. }, h.prototype.select = function(o, t) {
  3175. var s = this, n = s.series, T = n.chart;
  3176. this.selectedStaging = o = a(o, !s.selected), s.firePointEvent(o ? "select" : "unselect", { accumulate: t }, function() {
  3177. s.selected = s.options.selected = o, n.options.data[n.data.indexOf(s)] = s.options, s.setState(o && "select"), t || T.getSelectedPoints().forEach(function(_) {
  3178. var D = _.series;
  3179. _.selected && _ !== s && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(T.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  3180. });
  3181. }), delete this.selectedStaging;
  3182. }, h.prototype.onMouseOver = function(o) {
  3183. var t = this.series.chart, s = t.pointer;
  3184. o = o ? s.normalize(o) : s.getChartCoordinatesFromPoint(this, t.inverted), s.runPointActions(
  3185. o,
  3186. this
  3187. );
  3188. }, h.prototype.onMouseOut = function() {
  3189. var o = this.series.chart;
  3190. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (o.hoverPoints || []).forEach(function(t) {
  3191. t.setState();
  3192. }), o.hoverPoints = o.hoverPoint = null;
  3193. }, h.prototype.importEvents = function() {
  3194. if (!this.hasImportedEvents) {
  3195. var o = this, t = w(o.series.options.point, o.options).events;
  3196. o.events = t, x(t, function(s, n) {
  3197. B(s) && R(o, n, s);
  3198. }), this.hasImportedEvents = !0;
  3199. }
  3200. }, h.prototype.setState = function(o, t) {
  3201. var s = this.series, n = this.state, T = s.options.states[o || "normal"] || {}, _ = F.plotOptions[s.type].marker && s.options.marker, D = _ && _.enabled === !1, W = _ && _.states && _.states[o || "normal"] || {}, P = W.enabled === !1, X = this.marker || {}, g = s.chart, m = _ && s.markerAttribs, L = s.halo, Y, V = s.stateMarkerGraphic;
  3202. if (o = o || "", !(o === this.state && !t || this.selected && o !== "select" || T.enabled === !1 || o && (P || D && W.enabled === !1) || o && X.states && X.states[o] && X.states[o].enabled === !1)) {
  3203. if (this.state = o, m && (Y = s.markerAttribs(this, o)), this.graphic && !this.hasDummyGraphic) {
  3204. if (n && this.graphic.removeClass("highcharts-point-" + n), o && this.graphic.addClass("highcharts-point-" + o), !g.styledMode) {
  3205. var Q = s.pointAttribs(this, o), k = a(g.options.chart.animation, T.animation);
  3206. s.options.inactiveOtherPoints && C(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  3207. G && G.animate({ opacity: Q.opacity }, k);
  3208. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  3209. }
  3210. Y && this.graphic.animate(Y, a(g.options.chart.animation, W.animation, _.animation)), V && V.hide();
  3211. } else
  3212. o && W && (n = X.symbol || s.symbol, V && V.currentSymbol !== n && (V = V.destroy()), Y && (V ? V[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : n && (s.stateMarkerGraphic = V = g.renderer.symbol(n, Y.x, Y.y, Y.width, Y.height).add(s.markerGroup), V.currentSymbol = n)), !g.styledMode && V && this.state !== "inactive" && V.attr(s.pointAttribs(this, o))), V && (V[o && this.isInside ? "show" : "hide"](), V.element.point = this, V.addClass(this.getClassName(), !0));
  3213. T = T.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", T && T.size && V && Y !== "hidden" && !this.isCluster ? (L || (s.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(T.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, s.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, g.styledMode || L.attr(d({ fill: this.color || s.color, "fill-opacity": T.opacity }, y.filterUserAttributes(T.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), u(this, "afterSetState", { state: o });
  3214. }
  3215. }, h.prototype.haloPath = function(o) {
  3216. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - o, this.plotY - o, 2 * o, 2 * o);
  3217. }, h;
  3218. }(), j;
  3219. }), E(l, "Core/Pointer.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Tooltip.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  3220. var H = y.parse, U = j.charts, F = j.noop, N = Z.addEvent, R = Z.attr, S = Z.css, v = Z.defined, d = Z.extend, u = Z.find, A = Z.fireEvent, O = Z.isNumber, B = Z.isObject, C = Z.objectEach, b = Z.offset, w = Z.pick, x = Z.splat;
  3221. return y = function() {
  3222. function a(c, p) {
  3223. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  3224. }
  3225. return a.prototype.applyInactiveState = function(c) {
  3226. var p = [], i;
  3227. (c || []).forEach(function(h) {
  3228. i = h.series, p.push(i), i.linkedParent && p.push(i.linkedParent), i.linkedSeries && (p = p.concat(i.linkedSeries)), i.navigatorSeries && p.push(i.navigatorSeries);
  3229. }), this.chart.series.forEach(function(h) {
  3230. p.indexOf(h) === -1 ? h.setState("inactive", !0) : h.options.inactiveOtherPoints && h.setAllPointsToState("inactive");
  3231. });
  3232. }, a.prototype.destroy = function() {
  3233. var c = this;
  3234. this.eventsToUnbind.forEach(function(p) {
  3235. return p();
  3236. }), this.eventsToUnbind = [], j.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), C(c, function(p, i) {
  3237. c[i] = void 0;
  3238. });
  3239. }, a.prototype.drag = function(c) {
  3240. var p = this.chart, i = p.options.chart, h = this.zoomHor, o = this.zoomVert, t = p.plotLeft, s = p.plotTop, n = p.plotWidth, T = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, W = B(i.panning) ? i.panning && i.panning.enabled : i.panning, P = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  3241. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < s ? g = s : g > s + T && (g = s + T), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - g, 2)), 10 < this.hasDragged)) {
  3242. var L = p.isInsidePlot(_ - t, D - s, { visiblePlotOnly: !0 });
  3243. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || P || m || (this.selectionMarker = m = p.renderer.rect(t, s, h ? 1 : n, o ? 1 : T, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || H("#335cad").setOpacity(0.25).get() })), m && h && (h = X - _, m.attr({ width: Math.abs(h), x: (0 < h ? 0 : h) + _ })), m && o && (h = g - D, m.attr({ height: Math.abs(h), y: (0 < h ? 0 : h) + D })), L && !m && W && p.pan(c, i.panning);
  3244. }
  3245. }, a.prototype.dragStart = function(c) {
  3246. var p = this.chart;
  3247. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  3248. }, a.prototype.drop = function(c) {
  3249. var p = this, i = this.chart, h = this.hasPinched;
  3250. if (this.selectionMarker) {
  3251. var o = this.selectionMarker, t = o.attr ? o.attr("x") : o.x, s = o.attr ? o.attr("y") : o.y, n = o.attr ? o.attr("width") : o.width, T = o.attr ? o.attr("height") : o.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: s, width: n, height: T }, D = !!i.mapView;
  3252. (this.hasDragged || h) && (i.axes.forEach(function(W) {
  3253. if (W.zoomEnabled && v(W.min) && (h || p[{ xAxis: "zoomX", yAxis: "zoomY" }[W.coll]]) && O(t) && O(s)) {
  3254. var P = W.horiz, X = c.type === "touchend" ? W.minPixelPadding : 0, g = W.toValue((P ? t : s) + X);
  3255. P = W.toValue((P ? t + n : s + T) - X), _[W.coll].push({ axis: W, min: Math.min(g, P), max: Math.max(g, P) }), D = !0;
  3256. }
  3257. }), D && A(i, "selection", _, function(W) {
  3258. i.zoom(d(
  3259. W,
  3260. h ? { animation: !1 } : null
  3261. ));
  3262. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), h && this.scaleGroups();
  3263. }
  3264. i && O(i.index) && (S(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  3265. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  3266. var h = this.chart, o = h.hoverPoint;
  3267. if (h = h.tooltip, o && h && h.isStickyOnContact())
  3268. return o;
  3269. var t;
  3270. return c.forEach(function(s) {
  3271. var n = !(s.noSharedTooltip && p) && 0 > s.options.findNearestPointBy.indexOf("y");
  3272. if (s = s.searchPoint(i, n), (n = B(s, !0) && s.series) && !(n = !B(t, !0))) {
  3273. n = t.distX - s.distX;
  3274. var T = t.dist - s.dist, _ = (s.series.group && s.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  3275. n = 0 < (n !== 0 && p ? n : T !== 0 ? T : _ !== 0 ? _ : t.series.index > s.series.index ? -1 : 1);
  3276. }
  3277. n && (t = s);
  3278. }), t;
  3279. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  3280. var i = c.series, h = i.xAxis;
  3281. i = i.yAxis;
  3282. var o = c.shapeArgs;
  3283. if (h && i) {
  3284. var t = w(c.clientX, c.plotX), s = c.plotY || 0;
  3285. return c.isNode && o && O(o.x) && O(o.y) && (t = o.x, s = o.y), p ? { chartX: i.len + i.pos - s, chartY: h.len + h.pos - t } : { chartX: t + h.pos, chartY: s + i.pos };
  3286. }
  3287. if (o && o.x && o.y)
  3288. return { chartX: o.x, chartY: o.y };
  3289. }, a.prototype.getChartPosition = function() {
  3290. if (this.chartPosition)
  3291. return this.chartPosition;
  3292. var c = this.chart.container, p = b(c);
  3293. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  3294. var i = c.offsetWidth;
  3295. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  3296. }, a.prototype.getCoordinates = function(c) {
  3297. var p = { xAxis: [], yAxis: [] };
  3298. return this.chart.axes.forEach(function(i) {
  3299. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  3300. }), p;
  3301. }, a.prototype.getHoverData = function(c, p, i, h, o, t) {
  3302. var s = [];
  3303. h = !(!h || !c);
  3304. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: o };
  3305. A(this, "beforeGetHoverData", n);
  3306. var T = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  3307. return n.filter ? n.filter(D) : D.visible && !(!o && D.directTouch) && w(D.options.enableMouseTracking, !0) && D.stickyTracking;
  3308. }), _ = h || !t ? c : this.findNearestKDPoint(T, o, t);
  3309. return p = _ && _.series, _ && (o && !p.noSharedTooltip ? (T = i.filter(function(D) {
  3310. return n.filter ? n.filter(D) : D.visible && !(!o && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  3311. }), T.forEach(function(D) {
  3312. var W = u(D.points, function(P) {
  3313. return P.x === _.x && !P.isNull;
  3314. });
  3315. B(W) && (D.chart.isBoosting && (W = D.getPoint(W)), s.push(W));
  3316. })) : s.push(_)), n = { hoverPoint: _ }, A(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: p, hoverPoints: s };
  3317. }, a.prototype.getPointFromEvent = function(c) {
  3318. c = c.target;
  3319. for (var p; c && !p; )
  3320. p = c.point, c = c.parentNode;
  3321. return p;
  3322. }, a.prototype.onTrackerMouseOut = function(c) {
  3323. c = c.relatedTarget || c.toElement;
  3324. var p = this.chart.hoverSeries;
  3325. this.isDirectTouch = !1, !p || !c || p.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + p.index) && this.inClass(c, "highcharts-tracker") || p.onMouseOut();
  3326. }, a.prototype.inClass = function(c, p) {
  3327. for (var i; c; ) {
  3328. if (i = R(c, "class")) {
  3329. if (i.indexOf(p) !== -1)
  3330. return !0;
  3331. if (i.indexOf("highcharts-container") !== -1)
  3332. return !1;
  3333. }
  3334. c = c.parentNode;
  3335. }
  3336. }, a.prototype.init = function(c, p) {
  3337. this.options = p, this.chart = c, this.runChartClick = !(!p.chart.events || !p.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, I && (c.tooltip = new I(c, p.tooltip), this.followTouchMove = w(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  3338. }, a.prototype.normalize = function(c, p) {
  3339. var i = c.touches, h = i ? i.length ? i.item(0) : w(i.changedTouches, c.changedTouches)[0] : c;
  3340. return p || (p = this.getChartPosition()), i = h.pageX - p.left, h = h.pageY - p.top, i /= p.scaleX, h /= p.scaleY, d(c, { chartX: Math.round(i), chartY: Math.round(h) });
  3341. }, a.prototype.onContainerClick = function(c) {
  3342. var p = this.chart, i = p.hoverPoint;
  3343. c = this.normalize(c);
  3344. var h = p.plotLeft, o = p.plotTop;
  3345. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (A(i.series, "click", d(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (d(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - h, c.chartY - o, { visiblePlotOnly: !0 }) && A(p, "click", c)));
  3346. }, a.prototype.onContainerMouseDown = function(c) {
  3347. var p = ((c.buttons || c.button) & 1) === 1;
  3348. c = this.normalize(c), j.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  3349. }, a.prototype.onContainerMouseLeave = function(c) {
  3350. var p = U[w(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  3351. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), p && (c.relatedTarget || c.toElement) && (p.pointer.reset(), p.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  3352. }, a.prototype.onContainerMouseEnter = function(c) {
  3353. delete this.chartPosition;
  3354. }, a.prototype.onContainerMouseMove = function(c) {
  3355. var p = this.chart;
  3356. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (p.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), p.openMenu || !this.inClass(c.target, "highcharts-tracker") && !p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  3357. }, a.prototype.onDocumentTouchEnd = function(c) {
  3358. var p = U[w(
  3359. a.hoverChartIndex,
  3360. -1
  3361. )];
  3362. p && p.pointer.drop(c);
  3363. }, a.prototype.onContainerTouchMove = function(c) {
  3364. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  3365. }, a.prototype.onContainerTouchStart = function(c) {
  3366. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  3367. }, a.prototype.onDocumentMouseMove = function(c) {
  3368. var p = this.chart, i = this.chartPosition;
  3369. c = this.normalize(c, i);
  3370. var h = p.tooltip;
  3371. !i || h && h.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  3372. }, a.prototype.onDocumentMouseUp = function(c) {
  3373. var p = U[w(a.hoverChartIndex, -1)];
  3374. p && p.pointer.drop(c);
  3375. }, a.prototype.pinch = function(c) {
  3376. var p = this, i = p.chart, h = p.pinchDown, o = c.touches || [], t = o.length, s = p.lastValidTouch, n = p.hasZoom, T = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, W = p.selectionMarker;
  3377. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), n && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(o, function(P) {
  3378. return p.normalize(P);
  3379. }), c.type === "touchstart" ? ([].forEach.call(o, function(P, X) {
  3380. h[X] = { chartX: P.chartX, chartY: P.chartY };
  3381. }), s.x = [h[0].chartX, h[1] && h[1].chartX], s.y = [h[0].chartY, h[1] && h[1].chartY], i.axes.forEach(function(P) {
  3382. if (P.zoomEnabled) {
  3383. var X = i.bounds[P.horiz ? "h" : "v"], g = P.minPixelPadding, m = P.toPixels(Math.min(w(P.options.min, P.dataMin), P.dataMin)), L = P.toPixels(Math.max(w(P.options.max, P.dataMax), P.dataMax)), Y = Math.max(m, L);
  3384. X.min = Math.min(P.pos, Math.min(
  3385. m,
  3386. L
  3387. ) - g), X.max = Math.max(P.pos + P.len, Y + g);
  3388. }
  3389. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : h.length && (A(i, "touchpan", { originalEvent: c }, function() {
  3390. W || (p.selectionMarker = W = d({ destroy: F, touch: !0 }, i.plotBox)), p.pinchTranslate(h, o, T, W, D, s), p.hasPinched = n, p.scaleGroups(T, D);
  3391. }), p.res && (p.res = !1, this.reset(!1, 0)));
  3392. }, a.prototype.pinchTranslate = function(c, p, i, h, o, t) {
  3393. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, h, o, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, h, o, t);
  3394. }, a.prototype.pinchTranslateDirection = function(c, p, i, h, o, t, s, n) {
  3395. var T = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", W = "chart" + D, P = c ? "width" : "height", X = T["plot" + (c ? "Left" : "Top")], g = T.inverted, m = T.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][W], V = !L && p[1][W];
  3396. p = function() {
  3397. typeof $ == "number" && 20 < Math.abs(Y - V) && (G = n || Math.abs(z - $) / Math.abs(Y - V)), k = (X - z) / G + Y, Q = T["plot" + (c ? "Width" : "Height")] / G;
  3398. };
  3399. var Q, k, G = n || 1, z = i[0][W], $ = !L && i[1][W];
  3400. if (p(), i = k, i < m.min) {
  3401. i = m.min;
  3402. var q = !0;
  3403. } else
  3404. i + Q > m.max && (i = m.max - Q, q = !0);
  3405. q ? (z -= 0.8 * (z - s[_][0]), typeof $ == "number" && ($ -= 0.8 * ($ - s[_][1])), p()) : s[_] = [z, $], g || (t[_] = k - X, t[P] = Q), t = g ? 1 / G : G, o[P] = Q, o[_] = i, h[g ? c ? "scaleY" : "scaleX" : "scale" + D] = G, h["translate" + D] = t * X + (z - t * Y);
  3406. }, a.prototype.reset = function(c, p) {
  3407. var i = this.chart, h = i.hoverSeries, o = i.hoverPoint, t = i.hoverPoints, s = i.tooltip, n = s && s.shared ? t : o;
  3408. c && n && x(n).forEach(function(T) {
  3409. T.series.isCartesian && typeof T.plotX > "u" && (c = !1);
  3410. }), c ? s && n && x(n).length && (s.refresh(n), s.shared && t ? t.forEach(function(T) {
  3411. T.setState(T.state, !0), T.series.isCartesian && (T.series.xAxis.crosshair && T.series.xAxis.drawCrosshair(
  3412. null,
  3413. T
  3414. ), T.series.yAxis.crosshair && T.series.yAxis.drawCrosshair(null, T));
  3415. }) : o && (o.setState(o.state, !0), i.axes.forEach(function(T) {
  3416. T.crosshair && o.series[T.coll] === T && T.drawCrosshair(null, o);
  3417. }))) : (o && o.onMouseOut(), t && t.forEach(function(T) {
  3418. T.setState();
  3419. }), h && h.onMouseOut(), s && s.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(T) {
  3420. T.hideCrosshair();
  3421. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  3422. }, a.prototype.runPointActions = function(c, p) {
  3423. var i = this.chart, h = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, o = h ? h.shared : !1, t = p || i.hoverPoint, s = t && t.series || i.hoverSeries;
  3424. p = this.getHoverData(t, s, i.series, (!c || c.type !== "touchmove") && (!!p || s && s.directTouch && this.isDirectTouch), o, c), t = p.hoverPoint, s = p.hoverSeries;
  3425. var n = p.hoverPoints;
  3426. if (p = s && s.tooltipOptions.followPointer && !s.tooltipOptions.split, o = o && s && !s.noSharedTooltip, t && (t !== i.hoverPoint || h && h.isHidden)) {
  3427. if ((i.hoverPoints || []).forEach(function(T) {
  3428. n.indexOf(T) === -1 && T.setState();
  3429. }), i.hoverSeries !== s && s.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(T) {
  3430. T.setState("hover");
  3431. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  3432. return;
  3433. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), h && h.refresh(o ? n : t, c);
  3434. } else
  3435. p && h && !h.isHidden && (t = h.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && h.updatePosition({ plotX: t[0], plotY: t[1] }));
  3436. this.unDocMouseMove || (this.unDocMouseMove = N(i.container.ownerDocument, "mousemove", function(T) {
  3437. var _ = U[a.hoverChartIndex];
  3438. _ && _.pointer.onDocumentMouseMove(T);
  3439. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(T) {
  3440. var _ = w((T.crosshair || {}).snap, !0), D;
  3441. _ && ((D = i.hoverPoint) && D.series[T.coll] === T || (D = u(n, function(W) {
  3442. return W.series[T.coll] === T;
  3443. }))), D || !_ ? T.drawCrosshair(c, D) : T.hideCrosshair();
  3444. });
  3445. }, a.prototype.scaleGroups = function(c, p) {
  3446. var i = this.chart;
  3447. i.series.forEach(function(h) {
  3448. var o = c || h.getPlotBox();
  3449. h.group && (h.xAxis && h.xAxis.zoomEnabled || i.mapView) && (h.group.attr(o), h.markerGroup && (h.markerGroup.attr(o), h.markerGroup.clip(p ? i.clipRect : null)), h.dataLabelsGroup && h.dataLabelsGroup.attr(o));
  3450. }), i.clipRect.attr(p || i.clipBox);
  3451. }, a.prototype.setDOMEvents = function() {
  3452. var c = this, p = this.chart.container, i = p.ownerDocument;
  3453. p.onmousedown = this.onContainerMouseDown.bind(this), p.onmousemove = this.onContainerMouseMove.bind(this), p.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(N(p, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(N(p, "mouseleave", this.onContainerMouseLeave.bind(this))), a.unbindDocumentMouseUp || (a.unbindDocumentMouseUp = N(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  3454. for (var h = this.chart.renderTo.parentElement; h && h.tagName !== "BODY"; )
  3455. this.eventsToUnbind.push(N(h, "scroll", function() {
  3456. delete c.chartPosition;
  3457. })), h = h.parentElement;
  3458. j.hasTouch && (this.eventsToUnbind.push(N(p, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(N(p, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), a.unbindDocumentTouchEnd || (a.unbindDocumentTouchEnd = N(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  3459. }, a.prototype.setHoverChartIndex = function() {
  3460. var c = this.chart, p = j.charts[w(a.hoverChartIndex, -1)];
  3461. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  3462. }, a.prototype.touch = function(c, p) {
  3463. var i = this.chart;
  3464. if (this.setHoverChartIndex(), c.touches.length === 1)
  3465. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  3466. if (p && this.runPointActions(c), c.type === "touchmove") {
  3467. p = this.pinchDown;
  3468. var h = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  3469. }
  3470. w(h, !0) && this.pinch(c);
  3471. } else
  3472. p && this.reset();
  3473. else
  3474. c.touches.length === 2 && this.pinch(c);
  3475. }, a.prototype.touchSelect = function(c) {
  3476. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  3477. }, a.prototype.zoomOption = function(c) {
  3478. var p = this.chart, i = p.options.chart;
  3479. p = p.inverted;
  3480. var h = i.zoomType || "";
  3481. /touch/.test(c.type) && (h = w(i.pinchType, h)), this.zoomX = c = /x/.test(h), this.zoomY = i = /y/.test(h), this.zoomHor = c && !p || i && p, this.zoomVert = i && !p || c && p, this.hasZoom = c || i;
  3482. }, a;
  3483. }(), y;
  3484. }), E(l, "Core/MSPointer.js", [l["Core/Globals.js"], l["Core/Pointer.js"], l["Core/Utilities.js"]], function(y, j, I) {
  3485. function Z() {
  3486. var C = [];
  3487. return C.item = function(b) {
  3488. return this[b];
  3489. }, u(O, function(b) {
  3490. C.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  3491. }), C;
  3492. }
  3493. function H(C, b, w, x) {
  3494. var a = F[j.hoverChartIndex || NaN];
  3495. C.pointerType !== "touch" && C.pointerType !== C.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, x(C), a[b]({ type: w, target: C.currentTarget, preventDefault: R, touches: Z() }));
  3496. }
  3497. var U = this && this.__extends || function() {
  3498. var C = function(b, w) {
  3499. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  3500. x.__proto__ = a;
  3501. } || function(x, a) {
  3502. for (var c in a)
  3503. a.hasOwnProperty(c) && (x[c] = a[c]);
  3504. }, C(b, w);
  3505. };
  3506. return function(b, w) {
  3507. function x() {
  3508. this.constructor = b;
  3509. }
  3510. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  3511. };
  3512. }(), F = y.charts, N = y.doc, R = y.noop, S = y.win, v = I.addEvent, d = I.css, u = I.objectEach, A = I.removeEvent, O = {}, B = !!S.PointerEvent;
  3513. return function(C) {
  3514. function b() {
  3515. return C !== null && C.apply(this, arguments) || this;
  3516. }
  3517. return U(b, C), b.isRequired = function() {
  3518. return !(y.hasTouch || !S.PointerEvent && !S.MSPointerEvent);
  3519. }, b.prototype.batchMSEvents = function(w) {
  3520. w(this.chart.container, B ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), w(this.chart.container, B ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), w(N, B ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  3521. }, b.prototype.destroy = function() {
  3522. this.batchMSEvents(A), C.prototype.destroy.call(this);
  3523. }, b.prototype.init = function(w, x) {
  3524. C.prototype.init.call(this, w, x), this.hasZoom && d(w.container, { "-ms-touch-action": "none", "touch-action": "none" });
  3525. }, b.prototype.onContainerPointerDown = function(w) {
  3526. H(w, "onContainerTouchStart", "touchstart", function(x) {
  3527. O[x.pointerId] = { pageX: x.pageX, pageY: x.pageY, target: x.currentTarget };
  3528. });
  3529. }, b.prototype.onContainerPointerMove = function(w) {
  3530. H(w, "onContainerTouchMove", "touchmove", function(x) {
  3531. O[x.pointerId] = {
  3532. pageX: x.pageX,
  3533. pageY: x.pageY
  3534. }, O[x.pointerId].target || (O[x.pointerId].target = x.currentTarget);
  3535. });
  3536. }, b.prototype.onDocumentPointerUp = function(w) {
  3537. H(w, "onDocumentTouchEnd", "touchend", function(x) {
  3538. delete O[x.pointerId];
  3539. });
  3540. }, b.prototype.setDOMEvents = function() {
  3541. C.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(v);
  3542. }, b;
  3543. }(j);
  3544. }), E(l, "Core/Legend/Legend.js", [
  3545. l["Core/Animation/AnimationUtilities.js"],
  3546. l["Core/FormatUtilities.js"],
  3547. l["Core/Globals.js"],
  3548. l["Core/Series/Point.js"],
  3549. l["Core/Renderer/RendererUtilities.js"],
  3550. l["Core/Utilities.js"]
  3551. ], function(y, j, I, Z, H, U) {
  3552. var F = y.animObject, N = y.setAnimation, R = j.format;
  3553. y = I.isFirefox;
  3554. var S = I.marginNames;
  3555. I = I.win;
  3556. var v = H.distribute, d = U.addEvent, u = U.createElement, A = U.css, O = U.defined, B = U.discardElement, C = U.find, b = U.fireEvent, w = U.isNumber, x = U.merge, a = U.pick, c = U.relativeLength, p = U.stableSort, i = U.syncTimeout;
  3557. return H = U.wrap, U = function() {
  3558. function h(o, t) {
  3559. 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 = o, this.init(o, t);
  3560. }
  3561. return h.prototype.init = function(o, t) {
  3562. this.chart = o, this.setOptions(t), t.enabled && (this.render(), d(this.chart, "endResize", function() {
  3563. this.legend.positionCheckboxes();
  3564. }), this.proximate ? this.unchartrender = d(this.chart, "render", function() {
  3565. this.legend.proximatePositions(), this.legend.positionItems();
  3566. }) : this.unchartrender && this.unchartrender());
  3567. }, h.prototype.setOptions = function(o) {
  3568. var t = a(o.padding, 8);
  3569. this.options = o, this.chart.styledMode || (this.itemStyle = o.itemStyle, this.itemHiddenStyle = x(this.itemStyle, o.itemHiddenStyle)), this.itemMarginTop = o.itemMarginTop || 0, this.itemMarginBottom = o.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = a(
  3570. o.symbolWidth,
  3571. 16
  3572. ), this.pages = [], this.proximate = o.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  3573. }, h.prototype.update = function(o, t) {
  3574. var s = this.chart;
  3575. this.setOptions(x(!0, this.options, o)), this.destroy(), s.isDirtyLegend = s.isDirtyBox = !0, a(t, !0) && s.redraw(), b(this, "afterUpdate");
  3576. }, h.prototype.colorizeItem = function(o, t) {
  3577. if (o.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  3578. var s = this.options, n = o.legendItem, T = o.legendLine, _ = o.legendSymbol, D = this.itemHiddenStyle.color;
  3579. s = t ? s.itemStyle.color : D;
  3580. var W = t && o.color || D, P = o.options && o.options.marker, X = { fill: W };
  3581. n && n.css({ fill: s, color: s }), T && T.attr({ stroke: W }), _ && (P && _.isMarker && (X = o.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  3582. }
  3583. b(this, "afterColorizeItem", { item: o, visible: t });
  3584. }, h.prototype.positionItems = function() {
  3585. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  3586. }, h.prototype.positionItem = function(o) {
  3587. var t = this, s = this.options, n = s.symbolPadding, T = !s.rtl, _ = o._legendItemPos;
  3588. s = _[0], _ = _[1];
  3589. var D = o.checkbox, W = o.legendGroup;
  3590. W && W.element && (n = { translateX: T ? s : this.legendWidth - s - 2 * n - 4, translateY: _ }, T = function() {
  3591. b(t, "afterPositionItem", { item: o });
  3592. }, O(W.translateY) ? W.animate(n, void 0, T) : (W.attr(n), T())), D && (D.x = s, D.y = _);
  3593. }, h.prototype.destroyItem = function(o) {
  3594. var t = o.checkbox;
  3595. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(s) {
  3596. o[s] && (o[s] = o[s].destroy());
  3597. }), t && B(o.checkbox);
  3598. }, h.prototype.destroy = function() {
  3599. function o(t) {
  3600. this[t] && (this[t] = this[t].destroy());
  3601. }
  3602. this.getAllItems().forEach(function(t) {
  3603. [
  3604. "legendItem",
  3605. "legendGroup"
  3606. ].forEach(o, t);
  3607. }), "clipRect up down pager nav box title group".split(" ").forEach(o, this), this.display = null;
  3608. }, h.prototype.positionCheckboxes = function() {
  3609. var o = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, s = this.titleHeight;
  3610. if (o) {
  3611. var n = o.translateY;
  3612. this.allItems.forEach(function(T) {
  3613. var _ = T.checkbox;
  3614. if (_) {
  3615. var D = n + s + _.y + (this.scrollOffset || 0) + 3;
  3616. A(_, { left: o.translateX + T.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > n - 6 && D < n + t - 6 ? "" : "none" });
  3617. }
  3618. }, this);
  3619. }
  3620. }, h.prototype.renderTitle = function() {
  3621. var o = this.options, t = this.padding, s = o.title, n = 0;
  3622. s.text && (this.title || (this.title = this.chart.renderer.label(s.text, t - 3, t - 4, null, null, null, o.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" }), o = this.title.getBBox(), n = o.height, this.offsetWidth = o.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  3623. }, h.prototype.setText = function(o) {
  3624. var t = this.options;
  3625. o.legendItem.attr({ text: t.labelFormat ? R(t.labelFormat, o, this.chart) : t.labelFormatter.call(o) });
  3626. }, h.prototype.renderItem = function(o) {
  3627. var t = this.chart, s = t.renderer, n = this.options, T = this.symbolWidth, _ = n.symbolPadding || 0, D = this.itemStyle, W = this.itemHiddenStyle, P = n.layout === "horizontal" ? a(n.itemDistance, 20) : 0, X = !n.rtl, g = !o.series, m = !g && o.series.drawLegendSymbol ? o.series : o, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, V = n.useHTML, Q = o.options.className, k = o.legendItem;
  3628. L = T + _ + P + (Y ? 20 : 0), k || (o.legendGroup = s.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + o.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + o.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), o.legendItem = k = s.text("", X ? T + _ : -_, this.baseline || 0, V), t.styledMode || k.css(x(o.visible ? D : W)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(o.legendGroup), this.baseline || (this.fontMetrics = s.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = a(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + _ + P + (Y ? 20 : 0), X && k.attr("x", this.symbolWidth + _))), m.drawLegendSymbol(this, o), this.setItemEvents && this.setItemEvents(o, k, V)), Y && !o.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(o), this.colorizeItem(o, o.visible), !t.styledMode && D.width || k.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(o), t = k.getBBox(), s = this.fontMetrics && this.fontMetrics.h || 0, o.itemWidth = o.checkboxOffset = n.itemWidth || o.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, o.itemWidth), this.totalItemWidth += o.itemWidth, this.itemHeight = o.itemHeight = Math.round(o.legendItemHeight || (t.height > 1.5 * s ? t.height : s));
  3629. }, h.prototype.layoutItem = function(o) {
  3630. var t = this.options, s = this.padding, n = t.layout === "horizontal", T = o.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, W = n ? a(t.itemDistance, 20) : 0, P = this.maxLegendWidth;
  3631. t = t.alignColumns && this.totalItemWidth > P ? this.maxItemWidth : o.itemWidth, n && this.itemX - s + t > P && (this.itemX = s, this.lastLineHeight && (this.itemY += D + this.lastLineHeight + _), this.lastLineHeight = 0), this.lastItemY = D + this.itemY + _, this.lastLineHeight = Math.max(T, this.lastLineHeight), o._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + T + _, this.lastLineHeight = T), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - s - (o.checkbox ? 0 : W) : t) + s, this.offsetWidth);
  3632. }, h.prototype.getAllItems = function() {
  3633. var o = [];
  3634. return this.chart.series.forEach(function(t) {
  3635. var s = t && t.options;
  3636. t && a(s.showInLegend, O(s.linkedTo) ? !1 : void 0, !0) && (o = o.concat(t.legendItems || (s.legendType === "point" ? t.data : t)));
  3637. }), b(this, "afterGetAllItems", { allItems: o }), o;
  3638. }, h.prototype.getAlignment = function() {
  3639. var o = this.options;
  3640. return this.proximate ? o.align.charAt(0) + "tv" : o.floating ? "" : o.align.charAt(0) + o.verticalAlign.charAt(0) + o.layout.charAt(0);
  3641. }, h.prototype.adjustMargins = function(o, t) {
  3642. var s = this.chart, n = this.options, T = this.getAlignment();
  3643. T && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  3644. _.test(T) && !O(o[D]) && (s[S[D]] = Math.max(s[S[D]], s.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * n[D % 2 ? "x" : "y"] + a(n.margin, 12) + t[D] + (s.titleOffset[D] || 0)));
  3645. });
  3646. }, h.prototype.proximatePositions = function() {
  3647. var o = this.chart, t = [], s = this.options.align === "left";
  3648. this.allItems.forEach(function(n) {
  3649. var T, _ = s;
  3650. if (n.yAxis) {
  3651. n.xAxis.options.reversed && (_ = !_), n.points && (T = C(_ ? n.points : n.points.slice(0).reverse(), function(W) {
  3652. return w(W.plotY);
  3653. })), _ = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  3654. var D = n.yAxis.top - o.plotTop;
  3655. n.visible ? (T = T ? T.plotY : n.yAxis.height, T += D - 0.3 * _) : T = D + n.yAxis.height, t.push({ target: T, size: _, item: n });
  3656. }
  3657. }, this), v(t, o.plotHeight).forEach(function(n) {
  3658. n.item._legendItemPos && (n.item._legendItemPos[1] = o.plotTop - o.spacing[0] + n.pos);
  3659. });
  3660. }, h.prototype.render = function() {
  3661. var o = this.chart, t = o.renderer, s = this.options, n = this.padding, T = this.getAllItems(), _ = this.group, D = this.box;
  3662. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(s.width, o.spacingBox.width - n);
  3663. var W = o.spacingBox.width - 2 * n - s.x;
  3664. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (W /= 2), this.maxLegendWidth = this.widthOption || W, _ || (this.group = _ = t.g("legend").addClass(s.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(_), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), p(T, function(X, g) {
  3665. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  3666. }), s.reversed && T.reverse(), this.allItems = T, this.display = W = !!T.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, T.forEach(this.renderItem, this), T.forEach(this.layoutItem, this), T = (this.widthOption || this.offsetWidth) + n;
  3667. var P = this.lastItemY + this.lastLineHeight + this.titleHeight;
  3668. P = this.handleOverflow(P), P += n, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: s.borderRadius }).add(_), D.isNew = !0), o.styledMode || D.attr({ stroke: s.borderColor, "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "none" }).shadow(s.shadow), 0 < T && 0 < P && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: T, height: P }, D.strokeWidth())), D.isNew = !1), D[W ? "show" : "hide"](), o.styledMode && _.getStyle("display") === "none" && (T = P = 0), this.legendWidth = T, this.legendHeight = P, W && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  3669. }, h.prototype.align = function(o) {
  3670. o === void 0 && (o = this.chart.spacingBox);
  3671. var t = this.chart, s = this.options, n = o.y;
  3672. /(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 !== o.y && (o = x(o, { y: n })), this.group.align(x(s, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : s.verticalAlign }), !0, o);
  3673. }, h.prototype.handleOverflow = function(o) {
  3674. var t = this, s = this.chart, n = s.renderer, T = this.options, _ = T.y, D = T.verticalAlign === "top", W = this.padding, P = T.maxHeight, X = T.navigation, g = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, V = function(q) {
  3675. typeof q == "number" ? $.attr({ height: q }) : $ && (t.clipRect = $.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + W + "px,9999px," + (W + q) + "px,0)" : "auto");
  3676. }, Q = function(q) {
  3677. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), s.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  3678. }, k, G;
  3679. _ = s.spacingBox.height + (D ? -_ : _) - W;
  3680. var z = this.nav, $ = this.clipRect;
  3681. return T.layout !== "horizontal" || T.verticalAlign === "middle" || T.floating || (_ /= 2), P && (_ = Math.min(_, P)), L.length = 0, o && 0 < _ && o > _ && X.enabled !== !1 ? (this.clipHeight = k = Math.max(_ - 20 - this.titleHeight - W, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = o, Y.forEach(function(q, it) {
  3682. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  3683. (!rt || et - L[rt - 1] > k && (G || et) !== L[rt - 1]) && (L.push(G || et), rt++), q.pageIx = rt - 1, G && (Y[it - 1].pageIx = rt - 1), it === Y.length - 1 && et + nt - L[rt - 1] > k && nt <= k && (L.push(et), q.pageIx = rt), et !== G && (G = et);
  3684. }), $ || ($ = t.clipRect = n.clipRect(0, W, 9999, 0), t.contentGroup.clip($)), V(k), z || (this.nav = z = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  3685. "click",
  3686. function() {
  3687. t.scroll(-1, g);
  3688. }
  3689. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), s.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = n.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  3690. t.scroll(1, g);
  3691. })), t.scroll(0), o = _) : z && (V(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), o;
  3692. }, h.prototype.scroll = function(o, t) {
  3693. var s = this, n = this.chart, T = this.pages, _ = T.length, D = this.clipHeight, W = this.options.navigation, P = this.pager, X = this.padding, g = this.currentPage + o;
  3694. g > _ && (g = _), 0 < g && (typeof t < "u" && N(t, n), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  3695. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3696. }), P.attr({ text: g + "/" + _ }), [this.down, this.downTracker].forEach(
  3697. function(m) {
  3698. m.attr({ x: 18 + this.pager.getBBox().width, class: g === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  3699. },
  3700. this
  3701. ), 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 === _ ? W.inactiveColor : W.activeColor }), this.downTracker.css({ cursor: g === _ ? "default" : "pointer" })), this.scrollOffset = -T[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), o = F(a(t, n.renderer.globalAnimation, !0)), i(function() {
  3702. b(s, "afterScroll", { currentPage: g });
  3703. }, o.duration));
  3704. }, h.prototype.setItemEvents = function(o, t, s) {
  3705. var n = this, T = n.chart.renderer.boxWrapper, _ = o instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", W = n.chart.styledMode, P = function(X) {
  3706. n.allItems.forEach(function(g) {
  3707. o !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  3708. m.setState(X, !_);
  3709. });
  3710. });
  3711. };
  3712. (s ? [t, o.legendSymbol] : [o.legendGroup]).forEach(function(X) {
  3713. X && X.on("mouseover", function() {
  3714. o.visible && P("inactive"), o.setState("hover"), o.visible && T.addClass(D), W || t.css(n.options.itemHoverStyle);
  3715. }).on("mouseout", function() {
  3716. n.chart.styledMode || t.css(x(o.visible ? n.itemStyle : n.itemHiddenStyle)), P(""), T.removeClass(D), o.setState();
  3717. }).on("click", function(g) {
  3718. var m = function() {
  3719. o.setVisible && o.setVisible(), P(o.visible ? "inactive" : "");
  3720. };
  3721. T.removeClass(D), g = { browserEvent: g }, o.firePointEvent ? o.firePointEvent("legendItemClick", g, m) : b(o, "legendItemClick", g, m);
  3722. });
  3723. });
  3724. }, h.prototype.createCheckboxForItem = function(o) {
  3725. o.checkbox = u(
  3726. "input",
  3727. { type: "checkbox", className: "highcharts-legend-checkbox", checked: o.selected, defaultChecked: o.selected },
  3728. this.options.itemCheckboxStyle,
  3729. this.chart.container
  3730. ), d(o.checkbox, "click", function(t) {
  3731. b(o.series || o, "checkboxClick", { checked: t.target.checked, item: o }, function() {
  3732. o.select();
  3733. });
  3734. });
  3735. }, h;
  3736. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && H(U.prototype, "positionItem", function(h, o) {
  3737. var t = this, s = function() {
  3738. o._legendItemPos && h.call(t, o);
  3739. };
  3740. s(), t.bubbleLegend || setTimeout(s);
  3741. }), U;
  3742. }), E(
  3743. l,
  3744. "Core/Series/SeriesRegistry.js",
  3745. [l["Core/Globals.js"], l["Core/DefaultOptions.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]],
  3746. function(y, j, I, Z) {
  3747. var H = j.defaultOptions, U = Z.error, F = Z.extendClass, N = Z.merge, R;
  3748. return function(S) {
  3749. function v(d, u) {
  3750. var A = H.plotOptions || {}, O = u.defaultOptions;
  3751. u.prototype.pointClass || (u.prototype.pointClass = I), u.prototype.type = d, O && (A[d] = O), S.seriesTypes[d] = u;
  3752. }
  3753. S.seriesTypes = y.seriesTypes, S.getSeries = function(d, u) {
  3754. u === void 0 && (u = {});
  3755. var A = d.options.chart;
  3756. A = u.type || A.type || A.defaultSeriesType || "";
  3757. var O = S.seriesTypes[A];
  3758. return S || U(17, !0, d, { missingModuleFor: A }), A = new O(), typeof A.init == "function" && A.init(d, u), A;
  3759. }, S.registerSeriesType = v, S.seriesType = function(d, u, A, O, B) {
  3760. var C = H.plotOptions || {};
  3761. return u = u || "", C[d] = N(C[u], A), v(d, F(S.seriesTypes[u] || function() {
  3762. }, O)), S.seriesTypes[d].prototype.type = d, B && (S.seriesTypes[d].prototype.pointClass = F(I, B)), S.seriesTypes[d];
  3763. };
  3764. }(R || (R = {})), R;
  3765. }
  3766. ), E(l, "Core/Chart/Chart.js", [
  3767. l["Core/Animation/AnimationUtilities.js"],
  3768. l["Core/Axis/Axis.js"],
  3769. l["Core/FormatUtilities.js"],
  3770. l["Core/Foundation.js"],
  3771. l["Core/Globals.js"],
  3772. l["Core/Legend/Legend.js"],
  3773. l["Core/MSPointer.js"],
  3774. l["Core/DefaultOptions.js"],
  3775. l["Core/Pointer.js"],
  3776. l["Core/Renderer/RendererRegistry.js"],
  3777. l["Core/Series/SeriesRegistry.js"],
  3778. l["Core/Renderer/SVG/SVGRenderer.js"],
  3779. l["Core/Time.js"],
  3780. l["Core/Utilities.js"],
  3781. l["Core/Renderer/HTML/AST.js"]
  3782. ], function(y, j, I, Z, H, U, F, N, R, S, v, d, u, A, O) {
  3783. var B = y.animate, C = y.animObject, b = y.setAnimation, w = I.numberFormat, x = Z.registerEventOptions, a = H.charts, c = H.doc, p = H.marginNames, i = H.svg, h = H.win, o = N.defaultOptions, t = N.defaultTime, s = v.seriesTypes, n = A.addEvent, T = A.attr, _ = A.cleanRecursively, D = A.createElement, W = A.css, P = A.defined, X = A.discardElement, g = A.erase, m = A.error, L = A.extend, Y = A.find, V = A.fireEvent, Q = A.getStyle, k = A.isArray, G = A.isNumber, z = A.isObject, $ = A.isString, q = A.merge, it = A.objectEach, et = A.pick, nt = A.pInt, rt = A.relativeLength, ct = A.removeEvent, gt = A.splat, dt = A.syncTimeout, ht = A.uniqueKey;
  3784. return y = function() {
  3785. function at(J, tt, ot) {
  3786. 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);
  3787. }
  3788. return at.chart = function(J, tt, ot) {
  3789. return new at(J, tt, ot);
  3790. }, at.prototype.getArgs = function(J, tt, ot) {
  3791. $(J) || J.nodeName ? (this.renderTo = J, this.init(tt, ot)) : this.init(J, tt);
  3792. }, at.prototype.init = function(J, tt) {
  3793. var ot = J.plotOptions || {};
  3794. V(this, "init", { args: arguments }, function() {
  3795. var lt = q(o, J), pt = lt.chart;
  3796. it(lt.plotOptions, function(yt, vt) {
  3797. z(yt) && (yt.tooltip = ot[vt] && q(ot[vt].tooltip) || void 0);
  3798. }), 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 u(J.time) : H.time, this.numberFormatter = pt.numberFormatter || w, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), H.chartCount++, x(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, V(this, "afterInit"), this.firstRender();
  3799. });
  3800. }, at.prototype.initSeries = function(J) {
  3801. var tt = this.options.chart;
  3802. tt = J.type || tt.type || tt.defaultSeriesType;
  3803. var ot = s[tt];
  3804. return ot || m(17, !0, this, { missingModuleFor: tt }), tt = new ot(), typeof tt.init == "function" && tt.init(this, J), tt;
  3805. }, at.prototype.setSeriesData = function() {
  3806. this.getSeriesOrderByLinks().forEach(function(J) {
  3807. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  3808. });
  3809. }, at.prototype.getSeriesOrderByLinks = function() {
  3810. return this.series.concat().sort(function(J, tt) {
  3811. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  3812. });
  3813. }, at.prototype.orderSeries = function(J) {
  3814. var tt = this.series;
  3815. J = J || 0;
  3816. for (var ot = tt.length; J < ot; ++J)
  3817. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  3818. }, at.prototype.isInsidePlot = function(J, tt, ot) {
  3819. ot === void 0 && (ot = {});
  3820. var lt = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Pt = 0, At = 0;
  3821. ot.visiblePlotOnly && this.scrollingContainer && (At = this.scrollingContainer, Pt = At.scrollLeft, At = At.scrollTop);
  3822. var St = ot.series;
  3823. 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) {
  3824. var Dt = St && (lt ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  3825. 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);
  3826. }
  3827. 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)), V(this, "afterIsInsidePlot", J), J.isInsidePlot;
  3828. }, at.prototype.redraw = function(J) {
  3829. V(this, "beforeRedraw");
  3830. 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;
  3831. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = ot.length; J--; ) {
  3832. var Dt = ot[J];
  3833. if (Dt.options.stacking || Dt.options.centerInCategory) {
  3834. var Lt = !0;
  3835. if (Dt.isDirty) {
  3836. var Nt = !0;
  3837. break;
  3838. }
  3839. }
  3840. }
  3841. if (Nt)
  3842. for (J = ot.length; J--; )
  3843. Dt = ot[J], Dt.options.stacking && (Dt.isDirty = !0);
  3844. ot.forEach(function(Et) {
  3845. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && V(Et, "updatedData");
  3846. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  3847. Et.updateNames(), Et.setScale();
  3848. }), this.getMargins(), tt.forEach(function(Et) {
  3849. Et.isDirty && (At = !0);
  3850. }), tt.forEach(function(Et) {
  3851. var Kt = Et.min + "," + Et.max;
  3852. Et.extKey !== Kt && (Et.extKey = Kt, Pt.push(function() {
  3853. V(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  3854. })), (At || Lt) && Et.redraw();
  3855. }), At && this.drawChartBox(), V(this, "predraw"), ot.forEach(function(Et) {
  3856. (At || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  3857. }), lt && lt.reset(!0), vt.draw(), V(this, "redraw"), V(this, "render"), Ct && this.temporaryDisplay(!0), Pt.forEach(function(Et) {
  3858. Et.call();
  3859. });
  3860. }, at.prototype.get = function(J) {
  3861. function tt(yt) {
  3862. return yt.id === J || yt.options && yt.options.id === J;
  3863. }
  3864. for (var ot = this.series, lt = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !lt && pt < ot.length; pt++)
  3865. lt = Y(ot[pt].points || [], tt);
  3866. return lt;
  3867. }, at.prototype.getAxes = function() {
  3868. var J = this, tt = this.options, ot = tt.xAxis = gt(tt.xAxis || {});
  3869. tt = tt.yAxis = gt(tt.yAxis || {}), V(this, "getAxes"), ot.forEach(function(lt, pt) {
  3870. lt.index = pt, lt.isX = !0;
  3871. }), tt.forEach(function(lt, pt) {
  3872. lt.index = pt;
  3873. }), ot.concat(tt).forEach(function(lt) {
  3874. new j(J, lt);
  3875. }), V(this, "afterGetAxes");
  3876. }, at.prototype.getSelectedPoints = function() {
  3877. return this.series.reduce(function(J, tt) {
  3878. return tt.getPointsCollection().forEach(function(ot) {
  3879. et(ot.selectedStaging, ot.selected) && J.push(ot);
  3880. }), J;
  3881. }, []);
  3882. }, at.prototype.getSelectedSeries = function() {
  3883. return this.series.filter(function(J) {
  3884. return J.selected;
  3885. });
  3886. }, at.prototype.setTitle = function(J, tt, ot) {
  3887. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription("caption", void 0), this.layOutTitles(ot);
  3888. }, at.prototype.applyDescription = function(J, tt) {
  3889. var ot = this, lt = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  3890. lt = this.options[J] = q(!this.styledMode && { style: lt }, this.options[J], tt);
  3891. var pt = this[J];
  3892. 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) {
  3893. ot[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  3894. }, this.styledMode || pt.css(lt.style), this[J] = pt);
  3895. }, at.prototype.layOutTitles = function(J) {
  3896. var tt = [0, 0, 0], ot = this.renderer, lt = this.spacingBox;
  3897. ["title", "subtitle", "caption"].forEach(function(yt) {
  3898. var vt = this[yt], Ct = this.options[yt], Pt = Ct.verticalAlign || "top";
  3899. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  3900. var At;
  3901. if (vt) {
  3902. 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" });
  3903. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  3904. vt.align(
  3905. L({ y: Pt === "bottom" ? At : yt + At, height: St }, Ct),
  3906. !1,
  3907. "spacingBox"
  3908. ), Ct.floating || (Pt === "top" ? tt[0] = Math.ceil(tt[0] + St) : Pt === "bottom" && (tt[2] = Math.ceil(tt[2] + St)));
  3909. }
  3910. }, 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);
  3911. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  3912. this.titleOffset = tt, V(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  3913. }, at.prototype.getChartSize = function() {
  3914. var J = this.options.chart, tt = J.width;
  3915. J = J.height;
  3916. var ot = this.renderTo;
  3917. P(tt) || (this.containerWidth = Q(ot, "width")), P(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));
  3918. }, at.prototype.temporaryDisplay = function(J) {
  3919. var tt = this.renderTo;
  3920. if (J)
  3921. for (; tt && tt.style; )
  3922. tt.hcOrigStyle && (W(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  3923. else
  3924. 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); )
  3925. ;
  3926. }, at.prototype.setClassName = function(J) {
  3927. this.container.className = "highcharts-container " + (J || "");
  3928. }, at.prototype.getContainer = function() {
  3929. var J = this.options, tt = J.chart, ot = ht(), lt, pt = this.renderTo;
  3930. pt || (this.renderTo = pt = tt.renderTo), $(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  3931. var yt = nt(T(pt, "data-highcharts-chart"));
  3932. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), T(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  3933. var vt = this.chartHeight;
  3934. 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 = D("div", { id: ot }, lt, pt), this._cursor = ot.style.cursor, this.renderer = new (tt.renderer || !i ? S.getRendererType(tt.renderer) : d)(ot, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  3935. void 0,
  3936. this
  3937. ), this.setClassName(tt.className), this.styledMode)
  3938. for (var Ct in J.defs)
  3939. this.renderer.definition(J.defs[Ct]);
  3940. else
  3941. this.renderer.setStyle(tt.style);
  3942. this.renderer.chartIndex = this.index, V(this, "afterGetContainer");
  3943. }, at.prototype.getMargins = function(J) {
  3944. var tt = this.spacing, ot = this.margin, lt = this.titleOffset;
  3945. this.resetMargins(), lt[0] && !P(ot[0]) && (this.plotTop = Math.max(this.plotTop, lt[0] + tt[0])), lt[2] && !P(ot[2]) && (this.marginBottom = Math.max(this.marginBottom, lt[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  3946. ot,
  3947. tt
  3948. ), V(this, "getMargins"), J || this.getAxisMargins();
  3949. }, at.prototype.getAxisMargins = function() {
  3950. var J = this, tt = J.axisOffset = [0, 0, 0, 0], ot = J.colorAxis, lt = J.margin, pt = function(yt) {
  3951. yt.forEach(function(vt) {
  3952. vt.visible && vt.getOffset();
  3953. });
  3954. };
  3955. J.hasCartesianSeries ? pt(J.axes) : ot && ot.length && pt(ot), p.forEach(function(yt, vt) {
  3956. P(lt[vt]) || (J[yt] += tt[vt]);
  3957. }), J.setChartSize();
  3958. }, at.prototype.reflow = function(J) {
  3959. var tt = this, ot = tt.options.chart, lt = tt.renderTo, pt = P(ot.width) && P(ot.height), yt = ot.width || Q(lt, "width");
  3960. ot = ot.height || Q(lt, "height"), lt = J ? J.target : h, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && ot && (lt === h || lt === c) && ((yt !== tt.containerWidth || ot !== tt.containerHeight) && (A.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  3961. tt.container && tt.setSize(void 0, void 0, !1);
  3962. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = ot);
  3963. }, at.prototype.setReflow = function(J) {
  3964. var tt = this;
  3965. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(h, "resize", function(ot) {
  3966. tt.options && tt.reflow(ot);
  3967. }), n(this, "destroy", this.unbindReflow));
  3968. }, at.prototype.setSize = function(J, tt, ot) {
  3969. var lt = this, pt = lt.renderer;
  3970. 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 ? B : 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) {
  3971. yt.isDirty = !0, yt.setScale();
  3972. }), lt.isDirtyLegend = !0, lt.isDirtyBox = !0, lt.layOutTitles(), lt.getMargins(), lt.redraw(ot), lt.oldChartHeight = null, V(lt, "resize"), dt(function() {
  3973. lt && V(lt, "endResize", null, function() {
  3974. --lt.isResizing;
  3975. });
  3976. }, C(ot).duration);
  3977. }, at.prototype.setChartSize = function(J) {
  3978. 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;
  3979. 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(Lt) {
  3980. Lt.setAxisSize(), Lt.setAxisTranslation();
  3981. }), ot.alignElements()), V(this, "afterSetChartSize", { skipAxes: J });
  3982. }, at.prototype.resetMargins = function() {
  3983. V(this, "resetMargins");
  3984. var J = this, tt = J.options.chart;
  3985. ["margin", "spacing"].forEach(function(ot) {
  3986. var lt = tt[ot], pt = z(lt) ? lt : [lt, lt, lt, lt];
  3987. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  3988. J[ot][vt] = et(tt[ot + yt], pt[vt]);
  3989. });
  3990. }), p.forEach(function(ot, lt) {
  3991. J[ot] = et(J.margin[lt], J.spacing[lt]);
  3992. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  3993. }, at.prototype.drawChartBox = function() {
  3994. 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, Lt = this.plotHeight, Nt = this.plotBox, Et = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, zt = "animate";
  3995. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  3996. var Vt = be = Gt.strokeWidth();
  3997. else
  3998. 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);
  3999. Gt[zt]({ x: be / 2, y: be / 2, width: ot - be - Vt % 2, height: lt - be - Vt % 2, r: J.borderRadius }), zt = "animate", Wt || (zt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[zt](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, Lt).add())), Et ? Et.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), zt = "animate", Jt || (zt = "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[zt](Jt.crisp({ x: At, y: St, width: Dt, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, V(this, "afterDrawChartBox");
  4000. }, at.prototype.propFromSeries = function() {
  4001. var J = this, tt = J.options.chart, ot = J.options.series, lt, pt, yt;
  4002. ["inverted", "angular", "polar"].forEach(function(vt) {
  4003. for (pt = s[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], lt = ot && ot.length; !yt && lt--; )
  4004. (pt = s[ot[lt].type]) && pt.prototype[vt] && (yt = !0);
  4005. J[vt] = yt;
  4006. });
  4007. }, at.prototype.linkSeries = function() {
  4008. var J = this, tt = J.series;
  4009. tt.forEach(function(ot) {
  4010. ot.linkedSeries.length = 0;
  4011. }), tt.forEach(function(ot) {
  4012. var lt = ot.options.linkedTo;
  4013. $(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));
  4014. }), V(this, "afterLinkSeries");
  4015. }, at.prototype.renderSeries = function() {
  4016. this.series.forEach(function(J) {
  4017. J.translate(), J.render();
  4018. });
  4019. }, at.prototype.renderLabels = function() {
  4020. var J = this, tt = J.options.labels;
  4021. tt.items && tt.items.forEach(function(ot) {
  4022. var lt = L(tt.style, ot.style), pt = nt(lt.left) + J.plotLeft, yt = nt(lt.top) + J.plotTop + 12;
  4023. delete lt.left, delete lt.top, J.renderer.text(ot.html, pt, yt).attr({ zIndex: 2 }).css(lt).add();
  4024. });
  4025. }, at.prototype.render = function() {
  4026. var J = this.axes, tt = this.colorAxis, ot = this.renderer, lt = this.options, pt = function(At) {
  4027. At.forEach(function(St) {
  4028. St.visible && St.render();
  4029. });
  4030. }, yt = 0;
  4031. this.setTitle(), this.legend = new U(this, lt.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), lt = this.plotWidth, J.some(function(At) {
  4032. if (At.horiz && At.visible && At.options.labels.enabled && At.series.length)
  4033. return yt = 21, !0;
  4034. });
  4035. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  4036. J.forEach(function(At) {
  4037. At.setScale();
  4038. }), this.getAxisMargins();
  4039. var Ct = 1.1 < lt / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  4040. (Ct || Pt) && (J.forEach(function(At) {
  4041. (At.horiz && Ct || !At.horiz && Pt) && At.setTickInterval(!0);
  4042. }), 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;
  4043. }, at.prototype.addCredits = function(J) {
  4044. var tt = this, ot = q(!0, this.options.credits, J);
  4045. ot.enabled && !this.credits && (this.credits = this.renderer.text(ot.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  4046. ot.href && (h.location.href = ot.href);
  4047. }).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) {
  4048. tt.credits = tt.credits.destroy(), tt.addCredits(lt);
  4049. });
  4050. }, at.prototype.destroy = function() {
  4051. var J = this, tt = J.axes, ot = J.series, lt = J.container, pt = lt && lt.parentNode, yt;
  4052. for (V(J, "destroy"), J.renderer.forExport ? g(a, J) : a[J.index] = void 0, H.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  4053. tt[yt] = tt[yt].destroy();
  4054. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = ot.length; yt--; )
  4055. ot[yt] = ot[yt].destroy();
  4056. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  4057. var Ct = J[vt];
  4058. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  4059. }), lt && (lt.innerHTML = O.emptyHTML, ct(lt), pt && X(lt)), it(J, function(vt, Ct) {
  4060. delete J[Ct];
  4061. });
  4062. }, at.prototype.firstRender = function() {
  4063. var J = this, tt = J.options;
  4064. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(ot) {
  4065. J.initSeries(ot);
  4066. }), J.linkSeries(), J.setSeriesData(), V(J, "beforeRender"), R && (F.isRequired() ? J.pointer = new F(J, tt) : J.pointer = new R(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  4067. }, at.prototype.onload = function() {
  4068. this.callbacks.concat([this.callback]).forEach(function(J) {
  4069. J && typeof this.index < "u" && J.apply(this, [this]);
  4070. }, this), V(this, "load"), V(this, "render"), P(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  4071. }, at.prototype.addSeries = function(J, tt, ot) {
  4072. var lt = this, pt;
  4073. return J && (tt = et(tt, !0), V(lt, "addSeries", { options: J }, function() {
  4074. pt = lt.initSeries(J), lt.isDirtyLegend = !0, lt.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), V(lt, "afterAddSeries", { series: pt }), tt && lt.redraw(ot);
  4075. })), pt;
  4076. }, at.prototype.addAxis = function(J, tt, ot, lt) {
  4077. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: ot, animation: lt });
  4078. }, at.prototype.addColorAxis = function(J, tt, ot) {
  4079. return this.createAxis("colorAxis", { axis: J, redraw: tt, animation: ot });
  4080. }, at.prototype.createAxis = function(J, tt) {
  4081. return J = new j(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  4082. }, at.prototype.showLoading = function(J) {
  4083. var tt = this, ot = tt.options, lt = ot.loading, pt = function() {
  4084. yt && W(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  4085. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  4086. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D(
  4087. "span",
  4088. { className: "highcharts-loading-inner" },
  4089. null,
  4090. yt
  4091. ), 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: "" }), B(yt, { opacity: lt.style.opacity || 0.5 }, { duration: lt.showDuration || 0 }))), tt.loadingShown = !0, pt();
  4092. }, at.prototype.hideLoading = function() {
  4093. var J = this.options, tt = this.loadingDiv;
  4094. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || B(tt, { opacity: 0 }, {
  4095. duration: J.loading.hideDuration || 100,
  4096. complete: function() {
  4097. W(tt, { display: "none" });
  4098. }
  4099. })), this.loadingShown = !1;
  4100. }, at.prototype.update = function(J, tt, ot, lt) {
  4101. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Pt, At;
  4102. V(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  4103. var St = J.chart;
  4104. if (St) {
  4105. 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) {
  4106. pt.propFromSeries();
  4107. var Dt = !0;
  4108. }
  4109. "alignTicks" in St && (Dt = !0), "events" in St && x(this, St), it(St, function(Lt, Nt) {
  4110. 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);
  4111. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  4112. }
  4113. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new u(J.time)), q(!0, pt.options.time, J.time)), it(J, function(Lt, Nt) {
  4114. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(Lt, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](Lt) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  4115. }), this.collectionsWithUpdate.forEach(function(Lt) {
  4116. if (J[Lt]) {
  4117. var Nt = [];
  4118. pt[Lt].forEach(function(Et, Kt) {
  4119. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  4120. }), gt(J[Lt]).forEach(function(Et, Kt) {
  4121. var Gt = P(Et.id), Wt;
  4122. Gt && (Wt = pt.get(Et.id)), !Wt && pt[Lt] && (Wt = pt[Lt][Nt ? Nt[Kt] : Kt]) && Gt && P(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === Lt && (Wt.update(Et, !1), ot && (Wt.touched = !0)), !Wt && ot && pt.collectionsWithInit[Lt] && (pt.collectionsWithInit[Lt][0].apply(pt, [Et].concat(pt.collectionsWithInit[Lt][1] || []).concat([!1])).touched = !0);
  4123. }), ot && pt[Lt].forEach(function(Et) {
  4124. Et.touched || Et.options.isInternal ? delete Et.touched : Ct.push(Et);
  4125. });
  4126. }
  4127. }), Ct.forEach(function(Lt) {
  4128. Lt.chart && Lt.remove && Lt.remove(!1);
  4129. }), Dt && pt.axes.forEach(function(Lt) {
  4130. Lt.update({}, !1);
  4131. }), Pt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  4132. Lt.chart && Lt.update({}, !1);
  4133. }, this), Dt = St && St.width, St = St && ($(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), At || G(Dt) && Dt !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, lt) : et(tt, !0) && pt.redraw(lt), V(pt, "afterUpdate", { options: J, redraw: tt, animation: lt });
  4134. }, at.prototype.setSubtitle = function(J, tt) {
  4135. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  4136. }, at.prototype.setCaption = function(J, tt) {
  4137. this.applyDescription("caption", J), this.layOutTitles(tt);
  4138. }, at.prototype.showResetZoom = function() {
  4139. function J() {
  4140. tt.zoomOut();
  4141. }
  4142. var tt = this, ot = o.lang, lt = tt.options.chart.resetZoomButton, pt = lt.theme, yt = pt.states, vt = lt.relativeTo === "chart" || lt.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  4143. V(this, "beforeShowResetZoom", null, function() {
  4144. 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);
  4145. }), V(this, "afterShowResetZoom");
  4146. }, at.prototype.zoomOut = function() {
  4147. V(this, "selection", { resetSelection: !0 }, this.zoom);
  4148. }, at.prototype.zoom = function(J) {
  4149. var tt = this, ot = tt.pointer, lt = tt.inverted ? ot.mouseDownX : ot.mouseDownY, pt = !1, yt;
  4150. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  4151. yt = Ct.zoom();
  4152. }), ot.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  4153. var Pt = Ct.axis, At = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? At + Pt.width : At + Pt.height, Dt = Pt.isXAxis, Lt = !1;
  4154. (!Dt && lt >= At && lt <= St || Dt || !P(lt)) && (Lt = !0), ot[Dt ? "zoomX" : "zoomY"] && Lt && (yt = Pt.zoom(Ct.min, Ct.max), Pt.displayBtn && (pt = !0));
  4155. });
  4156. var vt = tt.resetZoomButton;
  4157. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  4158. tt.options.chart.animation,
  4159. J && J.animation,
  4160. 100 > tt.pointCount
  4161. ));
  4162. }, at.prototype.pan = function(J, tt) {
  4163. var ot = this, lt = ot.hoverPoints;
  4164. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  4165. var pt = ot.options.chart, yt = ot.options.mapNavigation && ot.options.mapNavigation.enabled;
  4166. pt && pt.panning && (pt.panning = tt);
  4167. var vt = tt.type, Ct;
  4168. V(this, "pan", { originalEvent: J }, function() {
  4169. lt && lt.forEach(function(St) {
  4170. St.setState();
  4171. });
  4172. var Pt = ot.xAxis;
  4173. vt === "xy" ? Pt = Pt.concat(ot.yAxis) : vt === "y" && (Pt = ot.yAxis);
  4174. var At = {};
  4175. Pt.forEach(function(St) {
  4176. if (St.options.panningEnabled && !St.options.isInternal) {
  4177. var Dt = St.horiz, Lt = J[Dt ? "chartX" : "chartY"];
  4178. Dt = Dt ? "mouseDownX" : "mouseDownY";
  4179. var Nt = ot[Dt], Et = St.minPointOffset || 0, Kt = St.reversed && !ot.inverted || !St.reversed && ot.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - Lt, !0) + Et * Kt, Jt = St.toValue(Nt + St.len - Lt, !0) - (Et * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  4180. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  4181. var zt = St.panningState;
  4182. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  4183. var Me = Vt.getProcessedData(!0);
  4184. Me = Vt.getExtremes(Me.yData, !0), zt || (zt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), G(Me.dataMin) && G(Me.dataMax) && (zt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Me.dataMin, zt.startMin), zt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Me.dataMax, zt.startMax));
  4185. }), Kt = Math.min(et(zt && zt.startMin, Gt.dataMin), Et ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(zt && zt.startMax, Gt.dataMax), Et ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = zt, St.isOrdinal || (Et = Kt - Nt, 0 < Et && (Wt += Et, Nt = Kt), Et = Wt - Jt, 0 < Et && (Wt = Jt, Nt -= Et), 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] = Lt);
  4186. }
  4187. }), it(At, function(St, Dt) {
  4188. ot[Dt] = St;
  4189. }), Ct && ot.redraw(!1), W(ot.container, { cursor: "move" });
  4190. });
  4191. }, at;
  4192. }(), L(y.prototype, {
  4193. callbacks: [],
  4194. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  4195. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  4196. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  4197. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  4198. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  4199. }), y;
  4200. }), E(l, "Core/Legend/LegendSymbol.js", [l["Core/Utilities.js"]], function(y) {
  4201. var j = y.merge, I = y.pick, Z;
  4202. return function(H) {
  4203. H.drawLineMarker = function(U) {
  4204. var F = this.options, N = U.symbolWidth, R = U.symbolHeight, S = R / 2, v = this.chart.renderer, d = this.legendGroup;
  4205. U = U.baseline - Math.round(0.3 * U.fontMetrics.b);
  4206. var u = {}, A = F.marker;
  4207. this.chart.styledMode || (u = { "stroke-width": F.lineWidth || 0 }, F.dashStyle && (u.dashstyle = F.dashStyle)), this.legendLine = v.path([["M", 0, U], ["L", N, U]]).addClass("highcharts-graph").attr(u).add(d), A && A.enabled !== !1 && N && (F = Math.min(I(A.radius, S), S), this.symbol.indexOf("url") === 0 && (A = j(A, { width: R, height: R }), F = 0), this.legendSymbol = N = v.symbol(this.symbol, N / 2 - F, U - F, 2 * F, 2 * F, A).addClass("highcharts-point").add(d), N.isMarker = !0);
  4208. }, H.drawRectangle = function(U, F) {
  4209. var N = U.symbolHeight, R = U.options.squareSymbol;
  4210. F.legendSymbol = this.chart.renderer.rect(R ? (U.symbolWidth - N) / 2 : 0, U.baseline - N + 1, R ? N : U.symbolWidth, N, I(U.options.symbolRadius, N / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(F.legendGroup);
  4211. };
  4212. }(Z || (Z = {})), Z;
  4213. }), E(l, "Core/Series/SeriesDefaults.js", [], function() {
  4214. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  4215. normal: { animation: !0 },
  4216. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  4217. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  4218. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  4219. var y = this.series.chart.numberFormatter;
  4220. return typeof this.y != "number" ? "" : y(this.y, -1);
  4221. }, 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: {
  4222. normal: { animation: !0 },
  4223. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  4224. select: { animation: { duration: 0 } },
  4225. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  4226. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  4227. }), E(l, "Core/Series/Series.js", [
  4228. l["Core/Animation/AnimationUtilities.js"],
  4229. l["Core/DefaultOptions.js"],
  4230. l["Core/Foundation.js"],
  4231. l["Core/Globals.js"],
  4232. l["Core/Legend/LegendSymbol.js"],
  4233. l["Core/Series/Point.js"],
  4234. l["Core/Series/SeriesDefaults.js"],
  4235. l["Core/Series/SeriesRegistry.js"],
  4236. l["Core/Renderer/SVG/SVGElement.js"],
  4237. l["Core/Utilities.js"]
  4238. ], function(y, j, I, Z, H, U, F, N, R, S) {
  4239. var v = y.animObject, d = y.setAnimation, u = j.defaultOptions, A = I.registerEventOptions, O = Z.hasTouch, B = Z.svg, C = Z.win, b = N.seriesTypes, w = S.addEvent, x = S.arrayMax, a = S.arrayMin, c = S.clamp, p = S.cleanRecursively, i = S.correctFloat, h = S.defined, o = S.erase, t = S.error, s = S.extend, n = S.find, T = S.fireEvent, _ = S.getNestedProperty, D = S.isArray, W = S.isNumber, P = S.isString, X = S.merge, g = S.objectEach, m = S.pick, L = S.removeEvent, Y = S.splat, V = S.syncTimeout;
  4240. return y = function() {
  4241. function Q() {
  4242. 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;
  4243. }
  4244. return Q.prototype.init = function(k, G) {
  4245. T(this, "init", { options: G });
  4246. var z = this, $ = k.series;
  4247. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), s(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), A(this, G);
  4248. var q = G.events;
  4249. (q && q.click || G.point && G.point.events && G.point.events.click || G.allowPointSelect) && (k.runTrackerClick = !0), z.getColor(), z.getSymbol(), z.parallelArrays.forEach(function(et) {
  4250. z[et + "Data"] || (z[et + "Data"] = []);
  4251. }), z.isCartesian && (k.hasCartesianSeries = !0);
  4252. var it;
  4253. $.length && (it = $[$.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert($)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), T(this, "afterInit");
  4254. }, Q.prototype.is = function(k) {
  4255. return b[k] && this instanceof b[k];
  4256. }, Q.prototype.insert = function(k) {
  4257. var G = this.options.index, z;
  4258. if (W(G)) {
  4259. for (z = k.length; z--; )
  4260. if (G >= m(k[z].options.index, k[z]._i)) {
  4261. k.splice(z + 1, 0, this);
  4262. break;
  4263. }
  4264. z === -1 && k.unshift(this), z += 1;
  4265. } else
  4266. k.push(this);
  4267. return m(z, k.length - 1);
  4268. }, Q.prototype.bindAxes = function() {
  4269. var k = this, G = k.options, z = k.chart, $;
  4270. T(this, "bindAxes", null, function() {
  4271. (k.axisTypes || []).forEach(function(q) {
  4272. var it = 0;
  4273. z[q].forEach(function(et) {
  4274. $ = et.options, (G[q] === it && !$.isInternal || typeof G[q] < "u" && G[q] === $.id || typeof G[q] > "u" && $.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), $.isInternal || it++;
  4275. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  4276. });
  4277. }), T(this, "afterBindAxes");
  4278. }, Q.prototype.updateParallelArrays = function(k, G) {
  4279. var z = k.series, $ = arguments, q = W(G) ? function(it) {
  4280. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  4281. z[it + "Data"][G] = et;
  4282. } : function(it) {
  4283. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call($, 2));
  4284. };
  4285. z.parallelArrays.forEach(q);
  4286. }, Q.prototype.hasData = function() {
  4287. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  4288. }, Q.prototype.autoIncrement = function(k) {
  4289. var G = this.options, z = G.pointIntervalUnit, $ = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  4290. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), $ && W(k) && (et *= k), z && (G = new q.Date(it), z === "day" ? q.set("Date", G, q.get("Date", G) + et) : z === "month" ? q.set("Month", G, q.get("Month", G) + et) : z === "year" && q.set("FullYear", G, q.get("FullYear", G) + et), et = G.getTime() - it), $ && W(k) ? it + et : (this.xIncrement = it + et, it);
  4291. }, Q.prototype.setDataSortingOptions = function() {
  4292. var k = this.options;
  4293. s(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), h(k.pointRange) || (k.pointRange = 1);
  4294. }, Q.prototype.setOptions = function(k) {
  4295. var G = this.chart, z = G.options, $ = z.plotOptions, q = G.userOptions || {};
  4296. k = X(k), G = G.styledMode;
  4297. var it = { plotOptions: $, userOptions: k };
  4298. T(this, "setOptions", it);
  4299. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  4300. return this.userOptions = it.userOptions, q = X(et, $.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(u.tooltip, u.plotOptions.series && u.plotOptions.series.tooltip, u.plotOptions[this.type].tooltip, z.tooltip.userOptions, $.series && $.series.tooltip, $[this.type].tooltip, k.tooltip), this.stickyTracking = m(k.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, $ = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (z = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, G || (z.color = q.negativeColor, z.fillColor = q.negativeFillColor), $.push(z)), $.length && h($[$.length - 1].value) && $.push(G ? {} : { color: this.color, fillColor: this.fillColor }), T(this, "afterSetOptions", { options: q }), q;
  4301. }, Q.prototype.getName = function() {
  4302. return m(this.options.name, "Series " + (this.index + 1));
  4303. }, Q.prototype.getCyclic = function(k, G, z) {
  4304. var $ = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m($.options.chart[k + "Count"], $[k + "Count"]);
  4305. if (!G) {
  4306. var rt = m(q[it], q["_" + it]);
  4307. h(rt) || ($.series.length || ($[et] = 0), q["_" + it] = rt = $[et] % nt, $[et] += 1), z && (G = z[rt]);
  4308. }
  4309. typeof rt < "u" && (this[it] = rt), this[k] = G;
  4310. }, Q.prototype.getColor = function() {
  4311. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || u.plotOptions[this.type].color, this.chart.options.colors);
  4312. }, Q.prototype.getPointsCollection = function() {
  4313. return (this.hasGroupedData ? this.points : this.data) || [];
  4314. }, Q.prototype.getSymbol = function() {
  4315. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  4316. }, Q.prototype.findPointIndex = function(k, G) {
  4317. var z = k.id, $ = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  4318. if (z)
  4319. it = this.chart.get(z), it instanceof U && (et = it);
  4320. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  4321. return !ct.touched && ct.index === k.index;
  4322. }, it && it.matchByName ? et = function(ct) {
  4323. return !ct.touched && ct.name === k.name;
  4324. } : this.options.relativeXValue && (et = function(ct) {
  4325. return !ct.touched && ct.options.x === k.x;
  4326. }), et = n(q, et), !et))
  4327. return;
  4328. if (et) {
  4329. var rt = et && et.index;
  4330. typeof rt < "u" && (nt = !0);
  4331. }
  4332. return typeof rt > "u" && W($) && (rt = this.xData.indexOf($, G)), 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;
  4333. }, Q.prototype.updateData = function(k, G) {
  4334. var z = this.options, $ = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  4335. if (this.xIncrement = null, k.forEach(function(ht, at) {
  4336. var J = h(ht) && this.pointClass.prototype.optionsToObject.call({ series: this }, ht) || {}, tt = J.x;
  4337. J.id || W(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(ht) : q[J] && ht !== z.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 || $ && $.enabled || this.hasDerivedData) && (rt = !0)) : it.push(ht);
  4338. }, this), rt)
  4339. for (k = q.length; k--; )
  4340. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  4341. else
  4342. !nt || $ && $.enabled ? dt = !1 : (k.forEach(function(ht, at) {
  4343. ht !== q[at].y && q[at].update && q[at].update(
  4344. ht,
  4345. !1,
  4346. null,
  4347. !1
  4348. );
  4349. }), it.length = 0);
  4350. return q.forEach(function(ht) {
  4351. ht && (ht.touched = !1);
  4352. }), dt ? (it.forEach(function(ht) {
  4353. this.addPoint(ht, !1, null, null, !1);
  4354. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = x(this.xData), this.autoIncrement()), !0) : !1;
  4355. }, Q.prototype.setData = function(k, G, z, $) {
  4356. 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;
  4357. J = J && J.length;
  4358. var tt = nt.keys, ot, lt = 0, pt = 1, yt = null;
  4359. k = k || [];
  4360. var vt = k.length;
  4361. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), $ !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (ot = this.updateData(k, z)), !ot) {
  4362. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  4363. q[Ct + "Data"].length = 0;
  4364. }), dt && vt > dt)
  4365. if (yt = q.getFirstValidPoint(k), W(yt))
  4366. for (z = 0; z < vt; z++)
  4367. ht[z] = this.autoIncrement(), at[z] = k[z];
  4368. else if (D(yt))
  4369. if (J)
  4370. if (yt.length === J)
  4371. for (z = 0; z < vt; z++)
  4372. ht[z] = this.autoIncrement(), at[z] = k[z];
  4373. else
  4374. for (z = 0; z < vt; z++)
  4375. $ = k[z], ht[z] = $[0], at[z] = $.slice(
  4376. 1,
  4377. J + 1
  4378. );
  4379. 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)
  4380. for (z = 0; z < vt; z++)
  4381. ht[z] = this.autoIncrement(), at[z] = k[z][pt];
  4382. else
  4383. for (z = 0; z < vt; z++)
  4384. $ = k[z], ht[z] = $[lt], at[z] = $[pt];
  4385. else
  4386. t(12, !1, rt);
  4387. else
  4388. for (z = 0; z < vt; z++)
  4389. typeof k[z] < "u" && ($ = { series: q }, q.pointClass.prototype.applyOptions.apply($, [k[z]]), q.updateParallelArrays($, z));
  4390. for (at && P(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  4391. it[z] && it[z].destroy && it[z].destroy();
  4392. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  4393. }
  4394. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  4395. }, Q.prototype.sortData = function(k) {
  4396. var G = this, z = G.options.dataSorting.sortKey || "y", $ = function(q, it) {
  4397. return h(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  4398. };
  4399. return k.forEach(function(q, it) {
  4400. k[it] = $(G, q), k[it].index = it;
  4401. }, this), k.concat().sort(function(q, it) {
  4402. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  4403. }).forEach(function(q, it) {
  4404. q.x = it;
  4405. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  4406. var it = q.options, et = it.data;
  4407. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  4408. et[rt] = $(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  4409. }), q.setData(et, !1));
  4410. }), k;
  4411. }, Q.prototype.getProcessedData = function(k) {
  4412. var G = this.xAxis, z = this.options, $ = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  4413. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  4414. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  4415. if (G) {
  4416. gt = G.getExtremes();
  4417. var ht = gt.min, at = gt.max;
  4418. gt = G.categories && !G.names.length;
  4419. }
  4420. if (it && this.sorted && !q && (!$ || dt > $ || this.forceCrop)) {
  4421. if (nt[dt - 1] < ht || nt[0] > at)
  4422. nt = [], rt = [];
  4423. else if (this.yData && (nt[0] < ht || nt[dt - 1] > at)) {
  4424. var J = this.cropData(this.xData, this.yData, ht, at);
  4425. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  4426. }
  4427. }
  4428. for ($ = nt.length || 1; --$; )
  4429. if (G = z ? k(nt[$]) - k(nt[$ - 1]) : nt[$] - nt[$ - 1], 0 < G && (typeof tt > "u" || G < tt))
  4430. var tt = G;
  4431. else
  4432. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  4433. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  4434. }, Q.prototype.processData = function(k) {
  4435. var G = this.xAxis;
  4436. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  4437. return !1;
  4438. k = this.getProcessedData(), this.cropped = k.cropped, this.cropStart = k.cropStart, this.processedXData = k.xData, this.processedYData = k.yData, this.closestPointRange = this.basePointRange = k.closestPointRange, T(this, "afterProcessData");
  4439. }, Q.prototype.cropData = function(k, G, z, $, q) {
  4440. var it = k.length, et, nt = 0, rt = it;
  4441. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  4442. if (k[et] >= z) {
  4443. nt = Math.max(0, et - q);
  4444. break;
  4445. }
  4446. for (z = et; z < it; z++)
  4447. if (k[z] > $) {
  4448. rt = z + q;
  4449. break;
  4450. }
  4451. return { xData: k.slice(nt, rt), yData: G.slice(
  4452. nt,
  4453. rt
  4454. ), start: nt, end: rt };
  4455. }, Q.prototype.generatePoints = function() {
  4456. var k = this.options, G = k.data, z = this.processedXData, $ = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  4457. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  4458. var gt, dt, ht = this.data;
  4459. if (!ht && !nt) {
  4460. var at = [];
  4461. at.length = G.length, ht = this.data = at;
  4462. }
  4463. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  4464. if (at = et + dt, nt) {
  4465. var J = new q().init(this, [z[dt]].concat(Y($[dt])));
  4466. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, s(J, J.dataGroup.options), delete J.dataLabels);
  4467. } else
  4468. (J = ht[at]) || typeof G[at] > "u" || (ht[at] = J = new q().init(this, G[at], z[dt]));
  4469. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  4470. }
  4471. if (this.options.keys = rt, ht && (it !== (gt = ht.length) || nt))
  4472. for (dt = 0; dt < gt; dt++)
  4473. dt !== et || nt || (dt += it), ht[dt] && (ht[dt].destroyElements(), ht[dt].plotX = void 0);
  4474. this.data = ht, this.points = ct, T(this, "afterGeneratePoints");
  4475. }, Q.prototype.getXExtremes = function(k) {
  4476. return { min: a(k), max: x(k) };
  4477. }, Q.prototype.getExtremes = function(k, G) {
  4478. var z = this.xAxis, $ = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  4479. $ = $ ? $.positiveValuesOnly : !1;
  4480. var nt, rt = 0, ct = 0, gt = 0;
  4481. k = k || this.stackedYData || this.processedYData || [];
  4482. var dt = k.length;
  4483. if (z) {
  4484. var ht = z.getExtremes();
  4485. rt = ht.min, ct = ht.max;
  4486. }
  4487. for (nt = 0; nt < dt; nt++) {
  4488. var at = q[nt];
  4489. ht = k[nt];
  4490. var J = (W(ht) || D(ht)) && (ht.length || 0 < ht || !$);
  4491. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  4492. if (J = ht.length)
  4493. for (; J--; )
  4494. W(ht[J]) && (it[gt++] = ht[J]);
  4495. else
  4496. it[gt++] = ht;
  4497. }
  4498. return k = { activeYData: it, dataMin: a(it), dataMax: x(it) }, T(this, "afterGetExtremes", { dataExtremes: k }), k;
  4499. }, Q.prototype.applyExtremes = function() {
  4500. var k = this.getExtremes();
  4501. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  4502. }, Q.prototype.getFirstValidPoint = function(k) {
  4503. for (var G = k.length, z = 0, $ = null; $ === null && z < G; )
  4504. $ = k[z], z++;
  4505. return $;
  4506. }, Q.prototype.translate = function() {
  4507. this.processedXData || this.processData(), this.generatePoints();
  4508. var k = this.options, G = k.stacking, z = this.xAxis, $ = z.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = k.threshold, dt = k.startFromThreshold ? gt : 0, ht = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  4509. for (at = 0; at < nt; at++) {
  4510. var ot = et[at], lt = ot.x, pt = void 0, yt = void 0, vt = ot.y, Ct = ot.low, Pt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  4511. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || z.positiveValuesOnly && !z.validatePositiveValue(lt)) && (ot.isNull = !0), ot.plotX = J = i(c(z.translate(lt, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), G && this.visible && Pt && Pt[lt]) {
  4512. var At = this.getStackIndicator(
  4513. At,
  4514. lt,
  4515. this.index
  4516. );
  4517. ot.isNull || (pt = Pt[lt], yt = pt.points[At.key]);
  4518. }
  4519. if (D(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 = h(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(
  4520. pt,
  4521. -1e5,
  4522. 1e5
  4523. ))), ot.isInside = this.isPointInside(ot), ot.clientX = ct ? i(z.translate(lt, 0, 0, 0, 1, rt)) : J, ot.negative = ot[ht] < (k[ht + "Threshold"] || gt || 0), ot.category = $ && typeof $[ot.x] < "u" ? $[ot.x] : ot.x, !ot.isNull && ot.visible !== !1) {
  4524. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  4525. var St = J;
  4526. }
  4527. ot.zone = this.zones.length ? ot.getZone() : void 0, !ot.graphic && this.group && q && (ot.isNew = !0);
  4528. }
  4529. this.closestPointRangePx = tt, T(this, "afterTranslate");
  4530. }, Q.prototype.getValidPoints = function(k, G, z) {
  4531. var $ = this.chart;
  4532. return (k || this.points || []).filter(function(q) {
  4533. return G && !$.isInsidePlot(q.plotX, q.plotY, { inverted: $.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  4534. });
  4535. }, Q.prototype.getClipBox = function() {
  4536. var k = this.chart, G = this.xAxis, z = this.yAxis, $ = X(k.clipBox);
  4537. return G && G.len !== k.plotSizeX && ($.width = G.len), z && z.len !== k.plotSizeY && ($.height = z.len), $;
  4538. }, Q.prototype.getSharedClipKey = function() {
  4539. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  4540. }, Q.prototype.setClip = function() {
  4541. var k = this.chart, G = this.group, z = this.markerGroup, $ = k.sharedClips;
  4542. k = k.renderer;
  4543. var q = this.getClipBox(), it = this.getSharedClipKey(), et = $[it];
  4544. et ? et.animate(q) : $[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  4545. }, Q.prototype.animate = function(k) {
  4546. var G = this.chart, z = this.group, $ = this.markerGroup, q = G.inverted, it = v(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = G.sharedClips[et], rt = G.sharedClips[et + "m"];
  4547. if (k && z)
  4548. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = G.plotHeight), nt = G.renderer.clipRect(it), G.sharedClips[et] = nt, rt = G.renderer.clipRect({ x: q ? (G.plotSizeX || 0) + 99 : -99, y: q ? -G.plotLeft : -G.plotTop, width: 99, height: q ? G.chartWidth : G.chartHeight }), G.sharedClips[et + "m"] = rt), z.clip(nt), $ && $.clip(rt);
  4549. else if (nt && !nt.hasClass("highcharts-animating")) {
  4550. G = this.getClipBox();
  4551. var ct = it.step;
  4552. $ && $.element.childNodes.length && (it.step = function(gt, dt) {
  4553. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  4554. }), nt.addClass("highcharts-animating").animate(G, it);
  4555. }
  4556. }, Q.prototype.afterAnimate = function() {
  4557. var k = this;
  4558. this.setClip(), g(
  4559. this.chart.sharedClips,
  4560. function(G, z, $) {
  4561. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete $[z]);
  4562. }
  4563. ), this.finishedAnimating = !0, T(this, "afterAnimate");
  4564. }, Q.prototype.drawPoints = function() {
  4565. var k = this.points, G = this.chart, z = this.options.marker, $ = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(z.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= z.enabledThreshold * z.radius), et, nt;
  4566. if (z.enabled !== !1 || this._hasPointMarkers)
  4567. for (et = 0; et < k.length; et++) {
  4568. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  4569. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  4570. var ht = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  4571. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  4572. var J = rt.isInside !== !1;
  4573. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = G.renderer.symbol(ht, at.x, at.y, at.width, at.height, dt ? gt : z).add($), this.enabledDataSorting && G.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !G.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  4574. } else
  4575. nt && (rt.graphic = nt.destroy());
  4576. }
  4577. }, Q.prototype.markerAttribs = function(k, G) {
  4578. var z = this.options, $ = z.marker, q = k.marker || {}, it = q.symbol || $.symbol, et = m(q.radius, $.radius);
  4579. return G && ($ = $.states[G], G = q.states && q.states[G], et = m(G && G.radius, $ && $.radius, et + ($ && $.radiusPlus || 0))), k.hasImage = it && it.indexOf("url") === 0, k.hasImage && (et = 0), k = { x: z.crisp ? Math.floor(k.plotX - et) : k.plotX - et, y: k.plotY - et }, et && (k.width = k.height = 2 * et), k;
  4580. }, Q.prototype.pointAttribs = function(k, G) {
  4581. var z = this.options.marker, $ = k && k.options, q = $ && $.marker || {}, it = $ && $.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  4582. return k = m(q.lineWidth, z.lineWidth), $ = 1, rt = it || nt || et || rt, it = q.fillColor || z.fillColor || rt, et = q.lineColor || z.lineColor || rt, G = G || "normal", z = z.states[G] || {}, G = q.states && q.states[G] || {}, k = m(G.lineWidth, z.lineWidth, k + m(G.lineWidthPlus, z.lineWidthPlus, 0)), it = G.fillColor || z.fillColor || it, et = G.lineColor || z.lineColor || et, $ = m(G.opacity, z.opacity, $), { stroke: et, "stroke-width": k, fill: it, opacity: $ };
  4583. }, Q.prototype.destroy = function(k) {
  4584. var G = this, z = G.chart, $ = /AppleWebKit\/533/.test(C.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  4585. for (T(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  4586. (rt = G[ct]) && rt.series && (o(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  4587. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  4588. (nt = q[et]) && nt.destroy && nt.destroy();
  4589. G.clips && G.clips.forEach(function(ct) {
  4590. return ct.destroy();
  4591. }), S.clearTimeout(G.animationTimeout), g(G, function(ct, gt) {
  4592. ct instanceof R && !ct.survive && (it = $ && gt === "group" ? "hide" : "destroy", ct[it]());
  4593. }), z.hoverSeries === G && (z.hoverSeries = void 0), o(z.series, G), z.orderSeries(), g(G, function(ct, gt) {
  4594. k && gt === "hcEvents" || delete G[gt];
  4595. });
  4596. }, Q.prototype.applyZones = function() {
  4597. var k = this, G = this.chart, z = G.renderer, $ = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(G.chartWidth, G.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = G.inverted, gt, dt, ht, at, J, tt, ot, lt, pt = !1;
  4598. if ($.length && (it || et) && rt && typeof rt.min < "u") {
  4599. var yt = rt.reversed, vt = rt.horiz;
  4600. it && !this.showLine && it.hide(), et && et.hide();
  4601. var Ct = rt.getExtremes();
  4602. $.forEach(function(Pt, At) {
  4603. gt = yt ? vt ? G.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 = G.plotHeight - ht.x)) : (ht = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (ht.y = G.plotWidth - ht.y)), ct && z.isVML && (ht = rt.isXAxis ? {
  4604. x: 0,
  4605. y: yt ? J : tt,
  4606. height: ht.width,
  4607. width: G.chartWidth
  4608. } : { x: ht.y - G.plotLeft - G.spacingBox.x, y: 0, width: ht.height, height: G.chartHeight }), q[At] ? q[At].animate(ht) : q[At] = z.clipRect(ht), ot = k["zone-area-" + At], lt = k["zone-graph-" + At], it && lt && lt.clip(q[At]), et && ot && ot.clip(q[At]), pt = Pt.value > Ct.max, k.resetZones && dt === 0 && (dt = void 0);
  4609. }), this.clips = q;
  4610. } else
  4611. k.visible && (it && it.show(!0), et && et.show(!0));
  4612. }, Q.prototype.invertGroups = function(k) {
  4613. function G() {
  4614. ["group", "markerGroup"].forEach(function(q) {
  4615. z[q] && ($.renderer.isVML && z[q].attr({ width: z.yAxis.len, height: z.xAxis.len }), z[q].width = z.yAxis.len, z[q].height = z.xAxis.len, z[q].invert(z.isRadialSeries ? !1 : k));
  4616. });
  4617. }
  4618. var z = this, $ = z.chart;
  4619. z.xAxis && (z.eventsToUnbind.push(w($, "resize", G)), G(), z.invertGroups = G);
  4620. }, Q.prototype.plotGroup = function(k, G, z, $, q) {
  4621. var it = this[k], et = !it;
  4622. return z = { visibility: z, zIndex: $ || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (z.opacity = this.opacity), et && (this[k] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + G + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (h(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(z)[et ? "attr" : "animate"](this.getPlotBox()), it;
  4623. }, Q.prototype.getPlotBox = function() {
  4624. var k = this.chart, G = this.xAxis, z = this.yAxis;
  4625. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  4626. }, Q.prototype.removeEvents = function(k) {
  4627. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  4628. G();
  4629. }), this.eventsToUnbind.length = 0);
  4630. }, Q.prototype.render = function() {
  4631. var k = this, G = k.chart, z = k.options, $ = v(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  4632. G = !k.finishedAnimating && G.renderer.isSVG ? $.duration : 0, T(this, "render");
  4633. var ct = k.plotGroup("group", "series", q, it, nt);
  4634. k.markerGroup = k.plotGroup("markerGroup", "markers", q, it, nt), z.clip !== !1 && k.setClip(), k.animate && G && k.animate(!0), ct.inverted = m(k.invertible, k.isCartesian) ? rt : !1, k.drawGraph && (k.drawGraph(), k.applyZones()), k.visible && k.drawPoints(), k.drawDataLabels && k.drawDataLabels(), k.redrawPoints && k.redrawPoints(), k.drawTracker && k.options.enableMouseTracking !== !1 && k.drawTracker(), k.invertGroups(rt), k.animate && G && k.animate(), et || (G && $.defer && (G += $.defer), k.animationTimeout = V(function() {
  4635. k.afterAnimate();
  4636. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, T(k, "afterRender");
  4637. }, Q.prototype.redraw = function() {
  4638. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, $ = this.xAxis, q = this.yAxis;
  4639. z && (k.inverted && z.attr({
  4640. width: k.plotWidth,
  4641. height: k.plotHeight
  4642. }), z.animate({ translateX: m($ && $.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  4643. }, Q.prototype.searchPoint = function(k, G) {
  4644. var z = this.xAxis, $ = this.yAxis, q = this.chart.inverted;
  4645. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? $.len - k.chartX + $.pos : k.chartY - $.pos }, G, k);
  4646. }, Q.prototype.buildKDTree = function(k) {
  4647. function G(q, it, et) {
  4648. var nt = q && q.length;
  4649. if (nt) {
  4650. var rt = z.kdAxisArray[it % et];
  4651. return q.sort(function(ct, gt) {
  4652. return ct[rt] - gt[rt];
  4653. }), nt = Math.floor(nt / 2), { point: q[nt], left: G(q.slice(0, nt), it + 1, et), right: G(q.slice(nt + 1), it + 1, et) };
  4654. }
  4655. }
  4656. this.buildingKdTree = !0;
  4657. var z = this, $ = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  4658. delete z.kdTree, V(function() {
  4659. z.kdTree = G(z.getValidPoints(null, !z.directTouch), $, $), z.buildingKdTree = !1;
  4660. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  4661. }, Q.prototype.searchKDTree = function(k, G, z) {
  4662. function $(rt, ct, gt, dt) {
  4663. var ht = ct.point, at = q.kdAxisArray[gt % dt], J = ht, tt = h(rt[it]) && h(ht[it]) ? Math.pow(rt[it] - ht[it], 2) : null, ot = h(rt[et]) && h(ht[et]) ? Math.pow(rt[et] - ht[et], 2) : null;
  4664. return ot = (tt || 0) + (ot || 0), ht.dist = h(ot) ? Math.sqrt(ot) : Number.MAX_VALUE, ht.distX = h(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 = $(rt, ct[ot], gt + 1, dt), J = ot[nt] < J[nt] ? ot : ht), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = $(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  4665. }
  4666. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  4667. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  4668. return $(
  4669. k,
  4670. this.kdTree,
  4671. G,
  4672. G
  4673. );
  4674. }, Q.prototype.pointPlacementToXValue = function() {
  4675. var k = this.options, G = k.pointRange, z = this.xAxis;
  4676. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), W(k) ? k * (G || z.pointRange) : 0;
  4677. }, Q.prototype.isPointInside = function(k) {
  4678. var G = this.chart, z = this.xAxis, $ = this.yAxis;
  4679. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= ($ ? $.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  4680. }, Q.prototype.drawTracker = function() {
  4681. var k = this, G = k.options, z = G.trackByArea, $ = [].concat(z ? k.areaPath : k.graphPath), q = k.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = k.tracker, ct = function(dt) {
  4682. q.hoverSeries !== k && k.onMouseOver();
  4683. }, gt = "rgba(192,192,192," + (B ? 1e-4 : 2e-3) + ")";
  4684. rt ? rt.attr({ d: $ }) : k.graph && (k.tracker = et.path($).attr({ visibility: k.visible ? "visible" : "hidden", zIndex: 2 }).addClass(z ? "highcharts-tracker-area" : "highcharts-tracker-line").add(k.group), q.styledMode || k.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: z ? gt : "none", "stroke-width": k.graph.strokeWidth() + (z ? 0 : 2 * nt) }), [k.tracker, k.markerGroup, k.dataLabelsGroup].forEach(function(dt) {
  4685. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(ht) {
  4686. it.onTrackerMouseOut(ht);
  4687. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  4688. })), T(this, "afterDrawTracker");
  4689. }, Q.prototype.addPoint = function(k, G, z, $, q) {
  4690. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  4691. rt = rt && rt.hasNames && rt.names;
  4692. var ct = it.data, gt = this.xData, dt;
  4693. G = m(G, !0);
  4694. var ht = { series: this };
  4695. this.pointClass.prototype.applyOptions.apply(
  4696. ht,
  4697. [k]
  4698. );
  4699. var at = ht.x, J = gt.length;
  4700. if (this.requireSorting && at < gt[J - 1])
  4701. for (dt = !0; J && gt[J - 1] > at; )
  4702. J--;
  4703. this.updateParallelArrays(ht, "splice", J, 0, 0), this.updateParallelArrays(ht, J), rt && ht.name && (rt[at] = ht.name), ct.splice(J, 0, k), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), z && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(ht, "shift"), ct.shift())), q !== !1 && T(this, "addPoint", { point: ht }), this.isDirtyData = this.isDirty = !0, G && nt.redraw($);
  4704. }, Q.prototype.removePoint = function(k, G, z) {
  4705. var $ = this, q = $.data, it = q[k], et = $.points, nt = $.chart, rt = function() {
  4706. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), $.options.data.splice(k, 1), $.updateParallelArrays(it || { series: $ }, "splice", k, 1), it && it.destroy(), $.isDirty = !0, $.isDirtyData = !0, G && nt.redraw();
  4707. };
  4708. d(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  4709. }, Q.prototype.remove = function(k, G, z, $) {
  4710. function q() {
  4711. it.destroy($), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  4712. }
  4713. var it = this, et = it.chart;
  4714. z !== !1 ? T(
  4715. it,
  4716. "remove",
  4717. null,
  4718. q
  4719. ) : q();
  4720. }, Q.prototype.update = function(k, G) {
  4721. k = p(k, this.userOptions), T(this, "update", { options: k });
  4722. var z = this, $ = z.chart, q = z.userOptions, it = z.initialType || z.type, et = $.options.plotOptions, nt = b[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], ht = k.type || q.type || $.options.chart.type, at = !(this.hasDerivedData || ht && ht !== this.type || typeof k.pointStart < "u" || typeof k.pointInterval < "u" || typeof k.relativeXValue < "u" || z.hasOptionChanged("dataGrouping") || z.hasOptionChanged("pointStart") || z.hasOptionChanged("pointInterval") || z.hasOptionChanged("pointIntervalUnit") || z.hasOptionChanged("keys"));
  4723. 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"), k.visible !== !1 && dt.push("area", "graph"), z.parallelArrays.forEach(function(tt) {
  4724. dt.push(tt + "Data");
  4725. }), k.data && (k.dataSorting && s(z.options.dataSorting, k.dataSorting), this.setData(k.data, !1))), k = X(q, rt, { index: typeof q.index > "u" ? z.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, z.xData[0]) }, !at && { data: z.options.data }, k), at && k.data && (k.data = z.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  4726. dt[tt] = z[tt], delete z[tt];
  4727. }), et = !1, b[ht]) {
  4728. if (et = ht !== z.type, z.remove(!1, !1, !1, !0), et)
  4729. if (Object.setPrototypeOf)
  4730. Object.setPrototypeOf(z, b[ht].prototype);
  4731. else {
  4732. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  4733. for (gt in nt)
  4734. z[gt] = void 0;
  4735. s(z, b[ht].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  4736. }
  4737. } else
  4738. t(17, !0, $, { missingModuleFor: ht });
  4739. if (dt.forEach(function(tt) {
  4740. z[tt] = dt[tt];
  4741. }), z.init($, k), at && this.points) {
  4742. var J = z.options;
  4743. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : z._hasPointLabels || (k = J.marker, nt = J.dataLabels, !k || k.enabled !== !1 && (q.marker && q.marker.symbol) === k.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  4744. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && $.legend.destroyItem(tt));
  4745. }, this);
  4746. }
  4747. z.initialType = it, $.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), T(this, "afterUpdate"), m(G, !0) && $.redraw(at ? void 0 : !1);
  4748. }, Q.prototype.setName = function(k) {
  4749. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  4750. }, Q.prototype.hasOptionChanged = function(k) {
  4751. var G = this.options[k], z = this.chart.options.plotOptions, $ = this.userOptions[k];
  4752. return $ ? G !== $ : G !== m(
  4753. z && z[this.type] && z[this.type][k],
  4754. z && z.series && z.series[k],
  4755. G
  4756. );
  4757. }, Q.prototype.onMouseOver = function() {
  4758. var k = this.chart, G = k.hoverSeries;
  4759. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && T(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  4760. }, Q.prototype.onMouseOut = function() {
  4761. var k = this.options, G = this.chart, z = G.tooltip, $ = G.hoverPoint;
  4762. G.hoverSeries = null, $ && $.onMouseOut(), this && k.events.mouseOut && T(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  4763. q.setState(
  4764. "",
  4765. !0
  4766. );
  4767. });
  4768. }, Q.prototype.setState = function(k, G) {
  4769. var z = this, $ = z.options, q = z.graph, it = $.inactiveOtherPoints, et = $.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = $.lineWidth, ct = 0, gt = $.opacity;
  4770. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  4771. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  4772. }), z.state = k, !z.chart.styledMode)) {
  4773. if (et[k] && et[k].enabled === !1)
  4774. return;
  4775. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  4776. for ($ = { "stroke-width": rt }, q.animate($, nt); z["zone-graph-" + ct]; )
  4777. z["zone-graph-" + ct].animate($, nt), ct += 1;
  4778. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  4779. dt && dt.animate({ opacity: gt }, nt);
  4780. });
  4781. }
  4782. G && it && z.points && z.setAllPointsToState(k || void 0);
  4783. }, Q.prototype.setAllPointsToState = function(k) {
  4784. this.points.forEach(function(G) {
  4785. G.setState && G.setState(k);
  4786. });
  4787. }, Q.prototype.setVisible = function(k, G) {
  4788. var z = this, $ = z.chart, q = z.legendItem, it = $.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  4789. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  4790. z[rt] && z[rt][nt]();
  4791. }), ($.hoverSeries === z || ($.hoverPoint && $.hoverPoint.series) === z) && z.onMouseOut(), q && $.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && $.series.forEach(function(rt) {
  4792. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  4793. }), z.linkedSeries.forEach(function(rt) {
  4794. rt.setVisible(k, !1);
  4795. }), it && ($.isDirtyBox = !0), T(z, nt), G !== !1 && $.redraw();
  4796. }, Q.prototype.show = function() {
  4797. this.setVisible(!0);
  4798. }, Q.prototype.hide = function() {
  4799. this.setVisible(!1);
  4800. }, Q.prototype.select = function(k) {
  4801. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), T(this, k ? "select" : "unselect");
  4802. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  4803. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  4804. }, Q.defaultOptions = F, Q;
  4805. }(), s(y.prototype, { axisTypes: [
  4806. "xAxis",
  4807. "yAxis"
  4808. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: H.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: U, requireSorting: !0, sorted: !0 }), N.series = y, y;
  4809. }), E(l, "Extensions/ScrollablePlotArea.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/Series/Series.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  4810. var F = y.stop, N = U.addEvent, R = U.createElement, S = U.merge, v = U.pick;
  4811. N(I, "afterSetChartSize", function(d) {
  4812. var u = this.options.chart.scrollablePlotArea, A = u && u.minWidth;
  4813. if (u = u && u.minHeight, !this.renderer.forExport) {
  4814. if (A) {
  4815. if (this.scrollablePixelsX = A = Math.max(0, A - this.chartWidth)) {
  4816. this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.width = this.plotWidth += A, this.inverted ? this.clipBox.height += A : this.clipBox.width += A;
  4817. var O = { 1: { name: "right", value: A } };
  4818. }
  4819. } else
  4820. u && (this.scrollablePixelsY = A = Math.max(
  4821. 0,
  4822. u - this.chartHeight
  4823. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.height = this.plotHeight += A, this.inverted ? this.clipBox.width += A : this.clipBox.height += A, O = { 2: { name: "bottom", value: A } });
  4824. O && !d.skipAxes && this.axes.forEach(function(B) {
  4825. O[B.side] ? B.getPlotLinePath = function() {
  4826. var C = O[B.side].name, b = this[C];
  4827. this[C] = b - O[B.side].value;
  4828. var w = j.prototype.getPlotLinePath.apply(this, arguments);
  4829. return this[C] = b, w;
  4830. } : (B.setAxisSize(), B.setAxisTranslation());
  4831. });
  4832. }
  4833. }), N(I, "render", function() {
  4834. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  4835. }), I.prototype.setUpScrolling = function() {
  4836. var d = this, u = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  4837. this.scrollablePixelsX && (u.overflowX = "auto"), this.scrollablePixelsY && (u.overflowY = "auto"), this.scrollingParent = R("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = R(
  4838. "div",
  4839. { className: "highcharts-scrolling" },
  4840. u,
  4841. this.scrollingParent
  4842. ), N(this.scrollingContainer, "scroll", function() {
  4843. d.pointer && delete d.pointer.chartPosition;
  4844. }), this.innerContainer = R("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  4845. }, I.prototype.moveFixedElements = function() {
  4846. var d = this.container, u = this.fixedRenderer, A = ".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;
  4847. 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 && A.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), A.forEach(function(B) {
  4848. [].forEach.call(d.querySelectorAll(B), function(C) {
  4849. (C.namespaceURI === u.SVG_NS ? u.box : u.box.parentNode).appendChild(C), C.style.pointerEvents = "auto";
  4850. });
  4851. });
  4852. }, I.prototype.applyFixed = function() {
  4853. var d = !this.fixedDiv, u = this.options.chart, A = u.scrollablePlotArea, O = H.getRendererType();
  4854. d ? (this.fixedDiv = R("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (u.style && u.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 = u = new O(
  4855. this.fixedDiv,
  4856. this.chartWidth,
  4857. this.chartHeight,
  4858. this.options.chart.style
  4859. ), this.scrollableMask = u.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": v(A.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), N(this, "afterShowResetZoom", this.moveFixedElements), N(this, "afterDrilldown", this.moveFixedElements), N(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || d) && (this.scrollableDirty = !1, this.moveFixedElements()), u = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = u + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: u, height: O, viewBox: [0, 0, u, O].join(" ") }), this.chartBackground.attr({ width: u, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", d && (A.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * A.scrollPositionX), A.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * A.scrollPositionY)), O = this.axisOffset, d = this.plotTop - O[0] - 1, A = this.plotLeft - O[3] - 1, u = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  4860. var B = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), C = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  4861. d = this.scrollablePixelsX ? [["M", 0, d], ["L", this.plotLeft - 1, d], ["L", this.plotLeft - 1, u], ["L", 0, u], ["Z"], ["M", B, d], ["L", this.chartWidth, d], ["L", this.chartWidth, u], ["L", B, u], ["Z"]] : this.scrollablePixelsY ? [["M", A, 0], ["L", A, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", A, C], ["L", A, this.chartHeight], ["L", O, this.chartHeight], ["L", O, C], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d });
  4862. }, N(j, "afterInit", function() {
  4863. this.chart.scrollableDirty = !0;
  4864. }), N(Z, "show", function() {
  4865. this.chart.scrollableDirty = !0;
  4866. });
  4867. }), E(l, "Core/Axis/StackingAxis.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Utilities.js"]], function(y, j, I) {
  4868. var Z = y.getDeferredAnimation, H = I.addEvent, U = I.destroyObjectProperties, F = I.fireEvent, N = I.isNumber, R = I.objectEach, S;
  4869. return function(v) {
  4870. function d() {
  4871. var B = this.stacking;
  4872. if (B) {
  4873. var C = B.stacks;
  4874. R(C, function(b, w) {
  4875. U(b), C[w] = null;
  4876. }), B && B.stackTotalGroup && B.stackTotalGroup.destroy();
  4877. }
  4878. }
  4879. function u() {
  4880. this.stacking || (this.stacking = new O(this));
  4881. }
  4882. var A = [];
  4883. v.compose = function(B) {
  4884. return A.indexOf(B) === -1 && (A.push(B), H(B, "init", u), H(B, "destroy", d)), B;
  4885. };
  4886. var O = function() {
  4887. function B(C) {
  4888. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = C;
  4889. }
  4890. return B.prototype.buildStacks = function() {
  4891. var C = this.axis, b = C.series, w = C.options.reversedStacks, x = b.length, a;
  4892. if (!C.isXAxis) {
  4893. for (this.usePercentage = !1, a = x; a--; ) {
  4894. var c = b[w ? a : x - a - 1];
  4895. c.setStackedPoints(), c.setGroupedPoints();
  4896. }
  4897. for (a = 0; a < x; a++)
  4898. b[a].modifyStacks();
  4899. F(C, "afterBuildStacks");
  4900. }
  4901. }, B.prototype.cleanStacks = function() {
  4902. if (!this.axis.isXAxis) {
  4903. if (this.oldStacks)
  4904. var C = this.stacks = this.oldStacks;
  4905. R(C, function(b) {
  4906. R(b, function(w) {
  4907. w.cumulative = w.total;
  4908. });
  4909. });
  4910. }
  4911. }, B.prototype.resetStacks = function() {
  4912. var C = this, b = C.stacks;
  4913. C.axis.isXAxis || R(b, function(w) {
  4914. R(
  4915. w,
  4916. function(x, a) {
  4917. N(x.touched) && x.touched < C.stacksTouched ? (x.destroy(), delete w[a]) : (x.total = null, x.cumulative = null);
  4918. }
  4919. );
  4920. });
  4921. }, B.prototype.renderStackTotals = function() {
  4922. var C = this.axis, b = C.chart, w = b.renderer, x = this.stacks;
  4923. C = Z(b, C.options.stackLabels && C.options.stackLabels.animation || !1);
  4924. var a = this.stackTotalGroup = this.stackTotalGroup || w.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  4925. a.translate(b.plotLeft, b.plotTop), R(x, function(c) {
  4926. R(c, function(p) {
  4927. p.render(a);
  4928. });
  4929. }), a.animate(
  4930. { opacity: 1 },
  4931. C
  4932. );
  4933. }, B;
  4934. }();
  4935. v.Additions = O;
  4936. }(S || (S = {})), S;
  4937. }), E(l, "Extensions/Stacking.js", [l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Axis/StackingAxis.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F) {
  4938. var N = I.format, R = F.correctFloat, S = F.defined, v = F.destroyObjectProperties, d = F.isArray, u = F.isNumber, A = F.objectEach, O = F.pick, B = function() {
  4939. function C(b, w, x, a, c) {
  4940. var p = b.chart.inverted;
  4941. this.axis = b, this.isNegative = x, this.options = w = w || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: w.align || (p ? x ? "left" : "right" : "center"), verticalAlign: w.verticalAlign || (p ? "middle" : x ? "bottom" : "top"), y: w.y, x: w.x }, this.textAlign = w.textAlign || (p ? x ? "right" : "left" : "center");
  4942. }
  4943. return C.prototype.destroy = function() {
  4944. v(this, this.axis);
  4945. }, C.prototype.render = function(b) {
  4946. var w = this.axis.chart, x = this.options, a = x.format;
  4947. a = a ? N(a, this, w) : x.formatter.call(this), this.label ? this.label.attr({
  4948. text: a,
  4949. visibility: "hidden"
  4950. }) : (this.label = w.renderer.label(a, null, null, x.shape, null, null, x.useHTML, !1, "stack-labels"), a = { r: x.borderRadius || 0, text: a, rotation: x.rotation, padding: O(x.padding, 5), visibility: "hidden" }, w.styledMode || (a.fill = x.backgroundColor, a.stroke = x.borderColor, a["stroke-width"] = x.borderWidth, this.label.css(x.style)), this.label.attr(a), this.label.added || this.label.add(b)), this.label.labelrank = w.plotSizeY;
  4951. }, C.prototype.setOffset = function(b, w, x, a, c) {
  4952. var p = this.axis, i = p.chart;
  4953. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), x = p.translate(x || 0), x = S(a) && Math.abs(a - x), b = O(c, i.xAxis[0].translate(this.x)) + b, p = S(a) && this.getStackBox(i, this, b, a, w, x, p), w = this.label, x = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  4954. var h = this.textAlign;
  4955. w && p && (c = w.getBBox(), a = w.padding, h = h === "left" ? i.inverted ? -a : a : h === "right" ? c.width : i.inverted && h === "center" ? c.width / 2 : i.inverted ? x ? c.width + a : -a : c.width / 2, x = i.inverted ? c.height / 2 : x ? -a : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), p.x -= h, p.y -= x, w.align(this.alignOptions, null, p), i.isInsidePlot(w.alignAttr.x + h - this.alignOptions.x, w.alignAttr.y + x - this.alignOptions.y) ? w.show() : (w.alignAttr.y = -9999, b = !1), b && H.prototype.justifyDataLabel.call(this.axis, w, this.alignOptions, w.alignAttr, c, p), w.attr({ x: w.alignAttr.x, y: w.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = u(w.x) && u(w.y) && i.isInsidePlot(w.x - a + w.width, w.y) && i.isInsidePlot(w.x + a, w.y)) || w.hide()));
  4956. }, C.prototype.getStackBox = function(b, w, x, a, c, p, i) {
  4957. var h = w.axis.reversed, o = b.inverted, t = i.height + i.pos - (o ? b.plotLeft : b.plotTop);
  4958. return w = w.isNegative && !h || !w.isNegative && h, { x: o ? w ? a - i.right : a - p + i.pos - b.plotLeft : x + b.xAxis[0].transB - b.plotLeft, y: o ? i.height - x - c : w ? t - a - p : t - a, width: o ? p : c, height: o ? c : p };
  4959. }, C;
  4960. }();
  4961. return j.prototype.getStacks = function() {
  4962. var C = this, b = C.inverted;
  4963. C.yAxis.forEach(function(w) {
  4964. w.stacking && w.stacking.stacks && w.hasVisibleSeries && (w.stacking.oldStacks = w.stacking.stacks);
  4965. }), C.series.forEach(function(w) {
  4966. var x = w.xAxis && w.xAxis.options || {};
  4967. !w.options.stacking || w.visible !== !0 && C.options.chart.ignoreHiddenSeries !== !1 || (w.stackKey = [w.type, O(w.options.stack, ""), b ? x.top : x.left, b ? x.height : x.width].join());
  4968. });
  4969. }, U.compose(y), H.prototype.setGroupedPoints = function() {
  4970. var C = this.yAxis.stacking;
  4971. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? H.prototype.setStackedPoints.call(this, "group") : C && A(C.stacks, function(b, w) {
  4972. w.slice(-5) === "group" && (A(b, function(x) {
  4973. return x.destroy();
  4974. }), delete C.stacks[w]);
  4975. });
  4976. }, H.prototype.setStackedPoints = function(C) {
  4977. var b = C || this.options.stacking;
  4978. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  4979. var w = this.processedXData, x = this.processedYData, a = [], c = x.length, p = this.options, i = p.threshold, h = O(p.startFromThreshold && i, 0);
  4980. p = p.stack, C = C ? this.type + "," + b : this.stackKey;
  4981. var o = "-" + C, t = this.negStacks, s = this.yAxis, n = s.stacking.stacks, T = s.stacking.oldStacks, _, D;
  4982. for (s.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  4983. var W = w[D], P = x[D], X = this.getStackIndicator(
  4984. X,
  4985. W,
  4986. this.index
  4987. ), g = X.key, m = (_ = t && P < (h ? 0 : i)) ? o : C;
  4988. n[m] || (n[m] = {}), n[m][W] || (T[m] && T[m][W] ? (n[m][W] = T[m][W], n[m][W].total = null) : n[m][W] = new B(s, s.options.stackLabels, _, W, p)), m = n[m][W], P !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, h)], S(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" ? (_ = _ ? C : o, t && n[_] && n[_][W] ? (_ = n[_][W], m.total = _.total = Math.max(_.total, m.total) + Math.abs(P) || 0) : m.total = R(m.total + (Math.abs(P) || 0))) : b === "group" ? (d(P) && (P = P[0]), P !== null && (m.total = (m.total || 0) + 1)) : m.total = R(m.total + (P || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, h) + (P || 0), P !== null && (m.points[g].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  4989. }
  4990. b === "percent" && (s.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = a), s.stacking.oldStacks = {};
  4991. }
  4992. }, H.prototype.modifyStacks = function() {
  4993. var C = this, b = C.stackKey, w = C.yAxis.stacking.stacks, x = C.processedXData, a, c = C.options.stacking;
  4994. C[c + "Stacker"] && [b, "-" + b].forEach(function(p) {
  4995. for (var i = x.length, h, o; i--; )
  4996. h = x[i], a = C.getStackIndicator(a, h, C.index, p), (o = (h = w[p] && w[p][h]) && h.points[a.key]) && C[c + "Stacker"](o, h, i);
  4997. });
  4998. }, H.prototype.percentStacker = function(C, b, w) {
  4999. b = b.total ? 100 / b.total : 0, C[0] = R(C[0] * b), C[1] = R(C[1] * b), this.stackedYData[w] = C[1];
  5000. }, H.prototype.getStackIndicator = function(C, b, w, x) {
  5001. return !S(C) || C.x !== b || x && C.key !== x ? C = { x: b, index: 0, key: x } : C.index++, C.key = [w, b, C.index].join(), C;
  5002. }, Z.StackItem = B, Z.StackItem;
  5003. }), E(l, "Series/Line/LineSeries.js", [l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5004. var Z = this && this.__extends || function() {
  5005. var F = function(N, R) {
  5006. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  5007. S.__proto__ = v;
  5008. } || function(S, v) {
  5009. for (var d in v)
  5010. v.hasOwnProperty(d) && (S[d] = v[d]);
  5011. }, F(N, R);
  5012. };
  5013. return function(N, R) {
  5014. function S() {
  5015. this.constructor = N;
  5016. }
  5017. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  5018. };
  5019. }(), H = I.defined, U = I.merge;
  5020. return I = function(F) {
  5021. function N() {
  5022. var R = F !== null && F.apply(this, arguments) || this;
  5023. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  5024. }
  5025. return Z(N, F), N.prototype.drawGraph = function() {
  5026. var R = this, S = this.options, v = (this.gappedPath || this.getGraphPath).call(this), d = this.chart.styledMode, u = [["graph", "highcharts-graph"]];
  5027. d || u[0].push(S.lineColor || this.color || "#cccccc", S.dashStyle), u = R.getZonesGraphs(u), u.forEach(function(A, O) {
  5028. var B = A[0], C = R[B], b = C ? "animate" : "attr";
  5029. C ? (C.endX = R.preventGraphAnimation ? null : v.xMap, C.animate({ d: v })) : v.length && (R[B] = C = R.chart.renderer.path(v).addClass(A[1]).attr({ zIndex: 1 }).add(R.group)), C && !d && (B = { stroke: A[2], "stroke-width": S.lineWidth, fill: R.fillGraph && R.color || "none" }, A[3] ? B.dashstyle = A[3] : S.linecap !== "square" && (B["stroke-linecap"] = B["stroke-linejoin"] = "round"), C[b](B).shadow(2 > O && S.shadow)), C && (C.startX = v.xMap, C.isArea = v.isArea);
  5030. });
  5031. }, N.prototype.getGraphPath = function(R, S, v) {
  5032. var d = this, u = d.options, A = [], O = [], B, C = u.step;
  5033. R = R || d.points;
  5034. var b = R.reversed;
  5035. return b && R.reverse(), (C = { right: 1, center: 2 }[C] || C && 3) && b && (C = 4 - C), R = this.getValidPoints(R, !1, !(u.connectNulls && !S && !v)), R.forEach(function(w, x) {
  5036. var a = w.plotX, c = w.plotY, p = R[x - 1];
  5037. (w.leftCliff || p && p.rightCliff) && !v && (B = !0), w.isNull && !H(S) && 0 < x ? B = !u.connectNulls : w.isNull && !S ? B = !0 : (x === 0 || B ? x = [["M", w.plotX, w.plotY]] : d.getPointSpline ? x = [d.getPointSpline(R, w, x)] : C ? (x = C === 1 ? [["L", p.plotX, c]] : C === 2 ? [["L", (p.plotX + a) / 2, p.plotY], ["L", (p.plotX + a) / 2, c]] : [["L", a, p.plotY]], x.push(["L", a, c])) : x = [["L", a, c]], O.push(w.x), C && (O.push(w.x), C === 2 && O.push(w.x)), A.push.apply(A, x), B = !1);
  5038. }), A.xMap = O, d.graphPath = A;
  5039. }, N.prototype.getZonesGraphs = function(R) {
  5040. return this.zones.forEach(function(S, v) {
  5041. v = ["zone-graph-" + v, "highcharts-graph highcharts-zone-graph-" + v + " " + (S.className || "")], this.chart.styledMode || v.push(S.color || this.color, S.dashStyle || this.options.dashStyle), R.push(v);
  5042. }, this), R;
  5043. }, N.defaultOptions = U(y.defaultOptions, {}), N;
  5044. }(y), j.registerSeriesType("line", I), I;
  5045. }), E(l, "Series/Area/AreaSeries.js", [
  5046. l["Core/Color/Color.js"],
  5047. l["Core/Legend/LegendSymbol.js"],
  5048. l["Core/Series/SeriesRegistry.js"],
  5049. l["Core/Utilities.js"]
  5050. ], function(y, j, I, Z) {
  5051. var H = this && this.__extends || function() {
  5052. var v = function(d, u) {
  5053. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(A, O) {
  5054. A.__proto__ = O;
  5055. } || function(A, O) {
  5056. for (var B in O)
  5057. O.hasOwnProperty(B) && (A[B] = O[B]);
  5058. }, v(d, u);
  5059. };
  5060. return function(d, u) {
  5061. function A() {
  5062. this.constructor = d;
  5063. }
  5064. v(d, u), d.prototype = u === null ? Object.create(u) : (A.prototype = u.prototype, new A());
  5065. };
  5066. }(), U = y.parse, F = I.seriesTypes.line;
  5067. y = Z.extend;
  5068. var N = Z.merge, R = Z.objectEach, S = Z.pick;
  5069. return Z = function(v) {
  5070. function d() {
  5071. var u = v !== null && v.apply(this, arguments) || this;
  5072. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  5073. }
  5074. return H(d, v), d.prototype.drawGraph = function() {
  5075. this.areaPath = [], v.prototype.drawGraph.apply(this);
  5076. var u = this, A = this.areaPath, O = this.options, B = [["area", "highcharts-area", this.color, O.fillColor]];
  5077. this.zones.forEach(function(C, b) {
  5078. B.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + C.className, C.color || u.color, C.fillColor || O.fillColor]);
  5079. }), B.forEach(function(C) {
  5080. var b = C[0], w = u[b], x = w ? "animate" : "attr", a = {};
  5081. w ? (w.endX = u.preventGraphAnimation ? null : A.xMap, w.animate({ d: A })) : (a.zIndex = 0, w = u[b] = u.chart.renderer.path(A).addClass(C[1]).add(u.group), w.isArea = !0), u.chart.styledMode || (a.fill = S(C[3], U(C[2]).setOpacity(S(O.fillOpacity, 0.75)).get())), w[x](a), w.startX = A.xMap, w.shiftUnit = O.step ? 2 : 1;
  5082. });
  5083. }, d.prototype.getGraphPath = function(u) {
  5084. var A = F.prototype.getGraphPath, O = this.options, B = O.stacking, C = this.yAxis, b, w = [], x = [], a = this.index, c = C.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(C.getThreshold(O.threshold));
  5085. O = S(O.connectNulls, B === "percent");
  5086. var h = function(n, T, _) {
  5087. var D = u[n];
  5088. n = B && c[D.x].points[a];
  5089. var W = D[_ + "Null"] || 0;
  5090. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || W) {
  5091. var P = (W ? n[0] : n[1]) + _, X = n[0] + _;
  5092. D = !!W;
  5093. } else
  5094. !B && u[T] && u[T].isNull && (P = X = p);
  5095. typeof P < "u" && (x.push({ plotX: t, plotY: P === null ? i : C.getThreshold(P), isNull: D, isCliff: !0 }), w.push({ plotX: t, plotY: X === null ? i : C.getThreshold(X), doCurve: !1 }));
  5096. };
  5097. for (u = u || this.points, B && (u = this.getStackPoints(u)), b = 0; b < u.length; b++) {
  5098. B || (u[b].leftCliff = u[b].rightCliff = u[b].leftNull = u[b].rightNull = void 0);
  5099. var o = u[b].isNull, t = S(u[b].rectPlotX, u[b].plotX), s = B ? S(u[b].yBottom, i) : i;
  5100. (!o || O) && (O || h(b, b - 1, "left"), o && !B && O || (x.push(u[b]), w.push({ x: b, plotX: t, plotY: s })), O || h(b, b + 1, "right"));
  5101. }
  5102. return b = A.call(this, x, !0, !0), w.reversed = !0, o = A.call(this, w, !0, !0), (s = o[0]) && s[0] === "M" && (o[0] = ["L", s[1], s[2]]), o = b.concat(o), o.length && o.push(["Z"]), A = A.call(this, x, !1, O), o.xMap = b.xMap, this.areaPath = o, A;
  5103. }, d.prototype.getStackPoints = function(u) {
  5104. var A = this, O = [], B = [], C = this.xAxis, b = this.yAxis, w = b.stacking.stacks[this.stackKey], x = {}, a = b.series, c = a.length, p = b.options.reversedStacks ? 1 : -1, i = a.indexOf(A);
  5105. if (u = u || this.points, this.options.stacking) {
  5106. for (var h = 0; h < u.length; h++)
  5107. u[h].leftNull = u[h].rightNull = void 0, x[u[h].x] = u[h];
  5108. R(w, function(t, s) {
  5109. t.total !== null && B.push(s);
  5110. }), B.sort(function(t, s) {
  5111. return t - s;
  5112. });
  5113. var o = a.map(function(t) {
  5114. return t.visible;
  5115. });
  5116. B.forEach(function(t, s) {
  5117. var n = 0, T, _;
  5118. if (x[t] && !x[t].isNull)
  5119. O.push(x[t]), [-1, 1].forEach(function(W) {
  5120. var P = W === 1 ? "rightNull" : "leftNull", X = 0, g = w[B[s + W]];
  5121. if (g)
  5122. for (var m = i; 0 <= m && m < c; ) {
  5123. var L = a[m].index;
  5124. T = g.points[L], T || (L === A.index ? x[t][P] = !0 : o[m] && (_ = w[t].points[L]) && (X -= _[1] - _[0])), m += p;
  5125. }
  5126. x[t][W === 1 ? "rightCliff" : "leftCliff"] = X;
  5127. });
  5128. else {
  5129. for (var D = i; 0 <= D && D < c; ) {
  5130. if (T = w[t].points[a[D].index]) {
  5131. n = T[1];
  5132. break;
  5133. }
  5134. D += p;
  5135. }
  5136. n = S(n, 0), n = b.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: C.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  5137. }
  5138. });
  5139. }
  5140. return O;
  5141. }, d.defaultOptions = N(F.defaultOptions, { threshold: 0 }), d;
  5142. }(F), y(Z.prototype, {
  5143. singleStacks: !1,
  5144. drawLegendSymbol: j.drawRectangle
  5145. }), I.registerSeriesType("area", Z), Z;
  5146. }), E(l, "Series/Spline/SplineSeries.js", [l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j) {
  5147. var I = this && this.__extends || function() {
  5148. var F = function(N, R) {
  5149. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  5150. S.__proto__ = v;
  5151. } || function(S, v) {
  5152. for (var d in v)
  5153. v.hasOwnProperty(d) && (S[d] = v[d]);
  5154. }, F(N, R);
  5155. };
  5156. return function(N, R) {
  5157. function S() {
  5158. this.constructor = N;
  5159. }
  5160. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  5161. };
  5162. }(), Z = y.seriesTypes.line, H = j.merge, U = j.pick;
  5163. return j = function(F) {
  5164. function N() {
  5165. var R = F !== null && F.apply(this, arguments) || this;
  5166. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  5167. }
  5168. return I(N, F), N.prototype.getPointSpline = function(R, S, v) {
  5169. var d = S.plotX || 0, u = S.plotY || 0, A = R[v - 1];
  5170. if (v = R[v + 1], A && !A.isNull && A.doCurve !== !1 && !S.isCliff && v && !v.isNull && v.doCurve !== !1 && !S.isCliff) {
  5171. R = A.plotY || 0;
  5172. var O = v.plotX || 0;
  5173. v = v.plotY || 0;
  5174. var B = 0, C = (1.5 * d + (A.plotX || 0)) / 2.5, b = (1.5 * u + R) / 2.5;
  5175. O = (1.5 * d + O) / 2.5;
  5176. var w = (1.5 * u + v) / 2.5;
  5177. O !== C && (B = (w - b) * (O - d) / (O - C) + u - w), b += B, w += B, b > R && b > u ? (b = Math.max(R, u), w = 2 * u - b) : b < R && b < u && (b = Math.min(R, u), w = 2 * u - b), w > v && w > u ? (w = Math.max(v, u), b = 2 * u - w) : w < v && w < u && (w = Math.min(v, u), b = 2 * u - w), S.rightContX = O, S.rightContY = w;
  5178. }
  5179. return S = ["C", U(A.rightContX, A.plotX, 0), U(A.rightContY, A.plotY, 0), U(C, d, 0), U(b, u, 0), d, u], A.rightContX = A.rightContY = void 0, S;
  5180. }, N.defaultOptions = H(Z.defaultOptions), N;
  5181. }(Z), y.registerSeriesType("spline", j), j;
  5182. }), E(
  5183. l,
  5184. "Series/AreaSpline/AreaSplineSeries.js",
  5185. [l["Series/Area/AreaSeries.js"], l["Series/Spline/SplineSeries.js"], l["Core/Legend/LegendSymbol.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  5186. function(y, j, I, Z, H) {
  5187. var U = this && this.__extends || function() {
  5188. var S = function(v, d) {
  5189. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, A) {
  5190. u.__proto__ = A;
  5191. } || function(u, A) {
  5192. for (var O in A)
  5193. A.hasOwnProperty(O) && (u[O] = A[O]);
  5194. }, S(v, d);
  5195. };
  5196. return function(v, d) {
  5197. function u() {
  5198. this.constructor = v;
  5199. }
  5200. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  5201. };
  5202. }(), F = y.prototype, N = H.extend, R = H.merge;
  5203. return H = function(S) {
  5204. function v() {
  5205. var d = S !== null && S.apply(this, arguments) || this;
  5206. return d.data = void 0, d.points = void 0, d.options = void 0, d;
  5207. }
  5208. return U(v, S), v.defaultOptions = R(j.defaultOptions, y.defaultOptions), v;
  5209. }(j), N(H.prototype, { getGraphPath: F.getGraphPath, getStackPoints: F.getStackPoints, drawGraph: F.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", H), H;
  5210. }
  5211. ), E(l, "Series/Column/ColumnSeries.js", [
  5212. l["Core/Animation/AnimationUtilities.js"],
  5213. l["Core/Color/Color.js"],
  5214. l["Core/Globals.js"],
  5215. l["Core/Legend/LegendSymbol.js"],
  5216. l["Core/Series/Series.js"],
  5217. l["Core/Series/SeriesRegistry.js"],
  5218. l["Core/Utilities.js"]
  5219. ], function(y, j, I, Z, H, U, F) {
  5220. var N = this && this.__extends || function() {
  5221. var c = function(p, i) {
  5222. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, o) {
  5223. h.__proto__ = o;
  5224. } || function(h, o) {
  5225. for (var t in o)
  5226. o.hasOwnProperty(t) && (h[t] = o[t]);
  5227. }, c(p, i);
  5228. };
  5229. return function(p, i) {
  5230. function h() {
  5231. this.constructor = p;
  5232. }
  5233. c(p, i), p.prototype = i === null ? Object.create(i) : (h.prototype = i.prototype, new h());
  5234. };
  5235. }(), R = y.animObject, S = j.parse, v = I.hasTouch;
  5236. y = I.noop;
  5237. var d = F.clamp, u = F.css, A = F.defined, O = F.extend, B = F.fireEvent, C = F.isArray, b = F.isNumber, w = F.merge, x = F.pick, a = F.objectEach;
  5238. return F = function(c) {
  5239. function p() {
  5240. var i = c !== null && c.apply(this, arguments) || this;
  5241. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  5242. }
  5243. return N(p, c), p.prototype.animate = function(i) {
  5244. var h = this, o = this.yAxis, t = h.options, s = this.chart.inverted, n = {}, T = s ? "translateX" : "translateY";
  5245. if (i)
  5246. n.scaleY = 1e-3, i = d(o.toPixels(t.threshold), o.pos, o.pos + o.len), s ? n.translateX = i - o.len : n.translateY = i, h.clipBox && h.setClip(), h.group.attr(n);
  5247. else {
  5248. var _ = Number(h.group.attr(T));
  5249. h.group.animate({ scaleY: 1 }, O(R(h.options.animation), { step: function(D, W) {
  5250. h.group && (n[T] = _ + W.pos * (o.pos - _), h.group.attr(n));
  5251. } }));
  5252. }
  5253. }, p.prototype.init = function(i, h) {
  5254. c.prototype.init.apply(this, arguments);
  5255. var o = this;
  5256. i = o.chart, i.hasRendered && i.series.forEach(function(t) {
  5257. t.type === o.type && (t.isDirty = !0);
  5258. });
  5259. }, p.prototype.getColumnMetrics = function() {
  5260. var i = this, h = i.options, o = i.xAxis, t = i.yAxis, s = o.options.reversedStacks;
  5261. s = o.reversed && !s || !o.reversed && s;
  5262. var n = {}, T, _ = 0;
  5263. h.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  5264. var g = X.yAxis, m = X.options;
  5265. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  5266. if (m.stacking && m.stacking !== "group") {
  5267. T = X.stackKey, typeof n[T] > "u" && (n[T] = _++);
  5268. var L = n[T];
  5269. } else
  5270. m.grouping !== !1 && (L = _++);
  5271. X.columnIndex = L;
  5272. }
  5273. });
  5274. var D = Math.min(Math.abs(o.transA) * (o.ordinal && o.ordinal.slope || h.pointRange || o.closestPointRange || o.tickInterval || 1), o.len), W = D * h.groupPadding, P = (D - 2 * W) / (_ || 1);
  5275. return h = Math.min(h.maxPointWidth || o.len, x(h.pointWidth, P * (1 - 2 * h.pointPadding))), i.columnMetrics = { width: h, offset: (P - h) / 2 + (W + ((i.columnIndex || 0) + (s ? 1 : 0)) * P - D / 2) * (s ? -1 : 1), paddedWidth: P, columnCount: _ }, i.columnMetrics;
  5276. }, p.prototype.crispCol = function(i, h, o, t) {
  5277. var s = this.chart, n = this.borderWidth, T = -(n % 2 ? 0.5 : 0);
  5278. return n = n % 2 ? 0.5 : 1, s.inverted && s.renderer.isVML && (n += 1), this.options.crisp && (o = Math.round(i + o) + T, i = Math.round(i) + T, o -= i), t = Math.round(h + t) + n, T = 0.5 >= Math.abs(h) && 0.5 < t, h = Math.round(h) + n, t -= h, T && t && (--h, t += 1), { x: i, y: h, width: o, height: t };
  5279. }, p.prototype.adjustForMissingColumns = function(i, h, o, t) {
  5280. var s = this, n = this.options.stacking;
  5281. if (!o.isNull && 1 < t.columnCount) {
  5282. var T = 0, _ = 0;
  5283. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  5284. if (typeof o.x == "number" && (D = D[o.x.toString()])) {
  5285. var W = D.points[s.index], P = D.total;
  5286. n ? (W && (T = _), D.hasValidPoints && _++) : C(W) && (T = W[1], _ = P || 0);
  5287. }
  5288. }), i = (o.plotX || 0) + ((_ - 1) * t.paddedWidth + h) / 2 - h - T * t.paddedWidth;
  5289. }
  5290. return i;
  5291. }, p.prototype.translate = function() {
  5292. var i = this, h = i.chart, o = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  5293. t = i.borderWidth = x(o.borderWidth, t ? 0 : 1);
  5294. var s = i.xAxis, n = i.yAxis, T = o.threshold, _ = i.translatedThreshold = n.getThreshold(T), D = x(o.minPointLength, 5), W = i.getColumnMetrics(), P = W.width, X = i.pointXOffset = W.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(P, 1 + 2 * t);
  5295. h.inverted && (_ -= 0.5), o.pointPadding && (L = Math.ceil(L)), H.prototype.translate.apply(i), i.points.forEach(function(Y) {
  5296. var V = x(Y.yBottom, _), Q = 999 + Math.abs(V), k = Y.plotX || 0;
  5297. Q = d(Y.plotY, -Q, n.len + Q);
  5298. var G = Math.min(Q, V), z = Math.max(Q, V) - G, $ = P, q = k + X, it = L;
  5299. D && Math.abs(z) < D && (z = D, k = !n.reversed && !Y.negative || n.reversed && Y.negative, b(T) && b(m) && Y.y === T && m <= T && (n.min || 0) < T && (g !== m || (n.max || 0) <= T) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), A(Y.options.pointWidth) && ($ = it = Math.ceil(Y.options.pointWidth), q -= Math.round(($ - P) / 2)), o.centerInCategory && (q = i.adjustForMissingColumns(q, $, Y, W)), Y.barX = q, Y.pointWidth = $, Y.tooltipPos = h.inverted ? [d(n.len + n.pos - h.plotLeft - Q, n.pos - h.plotLeft, n.len + n.pos - h.plotLeft), s.len + s.pos - h.plotTop - q - it / 2, z] : [s.left - h.plotLeft + q + it / 2, d(Q + n.pos - h.plotTop, n.pos - h.plotTop, n.len + n.pos - h.plotTop), z], Y.shapeType = i.pointClass.prototype.shapeType || "rect", Y.shapeArgs = i.crispCol.apply(i, Y.isNull ? [q, _, it, 0] : [q, G, it, z]);
  5300. });
  5301. }, p.prototype.drawGraph = function() {
  5302. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  5303. }, p.prototype.pointAttribs = function(i, h) {
  5304. var o = this.options, t = this.pointAttrToOptions || {}, s = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", T = i && i.color || this.color, _ = i && i[s] || o[s] || T;
  5305. t = i && i.options.dashStyle || o.dashStyle;
  5306. var D = i && i[n] || o[n] || this[n] || 0, W = x(i && i.opacity, o.opacity, 1);
  5307. if (i && this.zones.length) {
  5308. var P = i.getZone();
  5309. T = i.options.color || P && (P.color || i.nonZonedColor) || this.color, P && (_ = P.borderColor || _, t = P.dashStyle || t, D = P.borderWidth || D);
  5310. }
  5311. return h && i && (i = w(o.states[h], i.options.states && i.options.states[h] || {}), h = i.brightness, T = i.color || typeof h < "u" && S(T).brighten(i.brightness).get() || T, _ = i[s] || _, D = i[n] || D, t = i.dashStyle || t, W = x(i.opacity, W)), s = { fill: T, stroke: _, "stroke-width": D, opacity: W }, t && (s.dashstyle = t), s;
  5312. }, p.prototype.drawPoints = function() {
  5313. var i = this, h = this.chart, o = i.options, t = h.renderer, s = o.animationLimit || 250, n;
  5314. i.points.forEach(function(T) {
  5315. var _ = T.graphic, D = !!_, W = _ && h.pointCount < s ? "animate" : "attr";
  5316. b(T.plotY) && T.y !== null ? (n = T.shapeArgs, _ && T.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (T.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (T.graphic = _ = t[T.shapeType](n).add(T.group || i.group)) && i.enabledDataSorting && h.hasRendered && h.pointCount < s && (_.attr({ x: T.startXPos }), D = !0, W = "animate"), _ && D && _[W](w(n)), o.borderRadius && _[W]({ r: o.borderRadius }), h.styledMode || _[W](i.pointAttribs(T, T.selected && "select")).shadow(T.allowShadow !== !1 && o.shadow, null, o.stacking && !o.borderRadius), _ && (_.addClass(T.getClassName(), !0), _.attr({ visibility: T.visible ? "inherit" : "hidden" }))) : _ && (T.graphic = _.destroy());
  5317. });
  5318. }, p.prototype.drawTracker = function() {
  5319. var i = this, h = i.chart, o = h.pointer, t = function(n) {
  5320. var T = o.getPointFromEvent(n);
  5321. typeof T < "u" && (o.isDirectTouch = !0, T.onMouseOver(n));
  5322. }, s;
  5323. i.points.forEach(function(n) {
  5324. s = C(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), s.forEach(function(T) {
  5325. T.div ? T.div.point = n : T.element.point = n;
  5326. });
  5327. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  5328. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(T) {
  5329. o.onTrackerMouseOut(T);
  5330. }), v && i[n].on(
  5331. "touchstart",
  5332. t
  5333. ), !h.styledMode && i.options.cursor && i[n].css(u).css({ cursor: i.options.cursor }));
  5334. }), i._hasTracking = !0), B(this, "afterDrawTracker");
  5335. }, p.prototype.remove = function() {
  5336. var i = this, h = i.chart;
  5337. h.hasRendered && h.series.forEach(function(o) {
  5338. o.type === i.type && (o.isDirty = !0);
  5339. }), H.prototype.remove.apply(i, arguments);
  5340. }, p.defaultOptions = w(H.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  5341. hover: { halo: !1, brightness: 0.1 },
  5342. select: { color: "#cccccc", borderColor: "#000000" }
  5343. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  5344. }(H), O(F.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("column", F), F;
  5345. }), E(l, "Core/Series/DataLabel.js", [
  5346. l["Core/Animation/AnimationUtilities.js"],
  5347. l["Core/FormatUtilities.js"],
  5348. l["Core/Utilities.js"]
  5349. ], function(y, j, I) {
  5350. var Z = y.getDeferredAnimation, H = j.format, U = I.defined, F = I.extend, N = I.fireEvent, R = I.isArray, S = I.merge, v = I.objectEach, d = I.pick, u = I.splat, A;
  5351. return function(O) {
  5352. function B(p, i, h, o, t) {
  5353. var s = this, n = this.chart, T = this.isCartesian && n.inverted, _ = this.enabledDataSorting, D = d(p.dlBox && p.dlBox.centerX, p.plotX, -9999), W = d(p.plotY, -9999), P = i.getBBox(), X = h.rotation, g = h.align, m = n.isInsidePlot(D, Math.round(W), { inverted: T, paneCoordinates: !0, series: s }), L = function(k) {
  5354. _ && s.xAxis && !Y && s.setDataLabelStartPos(
  5355. p,
  5356. i,
  5357. t,
  5358. m,
  5359. k
  5360. );
  5361. }, Y = d(h.overflow, _ ? "none" : "justify") === "justify", V = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || d(h.inside, !!this.options.stacking) && o && n.isInsidePlot(D, T ? o.x + 1 : o.y + o.height - 1, { inverted: T, paneCoordinates: !0, series: s }));
  5362. if (V) {
  5363. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : h.style.fontSize, i).b;
  5364. o = F({ x: T ? this.yAxis.len - W : D, y: Math.round(T ? this.xAxis.len - D : W), width: 0, height: 0 }, o), F(h, { width: P.width, height: P.height }), X ? (Y = !1, D = n.renderer.rotCorr(Q, X), D = { x: o.x + (h.x || 0) + o.width / 2 + D.x, y: o.y + (h.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[h.verticalAlign] * o.height }, L(D), i[t ? "attr" : "animate"](D).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? D.y -= L ? P.height : 0 : g === "center" ? (D.x -= P.width / 2, D.y -= P.height / 2) : g === "right" && (D.x -= P.width, D.y -= L ? 0 : P.height), i.placed = !0, i.alignAttr = D) : (L(o), i.align(h, void 0, o), D = i.alignAttr), Y && 0 <= o.height ? this.justifyDataLabel(i, h, D, P, o, t) : d(h.crop, !0) && (V = n.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: s }) && n.isInsidePlot(D.x + P.width, D.y + P.height, {
  5365. paneCoordinates: !0,
  5366. series: s
  5367. })), h.shape && !X && i[t ? "attr" : "animate"]({ anchorX: T ? n.plotWidth - p.plotY : p.plotX, anchorY: T ? n.plotHeight - p.plotX : p.plotY });
  5368. }
  5369. t && _ && (i.placed = !1), V || _ && !Y || (i.hide(!0), i.placed = !1);
  5370. }
  5371. function C(p, i) {
  5372. var h = i.filter;
  5373. return h ? (i = h.operator, p = p[h.property], h = h.value, i === ">" && p > h || i === "<" && p < h || i === ">=" && p >= h || i === "<=" && p <= h || i === "==" && p == h || i === "===" && p === h) : !0;
  5374. }
  5375. function b() {
  5376. var p = this, i = p.chart, h = p.options, o = p.points, t = p.hasRendered || 0, s = i.renderer, n = h.dataLabels, T, _ = n.animation;
  5377. if (_ = n.defer ? Z(
  5378. i,
  5379. _,
  5380. p
  5381. ) : { defer: 0, duration: 0 }, n = x(x(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[p.type] && i.options.plotOptions[p.type].dataLabels), n), N(this, "drawDataLabels"), R(n) || n.enabled || p._hasPointLabels) {
  5382. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  5383. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[h.animation ? "animate" : "attr"]({ opacity: 1 }, _)), o.forEach(function(W) {
  5384. T = u(x(n, W.dlOptions || W.options && W.options.dataLabels)), T.forEach(function(P, X) {
  5385. var g = P.enabled && (!W.isNull || W.dataLabelOnNull) && C(W, P), m = W.connectors ? W.connectors[X] : W.connector, L = W.dataLabels ? W.dataLabels[X] : W.dataLabel, Y = d(P.distance, W.labelDistance), V = !L;
  5386. if (g) {
  5387. var Q = W.getLabelConfig(), k = d(P[W.formatPrefix + "Format"], P.format);
  5388. Q = U(k) ? H(k, Q, i) : (P[W.formatPrefix + "Formatter"] || P.formatter).call(Q, P), k = P.style;
  5389. var G = P.rotation;
  5390. i.styledMode || (k.color = d(P.color, k.color, p.color, "#000000"), k.color === "contrast" ? (W.contrastColor = s.getContrast(W.color || p.color), k.color = !U(Y) && P.inside || 0 > Y || h.stacking ? W.contrastColor : "#000000") : delete W.contrastColor, h.cursor && (k.cursor = h.cursor));
  5391. var z = { r: P.borderRadius || 0, rotation: G, padding: P.padding, zIndex: 1 };
  5392. i.styledMode || (z.fill = P.backgroundColor, z.stroke = P.borderColor, z["stroke-width"] = P.borderWidth), v(z, function($, q) {
  5393. typeof $ > "u" && delete z[q];
  5394. });
  5395. }
  5396. !L || g && U(Q) && !!L.div == !!P.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 && U(Q) && (L ? z.text = Q : (W.dataLabels = W.dataLabels || [], L = W.dataLabels[X] = G ? s.text(Q, 0, -9999, P.useHTML).addClass("highcharts-data-label") : s.label(Q, 0, -9999, P.shape, null, null, P.useHTML, null, "data-label"), X || (W.dataLabel = L), L.addClass(" highcharts-data-label-color-" + W.colorIndex + " " + (P.className || "") + (P.useHTML ? " highcharts-tracker" : ""))), L.options = P, L.attr(z), i.styledMode || L.css(k).shadow(P.shadow), L.added || L.add(D), P.textPath && !P.useHTML && (L.setTextPath(W.getDataLabelPath && W.getDataLabelPath(L) || W.graphic, P.textPath), W.dataLabelPath && !P.textPath.enabled && (W.dataLabelPath = W.dataLabelPath.destroy())), p.alignDataLabel(W, L, P, null, V));
  5397. });
  5398. });
  5399. }
  5400. N(this, "afterDrawDataLabels");
  5401. }
  5402. function w(p, i, h, o, t, s) {
  5403. var n = this.chart, T = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, W = i.x;
  5404. W = W === void 0 ? 0 : W;
  5405. var P = i.y;
  5406. P = P === void 0 ? 0 : P;
  5407. var X = (h.x || 0) + D;
  5408. if (0 > X) {
  5409. T === "right" && 0 <= W ? (i.align = "left", i.inside = !0) : W -= X;
  5410. var g = !0;
  5411. }
  5412. return X = (h.x || 0) + o.width - D, X > n.plotWidth && (T === "left" && 0 >= W ? (i.align = "right", i.inside = !0) : W += n.plotWidth - X, g = !0), X = h.y + D, 0 > X && (_ === "bottom" && 0 <= P ? (i.verticalAlign = "top", i.inside = !0) : P -= X, g = !0), X = (h.y || 0) + o.height - D, X > n.plotHeight && (_ === "top" && 0 >= P ? (i.verticalAlign = "bottom", i.inside = !0) : P += n.plotHeight - X, g = !0), g && (i.x = W, i.y = P, p.placed = !s, p.align(i, void 0, t)), g;
  5413. }
  5414. function x(p, i) {
  5415. var h = [], o;
  5416. if (R(p) && !R(i))
  5417. h = p.map(function(t) {
  5418. return S(t, i);
  5419. });
  5420. else if (R(i) && !R(p))
  5421. h = i.map(function(t) {
  5422. return S(p, t);
  5423. });
  5424. else if (R(p) || R(i))
  5425. for (o = Math.max(p.length, i.length); o--; )
  5426. h[o] = S(p[o], i[o]);
  5427. else
  5428. h = S(p, i);
  5429. return h;
  5430. }
  5431. function a(p, i, h, o, t) {
  5432. var s = this.chart, n = s.inverted, T = this.xAxis, _ = T.reversed, D = n ? i.height / 2 : i.width / 2;
  5433. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : T.width - D + p, i.startYPos = n ? _ ? this.yAxis.height - D + p : -D - p : t.y, o ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  5434. { opacity: 0 },
  5435. void 0,
  5436. i.hide
  5437. ), s.hasRendered && (h && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  5438. }
  5439. var c = [];
  5440. O.compose = function(p) {
  5441. if (c.indexOf(p) === -1) {
  5442. var i = p.prototype;
  5443. c.push(p), i.alignDataLabel = B, i.drawDataLabels = b, i.justifyDataLabel = w, i.setDataLabelStartPos = a;
  5444. }
  5445. };
  5446. }(A || (A = {})), A;
  5447. }), E(l, "Series/Column/ColumnDataLabel.js", [l["Core/Series/DataLabel.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5448. var Z = j.series, H = I.merge, U = I.pick, F;
  5449. return function(N) {
  5450. function R(v, d, u, A, O) {
  5451. var B = this.chart.inverted, C = v.series, b = (C.xAxis ? C.xAxis.len : this.chart.plotSizeX) || 0;
  5452. C = (C.yAxis ? C.yAxis.len : this.chart.plotSizeY) || 0;
  5453. var w = v.dlBox || v.shapeArgs, x = U(v.below, v.plotY > U(this.translatedThreshold, C)), a = U(u.inside, !!this.options.stacking);
  5454. w && (A = H(w), 0 > A.y && (A.height += A.y, A.y = 0), w = A.y + A.height - C, 0 < w && w < A.height && (A.height -= w), B && (A = { x: C - A.y - A.height, y: b - A.x - A.width, width: A.height, height: A.width }), a || (B ? (A.x += x ? 0 : A.width, A.width = 0) : (A.y += x ? A.height : 0, A.height = 0))), u.align = U(u.align, !B || a ? "center" : x ? "right" : "left"), u.verticalAlign = U(u.verticalAlign, B || a ? "middle" : x ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, v, d, u, A, O), u.inside && v.contrastColor && d.css({ color: v.contrastColor });
  5455. }
  5456. var S = [];
  5457. N.compose = function(v) {
  5458. y.compose(Z), S.indexOf(v) === -1 && (S.push(v), v.prototype.alignDataLabel = R);
  5459. };
  5460. }(F || (F = {})), F;
  5461. }), E(l, "Series/Bar/BarSeries.js", [l["Series/Column/ColumnSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5462. var Z = this && this.__extends || function() {
  5463. var F = function(N, R) {
  5464. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  5465. S.__proto__ = v;
  5466. } || function(S, v) {
  5467. for (var d in v)
  5468. v.hasOwnProperty(d) && (S[d] = v[d]);
  5469. }, F(N, R);
  5470. };
  5471. return function(N, R) {
  5472. function S() {
  5473. this.constructor = N;
  5474. }
  5475. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  5476. };
  5477. }(), H = I.extend, U = I.merge;
  5478. return I = function(F) {
  5479. function N() {
  5480. var R = F !== null && F.apply(this, arguments) || this;
  5481. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  5482. }
  5483. return Z(N, F), N.defaultOptions = U(
  5484. y.defaultOptions,
  5485. {}
  5486. ), N;
  5487. }(y), H(I.prototype, { inverted: !0 }), j.registerSeriesType("bar", I), I;
  5488. }), E(l, "Series/Scatter/ScatterSeries.js", [l["Series/Column/ColumnSeries.js"], l["Series/Line/LineSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  5489. var H = this && this.__extends || function() {
  5490. var R = function(S, v) {
  5491. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, u) {
  5492. d.__proto__ = u;
  5493. } || function(d, u) {
  5494. for (var A in u)
  5495. u.hasOwnProperty(A) && (d[A] = u[A]);
  5496. }, R(S, v);
  5497. };
  5498. return function(S, v) {
  5499. function d() {
  5500. this.constructor = S;
  5501. }
  5502. R(S, v), S.prototype = v === null ? Object.create(v) : (d.prototype = v.prototype, new d());
  5503. };
  5504. }(), U = Z.addEvent, F = Z.extend, N = Z.merge;
  5505. return Z = function(R) {
  5506. function S() {
  5507. var v = R !== null && R.apply(this, arguments) || this;
  5508. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  5509. }
  5510. return H(S, R), S.prototype.applyJitter = function() {
  5511. var v = this, d = this.options.jitter, u = this.points.length;
  5512. d && this.points.forEach(function(A, O) {
  5513. ["x", "y"].forEach(function(B, C) {
  5514. var b = "plot" + B.toUpperCase();
  5515. if (d[B] && !A.isNull) {
  5516. var w = v[B + "Axis"], x = d[B] * w.transA;
  5517. if (w && !w.isLog) {
  5518. var a = Math.max(0, A[b] - x);
  5519. w = Math.min(w.len, A[b] + x), C = 1e4 * Math.sin(O + C * u), A[b] = a + (w - a) * (C - Math.floor(C)), B === "x" && (A.clientX = A.plotX);
  5520. }
  5521. }
  5522. });
  5523. });
  5524. }, S.prototype.drawGraph = function() {
  5525. this.options.lineWidth ? R.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  5526. }, S.defaultOptions = N(j.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  5527. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  5528. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  5529. } }), S;
  5530. }(j), F(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), U(Z, "afterTranslate", function() {
  5531. this.applyJitter();
  5532. }), I.registerSeriesType("scatter", Z), Z;
  5533. }), E(l, "Series/CenteredUtilities.js", [l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5534. var Z = y.deg2rad, H = I.isNumber, U = I.pick, F = I.relativeLength, N;
  5535. return function(R) {
  5536. R.getCenter = function() {
  5537. var S = this.options, v = this.chart, d = 2 * (S.slicedOffset || 0), u = v.plotWidth - 2 * d, A = v.plotHeight - 2 * d, O = S.center, B = Math.min(u, A), C = S.size, b = S.innerSize || 0;
  5538. for (typeof C == "string" && (C = parseFloat(C)), typeof b == "string" && (b = parseFloat(b)), S = [U(O[0], "50%"), U(O[1], "50%"), U(C && 0 > C ? void 0 : S.size, "100%"), U(b && 0 > b ? void 0 : S.innerSize || 0, "0%")], !v.angular || this instanceof j || (S[3] = 0), O = 0; 4 > O; ++O)
  5539. C = S[O], v = 2 > O || O === 2 && /%$/.test(C), S[O] = F(C, [u, A, B, S[2]][O]) + (v ? d : 0);
  5540. return S[3] > S[2] && (S[3] = S[2]), S;
  5541. }, R.getStartAndEndRadians = function(S, v) {
  5542. return S = H(S) ? S : 0, v = H(v) && v > S && 360 > v - S ? v : S + 360, { start: Z * (S + -90), end: Z * (v + -90) };
  5543. };
  5544. }(N || (N = {})), N;
  5545. }), E(l, "Series/Pie/PiePoint.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]], function(y, j, I) {
  5546. var Z = this && this.__extends || function() {
  5547. var v = function(d, u) {
  5548. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(A, O) {
  5549. A.__proto__ = O;
  5550. } || function(A, O) {
  5551. for (var B in O)
  5552. O.hasOwnProperty(B) && (A[B] = O[B]);
  5553. }, v(d, u);
  5554. };
  5555. return function(d, u) {
  5556. function A() {
  5557. this.constructor = d;
  5558. }
  5559. v(d, u), d.prototype = u === null ? Object.create(u) : (A.prototype = u.prototype, new A());
  5560. };
  5561. }(), H = y.setAnimation, U = I.addEvent, F = I.defined;
  5562. y = I.extend;
  5563. var N = I.isNumber, R = I.pick, S = I.relativeLength;
  5564. return j = function(v) {
  5565. function d() {
  5566. var u = v !== null && v.apply(this, arguments) || this;
  5567. return u.labelDistance = void 0, u.options = void 0, u.series = void 0, u;
  5568. }
  5569. return Z(d, v), d.prototype.getConnectorPath = function() {
  5570. var u = this.labelPosition, A = this.series.options.dataLabels, O = this.connectorShapes, B = A.connectorShape;
  5571. return O[B] && (B = O[B]), B.call(this, { x: u.final.x, y: u.final.y, alignment: u.alignment }, u.connectorPosition, A);
  5572. }, d.prototype.getTranslate = function() {
  5573. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  5574. }, d.prototype.haloPath = function(u) {
  5575. var A = this.shapeArgs;
  5576. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(A.x, A.y, A.r + u, A.r + u, { innerR: A.r - 1, start: A.start, end: A.end });
  5577. }, d.prototype.init = function() {
  5578. var u = this;
  5579. v.prototype.init.apply(
  5580. this,
  5581. arguments
  5582. ), this.name = R(this.name, "Slice");
  5583. var A = function(O) {
  5584. u.slice(O.type === "select");
  5585. };
  5586. return U(this, "select", A), U(this, "unselect", A), this;
  5587. }, d.prototype.isValid = function() {
  5588. return N(this.y) && 0 <= this.y;
  5589. }, d.prototype.setVisible = function(u, A) {
  5590. var O = this, B = this.series, C = B.chart, b = B.options.ignoreHiddenPoint;
  5591. A = R(A, b), u !== this.visible && (this.visible = this.options.visible = u = typeof u > "u" ? !this.visible : u, B.options.data[B.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(w) {
  5592. O[w] && O[w][u ? "show" : "hide"](u);
  5593. }), this.legendItem && C.legend.colorizeItem(this, u), u || this.state !== "hover" || this.setState(""), b && (B.isDirty = !0), A && C.redraw());
  5594. }, d.prototype.slice = function(u, A, O) {
  5595. var B = this.series;
  5596. H(O, B.chart), R(A, !0), this.sliced = this.options.sliced = F(u) ? u : !this.sliced, B.options.data[B.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  5597. }, d;
  5598. }(j), y(j.prototype, { connectorShapes: { fixedOffset: function(v, d, u) {
  5599. var A = d.breakAt;
  5600. return d = d.touchingSliceAt, [["M", v.x, v.y], u.softConnector ? ["C", v.x + (v.alignment === "left" ? -5 : 5), v.y, 2 * A.x - d.x, 2 * A.y - d.y, A.x, A.y] : ["L", A.x, A.y], ["L", d.x, d.y]];
  5601. }, straight: function(v, d) {
  5602. return d = d.touchingSliceAt, [["M", v.x, v.y], ["L", d.x, d.y]];
  5603. }, crookedLine: function(v, d, u) {
  5604. d = d.touchingSliceAt;
  5605. var A = this.series, O = A.center[0], B = A.chart.plotWidth, C = A.chart.plotLeft;
  5606. A = v.alignment;
  5607. var b = this.shapeArgs.r;
  5608. return u = S(u.crookDistance, 1), B = A === "left" ? O + b + (B + C - O - b) * (1 - u) : C + (O - b) * u, u = ["L", B, v.y], O = !0, (A === "left" ? B > v.x || B < d.x : B < v.x || B > d.x) && (O = !1), v = [["M", v.x, v.y]], O && v.push(u), v.push(["L", d.x, d.y]), v;
  5609. } } }), j;
  5610. }), E(l, "Series/Pie/PieSeries.js", [l["Series/CenteredUtilities.js"], l["Series/Column/ColumnSeries.js"], l["Core/Globals.js"], l["Core/Legend/LegendSymbol.js"], l["Series/Pie/PiePoint.js"], l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, N, R) {
  5611. var S = this && this.__extends || function() {
  5612. var b = function(w, x) {
  5613. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  5614. a.__proto__ = c;
  5615. } || function(a, c) {
  5616. for (var p in c)
  5617. c.hasOwnProperty(p) && (a[p] = c[p]);
  5618. }, b(w, x);
  5619. };
  5620. return function(w, x) {
  5621. function a() {
  5622. this.constructor = w;
  5623. }
  5624. b(w, x), w.prototype = x === null ? Object.create(x) : (a.prototype = x.prototype, new a());
  5625. };
  5626. }(), v = y.getStartAndEndRadians;
  5627. I = I.noop;
  5628. var d = R.clamp, u = R.extend, A = R.fireEvent, O = R.merge, B = R.pick, C = R.relativeLength;
  5629. return R = function(b) {
  5630. function w() {
  5631. var x = b !== null && b.apply(this, arguments) || this;
  5632. return x.center = void 0, x.data = void 0, x.maxLabelDistance = void 0, x.options = void 0, x.points = void 0, x;
  5633. }
  5634. return S(w, b), w.prototype.animate = function(x) {
  5635. var a = this, c = a.points, p = a.startAngleRad;
  5636. x || c.forEach(function(i) {
  5637. var h = i.graphic, o = i.shapeArgs;
  5638. h && o && (h.attr({ r: B(i.startR, a.center && a.center[3] / 2), start: p, end: p }), h.animate({ r: o.r, start: o.start, end: o.end }, a.options.animation));
  5639. });
  5640. }, w.prototype.drawEmpty = function() {
  5641. var x = this.startAngleRad, a = this.endAngleRad, c = this.options;
  5642. if (this.total === 0 && this.center) {
  5643. var p = this.center[0], i = this.center[1];
  5644. this.graph || (this.graph = this.chart.renderer.arc(p, i, this.center[1] / 2, 0, x, a).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: N.arc(p, i, this.center[2] / 2, 0, { start: x, end: a, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  5645. } else
  5646. this.graph && (this.graph = this.graph.destroy());
  5647. }, w.prototype.drawPoints = function() {
  5648. var x = this.chart.renderer;
  5649. this.points.forEach(function(a) {
  5650. a.graphic && a.hasNewShapeType() && (a.graphic = a.graphic.destroy()), a.graphic || (a.graphic = x[a.shapeType](a.shapeArgs).add(a.series.group), a.delayedRendering = !0);
  5651. });
  5652. }, w.prototype.generatePoints = function() {
  5653. b.prototype.generatePoints.call(this), this.updateTotals();
  5654. }, w.prototype.getX = function(x, a, c) {
  5655. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  5656. return x = Math.asin(d((x - p[1]) / (i + c.labelDistance), -1, 1)), p[0] + (a ? -1 : 1) * Math.cos(x) * (i + c.labelDistance) + (0 < c.labelDistance ? (a ? -1 : 1) * this.options.dataLabels.padding : 0);
  5657. }, w.prototype.hasData = function() {
  5658. return !!this.processedXData.length;
  5659. }, w.prototype.redrawPoints = function() {
  5660. var x = this, a = x.chart, c = a.renderer, p = x.options.shadow, i, h, o, t;
  5661. this.drawEmpty(), !p || x.shadowGroup || a.styledMode || (x.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(x.group)), x.points.forEach(function(s) {
  5662. var n = {};
  5663. if (h = s.graphic, !s.isNull && h) {
  5664. var T = void 0;
  5665. t = s.shapeArgs, i = s.getTranslate(), a.styledMode || (T = s.shadowGroup, p && !T && (T = s.shadowGroup = c.g("shadow").add(x.shadowGroup)), T && T.attr(i), o = x.pointAttribs(s, s.selected && "select")), s.delayedRendering ? (h.setRadialReference(x.center).attr(t).attr(i), a.styledMode || h.attr(o).attr({ "stroke-linejoin": "round" }).shadow(p, T), s.delayedRendering = !1) : (h.setRadialReference(x.center), a.styledMode || O(!0, n, o), O(!0, n, t, i), h.animate(n)), h.attr({ visibility: s.visible ? "inherit" : "hidden" }), h.addClass(s.getClassName(), !0);
  5666. } else
  5667. h && (s.graphic = h.destroy());
  5668. });
  5669. }, w.prototype.sortByAngle = function(x, a) {
  5670. x.sort(function(c, p) {
  5671. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  5672. });
  5673. }, w.prototype.translate = function(x) {
  5674. this.generatePoints();
  5675. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = v(a.startAngle, a.endAngle), h = this.startAngleRad = i.start;
  5676. i = (this.endAngleRad = i.end) - h;
  5677. var o = this.points, t = a.dataLabels.distance;
  5678. a = a.ignoreHiddenPoint;
  5679. var s = o.length, n, T = 0;
  5680. for (x || (this.center = x = this.getCenter()), n = 0; n < s; n++) {
  5681. var _ = o[n], D = h + T * i;
  5682. !_.isValid() || a && !_.visible || (T += _.percentage / 100);
  5683. var W = h + T * i, P = { x: x[0], y: x[1], r: x[2] / 2, innerR: x[3] / 2, start: Math.round(1e3 * D) / 1e3, end: Math.round(1e3 * W) / 1e3 };
  5684. _.shapeType = "arc", _.shapeArgs = P, _.labelDistance = B(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = C(_.labelDistance, P.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), W = (W + D) / 2, W > 1.5 * Math.PI ? W -= 2 * Math.PI : W < -Math.PI / 2 && (W += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(W) * c), translateY: Math.round(Math.sin(W) * c) }, P = Math.cos(W) * x[2] / 2;
  5685. var X = Math.sin(W) * x[2] / 2;
  5686. _.tooltipPos = [x[0] + 0.7 * P, x[1] + 0.7 * X], _.half = W < -Math.PI / 2 || W > Math.PI / 2 ? 1 : 0, _.angle = W, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: x[0] + P + Math.cos(W) * _.labelDistance, y: x[1] + X + Math.sin(W) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: x[0] + P + Math.cos(W) * D, y: x[1] + X + Math.sin(W) * D }, touchingSliceAt: { x: x[0] + P, y: x[1] + X } } };
  5687. }
  5688. A(this, "afterTranslate");
  5689. }, w.prototype.updateTotals = function() {
  5690. var x = this.points, a = x.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  5691. for (p = 0; p < a; p++) {
  5692. var h = x[p];
  5693. !h.isValid() || c && !h.visible || (i += h.y);
  5694. }
  5695. for (this.total = i, p = 0; p < a; p++)
  5696. h = x[p], h.percentage = 0 < i && (h.visible || !c) ? h.y / i * 100 : 0, h.total = i;
  5697. }, w.defaultOptions = O(U.defaultOptions, {
  5698. center: [null, null],
  5699. clip: !1,
  5700. colorByPoint: !0,
  5701. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  5702. return this.point.isNull ? void 0 : this.point.name;
  5703. }, softConnector: !0, x: 0 },
  5704. fillColor: void 0,
  5705. ignoreHiddenPoint: !0,
  5706. inactiveOtherPoints: !0,
  5707. legendType: "point",
  5708. marker: null,
  5709. size: null,
  5710. showInLegend: !1,
  5711. slicedOffset: 10,
  5712. stickyTracking: !1,
  5713. tooltip: { followPointer: !0 },
  5714. borderColor: "#ffffff",
  5715. borderWidth: 1,
  5716. lineWidth: void 0,
  5717. states: { hover: { brightness: 0.1 } }
  5718. }), w;
  5719. }(U), u(R.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: j.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: j.prototype.pointAttribs, pointClass: H, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("pie", R), R;
  5720. }), E(l, "Series/Pie/PieDataLabel.js", [
  5721. l["Core/Series/DataLabel.js"],
  5722. l["Core/Globals.js"],
  5723. l["Core/Renderer/RendererUtilities.js"],
  5724. l["Core/Series/SeriesRegistry.js"],
  5725. l["Core/Utilities.js"]
  5726. ], function(y, j, I, Z, H) {
  5727. var U = j.noop, F = I.distribute, N = Z.series, R = H.arrayMax, S = H.clamp, v = H.defined, d = H.merge, u = H.pick, A = H.relativeLength, O;
  5728. return function(B) {
  5729. function C() {
  5730. var c = this, p = c.data, i = c.chart, h = c.options.dataLabels || {}, o = h.connectorPadding, t = i.plotWidth, s = i.plotHeight, n = i.plotLeft, T = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, W = _[1], P = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, Y, V, Q, k, G, z, $, q, it, et;
  5731. c.visible && (h.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  5732. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  5733. }), N.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  5734. nt.dataLabel && (nt.visible ? (P[nt.half].push(nt), nt.dataLabel._pos = null, !v(h.style.width) && !v(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > T && (nt.dataLabel.css({ width: Math.round(0.7 * T) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  5735. }), P.forEach(function(nt, rt) {
  5736. var ct = nt.length, gt = [], dt;
  5737. if (ct) {
  5738. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  5739. var ht = Math.max(0, W - D - c.maxLabelDistance), at = Math.min(W + D + c.maxLabelDistance, i.plotHeight);
  5740. nt.forEach(function(J) {
  5741. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, W - D - J.labelDistance), J.bottom = Math.min(W + D + 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));
  5742. }), ht = at + dt - ht, F(gt, ht, ht / 5);
  5743. }
  5744. for (it = 0; it < ct; it++) {
  5745. if (m = nt[it], k = m.labelPosition, V = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", $ = ht = k.natural.y, gt && v(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, $ = g.radialDistributionY(m))), delete m.positionIndex, h.justify)
  5746. z = g.justify(m, D, _);
  5747. else
  5748. switch (h.alignTo) {
  5749. case "connectors":
  5750. z = g.alignToConnectors(nt, rt, t, n);
  5751. break;
  5752. case "plotEdges":
  5753. z = g.alignToPlotEdges(V, rt, t, n);
  5754. break;
  5755. default:
  5756. z = g.radialDistributionX(c, m, $, ht);
  5757. }
  5758. V._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, V._pos = { x: z + u(et.x, h.x) + ({ left: o, right: -o }[k.alignment] || 0), y: $ + u(et.y, h.y) - 10 }, k.final.x = z, k.final.y = $, u(h.crop, !0) && (Q = V.getBBox().width, ht = null, z - Q < o && rt === 1 ? (ht = Math.round(Q - z + o), X[3] = Math.max(ht, X[3])) : z + Q > t - o && rt === 0 && (ht = Math.round(z + Q - t + o), X[1] = Math.max(ht, X[1])), 0 > $ - G / 2 ? X[0] = Math.max(Math.round(-$ + G / 2), X[0]) : $ + G / 2 > s && (X[2] = Math.max(Math.round($ + G / 2 - s), X[2])), V.sideOverflow = ht);
  5759. }
  5760. }
  5761. }), R(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  5762. if (et = d(h, nt.options.dataLabels), L = u(et.connectorWidth, 1)) {
  5763. var rt;
  5764. Y = nt.connector, (V = nt.dataLabel) && V._pos && nt.visible && 0 < nt.labelDistance ? (q = V._attr.visibility, (rt = !Y) && (nt.connector = Y = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || Y.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), Y[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), Y.attr("visibility", q)) : Y && (nt.connector = Y.destroy());
  5765. }
  5766. }));
  5767. }
  5768. function b() {
  5769. this.points.forEach(function(c) {
  5770. var p = c.dataLabel, i;
  5771. p && c.visible && ((i = p._pos) ? (p.sideOverflow && (p._attr.width = Math.max(p.getBBox().width - p.sideOverflow, 0), p.css({ width: p._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), p.shortened = !0), p.attr(p._attr), p[p.moved ? "animate" : "attr"](i), p.moved = !0) : p && p.attr({ y: -9999 })), delete c.distributeBox;
  5772. }, this);
  5773. }
  5774. function w(c) {
  5775. var p = this.center, i = this.options, h = i.center, o = i.minSize || 80, t = i.size !== null;
  5776. if (!t) {
  5777. if (h[0] !== null)
  5778. var s = Math.max(p[2] - Math.max(c[1], c[3]), o);
  5779. else
  5780. s = Math.max(p[2] - c[1] - c[3], o), p[0] += (c[3] - c[1]) / 2;
  5781. h[1] !== null ? s = S(s, o, p[2] - Math.max(c[0], c[2])) : (s = S(s, o, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), s < p[2] ? (p[2] = s, p[3] = Math.min(A(i.innerSize || 0, s), s), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  5782. }
  5783. return t;
  5784. }
  5785. var x = [], a = { radialDistributionY: function(c) {
  5786. return c.top + c.distributeBox.pos;
  5787. }, radialDistributionX: function(c, p, i, h) {
  5788. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? h : i, p.half, p);
  5789. }, justify: function(c, p, i) {
  5790. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  5791. }, alignToPlotEdges: function(c, p, i, h) {
  5792. return c = c.getBBox().width, p ? c + h : i - c - h;
  5793. }, alignToConnectors: function(c, p, i, h) {
  5794. var o = 0, t;
  5795. return c.forEach(function(s) {
  5796. t = s.dataLabel.getBBox().width, t > o && (o = t);
  5797. }), p ? o + h : i - o - h;
  5798. } };
  5799. B.compose = function(c) {
  5800. y.compose(N), x.indexOf(c) === -1 && (x.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = U, c.drawDataLabels = C, c.placeDataLabels = b, c.verifyDataLabelOverflow = w);
  5801. };
  5802. }(O || (O = {})), O;
  5803. }), E(l, "Extensions/OverlappingDataLabels.js", [l["Core/Chart/Chart.js"], l["Core/Utilities.js"]], function(y, j) {
  5804. function I(S, v) {
  5805. var d = !1;
  5806. if (S) {
  5807. var u = S.newOpacity;
  5808. S.oldOpacity !== u && (S.alignAttr && S.placed ? (S[u ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), d = !0, S.alignAttr.opacity = u, S[S.isOld ? "animate" : "attr"](S.alignAttr, null, function() {
  5809. v.styledMode || S.css({ pointerEvents: u ? "auto" : "none" });
  5810. }), H(v, "afterHideOverlappingLabel")) : S.attr({ opacity: u })), S.isOld = !0;
  5811. }
  5812. return d;
  5813. }
  5814. var Z = j.addEvent, H = j.fireEvent, U = j.isArray, F = j.isNumber, N = j.objectEach, R = j.pick;
  5815. Z(y, "render", function() {
  5816. var S = this, v = [];
  5817. (this.labelCollectors || []).forEach(function(d) {
  5818. v = v.concat(d());
  5819. }), (this.yAxis || []).forEach(function(d) {
  5820. d.stacking && d.options.stackLabels && !d.options.stackLabels.allowOverlap && N(d.stacking.stacks, function(u) {
  5821. N(u, function(A) {
  5822. A.label && A.label.visibility !== "hidden" && v.push(A.label);
  5823. });
  5824. });
  5825. }), (this.series || []).forEach(function(d) {
  5826. var u = d.options.dataLabels;
  5827. d.visible && (u.enabled !== !1 || d._hasPointLabels) && (u = function(A) {
  5828. return A.forEach(function(O) {
  5829. O.visible && (U(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(B) {
  5830. var C = B.options;
  5831. B.labelrank = R(C.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), C.allowOverlap ? (B.oldOpacity = B.opacity, B.newOpacity = 1, I(B, S)) : v.push(B);
  5832. });
  5833. });
  5834. }, u(d.nodes || []), u(d.points));
  5835. }), this.hideOverlappingLabels(v);
  5836. }), y.prototype.hideOverlappingLabels = function(S) {
  5837. var v = this, d = S.length, u = v.renderer, A, O, B, C = !1, b = function(a) {
  5838. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, h;
  5839. if (a && (!a.alignAttr || a.placed)) {
  5840. var o = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  5841. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = u.fontMetrics(null, a.element).h);
  5842. var s = a.width - 2 * p;
  5843. return (h = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +h * s : F(a.x) && Math.round(a.x) !== a.translateX && (i = a.x - a.translateX), { x: o.x + (t.translateX || 0) + p - (i || 0), y: o.y + (t.translateY || 0) + p - c, width: a.width - 2 * p, height: a.height - 2 * p };
  5844. }
  5845. };
  5846. for (O = 0; O < d; O++)
  5847. (A = S[O]) && (A.oldOpacity = A.opacity, A.newOpacity = 1, A.absoluteBox = b(A));
  5848. for (S.sort(function(a, c) {
  5849. return (c.labelrank || 0) - (a.labelrank || 0);
  5850. }), O = 0; O < d; O++) {
  5851. var w = (b = S[O]) && b.absoluteBox;
  5852. for (A = O + 1; A < d; ++A) {
  5853. var x = (B = S[A]) && B.absoluteBox;
  5854. !w || !x || b === B || b.newOpacity === 0 || B.newOpacity === 0 || x.x >= w.x + w.width || x.x + x.width <= w.x || x.y >= w.y + w.height || x.y + x.height <= w.y || ((b.labelrank < B.labelrank ? b : B).newOpacity = 0);
  5855. }
  5856. }
  5857. S.forEach(function(a) {
  5858. I(a, v) && (C = !0);
  5859. }), C && H(v, "afterHideAllOverlappingLabels");
  5860. };
  5861. }), E(
  5862. l,
  5863. "Core/Responsive.js",
  5864. [l["Core/Utilities.js"]],
  5865. function(y) {
  5866. var j = y.extend, I = y.find, Z = y.isArray, H = y.isObject, U = y.merge, F = y.objectEach, N = y.pick, R = y.splat, S = y.uniqueKey, v;
  5867. return function(d) {
  5868. var u = [];
  5869. d.compose = function(O) {
  5870. return u.indexOf(O) === -1 && (u.push(O), j(O.prototype, A.prototype)), O;
  5871. };
  5872. var A = function() {
  5873. function O() {
  5874. }
  5875. return O.prototype.currentOptions = function(B) {
  5876. function C(x, a, c, p) {
  5877. var i;
  5878. F(x, function(h, o) {
  5879. if (!p && -1 < b.collectionsWithUpdate.indexOf(o) && a[o])
  5880. for (h = R(h), c[o] = [], i = 0; i < Math.max(h.length, a[o].length); i++)
  5881. a[o][i] && (h[i] === void 0 ? c[o][i] = a[o][i] : (c[o][i] = {}, C(h[i], a[o][i], c[o][i], p + 1)));
  5882. else
  5883. H(h) ? (c[o] = Z(h) ? [] : {}, C(h, a[o] || {}, c[o], p + 1)) : c[o] = typeof a[o] > "u" ? null : a[o];
  5884. });
  5885. }
  5886. var b = this, w = {};
  5887. return C(B, this.options, w, 0), w;
  5888. }, O.prototype.matchResponsiveRule = function(B, C) {
  5889. var b = B.condition;
  5890. (b.callback || function() {
  5891. return this.chartWidth <= N(b.maxWidth, Number.MAX_VALUE) && this.chartHeight <= N(b.maxHeight, Number.MAX_VALUE) && this.chartWidth >= N(b.minWidth, 0) && this.chartHeight >= N(b.minHeight, 0);
  5892. }).call(this) && C.push(B._id);
  5893. }, O.prototype.setResponsive = function(B, C) {
  5894. var b = this, w = this.options.responsive, x = this.currentResponsive, a = [];
  5895. !C && w && w.rules && w.rules.forEach(function(c) {
  5896. typeof c._id > "u" && (c._id = S()), b.matchResponsiveRule(c, a);
  5897. }, this), C = U.apply(void 0, a.map(function(c) {
  5898. return I((w || {}).rules || [], function(p) {
  5899. return p._id === c;
  5900. });
  5901. }).map(function(c) {
  5902. return c && c.chartOptions;
  5903. })), C.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (x && x.ruleIds) && (x && this.update(x.undoOptions, B, !0), a ? (x = this.currentOptions(C), x.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: C, undoOptions: x }, this.update(C, B, !0)) : this.currentResponsive = void 0);
  5904. }, O;
  5905. }();
  5906. }(v || (v = {})), v;
  5907. }
  5908. ), E(l, "masters/highcharts.src.js", [
  5909. l["Core/Globals.js"],
  5910. l["Core/Utilities.js"],
  5911. l["Core/DefaultOptions.js"],
  5912. l["Core/Animation/Fx.js"],
  5913. l["Core/Animation/AnimationUtilities.js"],
  5914. l["Core/Renderer/HTML/AST.js"],
  5915. l["Core/FormatUtilities.js"],
  5916. l["Core/Renderer/RendererUtilities.js"],
  5917. l["Core/Renderer/SVG/SVGElement.js"],
  5918. l["Core/Renderer/SVG/SVGRenderer.js"],
  5919. l["Core/Renderer/HTML/HTMLElement.js"],
  5920. l["Core/Renderer/HTML/HTMLRenderer.js"],
  5921. l["Core/Axis/Axis.js"],
  5922. l["Core/Axis/DateTimeAxis.js"],
  5923. l["Core/Axis/LogarithmicAxis.js"],
  5924. l["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  5925. l["Core/Axis/Tick.js"],
  5926. l["Core/Tooltip.js"],
  5927. l["Core/Series/Point.js"],
  5928. l["Core/Pointer.js"],
  5929. l["Core/MSPointer.js"],
  5930. l["Core/Legend/Legend.js"],
  5931. l["Core/Chart/Chart.js"],
  5932. l["Core/Series/Series.js"],
  5933. l["Core/Series/SeriesRegistry.js"],
  5934. l["Series/Column/ColumnSeries.js"],
  5935. l["Series/Column/ColumnDataLabel.js"],
  5936. l["Series/Pie/PieSeries.js"],
  5937. l["Series/Pie/PieDataLabel.js"],
  5938. l["Core/Series/DataLabel.js"],
  5939. l["Core/Responsive.js"],
  5940. l["Core/Color/Color.js"],
  5941. l["Core/Time.js"]
  5942. ], function(y, j, I, Z, H, U, F, N, R, S, v, d, u, A, O, B, C, b, w, x, a, c, p, i, h, o, t, s, n, T, _, D, W) {
  5943. return y.animate = H.animate, y.animObject = H.animObject, y.getDeferredAnimation = H.getDeferredAnimation, y.setAnimation = H.setAnimation, y.stop = H.stop, y.timers = Z.timers, y.AST = U, y.Axis = u, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = B, y.Point = w, y.Pointer = a.isRequired() ? a : x, y.Series = i, y.SVGElement = R, y.SVGRenderer = S, y.Tick = C, y.Time = W, y.Tooltip = b, y.Color = D, y.color = D.parse, d.compose(S), v.compose(R), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = F.dateFormat, y.format = F.format, y.numberFormat = F.numberFormat, y.addEvent = j.addEvent, y.arrayMax = j.arrayMax, y.arrayMin = j.arrayMin, y.attr = j.attr, y.clearTimeout = j.clearTimeout, y.correctFloat = j.correctFloat, y.createElement = j.createElement, y.css = j.css, y.defined = j.defined, y.destroyObjectProperties = j.destroyObjectProperties, y.discardElement = j.discardElement, y.distribute = N.distribute, y.erase = j.erase, y.error = j.error, y.extend = j.extend, y.extendClass = j.extendClass, y.find = j.find, y.fireEvent = j.fireEvent, y.getMagnitude = j.getMagnitude, y.getStyle = j.getStyle, y.inArray = j.inArray, y.isArray = j.isArray, y.isClass = j.isClass, y.isDOMElement = j.isDOMElement, y.isFunction = j.isFunction, y.isNumber = j.isNumber, y.isObject = j.isObject, y.isString = j.isString, y.keys = j.keys, y.merge = j.merge, y.normalizeTickInterval = j.normalizeTickInterval, y.objectEach = j.objectEach, y.offset = j.offset, y.pad = j.pad, y.pick = j.pick, y.pInt = j.pInt, y.relativeLength = j.relativeLength, y.removeEvent = j.removeEvent, y.seriesType = h.seriesType, y.splat = j.splat, y.stableSort = j.stableSort, y.syncTimeout = j.syncTimeout, y.timeUnits = j.timeUnits, y.uniqueKey = j.uniqueKey, y.useSerialIds = j.useSerialIds, y.wrap = j.wrap, t.compose(o), T.compose(i), A.compose(u), O.compose(u), n.compose(s), B.compose(u), _.compose(p), y;
  5944. }), E(l, "Core/Axis/OrdinalAxis.js", [
  5945. l["Core/Axis/Axis.js"],
  5946. l["Core/Globals.js"],
  5947. l["Core/Series/Series.js"],
  5948. l["Core/Utilities.js"]
  5949. ], function(y, j, I, Z) {
  5950. var H = Z.addEvent, U = Z.correctFloat, F = Z.css, N = Z.defined, R = Z.error, S = Z.pick, v = Z.timeUnits, d = [], u;
  5951. return function(A) {
  5952. function O(t, s, n, T, _, D, W) {
  5953. _ === void 0 && (_ = []), D === void 0 && (D = 0);
  5954. var P = {}, X = this.options.tickPixelInterval, g = this.chart.time, m = [], L, Y, V = 0, Q = [], k = -Number.MAX_VALUE;
  5955. if (!this.options.ordinal && !this.options.breaks || !_ || 3 > _.length || typeof s > "u")
  5956. return g.getTimeTicks.apply(g, arguments);
  5957. var G = _.length;
  5958. for (L = 0; L < G; L++) {
  5959. var z = L && _[L - 1] > n;
  5960. if (_[L] < s && (V = L), L === G - 1 || _[L + 1] - _[L] > 5 * D || z) {
  5961. if (_[L] > k) {
  5962. for (Y = g.getTimeTicks(t, _[V], _[L], T); Y.length && Y[0] <= k; )
  5963. Y.shift();
  5964. Y.length && (k = Y[Y.length - 1]), m.push(Q.length), Q = Q.concat(Y);
  5965. }
  5966. V = L + 1;
  5967. }
  5968. if (z)
  5969. break;
  5970. }
  5971. if (Y) {
  5972. if (Y = Y.info, W && Y.unitRange <= v.hour) {
  5973. for (L = Q.length - 1, V = 1; V < L; V++)
  5974. if (g.dateFormat("%d", Q[V]) !== g.dateFormat("%d", Q[V - 1])) {
  5975. P[Q[V]] = "day";
  5976. var $ = !0;
  5977. }
  5978. $ && (P[Q[0]] = "day"), Y.higherRanks = P;
  5979. }
  5980. Y.segmentStarts = m, Q.info = Y;
  5981. } else
  5982. R(12, !1, this.chart);
  5983. if (W && N(X)) {
  5984. for (Y = Q.length, g = [], V = [], L = void 0, $ = Y; $--; )
  5985. m = this.translate(Q[$]), L && (V[$] = L - m), g[$] = L = m;
  5986. for (V.sort(), V = V[Math.floor(V.length / 2)], V < 0.6 * X && (V = null), $ = Q[Y - 1] > n ? Y - 1 : Y, L = void 0; $--; )
  5987. m = g[$], Y = Math.abs(L - m), L && Y < 0.8 * X && (V === null || Y < 0.8 * V) ? (P[Q[$]] && !P[Q[$ + 1]] ? (Y = $ + 1, L = m) : Y = $, Q.splice(Y, 1)) : L = m;
  5988. }
  5989. return Q;
  5990. }
  5991. function B(t) {
  5992. var s = this.ordinal.positions;
  5993. if (!s)
  5994. return t;
  5995. var n = s.length - 1;
  5996. if (0 > t)
  5997. t = s[0];
  5998. else if (t > n)
  5999. t = s[n];
  6000. else {
  6001. n = Math.floor(t);
  6002. var T = t - n;
  6003. }
  6004. return typeof T < "u" && typeof s[n] < "u" ? s[n] + (T ? T * (s[n + 1] - s[n]) : 0) : t;
  6005. }
  6006. function C(t) {
  6007. var s = this.ordinal, n = s.positions;
  6008. if (!n)
  6009. return t;
  6010. var T = (t - (this.old ? this.old.min : this.min)) * (this.old ? this.old.transA : this.transA) + this.minPixelPadding;
  6011. if (0 < T && T < this.left + this.len || (s.extendedOrdinalPositions || (s.extendedOrdinalPositions = s.getExtendedPositions()), n = s.extendedOrdinalPositions), n && n.length) {
  6012. if (t = s.getIndexOfPoint(T, n), s = U(t % 1), 0 <= t && t < n.length - 1)
  6013. return n[Math.floor(t)] + s * (n[Math.ceil(t)] - n[Math.floor(t)]);
  6014. s = n.length, T = n[0], n = n[s - 1];
  6015. var _ = (n - T) / (s - 1);
  6016. return 0 > t ? T + _ * t : n + _ * (t - s);
  6017. }
  6018. return t;
  6019. }
  6020. function b(t, s) {
  6021. var n = A.Additions.findIndexOf(t, s, !0);
  6022. return t[n] === s ? n : n + (s - t[n]) / (t[n + 1] - t[n]);
  6023. }
  6024. function w() {
  6025. this.ordinal || (this.ordinal = new A.Additions(this));
  6026. }
  6027. function x() {
  6028. this.isXAxis && N(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 && N(this.userMin) && (this.min += this.options.overscroll));
  6029. }
  6030. function a() {
  6031. this.horiz && !this.isDirty && (this.isDirty = this.isOrdinal && this.chart.navigator && !this.chart.navigator.adaptToUpdatedData);
  6032. }
  6033. function c() {
  6034. this.ordinal && (this.ordinal.beforeSetTickPositions(), this.tickInterval = this.ordinal.postProcessTickInterval(this.tickInterval));
  6035. }
  6036. function p(t) {
  6037. var s = this.xAxis[0], n = s.options.overscroll, T = t.originalEvent.chartX, _ = this.options.chart.panning, D = !1;
  6038. if (_ && _.type !== "y" && s.options.ordinal && s.series.length) {
  6039. var W = this.mouseDownX, P = s.getExtremes(), X = P.dataMax, g = P.min, m = P.max, L = this.hoverPoints, Y = s.closestPointRange || s.ordinal && s.ordinal.overscrollPointsRange;
  6040. W = (W - T) / (s.translationSlope * (s.ordinal.slope || Y)), Y = { ordinal: { positions: s.ordinal.getExtendedPositions() } };
  6041. var V = s.index2val, Q = s.val2lin, k = void 0, G = k = void 0, z = void 0;
  6042. Y.ordinal.positions ? 1 < Math.abs(W) && (L && L.forEach(function($) {
  6043. $.setState();
  6044. }), 0 > W ? (G = Y, z = s.ordinal.positions ? s : Y) : (G = s.ordinal.positions ? s : Y, z = Y), k = z.ordinal.positions, X > k[k.length - 1] && k.push(X), this.fixedRange = m - g, k = s.navigatorAxis.toFixedRange(void 0, void 0, V.apply(G, [Q.apply(G, [g, !0]) + W]), V.apply(z, [Q.apply(z, [m, !0]) + W])), k.min >= Math.min(
  6045. P.dataMin,
  6046. g
  6047. ) && k.max <= Math.max(X, m) + n && s.setExtremes(k.min, k.max, !0, !1, { trigger: "pan" }), this.mouseDownX = T, F(this.container, { cursor: "move" })) : D = !0;
  6048. } else
  6049. D = !0;
  6050. D || _ && /y/.test(_.type) ? n && (s.max = s.dataMax + n) : t.preventDefault();
  6051. }
  6052. function i() {
  6053. var t = this.xAxis;
  6054. t && t.options.ordinal && (delete t.ordinal.index, delete t.ordinal.extendedOrdinalPositions);
  6055. }
  6056. function h(t, s) {
  6057. var n = this.ordinal, T = n.positions, _ = n.slope, D = n.extendedOrdinalPositions;
  6058. if (!T)
  6059. return t;
  6060. var W = T.length;
  6061. if (T[0] <= t && T[W - 1] >= t)
  6062. t = b(T, t);
  6063. else {
  6064. if (D || (D = n.getExtendedPositions && n.getExtendedPositions(), n.extendedOrdinalPositions = D), !D || !D.length)
  6065. return t;
  6066. W = D.length, _ || (_ = (D[W - 1] - D[0]) / W), T = b(D, T[0]), t >= D[0] && t <= D[W - 1] ? t = b(D, t) - T : t < D[0] ? (t = D[0] - t, t = -T - t / _) : (t -= D[W - 1], t = t / _ + W - T);
  6067. }
  6068. return s ? t : _ * (t || 0) + n.offset;
  6069. }
  6070. A.compose = function(t, s, n) {
  6071. if (d.indexOf(t) === -1) {
  6072. d.push(t);
  6073. var T = t.prototype;
  6074. T.getTimeTicks = O, T.index2val = B, T.lin2val = C, T.val2lin = h, T.ordinal2lin = T.val2lin, H(t, "afterInit", w), H(t, "foundExtremes", x), H(t, "afterSetScale", a), H(t, "initialAxisTranslation", c);
  6075. }
  6076. return d.indexOf(n) === -1 && (d.push(n), H(n, "pan", p)), d.indexOf(s) === -1 && (d.push(s), H(s, "updatedData", i)), t;
  6077. };
  6078. var o = function() {
  6079. function t(s) {
  6080. this.index = {}, this.axis = s;
  6081. }
  6082. return t.prototype.beforeSetTickPositions = function() {
  6083. var s = this.axis, n = s.ordinal, T = s.getExtremes(), _ = T.min, D = T.max, W = s.isXAxis && !!s.options.breaks;
  6084. T = s.options.ordinal;
  6085. var P = s.chart.options.chart.ignoreHiddenSeries, X, g, m = [], L = Number.MAX_VALUE, Y = !1;
  6086. if (T || W) {
  6087. s.series.forEach(function(k, G) {
  6088. if (X = [], !(P && k.visible === !1 || k.takeOrdinalPosition === !1 && !W) && (m = m.concat(k.processedXData), V = m.length, m.sort(function(z, $) {
  6089. return z - $;
  6090. }), L = Math.min(L, S(k.closestPointRange, L)), V)) {
  6091. for (G = 0; G < V - 1; )
  6092. m[G] !== m[G + 1] && X.push(m[G + 1]), G++;
  6093. X[0] !== m[0] && X.unshift(m[0]), m = X;
  6094. }
  6095. });
  6096. var V = m.length;
  6097. if (2 < V) {
  6098. var Q = m[1] - m[0];
  6099. for (g = V - 1; g-- && !Y; )
  6100. m[g + 1] - m[g] !== Q && (Y = !0);
  6101. !s.options.keepOrdinalPadding && (m[0] - _ > Q || D - m[m.length - 1] > Q) && (Y = !0);
  6102. } else
  6103. s.options.overscroll && (V === 2 ? L = m[1] - m[0] : V === 1 ? (L = s.options.overscroll, m = [m[0], m[0] + L]) : L = n.overscrollPointsRange);
  6104. Y || s.forceOrdinal ? (s.options.overscroll && (n.overscrollPointsRange = L, m = m.concat(n.getOverscrollPositions())), n.positions = m, Q = s.ordinal2lin(Math.max(_, m[0]), !0), g = Math.max(s.ordinal2lin(Math.min(D, m[m.length - 1]), !0), 1), n.slope = D = (D - _) / (g - Q), n.offset = _ - Q * D) : (n.overscrollPointsRange = S(s.closestPointRange, n.overscrollPointsRange), n.positions = s.ordinal.slope = n.offset = void 0);
  6105. }
  6106. s.isOrdinal = T && Y, n.groupIntervalFactor = null;
  6107. }, t.findIndexOf = function(s, n, T) {
  6108. for (var _ = 0, D = s.length - 1, W; _ < D; )
  6109. W = Math.ceil((_ + D) / 2), s[W] <= n ? _ = W : D = W - 1;
  6110. return s[_] === n || T ? _ : -1;
  6111. }, t.prototype.getExtendedPositions = function() {
  6112. var s = this, n = s.axis, T = n.constructor.prototype, _ = n.chart, D = n.series[0].currentDataGrouping, W = D ? D.count + D.unitName : "raw", P = n.options.overscroll, X = n.getExtremes(), g = void 0, m = s.index;
  6113. if (m || (m = s.index = {}), !m[W]) {
  6114. var L = {
  6115. series: [],
  6116. chart: _,
  6117. forceOrdinal: !1,
  6118. getExtremes: function() {
  6119. return { min: X.dataMin, max: X.dataMax + P };
  6120. },
  6121. getGroupPixelWidth: T.getGroupPixelWidth,
  6122. getTimeTicks: T.getTimeTicks,
  6123. options: { ordinal: !0 },
  6124. ordinal: { getGroupIntervalFactor: this.getGroupIntervalFactor },
  6125. ordinal2lin: T.ordinal2lin,
  6126. getIndexOfPoint: T.getIndexOfPoint,
  6127. val2lin: T.val2lin
  6128. };
  6129. L.ordinal.axis = L, n.series.forEach(function(Y) {
  6130. g = { xAxis: L, xData: Y.xData.slice(), chart: _, destroyGroupedData: j.noop, getProcessedData: I.prototype.getProcessedData, applyGrouping: I.prototype.applyGrouping }, g.xData = g.xData.concat(s.getOverscrollPositions()), g.options = { dataGrouping: D ? { firstAnchor: "firstPoint", anchor: "middle", lastAnchor: "lastPoint", enabled: !0, forced: !0, approximation: "open", units: [[D.unitName, [D.count]]] } : { enabled: !1 } }, L.series.push(g), Y.processData.apply(g);
  6131. }), g.closestPointRange !== g.basePointRange && g.currentDataGrouping && (L.forceOrdinal = !0), n.ordinal.beforeSetTickPositions.apply({ axis: L }), m[W] = L.ordinal.positions;
  6132. }
  6133. return m[W];
  6134. }, t.prototype.getGroupIntervalFactor = function(s, n, T) {
  6135. T = T.processedXData;
  6136. var _ = T.length, D = [], W = this.groupIntervalFactor;
  6137. if (!W) {
  6138. for (W = 0; W < _ - 1; W++)
  6139. D[W] = T[W + 1] - T[W];
  6140. D.sort(function(P, X) {
  6141. return P - X;
  6142. }), D = D[Math.floor(_ / 2)], s = Math.max(s, T[0]), n = Math.min(n, T[_ - 1]), this.groupIntervalFactor = W = _ * D / (n - s);
  6143. }
  6144. return W;
  6145. }, t.prototype.getIndexOfPoint = function(s, n) {
  6146. var T = this.axis, _ = this.positions ? this.positions[0] : 0, D = T.series[0].points && T.series[0].points[0] && T.series[0].points[0].plotX || T.minPixelPadding;
  6147. return 1 < T.series.length && T.series.forEach(function(W) {
  6148. W.points && N(W.points[0]) && N(W.points[0].plotX) && W.points[0].plotX < D && (D = W.points[0].plotX);
  6149. }), s = (s - D) / (T.translationSlope * (this.slope || T.closestPointRange || this.overscrollPointsRange)), t.findIndexOf(n, _) + s;
  6150. }, t.prototype.getOverscrollPositions = function() {
  6151. var s = this.axis, n = s.options.overscroll, T = this.overscrollPointsRange, _ = [], D = s.dataMax;
  6152. if (N(T))
  6153. for (; D <= s.dataMax + n; )
  6154. D += T, _.push(D);
  6155. return _;
  6156. }, t.prototype.postProcessTickInterval = function(s) {
  6157. var n = this.axis, T = this.slope;
  6158. return T ? n.options.breaks ? n.closestPointRange || s : s / (T / n.closestPointRange) : s;
  6159. }, t;
  6160. }();
  6161. A.Additions = o;
  6162. }(u || (u = {})), u;
  6163. }), E(l, "Series/DataModifyComposition.js", [l["Core/Axis/Axis.js"], l["Core/Series/Point.js"], l["Core/Series/Series.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  6164. var H = j.prototype.tooltipFormatter, U = Z.addEvent, F = Z.arrayMax, N = Z.arrayMin, R = Z.correctFloat, S = Z.defined, v = Z.isArray, d = Z.isNumber, u = Z.isString, A = Z.pick, O;
  6165. return function(B) {
  6166. function C(s, n, T) {
  6167. this.isXAxis || (this.series.forEach(function(_) {
  6168. s === "compare" && typeof n != "boolean" ? _.setCompare(n, !1) : s !== "cumulative" || u(n) || _.setCumulative(n, !1);
  6169. }), A(T, !0) && this.chart.redraw());
  6170. }
  6171. function b(s) {
  6172. var n = this, T = n.series.chart.numberFormatter, _ = function(D) {
  6173. s = s.replace("{point." + D + "}", (0 < n[D] && D === "change" ? "+" : "") + T(n[D], A(n.series.tooltipOptions.changeDecimals, 2)));
  6174. };
  6175. return S(n.change) && _("change"), S(n.cumulativeSum) && _("cumulativeSum"), H.apply(this, [s]);
  6176. }
  6177. function w() {
  6178. var s = this.options.compare;
  6179. if (s === "percent" || s === "value" || this.options.cumulative) {
  6180. var n = new t(this);
  6181. s === "percent" || s === "value" ? n.initCompare(s) : n.initCumulative();
  6182. }
  6183. this.dataModify = n;
  6184. }
  6185. function x(s) {
  6186. s = s.dataExtremes;
  6187. var n = s.activeYData;
  6188. if (this.dataModify && s) {
  6189. var T = void 0;
  6190. this.options.compare ? T = [this.dataModify.modifyValue(s.dataMin), this.dataModify.modifyValue(s.dataMax)] : this.options.cumulative && v(n) && 2 <= n.length && (T = t.getCumulativeExtremes(n)), T && (s.dataMin = N(T), s.dataMax = F(T));
  6191. }
  6192. }
  6193. function a(s, n) {
  6194. this.options.compare = this.userOptions.compare = s, this.update({}, A(n, !0)), !this.dataModify || s !== "value" && s !== "percent" ? this.points.forEach(function(T) {
  6195. delete T.change;
  6196. }) : this.dataModify.initCompare(s);
  6197. }
  6198. function c() {
  6199. if (this.xAxis && this.processedYData && this.dataModify) {
  6200. var s = this.processedXData, n = this.processedYData, T = n.length, _ = this.options.compareStart === !0 ? 0 : 1, D = -1, W;
  6201. for (this.pointArrayMap && (D = this.pointArrayMap.indexOf(this.options.pointValKey || this.pointValKey || "y")), W = 0; W < T - _; W++) {
  6202. var P = n[W] && -1 < D ? n[W][D] : n[W];
  6203. if (d(P) && P !== 0 && s[W + _] >= (this.xAxis.min || 0)) {
  6204. this.dataModify.compareValue = P;
  6205. break;
  6206. }
  6207. }
  6208. }
  6209. }
  6210. function p(s, n) {
  6211. this.setModifier("compare", s, n);
  6212. }
  6213. function i(s, n) {
  6214. s = A(s, !1), this.options.cumulative = this.userOptions.cumulative = s, this.update({}, A(n, !0)), this.dataModify ? this.dataModify.initCumulative() : this.points.forEach(function(T) {
  6215. delete T.cumulativeSum;
  6216. });
  6217. }
  6218. function h(s, n) {
  6219. this.setModifier("cumulative", s, n);
  6220. }
  6221. var o = [];
  6222. B.compose = function(s, n, T) {
  6223. if (o.indexOf(s) === -1) {
  6224. o.push(s);
  6225. var _ = s.prototype;
  6226. _.setCompare = a, _.setCumulative = i, U(s, "afterInit", w), U(s, "afterGetExtremes", x), U(s, "afterProcessData", c);
  6227. }
  6228. return o.indexOf(n) === -1 && (o.push(n), n = n.prototype, n.setCompare = p, n.setModifier = C, n.setCumulative = h), o.indexOf(T) === -1 && (o.push(T), T.prototype.tooltipFormatter = b), s;
  6229. };
  6230. var t = function() {
  6231. function s(n) {
  6232. this.series = n;
  6233. }
  6234. return s.prototype.modifyValue = function() {
  6235. return 0;
  6236. }, s.getCumulativeExtremes = function(n) {
  6237. var T = 1 / 0, _ = -1 / 0;
  6238. return n.reduce(function(D, W) {
  6239. return W = D + W, T = Math.min(T, W, D), _ = Math.max(
  6240. _,
  6241. W,
  6242. D
  6243. ), W;
  6244. }), [T, _];
  6245. }, s.prototype.initCompare = function(n) {
  6246. this.modifyValue = function(T, _) {
  6247. T === null && (T = 0);
  6248. var D = this.compareValue;
  6249. return typeof T < "u" && typeof D < "u" ? (T = n === "value" ? T - D : T / D * 100 - (this.series.options.compareBase === 100 ? 0 : 100), typeof _ < "u" && (_ = this.series.points[_]) && (_.change = T), T) : 0;
  6250. };
  6251. }, s.prototype.initCumulative = function() {
  6252. this.modifyValue = function(n, T) {
  6253. if (n === null && (n = 0), n !== void 0 && T !== void 0) {
  6254. var _ = 0 < T ? this.series.points[T - 1] : null;
  6255. return _ && _.cumulativeSum && (n = R(_.cumulativeSum + n)), (T = this.series.points[T]) && (T.cumulativeSum = n), n;
  6256. }
  6257. return 0;
  6258. };
  6259. }, s;
  6260. }();
  6261. B.Additions = t;
  6262. }(O || (O = {})), O;
  6263. }), E(l, "Core/Axis/BrokenAxis.js", [l["Extensions/Stacking.js"], l["Core/Utilities.js"]], function(y, j) {
  6264. var I = j.addEvent, Z = j.find, H = j.fireEvent, U = j.isArray, F = j.isNumber, N = j.pick, R;
  6265. return function(S) {
  6266. function v() {
  6267. typeof this.brokenAxis < "u" && this.brokenAxis.setBreaks(this.options.breaks, !1);
  6268. }
  6269. function d() {
  6270. this.brokenAxis && this.brokenAxis.hasBreaks && (this.options.ordinal = !1);
  6271. }
  6272. function u() {
  6273. var a = this.brokenAxis;
  6274. if (a && a.hasBreaks) {
  6275. for (var c = this.tickPositions, p = this.tickPositions.info, i = [], h = 0; h < c.length; h++)
  6276. a.isInAnyBreak(c[h]) || i.push(c[h]);
  6277. this.tickPositions = i, this.tickPositions.info = p;
  6278. }
  6279. }
  6280. function A() {
  6281. this.brokenAxis || (this.brokenAxis = new x(this));
  6282. }
  6283. function O() {
  6284. var a = this.options.connectNulls, c = this.points, p = this.xAxis, i = this.yAxis;
  6285. if (this.isDirty)
  6286. for (var h = c.length; h--; ) {
  6287. var o = c[h], t = !(o.y === null && a === !1) && (p && p.brokenAxis && p.brokenAxis.isInAnyBreak(o.x, !0) || i && i.brokenAxis && i.brokenAxis.isInAnyBreak(o.y, !0));
  6288. o.visible = t ? !1 : o.options.visible !== !1;
  6289. }
  6290. }
  6291. function B() {
  6292. this.drawBreaks(this.xAxis, ["x"]), this.drawBreaks(this.yAxis, N(this.pointArrayMap, ["y"]));
  6293. }
  6294. function C(a, c) {
  6295. var p = this, i = p.points, h, o, t, s;
  6296. if (a && a.brokenAxis && a.brokenAxis.hasBreaks) {
  6297. var n = a.brokenAxis;
  6298. c.forEach(function(T) {
  6299. h = n && n.breakArray || [], o = a.isXAxis ? a.min : N(p.options.threshold, a.min), i.forEach(function(_) {
  6300. s = N(_["stack" + T.toUpperCase()], _[T]), h.forEach(function(D) {
  6301. F(o) && F(s) && (t = !1, o < D.from && s > D.to || o > D.from && s < D.from ? t = "pointBreak" : (o < D.from && s > D.from && s < D.to || o > D.from && s > D.to && s < D.from) && (t = "pointInBreak"), t && H(a, t, { point: _, brk: D }));
  6302. });
  6303. });
  6304. });
  6305. }
  6306. }
  6307. function b() {
  6308. var a = this.currentDataGrouping, c = a && a.gapSize;
  6309. a = this.points.slice();
  6310. var p = this.yAxis, i = this.options.gapSize, h = a.length - 1, o;
  6311. if (i && 0 < h)
  6312. for (this.options.gapUnit !== "value" && (i *= this.basePointRange), c && c > i && c >= this.basePointRange && (i = c), o = void 0; h--; )
  6313. o && o.visible !== !1 || (o = a[h + 1]), c = a[h], o.visible !== !1 && c.visible !== !1 && (o.x - c.x > i && (o = (c.x + o.x) / 2, a.splice(h + 1, 0, { isNull: !0, x: o }), p.stacking && this.options.stacking && (o = p.stacking.stacks[this.stackKey][o] = new y(p, p.options.stackLabels, !1, o, this.stack), o.total = 0)), o = c);
  6314. return this.getGraphPath(a);
  6315. }
  6316. var w = [];
  6317. S.compose = function(a, c) {
  6318. if (w.indexOf(a) === -1 && (w.push(a), a.keepProps.push("brokenAxis"), I(a, "init", A), I(a, "afterInit", v), I(a, "afterSetTickPositions", u), I(a, "afterSetOptions", d)), w.indexOf(c) === -1) {
  6319. w.push(c);
  6320. var p = c.prototype;
  6321. p.drawBreaks = C, p.gappedPath = b, I(c, "afterGeneratePoints", O), I(
  6322. c,
  6323. "afterRender",
  6324. B
  6325. );
  6326. }
  6327. return a;
  6328. };
  6329. var x = function() {
  6330. function a(c) {
  6331. this.hasBreaks = !1, this.axis = c;
  6332. }
  6333. return a.isInBreak = function(c, p) {
  6334. var i = c.repeat || 1 / 0, h = c.from, o = c.to - c.from;
  6335. return p = p >= h ? (p - h) % i : i - (h - p) % i, c.inclusive ? p <= o : p < o && p !== 0;
  6336. }, a.lin2Val = function(c) {
  6337. var p = this.brokenAxis;
  6338. if (p = p && p.breakArray, !p || !F(c))
  6339. return c;
  6340. var i;
  6341. for (i = 0; i < p.length; i++) {
  6342. var h = p[i];
  6343. if (h.from >= c)
  6344. break;
  6345. (h.to < c || a.isInBreak(h, c)) && (c += h.len);
  6346. }
  6347. return c;
  6348. }, a.val2Lin = function(c) {
  6349. var p = this.brokenAxis;
  6350. if (p = p && p.breakArray, !p || !F(c))
  6351. return c;
  6352. var i = c, h;
  6353. for (h = 0; h < p.length; h++) {
  6354. var o = p[h];
  6355. if (o.to <= c)
  6356. i -= o.len;
  6357. else {
  6358. if (o.from >= c)
  6359. break;
  6360. if (a.isInBreak(o, c)) {
  6361. i -= c - o.from;
  6362. break;
  6363. }
  6364. }
  6365. }
  6366. return i;
  6367. }, a.prototype.findBreakAt = function(c, p) {
  6368. return Z(p, function(i) {
  6369. return i.from < c && c < i.to;
  6370. });
  6371. }, a.prototype.isInAnyBreak = function(c, p) {
  6372. var i = this.axis, h = i.options.breaks || [], o = h.length, t;
  6373. if (o && F(c)) {
  6374. for (; o--; )
  6375. if (a.isInBreak(h[o], c)) {
  6376. var s = !0;
  6377. t || (t = N(h[o].showPoints, !i.isXAxis));
  6378. }
  6379. var n = s && p ? s && !t : s;
  6380. }
  6381. return n;
  6382. }, a.prototype.setBreaks = function(c, p) {
  6383. var i = this, h = i.axis, o = U(c) && !!c.length;
  6384. h.isDirty = i.hasBreaks !== o, i.hasBreaks = o, h.options.breaks = h.userOptions.breaks = c, h.forceRedraw = !0, h.series.forEach(function(t) {
  6385. t.isDirty = !0;
  6386. }), o || h.val2lin !== a.val2Lin || (delete h.val2lin, delete h.lin2val), o && (h.userOptions.ordinal = !1, h.lin2val = a.lin2Val, h.val2lin = a.val2Lin, h.setExtremes = function(t, s, n, T, _) {
  6387. if (i.hasBreaks) {
  6388. for (var D = this.options.breaks || [], W; W = i.findBreakAt(t, D); )
  6389. t = W.to;
  6390. for (; W = i.findBreakAt(s, D); )
  6391. s = W.from;
  6392. s < t && (s = t);
  6393. }
  6394. h.constructor.prototype.setExtremes.call(this, t, s, n, T, _);
  6395. }, h.setAxisTranslation = function() {
  6396. if (h.constructor.prototype.setAxisTranslation.call(this), i.unitLength = void 0, i.hasBreaks) {
  6397. var t = h.options.breaks || [], s = [], n = [], T = N(h.pointRangePadding, 0), _ = 0, D, W = h.userMin || h.min, P = h.userMax || h.max, X;
  6398. t.forEach(function(L) {
  6399. D = L.repeat || 1 / 0, F(W) && F(P) && (a.isInBreak(L, W) && (W += L.to % D - W % D), a.isInBreak(L, P) && (P -= P % D - L.from % D));
  6400. }), t.forEach(function(L) {
  6401. if (m = L.from, D = L.repeat || 1 / 0, F(W) && F(P)) {
  6402. for (; m - D > W; )
  6403. m -= D;
  6404. for (; m < W; )
  6405. m += D;
  6406. for (X = m; X < P; X += D)
  6407. s.push({ value: X, move: "in" }), s.push({ value: X + L.to - L.from, move: "out", size: L.breakSize });
  6408. }
  6409. }), s.sort(function(L, Y) {
  6410. return L.value === Y.value ? (L.move === "in" ? 0 : 1) - (Y.move === "in" ? 0 : 1) : L.value - Y.value;
  6411. });
  6412. var g = 0, m = W;
  6413. s.forEach(function(L) {
  6414. 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) }), _ += L.value - m - (L.size || 0));
  6415. }), i.breakArray = n, F(W) && F(P) && F(h.min) && (i.unitLength = P - W - _ + T, H(h, "afterBreaks"), h.staticScale ? h.transA = h.staticScale : i.unitLength && (h.transA *= (P - h.min + T) / i.unitLength), T && (h.minPixelPadding = h.transA * (h.minPointOffset || 0)), h.min = W, h.max = P);
  6416. }
  6417. }), N(p, !0) && h.chart.redraw();
  6418. }, a;
  6419. }();
  6420. S.Additions = x;
  6421. }(R || (R = {})), R;
  6422. }), E(l, "masters/modules/broken-axis.src.js", [l["Core/Globals.js"], l["Core/Axis/BrokenAxis.js"]], function(y, j) {
  6423. j.compose(y.Axis, y.Series);
  6424. }), E(l, "Extensions/DataGrouping.js", [
  6425. l["Core/Axis/Axis.js"],
  6426. l["Core/Axis/DateTimeAxis.js"],
  6427. l["Core/FormatUtilities.js"],
  6428. l["Core/Globals.js"],
  6429. l["Core/Series/Point.js"],
  6430. l["Core/Series/Series.js"],
  6431. l["Core/Tooltip.js"],
  6432. l["Core/DefaultOptions.js"],
  6433. l["Core/Utilities.js"]
  6434. ], function(y, j, I, Z, H, U, F, N, R) {
  6435. var S = I.format, v = U.prototype;
  6436. I = R.addEvent;
  6437. var d = R.arrayMax, u = R.arrayMin, A = R.correctFloat, O = R.defined, B = R.error, C = R.extend, b = R.isNumber, w = R.merge, x = R.pick, a = Z.approximations = {
  6438. sum: function(t) {
  6439. var s = t.length;
  6440. if (!s && t.hasNulls)
  6441. var n = null;
  6442. else if (s)
  6443. for (n = 0; s--; )
  6444. n += t[s];
  6445. return n;
  6446. },
  6447. average: function(t) {
  6448. var s = t.length;
  6449. return t = a.sum(t), b(t) && s && (t = A(t / s)), t;
  6450. },
  6451. averages: function() {
  6452. var t = [];
  6453. return [].forEach.call(arguments, function(s) {
  6454. t.push(a.average(s));
  6455. }), typeof t[0] > "u" ? void 0 : t;
  6456. },
  6457. open: function(t) {
  6458. return t.length ? t[0] : t.hasNulls ? null : void 0;
  6459. },
  6460. high: function(t) {
  6461. return t.length ? d(t) : t.hasNulls ? null : void 0;
  6462. },
  6463. low: function(t) {
  6464. return t.length ? u(t) : t.hasNulls ? null : void 0;
  6465. },
  6466. close: function(t) {
  6467. return t.length ? t[t.length - 1] : t.hasNulls ? null : void 0;
  6468. },
  6469. hlc: function(t, s, n) {
  6470. if (t = a.high(t), s = a.low(s), n = a.close(n), b(t) || b(s) || b(n))
  6471. return [t, s, n];
  6472. },
  6473. ohlc: function(t, s, n, T) {
  6474. if (t = a.open(t), s = a.high(s), n = a.low(n), T = a.close(T), b(t) || b(s) || b(n) || b(T))
  6475. return [t, s, n, T];
  6476. },
  6477. range: function(t, s) {
  6478. if (t = a.low(t), s = a.high(s), b(t) || b(s))
  6479. return [t, s];
  6480. if (t === null && s === null)
  6481. return null;
  6482. }
  6483. };
  6484. R = function(t, s, n, T) {
  6485. var _ = this, D = _.data, W = _.options && _.options.data, P = [], X = [], g = [], m = t.length, L = !!s, Y = [], V = _.pointArrayMap, Q = V && V.length, k = ["x"].concat(V || ["y"]), G = this.options.dataGrouping && this.options.dataGrouping.groupAll, z = 0, $ = 0, q;
  6486. T = typeof T == "function" ? T : a[T] ? a[T] : a[_.getDGApproximation && _.getDGApproximation() || "average"], Q ? V.forEach(function() {
  6487. Y.push([]);
  6488. }) : Y.push([]);
  6489. var it = Q || 1;
  6490. for (q = 0; q <= m && !(t[q] >= n[0]); q++)
  6491. ;
  6492. for (q; q <= m; q++) {
  6493. for (; typeof n[z + 1] < "u" && t[q] >= n[z + 1] || q === m; ) {
  6494. var et = n[z];
  6495. _.dataGroupInfo = { start: G ? $ : _.cropStart + $, length: Y[0].length };
  6496. var nt = T.apply(_, Y);
  6497. for (_.pointClass && !O(_.dataGroupInfo.options) && (_.dataGroupInfo.options = w(_.pointClass.prototype.optionsToObject.call({ series: _ }, _.options.data[_.cropStart + $])), k.forEach(function(ct) {
  6498. delete _.dataGroupInfo.options[ct];
  6499. })), typeof nt < "u" && (P.push(et), X.push(nt), g.push(_.dataGroupInfo)), $ = q, et = 0; et < it; et++)
  6500. Y[et].length = 0, Y[et].hasNulls = !1;
  6501. if (z += 1, q === m)
  6502. break;
  6503. }
  6504. if (q === m)
  6505. break;
  6506. if (V) {
  6507. et = _.options.dataGrouping && _.options.dataGrouping.groupAll ? q : _.cropStart + q, nt = D && D[et] || _.pointClass.prototype.applyOptions.apply({ series: _ }, [W[et]]);
  6508. var rt = void 0;
  6509. for (et = 0; et < Q; et++)
  6510. rt = nt[V[et]], b(rt) ? Y[et].push(rt) : rt === null && (Y[et].hasNulls = !0);
  6511. } else
  6512. et = L ? s[q] : null, b(et) ? Y[0].push(et) : et === null && (Y[0].hasNulls = !0);
  6513. }
  6514. return { groupedXData: P, groupedYData: X, groupMap: g };
  6515. };
  6516. var c = { approximations: a, groupData: R }, p = v.generatePoints, i = { groupPixelWidth: 2, dateTimeLabelFormats: { millisecond: [
  6517. "%A, %b %e, %H:%M:%S.%L",
  6518. "%A, %b %e, %H:%M:%S.%L",
  6519. "-%H:%M:%S.%L"
  6520. ], 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"] } }, h = {
  6521. line: {},
  6522. spline: {},
  6523. area: {},
  6524. areaspline: {},
  6525. arearange: {},
  6526. column: { groupPixelWidth: 10 },
  6527. columnrange: { groupPixelWidth: 10 },
  6528. candlestick: { groupPixelWidth: 10 },
  6529. ohlc: { groupPixelWidth: 5 },
  6530. hlc: { groupPixelWidth: 5 },
  6531. heikinashi: { groupPixelWidth: 10 }
  6532. }, o = Z.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]];
  6533. return v.getDGApproximation = function() {
  6534. return this.is("arearange") ? "range" : this.is("ohlc") ? "ohlc" : this.is("hlc") ? "hlc" : this.is("column") ? "sum" : "average";
  6535. }, v.groupData = R, v.applyGrouping = function(t) {
  6536. var s = this.chart, n = this.options.dataGrouping, T = this.allowDG !== !1 && n && x(n.enabled, s.options.isStock), _ = this.visible || !s.options.chart.ignoreHiddenSeries, D, W = this.currentDataGrouping, P = !1;
  6537. if (T && !this.requireSorting && (this.requireSorting = P = !0), t = !!(this.isCartesian && !this.isDirty && !this.xAxis.isDirty && !this.yAxis.isDirty && !t) || !T, P && (this.requireSorting = !1), !t) {
  6538. this.destroyGroupedData(), T = n.groupAll ? this.xData : this.processedXData;
  6539. var X = n.groupAll ? this.yData : this.processedYData;
  6540. t = s.plotSizeX, P = this.xAxis;
  6541. var g = P.options.ordinal, m = this.groupPixelWidth;
  6542. if (m && T && T.length) {
  6543. this.isDirty = D = !0, this.points = null;
  6544. var L = P.getExtremes(), Y = L.min;
  6545. L = L.max, g = g && P.ordinal && P.ordinal.getGroupIntervalFactor(Y, L, this) || 1, t = P.getTimeTicks(j.Additions.prototype.normalizeTimeTickInterval(m * (L - Y) / t * g, n.units || o), Math.min(Y, T[0]), Math.max(L, T[T.length - 1]), P.options.startOfWeek, T, this.closestPointRange), m = v.groupData.apply(this, [T, X, t, n.approximation]), T = m.groupedXData, X = m.groupedYData, g = 0, n && n.smoothed && T.length && (n.firstAnchor = "firstPoint", n.anchor = "middle", n.lastAnchor = "lastPoint", B(32, !1, s, { "dataGrouping.smoothed": "use dataGrouping.anchor" })), s = T;
  6546. var V = this.options.dataGrouping;
  6547. if (Y = this.currentDataGrouping && this.currentDataGrouping.gapSize, V && this.xData && Y && this.groupMap) {
  6548. var Q = s.length - 1, k = V.anchor, G = x(V.firstAnchor, k);
  6549. if (V = x(V.lastAnchor, k), k && k !== "start") {
  6550. var z = Y * { middle: 0.5, end: 1 }[k];
  6551. for (k = s.length - 1; k-- && 0 < k; )
  6552. s[k] += z;
  6553. }
  6554. if (G && G !== "start" && this.xData[0] >= s[0]) {
  6555. k = this.groupMap[0].start, z = this.groupMap[0].length;
  6556. var $ = void 0;
  6557. b(k) && b(z) && ($ = k + (z - 1)), s[0] = { middle: s[0] + 0.5 * Y, end: s[0] + Y, firstPoint: this.xData[0], lastPoint: $ && this.xData[$] }[G];
  6558. }
  6559. V && V !== "start" && Y && s[Q] >= L - Y && (L = this.groupMap[this.groupMap.length - 1].start, s[Q] = { middle: s[Q] + 0.5 * Y, end: s[Q] + Y, firstPoint: L && this.xData[L], lastPoint: this.xData[this.xData.length - 1] }[V]);
  6560. }
  6561. for (L = 1; L < t.length; L++)
  6562. t.info.segmentStarts && t.info.segmentStarts.indexOf(L) !== -1 || (g = Math.max(t[L] - t[L - 1], g));
  6563. L = t.info, L.gapSize = g, this.closestPointRange = t.info.totalRange, this.groupMap = m.groupMap, _ && (_ = T, O(_[0]) && b(P.min) && b(P.dataMin) && _[0] < P.min && ((!O(P.options.min) && P.min <= P.dataMin || P.min === P.dataMin) && (P.min = Math.min(_[0], P.min)), P.dataMin = Math.min(_[0], P.dataMin)), O(_[_.length - 1]) && b(P.max) && b(P.dataMax) && _[_.length - 1] > P.max && ((!O(P.options.max) && b(P.dataMax) && P.max >= P.dataMax || P.max === P.dataMax) && (P.max = Math.max(_[_.length - 1], P.max)), P.dataMax = Math.max(_[_.length - 1], P.dataMax))), n.groupAll && (this.allGroupedData = X, n = this.cropData(T, X, P.min, P.max, 1), T = n.xData, X = n.yData, this.cropStart = n.start), this.processedXData = T, this.processedYData = X;
  6564. } else
  6565. this.groupMap = null;
  6566. this.hasGroupedData = D, this.currentDataGrouping = L, this.preventGraphAnimation = (W && W.totalRange) !== (L && L.totalRange);
  6567. }
  6568. }, v.destroyGroupedData = function() {
  6569. this.groupedData && (this.groupedData.forEach(function(t, s) {
  6570. t && (this.groupedData[s] = t.destroy ? t.destroy() : null);
  6571. }, this), this.groupedData.length = 0);
  6572. }, v.generatePoints = function() {
  6573. p.apply(this), this.destroyGroupedData(), this.groupedData = this.hasGroupedData ? this.points : null;
  6574. }, y.prototype.applyGrouping = function(t) {
  6575. var s = this;
  6576. s.series.forEach(function(n) {
  6577. n.groupPixelWidth = void 0, n.groupPixelWidth = s.getGroupPixelWidth && s.getGroupPixelWidth(), n.groupPixelWidth && (n.hasProcessed = !0), n.applyGrouping(!!t.hasExtemesChanged);
  6578. });
  6579. }, y.prototype.getGroupPixelWidth = function() {
  6580. var t = this.series, s = t.length, n, T = 0, _ = !1, D;
  6581. for (n = s; n--; )
  6582. (D = t[n].options.dataGrouping) && (T = Math.max(T, x(D.groupPixelWidth, i.groupPixelWidth)));
  6583. for (n = s; n--; )
  6584. (D = t[n].options.dataGrouping) && (s = (t[n].processedXData || t[n].data).length, (t[n].groupPixelWidth || s > this.chart.plotSizeX / T || s && D.forced) && (_ = !0));
  6585. return _ ? T : 0;
  6586. }, y.prototype.setDataGrouping = function(t, s) {
  6587. var n;
  6588. if (s = x(s, !0), t || (t = { forced: !1, units: null }), this instanceof y)
  6589. for (n = this.series.length; n--; )
  6590. this.series[n].update({ dataGrouping: t }, !1);
  6591. else
  6592. this.chart.options.series.forEach(function(T) {
  6593. T.dataGrouping = t;
  6594. }, !1);
  6595. this.ordinal && (this.ordinal.slope = void 0), s && this.chart.redraw();
  6596. }, I(y, "postProcessData", y.prototype.applyGrouping), I(H, "update", function() {
  6597. if (this.dataGroup)
  6598. return B(
  6599. 24,
  6600. !1,
  6601. this.series.chart
  6602. ), !1;
  6603. }), I(F, "headerFormatter", function(t) {
  6604. var s = this.chart, n = s.time, T = t.labelConfig, _ = T.series, D = _.tooltipOptions, W = _.options.dataGrouping, P = D.xDateFormat, X = _.xAxis, g = D[t.isFooter ? "footerFormat" : "headerFormat"];
  6605. if (X && X.options.type === "datetime" && W && b(T.key)) {
  6606. var m = _.currentDataGrouping;
  6607. if (W = W.dateTimeLabelFormats || i.dateTimeLabelFormats, m)
  6608. if (D = W[m.unitName], m.count === 1)
  6609. P = D[0];
  6610. else {
  6611. P = D[1];
  6612. var L = D[2];
  6613. }
  6614. else
  6615. !P && W && X.dateTime && (P = X.dateTime.getXDateFormat(T.x, D.dateTimeLabelFormats));
  6616. P = n.dateFormat(P, T.key), L && (P += n.dateFormat(L, T.key + m.totalRange - 1)), _.chart.styledMode && (g = this.styledModeFormat(g)), t.text = S(g, { point: C(T.point, { key: P }), series: _ }, s), t.preventDefault();
  6617. }
  6618. }), I(U, "destroy", v.destroyGroupedData), I(U, "afterSetOptions", function(t) {
  6619. t = t.options;
  6620. var s = this.type, n = this.chart.options.plotOptions, T = N.defaultOptions.plotOptions[s].dataGrouping, _ = this.useCommonDataGrouping && i;
  6621. if (n && (h[s] || _)) {
  6622. T || (T = w(i, h[s]));
  6623. var D = this.chart.rangeSelector;
  6624. t.dataGrouping = w(
  6625. _,
  6626. T,
  6627. n.series && n.series.dataGrouping,
  6628. n[s].dataGrouping,
  6629. this.userOptions.dataGrouping,
  6630. !t.isInternal && D && b(D.selected) && D.buttonOptions[D.selected].dataGrouping
  6631. );
  6632. }
  6633. }), I(y, "afterSetScale", function() {
  6634. this.series.forEach(function(t) {
  6635. t.hasProcessed = !1;
  6636. });
  6637. }), Z.dataGrouping = c, c;
  6638. }), E(l, "Series/HLC/HLCPoint.js", [l["Core/Series/SeriesRegistry.js"]], function(y) {
  6639. var j = this && this.__extends || function() {
  6640. var I = function(Z, H) {
  6641. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, F) {
  6642. U.__proto__ = F;
  6643. } || function(U, F) {
  6644. for (var N in F)
  6645. F.hasOwnProperty(N) && (U[N] = F[N]);
  6646. }, I(Z, H);
  6647. };
  6648. return function(Z, H) {
  6649. function U() {
  6650. this.constructor = Z;
  6651. }
  6652. I(Z, H), Z.prototype = H === null ? Object.create(H) : (U.prototype = H.prototype, new U());
  6653. };
  6654. }();
  6655. return function(I) {
  6656. function Z() {
  6657. var H = I !== null && I.apply(this, arguments) || this;
  6658. return H.close = void 0, H.high = void 0, H.low = void 0, H.options = void 0, H.plotClose = void 0, H.series = void 0, H;
  6659. }
  6660. return j(Z, I), Z;
  6661. }(y.seriesTypes.column.prototype.pointClass);
  6662. }), E(
  6663. l,
  6664. "Series/HLC/HLCSeries.js",
  6665. [l["Series/HLC/HLCPoint.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  6666. function(y, j, I) {
  6667. var Z = this && this.__extends || function() {
  6668. var N = function(R, S) {
  6669. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  6670. v.__proto__ = d;
  6671. } || function(v, d) {
  6672. for (var u in d)
  6673. d.hasOwnProperty(u) && (v[u] = d[u]);
  6674. }, N(R, S);
  6675. };
  6676. return function(R, S) {
  6677. function v() {
  6678. this.constructor = R;
  6679. }
  6680. N(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  6681. };
  6682. }(), H = j.seriesTypes.column, U = I.extend, F = I.merge;
  6683. return I = function(N) {
  6684. function R() {
  6685. var S = N !== null && N.apply(this, arguments) || this;
  6686. return S.data = void 0, S.options = void 0, S.points = void 0, S.yData = void 0, S;
  6687. }
  6688. return Z(R, N), R.prototype.extendStem = function(S, v, d) {
  6689. var u = S[0];
  6690. S = S[1], typeof u[2] == "number" && (u[2] = Math.max(d + v, u[2])), typeof S[2] == "number" && (S[2] = Math.min(d - v, S[2]));
  6691. }, R.prototype.getPointPath = function(S, v) {
  6692. v = v.strokeWidth();
  6693. var d = S.series, u = v % 2 / 2, A = Math.round(S.plotX) - u, O = Math.round(S.shapeArgs.width / 2), B = [["M", A, Math.round(S.yBottom)], ["L", A, Math.round(S.plotHigh)]];
  6694. return S.close !== null && (S = Math.round(S.plotClose) + u, B.push(["M", A, S], ["L", A + O, S]), d.extendStem(B, v / 2, S)), B;
  6695. }, R.prototype.drawSinglePoint = function(S) {
  6696. var v = S.series, d = v.chart, u = S.graphic, A = !u;
  6697. typeof S.plotY < "u" && (u || (S.graphic = u = d.renderer.path().add(v.group)), d.styledMode || u.attr(v.pointAttribs(S, S.selected && "select")), v = v.getPointPath(S, u), u[A ? "attr" : "animate"]({ d: v }).addClass(S.getClassName(), !0));
  6698. }, R.prototype.drawPoints = function() {
  6699. this.points.forEach(this.drawSinglePoint);
  6700. }, R.prototype.init = function() {
  6701. N.prototype.init.apply(this, arguments), this.options.stacking = void 0;
  6702. }, R.prototype.pointAttribs = function(S, v) {
  6703. return S = N.prototype.pointAttribs.call(this, S, v), delete S.fill, S;
  6704. }, R.prototype.toYData = function(S) {
  6705. return [S.high, S.low, S.close];
  6706. }, R.prototype.translate = function() {
  6707. var S = this, v = S.yAxis, d = this.pointArrayMap && this.pointArrayMap.slice() || [], u = d.map(function(A) {
  6708. return "plot" + (A.charAt(0).toUpperCase() + A.slice(1));
  6709. });
  6710. u.push("yBottom"), d.push("low"), N.prototype.translate.apply(S), S.points.forEach(function(A) {
  6711. d.forEach(function(O, B) {
  6712. O = A[O], O !== null && (S.dataModify && (O = S.dataModify.modifyValue(O)), A[u[B]] = v.toPixels(O, !0));
  6713. }), A.tooltipPos[1] = A.plotHigh + v.pos - S.chart.plotTop;
  6714. });
  6715. }, R.defaultOptions = F(H.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 }), R;
  6716. }(H), U(I.prototype, { animate: null, directTouch: !1, pointArrayMap: ["high", "low", "close"], pointAttrToOptions: {
  6717. stroke: "color",
  6718. "stroke-width": "lineWidth"
  6719. }, pointValKey: "close" }), I.prototype.pointClass = y, j.registerSeriesType("hlc", I), I;
  6720. }
  6721. ), E(l, "Series/OHLC/OHLCPoint.js", [l["Core/Series/SeriesRegistry.js"]], function(y) {
  6722. var j = this && this.__extends || function() {
  6723. var I = function(Z, H) {
  6724. return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(U, F) {
  6725. U.__proto__ = F;
  6726. } || function(U, F) {
  6727. for (var N in F)
  6728. F.hasOwnProperty(N) && (U[N] = F[N]);
  6729. }, I(Z, H);
  6730. };
  6731. return function(Z, H) {
  6732. function U() {
  6733. this.constructor = Z;
  6734. }
  6735. I(Z, H), Z.prototype = H === null ? Object.create(H) : (U.prototype = H.prototype, new U());
  6736. };
  6737. }();
  6738. return function(I) {
  6739. function Z() {
  6740. var H = I !== null && I.apply(this, arguments) || this;
  6741. return H.open = void 0, H.options = void 0, H.plotOpen = void 0, H.series = void 0, H;
  6742. }
  6743. return j(Z, I), Z.prototype.getClassName = function() {
  6744. return I.prototype.getClassName.call(this) + (this.open < this.close ? " highcharts-point-up" : " highcharts-point-down");
  6745. }, Z.prototype.resolveUpColor = function() {
  6746. this.open < this.close && !this.options.color && this.series.options.upColor && (this.color = this.series.options.upColor);
  6747. }, Z.prototype.resolveColor = function() {
  6748. I.prototype.resolveColor.call(this), this.resolveUpColor();
  6749. }, Z.prototype.getZone = function() {
  6750. var H = I.prototype.getZone.call(this);
  6751. return this.resolveUpColor(), H;
  6752. }, Z.prototype.applyOptions = function() {
  6753. return I.prototype.applyOptions.apply(this, arguments), this.resolveColor && this.resolveColor(), this;
  6754. }, Z;
  6755. }(y.seriesTypes.hlc.prototype.pointClass);
  6756. }), E(
  6757. l,
  6758. "Series/OHLC/OHLCSeries.js",
  6759. [l["Series/OHLC/OHLCPoint.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  6760. function(y, j, I) {
  6761. var Z = this && this.__extends || function() {
  6762. var v = function(d, u) {
  6763. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(A, O) {
  6764. A.__proto__ = O;
  6765. } || function(A, O) {
  6766. for (var B in O)
  6767. O.hasOwnProperty(B) && (A[B] = O[B]);
  6768. }, v(d, u);
  6769. };
  6770. return function(d, u) {
  6771. function A() {
  6772. this.constructor = d;
  6773. }
  6774. v(d, u), d.prototype = u === null ? Object.create(u) : (A.prototype = u.prototype, new A());
  6775. };
  6776. }(), H = j.series, U = j.seriesTypes.hlc, F = I.addEvent, N = I.extend, R = I.merge, S = function(v) {
  6777. function d() {
  6778. var u = v !== null && v.apply(this, arguments) || this;
  6779. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  6780. }
  6781. return Z(d, v), d.prototype.getPointPath = function(u, A) {
  6782. var O = v.prototype.getPointPath.call(this, u, A);
  6783. A = A.strokeWidth();
  6784. var B = A % 2 / 2, C = Math.round(u.plotX) - B, b = Math.round(u.shapeArgs.width / 2);
  6785. return u.open !== null && (u = Math.round(u.plotOpen) + B, O.push(["M", C, u], ["L", C - b, u]), v.prototype.extendStem.call(this, O, A / 2, u)), O;
  6786. }, d.prototype.pointAttribs = function(u, A) {
  6787. A = v.prototype.pointAttribs.call(this, u, A);
  6788. var O = this.options;
  6789. return delete A.fill, !u.options.color && O.upColor && u.open < u.close && (A.stroke = O.upColor), A;
  6790. }, d.prototype.toYData = function(u) {
  6791. return [u.open, u.high, u.low, u.close];
  6792. }, d.defaultOptions = R(U.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/>' } }), d;
  6793. }(U);
  6794. return N(S.prototype, { pointArrayMap: ["open", "high", "low", "close"] }), S.prototype.pointClass = y, j.registerSeriesType("ohlc", S), F(H, "init", function(v) {
  6795. v = v.options, v.useOhlcData && v.id !== "highcharts-navigator-series" && N(this, { pointValKey: S.prototype.pointValKey, pointArrayMap: S.prototype.pointArrayMap, toYData: S.prototype.toYData });
  6796. }), F(H, "afterSetOptions", function(v) {
  6797. v = v.options;
  6798. var d = v.dataGrouping;
  6799. d && v.useOhlcData && v.id !== "highcharts-navigator-series" && (d.approximation = "ohlc");
  6800. }), S;
  6801. }
  6802. ), E(l, "Series/Candlestick/CandlestickSeries.js", [l["Core/DefaultOptions.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  6803. var Z = this && this.__extends || function() {
  6804. var R = function(S, v) {
  6805. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, u) {
  6806. d.__proto__ = u;
  6807. } || function(d, u) {
  6808. for (var A in u)
  6809. u.hasOwnProperty(A) && (d[A] = u[A]);
  6810. }, R(S, v);
  6811. };
  6812. return function(S, v) {
  6813. function d() {
  6814. this.constructor = S;
  6815. }
  6816. R(S, v), S.prototype = v === null ? Object.create(v) : (d.prototype = v.prototype, new d());
  6817. };
  6818. }(), H = y.defaultOptions;
  6819. y = j.seriesTypes;
  6820. var U = y.column, F = y.ohlc, N = I.merge;
  6821. return I = function(R) {
  6822. function S() {
  6823. var v = R !== null && R.apply(this, arguments) || this;
  6824. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  6825. }
  6826. return Z(S, R), S.prototype.pointAttribs = function(v, d) {
  6827. var u = U.prototype.pointAttribs.call(this, v, d), A = this.options, O = v.open < v.close, B = A.lineColor || this.color, C = v.color || this.color;
  6828. return u["stroke-width"] = A.lineWidth, u.fill = v.options.color || O && A.upColor || C, u.stroke = v.options.lineColor || O && A.upLineColor || B, d && (v = A.states[d], u.fill = v.color || u.fill, u.stroke = v.lineColor || u.stroke, u["stroke-width"] = v.lineWidth || u["stroke-width"]), u;
  6829. }, S.prototype.drawPoints = function() {
  6830. var v = this, d = v.chart, u = v.yAxis.reversed;
  6831. v.points.forEach(function(A) {
  6832. var O = A.graphic, B = !O;
  6833. if (typeof A.plotY < "u") {
  6834. O || (A.graphic = O = d.renderer.path().add(v.group)), v.chart.styledMode || O.attr(v.pointAttribs(A, A.selected && "select")).shadow(v.options.shadow);
  6835. var C = O.strokeWidth() % 2 / 2, b = Math.round(A.plotX) - C, w = A.plotOpen, x = A.plotClose, a = Math.min(w, x);
  6836. w = Math.max(w, x);
  6837. var c = Math.round(A.shapeArgs.width / 2);
  6838. x = u ? w !== A.yBottom : Math.round(a) !== Math.round(A.plotHigh);
  6839. var p = u ? Math.round(a) !== Math.round(A.plotHigh) : w !== A.yBottom;
  6840. a = Math.round(a) + C, w = Math.round(w) + C, C = [], C.push(["M", b - c, w], ["L", b - c, a], ["L", b + c, a], ["L", b + c, w], ["Z"], ["M", b, a], ["L", b, x ? Math.round(u ? A.yBottom : A.plotHigh) : a], ["M", b, w], ["L", b, p ? Math.round(u ? A.plotHigh : A.yBottom) : w]), O[B ? "attr" : "animate"]({ d: C }).addClass(A.getClassName(), !0);
  6841. }
  6842. });
  6843. }, S.defaultOptions = N(F.defaultOptions, H.plotOptions, { states: { hover: { lineWidth: 2 } }, tooltip: H.plotOptions.ohlc.tooltip, threshold: null, lineColor: "#000000", lineWidth: 1, upColor: "#ffffff", stickyTracking: !0 }), S;
  6844. }(F), j.registerSeriesType("candlestick", I), I;
  6845. }), E(l, "Series/Flags/FlagsPoint.js", [l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j) {
  6846. var I = this && this.__extends || function() {
  6847. var H = function(U, F) {
  6848. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(N, R) {
  6849. N.__proto__ = R;
  6850. } || function(N, R) {
  6851. for (var S in R)
  6852. R.hasOwnProperty(S) && (N[S] = R[S]);
  6853. }, H(U, F);
  6854. };
  6855. return function(U, F) {
  6856. function N() {
  6857. this.constructor = U;
  6858. }
  6859. H(U, F), U.prototype = F === null ? Object.create(F) : (N.prototype = F.prototype, new N());
  6860. };
  6861. }(), Z = j.isNumber;
  6862. return function(H) {
  6863. function U() {
  6864. var F = H !== null && H.apply(this, arguments) || this;
  6865. return F.options = void 0, F.series = void 0, F;
  6866. }
  6867. return I(U, H), U.prototype.isValid = function() {
  6868. return Z(this.y) || typeof this.y > "u";
  6869. }, U.prototype.hasNewShapeType = function() {
  6870. var F = this.options.shape || this.series.options.shape;
  6871. return this.graphic && F && F !== this.graphic.symbolKey;
  6872. }, U;
  6873. }(y.seriesTypes.column.prototype.pointClass);
  6874. }), E(l, "Series/OnSeriesComposition.js", [
  6875. l["Series/Column/ColumnSeries.js"],
  6876. l["Core/Series/Series.js"],
  6877. l["Core/Utilities.js"]
  6878. ], function(y, j, I) {
  6879. var Z = y.prototype, H = j.prototype, U = I.defined, F = I.stableSort, N;
  6880. return function(R) {
  6881. function S() {
  6882. return H.getPlotBox.call(this.options.onSeries && this.chart.get(this.options.onSeries) || this);
  6883. }
  6884. function v() {
  6885. Z.translate.apply(this);
  6886. var u = this, A = u.options, O = u.chart, B = u.points, C = A.onSeries, b = (C = C && O.get(C)) && C.options.step, w = C && C.points, x = O.inverted, a = u.xAxis, c = u.yAxis;
  6887. O = B.length - 1;
  6888. var p;
  6889. A = A.onKey || "y";
  6890. var i = w && w.length, h = 0, o;
  6891. if (C && C.visible && i) {
  6892. h = (C.pointXOffset || 0) + (C.barW || 0) / 2;
  6893. var t = C.currentDataGrouping, s = w[i - 1].x + (t ? t.totalRange : 0);
  6894. for (F(B, function(_, D) {
  6895. return _.x - D.x;
  6896. }), A = "plot" + A[0].toUpperCase() + A.substr(1); i-- && B[O]; ) {
  6897. var n = w[i];
  6898. if (t = B[O], t.y = n.y, n.x <= t.x && typeof n[A] < "u") {
  6899. if (t.x <= s && (t.plotY = n[A], n.x < t.x && !b && (o = w[i + 1]) && typeof o[A] < "u")) {
  6900. var T = (t.x - n.x) / (o.x - n.x);
  6901. t.plotY += T * (o[A] - n[A]), t.y += T * (o.y - n.y);
  6902. }
  6903. if (O--, i++, 0 > O)
  6904. break;
  6905. }
  6906. }
  6907. }
  6908. B.forEach(function(_, D) {
  6909. if (_.plotX += h, (typeof _.plotY > "u" || x) && (0 <= _.plotX && _.plotX <= a.len ? x ? (_.plotY = a.translate(_.x, 0, 1, 0, 1), _.plotX = U(_.y) ? c.translate(_.y, 0, 0, 0, 1) : 0) : _.plotY = (a.opposite ? 0 : u.yAxis.len) + a.offset : _.shapeArgs = {}), (p = B[D - 1]) && p.plotX === _.plotX) {
  6910. typeof p.stackIndex > "u" && (p.stackIndex = 0);
  6911. var W = p.stackIndex + 1;
  6912. }
  6913. _.stackIndex = W;
  6914. }), this.onSeries = C;
  6915. }
  6916. var d = [];
  6917. R.compose = function(u) {
  6918. if (d.indexOf(u) === -1) {
  6919. d.push(u);
  6920. var A = u.prototype;
  6921. A.getPlotBox = S, A.translate = v;
  6922. }
  6923. return u;
  6924. }, R.getPlotBox = S, R.translate = v;
  6925. }(N || (N = {})), N;
  6926. }), E(
  6927. l,
  6928. "Series/Flags/FlagsSymbols.js",
  6929. [l["Core/Renderer/RendererRegistry.js"], l["Core/Renderer/SVG/SVGRenderer.js"]],
  6930. function(y, j) {
  6931. function I(H) {
  6932. Z[H + "pin"] = function(U, F, N, R, S) {
  6933. var v = S && S.anchorX;
  6934. S = S && S.anchorY, H === "circle" && R > N && (U -= Math.round((R - N) / 2), N = R);
  6935. var d = Z[H](U, F, N, R);
  6936. if (v && S) {
  6937. var u = v;
  6938. H === "circle" ? u = U + N / 2 : (U = d[0], N = d[1], U[0] === "M" && N[0] === "L" && (u = (U[1] + N[1]) / 2)), d.push(["M", u, F > S ? F : F + R], ["L", v, S]), d = d.concat(Z.circle(v - 1, S - 1, 2, 2));
  6939. }
  6940. return d;
  6941. };
  6942. }
  6943. var Z = j.prototype.symbols;
  6944. return Z.flag = function(H, U, F, N, R) {
  6945. var S = R && R.anchorX || H;
  6946. R = R && R.anchorY || U;
  6947. var v = Z.circle(S - 1, R - 1, 2, 2);
  6948. return v.push(["M", S, R], ["L", H, U + N], ["L", H, U], ["L", H + F, U], ["L", H + F, U + N], ["L", H, U + N], ["Z"]), v;
  6949. }, I("circle"), I("square"), y = y.getRendererType(), y !== j && (y.prototype.symbols.circlepin = Z.circlepin, y.prototype.symbols.flag = Z.flag, y.prototype.symbols.squarepin = Z.squarepin), Z;
  6950. }
  6951. ), E(l, "Series/Flags/FlagsSeries.js", [
  6952. l["Series/Flags/FlagsPoint.js"],
  6953. l["Core/Globals.js"],
  6954. l["Series/OnSeriesComposition.js"],
  6955. l["Core/Renderer/RendererUtilities.js"],
  6956. l["Core/Series/SeriesRegistry.js"],
  6957. l["Core/Renderer/SVG/SVGElement.js"],
  6958. l["Core/Utilities.js"]
  6959. ], function(y, j, I, Z, H, U, F) {
  6960. var N = this && this.__extends || function() {
  6961. var C = function(b, w) {
  6962. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  6963. x.__proto__ = a;
  6964. } || function(x, a) {
  6965. for (var c in a)
  6966. a.hasOwnProperty(c) && (x[c] = a[c]);
  6967. }, C(b, w);
  6968. };
  6969. return function(b, w) {
  6970. function x() {
  6971. this.constructor = b;
  6972. }
  6973. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  6974. };
  6975. }();
  6976. j = j.noop;
  6977. var R = Z.distribute, S = H.series, v = H.seriesTypes.column, d = F.addEvent, u = F.defined;
  6978. Z = F.extend;
  6979. var A = F.merge, O = F.objectEach, B = F.wrap;
  6980. return F = function(C) {
  6981. function b() {
  6982. var w = C !== null && C.apply(this, arguments) || this;
  6983. return w.data = void 0, w.options = void 0, w.points = void 0, w;
  6984. }
  6985. return N(b, C), b.prototype.animate = function(w) {
  6986. w && this.setClip();
  6987. }, b.prototype.drawPoints = function() {
  6988. var w = this.points, x = this.chart, a = x.renderer, c = x.inverted, p = this.options, i = p.y, h, o = this.yAxis, t = {}, s = [];
  6989. for (h = w.length; h--; ) {
  6990. var n = w[h], T = (c ? n.plotY : n.plotX) > this.xAxis.len, _ = n.plotX, D = n.stackIndex, W = n.options.shape || p.shape, P = n.plotY;
  6991. typeof P < "u" && (P = n.plotY + i - (typeof D < "u" && D * p.stackDistance)), n.anchorX = D ? void 0 : n.plotX;
  6992. var X = D ? void 0 : n.plotY, g = W !== "flag";
  6993. D = n.graphic, typeof P < "u" && 0 <= _ && !T ? (D && n.hasNewShapeType() && (D = D.destroy()), D || (D = n.graphic = a.label("", null, null, W, null, null, p.useHTML).addClass("highcharts-point").add(this.markerGroup), n.graphic.div && (n.graphic.div.point = n), D.isNew = !0), D.attr({
  6994. align: g ? "center" : "left",
  6995. width: p.width,
  6996. height: p.height,
  6997. "text-align": p.textAlign
  6998. }), x.styledMode || D.attr(this.pointAttribs(n)).css(A(p.style, n.style)).shadow(p.shadow), 0 < _ && (_ -= D.strokeWidth() % 2), W = { y: P, anchorY: X }, p.allowOverlapX && (W.x = _, W.anchorX = n.anchorX), D.attr({ text: n.options.title || p.title || "A" })[D.isNew ? "attr" : "animate"](W), p.allowOverlapX || (t[n.plotX] ? t[n.plotX].size = Math.max(t[n.plotX].size, D.width) : t[n.plotX] = { align: g ? 0.5 : 0, size: D.width, target: _, anchorX: _ }), n.tooltipPos = [_, P + o.pos - x.plotTop]) : D && (n.graphic = D.destroy());
  6999. }
  7000. if (!p.allowOverlapX) {
  7001. var m = 100;
  7002. O(t, function(L) {
  7003. L.plotX = L.anchorX, s.push(L), m = Math.max(L.size, m);
  7004. }), R(s, c ? o.len : this.xAxis.len, m), w.forEach(function(L) {
  7005. var Y = L.graphic && t[L.plotX];
  7006. Y && (L.graphic[L.graphic.isNew ? "attr" : "animate"]({ x: Y.pos + Y.align * Y.size, anchorX: L.anchorX }), u(Y.pos) ? L.graphic.isNew = !1 : (L.graphic.attr({ x: -9999, anchorX: -9999 }), L.graphic.isNew = !0));
  7007. });
  7008. }
  7009. p.useHTML && B(this.markerGroup, "on", function(L) {
  7010. return U.prototype.on.apply(L.apply(this, [].slice.call(arguments, 1)), [].slice.call(arguments, 1));
  7011. });
  7012. }, b.prototype.drawTracker = function() {
  7013. var w = this.points;
  7014. C.prototype.drawTracker.call(this), w.forEach(function(x) {
  7015. var a = x.graphic;
  7016. a && (x.unbindMouseOver && x.unbindMouseOver(), x.unbindMouseOver = d(a.element, "mouseover", function() {
  7017. 0 < x.stackIndex && !x.raised && (x._y = a.y, a.attr({ y: x._y - 8 }), x.raised = !0), w.forEach(function(c) {
  7018. c !== x && c.raised && c.graphic && (c.graphic.attr({ y: c._y }), c.raised = !1);
  7019. });
  7020. }));
  7021. });
  7022. }, b.prototype.pointAttribs = function(w, x) {
  7023. var a = this.options, c = w && w.color || this.color, p = a.lineColor, i = w && w.lineWidth;
  7024. return w = w && w.fillColor || a.fillColor, x && (w = a.states[x].fillColor, p = a.states[x].lineColor, i = a.states[x].lineWidth), { fill: w || c, stroke: p || c, "stroke-width": i || a.lineWidth || 0 };
  7025. }, b.prototype.setClip = function() {
  7026. S.prototype.setClip.apply(this, arguments), this.options.clip !== !1 && this.sharedClipKey && this.markerGroup && this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey]);
  7027. }, b.defaultOptions = A(v.defaultOptions, {
  7028. pointRange: 0,
  7029. allowOverlapX: !1,
  7030. shape: "flag",
  7031. stackDistance: 12,
  7032. textAlign: "center",
  7033. tooltip: { pointFormat: "{point.text}" },
  7034. threshold: null,
  7035. y: -30,
  7036. fillColor: "#ffffff",
  7037. lineWidth: 1,
  7038. states: { hover: { lineColor: "#000000", fillColor: "#ccd6eb" } },
  7039. style: { fontSize: "11px", fontWeight: "bold" }
  7040. }), b;
  7041. }(v), I.compose(F), Z(F.prototype, { allowDG: !1, forceCrop: !0, invertible: !1, noSharedTooltip: !0, pointClass: y, sorted: !1, takeOrdinalPosition: !1, trackerGroups: ["markerGroup"], buildKDTree: j, init: S.prototype.init, invertGroups: j }), H.registerSeriesType("flags", F), F;
  7042. }), E(l, "Core/Axis/ScrollbarAxis.js", [l["Core/Utilities.js"]], function(y) {
  7043. var j = y.addEvent, I = y.defined, Z = y.pick;
  7044. return function() {
  7045. function H() {
  7046. }
  7047. return H.compose = function(U, F) {
  7048. if (H.composed.indexOf(U) === -1)
  7049. H.composed.push(U);
  7050. else
  7051. return U;
  7052. var N = function(R) {
  7053. var S = Z(R.options && R.options.min, R.min), v = Z(R.options && R.options.max, R.max);
  7054. return { axisMin: S, axisMax: v, scrollMin: I(R.dataMin) ? Math.min(S, R.min, R.dataMin, Z(R.threshold, 1 / 0)) : S, scrollMax: I(R.dataMax) ? Math.max(v, R.max, R.dataMax, Z(R.threshold, -1 / 0)) : v };
  7055. };
  7056. return j(U, "afterInit", function() {
  7057. var R = this;
  7058. R.options && R.options.scrollbar && R.options.scrollbar.enabled && (R.options.scrollbar.vertical = !R.horiz, R.options.startOnTick = R.options.endOnTick = !1, R.scrollbar = new F(R.chart.renderer, R.options.scrollbar, R.chart), j(R.scrollbar, "changed", function(S) {
  7059. var v = N(R), d = v.axisMax, u = v.scrollMin, A = v.scrollMax - u;
  7060. I(v.axisMin) && I(d) && (R.horiz && !R.reversed || !R.horiz && R.reversed ? (v = u + A * this.to, u += A * this.from) : (v = u + A * (1 - this.from), u += A * (1 - this.to)), this.shouldUpdateExtremes(S.DOMType) ? R.setExtremes(u, v, !0, S.DOMType !== "mousemove" && S.DOMType !== "touchmove", S) : this.setRange(
  7061. this.from,
  7062. this.to
  7063. ));
  7064. }));
  7065. }), j(U, "afterRender", function() {
  7066. var R = N(this), S = R.scrollMin, v = R.scrollMax;
  7067. R = this.scrollbar;
  7068. var d = this.axisTitleMargin + (this.titleOffset || 0), u = this.chart.scrollbarsOffsets, A = this.options.margin || 0;
  7069. R && (this.horiz ? (this.opposite || (u[1] += d), R.position(this.left, this.top + this.height + 2 + u[1] - (this.opposite ? A : 0), this.width, this.height), this.opposite || (u[1] += A), d = 1) : (this.opposite && (u[0] += d), R.position(
  7070. R.options.opposite ? this.left + this.width + 2 + u[0] - (this.opposite ? 0 : A) : this.opposite ? 0 : A,
  7071. this.top,
  7072. this.width,
  7073. this.height
  7074. ), this.opposite && (u[0] += A), d = 0), u[d] += R.size + R.options.margin, isNaN(S) || isNaN(v) || !I(this.min) || !I(this.max) || this.min === this.max ? R.setRange(0, 1) : (u = (this.min - S) / (v - S), S = (this.max - S) / (v - S), this.horiz && !this.reversed || !this.horiz && this.reversed ? R.setRange(u, S) : R.setRange(1 - S, 1 - u)));
  7075. }), j(U, "afterGetOffset", function() {
  7076. var R = this.scrollbar && !this.scrollbar.options.opposite;
  7077. R = this.horiz ? 2 : R ? 3 : 1;
  7078. var S = this.scrollbar;
  7079. S && (this.chart.scrollbarsOffsets = [0, 0], this.chart.axisOffset[R] += S.size + S.options.margin);
  7080. }), U;
  7081. }, H.composed = [], H;
  7082. }();
  7083. }), E(l, "Core/ScrollbarDefaults.js", [l["Core/Globals.js"]], function(y) {
  7084. return {
  7085. height: y.isTouchDevice ? 20 : 14,
  7086. barBorderRadius: 0,
  7087. buttonBorderRadius: 0,
  7088. liveRedraw: void 0,
  7089. margin: 10,
  7090. minWidth: 6,
  7091. opposite: !0,
  7092. step: 0.2,
  7093. zIndex: 3,
  7094. barBackgroundColor: "#cccccc",
  7095. barBorderWidth: 1,
  7096. barBorderColor: "#cccccc",
  7097. buttonArrowColor: "#333333",
  7098. buttonBackgroundColor: "#e6e6e6",
  7099. buttonBorderColor: "#cccccc",
  7100. buttonBorderWidth: 1,
  7101. rifleColor: "#333333",
  7102. trackBackgroundColor: "#f2f2f2",
  7103. trackBorderColor: "#f2f2f2",
  7104. trackBorderWidth: 1
  7105. };
  7106. }), E(l, "Core/Scrollbar.js", [l["Core/DefaultOptions.js"], l["Core/Globals.js"], l["Core/Axis/ScrollbarAxis.js"], l["Core/ScrollbarDefaults.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  7107. var U = y.defaultOptions, F = H.addEvent, N = H.correctFloat, R = H.defined, S = H.destroyObjectProperties, v = H.fireEvent, d = H.merge, u = H.pick, A = H.removeEvent;
  7108. return y = function() {
  7109. function O(B, C, b) {
  7110. 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(B, C, b);
  7111. }
  7112. return O.compose = function(B) {
  7113. I.compose(B, O);
  7114. }, O.swapXY = function(B, C) {
  7115. return C && B.forEach(function(b) {
  7116. for (var w = b.length, x, a = 0; a < w; a += 2)
  7117. x = b[a + 1], typeof x == "number" && (b[a + 1] = b[a + 2], b[a + 2] = x);
  7118. }), B;
  7119. }, O.prototype.addEvents = function() {
  7120. var B = this.options.inverted ? [1, 0] : [0, 1], C = this.scrollbarButtons, b = this.scrollbarGroup.element, w = this.track.element, x = this.mouseDownHandler.bind(this), a = this.mouseMoveHandler.bind(this), c = this.mouseUpHandler.bind(this);
  7121. B = [[C[B[0]].element, "click", this.buttonToMinClick.bind(this)], [C[B[1]].element, "click", this.buttonToMaxClick.bind(this)], [w, "click", this.trackClick.bind(this)], [b, "mousedown", x], [b.ownerDocument, "mousemove", a], [b.ownerDocument, "mouseup", c]], j.hasTouch && B.push(
  7122. [b, "touchstart", x],
  7123. [b.ownerDocument, "touchmove", a],
  7124. [b.ownerDocument, "touchend", c]
  7125. ), B.forEach(function(p) {
  7126. F.apply(null, p);
  7127. }), this._events = B;
  7128. }, O.prototype.buttonToMaxClick = function(B) {
  7129. var C = (this.to - this.from) * u(this.options.step, 0.2);
  7130. this.updatePosition(this.from + C, this.to + C), v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: B });
  7131. }, O.prototype.buttonToMinClick = function(B) {
  7132. var C = N(this.to - this.from) * u(this.options.step, 0.2);
  7133. this.updatePosition(N(this.from - C), N(this.to - C)), v(this, "changed", {
  7134. from: this.from,
  7135. to: this.to,
  7136. trigger: "scrollbar",
  7137. DOMEvent: B
  7138. });
  7139. }, O.prototype.cursorToScrollbarPosition = function(B) {
  7140. var C = this.options;
  7141. return C = C.minWidth > this.calculatedWidth ? C.minWidth : 0, { chartX: (B.chartX - this.x - this.xOffset) / (this.barWidth - C), chartY: (B.chartY - this.y - this.yOffset) / (this.barWidth - C) };
  7142. }, O.prototype.destroy = function() {
  7143. var B = this, C = B.chart.scroller;
  7144. B.removeEvents(), ["track", "scrollbarRifles", "scrollbar", "scrollbarGroup", "group"].forEach(function(b) {
  7145. B[b] && B[b].destroy && (B[b] = B[b].destroy());
  7146. }), C && B === C.scrollbar && (C.scrollbar = null, S(C.scrollbarButtons));
  7147. }, O.prototype.drawScrollbarButton = function(B) {
  7148. var C = this.renderer, b = this.scrollbarButtons, w = this.options, x = this.size, a = C.g().add(this.group);
  7149. b.push(a), a = C.rect().addClass("highcharts-scrollbar-button").add(a), this.chart.styledMode || a.attr({ stroke: w.buttonBorderColor, "stroke-width": w.buttonBorderWidth, fill: w.buttonBackgroundColor }), a.attr(a.crisp({ x: -0.5, y: -0.5, width: x + 1, height: x + 1, r: w.buttonBorderRadius }, a.strokeWidth())), a = C.path(O.swapXY([["M", x / 2 + (B ? -1 : 1), x / 2 - 3], ["L", x / 2 + (B ? -1 : 1), x / 2 + 3], ["L", x / 2 + (B ? 2 : -2), x / 2]], w.vertical)).addClass("highcharts-scrollbar-arrow").add(b[B]), this.chart.styledMode || a.attr({ fill: w.buttonArrowColor });
  7150. }, O.prototype.init = function(B, C, b) {
  7151. this.scrollbarButtons = [], this.renderer = B, this.userOptions = C, this.options = d(Z, U.scrollbar, C), this.chart = b, this.size = u(this.options.size, this.options.height), C.enabled && (this.render(), this.addEvents());
  7152. }, O.prototype.mouseDownHandler = function(B) {
  7153. B = this.chart.pointer.normalize(B), B = this.cursorToScrollbarPosition(B), this.chartX = B.chartX, this.chartY = B.chartY, this.initPositions = [this.from, this.to], this.grabbedCenter = !0;
  7154. }, O.prototype.mouseMoveHandler = function(B) {
  7155. var C = this.chart.pointer.normalize(B), b = this.options.vertical ? "chartY" : "chartX", w = this.initPositions || [];
  7156. !this.grabbedCenter || B.touches && B.touches[0][b] === 0 || (C = this.cursorToScrollbarPosition(C)[b], b = this[b], b = C - b, this.hasDragged = !0, this.updatePosition(w[0] + b, w[1] + b), this.hasDragged && v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: B.type, DOMEvent: B }));
  7157. }, O.prototype.mouseUpHandler = function(B) {
  7158. this.hasDragged && v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMType: B.type, DOMEvent: B }), this.grabbedCenter = this.hasDragged = this.chartX = this.chartY = null;
  7159. }, O.prototype.position = function(B, C, b, w) {
  7160. var x = this.options.vertical, a = this.rendered ? "animate" : "attr", c = 0;
  7161. this.x = B, this.y = C + this.trackBorderWidth, this.width = b, this.xOffset = this.height = w, this.yOffset = c, x ? (this.width = this.yOffset = b = c = this.size, this.xOffset = C = 0, this.barWidth = w - 2 * b, this.x = B += this.options.margin) : (this.height = this.xOffset = w = C = this.size, this.barWidth = b - 2 * w, this.y += this.options.margin), this.group[a]({ translateX: B, translateY: this.y }), this.track[a]({ width: b, height: w }), this.scrollbarButtons[1][a]({ translateX: x ? 0 : b - C, translateY: x ? w - c : 0 });
  7162. }, O.prototype.removeEvents = function() {
  7163. this._events.forEach(function(B) {
  7164. A.apply(null, B);
  7165. }), this._events.length = 0;
  7166. }, O.prototype.render = function() {
  7167. var B = this.renderer, C = this.options, b = this.size, w = this.chart.styledMode, x = B.g("scrollbar").attr({ zIndex: C.zIndex, translateY: -99999 }).add();
  7168. this.group = x, this.track = B.rect().addClass("highcharts-scrollbar-track").attr({ x: 0, r: C.trackBorderRadius || 0, height: b, width: b }).add(x), w || this.track.attr({ fill: C.trackBackgroundColor, stroke: C.trackBorderColor, "stroke-width": C.trackBorderWidth }), this.trackBorderWidth = this.track.strokeWidth(), this.track.attr({ y: -this.trackBorderWidth % 2 / 2 }), this.scrollbarGroup = B.g().add(x), this.scrollbar = B.rect().addClass("highcharts-scrollbar-thumb").attr({ height: b, width: b, r: C.barBorderRadius || 0 }).add(this.scrollbarGroup), this.scrollbarRifles = B.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]], C.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup), w || (this.scrollbar.attr({ fill: C.barBackgroundColor, stroke: C.barBorderColor, "stroke-width": C.barBorderWidth }), this.scrollbarRifles.attr({ stroke: C.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);
  7169. }, O.prototype.setRange = function(B, C) {
  7170. var b = this.options, w = b.vertical, x = b.minWidth, a = this.barWidth, c = !this.rendered || this.hasDragged || this.chart.navigator && this.chart.navigator.hasDragged ? "attr" : "animate";
  7171. if (R(a)) {
  7172. var p = a * Math.min(C, 1);
  7173. B = Math.max(B, 0);
  7174. var i = Math.ceil(a * B);
  7175. this.calculatedWidth = p = N(p - i), p < x && (i = (a - x + p) * B, p = x), x = Math.floor(i + this.xOffset + this.yOffset), a = p / 2 - 0.5, this.from = B, this.to = C, w ? (this.scrollbarGroup[c]({ translateY: x }), this.scrollbar[c]({ height: p }), this.scrollbarRifles[c]({ translateY: a }), this.scrollbarTop = x, this.scrollbarLeft = 0) : (this.scrollbarGroup[c]({ translateX: x }), this.scrollbar[c]({ width: p }), this.scrollbarRifles[c]({ translateX: a }), this.scrollbarLeft = x, this.scrollbarTop = 0), 12 >= p ? this.scrollbarRifles.hide() : this.scrollbarRifles.show(!0), b.showFull === !1 && (0 >= B && 1 <= C ? this.group.hide() : this.group.show()), this.rendered = !0;
  7176. }
  7177. }, O.prototype.shouldUpdateExtremes = function(B) {
  7178. return u(this.options.liveRedraw, j.svg && !j.isTouchDevice && !this.chart.isBoosting) || B === "mouseup" || B === "touchend" || !R(B);
  7179. }, O.prototype.trackClick = function(B) {
  7180. var C = this.chart.pointer.normalize(B), b = this.to - this.from, w = this.y + this.scrollbarTop, x = this.x + this.scrollbarLeft;
  7181. this.options.vertical && C.chartY > w || !this.options.vertical && C.chartX > x ? this.updatePosition(this.from + b, this.to + b) : this.updatePosition(this.from - b, this.to - b), v(this, "changed", { from: this.from, to: this.to, trigger: "scrollbar", DOMEvent: B });
  7182. }, O.prototype.update = function(B) {
  7183. this.destroy(), this.init(this.chart.renderer, d(
  7184. !0,
  7185. this.options,
  7186. B
  7187. ), this.chart);
  7188. }, O.prototype.updatePosition = function(B, C) {
  7189. 1 < C && (B = N(1 - N(C - B)), C = 1), 0 > B && (C = N(C - B), B = 0), this.from = B, this.to = C;
  7190. }, O.defaultOptions = Z, O;
  7191. }(), U.scrollbar = d(!0, y.defaultOptions, U.scrollbar), y;
  7192. }), E(l, "Core/Axis/NavigatorAxis.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  7193. var I = y.isTouchDevice, Z = j.addEvent, H = j.correctFloat, U = j.defined, F = j.isNumber, N = j.pick, R = function() {
  7194. function S(v) {
  7195. this.axis = v;
  7196. }
  7197. return S.prototype.destroy = function() {
  7198. this.axis = void 0;
  7199. }, S.prototype.toFixedRange = function(v, d, u, A) {
  7200. var O = this.axis, B = O.chart;
  7201. B = B && B.fixedRange;
  7202. var C = (O.pointRange || 0) / 2;
  7203. return v = N(u, O.translate(v, !0, !O.horiz)), d = N(A, O.translate(d, !0, !O.horiz)), O = B && (d - v) / B, U(u) || (v = H(v + C)), U(A) || (d = H(d - C)), 0.7 < O && 1.3 > O && (A ? v = d - B : d = v + B), F(v) && F(d) || (v = d = void 0), { min: v, max: d };
  7204. }, S;
  7205. }();
  7206. return function() {
  7207. function S() {
  7208. }
  7209. return S.compose = function(v) {
  7210. v.keepProps.push("navigatorAxis"), Z(v, "init", function() {
  7211. this.navigatorAxis || (this.navigatorAxis = new R(this));
  7212. }), Z(v, "zoom", function(d) {
  7213. var u = this.chart.options, A = u.navigator, O = this.navigatorAxis, B = u.chart.pinchType, C = u.rangeSelector;
  7214. u = u.chart.zoomType, this.isXAxis && (A && A.enabled || C && C.enabled) && (u === "y" ? d.zoomed = !1 : (!I && u === "xy" || I && B === "xy") && this.options.range && (A = O.previousZoom, U(d.newMin) ? O.previousZoom = [this.min, this.max] : A && (d.newMin = A[0], d.newMax = A[1], O.previousZoom = void 0))), typeof d.zoomed < "u" && d.preventDefault();
  7215. });
  7216. }, S.AdditionsClass = R, S;
  7217. }();
  7218. }), E(l, "Core/Navigator.js", [
  7219. l["Core/Axis/Axis.js"],
  7220. l["Core/Chart/Chart.js"],
  7221. l["Core/Color/Color.js"],
  7222. l["Core/Globals.js"],
  7223. l["Core/Axis/NavigatorAxis.js"],
  7224. l["Core/DefaultOptions.js"],
  7225. l["Core/Renderer/RendererRegistry.js"],
  7226. l["Core/Scrollbar.js"],
  7227. l["Core/Series/Series.js"],
  7228. l["Core/Series/SeriesRegistry.js"],
  7229. l["Core/Utilities.js"]
  7230. ], function(y, j, I, Z, H, U, F, N, R, S, v) {
  7231. I = I.parse;
  7232. var d = Z.hasTouch, u = Z.isTouchDevice, A = U.defaultOptions, O = v.addEvent, B = v.clamp, C = v.correctFloat, b = v.defined, w = v.destroyObjectProperties, x = v.erase, a = v.extend, c = v.find, p = v.isArray, i = v.isNumber, h = v.merge, o = v.pick, t = v.removeEvent, s = v.splat, n = function(_) {
  7233. for (var D = [], W = 1; W < arguments.length; W++)
  7234. D[W - 1] = arguments[W];
  7235. if (D = [].filter.call(D, i), D.length)
  7236. return Math[_].apply(0, D);
  7237. };
  7238. U = typeof S.seriesTypes.areaspline > "u" ? "line" : "areaspline", a(A, { 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: I("#6685c2").setOpacity(0.3).get(), outlineColor: "#cccccc", outlineWidth: 1, series: {
  7239. type: U,
  7240. fillOpacity: 0.05,
  7241. lineWidth: 1,
  7242. compare: null,
  7243. 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]] },
  7244. dataLabels: { enabled: !1, zIndex: 2 },
  7245. id: "highcharts-navigator-series",
  7246. className: "highcharts-navigator-series",
  7247. lineColor: null,
  7248. marker: { enabled: !1 },
  7249. threshold: null
  7250. }, 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, W, P, X) {
  7251. return _ = (X && X.width || 0) / 2, D = Math.round(_ / 3) + 0.5, X = X && X.height || 0, [["M", -_ - 1, 0.5], ["L", _, 0.5], ["L", _, X + 0.5], ["L", -_ - 1, X + 0.5], ["L", -_ - 1, 0.5], ["M", -D, 4], ["L", -D, X - 3], ["M", D - 1, 4], ["L", D - 1, X - 3]];
  7252. };
  7253. var T = function() {
  7254. function _(D) {
  7255. 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(D);
  7256. }
  7257. return _.prototype.drawHandle = function(D, W, P, X) {
  7258. var g = this.navigatorOptions.handles.height;
  7259. this.handles[W][X](P ? { translateX: Math.round(this.left + this.height / 2), translateY: Math.round(this.top + parseInt(D, 10) + 0.5 - g) } : { translateX: Math.round(this.left + parseInt(D, 10)), translateY: Math.round(this.top + this.height / 2 - g / 2 - 1) });
  7260. }, _.prototype.drawOutline = function(D, W, P, X) {
  7261. var g = this.navigatorOptions.maskInside, m = this.outline.strokeWidth(), L = m / 2, Y = m % 2 / 2;
  7262. m = this.outlineHeight;
  7263. var V = this.scrollbarHeight || 0, Q = this.size, k = this.left - V, G = this.top;
  7264. P ? (k -= L, P = G + W + Y, W = G + D + Y, Y = [["M", k + m, G - V - Y], ["L", k + m, P], ["L", k, P], ["L", k, W], ["L", k + m, W], ["L", k + m, G + Q + V]], g && Y.push(["M", k + m, P - L], ["L", k + m, W + L])) : (D += k + V - Y, W += k + V - Y, G += L, Y = [["M", k, G], ["L", D, G], ["L", D, G + m], ["L", W, G + m], ["L", W, G], ["L", k + Q + 2 * V, G]], g && Y.push(["M", D - L, G], ["L", W + L, G])), this.outline[X]({ d: Y });
  7265. }, _.prototype.drawMasks = function(D, W, P, X) {
  7266. var g = this.left, m = this.top, L = this.height;
  7267. if (P)
  7268. var Y = [g, g, g], V = [m, m + D, m + W], Q = [L, L, L], k = [D, W - D, this.size - W];
  7269. else
  7270. Y = [g, g + D, g + W], V = [m, m, m], Q = [D, W - D, this.size - W], k = [L, L, L];
  7271. this.shades.forEach(function(G, z) {
  7272. G[X]({ x: Y[z], y: V[z], width: Q[z], height: k[z] });
  7273. });
  7274. }, _.prototype.renderElements = function() {
  7275. var D = this, W = D.navigatorOptions, P = W.maskInside, X = D.chart, g = X.renderer, m, L = { cursor: X.inverted ? "ns-resize" : "ew-resize" };
  7276. D.navigatorGroup = m = g.g("navigator").attr({ zIndex: 8, visibility: "hidden" }).add(), [!P, P, !P].forEach(function(Y, V) {
  7277. D.shades[V] = g.rect().addClass("highcharts-navigator-mask" + (V === 1 ? "-inside" : "-outside")).add(m), X.styledMode || D.shades[V].attr({ fill: Y ? W.maskFill : "rgba(0,0,0,0)" }).css(V === 1 && L);
  7278. }), D.outline = g.path().addClass("highcharts-navigator-outline").add(m), X.styledMode || D.outline.attr({ "stroke-width": W.outlineWidth, stroke: W.outlineColor }), W.handles.enabled && [0, 1].forEach(function(Y) {
  7279. if (W.handles.inverted = X.inverted, D.handles[Y] = g.symbol(W.handles.symbols[Y], -W.handles.width / 2 - 1, 0, W.handles.width, W.handles.height, W.handles), D.handles[Y].attr({ zIndex: 7 - Y }).addClass("highcharts-navigator-handle highcharts-navigator-handle-" + ["left", "right"][Y]).add(m), !X.styledMode) {
  7280. var V = W.handles;
  7281. D.handles[Y].attr({ fill: V.backgroundColor, stroke: V.borderColor, "stroke-width": V.lineWidth }).css(L);
  7282. }
  7283. });
  7284. }, _.prototype.update = function(D) {
  7285. (this.series || []).forEach(function(W) {
  7286. W.baseSeries && delete W.baseSeries.navigatorSeries;
  7287. }), this.destroy(), h(!0, this.chart.options.navigator, this.options, D), this.init(this.chart);
  7288. }, _.prototype.render = function(D, W, P, X) {
  7289. var g = this.chart, m = this.scrollbarHeight, L, Y = this.xAxis, V = Y.pointRange || 0, Q = Y.navigatorAxis.fake ? g.xAxis[0] : Y, k = this.navigatorEnabled, G, z = this.rendered, $ = g.inverted, q = g.xAxis[0].minRange, it = g.xAxis[0].options.maxRange;
  7290. if (!this.hasDragged || b(P)) {
  7291. if (D = C(D - V / 2), W = C(W + V / 2), !i(D) || !i(W))
  7292. if (z)
  7293. P = 0, X = o(Y.width, Q.width);
  7294. else
  7295. return;
  7296. this.left = o(Y.left, g.plotLeft + m + ($ ? g.plotWidth : 0)), this.size = G = L = o(Y.len, ($ ? g.plotHeight : g.plotWidth) - 2 * m), g = $ ? m : L + 2 * m, P = o(P, Y.toPixels(D, !0)), X = o(X, Y.toPixels(W, !0)), i(P) && Math.abs(P) !== 1 / 0 || (P = 0, X = g), D = Y.toValue(P, !0), W = Y.toValue(X, !0);
  7297. var et = Math.abs(C(W - D));
  7298. et < q ? this.grabbedLeft ? P = Y.toPixels(W - q - V, !0) : this.grabbedRight && (X = Y.toPixels(D + q + V, !0)) : b(it) && C(et - V) > it && (this.grabbedLeft ? P = Y.toPixels(W - it - V, !0) : this.grabbedRight && (X = Y.toPixels(D + it + V, !0))), this.zoomedMax = B(Math.max(P, X), 0, G), this.zoomedMin = B(this.fixedWidth ? this.zoomedMax - this.fixedWidth : Math.min(P, X), 0, G), this.range = this.zoomedMax - this.zoomedMin, G = Math.round(this.zoomedMax), P = Math.round(this.zoomedMin), k && (this.navigatorGroup.attr({ visibility: "visible" }), z = z && !this.hasDragged ? "animate" : "attr", this.drawMasks(P, G, $, z), this.drawOutline(P, G, $, z), this.navigatorOptions.handles.enabled && (this.drawHandle(P, 0, $, z), this.drawHandle(G, 1, $, z))), this.scrollbar && ($ ? ($ = this.top - m, Q = this.left - m + (k || !Q.opposite ? 0 : (Q.titleOffset || 0) + Q.axisTitleMargin), m = L + 2 * m) : ($ = this.top + (k ? this.height : -m), Q = this.left - m), this.scrollbar.position(Q, $, g, m), this.scrollbar.setRange(this.zoomedMin / (L || 1), this.zoomedMax / (L || 1))), this.rendered = !0;
  7299. }
  7300. }, _.prototype.addMouseEvents = function() {
  7301. var D = this, W = D.chart, P = W.container, X = [], g, m;
  7302. D.mouseMoveHandler = g = function(L) {
  7303. D.onMouseMove(L);
  7304. }, D.mouseUpHandler = m = function(L) {
  7305. D.onMouseUp(L);
  7306. }, X = D.getPartsEvents("mousedown"), X.push(O(W.renderTo, "mousemove", g), O(P.ownerDocument, "mouseup", m)), d && (X.push(O(W.renderTo, "touchmove", g), O(P.ownerDocument, "touchend", m)), X.concat(D.getPartsEvents("touchstart"))), D.eventsToUnbind = X, D.series && D.series[0] && X.push(O(D.series[0].xAxis, "foundExtremes", function() {
  7307. W.navigator.modifyNavigatorAxisExtremes();
  7308. }));
  7309. }, _.prototype.getPartsEvents = function(D) {
  7310. var W = this, P = [];
  7311. return ["shades", "handles"].forEach(function(X) {
  7312. W[X].forEach(function(g, m) {
  7313. P.push(O(g.element, D, function(L) {
  7314. W[X + "Mousedown"](L, m);
  7315. }));
  7316. });
  7317. }), P;
  7318. }, _.prototype.shadesMousedown = function(D, W) {
  7319. D = this.chart.pointer.normalize(D);
  7320. var P = this.chart, X = this.xAxis, g = this.zoomedMin, m = this.left, L = this.size, Y = this.range, V = D.chartX;
  7321. if (P.inverted && (V = D.chartY, m = this.top), W === 1)
  7322. this.grabbedCenter = V, this.fixedWidth = Y, this.dragOffset = V - g;
  7323. else {
  7324. if (D = V - m - Y / 2, W === 0)
  7325. D = Math.max(0, D);
  7326. else if (W === 2 && D + Y >= L)
  7327. if (D = L - Y, this.reversedExtremes) {
  7328. D -= Y;
  7329. var Q = this.getUnionExtremes().dataMin;
  7330. } else
  7331. var k = this.getUnionExtremes().dataMax;
  7332. D !== g && (this.fixedWidth = Y, W = X.navigatorAxis.toFixedRange(D, D + Y, Q, k), b(W.min) && P.xAxis[0].setExtremes(Math.min(W.min, W.max), Math.max(W.min, W.max), !0, null, { trigger: "navigator" }));
  7333. }
  7334. }, _.prototype.handlesMousedown = function(D, W) {
  7335. this.chart.pointer.normalize(D), D = this.chart;
  7336. var P = D.xAxis[0], X = this.reversedExtremes;
  7337. W === 0 ? (this.grabbedLeft = !0, this.otherHandlePos = this.zoomedMax, this.fixedExtreme = X ? P.min : P.max) : (this.grabbedRight = !0, this.otherHandlePos = this.zoomedMin, this.fixedExtreme = X ? P.max : P.min), D.fixedRange = null;
  7338. }, _.prototype.onMouseMove = function(D) {
  7339. var W = this, P = W.chart, X = W.left, g = W.navigatorSize, m = W.range, L = W.dragOffset, Y = P.inverted;
  7340. D.touches && D.touches[0].pageX === 0 || (D = P.pointer.normalize(D), P = D.chartX, Y && (X = W.top, P = D.chartY), W.grabbedLeft ? (W.hasDragged = !0, W.render(0, 0, P - X, W.otherHandlePos)) : W.grabbedRight ? (W.hasDragged = !0, W.render(0, 0, W.otherHandlePos, P - X)) : W.grabbedCenter && (W.hasDragged = !0, P < L ? P = L : P > g + L - m && (P = g + L - m), W.render(0, 0, P - L, P - L + m)), W.hasDragged && W.scrollbar && o(W.scrollbar.options.liveRedraw, Z.svg && !u && !this.chart.isBoosting) && (D.DOMType = D.type, setTimeout(function() {
  7341. W.onMouseUp(D);
  7342. }, 0)));
  7343. }, _.prototype.onMouseUp = function(D) {
  7344. var W = this.chart, P = this.xAxis, X = this.scrollbar, g = D.DOMEvent || D, m = W.inverted, L = this.rendered && !this.hasDragged ? "animate" : "attr";
  7345. if (this.hasDragged && (!X || !X.hasDragged) || D.trigger === "scrollbar") {
  7346. if (X = this.getUnionExtremes(), this.zoomedMin === this.otherHandlePos)
  7347. var Y = this.fixedExtreme;
  7348. else if (this.zoomedMax === this.otherHandlePos)
  7349. var V = this.fixedExtreme;
  7350. this.zoomedMax === this.size && (V = this.reversedExtremes ? X.dataMin : X.dataMax), this.zoomedMin === 0 && (Y = this.reversedExtremes ? X.dataMax : X.dataMin), P = P.navigatorAxis.toFixedRange(this.zoomedMin, this.zoomedMax, Y, V), b(P.min) && W.xAxis[0].setExtremes(Math.min(P.min, P.max), Math.max(P.min, P.max), !0, this.hasDragged ? !1 : null, { trigger: "navigator", triggerOp: "navigator-drag", DOMEvent: g });
  7351. }
  7352. D.DOMType !== "mousemove" && D.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), D = Math.round(this.zoomedMax), this.shades && this.drawMasks(W, D, m, L), this.outline && this.drawOutline(W, D, m, L), this.navigatorOptions.handles.enabled && Object.keys(this.handles).length === this.handles.length && (this.drawHandle(W, 0, m, L), this.drawHandle(D, 1, m, L)));
  7353. }, _.prototype.removeEvents = function() {
  7354. this.eventsToUnbind && (this.eventsToUnbind.forEach(function(D) {
  7355. D();
  7356. }), this.eventsToUnbind = void 0), this.removeBaseSeriesEvents();
  7357. }, _.prototype.removeBaseSeriesEvents = function() {
  7358. var D = this.baseSeries || [];
  7359. this.navigatorEnabled && D[0] && (this.navigatorOptions.adaptToUpdatedData !== !1 && D.forEach(function(W) {
  7360. t(W, "updatedData", this.updatedDataHandler);
  7361. }, this), D[0].xAxis && t(D[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes));
  7362. }, _.prototype.init = function(D) {
  7363. var W = D.options, P = W.navigator, X = P.enabled, g = W.scrollbar, m = g.enabled;
  7364. W = X ? P.height : 0;
  7365. var L = m ? g.height : 0;
  7366. this.handles = [], this.shades = [], this.chart = D, this.setBaseSeries(), this.height = W, this.scrollbarHeight = L, this.scrollbarEnabled = m, this.navigatorEnabled = X, this.navigatorOptions = P, this.scrollbarOptions = g, this.outlineHeight = W + L, this.opposite = o(P.opposite, !(X || !D.inverted));
  7367. var Y = this;
  7368. X = Y.baseSeries, g = D.xAxis.length, m = D.yAxis.length;
  7369. var V = X && X[0] && X[0].xAxis || D.xAxis[0] || { options: {} };
  7370. D.isDirtyBox = !0, Y.navigatorEnabled ? (Y.xAxis = new y(D, h(
  7371. { breaks: V.options.breaks, ordinal: V.options.ordinal },
  7372. P.xAxis,
  7373. { 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 },
  7374. D.inverted ? { offsets: [L, 0, -L, 0], width: W } : { offsets: [0, -L, 0, L], height: W }
  7375. )), Y.yAxis = new y(D, h(P.yAxis, { id: "navigator-y-axis", alignTicks: !1, offset: 0, index: m, isInternal: !0, reversed: o(P.yAxis && P.yAxis.reversed, D.yAxis[0] && D.yAxis[0].reversed, !1), zoomEnabled: !1 }, D.inverted ? { width: W } : { height: W })), X || P.series.data ? Y.updateNavigatorSeries(!1) : D.series.length === 0 && (Y.unbindRedraw = O(D, "beforeRedraw", function() {
  7376. 0 < D.series.length && !Y.series && (Y.setBaseSeries(), Y.unbindRedraw());
  7377. })), Y.reversedExtremes = D.inverted && !Y.xAxis.reversed || !D.inverted && Y.xAxis.reversed, Y.renderElements(), Y.addMouseEvents()) : (Y.xAxis = {
  7378. chart: D,
  7379. navigatorAxis: { fake: !0 },
  7380. translate: function(Q, k) {
  7381. var G = D.xAxis[0], z = G.getExtremes(), $ = G.len - 2 * L, q = n("min", G.options.min, z.dataMin);
  7382. return G = n("max", G.options.max, z.dataMax) - q, k ? Q * G / $ + q : $ * (Q - q) / G;
  7383. },
  7384. toPixels: function(Q) {
  7385. return this.translate(Q);
  7386. },
  7387. toValue: function(Q) {
  7388. return this.translate(Q, !0);
  7389. }
  7390. }, Y.xAxis.navigatorAxis.axis = Y.xAxis, Y.xAxis.navigatorAxis.toFixedRange = H.AdditionsClass.prototype.toFixedRange.bind(Y.xAxis.navigatorAxis)), D.options.scrollbar.enabled && (D.scrollbar = Y.scrollbar = new N(D.renderer, h(D.options.scrollbar, { margin: Y.navigatorEnabled ? 0 : 10, vertical: D.inverted }), D), O(Y.scrollbar, "changed", function(Q) {
  7391. var k = Y.size, G = k * this.to;
  7392. k *= this.from, Y.hasDragged = Y.scrollbar.hasDragged, Y.render(0, 0, k, G), this.shouldUpdateExtremes(Q.DOMType) && setTimeout(function() {
  7393. Y.onMouseUp(Q);
  7394. });
  7395. })), Y.addBaseSeriesEvents(), Y.addChartEvents();
  7396. }, _.prototype.getUnionExtremes = function(D) {
  7397. var W = this.chart.xAxis[0], P = this.xAxis, X = P.options, g = W.options, m;
  7398. return D && W.dataMin === null || (m = { dataMin: o(X && X.min, n("min", g.min, W.dataMin, P.dataMin, P.min)), dataMax: o(X && X.max, n("max", g.max, W.dataMax, P.dataMax, P.max)) }), m;
  7399. }, _.prototype.setBaseSeries = function(D, W) {
  7400. var P = this.chart, X = this.baseSeries = [];
  7401. D = D || P.options && P.options.navigator.baseSeries || (P.series.length ? c(
  7402. P.series,
  7403. function(g) {
  7404. return !g.options.isInternal;
  7405. }
  7406. ).index : 0), (P.series || []).forEach(function(g, m) {
  7407. g.options.isInternal || !g.options.showInNavigator && (m !== D && g.options.id !== D || g.options.showInNavigator === !1) || X.push(g);
  7408. }), this.xAxis && !this.xAxis.navigatorAxis.fake && this.updateNavigatorSeries(!0, W);
  7409. }, _.prototype.updateNavigatorSeries = function(D, W) {
  7410. var P = this, X = P.chart, g = P.baseSeries, m, L, Y = P.navigatorOptions.series, V, Q = {
  7411. enableMouseTracking: !1,
  7412. index: null,
  7413. linkedTo: null,
  7414. group: "nav",
  7415. padXAxis: !1,
  7416. xAxis: "navigator-x-axis",
  7417. yAxis: "navigator-y-axis",
  7418. showInLegend: !1,
  7419. stacking: void 0,
  7420. isInternal: !0,
  7421. states: { inactive: { opacity: 1 } }
  7422. }, k = P.series = (P.series || []).filter(function(G) {
  7423. var z = G.baseSeries;
  7424. return 0 > g.indexOf(z) ? (z && (t(z, "updatedData", P.updatedDataHandler), delete z.navigatorSeries), G.chart && G.destroy(), !1) : !0;
  7425. });
  7426. g && g.length && g.forEach(function(G) {
  7427. var z = G.navigatorSeries, $ = a({ color: G.color, visible: G.visible }, p(Y) ? A.navigator.series : Y);
  7428. z && P.navigatorOptions.adaptToUpdatedData === !1 || (Q.name = "Navigator " + g.length, m = G.options || {}, V = m.navigatorOptions || {}, $.dataLabels = s($.dataLabels), L = h(m, Q, $, V), L.pointRange = o($.pointRange, V.pointRange, A.plotOptions[L.type || "line"].pointRange), $ = V.data || $.data, P.hasNavigatorData = P.hasNavigatorData || !!$, L.data = $ || m.data && m.data.slice(0), z && z.options ? z.update(L, W) : (G.navigatorSeries = X.initSeries(L), G.navigatorSeries.baseSeries = G, k.push(G.navigatorSeries)));
  7429. }), (Y.data && (!g || !g.length) || p(Y)) && (P.hasNavigatorData = !1, Y = s(Y), Y.forEach(function(G, z) {
  7430. Q.name = "Navigator " + (k.length + 1), L = h(
  7431. A.navigator.series,
  7432. { color: X.series[z] && !X.series[z].options.isInternal && X.series[z].color || X.options.colors[z] || X.options.colors[0] },
  7433. Q,
  7434. G
  7435. ), L.data = G.data, L.data && (P.hasNavigatorData = !0, k.push(X.initSeries(L)));
  7436. })), D && this.addBaseSeriesEvents();
  7437. }, _.prototype.addBaseSeriesEvents = function() {
  7438. var D = this, W = D.baseSeries || [];
  7439. W[0] && W[0].xAxis && W[0].eventsToUnbind.push(O(W[0].xAxis, "foundExtremes", this.modifyBaseAxisExtremes)), W.forEach(function(P) {
  7440. P.eventsToUnbind.push(O(P, "show", function() {
  7441. this.navigatorSeries && this.navigatorSeries.setVisible(
  7442. !0,
  7443. !1
  7444. );
  7445. })), P.eventsToUnbind.push(O(P, "hide", function() {
  7446. this.navigatorSeries && this.navigatorSeries.setVisible(!1, !1);
  7447. })), this.navigatorOptions.adaptToUpdatedData !== !1 && P.xAxis && P.eventsToUnbind.push(O(P, "updatedData", this.updatedDataHandler)), P.eventsToUnbind.push(O(P, "remove", function() {
  7448. this.navigatorSeries && (x(D.series, this.navigatorSeries), b(this.navigatorSeries.options) && this.navigatorSeries.remove(!1), delete this.navigatorSeries);
  7449. }));
  7450. }, this);
  7451. }, _.prototype.getBaseSeriesMin = function(D) {
  7452. return this.baseSeries.reduce(function(W, P) {
  7453. return Math.min(W, P.xData ? P.xData[0] : W);
  7454. }, D);
  7455. }, _.prototype.modifyNavigatorAxisExtremes = function() {
  7456. var D = this.xAxis, W;
  7457. typeof D.getExtremes < "u" && (!(W = this.getUnionExtremes(!0)) || W.dataMin === D.min && W.dataMax === D.max || (D.min = W.dataMin, D.max = W.dataMax));
  7458. }, _.prototype.modifyBaseAxisExtremes = function() {
  7459. var D = this.chart.navigator, W = this.getExtremes(), P = W.dataMin, X = W.dataMax;
  7460. W = W.max - W.min;
  7461. var g = D.stickToMin, m = D.stickToMax, L = o(this.options.overscroll, 0), Y = D.series && D.series[0], V = !!this.setExtremes;
  7462. if (!this.eventArgs || this.eventArgs.trigger !== "rangeSelectorButton") {
  7463. if (g)
  7464. var Q = P, k = Q + W;
  7465. m && (k = X + L, g || (Q = Math.max(P, k - W, D.getBaseSeriesMin(Y && Y.xData ? Y.xData[0] : -Number.MAX_VALUE)))), V && (g || m) && i(Q) && (this.min = this.userMin = Q, this.max = this.userMax = k);
  7466. }
  7467. D.stickToMin = D.stickToMax = null;
  7468. }, _.prototype.updatedDataHandler = function() {
  7469. var D = this.chart.navigator, W = this.navigatorSeries;
  7470. D.stickToMax = D.reversedExtremes ? Math.round(D.zoomedMin) === 0 : Math.round(D.zoomedMax) >= Math.round(D.size), D.stickToMin = D.shouldStickToMin(
  7471. this,
  7472. D
  7473. ), W && !D.hasNavigatorData && (W.options.pointStart = this.xData[0], W.setData(this.options.data, !1, null, !1));
  7474. }, _.prototype.shouldStickToMin = function(D, W) {
  7475. W = W.getBaseSeriesMin(D.xData[0]);
  7476. var P = D.xAxis;
  7477. D = P.max;
  7478. var X = P.min;
  7479. return P = P.options.range, i(D) && i(X) ? P && 0 < D - W ? D - W < P : X <= W : !1;
  7480. }, _.prototype.addChartEvents = function() {
  7481. this.eventsToUnbind || (this.eventsToUnbind = []), this.eventsToUnbind.push(O(this.chart, "redraw", function() {
  7482. var D = this.navigator, W = D && (D.baseSeries && D.baseSeries[0] && D.baseSeries[0].xAxis || this.xAxis[0]);
  7483. W && D.render(W.min, W.max);
  7484. }), O(this.chart, "getMargins", function() {
  7485. var D = this.navigator, W = D.opposite ? "plotTop" : "marginBottom";
  7486. this.inverted && (W = D.opposite ? "marginRight" : "plotLeft"), this[W] = (this[W] || 0) + (D.navigatorEnabled || !this.inverted ? D.outlineHeight : 0) + D.navigatorOptions.margin;
  7487. }));
  7488. }, _.prototype.destroy = function() {
  7489. this.removeEvents(), this.xAxis && (x(this.chart.xAxis, this.xAxis), x(this.chart.axes, this.xAxis)), this.yAxis && (x(this.chart.yAxis, this.yAxis), x(this.chart.axes, this.yAxis)), (this.series || []).forEach(function(D) {
  7490. D.destroy && D.destroy();
  7491. }), "series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(D) {
  7492. this[D] && this[D].destroy && this[D].destroy(), this[D] = null;
  7493. }, this), [this.handles].forEach(function(D) {
  7494. w(D);
  7495. }, this);
  7496. }, _;
  7497. }();
  7498. return Z.Navigator || (Z.Navigator = T, H.compose(y), O(j, "beforeShowResetZoom", function() {
  7499. var _ = this.options, D = _.navigator, W = _.rangeSelector;
  7500. if ((D && D.enabled || W && W.enabled) && (!u && _.chart.zoomType === "x" || u && _.chart.pinchType === "x"))
  7501. return !1;
  7502. }), O(j, "beforeRender", function() {
  7503. var _ = this.options;
  7504. (_.navigator.enabled || _.scrollbar.enabled) && (this.scroller = this.navigator = new T(this));
  7505. }), O(j, "afterSetChartSize", function() {
  7506. var _ = this.legend, D = this.navigator;
  7507. if (D) {
  7508. var W = _ && _.options, P = D.xAxis, X = D.yAxis, g = D.scrollbarHeight;
  7509. this.inverted ? (D.left = D.opposite ? this.chartWidth - g - D.height : this.spacing[3] + g, D.top = this.plotTop + g) : (D.left = o(P.left, this.plotLeft + g), D.top = D.navigatorOptions.top || this.chartHeight - D.height - g - this.spacing[2] - (this.rangeSelector && this.extraBottomMargin ? this.rangeSelector.getHeight() : 0) - (W && W.verticalAlign === "bottom" && W.layout !== "proximate" && W.enabled && !W.floating ? _.legendHeight + o(W.margin, 10) : 0) - (this.titleOffset ? this.titleOffset[2] : 0)), P && X && (this.inverted ? P.options.left = X.options.left = D.left : P.options.top = X.options.top = D.top, P.setAxisSize(), X.setAxisSize());
  7510. }
  7511. }), O(j, "update", function(_) {
  7512. var D = _.options.navigator || {}, W = _.options.scrollbar || {};
  7513. this.navigator || this.scroller || !D.enabled && !W.enabled || (h(
  7514. !0,
  7515. this.options.navigator,
  7516. D
  7517. ), h(!0, this.options.scrollbar, W), delete _.options.navigator, delete _.options.scrollbar);
  7518. }), O(j, "afterUpdate", function(_) {
  7519. this.navigator || this.scroller || !this.options.navigator.enabled && !this.options.scrollbar.enabled || (this.scroller = this.navigator = new T(this), o(_.redraw, !0) && this.redraw(_.animation));
  7520. }), O(j, "afterAddSeries", function() {
  7521. this.navigator && this.navigator.setBaseSeries(null, !1);
  7522. }), O(R, "afterUpdate", function() {
  7523. this.chart.navigator && !this.options.isInternal && this.chart.navigator.setBaseSeries(
  7524. null,
  7525. !1
  7526. );
  7527. }), j.prototype.callbacks.push(function(_) {
  7528. var D = _.navigator;
  7529. D && _.xAxis[0] && (_ = _.xAxis[0].getExtremes(), D.render(_.min, _.max));
  7530. })), Z.Navigator = T, Z.Navigator;
  7531. }), E(l, "Extensions/RangeSelector.js", [l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/Globals.js"], l["Core/DefaultOptions.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  7532. function F(s) {
  7533. if (s.indexOf("%L") !== -1)
  7534. return "text";
  7535. var n = "aAdewbBmoyY".split("").some(function(_) {
  7536. return s.indexOf("%" + _) !== -1;
  7537. }), T = "HkIlMS".split("").some(function(_) {
  7538. return s.indexOf("%" + _) !== -1;
  7539. });
  7540. return n && T ? "datetime-local" : n ? "date" : T ? "time" : "text";
  7541. }
  7542. var N = Z.defaultOptions, R = U.addEvent, S = U.createElement, v = U.css, d = U.defined, u = U.destroyObjectProperties, A = U.discardElement, O = U.extend, B = U.find, C = U.fireEvent, b = U.isNumber, w = U.merge, x = U.objectEach, a = U.pad, c = U.pick, p = U.pInt, i = U.splat;
  7543. O(N, { rangeSelector: { allButtonsEnabled: !1, buttons: void 0, buttonSpacing: 5, dropdown: "responsive", enabled: void 0, verticalAlign: "top", buttonTheme: {
  7544. width: 28,
  7545. height: 18,
  7546. padding: 2,
  7547. zIndex: 7
  7548. }, 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(N.lang, { rangeSelectorZoom: "Zoom", rangeSelectorFrom: "", rangeSelectorTo: "→" });
  7549. var h = function() {
  7550. function s(n) {
  7551. this.buttons = void 0, this.buttonOptions = s.prototype.defaultButtons, this.initialButtonGroupWidth = 0, this.options = void 0, this.chart = n, this.init(n);
  7552. }
  7553. return s.prototype.clickButton = function(n, T) {
  7554. var _ = this.chart, D = this.buttonOptions[n], W = _.xAxis[0], P = _.scroller && _.scroller.getUnionExtremes() || W || {}, X = P.dataMin, g = P.dataMax, m = W && Math.round(Math.min(W.max, c(g, W.max))), L = D.type;
  7555. P = D._range;
  7556. var Y, V = D.dataGrouping;
  7557. if (X !== null && g !== null) {
  7558. if (_.fixedRange = P, this.setSelected(n), V && (this.forcedDataGrouping = !0, y.prototype.setDataGrouping.call(W || { chart: this.chart }, V, !1), this.frozenStates = D.preserveDataGrouping), L === "month" || L === "year")
  7559. if (W) {
  7560. L = { range: D, max: m, chart: _, dataMin: X, dataMax: g };
  7561. var Q = W.minFromRange.call(L);
  7562. b(L.newMax) && (m = L.newMax);
  7563. } else
  7564. P = D;
  7565. else if (P)
  7566. Q = Math.max(m - P, X), m = Math.min(Q + P, g);
  7567. else if (L === "ytd")
  7568. if (W)
  7569. typeof g > "u" && (X = Number.MAX_VALUE, g = Number.MIN_VALUE, _.series.forEach(function($) {
  7570. $ = $.xData, X = Math.min($[0], X), g = Math.max($[$.length - 1], g);
  7571. }), T = !1), m = this.getYTDExtremes(
  7572. g,
  7573. X,
  7574. _.time.useUTC
  7575. ), Q = Y = m.min, m = m.max;
  7576. else {
  7577. this.deferredYTDClick = n;
  7578. return;
  7579. }
  7580. else
  7581. L === "all" && W && (_.navigator && _.navigator.baseSeries[0] && (_.navigator.baseSeries[0].xAxis.options.range = void 0), Q = X, m = g);
  7582. if (d(Q) && (Q += D._offsetMin), d(m) && (m += D._offsetMax), this.dropdown && (this.dropdown.selectedIndex = n + 1), W)
  7583. W.setExtremes(Q, m, c(T, !0), void 0, { trigger: "rangeSelectorButton", rangeSelectorButton: D });
  7584. else {
  7585. var k = i(_.options.xAxis)[0], G = k.range;
  7586. k.range = P;
  7587. var z = k.min;
  7588. k.min = Y, R(_, "load", function() {
  7589. k.range = G, k.min = z;
  7590. });
  7591. }
  7592. C(
  7593. this,
  7594. "afterBtnClick"
  7595. );
  7596. }
  7597. }, s.prototype.setSelected = function(n) {
  7598. this.selected = this.options.selected = n;
  7599. }, s.prototype.init = function(n) {
  7600. var T = this, _ = n.options.rangeSelector, D = _.buttons || T.defaultButtons.slice(), W = _.selected, P = function() {
  7601. var X = T.minInput, g = T.maxInput;
  7602. X && X.blur && C(X, "blur"), g && g.blur && C(g, "blur");
  7603. };
  7604. T.chart = n, T.options = _, T.buttons = [], T.buttonOptions = D, this.eventsToUnbind = [], this.eventsToUnbind.push(R(n.container, "mousedown", P)), this.eventsToUnbind.push(R(n, "resize", P)), D.forEach(T.computeButtonRange), typeof W < "u" && D[W] && this.clickButton(W, !1), this.eventsToUnbind.push(R(n, "load", function() {
  7605. n.xAxis && n.xAxis[0] && R(n.xAxis[0], "setExtremes", function(X) {
  7606. this.max - this.min !== n.fixedRange && X.trigger !== "rangeSelectorButton" && X.trigger !== "updatedData" && T.forcedDataGrouping && !T.frozenStates && this.setDataGrouping(!1, !1);
  7607. });
  7608. }));
  7609. }, s.prototype.updateButtonStates = function() {
  7610. var n = this, T = this.chart, _ = this.dropdown, D = T.xAxis[0], W = Math.round(D.max - D.min), P = !D.hasVisibleSeries, X = T.scroller && T.scroller.getUnionExtremes() || D, g = X.dataMin, m = X.dataMax;
  7611. T = n.getYTDExtremes(m, g, T.time.useUTC);
  7612. var L = T.min, Y = T.max, V = n.selected, Q = b(V), k = n.options.allButtonsEnabled, G = n.buttons;
  7613. n.buttonOptions.forEach(function(z, $) {
  7614. var q = z._range, it = z.type, et = z.count || 1, nt = G[$], rt = 0, ct = z._offsetMax - z._offsetMin;
  7615. z = $ === V;
  7616. var gt = q > m - g, dt = q < D.minRange, ht = !1, at = !1;
  7617. 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 = Y - L + ct === W, ht = !z) : it === "all" && (q = D.max - D.min >= m - g, at = !z && Q && q), it = !k && (gt || dt || at || P), et = z && q || q && !Q && !ht || z && n.frozenStates, it ? rt = 3 : et && (Q = !0, rt = 2), nt.state !== rt && (nt.setState(rt), _ && (_.options[$ + 1].disabled = it, rt === 2 && (_.selectedIndex = $ + 1)), rt === 0 && V === $ && n.setSelected());
  7618. });
  7619. }, s.prototype.computeButtonRange = function(n) {
  7620. var T = n.type, _ = n.count || 1, D = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5 };
  7621. D[T] ? n._range = D[T] * _ : (T === "month" || T === "year") && (n._range = 864e5 * { month: 30, year: 365 }[T] * _), n._offsetMin = c(n.offsetMin, 0), n._offsetMax = c(n.offsetMax, 0), n._range += n._offsetMax - n._offsetMin;
  7622. }, s.prototype.getInputValue = function(n) {
  7623. n = n === "min" ? this.minInput : this.maxInput;
  7624. var T = this.chart.options.rangeSelector, _ = this.chart.time;
  7625. return n ? (n.type === "text" && T.inputDateParser || this.defaultInputDateParser)(n.value, _.useUTC, _) : 0;
  7626. }, s.prototype.setInputValue = function(n, T) {
  7627. var _ = this.options, D = this.chart.time, W = n === "min" ? this.minInput : this.maxInput;
  7628. if (n = n === "min" ? this.minDateBox : this.maxDateBox, W) {
  7629. var P = W.getAttribute("data-hc-time");
  7630. P = d(P) ? Number(P) : void 0, d(T) && (d(P) && W.setAttribute("data-hc-time-previous", P), W.setAttribute("data-hc-time", T), P = T), W.value = D.dateFormat(this.inputTypeFormats[W.type] || _.inputEditDateFormat, P), n && n.attr({ text: D.dateFormat(_.inputDateFormat, P) });
  7631. }
  7632. }, s.prototype.setInputExtremes = function(n, T, _) {
  7633. if (n = n === "min" ? this.minInput : this.maxInput) {
  7634. var D = this.inputTypeFormats[n.type], W = this.chart.time;
  7635. D && (T = W.dateFormat(D, T), n.min !== T && (n.min = T), _ = W.dateFormat(D, _), n.max !== _ && (n.max = _));
  7636. }
  7637. }, s.prototype.showInput = function(n) {
  7638. var T = n === "min" ? this.minDateBox : this.maxDateBox;
  7639. if ((n = n === "min" ? this.minInput : this.maxInput) && T && this.inputGroup) {
  7640. var _ = n.type === "text", D = this.inputGroup, W = D.translateX;
  7641. D = D.translateY;
  7642. var P = this.options.inputBoxWidth;
  7643. v(n, { width: _ ? T.width + (P ? -2 : 20) + "px" : "auto", height: _ ? T.height - 2 + "px" : "auto", border: "2px solid silver" }), _ && P ? v(n, { left: W + T.x + "px", top: D + "px" }) : v(n, { left: Math.min(Math.round(T.x + W - (n.offsetWidth - T.width) / 2), this.chart.chartWidth - n.offsetWidth) + "px", top: D - (n.offsetHeight - T.height) / 2 + "px" });
  7644. }
  7645. }, s.prototype.hideInput = function(n) {
  7646. (n = n === "min" ? this.minInput : this.maxInput) && v(n, { top: "-9999em", border: 0, width: "1px", height: "1px" });
  7647. }, s.prototype.defaultInputDateParser = function(n, T, _) {
  7648. var D = n.split("/").join("-").split(" ").join("T");
  7649. if (D.indexOf("T") === -1 && (D += "T00:00"), T)
  7650. D += "Z";
  7651. else {
  7652. var W;
  7653. (W = I.isSafari) && (W = D, W = !(6 < W.length && (W.lastIndexOf("-") === W.length - 6 || W.lastIndexOf("+") === W.length - 6))), W && (W = new Date(D).getTimezoneOffset() / 60, D += 0 >= W ? "+" + a(-W) + ":00" : "-" + a(W) + ":00");
  7654. }
  7655. return D = Date.parse(D), b(D) || (n = n.split("-"), D = Date.UTC(p(n[0]), p(n[1]) - 1, p(n[2]))), _ && T && b(D) && (D += _.getTimezoneOffset(D)), D;
  7656. }, s.prototype.drawInput = function(n) {
  7657. function T() {
  7658. var k = P.getInputValue(n), G = _.xAxis[0], z = _.scroller && _.scroller.xAxis ? _.scroller.xAxis : G, $ = z.dataMin;
  7659. z = z.dataMax;
  7660. var q = P.maxInput, it = P.minInput;
  7661. k !== Number(V.getAttribute("data-hc-time-previous")) && b(k) && (V.setAttribute("data-hc-time-previous", k), L && q && b($) ? k > Number(q.getAttribute("data-hc-time")) ? k = void 0 : k < $ && (k = $) : it && b(z) && (k < Number(it.getAttribute("data-hc-time")) ? k = void 0 : k > z && (k = z)), typeof k < "u" && G.setExtremes(L ? k : G.min, L ? G.max : k, void 0, void 0, { trigger: "rangeSelectorInput" }));
  7662. }
  7663. var _ = this.chart, D = this.div, W = this.inputGroup, P = this, X = _.renderer.style || {}, g = _.renderer, m = _.options.rangeSelector, L = n === "min", Y = N.lang[L ? "rangeSelectorFrom" : "rangeSelectorTo"] || "";
  7664. Y = g.label(Y, 0).addClass("highcharts-range-label").attr({ padding: Y ? 2 : 0, height: Y ? 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(
  7665. "click",
  7666. function() {
  7667. P.showInput(n), P[n + "Input"].focus();
  7668. }
  7669. ), _.styledMode || g.attr({ stroke: m.inputBoxBorderColor, "stroke-width": 1 }), g.add(W);
  7670. var V = S("input", { name: n, className: "highcharts-range-selector" }, void 0, D);
  7671. V.setAttribute("type", F(m.inputDateFormat || "%b %e, %Y")), _.styledMode || (Y.css(w(X, m.labelStyle)), g.css(w({ color: "#333333" }, X, m.inputStyle)), v(V, O({
  7672. position: "absolute",
  7673. border: 0,
  7674. boxShadow: "0 0 15px rgba(0,0,0,0.3)",
  7675. width: "1px",
  7676. height: "1px",
  7677. padding: 0,
  7678. textAlign: "center",
  7679. fontSize: X.fontSize,
  7680. fontFamily: X.fontFamily,
  7681. top: "-9999em"
  7682. }, m.inputStyle))), V.onfocus = function() {
  7683. P.showInput(n);
  7684. }, V.onblur = function() {
  7685. V === I.doc.activeElement && T(), P.hideInput(n), P.setInputValue(n), V.blur();
  7686. };
  7687. var Q = !1;
  7688. return V.onchange = function() {
  7689. Q || (T(), P.hideInput(n), V.blur());
  7690. }, V.onkeypress = function(k) {
  7691. k.keyCode === 13 && T();
  7692. }, V.onkeydown = function(k) {
  7693. Q = !0, k.keyCode !== 38 && k.keyCode !== 40 || T();
  7694. }, V.onkeyup = function() {
  7695. Q = !1;
  7696. }, { dateBox: g, input: V, label: Y };
  7697. }, s.prototype.getPosition = function() {
  7698. var n = this.chart, T = n.options.rangeSelector;
  7699. return n = T.verticalAlign === "top" ? n.plotTop - n.axisOffset[0] : 0, { buttonTop: n + T.buttonPosition.y, inputTop: n + T.inputPosition.y - 10 };
  7700. }, s.prototype.getYTDExtremes = function(n, T, _) {
  7701. var D = this.chart.time, W = new D.Date(n), P = D.get("FullYear", W);
  7702. return _ = _ ? D.Date.UTC(P, 0, 1) : +new D.Date(P, 0, 1), T = Math.max(T, _), W = W.getTime(), { max: Math.min(n || W, W), min: T };
  7703. }, s.prototype.render = function(n, T) {
  7704. var _ = this.chart, D = _.renderer, W = _.container, P = _.options, X = P.rangeSelector, g = c(P.chart.style && P.chart.style.zIndex, 0) + 1;
  7705. if (P = X.inputEnabled, X.enabled !== !1) {
  7706. if (this.rendered || (this.group = D.g("range-selector-group").attr({ zIndex: 7 }).add(), this.div = S("div", void 0, { position: "relative", height: 0, zIndex: g }), this.buttonOptions.length && this.renderButtons(), W.parentNode && W.parentNode.insertBefore(this.div, W), P && (this.inputGroup = D.g("input-group").add(this.group), D = this.drawInput("min"), this.minDateBox = D.dateBox, this.minLabel = D.label, this.minInput = D.input, D = this.drawInput("max"), this.maxDateBox = D.dateBox, this.maxLabel = D.label, this.maxInput = D.input)), P && (this.setInputValue(
  7707. "min",
  7708. n
  7709. ), this.setInputValue("max", T), n = _.scroller && _.scroller.getUnionExtremes() || _.xAxis[0] || {}, d(n.dataMin) && d(n.dataMax) && (_ = _.xAxis[0].minRange || 0, this.setInputExtremes("min", n.dataMin, Math.min(n.dataMax, this.getInputValue("max")) - _), this.setInputExtremes("max", Math.max(n.dataMin, this.getInputValue("min")) + _, n.dataMax)), this.inputGroup)) {
  7710. var m = 0;
  7711. [this.minLabel, this.minDateBox, this.maxLabel, this.maxDateBox].forEach(function(L) {
  7712. if (L) {
  7713. var Y = L.getBBox().width;
  7714. Y && (L.attr({ x: m }), m += Y + X.inputSpacing);
  7715. }
  7716. });
  7717. }
  7718. this.alignElements(), this.rendered = !0;
  7719. }
  7720. }, s.prototype.renderButtons = function() {
  7721. var n = this, T = this.buttons, _ = this.options, D = N.lang, W = this.chart.renderer, P = w(_.buttonTheme), X = P && P.states, g = P.width || 28;
  7722. delete P.width, delete P.states, this.buttonGroup = W.g("range-selector-buttons").add(this.group);
  7723. var m = this.dropdown = S("select", void 0, { position: "absolute", width: "1px", height: "1px", padding: 0, border: 0, top: "-9999em", cursor: "pointer", opacity: 1e-4 }, this.div);
  7724. R(m, "touchstart", function() {
  7725. m.style.fontSize = "16px";
  7726. }), [[I.isMS ? "mouseover" : "mouseenter"], [I.isMS ? "mouseout" : "mouseleave"], ["change", "click"]].forEach(function(L) {
  7727. var Y = L[0], V = L[1];
  7728. R(m, Y, function() {
  7729. var Q = T[n.currentButtonIndex()];
  7730. Q && C(Q.element, V || Y);
  7731. });
  7732. }), this.zoomText = W.label(D && D.rangeSelectorZoom || "", 0).attr({ padding: _.buttonTheme.padding, height: _.buttonTheme.height, paddingLeft: 0, paddingRight: 0 }).add(this.buttonGroup), this.chart.styledMode || (this.zoomText.css(_.labelStyle), P["stroke-width"] = c(P["stroke-width"], 0)), S(
  7733. "option",
  7734. { textContent: this.zoomText.textStr, disabled: !0 },
  7735. void 0,
  7736. m
  7737. ), this.buttonOptions.forEach(function(L, Y) {
  7738. S("option", { textContent: L.title || L.text }, void 0, m), T[Y] = W.button(L.text, 0, 0, function(V) {
  7739. var Q = L.events && L.events.click, k;
  7740. Q && (k = Q.call(L, V)), k !== !1 && n.clickButton(Y), n.isActive = !0;
  7741. }, P, X && X.hover, X && X.select, X && X.disabled).attr({ "text-align": "center", width: g }).add(n.buttonGroup), L.title && T[Y].attr("title", L.title);
  7742. });
  7743. }, s.prototype.alignElements = function() {
  7744. var n = this, T = this.buttonGroup, _ = this.buttons, D = this.chart, W = this.group, P = this.inputGroup, X = this.options, g = this.zoomText, m = D.options, L = m.exporting && m.exporting.enabled !== !1 && m.navigation && m.navigation.buttonOptions;
  7745. m = X.buttonPosition;
  7746. var Y = X.inputPosition, V = X.verticalAlign, Q = function($, q) {
  7747. return L && n.titleCollision(D) && V === "top" && q.align === "right" && q.y - $.getBBox().height - 12 < (L.y || 0) + (L.height || 0) + D.spacing[0] ? -40 : 0;
  7748. }, k = D.plotLeft;
  7749. if (W && m && Y) {
  7750. var G = m.x - D.spacing[3];
  7751. if (T) {
  7752. if (this.positionButtons(), !this.initialButtonGroupWidth) {
  7753. var z = 0;
  7754. g && (z += g.getBBox().width + 5), _.forEach(function($, q) {
  7755. z += $.width, q !== _.length - 1 && (z += X.buttonSpacing);
  7756. }), this.initialButtonGroupWidth = z;
  7757. }
  7758. k -= D.spacing[3], this.updateButtonStates(), g = Q(T, m), this.alignButtonGroup(g), W.placed = T.placed = D.hasLoaded;
  7759. }
  7760. T = 0, P && (T = Q(P, Y), Y.align === "left" ? G = k : Y.align === "right" && (G = -Math.max(D.axisOffset[1], -T)), P.align({ y: Y.y, width: P.getBBox().width, align: Y.align, x: Y.x + G - 2 }, !0, D.spacingBox), P.placed = D.hasLoaded), this.handleCollision(T), W.align({ verticalAlign: V }, !0, D.spacingBox), P = W.alignAttr.translateY, T = W.getBBox().height + 20, Q = 0, V === "bottom" && (Q = (Q = D.legend && D.legend.options) && Q.verticalAlign === "bottom" && Q.enabled && !Q.floating ? D.legend.legendHeight + c(Q.margin, 10) : 0, T = T + Q - 20, Q = P - T - (X.floating ? 0 : X.y) - (D.titleOffset ? D.titleOffset[2] : 0) - 10), V === "top" ? (X.floating && (Q = 0), D.titleOffset && D.titleOffset[0] && (Q = D.titleOffset[0]), Q += D.margin[0] - D.spacing[0] || 0) : V === "middle" && (Y.y === m.y ? Q = P : (Y.y || m.y) && (Q = 0 > Y.y || 0 > m.y ? Q - Math.min(Y.y, m.y) : P - T)), W.translate(X.x, X.y + Math.floor(Q)), m = this.minInput, Y = this.maxInput, P = this.dropdown, X.inputEnabled && m && Y && (m.style.marginTop = W.translateY + "px", Y.style.marginTop = W.translateY + "px"), P && (P.style.marginTop = W.translateY + "px");
  7761. }
  7762. }, s.prototype.alignButtonGroup = function(n, T) {
  7763. var _ = this.chart, D = this.buttonGroup, W = this.options.buttonPosition, P = _.plotLeft - _.spacing[3], X = W.x - _.spacing[3];
  7764. W.align === "right" ? X += n - P : W.align === "center" && (X -= P / 2), D && D.align({ y: W.y, width: c(T, this.initialButtonGroupWidth), align: W.align, x: X }, !0, _.spacingBox);
  7765. }, s.prototype.positionButtons = function() {
  7766. var n = this.buttons, T = this.chart, _ = this.options, D = this.zoomText, W = T.hasLoaded ? "animate" : "attr", P = _.buttonPosition, X = T.plotLeft, g = X;
  7767. D && D.visibility !== "hidden" && (D[W]({ x: c(X + P.x, X) }), g += P.x + D.getBBox().width + 5), this.buttonOptions.forEach(function(m, L) {
  7768. n[L].visibility !== "hidden" ? (n[L][W]({ x: g }), g += n[L].width + _.buttonSpacing) : n[L][W]({ x: X });
  7769. });
  7770. }, s.prototype.handleCollision = function(n) {
  7771. var T = this, _ = this.chart, D = this.buttonGroup, W = this.inputGroup, P = this.options, X = P.buttonPosition, g = P.dropdown, m = P.inputPosition;
  7772. P = function() {
  7773. var V = 0;
  7774. return T.buttons.forEach(function(Q) {
  7775. Q = Q.getBBox(), Q.width > V && (V = Q.width);
  7776. }), V;
  7777. };
  7778. var L = function(V) {
  7779. if (W && D) {
  7780. var Q = W.alignAttr.translateX + W.alignOptions.x - n + W.getBBox().x + 2, k = W.alignOptions.width, G = D.alignAttr.translateX + D.getBBox().x;
  7781. return G + V > Q && Q + k > G && X.y < m.y + W.getBBox().height;
  7782. }
  7783. return !1;
  7784. }, Y = function() {
  7785. W && D && W.attr({ translateX: W.alignAttr.translateX + (_.axisOffset[1] >= -n ? 0 : -n), translateY: W.alignAttr.translateY + D.getBBox().height + 10 });
  7786. };
  7787. if (D) {
  7788. if (g === "always") {
  7789. this.collapseButtons(n), L(P()) && Y();
  7790. return;
  7791. }
  7792. g === "never" && this.expandButtons();
  7793. }
  7794. W && D ? m.align === X.align || L(this.initialButtonGroupWidth + 20) ? g === "responsive" ? (this.collapseButtons(n), L(P()) && Y()) : Y() : g === "responsive" && this.expandButtons() : D && g === "responsive" && (this.initialButtonGroupWidth > _.plotWidth ? this.collapseButtons(n) : this.expandButtons());
  7795. }, s.prototype.collapseButtons = function(n) {
  7796. var T = this.buttons, _ = this.buttonOptions, D = this.chart, W = this.dropdown, P = this.options, X = this.zoomText, g = D.userOptions.rangeSelector && D.userOptions.rangeSelector.buttonTheme || {}, m = function(Y) {
  7797. return { text: Y ? Y + " ▾" : "▾", width: "auto", paddingLeft: c(P.buttonTheme.paddingLeft, g.padding, 8), paddingRight: c(P.buttonTheme.paddingRight, g.padding, 8) };
  7798. };
  7799. X && X.hide();
  7800. var L = !1;
  7801. _.forEach(function(Y, V) {
  7802. V = T[V], V.state !== 2 ? V.hide() : (V.show(), V.attr(m(Y.text)), L = !0);
  7803. }), L || (W && (W.selectedIndex = 0), T[0].show(), T[0].attr(m(this.zoomText && this.zoomText.textStr))), _ = P.buttonPosition.align, this.positionButtons(), _ !== "right" && _ !== "center" || this.alignButtonGroup(n, T[this.currentButtonIndex()].getBBox().width), this.showDropdown();
  7804. }, s.prototype.expandButtons = function() {
  7805. var n = this.buttons, T = this.buttonOptions, _ = this.options, D = this.zoomText;
  7806. this.hideDropdown(), D && D.show(), T.forEach(function(W, P) {
  7807. P = n[P], P.show(), P.attr({ text: W.text, width: _.buttonTheme.width || 28, paddingLeft: c(_.buttonTheme.paddingLeft, "unset"), paddingRight: c(_.buttonTheme.paddingRight, "unset") }), 2 > P.state && P.setState(0);
  7808. }), this.positionButtons();
  7809. }, s.prototype.currentButtonIndex = function() {
  7810. var n = this.dropdown;
  7811. return n && 0 < n.selectedIndex ? n.selectedIndex - 1 : 0;
  7812. }, s.prototype.showDropdown = function() {
  7813. var n = this.buttonGroup, T = this.buttons, _ = this.chart, D = this.dropdown;
  7814. if (n && D) {
  7815. var W = n.translateX;
  7816. n = n.translateY, T = T[this.currentButtonIndex()].getBBox(), v(D, { left: _.plotLeft + W + "px", top: n + 0.5 + "px", width: T.width + "px", height: T.height + "px" }), this.hasVisibleDropdown = !0;
  7817. }
  7818. }, s.prototype.hideDropdown = function() {
  7819. var n = this.dropdown;
  7820. n && (v(n, { top: "-9999em", width: "1px", height: "1px" }), this.hasVisibleDropdown = !1);
  7821. }, s.prototype.getHeight = function() {
  7822. var n = this.options, T = this.group, _ = n.y, D = n.buttonPosition.y, W = n.inputPosition.y;
  7823. return n.height ? n.height : (this.alignElements(), n = T ? T.getBBox(!0).height + 13 + _ : 0, T = Math.min(W, D), (0 > W && 0 > D || 0 < W && 0 < D) && (n += Math.abs(T)), n);
  7824. }, s.prototype.titleCollision = function(n) {
  7825. return !(n.options.title.text || n.options.subtitle.text);
  7826. }, s.prototype.update = function(n) {
  7827. var T = this.chart;
  7828. w(!0, T.options.rangeSelector, n), this.destroy(), this.init(T), this.render();
  7829. }, s.prototype.destroy = function() {
  7830. var n = this, T = n.minInput, _ = n.maxInput;
  7831. n.eventsToUnbind && (n.eventsToUnbind.forEach(function(D) {
  7832. return D();
  7833. }), n.eventsToUnbind = void 0), u(n.buttons), T && (T.onfocus = T.onblur = T.onchange = null), _ && (_.onfocus = _.onblur = _.onchange = null), x(n, function(D, W) {
  7834. D && W !== "chart" && (D instanceof H ? D.destroy() : D instanceof window.HTMLElement && A(D)), D !== s.prototype[W] && (n[W] = null);
  7835. }, this);
  7836. }, s;
  7837. }();
  7838. if (h.prototype.defaultButtons = [
  7839. { type: "month", count: 1, text: "1m", title: "View 1 month" },
  7840. { type: "month", count: 3, text: "3m", title: "View 3 months" },
  7841. { type: "month", count: 6, text: "6m", title: "View 6 months" },
  7842. { type: "ytd", text: "YTD", title: "View year to date" },
  7843. { type: "year", count: 1, text: "1y", title: "View 1 year" },
  7844. { type: "all", text: "All", title: "View all" }
  7845. ], h.prototype.inputTypeFormats = { "datetime-local": "%Y-%m-%dT%H:%M:%S", date: "%Y-%m-%d", time: "%H:%M:%S" }, y.prototype.minFromRange = function() {
  7846. var s = this.range, n = s.type, T = this.max, _ = this.chart.time, D = function(g, m) {
  7847. var L = n === "year" ? "FullYear" : "Month", Y = new _.Date(g), V = _.get(L, Y);
  7848. return _.set(L, Y, V + m), V === _.get(L, Y) && _.set("Date", Y, 0), Y.getTime() - g;
  7849. };
  7850. if (b(s))
  7851. var W = T - s, P = s;
  7852. else
  7853. W = T + D(T, -s.count), this.chart && (this.chart.fixedRange = T - W);
  7854. var X = c(this.dataMin, Number.MIN_VALUE);
  7855. return b(W) || (W = X), W <= X && (W = X, typeof P > "u" && (P = D(W, s.count)), this.newMax = Math.min(W + P, this.dataMax)), b(T) || (W = void 0), W;
  7856. }, !I.RangeSelector) {
  7857. var o = [], t = function(s) {
  7858. function n() {
  7859. _ && (T = s.xAxis[0].getExtremes(), D = s.legend, P = _ && _.options.verticalAlign, b(T.min) && _.render(T.min, T.max), D.display && P === "top" && P === D.options.verticalAlign && (W = w(s.spacingBox), W.y = D.options.layout === "vertical" ? s.plotTop : W.y + _.getHeight(), D.group.placed = !1, D.align(W)));
  7860. }
  7861. var T, _ = s.rangeSelector, D, W, P;
  7862. _ && (B(o, function(X) {
  7863. return X[0] === s;
  7864. }) || o.push([s, [R(s.xAxis[0], "afterSetExtremes", function(X) {
  7865. _ && _.render(X.min, X.max);
  7866. }), R(s, "redraw", n)]]), n());
  7867. };
  7868. R(j, "afterGetContainer", function() {
  7869. this.options.rangeSelector && this.options.rangeSelector.enabled && (this.rangeSelector = new h(this));
  7870. }), R(j, "beforeRender", function() {
  7871. var s = this.axes, n = this.rangeSelector;
  7872. n && (b(n.deferredYTDClick) && (n.clickButton(n.deferredYTDClick), delete n.deferredYTDClick), s.forEach(function(T) {
  7873. T.updateNames(), T.setScale();
  7874. }), this.getAxisMargins(), n.render(), s = n.options.verticalAlign, n.options.floating || (s === "bottom" ? this.extraBottomMargin = !0 : s !== "middle" && (this.extraTopMargin = !0)));
  7875. }), R(j, "update", function(s) {
  7876. var n = s.options.rangeSelector;
  7877. s = this.rangeSelector;
  7878. var T = this.extraBottomMargin, _ = this.extraTopMargin;
  7879. n && n.enabled && !d(s) && this.options.rangeSelector && (this.options.rangeSelector.enabled = !0, this.rangeSelector = s = new h(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 !== T || this.extraTopMargin !== _) && (this.isDirtyBox = !0);
  7880. }), R(j, "render", function() {
  7881. var s = this.rangeSelector;
  7882. s && !s.options.floating && (s.render(), s = s.options.verticalAlign, s === "bottom" ? this.extraBottomMargin = !0 : s !== "middle" && (this.extraTopMargin = !0));
  7883. }), R(j, "getMargins", function() {
  7884. var s = this.rangeSelector;
  7885. s && (s = s.getHeight(), this.extraTopMargin && (this.plotTop += s), this.extraBottomMargin && (this.marginBottom += s));
  7886. }), j.prototype.callbacks.push(t), R(j, "destroy", function() {
  7887. for (var s = 0; s < o.length; s++) {
  7888. var n = o[s];
  7889. if (n[0] === this) {
  7890. n[1].forEach(function(T) {
  7891. return T();
  7892. }), o.splice(s, 1);
  7893. break;
  7894. }
  7895. }
  7896. }), I.RangeSelector = h;
  7897. }
  7898. return h;
  7899. }), E(
  7900. l,
  7901. "Core/Chart/StockChart.js",
  7902. [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/FormatUtilities.js"], l["Core/DefaultOptions.js"], l["Core/Series/Series.js"], l["Core/Renderer/SVG/SVGRenderer.js"], l["Core/Utilities.js"]],
  7903. function(y, j, I, Z, H, U, F, N) {
  7904. function R(p, i) {
  7905. return p === "xAxis" ? { minPadding: 0, maxPadding: 0, overscroll: 0, ordinal: !0, title: { text: null }, labels: { overflow: "justify" }, showLastLabel: !0 } : p === "yAxis" ? { labels: { y: -2 }, opposite: a(i.opposite, !0), showLastLabel: !(!i.categories && i.type !== "category"), title: { text: null } } : {};
  7906. }
  7907. function S(p, i) {
  7908. if (p === "xAxis") {
  7909. p = u();
  7910. var h = { type: "datetime", categories: void 0 };
  7911. return a(i.navigator && i.navigator.enabled, p.navigator.enabled, !0) && (h.startOnTick = !1, h.endOnTick = !1), h;
  7912. }
  7913. return {};
  7914. }
  7915. var v = this && this.__extends || function() {
  7916. var p = function(i, h) {
  7917. return p = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(o, t) {
  7918. o.__proto__ = t;
  7919. } || function(o, t) {
  7920. for (var s in t)
  7921. t.hasOwnProperty(s) && (o[s] = t[s]);
  7922. }, p(i, h);
  7923. };
  7924. return function(i, h) {
  7925. function o() {
  7926. this.constructor = i;
  7927. }
  7928. p(i, h), i.prototype = h === null ? Object.create(h) : (o.prototype = h.prototype, new o());
  7929. };
  7930. }(), d = Z.format, u = H.getOptions;
  7931. y = N.addEvent;
  7932. var A = N.clamp, O = N.defined, B = N.extend, C = N.find, b = N.isNumber, w = N.isString, x = N.merge, a = N.pick, c = N.splat;
  7933. return N = function(p) {
  7934. function i() {
  7935. return p !== null && p.apply(this, arguments) || this;
  7936. }
  7937. return v(i, p), i.prototype.init = function(h, o) {
  7938. var t = u(), s = h.xAxis, n = h.yAxis, T = a(h.navigator && h.navigator.enabled, t.navigator.enabled, !0);
  7939. h.xAxis = h.yAxis = void 0, T = x({ chart: { panning: { enabled: !0, type: "x" }, pinchType: "x" }, navigator: { enabled: T }, scrollbar: { enabled: a(t.scrollbar && t.scrollbar.enabled, !0) }, rangeSelector: { enabled: a(t.rangeSelector.enabled, !0) }, title: { text: null }, tooltip: { split: a(t.tooltip.split, !0), crosshairs: !0 }, legend: { enabled: !1 } }, h, { isStock: !0 }), h.xAxis = s, h.yAxis = n, T.xAxis = c(h.xAxis || {}).map(function(_, D) {
  7940. return x(R("xAxis", _), t.xAxis, t.xAxis && t.xAxis[D], _, S("xAxis", h));
  7941. }), T.yAxis = c(h.yAxis || {}).map(function(_, D) {
  7942. return x(R("yAxis", _), t.yAxis, t.yAxis && t.yAxis[D], _);
  7943. }), p.prototype.init.call(this, T, o);
  7944. }, i.prototype.createAxis = function(h, o) {
  7945. return o.axis = x(R(h, o.axis), o.axis, S(h, this.userOptions)), p.prototype.createAxis.call(this, h, o);
  7946. }, i;
  7947. }(I), function(p) {
  7948. p.stockChart = function(i, h, o) {
  7949. return new p(i, h, o);
  7950. };
  7951. }(N || (N = {})), y(U, "setOptions", function(p) {
  7952. var i;
  7953. 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 && (p.plotOptions[this.type] = x(p.plotOptions[this.type], i)));
  7954. }), y(j, "autoLabelAlign", function(p) {
  7955. var i = this.chart, h = this.options;
  7956. i = i._labelPanes = i._labelPanes || {};
  7957. var o = this.options.labels;
  7958. this.chart.options.isStock && this.coll === "yAxis" && (h = h.top + "," + h.height, !i[h] && o.enabled && (o.x === 15 && (o.x = 0), typeof o.align > "u" && (o.align = "right"), i[h] = this, p.align = "right", p.preventDefault()));
  7959. }), y(j, "destroy", function() {
  7960. var p = this.chart, i = this.options && this.options.top + "," + this.options.height;
  7961. i && p._labelPanes && p._labelPanes[i] === this && delete p._labelPanes[i];
  7962. }), y(j, "getPlotLinePath", function(p) {
  7963. function i(G) {
  7964. var z = G === "xAxis" ? "yAxis" : "xAxis";
  7965. return G = h.options[z], b(G) ? [t[z][G]] : w(G) ? [t.get(G)] : o.map(function($) {
  7966. return $[z];
  7967. });
  7968. }
  7969. var h = this, o = this.isLinked && !this.series ? this.linkedParent.series : this.series, t = h.chart, s = t.renderer, n = h.left, T = h.top, _, D, W, P, X = [], g = [], m = p.translatedValue, L = p.value, Y = p.force;
  7970. if (t.options.isStock && p.acrossPanes !== !1 && h.coll === "xAxis" || h.coll === "yAxis") {
  7971. p.preventDefault(), g = i(h.coll);
  7972. var V = h.isXAxis ? t.yAxis : t.xAxis;
  7973. V.forEach(function(G) {
  7974. if (!O(G.options.id) || G.options.id.indexOf("navigator") === -1) {
  7975. var z = G.isXAxis ? "yAxis" : "xAxis";
  7976. z = O(G.options[z]) ? t[z][G.options[z]] : t[z][0], h === z && g.push(G);
  7977. }
  7978. });
  7979. var Q = g.length ? [] : [h.isXAxis ? t.yAxis[0] : t.xAxis[0]];
  7980. g.forEach(function(G) {
  7981. Q.indexOf(G) !== -1 || C(Q, function(z) {
  7982. return z.pos === G.pos && z.len === G.len;
  7983. }) || Q.push(G);
  7984. });
  7985. var k = a(m, h.translate(L, null, null, p.old));
  7986. b(k) && (h.horiz ? Q.forEach(function(G) {
  7987. var z;
  7988. D = G.pos, P = D + G.len, _ = W = Math.round(k + h.transB), Y !== "pass" && (_ < n || _ > n + h.width) && (Y ? _ = W = A(_, n, n + h.width) : z = !0), z || X.push(["M", _, D], ["L", W, P]);
  7989. }) : Q.forEach(function(G) {
  7990. var z;
  7991. _ = G.pos, W = _ + G.len, D = P = Math.round(T + h.height - k), Y !== "pass" && (D < T || D > T + h.height) && (Y ? D = P = A(D, T, T + h.height) : z = !0), z || X.push(["M", _, D], ["L", W, P]);
  7992. })), p.path = 0 < X.length ? s.crispPolyLine(X, p.lineWidth || 1) : null;
  7993. }
  7994. }), F.prototype.crispPolyLine = function(p, i) {
  7995. for (var h = 0; h < p.length; h += 2) {
  7996. var o = p[h], t = p[h + 1];
  7997. o[1] === t[1] && (o[1] = t[1] = Math.round(o[1]) - i % 2 / 2), o[2] === t[2] && (o[2] = t[2] = Math.round(o[2]) + i % 2 / 2);
  7998. }
  7999. return p;
  8000. }, y(j, "afterHideCrosshair", function() {
  8001. this.crossLabel && (this.crossLabel = this.crossLabel.hide());
  8002. }), y(j, "afterDrawCrosshair", function(p) {
  8003. var i, h;
  8004. if (this.crosshair && this.crosshair.label && this.crosshair.label.enabled && this.cross && b(this.min) && b(this.max)) {
  8005. var o = this.chart, t = this.logarithmic, s = this.crosshair.label, n = this.horiz, T = this.opposite, _ = this.left, D = this.top, W = this.crossLabel, P = s.format, X = "", g = this.options.tickPosition === "inside", m = this.crosshair.snap !== !1, L = 0, Y = p.e || this.cross && this.cross.e;
  8006. p = p.point;
  8007. var V = this.min, Q = this.max;
  8008. t && (V = t.lin2log(V), Q = t.lin2log(Q)), t = n ? "center" : T ? this.labelAlign === "right" ? "right" : "left" : this.labelAlign === "left" ? "left" : "center", W || (W = this.crossLabel = o.renderer.label("", 0, void 0, s.shape || "callout").addClass("highcharts-crosshair-label highcharts-color-" + (p ? p.series.colorIndex : this.series[0] && this.series[0].colorIndex)).attr({ align: s.align || t, padding: a(s.padding, 8), r: a(s.borderRadius, 3), zIndex: 2 }).add(this.labelGroup), o.styledMode || W.attr({ fill: s.backgroundColor || p && p.series && p.series.color || "#666666", stroke: s.borderColor || "", "stroke-width": s.borderWidth || 0 }).css(B({ color: "#ffffff", fontWeight: "normal", fontSize: "11px", textAlign: "center" }, s.style || {}))), n ? (t = m ? (p.plotX || 0) + _ : Y.chartX, D += T ? 0 : this.height) : (t = T ? this.width + _ : 0, D = m ? (p.plotY || 0) + D : Y.chartY), P || s.formatter || (this.dateTime && (X = "%b %d, %Y"), P = "{value" + (X ? ":" + X : "") + "}"), X = m ? this.isXAxis ? p.x : p.y : this.toValue(n ? Y.chartX : Y.chartY), m = p ? p.series.isPointInside(p) : b(X) && X > V && X < Q, Y = "", P ? Y = d(P, { value: X }, o) : s.formatter && b(X) && (Y = s.formatter.call(this, X)), W.attr({ text: Y, x: t, y: D, visibility: m ? "visible" : "hidden" }), s = W.getBBox(), b(W.y) && (n ? (g && !T || !g && T) && (D = W.y - s.height) : D = W.y - s.height / 2), n ? (i = _ - s.x, h = _ + this.width - s.x) : (i = this.labelAlign === "left" ? _ : 0, h = this.labelAlign === "right" ? _ + this.width : o.chartWidth), W.translateX < i && (L = i - W.translateX), W.translateX + s.width >= h && (L = -(W.translateX + s.width - h)), W.attr({ x: t + L, y: D, anchorX: n ? t : this.opposite ? 0 : o.chartWidth, anchorY: n ? this.opposite ? o.chartHeight : 0 : D + s.height / 2 });
  8009. }
  8010. }), U.prototype.forceCropping = function() {
  8011. var p = this.chart, i = this.options.dataGrouping;
  8012. return this.allowDG !== !1 && i && a(i.enabled, p.options.isStock);
  8013. }, y(I, "update", function(p) {
  8014. p = p.options, "scrollbar" in p && this.navigator && (x(!0, this.options.scrollbar, p.scrollbar), this.navigator.update({}, !1), delete p.scrollbar);
  8015. }), N;
  8016. }
  8017. ), E(l, "masters/modules/stock.src.js", [
  8018. l["Core/Globals.js"],
  8019. l["Core/Axis/OrdinalAxis.js"],
  8020. l["Series/DataModifyComposition.js"],
  8021. l["Core/Scrollbar.js"],
  8022. l["Core/Chart/StockChart.js"]
  8023. ], function(y, j, I, Z, H) {
  8024. y.Scrollbar = Z, y.StockChart = y.stockChart = H.stockChart, Z.compose(y.Axis), j.compose(y.Axis, y.Series, y.Chart), I.compose(y.Series, y.Axis, y.Point);
  8025. }), E(l, "masters/highstock.src.js", [l["masters/highcharts.src.js"]], function(y) {
  8026. return y.product = "Highstock", y;
  8027. }), l["masters/highstock.src.js"]._modules = l, l["masters/highstock.src.js"];
  8028. });
  8029. })(E0);
  8030. const $r = ul;
  8031. var dl = {}, O0 = {
  8032. get exports() {
  8033. return dl;
  8034. },
  8035. set exports(r) {
  8036. dl = r;
  8037. }
  8038. };
  8039. (function(r) {
  8040. (function(f, E) {
  8041. r.exports ? (E.default = E, r.exports = f.document ? E(f) : E) : (f.Highcharts && f.Highcharts.error(16, !0), f.Highcharts = E(f));
  8042. })(typeof window < "u" ? window : Fr, function(f) {
  8043. function E(y, j, I, Z) {
  8044. y.hasOwnProperty(j) || (y[j] = Z.apply(null, I));
  8045. }
  8046. var l = {};
  8047. return E(l, "Core/Globals.js", [], function() {
  8048. var y = typeof f < "u" ? f : typeof window < "u" ? window : {}, j;
  8049. return function(I) {
  8050. I.SVG_NS = "http://www.w3.org/2000/svg", I.product = "Highcharts", I.version = "9.3.3", I.win = y, I.doc = I.win.document, I.svg = I.doc && I.doc.createElementNS && !!I.doc.createElementNS(I.SVG_NS, "svg").createSVGRect, I.userAgent = I.win.navigator && I.win.navigator.userAgent || "", I.isChrome = I.userAgent.indexOf("Chrome") !== -1, I.isFirefox = I.userAgent.indexOf("Firefox") !== -1, I.isMS = /(edge|msie|trident)/i.test(I.userAgent) && !I.win.opera, I.isSafari = !I.isChrome && I.userAgent.indexOf("Safari") !== -1, I.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(I.userAgent), I.isWebKit = I.userAgent.indexOf("AppleWebKit") !== -1, I.deg2rad = 2 * Math.PI / 360, I.hasBidiBug = I.isFirefox && 4 > parseInt(I.userAgent.split("Firefox/")[1], 10), I.hasTouch = !!I.win.TouchEvent, I.marginNames = ["plotTop", "marginRight", "marginBottom", "plotLeft"], I.noop = function() {
  8051. }, I.supportsPassiveEvents = function() {
  8052. var Z = !1;
  8053. if (!I.isMS) {
  8054. var H = Object.defineProperty({}, "passive", { get: function() {
  8055. Z = !0;
  8056. } });
  8057. I.win.addEventListener && I.win.removeEventListener && (I.win.addEventListener(
  8058. "testPassive",
  8059. I.noop,
  8060. H
  8061. ), I.win.removeEventListener("testPassive", I.noop, H));
  8062. }
  8063. return Z;
  8064. }(), I.charts = [], I.dateFormats = {}, I.seriesTypes = {}, I.symbolSizes = {}, I.chartCount = 0;
  8065. }(j || (j = {})), j;
  8066. }), E(l, "Core/Utilities.js", [l["Core/Globals.js"]], function(y) {
  8067. function j(t, s, n, T) {
  8068. var _ = s ? "Highcharts error" : "Highcharts warning";
  8069. t === 32 && (t = _ + ": Deprecated member");
  8070. var D = S(t), W = D ? _ + " #" + t + ": www.highcharts.com/errors/" + t + "/" : t.toString();
  8071. if (typeof T < "u") {
  8072. var P = "";
  8073. D && (W += "?"), b(T, function(X, g) {
  8074. P += `
  8075. - ` + g + ": " + X, D && (W += encodeURI(g) + "=" + encodeURI(X));
  8076. }), W += P;
  8077. }
  8078. x(y, "displayError", { chart: n, code: t, message: W, params: T }, function() {
  8079. if (s)
  8080. throw Error(W);
  8081. p.console && j.messages.indexOf(W) === -1 && console.warn(W);
  8082. }), j.messages.push(W);
  8083. }
  8084. function I(t, s) {
  8085. var n = {};
  8086. return b(t, function(T, _) {
  8087. F(t[_], !0) && !t.nodeType && s[_] ? (T = I(t[_], s[_]), Object.keys(T).length && (n[_] = T)) : (F(t[_]) || t[_] !== s[_]) && (n[_] = t[_]);
  8088. }), n;
  8089. }
  8090. function Z(t, s) {
  8091. return parseInt(t, s || 10);
  8092. }
  8093. function H(t) {
  8094. return typeof t == "string";
  8095. }
  8096. function U(t) {
  8097. return t = Object.prototype.toString.call(t), t === "[object Array]" || t === "[object Array Iterator]";
  8098. }
  8099. function F(t, s) {
  8100. return !!t && typeof t == "object" && (!s || !U(t));
  8101. }
  8102. function N(t) {
  8103. return F(t) && typeof t.nodeType == "number";
  8104. }
  8105. function R(t) {
  8106. var s = t && t.constructor;
  8107. return !(!F(t, !0) || N(t) || !s || !s.name || s.name === "Object");
  8108. }
  8109. function S(t) {
  8110. return typeof t == "number" && !isNaN(t) && 1 / 0 > t && -1 / 0 < t;
  8111. }
  8112. function v(t) {
  8113. return typeof t < "u" && t !== null;
  8114. }
  8115. function d(t, s, n) {
  8116. var T;
  8117. return H(s) ? v(n) ? t.setAttribute(s, n) : t && t.getAttribute && ((T = t.getAttribute(s)) || s !== "class" || (T = t.getAttribute(s + "Name"))) : b(s, function(_, D) {
  8118. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  8119. }), T;
  8120. }
  8121. function u(t, s) {
  8122. var n;
  8123. t || (t = {});
  8124. for (n in s)
  8125. t[n] = s[n];
  8126. return t;
  8127. }
  8128. function A() {
  8129. for (var t = arguments, s = t.length, n = 0; n < s; n++) {
  8130. var T = t[n];
  8131. if (typeof T < "u" && T !== null)
  8132. return T;
  8133. }
  8134. }
  8135. function O(t, s) {
  8136. y.isMS && !y.svg && s && typeof s.opacity < "u" && (s.filter = "alpha(opacity=" + 100 * s.opacity + ")"), u(t.style, s);
  8137. }
  8138. function B(t, s) {
  8139. return 1e14 < t ? t : parseFloat(t.toPrecision(s || 14));
  8140. }
  8141. function C(t, s, n) {
  8142. var T = y.getStyle || C;
  8143. if (s === "width")
  8144. 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 - (T(t, "padding-left", !0) || 0) - (T(t, "padding-right", !0) || 0));
  8145. if (s === "height")
  8146. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (T(t, "padding-top", !0) || 0) - (T(t, "padding-bottom", !0) || 0));
  8147. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  8148. var _ = t.getPropertyValue(s);
  8149. A(n, s !== "opacity") && (_ = Z(_));
  8150. }
  8151. return _;
  8152. }
  8153. function b(t, s, n) {
  8154. for (var T in t)
  8155. Object.hasOwnProperty.call(t, T) && s.call(n || t[T], t[T], T, t);
  8156. }
  8157. function w(t, s, n) {
  8158. function T(P, X) {
  8159. var g = t.removeEventListener || y.removeEventListenerPolyfill;
  8160. g && g.call(t, P, X, !1);
  8161. }
  8162. function _(P) {
  8163. var X;
  8164. if (t.nodeName) {
  8165. if (s) {
  8166. var g = {};
  8167. g[s] = !0;
  8168. } else
  8169. g = P;
  8170. b(g, function(m, L) {
  8171. if (P[L])
  8172. for (X = P[L].length; X--; )
  8173. T(L, P[L][X].fn);
  8174. });
  8175. }
  8176. }
  8177. var D = typeof t == "function" && t.prototype || t;
  8178. if (Object.hasOwnProperty.call(D, "hcEvents")) {
  8179. var W = D.hcEvents;
  8180. s ? (D = W[s] || [], n ? (W[s] = D.filter(function(P) {
  8181. return n !== P.fn;
  8182. }), T(s, n)) : (_(W), W[s] = [])) : (_(W), delete D.hcEvents);
  8183. }
  8184. }
  8185. function x(t, s, n, T) {
  8186. if (n = n || {}, c.createEvent && (t.dispatchEvent || t.fireEvent && t !== y)) {
  8187. var _ = c.createEvent("Events");
  8188. _.initEvent(s, !0, !0), n = u(_, n), t.dispatchEvent ? t.dispatchEvent(n) : t.fireEvent(s, n);
  8189. } else if (t.hcEvents) {
  8190. n.target || u(n, { preventDefault: function() {
  8191. n.defaultPrevented = !0;
  8192. }, target: t, type: s }), _ = [];
  8193. for (var D = t, W = !1; D.hcEvents; )
  8194. Object.hasOwnProperty.call(D, "hcEvents") && D.hcEvents[s] && (_.length && (W = !0), _.unshift.apply(_, D.hcEvents[s])), D = Object.getPrototypeOf(D);
  8195. W && _.sort(function(P, X) {
  8196. return P.order - X.order;
  8197. }), _.forEach(function(P) {
  8198. P.fn.call(t, n) === !1 && n.preventDefault();
  8199. });
  8200. }
  8201. T && !n.defaultPrevented && T.call(t, n);
  8202. }
  8203. var a = y.charts, c = y.doc, p = y.win;
  8204. (j || (j = {})).messages = [], Math.easeInOutSine = function(t) {
  8205. return -0.5 * (Math.cos(Math.PI * t) - 1);
  8206. };
  8207. var i = Array.prototype.find ? function(t, s) {
  8208. return t.find(s);
  8209. } : function(t, s) {
  8210. var n, T = t.length;
  8211. for (n = 0; n < T; n++)
  8212. if (s(t[n], n))
  8213. return t[n];
  8214. };
  8215. b({ map: "map", each: "forEach", grep: "filter", reduce: "reduce", some: "some" }, function(t, s) {
  8216. y[s] = function(n) {
  8217. var T;
  8218. return j(32, !1, void 0, (T = {}, T["Highcharts." + s] = "use Array." + t, T)), Array.prototype[t].apply(n, [].slice.call(arguments, 1));
  8219. };
  8220. });
  8221. var h, o = function() {
  8222. var t = Math.random().toString(36).substring(2, 9) + "-", s = 0;
  8223. return function() {
  8224. return "highcharts-" + (h ? "" : t) + s++;
  8225. };
  8226. }();
  8227. return p.jQuery && (p.jQuery.fn.highcharts = function() {
  8228. var t = [].slice.call(arguments);
  8229. if (this[0])
  8230. return t[0] ? (new y[H(t[0]) ? t.shift() : "Chart"](this[0], t[0], t[1]), this) : a[d(this[0], "data-highcharts-chart")];
  8231. }), i = { addEvent: function(t, s, n, T) {
  8232. T === void 0 && (T = {});
  8233. var _ = typeof t == "function" && t.prototype || t;
  8234. Object.hasOwnProperty.call(_, "hcEvents") || (_.hcEvents = {}), _ = _.hcEvents, y.Point && t instanceof y.Point && t.series && t.series.chart && (t.series.chart.runTrackerClick = !0);
  8235. var D = t.addEventListener || y.addEventListenerPolyfill;
  8236. return D && D.call(t, s, n, y.supportsPassiveEvents ? { passive: T.passive === void 0 ? s.indexOf("touch") !== -1 : T.passive, capture: !1 } : !1), _[s] || (_[s] = []), _[s].push({ fn: n, order: typeof T.order == "number" ? T.order : 1 / 0 }), _[s].sort(function(W, P) {
  8237. return W.order - P.order;
  8238. }), function() {
  8239. w(t, s, n);
  8240. };
  8241. }, arrayMax: function(t) {
  8242. for (var s = t.length, n = t[0]; s--; )
  8243. t[s] > n && (n = t[s]);
  8244. return n;
  8245. }, arrayMin: function(t) {
  8246. for (var s = t.length, n = t[0]; s--; )
  8247. t[s] < n && (n = t[s]);
  8248. return n;
  8249. }, attr: d, clamp: function(t, s, n) {
  8250. return t > s ? t < n ? t : n : s;
  8251. }, cleanRecursively: I, clearTimeout: function(t) {
  8252. v(t) && clearTimeout(t);
  8253. }, correctFloat: B, createElement: function(t, s, n, T, _) {
  8254. return t = c.createElement(t), s && u(t, s), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), T && T.appendChild(t), t;
  8255. }, css: O, defined: v, destroyObjectProperties: function(t, s) {
  8256. b(t, function(n, T) {
  8257. n && n !== s && n.destroy && n.destroy(), delete t[T];
  8258. });
  8259. }, discardElement: function(t) {
  8260. t && t.parentElement && t.parentElement.removeChild(t);
  8261. }, erase: function(t, s) {
  8262. for (var n = t.length; n--; )
  8263. if (t[n] === s) {
  8264. t.splice(n, 1);
  8265. break;
  8266. }
  8267. }, error: j, extend: u, extendClass: function(t, s) {
  8268. var n = function() {
  8269. };
  8270. return n.prototype = new t(), u(n.prototype, s), n;
  8271. }, find: i, fireEvent: x, getMagnitude: function(t) {
  8272. return Math.pow(10, Math.floor(Math.log(t) / Math.LN10));
  8273. }, getNestedProperty: function(t, s) {
  8274. for (t = t.split("."); t.length && v(s); ) {
  8275. var n = t.shift();
  8276. if (typeof n > "u" || n === "__proto__" || (s = s[n], !v(s) || typeof s == "function" || typeof s.nodeType == "number" || s === p))
  8277. return;
  8278. }
  8279. return s;
  8280. }, getStyle: C, inArray: function(t, s, n) {
  8281. return j(32, !1, void 0, { "Highcharts.inArray": "use Array.indexOf" }), s.indexOf(t, n);
  8282. }, isArray: U, isClass: R, isDOMElement: N, isFunction: function(t) {
  8283. return typeof t == "function";
  8284. }, isNumber: S, isObject: F, isString: H, keys: function(t) {
  8285. return j(32, !1, void 0, { "Highcharts.keys": "use Object.keys" }), Object.keys(t);
  8286. }, merge: function() {
  8287. var t, s = arguments, n = {}, T = function(D, W) {
  8288. return typeof D != "object" && (D = {}), b(W, function(P, X) {
  8289. X !== "__proto__" && X !== "constructor" && (!F(P, !0) || R(P) || N(P) ? D[X] = W[X] : D[X] = T(D[X] || {}, P));
  8290. }), D;
  8291. };
  8292. s[0] === !0 && (n = s[1], s = Array.prototype.slice.call(s, 2));
  8293. var _ = s.length;
  8294. for (t = 0; t < _; t++)
  8295. n = T(n, s[t]);
  8296. return n;
  8297. }, normalizeTickInterval: function(t, s, n, T, _) {
  8298. var D = t;
  8299. n = A(n, 1);
  8300. var W = t / n;
  8301. for (s || (s = _ ? [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10] : [1, 2, 2.5, 5, 10], T === !1 && (n === 1 ? s = s.filter(function(P) {
  8302. return P % 1 === 0;
  8303. }) : 0.1 >= n && (s = [1 / n]))), T = 0; T < s.length && (D = s[T], !(_ && D * n >= t || !_ && W <= (s[T] + (s[T + 1] || s[T])) / 2)); T++)
  8304. ;
  8305. return D = B(D * n, -Math.round(Math.log(1e-3) / Math.LN10));
  8306. }, objectEach: b, offset: function(t) {
  8307. var s = c.documentElement;
  8308. return t = t.parentElement || t.parentNode ? t.getBoundingClientRect() : { top: 0, left: 0, width: 0, height: 0 }, { top: t.top + (p.pageYOffset || s.scrollTop) - (s.clientTop || 0), left: t.left + (p.pageXOffset || s.scrollLeft) - (s.clientLeft || 0), width: t.width, height: t.height };
  8309. }, pad: function(t, s, n) {
  8310. return Array((s || 2) + 1 - String(t).replace("-", "").length).join(n || "0") + t;
  8311. }, pick: A, pInt: Z, relativeLength: function(t, s, n) {
  8312. return /%$/.test(t) ? s * parseFloat(t) / 100 + (n || 0) : parseFloat(t);
  8313. }, removeEvent: w, splat: function(t) {
  8314. return U(t) ? t : [t];
  8315. }, stableSort: function(t, s) {
  8316. var n = t.length, T, _;
  8317. for (_ = 0; _ < n; _++)
  8318. t[_].safeI = _;
  8319. for (t.sort(function(D, W) {
  8320. return T = s(D, W), T === 0 ? D.safeI - W.safeI : T;
  8321. }), _ = 0; _ < n; _++)
  8322. delete t[_].safeI;
  8323. }, syncTimeout: function(t, s, n) {
  8324. return 0 < s ? setTimeout(t, s, n) : (t.call(0, n), -1);
  8325. }, timeUnits: {
  8326. millisecond: 1,
  8327. second: 1e3,
  8328. minute: 6e4,
  8329. hour: 36e5,
  8330. day: 864e5,
  8331. week: 6048e5,
  8332. month: 24192e5,
  8333. year: 314496e5
  8334. }, uniqueKey: o, useSerialIds: function(t) {
  8335. return h = A(t, h);
  8336. }, wrap: function(t, s, n) {
  8337. var T = t[s];
  8338. t[s] = function() {
  8339. var _ = Array.prototype.slice.call(arguments), D = arguments, W = this;
  8340. return W.proceed = function() {
  8341. T.apply(W, arguments.length ? arguments : D);
  8342. }, _.unshift(T), _ = n.apply(this, _), W.proceed = null, _;
  8343. };
  8344. } }, i;
  8345. }), E(l, "Core/Chart/ChartDefaults.js", [], function() {
  8346. return { panning: { enabled: !1, type: "x" }, styledMode: !1, borderRadius: 0, colorCount: 10, defaultSeriesType: "line", ignoreHiddenSeries: !0, spacing: [
  8347. 10,
  8348. 10,
  8349. 15,
  8350. 10
  8351. ], resetZoomButton: { theme: { zIndex: 6 }, position: { align: "right", x: -10, y: 10 } }, zoomBySingleTouch: !1, width: null, height: null, borderColor: "#335cad", backgroundColor: "#ffffff", plotBorderColor: "#cccccc" };
  8352. }), E(l, "Core/Color/Color.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  8353. var I = j.isNumber, Z = j.merge, H = j.pInt;
  8354. return j = function() {
  8355. function U(F) {
  8356. this.rgba = [NaN, NaN, NaN, NaN], this.input = F;
  8357. var N = y.Color;
  8358. if (N && N !== U)
  8359. return new N(F);
  8360. if (!(this instanceof U))
  8361. return new U(F);
  8362. this.init(F);
  8363. }
  8364. return U.parse = function(F) {
  8365. return F ? new U(F) : U.None;
  8366. }, U.prototype.init = function(F) {
  8367. var N;
  8368. if (typeof F == "object" && typeof F.stops < "u")
  8369. this.stops = F.stops.map(function(d) {
  8370. return new U(d[1]);
  8371. });
  8372. else if (typeof F == "string") {
  8373. if (this.input = F = U.names[F.toLowerCase()] || F, F.charAt(0) === "#") {
  8374. var R = F.length, S = parseInt(F.substr(1), 16);
  8375. R === 7 ? N = [(S & 16711680) >> 16, (S & 65280) >> 8, S & 255, 1] : R === 4 && (N = [(S & 3840) >> 4 | (S & 3840) >> 8, (S & 240) >> 4 | S & 240, (S & 15) << 4 | S & 15, 1]);
  8376. }
  8377. if (!N)
  8378. for (S = U.parsers.length; S-- && !N; ) {
  8379. var v = U.parsers[S];
  8380. (R = v.regex.exec(F)) && (N = v.parse(R));
  8381. }
  8382. }
  8383. N && (this.rgba = N);
  8384. }, U.prototype.get = function(F) {
  8385. var N = this.input, R = this.rgba;
  8386. if (typeof N == "object" && typeof this.stops < "u") {
  8387. var S = Z(N);
  8388. return S.stops = [].slice.call(S.stops), this.stops.forEach(function(v, d) {
  8389. S.stops[d] = [S.stops[d][0], v.get(F)];
  8390. }), S;
  8391. }
  8392. return R && I(R[0]) ? F === "rgb" || !F && R[3] === 1 ? "rgb(" + R[0] + "," + R[1] + "," + R[2] + ")" : F === "a" ? "" + R[3] : "rgba(" + R.join(",") + ")" : N;
  8393. }, U.prototype.brighten = function(F) {
  8394. var N = this.rgba;
  8395. if (this.stops)
  8396. this.stops.forEach(function(S) {
  8397. S.brighten(F);
  8398. });
  8399. else if (I(F) && F !== 0)
  8400. for (var R = 0; 3 > R; R++)
  8401. N[R] += H(255 * F), 0 > N[R] && (N[R] = 0), 255 < N[R] && (N[R] = 255);
  8402. return this;
  8403. }, U.prototype.setOpacity = function(F) {
  8404. return this.rgba[3] = F, this;
  8405. }, U.prototype.tweenTo = function(F, N) {
  8406. var R = this.rgba, S = F.rgba;
  8407. return !I(R[0]) || !I(S[0]) ? F.input || "none" : (F = S[3] !== 1 || R[3] !== 1, (F ? "rgba(" : "rgb(") + Math.round(S[0] + (R[0] - S[0]) * (1 - N)) + "," + Math.round(S[1] + (R[1] - S[1]) * (1 - N)) + "," + Math.round(S[2] + (R[2] - S[2]) * (1 - N)) + (F ? "," + (S[3] + (R[3] - S[3]) * (1 - N)) : "") + ")");
  8408. }, U.names = { white: "#ffffff", black: "#000000" }, U.parsers = [{
  8409. 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*\)/,
  8410. parse: function(F) {
  8411. return [H(F[1]), H(F[2]), H(F[3]), parseFloat(F[4], 10)];
  8412. }
  8413. }, { regex: /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/, parse: function(F) {
  8414. return [H(F[1]), H(F[2]), H(F[3]), 1];
  8415. } }], U.None = new U(""), U;
  8416. }(), j;
  8417. }), E(l, "Core/Color/Palettes.js", [], function() {
  8418. return { colors: "#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ") };
  8419. }), E(l, "Core/Time.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  8420. var I = y.win, Z = j.defined, H = j.error, U = j.extend, F = j.isObject, N = j.merge, R = j.objectEach, S = j.pad, v = j.pick, d = j.splat, u = j.timeUnits, A = y.isSafari && I.Intl && I.Intl.DateTimeFormat.prototype.formatRange, O = y.isSafari && I.Intl && !I.Intl.DateTimeFormat.prototype.formatRange;
  8421. return j = function() {
  8422. function B(C) {
  8423. this.options = {}, this.variableTimezone = this.useUTC = !1, this.Date = I.Date, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.update(C);
  8424. }
  8425. return B.prototype.get = function(C, b) {
  8426. if (this.variableTimezone || this.timezoneOffset) {
  8427. var w = b.getTime(), x = w - this.getTimezoneOffset(b);
  8428. return b.setTime(x), C = b["getUTC" + C](), b.setTime(w), C;
  8429. }
  8430. return this.useUTC ? b["getUTC" + C]() : b["get" + C]();
  8431. }, B.prototype.set = function(C, b, w) {
  8432. if (this.variableTimezone || this.timezoneOffset) {
  8433. if (C === "Milliseconds" || C === "Seconds" || C === "Minutes" && this.getTimezoneOffset(b) % 36e5 === 0)
  8434. return b["setUTC" + C](w);
  8435. var x = this.getTimezoneOffset(b);
  8436. return x = b.getTime() - x, b.setTime(x), b["setUTC" + C](w), C = this.getTimezoneOffset(b), x = b.getTime() + C, b.setTime(x);
  8437. }
  8438. return this.useUTC || A && C === "FullYear" ? b["setUTC" + C](w) : b["set" + C](w);
  8439. }, B.prototype.update = function(C) {
  8440. var b = v(C && C.useUTC, !0);
  8441. this.options = C = N(!0, this.options || {}, C), this.Date = C.Date || I.Date || Date, this.timezoneOffset = (this.useUTC = b) && C.timezoneOffset, this.getTimezoneOffset = this.timezoneOffsetFunction(), this.variableTimezone = b && !(!C.getTimezoneOffset && !C.timezone);
  8442. }, B.prototype.makeTime = function(C, b, w, x, a, c) {
  8443. if (this.useUTC) {
  8444. var p = this.Date.UTC.apply(0, arguments), i = this.getTimezoneOffset(p);
  8445. p += i;
  8446. var h = this.getTimezoneOffset(p);
  8447. i !== h ? p += h - i : i - 36e5 !== this.getTimezoneOffset(p - 36e5) || O || (p -= 36e5);
  8448. } else
  8449. p = new this.Date(C, b, v(w, 1), v(x, 0), v(a, 0), v(c, 0)).getTime();
  8450. return p;
  8451. }, B.prototype.timezoneOffsetFunction = function() {
  8452. var C = this, b = this.options, w = b.getTimezoneOffset, x = b.moment || I.moment;
  8453. if (!this.useUTC)
  8454. return function(a) {
  8455. return 6e4 * new Date(a.toString()).getTimezoneOffset();
  8456. };
  8457. if (b.timezone) {
  8458. if (x)
  8459. return function(a) {
  8460. return 6e4 * -x.tz(a, b.timezone).utcOffset();
  8461. };
  8462. H(25);
  8463. }
  8464. return this.useUTC && w ? function(a) {
  8465. return 6e4 * w(a.valueOf());
  8466. } : function() {
  8467. return 6e4 * (C.timezoneOffset || 0);
  8468. };
  8469. }, B.prototype.dateFormat = function(C, b, w) {
  8470. if (!Z(b) || isNaN(b))
  8471. return y.defaultOptions.lang && y.defaultOptions.lang.invalidDate || "";
  8472. C = v(C, "%Y-%m-%d %H:%M:%S");
  8473. var x = this, a = new this.Date(b), c = this.get("Hours", a), p = this.get("Day", a), i = this.get("Date", a), h = this.get("Month", a), o = this.get("FullYear", a), t = y.defaultOptions.lang, s = t && t.weekdays, n = t && t.shortWeekdays;
  8474. return a = U({ a: n ? n[p] : s[p].substr(0, 3), A: s[p], d: S(i), e: S(i, 2, " "), w: p, b: t.shortMonths[h], B: t.months[h], m: S(h + 1), o: h + 1, y: o.toString().substr(2, 2), Y: o, H: S(c), k: c, I: S(c % 12 || 12), l: c % 12 || 12, M: S(this.get("Minutes", a)), p: 12 > c ? "AM" : "PM", P: 12 > c ? "am" : "pm", S: S(a.getSeconds()), L: S(Math.floor(b % 1e3), 3) }, y.dateFormats), R(a, function(T, _) {
  8475. for (; C.indexOf("%" + _) !== -1; )
  8476. C = C.replace("%" + _, typeof T == "function" ? T.call(x, b) : T);
  8477. }), w ? C.substr(0, 1).toUpperCase() + C.substr(1) : C;
  8478. }, B.prototype.resolveDTLFormat = function(C) {
  8479. return F(C, !0) ? C : (C = d(C), { main: C[0], from: C[1], to: C[2] });
  8480. }, B.prototype.getTimeTicks = function(C, b, w, x) {
  8481. var a = this, c = [], p = {}, i = new a.Date(b), h = C.unitRange, o = C.count || 1, t;
  8482. if (x = v(x, 1), Z(b)) {
  8483. if (a.set(
  8484. "Milliseconds",
  8485. i,
  8486. h >= u.second ? 0 : o * Math.floor(a.get("Milliseconds", i) / o)
  8487. ), h >= u.second && a.set("Seconds", i, h >= u.minute ? 0 : o * Math.floor(a.get("Seconds", i) / o)), h >= u.minute && a.set("Minutes", i, h >= u.hour ? 0 : o * Math.floor(a.get("Minutes", i) / o)), h >= u.hour && a.set("Hours", i, h >= u.day ? 0 : o * Math.floor(a.get("Hours", i) / o)), h >= u.day && a.set("Date", i, h >= u.month ? 1 : Math.max(1, o * Math.floor(a.get("Date", i) / o))), h >= u.month) {
  8488. a.set("Month", i, h >= u.year ? 0 : o * Math.floor(a.get("Month", i) / o));
  8489. var s = a.get("FullYear", i);
  8490. }
  8491. h >= u.year && a.set(
  8492. "FullYear",
  8493. i,
  8494. s - s % o
  8495. ), h === u.week && (s = a.get("Day", i), a.set("Date", i, a.get("Date", i) - s + x + (s < x ? -7 : 0))), s = a.get("FullYear", i), x = a.get("Month", i);
  8496. var n = a.get("Date", i), T = a.get("Hours", i);
  8497. for (b = i.getTime(), !a.variableTimezone && a.useUTC || !Z(w) || (t = w - b > 4 * u.month || a.getTimezoneOffset(b) !== a.getTimezoneOffset(w)), b = i.getTime(), i = 1; b < w; )
  8498. c.push(b), b = h === u.year ? a.makeTime(s + i * o, 0) : h === u.month ? a.makeTime(s, x + i * o) : !t || h !== u.day && h !== u.week ? t && h === u.hour && 1 < o ? a.makeTime(s, x, n, T + i * o) : b + h * o : a.makeTime(s, x, n + i * o * (h === u.day ? 1 : 7)), i++;
  8499. c.push(b), h <= u.hour && 1e4 > c.length && c.forEach(function(_) {
  8500. _ % 18e5 === 0 && a.dateFormat("%H%M%S%L", _) === "000000000" && (p[_] = "day");
  8501. });
  8502. }
  8503. return c.info = U(C, { higherRanks: p, totalRange: h * o }), c;
  8504. }, B.prototype.getDateFormat = function(C, b, w, x) {
  8505. var a = this.dateFormat("%m-%d %H:%M:%S.%L", b), c = { millisecond: 15, second: 12, minute: 9, hour: 6, day: 3 }, p = "millisecond";
  8506. for (i in u) {
  8507. if (C === u.week && +this.dateFormat("%w", b) === w && a.substr(6) === "00:00:00.000") {
  8508. var i = "week";
  8509. break;
  8510. }
  8511. if (u[i] > C) {
  8512. i = p;
  8513. break;
  8514. }
  8515. if (c[i] && a.substr(c[i]) !== "01-01 00:00:00.000".substr(c[i]))
  8516. break;
  8517. i !== "week" && (p = i);
  8518. }
  8519. if (i)
  8520. var h = this.resolveDTLFormat(x[i]).main;
  8521. return h;
  8522. }, B;
  8523. }(), j;
  8524. }), E(l, "Core/DefaultOptions.js", [l["Core/Chart/ChartDefaults.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Color/Palettes.js"], l["Core/Time.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  8525. j = j.parse;
  8526. var F = U.merge, N = {
  8527. colors: Z.colors,
  8528. symbols: ["circle", "diamond", "square", "triangle", "triangle-down"],
  8529. lang: {
  8530. loading: "Loading...",
  8531. months: "January February March April May June July August September October November December".split(" "),
  8532. shortMonths: "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
  8533. weekdays: "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
  8534. decimalPoint: ".",
  8535. numericSymbols: "kMGTPE".split(""),
  8536. resetZoom: "Reset zoom",
  8537. resetZoomTitle: "Reset zoom level 1:1",
  8538. thousandsSep: " "
  8539. },
  8540. global: {},
  8541. time: { Date: void 0, getTimezoneOffset: void 0, timezone: void 0, timezoneOffset: 0, useUTC: !0 },
  8542. chart: y,
  8543. title: { text: "Chart title", align: "center", margin: 15, widthAdjust: -44 },
  8544. subtitle: { text: "", align: "center", widthAdjust: -44 },
  8545. caption: { margin: 15, text: "", align: "left", verticalAlign: "bottom" },
  8546. plotOptions: {},
  8547. labels: { style: { position: "absolute", color: "#333333" } },
  8548. legend: {
  8549. enabled: !0,
  8550. align: "center",
  8551. alignColumns: !0,
  8552. className: "highcharts-no-tooltip",
  8553. layout: "horizontal",
  8554. labelFormatter: function() {
  8555. return this.name;
  8556. },
  8557. borderColor: "#999999",
  8558. borderRadius: 0,
  8559. navigation: { activeColor: "#003399", inactiveColor: "#cccccc" },
  8560. itemStyle: { color: "#333333", cursor: "pointer", fontSize: "12px", fontWeight: "bold", textOverflow: "ellipsis" },
  8561. itemHoverStyle: { color: "#000000" },
  8562. itemHiddenStyle: { color: "#cccccc" },
  8563. shadow: !1,
  8564. itemCheckboxStyle: { position: "absolute", width: "13px", height: "13px" },
  8565. squareSymbol: !0,
  8566. symbolPadding: 5,
  8567. verticalAlign: "bottom",
  8568. x: 0,
  8569. y: 0,
  8570. title: { style: { fontWeight: "bold" } }
  8571. },
  8572. loading: { labelStyle: { fontWeight: "bold", position: "relative", top: "45%" }, style: { position: "absolute", backgroundColor: "#ffffff", opacity: 0.5, textAlign: "center" } },
  8573. tooltip: {
  8574. enabled: !0,
  8575. animation: I.svg,
  8576. borderRadius: 3,
  8577. dateTimeLabelFormats: {
  8578. millisecond: "%A, %b %e, %H:%M:%S.%L",
  8579. second: "%A, %b %e, %H:%M:%S",
  8580. minute: "%A, %b %e, %H:%M",
  8581. hour: "%A, %b %e, %H:%M",
  8582. day: "%A, %b %e, %Y",
  8583. week: "Week from %A, %b %e, %Y",
  8584. month: "%B %Y",
  8585. year: "%Y"
  8586. },
  8587. footerFormat: "",
  8588. headerShape: "callout",
  8589. hideDelay: 500,
  8590. padding: 8,
  8591. shape: "callout",
  8592. shared: !1,
  8593. snap: I.isTouchDevice ? 25 : 10,
  8594. headerFormat: '<span style="font-size: 10px">{point.key}</span><br/>',
  8595. pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',
  8596. backgroundColor: j("#f7f7f7").setOpacity(0.85).get(),
  8597. borderWidth: 1,
  8598. shadow: !0,
  8599. stickOnContact: !1,
  8600. style: { color: "#333333", cursor: "default", fontSize: "12px", whiteSpace: "nowrap" },
  8601. useHTML: !1
  8602. },
  8603. 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" }
  8604. };
  8605. N.chart.styledMode = !1;
  8606. var R = new H(F(N.global, N.time));
  8607. return y = { defaultOptions: N, defaultTime: R, getOptions: function() {
  8608. return N;
  8609. }, setOptions: function(S) {
  8610. return F(!0, N, S), (S.time || S.global) && (I.time ? I.time.update(F(
  8611. N.global,
  8612. N.time,
  8613. S.global,
  8614. S.time
  8615. )) : I.time = R), N;
  8616. } }, y;
  8617. }), E(l, "Core/Animation/Fx.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  8618. var Z = y.parse, H = j.win, U = I.isNumber, F = I.objectEach;
  8619. return function() {
  8620. function N(R, S, v) {
  8621. this.pos = NaN, this.options = S, this.elem = R, this.prop = v;
  8622. }
  8623. return N.prototype.dSetter = function() {
  8624. var R = this.paths, S = R && R[0];
  8625. R = R && R[1];
  8626. var v = this.now || 0, d = [];
  8627. if (v !== 1 && S && R)
  8628. if (S.length === R.length && 1 > v)
  8629. for (var u = 0; u < R.length; u++) {
  8630. for (var A = S[u], O = R[u], B = [], C = 0; C < O.length; C++) {
  8631. var b = A[C], w = O[C];
  8632. U(b) && U(w) && (O[0] !== "A" || C !== 4 && C !== 5) ? B[C] = b + v * (w - b) : B[C] = w;
  8633. }
  8634. d.push(B);
  8635. }
  8636. else
  8637. d = R;
  8638. else
  8639. d = this.toD || [];
  8640. this.elem.attr("d", d, void 0, !0);
  8641. }, N.prototype.update = function() {
  8642. var R = this.elem, S = this.prop, v = this.now, d = this.options.step;
  8643. this[S + "Setter"] ? this[S + "Setter"]() : R.attr ? R.element && R.attr(S, v, null, !0) : R.style[S] = v + this.unit, d && d.call(R, v, this);
  8644. }, N.prototype.run = function(R, S, v) {
  8645. var d = this, u = d.options, A = function(C) {
  8646. return A.stopped ? !1 : d.step(C);
  8647. }, O = H.requestAnimationFrame || function(C) {
  8648. setTimeout(
  8649. C,
  8650. 13
  8651. );
  8652. }, B = function() {
  8653. for (var C = 0; C < N.timers.length; C++)
  8654. N.timers[C]() || N.timers.splice(C--, 1);
  8655. N.timers.length && O(B);
  8656. };
  8657. R !== S || this.elem["forceAnimate:" + this.prop] ? (this.startTime = +/* @__PURE__ */ new Date(), this.start = R, this.end = S, this.unit = v, this.now = this.start, this.pos = 0, A.elem = this.elem, A.prop = this.prop, A() && N.timers.push(A) === 1 && O(B)) : (delete u.curAnim[this.prop], u.complete && Object.keys(u.curAnim).length === 0 && u.complete.call(this.elem));
  8658. }, N.prototype.step = function(R) {
  8659. var S = +/* @__PURE__ */ new Date(), v = this.options, d = this.elem, u = v.complete, A = v.duration, O = v.curAnim;
  8660. if (d.attr && !d.element)
  8661. R = !1;
  8662. else if (R || S >= A + this.startTime) {
  8663. this.now = this.end, this.pos = 1, this.update();
  8664. var B = O[this.prop] = !0;
  8665. F(O, function(C) {
  8666. C !== !0 && (B = !1);
  8667. }), B && u && u.call(d), R = !1;
  8668. } else
  8669. this.pos = v.easing((S - this.startTime) / A), this.now = this.start + (this.end - this.start) * this.pos, this.update(), R = !0;
  8670. return R;
  8671. }, N.prototype.initPath = function(R, S, v) {
  8672. function d(a, c) {
  8673. for (; a.length < x; ) {
  8674. var p = a[0], i = c[x - a.length];
  8675. i && p[0] === "M" && (a[0] = i[0] === "C" ? ["C", p[1], p[2], p[1], p[2], p[1], p[2]] : [
  8676. "L",
  8677. p[1],
  8678. p[2]
  8679. ]), a.unshift(p), B && (p = a.pop(), a.push(a[a.length - 1], p));
  8680. }
  8681. }
  8682. function u(a, c) {
  8683. for (; a.length < x; )
  8684. if (c = a[Math.floor(a.length / C) - 1].slice(), c[0] === "C" && (c[1] = c[5], c[2] = c[6]), B) {
  8685. var p = a[Math.floor(a.length / C)].slice();
  8686. a.splice(a.length / 2, 0, c, p);
  8687. } else
  8688. a.push(c);
  8689. }
  8690. var A = R.startX, O = R.endX;
  8691. v = v.slice();
  8692. var B = R.isArea, C = B ? 2 : 1;
  8693. if (S = S && S.slice(), !S)
  8694. return [v, v];
  8695. if (A && O && O.length) {
  8696. for (R = 0; R < A.length; R++)
  8697. if (A[R] === O[0]) {
  8698. var b = R;
  8699. break;
  8700. } else if (A[0] === O[O.length - A.length + R]) {
  8701. b = R;
  8702. var w = !0;
  8703. break;
  8704. } else if (A[A.length - 1] === O[O.length - A.length + R]) {
  8705. b = A.length - R;
  8706. break;
  8707. }
  8708. typeof b > "u" && (S = []);
  8709. }
  8710. if (S.length && U(b)) {
  8711. var x = v.length + b * C;
  8712. w ? (d(S, v), u(v, S)) : (d(v, S), u(S, v));
  8713. }
  8714. return [S, v];
  8715. }, N.prototype.fillSetter = function() {
  8716. N.prototype.strokeSetter.apply(this, arguments);
  8717. }, N.prototype.strokeSetter = function() {
  8718. this.elem.attr(this.prop, Z(this.start).tweenTo(Z(this.end), this.pos), void 0, !0);
  8719. }, N.timers = [], N;
  8720. }();
  8721. }), E(l, "Core/Animation/AnimationUtilities.js", [l["Core/Animation/Fx.js"], l["Core/Utilities.js"]], function(y, j) {
  8722. function I(u) {
  8723. return R(u) ? S({ duration: 500, defer: 0 }, u) : { duration: u ? 500 : 0, defer: 0 };
  8724. }
  8725. function Z(u, A) {
  8726. for (var O = y.timers.length; O--; )
  8727. y.timers[O].elem !== u || A && A !== y.timers[O].prop || (y.timers[O].stopped = !0);
  8728. }
  8729. var H = j.defined, U = j.getStyle, F = j.isArray, N = j.isNumber, R = j.isObject, S = j.merge, v = j.objectEach, d = j.pick;
  8730. return { animate: function(u, A, O) {
  8731. var B, C = "", b, w;
  8732. if (!R(O)) {
  8733. var x = arguments;
  8734. O = { duration: x[2], easing: x[3], complete: x[4] };
  8735. }
  8736. N(O.duration) || (O.duration = 400), O.easing = typeof O.easing == "function" ? O.easing : Math[O.easing] || Math.easeInOutSine, O.curAnim = S(A), v(A, function(a, c) {
  8737. Z(u, c), w = new y(u, O, c), b = void 0, c === "d" && F(A.d) ? (w.paths = w.initPath(u, u.pathArray, A.d), w.toD = A.d, B = 0, b = 1) : u.attr ? B = u.attr(c) : (B = parseFloat(U(u, c)) || 0, c !== "opacity" && (C = "px")), b || (b = a), typeof b == "string" && b.match("px") && (b = b.replace(/px/g, "")), w.run(B, b, C);
  8738. });
  8739. }, animObject: I, getDeferredAnimation: function(u, A, O) {
  8740. var B = I(A), C = 0, b = 0;
  8741. return (O ? [O] : u.series).forEach(function(w) {
  8742. w = I(w.options.animation), C = A && H(A.defer) ? B.defer : Math.max(C, w.duration + w.defer), b = Math.min(B.duration, w.duration);
  8743. }), u.renderer.forExport && (C = 0), { defer: Math.max(0, C - b), duration: Math.min(C, b) };
  8744. }, setAnimation: function(u, A) {
  8745. A.renderer.globalAnimation = d(u, A.options.chart.animation, !0);
  8746. }, stop: Z };
  8747. }), E(l, "Core/Renderer/HTML/AST.js", [l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j) {
  8748. var I = y.SVG_NS, Z = j.attr, H = j.createElement, U = j.error, F = j.isFunction, N = j.isString, R = j.objectEach, S = j.splat, v = (j = y.win.trustedTypes) && F(j.createPolicy) && j.createPolicy("highcharts", { createHTML: function(A) {
  8749. return A;
  8750. } }), d = v ? v.createHTML("") : "";
  8751. try {
  8752. var u = !!new DOMParser().parseFromString(d, "text/html");
  8753. } catch {
  8754. u = !1;
  8755. }
  8756. return F = function() {
  8757. function A(O) {
  8758. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  8759. }
  8760. return A.filterUserAttributes = function(O) {
  8761. return R(O, function(B, C) {
  8762. var b = !0;
  8763. A.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = N(B) && A.allowedReferences.some(function(w) {
  8764. return B.indexOf(w) === 0;
  8765. })), b || (U("Highcharts warning: Invalid attribute '" + C + "' in config"), delete O[C]);
  8766. }), O;
  8767. }, A.setElementHTML = function(O, B) {
  8768. O.innerHTML = A.emptyHTML, B && new A(B).addToDOM(O);
  8769. }, A.prototype.addToDOM = function(O) {
  8770. function B(C, b) {
  8771. var w;
  8772. return S(C).forEach(function(x) {
  8773. var a = x.tagName, c = x.textContent ? y.doc.createTextNode(x.textContent) : void 0;
  8774. if (a)
  8775. if (a === "#text")
  8776. var p = c;
  8777. else if (A.allowedTags.indexOf(a) !== -1) {
  8778. a = y.doc.createElementNS(a === "svg" ? I : b.namespaceURI || I, a);
  8779. var i = x.attributes || {};
  8780. R(x, function(h, o) {
  8781. o !== "tagName" && o !== "attributes" && o !== "children" && o !== "textContent" && (i[o] = h);
  8782. }), Z(a, A.filterUserAttributes(i)), c && a.appendChild(c), B(x.children || [], a), p = a;
  8783. } else
  8784. U("Highcharts warning: Invalid tagName " + a + " in config");
  8785. p && b.appendChild(p), w = p;
  8786. }), w;
  8787. }
  8788. return B(this.nodes, O);
  8789. }, A.prototype.parseMarkup = function(O) {
  8790. var B = [];
  8791. if (O = O.trim(), u)
  8792. O = new DOMParser().parseFromString(v ? v.createHTML(O) : O, "text/html");
  8793. else {
  8794. var C = H("div");
  8795. C.innerHTML = O, O = { body: C };
  8796. }
  8797. var b = function(w, x) {
  8798. var a = w.nodeName.toLowerCase(), c = { tagName: a };
  8799. if (a === "#text" && (c.textContent = w.textContent || ""), a = w.attributes) {
  8800. var p = {};
  8801. [].forEach.call(a, function(h) {
  8802. p[h.name] = h.value;
  8803. }), c.attributes = p;
  8804. }
  8805. if (w.childNodes.length) {
  8806. var i = [];
  8807. [].forEach.call(w.childNodes, function(h) {
  8808. b(h, i);
  8809. }), i.length && (c.children = i);
  8810. }
  8811. x.push(c);
  8812. };
  8813. return [].forEach.call(O.body.childNodes, function(w) {
  8814. return b(w, B);
  8815. }), B;
  8816. }, A.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(" "), A.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), A.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(" "), A.emptyHTML = d, A;
  8817. }(), F;
  8818. }), E(
  8819. l,
  8820. "Core/FormatUtilities.js",
  8821. [l["Core/DefaultOptions.js"], l["Core/Utilities.js"]],
  8822. function(y, j) {
  8823. function I(S, v, d, u) {
  8824. S = +S || 0, v = +v;
  8825. var A = Z.lang, O = (S.toString().split(".")[1] || "").split("e")[0].length, B = S.toString().split("e"), C = v;
  8826. if (v === -1)
  8827. v = Math.min(O, 20);
  8828. else if (!F(v))
  8829. v = 2;
  8830. else if (v && B[1] && 0 > B[1]) {
  8831. var b = v + +B[1];
  8832. 0 <= b ? (B[0] = (+B[0]).toExponential(b).split("e")[0], v = b) : (B[0] = B[0].split(".")[0] || 0, S = 20 > v ? (B[0] * Math.pow(10, B[1])).toFixed(v) : 0, B[1] = 0);
  8833. }
  8834. b = (Math.abs(B[1] ? B[0] : S) + Math.pow(10, -Math.max(v, O) - 1)).toFixed(v), O = String(R(b));
  8835. var w = 3 < O.length ? O.length % 3 : 0;
  8836. return d = N(d, A.decimalPoint), u = N(u, A.thousandsSep), S = (0 > S ? "-" : "") + (w ? O.substr(0, w) + u : ""), S = 0 > +B[1] && !C ? "0" : S + O.substr(w).replace(/(\d{3})(?=\d)/g, "$1" + u), v && (S += d + b.slice(-v)), B[1] && +S != 0 && (S += "e" + B[1]), S;
  8837. }
  8838. var Z = y.defaultOptions, H = y.defaultTime, U = j.getNestedProperty, F = j.isNumber, N = j.pick, R = j.pInt;
  8839. return { dateFormat: function(S, v, d) {
  8840. return H.dateFormat(S, v, d);
  8841. }, format: function(S, v, d) {
  8842. var u = "{", A = !1, O = /f$/, B = /\.([0-9])/, C = Z.lang, b = d && d.time || H;
  8843. d = d && d.numberFormatter || I;
  8844. for (var w = []; S; ) {
  8845. var x = S.indexOf(u);
  8846. if (x === -1)
  8847. break;
  8848. var a = S.slice(0, x);
  8849. if (A) {
  8850. if (a = a.split(":"), u = U(a.shift() || "", v), a.length && typeof u == "number")
  8851. if (a = a.join(":"), O.test(a)) {
  8852. var c = parseInt((a.match(B) || ["", "-1"])[1], 10);
  8853. u !== null && (u = d(u, c, C.decimalPoint, -1 < a.indexOf(",") ? C.thousandsSep : ""));
  8854. } else
  8855. u = b.dateFormat(a, u);
  8856. w.push(u);
  8857. } else
  8858. w.push(a);
  8859. S = S.slice(x + 1), u = (A = !A) ? "}" : "{";
  8860. }
  8861. return w.push(S), w.join("");
  8862. }, numberFormat: I };
  8863. }
  8864. ), E(l, "Core/Renderer/RendererUtilities.js", [l["Core/Utilities.js"]], function(y) {
  8865. var j = y.clamp, I = y.pick, Z = y.stableSort, H;
  8866. return function(U) {
  8867. function F(N, R, S) {
  8868. var v = N, d = v.reducedLen || R, u = function(w, x) {
  8869. return (x.rank || 0) - (w.rank || 0);
  8870. }, A = function(w, x) {
  8871. return w.target - x.target;
  8872. }, O, B = !0, C = [], b = 0;
  8873. for (O = N.length; O--; )
  8874. b += N[O].size;
  8875. if (b > d) {
  8876. for (Z(N, u), b = O = 0; b <= d; )
  8877. b += N[O].size, O++;
  8878. C = N.splice(O - 1, N.length);
  8879. }
  8880. for (Z(N, A), N = N.map(function(w) {
  8881. return { size: w.size, targets: [w.target], align: I(w.align, 0.5) };
  8882. }); B; ) {
  8883. for (O = N.length; O--; )
  8884. d = N[O], u = (Math.min.apply(0, d.targets) + Math.max.apply(0, d.targets)) / 2, d.pos = j(
  8885. u - d.size * d.align,
  8886. 0,
  8887. R - d.size
  8888. );
  8889. for (O = N.length, B = !1; O--; )
  8890. 0 < O && N[O - 1].pos + N[O - 1].size > N[O].pos && (N[O - 1].size += N[O].size, N[O - 1].targets = N[O - 1].targets.concat(N[O].targets), N[O - 1].align = 0.5, N[O - 1].pos + N[O - 1].size > R && (N[O - 1].pos = R - N[O - 1].size), N.splice(O, 1), B = !0);
  8891. }
  8892. return v.push.apply(v, C), O = 0, N.some(function(w) {
  8893. var x = 0;
  8894. return (w.targets || []).some(function() {
  8895. return v[O].pos = w.pos + x, typeof S < "u" && Math.abs(v[O].pos - v[O].target) > S ? (v.slice(0, O + 1).forEach(function(a) {
  8896. return delete a.pos;
  8897. }), v.reducedLen = (v.reducedLen || R) - 0.1 * R, v.reducedLen > 0.1 * R && F(v, R, S), !0) : (x += v[O].size, O++, !1);
  8898. });
  8899. }), Z(v, A), v;
  8900. }
  8901. U.distribute = F;
  8902. }(H || (H = {})), H;
  8903. }), E(l, "Core/Renderer/SVG/SVGElement.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  8904. var U = y.animate, F = y.animObject, N = y.stop, R = Z.deg2rad, S = Z.doc, v = Z.noop, d = Z.svg, u = Z.SVG_NS, A = Z.win, O = H.addEvent, B = H.attr, C = H.createElement, b = H.css, w = H.defined, x = H.erase, a = H.extend, c = H.fireEvent, p = H.isArray, i = H.isFunction, h = H.isNumber, o = H.isString, t = H.merge, s = H.objectEach, n = H.pick, T = H.pInt, _ = H.syncTimeout, D = H.uniqueKey;
  8905. return y = function() {
  8906. function W() {
  8907. this.element = void 0, this.onEvents = {}, this.opacity = 1, this.renderer = void 0, this.SVG_NS = u, this.symbolCustomAttribs = "x y width height r start end innerR anchorX anchorY rounded".split(" ");
  8908. }
  8909. return W.prototype._defaultGetter = function(P) {
  8910. return P = n(this[P + "Value"], this[P], this.element ? this.element.getAttribute(P) : null, 0), /^[\-0-9\.]+$/.test(P) && (P = parseFloat(P)), P;
  8911. }, W.prototype._defaultSetter = function(P, X, g) {
  8912. g.setAttribute(X, P);
  8913. }, W.prototype.add = function(P) {
  8914. var X = this.renderer, g = this.element;
  8915. if (P && (this.parentGroup = P), this.parentInverted = P && P.inverted, typeof this.textStr < "u" && this.element.nodeName === "text" && X.buildText(this), this.added = !0, !P || P.handleZ || this.zIndex)
  8916. var m = this.zIndexSetter();
  8917. return m || (P ? P.element : X.box).appendChild(g), this.onAdd && this.onAdd(), this;
  8918. }, W.prototype.addClass = function(P, X) {
  8919. var g = X ? "" : this.attr("class") || "";
  8920. return P = (P || "").split(/ /g).reduce(function(m, L) {
  8921. return g.indexOf(L) === -1 && m.push(L), m;
  8922. }, g ? [g] : []).join(" "), P !== g && this.attr("class", P), this;
  8923. }, W.prototype.afterSetters = function() {
  8924. this.doTransform && (this.updateTransform(), this.doTransform = !1);
  8925. }, W.prototype.align = function(P, X, g) {
  8926. var m = {}, L = this.renderer, Y = L.alignedObjects, V, Q, k;
  8927. P ? (this.alignOptions = P, this.alignByTranslate = X, (!g || o(g)) && (this.alignTo = V = g || "renderer", x(Y, this), Y.push(this), g = void 0)) : (P = this.alignOptions, X = this.alignByTranslate, V = this.alignTo), g = n(g, L[V], V === "scrollablePlotBox" ? L.plotBox : void 0, L), V = P.align;
  8928. var G = P.verticalAlign;
  8929. return L = (g.x || 0) + (P.x || 0), Y = (g.y || 0) + (P.y || 0), V === "right" ? Q = 1 : V === "center" && (Q = 2), Q && (L += (g.width - (P.width || 0)) / Q), m[X ? "translateX" : "x"] = Math.round(L), G === "bottom" ? k = 1 : G === "middle" && (k = 2), k && (Y += (g.height - (P.height || 0)) / k), m[X ? "translateY" : "y"] = Math.round(Y), this[this.placed ? "animate" : "attr"](m), this.placed = !0, this.alignAttr = m, this;
  8930. }, W.prototype.alignSetter = function(P) {
  8931. var X = { left: "start", center: "middle", right: "end" };
  8932. X[P] && (this.alignValue = P, this.element.setAttribute(
  8933. "text-anchor",
  8934. X[P]
  8935. ));
  8936. }, W.prototype.animate = function(P, X, g) {
  8937. var m = this, L = F(n(X, this.renderer.globalAnimation, !0));
  8938. return X = L.defer, n(S.hidden, S.msHidden, S.webkitHidden, !1) && (L.duration = 0), L.duration !== 0 ? (g && (L.complete = g), _(function() {
  8939. m.element && U(m, P, L);
  8940. }, X)) : (this.attr(P, void 0, g), s(P, function(Y, V) {
  8941. L.step && L.step.call(this, Y, { prop: V, pos: 1, elem: this });
  8942. }, this)), this;
  8943. }, W.prototype.applyTextOutline = function(P) {
  8944. var X = this.element;
  8945. P.indexOf("contrast") !== -1 && (P = P.replace(/contrast/g, this.renderer.getContrast(X.style.fill)));
  8946. var g = P.split(" ");
  8947. if (P = g[g.length - 1], (g = g[0]) && g !== "none" && Z.svg) {
  8948. this.fakeTS = !0, this.ySetter = this.xSetter, g = g.replace(/(^[\d\.]+)(.*?)$/g, function(Y, V, Q) {
  8949. return 2 * Number(V) + Q;
  8950. }), this.removeTextOutline();
  8951. var m = S.createElementNS(u, "tspan");
  8952. B(m, { class: "highcharts-text-outline", fill: P, stroke: P, "stroke-width": g, "stroke-linejoin": "round" }), [].forEach.call(X.childNodes, function(Y) {
  8953. var V = Y.cloneNode(!0);
  8954. V.removeAttribute && ["fill", "stroke", "stroke-width", "stroke"].forEach(function(Q) {
  8955. return V.removeAttribute(Q);
  8956. }), m.appendChild(V);
  8957. });
  8958. var L = S.createElementNS(u, "tspan");
  8959. L.textContent = "​", ["x", "y"].forEach(function(Y) {
  8960. var V = X.getAttribute(Y);
  8961. V && L.setAttribute(Y, V);
  8962. }), m.appendChild(L), X.insertBefore(m, X.firstChild);
  8963. }
  8964. }, W.prototype.attr = function(P, X, g, m) {
  8965. var L = this.element, Y = this.symbolCustomAttribs, V, Q = this, k, G;
  8966. if (typeof P == "string" && typeof X < "u") {
  8967. var z = P;
  8968. P = {}, P[z] = X;
  8969. }
  8970. return typeof P == "string" ? Q = (this[P + "Getter"] || this._defaultGetter).call(this, P, L) : (s(P, function($, q) {
  8971. k = !1, m || N(this, q), this.symbolName && Y.indexOf(q) !== -1 && (V || (this.symbolAttr(P), V = !0), k = !0), !this.rotation || q !== "x" && q !== "y" || (this.doTransform = !0), k || (G = this[q + "Setter"] || this._defaultSetter, G.call(this, $, q, L), !this.styledMode && this.shadows && /^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(q) && this.updateShadows(q, $, G));
  8972. }, this), this.afterSetters()), g && g.call(this), Q;
  8973. }, W.prototype.clip = function(P) {
  8974. return this.attr("clip-path", P ? "url(" + this.renderer.url + "#" + P.id + ")" : "none");
  8975. }, W.prototype.crisp = function(P, X) {
  8976. X = X || P.strokeWidth || 0;
  8977. var g = Math.round(X) % 2 / 2;
  8978. return P.x = Math.floor(P.x || this.x || 0) + g, P.y = Math.floor(P.y || this.y || 0) + g, P.width = Math.floor((P.width || this.width || 0) - 2 * g), P.height = Math.floor((P.height || this.height || 0) - 2 * g), w(P.strokeWidth) && (P.strokeWidth = X), P;
  8979. }, W.prototype.complexColor = function(P, X, g) {
  8980. var m = this.renderer, L, Y, V, Q, k, G, z, $, q, it, et = [], nt;
  8981. c(this.renderer, "complexColor", { args: arguments }, function() {
  8982. if (P.radialGradient ? Y = "radialGradient" : P.linearGradient && (Y = "linearGradient"), Y) {
  8983. if (V = P[Y], k = m.gradients, G = P.stops, q = g.radialReference, p(V) && (P[Y] = V = { x1: V[0], y1: V[1], x2: V[2], y2: V[3], gradientUnits: "userSpaceOnUse" }), Y === "radialGradient" && q && !w(V.gradientUnits) && (Q = V, V = t(V, m.getRadialAttr(q, Q), { gradientUnits: "userSpaceOnUse" })), s(V, function(ct, gt) {
  8984. gt !== "id" && et.push(gt, ct);
  8985. }), s(G, function(ct) {
  8986. et.push(ct);
  8987. }), et = et.join(","), k[et])
  8988. it = k[et].attr("id");
  8989. else {
  8990. V.id = it = D();
  8991. var rt = k[et] = m.createElement(Y).attr(V).add(m.defs);
  8992. rt.radAttr = Q, rt.stops = [], G.forEach(function(ct) {
  8993. ct[1].indexOf("rgba") === 0 ? (L = I.parse(ct[1]), z = L.get("rgb"), $ = L.get("a")) : (z = ct[1], $ = 1), ct = m.createElement("stop").attr({
  8994. offset: ct[0],
  8995. "stop-color": z,
  8996. "stop-opacity": $
  8997. }).add(rt), rt.stops.push(ct);
  8998. });
  8999. }
  9000. nt = "url(" + m.url + "#" + it + ")", g.setAttribute(X, nt), g.gradient = et, P.toString = function() {
  9001. return nt;
  9002. };
  9003. }
  9004. });
  9005. }, W.prototype.css = function(P) {
  9006. var X = this.styles, g = {}, m = this.element, L = ["textOutline", "textOverflow", "width"], Y = "", V = !X;
  9007. if (P && P.color && (P.fill = P.color), X && s(P, function(G, z) {
  9008. X && X[z] !== G && (g[z] = G, V = !0);
  9009. }), V) {
  9010. if (X && (P = a(X, g)), P) {
  9011. if (P.width === null || P.width === "auto")
  9012. delete this.textWidth;
  9013. else if (m.nodeName.toLowerCase() === "text" && P.width)
  9014. var Q = this.textWidth = T(P.width);
  9015. }
  9016. if (this.styles = P, Q && !d && this.renderer.forExport && delete P.width, m.namespaceURI === this.SVG_NS) {
  9017. var k = function(G, z) {
  9018. return "-" + z.toLowerCase();
  9019. };
  9020. s(P, function(G, z) {
  9021. L.indexOf(z) === -1 && (Y += z.replace(/([A-Z])/g, k) + ":" + G + ";");
  9022. }), Y && B(m, "style", Y);
  9023. } else
  9024. b(m, P);
  9025. this.added && (this.element.nodeName === "text" && this.renderer.buildText(this), P && P.textOutline && this.applyTextOutline(P.textOutline));
  9026. }
  9027. return this;
  9028. }, W.prototype.dashstyleSetter = function(P) {
  9029. var X = this["stroke-width"];
  9030. if (X === "inherit" && (X = 1), P = P && P.toLowerCase()) {
  9031. var g = P.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(",");
  9032. for (P = g.length; P--; )
  9033. g[P] = "" + T(g[P]) * n(X, NaN);
  9034. P = g.join(",").replace(/NaN/g, "none"), this.element.setAttribute("stroke-dasharray", P);
  9035. }
  9036. }, W.prototype.destroy = function() {
  9037. var P = this, X = P.element || {}, g = P.renderer, m = X.ownerSVGElement, L = g.isSVG && X.nodeName === "SPAN" && P.parentGroup || void 0;
  9038. if (X.onclick = X.onmouseout = X.onmouseover = X.onmousemove = X.point = null, N(P), P.clipPath && m) {
  9039. var Y = P.clipPath;
  9040. [].forEach.call(m.querySelectorAll("[clip-path],[CLIP-PATH]"), function(V) {
  9041. -1 < V.getAttribute("clip-path").indexOf(Y.element.id) && V.removeAttribute("clip-path");
  9042. }), P.clipPath = Y.destroy();
  9043. }
  9044. if (P.stops) {
  9045. for (m = 0; m < P.stops.length; m++)
  9046. P.stops[m].destroy();
  9047. P.stops.length = 0, P.stops = void 0;
  9048. }
  9049. for (P.safeRemoveChild(X), g.styledMode || P.destroyShadows(); L && L.div && L.div.childNodes.length === 0; )
  9050. X = L.parentGroup, P.safeRemoveChild(L.div), delete L.div, L = X;
  9051. P.alignTo && x(g.alignedObjects, P), s(P, function(V, Q) {
  9052. P[Q] && P[Q].parentGroup === P && P[Q].destroy && P[Q].destroy(), delete P[Q];
  9053. });
  9054. }, W.prototype.destroyShadows = function() {
  9055. (this.shadows || []).forEach(function(P) {
  9056. this.safeRemoveChild(P);
  9057. }, this), this.shadows = void 0;
  9058. }, W.prototype.destroyTextPath = function(P, X) {
  9059. var g = P.getElementsByTagName("text")[0];
  9060. if (g) {
  9061. if (g.removeAttribute("dx"), g.removeAttribute("dy"), X.element.setAttribute("id", ""), this.textPathWrapper && g.getElementsByTagName("textPath").length) {
  9062. for (P = this.textPathWrapper.element.childNodes; P.length; )
  9063. g.appendChild(P[0]);
  9064. g.removeChild(this.textPathWrapper.element);
  9065. }
  9066. } else
  9067. (P.getAttribute("dx") || P.getAttribute("dy")) && (P.removeAttribute("dx"), P.removeAttribute("dy"));
  9068. this.textPathWrapper && (this.textPathWrapper = this.textPathWrapper.destroy());
  9069. }, W.prototype.dSetter = function(P, X, g) {
  9070. p(P) && (typeof P[0] == "string" && (P = this.renderer.pathToSegments(P)), this.pathArray = P, P = P.reduce(function(m, L, Y) {
  9071. return L && L.join ? (Y ? m + " " : "") + L.join(" ") : (L || "").toString();
  9072. }, "")), /(NaN| {2}|^$)/.test(P) && (P = "M 0 0"), this[X] !== P && (g.setAttribute(X, P), this[X] = P);
  9073. }, W.prototype.fadeOut = function(P) {
  9074. var X = this;
  9075. X.animate({ opacity: 0 }, { duration: n(P, 150), complete: function() {
  9076. X.attr({ y: -9999 }).hide();
  9077. } });
  9078. }, W.prototype.fillSetter = function(P, X, g) {
  9079. typeof P == "string" ? g.setAttribute(X, P) : P && this.complexColor(P, X, g);
  9080. }, W.prototype.getBBox = function(P, X) {
  9081. var g = this.renderer, m = this.element, L = this.styles, Y = this.textStr, V = g.cache, Q = g.cacheKeys, k = m.namespaceURI === this.SVG_NS;
  9082. X = n(X, this.rotation, 0);
  9083. var G = g.styledMode ? m && W.prototype.getStyle.call(m, "font-size") : L && L.fontSize, z;
  9084. if (w(Y)) {
  9085. var $ = Y.toString();
  9086. $.indexOf("<") === -1 && ($ = $.replace(/[0-9]/g, "0")), $ += ["", X, G, this.textWidth, L && L.textOverflow, L && L.fontWeight].join();
  9087. }
  9088. if ($ && !P && (z = V[$]), !z) {
  9089. if (k || g.forExport) {
  9090. try {
  9091. var q = this.fakeTS && function(it) {
  9092. var et = m.querySelector(".highcharts-text-outline");
  9093. et && b(et, { display: it });
  9094. };
  9095. i(q) && q("none"), z = m.getBBox ? a({}, m.getBBox()) : { width: m.offsetWidth, height: m.offsetHeight }, i(q) && q("");
  9096. } catch {
  9097. }
  9098. (!z || 0 > z.width) && (z = {
  9099. width: 0,
  9100. height: 0
  9101. });
  9102. } else
  9103. z = this.htmlGetBBox();
  9104. if (g.isSVG && (P = z.width, g = z.height, k && (z.height = g = { "11px,17": 14, "13px,20": 16 }[(G || "") + "," + Math.round(g)] || g), X && (k = X * R, z.width = Math.abs(g * Math.sin(k)) + Math.abs(P * Math.cos(k)), z.height = Math.abs(g * Math.cos(k)) + Math.abs(P * Math.sin(k)))), $ && (Y === "" || 0 < z.height)) {
  9105. for (; 250 < Q.length; )
  9106. delete V[Q.shift()];
  9107. V[$] || Q.push($), V[$] = z;
  9108. }
  9109. }
  9110. return z;
  9111. }, W.prototype.getStyle = function(P) {
  9112. return A.getComputedStyle(this.element || this, "").getPropertyValue(P);
  9113. }, W.prototype.hasClass = function(P) {
  9114. return ("" + this.attr("class")).split(" ").indexOf(P) !== -1;
  9115. }, W.prototype.hide = function(P) {
  9116. return P ? this.attr({ y: -9999 }) : this.attr({ visibility: "hidden" }), this;
  9117. }, W.prototype.htmlGetBBox = function() {
  9118. return { height: 0, width: 0, x: 0, y: 0 };
  9119. }, W.prototype.init = function(P, X) {
  9120. this.element = X === "span" ? C(X) : S.createElementNS(this.SVG_NS, X), this.renderer = P, c(this, "afterInit");
  9121. }, W.prototype.invert = function(P) {
  9122. return this.inverted = P, this.updateTransform(), this;
  9123. }, W.prototype.on = function(P, X) {
  9124. var g = this.onEvents;
  9125. return g[P] && g[P](), g[P] = O(
  9126. this.element,
  9127. P,
  9128. X
  9129. ), this;
  9130. }, W.prototype.opacitySetter = function(P, X, g) {
  9131. this.opacity = P = Number(Number(P).toFixed(3)), g.setAttribute(X, P);
  9132. }, W.prototype.removeClass = function(P) {
  9133. return this.attr("class", ("" + this.attr("class")).replace(o(P) ? new RegExp("(^| )" + P + "( |$)") : P, " ").replace(/ +/g, " ").trim());
  9134. }, W.prototype.removeTextOutline = function() {
  9135. var P = this.element.querySelector("tspan.highcharts-text-outline");
  9136. P && this.safeRemoveChild(P);
  9137. }, W.prototype.safeRemoveChild = function(P) {
  9138. var X = P.parentNode;
  9139. X && X.removeChild(P);
  9140. }, W.prototype.setRadialReference = function(P) {
  9141. var X = this.element.gradient && this.renderer.gradients[this.element.gradient];
  9142. return this.element.radialReference = P, X && X.radAttr && X.animate(this.renderer.getRadialAttr(P, X.radAttr)), this;
  9143. }, W.prototype.setTextPath = function(P, X) {
  9144. var g = this.element, m = this.text ? this.text.element : g, L = { textAnchor: "text-anchor" }, Y = !1, V = this.textPathWrapper, Q = !V;
  9145. X = t(!0, { enabled: !0, attributes: { dy: -5, startOffset: "50%", textAnchor: "middle" } }, X);
  9146. var k = j.filterUserAttributes(X.attributes);
  9147. if (P && X && X.enabled) {
  9148. V && V.element.parentNode === null ? (Q = !0, V = V.destroy()) : V && this.removeTextOutline.call(V.parentGroup), this.options && this.options.padding && (k.dx = -this.options.padding), V || (this.textPathWrapper = V = this.renderer.createElement("textPath"), Y = !0);
  9149. var G = V.element;
  9150. if ((X = P.element.getAttribute("id")) || P.element.setAttribute("id", X = D()), Q)
  9151. for (m.setAttribute("y", 0), h(k.dx) && m.setAttribute("x", -k.dx), P = [].slice.call(m.childNodes), Q = 0; Q < P.length; Q++) {
  9152. var z = P[Q];
  9153. z.nodeType !== A.Node.TEXT_NODE && z.nodeName !== "tspan" || G.appendChild(z);
  9154. }
  9155. Y && V && V.add({ element: m }), G.setAttributeNS("http://www.w3.org/1999/xlink", "href", this.renderer.url + "#" + X), w(k.dy) && (G.parentNode.setAttribute("dy", k.dy), delete k.dy), w(k.dx) && (G.parentNode.setAttribute("dx", k.dx), delete k.dx), s(k, function($, q) {
  9156. G.setAttribute(L[q] || q, $);
  9157. }), g.removeAttribute("transform"), this.removeTextOutline.call(V), this.text && !this.renderer.styledMode && this.attr({ fill: "none", "stroke-width": 0 }), this.applyTextOutline = this.updateTransform = v;
  9158. } else
  9159. V && (delete this.updateTransform, delete this.applyTextOutline, this.destroyTextPath(g, P), this.updateTransform(), this.options && this.options.rotation && this.applyTextOutline(this.options.style.textOutline));
  9160. return this;
  9161. }, W.prototype.shadow = function(P, X, g) {
  9162. var m = [], L = this.element, Y = this.oldShadowOptions, V = { color: "#000000", offsetX: this.parentInverted ? -1 : 1, offsetY: this.parentInverted ? -1 : 1, opacity: 0.15, width: 3 }, Q = !1, k;
  9163. if (P === !0 ? k = V : typeof P == "object" && (k = a(V, P)), k && (k && Y && s(k, function(it, et) {
  9164. it !== Y[et] && (Q = !0);
  9165. }), Q && this.destroyShadows(), this.oldShadowOptions = k), !k)
  9166. this.destroyShadows();
  9167. else if (!this.shadows) {
  9168. var G = k.opacity / k.width, z = this.parentInverted ? "translate(" + k.offsetY + ", " + k.offsetX + ")" : "translate(" + k.offsetX + ", " + k.offsetY + ")";
  9169. for (V = 1; V <= k.width; V++) {
  9170. var $ = L.cloneNode(!1), q = 2 * k.width + 1 - 2 * V;
  9171. B($, { stroke: P.color || "#000000", "stroke-opacity": G * V, "stroke-width": q, transform: z, fill: "none" }), $.setAttribute("class", ($.getAttribute("class") || "") + " highcharts-shadow"), g && (B($, "height", Math.max(B($, "height") - q, 0)), $.cutHeight = q), X ? X.element.appendChild($) : L.parentNode && L.parentNode.insertBefore($, L), m.push($);
  9172. }
  9173. this.shadows = m;
  9174. }
  9175. return this;
  9176. }, W.prototype.show = function(P) {
  9177. return this.attr({ visibility: P ? "inherit" : "visible" });
  9178. }, W.prototype.strokeSetter = function(P, X, g) {
  9179. this[X] = P, 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" && P === 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);
  9180. }, W.prototype.strokeWidth = function() {
  9181. if (!this.renderer.styledMode)
  9182. return this["stroke-width"] || 0;
  9183. var P = this.getStyle("stroke-width"), X = 0;
  9184. if (P.indexOf("px") === P.length - 2)
  9185. X = T(P);
  9186. else if (P !== "") {
  9187. var g = S.createElementNS(u, "rect");
  9188. B(g, { width: P, "stroke-width": 0 }), this.element.parentNode.appendChild(g), X = g.getBBox().width, g.parentNode.removeChild(g);
  9189. }
  9190. return X;
  9191. }, W.prototype.symbolAttr = function(P) {
  9192. var X = this;
  9193. "x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(g) {
  9194. X[g] = n(P[g], X[g]);
  9195. }), X.attr({ d: X.renderer.symbols[X.symbolName](X.x, X.y, X.width, X.height, X) });
  9196. }, W.prototype.textSetter = function(P) {
  9197. P !== this.textStr && (delete this.textPxLength, this.textStr = P, this.added && this.renderer.buildText(this));
  9198. }, W.prototype.titleSetter = function(P) {
  9199. var X = this.element, g = X.getElementsByTagName("title")[0] || S.createElementNS(this.SVG_NS, "title");
  9200. X.insertBefore ? X.insertBefore(g, X.firstChild) : X.appendChild(g), g.textContent = String(n(P, "")).replace(/<[^>]*>/g, "").replace(/&lt;/g, "<").replace(
  9201. /&gt;/g,
  9202. ">"
  9203. );
  9204. }, W.prototype.toFront = function() {
  9205. var P = this.element;
  9206. return P.parentNode.appendChild(P), this;
  9207. }, W.prototype.translate = function(P, X) {
  9208. return this.attr({ translateX: P, translateY: X });
  9209. }, W.prototype.updateShadows = function(P, X, g) {
  9210. var m = this.shadows;
  9211. if (m)
  9212. for (var L = m.length; L--; )
  9213. g.call(m[L], P === "height" ? Math.max(X - (m[L].cutHeight || 0), 0) : P === "d" ? this.d : X, P, m[L]);
  9214. }, W.prototype.updateTransform = function() {
  9215. var P = this.scaleX, X = this.scaleY, g = this.inverted, m = this.rotation, L = this.matrix, Y = this.element, V = this.translateX || 0, Q = this.translateY || 0;
  9216. g && (V += this.width, Q += this.height), V = ["translate(" + V + "," + Q + ")"], w(L) && V.push("matrix(" + L.join(",") + ")"), g ? V.push("rotate(90) scale(-1,1)") : m && V.push("rotate(" + m + " " + n(this.rotationOriginX, Y.getAttribute("x"), 0) + " " + n(this.rotationOriginY, Y.getAttribute("y") || 0) + ")"), (w(P) || w(X)) && V.push("scale(" + n(P, 1) + " " + n(X, 1) + ")"), V.length && Y.setAttribute("transform", V.join(" "));
  9217. }, W.prototype.visibilitySetter = function(P, X, g) {
  9218. P === "inherit" ? g.removeAttribute(X) : this[X] !== P && g.setAttribute(
  9219. X,
  9220. P
  9221. ), this[X] = P;
  9222. }, W.prototype.xGetter = function(P) {
  9223. return this.element.nodeName === "circle" && (P === "x" ? P = "cx" : P === "y" && (P = "cy")), this._defaultGetter(P);
  9224. }, W.prototype.zIndexSetter = function(P, X) {
  9225. var g = this.renderer, m = this.parentGroup, L = (m || g).element || g.box, Y = this.element;
  9226. g = L === g.box;
  9227. var V = !1, Q = this.added, k;
  9228. if (w(P) ? (Y.setAttribute("data-z-index", P), P = +P, this[X] === P && (Q = !1)) : w(this[X]) && Y.removeAttribute("data-z-index"), this[X] = P, Q) {
  9229. for ((P = this.zIndex) && m && (m.handleZ = !0), X = L.childNodes, k = X.length - 1; 0 <= k && !V; k--) {
  9230. m = X[k], Q = m.getAttribute("data-z-index");
  9231. var G = !w(Q);
  9232. m !== Y && (0 > P && G && !g && !k ? (L.insertBefore(Y, X[k]), V = !0) : (T(Q) <= P || G && (!w(P) || 0 <= P)) && (L.insertBefore(Y, X[k + 1] || null), V = !0));
  9233. }
  9234. V || (L.insertBefore(Y, X[g ? 3 : 0] || null), V = !0);
  9235. }
  9236. return V;
  9237. }, W;
  9238. }(), 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, P) {
  9239. this[P] = W, this.doTransform = !0;
  9240. }, y;
  9241. }), E(l, "Core/Renderer/RendererRegistry.js", [l["Core/Globals.js"]], function(y) {
  9242. var j;
  9243. return function(I) {
  9244. I.rendererTypes = {};
  9245. var Z;
  9246. I.getRendererType = function(H) {
  9247. return H === void 0 && (H = Z), I.rendererTypes[H] || I.rendererTypes[Z];
  9248. }, I.registerRendererType = function(H, U, F) {
  9249. I.rendererTypes[H] = U, (!Z || F) && (Z = H, y.Renderer = U);
  9250. };
  9251. }(j || (j = {})), j;
  9252. }), E(
  9253. l,
  9254. "Core/Renderer/SVG/SVGLabel.js",
  9255. [l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]],
  9256. function(y, j) {
  9257. var I = this && this.__extends || function() {
  9258. var S = function(v, d) {
  9259. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, A) {
  9260. u.__proto__ = A;
  9261. } || function(u, A) {
  9262. for (var O in A)
  9263. A.hasOwnProperty(O) && (u[O] = A[O]);
  9264. }, S(v, d);
  9265. };
  9266. return function(v, d) {
  9267. function u() {
  9268. this.constructor = v;
  9269. }
  9270. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  9271. };
  9272. }(), Z = j.defined, H = j.extend, U = j.isNumber, F = j.merge, N = j.pick, R = j.removeEvent;
  9273. return function(S) {
  9274. function v(d, u, A, O, B, C, b, w, x, a) {
  9275. var c = S.call(this) || this;
  9276. c.paddingLeftSetter = c.paddingSetter, c.paddingRightSetter = c.paddingSetter, c.init(d, "g"), c.textStr = u, c.x = A, c.y = O, c.anchorX = C, c.anchorY = b, c.baseline = x, c.className = a, c.addClass(a === "button" ? "highcharts-no-tooltip" : "highcharts-label"), a && c.addClass("highcharts-" + a), c.text = d.text(void 0, 0, 0, w).attr({ zIndex: 1 });
  9277. var p;
  9278. return typeof B == "string" && ((p = /^url\((.*?)\)$/.test(B)) || c.renderer.symbols[B]) && (c.symbolKey = B), c.bBox = v.emptyBBox, c.padding = 3, c.baselineOffset = 0, c.needsBox = d.styledMode || p, c.deferredAttr = {}, c.alignFactor = 0, c;
  9279. }
  9280. return I(v, S), v.prototype.alignSetter = function(d) {
  9281. d = { left: 0, center: 0.5, right: 1 }[d], d !== this.alignFactor && (this.alignFactor = d, this.bBox && U(this.xSetting) && this.attr({ x: this.xSetting }));
  9282. }, v.prototype.anchorXSetter = function(d, u) {
  9283. this.anchorX = d, this.boxAttr(u, Math.round(d) - this.getCrispAdjust() - this.xSetting);
  9284. }, v.prototype.anchorYSetter = function(d, u) {
  9285. this.anchorY = d, this.boxAttr(u, d - this.ySetting);
  9286. }, v.prototype.boxAttr = function(d, u) {
  9287. this.box ? this.box.attr(d, u) : this.deferredAttr[d] = u;
  9288. }, v.prototype.css = function(d) {
  9289. if (d) {
  9290. var u = {};
  9291. d = F(d), v.textProps.forEach(function(O) {
  9292. typeof d[O] < "u" && (u[O] = d[O], delete d[O]);
  9293. }), this.text.css(u);
  9294. var A = "width" in u;
  9295. "fontSize" in u || "fontWeight" in u ? this.updateTextPadding() : A && this.updateBoxSize();
  9296. }
  9297. return y.prototype.css.call(this, d);
  9298. }, v.prototype.destroy = function() {
  9299. R(this.element, "mouseenter"), R(this.element, "mouseleave"), this.text && this.text.destroy(), this.box && (this.box = this.box.destroy()), y.prototype.destroy.call(this);
  9300. }, v.prototype.fillSetter = function(d, u) {
  9301. d && (this.needsBox = !0), this.fill = d, this.boxAttr(u, d);
  9302. }, v.prototype.getBBox = function() {
  9303. this.textStr && this.bBox.width === 0 && this.bBox.height === 0 && this.updateBoxSize();
  9304. var d = this.padding, u = N(this.paddingLeft, d);
  9305. return { width: this.width, height: this.height, x: this.bBox.x - u, y: this.bBox.y - d };
  9306. }, v.prototype.getCrispAdjust = function() {
  9307. return this.renderer.styledMode && this.box ? this.box.strokeWidth() % 2 / 2 : (this["stroke-width"] ? parseInt(
  9308. this["stroke-width"],
  9309. 10
  9310. ) : 0) % 2 / 2;
  9311. }, v.prototype.heightSetter = function(d) {
  9312. this.heightSetting = d;
  9313. }, v.prototype.onAdd = function() {
  9314. var d = this.textStr;
  9315. this.text.add(this), this.attr({ text: Z(d) ? d : "", x: this.x, y: this.y }), this.box && Z(this.anchorX) && this.attr({ anchorX: this.anchorX, anchorY: this.anchorY });
  9316. }, v.prototype.paddingSetter = function(d, u) {
  9317. U(d) ? d !== this[u] && (this[u] = d, this.updateTextPadding()) : this[u] = void 0;
  9318. }, v.prototype.rSetter = function(d, u) {
  9319. this.boxAttr(u, d);
  9320. }, v.prototype.shadow = function(d) {
  9321. return d && !this.renderer.styledMode && (this.updateBoxSize(), this.box && this.box.shadow(d)), this;
  9322. }, v.prototype.strokeSetter = function(d, u) {
  9323. this.stroke = d, this.boxAttr(u, d);
  9324. }, v.prototype["stroke-widthSetter"] = function(d, u) {
  9325. d && (this.needsBox = !0), this["stroke-width"] = d, this.boxAttr(u, d);
  9326. }, v.prototype["text-alignSetter"] = function(d) {
  9327. this.textAlign = d;
  9328. }, v.prototype.textSetter = function(d) {
  9329. typeof d < "u" && this.text.attr({ text: d }), this.updateTextPadding();
  9330. }, v.prototype.updateBoxSize = function() {
  9331. var d = this.text.element.style, u = {}, A = this.padding, O = this.bBox = U(this.widthSetting) && U(this.heightSetting) && !this.textAlign || !Z(this.text.textStr) ? v.emptyBBox : this.text.getBBox();
  9332. this.width = this.getPaddedWidth(), this.height = (this.heightSetting || O.height || 0) + 2 * A, d = this.renderer.fontMetrics(d && d.fontSize, this.text), this.baselineOffset = A + Math.min((this.text.firstLineMetrics || d).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - d.h) / 2), this.needsBox && (this.box || (A = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), A.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), A.add(this)), A = this.getCrispAdjust(), u.x = A, u.y = (this.baseline ? -this.baselineOffset : 0) + A, u.width = Math.round(this.width), u.height = Math.round(this.height), this.box.attr(H(u, this.deferredAttr)), this.deferredAttr = {});
  9333. }, v.prototype.updateTextPadding = function() {
  9334. var d = this.text;
  9335. this.updateBoxSize();
  9336. var u = this.baseline ? 0 : this.baselineOffset, A = N(this.paddingLeft, this.padding);
  9337. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (A += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (A !== d.x || u !== d.y) && (d.attr("x", A), d.hasBoxWidthChanged && (this.bBox = d.getBBox(!0)), typeof u < "u" && d.attr("y", u)), d.x = A, d.y = u;
  9338. }, v.prototype.widthSetter = function(d) {
  9339. this.widthSetting = U(d) ? d : void 0;
  9340. }, v.prototype.getPaddedWidth = function() {
  9341. var d = this.padding, u = N(this.paddingLeft, d);
  9342. return d = N(this.paddingRight, d), (this.widthSetting || this.bBox.width || 0) + u + d;
  9343. }, v.prototype.xSetter = function(d) {
  9344. this.x = d, this.alignFactor && (d -= this.alignFactor * this.getPaddedWidth(), this["forceAnimate:x"] = !0), this.xSetting = Math.round(d), this.attr("translateX", this.xSetting);
  9345. }, v.prototype.ySetter = function(d) {
  9346. this.ySetting = this.y = Math.round(d), this.attr("translateY", this.ySetting);
  9347. }, v.emptyBBox = { width: 0, height: 0, x: 0, y: 0 }, v.textProps = "color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "), v;
  9348. }(y);
  9349. }
  9350. ), E(
  9351. l,
  9352. "Core/Renderer/SVG/Symbols.js",
  9353. [l["Core/Utilities.js"]],
  9354. function(y) {
  9355. function j(N, R, S, v, d) {
  9356. var u = [];
  9357. if (d) {
  9358. var A = d.start || 0, O = F(d.r, S);
  9359. S = F(d.r, v || S);
  9360. var B = (d.end || 0) - 1e-3;
  9361. v = d.innerR;
  9362. var C = F(d.open, 1e-3 > Math.abs((d.end || 0) - A - 2 * Math.PI)), b = Math.cos(A), w = Math.sin(A), x = Math.cos(B), a = Math.sin(B);
  9363. A = F(d.longArc, 1e-3 > B - A - Math.PI ? 0 : 1), u.push(["M", N + O * b, R + S * w], ["A", O, S, 0, A, F(d.clockwise, 1), N + O * x, R + S * a]), H(v) && u.push(C ? ["M", N + v * x, R + v * a] : ["L", N + v * x, R + v * a], ["A", v, v, 0, A, H(d.clockwise) ? 1 - d.clockwise : 0, N + v * b, R + v * w]), C || u.push(["Z"]);
  9364. }
  9365. return u;
  9366. }
  9367. function I(N, R, S, v, d) {
  9368. return d && d.r ? Z(N, R, S, v, d) : [["M", N, R], ["L", N + S, R], ["L", N + S, R + v], ["L", N, R + v], ["Z"]];
  9369. }
  9370. function Z(N, R, S, v, d) {
  9371. return d = d && d.r || 0, [["M", N + d, R], ["L", N + S - d, R], ["C", N + S, R, N + S, R, N + S, R + d], ["L", N + S, R + v - d], ["C", N + S, R + v, N + S, R + v, N + S - d, R + v], ["L", N + d, R + v], ["C", N, R + v, N, R + v, N, R + v - d], ["L", N, R + d], ["C", N, R, N, R, N + d, R]];
  9372. }
  9373. var H = y.defined, U = y.isNumber, F = y.pick;
  9374. return { arc: j, callout: function(N, R, S, v, d) {
  9375. var u = Math.min(d && d.r || 0, S, v), A = u + 6, O = d && d.anchorX;
  9376. d = d && d.anchorY || 0;
  9377. var B = Z(N, R, S, v, { r: u });
  9378. return U(O) && (N + O >= S ? d > R + A && d < R + v - A ? B.splice(3, 1, ["L", N + S, d - 6], ["L", N + S + 6, d], ["L", N + S, d + 6], ["L", N + S, R + v - u]) : B.splice(3, 1, ["L", N + S, v / 2], ["L", O, d], ["L", N + S, v / 2], ["L", N + S, R + v - u]) : 0 >= N + O ? d > R + A && d < R + v - A ? B.splice(7, 1, ["L", N, d + 6], ["L", N - 6, d], ["L", N, d - 6], ["L", N, R + u]) : B.splice(7, 1, ["L", N, v / 2], ["L", O, d], ["L", N, v / 2], ["L", N, R + u]) : d && d > v && O > N + A && O < N + S - A ? B.splice(5, 1, ["L", O + 6, R + v], ["L", O, R + v + 6], ["L", O - 6, R + v], ["L", N + u, R + v]) : d && 0 > d && O > N + A && O < N + S - A && B.splice(1, 1, ["L", O - 6, R], ["L", O, R - 6], ["L", O + 6, R], ["L", S - u, R])), B;
  9379. }, circle: function(N, R, S, v) {
  9380. return j(N + S / 2, R + v / 2, S / 2, v / 2, { start: 0.5 * Math.PI, end: 2.5 * Math.PI, open: !1 });
  9381. }, diamond: function(N, R, S, v) {
  9382. return [["M", N + S / 2, R], ["L", N + S, R + v / 2], ["L", N + S / 2, R + v], ["L", N, R + v / 2], ["Z"]];
  9383. }, rect: I, roundedRect: Z, square: I, triangle: function(N, R, S, v) {
  9384. return [["M", N + S / 2, R], ["L", N + S, R + v], ["L", N, R + v], ["Z"]];
  9385. }, "triangle-down": function(N, R, S, v) {
  9386. return [["M", N, R], ["L", N + S, R], ["L", N + S / 2, R + v], ["Z"]];
  9387. } };
  9388. }
  9389. ), E(l, "Core/Renderer/SVG/TextBuilder.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Globals.js"], l["Core/Utilities.js"]], function(y, j, I) {
  9390. var Z = j.doc, H = j.SVG_NS, U = j.win, F = I.attr, N = I.isString, R = I.objectEach, S = I.pick;
  9391. return function() {
  9392. function v(d) {
  9393. var u = d.styles;
  9394. this.renderer = d.renderer, this.svgElement = d, this.width = d.textWidth, this.textLineHeight = u && u.lineHeight, this.textOutline = u && u.textOutline, this.ellipsis = !(!u || u.textOverflow !== "ellipsis"), this.noWrap = !(!u || u.whiteSpace !== "nowrap"), this.fontSize = u && u.fontSize;
  9395. }
  9396. return v.prototype.buildSVG = function() {
  9397. var d = this.svgElement, u = d.element, A = d.renderer, O = S(d.textStr, "").toString(), B = O.indexOf("<") !== -1, C = u.childNodes;
  9398. A = this.width && !d.added && A.box;
  9399. var b = /<br.*?>/g, w = [O, this.ellipsis, this.noWrap, this.textLineHeight, this.textOutline, this.fontSize, this.width].join();
  9400. if (w !== d.textCache) {
  9401. for (d.textCache = w, delete d.actualWidth, w = C.length; w--; )
  9402. u.removeChild(C[w]);
  9403. B || this.ellipsis || this.width || O.indexOf(" ") !== -1 && (!this.noWrap || b.test(O)) ? O !== "" && (A && A.appendChild(u), O = new y(O), this.modifyTree(O.nodes), O.addToDOM(d.element), this.modifyDOM(), this.ellipsis && (u.textContent || "").indexOf("…") !== -1 && d.attr(
  9404. "title",
  9405. this.unescapeEntities(d.textStr || "", ["&lt;", "&gt;"])
  9406. ), A && A.removeChild(u)) : u.appendChild(Z.createTextNode(this.unescapeEntities(O))), N(this.textOutline) && d.applyTextOutline && d.applyTextOutline(this.textOutline);
  9407. }
  9408. }, v.prototype.modifyDOM = function() {
  9409. var d = this, u = this.svgElement, A = F(u.element, "x");
  9410. u.firstLineMetrics = void 0;
  9411. for (var O; (O = u.element.firstChild) && /^[\s\u200B]*$/.test(O.textContent || " "); )
  9412. u.element.removeChild(O);
  9413. [].forEach.call(u.element.querySelectorAll("tspan.highcharts-br"), function(w, x) {
  9414. w.nextSibling && w.previousSibling && (x === 0 && w.previousSibling.nodeType === 1 && (u.firstLineMetrics = u.renderer.fontMetrics(void 0, w.previousSibling)), F(w, { dy: d.getLineHeight(w.nextSibling), x: A }));
  9415. });
  9416. var B = this.width || 0;
  9417. if (B) {
  9418. var C = function(w, x) {
  9419. var a = w.textContent || "", c = a.replace(/([^\^])-/g, "$1- ").split(" "), p = !d.noWrap && (1 < c.length || 1 < u.element.childNodes.length), i = d.getLineHeight(x), h = 0, o = u.actualWidth;
  9420. if (d.ellipsis)
  9421. a && d.truncate(w, a, void 0, 0, Math.max(0, B - parseInt(d.fontSize || 12, 10)), function(t, s) {
  9422. return t.substring(
  9423. 0,
  9424. s
  9425. ) + "…";
  9426. });
  9427. else if (p) {
  9428. for (a = [], p = []; x.firstChild && x.firstChild !== w; )
  9429. p.push(x.firstChild), x.removeChild(x.firstChild);
  9430. for (; c.length; )
  9431. c.length && !d.noWrap && 0 < h && (a.push(w.textContent || ""), w.textContent = c.join(" ").replace(/- /g, "-")), d.truncate(w, void 0, c, h === 0 && o || 0, B, function(t, s) {
  9432. return c.slice(0, s).join(" ").replace(/- /g, "-");
  9433. }), o = u.actualWidth, h++;
  9434. p.forEach(function(t) {
  9435. x.insertBefore(t, w);
  9436. }), a.forEach(function(t) {
  9437. x.insertBefore(Z.createTextNode(t), w), t = Z.createElementNS(H, "tspan"), t.textContent = "​", F(t, { dy: i, x: A }), x.insertBefore(t, w);
  9438. });
  9439. }
  9440. }, b = function(w) {
  9441. [].slice.call(w.childNodes).forEach(function(x) {
  9442. x.nodeType === U.Node.TEXT_NODE ? C(x, w) : (x.className.baseVal.indexOf("highcharts-br") !== -1 && (u.actualWidth = 0), b(x));
  9443. });
  9444. };
  9445. b(u.element);
  9446. }
  9447. }, v.prototype.getLineHeight = function(d) {
  9448. var u;
  9449. return d = d.nodeType === U.Node.TEXT_NODE ? d.parentElement : d, this.renderer.styledMode || (u = d && /(px|em)$/.test(d.style.fontSize) ? d.style.fontSize : this.fontSize || this.renderer.style.fontSize || 12), this.textLineHeight ? parseInt(
  9450. this.textLineHeight.toString(),
  9451. 10
  9452. ) : this.renderer.fontMetrics(u, d || this.svgElement.element).h;
  9453. }, v.prototype.modifyTree = function(d) {
  9454. var u = this, A = function(O, B) {
  9455. var C = O.attributes;
  9456. C = C === void 0 ? {} : C;
  9457. var b = O.children, w = O.tagName, x = u.renderer.styledMode;
  9458. w === "b" || w === "strong" ? x ? C.class = "highcharts-strong" : C.style = "font-weight:bold;" + (C.style || "") : (w === "i" || w === "em") && (x ? C.class = "highcharts-emphasized" : C.style = "font-style:italic;" + (C.style || "")), N(C.style) && (C.style = C.style.replace(/(;| |^)color([ :])/, "$1fill$2")), w === "br" ? (C.class = "highcharts-br", O.textContent = "​", (B = d[B + 1]) && B.textContent && (B.textContent = B.textContent.replace(/^ +/gm, ""))) : w === "a" && b && b.some(function(a) {
  9459. return a.tagName === "#text";
  9460. }) && (O.children = [{ children: b, tagName: "tspan" }]), w !== "#text" && w !== "a" && (O.tagName = "tspan"), O.attributes = C, b && b.filter(function(a) {
  9461. return a.tagName !== "#text";
  9462. }).forEach(A);
  9463. };
  9464. d.forEach(A);
  9465. }, v.prototype.truncate = function(d, u, A, O, B, C) {
  9466. var b = this.svgElement, w = b.renderer, x = b.rotation, a = [], c = A ? 1 : 0, p = (u || A || "").length, i = p, h, o = function(s, n) {
  9467. n = n || s;
  9468. var T = d.parentNode;
  9469. if (T && typeof a[n] > "u")
  9470. if (T.getSubStringLength)
  9471. try {
  9472. a[n] = O + T.getSubStringLength(0, A ? n + 1 : n);
  9473. } catch {
  9474. }
  9475. else
  9476. w.getSpanWidth && (d.textContent = C(u || A, s), a[n] = O + w.getSpanWidth(b, d));
  9477. return a[n];
  9478. };
  9479. b.rotation = 0;
  9480. var t = o(d.textContent.length);
  9481. if (O + t > B) {
  9482. for (; c <= p; )
  9483. i = Math.ceil((c + p) / 2), A && (h = C(A, i)), t = o(i, h && h.length - 1), c === p ? c = p + 1 : t > B ? p = i - 1 : c = i;
  9484. p === 0 ? d.textContent = "" : u && p === u.length - 1 || (d.textContent = h || C(u || A, i));
  9485. }
  9486. A && A.splice(0, i), b.actualWidth = t, b.rotation = x;
  9487. }, v.prototype.unescapeEntities = function(d, u) {
  9488. return R(this.renderer.escapes, function(A, O) {
  9489. u && u.indexOf(A) !== -1 || (d = d.toString().replace(new RegExp(A, "g"), O));
  9490. }), d;
  9491. }, v;
  9492. }();
  9493. }), E(l, "Core/Renderer/SVG/SVGRenderer.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGLabel.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Renderer/SVG/TextBuilder.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, N, R) {
  9494. var S = I.charts, v = I.deg2rad, d = I.doc, u = I.isFirefox, A = I.isMS, O = I.isWebKit, B = I.noop, C = I.SVG_NS, b = I.symbolSizes, w = I.win, x = R.addEvent, a = R.attr, c = R.createElement, p = R.css, i = R.defined, h = R.destroyObjectProperties, o = R.extend, t = R.isArray, s = R.isNumber, n = R.isObject, T = R.isString, _ = R.merge, D = R.pick, W = R.pInt, P = R.uniqueKey, X;
  9495. return I = function() {
  9496. function g(m, L, Y, V, Q, k, G) {
  9497. 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, Y, V, Q, k, G);
  9498. }
  9499. return g.prototype.init = function(m, L, Y, V, Q, k, G) {
  9500. var z = this.createElement("svg").attr({ version: "1.1", class: "highcharts-root" }), $ = z.element;
  9501. G || z.css(this.getStyle(V)), m.appendChild($), a(m, "dir", "ltr"), m.innerHTML.indexOf("xmlns") === -1 && a($, "xmlns", this.SVG_NS), this.isSVG = !0, this.box = $, this.boxWrapper = z, this.alignedObjects = [], this.url = this.getReferenceURL(), this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.3.3")), this.defs = this.createElement("defs").add(), this.allowHTML = k, this.forExport = Q, this.styledMode = G, this.gradients = {}, this.cache = {}, this.cacheKeys = [], this.imgCount = 0, this.setSize(L, Y, !1);
  9502. var q;
  9503. u && m.getBoundingClientRect && (L = function() {
  9504. p(m, { left: 0, top: 0 }), q = m.getBoundingClientRect(), p(m, { left: Math.ceil(q.left) - q.left + "px", top: Math.ceil(q.top) - q.top + "px" });
  9505. }, L(), this.unSubPixelFix = x(w, "resize", L));
  9506. }, g.prototype.definition = function(m) {
  9507. return new y([m]).addToDOM(this.defs.element);
  9508. }, g.prototype.getReferenceURL = function() {
  9509. if ((u || O) && d.getElementsByTagName("base").length) {
  9510. if (!i(X)) {
  9511. var m = P();
  9512. 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(d.body), p(m, { position: "fixed", top: 0, left: 0, zIndex: 9e5 });
  9513. var L = d.elementFromPoint(6, 6);
  9514. X = (L && L.id) === "hitme", d.body.removeChild(m);
  9515. }
  9516. if (X)
  9517. return w.location.href.split("#")[0].replace(/<[^>]*>/g, "").replace(/([\('\)])/g, "\\$1").replace(/ /g, "%20");
  9518. }
  9519. return "";
  9520. }, g.prototype.getStyle = function(m) {
  9521. return this.style = o({ fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif', fontSize: "12px" }, m);
  9522. }, g.prototype.setStyle = function(m) {
  9523. this.boxWrapper.css(this.getStyle(m));
  9524. }, g.prototype.isHidden = function() {
  9525. return !this.boxWrapper.getBBox().width;
  9526. }, g.prototype.destroy = function() {
  9527. var m = this.defs;
  9528. return this.box = null, this.boxWrapper = this.boxWrapper.destroy(), h(this.gradients || {}), this.gradients = null, m && (this.defs = m.destroy()), this.unSubPixelFix && this.unSubPixelFix(), this.alignedObjects = null;
  9529. }, g.prototype.createElement = function(m) {
  9530. var L = new this.Element();
  9531. return L.init(this, m), L;
  9532. }, g.prototype.getRadialAttr = function(m, L) {
  9533. 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] };
  9534. }, g.prototype.buildText = function(m) {
  9535. new N(m).buildSVG();
  9536. }, g.prototype.getContrast = function(m) {
  9537. return m = j.parse(m).rgba, m[0] *= 1, m[1] *= 1.2, m[2] *= 0.5, 459 < m[0] + m[1] + m[2] ? "#000000" : "#FFFFFF";
  9538. }, g.prototype.button = function(m, L, Y, V, Q, k, G, z, $, q) {
  9539. var it = this.label(m, L, Y, $, void 0, void 0, q, void 0, "button"), et = this.styledMode, nt = 0, rt = Q ? _(Q) : {};
  9540. if (m = rt && rt.style || {}, rt = y.filterUserAttributes(rt), it.attr(_({ padding: 8, r: 2 }, rt)), !et) {
  9541. rt = _({ fill: "#f7f7f7", stroke: "#cccccc", "stroke-width": 1, style: { color: "#333333", cursor: "pointer", fontWeight: "normal" } }, { style: m }, rt);
  9542. var ct = rt.style;
  9543. delete rt.style, k = _(rt, { fill: "#e6e6e6" }, y.filterUserAttributes(k || {}));
  9544. var gt = k.style;
  9545. delete k.style, G = _(rt, { fill: "#e6ebf5", style: { color: "#000000", fontWeight: "bold" } }, y.filterUserAttributes(G || {}));
  9546. var dt = G.style;
  9547. delete G.style, z = _(rt, { style: { color: "#cccccc" } }, y.filterUserAttributes(z || {}));
  9548. var ht = z.style;
  9549. delete z.style;
  9550. }
  9551. return x(it.element, A ? "mouseover" : "mouseenter", function() {
  9552. nt !== 3 && it.setState(1);
  9553. }), x(it.element, A ? "mouseout" : "mouseleave", function() {
  9554. nt !== 3 && it.setState(nt);
  9555. }), it.setState = function(at) {
  9556. 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, k, G, z][at || 0]).css([ct, gt, dt, ht][at || 0]);
  9557. }, et || it.attr(rt).css(o({ cursor: "default" }, ct)), it.on("touchstart", function(at) {
  9558. return at.stopPropagation();
  9559. }).on("click", function(at) {
  9560. nt !== 3 && V.call(it, at);
  9561. });
  9562. }, g.prototype.crispLine = function(m, L, Y) {
  9563. Y === void 0 && (Y = "round");
  9564. var V = m[0], Q = m[1];
  9565. return i(V[1]) && V[1] === Q[1] && (V[1] = Q[1] = Math[Y](V[1]) - L % 2 / 2), i(V[2]) && V[2] === Q[2] && (V[2] = Q[2] = Math[Y](V[2]) + L % 2 / 2), m;
  9566. }, g.prototype.path = function(m) {
  9567. var L = this.styledMode ? {} : { fill: "none" };
  9568. return t(m) ? L.d = m : n(m) && o(L, m), this.createElement("path").attr(L);
  9569. }, g.prototype.circle = function(m, L, Y) {
  9570. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, r: Y }, L = this.createElement("circle"), L.xSetter = L.ySetter = function(V, Q, k) {
  9571. k.setAttribute("c" + Q, V);
  9572. }, L.attr(m);
  9573. }, g.prototype.arc = function(m, L, Y, V, Q, k) {
  9574. return n(m) ? (V = m, L = V.y, Y = V.r, m = V.x) : V = { innerR: V, start: Q, end: k }, m = this.symbol("arc", m, L, Y, Y, V), m.r = Y, m;
  9575. }, g.prototype.rect = function(m, L, Y, V, Q, k) {
  9576. Q = n(m) ? m.r : Q;
  9577. var G = this.createElement("rect");
  9578. return m = n(m) ? m : typeof m > "u" ? {} : { x: m, y: L, width: Math.max(Y, 0), height: Math.max(V, 0) }, this.styledMode || (typeof k < "u" && (m["stroke-width"] = k, m = G.crisp(m)), m.fill = "none"), Q && (m.r = Q), G.rSetter = function(z, $, q) {
  9579. G.r = z, a(q, { rx: z, ry: z });
  9580. }, G.rGetter = function() {
  9581. return G.r || 0;
  9582. }, G.attr(m);
  9583. }, g.prototype.setSize = function(m, L, Y) {
  9584. this.width = m, this.height = L, this.boxWrapper.animate({ width: m, height: L }, { step: function() {
  9585. this.attr({ viewBox: "0 0 " + this.attr("width") + " " + this.attr("height") });
  9586. }, duration: D(
  9587. Y,
  9588. !0
  9589. ) ? void 0 : 0 }), this.alignElements();
  9590. }, g.prototype.g = function(m) {
  9591. var L = this.createElement("g");
  9592. return m ? L.attr({ class: "highcharts-" + m }) : L;
  9593. }, g.prototype.image = function(m, L, Y, V, Q, k) {
  9594. var G = { preserveAspectRatio: "none" }, z = function(q, it) {
  9595. q.setAttributeNS ? q.setAttributeNS("http://www.w3.org/1999/xlink", "href", it) : q.setAttribute("hc-svg-href", it);
  9596. };
  9597. s(L) && (G.x = L), s(Y) && (G.y = Y), s(V) && (G.width = V), s(Q) && (G.height = Q);
  9598. var $ = this.createElement("image").attr(G);
  9599. return L = function(q) {
  9600. z($.element, m), k.call($, q);
  9601. }, k ? (z(
  9602. $.element,
  9603. "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
  9604. ), Y = new w.Image(), x(Y, "load", L), Y.src = m, Y.complete && L({})) : z($.element, m), $;
  9605. }, g.prototype.symbol = function(m, L, Y, V, Q, k) {
  9606. var G = this, z = /^url\((.*?)\)$/, $ = z.test(m), q = !$ && (this.symbols[m] ? m : "circle"), it = q && this.symbols[q], et;
  9607. if (it) {
  9608. typeof L == "number" && (et = it.call(this.symbols, Math.round(L || 0), Math.round(Y || 0), V || 0, Q || 0, k));
  9609. var nt = this.path(et);
  9610. G.styledMode || nt.attr("fill", "none"), o(nt, { symbolName: q || void 0, x: L, y: Y, width: V, height: Q }), k && o(nt, k);
  9611. } else if ($) {
  9612. var rt = m.match(z)[1], ct = nt = this.image(rt);
  9613. ct.imgwidth = D(b[rt] && b[rt].width, k && k.width), ct.imgheight = D(b[rt] && b[rt].height, k && k.height);
  9614. var gt = function(dt) {
  9615. return dt.attr({ width: dt.width, height: dt.height });
  9616. };
  9617. ["width", "height"].forEach(function(dt) {
  9618. ct[dt + "Setter"] = function(ht, at) {
  9619. var J = this["img" + at];
  9620. this[at] = ht, i(J) && (k && k.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 })));
  9621. };
  9622. }), i(L) && ct.attr({ x: L, y: Y }), ct.isImg = !0, i(ct.imgwidth) && i(ct.imgheight) ? gt(ct) : (ct.attr({ width: 0, height: 0 }), c("img", { onload: function() {
  9623. var dt = S[G.chartIndex];
  9624. this.width === 0 && (p(this, { position: "absolute", top: "-999em" }), d.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), G.imgCount--, !G.imgCount && dt && !dt.hasLoaded && dt.onload();
  9625. }, src: rt }), this.imgCount++);
  9626. }
  9627. return nt;
  9628. }, g.prototype.clipRect = function(m, L, Y, V) {
  9629. var Q = P() + "-", k = this.createElement("clipPath").attr({ id: Q }).add(this.defs);
  9630. return m = this.rect(m, L, Y, V, 0).add(k), m.id = Q, m.clipPath = k, m.count = 0, m;
  9631. }, g.prototype.text = function(m, L, Y, V) {
  9632. var Q = {};
  9633. return V && (this.allowHTML || !this.forExport) ? this.html(m, L, Y) : (Q.x = Math.round(L || 0), Y && (Q.y = Math.round(Y)), i(m) && (Q.text = m), m = this.createElement("text").attr(Q), (!V || this.forExport && !this.allowHTML) && (m.xSetter = function(k, G, z) {
  9634. for (var $ = z.getElementsByTagName("tspan"), q = z.getAttribute(G), it = 0, et; it < $.length; it++)
  9635. et = $[it], et.getAttribute(G) === q && et.setAttribute(G, k);
  9636. z.setAttribute(G, k);
  9637. }), m);
  9638. }, g.prototype.fontMetrics = function(m, L) {
  9639. return m = !this.styledMode && /px/.test(m) || !w.getComputedStyle ? m || L && L.style && L.style.fontSize || this.style && this.style.fontSize : L && H.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 };
  9640. }, g.prototype.rotCorr = function(m, L, Y) {
  9641. var V = m;
  9642. return L && Y && (V = Math.max(V * Math.cos(L * v), 4)), { x: -m / 3 * Math.sin(L * v), y: V };
  9643. }, g.prototype.pathToSegments = function(m) {
  9644. for (var L = [], Y = [], V = { A: 8, C: 7, H: 2, L: 3, M: 3, Q: 5, S: 5, T: 3, V: 2 }, Q = 0; Q < m.length; Q++)
  9645. T(Y[0]) && s(m[Q]) && Y.length === V[Y[0].toUpperCase()] && m.splice(Q, 0, Y[0].replace("M", "L").replace("m", "l")), typeof m[Q] == "string" && (Y.length && L.push(Y.slice(0)), Y.length = 0), Y.push(m[Q]);
  9646. return L.push(Y.slice(0)), L;
  9647. }, g.prototype.label = function(m, L, Y, V, Q, k, G, z, $) {
  9648. return new U(this, m, L, Y, V, Q, k, G, z, $);
  9649. }, g.prototype.alignElements = function() {
  9650. this.alignedObjects.forEach(function(m) {
  9651. return m.align();
  9652. });
  9653. }, g;
  9654. }(), o(I.prototype, { Element: H, SVG_NS: C, escapes: { "&": "&amp;", "<": "&lt;", ">": "&gt;", "'": "&#39;", '"': "&quot;" }, symbols: F, draw: B }), Z.registerRendererType("svg", I, !0), I;
  9655. }), E(l, "Core/Renderer/HTML/HTMLElement.js", [l["Core/Globals.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Utilities.js"]], function(y, j, I) {
  9656. var Z = this && this.__extends || function() {
  9657. var A = function(O, B) {
  9658. return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  9659. C.__proto__ = b;
  9660. } || function(C, b) {
  9661. for (var w in b)
  9662. b.hasOwnProperty(w) && (C[w] = b[w]);
  9663. }, A(O, B);
  9664. };
  9665. return function(O, B) {
  9666. function C() {
  9667. this.constructor = O;
  9668. }
  9669. A(O, B), O.prototype = B === null ? Object.create(B) : (C.prototype = B.prototype, new C());
  9670. };
  9671. }(), H = y.isFirefox, U = y.isMS, F = y.isWebKit, N = y.win, R = I.css, S = I.defined, v = I.extend, d = I.pick, u = I.pInt;
  9672. return function(A) {
  9673. function O() {
  9674. return A !== null && A.apply(this, arguments) || this;
  9675. }
  9676. return Z(O, A), O.compose = function(B) {
  9677. if (O.composedClasses.indexOf(B) === -1) {
  9678. O.composedClasses.push(B);
  9679. var C = O.prototype, b = B.prototype;
  9680. b.getSpanCorrection = C.getSpanCorrection, b.htmlCss = C.htmlCss, b.htmlGetBBox = C.htmlGetBBox, b.htmlUpdateTransform = C.htmlUpdateTransform, b.setSpanRotation = C.setSpanRotation;
  9681. }
  9682. return B;
  9683. }, O.prototype.getSpanCorrection = function(B, C, b) {
  9684. this.xCorr = -B * b, this.yCorr = -C;
  9685. }, O.prototype.htmlCss = function(B) {
  9686. var C = this.element.tagName === "SPAN" && B && "width" in B, b = d(C && B.width, void 0);
  9687. if (C) {
  9688. delete B.width, this.textWidth = b;
  9689. var w = !0;
  9690. }
  9691. return B && B.textOverflow === "ellipsis" && (B.whiteSpace = "nowrap", B.overflow = "hidden"), this.styles = v(this.styles, B), R(this.element, B), w && this.htmlUpdateTransform(), this;
  9692. }, O.prototype.htmlGetBBox = function() {
  9693. var B = this.element;
  9694. return { x: B.offsetLeft, y: B.offsetTop, width: B.offsetWidth, height: B.offsetHeight };
  9695. }, O.prototype.htmlUpdateTransform = function() {
  9696. if (this.added) {
  9697. var B = this.renderer, C = this.element, b = this.translateX || 0, w = this.translateY || 0, x = this.x || 0, a = this.y || 0, c = this.textAlign || "left", p = { left: 0, center: 0.5, right: 1 }[c], i = this.styles;
  9698. if (i = i && i.whiteSpace, R(C, { marginLeft: b, marginTop: w }), !B.styledMode && this.shadows && this.shadows.forEach(function(T) {
  9699. R(T, { marginLeft: b + 1, marginTop: w + 1 });
  9700. }), this.inverted && [].forEach.call(C.childNodes, function(T) {
  9701. B.invertChild(T, C);
  9702. }), C.tagName === "SPAN") {
  9703. var h = this.rotation, o = this.textWidth && u(this.textWidth), t = [h, c, C.innerHTML, this.textWidth, this.textAlign].join(), s = void 0;
  9704. if (s = !1, o !== this.oldTextWidth) {
  9705. if (this.textPxLength)
  9706. var n = this.textPxLength;
  9707. else
  9708. R(C, { width: "", whiteSpace: i || "nowrap" }), n = C.offsetWidth;
  9709. (o > this.oldTextWidth || n > o) && (/[ \-]/.test(C.textContent || C.innerText) || C.style.textOverflow === "ellipsis") && (R(C, { width: n > o || h ? o + "px" : "auto", display: "block", whiteSpace: i || "normal" }), this.oldTextWidth = o, s = !0);
  9710. }
  9711. this.hasBoxWidthChanged = s, t !== this.cTT && (s = B.fontMetrics(C.style.fontSize, C).b, !S(h) || h === (this.oldRotation || 0) && c === this.oldAlign || this.setSpanRotation(h, p, s), this.getSpanCorrection(!S(h) && this.textPxLength || C.offsetWidth, s, p, h, c)), R(C, { left: x + (this.xCorr || 0) + "px", top: a + (this.yCorr || 0) + "px" }), this.cTT = t, this.oldRotation = h, this.oldAlign = c;
  9712. }
  9713. } else
  9714. this.alignOnAdd = !0;
  9715. }, O.prototype.setSpanRotation = function(B, C, b) {
  9716. var w = {}, x = U && !/Edge/.test(N.navigator.userAgent) ? "-ms-transform" : F ? "-webkit-transform" : H ? "MozTransform" : N.opera ? "-o-transform" : void 0;
  9717. x && (w[x] = w.transform = "rotate(" + B + "deg)", w[x + (H ? "Origin" : "-origin")] = w.transformOrigin = 100 * C + "% " + b + "px", R(this.element, w));
  9718. }, O.composedClasses = [], O;
  9719. }(j);
  9720. }), E(
  9721. l,
  9722. "Core/Renderer/HTML/HTMLRenderer.js",
  9723. [l["Core/Renderer/HTML/AST.js"], l["Core/Renderer/SVG/SVGElement.js"], l["Core/Renderer/SVG/SVGRenderer.js"], l["Core/Utilities.js"]],
  9724. function(y, j, I, Z) {
  9725. var H = this && this.__extends || function() {
  9726. var S = function(v, d) {
  9727. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, A) {
  9728. u.__proto__ = A;
  9729. } || function(u, A) {
  9730. for (var O in A)
  9731. A.hasOwnProperty(O) && (u[O] = A[O]);
  9732. }, S(v, d);
  9733. };
  9734. return function(v, d) {
  9735. function u() {
  9736. this.constructor = v;
  9737. }
  9738. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  9739. };
  9740. }(), U = Z.attr, F = Z.createElement, N = Z.extend, R = Z.pick;
  9741. return function(S) {
  9742. function v() {
  9743. return S !== null && S.apply(this, arguments) || this;
  9744. }
  9745. return H(v, S), v.compose = function(d) {
  9746. return v.composedClasses.indexOf(d) === -1 && (v.composedClasses.push(d), d.prototype.html = v.prototype.html), d;
  9747. }, v.prototype.html = function(d, u, A) {
  9748. var O = this.createElement("span"), B = O.element, C = O.renderer, b = C.isSVG, w = function(x, a) {
  9749. ["opacity", "visibility"].forEach(function(c) {
  9750. x[c + "Setter"] = function(p, i, h) {
  9751. var o = x.div ? x.div.style : a;
  9752. j.prototype[c + "Setter"].call(this, p, i, h), o && (o[i] = p);
  9753. };
  9754. }), x.addedSetters = !0;
  9755. };
  9756. return O.textSetter = function(x) {
  9757. x !== this.textStr && (delete this.bBox, delete this.oldTextWidth, y.setElementHTML(this.element, R(x, "")), this.textStr = x, O.doTransform = !0);
  9758. }, b && w(O, O.element.style), O.xSetter = O.ySetter = O.alignSetter = O.rotationSetter = function(x, a) {
  9759. a === "align" ? O.alignValue = O.textAlign = x : O[a] = x, O.doTransform = !0;
  9760. }, O.afterSetters = function() {
  9761. this.doTransform && (this.htmlUpdateTransform(), this.doTransform = !1);
  9762. }, O.attr({ text: d, x: Math.round(u), y: Math.round(A) }).css({ position: "absolute" }), C.styledMode || O.css({ fontFamily: this.style.fontFamily, fontSize: this.style.fontSize }), B.style.whiteSpace = "nowrap", O.css = O.htmlCss, b && (O.add = function(x) {
  9763. var a = C.box.parentNode, c = [];
  9764. if (this.parentGroup = x) {
  9765. var p = x.div;
  9766. if (!p) {
  9767. for (; x; )
  9768. c.push(x), x = x.parentGroup;
  9769. c.reverse().forEach(function(i) {
  9770. function h(n, T) {
  9771. i[T] = n, T === "translateX" ? s.left = n + "px" : s.top = n + "px", i.doTransform = !0;
  9772. }
  9773. var o = U(i.element, "class"), t = i.styles || {};
  9774. p = i.div = i.div || F("div", o ? { className: o } : void 0, {
  9775. position: "absolute",
  9776. left: (i.translateX || 0) + "px",
  9777. top: (i.translateY || 0) + "px",
  9778. display: i.display,
  9779. opacity: i.opacity,
  9780. cursor: t.cursor,
  9781. pointerEvents: t.pointerEvents,
  9782. visibility: i.visibility
  9783. }, p || a);
  9784. var s = p.style;
  9785. N(i, { classSetter: function(n) {
  9786. return function(T) {
  9787. this.element.setAttribute("class", T), n.className = T;
  9788. };
  9789. }(p), on: function() {
  9790. return c[0].div && O.on.apply({ element: c[0].div, onEvents: i.onEvents }, arguments), i;
  9791. }, translateXSetter: h, translateYSetter: h }), i.addedSetters || w(i);
  9792. });
  9793. }
  9794. } else
  9795. p = a;
  9796. return p.appendChild(B), O.added = !0, O.alignOnAdd && O.htmlUpdateTransform(), O;
  9797. }), O;
  9798. }, v.composedClasses = [], v;
  9799. }(I);
  9800. }
  9801. ), E(l, "Core/Axis/AxisDefaults.js", [], function() {
  9802. var y;
  9803. return function(j) {
  9804. j.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: {
  9805. autoRotation: void 0,
  9806. autoRotationLimit: 80,
  9807. distance: void 0,
  9808. enabled: !0,
  9809. indentation: 10,
  9810. overflow: "justify",
  9811. padding: 5,
  9812. reserveSpace: void 0,
  9813. rotation: void 0,
  9814. staggerLines: 0,
  9815. step: 0,
  9816. useHTML: !1,
  9817. x: 0,
  9818. zIndex: 7,
  9819. style: { color: "#666666", cursor: "default", fontSize: "11px" }
  9820. }, 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: {
  9821. align: "middle",
  9822. rotation: 0,
  9823. useHTML: !1,
  9824. x: 0,
  9825. y: 0,
  9826. style: { color: "#666666" }
  9827. }, type: "linear", uniqueNames: !0, visible: !0, minorGridLineColor: "#f2f2f2", minorGridLineWidth: 1, minorTickColor: "#999999", lineColor: "#ccd6eb", lineWidth: 1, gridLineColor: "#e6e6e6", gridLineWidth: void 0, tickColor: "#ccd6eb" }, j.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: {
  9828. animation: {},
  9829. allowOverlap: !1,
  9830. enabled: !1,
  9831. crop: !0,
  9832. overflow: "justify",
  9833. formatter: function() {
  9834. var I = this.axis.chart.numberFormatter;
  9835. return I(this.total, -1);
  9836. },
  9837. style: { color: "#000000", fontSize: "11px", fontWeight: "bold", textOutline: "1px contrast" }
  9838. }, gridLineWidth: 1, lineWidth: 0 }, j.defaultLeftAxisOptions = { labels: { x: -15 }, title: { rotation: 270 } }, j.defaultRightAxisOptions = { labels: { x: 15 }, title: { rotation: 90 } }, j.defaultBottomAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } }, j.defaultTopAxisOptions = { labels: { autoRotation: [-45], x: 0 }, margin: 15, title: { rotation: 0 } };
  9839. }(y || (y = {})), y;
  9840. }), E(l, "Core/Foundation.js", [l["Core/Utilities.js"]], function(y) {
  9841. var j = y.addEvent, I = y.isFunction, Z = y.objectEach, H = y.removeEvent, U;
  9842. return function(F) {
  9843. F.registerEventOptions = function(N, R) {
  9844. N.eventOptions = N.eventOptions || {}, Z(R.events, function(S, v) {
  9845. N.eventOptions[v] !== S && (N.eventOptions[v] && (H(N, v, N.eventOptions[v]), delete N.eventOptions[v]), I(S) && (N.eventOptions[v] = S, j(N, v, S)));
  9846. });
  9847. };
  9848. }(U || (U = {})), U;
  9849. }), E(
  9850. l,
  9851. "Core/Axis/Tick.js",
  9852. [l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Utilities.js"]],
  9853. function(y, j, I) {
  9854. var Z = j.deg2rad, H = I.clamp, U = I.correctFloat, F = I.defined, N = I.destroyObjectProperties, R = I.extend, S = I.fireEvent, v = I.isNumber, d = I.merge, u = I.objectEach, A = I.pick;
  9855. return j = function() {
  9856. function O(B, C, b, w, x) {
  9857. this.isNewLabel = this.isNew = !0, this.axis = B, this.pos = C, this.type = b || "", this.parameters = x || {}, this.tickmarkOffset = this.parameters.tickmarkOffset, this.options = this.parameters.options, S(this, "init"), b || w || this.addLabel();
  9858. }
  9859. return O.prototype.addLabel = function() {
  9860. var B = this, C = B.axis, b = C.options, w = C.chart, x = C.categories, a = C.logarithmic, c = C.names, p = B.pos, i = A(B.options && B.options.labels, b.labels), h = C.tickPositions, o = p === h[0], t = p === h[h.length - 1], s = (!i.step || i.step === 1) && C.tickInterval === 1;
  9861. h = h.info;
  9862. var n = B.label, T;
  9863. if (x = this.parameters.category || (x ? A(x[p], c[p], p) : p), a && v(x) && (x = U(a.lin2log(x))), C.dateTime)
  9864. if (h)
  9865. var _ = w.time.resolveDTLFormat(b.dateTimeLabelFormats[!b.grid && h.higherRanks[p] || h.unitName]), D = _.main;
  9866. else
  9867. v(x) && (D = C.dateTime.getXDateFormat(x, b.dateTimeLabelFormats || {}));
  9868. B.isFirst = o, B.isLast = t;
  9869. var W = {
  9870. axis: C,
  9871. chart: w,
  9872. dateTimeLabelFormat: D,
  9873. isFirst: o,
  9874. isLast: t,
  9875. pos: p,
  9876. tick: B,
  9877. tickPositionInfo: h,
  9878. value: x
  9879. };
  9880. S(this, "labelFormat", W);
  9881. var P = function(g) {
  9882. return i.formatter ? i.formatter.call(g, g) : i.format ? (g.text = C.defaultLabelFormatter.call(g), y.format(i.format, g, w)) : C.defaultLabelFormatter.call(g, g);
  9883. };
  9884. b = P.call(W, W);
  9885. var X = _ && _.list;
  9886. B.shortenLabel = X ? function() {
  9887. for (T = 0; T < X.length; T++)
  9888. if (R(W, { dateTimeLabelFormat: X[T] }), n.attr({ text: P.call(W, W) }), n.getBBox().width < C.getSlotWidth(B) - 2 * i.padding)
  9889. return;
  9890. n.attr({ text: "" });
  9891. } : void 0, s && C._addedPlotLB && B.moveLabel(b, i), F(n) || B.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) : (B.label = n = B.createLabel({ x: 0, y: 0 }, b, i), B.rotation = 0);
  9892. }, O.prototype.createLabel = function(B, C, b) {
  9893. var w = this.axis, x = w.chart;
  9894. return (B = F(C) && b.enabled ? x.renderer.text(C, B.x, B.y, b.useHTML).add(w.labelGroup) : null) && (x.styledMode || B.css(d(b.style)), B.textPxLength = B.getBBox().width), B;
  9895. }, O.prototype.destroy = function() {
  9896. N(
  9897. this,
  9898. this.axis
  9899. );
  9900. }, O.prototype.getPosition = function(B, C, b, w) {
  9901. var x = this.axis, a = x.chart, c = w && a.oldChartHeight || a.chartHeight;
  9902. return B = { x: B ? U(x.translate(C + b, null, null, w) + x.transB) : x.left + x.offset + (x.opposite ? (w && a.oldChartWidth || a.chartWidth) - x.right - x.left : 0), y: B ? c - x.bottom + x.offset - (x.opposite ? x.height : 0) : U(c - x.translate(C + b, null, null, w) - x.transB) }, B.y = H(B.y, -1e5, 1e5), S(this, "afterGetPosition", { pos: B }), B;
  9903. }, O.prototype.getLabelPosition = function(B, C, b, w, x, a, c, p) {
  9904. var i = this.axis, h = i.transA, o = i.isLinked && i.linkedParent ? i.linkedParent.reversed : i.reversed, t = i.staggerLines, s = i.tickRotCorr || { x: 0, y: 0 }, n = w || i.reserveSpaceDefault ? 0 : -i.labelOffset * (i.labelAlign === "center" ? 0.5 : 1), T = {}, _ = x.y;
  9905. return F(_) || (_ = i.side === 0 ? b.rotation ? -8 : -b.getBBox().height : i.side === 2 ? s.y + 8 : Math.cos(b.rotation * Z) * (s.y - b.getBBox(!1, 0).height / 2)), B = B + x.x + n + s.x - (a && w ? a * h * (o ? -1 : 1) : 0), C = C + _ - (a && !w ? a * h * (o ? 1 : -1) : 0), t && (b = c / (p || 1) % t, i.opposite && (b = t - b - 1), C += i.labelOffset / t * b), T.x = B, T.y = Math.round(C), S(this, "afterGetLabelPosition", { pos: T, tickmarkOffset: a, index: c }), T;
  9906. }, O.prototype.getLabelSize = function() {
  9907. return this.label ? this.label.getBBox()[this.axis.horiz ? "height" : "width"] : 0;
  9908. }, O.prototype.getMarkPath = function(B, C, b, w, x, a) {
  9909. return a.crispLine([["M", B, C], ["L", B + (x ? 0 : -b), C + (x ? b : 0)]], w);
  9910. }, O.prototype.handleOverflow = function(B) {
  9911. var C = this.axis, b = C.options.labels, w = B.x, x = C.chart.chartWidth, a = C.chart.spacing, c = A(C.labelLeft, Math.min(C.pos, a[3]));
  9912. a = A(C.labelRight, Math.max(C.isRadial ? 0 : C.pos + C.len, x - a[1]));
  9913. var p = this.label, i = this.rotation, h = { left: 0, center: 0.5, right: 1 }[C.labelAlign || p.attr("align")], o = p.getBBox().width, t = C.getSlotWidth(this), s = {}, n = t, T = 1, _;
  9914. i || b.overflow !== "justify" ? 0 > i && w - h * o < c ? _ = Math.round(w / Math.cos(i * Z) - c) : 0 < i && w + h * o > a && (_ = Math.round((x - w) / Math.cos(i * Z))) : (x = w + (1 - h) * o, w - h * o < c ? n = B.x + n * (1 - h) - c : x > a && (n = a - B.x + n * h, T = -1), n = Math.min(t, n), n < t && C.labelAlign === "center" && (B.x += T * (t - n - h * (t - Math.min(o, n)))), (o > n || C.autoRotation && (p.styles || {}).width) && (_ = n)), _ && (this.shortenLabel ? this.shortenLabel() : (s.width = Math.floor(_) + "px", (b.style || {}).textOverflow || (s.textOverflow = "ellipsis"), p.css(s)));
  9915. }, O.prototype.moveLabel = function(B, C) {
  9916. var b = this, w = b.label, x = b.axis, a = x.reversed, c = !1;
  9917. if (w && w.textStr === B ? (b.movedLabel = w, c = !0, delete b.label) : u(x.ticks, function(i) {
  9918. c || i.isNew || i === b || !i.label || i.label.textStr !== B || (b.movedLabel = i.label, c = !0, i.labelPos = b.movedLabel.xy, delete i.label);
  9919. }), !c && (b.labelPos || w)) {
  9920. var p = b.labelPos || w.xy;
  9921. w = x.horiz ? a ? 0 : x.width + x.left : p.x, x = x.horiz ? p.y : a ? x.width + x.left : 0, b.movedLabel = b.createLabel({ x: w, y: x }, B, C), b.movedLabel && b.movedLabel.attr({ opacity: 0 });
  9922. }
  9923. }, O.prototype.render = function(B, C, b) {
  9924. var w = this.axis, x = w.horiz, a = this.pos, c = A(this.tickmarkOffset, w.tickmarkOffset);
  9925. a = this.getPosition(x, a, c, C), c = a.x;
  9926. var p = a.y;
  9927. w = x && c === w.pos + w.len || !x && p === w.pos ? -1 : 1, x = A(b, this.label && this.label.newOpacity, 1), b = A(b, 1), this.isActive = !0, this.renderGridLine(C, b, w), this.renderMark(a, b, w), this.renderLabel(a, C, x, B), this.isNew = !1, S(this, "afterRender");
  9928. }, O.prototype.renderGridLine = function(B, C, b) {
  9929. var w = this.axis, x = w.options, a = {}, c = this.pos, p = this.type, i = A(
  9930. this.tickmarkOffset,
  9931. w.tickmarkOffset
  9932. ), h = w.chart.renderer, o = this.gridLine, t = x.gridLineWidth, s = x.gridLineColor, n = x.gridLineDashStyle;
  9933. this.type === "minor" && (t = x.minorGridLineWidth, s = x.minorGridLineColor, n = x.minorGridLineDashStyle), o || (w.chart.styledMode || (a.stroke = s, a["stroke-width"] = t || 0, a.dashstyle = n), p || (a.zIndex = 1), B && (C = 0), this.gridLine = o = h.path().attr(a).addClass("highcharts-" + (p ? p + "-" : "") + "grid-line").add(w.gridGroup)), o && (b = w.getPlotLinePath({ value: c + i, lineWidth: o.strokeWidth() * b, force: "pass", old: B })) && o[B || this.isNew ? "attr" : "animate"]({ d: b, opacity: C });
  9934. }, O.prototype.renderMark = function(B, C, b) {
  9935. var w = this.axis, x = w.options, a = w.chart.renderer, c = this.type, p = w.tickSize(c ? c + "Tick" : "tick"), i = B.x;
  9936. B = B.y;
  9937. var h = A(x[c !== "minor" ? "tickWidth" : "minorTickWidth"], !c && w.isXAxis ? 1 : 0);
  9938. x = x[c !== "minor" ? "tickColor" : "minorTickColor"];
  9939. var o = this.mark, t = !o;
  9940. p && (w.opposite && (p[0] = -p[0]), o || (this.mark = o = a.path().addClass("highcharts-" + (c ? c + "-" : "") + "tick").add(w.axisGroup), w.chart.styledMode || o.attr({ stroke: x, "stroke-width": h })), o[t ? "attr" : "animate"]({ d: this.getMarkPath(
  9941. i,
  9942. B,
  9943. p[0],
  9944. o.strokeWidth() * b,
  9945. w.horiz,
  9946. a
  9947. ), opacity: C }));
  9948. }, O.prototype.renderLabel = function(B, C, b, w) {
  9949. var x = this.axis, a = x.horiz, c = x.options, p = this.label, i = c.labels, h = i.step;
  9950. x = A(this.tickmarkOffset, x.tickmarkOffset);
  9951. var o = B.x;
  9952. B = B.y;
  9953. var t = !0;
  9954. p && v(o) && (p.xy = B = this.getLabelPosition(o, B, p, a, i, x, w, h), this.isFirst && !this.isLast && !c.showFirstLabel || this.isLast && !this.isFirst && !c.showLastLabel ? t = !1 : !a || i.step || i.rotation || C || b === 0 || this.handleOverflow(B), h && w % h && (t = !1), t && v(B.y) ? (B.opacity = b, p[this.isNewLabel ? "attr" : "animate"](B), this.isNewLabel = !1) : (p.attr("y", -9999), this.isNewLabel = !0));
  9955. }, O.prototype.replaceMovedLabel = function() {
  9956. var B = this.label, C = this.axis, b = C.reversed;
  9957. if (B && !this.isNew) {
  9958. var w = C.horiz ? b ? C.left : C.width + C.left : B.xy.x;
  9959. b = C.horiz ? B.xy.y : b ? C.width + C.top : C.top, B.animate({ x: w, y: b, opacity: 0 }, void 0, B.destroy), delete this.label;
  9960. }
  9961. C.isDirty = !0, this.label = this.movedLabel, delete this.movedLabel;
  9962. }, O;
  9963. }(), j;
  9964. }
  9965. ), E(l, "Core/Axis/Axis.js", [
  9966. l["Core/Animation/AnimationUtilities.js"],
  9967. l["Core/Axis/AxisDefaults.js"],
  9968. l["Core/Color/Color.js"],
  9969. l["Core/DefaultOptions.js"],
  9970. l["Core/Foundation.js"],
  9971. l["Core/Globals.js"],
  9972. l["Core/Axis/Tick.js"],
  9973. l["Core/Utilities.js"]
  9974. ], function(y, j, I, Z, H, U, F, N) {
  9975. var R = y.animObject, S = Z.defaultOptions, v = H.registerEventOptions, d = U.deg2rad, u = N.arrayMax, A = N.arrayMin, O = N.clamp, B = N.correctFloat, C = N.defined, b = N.destroyObjectProperties, w = N.erase, x = N.error, a = N.extend, c = N.fireEvent, p = N.getMagnitude, i = N.isArray, h = N.isNumber, o = N.isString, t = N.merge, s = N.normalizeTickInterval, n = N.objectEach, T = N.pick, _ = N.relativeLength, D = N.removeEvent, W = N.splat, P = N.syncTimeout;
  9976. return y = function() {
  9977. function X(g, m) {
  9978. 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);
  9979. }
  9980. return X.prototype.init = function(g, m) {
  9981. var L = m.isX;
  9982. 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 = T(m.opposite, this.opposite), this.side = T(m.side, this.side, this.horiz ? this.opposite ? 0 : 2 : this.opposite ? 1 : 3), this.setOptions(m);
  9983. var Y = this.options, V = Y.labels, Q = Y.type;
  9984. this.userOptions = m, this.minPixelPadding = 0, this.reversed = T(Y.reversed, this.reversed), this.visible = Y.visible, this.zoomEnabled = Y.zoomEnabled, this.hasNames = Q === "category" || Y.categories === !0, this.categories = Y.categories || this.hasNames, this.names || (this.names = [], this.names.keys = {}), this.plotLinesAndBandsGroups = {}, this.positiveValuesOnly = !!this.logarithmic, this.isLinked = C(Y.linkedTo), this.ticks = {}, this.labelEdge = [], this.minorTicks = {}, this.plotLinesAndBands = [], this.alternateBands = {}, this.len = 0, this.minRange = this.userMinRange = Y.minRange || Y.maxZoom, this.range = Y.range, this.offset = Y.offset || 0, this.min = this.max = null, m = T(Y.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 = h(V.rotation) ? V.rotation : void 0, v(this, Y), c(this, "afterInit");
  9985. }, X.prototype.setOptions = function(g) {
  9986. this.options = t(j.defaultXAxisOptions, this.coll === "yAxis" && j.defaultYAxisOptions, [j.defaultTopAxisOptions, j.defaultRightAxisOptions, j.defaultBottomAxisOptions, j.defaultLeftAxisOptions][this.side], t(S[this.coll], g)), c(this, "afterSetOptions", { userOptions: g });
  9987. }, X.prototype.defaultLabelFormatter = function(g) {
  9988. var m = this.axis;
  9989. g = this.chart.numberFormatter;
  9990. var L = h(this.value) ? this.value : NaN, Y = m.chart.time, V = this.dateTimeLabelFormat, Q = S.lang, k = Q.numericSymbols;
  9991. Q = Q.numericSymbolMagnitude || 1e3;
  9992. var G = m.logarithmic ? Math.abs(L) : m.tickInterval, z = k && k.length;
  9993. if (m.categories)
  9994. var $ = "" + this.value;
  9995. else if (V)
  9996. $ = Y.dateFormat(V, L);
  9997. else if (z && 1e3 <= G)
  9998. for (; z-- && typeof $ > "u"; )
  9999. m = Math.pow(Q, z + 1), G >= m && 10 * L % m === 0 && k[z] !== null && L !== 0 && ($ = g(L / m, -1) + k[z]);
  10000. return typeof $ > "u" && ($ = 1e4 <= Math.abs(L) ? g(L, -1) : g(L, -1, void 0, "")), $;
  10001. }, X.prototype.getSeriesExtremes = function() {
  10002. var g = this, m = g.chart, L;
  10003. c(this, "getSeriesExtremes", null, function() {
  10004. g.hasVisibleSeries = !1, g.dataMin = g.dataMax = g.threshold = null, g.softThreshold = !g.isXAxis, g.stacking && g.stacking.buildStacks(), g.series.forEach(function(Y) {
  10005. if (Y.visible || !m.options.chart.ignoreHiddenSeries) {
  10006. var V = Y.options, Q = V.threshold;
  10007. if (g.hasVisibleSeries = !0, g.positiveValuesOnly && 0 >= Q && (Q = null), g.isXAxis) {
  10008. if (V = Y.xData, V.length) {
  10009. V = g.logarithmic ? V.filter(g.validatePositiveValue) : V, L = Y.getXExtremes(V);
  10010. var k = L.min, G = L.max;
  10011. h(k) || k instanceof Date || (V = V.filter(h), L = Y.getXExtremes(V), k = L.min, G = L.max), V.length && (g.dataMin = Math.min(T(g.dataMin, k), k), g.dataMax = Math.max(T(g.dataMax, G), G));
  10012. }
  10013. } else
  10014. Y = Y.applyExtremes(), h(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(T(g.dataMin, k), k)), h(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(T(g.dataMax, G), G)), C(Q) && (g.threshold = Q), (!V.softThreshold || g.positiveValuesOnly) && (g.softThreshold = !1);
  10015. }
  10016. });
  10017. }), c(this, "afterGetSeriesExtremes");
  10018. }, X.prototype.translate = function(g, m, L, Y, V, Q) {
  10019. var k = this.linkedParent || this, G = Y && k.old ? k.old.min : k.min, z = k.minPixelPadding;
  10020. V = (k.isOrdinal || k.brokenAxis && k.brokenAxis.hasBreaks || k.logarithmic && V) && k.lin2val;
  10021. var $ = 1, q = 0;
  10022. return Y = Y && k.old ? k.old.transA : k.transA, Y || (Y = k.transA), L && ($ *= -1, q = k.len), k.reversed && ($ *= -1, q -= $ * (k.sector || k.len)), m ? (g = (g * $ + q - z) / Y + G, V && (g = k.lin2val(g))) : (V && (g = k.val2lin(g)), g = h(G) ? $ * (g - G) * Y + q + $ * z + (h(Q) ? Y * Q : 0) : void 0), g;
  10023. }, X.prototype.toPixels = function(g, m) {
  10024. return this.translate(
  10025. g,
  10026. !1,
  10027. !this.horiz,
  10028. null,
  10029. !0
  10030. ) + (m ? 0 : this.pos);
  10031. }, X.prototype.toValue = function(g, m) {
  10032. return this.translate(g - (m ? 0 : this.pos), !0, !this.horiz, null, !0);
  10033. }, X.prototype.getPlotLinePath = function(g) {
  10034. function m(at, J, tt) {
  10035. return (nt !== "pass" && at < J || at > tt) && (nt ? at = O(at, J, tt) : ht = !0), at;
  10036. }
  10037. var L = this, Y = L.chart, V = L.left, Q = L.top, k = g.old, G = g.value, z = g.lineWidth, $ = k && Y.oldChartHeight || Y.chartHeight, q = k && Y.oldChartWidth || Y.chartWidth, it = L.transB, et = g.translatedValue, nt = g.force, rt, ct, gt, dt, ht;
  10038. return g = {
  10039. value: G,
  10040. lineWidth: z,
  10041. old: k,
  10042. force: nt,
  10043. acrossPanes: g.acrossPanes,
  10044. translatedValue: et
  10045. }, c(this, "getPlotLinePath", g, function(at) {
  10046. et = T(et, L.translate(G, null, null, k)), et = O(et, -1e5, 1e5), rt = gt = Math.round(et + it), ct = dt = Math.round($ - et - it), h(et) ? L.horiz ? (ct = Q, dt = $ - L.bottom, rt = gt = m(rt, V, V + L.width)) : (rt = V, gt = q - L.right, ct = dt = m(ct, Q, Q + L.height)) : (ht = !0, nt = !1), at.path = ht && !nt ? null : Y.renderer.crispLine([["M", rt, ct], ["L", gt, dt]], z || 1);
  10047. }), g.path;
  10048. }, X.prototype.getLinearTickPositions = function(g, m, L) {
  10049. var Y = B(Math.floor(m / g) * g);
  10050. L = B(Math.ceil(L / g) * g);
  10051. var V = [], Q;
  10052. if (B(Y + g) === Y && (Q = 20), this.single)
  10053. return [m];
  10054. for (m = Y; m <= L && (V.push(m), m = B(m + g, Q), m !== k); )
  10055. var k = m;
  10056. return V;
  10057. }, X.prototype.getMinorTickInterval = function() {
  10058. var g = this.options;
  10059. return g.minorTicks === !0 ? T(g.minorTickInterval, "auto") : g.minorTicks === !1 ? null : g.minorTickInterval;
  10060. }, X.prototype.getMinorTickPositions = function() {
  10061. var g = this.options, m = this.tickPositions, L = this.minorTickInterval, Y = this.pointRangePadding || 0, V = this.min - Y;
  10062. Y = this.max + Y;
  10063. var Q = Y - V, k = [];
  10064. if (Q && Q / L < this.len / 3) {
  10065. var G = this.logarithmic;
  10066. if (G)
  10067. this.paddedTicks.forEach(function(z, $, q) {
  10068. $ && k.push.apply(
  10069. k,
  10070. G.getLogTickPositions(L, q[$ - 1], q[$], !0)
  10071. );
  10072. });
  10073. else if (this.dateTime && this.getMinorTickInterval() === "auto")
  10074. k = k.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(L), V, Y, g.startOfWeek));
  10075. else
  10076. for (g = V + (m[0] - V) % L; g <= Y && g !== k[0]; g += L)
  10077. k.push(g);
  10078. }
  10079. return k.length !== 0 && this.trimTicks(k), k;
  10080. }, X.prototype.adjustForMinRange = function() {
  10081. var g = this.options, m = this.logarithmic, L = this.min, Y = this.max, V = 0, Q, k, G, z;
  10082. if (this.isXAxis && typeof this.minRange > "u" && !m && (C(g.min) || C(g.max) || C(g.floor) || C(g.ceiling) ? this.minRange = null : (this.series.forEach(function(et) {
  10083. if (G = et.xData, z = et.xIncrement ? 1 : G.length - 1, 1 < G.length)
  10084. for (Q = z; 0 < Q; Q--)
  10085. k = G[Q] - G[Q - 1], (!V || k < V) && (V = k);
  10086. }), this.minRange = Math.min(5 * V, this.dataMax - this.dataMin))), Y - L < this.minRange) {
  10087. var $ = this.dataMax - this.dataMin >= this.minRange, q = this.minRange, it = (q - Y + L) / 2;
  10088. it = [L - it, T(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = u(it), Y = [L + q, T(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = A(Y), Y - L < q && (it[0] = Y - q, it[1] = T(g.min, Y - q), L = u(it));
  10089. }
  10090. this.min = L, this.max = Y;
  10091. }, X.prototype.getClosest = function() {
  10092. var g;
  10093. return this.categories ? g = 1 : this.series.forEach(function(m) {
  10094. var L = m.closestPointRange, Y = m.visible || !m.chart.options.chart.ignoreHiddenSeries;
  10095. !m.noSharedTooltip && C(L) && Y && (g = C(g) ? Math.min(g, L) : L);
  10096. }), g;
  10097. }, X.prototype.nameToX = function(g) {
  10098. var m = i(this.categories), L = m ? this.categories : this.names, Y = g.options.x;
  10099. if (g.series.requireSorting = !1, C(Y) || (Y = this.options.uniqueNames ? m ? L.indexOf(g.name) : T(L.keys[g.name], -1) : g.series.autoIncrement()), Y === -1) {
  10100. if (!m)
  10101. var V = L.length;
  10102. } else
  10103. V = Y;
  10104. return typeof V < "u" && (this.names[V] = g.name, this.names.keys[g.name] = V), V;
  10105. }, X.prototype.updateNames = function() {
  10106. var g = this, m = this.names;
  10107. 0 < m.length && (Object.keys(m.keys).forEach(function(L) {
  10108. delete m.keys[L];
  10109. }), m.length = 0, this.minRange = this.userMinRange, (this.series || []).forEach(function(L) {
  10110. 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(Y, V) {
  10111. if (Y && Y.options && typeof Y.name < "u") {
  10112. var Q = g.nameToX(Y);
  10113. typeof Q < "u" && Q !== Y.x && (Y.x = Q, L.xData[V] = Q);
  10114. }
  10115. });
  10116. }));
  10117. }, X.prototype.setAxisTranslation = function() {
  10118. var g = this, m = g.max - g.min, L = g.linkedParent, Y = !!g.categories, V = g.isXAxis, Q = g.axisPointRange || 0, k = 0, G = 0, z = g.transA;
  10119. if (V || Y || Q) {
  10120. var $ = g.getClosest();
  10121. L ? (k = L.minPointOffset, G = L.pointRangePadding) : g.series.forEach(function(q) {
  10122. var it = Y ? 1 : V ? T(q.options.pointRange, $, 0) : g.axisPointRange || 0, et = q.options.pointPlacement;
  10123. Q = Math.max(Q, it), (!g.single || Y) && (q = q.is("xrange") ? !V : V, k = Math.max(k, q && o(et) ? 0 : it / 2), G = Math.max(G, q && et === "on" ? 0 : it));
  10124. }), L = g.ordinal && g.ordinal.slope && $ ? g.ordinal.slope / $ : 1, g.minPointOffset = k *= L, g.pointRangePadding = G *= L, g.pointRange = Math.min(Q, g.single && Y ? 1 : m), V && (g.closestPointRange = $);
  10125. }
  10126. g.translationSlope = g.transA = z = g.staticScale || g.len / (m + G || 1), g.transB = g.horiz ? g.left : g.bottom, g.minPixelPadding = z * k, c(this, "afterSetAxisTranslation");
  10127. }, X.prototype.minFromRange = function() {
  10128. return this.max - this.range;
  10129. }, X.prototype.setTickInterval = function(g) {
  10130. var m = this.chart, L = this.logarithmic, Y = this.options, V = this.isXAxis, Q = this.isLinked, k = Y.tickPixelInterval, G = this.categories, z = this.softThreshold, $ = Y.maxPadding, q = Y.minPadding, it = h(Y.tickInterval) && 0 <= Y.tickInterval ? Y.tickInterval : void 0, et = h(this.threshold) ? this.threshold : null;
  10131. this.dateTime || G || Q || this.getTickAmount();
  10132. var nt = T(this.userMin, Y.min), rt = T(this.userMax, Y.max);
  10133. if (Q) {
  10134. this.linkedParent = m[this.coll][Y.linkedTo];
  10135. var ct = this.linkedParent.getExtremes();
  10136. this.min = T(ct.min, ct.dataMin), this.max = T(ct.max, ct.dataMax), Y.type !== this.linkedParent.options.type && x(11, 1, m);
  10137. } else {
  10138. if (z && C(et)) {
  10139. if (this.dataMin >= et)
  10140. ct = et, q = 0;
  10141. else if (this.dataMax <= et) {
  10142. var gt = et;
  10143. $ = 0;
  10144. }
  10145. }
  10146. this.min = T(nt, ct, this.dataMin), this.max = T(rt, gt, this.dataMax);
  10147. }
  10148. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, T(this.dataMin, this.min)) && x(10, 1, m), this.min = B(L.log2lin(this.min), 16), this.max = B(L.log2lin(this.max), 16)), this.range && C(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(), !(G || this.axisPointRange || this.stacking && this.stacking.usePercentage || Q) && C(this.min) && C(this.max) && (m = this.max - this.min) && (!C(nt) && q && (this.min -= m * q), !C(rt) && $ && (this.max += m * $)), h(this.userMin) || (h(Y.softMin) && Y.softMin < this.min && (this.min = nt = Y.softMin), h(Y.floor) && (this.min = Math.max(this.min, Y.floor))), h(this.userMax) || (h(Y.softMax) && Y.softMax > this.max && (this.max = rt = Y.softMax), h(Y.ceiling) && (this.max = Math.min(this.max, Y.ceiling))), z && C(this.dataMin) && (et = et || 0, !C(nt) && this.min < et && this.dataMin >= et ? this.min = this.options.minRange ? Math.min(et, this.max - this.minRange) : et : !C(rt) && this.max > et && this.dataMax <= et && (this.max = this.options.minRange ? Math.max(et, this.min + this.minRange) : et)), h(this.min) && h(this.max) && !this.chart.polar && this.min > this.max && (C(this.options.min) ? this.max = this.min : C(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 && k === this.linkedParent.options.tickPixelInterval ? it = this.linkedParent.tickInterval : T(it, this.tickAmount ? (this.max - this.min) / Math.max(this.tickAmount - 1, 1) : void 0, G ? 1 : (this.max - this.min) * k / Math.max(this.len, k)), V && !g) {
  10149. var dt = this.min !== (this.old && this.old.min) || this.max !== (this.old && this.old.max);
  10150. this.series.forEach(function(ht) {
  10151. ht.forceCrop = ht.forceCropping && ht.forceCropping(), ht.processData(dt);
  10152. }), c(this, "postProcessData", { hasExtemesChanged: dt });
  10153. }
  10154. this.setAxisTranslation(), c(this, "initialAxisTranslation"), this.pointRange && !it && (this.tickInterval = Math.max(this.pointRange, this.tickInterval)), g = T(Y.minTickInterval, this.dateTime && !this.series.some(function(ht) {
  10155. return ht.noSharedTooltip;
  10156. }) ? this.closestPointRange : 0), !it && this.tickInterval < g && (this.tickInterval = g), this.dateTime || this.logarithmic || it || (this.tickInterval = s(this.tickInterval, void 0, p(this.tickInterval), T(Y.allowDecimals, 0.5 > this.tickInterval || this.tickAmount !== void 0), !!this.tickAmount)), this.tickAmount || (this.tickInterval = this.unsquish()), this.setTickPositions();
  10157. }, X.prototype.setTickPositions = function() {
  10158. var g = this.options, m = g.tickPositions, L = this.getMinorTickInterval(), Y = this.hasVerticalPanning(), V = this.coll === "colorAxis", Q = (V || !Y) && g.startOnTick;
  10159. Y = (V || !Y) && g.endOnTick, V = 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 && C(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(
  10160. this.tickInterval,
  10161. this.min,
  10162. this.max
  10163. ) : (L = [this.min, this.max], x(19, !1, this.chart)), L.length > this.len && (L = [L[0], L.pop()], L[0] === L[1] && (L.length = 1)), this.tickPositions = L, V && (V = V.apply(this, [this.min, this.max]))) && (this.tickPositions = L = V), this.paddedTicks = L.slice(0), this.trimTicks(L, Q, Y), this.isLinked || (this.single && 2 > L.length && !this.categories && !this.series.some(function(k) {
  10164. return k.is("heatmap") && k.options.pointPlacement === "between";
  10165. }) && (this.min -= 0.5, this.max += 0.5), m || V || this.adjustTickAmount()), c(this, "afterSetTickPositions");
  10166. }, X.prototype.trimTicks = function(g, m, L) {
  10167. var Y = g[0], V = g[g.length - 1], Q = !this.isOrdinal && this.minPointOffset || 0;
  10168. if (c(this, "trimTicks"), !this.isLinked) {
  10169. if (m && Y !== -1 / 0)
  10170. this.min = Y;
  10171. else
  10172. for (; this.min - Q > g[0]; )
  10173. g.shift();
  10174. if (L)
  10175. this.max = V;
  10176. else
  10177. for (; this.max + Q < g[g.length - 1]; )
  10178. g.pop();
  10179. g.length === 0 && C(Y) && !this.options.tickPositions && g.push((V + Y) / 2);
  10180. }
  10181. }, X.prototype.alignToOthers = function() {
  10182. var g = {}, m = this.options, L;
  10183. return this.chart.options.chart.alignTicks !== !1 && m.alignTicks && m.startOnTick !== !1 && m.endOnTick !== !1 && !this.logarithmic && this.chart[this.coll].forEach(function(Y) {
  10184. var V = Y.options;
  10185. V = [Y.horiz ? V.left : V.top, V.width, V.height, V.pane].join(), Y.series.length && (g[V] ? L = !0 : g[V] = 1);
  10186. }), L;
  10187. }, X.prototype.getTickAmount = function() {
  10188. var g = this.options, m = g.tickPixelInterval, L = g.tickAmount;
  10189. !C(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;
  10190. }, X.prototype.adjustTickAmount = function() {
  10191. var g = this.options, m = this.tickInterval, L = this.tickPositions, Y = this.tickAmount, V = this.finalTickAmt, Q = L && L.length, k = T(this.threshold, this.softThreshold ? 0 : null);
  10192. if (this.hasData() && h(this.min) && h(this.max)) {
  10193. if (Q < Y) {
  10194. for (; L.length < Y; )
  10195. L.length % 2 || this.min === k ? L.push(B(L[L.length - 1] + m)) : L.unshift(B(L[0] - m));
  10196. this.transA *= (Q - 1) / (Y - 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]);
  10197. } else
  10198. Q > Y && (this.tickInterval *= 2, this.setTickPositions());
  10199. if (C(V)) {
  10200. for (m = g = L.length; m--; )
  10201. (V === 3 && m % 2 === 1 || 2 >= V && 0 < m && m < g - 1) && L.splice(m, 1);
  10202. this.finalTickAmt = void 0;
  10203. }
  10204. }
  10205. }, X.prototype.setScale = function() {
  10206. var g = !1, m = !1;
  10207. this.series.forEach(function(Y) {
  10208. g = g || Y.isDirtyData || Y.isDirty, m = m || Y.xAxis && Y.xAxis.isDirty || !1;
  10209. }), this.setAxisSize();
  10210. var L = this.len !== (this.old && this.old.len);
  10211. 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");
  10212. }, X.prototype.setExtremes = function(g, m, L, Y, V) {
  10213. var Q = this, k = Q.chart;
  10214. L = T(L, !0), Q.series.forEach(function(G) {
  10215. delete G.kdTree;
  10216. }), V = a(V, { min: g, max: m }), c(Q, "setExtremes", V, function() {
  10217. Q.userMin = g, Q.userMax = m, Q.eventArgs = V, L && k.redraw(Y);
  10218. });
  10219. }, X.prototype.zoom = function(g, m) {
  10220. var L = this, Y = this.dataMin, V = this.dataMax, Q = this.options, k = Math.min(Y, T(Q.min, Y)), G = Math.max(V, T(Q.max, V));
  10221. return g = { newMin: g, newMax: m }, c(this, "zoom", g, function(z) {
  10222. var $ = z.newMin, q = z.newMax;
  10223. ($ !== L.min || q !== L.max) && (L.allowZoomOutside || (C(Y) && ($ < k && ($ = k), $ > G && ($ = G)), C(V) && (q < k && (q = k), q > G && (q = G))), L.displayBtn = typeof $ < "u" || typeof q < "u", L.setExtremes($, q, !1, void 0, { trigger: "zoom" })), z.zoomed = !0;
  10224. }), g.zoomed;
  10225. }, X.prototype.setAxisSize = function() {
  10226. var g = this.chart, m = this.options, L = m.offsets || [0, 0, 0, 0], Y = this.horiz, V = this.width = Math.round(_(T(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(T(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(T(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  10227. m = this.left = Math.round(_(T(m.left, g.plotLeft + L[3]), g.plotWidth, g.plotLeft)), this.bottom = g.chartHeight - Q - k, this.right = g.chartWidth - V - m, this.len = Math.max(Y ? V : Q, 0), this.pos = Y ? m : k;
  10228. }, X.prototype.getExtremes = function() {
  10229. var g = this.logarithmic;
  10230. return { min: g ? B(g.lin2log(this.min)) : this.min, max: g ? B(g.lin2log(this.max)) : this.max, dataMin: this.dataMin, dataMax: this.dataMax, userMin: this.userMin, userMax: this.userMax };
  10231. }, X.prototype.getThreshold = function(g) {
  10232. var m = this.logarithmic, L = m ? m.lin2log(this.min) : this.min;
  10233. 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);
  10234. }, X.prototype.autoLabelAlign = function(g) {
  10235. var m = (T(g, 0) - 90 * this.side + 720) % 360;
  10236. return g = { align: "center" }, c(
  10237. this,
  10238. "autoLabelAlign",
  10239. g,
  10240. function(L) {
  10241. 15 < m && 165 > m ? L.align = "right" : 195 < m && 345 > m && (L.align = "left");
  10242. }
  10243. ), g.align;
  10244. }, X.prototype.tickSize = function(g) {
  10245. var m = this.options, L = T(m[g === "tick" ? "tickWidth" : "minorTickWidth"], g === "tick" && this.isXAxis && !this.categories ? 1 : 0), Y = m[g === "tick" ? "tickLength" : "minorTickLength"];
  10246. if (L && Y) {
  10247. m[g + "Position"] === "inside" && (Y = -Y);
  10248. var V = [Y, L];
  10249. }
  10250. return g = { tickSize: V }, c(this, "afterTickSize", g), g.tickSize;
  10251. }, X.prototype.labelMetrics = function() {
  10252. var g = this.tickPositions && this.tickPositions[0] || 0;
  10253. return this.chart.renderer.fontMetrics(
  10254. this.options.labels.style.fontSize,
  10255. this.ticks[g] && this.ticks[g].label
  10256. );
  10257. }, X.prototype.unsquish = function() {
  10258. var g = this.options.labels, m = this.horiz, L = this.tickInterval, Y = this.len / (((this.categories ? 1 : 0) + this.max - this.min) / L), V = g.rotation, Q = this.labelMetrics(), k = Math.max(this.max - this.min, 0), G = function(nt) {
  10259. var rt = nt / (Y || 1);
  10260. return rt = 1 < rt ? Math.ceil(rt) : 1, rt * L > k && nt !== 1 / 0 && Y !== 1 / 0 && k && (rt = Math.ceil(k / L)), B(rt * L);
  10261. }, z = L, $, q, it = Number.MAX_VALUE;
  10262. if (m) {
  10263. if (!g.staggerLines && !g.step)
  10264. if (h(V))
  10265. var et = [V];
  10266. else
  10267. Y < g.autoRotationLimit && (et = g.autoRotation);
  10268. et && et.forEach(function(nt) {
  10269. if (nt === V || nt && -90 <= nt && 90 >= nt) {
  10270. q = G(Math.abs(Q.h / Math.sin(d * nt)));
  10271. var rt = q + Math.abs(nt / 360);
  10272. rt < it && (it = rt, $ = nt, z = q);
  10273. }
  10274. });
  10275. } else
  10276. g.step || (z = G(Q.h));
  10277. return this.autoRotation = et, this.labelRotation = T($, h(V) ? V : 0), z;
  10278. }, X.prototype.getSlotWidth = function(g) {
  10279. var m = this.chart, L = this.horiz, Y = this.options.labels, V = Math.max(this.tickPositions.length - (this.categories ? 0 : 1), 1), Q = m.margin[3];
  10280. if (g && h(g.slotWidth))
  10281. return g.slotWidth;
  10282. if (L && 2 > Y.step)
  10283. return Y.rotation ? 0 : (this.staggerLines || 1) * this.len / V;
  10284. if (!L) {
  10285. if (g = Y.style.width, g !== void 0)
  10286. return parseInt(String(g), 10);
  10287. if (Q)
  10288. return Q - m.spacing[3];
  10289. }
  10290. return 0.33 * m.chartWidth;
  10291. }, X.prototype.renderUnsquish = function() {
  10292. var g = this.chart, m = g.renderer, L = this.tickPositions, Y = this.ticks, V = this.options.labels, Q = V.style, k = this.horiz, G = this.getSlotWidth(), z = Math.max(1, Math.round(G - 2 * V.padding)), $ = {}, q = this.labelMetrics(), it = Q.textOverflow, et = 0;
  10293. if (o(V.rotation) || ($.rotation = V.rotation || 0), L.forEach(function(gt) {
  10294. gt = Y[gt], gt.movedLabel && gt.replaceMovedLabel(), gt && gt.label && gt.label.textPxLength > et && (et = gt.label.textPxLength);
  10295. }), this.maxLabelLength = et, this.autoRotation)
  10296. et > z && et > q.h ? $.rotation = this.labelRotation : this.labelRotation = 0;
  10297. else if (G) {
  10298. var nt = z;
  10299. if (!it) {
  10300. var rt = "clip";
  10301. for (z = L.length; !k && z--; ) {
  10302. var ct = L[z];
  10303. (ct = Y[ct].label) && (ct.styles && ct.styles.textOverflow === "ellipsis" ? ct.css({ textOverflow: "clip" }) : ct.textPxLength > G && ct.css({ width: G + "px" }), ct.getBBox().height > this.len / L.length - (q.h - q.f) && (ct.specificTextOverflow = "ellipsis"));
  10304. }
  10305. }
  10306. }
  10307. $.rotation && (nt = et > 0.5 * g.chartHeight ? 0.33 * g.chartHeight : et, it || (rt = "ellipsis")), (this.labelAlign = V.align || this.autoLabelAlign(this.labelRotation)) && ($.align = this.labelAlign), L.forEach(function(gt) {
  10308. var dt = (gt = Y[gt]) && gt.label, ht = Q.width, at = {};
  10309. dt && (dt.attr($), 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 = $.rotation);
  10310. }, this), this.tickRotCorr = m.rotCorr(q.b, this.labelRotation || 0, this.side !== 0);
  10311. }, X.prototype.hasData = function() {
  10312. return this.series.some(function(g) {
  10313. return g.hasData();
  10314. }) || this.options.showEmpty && C(this.min) && C(this.max);
  10315. }, X.prototype.addTitle = function(g) {
  10316. var m = this.chart.renderer, L = this.horiz, Y = this.opposite, V = this.options.title, Q = this.chart.styledMode, k;
  10317. this.axisTitle || ((k = V.textAlign) || (k = (L ? { low: "left", middle: "center", high: "right" } : { low: Y ? "right" : "left", middle: "center", high: Y ? "left" : "right" })[V.align]), this.axisTitle = m.text(V.text || "", 0, 0, V.useHTML).attr({ zIndex: 7, rotation: V.rotation, align: k }).addClass("highcharts-axis-title"), Q || this.axisTitle.css(t(V.style)), this.axisTitle.add(this.axisGroup), this.axisTitle.isNew = !0), Q || V.style.width || this.isRadial || this.axisTitle.css({ width: this.len + "px" }), this.axisTitle[g ? "show" : "hide"](g);
  10318. }, X.prototype.generateTick = function(g) {
  10319. var m = this.ticks;
  10320. m[g] ? m[g].addLabel() : m[g] = new F(this, g);
  10321. }, X.prototype.getOffset = function() {
  10322. var g = this, m = this, L = m.chart, Y = m.horiz, V = m.options, Q = m.side, k = m.ticks, G = m.tickPositions, z = m.coll, $ = m.axisParent, q = L.renderer, it = L.inverted && !m.isZAxis ? [1, 0, 3, 2][Q] : Q, et = m.hasData(), nt = V.title, rt = V.labels, ct = L.axisOffset;
  10323. L = L.clipOffset;
  10324. var gt = [
  10325. -1,
  10326. 1,
  10327. 1,
  10328. -1
  10329. ][Q], dt = V.className, ht, at = 0, J = 0, tt = 0;
  10330. if (m.showAxis = ht = et || V.showEmpty, m.staggerLines = m.horiz && rt.staggerLines || void 0, !m.axisGroup) {
  10331. var ot = function(pt, yt, vt) {
  10332. return q.g(pt).attr({ zIndex: vt }).addClass("highcharts-" + z.toLowerCase() + yt + " " + (g.isRadial ? "highcharts-radial-axis" + yt + " " : "") + (dt || "")).add($);
  10333. };
  10334. m.gridGroup = ot("grid", "-grid", V.gridZIndex), m.axisGroup = ot("axis", "", V.zIndex), m.labelGroup = ot("axis-labels", "-labels", rt.zIndex);
  10335. }
  10336. if (et || m.isLinked ? (G.forEach(function(pt) {
  10337. m.generateTick(pt);
  10338. }), m.renderUnsquish(), m.reserveSpaceDefault = Q === 0 || Q === 2 || { 1: "left", 3: "right" }[Q] === m.labelAlign, T(rt.reserveSpace, m.labelAlign === "center" ? !0 : null, m.reserveSpaceDefault) && G.forEach(function(pt) {
  10339. tt = Math.max(k[pt].getLabelSize(), tt);
  10340. }), m.staggerLines && (tt *= m.staggerLines), m.labelOffset = tt * (m.opposite ? -1 : 1)) : n(k, function(pt, yt) {
  10341. pt.destroy(), delete k[yt];
  10342. }), nt && nt.text && nt.enabled !== !1 && (m.addTitle(ht), ht && nt.reserveSpace !== !1)) {
  10343. m.titleOffset = at = m.axisTitle.getBBox()[Y ? "height" : "width"];
  10344. var lt = nt.offset;
  10345. J = C(lt) ? 0 : T(nt.margin, Y ? 5 : 10);
  10346. }
  10347. m.renderLine(), m.offset = gt * T(V.offset, ct[Q] ? ct[Q] + (V.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 * (Y ? T(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = T(lt, et), m.getMaxLabelDimensions && (m.maxLabelDimensions = m.getMaxLabelDimensions(k, G)), z !== "colorAxis" && (Y = this.tickSize("tick"), ct[Q] = Math.max(ct[Q], (m.axisTitleMargin || 0) + at + gt * m.offset, et, G && G.length && Y ? Y[0] + gt * m.offset : 0), V = !m.axisLine || V.offset ? 0 : 2 * Math.floor(m.axisLine.strokeWidth() / 2), L[it] = Math.max(L[it], V)), c(this, "afterGetOffset");
  10348. }, X.prototype.getLinePath = function(g) {
  10349. var m = this.chart, L = this.opposite, Y = this.offset, V = this.horiz, Q = this.left + (L ? this.width : 0) + Y;
  10350. return Y = m.chartHeight - this.bottom - (L ? this.height : 0) + Y, L && (g *= -1), m.renderer.crispLine([["M", V ? this.left : Q, V ? Y : this.top], ["L", V ? m.chartWidth - this.right : Q, V ? Y : m.chartHeight - this.bottom]], g);
  10351. }, X.prototype.renderLine = function() {
  10352. 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 }));
  10353. }, X.prototype.getTitlePosition = function() {
  10354. var g = this.horiz, m = this.left, L = this.top, Y = this.len, V = this.options.title, Q = g ? m : L, k = this.opposite, G = this.offset, z = V.x, $ = V.y, q = this.axisTitle, it = this.chart.renderer.fontMetrics(V.style.fontSize, q);
  10355. return q = Math.max(q.getBBox(null, 0).height - it.h - 1, 0), Y = { low: Q + (g ? 0 : Y), middle: Q + Y / 2, high: Q + (g ? Y : 0) }[V.align], m = (g ? L + this.height : m) + (g ? 1 : -1) * (k ? -1 : 1) * this.axisTitleMargin + [-q, q, it.f, -q][this.side], g = { x: g ? Y + z : m + (k ? this.width : 0) + G + z, y: g ? m + $ - (k ? this.height : 0) + G : Y + $ }, c(this, "afterGetTitlePosition", { titlePosition: g }), g;
  10356. }, X.prototype.renderMinorTick = function(g, m) {
  10357. var L = this.minorTicks;
  10358. L[g] || (L[g] = new F(this, g, "minor")), m && L[g].isNew && L[g].render(null, !0), L[g].render(null, !1, 1);
  10359. }, X.prototype.renderTick = function(g, m, L) {
  10360. var Y = this.ticks;
  10361. (!this.isLinked || g >= this.min && g <= this.max || this.grid && this.grid.isColumn) && (Y[g] || (Y[g] = new F(this, g)), L && Y[g].isNew && Y[g].render(
  10362. m,
  10363. !0,
  10364. -1
  10365. ), Y[g].render(m));
  10366. }, X.prototype.render = function() {
  10367. var g = this, m = g.chart, L = g.logarithmic, Y = g.options, V = g.isLinked, Q = g.tickPositions, k = g.axisTitle, G = g.ticks, z = g.minorTicks, $ = g.alternateBands, q = Y.stackLabels, it = Y.alternateGridColor, et = g.tickmarkOffset, nt = g.axisLine, rt = g.showAxis, ct = R(m.renderer.globalAnimation), gt, dt;
  10368. if (g.labelEdge.length = 0, g.overlap = !1, [G, z, $].forEach(function(at) {
  10369. n(at, function(J) {
  10370. J.isActive = !1;
  10371. });
  10372. }), g.hasData() || V) {
  10373. var ht = g.chart.hasRendered && g.old && h(g.old.min);
  10374. g.minorTickInterval && !g.categories && g.getMinorTickPositions().forEach(function(at) {
  10375. g.renderMinorTick(at, ht);
  10376. }), Q.length && (Q.forEach(function(at, J) {
  10377. g.renderTick(at, J, ht);
  10378. }), et && (g.min === 0 || g.single) && (G[-1] || (G[-1] = new F(g, -1, null, !0)), G[-1].render(-1))), it && Q.forEach(function(at, J) {
  10379. 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) && ($[at] || ($[at] = new U.PlotLineOrBand(g)), gt = at + et, $[at].options = { from: L ? L.lin2log(gt) : gt, to: L ? L.lin2log(dt) : dt, color: it, className: "highcharts-alternate-grid" }, $[at].render(), $[at].isActive = !0);
  10380. }), g._addedPlotLB || (g._addedPlotLB = !0, (Y.plotLines || []).concat(Y.plotBands || []).forEach(function(at) {
  10381. g.addPlotBandOrLine(at);
  10382. }));
  10383. }
  10384. [G, z, $].forEach(function(at) {
  10385. var J = [], tt = ct.duration;
  10386. n(at, function(ot, lt) {
  10387. ot.isActive || (ot.render(lt, !1, 0), ot.isActive = !1, J.push(lt));
  10388. }), P(function() {
  10389. for (var ot = J.length; ot--; )
  10390. at[J[ot]] && !at[J[ot]].isActive && (at[J[ot]].destroy(), delete at[J[ot]]);
  10391. }, at !== $ && m.hasRendered && tt ? tt : 0);
  10392. }), nt && (nt[nt.isPlaced ? "animate" : "attr"]({ d: this.getLinePath(nt.strokeWidth()) }), nt.isPlaced = !0, nt[rt ? "show" : "hide"](rt)), k && rt && (Y = g.getTitlePosition(), h(Y.y) ? (k[k.isNew ? "attr" : "animate"](Y), k.isNew = !1) : (k.attr("y", -9999), k.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");
  10393. }, X.prototype.redraw = function() {
  10394. this.visible && (this.render(), this.plotLinesAndBands.forEach(function(g) {
  10395. g.render();
  10396. })), this.series.forEach(function(g) {
  10397. g.isDirty = !0;
  10398. });
  10399. }, X.prototype.getKeepProps = function() {
  10400. return this.keepProps || X.keepProps;
  10401. }, X.prototype.destroy = function(g) {
  10402. var m = this, L = m.plotLinesAndBands, Y = this.eventOptions;
  10403. if (c(this, "destroy", { keepEvents: g }), g || D(m), [m.ticks, m.minorTicks, m.alternateBands].forEach(function(Q) {
  10404. b(Q);
  10405. }), L)
  10406. for (g = L.length; g--; )
  10407. L[g].destroy();
  10408. "axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(Q) {
  10409. m[Q] && (m[Q] = m[Q].destroy());
  10410. });
  10411. for (var V in m.plotLinesAndBandsGroups)
  10412. m.plotLinesAndBandsGroups[V] = m.plotLinesAndBandsGroups[V].destroy();
  10413. n(m, function(Q, k) {
  10414. m.getKeepProps().indexOf(k) === -1 && delete m[k];
  10415. }), this.eventOptions = Y;
  10416. }, X.prototype.drawCrosshair = function(g, m) {
  10417. var L = this.crosshair, Y = T(L && L.snap, !0), V = this.chart, Q, k = this.cross;
  10418. if (c(this, "drawCrosshair", { e: g, point: m }), g || (g = this.cross && this.cross.e), L && (C(m) || !Y) !== !1) {
  10419. if (Y ? C(m) && (Q = T(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), C(Q)) {
  10420. var G = { value: m && (this.isXAxis ? m.x : T(m.stackY, m.y)), translatedValue: Q };
  10421. V.polar && a(G, { isCrosshair: !0, chartX: g && g.chartX, chartY: g && g.chartY, point: m }), G = this.getPlotLinePath(G) || null;
  10422. }
  10423. if (!C(G)) {
  10424. this.hideCrosshair();
  10425. return;
  10426. }
  10427. Y = this.categories && !this.isRadial, k || (this.cross = k = V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-" + (Y ? "category " : "thin ") + (L.className || "")).attr({ zIndex: T(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": T(L.width, 1) }).css({ "pointer-events": "none" }), L.dashStyle && k.attr({ dashstyle: L.dashStyle }))), k.show().attr({ d: G }), Y && !L.width && k.attr({ "stroke-width": this.transA }), this.cross.e = g;
  10428. } else
  10429. this.hideCrosshair();
  10430. c(this, "afterDrawCrosshair", { e: g, point: m });
  10431. }, X.prototype.hideCrosshair = function() {
  10432. this.cross && this.cross.hide(), c(this, "afterHideCrosshair");
  10433. }, X.prototype.hasVerticalPanning = function() {
  10434. var g = this.chart.options.chart.panning;
  10435. return !!(g && g.enabled && /y/.test(g.type));
  10436. }, X.prototype.validatePositiveValue = function(g) {
  10437. return h(g) && 0 < g;
  10438. }, X.prototype.update = function(g, m) {
  10439. var L = this.chart;
  10440. g = t(this.userOptions, g), this.destroy(!0), this.init(L, g), L.isDirtyBox = !0, T(m, !0) && L.redraw();
  10441. }, X.prototype.remove = function(g) {
  10442. for (var m = this.chart, L = this.coll, Y = this.series, V = Y.length; V--; )
  10443. Y[V] && Y[V].remove(!1);
  10444. w(m.axes, this), w(m[L], this), m[L].forEach(function(Q, k) {
  10445. Q.options.index = Q.userOptions.index = k;
  10446. }), this.destroy(), m.isDirtyBox = !0, T(g, !0) && m.redraw();
  10447. }, X.prototype.setTitle = function(g, m) {
  10448. this.update({ title: g }, m);
  10449. }, X.prototype.setCategories = function(g, m) {
  10450. this.update(
  10451. { categories: g },
  10452. m
  10453. );
  10454. }, X.defaultOptions = j.defaultXAxisOptions, X.keepProps = "extKey hcEvents names series userMax userMin".split(" "), X;
  10455. }(), y;
  10456. }), E(l, "Core/Axis/DateTimeAxis.js", [l["Core/Utilities.js"]], function(y) {
  10457. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.timeUnits, U;
  10458. return function(F) {
  10459. function N() {
  10460. return this.chart.time.getTimeTicks.apply(this.chart.time, arguments);
  10461. }
  10462. function R(d) {
  10463. d.userOptions.type !== "datetime" ? this.dateTime = void 0 : this.dateTime || (this.dateTime = new v(this));
  10464. }
  10465. var S = [];
  10466. F.compose = function(d) {
  10467. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("dateTime"), d.prototype.getTimeTicks = N, j(d, "init", R)), d;
  10468. };
  10469. var v = function() {
  10470. function d(u) {
  10471. this.axis = u;
  10472. }
  10473. return d.prototype.normalizeTimeTickInterval = function(u, A) {
  10474. var O = A || [["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]];
  10475. A = O[O.length - 1];
  10476. var B = H[A[0]], C = A[1], b;
  10477. for (b = 0; b < O.length && (A = O[b], B = H[A[0]], C = A[1], !(O[b + 1] && u <= (B * C[C.length - 1] + H[O[b + 1][0]]) / 2)); b++)
  10478. ;
  10479. return B === H.year && u < 5 * B && (C = [1, 2, 5]), u = Z(u / B, C, A[0] === "year" ? Math.max(I(u / B), 1) : 1), { unitRange: B, count: u, unitName: A[0] };
  10480. }, d.prototype.getXDateFormat = function(u, A) {
  10481. var O = this.axis;
  10482. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, u, O.options.startOfWeek, A) || A.year : A.day;
  10483. }, d;
  10484. }();
  10485. F.Additions = v;
  10486. }(U || (U = {})), U;
  10487. }), E(l, "Core/Axis/LogarithmicAxis.js", [l["Core/Utilities.js"]], function(y) {
  10488. var j = y.addEvent, I = y.getMagnitude, Z = y.normalizeTickInterval, H = y.pick, U;
  10489. return function(F) {
  10490. function N(d) {
  10491. var u = this.logarithmic;
  10492. d.userOptions.type !== "logarithmic" ? this.logarithmic = void 0 : u || (this.logarithmic = new v(this));
  10493. }
  10494. function R() {
  10495. var d = this.logarithmic;
  10496. d && (this.lin2val = function(u) {
  10497. return d.lin2log(u);
  10498. }, this.val2lin = function(u) {
  10499. return d.log2lin(u);
  10500. });
  10501. }
  10502. var S = [];
  10503. F.compose = function(d) {
  10504. return S.indexOf(d) === -1 && (S.push(d), d.keepProps.push("logarithmic"), j(d, "init", N), j(d, "afterInit", R)), d;
  10505. };
  10506. var v = function() {
  10507. function d(u) {
  10508. this.axis = u;
  10509. }
  10510. return d.prototype.getLogTickPositions = function(u, A, O, B) {
  10511. var C = this.axis, b = C.len, w = C.options, x = [];
  10512. if (B || (this.minorAutoInterval = void 0), 0.5 <= u)
  10513. u = Math.round(u), x = C.getLinearTickPositions(u, A, O);
  10514. else if (0.08 <= u) {
  10515. var a = Math.floor(A), c, p = w = void 0;
  10516. for (b = 0.3 < u ? [1, 2, 4] : 0.15 < u ? [1, 2, 4, 6, 8] : [1, 2, 3, 4, 5, 6, 7, 8, 9]; a < O + 1 && !p; a++) {
  10517. var i = b.length;
  10518. for (c = 0; c < i && !p; c++) {
  10519. var h = this.log2lin(this.lin2log(a) * b[c]);
  10520. h > A && (!B || w <= O) && typeof w < "u" && x.push(w), w > O && (p = !0), w = h;
  10521. }
  10522. }
  10523. } else
  10524. A = this.lin2log(A), O = this.lin2log(O), u = B ? C.getMinorTickInterval() : w.tickInterval, u = H(u === "auto" ? null : u, this.minorAutoInterval, w.tickPixelInterval / (B ? 5 : 1) * (O - A) / ((B ? b / C.tickPositions.length : b) || 1)), u = Z(u, void 0, I(u)), x = C.getLinearTickPositions(u, A, O).map(this.log2lin), B || (this.minorAutoInterval = u / 5);
  10525. return B || (C.tickInterval = u), x;
  10526. }, d.prototype.lin2log = function(u) {
  10527. return Math.pow(10, u);
  10528. }, d.prototype.log2lin = function(u) {
  10529. return Math.log(u) / Math.LN10;
  10530. }, d;
  10531. }();
  10532. F.Additions = v;
  10533. }(U || (U = {})), U;
  10534. }), E(l, "Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js", [l["Core/Utilities.js"]], function(y) {
  10535. var j = y.erase, I = y.extend, Z = y.isNumber, H;
  10536. return function(U) {
  10537. var F = [], N;
  10538. U.compose = function(S, v) {
  10539. return N || (N = S), F.indexOf(v) === -1 && (F.push(v), I(v.prototype, R.prototype)), v;
  10540. };
  10541. var R = function() {
  10542. function S() {
  10543. }
  10544. return S.prototype.getPlotBandPath = function(v, d, u) {
  10545. u === void 0 && (u = this.options);
  10546. var A = this.getPlotLinePath({ value: d, force: !0, acrossPanes: u.acrossPanes }), O = [], B = this.horiz;
  10547. if (d = !Z(this.min) || !Z(this.max) || v < this.min && d < this.min || v > this.max && d > this.max, v = this.getPlotLinePath({ value: v, force: !0, acrossPanes: u.acrossPanes }), u = 1, v && A) {
  10548. if (d) {
  10549. var C = v.toString() === A.toString();
  10550. u = 0;
  10551. }
  10552. for (d = 0; d < v.length; d += 2) {
  10553. var b = v[d], w = v[d + 1], x = A[d], a = A[d + 1];
  10554. b[0] !== "M" && b[0] !== "L" || w[0] !== "M" && w[0] !== "L" || x[0] !== "M" && x[0] !== "L" || a[0] !== "M" && a[0] !== "L" || (B && x[1] === b[1] ? (x[1] += u, a[1] += u) : B || x[2] !== b[2] || (x[2] += u, a[2] += u), O.push(["M", b[1], b[2]], ["L", w[1], w[2]], ["L", a[1], a[2]], ["L", x[1], x[2]], ["Z"])), O.isFlat = C;
  10555. }
  10556. }
  10557. return O;
  10558. }, S.prototype.addPlotBand = function(v) {
  10559. return this.addPlotBandOrLine(v, "plotBands");
  10560. }, S.prototype.addPlotLine = function(v) {
  10561. return this.addPlotBandOrLine(
  10562. v,
  10563. "plotLines"
  10564. );
  10565. }, S.prototype.addPlotBandOrLine = function(v, d) {
  10566. var u = this, A = this.userOptions, O = new N(this, v);
  10567. if (this.visible && (O = O.render()), O) {
  10568. if (this._addedPlotLB || (this._addedPlotLB = !0, (A.plotLines || []).concat(A.plotBands || []).forEach(function(C) {
  10569. u.addPlotBandOrLine(C);
  10570. })), d) {
  10571. var B = A[d] || [];
  10572. B.push(v), A[d] = B;
  10573. }
  10574. this.plotLinesAndBands.push(O);
  10575. }
  10576. return O;
  10577. }, S.prototype.removePlotBandOrLine = function(v) {
  10578. var d = this.plotLinesAndBands, u = this.options, A = this.userOptions;
  10579. if (d) {
  10580. for (var O = d.length; O--; )
  10581. d[O].id === v && d[O].destroy();
  10582. [u.plotLines || [], A.plotLines || [], u.plotBands || [], A.plotBands || []].forEach(function(B) {
  10583. for (O = B.length; O--; )
  10584. (B[O] || {}).id === v && j(B, B[O]);
  10585. });
  10586. }
  10587. }, S.prototype.removePlotBand = function(v) {
  10588. this.removePlotBandOrLine(v);
  10589. }, S.prototype.removePlotLine = function(v) {
  10590. this.removePlotBandOrLine(v);
  10591. }, S;
  10592. }();
  10593. }(H || (H = {})), H;
  10594. }), E(l, "Core/Axis/PlotLineOrBand/PlotLineOrBand.js", [l["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"], l["Core/Utilities.js"]], function(y, j) {
  10595. var I = j.arrayMax, Z = j.arrayMin, H = j.defined, U = j.destroyObjectProperties, F = j.erase, N = j.fireEvent, R = j.merge, S = j.objectEach, v = j.pick;
  10596. return j = function() {
  10597. function d(u, A) {
  10598. this.axis = u, A && (this.options = A, this.id = A.id);
  10599. }
  10600. return d.compose = function(u) {
  10601. return y.compose(d, u);
  10602. }, d.prototype.render = function() {
  10603. N(this, "render");
  10604. var u = this, A = u.axis, O = A.horiz, B = A.logarithmic, C = u.options, b = C.color, w = v(C.zIndex, 0), x = C.events, a = {}, c = A.chart.renderer, p = C.label, i = u.label, h = C.to, o = C.from, t = C.value, s = u.svgElem, n = [], T = H(o) && H(h);
  10605. n = H(t);
  10606. var _ = !s, D = { class: "highcharts-plot-" + (T ? "band " : "line ") + (C.className || "") }, W = T ? "bands" : "lines";
  10607. if (B && (o = B.log2lin(o), h = B.log2lin(h), t = B.log2lin(t)), A.chart.styledMode || (n ? (D.stroke = b || "#999999", D["stroke-width"] = v(C.width, 1), C.dashStyle && (D.dashstyle = C.dashStyle)) : T && (D.fill = b || "#e6ebf5", C.borderWidth && (D.stroke = C.borderColor, D["stroke-width"] = C.borderWidth))), a.zIndex = w, W += "-" + w, (B = A.plotLinesAndBandsGroups[W]) || (A.plotLinesAndBandsGroups[W] = B = c.g("plot-" + W).attr(a).add()), _ && (u.svgElem = s = c.path().attr(D).add(B)), n)
  10608. n = A.getPlotLinePath({
  10609. value: t,
  10610. lineWidth: s.strokeWidth(),
  10611. acrossPanes: C.acrossPanes
  10612. });
  10613. else if (T)
  10614. n = A.getPlotBandPath(o, h, C);
  10615. else
  10616. return;
  10617. return !u.eventsAdded && x && (S(x, function(P, X) {
  10618. s.on(X, function(g) {
  10619. x[X].apply(u, [g]);
  10620. });
  10621. }), u.eventsAdded = !0), (_ || !s.d) && n && n.length ? s.attr({ d: n }) : s && (n ? (s.show(!0), s.animate({ d: n })) : s.d && (s.hide(), i && (u.label = i = i.destroy()))), p && (H(p.text) || H(p.formatter)) && n && n.length && 0 < A.width && 0 < A.height && !n.isFlat ? (p = R({ align: O && T && "center", x: O ? !T && 4 : 10, verticalAlign: !O && T && "middle", y: O ? T ? 16 : 10 : T ? 6 : -4, rotation: O && !T && 90 }, p), this.renderLabel(
  10622. p,
  10623. n,
  10624. T,
  10625. w
  10626. )) : i && i.hide(), u;
  10627. }, d.prototype.renderLabel = function(u, A, O, B) {
  10628. var C = this.axis, b = C.chart.renderer, w = this.label;
  10629. w || (this.label = w = b.text(this.getLabelText(u), 0, 0, u.useHTML).attr({ align: u.textAlign || u.align, rotation: u.rotation, class: "highcharts-plot-" + (O ? "band" : "line") + "-label " + (u.className || ""), zIndex: B }).add(), C.chart.styledMode || w.css(R({ textOverflow: "ellipsis" }, u.style))), B = A.xBounds || [A[0][1], A[1][1], O ? A[2][1] : A[0][1]], A = A.yBounds || [A[0][2], A[1][2], O ? A[2][2] : A[0][2]], O = Z(B), b = Z(A), w.align(
  10630. u,
  10631. !1,
  10632. { x: O, y: b, width: I(B) - O, height: I(A) - b }
  10633. ), w.alignValue && w.alignValue !== "left" || w.css({ width: (w.rotation === 90 ? C.height - (w.alignAttr.y - C.top) : C.width - (w.alignAttr.x - C.left)) + "px" }), w.show(!0);
  10634. }, d.prototype.getLabelText = function(u) {
  10635. return H(u.formatter) ? u.formatter.call(this) : u.text;
  10636. }, d.prototype.destroy = function() {
  10637. F(this.axis.plotLinesAndBands, this), delete this.axis, U(this);
  10638. }, d;
  10639. }(), j;
  10640. }), E(l, "Core/Tooltip.js", [
  10641. l["Core/FormatUtilities.js"],
  10642. l["Core/Globals.js"],
  10643. l["Core/Renderer/RendererUtilities.js"],
  10644. l["Core/Renderer/RendererRegistry.js"],
  10645. l["Core/Utilities.js"]
  10646. ], function(y, j, I, Z, H) {
  10647. var U = y.format, F = j.doc, N = I.distribute, R = H.addEvent, S = H.clamp, v = H.css, d = H.defined, u = H.discardElement, A = H.extend, O = H.fireEvent, B = H.isArray, C = H.isNumber, b = H.isString, w = H.merge, x = H.pick, a = H.splat, c = H.syncTimeout;
  10648. return y = function() {
  10649. function p(i, h) {
  10650. 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, h);
  10651. }
  10652. return p.prototype.applyFilter = function() {
  10653. var i = this.chart;
  10654. 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" } }] }] });
  10655. }, p.prototype.bodyFormatter = function(i) {
  10656. return i.map(function(h) {
  10657. var o = h.series.tooltipOptions;
  10658. return (o[(h.point.formatPrefix || "point") + "Formatter"] || h.point.tooltipFormatter).call(h.point, o[(h.point.formatPrefix || "point") + "Format"] || "");
  10659. });
  10660. }, p.prototype.cleanSplit = function(i) {
  10661. this.chart.series.forEach(function(h) {
  10662. var o = h && h.tt;
  10663. o && (!o.isActive || i ? h.tt = o.destroy() : o.isActive = !1);
  10664. });
  10665. }, p.prototype.defaultFormatter = function(i) {
  10666. var h = this.points || a(this), o = [i.tooltipFooterHeaderFormatter(h[0])];
  10667. return o = o.concat(i.bodyFormatter(h)), o.push(i.tooltipFooterHeaderFormatter(
  10668. h[0],
  10669. !0
  10670. )), o;
  10671. }, p.prototype.destroy = function() {
  10672. 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(), u(this.container)), H.clearTimeout(this.hideTimer), H.clearTimeout(this.tooltipTimeout);
  10673. }, p.prototype.getAnchor = function(i, h) {
  10674. var o = this.chart, t = o.pointer, s = o.inverted, n = o.plotTop, T = o.plotLeft, _, D, W = 0, P = 0;
  10675. return i = a(i), this.followPointer && h ? (typeof h.chartX > "u" && (h = t.normalize(h)), t = [h.chartX - T, h.chartY - n]) : i[0].tooltipPos ? t = i[0].tooltipPos : (i.forEach(function(X) {
  10676. _ = X.series.yAxis, D = X.series.xAxis, W += X.plotX || 0, P += X.plotLow ? (X.plotLow + (X.plotHigh || 0)) / 2 : X.plotY || 0, D && _ && (s ? (W += n + o.plotHeight - D.len - D.pos, P += T + o.plotWidth - _.len - _.pos) : (W += D.pos - T, P += _.pos - n));
  10677. }), W /= i.length, P /= i.length, t = [s ? o.plotWidth - P : W, s ? o.plotHeight - W : P], this.shared && 1 < i.length && h && (s ? t[0] = h.chartX - T : t[1] = h.chartY - n)), t.map(Math.round);
  10678. }, p.prototype.getLabel = function() {
  10679. var i = this, h = this.chart.styledMode, o = this.options, t = this.split && this.allowShared, s = "tooltip" + (d(o.className) ? " " + o.className : ""), n = o.style.pointerEvents || (!this.followPointer && o.stickOnContact ? "auto" : "none"), T = function() {
  10680. i.inContact = !0;
  10681. }, _ = function(Y) {
  10682. var V = i.chart.hoverSeries;
  10683. i.inContact = i.shouldStickOnContact() && i.chart.pointer.inClass(Y.relatedTarget, "highcharts-tooltip"), !i.inContact && V && V.onMouseOut && V.onMouseOut();
  10684. }, D, W = this.chart.renderer;
  10685. if (i.label) {
  10686. var P = !i.label.hasClass("highcharts-label");
  10687. (t && !P || !t && P) && i.destroy();
  10688. }
  10689. if (!this.label) {
  10690. if (this.outside) {
  10691. P = this.chart.options.chart.style;
  10692. var X = Z.getRendererType();
  10693. this.container = D = j.doc.createElement("div"), D.className = "highcharts-tooltip-container", v(D, { position: "absolute", top: "1px", pointerEvents: n, zIndex: Math.max(this.options.style.zIndex || 0, (P && P.zIndex || 0) + 3) }), R(D, "mouseenter", T), R(D, "mouseleave", _), j.doc.body.appendChild(D), this.renderer = W = new X(D, 0, 0, P, void 0, void 0, W.styledMode);
  10694. }
  10695. if (t ? this.label = W.g(s) : (this.label = W.label("", 0, 0, o.shape, void 0, void 0, o.useHTML, void 0, s).attr({ padding: o.padding, r: o.borderRadius }), h || this.label.attr({ fill: o.backgroundColor, "stroke-width": o.borderWidth }).css(o.style).css({ pointerEvents: n }).shadow(o.shadow)), h && o.shadow && (this.applyFilter(), this.label.attr({ filter: "url(#drop-shadow-" + this.chart.index + ")" })), i.outside && !i.split) {
  10696. var g = this.label, m = g.xSetter, L = g.ySetter;
  10697. g.xSetter = function(Y) {
  10698. m.call(g, i.distance), D.style.left = Y + "px";
  10699. }, g.ySetter = function(Y) {
  10700. L.call(g, i.distance), D.style.top = Y + "px";
  10701. };
  10702. }
  10703. this.label.on("mouseenter", T).on("mouseleave", _).attr({ zIndex: 8 }).add();
  10704. }
  10705. return this.label;
  10706. }, p.prototype.getPosition = function(i, h, o) {
  10707. var t = this.chart, s = this.distance, n = {}, T = t.inverted && o.h || 0, _ = this.outside, D = _ ? F.documentElement.clientWidth - 2 * s : t.chartWidth, W = _ ? Math.max(F.body.scrollHeight, F.documentElement.scrollHeight, F.body.offsetHeight, F.documentElement.offsetHeight, F.documentElement.clientHeight) : t.chartHeight, P = t.pointer.getChartPosition(), X = function(z) {
  10708. var $ = z === "x";
  10709. return [z, $ ? D : W, $ ? i : h].concat(_ ? [$ ? i * P.scaleX : h * P.scaleY, $ ? P.left - s + (o.plotX + t.plotLeft) * P.scaleX : P.top - s + (o.plotY + t.plotTop) * P.scaleY, 0, $ ? D : W] : [$ ? i : h, $ ? o.plotX + t.plotLeft : o.plotY + t.plotTop, $ ? t.plotLeft : t.plotTop, $ ? t.plotLeft + t.plotWidth : t.plotTop + t.plotHeight]);
  10710. }, g = X("y"), m = X("x"), L;
  10711. X = !!o.negative, !t.polar && t.hoverSeries && t.hoverSeries.yAxis && t.hoverSeries.yAxis.reversed && (X = !X);
  10712. var Y = !this.followPointer && x(o.ttBelow, !t.inverted === X), V = function(z, $, q, it, et, nt, rt) {
  10713. var ct = _ ? z === "y" ? s * P.scaleY : s * P.scaleX : s, gt = (q - it) / 2, dt = it < et - s, ht = et + s + it < $, at = et - ct - q + gt;
  10714. if (et = et + ct - gt, Y && ht)
  10715. n[z] = et;
  10716. else if (!Y && dt)
  10717. n[z] = at;
  10718. else if (dt)
  10719. n[z] = Math.min(rt - it, 0 > at - T ? at : at - T);
  10720. else if (ht)
  10721. n[z] = Math.max(nt, et + T + q > $ ? et : et + T);
  10722. else
  10723. return !1;
  10724. }, Q = function(z, $, q, it, et) {
  10725. var nt;
  10726. return et < s || et > $ - s ? nt = !1 : n[z] = et < q / 2 ? 1 : et > $ - it / 2 ? $ - it - 2 : et - q / 2, nt;
  10727. }, k = function(z) {
  10728. var $ = g;
  10729. g = m, m = $, L = z;
  10730. }, G = function() {
  10731. V.apply(0, g) !== !1 ? Q.apply(0, m) !== !1 || L || (k(!0), G()) : L ? n.x = n.y = 0 : (k(!0), G());
  10732. };
  10733. return (t.inverted || 1 < this.len) && k(), G(), n;
  10734. }, p.prototype.hide = function(i) {
  10735. var h = this;
  10736. H.clearTimeout(this.hideTimer), i = x(i, this.options.hideDelay), this.isHidden || (this.hideTimer = c(function() {
  10737. h.getLabel().fadeOut(i && void 0), h.isHidden = !0;
  10738. }, i));
  10739. }, p.prototype.init = function(i, h) {
  10740. this.chart = i, this.options = h, this.crosshairs = [], this.now = { x: 0, y: 0 }, this.isHidden = !0, this.split = h.split && !i.inverted && !i.polar, this.shared = h.shared || this.split, this.outside = x(h.outside, !(!i.scrollablePixelsX && !i.scrollablePixelsY));
  10741. }, p.prototype.shouldStickOnContact = function() {
  10742. return !(this.followPointer || !this.options.stickOnContact);
  10743. }, p.prototype.isStickyOnContact = function() {
  10744. return !(!this.shouldStickOnContact() || !this.inContact);
  10745. }, p.prototype.move = function(i, h, o, t) {
  10746. var s = this, n = s.now, T = s.options.animation !== !1 && !s.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(h - n.y)), _ = s.followPointer || 1 < s.len;
  10747. A(n, { x: T ? (2 * n.x + i) / 3 : i, y: T ? (n.y + h) / 2 : h, anchorX: _ ? void 0 : T ? (2 * n.anchorX + o) / 3 : o, anchorY: _ ? void 0 : T ? (n.anchorY + t) / 2 : t }), s.getLabel().attr(n), s.drawTracker(), T && (H.clearTimeout(this.tooltipTimeout), this.tooltipTimeout = setTimeout(function() {
  10748. s && s.move(i, h, o, t);
  10749. }, 32));
  10750. }, p.prototype.refresh = function(i, h) {
  10751. var o = this.chart, t = this.options, s = a(i), n = s[0], T = [], _ = t.formatter || this.defaultFormatter, D = this.shared, W = o.styledMode, P = {};
  10752. if (t.enabled) {
  10753. H.clearTimeout(this.hideTimer), this.allowShared = !(!B(i) && i.series && i.series.noSharedTooltip), this.followPointer = !this.split && n.series.tooltipOptions.followPointer, i = this.getAnchor(i, h);
  10754. var X = i[0], g = i[1];
  10755. if (D && this.allowShared ? (o.pointer.applyInactiveState(s), s.forEach(function(Y) {
  10756. Y.setState("hover"), T.push(Y.getLabelConfig());
  10757. }), P = { x: n.category, y: n.y }, P.points = T) : P = n.getLabelConfig(), this.len = T.length, _ = _.call(P, this), D = n.series, this.distance = x(
  10758. D.tooltipOptions.distance,
  10759. 16
  10760. ), _ === !1)
  10761. this.hide();
  10762. else {
  10763. if (this.split && this.allowShared)
  10764. this.renderSplit(_, s);
  10765. else {
  10766. var m = X, L = g;
  10767. if (h && o.pointer.isDirectTouch && (m = h.chartX - o.plotLeft, L = h.chartY - o.plotTop), o.polar || D.options.clip === !1 || s.some(function(Y) {
  10768. return Y.series.shouldShowTooltip(m, L);
  10769. }))
  10770. h = this.getLabel(), t.style.width && !W || h.css({ width: this.chart.spacingBox.width + "px" }), h.attr({ text: _ && _.join ? _.join("") : _ }), h.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-" + x(n.colorIndex, D.colorIndex)), W || h.attr({ stroke: t.borderColor || n.color || D.color || "#666666" }), this.updatePosition({ plotX: X, plotY: g, negative: n.negative, ttBelow: n.ttBelow, h: i[2] || 0 });
  10771. else {
  10772. this.hide();
  10773. return;
  10774. }
  10775. }
  10776. this.isHidden && this.label && this.label.attr({ opacity: 1 }).show(), this.isHidden = !1;
  10777. }
  10778. O(this, "refresh");
  10779. }
  10780. }, p.prototype.renderSplit = function(i, h) {
  10781. function o(ht, at, J, tt, ot) {
  10782. return ot === void 0 && (ot = !0), J ? (at = it ? 0 : ct, ht = S(ht - tt / 2, z.left, z.right - tt - (t.outside ? et : 0))) : (at -= nt, ht = ot ? ht - tt - Q : ht + Q, ht = S(ht, ot ? ht : z.left, z.right)), { x: ht, y: at };
  10783. }
  10784. var t = this, s = t.chart, n = t.chart, T = n.chartWidth, _ = n.chartHeight, D = n.plotHeight, W = n.plotLeft, P = n.plotTop, X = n.pointer, g = n.scrollablePixelsY;
  10785. g = g === void 0 ? 0 : g;
  10786. var m = n.scrollablePixelsX, L = n.scrollingContainer;
  10787. L = L === void 0 ? { scrollLeft: 0, scrollTop: 0 } : L;
  10788. var Y = L.scrollLeft;
  10789. L = L.scrollTop;
  10790. var V = n.styledMode, Q = t.distance, k = t.options, G = t.options.positioner, z = t.outside && typeof m != "number" ? F.documentElement.getBoundingClientRect() : { left: Y, right: Y + T, top: L, bottom: L + _ }, $ = t.getLabel(), q = this.renderer || s.renderer, it = !(!s.xAxis[0] || !s.xAxis[0].opposite);
  10791. s = X.getChartPosition();
  10792. var et = s.left;
  10793. s = s.top;
  10794. var nt = P + L, rt = 0, ct = D - g;
  10795. b(i) && (i = [!1, i]), i = i.slice(0, h.length + 1).reduce(function(ht, at, J) {
  10796. if (at !== !1 && at !== "") {
  10797. J = h[J - 1] || { isHeader: !0, plotX: h[0].plotX, plotY: D, series: {} };
  10798. var tt = J.isHeader, ot = tt ? t : J.series;
  10799. at = at.toString();
  10800. var lt = ot.tt, pt = J.isHeader, yt = J.series, vt = "highcharts-color-" + x(J.colorIndex, yt.colorIndex, "none");
  10801. if (lt || (lt = { padding: k.padding, r: k.borderRadius }, V || (lt.fill = k.backgroundColor, lt["stroke-width"] = k.borderWidth), lt = q.label("", 0, 0, k[pt ? "headerShape" : "shape"], void 0, void 0, k.useHTML).addClass((pt ? "highcharts-tooltip-header " : "") + "highcharts-tooltip-box " + vt).attr(lt).add($)), lt.isActive = !0, lt.attr({ text: at }), V || lt.css(k.style).shadow(k.shadow).attr({ stroke: k.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) {
  10802. yt = W + yt;
  10803. var Ct = P + D / 2;
  10804. } else {
  10805. var Pt = lt.xAxis, At = lt.yAxis;
  10806. yt = Pt.pos + S(yt, -Q, Pt.len + Q), lt.shouldShowTooltip(0, At.pos - P + vt, { ignoreX: !0 }) && (Ct = At.pos + vt);
  10807. }
  10808. yt = S(
  10809. yt,
  10810. z.left - Q,
  10811. z.right + Q
  10812. ), typeof Ct == "number" ? (pt = pt.height + 1, vt = G ? G.call(t, at, pt, J) : o(yt, Ct, tt, at), ht.push({ align: G ? 0 : void 0, anchorX: yt, anchorY: Ct, boxWidth: at, point: J, rank: x(vt.rank, tt ? 1 : 0), size: pt, target: vt.y, tt: ot, x: vt.x })) : ot.isActive = !1;
  10813. }
  10814. return ht;
  10815. }, []), !G && i.some(function(ht) {
  10816. var at = (t.outside ? et : 0) + ht.anchorX;
  10817. return at < z.left && at + ht.boxWidth < z.right ? !0 : at < et - z.left + ht.boxWidth && z.right - at > at;
  10818. }) && (i = i.map(function(ht) {
  10819. var at = o(ht.anchorX, ht.anchorY, ht.point.isHeader, ht.boxWidth, !1);
  10820. return A(ht, { target: at.y, x: at.x });
  10821. })), t.cleanSplit(), N(i, ct);
  10822. var gt = et, dt = et;
  10823. i.forEach(function(ht) {
  10824. var at = ht.x, J = ht.boxWidth;
  10825. ht = ht.isHeader, ht || (t.outside && et + at < gt && (gt = et + at), !ht && t.outside && gt + J > dt && (dt = et + at));
  10826. }), i.forEach(function(ht) {
  10827. var at = ht.x, J = ht.anchorX, tt = ht.pos, ot = ht.point.isHeader;
  10828. if (tt = { visibility: typeof tt > "u" ? "hidden" : "inherit", x: at, y: tt + nt, anchorX: J, anchorY: ht.anchorY }, t.outside && at < J) {
  10829. var lt = et - gt;
  10830. 0 < lt && (ot || (tt.x = at + lt, tt.anchorX = J + lt), ot && (tt.x = (dt - gt) / 2, tt.anchorX = J + lt));
  10831. }
  10832. ht.tt.attr(tt);
  10833. }), i = t.container, g = t.renderer, t.outside && i && g && (n = $.getBBox(), g.setSize(n.width + n.x, n.height + n.y, !1), i.style.left = gt + "px", i.style.top = s + "px");
  10834. }, p.prototype.drawTracker = function() {
  10835. if (this.followPointer || !this.options.stickOnContact)
  10836. this.tracker && this.tracker.destroy();
  10837. else {
  10838. var i = this.chart, h = this.label, o = this.shared ? i.hoverPoints : i.hoverPoint;
  10839. if (h && o) {
  10840. var t = { x: 0, y: 0, width: 0, height: 0 };
  10841. o = this.getAnchor(o);
  10842. var s = h.getBBox();
  10843. o[0] += i.plotLeft - h.translateX, o[1] += i.plotTop - h.translateY, t.x = Math.min(0, o[0]), t.y = Math.min(0, o[1]), t.width = 0 > o[0] ? Math.max(Math.abs(o[0]), s.width - o[0]) : Math.max(
  10844. Math.abs(o[0]),
  10845. s.width
  10846. ), t.height = 0 > o[1] ? Math.max(Math.abs(o[1]), s.height - Math.abs(o[1])) : Math.max(Math.abs(o[1]), s.height), this.tracker ? this.tracker.attr(t) : (this.tracker = h.renderer.rect(t).addClass("highcharts-tracker").add(h), i.styledMode || this.tracker.attr({ fill: "rgba(0,0,0,0)" }));
  10847. }
  10848. }
  10849. }, p.prototype.styledModeFormat = function(i) {
  10850. return i.replace('style="font-size: 10px"', 'class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g, 'class="highcharts-color-{$1.colorIndex}"');
  10851. }, p.prototype.tooltipFooterHeaderFormatter = function(i, h) {
  10852. var o = i.series, t = o.tooltipOptions, s = o.xAxis, n = s && s.dateTime;
  10853. s = { isFooter: h, labelConfig: i };
  10854. var T = t.xDateFormat, _ = t[h ? "footerFormat" : "headerFormat"];
  10855. return O(this, "headerFormatter", s, function(D) {
  10856. n && !T && C(i.key) && (T = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && T && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  10857. _ = _.replace("{point." + W + "}", "{point." + W + ":" + T + "}");
  10858. }), o.chart.styledMode && (_ = this.styledModeFormat(_)), D.text = U(_, { point: i, series: o }, this.chart);
  10859. }), s.text;
  10860. }, p.prototype.update = function(i) {
  10861. this.destroy(), w(!0, this.chart.options.tooltip.userOptions, i), this.init(this.chart, w(!0, this.options, i));
  10862. }, p.prototype.updatePosition = function(i) {
  10863. var h = this.chart, o = this.options, t = h.pointer, s = this.getLabel();
  10864. t = t.getChartPosition();
  10865. var n = (o.positioner || this.getPosition).call(this, s.width, s.height, i), T = i.plotX + h.plotLeft;
  10866. i = i.plotY + h.plotTop, this.outside && (o = o.borderWidth + 2 * this.distance, this.renderer.setSize(s.width + o, s.height + o, !1), (t.scaleX !== 1 || t.scaleY !== 1) && (v(this.container, { transform: "scale(" + t.scaleX + ", " + t.scaleY + ")" }), T *= t.scaleX, i *= t.scaleY), T += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), T, i);
  10867. }, p;
  10868. }(), y;
  10869. }), E(l, "Core/Series/Point.js", [l["Core/Renderer/HTML/AST.js"], l["Core/Animation/AnimationUtilities.js"], l["Core/DefaultOptions.js"], l["Core/FormatUtilities.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H) {
  10870. var U = j.animObject, F = I.defaultOptions, N = Z.format, R = H.addEvent, S = H.defined, v = H.erase, d = H.extend, u = H.fireEvent, A = H.getNestedProperty, O = H.isArray, B = H.isFunction, C = H.isNumber, b = H.isObject, w = H.merge, x = H.objectEach, a = H.pick, c = H.syncTimeout, p = H.removeEvent, i = H.uniqueKey;
  10871. return j = function() {
  10872. function h() {
  10873. 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;
  10874. }
  10875. return h.prototype.animateBeforeDestroy = function() {
  10876. var o = this, t = { x: o.startXPos, opacity: 0 }, s = o.getGraphicalProps();
  10877. s.singular.forEach(function(n) {
  10878. o[n] = o[n].animate(n === "dataLabel" ? { x: o[n].startXPos, y: o[n].startYPos, opacity: 0 } : t);
  10879. }), s.plural.forEach(function(n) {
  10880. o[n].forEach(function(T) {
  10881. T.element && T.animate(d({ x: o.startXPos }, T.startYPos ? { x: T.startXPos, y: T.startYPos } : {}));
  10882. });
  10883. });
  10884. }, h.prototype.applyOptions = function(o, t) {
  10885. var s = this.series, n = s.options.pointValKey || s.pointValKey;
  10886. return o = h.prototype.optionsToObject.call(this, o), d(this, o), this.options = this.options ? d(this.options, o) : o, o.group && delete this.group, o.dataLabels && delete this.dataLabels, n && (this.y = h.prototype.getNestedProperty.call(
  10887. this,
  10888. n
  10889. )), this.formatPrefix = (this.isNull = a(this.isValid && !this.isValid(), this.x === null || !C(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 : C(o.x) && s.options.relativeXValue && (this.x = s.autoIncrement(o.x)), this;
  10890. }, h.prototype.destroy = function() {
  10891. function o() {
  10892. (t.graphic || t.dataLabel || t.dataLabels) && (p(t), t.destroyElements());
  10893. for (D in t)
  10894. t[D] = null;
  10895. }
  10896. var t = this, s = t.series, n = s.chart;
  10897. s = s.options.dataSorting;
  10898. var T = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  10899. t.legendItem && n.legend.destroyItem(t), T && (t.setState(), v(T, t), T.length || (n.hoverPoints = null)), t === n.hoverPoint && t.onMouseOut(), s && s.enabled ? (this.animateBeforeDestroy(), c(o, _.duration)) : o(), n.pointCount--;
  10900. }, h.prototype.destroyElements = function(o) {
  10901. var t = this;
  10902. o = t.getGraphicalProps(o), o.singular.forEach(function(s) {
  10903. t[s] = t[s].destroy();
  10904. }), o.plural.forEach(function(s) {
  10905. t[s].forEach(function(n) {
  10906. n.element && n.destroy();
  10907. }), delete t[s];
  10908. });
  10909. }, h.prototype.firePointEvent = function(o, t, s) {
  10910. var n = this, T = this.series.options;
  10911. (T.point.events[o] || n.options && n.options.events && n.options.events[o]) && n.importEvents(), o === "click" && T.allowPointSelect && (s = function(_) {
  10912. n.select && n.select(null, _.ctrlKey || _.metaKey || _.shiftKey);
  10913. }), u(n, o, t, s);
  10914. }, h.prototype.getClassName = function() {
  10915. 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", "") : "");
  10916. }, h.prototype.getGraphicalProps = function(o) {
  10917. var t = this, s = [], n = { singular: [], plural: [] }, T;
  10918. for (o = o || { graphic: 1, dataLabel: 1 }, o.graphic && s.push("graphic", "upperGraphic", "shadowGroup"), o.dataLabel && s.push("dataLabel", "dataLabelUpper", "connector"), T = s.length; T--; ) {
  10919. var _ = s[T];
  10920. t[_] && n.singular.push(_);
  10921. }
  10922. return ["dataLabel", "connector"].forEach(function(D) {
  10923. var W = D + "s";
  10924. o[D] && t[W] && n.plural.push(W);
  10925. }), n;
  10926. }, h.prototype.getLabelConfig = function() {
  10927. 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 };
  10928. }, h.prototype.getNestedProperty = function(o) {
  10929. if (o)
  10930. return o.indexOf("custom.") === 0 ? A(o, this.options) : this[o];
  10931. }, h.prototype.getZone = function() {
  10932. var o = this.series, t = o.zones;
  10933. o = o.zoneAxis || "y";
  10934. var s, n = 0;
  10935. for (s = t[n]; this[o] >= s.value; )
  10936. s = t[++n];
  10937. return this.nonZonedColor || (this.nonZonedColor = this.color), this.color = s && s.color && !this.options.color ? s.color : this.nonZonedColor, s;
  10938. }, h.prototype.hasNewShapeType = function() {
  10939. return (this.graphic && (this.graphic.symbolName || this.graphic.element.nodeName)) !== this.shapeType;
  10940. }, h.prototype.init = function(o, t, s) {
  10941. return this.series = o, this.applyOptions(t, s), this.id = S(this.id) ? this.id : i(), this.resolveColor(), o.chart.pointCount++, u(this, "afterInit"), this;
  10942. }, h.prototype.optionsToObject = function(o) {
  10943. var t = this.series, s = t.options.keys, n = s || t.pointArrayMap || ["y"], T = n.length, _ = {}, D = 0, W = 0;
  10944. if (C(o) || o === null)
  10945. _[n[0]] = o;
  10946. else if (O(o))
  10947. for (!s && o.length > T && (t = typeof o[0], t === "string" ? _.name = o[0] : t === "number" && (_.x = o[0]), D++); W < T; )
  10948. s && typeof o[D] > "u" || (0 < n[W].indexOf(".") ? h.prototype.setNestedProperty(_, o[D], n[W]) : _[n[W]] = o[D]), D++, W++;
  10949. else
  10950. typeof o == "object" && (_ = o, o.dataLabels && (t._hasPointLabels = !0), o.marker && (t._hasPointMarkers = !0));
  10951. return _;
  10952. }, h.prototype.resolveColor = function() {
  10953. var o = this.series, t = o.chart.styledMode, s = o.chart.options.chart.colorCount;
  10954. if (delete this.nonZonedColor, o.options.colorByPoint) {
  10955. if (!t) {
  10956. s = o.options.colors || o.chart.options.colors;
  10957. var n = s[o.colorCounter];
  10958. s = s.length;
  10959. }
  10960. t = o.colorCounter, o.colorCounter++, o.colorCounter === s && (o.colorCounter = 0);
  10961. } else
  10962. t || (n = o.color), t = o.colorIndex;
  10963. this.colorIndex = a(this.options.colorIndex, t), this.color = a(this.options.color, n);
  10964. }, h.prototype.setNestedProperty = function(o, t, s) {
  10965. return s.split(".").reduce(function(n, T, _, D) {
  10966. return n[T] = D.length - 1 === _ ? t : b(n[T], !0) ? n[T] : {}, n[T];
  10967. }, o), o;
  10968. }, h.prototype.tooltipFormatter = function(o) {
  10969. var t = this.series, s = t.tooltipOptions, n = a(s.valueDecimals, ""), T = s.valuePrefix || "", _ = s.valueSuffix || "";
  10970. return t.chart.styledMode && (o = t.chart.tooltip.styledModeFormat(o)), (t.pointArrayMap || ["y"]).forEach(function(D) {
  10971. D = "{point." + D, (T || _) && (o = o.replace(RegExp(D + "}", "g"), T + D + "}" + _)), o = o.replace(RegExp(D + "}", "g"), D + ":,." + n + "f}");
  10972. }), N(o, { point: this, series: this.series }, t.chart);
  10973. }, h.prototype.update = function(o, t, s, n) {
  10974. function T() {
  10975. _.applyOptions(o);
  10976. var m = W && _.hasDummyGraphic;
  10977. m = _.y === null ? !m : m, W && m && (_.graphic = W.destroy(), delete _.hasDummyGraphic), b(o, !0) && (W && W.element && o && o.marker && typeof o.marker.symbol < "u" && (_.graphic = W.destroy()), o && o.dataLabels && _.dataLabel && (_.dataLabel = _.dataLabel.destroy()), _.connector && (_.connector = _.connector.destroy())), g = _.index, D.updateParallelArrays(_, g), X.data[g] = b(X.data[g], !0) || b(o, !0) ? _.options : a(o, X.data[g]), D.isDirty = D.isDirtyData = !0, !D.fixedBox && D.hasCartesianSeries && (P.isDirtyBox = !0), X.legendType === "point" && (P.isDirtyLegend = !0), t && P.redraw(s);
  10978. }
  10979. var _ = this, D = _.series, W = _.graphic, P = D.chart, X = D.options, g;
  10980. t = a(t, !0), n === !1 ? T() : _.firePointEvent("update", { options: o }, T);
  10981. }, h.prototype.remove = function(o, t) {
  10982. this.series.removePoint(this.series.data.indexOf(this), o, t);
  10983. }, h.prototype.select = function(o, t) {
  10984. var s = this, n = s.series, T = n.chart;
  10985. this.selectedStaging = o = a(o, !s.selected), s.firePointEvent(o ? "select" : "unselect", { accumulate: t }, function() {
  10986. s.selected = s.options.selected = o, n.options.data[n.data.indexOf(s)] = s.options, s.setState(o && "select"), t || T.getSelectedPoints().forEach(function(_) {
  10987. var D = _.series;
  10988. _.selected && _ !== s && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(T.hoverPoints && D.options.inactiveOtherPoints ? "inactive" : ""), _.firePointEvent("unselect"));
  10989. });
  10990. }), delete this.selectedStaging;
  10991. }, h.prototype.onMouseOver = function(o) {
  10992. var t = this.series.chart, s = t.pointer;
  10993. o = o ? s.normalize(o) : s.getChartCoordinatesFromPoint(this, t.inverted), s.runPointActions(
  10994. o,
  10995. this
  10996. );
  10997. }, h.prototype.onMouseOut = function() {
  10998. var o = this.series.chart;
  10999. this.firePointEvent("mouseOut"), this.series.options.inactiveOtherPoints || (o.hoverPoints || []).forEach(function(t) {
  11000. t.setState();
  11001. }), o.hoverPoints = o.hoverPoint = null;
  11002. }, h.prototype.importEvents = function() {
  11003. if (!this.hasImportedEvents) {
  11004. var o = this, t = w(o.series.options.point, o.options).events;
  11005. o.events = t, x(t, function(s, n) {
  11006. B(s) && R(o, n, s);
  11007. }), this.hasImportedEvents = !0;
  11008. }
  11009. }, h.prototype.setState = function(o, t) {
  11010. var s = this.series, n = this.state, T = s.options.states[o || "normal"] || {}, _ = F.plotOptions[s.type].marker && s.options.marker, D = _ && _.enabled === !1, W = _ && _.states && _.states[o || "normal"] || {}, P = W.enabled === !1, X = this.marker || {}, g = s.chart, m = _ && s.markerAttribs, L = s.halo, Y, V = s.stateMarkerGraphic;
  11011. if (o = o || "", !(o === this.state && !t || this.selected && o !== "select" || T.enabled === !1 || o && (P || D && W.enabled === !1) || o && X.states && X.states[o] && X.states[o].enabled === !1)) {
  11012. if (this.state = o, m && (Y = s.markerAttribs(this, o)), this.graphic && !this.hasDummyGraphic) {
  11013. if (n && this.graphic.removeClass("highcharts-point-" + n), o && this.graphic.addClass("highcharts-point-" + o), !g.styledMode) {
  11014. var Q = s.pointAttribs(this, o), k = a(g.options.chart.animation, T.animation);
  11015. s.options.inactiveOtherPoints && C(Q.opacity) && ((this.dataLabels || []).forEach(function(G) {
  11016. G && G.animate({ opacity: Q.opacity }, k);
  11017. }), this.connector && this.connector.animate({ opacity: Q.opacity }, k)), this.graphic.animate(Q, k);
  11018. }
  11019. Y && this.graphic.animate(Y, a(g.options.chart.animation, W.animation, _.animation)), V && V.hide();
  11020. } else
  11021. o && W && (n = X.symbol || s.symbol, V && V.currentSymbol !== n && (V = V.destroy()), Y && (V ? V[t ? "animate" : "attr"]({ x: Y.x, y: Y.y }) : n && (s.stateMarkerGraphic = V = g.renderer.symbol(n, Y.x, Y.y, Y.width, Y.height).add(s.markerGroup), V.currentSymbol = n)), !g.styledMode && V && this.state !== "inactive" && V.attr(s.pointAttribs(this, o))), V && (V[o && this.isInside ? "show" : "hide"](), V.element.point = this, V.addClass(this.getClassName(), !0));
  11022. T = T.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", T && T.size && V && Y !== "hidden" && !this.isCluster ? (L || (s.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(T.size) }), L.attr({ class: "highcharts-halo highcharts-color-" + a(this.colorIndex, s.colorIndex) + (this.className ? " " + this.className : ""), visibility: Y, zIndex: -1 }), L.point = this, g.styledMode || L.attr(d({ fill: this.color || s.color, "fill-opacity": T.opacity }, y.filterUserAttributes(T.attributes || {})))) : L && L.point && L.point.haloPath && L.animate({ d: L.point.haloPath(0) }, null, L.hide), u(this, "afterSetState", { state: o });
  11023. }
  11024. }, h.prototype.haloPath = function(o) {
  11025. return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX) - o, this.plotY - o, 2 * o, 2 * o);
  11026. }, h;
  11027. }(), j;
  11028. }), E(l, "Core/Pointer.js", [l["Core/Color/Color.js"], l["Core/Globals.js"], l["Core/Tooltip.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  11029. var H = y.parse, U = j.charts, F = j.noop, N = Z.addEvent, R = Z.attr, S = Z.css, v = Z.defined, d = Z.extend, u = Z.find, A = Z.fireEvent, O = Z.isNumber, B = Z.isObject, C = Z.objectEach, b = Z.offset, w = Z.pick, x = Z.splat;
  11030. return y = function() {
  11031. function a(c, p) {
  11032. this.lastValidTouch = {}, this.pinchDown = [], this.runChartClick = !1, this.eventsToUnbind = [], this.chart = c, this.hasDragged = !1, this.options = p, this.init(c, p);
  11033. }
  11034. return a.prototype.applyInactiveState = function(c) {
  11035. var p = [], i;
  11036. (c || []).forEach(function(h) {
  11037. i = h.series, p.push(i), i.linkedParent && p.push(i.linkedParent), i.linkedSeries && (p = p.concat(i.linkedSeries)), i.navigatorSeries && p.push(i.navigatorSeries);
  11038. }), this.chart.series.forEach(function(h) {
  11039. p.indexOf(h) === -1 ? h.setState("inactive", !0) : h.options.inactiveOtherPoints && h.setAllPointsToState("inactive");
  11040. });
  11041. }, a.prototype.destroy = function() {
  11042. var c = this;
  11043. this.eventsToUnbind.forEach(function(p) {
  11044. return p();
  11045. }), this.eventsToUnbind = [], j.chartCount || (a.unbindDocumentMouseUp && (a.unbindDocumentMouseUp = a.unbindDocumentMouseUp()), a.unbindDocumentTouchEnd && (a.unbindDocumentTouchEnd = a.unbindDocumentTouchEnd())), clearInterval(c.tooltipTimeout), C(c, function(p, i) {
  11046. c[i] = void 0;
  11047. });
  11048. }, a.prototype.drag = function(c) {
  11049. var p = this.chart, i = p.options.chart, h = this.zoomHor, o = this.zoomVert, t = p.plotLeft, s = p.plotTop, n = p.plotWidth, T = p.plotHeight, _ = this.mouseDownX || 0, D = this.mouseDownY || 0, W = B(i.panning) ? i.panning && i.panning.enabled : i.panning, P = i.panKey && c[i.panKey + "Key"], X = c.chartX, g = c.chartY, m = this.selectionMarker;
  11050. if ((!m || !m.touch) && (X < t ? X = t : X > t + n && (X = t + n), g < s ? g = s : g > s + T && (g = s + T), this.hasDragged = Math.sqrt(Math.pow(_ - X, 2) + Math.pow(D - g, 2)), 10 < this.hasDragged)) {
  11051. var L = p.isInsidePlot(_ - t, D - s, { visiblePlotOnly: !0 });
  11052. !p.hasCartesianSeries && !p.mapView || !this.zoomX && !this.zoomY || !L || P || m || (this.selectionMarker = m = p.renderer.rect(t, s, h ? 1 : n, o ? 1 : T, 0).attr({ class: "highcharts-selection-marker", zIndex: 7 }).add(), p.styledMode || m.attr({ fill: i.selectionMarkerFill || H("#335cad").setOpacity(0.25).get() })), m && h && (h = X - _, m.attr({ width: Math.abs(h), x: (0 < h ? 0 : h) + _ })), m && o && (h = g - D, m.attr({ height: Math.abs(h), y: (0 < h ? 0 : h) + D })), L && !m && W && p.pan(c, i.panning);
  11053. }
  11054. }, a.prototype.dragStart = function(c) {
  11055. var p = this.chart;
  11056. p.mouseIsDown = c.type, p.cancelClick = !1, p.mouseDownX = this.mouseDownX = c.chartX, p.mouseDownY = this.mouseDownY = c.chartY;
  11057. }, a.prototype.drop = function(c) {
  11058. var p = this, i = this.chart, h = this.hasPinched;
  11059. if (this.selectionMarker) {
  11060. var o = this.selectionMarker, t = o.attr ? o.attr("x") : o.x, s = o.attr ? o.attr("y") : o.y, n = o.attr ? o.attr("width") : o.width, T = o.attr ? o.attr("height") : o.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: s, width: n, height: T }, D = !!i.mapView;
  11061. (this.hasDragged || h) && (i.axes.forEach(function(W) {
  11062. if (W.zoomEnabled && v(W.min) && (h || p[{ xAxis: "zoomX", yAxis: "zoomY" }[W.coll]]) && O(t) && O(s)) {
  11063. var P = W.horiz, X = c.type === "touchend" ? W.minPixelPadding : 0, g = W.toValue((P ? t : s) + X);
  11064. P = W.toValue((P ? t + n : s + T) - X), _[W.coll].push({ axis: W, min: Math.min(g, P), max: Math.max(g, P) }), D = !0;
  11065. }
  11066. }), D && A(i, "selection", _, function(W) {
  11067. i.zoom(d(
  11068. W,
  11069. h ? { animation: !1 } : null
  11070. ));
  11071. })), O(i.index) && (this.selectionMarker = this.selectionMarker.destroy()), h && this.scaleGroups();
  11072. }
  11073. i && O(i.index) && (S(i.container, { cursor: i._cursor }), i.cancelClick = 10 < this.hasDragged, i.mouseIsDown = this.hasDragged = this.hasPinched = !1, this.pinchDown = []);
  11074. }, a.prototype.findNearestKDPoint = function(c, p, i) {
  11075. var h = this.chart, o = h.hoverPoint;
  11076. if (h = h.tooltip, o && h && h.isStickyOnContact())
  11077. return o;
  11078. var t;
  11079. return c.forEach(function(s) {
  11080. var n = !(s.noSharedTooltip && p) && 0 > s.options.findNearestPointBy.indexOf("y");
  11081. if (s = s.searchPoint(i, n), (n = B(s, !0) && s.series) && !(n = !B(t, !0))) {
  11082. n = t.distX - s.distX;
  11083. var T = t.dist - s.dist, _ = (s.series.group && s.series.group.zIndex) - (t.series.group && t.series.group.zIndex);
  11084. n = 0 < (n !== 0 && p ? n : T !== 0 ? T : _ !== 0 ? _ : t.series.index > s.series.index ? -1 : 1);
  11085. }
  11086. n && (t = s);
  11087. }), t;
  11088. }, a.prototype.getChartCoordinatesFromPoint = function(c, p) {
  11089. var i = c.series, h = i.xAxis;
  11090. i = i.yAxis;
  11091. var o = c.shapeArgs;
  11092. if (h && i) {
  11093. var t = w(c.clientX, c.plotX), s = c.plotY || 0;
  11094. return c.isNode && o && O(o.x) && O(o.y) && (t = o.x, s = o.y), p ? { chartX: i.len + i.pos - s, chartY: h.len + h.pos - t } : { chartX: t + h.pos, chartY: s + i.pos };
  11095. }
  11096. if (o && o.x && o.y)
  11097. return { chartX: o.x, chartY: o.y };
  11098. }, a.prototype.getChartPosition = function() {
  11099. if (this.chartPosition)
  11100. return this.chartPosition;
  11101. var c = this.chart.container, p = b(c);
  11102. this.chartPosition = { left: p.left, top: p.top, scaleX: 1, scaleY: 1 };
  11103. var i = c.offsetWidth;
  11104. return c = c.offsetHeight, 2 < i && 2 < c && (this.chartPosition.scaleX = p.width / i, this.chartPosition.scaleY = p.height / c), this.chartPosition;
  11105. }, a.prototype.getCoordinates = function(c) {
  11106. var p = { xAxis: [], yAxis: [] };
  11107. return this.chart.axes.forEach(function(i) {
  11108. p[i.isXAxis ? "xAxis" : "yAxis"].push({ axis: i, value: i.toValue(c[i.horiz ? "chartX" : "chartY"]) });
  11109. }), p;
  11110. }, a.prototype.getHoverData = function(c, p, i, h, o, t) {
  11111. var s = [];
  11112. h = !(!h || !c);
  11113. var n = { chartX: t ? t.chartX : void 0, chartY: t ? t.chartY : void 0, shared: o };
  11114. A(this, "beforeGetHoverData", n);
  11115. var T = p && !p.stickyTracking ? [p] : i.filter(function(D) {
  11116. return n.filter ? n.filter(D) : D.visible && !(!o && D.directTouch) && w(D.options.enableMouseTracking, !0) && D.stickyTracking;
  11117. }), _ = h || !t ? c : this.findNearestKDPoint(T, o, t);
  11118. return p = _ && _.series, _ && (o && !p.noSharedTooltip ? (T = i.filter(function(D) {
  11119. return n.filter ? n.filter(D) : D.visible && !(!o && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  11120. }), T.forEach(function(D) {
  11121. var W = u(D.points, function(P) {
  11122. return P.x === _.x && !P.isNull;
  11123. });
  11124. B(W) && (D.chart.isBoosting && (W = D.getPoint(W)), s.push(W));
  11125. })) : s.push(_)), n = { hoverPoint: _ }, A(this, "afterGetHoverData", n), { hoverPoint: n.hoverPoint, hoverSeries: p, hoverPoints: s };
  11126. }, a.prototype.getPointFromEvent = function(c) {
  11127. c = c.target;
  11128. for (var p; c && !p; )
  11129. p = c.point, c = c.parentNode;
  11130. return p;
  11131. }, a.prototype.onTrackerMouseOut = function(c) {
  11132. c = c.relatedTarget || c.toElement;
  11133. var p = this.chart.hoverSeries;
  11134. this.isDirectTouch = !1, !p || !c || p.stickyTracking || this.inClass(c, "highcharts-tooltip") || this.inClass(c, "highcharts-series-" + p.index) && this.inClass(c, "highcharts-tracker") || p.onMouseOut();
  11135. }, a.prototype.inClass = function(c, p) {
  11136. for (var i; c; ) {
  11137. if (i = R(c, "class")) {
  11138. if (i.indexOf(p) !== -1)
  11139. return !0;
  11140. if (i.indexOf("highcharts-container") !== -1)
  11141. return !1;
  11142. }
  11143. c = c.parentNode;
  11144. }
  11145. }, a.prototype.init = function(c, p) {
  11146. this.options = p, this.chart = c, this.runChartClick = !(!p.chart.events || !p.chart.events.click), this.pinchDown = [], this.lastValidTouch = {}, I && (c.tooltip = new I(c, p.tooltip), this.followTouchMove = w(p.tooltip.followTouchMove, !0)), this.setDOMEvents();
  11147. }, a.prototype.normalize = function(c, p) {
  11148. var i = c.touches, h = i ? i.length ? i.item(0) : w(i.changedTouches, c.changedTouches)[0] : c;
  11149. return p || (p = this.getChartPosition()), i = h.pageX - p.left, h = h.pageY - p.top, i /= p.scaleX, h /= p.scaleY, d(c, { chartX: Math.round(i), chartY: Math.round(h) });
  11150. }, a.prototype.onContainerClick = function(c) {
  11151. var p = this.chart, i = p.hoverPoint;
  11152. c = this.normalize(c);
  11153. var h = p.plotLeft, o = p.plotTop;
  11154. p.cancelClick || (i && this.inClass(c.target, "highcharts-tracker") ? (A(i.series, "click", d(c, { point: i })), p.hoverPoint && i.firePointEvent("click", c)) : (d(c, this.getCoordinates(c)), p.isInsidePlot(c.chartX - h, c.chartY - o, { visiblePlotOnly: !0 }) && A(p, "click", c)));
  11155. }, a.prototype.onContainerMouseDown = function(c) {
  11156. var p = ((c.buttons || c.button) & 1) === 1;
  11157. c = this.normalize(c), j.isFirefox && c.button !== 0 && this.onContainerMouseMove(c), (typeof c.button > "u" || p) && (this.zoomOption(c), p && c.preventDefault && c.preventDefault(), this.dragStart(c));
  11158. }, a.prototype.onContainerMouseLeave = function(c) {
  11159. var p = U[w(a.hoverChartIndex, -1)], i = this.chart.tooltip;
  11160. i && i.shouldStickOnContact() && this.inClass(c.relatedTarget, "highcharts-tooltip-container") || (c = this.normalize(c), p && (c.relatedTarget || c.toElement) && (p.pointer.reset(), p.pointer.chartPosition = void 0), i && !i.isHidden && this.reset());
  11161. }, a.prototype.onContainerMouseEnter = function(c) {
  11162. delete this.chartPosition;
  11163. }, a.prototype.onContainerMouseMove = function(c) {
  11164. var p = this.chart;
  11165. c = this.normalize(c), this.setHoverChartIndex(), c.preventDefault || (c.returnValue = !1), (p.mouseIsDown === "mousedown" || this.touchSelect(c)) && this.drag(c), p.openMenu || !this.inClass(c.target, "highcharts-tracker") && !p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || (this.inClass(c.target, "highcharts-no-tooltip") ? this.reset(!1, 0) : this.runPointActions(c));
  11166. }, a.prototype.onDocumentTouchEnd = function(c) {
  11167. var p = U[w(
  11168. a.hoverChartIndex,
  11169. -1
  11170. )];
  11171. p && p.pointer.drop(c);
  11172. }, a.prototype.onContainerTouchMove = function(c) {
  11173. this.touchSelect(c) ? this.onContainerMouseMove(c) : this.touch(c);
  11174. }, a.prototype.onContainerTouchStart = function(c) {
  11175. this.touchSelect(c) ? this.onContainerMouseDown(c) : (this.zoomOption(c), this.touch(c, !0));
  11176. }, a.prototype.onDocumentMouseMove = function(c) {
  11177. var p = this.chart, i = this.chartPosition;
  11178. c = this.normalize(c, i);
  11179. var h = p.tooltip;
  11180. !i || h && h.isStickyOnContact() || p.isInsidePlot(c.chartX - p.plotLeft, c.chartY - p.plotTop, { visiblePlotOnly: !0 }) || this.inClass(c.target, "highcharts-tracker") || this.reset();
  11181. }, a.prototype.onDocumentMouseUp = function(c) {
  11182. var p = U[w(a.hoverChartIndex, -1)];
  11183. p && p.pointer.drop(c);
  11184. }, a.prototype.pinch = function(c) {
  11185. var p = this, i = p.chart, h = p.pinchDown, o = c.touches || [], t = o.length, s = p.lastValidTouch, n = p.hasZoom, T = {}, _ = t === 1 && (p.inClass(c.target, "highcharts-tracker") && i.runTrackerClick || p.runChartClick), D = {}, W = p.selectionMarker;
  11186. 1 < t ? p.initiated = !0 : t === 1 && this.followTouchMove && (p.initiated = !1), n && p.initiated && !_ && c.cancelable !== !1 && c.preventDefault(), [].map.call(o, function(P) {
  11187. return p.normalize(P);
  11188. }), c.type === "touchstart" ? ([].forEach.call(o, function(P, X) {
  11189. h[X] = { chartX: P.chartX, chartY: P.chartY };
  11190. }), s.x = [h[0].chartX, h[1] && h[1].chartX], s.y = [h[0].chartY, h[1] && h[1].chartY], i.axes.forEach(function(P) {
  11191. if (P.zoomEnabled) {
  11192. var X = i.bounds[P.horiz ? "h" : "v"], g = P.minPixelPadding, m = P.toPixels(Math.min(w(P.options.min, P.dataMin), P.dataMin)), L = P.toPixels(Math.max(w(P.options.max, P.dataMax), P.dataMax)), Y = Math.max(m, L);
  11193. X.min = Math.min(P.pos, Math.min(
  11194. m,
  11195. L
  11196. ) - g), X.max = Math.max(P.pos + P.len, Y + g);
  11197. }
  11198. }), p.res = !0) : p.followTouchMove && t === 1 ? this.runPointActions(p.normalize(c)) : h.length && (A(i, "touchpan", { originalEvent: c }, function() {
  11199. W || (p.selectionMarker = W = d({ destroy: F, touch: !0 }, i.plotBox)), p.pinchTranslate(h, o, T, W, D, s), p.hasPinched = n, p.scaleGroups(T, D);
  11200. }), p.res && (p.res = !1, this.reset(!1, 0)));
  11201. }, a.prototype.pinchTranslate = function(c, p, i, h, o, t) {
  11202. this.zoomHor && this.pinchTranslateDirection(!0, c, p, i, h, o, t), this.zoomVert && this.pinchTranslateDirection(!1, c, p, i, h, o, t);
  11203. }, a.prototype.pinchTranslateDirection = function(c, p, i, h, o, t, s, n) {
  11204. var T = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", W = "chart" + D, P = c ? "width" : "height", X = T["plot" + (c ? "Left" : "Top")], g = T.inverted, m = T.bounds[c ? "h" : "v"], L = p.length === 1, Y = p[0][W], V = !L && p[1][W];
  11205. p = function() {
  11206. typeof $ == "number" && 20 < Math.abs(Y - V) && (G = n || Math.abs(z - $) / Math.abs(Y - V)), k = (X - z) / G + Y, Q = T["plot" + (c ? "Width" : "Height")] / G;
  11207. };
  11208. var Q, k, G = n || 1, z = i[0][W], $ = !L && i[1][W];
  11209. if (p(), i = k, i < m.min) {
  11210. i = m.min;
  11211. var q = !0;
  11212. } else
  11213. i + Q > m.max && (i = m.max - Q, q = !0);
  11214. q ? (z -= 0.8 * (z - s[_][0]), typeof $ == "number" && ($ -= 0.8 * ($ - s[_][1])), p()) : s[_] = [z, $], g || (t[_] = k - X, t[P] = Q), t = g ? 1 / G : G, o[P] = Q, o[_] = i, h[g ? c ? "scaleY" : "scaleX" : "scale" + D] = G, h["translate" + D] = t * X + (z - t * Y);
  11215. }, a.prototype.reset = function(c, p) {
  11216. var i = this.chart, h = i.hoverSeries, o = i.hoverPoint, t = i.hoverPoints, s = i.tooltip, n = s && s.shared ? t : o;
  11217. c && n && x(n).forEach(function(T) {
  11218. T.series.isCartesian && typeof T.plotX > "u" && (c = !1);
  11219. }), c ? s && n && x(n).length && (s.refresh(n), s.shared && t ? t.forEach(function(T) {
  11220. T.setState(T.state, !0), T.series.isCartesian && (T.series.xAxis.crosshair && T.series.xAxis.drawCrosshair(
  11221. null,
  11222. T
  11223. ), T.series.yAxis.crosshair && T.series.yAxis.drawCrosshair(null, T));
  11224. }) : o && (o.setState(o.state, !0), i.axes.forEach(function(T) {
  11225. T.crosshair && o.series[T.coll] === T && T.drawCrosshair(null, o);
  11226. }))) : (o && o.onMouseOut(), t && t.forEach(function(T) {
  11227. T.setState();
  11228. }), h && h.onMouseOut(), s && s.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(T) {
  11229. T.hideCrosshair();
  11230. }), this.hoverX = i.hoverPoints = i.hoverPoint = null);
  11231. }, a.prototype.runPointActions = function(c, p) {
  11232. var i = this.chart, h = i.tooltip && i.tooltip.options.enabled ? i.tooltip : void 0, o = h ? h.shared : !1, t = p || i.hoverPoint, s = t && t.series || i.hoverSeries;
  11233. p = this.getHoverData(t, s, i.series, (!c || c.type !== "touchmove") && (!!p || s && s.directTouch && this.isDirectTouch), o, c), t = p.hoverPoint, s = p.hoverSeries;
  11234. var n = p.hoverPoints;
  11235. if (p = s && s.tooltipOptions.followPointer && !s.tooltipOptions.split, o = o && s && !s.noSharedTooltip, t && (t !== i.hoverPoint || h && h.isHidden)) {
  11236. if ((i.hoverPoints || []).forEach(function(T) {
  11237. n.indexOf(T) === -1 && T.setState();
  11238. }), i.hoverSeries !== s && s.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(T) {
  11239. T.setState("hover");
  11240. }), i.hoverPoint && i.hoverPoint.firePointEvent("mouseOut"), !t.series)
  11241. return;
  11242. i.hoverPoints = n, i.hoverPoint = t, t.firePointEvent("mouseOver"), h && h.refresh(o ? n : t, c);
  11243. } else
  11244. p && h && !h.isHidden && (t = h.getAnchor([{}], c), i.isInsidePlot(t[0], t[1], { visiblePlotOnly: !0 }) && h.updatePosition({ plotX: t[0], plotY: t[1] }));
  11245. this.unDocMouseMove || (this.unDocMouseMove = N(i.container.ownerDocument, "mousemove", function(T) {
  11246. var _ = U[a.hoverChartIndex];
  11247. _ && _.pointer.onDocumentMouseMove(T);
  11248. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(T) {
  11249. var _ = w((T.crosshair || {}).snap, !0), D;
  11250. _ && ((D = i.hoverPoint) && D.series[T.coll] === T || (D = u(n, function(W) {
  11251. return W.series[T.coll] === T;
  11252. }))), D || !_ ? T.drawCrosshair(c, D) : T.hideCrosshair();
  11253. });
  11254. }, a.prototype.scaleGroups = function(c, p) {
  11255. var i = this.chart;
  11256. i.series.forEach(function(h) {
  11257. var o = c || h.getPlotBox();
  11258. h.group && (h.xAxis && h.xAxis.zoomEnabled || i.mapView) && (h.group.attr(o), h.markerGroup && (h.markerGroup.attr(o), h.markerGroup.clip(p ? i.clipRect : null)), h.dataLabelsGroup && h.dataLabelsGroup.attr(o));
  11259. }), i.clipRect.attr(p || i.clipBox);
  11260. }, a.prototype.setDOMEvents = function() {
  11261. var c = this, p = this.chart.container, i = p.ownerDocument;
  11262. p.onmousedown = this.onContainerMouseDown.bind(this), p.onmousemove = this.onContainerMouseMove.bind(this), p.onclick = this.onContainerClick.bind(this), this.eventsToUnbind.push(N(p, "mouseenter", this.onContainerMouseEnter.bind(this))), this.eventsToUnbind.push(N(p, "mouseleave", this.onContainerMouseLeave.bind(this))), a.unbindDocumentMouseUp || (a.unbindDocumentMouseUp = N(i, "mouseup", this.onDocumentMouseUp.bind(this)));
  11263. for (var h = this.chart.renderTo.parentElement; h && h.tagName !== "BODY"; )
  11264. this.eventsToUnbind.push(N(h, "scroll", function() {
  11265. delete c.chartPosition;
  11266. })), h = h.parentElement;
  11267. j.hasTouch && (this.eventsToUnbind.push(N(p, "touchstart", this.onContainerTouchStart.bind(this), { passive: !1 })), this.eventsToUnbind.push(N(p, "touchmove", this.onContainerTouchMove.bind(this), { passive: !1 })), a.unbindDocumentTouchEnd || (a.unbindDocumentTouchEnd = N(i, "touchend", this.onDocumentTouchEnd.bind(this), { passive: !1 })));
  11268. }, a.prototype.setHoverChartIndex = function() {
  11269. var c = this.chart, p = j.charts[w(a.hoverChartIndex, -1)];
  11270. p && p !== c && p.pointer.onContainerMouseLeave({ relatedTarget: !0 }), p && p.mouseIsDown || (a.hoverChartIndex = c.index);
  11271. }, a.prototype.touch = function(c, p) {
  11272. var i = this.chart;
  11273. if (this.setHoverChartIndex(), c.touches.length === 1)
  11274. if (c = this.normalize(c), i.isInsidePlot(c.chartX - i.plotLeft, c.chartY - i.plotTop, { visiblePlotOnly: !0 }) && !i.openMenu) {
  11275. if (p && this.runPointActions(c), c.type === "touchmove") {
  11276. p = this.pinchDown;
  11277. var h = p[0] ? 4 <= Math.sqrt(Math.pow(p[0].chartX - c.chartX, 2) + Math.pow(p[0].chartY - c.chartY, 2)) : !1;
  11278. }
  11279. w(h, !0) && this.pinch(c);
  11280. } else
  11281. p && this.reset();
  11282. else
  11283. c.touches.length === 2 && this.pinch(c);
  11284. }, a.prototype.touchSelect = function(c) {
  11285. return !(!this.chart.options.chart.zoomBySingleTouch || !c.touches || c.touches.length !== 1);
  11286. }, a.prototype.zoomOption = function(c) {
  11287. var p = this.chart, i = p.options.chart;
  11288. p = p.inverted;
  11289. var h = i.zoomType || "";
  11290. /touch/.test(c.type) && (h = w(i.pinchType, h)), this.zoomX = c = /x/.test(h), this.zoomY = i = /y/.test(h), this.zoomHor = c && !p || i && p, this.zoomVert = i && !p || c && p, this.hasZoom = c || i;
  11291. }, a;
  11292. }(), y;
  11293. }), E(l, "Core/MSPointer.js", [l["Core/Globals.js"], l["Core/Pointer.js"], l["Core/Utilities.js"]], function(y, j, I) {
  11294. function Z() {
  11295. var C = [];
  11296. return C.item = function(b) {
  11297. return this[b];
  11298. }, u(O, function(b) {
  11299. C.push({ pageX: b.pageX, pageY: b.pageY, target: b.target });
  11300. }), C;
  11301. }
  11302. function H(C, b, w, x) {
  11303. var a = F[j.hoverChartIndex || NaN];
  11304. C.pointerType !== "touch" && C.pointerType !== C.MSPOINTER_TYPE_TOUCH || !a || (a = a.pointer, x(C), a[b]({ type: w, target: C.currentTarget, preventDefault: R, touches: Z() }));
  11305. }
  11306. var U = this && this.__extends || function() {
  11307. var C = function(b, w) {
  11308. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  11309. x.__proto__ = a;
  11310. } || function(x, a) {
  11311. for (var c in a)
  11312. a.hasOwnProperty(c) && (x[c] = a[c]);
  11313. }, C(b, w);
  11314. };
  11315. return function(b, w) {
  11316. function x() {
  11317. this.constructor = b;
  11318. }
  11319. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  11320. };
  11321. }(), F = y.charts, N = y.doc, R = y.noop, S = y.win, v = I.addEvent, d = I.css, u = I.objectEach, A = I.removeEvent, O = {}, B = !!S.PointerEvent;
  11322. return function(C) {
  11323. function b() {
  11324. return C !== null && C.apply(this, arguments) || this;
  11325. }
  11326. return U(b, C), b.isRequired = function() {
  11327. return !(y.hasTouch || !S.PointerEvent && !S.MSPointerEvent);
  11328. }, b.prototype.batchMSEvents = function(w) {
  11329. w(this.chart.container, B ? "pointerdown" : "MSPointerDown", this.onContainerPointerDown), w(this.chart.container, B ? "pointermove" : "MSPointerMove", this.onContainerPointerMove), w(N, B ? "pointerup" : "MSPointerUp", this.onDocumentPointerUp);
  11330. }, b.prototype.destroy = function() {
  11331. this.batchMSEvents(A), C.prototype.destroy.call(this);
  11332. }, b.prototype.init = function(w, x) {
  11333. C.prototype.init.call(this, w, x), this.hasZoom && d(w.container, { "-ms-touch-action": "none", "touch-action": "none" });
  11334. }, b.prototype.onContainerPointerDown = function(w) {
  11335. H(w, "onContainerTouchStart", "touchstart", function(x) {
  11336. O[x.pointerId] = { pageX: x.pageX, pageY: x.pageY, target: x.currentTarget };
  11337. });
  11338. }, b.prototype.onContainerPointerMove = function(w) {
  11339. H(w, "onContainerTouchMove", "touchmove", function(x) {
  11340. O[x.pointerId] = {
  11341. pageX: x.pageX,
  11342. pageY: x.pageY
  11343. }, O[x.pointerId].target || (O[x.pointerId].target = x.currentTarget);
  11344. });
  11345. }, b.prototype.onDocumentPointerUp = function(w) {
  11346. H(w, "onDocumentTouchEnd", "touchend", function(x) {
  11347. delete O[x.pointerId];
  11348. });
  11349. }, b.prototype.setDOMEvents = function() {
  11350. C.prototype.setDOMEvents.call(this), (this.hasZoom || this.followTouchMove) && this.batchMSEvents(v);
  11351. }, b;
  11352. }(j);
  11353. }), E(l, "Core/Legend/Legend.js", [
  11354. l["Core/Animation/AnimationUtilities.js"],
  11355. l["Core/FormatUtilities.js"],
  11356. l["Core/Globals.js"],
  11357. l["Core/Series/Point.js"],
  11358. l["Core/Renderer/RendererUtilities.js"],
  11359. l["Core/Utilities.js"]
  11360. ], function(y, j, I, Z, H, U) {
  11361. var F = y.animObject, N = y.setAnimation, R = j.format;
  11362. y = I.isFirefox;
  11363. var S = I.marginNames;
  11364. I = I.win;
  11365. var v = H.distribute, d = U.addEvent, u = U.createElement, A = U.css, O = U.defined, B = U.discardElement, C = U.find, b = U.fireEvent, w = U.isNumber, x = U.merge, a = U.pick, c = U.relativeLength, p = U.stableSort, i = U.syncTimeout;
  11366. return H = U.wrap, U = function() {
  11367. function h(o, t) {
  11368. 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 = o, this.init(o, t);
  11369. }
  11370. return h.prototype.init = function(o, t) {
  11371. this.chart = o, this.setOptions(t), t.enabled && (this.render(), d(this.chart, "endResize", function() {
  11372. this.legend.positionCheckboxes();
  11373. }), this.proximate ? this.unchartrender = d(this.chart, "render", function() {
  11374. this.legend.proximatePositions(), this.legend.positionItems();
  11375. }) : this.unchartrender && this.unchartrender());
  11376. }, h.prototype.setOptions = function(o) {
  11377. var t = a(o.padding, 8);
  11378. this.options = o, this.chart.styledMode || (this.itemStyle = o.itemStyle, this.itemHiddenStyle = x(this.itemStyle, o.itemHiddenStyle)), this.itemMarginTop = o.itemMarginTop || 0, this.itemMarginBottom = o.itemMarginBottom || 0, this.padding = t, this.initialItemY = t - 5, this.symbolWidth = a(
  11379. o.symbolWidth,
  11380. 16
  11381. ), this.pages = [], this.proximate = o.layout === "proximate" && !this.chart.inverted, this.baseline = void 0;
  11382. }, h.prototype.update = function(o, t) {
  11383. var s = this.chart;
  11384. this.setOptions(x(!0, this.options, o)), this.destroy(), s.isDirtyLegend = s.isDirtyBox = !0, a(t, !0) && s.redraw(), b(this, "afterUpdate");
  11385. }, h.prototype.colorizeItem = function(o, t) {
  11386. if (o.legendGroup[t ? "removeClass" : "addClass"]("highcharts-legend-item-hidden"), !this.chart.styledMode) {
  11387. var s = this.options, n = o.legendItem, T = o.legendLine, _ = o.legendSymbol, D = this.itemHiddenStyle.color;
  11388. s = t ? s.itemStyle.color : D;
  11389. var W = t && o.color || D, P = o.options && o.options.marker, X = { fill: W };
  11390. n && n.css({ fill: s, color: s }), T && T.attr({ stroke: W }), _ && (P && _.isMarker && (X = o.pointAttribs(), t || (X.stroke = X.fill = D)), _.attr(X));
  11391. }
  11392. b(this, "afterColorizeItem", { item: o, visible: t });
  11393. }, h.prototype.positionItems = function() {
  11394. this.allItems.forEach(this.positionItem, this), this.chart.isResizing || this.positionCheckboxes();
  11395. }, h.prototype.positionItem = function(o) {
  11396. var t = this, s = this.options, n = s.symbolPadding, T = !s.rtl, _ = o._legendItemPos;
  11397. s = _[0], _ = _[1];
  11398. var D = o.checkbox, W = o.legendGroup;
  11399. W && W.element && (n = { translateX: T ? s : this.legendWidth - s - 2 * n - 4, translateY: _ }, T = function() {
  11400. b(t, "afterPositionItem", { item: o });
  11401. }, O(W.translateY) ? W.animate(n, void 0, T) : (W.attr(n), T())), D && (D.x = s, D.y = _);
  11402. }, h.prototype.destroyItem = function(o) {
  11403. var t = o.checkbox;
  11404. ["legendItem", "legendLine", "legendSymbol", "legendGroup"].forEach(function(s) {
  11405. o[s] && (o[s] = o[s].destroy());
  11406. }), t && B(o.checkbox);
  11407. }, h.prototype.destroy = function() {
  11408. function o(t) {
  11409. this[t] && (this[t] = this[t].destroy());
  11410. }
  11411. this.getAllItems().forEach(function(t) {
  11412. [
  11413. "legendItem",
  11414. "legendGroup"
  11415. ].forEach(o, t);
  11416. }), "clipRect up down pager nav box title group".split(" ").forEach(o, this), this.display = null;
  11417. }, h.prototype.positionCheckboxes = function() {
  11418. var o = this.group && this.group.alignAttr, t = this.clipHeight || this.legendHeight, s = this.titleHeight;
  11419. if (o) {
  11420. var n = o.translateY;
  11421. this.allItems.forEach(function(T) {
  11422. var _ = T.checkbox;
  11423. if (_) {
  11424. var D = n + s + _.y + (this.scrollOffset || 0) + 3;
  11425. A(_, { left: o.translateX + T.checkboxOffset + _.x - 20 + "px", top: D + "px", display: this.proximate || D > n - 6 && D < n + t - 6 ? "" : "none" });
  11426. }
  11427. }, this);
  11428. }
  11429. }, h.prototype.renderTitle = function() {
  11430. var o = this.options, t = this.padding, s = o.title, n = 0;
  11431. s.text && (this.title || (this.title = this.chart.renderer.label(s.text, t - 3, t - 4, null, null, null, o.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" }), o = this.title.getBBox(), n = o.height, this.offsetWidth = o.width, this.contentGroup.attr({ translateY: n })), this.titleHeight = n;
  11432. }, h.prototype.setText = function(o) {
  11433. var t = this.options;
  11434. o.legendItem.attr({ text: t.labelFormat ? R(t.labelFormat, o, this.chart) : t.labelFormatter.call(o) });
  11435. }, h.prototype.renderItem = function(o) {
  11436. var t = this.chart, s = t.renderer, n = this.options, T = this.symbolWidth, _ = n.symbolPadding || 0, D = this.itemStyle, W = this.itemHiddenStyle, P = n.layout === "horizontal" ? a(n.itemDistance, 20) : 0, X = !n.rtl, g = !o.series, m = !g && o.series.drawLegendSymbol ? o.series : o, L = m.options, Y = this.createCheckboxForItem && L && L.showCheckbox, V = n.useHTML, Q = o.options.className, k = o.legendItem;
  11437. L = T + _ + P + (Y ? 20 : 0), k || (o.legendGroup = s.g("legend-item").addClass("highcharts-" + m.type + "-series highcharts-color-" + o.colorIndex + (Q ? " " + Q : "") + (g ? " highcharts-series-" + o.index : "")).attr({ zIndex: 1 }).add(this.scrollGroup), o.legendItem = k = s.text("", X ? T + _ : -_, this.baseline || 0, V), t.styledMode || k.css(x(o.visible ? D : W)), k.attr({ align: X ? "left" : "right", zIndex: 2 }).add(o.legendGroup), this.baseline || (this.fontMetrics = s.fontMetrics(t.styledMode ? 12 : D.fontSize, k), this.baseline = this.fontMetrics.f + 3 + this.itemMarginTop, k.attr("y", this.baseline), this.symbolHeight = n.symbolHeight || this.fontMetrics.f, n.squareSymbol && (this.symbolWidth = a(n.symbolWidth, Math.max(this.symbolHeight, 16)), L = this.symbolWidth + _ + P + (Y ? 20 : 0), X && k.attr("x", this.symbolWidth + _))), m.drawLegendSymbol(this, o), this.setItemEvents && this.setItemEvents(o, k, V)), Y && !o.checkbox && this.createCheckboxForItem && this.createCheckboxForItem(o), this.colorizeItem(o, o.visible), !t.styledMode && D.width || k.css({ width: (n.itemWidth || this.widthOption || t.spacingBox.width) - L + "px" }), this.setText(o), t = k.getBBox(), s = this.fontMetrics && this.fontMetrics.h || 0, o.itemWidth = o.checkboxOffset = n.itemWidth || o.legendItemWidth || t.width + L, this.maxItemWidth = Math.max(this.maxItemWidth, o.itemWidth), this.totalItemWidth += o.itemWidth, this.itemHeight = o.itemHeight = Math.round(o.legendItemHeight || (t.height > 1.5 * s ? t.height : s));
  11438. }, h.prototype.layoutItem = function(o) {
  11439. var t = this.options, s = this.padding, n = t.layout === "horizontal", T = o.itemHeight, _ = this.itemMarginBottom, D = this.itemMarginTop, W = n ? a(t.itemDistance, 20) : 0, P = this.maxLegendWidth;
  11440. t = t.alignColumns && this.totalItemWidth > P ? this.maxItemWidth : o.itemWidth, n && this.itemX - s + t > P && (this.itemX = s, this.lastLineHeight && (this.itemY += D + this.lastLineHeight + _), this.lastLineHeight = 0), this.lastItemY = D + this.itemY + _, this.lastLineHeight = Math.max(T, this.lastLineHeight), o._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + T + _, this.lastLineHeight = T), this.offsetWidth = this.widthOption || Math.max((n ? this.itemX - s - (o.checkbox ? 0 : W) : t) + s, this.offsetWidth);
  11441. }, h.prototype.getAllItems = function() {
  11442. var o = [];
  11443. return this.chart.series.forEach(function(t) {
  11444. var s = t && t.options;
  11445. t && a(s.showInLegend, O(s.linkedTo) ? !1 : void 0, !0) && (o = o.concat(t.legendItems || (s.legendType === "point" ? t.data : t)));
  11446. }), b(this, "afterGetAllItems", { allItems: o }), o;
  11447. }, h.prototype.getAlignment = function() {
  11448. var o = this.options;
  11449. return this.proximate ? o.align.charAt(0) + "tv" : o.floating ? "" : o.align.charAt(0) + o.verticalAlign.charAt(0) + o.layout.charAt(0);
  11450. }, h.prototype.adjustMargins = function(o, t) {
  11451. var s = this.chart, n = this.options, T = this.getAlignment();
  11452. T && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  11453. _.test(T) && !O(o[D]) && (s[S[D]] = Math.max(s[S[D]], s.legend[(D + 1) % 2 ? "legendHeight" : "legendWidth"] + [1, -1, -1, 1][D] * n[D % 2 ? "x" : "y"] + a(n.margin, 12) + t[D] + (s.titleOffset[D] || 0)));
  11454. });
  11455. }, h.prototype.proximatePositions = function() {
  11456. var o = this.chart, t = [], s = this.options.align === "left";
  11457. this.allItems.forEach(function(n) {
  11458. var T, _ = s;
  11459. if (n.yAxis) {
  11460. n.xAxis.options.reversed && (_ = !_), n.points && (T = C(_ ? n.points : n.points.slice(0).reverse(), function(W) {
  11461. return w(W.plotY);
  11462. })), _ = this.itemMarginTop + n.legendItem.getBBox().height + this.itemMarginBottom;
  11463. var D = n.yAxis.top - o.plotTop;
  11464. n.visible ? (T = T ? T.plotY : n.yAxis.height, T += D - 0.3 * _) : T = D + n.yAxis.height, t.push({ target: T, size: _, item: n });
  11465. }
  11466. }, this), v(t, o.plotHeight).forEach(function(n) {
  11467. n.item._legendItemPos && (n.item._legendItemPos[1] = o.plotTop - o.spacing[0] + n.pos);
  11468. });
  11469. }, h.prototype.render = function() {
  11470. var o = this.chart, t = o.renderer, s = this.options, n = this.padding, T = this.getAllItems(), _ = this.group, D = this.box;
  11471. this.itemX = n, this.itemY = this.initialItemY, this.lastItemY = this.offsetWidth = 0, this.widthOption = c(s.width, o.spacingBox.width - n);
  11472. var W = o.spacingBox.width - 2 * n - s.x;
  11473. -1 < ["rm", "lm"].indexOf(this.getAlignment().substring(0, 2)) && (W /= 2), this.maxLegendWidth = this.widthOption || W, _ || (this.group = _ = t.g("legend").addClass(s.className || "").attr({ zIndex: 7 }).add(), this.contentGroup = t.g().attr({ zIndex: 1 }).add(_), this.scrollGroup = t.g().add(this.contentGroup)), this.renderTitle(), p(T, function(X, g) {
  11474. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  11475. }), s.reversed && T.reverse(), this.allItems = T, this.display = W = !!T.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, T.forEach(this.renderItem, this), T.forEach(this.layoutItem, this), T = (this.widthOption || this.offsetWidth) + n;
  11476. var P = this.lastItemY + this.lastLineHeight + this.titleHeight;
  11477. P = this.handleOverflow(P), P += n, D || (this.box = D = t.rect().addClass("highcharts-legend-box").attr({ r: s.borderRadius }).add(_), D.isNew = !0), o.styledMode || D.attr({ stroke: s.borderColor, "stroke-width": s.borderWidth || 0, fill: s.backgroundColor || "none" }).shadow(s.shadow), 0 < T && 0 < P && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: T, height: P }, D.strokeWidth())), D.isNew = !1), D[W ? "show" : "hide"](), o.styledMode && _.getStyle("display") === "none" && (T = P = 0), this.legendWidth = T, this.legendHeight = P, W && this.align(), this.proximate || this.positionItems(), b(this, "afterRender");
  11478. }, h.prototype.align = function(o) {
  11479. o === void 0 && (o = this.chart.spacingBox);
  11480. var t = this.chart, s = this.options, n = o.y;
  11481. /(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 !== o.y && (o = x(o, { y: n })), this.group.align(x(s, { width: this.legendWidth, height: this.legendHeight, verticalAlign: this.proximate ? "top" : s.verticalAlign }), !0, o);
  11482. }, h.prototype.handleOverflow = function(o) {
  11483. var t = this, s = this.chart, n = s.renderer, T = this.options, _ = T.y, D = T.verticalAlign === "top", W = this.padding, P = T.maxHeight, X = T.navigation, g = a(X.animation, !0), m = X.arrowSize || 12, L = this.pages, Y = this.allItems, V = function(q) {
  11484. typeof q == "number" ? $.attr({ height: q }) : $ && (t.clipRect = $.destroy(), t.contentGroup.clip()), t.contentGroup.div && (t.contentGroup.div.style.clip = q ? "rect(" + W + "px,9999px," + (W + q) + "px,0)" : "auto");
  11485. }, Q = function(q) {
  11486. return t[q] = n.circle(0, 0, 1.3 * m).translate(m / 2, m / 2).add(z), s.styledMode || t[q].attr("fill", "rgba(0,0,0,0.0001)"), t[q];
  11487. }, k, G;
  11488. _ = s.spacingBox.height + (D ? -_ : _) - W;
  11489. var z = this.nav, $ = this.clipRect;
  11490. return T.layout !== "horizontal" || T.verticalAlign === "middle" || T.floating || (_ /= 2), P && (_ = Math.min(_, P)), L.length = 0, o && 0 < _ && o > _ && X.enabled !== !1 ? (this.clipHeight = k = Math.max(_ - 20 - this.titleHeight - W, 0), this.currentPage = a(this.currentPage, 1), this.fullHeight = o, Y.forEach(function(q, it) {
  11491. var et = q._legendItemPos[1], nt = Math.round(q.legendItem.getBBox().height), rt = L.length;
  11492. (!rt || et - L[rt - 1] > k && (G || et) !== L[rt - 1]) && (L.push(G || et), rt++), q.pageIx = rt - 1, G && (Y[it - 1].pageIx = rt - 1), it === Y.length - 1 && et + nt - L[rt - 1] > k && nt <= k && (L.push(et), q.pageIx = rt), et !== G && (G = et);
  11493. }), $ || ($ = t.clipRect = n.clipRect(0, W, 9999, 0), t.contentGroup.clip($)), V(k), z || (this.nav = z = n.g().attr({ zIndex: 1 }).add(this.group), this.up = n.symbol("triangle", 0, 0, m, m).add(z), Q("upTracker").on(
  11494. "click",
  11495. function() {
  11496. t.scroll(-1, g);
  11497. }
  11498. ), this.pager = n.text("", 15, 10).addClass("highcharts-legend-navigation"), s.styledMode || this.pager.css(X.style), this.pager.add(z), this.down = n.symbol("triangle-down", 0, 0, m, m).add(z), Q("downTracker").on("click", function() {
  11499. t.scroll(1, g);
  11500. })), t.scroll(0), o = _) : z && (V(), this.nav = z.destroy(), this.scrollGroup.attr({ translateY: 1 }), this.clipHeight = 0), o;
  11501. }, h.prototype.scroll = function(o, t) {
  11502. var s = this, n = this.chart, T = this.pages, _ = T.length, D = this.clipHeight, W = this.options.navigation, P = this.pager, X = this.padding, g = this.currentPage + o;
  11503. g > _ && (g = _), 0 < g && (typeof t < "u" && N(t, n), this.nav.attr({ translateX: X, translateY: D + this.padding + 7 + this.titleHeight, visibility: "visible" }), [this.up, this.upTracker].forEach(function(m) {
  11504. m.attr({ class: g === 1 ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11505. }), P.attr({ text: g + "/" + _ }), [this.down, this.downTracker].forEach(
  11506. function(m) {
  11507. m.attr({ x: 18 + this.pager.getBBox().width, class: g === _ ? "highcharts-legend-nav-inactive" : "highcharts-legend-nav-active" });
  11508. },
  11509. this
  11510. ), 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 === _ ? W.inactiveColor : W.activeColor }), this.downTracker.css({ cursor: g === _ ? "default" : "pointer" })), this.scrollOffset = -T[g - 1] + this.initialItemY, this.scrollGroup.animate({ translateY: this.scrollOffset }), this.currentPage = g, this.positionCheckboxes(), o = F(a(t, n.renderer.globalAnimation, !0)), i(function() {
  11511. b(s, "afterScroll", { currentPage: g });
  11512. }, o.duration));
  11513. }, h.prototype.setItemEvents = function(o, t, s) {
  11514. var n = this, T = n.chart.renderer.boxWrapper, _ = o instanceof Z, D = "highcharts-legend-" + (_ ? "point" : "series") + "-active", W = n.chart.styledMode, P = function(X) {
  11515. n.allItems.forEach(function(g) {
  11516. o !== g && [g].concat(g.linkedSeries || []).forEach(function(m) {
  11517. m.setState(X, !_);
  11518. });
  11519. });
  11520. };
  11521. (s ? [t, o.legendSymbol] : [o.legendGroup]).forEach(function(X) {
  11522. X && X.on("mouseover", function() {
  11523. o.visible && P("inactive"), o.setState("hover"), o.visible && T.addClass(D), W || t.css(n.options.itemHoverStyle);
  11524. }).on("mouseout", function() {
  11525. n.chart.styledMode || t.css(x(o.visible ? n.itemStyle : n.itemHiddenStyle)), P(""), T.removeClass(D), o.setState();
  11526. }).on("click", function(g) {
  11527. var m = function() {
  11528. o.setVisible && o.setVisible(), P(o.visible ? "inactive" : "");
  11529. };
  11530. T.removeClass(D), g = { browserEvent: g }, o.firePointEvent ? o.firePointEvent("legendItemClick", g, m) : b(o, "legendItemClick", g, m);
  11531. });
  11532. });
  11533. }, h.prototype.createCheckboxForItem = function(o) {
  11534. o.checkbox = u(
  11535. "input",
  11536. { type: "checkbox", className: "highcharts-legend-checkbox", checked: o.selected, defaultChecked: o.selected },
  11537. this.options.itemCheckboxStyle,
  11538. this.chart.container
  11539. ), d(o.checkbox, "click", function(t) {
  11540. b(o.series || o, "checkboxClick", { checked: t.target.checked, item: o }, function() {
  11541. o.select();
  11542. });
  11543. });
  11544. }, h;
  11545. }(), (/Trident\/7\.0/.test(I.navigator && I.navigator.userAgent) || y) && H(U.prototype, "positionItem", function(h, o) {
  11546. var t = this, s = function() {
  11547. o._legendItemPos && h.call(t, o);
  11548. };
  11549. s(), t.bubbleLegend || setTimeout(s);
  11550. }), U;
  11551. }), E(
  11552. l,
  11553. "Core/Series/SeriesRegistry.js",
  11554. [l["Core/Globals.js"], l["Core/DefaultOptions.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]],
  11555. function(y, j, I, Z) {
  11556. var H = j.defaultOptions, U = Z.error, F = Z.extendClass, N = Z.merge, R;
  11557. return function(S) {
  11558. function v(d, u) {
  11559. var A = H.plotOptions || {}, O = u.defaultOptions;
  11560. u.prototype.pointClass || (u.prototype.pointClass = I), u.prototype.type = d, O && (A[d] = O), S.seriesTypes[d] = u;
  11561. }
  11562. S.seriesTypes = y.seriesTypes, S.getSeries = function(d, u) {
  11563. u === void 0 && (u = {});
  11564. var A = d.options.chart;
  11565. A = u.type || A.type || A.defaultSeriesType || "";
  11566. var O = S.seriesTypes[A];
  11567. return S || U(17, !0, d, { missingModuleFor: A }), A = new O(), typeof A.init == "function" && A.init(d, u), A;
  11568. }, S.registerSeriesType = v, S.seriesType = function(d, u, A, O, B) {
  11569. var C = H.plotOptions || {};
  11570. return u = u || "", C[d] = N(C[u], A), v(d, F(S.seriesTypes[u] || function() {
  11571. }, O)), S.seriesTypes[d].prototype.type = d, B && (S.seriesTypes[d].prototype.pointClass = F(I, B)), S.seriesTypes[d];
  11572. };
  11573. }(R || (R = {})), R;
  11574. }
  11575. ), E(l, "Core/Chart/Chart.js", [
  11576. l["Core/Animation/AnimationUtilities.js"],
  11577. l["Core/Axis/Axis.js"],
  11578. l["Core/FormatUtilities.js"],
  11579. l["Core/Foundation.js"],
  11580. l["Core/Globals.js"],
  11581. l["Core/Legend/Legend.js"],
  11582. l["Core/MSPointer.js"],
  11583. l["Core/DefaultOptions.js"],
  11584. l["Core/Pointer.js"],
  11585. l["Core/Renderer/RendererRegistry.js"],
  11586. l["Core/Series/SeriesRegistry.js"],
  11587. l["Core/Renderer/SVG/SVGRenderer.js"],
  11588. l["Core/Time.js"],
  11589. l["Core/Utilities.js"],
  11590. l["Core/Renderer/HTML/AST.js"]
  11591. ], function(y, j, I, Z, H, U, F, N, R, S, v, d, u, A, O) {
  11592. var B = y.animate, C = y.animObject, b = y.setAnimation, w = I.numberFormat, x = Z.registerEventOptions, a = H.charts, c = H.doc, p = H.marginNames, i = H.svg, h = H.win, o = N.defaultOptions, t = N.defaultTime, s = v.seriesTypes, n = A.addEvent, T = A.attr, _ = A.cleanRecursively, D = A.createElement, W = A.css, P = A.defined, X = A.discardElement, g = A.erase, m = A.error, L = A.extend, Y = A.find, V = A.fireEvent, Q = A.getStyle, k = A.isArray, G = A.isNumber, z = A.isObject, $ = A.isString, q = A.merge, it = A.objectEach, et = A.pick, nt = A.pInt, rt = A.relativeLength, ct = A.removeEvent, gt = A.splat, dt = A.syncTimeout, ht = A.uniqueKey;
  11593. return y = function() {
  11594. function at(J, tt, ot) {
  11595. 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);
  11596. }
  11597. return at.chart = function(J, tt, ot) {
  11598. return new at(J, tt, ot);
  11599. }, at.prototype.getArgs = function(J, tt, ot) {
  11600. $(J) || J.nodeName ? (this.renderTo = J, this.init(tt, ot)) : this.init(J, tt);
  11601. }, at.prototype.init = function(J, tt) {
  11602. var ot = J.plotOptions || {};
  11603. V(this, "init", { args: arguments }, function() {
  11604. var lt = q(o, J), pt = lt.chart;
  11605. it(lt.plotOptions, function(yt, vt) {
  11606. z(yt) && (yt.tooltip = ot[vt] && q(ot[vt].tooltip) || void 0);
  11607. }), 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 u(J.time) : H.time, this.numberFormatter = pt.numberFormatter || w, this.styledMode = pt.styledMode, this.hasCartesianSeries = pt.showAxes, this.index = a.length, a.push(this), H.chartCount++, x(this, pt), this.xAxis = [], this.yAxis = [], this.pointCount = this.colorCounter = this.symbolCounter = 0, V(this, "afterInit"), this.firstRender();
  11608. });
  11609. }, at.prototype.initSeries = function(J) {
  11610. var tt = this.options.chart;
  11611. tt = J.type || tt.type || tt.defaultSeriesType;
  11612. var ot = s[tt];
  11613. return ot || m(17, !0, this, { missingModuleFor: tt }), tt = new ot(), typeof tt.init == "function" && tt.init(this, J), tt;
  11614. }, at.prototype.setSeriesData = function() {
  11615. this.getSeriesOrderByLinks().forEach(function(J) {
  11616. J.points || J.data || !J.enabledDataSorting || J.setData(J.options.data, !1);
  11617. });
  11618. }, at.prototype.getSeriesOrderByLinks = function() {
  11619. return this.series.concat().sort(function(J, tt) {
  11620. return J.linkedSeries.length || tt.linkedSeries.length ? tt.linkedSeries.length - J.linkedSeries.length : 0;
  11621. });
  11622. }, at.prototype.orderSeries = function(J) {
  11623. var tt = this.series;
  11624. J = J || 0;
  11625. for (var ot = tt.length; J < ot; ++J)
  11626. tt[J] && (tt[J].index = J, tt[J].name = tt[J].getName());
  11627. }, at.prototype.isInsidePlot = function(J, tt, ot) {
  11628. ot === void 0 && (ot = {});
  11629. var lt = this.inverted, pt = this.plotBox, yt = this.plotLeft, vt = this.plotTop, Ct = this.scrollablePlotBox, Pt = 0, At = 0;
  11630. ot.visiblePlotOnly && this.scrollingContainer && (At = this.scrollingContainer, Pt = At.scrollLeft, At = At.scrollTop);
  11631. var St = ot.series;
  11632. 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) {
  11633. var Dt = St && (lt ? St.yAxis : St.xAxis) || { pos: yt, len: 1 / 0 };
  11634. 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);
  11635. }
  11636. 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)), V(this, "afterIsInsidePlot", J), J.isInsidePlot;
  11637. }, at.prototype.redraw = function(J) {
  11638. V(this, "beforeRedraw");
  11639. 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;
  11640. for (this.setResponsive && this.setResponsive(!1), b(this.hasRendered ? J : !1, this), Ct && this.temporaryDisplay(), this.layOutTitles(), J = ot.length; J--; ) {
  11641. var Dt = ot[J];
  11642. if (Dt.options.stacking || Dt.options.centerInCategory) {
  11643. var Lt = !0;
  11644. if (Dt.isDirty) {
  11645. var Nt = !0;
  11646. break;
  11647. }
  11648. }
  11649. }
  11650. if (Nt)
  11651. for (J = ot.length; J--; )
  11652. Dt = ot[J], Dt.options.stacking && (Dt.isDirty = !0);
  11653. ot.forEach(function(Et) {
  11654. Et.isDirty && (Et.options.legendType === "point" ? (typeof Et.updateTotals == "function" && Et.updateTotals(), St = !0) : yt && (yt.labelFormatter || yt.labelFormat) && (St = !0)), Et.isDirtyData && V(Et, "updatedData");
  11655. }), St && pt && pt.options.enabled && (pt.render(), this.isDirtyLegend = !1), Lt && this.getStacks(), tt.forEach(function(Et) {
  11656. Et.updateNames(), Et.setScale();
  11657. }), this.getMargins(), tt.forEach(function(Et) {
  11658. Et.isDirty && (At = !0);
  11659. }), tt.forEach(function(Et) {
  11660. var Kt = Et.min + "," + Et.max;
  11661. Et.extKey !== Kt && (Et.extKey = Kt, Pt.push(function() {
  11662. V(Et, "afterSetExtremes", L(Et.eventArgs, Et.getExtremes())), delete Et.eventArgs;
  11663. })), (At || Lt) && Et.redraw();
  11664. }), At && this.drawChartBox(), V(this, "predraw"), ot.forEach(function(Et) {
  11665. (At || Et.isDirty) && Et.visible && Et.redraw(), Et.isDirtyData = !1;
  11666. }), lt && lt.reset(!0), vt.draw(), V(this, "redraw"), V(this, "render"), Ct && this.temporaryDisplay(!0), Pt.forEach(function(Et) {
  11667. Et.call();
  11668. });
  11669. }, at.prototype.get = function(J) {
  11670. function tt(yt) {
  11671. return yt.id === J || yt.options && yt.options.id === J;
  11672. }
  11673. for (var ot = this.series, lt = Y(this.axes, tt) || Y(this.series, tt), pt = 0; !lt && pt < ot.length; pt++)
  11674. lt = Y(ot[pt].points || [], tt);
  11675. return lt;
  11676. }, at.prototype.getAxes = function() {
  11677. var J = this, tt = this.options, ot = tt.xAxis = gt(tt.xAxis || {});
  11678. tt = tt.yAxis = gt(tt.yAxis || {}), V(this, "getAxes"), ot.forEach(function(lt, pt) {
  11679. lt.index = pt, lt.isX = !0;
  11680. }), tt.forEach(function(lt, pt) {
  11681. lt.index = pt;
  11682. }), ot.concat(tt).forEach(function(lt) {
  11683. new j(J, lt);
  11684. }), V(this, "afterGetAxes");
  11685. }, at.prototype.getSelectedPoints = function() {
  11686. return this.series.reduce(function(J, tt) {
  11687. return tt.getPointsCollection().forEach(function(ot) {
  11688. et(ot.selectedStaging, ot.selected) && J.push(ot);
  11689. }), J;
  11690. }, []);
  11691. }, at.prototype.getSelectedSeries = function() {
  11692. return this.series.filter(function(J) {
  11693. return J.selected;
  11694. });
  11695. }, at.prototype.setTitle = function(J, tt, ot) {
  11696. this.applyDescription("title", J), this.applyDescription("subtitle", tt), this.applyDescription(
  11697. "caption",
  11698. void 0
  11699. ), this.layOutTitles(ot);
  11700. }, at.prototype.applyDescription = function(J, tt) {
  11701. var ot = this, lt = J === "title" ? { color: "#333333", fontSize: this.options.isStock ? "16px" : "18px" } : { color: "#666666" };
  11702. lt = this.options[J] = q(!this.styledMode && { style: lt }, this.options[J], tt);
  11703. var pt = this[J];
  11704. 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) {
  11705. ot[{ title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }[J]](yt);
  11706. }, this.styledMode || pt.css(lt.style), this[J] = pt);
  11707. }, at.prototype.layOutTitles = function(J) {
  11708. var tt = [0, 0, 0], ot = this.renderer, lt = this.spacingBox;
  11709. ["title", "subtitle", "caption"].forEach(function(yt) {
  11710. var vt = this[yt], Ct = this.options[yt], Pt = Ct.verticalAlign || "top";
  11711. yt = yt === "title" ? Pt === "top" ? -3 : 0 : Pt === "top" ? tt[0] + 2 : 0;
  11712. var At;
  11713. if (vt) {
  11714. 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" });
  11715. var St = Math.round(vt.getBBox(Ct.useHTML).height);
  11716. 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)));
  11717. }
  11718. }, 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);
  11719. var pt = !this.titleOffset || this.titleOffset.join(",") !== tt.join(",");
  11720. this.titleOffset = tt, V(this, "afterLayOutTitles"), !this.isDirtyBox && pt && (this.isDirtyBox = this.isDirtyLegend = pt, this.hasRendered && et(J, !0) && this.isDirtyBox && this.redraw());
  11721. }, at.prototype.getChartSize = function() {
  11722. var J = this.options.chart, tt = J.width;
  11723. J = J.height;
  11724. var ot = this.renderTo;
  11725. P(tt) || (this.containerWidth = Q(ot, "width")), P(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));
  11726. }, at.prototype.temporaryDisplay = function(J) {
  11727. var tt = this.renderTo;
  11728. if (J)
  11729. for (; tt && tt.style; )
  11730. tt.hcOrigStyle && (W(tt, tt.hcOrigStyle), delete tt.hcOrigStyle), tt.hcOrigDetached && (c.body.removeChild(tt), tt.hcOrigDetached = !1), tt = tt.parentNode;
  11731. else
  11732. 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); )
  11733. ;
  11734. }, at.prototype.setClassName = function(J) {
  11735. this.container.className = "highcharts-container " + (J || "");
  11736. }, at.prototype.getContainer = function() {
  11737. var J = this.options, tt = J.chart, ot = ht(), lt, pt = this.renderTo;
  11738. pt || (this.renderTo = pt = tt.renderTo), $(pt) && (this.renderTo = pt = c.getElementById(pt)), pt || m(13, !0, this);
  11739. var yt = nt(T(pt, "data-highcharts-chart"));
  11740. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), T(pt, "data-highcharts-chart", this.index), pt.innerHTML = O.emptyHTML, tt.skipClone || pt.offsetWidth || this.temporaryDisplay(), this.getChartSize(), yt = this.chartWidth;
  11741. var vt = this.chartHeight;
  11742. 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 = D("div", { id: ot }, lt, pt), this._cursor = ot.style.cursor, this.renderer = new (tt.renderer || !i ? S.getRendererType(tt.renderer) : d)(ot, yt, vt, void 0, tt.forExport, J.exporting && J.exporting.allowHTML, this.styledMode), b(
  11743. void 0,
  11744. this
  11745. ), this.setClassName(tt.className), this.styledMode)
  11746. for (var Ct in J.defs)
  11747. this.renderer.definition(J.defs[Ct]);
  11748. else
  11749. this.renderer.setStyle(tt.style);
  11750. this.renderer.chartIndex = this.index, V(this, "afterGetContainer");
  11751. }, at.prototype.getMargins = function(J) {
  11752. var tt = this.spacing, ot = this.margin, lt = this.titleOffset;
  11753. this.resetMargins(), lt[0] && !P(ot[0]) && (this.plotTop = Math.max(this.plotTop, lt[0] + tt[0])), lt[2] && !P(ot[2]) && (this.marginBottom = Math.max(this.marginBottom, lt[2] + tt[2])), this.legend && this.legend.display && this.legend.adjustMargins(
  11754. ot,
  11755. tt
  11756. ), V(this, "getMargins"), J || this.getAxisMargins();
  11757. }, at.prototype.getAxisMargins = function() {
  11758. var J = this, tt = J.axisOffset = [0, 0, 0, 0], ot = J.colorAxis, lt = J.margin, pt = function(yt) {
  11759. yt.forEach(function(vt) {
  11760. vt.visible && vt.getOffset();
  11761. });
  11762. };
  11763. J.hasCartesianSeries ? pt(J.axes) : ot && ot.length && pt(ot), p.forEach(function(yt, vt) {
  11764. P(lt[vt]) || (J[yt] += tt[vt]);
  11765. }), J.setChartSize();
  11766. }, at.prototype.reflow = function(J) {
  11767. var tt = this, ot = tt.options.chart, lt = tt.renderTo, pt = P(ot.width) && P(ot.height), yt = ot.width || Q(lt, "width");
  11768. ot = ot.height || Q(lt, "height"), lt = J ? J.target : h, delete tt.pointer.chartPosition, !pt && !tt.isPrinting && yt && ot && (lt === h || lt === c) && ((yt !== tt.containerWidth || ot !== tt.containerHeight) && (A.clearTimeout(tt.reflowTimeout), tt.reflowTimeout = dt(function() {
  11769. tt.container && tt.setSize(void 0, void 0, !1);
  11770. }, J ? 100 : 0)), tt.containerWidth = yt, tt.containerHeight = ot);
  11771. }, at.prototype.setReflow = function(J) {
  11772. var tt = this;
  11773. J === !1 || this.unbindReflow ? J === !1 && this.unbindReflow && (this.unbindReflow = this.unbindReflow()) : (this.unbindReflow = n(h, "resize", function(ot) {
  11774. tt.options && tt.reflow(ot);
  11775. }), n(this, "destroy", this.unbindReflow));
  11776. }, at.prototype.setSize = function(J, tt, ot) {
  11777. var lt = this, pt = lt.renderer;
  11778. 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 ? B : 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) {
  11779. yt.isDirty = !0, yt.setScale();
  11780. }), lt.isDirtyLegend = !0, lt.isDirtyBox = !0, lt.layOutTitles(), lt.getMargins(), lt.redraw(ot), lt.oldChartHeight = null, V(lt, "resize"), dt(function() {
  11781. lt && V(lt, "endResize", null, function() {
  11782. --lt.isResizing;
  11783. });
  11784. }, C(ot).duration);
  11785. }, at.prototype.setChartSize = function(J) {
  11786. 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;
  11787. 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(Lt) {
  11788. Lt.setAxisSize(), Lt.setAxisTranslation();
  11789. }), ot.alignElements()), V(this, "afterSetChartSize", { skipAxes: J });
  11790. }, at.prototype.resetMargins = function() {
  11791. V(this, "resetMargins");
  11792. var J = this, tt = J.options.chart;
  11793. ["margin", "spacing"].forEach(function(ot) {
  11794. var lt = tt[ot], pt = z(lt) ? lt : [lt, lt, lt, lt];
  11795. ["Top", "Right", "Bottom", "Left"].forEach(function(yt, vt) {
  11796. J[ot][vt] = et(tt[ot + yt], pt[vt]);
  11797. });
  11798. }), p.forEach(function(ot, lt) {
  11799. J[ot] = et(J.margin[lt], J.spacing[lt]);
  11800. }), J.axisOffset = [0, 0, 0, 0], J.clipOffset = [0, 0, 0, 0];
  11801. }, at.prototype.drawChartBox = function() {
  11802. 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, Lt = this.plotHeight, Nt = this.plotBox, Et = this.clipRect, Kt = this.clipBox, Gt = this.chartBackground, Wt = this.plotBackground, Jt = this.plotBorder, be, zt = "animate";
  11803. if (Gt || (this.chartBackground = Gt = tt.rect().addClass("highcharts-background").add(), zt = "attr"), pt)
  11804. var Vt = be = Gt.strokeWidth();
  11805. else
  11806. 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);
  11807. Gt[zt]({ x: be / 2, y: be / 2, width: ot - be - Vt % 2, height: lt - be - Vt % 2, r: J.borderRadius }), zt = "animate", Wt || (zt = "attr", this.plotBackground = Wt = tt.rect().addClass("highcharts-plot-background").add()), Wt[zt](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, Lt).add())), Et ? Et.animate({ width: Kt.width, height: Kt.height }) : this.clipRect = tt.clipRect(Kt), zt = "animate", Jt || (zt = "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[zt](Jt.crisp({ x: At, y: St, width: Dt, height: Lt }, -Jt.strokeWidth())), this.isDirtyBox = !1, V(this, "afterDrawChartBox");
  11808. }, at.prototype.propFromSeries = function() {
  11809. var J = this, tt = J.options.chart, ot = J.options.series, lt, pt, yt;
  11810. ["inverted", "angular", "polar"].forEach(function(vt) {
  11811. for (pt = s[tt.type || tt.defaultSeriesType], yt = tt[vt] || pt && pt.prototype[vt], lt = ot && ot.length; !yt && lt--; )
  11812. (pt = s[ot[lt].type]) && pt.prototype[vt] && (yt = !0);
  11813. J[vt] = yt;
  11814. });
  11815. }, at.prototype.linkSeries = function() {
  11816. var J = this, tt = J.series;
  11817. tt.forEach(function(ot) {
  11818. ot.linkedSeries.length = 0;
  11819. }), tt.forEach(function(ot) {
  11820. var lt = ot.options.linkedTo;
  11821. $(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));
  11822. }), V(this, "afterLinkSeries");
  11823. }, at.prototype.renderSeries = function() {
  11824. this.series.forEach(function(J) {
  11825. J.translate(), J.render();
  11826. });
  11827. }, at.prototype.renderLabels = function() {
  11828. var J = this, tt = J.options.labels;
  11829. tt.items && tt.items.forEach(function(ot) {
  11830. var lt = L(tt.style, ot.style), pt = nt(lt.left) + J.plotLeft, yt = nt(lt.top) + J.plotTop + 12;
  11831. delete lt.left, delete lt.top, J.renderer.text(ot.html, pt, yt).attr({ zIndex: 2 }).css(lt).add();
  11832. });
  11833. }, at.prototype.render = function() {
  11834. var J = this.axes, tt = this.colorAxis, ot = this.renderer, lt = this.options, pt = function(At) {
  11835. At.forEach(function(St) {
  11836. St.visible && St.render();
  11837. });
  11838. }, yt = 0;
  11839. this.setTitle(), this.legend = new U(this, lt.legend), this.getStacks && this.getStacks(), this.getMargins(!0), this.setChartSize(), lt = this.plotWidth, J.some(function(At) {
  11840. if (At.horiz && At.visible && At.options.labels.enabled && At.series.length)
  11841. return yt = 21, !0;
  11842. });
  11843. var vt = this.plotHeight = Math.max(this.plotHeight - yt, 0);
  11844. J.forEach(function(At) {
  11845. At.setScale();
  11846. }), this.getAxisMargins();
  11847. var Ct = 1.1 < lt / this.plotWidth, Pt = 1.05 < vt / this.plotHeight;
  11848. (Ct || Pt) && (J.forEach(function(At) {
  11849. (At.horiz && Ct || !At.horiz && Pt) && At.setTickInterval(!0);
  11850. }), 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;
  11851. }, at.prototype.addCredits = function(J) {
  11852. var tt = this, ot = q(!0, this.options.credits, J);
  11853. ot.enabled && !this.credits && (this.credits = this.renderer.text(ot.text + (this.mapCredits || ""), 0, 0).addClass("highcharts-credits").on("click", function() {
  11854. ot.href && (h.location.href = ot.href);
  11855. }).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) {
  11856. tt.credits = tt.credits.destroy(), tt.addCredits(lt);
  11857. });
  11858. }, at.prototype.destroy = function() {
  11859. var J = this, tt = J.axes, ot = J.series, lt = J.container, pt = lt && lt.parentNode, yt;
  11860. for (V(J, "destroy"), J.renderer.forExport ? g(a, J) : a[J.index] = void 0, H.chartCount--, J.renderTo.removeAttribute("data-highcharts-chart"), ct(J), yt = tt.length; yt--; )
  11861. tt[yt] = tt[yt].destroy();
  11862. for (this.scroller && this.scroller.destroy && this.scroller.destroy(), yt = ot.length; yt--; )
  11863. ot[yt] = ot[yt].destroy();
  11864. "title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(vt) {
  11865. var Ct = J[vt];
  11866. Ct && Ct.destroy && (J[vt] = Ct.destroy());
  11867. }), lt && (lt.innerHTML = O.emptyHTML, ct(lt), pt && X(lt)), it(J, function(vt, Ct) {
  11868. delete J[Ct];
  11869. });
  11870. }, at.prototype.firstRender = function() {
  11871. var J = this, tt = J.options;
  11872. (!J.isReadyToRender || J.isReadyToRender()) && (J.getContainer(), J.resetMargins(), J.setChartSize(), J.propFromSeries(), J.getAxes(), (k(tt.series) ? tt.series : []).forEach(function(ot) {
  11873. J.initSeries(ot);
  11874. }), J.linkSeries(), J.setSeriesData(), V(J, "beforeRender"), R && (F.isRequired() ? J.pointer = new F(J, tt) : J.pointer = new R(J, tt)), J.render(), J.pointer.getChartPosition(), !J.renderer.imgCount && !J.hasLoaded && J.onload(), J.temporaryDisplay(!0));
  11875. }, at.prototype.onload = function() {
  11876. this.callbacks.concat([this.callback]).forEach(function(J) {
  11877. J && typeof this.index < "u" && J.apply(this, [this]);
  11878. }, this), V(this, "load"), V(this, "render"), P(this.index) && this.setReflow(this.options.chart.reflow), this.hasLoaded = !0;
  11879. }, at.prototype.addSeries = function(J, tt, ot) {
  11880. var lt = this, pt;
  11881. return J && (tt = et(tt, !0), V(lt, "addSeries", { options: J }, function() {
  11882. pt = lt.initSeries(J), lt.isDirtyLegend = !0, lt.linkSeries(), pt.enabledDataSorting && pt.setData(J.data, !1), V(lt, "afterAddSeries", { series: pt }), tt && lt.redraw(ot);
  11883. })), pt;
  11884. }, at.prototype.addAxis = function(J, tt, ot, lt) {
  11885. return this.createAxis(tt ? "xAxis" : "yAxis", { axis: J, redraw: ot, animation: lt });
  11886. }, at.prototype.addColorAxis = function(J, tt, ot) {
  11887. return this.createAxis(
  11888. "colorAxis",
  11889. { axis: J, redraw: tt, animation: ot }
  11890. );
  11891. }, at.prototype.createAxis = function(J, tt) {
  11892. return J = new j(this, q(tt.axis, { index: this[J].length, isX: J === "xAxis" })), et(tt.redraw, !0) && this.redraw(tt.animation), J;
  11893. }, at.prototype.showLoading = function(J) {
  11894. var tt = this, ot = tt.options, lt = ot.loading, pt = function() {
  11895. yt && W(yt, { left: tt.plotLeft + "px", top: tt.plotTop + "px", width: tt.plotWidth + "px", height: tt.plotHeight + "px" });
  11896. }, yt = tt.loadingDiv, vt = tt.loadingSpan;
  11897. yt || (tt.loadingDiv = yt = D("div", { className: "highcharts-loading highcharts-loading-hidden" }, null, tt.container)), vt || (tt.loadingSpan = vt = D("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: "" }), B(yt, { opacity: lt.style.opacity || 0.5 }, { duration: lt.showDuration || 0 }))), tt.loadingShown = !0, pt();
  11898. }, at.prototype.hideLoading = function() {
  11899. var J = this.options, tt = this.loadingDiv;
  11900. tt && (tt.className = "highcharts-loading highcharts-loading-hidden", this.styledMode || B(tt, { opacity: 0 }, { duration: J.loading.hideDuration || 100, complete: function() {
  11901. W(tt, { display: "none" });
  11902. } })), this.loadingShown = !1;
  11903. }, at.prototype.update = function(J, tt, ot, lt) {
  11904. var pt = this, yt = { credits: "addCredits", title: "setTitle", subtitle: "setSubtitle", caption: "setCaption" }, vt = J.isResponsiveOptions, Ct = [], Pt, At;
  11905. V(pt, "update", { options: J }), vt || pt.setResponsive(!1, !0), J = _(J, pt.options), pt.userOptions = q(pt.userOptions, J);
  11906. var St = J.chart;
  11907. if (St) {
  11908. 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) {
  11909. pt.propFromSeries();
  11910. var Dt = !0;
  11911. }
  11912. "alignTicks" in St && (Dt = !0), "events" in St && x(this, St), it(St, function(Lt, Nt) {
  11913. 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);
  11914. }), !pt.styledMode && St.style && pt.renderer.setStyle(pt.options.chart.style || {});
  11915. }
  11916. !pt.styledMode && J.colors && (this.options.colors = J.colors), J.time && (this.time === t && (this.time = new u(J.time)), q(
  11917. !0,
  11918. pt.options.time,
  11919. J.time
  11920. )), it(J, function(Lt, Nt) {
  11921. pt[Nt] && typeof pt[Nt].update == "function" ? pt[Nt].update(Lt, !1) : typeof pt[yt[Nt]] == "function" ? pt[yt[Nt]](Lt) : Nt !== "colors" && pt.collectionsWithUpdate.indexOf(Nt) === -1 && q(!0, pt.options[Nt], J[Nt]), Nt !== "chart" && pt.propsRequireUpdateSeries.indexOf(Nt) !== -1 && (Pt = !0);
  11922. }), this.collectionsWithUpdate.forEach(function(Lt) {
  11923. if (J[Lt]) {
  11924. var Nt = [];
  11925. pt[Lt].forEach(function(Et, Kt) {
  11926. Et.options.isInternal || Nt.push(et(Et.options.index, Kt));
  11927. }), gt(J[Lt]).forEach(function(Et, Kt) {
  11928. var Gt = P(Et.id), Wt;
  11929. Gt && (Wt = pt.get(Et.id)), !Wt && pt[Lt] && (Wt = pt[Lt][Nt ? Nt[Kt] : Kt]) && Gt && P(Wt.options.id) && (Wt = void 0), Wt && Wt.coll === Lt && (Wt.update(Et, !1), ot && (Wt.touched = !0)), !Wt && ot && pt.collectionsWithInit[Lt] && (pt.collectionsWithInit[Lt][0].apply(pt, [Et].concat(pt.collectionsWithInit[Lt][1] || []).concat([!1])).touched = !0);
  11930. }), ot && pt[Lt].forEach(function(Et) {
  11931. Et.touched || Et.options.isInternal ? delete Et.touched : Ct.push(Et);
  11932. });
  11933. }
  11934. }), Ct.forEach(function(Lt) {
  11935. Lt.chart && Lt.remove && Lt.remove(!1);
  11936. }), Dt && pt.axes.forEach(function(Lt) {
  11937. Lt.update({}, !1);
  11938. }), Pt && pt.getSeriesOrderByLinks().forEach(function(Lt) {
  11939. Lt.chart && Lt.update({}, !1);
  11940. }, this), Dt = St && St.width, St = St && ($(St.height) ? rt(St.height, Dt || pt.chartWidth) : St.height), At || G(Dt) && Dt !== pt.chartWidth || G(St) && St !== pt.chartHeight ? pt.setSize(Dt, St, lt) : et(tt, !0) && pt.redraw(lt), V(pt, "afterUpdate", { options: J, redraw: tt, animation: lt });
  11941. }, at.prototype.setSubtitle = function(J, tt) {
  11942. this.applyDescription("subtitle", J), this.layOutTitles(tt);
  11943. }, at.prototype.setCaption = function(J, tt) {
  11944. this.applyDescription("caption", J), this.layOutTitles(tt);
  11945. }, at.prototype.showResetZoom = function() {
  11946. function J() {
  11947. tt.zoomOut();
  11948. }
  11949. var tt = this, ot = o.lang, lt = tt.options.chart.resetZoomButton, pt = lt.theme, yt = pt.states, vt = lt.relativeTo === "chart" || lt.relativeTo === "spacingBox" ? null : "scrollablePlotBox";
  11950. V(this, "beforeShowResetZoom", null, function() {
  11951. 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);
  11952. }), V(this, "afterShowResetZoom");
  11953. }, at.prototype.zoomOut = function() {
  11954. V(this, "selection", { resetSelection: !0 }, this.zoom);
  11955. }, at.prototype.zoom = function(J) {
  11956. var tt = this, ot = tt.pointer, lt = tt.inverted ? ot.mouseDownX : ot.mouseDownY, pt = !1, yt;
  11957. !J || J.resetSelection ? (tt.axes.forEach(function(Ct) {
  11958. yt = Ct.zoom();
  11959. }), ot.initiated = !1) : J.xAxis.concat(J.yAxis).forEach(function(Ct) {
  11960. var Pt = Ct.axis, At = tt.inverted ? Pt.left : Pt.top, St = tt.inverted ? At + Pt.width : At + Pt.height, Dt = Pt.isXAxis, Lt = !1;
  11961. (!Dt && lt >= At && lt <= St || Dt || !P(lt)) && (Lt = !0), ot[Dt ? "zoomX" : "zoomY"] && Lt && (yt = Pt.zoom(Ct.min, Ct.max), Pt.displayBtn && (pt = !0));
  11962. });
  11963. var vt = tt.resetZoomButton;
  11964. pt && !vt ? tt.showResetZoom() : !pt && z(vt) && (tt.resetZoomButton = vt.destroy()), yt && tt.redraw(et(
  11965. tt.options.chart.animation,
  11966. J && J.animation,
  11967. 100 > tt.pointCount
  11968. ));
  11969. }, at.prototype.pan = function(J, tt) {
  11970. var ot = this, lt = ot.hoverPoints;
  11971. tt = typeof tt == "object" ? tt : { enabled: tt, type: "x" };
  11972. var pt = ot.options.chart, yt = ot.options.mapNavigation && ot.options.mapNavigation.enabled;
  11973. pt && pt.panning && (pt.panning = tt);
  11974. var vt = tt.type, Ct;
  11975. V(this, "pan", { originalEvent: J }, function() {
  11976. lt && lt.forEach(function(St) {
  11977. St.setState();
  11978. });
  11979. var Pt = ot.xAxis;
  11980. vt === "xy" ? Pt = Pt.concat(ot.yAxis) : vt === "y" && (Pt = ot.yAxis);
  11981. var At = {};
  11982. Pt.forEach(function(St) {
  11983. if (St.options.panningEnabled && !St.options.isInternal) {
  11984. var Dt = St.horiz, Lt = J[Dt ? "chartX" : "chartY"];
  11985. Dt = Dt ? "mouseDownX" : "mouseDownY";
  11986. var Nt = ot[Dt], Et = St.minPointOffset || 0, Kt = St.reversed && !ot.inverted || !St.reversed && ot.inverted ? -1 : 1, Gt = St.getExtremes(), Wt = St.toValue(Nt - Lt, !0) + Et * Kt, Jt = St.toValue(Nt + St.len - Lt, !0) - (Et * Kt || St.isXAxis && St.pointRangePadding || 0), be = Jt < Wt;
  11987. Kt = St.hasVerticalPanning(), Nt = be ? Jt : Wt, Wt = be ? Wt : Jt;
  11988. var zt = St.panningState;
  11989. !Kt || St.isXAxis || zt && !zt.isDirty || St.series.forEach(function(Vt) {
  11990. var Me = Vt.getProcessedData(!0);
  11991. Me = Vt.getExtremes(Me.yData, !0), zt || (zt = { startMin: Number.MAX_VALUE, startMax: -Number.MAX_VALUE }), G(Me.dataMin) && G(Me.dataMax) && (zt.startMin = Math.min(et(Vt.options.threshold, 1 / 0), Me.dataMin, zt.startMin), zt.startMax = Math.max(et(Vt.options.threshold, -1 / 0), Me.dataMax, zt.startMax));
  11992. }), Kt = Math.min(et(zt && zt.startMin, Gt.dataMin), Et ? Gt.min : St.toValue(St.toPixels(Gt.min) - St.minPixelPadding)), Jt = Math.max(et(zt && zt.startMax, Gt.dataMax), Et ? Gt.max : St.toValue(St.toPixels(Gt.max) + St.minPixelPadding)), St.panningState = zt, St.isOrdinal || (Et = Kt - Nt, 0 < Et && (Wt += Et, Nt = Kt), Et = Wt - Jt, 0 < Et && (Wt = Jt, Nt -= Et), St.series.length && Nt !== Gt.min && Wt !== Gt.max && Nt >= Kt && Wt <= Jt && (St.setExtremes(
  11993. Nt,
  11994. Wt,
  11995. !1,
  11996. !1,
  11997. { trigger: "pan" }
  11998. ), ot.resetZoomButton || yt || Nt === Kt || Wt === Jt || !vt.match("y") || (ot.showResetZoom(), St.displayBtn = !1), Ct = !0), At[Dt] = Lt);
  11999. }
  12000. }), it(At, function(St, Dt) {
  12001. ot[Dt] = St;
  12002. }), Ct && ot.redraw(!1), W(ot.container, { cursor: "move" });
  12003. });
  12004. }, at;
  12005. }(), L(y.prototype, {
  12006. callbacks: [],
  12007. collectionsWithInit: { xAxis: [y.prototype.addAxis, [!0]], yAxis: [y.prototype.addAxis, [!1]], series: [y.prototype.addSeries] },
  12008. collectionsWithUpdate: ["xAxis", "yAxis", "series"],
  12009. propsRequireDirtyBox: "backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
  12010. propsRequireReflow: "margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
  12011. propsRequireUpdateSeries: "chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")
  12012. }), y;
  12013. }), E(l, "Core/Legend/LegendSymbol.js", [l["Core/Utilities.js"]], function(y) {
  12014. var j = y.merge, I = y.pick, Z;
  12015. return function(H) {
  12016. H.drawLineMarker = function(U) {
  12017. var F = this.options, N = U.symbolWidth, R = U.symbolHeight, S = R / 2, v = this.chart.renderer, d = this.legendGroup;
  12018. U = U.baseline - Math.round(0.3 * U.fontMetrics.b);
  12019. var u = {}, A = F.marker;
  12020. this.chart.styledMode || (u = { "stroke-width": F.lineWidth || 0 }, F.dashStyle && (u.dashstyle = F.dashStyle)), this.legendLine = v.path([["M", 0, U], ["L", N, U]]).addClass("highcharts-graph").attr(u).add(d), A && A.enabled !== !1 && N && (F = Math.min(I(A.radius, S), S), this.symbol.indexOf("url") === 0 && (A = j(A, { width: R, height: R }), F = 0), this.legendSymbol = N = v.symbol(this.symbol, N / 2 - F, U - F, 2 * F, 2 * F, A).addClass("highcharts-point").add(d), N.isMarker = !0);
  12021. }, H.drawRectangle = function(U, F) {
  12022. var N = U.symbolHeight, R = U.options.squareSymbol;
  12023. F.legendSymbol = this.chart.renderer.rect(R ? (U.symbolWidth - N) / 2 : 0, U.baseline - N + 1, R ? N : U.symbolWidth, N, I(U.options.symbolRadius, N / 2)).addClass("highcharts-point").attr({ zIndex: 3 }).add(F.legendGroup);
  12024. };
  12025. }(Z || (Z = {})), Z;
  12026. }), E(l, "Core/Series/SeriesDefaults.js", [], function() {
  12027. return { lineWidth: 2, allowPointSelect: !1, crisp: !0, showCheckbox: !1, animation: { duration: 1e3 }, events: {}, marker: { enabledThreshold: 2, lineColor: "#ffffff", lineWidth: 0, radius: 4, states: {
  12028. normal: { animation: !0 },
  12029. hover: { animation: { duration: 50 }, enabled: !0, radiusPlus: 2, lineWidthPlus: 1 },
  12030. select: { fillColor: "#cccccc", lineColor: "#000000", lineWidth: 2 }
  12031. } }, point: { events: {} }, dataLabels: { animation: {}, align: "center", defer: !0, formatter: function() {
  12032. var y = this.series.chart.numberFormatter;
  12033. return typeof this.y != "number" ? "" : y(this.y, -1);
  12034. }, 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: {
  12035. normal: { animation: !0 },
  12036. hover: { animation: { duration: 50 }, lineWidthPlus: 1, marker: {}, halo: { size: 10, opacity: 0.25 } },
  12037. select: { animation: { duration: 0 } },
  12038. inactive: { animation: { duration: 50 }, opacity: 0.2 }
  12039. }, stickyTracking: !0, turboThreshold: 1e3, findNearestPointBy: "x" };
  12040. }), E(l, "Core/Series/Series.js", [
  12041. l["Core/Animation/AnimationUtilities.js"],
  12042. l["Core/DefaultOptions.js"],
  12043. l["Core/Foundation.js"],
  12044. l["Core/Globals.js"],
  12045. l["Core/Legend/LegendSymbol.js"],
  12046. l["Core/Series/Point.js"],
  12047. l["Core/Series/SeriesDefaults.js"],
  12048. l["Core/Series/SeriesRegistry.js"],
  12049. l["Core/Renderer/SVG/SVGElement.js"],
  12050. l["Core/Utilities.js"]
  12051. ], function(y, j, I, Z, H, U, F, N, R, S) {
  12052. var v = y.animObject, d = y.setAnimation, u = j.defaultOptions, A = I.registerEventOptions, O = Z.hasTouch, B = Z.svg, C = Z.win, b = N.seriesTypes, w = S.addEvent, x = S.arrayMax, a = S.arrayMin, c = S.clamp, p = S.cleanRecursively, i = S.correctFloat, h = S.defined, o = S.erase, t = S.error, s = S.extend, n = S.find, T = S.fireEvent, _ = S.getNestedProperty, D = S.isArray, W = S.isNumber, P = S.isString, X = S.merge, g = S.objectEach, m = S.pick, L = S.removeEvent, Y = S.splat, V = S.syncTimeout;
  12053. return y = function() {
  12054. function Q() {
  12055. 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;
  12056. }
  12057. return Q.prototype.init = function(k, G) {
  12058. T(this, "init", { options: G });
  12059. var z = this, $ = k.series;
  12060. this.eventsToUnbind = [], z.chart = k, z.options = z.setOptions(G), G = z.options, z.linkedSeries = [], z.bindAxes(), s(z, { name: G.name, state: "", visible: G.visible !== !1, selected: G.selected === !0 }), A(this, G);
  12061. var q = G.events;
  12062. (q && q.click || G.point && G.point.events && G.point.events.click || G.allowPointSelect) && (k.runTrackerClick = !0), z.getColor(), z.getSymbol(), z.parallelArrays.forEach(function(et) {
  12063. z[et + "Data"] || (z[et + "Data"] = []);
  12064. }), z.isCartesian && (k.hasCartesianSeries = !0);
  12065. var it;
  12066. $.length && (it = $[$.length - 1]), z._i = m(it && it._i, -1) + 1, z.opacity = z.options.opacity, k.orderSeries(this.insert($)), G.dataSorting && G.dataSorting.enabled ? z.setDataSortingOptions() : z.points || z.data || z.setData(G.data, !1), T(this, "afterInit");
  12067. }, Q.prototype.is = function(k) {
  12068. return b[k] && this instanceof b[k];
  12069. }, Q.prototype.insert = function(k) {
  12070. var G = this.options.index, z;
  12071. if (W(G)) {
  12072. for (z = k.length; z--; )
  12073. if (G >= m(k[z].options.index, k[z]._i)) {
  12074. k.splice(z + 1, 0, this);
  12075. break;
  12076. }
  12077. z === -1 && k.unshift(this), z += 1;
  12078. } else
  12079. k.push(this);
  12080. return m(z, k.length - 1);
  12081. }, Q.prototype.bindAxes = function() {
  12082. var k = this, G = k.options, z = k.chart, $;
  12083. T(this, "bindAxes", null, function() {
  12084. (k.axisTypes || []).forEach(function(q) {
  12085. var it = 0;
  12086. z[q].forEach(function(et) {
  12087. $ = et.options, (G[q] === it && !$.isInternal || typeof G[q] < "u" && G[q] === $.id || typeof G[q] > "u" && $.index === 0) && (k.insert(et.series), k[q] = et, et.isDirty = !0), $.isInternal || it++;
  12088. }), k[q] || k.optionalAxis === q || t(18, !0, z);
  12089. });
  12090. }), T(this, "afterBindAxes");
  12091. }, Q.prototype.updateParallelArrays = function(k, G) {
  12092. var z = k.series, $ = arguments, q = W(G) ? function(it) {
  12093. var et = it === "y" && z.toYData ? z.toYData(k) : k[it];
  12094. z[it + "Data"][G] = et;
  12095. } : function(it) {
  12096. Array.prototype[G].apply(z[it + "Data"], Array.prototype.slice.call($, 2));
  12097. };
  12098. z.parallelArrays.forEach(q);
  12099. }, Q.prototype.hasData = function() {
  12100. return this.visible && typeof this.dataMax < "u" && typeof this.dataMin < "u" || this.visible && this.yData && 0 < this.yData.length;
  12101. }, Q.prototype.autoIncrement = function(k) {
  12102. var G = this.options, z = G.pointIntervalUnit, $ = G.relativeXValue, q = this.chart.time, it = this.xIncrement, et;
  12103. return it = m(it, G.pointStart, 0), this.pointInterval = et = m(this.pointInterval, G.pointInterval, 1), $ && W(k) && (et *= k), z && (G = new q.Date(it), z === "day" ? q.set("Date", G, q.get("Date", G) + et) : z === "month" ? q.set("Month", G, q.get("Month", G) + et) : z === "year" && q.set("FullYear", G, q.get("FullYear", G) + et), et = G.getTime() - it), $ && W(k) ? it + et : (this.xIncrement = it + et, it);
  12104. }, Q.prototype.setDataSortingOptions = function() {
  12105. var k = this.options;
  12106. s(this, { requireSorting: !1, sorted: !1, enabledDataSorting: !0, allowDG: !1 }), h(k.pointRange) || (k.pointRange = 1);
  12107. }, Q.prototype.setOptions = function(k) {
  12108. var G = this.chart, z = G.options, $ = z.plotOptions, q = G.userOptions || {};
  12109. k = X(k), G = G.styledMode;
  12110. var it = { plotOptions: $, userOptions: k };
  12111. T(this, "setOptions", it);
  12112. var et = it.plotOptions[this.type], nt = q.plotOptions || {};
  12113. return this.userOptions = it.userOptions, q = X(et, $.series, q.plotOptions && q.plotOptions[this.type], k), this.tooltipOptions = X(u.tooltip, u.plotOptions.series && u.plotOptions.series.tooltip, u.plotOptions[this.type].tooltip, z.tooltip.userOptions, $.series && $.series.tooltip, $[this.type].tooltip, k.tooltip), this.stickyTracking = m(k.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, $ = this.zones = (q.zones || []).slice(), !q.negativeColor && !q.negativeFillColor || q.zones || (z = { value: q[this.zoneAxis + "Threshold"] || q.threshold || 0, className: "highcharts-negative" }, G || (z.color = q.negativeColor, z.fillColor = q.negativeFillColor), $.push(z)), $.length && h($[$.length - 1].value) && $.push(G ? {} : { color: this.color, fillColor: this.fillColor }), T(this, "afterSetOptions", { options: q }), q;
  12114. }, Q.prototype.getName = function() {
  12115. return m(this.options.name, "Series " + (this.index + 1));
  12116. }, Q.prototype.getCyclic = function(k, G, z) {
  12117. var $ = this.chart, q = this.userOptions, it = k + "Index", et = k + "Counter", nt = z ? z.length : m($.options.chart[k + "Count"], $[k + "Count"]);
  12118. if (!G) {
  12119. var rt = m(q[it], q["_" + it]);
  12120. h(rt) || ($.series.length || ($[et] = 0), q["_" + it] = rt = $[et] % nt, $[et] += 1), z && (G = z[rt]);
  12121. }
  12122. typeof rt < "u" && (this[it] = rt), this[k] = G;
  12123. }, Q.prototype.getColor = function() {
  12124. this.chart.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "#cccccc" : this.getCyclic("color", this.options.color || u.plotOptions[this.type].color, this.chart.options.colors);
  12125. }, Q.prototype.getPointsCollection = function() {
  12126. return (this.hasGroupedData ? this.points : this.data) || [];
  12127. }, Q.prototype.getSymbol = function() {
  12128. this.getCyclic("symbol", this.options.marker.symbol, this.chart.options.symbols);
  12129. }, Q.prototype.findPointIndex = function(k, G) {
  12130. var z = k.id, $ = k.x, q = this.points, it = this.options.dataSorting, et, nt;
  12131. if (z)
  12132. it = this.chart.get(z), it instanceof U && (et = it);
  12133. else if ((this.linkedParent || this.enabledDataSorting || this.options.relativeXValue) && (et = function(ct) {
  12134. return !ct.touched && ct.index === k.index;
  12135. }, it && it.matchByName ? et = function(ct) {
  12136. return !ct.touched && ct.name === k.name;
  12137. } : this.options.relativeXValue && (et = function(ct) {
  12138. return !ct.touched && ct.options.x === k.x;
  12139. }), et = n(q, et), !et))
  12140. return;
  12141. if (et) {
  12142. var rt = et && et.index;
  12143. typeof rt < "u" && (nt = !0);
  12144. }
  12145. return typeof rt > "u" && W($) && (rt = this.xData.indexOf($, G)), 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;
  12146. }, Q.prototype.updateData = function(k, G) {
  12147. var z = this.options, $ = z.dataSorting, q = this.points, it = [], et = this.requireSorting, nt = k.length === q.length, rt, ct, gt, dt = !0;
  12148. if (this.xIncrement = null, k.forEach(function(ht, at) {
  12149. var J = h(ht) && this.pointClass.prototype.optionsToObject.call({ series: this }, ht) || {}, tt = J.x;
  12150. J.id || W(tt) ? (J = this.findPointIndex(J, gt), J === -1 || typeof J > "u" ? it.push(ht) : q[J] && ht !== z.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 || $ && $.enabled || this.hasDerivedData) && (rt = !0)) : it.push(ht);
  12151. }, this), rt)
  12152. for (k = q.length; k--; )
  12153. (ct = q[k]) && !ct.touched && ct.remove && ct.remove(!1, G);
  12154. else
  12155. !nt || $ && $.enabled ? dt = !1 : (k.forEach(function(ht, at) {
  12156. ht !== q[at].y && q[at].update && q[at].update(
  12157. ht,
  12158. !1,
  12159. null,
  12160. !1
  12161. );
  12162. }), it.length = 0);
  12163. return q.forEach(function(ht) {
  12164. ht && (ht.touched = !1);
  12165. }), dt ? (it.forEach(function(ht) {
  12166. this.addPoint(ht, !1, null, null, !1);
  12167. }, this), this.xIncrement === null && this.xData && this.xData.length && (this.xIncrement = x(this.xData), this.autoIncrement()), !0) : !1;
  12168. }, Q.prototype.setData = function(k, G, z, $) {
  12169. 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;
  12170. J = J && J.length;
  12171. var tt = nt.keys, ot, lt = 0, pt = 1, yt = null;
  12172. k = k || [];
  12173. var vt = k.length;
  12174. if (G = m(G, !0), ct && ct.enabled && (k = this.sortData(k)), $ !== !1 && vt && et && !q.cropped && !q.hasGroupedData && q.visible && !q.isSeriesBoosting && (ot = this.updateData(k, z)), !ot) {
  12175. if (q.xIncrement = null, q.colorCounter = 0, this.parallelArrays.forEach(function(Ct) {
  12176. q[Ct + "Data"].length = 0;
  12177. }), dt && vt > dt)
  12178. if (yt = q.getFirstValidPoint(k), W(yt))
  12179. for (z = 0; z < vt; z++)
  12180. ht[z] = this.autoIncrement(), at[z] = k[z];
  12181. else if (D(yt))
  12182. if (J)
  12183. if (yt.length === J)
  12184. for (z = 0; z < vt; z++)
  12185. ht[z] = this.autoIncrement(), at[z] = k[z];
  12186. else
  12187. for (z = 0; z < vt; z++)
  12188. $ = k[z], ht[z] = $[0], at[z] = $.slice(
  12189. 1,
  12190. J + 1
  12191. );
  12192. 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)
  12193. for (z = 0; z < vt; z++)
  12194. ht[z] = this.autoIncrement(), at[z] = k[z][pt];
  12195. else
  12196. for (z = 0; z < vt; z++)
  12197. $ = k[z], ht[z] = $[lt], at[z] = $[pt];
  12198. else
  12199. t(12, !1, rt);
  12200. else
  12201. for (z = 0; z < vt; z++)
  12202. typeof k[z] < "u" && ($ = { series: q }, q.pointClass.prototype.applyOptions.apply($, [k[z]]), q.updateParallelArrays($, z));
  12203. for (at && P(at[0]) && t(14, !0, rt), q.data = [], q.options.data = q.userOptions.data = k, z = et; z--; )
  12204. it[z] && it[z].destroy && it[z].destroy();
  12205. gt && (gt.minRange = gt.userMinRange), q.isDirty = rt.isDirtyBox = !0, q.isDirtyData = !!it, z = !1;
  12206. }
  12207. nt.legendType === "point" && (this.processData(), this.generatePoints()), G && rt.redraw(z);
  12208. }, Q.prototype.sortData = function(k) {
  12209. var G = this, z = G.options.dataSorting.sortKey || "y", $ = function(q, it) {
  12210. return h(it) && q.pointClass.prototype.optionsToObject.call({ series: q }, it) || {};
  12211. };
  12212. return k.forEach(function(q, it) {
  12213. k[it] = $(G, q), k[it].index = it;
  12214. }, this), k.concat().sort(function(q, it) {
  12215. return q = _(z, q), it = _(z, it), it < q ? -1 : it > q ? 1 : 0;
  12216. }).forEach(function(q, it) {
  12217. q.x = it;
  12218. }, this), G.linkedSeries && G.linkedSeries.forEach(function(q) {
  12219. var it = q.options, et = it.data;
  12220. it.dataSorting && it.dataSorting.enabled || !et || (et.forEach(function(nt, rt) {
  12221. et[rt] = $(q, nt), k[rt] && (et[rt].x = k[rt].x, et[rt].index = rt);
  12222. }), q.setData(et, !1));
  12223. }), k;
  12224. }, Q.prototype.getProcessedData = function(k) {
  12225. var G = this.xAxis, z = this.options, $ = z.cropThreshold, q = k || this.getExtremesFromAll || z.getExtremesFromAll, it = this.isCartesian;
  12226. k = G && G.val2lin, z = !(!G || !G.logarithmic);
  12227. var et = 0, nt = this.xData, rt = this.yData, ct = this.requireSorting, gt = !1, dt = nt.length;
  12228. if (G) {
  12229. gt = G.getExtremes();
  12230. var ht = gt.min, at = gt.max;
  12231. gt = G.categories && !G.names.length;
  12232. }
  12233. if (it && this.sorted && !q && (!$ || dt > $ || this.forceCrop)) {
  12234. if (nt[dt - 1] < ht || nt[0] > at)
  12235. nt = [], rt = [];
  12236. else if (this.yData && (nt[0] < ht || nt[dt - 1] > at)) {
  12237. var J = this.cropData(this.xData, this.yData, ht, at);
  12238. nt = J.xData, rt = J.yData, et = J.start, J = !0;
  12239. }
  12240. }
  12241. for ($ = nt.length || 1; --$; )
  12242. if (G = z ? k(nt[$]) - k(nt[$ - 1]) : nt[$] - nt[$ - 1], 0 < G && (typeof tt > "u" || G < tt))
  12243. var tt = G;
  12244. else
  12245. 0 > G && ct && !gt && (t(15, !1, this.chart), ct = !1);
  12246. return { xData: nt, yData: rt, cropped: J, cropStart: et, closestPointRange: tt };
  12247. }, Q.prototype.processData = function(k) {
  12248. var G = this.xAxis;
  12249. if (this.isCartesian && !this.isDirty && !G.isDirty && !this.yAxis.isDirty && !k)
  12250. return !1;
  12251. k = this.getProcessedData(), this.cropped = k.cropped, this.cropStart = k.cropStart, this.processedXData = k.xData, this.processedYData = k.yData, this.closestPointRange = this.basePointRange = k.closestPointRange, T(this, "afterProcessData");
  12252. }, Q.prototype.cropData = function(k, G, z, $, q) {
  12253. var it = k.length, et, nt = 0, rt = it;
  12254. for (q = m(q, this.cropShoulder), et = 0; et < it; et++)
  12255. if (k[et] >= z) {
  12256. nt = Math.max(0, et - q);
  12257. break;
  12258. }
  12259. for (z = et; z < it; z++)
  12260. if (k[z] > $) {
  12261. rt = z + q;
  12262. break;
  12263. }
  12264. return { xData: k.slice(nt, rt), yData: G.slice(
  12265. nt,
  12266. rt
  12267. ), start: nt, end: rt };
  12268. }, Q.prototype.generatePoints = function() {
  12269. var k = this.options, G = k.data, z = this.processedXData, $ = this.processedYData, q = this.pointClass, it = z.length, et = this.cropStart || 0, nt = this.hasGroupedData, rt = k.keys, ct = [];
  12270. k = k.dataGrouping && k.dataGrouping.groupAll ? et : 0;
  12271. var gt, dt, ht = this.data;
  12272. if (!ht && !nt) {
  12273. var at = [];
  12274. at.length = G.length, ht = this.data = at;
  12275. }
  12276. for (rt && nt && (this.options.keys = !1), dt = 0; dt < it; dt++) {
  12277. if (at = et + dt, nt) {
  12278. var J = new q().init(this, [z[dt]].concat(Y($[dt])));
  12279. J.dataGroup = this.groupMap[k + dt], J.dataGroup.options && (J.options = J.dataGroup.options, s(J, J.dataGroup.options), delete J.dataLabels);
  12280. } else
  12281. (J = ht[at]) || typeof G[at] > "u" || (ht[at] = J = new q().init(this, G[at], z[dt]));
  12282. J && (J.index = nt ? k + dt : at, ct[dt] = J);
  12283. }
  12284. if (this.options.keys = rt, ht && (it !== (gt = ht.length) || nt))
  12285. for (dt = 0; dt < gt; dt++)
  12286. dt !== et || nt || (dt += it), ht[dt] && (ht[dt].destroyElements(), ht[dt].plotX = void 0);
  12287. this.data = ht, this.points = ct, T(this, "afterGeneratePoints");
  12288. }, Q.prototype.getXExtremes = function(k) {
  12289. return { min: a(k), max: x(k) };
  12290. }, Q.prototype.getExtremes = function(k, G) {
  12291. var z = this.xAxis, $ = this.yAxis, q = this.processedXData || this.xData, it = [], et = this.requireSorting ? this.cropShoulder : 0;
  12292. $ = $ ? $.positiveValuesOnly : !1;
  12293. var nt, rt = 0, ct = 0, gt = 0;
  12294. k = k || this.stackedYData || this.processedYData || [];
  12295. var dt = k.length;
  12296. if (z) {
  12297. var ht = z.getExtremes();
  12298. rt = ht.min, ct = ht.max;
  12299. }
  12300. for (nt = 0; nt < dt; nt++) {
  12301. var at = q[nt];
  12302. ht = k[nt];
  12303. var J = (W(ht) || D(ht)) && (ht.length || 0 < ht || !$);
  12304. if (at = G || this.getExtremesFromAll || this.options.getExtremesFromAll || this.cropped || !z || (q[nt + et] || at) >= rt && (q[nt - et] || at) <= ct, J && at)
  12305. if (J = ht.length)
  12306. for (; J--; )
  12307. W(ht[J]) && (it[gt++] = ht[J]);
  12308. else
  12309. it[gt++] = ht;
  12310. }
  12311. return k = { activeYData: it, dataMin: a(it), dataMax: x(it) }, T(this, "afterGetExtremes", { dataExtremes: k }), k;
  12312. }, Q.prototype.applyExtremes = function() {
  12313. var k = this.getExtremes();
  12314. return this.dataMin = k.dataMin, this.dataMax = k.dataMax, k;
  12315. }, Q.prototype.getFirstValidPoint = function(k) {
  12316. for (var G = k.length, z = 0, $ = null; $ === null && z < G; )
  12317. $ = k[z], z++;
  12318. return $;
  12319. }, Q.prototype.translate = function() {
  12320. this.processedXData || this.processData(), this.generatePoints();
  12321. var k = this.options, G = k.stacking, z = this.xAxis, $ = z.categories, q = this.enabledDataSorting, it = this.yAxis, et = this.points, nt = et.length, rt = this.pointPlacementToXValue(), ct = !!rt, gt = k.threshold, dt = k.startFromThreshold ? gt : 0, ht = this.zoneAxis || "y", at, J, tt = Number.MAX_VALUE;
  12322. for (at = 0; at < nt; at++) {
  12323. var ot = et[at], lt = ot.x, pt = void 0, yt = void 0, vt = ot.y, Ct = ot.low, Pt = G && it.stacking && it.stacking.stacks[(this.negStacks && vt < (dt ? 0 : gt) ? "-" : "") + this.stackKey];
  12324. if ((it.positiveValuesOnly && !it.validatePositiveValue(vt) || z.positiveValuesOnly && !z.validatePositiveValue(lt)) && (ot.isNull = !0), ot.plotX = J = i(c(z.translate(lt, 0, 0, 0, 1, rt, this.type === "flags"), -1e5, 1e5)), G && this.visible && Pt && Pt[lt]) {
  12325. var At = this.getStackIndicator(
  12326. At,
  12327. lt,
  12328. this.index
  12329. );
  12330. ot.isNull || (pt = Pt[lt], yt = pt.points[At.key]);
  12331. }
  12332. if (D(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 = h(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(
  12333. pt,
  12334. -1e5,
  12335. 1e5
  12336. ))), ot.isInside = this.isPointInside(ot), ot.clientX = ct ? i(z.translate(lt, 0, 0, 0, 1, rt)) : J, ot.negative = ot[ht] < (k[ht + "Threshold"] || gt || 0), ot.category = $ && typeof $[ot.x] < "u" ? $[ot.x] : ot.x, !ot.isNull && ot.visible !== !1) {
  12337. typeof St < "u" && (tt = Math.min(tt, Math.abs(J - St)));
  12338. var St = J;
  12339. }
  12340. ot.zone = this.zones.length ? ot.getZone() : void 0, !ot.graphic && this.group && q && (ot.isNew = !0);
  12341. }
  12342. this.closestPointRangePx = tt, T(this, "afterTranslate");
  12343. }, Q.prototype.getValidPoints = function(k, G, z) {
  12344. var $ = this.chart;
  12345. return (k || this.points || []).filter(function(q) {
  12346. return G && !$.isInsidePlot(q.plotX, q.plotY, { inverted: $.inverted }) ? !1 : q.visible !== !1 && (z || !q.isNull);
  12347. });
  12348. }, Q.prototype.getClipBox = function() {
  12349. var k = this.chart, G = this.xAxis, z = this.yAxis, $ = X(k.clipBox);
  12350. return G && G.len !== k.plotSizeX && ($.width = G.len), z && z.len !== k.plotSizeY && ($.height = z.len), $;
  12351. }, Q.prototype.getSharedClipKey = function() {
  12352. return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0);
  12353. }, Q.prototype.setClip = function() {
  12354. var k = this.chart, G = this.group, z = this.markerGroup, $ = k.sharedClips;
  12355. k = k.renderer;
  12356. var q = this.getClipBox(), it = this.getSharedClipKey(), et = $[it];
  12357. et ? et.animate(q) : $[it] = et = k.clipRect(q), G && G.clip(this.options.clip === !1 ? void 0 : et), z && z.clip();
  12358. }, Q.prototype.animate = function(k) {
  12359. var G = this.chart, z = this.group, $ = this.markerGroup, q = G.inverted, it = v(this.options.animation), et = [this.getSharedClipKey(), it.duration, it.easing, it.defer].join(), nt = G.sharedClips[et], rt = G.sharedClips[et + "m"];
  12360. if (k && z)
  12361. it = this.getClipBox(), nt ? nt.attr("height", it.height) : (it.width = 0, q && (it.x = G.plotHeight), nt = G.renderer.clipRect(it), G.sharedClips[et] = nt, rt = G.renderer.clipRect({ x: q ? (G.plotSizeX || 0) + 99 : -99, y: q ? -G.plotLeft : -G.plotTop, width: 99, height: q ? G.chartWidth : G.chartHeight }), G.sharedClips[et + "m"] = rt), z.clip(nt), $ && $.clip(rt);
  12362. else if (nt && !nt.hasClass("highcharts-animating")) {
  12363. G = this.getClipBox();
  12364. var ct = it.step;
  12365. $ && $.element.childNodes.length && (it.step = function(gt, dt) {
  12366. ct && ct.apply(dt, arguments), rt && rt.element && rt.attr(dt.prop, dt.prop === "width" ? gt + 99 : gt);
  12367. }), nt.addClass("highcharts-animating").animate(G, it);
  12368. }
  12369. }, Q.prototype.afterAnimate = function() {
  12370. var k = this;
  12371. this.setClip(), g(
  12372. this.chart.sharedClips,
  12373. function(G, z, $) {
  12374. G && !k.chart.container.querySelector('[clip-path="url(#' + G.id + ')"]') && (G.destroy(), delete $[z]);
  12375. }
  12376. ), this.finishedAnimating = !0, T(this, "afterAnimate");
  12377. }, Q.prototype.drawPoints = function() {
  12378. var k = this.points, G = this.chart, z = this.options.marker, $ = this[this.specialGroup] || this.markerGroup, q = this.xAxis, it = m(z.enabled, !q || q.isRadial ? !0 : null, this.closestPointRangePx >= z.enabledThreshold * z.radius), et, nt;
  12379. if (z.enabled !== !1 || this._hasPointMarkers)
  12380. for (et = 0; et < k.length; et++) {
  12381. var rt = k[et], ct = (nt = rt.graphic) ? "animate" : "attr", gt = rt.marker || {}, dt = !!rt.marker;
  12382. if ((it && typeof gt.enabled > "u" || gt.enabled) && !rt.isNull && rt.visible !== !1) {
  12383. var ht = m(gt.symbol, this.symbol, "rect"), at = this.markerAttribs(rt, rt.selected && "select");
  12384. this.enabledDataSorting && (rt.startXPos = q.reversed ? -(at.width || 0) : q.width);
  12385. var J = rt.isInside !== !1;
  12386. nt ? nt[J ? "show" : "hide"](J).animate(at) : J && (0 < (at.width || 0) || rt.hasImage) && (rt.graphic = nt = G.renderer.symbol(ht, at.x, at.y, at.width, at.height, dt ? gt : z).add($), this.enabledDataSorting && G.hasRendered && (nt.attr({ x: rt.startXPos }), ct = "animate")), nt && ct === "animate" && nt[J ? "show" : "hide"](J).animate(at), nt && !G.styledMode && nt[ct](this.pointAttribs(rt, rt.selected && "select")), nt && nt.addClass(rt.getClassName(), !0);
  12387. } else
  12388. nt && (rt.graphic = nt.destroy());
  12389. }
  12390. }, Q.prototype.markerAttribs = function(k, G) {
  12391. var z = this.options, $ = z.marker, q = k.marker || {}, it = q.symbol || $.symbol, et = m(q.radius, $.radius);
  12392. return G && ($ = $.states[G], G = q.states && q.states[G], et = m(G && G.radius, $ && $.radius, et + ($ && $.radiusPlus || 0))), k.hasImage = it && it.indexOf("url") === 0, k.hasImage && (et = 0), k = { x: z.crisp ? Math.floor(k.plotX - et) : k.plotX - et, y: k.plotY - et }, et && (k.width = k.height = 2 * et), k;
  12393. }, Q.prototype.pointAttribs = function(k, G) {
  12394. var z = this.options.marker, $ = k && k.options, q = $ && $.marker || {}, it = $ && $.color, et = k && k.color, nt = k && k.zone && k.zone.color, rt = this.color;
  12395. return k = m(q.lineWidth, z.lineWidth), $ = 1, rt = it || nt || et || rt, it = q.fillColor || z.fillColor || rt, et = q.lineColor || z.lineColor || rt, G = G || "normal", z = z.states[G] || {}, G = q.states && q.states[G] || {}, k = m(G.lineWidth, z.lineWidth, k + m(G.lineWidthPlus, z.lineWidthPlus, 0)), it = G.fillColor || z.fillColor || it, et = G.lineColor || z.lineColor || et, $ = m(G.opacity, z.opacity, $), { stroke: et, "stroke-width": k, fill: it, opacity: $ };
  12396. }, Q.prototype.destroy = function(k) {
  12397. var G = this, z = G.chart, $ = /AppleWebKit\/533/.test(C.navigator.userAgent), q = G.data || [], it, et, nt, rt;
  12398. for (T(G, "destroy"), this.removeEvents(k), (G.axisTypes || []).forEach(function(ct) {
  12399. (rt = G[ct]) && rt.series && (o(rt.series, G), rt.isDirty = rt.forceRedraw = !0);
  12400. }), G.legendItem && G.chart.legend.destroyItem(G), et = q.length; et--; )
  12401. (nt = q[et]) && nt.destroy && nt.destroy();
  12402. G.clips && G.clips.forEach(function(ct) {
  12403. return ct.destroy();
  12404. }), S.clearTimeout(G.animationTimeout), g(G, function(ct, gt) {
  12405. ct instanceof R && !ct.survive && (it = $ && gt === "group" ? "hide" : "destroy", ct[it]());
  12406. }), z.hoverSeries === G && (z.hoverSeries = void 0), o(z.series, G), z.orderSeries(), g(G, function(ct, gt) {
  12407. k && gt === "hcEvents" || delete G[gt];
  12408. });
  12409. }, Q.prototype.applyZones = function() {
  12410. var k = this, G = this.chart, z = G.renderer, $ = this.zones, q = this.clips || [], it = this.graph, et = this.area, nt = Math.max(G.chartWidth, G.chartHeight), rt = this[(this.zoneAxis || "y") + "Axis"], ct = G.inverted, gt, dt, ht, at, J, tt, ot, lt, pt = !1;
  12411. if ($.length && (it || et) && rt && typeof rt.min < "u") {
  12412. var yt = rt.reversed, vt = rt.horiz;
  12413. it && !this.showLine && it.hide(), et && et.hide();
  12414. var Ct = rt.getExtremes();
  12415. $.forEach(function(Pt, At) {
  12416. gt = yt ? vt ? G.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 = G.plotHeight - ht.x)) : (ht = { x: 0, y: ct ? tt : J, width: nt, height: at }, vt && (ht.y = G.plotWidth - ht.y)), ct && z.isVML && (ht = rt.isXAxis ? {
  12417. x: 0,
  12418. y: yt ? J : tt,
  12419. height: ht.width,
  12420. width: G.chartWidth
  12421. } : { x: ht.y - G.plotLeft - G.spacingBox.x, y: 0, width: ht.height, height: G.chartHeight }), q[At] ? q[At].animate(ht) : q[At] = z.clipRect(ht), ot = k["zone-area-" + At], lt = k["zone-graph-" + At], it && lt && lt.clip(q[At]), et && ot && ot.clip(q[At]), pt = Pt.value > Ct.max, k.resetZones && dt === 0 && (dt = void 0);
  12422. }), this.clips = q;
  12423. } else
  12424. k.visible && (it && it.show(!0), et && et.show(!0));
  12425. }, Q.prototype.invertGroups = function(k) {
  12426. function G() {
  12427. ["group", "markerGroup"].forEach(function(q) {
  12428. z[q] && ($.renderer.isVML && z[q].attr({ width: z.yAxis.len, height: z.xAxis.len }), z[q].width = z.yAxis.len, z[q].height = z.xAxis.len, z[q].invert(z.isRadialSeries ? !1 : k));
  12429. });
  12430. }
  12431. var z = this, $ = z.chart;
  12432. z.xAxis && (z.eventsToUnbind.push(w($, "resize", G)), G(), z.invertGroups = G);
  12433. }, Q.prototype.plotGroup = function(k, G, z, $, q) {
  12434. var it = this[k], et = !it;
  12435. return z = { visibility: z, zIndex: $ || 0.1 }, typeof this.opacity > "u" || this.chart.styledMode || this.state === "inactive" || (z.opacity = this.opacity), et && (this[k] = it = this.chart.renderer.g().add(q)), it.addClass("highcharts-" + G + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (h(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (it.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), it.attr(z)[et ? "attr" : "animate"](this.getPlotBox()), it;
  12436. }, Q.prototype.getPlotBox = function() {
  12437. var k = this.chart, G = this.xAxis, z = this.yAxis;
  12438. return k.inverted && (G = z, z = this.xAxis), { translateX: G ? G.left : k.plotLeft, translateY: z ? z.top : k.plotTop, scaleX: 1, scaleY: 1 };
  12439. }, Q.prototype.removeEvents = function(k) {
  12440. k || L(this), this.eventsToUnbind.length && (this.eventsToUnbind.forEach(function(G) {
  12441. G();
  12442. }), this.eventsToUnbind.length = 0);
  12443. }, Q.prototype.render = function() {
  12444. var k = this, G = k.chart, z = k.options, $ = v(z.animation), q = k.visible ? "inherit" : "hidden", it = z.zIndex, et = k.hasRendered, nt = G.seriesGroup, rt = G.inverted;
  12445. G = !k.finishedAnimating && G.renderer.isSVG ? $.duration : 0, T(this, "render");
  12446. var ct = k.plotGroup("group", "series", q, it, nt);
  12447. k.markerGroup = k.plotGroup("markerGroup", "markers", q, it, nt), z.clip !== !1 && k.setClip(), k.animate && G && k.animate(!0), ct.inverted = m(k.invertible, k.isCartesian) ? rt : !1, k.drawGraph && (k.drawGraph(), k.applyZones()), k.visible && k.drawPoints(), k.drawDataLabels && k.drawDataLabels(), k.redrawPoints && k.redrawPoints(), k.drawTracker && k.options.enableMouseTracking !== !1 && k.drawTracker(), k.invertGroups(rt), k.animate && G && k.animate(), et || (G && $.defer && (G += $.defer), k.animationTimeout = V(function() {
  12448. k.afterAnimate();
  12449. }, G || 0)), k.isDirty = !1, k.hasRendered = !0, T(k, "afterRender");
  12450. }, Q.prototype.redraw = function() {
  12451. var k = this.chart, G = this.isDirty || this.isDirtyData, z = this.group, $ = this.xAxis, q = this.yAxis;
  12452. z && (k.inverted && z.attr({
  12453. width: k.plotWidth,
  12454. height: k.plotHeight
  12455. }), z.animate({ translateX: m($ && $.left, k.plotLeft), translateY: m(q && q.top, k.plotTop) })), this.translate(), this.render(), G && delete this.kdTree;
  12456. }, Q.prototype.searchPoint = function(k, G) {
  12457. var z = this.xAxis, $ = this.yAxis, q = this.chart.inverted;
  12458. return this.searchKDTree({ clientX: q ? z.len - k.chartY + z.pos : k.chartX - z.pos, plotY: q ? $.len - k.chartX + $.pos : k.chartY - $.pos }, G, k);
  12459. }, Q.prototype.buildKDTree = function(k) {
  12460. function G(q, it, et) {
  12461. var nt = q && q.length;
  12462. if (nt) {
  12463. var rt = z.kdAxisArray[it % et];
  12464. return q.sort(function(ct, gt) {
  12465. return ct[rt] - gt[rt];
  12466. }), nt = Math.floor(nt / 2), { point: q[nt], left: G(q.slice(0, nt), it + 1, et), right: G(q.slice(nt + 1), it + 1, et) };
  12467. }
  12468. }
  12469. this.buildingKdTree = !0;
  12470. var z = this, $ = -1 < z.options.findNearestPointBy.indexOf("y") ? 2 : 1;
  12471. delete z.kdTree, V(function() {
  12472. z.kdTree = G(z.getValidPoints(null, !z.directTouch), $, $), z.buildingKdTree = !1;
  12473. }, z.options.kdNow || k && k.type === "touchstart" ? 0 : 1);
  12474. }, Q.prototype.searchKDTree = function(k, G, z) {
  12475. function $(rt, ct, gt, dt) {
  12476. var ht = ct.point, at = q.kdAxisArray[gt % dt], J = ht, tt = h(rt[it]) && h(ht[it]) ? Math.pow(rt[it] - ht[it], 2) : null, ot = h(rt[et]) && h(ht[et]) ? Math.pow(rt[et] - ht[et], 2) : null;
  12477. return ot = (tt || 0) + (ot || 0), ht.dist = h(ot) ? Math.sqrt(ot) : Number.MAX_VALUE, ht.distX = h(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 = $(rt, ct[ot], gt + 1, dt), J = ot[nt] < J[nt] ? ot : ht), ct[tt] && Math.sqrt(at * at) < J[nt] && (rt = $(rt, ct[tt], gt + 1, dt), J = rt[nt] < J[nt] ? rt : J), J;
  12478. }
  12479. var q = this, it = this.kdAxisArray[0], et = this.kdAxisArray[1], nt = G ? "distX" : "dist";
  12480. if (G = -1 < q.options.findNearestPointBy.indexOf("y") ? 2 : 1, this.kdTree || this.buildingKdTree || this.buildKDTree(z), this.kdTree)
  12481. return $(
  12482. k,
  12483. this.kdTree,
  12484. G,
  12485. G
  12486. );
  12487. }, Q.prototype.pointPlacementToXValue = function() {
  12488. var k = this.options, G = k.pointRange, z = this.xAxis;
  12489. return k = k.pointPlacement, k === "between" && (k = z.reversed ? -0.5 : 0.5), W(k) ? k * (G || z.pointRange) : 0;
  12490. }, Q.prototype.isPointInside = function(k) {
  12491. var G = this.chart, z = this.xAxis, $ = this.yAxis;
  12492. return typeof k.plotY < "u" && typeof k.plotX < "u" && 0 <= k.plotY && k.plotY <= ($ ? $.len : G.plotHeight) && 0 <= k.plotX && k.plotX <= (z ? z.len : G.plotWidth);
  12493. }, Q.prototype.drawTracker = function() {
  12494. var k = this, G = k.options, z = G.trackByArea, $ = [].concat(z ? k.areaPath : k.graphPath), q = k.chart, it = q.pointer, et = q.renderer, nt = q.options.tooltip.snap, rt = k.tracker, ct = function(dt) {
  12495. q.hoverSeries !== k && k.onMouseOver();
  12496. }, gt = "rgba(192,192,192," + (B ? 1e-4 : 2e-3) + ")";
  12497. rt ? rt.attr({ d: $ }) : k.graph && (k.tracker = et.path($).attr({ visibility: k.visible ? "visible" : "hidden", zIndex: 2 }).addClass(z ? "highcharts-tracker-area" : "highcharts-tracker-line").add(k.group), q.styledMode || k.tracker.attr({ "stroke-linecap": "round", "stroke-linejoin": "round", stroke: gt, fill: z ? gt : "none", "stroke-width": k.graph.strokeWidth() + (z ? 0 : 2 * nt) }), [k.tracker, k.markerGroup, k.dataLabelsGroup].forEach(function(dt) {
  12498. dt && (dt.addClass("highcharts-tracker").on("mouseover", ct).on("mouseout", function(ht) {
  12499. it.onTrackerMouseOut(ht);
  12500. }), G.cursor && !q.styledMode && dt.css({ cursor: G.cursor }), O) && dt.on("touchstart", ct);
  12501. })), T(this, "afterDrawTracker");
  12502. }, Q.prototype.addPoint = function(k, G, z, $, q) {
  12503. var it = this.options, et = this.data, nt = this.chart, rt = this.xAxis;
  12504. rt = rt && rt.hasNames && rt.names;
  12505. var ct = it.data, gt = this.xData, dt;
  12506. G = m(G, !0);
  12507. var ht = { series: this };
  12508. this.pointClass.prototype.applyOptions.apply(
  12509. ht,
  12510. [k]
  12511. );
  12512. var at = ht.x, J = gt.length;
  12513. if (this.requireSorting && at < gt[J - 1])
  12514. for (dt = !0; J && gt[J - 1] > at; )
  12515. J--;
  12516. this.updateParallelArrays(ht, "splice", J, 0, 0), this.updateParallelArrays(ht, J), rt && ht.name && (rt[at] = ht.name), ct.splice(J, 0, k), dt && (this.data.splice(J, 0, null), this.processData()), it.legendType === "point" && this.generatePoints(), z && (et[0] && et[0].remove ? et[0].remove(!1) : (et.shift(), this.updateParallelArrays(ht, "shift"), ct.shift())), q !== !1 && T(this, "addPoint", { point: ht }), this.isDirtyData = this.isDirty = !0, G && nt.redraw($);
  12517. }, Q.prototype.removePoint = function(k, G, z) {
  12518. var $ = this, q = $.data, it = q[k], et = $.points, nt = $.chart, rt = function() {
  12519. et && et.length === q.length && et.splice(k, 1), q.splice(k, 1), $.options.data.splice(k, 1), $.updateParallelArrays(it || { series: $ }, "splice", k, 1), it && it.destroy(), $.isDirty = !0, $.isDirtyData = !0, G && nt.redraw();
  12520. };
  12521. d(z, nt), G = m(G, !0), it ? it.firePointEvent("remove", null, rt) : rt();
  12522. }, Q.prototype.remove = function(k, G, z, $) {
  12523. function q() {
  12524. it.destroy($), et.isDirtyLegend = et.isDirtyBox = !0, et.linkSeries(), m(k, !0) && et.redraw(G);
  12525. }
  12526. var it = this, et = it.chart;
  12527. z !== !1 ? T(
  12528. it,
  12529. "remove",
  12530. null,
  12531. q
  12532. ) : q();
  12533. }, Q.prototype.update = function(k, G) {
  12534. k = p(k, this.userOptions), T(this, "update", { options: k });
  12535. var z = this, $ = z.chart, q = z.userOptions, it = z.initialType || z.type, et = $.options.plotOptions, nt = b[it].prototype, rt = z.finishedAnimating && { animation: !1 }, ct = {}, gt, dt = ["eventOptions", "navigatorSeries", "baseSeries"], ht = k.type || q.type || $.options.chart.type, at = !(this.hasDerivedData || ht && ht !== this.type || typeof k.pointStart < "u" || typeof k.pointInterval < "u" || typeof k.relativeXValue < "u" || z.hasOptionChanged("dataGrouping") || z.hasOptionChanged("pointStart") || z.hasOptionChanged("pointInterval") || z.hasOptionChanged("pointIntervalUnit") || z.hasOptionChanged("keys"));
  12536. 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"), k.visible !== !1 && dt.push("area", "graph"), z.parallelArrays.forEach(function(tt) {
  12537. dt.push(tt + "Data");
  12538. }), k.data && (k.dataSorting && s(z.options.dataSorting, k.dataSorting), this.setData(k.data, !1))), k = X(q, rt, { index: typeof q.index > "u" ? z.index : q.index, pointStart: m(et && et.series && et.series.pointStart, q.pointStart, z.xData[0]) }, !at && { data: z.options.data }, k), at && k.data && (k.data = z.options.data), dt = ["group", "markerGroup", "dataLabelsGroup", "transformGroup"].concat(dt), dt.forEach(function(tt) {
  12539. dt[tt] = z[tt], delete z[tt];
  12540. }), et = !1, b[ht]) {
  12541. if (et = ht !== z.type, z.remove(!1, !1, !1, !0), et)
  12542. if (Object.setPrototypeOf)
  12543. Object.setPrototypeOf(z, b[ht].prototype);
  12544. else {
  12545. rt = Object.hasOwnProperty.call(z, "hcEvents") && z.hcEvents;
  12546. for (gt in nt)
  12547. z[gt] = void 0;
  12548. s(z, b[ht].prototype), rt ? z.hcEvents = rt : delete z.hcEvents;
  12549. }
  12550. } else
  12551. t(17, !0, $, { missingModuleFor: ht });
  12552. if (dt.forEach(function(tt) {
  12553. z[tt] = dt[tt];
  12554. }), z.init($, k), at && this.points) {
  12555. var J = z.options;
  12556. J.visible === !1 ? (ct.graphic = 1, ct.dataLabel = 1) : z._hasPointLabels || (k = J.marker, nt = J.dataLabels, !k || k.enabled !== !1 && (q.marker && q.marker.symbol) === k.symbol || (ct.graphic = 1), nt && nt.enabled === !1 && (ct.dataLabel = 1)), this.points.forEach(function(tt) {
  12557. tt && tt.series && (tt.resolveColor(), Object.keys(ct).length && tt.destroyElements(ct), J.showInLegend === !1 && tt.legendItem && $.legend.destroyItem(tt));
  12558. }, this);
  12559. }
  12560. z.initialType = it, $.linkSeries(), et && z.linkedSeries.length && (z.isDirtyData = !0), T(this, "afterUpdate"), m(G, !0) && $.redraw(at ? void 0 : !1);
  12561. }, Q.prototype.setName = function(k) {
  12562. this.name = this.options.name = this.userOptions.name = k, this.chart.isDirtyLegend = !0;
  12563. }, Q.prototype.hasOptionChanged = function(k) {
  12564. var G = this.options[k], z = this.chart.options.plotOptions, $ = this.userOptions[k];
  12565. return $ ? G !== $ : G !== m(
  12566. z && z[this.type] && z[this.type][k],
  12567. z && z.series && z.series[k],
  12568. G
  12569. );
  12570. }, Q.prototype.onMouseOver = function() {
  12571. var k = this.chart, G = k.hoverSeries;
  12572. k.pointer.setHoverChartIndex(), G && G !== this && G.onMouseOut(), this.options.events.mouseOver && T(this, "mouseOver"), this.setState("hover"), k.hoverSeries = this;
  12573. }, Q.prototype.onMouseOut = function() {
  12574. var k = this.options, G = this.chart, z = G.tooltip, $ = G.hoverPoint;
  12575. G.hoverSeries = null, $ && $.onMouseOut(), this && k.events.mouseOut && T(this, "mouseOut"), !z || this.stickyTracking || z.shared && !this.noSharedTooltip || z.hide(), G.series.forEach(function(q) {
  12576. q.setState(
  12577. "",
  12578. !0
  12579. );
  12580. });
  12581. }, Q.prototype.setState = function(k, G) {
  12582. var z = this, $ = z.options, q = z.graph, it = $.inactiveOtherPoints, et = $.states, nt = m(et[k || "normal"] && et[k || "normal"].animation, z.chart.options.chart.animation), rt = $.lineWidth, ct = 0, gt = $.opacity;
  12583. if (k = k || "", z.state !== k && ([z.group, z.markerGroup, z.dataLabelsGroup].forEach(function(dt) {
  12584. dt && (z.state && dt.removeClass("highcharts-series-" + z.state), k && dt.addClass("highcharts-series-" + k));
  12585. }), z.state = k, !z.chart.styledMode)) {
  12586. if (et[k] && et[k].enabled === !1)
  12587. return;
  12588. if (k && (rt = et[k].lineWidth || rt + (et[k].lineWidthPlus || 0), gt = m(et[k].opacity, gt)), q && !q.dashstyle)
  12589. for ($ = { "stroke-width": rt }, q.animate($, nt); z["zone-graph-" + ct]; )
  12590. z["zone-graph-" + ct].animate($, nt), ct += 1;
  12591. it || [z.group, z.markerGroup, z.dataLabelsGroup, z.labelBySeries].forEach(function(dt) {
  12592. dt && dt.animate({ opacity: gt }, nt);
  12593. });
  12594. }
  12595. G && it && z.points && z.setAllPointsToState(k || void 0);
  12596. }, Q.prototype.setAllPointsToState = function(k) {
  12597. this.points.forEach(function(G) {
  12598. G.setState && G.setState(k);
  12599. });
  12600. }, Q.prototype.setVisible = function(k, G) {
  12601. var z = this, $ = z.chart, q = z.legendItem, it = $.options.chart.ignoreHiddenSeries, et = z.visible, nt = (z.visible = k = z.options.visible = z.userOptions.visible = typeof k > "u" ? !et : k) ? "show" : "hide";
  12602. ["group", "dataLabelsGroup", "markerGroup", "tracker", "tt"].forEach(function(rt) {
  12603. z[rt] && z[rt][nt]();
  12604. }), ($.hoverSeries === z || ($.hoverPoint && $.hoverPoint.series) === z) && z.onMouseOut(), q && $.legend.colorizeItem(z, k), z.isDirty = !0, z.options.stacking && $.series.forEach(function(rt) {
  12605. rt.options.stacking && rt.visible && (rt.isDirty = !0);
  12606. }), z.linkedSeries.forEach(function(rt) {
  12607. rt.setVisible(k, !1);
  12608. }), it && ($.isDirtyBox = !0), T(z, nt), G !== !1 && $.redraw();
  12609. }, Q.prototype.show = function() {
  12610. this.setVisible(!0);
  12611. }, Q.prototype.hide = function() {
  12612. this.setVisible(!1);
  12613. }, Q.prototype.select = function(k) {
  12614. this.selected = k = this.options.selected = typeof k > "u" ? !this.selected : k, this.checkbox && (this.checkbox.checked = k), T(this, k ? "select" : "unselect");
  12615. }, Q.prototype.shouldShowTooltip = function(k, G, z) {
  12616. return z === void 0 && (z = {}), z.series = this, z.visiblePlotOnly = !0, this.chart.isInsidePlot(k, G, z);
  12617. }, Q.defaultOptions = F, Q;
  12618. }(), s(y.prototype, { axisTypes: [
  12619. "xAxis",
  12620. "yAxis"
  12621. ], coll: "series", colorCounter: 0, cropShoulder: 1, directTouch: !1, drawLegendSymbol: H.drawLineMarker, isCartesian: !0, kdAxisArray: ["clientX", "plotY"], parallelArrays: ["x", "y"], pointClass: U, requireSorting: !0, sorted: !0 }), N.series = y, y;
  12622. }), E(l, "Extensions/ScrollablePlotArea.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/Series/Series.js"], l["Core/Renderer/RendererRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U) {
  12623. var F = y.stop, N = U.addEvent, R = U.createElement, S = U.merge, v = U.pick;
  12624. N(I, "afterSetChartSize", function(d) {
  12625. var u = this.options.chart.scrollablePlotArea, A = u && u.minWidth;
  12626. if (u = u && u.minHeight, !this.renderer.forExport) {
  12627. if (A) {
  12628. if (this.scrollablePixelsX = A = Math.max(0, A - this.chartWidth)) {
  12629. this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.width = this.plotWidth += A, this.inverted ? this.clipBox.height += A : this.clipBox.width += A;
  12630. var O = { 1: { name: "right", value: A } };
  12631. }
  12632. } else
  12633. u && (this.scrollablePixelsY = A = Math.max(
  12634. 0,
  12635. u - this.chartHeight
  12636. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.height = this.plotHeight += A, this.inverted ? this.clipBox.width += A : this.clipBox.height += A, O = { 2: { name: "bottom", value: A } });
  12637. O && !d.skipAxes && this.axes.forEach(function(B) {
  12638. O[B.side] ? B.getPlotLinePath = function() {
  12639. var C = O[B.side].name, b = this[C];
  12640. this[C] = b - O[B.side].value;
  12641. var w = j.prototype.getPlotLinePath.apply(this, arguments);
  12642. return this[C] = b, w;
  12643. } : (B.setAxisSize(), B.setAxisTranslation());
  12644. });
  12645. }
  12646. }), N(I, "render", function() {
  12647. this.scrollablePixelsX || this.scrollablePixelsY ? (this.setUpScrolling && this.setUpScrolling(), this.applyFixed()) : this.fixedDiv && this.applyFixed();
  12648. }), I.prototype.setUpScrolling = function() {
  12649. var d = this, u = { WebkitOverflowScrolling: "touch", overflowX: "hidden", overflowY: "hidden" };
  12650. this.scrollablePixelsX && (u.overflowX = "auto"), this.scrollablePixelsY && (u.overflowY = "auto"), this.scrollingParent = R("div", { className: "highcharts-scrolling-parent" }, { position: "relative" }, this.renderTo), this.scrollingContainer = R(
  12651. "div",
  12652. { className: "highcharts-scrolling" },
  12653. u,
  12654. this.scrollingParent
  12655. ), N(this.scrollingContainer, "scroll", function() {
  12656. d.pointer && delete d.pointer.chartPosition;
  12657. }), this.innerContainer = R("div", { className: "highcharts-inner-container" }, null, this.scrollingContainer), this.innerContainer.appendChild(this.container), this.setUpScrolling = null;
  12658. }, I.prototype.moveFixedElements = function() {
  12659. var d = this.container, u = this.fixedRenderer, A = ".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;
  12660. 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 && A.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), A.forEach(function(B) {
  12661. [].forEach.call(d.querySelectorAll(B), function(C) {
  12662. (C.namespaceURI === u.SVG_NS ? u.box : u.box.parentNode).appendChild(C), C.style.pointerEvents = "auto";
  12663. });
  12664. });
  12665. }, I.prototype.applyFixed = function() {
  12666. var d = !this.fixedDiv, u = this.options.chart, A = u.scrollablePlotArea, O = H.getRendererType();
  12667. d ? (this.fixedDiv = R("div", { className: "highcharts-fixed" }, { position: "absolute", overflow: "hidden", pointerEvents: "none", zIndex: (u.style && u.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 = u = new O(
  12668. this.fixedDiv,
  12669. this.chartWidth,
  12670. this.chartHeight,
  12671. this.options.chart.style
  12672. ), this.scrollableMask = u.path().attr({ fill: this.options.chart.backgroundColor || "#fff", "fill-opacity": v(A.opacity, 0.85), zIndex: -1 }).addClass("highcharts-scrollable-mask").add(), N(this, "afterShowResetZoom", this.moveFixedElements), N(this, "afterDrilldown", this.moveFixedElements), N(this, "afterLayOutTitles", this.moveFixedElements)) : this.fixedRenderer.setSize(this.chartWidth, this.chartHeight), (this.scrollableDirty || d) && (this.scrollableDirty = !1, this.moveFixedElements()), u = this.chartWidth + (this.scrollablePixelsX || 0), O = this.chartHeight + (this.scrollablePixelsY || 0), F(this.container), this.container.style.width = u + "px", this.container.style.height = O + "px", this.renderer.boxWrapper.attr({ width: u, height: O, viewBox: [0, 0, u, O].join(" ") }), this.chartBackground.attr({ width: u, height: O }), this.scrollingContainer.style.height = this.chartHeight + "px", d && (A.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * A.scrollPositionX), A.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * A.scrollPositionY)), O = this.axisOffset, d = this.plotTop - O[0] - 1, A = this.plotLeft - O[3] - 1, u = this.plotTop + this.plotHeight + O[2] + 1, O = this.plotLeft + this.plotWidth + O[1] + 1;
  12673. var B = this.plotLeft + this.plotWidth - (this.scrollablePixelsX || 0), C = this.plotTop + this.plotHeight - (this.scrollablePixelsY || 0);
  12674. d = this.scrollablePixelsX ? [["M", 0, d], ["L", this.plotLeft - 1, d], ["L", this.plotLeft - 1, u], ["L", 0, u], ["Z"], ["M", B, d], ["L", this.chartWidth, d], ["L", this.chartWidth, u], ["L", B, u], ["Z"]] : this.scrollablePixelsY ? [["M", A, 0], ["L", A, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", A, C], ["L", A, this.chartHeight], ["L", O, this.chartHeight], ["L", O, C], ["Z"]] : [["M", 0, 0]], this.redrawTrigger !== "adjustHeight" && this.scrollableMask.attr({ d });
  12675. }, N(j, "afterInit", function() {
  12676. this.chart.scrollableDirty = !0;
  12677. }), N(Z, "show", function() {
  12678. this.chart.scrollableDirty = !0;
  12679. });
  12680. }), E(l, "Core/Axis/StackingAxis.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Axis/Axis.js"], l["Core/Utilities.js"]], function(y, j, I) {
  12681. var Z = y.getDeferredAnimation, H = I.addEvent, U = I.destroyObjectProperties, F = I.fireEvent, N = I.isNumber, R = I.objectEach, S;
  12682. return function(v) {
  12683. function d() {
  12684. var B = this.stacking;
  12685. if (B) {
  12686. var C = B.stacks;
  12687. R(C, function(b, w) {
  12688. U(b), C[w] = null;
  12689. }), B && B.stackTotalGroup && B.stackTotalGroup.destroy();
  12690. }
  12691. }
  12692. function u() {
  12693. this.stacking || (this.stacking = new O(this));
  12694. }
  12695. var A = [];
  12696. v.compose = function(B) {
  12697. return A.indexOf(B) === -1 && (A.push(B), H(B, "init", u), H(B, "destroy", d)), B;
  12698. };
  12699. var O = function() {
  12700. function B(C) {
  12701. this.oldStacks = {}, this.stacks = {}, this.stacksTouched = 0, this.axis = C;
  12702. }
  12703. return B.prototype.buildStacks = function() {
  12704. var C = this.axis, b = C.series, w = C.options.reversedStacks, x = b.length, a;
  12705. if (!C.isXAxis) {
  12706. for (this.usePercentage = !1, a = x; a--; ) {
  12707. var c = b[w ? a : x - a - 1];
  12708. c.setStackedPoints(), c.setGroupedPoints();
  12709. }
  12710. for (a = 0; a < x; a++)
  12711. b[a].modifyStacks();
  12712. F(C, "afterBuildStacks");
  12713. }
  12714. }, B.prototype.cleanStacks = function() {
  12715. if (!this.axis.isXAxis) {
  12716. if (this.oldStacks)
  12717. var C = this.stacks = this.oldStacks;
  12718. R(C, function(b) {
  12719. R(b, function(w) {
  12720. w.cumulative = w.total;
  12721. });
  12722. });
  12723. }
  12724. }, B.prototype.resetStacks = function() {
  12725. var C = this, b = C.stacks;
  12726. C.axis.isXAxis || R(b, function(w) {
  12727. R(
  12728. w,
  12729. function(x, a) {
  12730. N(x.touched) && x.touched < C.stacksTouched ? (x.destroy(), delete w[a]) : (x.total = null, x.cumulative = null);
  12731. }
  12732. );
  12733. });
  12734. }, B.prototype.renderStackTotals = function() {
  12735. var C = this.axis, b = C.chart, w = b.renderer, x = this.stacks;
  12736. C = Z(b, C.options.stackLabels && C.options.stackLabels.animation || !1);
  12737. var a = this.stackTotalGroup = this.stackTotalGroup || w.g("stack-labels").attr({ visibility: "visible", zIndex: 6, opacity: 0 }).add();
  12738. a.translate(b.plotLeft, b.plotTop), R(x, function(c) {
  12739. R(c, function(p) {
  12740. p.render(a);
  12741. });
  12742. }), a.animate(
  12743. { opacity: 1 },
  12744. C
  12745. );
  12746. }, B;
  12747. }();
  12748. v.Additions = O;
  12749. }(S || (S = {})), S;
  12750. }), E(l, "Extensions/Stacking.js", [l["Core/Axis/Axis.js"], l["Core/Chart/Chart.js"], l["Core/FormatUtilities.js"], l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Axis/StackingAxis.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F) {
  12751. var N = I.format, R = F.correctFloat, S = F.defined, v = F.destroyObjectProperties, d = F.isArray, u = F.isNumber, A = F.objectEach, O = F.pick, B = function() {
  12752. function C(b, w, x, a, c) {
  12753. var p = b.chart.inverted;
  12754. this.axis = b, this.isNegative = x, this.options = w = w || {}, this.x = a, this.total = null, this.points = {}, this.hasValidPoints = !1, this.stack = c, this.rightCliff = this.leftCliff = 0, this.alignOptions = { align: w.align || (p ? x ? "left" : "right" : "center"), verticalAlign: w.verticalAlign || (p ? "middle" : x ? "bottom" : "top"), y: w.y, x: w.x }, this.textAlign = w.textAlign || (p ? x ? "right" : "left" : "center");
  12755. }
  12756. return C.prototype.destroy = function() {
  12757. v(this, this.axis);
  12758. }, C.prototype.render = function(b) {
  12759. var w = this.axis.chart, x = this.options, a = x.format;
  12760. a = a ? N(a, this, w) : x.formatter.call(this), this.label ? this.label.attr({
  12761. text: a,
  12762. visibility: "hidden"
  12763. }) : (this.label = w.renderer.label(a, null, null, x.shape, null, null, x.useHTML, !1, "stack-labels"), a = { r: x.borderRadius || 0, text: a, rotation: x.rotation, padding: O(x.padding, 5), visibility: "hidden" }, w.styledMode || (a.fill = x.backgroundColor, a.stroke = x.borderColor, a["stroke-width"] = x.borderWidth, this.label.css(x.style)), this.label.attr(a), this.label.added || this.label.add(b)), this.label.labelrank = w.plotSizeY;
  12764. }, C.prototype.setOffset = function(b, w, x, a, c) {
  12765. var p = this.axis, i = p.chart;
  12766. a = p.translate(p.stacking.usePercentage ? 100 : a || this.total, 0, 0, 0, 1), x = p.translate(x || 0), x = S(a) && Math.abs(a - x), b = O(c, i.xAxis[0].translate(this.x)) + b, p = S(a) && this.getStackBox(i, this, b, a, w, x, p), w = this.label, x = this.isNegative, b = O(this.options.overflow, "justify") === "justify";
  12767. var h = this.textAlign;
  12768. w && p && (c = w.getBBox(), a = w.padding, h = h === "left" ? i.inverted ? -a : a : h === "right" ? c.width : i.inverted && h === "center" ? c.width / 2 : i.inverted ? x ? c.width + a : -a : c.width / 2, x = i.inverted ? c.height / 2 : x ? -a : c.height, this.alignOptions.x = O(this.options.x, 0), this.alignOptions.y = O(this.options.y, 0), p.x -= h, p.y -= x, w.align(this.alignOptions, null, p), i.isInsidePlot(w.alignAttr.x + h - this.alignOptions.x, w.alignAttr.y + x - this.alignOptions.y) ? w.show() : (w.alignAttr.y = -9999, b = !1), b && H.prototype.justifyDataLabel.call(this.axis, w, this.alignOptions, w.alignAttr, c, p), w.attr({ x: w.alignAttr.x, y: w.alignAttr.y }), O(!b && this.options.crop, !0) && ((i = u(w.x) && u(w.y) && i.isInsidePlot(w.x - a + w.width, w.y) && i.isInsidePlot(w.x + a, w.y)) || w.hide()));
  12769. }, C.prototype.getStackBox = function(b, w, x, a, c, p, i) {
  12770. var h = w.axis.reversed, o = b.inverted, t = i.height + i.pos - (o ? b.plotLeft : b.plotTop);
  12771. return w = w.isNegative && !h || !w.isNegative && h, { x: o ? w ? a - i.right : a - p + i.pos - b.plotLeft : x + b.xAxis[0].transB - b.plotLeft, y: o ? i.height - x - c : w ? t - a - p : t - a, width: o ? p : c, height: o ? c : p };
  12772. }, C;
  12773. }();
  12774. return j.prototype.getStacks = function() {
  12775. var C = this, b = C.inverted;
  12776. C.yAxis.forEach(function(w) {
  12777. w.stacking && w.stacking.stacks && w.hasVisibleSeries && (w.stacking.oldStacks = w.stacking.stacks);
  12778. }), C.series.forEach(function(w) {
  12779. var x = w.xAxis && w.xAxis.options || {};
  12780. !w.options.stacking || w.visible !== !0 && C.options.chart.ignoreHiddenSeries !== !1 || (w.stackKey = [w.type, O(w.options.stack, ""), b ? x.top : x.left, b ? x.height : x.width].join());
  12781. });
  12782. }, U.compose(y), H.prototype.setGroupedPoints = function() {
  12783. var C = this.yAxis.stacking;
  12784. this.options.centerInCategory && (this.is("column") || this.is("columnrange")) && !this.options.stacking && 1 < this.chart.series.length ? H.prototype.setStackedPoints.call(this, "group") : C && A(C.stacks, function(b, w) {
  12785. w.slice(-5) === "group" && (A(b, function(x) {
  12786. return x.destroy();
  12787. }), delete C.stacks[w]);
  12788. });
  12789. }, H.prototype.setStackedPoints = function(C) {
  12790. var b = C || this.options.stacking;
  12791. if (b && (this.visible === !0 || this.chart.options.chart.ignoreHiddenSeries === !1)) {
  12792. var w = this.processedXData, x = this.processedYData, a = [], c = x.length, p = this.options, i = p.threshold, h = O(p.startFromThreshold && i, 0);
  12793. p = p.stack, C = C ? this.type + "," + b : this.stackKey;
  12794. var o = "-" + C, t = this.negStacks, s = this.yAxis, n = s.stacking.stacks, T = s.stacking.oldStacks, _, D;
  12795. for (s.stacking.stacksTouched += 1, D = 0; D < c; D++) {
  12796. var W = w[D], P = x[D], X = this.getStackIndicator(
  12797. X,
  12798. W,
  12799. this.index
  12800. ), g = X.key, m = (_ = t && P < (h ? 0 : i)) ? o : C;
  12801. n[m] || (n[m] = {}), n[m][W] || (T[m] && T[m][W] ? (n[m][W] = T[m][W], n[m][W].total = null) : n[m][W] = new B(s, s.options.stackLabels, _, W, p)), m = n[m][W], P !== null ? (m.points[g] = m.points[this.index] = [O(m.cumulative, h)], S(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" ? (_ = _ ? C : o, t && n[_] && n[_][W] ? (_ = n[_][W], m.total = _.total = Math.max(_.total, m.total) + Math.abs(P) || 0) : m.total = R(m.total + (Math.abs(P) || 0))) : b === "group" ? (d(P) && (P = P[0]), P !== null && (m.total = (m.total || 0) + 1)) : m.total = R(m.total + (P || 0)), m.cumulative = b === "group" ? (m.total || 1) - 1 : O(m.cumulative, h) + (P || 0), P !== null && (m.points[g].push(m.cumulative), a[D] = m.cumulative, m.hasValidPoints = !0);
  12802. }
  12803. b === "percent" && (s.stacking.usePercentage = !0), b !== "group" && (this.stackedYData = a), s.stacking.oldStacks = {};
  12804. }
  12805. }, H.prototype.modifyStacks = function() {
  12806. var C = this, b = C.stackKey, w = C.yAxis.stacking.stacks, x = C.processedXData, a, c = C.options.stacking;
  12807. C[c + "Stacker"] && [b, "-" + b].forEach(function(p) {
  12808. for (var i = x.length, h, o; i--; )
  12809. h = x[i], a = C.getStackIndicator(a, h, C.index, p), (o = (h = w[p] && w[p][h]) && h.points[a.key]) && C[c + "Stacker"](o, h, i);
  12810. });
  12811. }, H.prototype.percentStacker = function(C, b, w) {
  12812. b = b.total ? 100 / b.total : 0, C[0] = R(C[0] * b), C[1] = R(C[1] * b), this.stackedYData[w] = C[1];
  12813. }, H.prototype.getStackIndicator = function(C, b, w, x) {
  12814. return !S(C) || C.x !== b || x && C.key !== x ? C = { x: b, index: 0, key: x } : C.index++, C.key = [w, b, C.index].join(), C;
  12815. }, Z.StackItem = B, Z.StackItem;
  12816. }), E(l, "Series/Line/LineSeries.js", [l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  12817. var Z = this && this.__extends || function() {
  12818. var F = function(N, R) {
  12819. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  12820. S.__proto__ = v;
  12821. } || function(S, v) {
  12822. for (var d in v)
  12823. v.hasOwnProperty(d) && (S[d] = v[d]);
  12824. }, F(N, R);
  12825. };
  12826. return function(N, R) {
  12827. function S() {
  12828. this.constructor = N;
  12829. }
  12830. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  12831. };
  12832. }(), H = I.defined, U = I.merge;
  12833. return I = function(F) {
  12834. function N() {
  12835. var R = F !== null && F.apply(this, arguments) || this;
  12836. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  12837. }
  12838. return Z(N, F), N.prototype.drawGraph = function() {
  12839. var R = this, S = this.options, v = (this.gappedPath || this.getGraphPath).call(this), d = this.chart.styledMode, u = [["graph", "highcharts-graph"]];
  12840. d || u[0].push(S.lineColor || this.color || "#cccccc", S.dashStyle), u = R.getZonesGraphs(u), u.forEach(function(A, O) {
  12841. var B = A[0], C = R[B], b = C ? "animate" : "attr";
  12842. C ? (C.endX = R.preventGraphAnimation ? null : v.xMap, C.animate({ d: v })) : v.length && (R[B] = C = R.chart.renderer.path(v).addClass(A[1]).attr({ zIndex: 1 }).add(R.group)), C && !d && (B = { stroke: A[2], "stroke-width": S.lineWidth, fill: R.fillGraph && R.color || "none" }, A[3] ? B.dashstyle = A[3] : S.linecap !== "square" && (B["stroke-linecap"] = B["stroke-linejoin"] = "round"), C[b](B).shadow(2 > O && S.shadow)), C && (C.startX = v.xMap, C.isArea = v.isArea);
  12843. });
  12844. }, N.prototype.getGraphPath = function(R, S, v) {
  12845. var d = this, u = d.options, A = [], O = [], B, C = u.step;
  12846. R = R || d.points;
  12847. var b = R.reversed;
  12848. return b && R.reverse(), (C = { right: 1, center: 2 }[C] || C && 3) && b && (C = 4 - C), R = this.getValidPoints(R, !1, !(u.connectNulls && !S && !v)), R.forEach(function(w, x) {
  12849. var a = w.plotX, c = w.plotY, p = R[x - 1];
  12850. (w.leftCliff || p && p.rightCliff) && !v && (B = !0), w.isNull && !H(S) && 0 < x ? B = !u.connectNulls : w.isNull && !S ? B = !0 : (x === 0 || B ? x = [["M", w.plotX, w.plotY]] : d.getPointSpline ? x = [d.getPointSpline(R, w, x)] : C ? (x = C === 1 ? [["L", p.plotX, c]] : C === 2 ? [["L", (p.plotX + a) / 2, p.plotY], ["L", (p.plotX + a) / 2, c]] : [["L", a, p.plotY]], x.push(["L", a, c])) : x = [["L", a, c]], O.push(w.x), C && (O.push(w.x), C === 2 && O.push(w.x)), A.push.apply(A, x), B = !1);
  12851. }), A.xMap = O, d.graphPath = A;
  12852. }, N.prototype.getZonesGraphs = function(R) {
  12853. return this.zones.forEach(function(S, v) {
  12854. v = ["zone-graph-" + v, "highcharts-graph highcharts-zone-graph-" + v + " " + (S.className || "")], this.chart.styledMode || v.push(S.color || this.color, S.dashStyle || this.options.dashStyle), R.push(v);
  12855. }, this), R;
  12856. }, N.defaultOptions = U(y.defaultOptions, {}), N;
  12857. }(y), j.registerSeriesType("line", I), I;
  12858. }), E(l, "Series/Area/AreaSeries.js", [
  12859. l["Core/Color/Color.js"],
  12860. l["Core/Legend/LegendSymbol.js"],
  12861. l["Core/Series/SeriesRegistry.js"],
  12862. l["Core/Utilities.js"]
  12863. ], function(y, j, I, Z) {
  12864. var H = this && this.__extends || function() {
  12865. var v = function(d, u) {
  12866. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(A, O) {
  12867. A.__proto__ = O;
  12868. } || function(A, O) {
  12869. for (var B in O)
  12870. O.hasOwnProperty(B) && (A[B] = O[B]);
  12871. }, v(d, u);
  12872. };
  12873. return function(d, u) {
  12874. function A() {
  12875. this.constructor = d;
  12876. }
  12877. v(d, u), d.prototype = u === null ? Object.create(u) : (A.prototype = u.prototype, new A());
  12878. };
  12879. }(), U = y.parse, F = I.seriesTypes.line;
  12880. y = Z.extend;
  12881. var N = Z.merge, R = Z.objectEach, S = Z.pick;
  12882. return Z = function(v) {
  12883. function d() {
  12884. var u = v !== null && v.apply(this, arguments) || this;
  12885. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  12886. }
  12887. return H(d, v), d.prototype.drawGraph = function() {
  12888. this.areaPath = [], v.prototype.drawGraph.apply(this);
  12889. var u = this, A = this.areaPath, O = this.options, B = [["area", "highcharts-area", this.color, O.fillColor]];
  12890. this.zones.forEach(function(C, b) {
  12891. B.push(["zone-area-" + b, "highcharts-area highcharts-zone-area-" + b + " " + C.className, C.color || u.color, C.fillColor || O.fillColor]);
  12892. }), B.forEach(function(C) {
  12893. var b = C[0], w = u[b], x = w ? "animate" : "attr", a = {};
  12894. w ? (w.endX = u.preventGraphAnimation ? null : A.xMap, w.animate({ d: A })) : (a.zIndex = 0, w = u[b] = u.chart.renderer.path(A).addClass(C[1]).add(u.group), w.isArea = !0), u.chart.styledMode || (a.fill = S(C[3], U(C[2]).setOpacity(S(O.fillOpacity, 0.75)).get())), w[x](a), w.startX = A.xMap, w.shiftUnit = O.step ? 2 : 1;
  12895. });
  12896. }, d.prototype.getGraphPath = function(u) {
  12897. var A = F.prototype.getGraphPath, O = this.options, B = O.stacking, C = this.yAxis, b, w = [], x = [], a = this.index, c = C.stacking.stacks[this.stackKey], p = O.threshold, i = Math.round(C.getThreshold(O.threshold));
  12898. O = S(O.connectNulls, B === "percent");
  12899. var h = function(n, T, _) {
  12900. var D = u[n];
  12901. n = B && c[D.x].points[a];
  12902. var W = D[_ + "Null"] || 0;
  12903. if (_ = D[_ + "Cliff"] || 0, D = !0, _ || W) {
  12904. var P = (W ? n[0] : n[1]) + _, X = n[0] + _;
  12905. D = !!W;
  12906. } else
  12907. !B && u[T] && u[T].isNull && (P = X = p);
  12908. typeof P < "u" && (x.push({ plotX: t, plotY: P === null ? i : C.getThreshold(P), isNull: D, isCliff: !0 }), w.push({ plotX: t, plotY: X === null ? i : C.getThreshold(X), doCurve: !1 }));
  12909. };
  12910. for (u = u || this.points, B && (u = this.getStackPoints(u)), b = 0; b < u.length; b++) {
  12911. B || (u[b].leftCliff = u[b].rightCliff = u[b].leftNull = u[b].rightNull = void 0);
  12912. var o = u[b].isNull, t = S(u[b].rectPlotX, u[b].plotX), s = B ? S(u[b].yBottom, i) : i;
  12913. (!o || O) && (O || h(b, b - 1, "left"), o && !B && O || (x.push(u[b]), w.push({ x: b, plotX: t, plotY: s })), O || h(b, b + 1, "right"));
  12914. }
  12915. return b = A.call(this, x, !0, !0), w.reversed = !0, o = A.call(this, w, !0, !0), (s = o[0]) && s[0] === "M" && (o[0] = ["L", s[1], s[2]]), o = b.concat(o), o.length && o.push(["Z"]), A = A.call(this, x, !1, O), o.xMap = b.xMap, this.areaPath = o, A;
  12916. }, d.prototype.getStackPoints = function(u) {
  12917. var A = this, O = [], B = [], C = this.xAxis, b = this.yAxis, w = b.stacking.stacks[this.stackKey], x = {}, a = b.series, c = a.length, p = b.options.reversedStacks ? 1 : -1, i = a.indexOf(A);
  12918. if (u = u || this.points, this.options.stacking) {
  12919. for (var h = 0; h < u.length; h++)
  12920. u[h].leftNull = u[h].rightNull = void 0, x[u[h].x] = u[h];
  12921. R(w, function(t, s) {
  12922. t.total !== null && B.push(s);
  12923. }), B.sort(function(t, s) {
  12924. return t - s;
  12925. });
  12926. var o = a.map(function(t) {
  12927. return t.visible;
  12928. });
  12929. B.forEach(function(t, s) {
  12930. var n = 0, T, _;
  12931. if (x[t] && !x[t].isNull)
  12932. O.push(x[t]), [-1, 1].forEach(function(W) {
  12933. var P = W === 1 ? "rightNull" : "leftNull", X = 0, g = w[B[s + W]];
  12934. if (g)
  12935. for (var m = i; 0 <= m && m < c; ) {
  12936. var L = a[m].index;
  12937. T = g.points[L], T || (L === A.index ? x[t][P] = !0 : o[m] && (_ = w[t].points[L]) && (X -= _[1] - _[0])), m += p;
  12938. }
  12939. x[t][W === 1 ? "rightCliff" : "leftCliff"] = X;
  12940. });
  12941. else {
  12942. for (var D = i; 0 <= D && D < c; ) {
  12943. if (T = w[t].points[a[D].index]) {
  12944. n = T[1];
  12945. break;
  12946. }
  12947. D += p;
  12948. }
  12949. n = S(n, 0), n = b.translate(n, 0, 1, 0, 1), O.push({ isNull: !0, plotX: C.translate(t, 0, 0, 0, 1), x: t, plotY: n, yBottom: n });
  12950. }
  12951. });
  12952. }
  12953. return O;
  12954. }, d.defaultOptions = N(F.defaultOptions, { threshold: 0 }), d;
  12955. }(F), y(Z.prototype, {
  12956. singleStacks: !1,
  12957. drawLegendSymbol: j.drawRectangle
  12958. }), I.registerSeriesType("area", Z), Z;
  12959. }), E(l, "Series/Spline/SplineSeries.js", [l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j) {
  12960. var I = this && this.__extends || function() {
  12961. var F = function(N, R) {
  12962. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  12963. S.__proto__ = v;
  12964. } || function(S, v) {
  12965. for (var d in v)
  12966. v.hasOwnProperty(d) && (S[d] = v[d]);
  12967. }, F(N, R);
  12968. };
  12969. return function(N, R) {
  12970. function S() {
  12971. this.constructor = N;
  12972. }
  12973. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  12974. };
  12975. }(), Z = y.seriesTypes.line, H = j.merge, U = j.pick;
  12976. return j = function(F) {
  12977. function N() {
  12978. var R = F !== null && F.apply(this, arguments) || this;
  12979. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  12980. }
  12981. return I(N, F), N.prototype.getPointSpline = function(R, S, v) {
  12982. var d = S.plotX || 0, u = S.plotY || 0, A = R[v - 1];
  12983. if (v = R[v + 1], A && !A.isNull && A.doCurve !== !1 && !S.isCliff && v && !v.isNull && v.doCurve !== !1 && !S.isCliff) {
  12984. R = A.plotY || 0;
  12985. var O = v.plotX || 0;
  12986. v = v.plotY || 0;
  12987. var B = 0, C = (1.5 * d + (A.plotX || 0)) / 2.5, b = (1.5 * u + R) / 2.5;
  12988. O = (1.5 * d + O) / 2.5;
  12989. var w = (1.5 * u + v) / 2.5;
  12990. O !== C && (B = (w - b) * (O - d) / (O - C) + u - w), b += B, w += B, b > R && b > u ? (b = Math.max(R, u), w = 2 * u - b) : b < R && b < u && (b = Math.min(R, u), w = 2 * u - b), w > v && w > u ? (w = Math.max(v, u), b = 2 * u - w) : w < v && w < u && (w = Math.min(v, u), b = 2 * u - w), S.rightContX = O, S.rightContY = w;
  12991. }
  12992. return S = ["C", U(A.rightContX, A.plotX, 0), U(A.rightContY, A.plotY, 0), U(C, d, 0), U(b, u, 0), d, u], A.rightContX = A.rightContY = void 0, S;
  12993. }, N.defaultOptions = H(Z.defaultOptions), N;
  12994. }(Z), y.registerSeriesType("spline", j), j;
  12995. }), E(
  12996. l,
  12997. "Series/AreaSpline/AreaSplineSeries.js",
  12998. [l["Series/Area/AreaSeries.js"], l["Series/Spline/SplineSeries.js"], l["Core/Legend/LegendSymbol.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]],
  12999. function(y, j, I, Z, H) {
  13000. var U = this && this.__extends || function() {
  13001. var S = function(v, d) {
  13002. return S = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, A) {
  13003. u.__proto__ = A;
  13004. } || function(u, A) {
  13005. for (var O in A)
  13006. A.hasOwnProperty(O) && (u[O] = A[O]);
  13007. }, S(v, d);
  13008. };
  13009. return function(v, d) {
  13010. function u() {
  13011. this.constructor = v;
  13012. }
  13013. S(v, d), v.prototype = d === null ? Object.create(d) : (u.prototype = d.prototype, new u());
  13014. };
  13015. }(), F = y.prototype, N = H.extend, R = H.merge;
  13016. return H = function(S) {
  13017. function v() {
  13018. var d = S !== null && S.apply(this, arguments) || this;
  13019. return d.data = void 0, d.points = void 0, d.options = void 0, d;
  13020. }
  13021. return U(v, S), v.defaultOptions = R(j.defaultOptions, y.defaultOptions), v;
  13022. }(j), N(H.prototype, { getGraphPath: F.getGraphPath, getStackPoints: F.getStackPoints, drawGraph: F.drawGraph, drawLegendSymbol: I.drawRectangle }), Z.registerSeriesType("areaspline", H), H;
  13023. }
  13024. ), E(l, "Series/Column/ColumnSeries.js", [
  13025. l["Core/Animation/AnimationUtilities.js"],
  13026. l["Core/Color/Color.js"],
  13027. l["Core/Globals.js"],
  13028. l["Core/Legend/LegendSymbol.js"],
  13029. l["Core/Series/Series.js"],
  13030. l["Core/Series/SeriesRegistry.js"],
  13031. l["Core/Utilities.js"]
  13032. ], function(y, j, I, Z, H, U, F) {
  13033. var N = this && this.__extends || function() {
  13034. var c = function(p, i) {
  13035. return c = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, o) {
  13036. h.__proto__ = o;
  13037. } || function(h, o) {
  13038. for (var t in o)
  13039. o.hasOwnProperty(t) && (h[t] = o[t]);
  13040. }, c(p, i);
  13041. };
  13042. return function(p, i) {
  13043. function h() {
  13044. this.constructor = p;
  13045. }
  13046. c(p, i), p.prototype = i === null ? Object.create(i) : (h.prototype = i.prototype, new h());
  13047. };
  13048. }(), R = y.animObject, S = j.parse, v = I.hasTouch;
  13049. y = I.noop;
  13050. var d = F.clamp, u = F.css, A = F.defined, O = F.extend, B = F.fireEvent, C = F.isArray, b = F.isNumber, w = F.merge, x = F.pick, a = F.objectEach;
  13051. return F = function(c) {
  13052. function p() {
  13053. var i = c !== null && c.apply(this, arguments) || this;
  13054. return i.borderWidth = void 0, i.data = void 0, i.group = void 0, i.options = void 0, i.points = void 0, i;
  13055. }
  13056. return N(p, c), p.prototype.animate = function(i) {
  13057. var h = this, o = this.yAxis, t = h.options, s = this.chart.inverted, n = {}, T = s ? "translateX" : "translateY";
  13058. if (i)
  13059. n.scaleY = 1e-3, i = d(o.toPixels(t.threshold), o.pos, o.pos + o.len), s ? n.translateX = i - o.len : n.translateY = i, h.clipBox && h.setClip(), h.group.attr(n);
  13060. else {
  13061. var _ = Number(h.group.attr(T));
  13062. h.group.animate({ scaleY: 1 }, O(R(h.options.animation), { step: function(D, W) {
  13063. h.group && (n[T] = _ + W.pos * (o.pos - _), h.group.attr(n));
  13064. } }));
  13065. }
  13066. }, p.prototype.init = function(i, h) {
  13067. c.prototype.init.apply(this, arguments);
  13068. var o = this;
  13069. i = o.chart, i.hasRendered && i.series.forEach(function(t) {
  13070. t.type === o.type && (t.isDirty = !0);
  13071. });
  13072. }, p.prototype.getColumnMetrics = function() {
  13073. var i = this, h = i.options, o = i.xAxis, t = i.yAxis, s = o.options.reversedStacks;
  13074. s = o.reversed && !s || !o.reversed && s;
  13075. var n = {}, T, _ = 0;
  13076. h.grouping === !1 ? _ = 1 : i.chart.series.forEach(function(X) {
  13077. var g = X.yAxis, m = X.options;
  13078. if (X.type === i.type && (X.visible || !i.chart.options.chart.ignoreHiddenSeries) && t.len === g.len && t.pos === g.pos) {
  13079. if (m.stacking && m.stacking !== "group") {
  13080. T = X.stackKey, typeof n[T] > "u" && (n[T] = _++);
  13081. var L = n[T];
  13082. } else
  13083. m.grouping !== !1 && (L = _++);
  13084. X.columnIndex = L;
  13085. }
  13086. });
  13087. var D = Math.min(Math.abs(o.transA) * (o.ordinal && o.ordinal.slope || h.pointRange || o.closestPointRange || o.tickInterval || 1), o.len), W = D * h.groupPadding, P = (D - 2 * W) / (_ || 1);
  13088. return h = Math.min(h.maxPointWidth || o.len, x(h.pointWidth, P * (1 - 2 * h.pointPadding))), i.columnMetrics = { width: h, offset: (P - h) / 2 + (W + ((i.columnIndex || 0) + (s ? 1 : 0)) * P - D / 2) * (s ? -1 : 1), paddedWidth: P, columnCount: _ }, i.columnMetrics;
  13089. }, p.prototype.crispCol = function(i, h, o, t) {
  13090. var s = this.chart, n = this.borderWidth, T = -(n % 2 ? 0.5 : 0);
  13091. return n = n % 2 ? 0.5 : 1, s.inverted && s.renderer.isVML && (n += 1), this.options.crisp && (o = Math.round(i + o) + T, i = Math.round(i) + T, o -= i), t = Math.round(h + t) + n, T = 0.5 >= Math.abs(h) && 0.5 < t, h = Math.round(h) + n, t -= h, T && t && (--h, t += 1), { x: i, y: h, width: o, height: t };
  13092. }, p.prototype.adjustForMissingColumns = function(i, h, o, t) {
  13093. var s = this, n = this.options.stacking;
  13094. if (!o.isNull && 1 < t.columnCount) {
  13095. var T = 0, _ = 0;
  13096. a(this.yAxis.stacking && this.yAxis.stacking.stacks, function(D) {
  13097. if (typeof o.x == "number" && (D = D[o.x.toString()])) {
  13098. var W = D.points[s.index], P = D.total;
  13099. n ? (W && (T = _), D.hasValidPoints && _++) : C(W) && (T = W[1], _ = P || 0);
  13100. }
  13101. }), i = (o.plotX || 0) + ((_ - 1) * t.paddedWidth + h) / 2 - h - T * t.paddedWidth;
  13102. }
  13103. return i;
  13104. }, p.prototype.translate = function() {
  13105. var i = this, h = i.chart, o = i.options, t = i.dense = 2 > i.closestPointRange * i.xAxis.transA;
  13106. t = i.borderWidth = x(o.borderWidth, t ? 0 : 1);
  13107. var s = i.xAxis, n = i.yAxis, T = o.threshold, _ = i.translatedThreshold = n.getThreshold(T), D = x(o.minPointLength, 5), W = i.getColumnMetrics(), P = W.width, X = i.pointXOffset = W.offset, g = i.dataMin, m = i.dataMax, L = i.barW = Math.max(P, 1 + 2 * t);
  13108. h.inverted && (_ -= 0.5), o.pointPadding && (L = Math.ceil(L)), H.prototype.translate.apply(i), i.points.forEach(function(Y) {
  13109. var V = x(Y.yBottom, _), Q = 999 + Math.abs(V), k = Y.plotX || 0;
  13110. Q = d(Y.plotY, -Q, n.len + Q);
  13111. var G = Math.min(Q, V), z = Math.max(Q, V) - G, $ = P, q = k + X, it = L;
  13112. D && Math.abs(z) < D && (z = D, k = !n.reversed && !Y.negative || n.reversed && Y.negative, b(T) && b(m) && Y.y === T && m <= T && (n.min || 0) < T && (g !== m || (n.max || 0) <= T) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), A(Y.options.pointWidth) && ($ = it = Math.ceil(Y.options.pointWidth), q -= Math.round(($ - P) / 2)), o.centerInCategory && (q = i.adjustForMissingColumns(q, $, Y, W)), Y.barX = q, Y.pointWidth = $, Y.tooltipPos = h.inverted ? [d(n.len + n.pos - h.plotLeft - Q, n.pos - h.plotLeft, n.len + n.pos - h.plotLeft), s.len + s.pos - h.plotTop - q - it / 2, z] : [s.left - h.plotLeft + q + it / 2, d(Q + n.pos - h.plotTop, n.pos - h.plotTop, n.len + n.pos - h.plotTop), z], Y.shapeType = i.pointClass.prototype.shapeType || "rect", Y.shapeArgs = i.crispCol.apply(i, Y.isNull ? [q, _, it, 0] : [q, G, it, z]);
  13113. });
  13114. }, p.prototype.drawGraph = function() {
  13115. this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
  13116. }, p.prototype.pointAttribs = function(i, h) {
  13117. var o = this.options, t = this.pointAttrToOptions || {}, s = t.stroke || "borderColor", n = t["stroke-width"] || "borderWidth", T = i && i.color || this.color, _ = i && i[s] || o[s] || T;
  13118. t = i && i.options.dashStyle || o.dashStyle;
  13119. var D = i && i[n] || o[n] || this[n] || 0, W = x(i && i.opacity, o.opacity, 1);
  13120. if (i && this.zones.length) {
  13121. var P = i.getZone();
  13122. T = i.options.color || P && (P.color || i.nonZonedColor) || this.color, P && (_ = P.borderColor || _, t = P.dashStyle || t, D = P.borderWidth || D);
  13123. }
  13124. return h && i && (i = w(o.states[h], i.options.states && i.options.states[h] || {}), h = i.brightness, T = i.color || typeof h < "u" && S(T).brighten(i.brightness).get() || T, _ = i[s] || _, D = i[n] || D, t = i.dashStyle || t, W = x(i.opacity, W)), s = { fill: T, stroke: _, "stroke-width": D, opacity: W }, t && (s.dashstyle = t), s;
  13125. }, p.prototype.drawPoints = function() {
  13126. var i = this, h = this.chart, o = i.options, t = h.renderer, s = o.animationLimit || 250, n;
  13127. i.points.forEach(function(T) {
  13128. var _ = T.graphic, D = !!_, W = _ && h.pointCount < s ? "animate" : "attr";
  13129. b(T.plotY) && T.y !== null ? (n = T.shapeArgs, _ && T.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (T.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (T.graphic = _ = t[T.shapeType](n).add(T.group || i.group)) && i.enabledDataSorting && h.hasRendered && h.pointCount < s && (_.attr({ x: T.startXPos }), D = !0, W = "animate"), _ && D && _[W](w(n)), o.borderRadius && _[W]({ r: o.borderRadius }), h.styledMode || _[W](i.pointAttribs(T, T.selected && "select")).shadow(T.allowShadow !== !1 && o.shadow, null, o.stacking && !o.borderRadius), _ && (_.addClass(T.getClassName(), !0), _.attr({ visibility: T.visible ? "inherit" : "hidden" }))) : _ && (T.graphic = _.destroy());
  13130. });
  13131. }, p.prototype.drawTracker = function() {
  13132. var i = this, h = i.chart, o = h.pointer, t = function(n) {
  13133. var T = o.getPointFromEvent(n);
  13134. typeof T < "u" && (o.isDirectTouch = !0, T.onMouseOver(n));
  13135. }, s;
  13136. i.points.forEach(function(n) {
  13137. s = C(n.dataLabels) ? n.dataLabels : n.dataLabel ? [n.dataLabel] : [], n.graphic && (n.graphic.element.point = n), s.forEach(function(T) {
  13138. T.div ? T.div.point = n : T.element.point = n;
  13139. });
  13140. }), i._hasTracking || (i.trackerGroups.forEach(function(n) {
  13141. i[n] && (i[n].addClass("highcharts-tracker").on("mouseover", t).on("mouseout", function(T) {
  13142. o.onTrackerMouseOut(T);
  13143. }), v && i[n].on(
  13144. "touchstart",
  13145. t
  13146. ), !h.styledMode && i.options.cursor && i[n].css(u).css({ cursor: i.options.cursor }));
  13147. }), i._hasTracking = !0), B(this, "afterDrawTracker");
  13148. }, p.prototype.remove = function() {
  13149. var i = this, h = i.chart;
  13150. h.hasRendered && h.series.forEach(function(o) {
  13151. o.type === i.type && (o.isDirty = !0);
  13152. }), H.prototype.remove.apply(i, arguments);
  13153. }, p.defaultOptions = w(H.defaultOptions, { borderRadius: 0, centerInCategory: !1, groupPadding: 0.2, marker: null, pointPadding: 0.1, minPointLength: 0, cropThreshold: 50, pointRange: null, states: {
  13154. hover: { halo: !1, brightness: 0.1 },
  13155. select: { color: "#cccccc", borderColor: "#000000" }
  13156. }, dataLabels: { align: void 0, verticalAlign: void 0, y: void 0 }, startFromThreshold: !0, stickyTracking: !1, tooltip: { distance: 6 }, threshold: 0, borderColor: "#ffffff" }), p;
  13157. }(H), O(F.prototype, { cropShoulder: 0, directTouch: !0, drawLegendSymbol: Z.drawRectangle, getSymbol: y, negStacks: !0, trackerGroups: ["group", "dataLabelsGroup"] }), U.registerSeriesType("column", F), F;
  13158. }), E(l, "Core/Series/DataLabel.js", [
  13159. l["Core/Animation/AnimationUtilities.js"],
  13160. l["Core/FormatUtilities.js"],
  13161. l["Core/Utilities.js"]
  13162. ], function(y, j, I) {
  13163. var Z = y.getDeferredAnimation, H = j.format, U = I.defined, F = I.extend, N = I.fireEvent, R = I.isArray, S = I.merge, v = I.objectEach, d = I.pick, u = I.splat, A;
  13164. return function(O) {
  13165. function B(p, i, h, o, t) {
  13166. var s = this, n = this.chart, T = this.isCartesian && n.inverted, _ = this.enabledDataSorting, D = d(p.dlBox && p.dlBox.centerX, p.plotX, -9999), W = d(p.plotY, -9999), P = i.getBBox(), X = h.rotation, g = h.align, m = n.isInsidePlot(D, Math.round(W), { inverted: T, paneCoordinates: !0, series: s }), L = function(k) {
  13167. _ && s.xAxis && !Y && s.setDataLabelStartPos(
  13168. p,
  13169. i,
  13170. t,
  13171. m,
  13172. k
  13173. );
  13174. }, Y = d(h.overflow, _ ? "none" : "justify") === "justify", V = this.visible && p.visible !== !1 && (p.series.forceDL || _ && !Y || m || d(h.inside, !!this.options.stacking) && o && n.isInsidePlot(D, T ? o.x + 1 : o.y + o.height - 1, { inverted: T, paneCoordinates: !0, series: s }));
  13175. if (V) {
  13176. var Q = n.renderer.fontMetrics(n.styledMode ? void 0 : h.style.fontSize, i).b;
  13177. o = F({ x: T ? this.yAxis.len - W : D, y: Math.round(T ? this.xAxis.len - D : W), width: 0, height: 0 }, o), F(h, { width: P.width, height: P.height }), X ? (Y = !1, D = n.renderer.rotCorr(Q, X), D = { x: o.x + (h.x || 0) + o.width / 2 + D.x, y: o.y + (h.y || 0) + { top: 0, middle: 0.5, bottom: 1 }[h.verticalAlign] * o.height }, L(D), i[t ? "attr" : "animate"](D).attr({ align: g }), L = (X + 720) % 360, L = 180 < L && 360 > L, g === "left" ? D.y -= L ? P.height : 0 : g === "center" ? (D.x -= P.width / 2, D.y -= P.height / 2) : g === "right" && (D.x -= P.width, D.y -= L ? 0 : P.height), i.placed = !0, i.alignAttr = D) : (L(o), i.align(h, void 0, o), D = i.alignAttr), Y && 0 <= o.height ? this.justifyDataLabel(i, h, D, P, o, t) : d(h.crop, !0) && (V = n.isInsidePlot(D.x, D.y, { paneCoordinates: !0, series: s }) && n.isInsidePlot(D.x + P.width, D.y + P.height, {
  13178. paneCoordinates: !0,
  13179. series: s
  13180. })), h.shape && !X && i[t ? "attr" : "animate"]({ anchorX: T ? n.plotWidth - p.plotY : p.plotX, anchorY: T ? n.plotHeight - p.plotX : p.plotY });
  13181. }
  13182. t && _ && (i.placed = !1), V || _ && !Y || (i.hide(!0), i.placed = !1);
  13183. }
  13184. function C(p, i) {
  13185. var h = i.filter;
  13186. return h ? (i = h.operator, p = p[h.property], h = h.value, i === ">" && p > h || i === "<" && p < h || i === ">=" && p >= h || i === "<=" && p <= h || i === "==" && p == h || i === "===" && p === h) : !0;
  13187. }
  13188. function b() {
  13189. var p = this, i = p.chart, h = p.options, o = p.points, t = p.hasRendered || 0, s = i.renderer, n = h.dataLabels, T, _ = n.animation;
  13190. if (_ = n.defer ? Z(
  13191. i,
  13192. _,
  13193. p
  13194. ) : { defer: 0, duration: 0 }, n = x(x(i.options.plotOptions && i.options.plotOptions.series && i.options.plotOptions.series.dataLabels, i.options.plotOptions && i.options.plotOptions[p.type] && i.options.plotOptions[p.type].dataLabels), n), N(this, "drawDataLabels"), R(n) || n.enabled || p._hasPointLabels) {
  13195. var D = p.plotGroup("dataLabelsGroup", "data-labels", t ? "inherit" : "hidden", n.zIndex || 6);
  13196. D.attr({ opacity: +t }), !t && (t = p.dataLabelsGroup) && (p.visible && D.show(!0), t[h.animation ? "animate" : "attr"]({ opacity: 1 }, _)), o.forEach(function(W) {
  13197. T = u(x(n, W.dlOptions || W.options && W.options.dataLabels)), T.forEach(function(P, X) {
  13198. var g = P.enabled && (!W.isNull || W.dataLabelOnNull) && C(W, P), m = W.connectors ? W.connectors[X] : W.connector, L = W.dataLabels ? W.dataLabels[X] : W.dataLabel, Y = d(P.distance, W.labelDistance), V = !L;
  13199. if (g) {
  13200. var Q = W.getLabelConfig(), k = d(P[W.formatPrefix + "Format"], P.format);
  13201. Q = U(k) ? H(k, Q, i) : (P[W.formatPrefix + "Formatter"] || P.formatter).call(Q, P), k = P.style;
  13202. var G = P.rotation;
  13203. i.styledMode || (k.color = d(P.color, k.color, p.color, "#000000"), k.color === "contrast" ? (W.contrastColor = s.getContrast(W.color || p.color), k.color = !U(Y) && P.inside || 0 > Y || h.stacking ? W.contrastColor : "#000000") : delete W.contrastColor, h.cursor && (k.cursor = h.cursor));
  13204. var z = { r: P.borderRadius || 0, rotation: G, padding: P.padding, zIndex: 1 };
  13205. i.styledMode || (z.fill = P.backgroundColor, z.stroke = P.borderColor, z["stroke-width"] = P.borderWidth), v(z, function($, q) {
  13206. typeof $ > "u" && delete z[q];
  13207. });
  13208. }
  13209. !L || g && U(Q) && !!L.div == !!P.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 && U(Q) && (L ? z.text = Q : (W.dataLabels = W.dataLabels || [], L = W.dataLabels[X] = G ? s.text(Q, 0, -9999, P.useHTML).addClass("highcharts-data-label") : s.label(Q, 0, -9999, P.shape, null, null, P.useHTML, null, "data-label"), X || (W.dataLabel = L), L.addClass(" highcharts-data-label-color-" + W.colorIndex + " " + (P.className || "") + (P.useHTML ? " highcharts-tracker" : ""))), L.options = P, L.attr(z), i.styledMode || L.css(k).shadow(P.shadow), L.added || L.add(D), P.textPath && !P.useHTML && (L.setTextPath(W.getDataLabelPath && W.getDataLabelPath(L) || W.graphic, P.textPath), W.dataLabelPath && !P.textPath.enabled && (W.dataLabelPath = W.dataLabelPath.destroy())), p.alignDataLabel(W, L, P, null, V));
  13210. });
  13211. });
  13212. }
  13213. N(this, "afterDrawDataLabels");
  13214. }
  13215. function w(p, i, h, o, t, s) {
  13216. var n = this.chart, T = i.align, _ = i.verticalAlign, D = p.box ? 0 : p.padding || 0, W = i.x;
  13217. W = W === void 0 ? 0 : W;
  13218. var P = i.y;
  13219. P = P === void 0 ? 0 : P;
  13220. var X = (h.x || 0) + D;
  13221. if (0 > X) {
  13222. T === "right" && 0 <= W ? (i.align = "left", i.inside = !0) : W -= X;
  13223. var g = !0;
  13224. }
  13225. return X = (h.x || 0) + o.width - D, X > n.plotWidth && (T === "left" && 0 >= W ? (i.align = "right", i.inside = !0) : W += n.plotWidth - X, g = !0), X = h.y + D, 0 > X && (_ === "bottom" && 0 <= P ? (i.verticalAlign = "top", i.inside = !0) : P -= X, g = !0), X = (h.y || 0) + o.height - D, X > n.plotHeight && (_ === "top" && 0 >= P ? (i.verticalAlign = "bottom", i.inside = !0) : P += n.plotHeight - X, g = !0), g && (i.x = W, i.y = P, p.placed = !s, p.align(i, void 0, t)), g;
  13226. }
  13227. function x(p, i) {
  13228. var h = [], o;
  13229. if (R(p) && !R(i))
  13230. h = p.map(function(t) {
  13231. return S(t, i);
  13232. });
  13233. else if (R(i) && !R(p))
  13234. h = i.map(function(t) {
  13235. return S(p, t);
  13236. });
  13237. else if (R(p) || R(i))
  13238. for (o = Math.max(p.length, i.length); o--; )
  13239. h[o] = S(p[o], i[o]);
  13240. else
  13241. h = S(p, i);
  13242. return h;
  13243. }
  13244. function a(p, i, h, o, t) {
  13245. var s = this.chart, n = s.inverted, T = this.xAxis, _ = T.reversed, D = n ? i.height / 2 : i.width / 2;
  13246. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : T.width - D + p, i.startYPos = n ? _ ? this.yAxis.height - D + p : -D - p : t.y, o ? i.visibility === "hidden" && (i.show(), i.attr({ opacity: 0 }).animate({ opacity: 1 })) : i.attr({ opacity: 1 }).animate(
  13247. { opacity: 0 },
  13248. void 0,
  13249. i.hide
  13250. ), s.hasRendered && (h && i.attr({ x: i.startXPos, y: i.startYPos }), i.placed = !0);
  13251. }
  13252. var c = [];
  13253. O.compose = function(p) {
  13254. if (c.indexOf(p) === -1) {
  13255. var i = p.prototype;
  13256. c.push(p), i.alignDataLabel = B, i.drawDataLabels = b, i.justifyDataLabel = w, i.setDataLabelStartPos = a;
  13257. }
  13258. };
  13259. }(A || (A = {})), A;
  13260. }), E(l, "Series/Column/ColumnDataLabel.js", [l["Core/Series/DataLabel.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13261. var Z = j.series, H = I.merge, U = I.pick, F;
  13262. return function(N) {
  13263. function R(v, d, u, A, O) {
  13264. var B = this.chart.inverted, C = v.series, b = (C.xAxis ? C.xAxis.len : this.chart.plotSizeX) || 0;
  13265. C = (C.yAxis ? C.yAxis.len : this.chart.plotSizeY) || 0;
  13266. var w = v.dlBox || v.shapeArgs, x = U(v.below, v.plotY > U(this.translatedThreshold, C)), a = U(u.inside, !!this.options.stacking);
  13267. w && (A = H(w), 0 > A.y && (A.height += A.y, A.y = 0), w = A.y + A.height - C, 0 < w && w < A.height && (A.height -= w), B && (A = { x: C - A.y - A.height, y: b - A.x - A.width, width: A.height, height: A.width }), a || (B ? (A.x += x ? 0 : A.width, A.width = 0) : (A.y += x ? A.height : 0, A.height = 0))), u.align = U(u.align, !B || a ? "center" : x ? "right" : "left"), u.verticalAlign = U(u.verticalAlign, B || a ? "middle" : x ? "top" : "bottom"), Z.prototype.alignDataLabel.call(this, v, d, u, A, O), u.inside && v.contrastColor && d.css({ color: v.contrastColor });
  13268. }
  13269. var S = [];
  13270. N.compose = function(v) {
  13271. y.compose(Z), S.indexOf(v) === -1 && (S.push(v), v.prototype.alignDataLabel = R);
  13272. };
  13273. }(F || (F = {})), F;
  13274. }), E(l, "Series/Bar/BarSeries.js", [l["Series/Column/ColumnSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13275. var Z = this && this.__extends || function() {
  13276. var F = function(N, R) {
  13277. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  13278. S.__proto__ = v;
  13279. } || function(S, v) {
  13280. for (var d in v)
  13281. v.hasOwnProperty(d) && (S[d] = v[d]);
  13282. }, F(N, R);
  13283. };
  13284. return function(N, R) {
  13285. function S() {
  13286. this.constructor = N;
  13287. }
  13288. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  13289. };
  13290. }(), H = I.extend, U = I.merge;
  13291. return I = function(F) {
  13292. function N() {
  13293. var R = F !== null && F.apply(this, arguments) || this;
  13294. return R.data = void 0, R.options = void 0, R.points = void 0, R;
  13295. }
  13296. return Z(N, F), N.defaultOptions = U(
  13297. y.defaultOptions,
  13298. {}
  13299. ), N;
  13300. }(y), H(I.prototype, { inverted: !0 }), j.registerSeriesType("bar", I), I;
  13301. }), E(l, "Series/Scatter/ScatterSeries.js", [l["Series/Column/ColumnSeries.js"], l["Series/Line/LineSeries.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Utilities.js"]], function(y, j, I, Z) {
  13302. var H = this && this.__extends || function() {
  13303. var R = function(S, v) {
  13304. return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, u) {
  13305. d.__proto__ = u;
  13306. } || function(d, u) {
  13307. for (var A in u)
  13308. u.hasOwnProperty(A) && (d[A] = u[A]);
  13309. }, R(S, v);
  13310. };
  13311. return function(S, v) {
  13312. function d() {
  13313. this.constructor = S;
  13314. }
  13315. R(S, v), S.prototype = v === null ? Object.create(v) : (d.prototype = v.prototype, new d());
  13316. };
  13317. }(), U = Z.addEvent, F = Z.extend, N = Z.merge;
  13318. return Z = function(R) {
  13319. function S() {
  13320. var v = R !== null && R.apply(this, arguments) || this;
  13321. return v.data = void 0, v.options = void 0, v.points = void 0, v;
  13322. }
  13323. return H(S, R), S.prototype.applyJitter = function() {
  13324. var v = this, d = this.options.jitter, u = this.points.length;
  13325. d && this.points.forEach(function(A, O) {
  13326. ["x", "y"].forEach(function(B, C) {
  13327. var b = "plot" + B.toUpperCase();
  13328. if (d[B] && !A.isNull) {
  13329. var w = v[B + "Axis"], x = d[B] * w.transA;
  13330. if (w && !w.isLog) {
  13331. var a = Math.max(0, A[b] - x);
  13332. w = Math.min(w.len, A[b] + x), C = 1e4 * Math.sin(O + C * u), A[b] = a + (w - a) * (C - Math.floor(C)), B === "x" && (A.clientX = A.plotX);
  13333. }
  13334. }
  13335. });
  13336. });
  13337. }, S.prototype.drawGraph = function() {
  13338. this.options.lineWidth ? R.prototype.drawGraph.call(this) : this.graph && (this.graph = this.graph.destroy());
  13339. }, S.defaultOptions = N(j.defaultOptions, { lineWidth: 0, findNearestPointBy: "xy", jitter: { x: 0, y: 0 }, marker: { enabled: !0 }, tooltip: {
  13340. headerFormat: '<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',
  13341. pointFormat: "x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"
  13342. } }), S;
  13343. }(j), F(Z.prototype, { drawTracker: y.prototype.drawTracker, sorted: !1, requireSorting: !1, noSharedTooltip: !0, trackerGroups: ["group", "markerGroup", "dataLabelsGroup"], takeOrdinalPosition: !1 }), U(Z, "afterTranslate", function() {
  13344. this.applyJitter();
  13345. }), I.registerSeriesType("scatter", Z), Z;
  13346. }), E(l, "Series/CenteredUtilities.js", [l["Core/Globals.js"], l["Core/Series/Series.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13347. var Z = y.deg2rad, H = I.isNumber, U = I.pick, F = I.relativeLength, N;
  13348. return function(R) {
  13349. R.getCenter = function() {
  13350. var S = this.options, v = this.chart, d = 2 * (S.slicedOffset || 0), u = v.plotWidth - 2 * d, A = v.plotHeight - 2 * d, O = S.center, B = Math.min(u, A), C = S.size, b = S.innerSize || 0;
  13351. for (typeof C == "string" && (C = parseFloat(C)), typeof b == "string" && (b = parseFloat(b)), S = [U(O[0], "50%"), U(O[1], "50%"), U(C && 0 > C ? void 0 : S.size, "100%"), U(b && 0 > b ? void 0 : S.innerSize || 0, "0%")], !v.angular || this instanceof j || (S[3] = 0), O = 0; 4 > O; ++O)
  13352. C = S[O], v = 2 > O || O === 2 && /%$/.test(C), S[O] = F(C, [u, A, B, S[2]][O]) + (v ? d : 0);
  13353. return S[3] > S[2] && (S[3] = S[2]), S;
  13354. }, R.getStartAndEndRadians = function(S, v) {
  13355. return S = H(S) ? S : 0, v = H(v) && v > S && 360 > v - S ? v : S + 360, { start: Z * (S + -90), end: Z * (v + -90) };
  13356. };
  13357. }(N || (N = {})), N;
  13358. }), E(l, "Series/Pie/PiePoint.js", [l["Core/Animation/AnimationUtilities.js"], l["Core/Series/Point.js"], l["Core/Utilities.js"]], function(y, j, I) {
  13359. var Z = this && this.__extends || function() {
  13360. var v = function(d, u) {
  13361. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(A, O) {
  13362. A.__proto__ = O;
  13363. } || function(A, O) {
  13364. for (var B in O)
  13365. O.hasOwnProperty(B) && (A[B] = O[B]);
  13366. }, v(d, u);
  13367. };
  13368. return function(d, u) {
  13369. function A() {
  13370. this.constructor = d;
  13371. }
  13372. v(d, u), d.prototype = u === null ? Object.create(u) : (A.prototype = u.prototype, new A());
  13373. };
  13374. }(), H = y.setAnimation, U = I.addEvent, F = I.defined;
  13375. y = I.extend;
  13376. var N = I.isNumber, R = I.pick, S = I.relativeLength;
  13377. return j = function(v) {
  13378. function d() {
  13379. var u = v !== null && v.apply(this, arguments) || this;
  13380. return u.labelDistance = void 0, u.options = void 0, u.series = void 0, u;
  13381. }
  13382. return Z(d, v), d.prototype.getConnectorPath = function() {
  13383. var u = this.labelPosition, A = this.series.options.dataLabels, O = this.connectorShapes, B = A.connectorShape;
  13384. return O[B] && (B = O[B]), B.call(this, { x: u.final.x, y: u.final.y, alignment: u.alignment }, u.connectorPosition, A);
  13385. }, d.prototype.getTranslate = function() {
  13386. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  13387. }, d.prototype.haloPath = function(u) {
  13388. var A = this.shapeArgs;
  13389. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(A.x, A.y, A.r + u, A.r + u, { innerR: A.r - 1, start: A.start, end: A.end });
  13390. }, d.prototype.init = function() {
  13391. var u = this;
  13392. v.prototype.init.apply(
  13393. this,
  13394. arguments
  13395. ), this.name = R(this.name, "Slice");
  13396. var A = function(O) {
  13397. u.slice(O.type === "select");
  13398. };
  13399. return U(this, "select", A), U(this, "unselect", A), this;
  13400. }, d.prototype.isValid = function() {
  13401. return N(this.y) && 0 <= this.y;
  13402. }, d.prototype.setVisible = function(u, A) {
  13403. var O = this, B = this.series, C = B.chart, b = B.options.ignoreHiddenPoint;
  13404. A = R(A, b), u !== this.visible && (this.visible = this.options.visible = u = typeof u > "u" ? !this.visible : u, B.options.data[B.data.indexOf(this)] = this.options, ["graphic", "dataLabel", "connector", "shadowGroup"].forEach(function(w) {
  13405. O[w] && O[w][u ? "show" : "hide"](u);
  13406. }), this.legendItem && C.legend.colorizeItem(this, u), u || this.state !== "hover" || this.setState(""), b && (B.isDirty = !0), A && C.redraw());
  13407. }, d.prototype.slice = function(u, A, O) {
  13408. var B = this.series;
  13409. H(O, B.chart), R(A, !0), this.sliced = this.options.sliced = F(u) ? u : !this.sliced, B.options.data[B.data.indexOf(this)] = this.options, this.graphic && this.graphic.animate(this.getTranslate()), this.shadowGroup && this.shadowGroup.animate(this.getTranslate());
  13410. }, d;
  13411. }(j), y(j.prototype, { connectorShapes: { fixedOffset: function(v, d, u) {
  13412. var A = d.breakAt;
  13413. return d = d.touchingSliceAt, [["M", v.x, v.y], u.softConnector ? ["C", v.x + (v.alignment === "left" ? -5 : 5), v.y, 2 * A.x - d.x, 2 * A.y - d.y, A.x, A.y] : ["L", A.x, A.y], ["L", d.x, d.y]];
  13414. }, straight: function(v, d) {
  13415. return d = d.touchingSliceAt, [["M", v.x, v.y], ["L", d.x, d.y]];
  13416. }, crookedLine: function(v, d, u) {
  13417. d = d.touchingSliceAt;
  13418. var A = this.series, O = A.center[0], B = A.chart.plotWidth, C = A.chart.plotLeft;
  13419. A = v.alignment;
  13420. var b = this.shapeArgs.r;
  13421. return u = S(u.crookDistance, 1), B = A === "left" ? O + b + (B + C - O - b) * (1 - u) : C + (O - b) * u, u = ["L", B, v.y], O = !0, (A === "left" ? B > v.x || B < d.x : B < v.x || B > d.x) && (O = !1), v = [["M", v.x, v.y]], O && v.push(u), v.push(["L", d.x, d.y]), v;
  13422. } } }), j;
  13423. }), E(l, "Series/Pie/PieSeries.js", [l["Series/CenteredUtilities.js"], l["Series/Column/ColumnSeries.js"], l["Core/Globals.js"], l["Core/Legend/LegendSymbol.js"], l["Series/Pie/PiePoint.js"], l["Core/Series/Series.js"], l["Core/Series/SeriesRegistry.js"], l["Core/Renderer/SVG/Symbols.js"], l["Core/Utilities.js"]], function(y, j, I, Z, H, U, F, N, R) {
  13424. var S = this && this.__extends || function() {
  13425. var b = function(w, x) {
  13426. return b = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, c) {
  13427. a.__proto__ = c;
  13428. } || function(a, c) {
  13429. for (var p in c)
  13430. c.hasOwnProperty(p) && (a[p] = c[p]);
  13431. }, b(w, x);
  13432. };
  13433. return function(w, x) {
  13434. function a() {
  13435. this.constructor = w;
  13436. }
  13437. b(w, x), w.prototype = x === null ? Object.create(x) : (a.prototype = x.prototype, new a());
  13438. };
  13439. }(), v = y.getStartAndEndRadians;
  13440. I = I.noop;
  13441. var d = R.clamp, u = R.extend, A = R.fireEvent, O = R.merge, B = R.pick, C = R.relativeLength;
  13442. return R = function(b) {
  13443. function w() {
  13444. var x = b !== null && b.apply(this, arguments) || this;
  13445. return x.center = void 0, x.data = void 0, x.maxLabelDistance = void 0, x.options = void 0, x.points = void 0, x;
  13446. }
  13447. return S(w, b), w.prototype.animate = function(x) {
  13448. var a = this, c = a.points, p = a.startAngleRad;
  13449. x || c.forEach(function(i) {
  13450. var h = i.graphic, o = i.shapeArgs;
  13451. h && o && (h.attr({ r: B(i.startR, a.center && a.center[3] / 2), start: p, end: p }), h.animate({ r: o.r, start: o.start, end: o.end }, a.options.animation));
  13452. });
  13453. }, w.prototype.drawEmpty = function() {
  13454. var x = this.startAngleRad, a = this.endAngleRad, c = this.options;
  13455. if (this.total === 0 && this.center) {
  13456. var p = this.center[0], i = this.center[1];
  13457. this.graph || (this.graph = this.chart.renderer.arc(p, i, this.center[1] / 2, 0, x, a).addClass("highcharts-empty-series").add(this.group)), this.graph.attr({ d: N.arc(p, i, this.center[2] / 2, 0, { start: x, end: a, innerR: this.center[3] / 2 }) }), this.chart.styledMode || this.graph.attr({ "stroke-width": c.borderWidth, fill: c.fillColor || "none", stroke: c.color || "#cccccc" });
  13458. } else
  13459. this.graph && (this.graph = this.graph.destroy());
  13460. }, w.prototype.drawPoints = function() {
  13461. var x = this.chart.renderer;
  13462. this.points.forEach(function(a) {
  13463. a.graphic && a.hasNewShapeType() && (a.graphic = a.graphic.destroy()), a.graphic || (a.graphic = x[a.shapeType](a.shapeArgs).add(a.series.group), a.delayedRendering = !0);
  13464. });
  13465. }, w.prototype.generatePoints = function() {
  13466. b.prototype.generatePoints.call(this), this.updateTotals();
  13467. }, w.prototype.getX = function(x, a, c) {
  13468. var p = this.center, i = this.radii ? this.radii[c.index] || 0 : p[2] / 2;
  13469. return x = Math.asin(d((x - p[1]) / (i + c.labelDistance), -1, 1)), p[0] + (a ? -1 : 1) * Math.cos(x) * (i + c.labelDistance) + (0 < c.labelDistance ? (a ? -1 : 1) * this.options.dataLabels.padding : 0);
  13470. }, w.prototype.hasData = function() {
  13471. return !!this.processedXData.length;
  13472. }, w.prototype.redrawPoints = function() {
  13473. var x = this, a = x.chart, c = a.renderer, p = x.options.shadow, i, h, o, t;
  13474. this.drawEmpty(), !p || x.shadowGroup || a.styledMode || (x.shadowGroup = c.g("shadow").attr({ zIndex: -1 }).add(x.group)), x.points.forEach(function(s) {
  13475. var n = {};
  13476. if (h = s.graphic, !s.isNull && h) {
  13477. var T = void 0;
  13478. t = s.shapeArgs, i = s.getTranslate(), a.styledMode || (T = s.shadowGroup, p && !T && (T = s.shadowGroup = c.g("shadow").add(x.shadowGroup)), T && T.attr(i), o = x.pointAttribs(s, s.selected && "select")), s.delayedRendering ? (h.setRadialReference(x.center).attr(t).attr(i), a.styledMode || h.attr(o).attr({ "stroke-linejoin": "round" }).shadow(p, T), s.delayedRendering = !1) : (h.setRadialReference(x.center), a.styledMode || O(!0, n, o), O(!0, n, t, i), h.animate(n)), h.attr({ visibility: s.visible ? "inherit" : "hidden" }), h.addClass(s.getClassName(), !0);
  13479. } else
  13480. h && (s.graphic = h.destroy());
  13481. });
  13482. }, w.prototype.sortByAngle = function(x, a) {
  13483. x.sort(function(c, p) {
  13484. return typeof c.angle < "u" && (p.angle - c.angle) * a;
  13485. });
  13486. }, w.prototype.translate = function(x) {
  13487. this.generatePoints();
  13488. var a = this.options, c = a.slicedOffset, p = c + (a.borderWidth || 0), i = v(a.startAngle, a.endAngle), h = this.startAngleRad = i.start;
  13489. i = (this.endAngleRad = i.end) - h;
  13490. var o = this.points, t = a.dataLabels.distance;
  13491. a = a.ignoreHiddenPoint;
  13492. var s = o.length, n, T = 0;
  13493. for (x || (this.center = x = this.getCenter()), n = 0; n < s; n++) {
  13494. var _ = o[n], D = h + T * i;
  13495. !_.isValid() || a && !_.visible || (T += _.percentage / 100);
  13496. var W = h + T * i, P = { x: x[0], y: x[1], r: x[2] / 2, innerR: x[3] / 2, start: Math.round(1e3 * D) / 1e3, end: Math.round(1e3 * W) / 1e3 };
  13497. _.shapeType = "arc", _.shapeArgs = P, _.labelDistance = B(_.options.dataLabels && _.options.dataLabels.distance, t), _.labelDistance = C(_.labelDistance, P.r), this.maxLabelDistance = Math.max(this.maxLabelDistance || 0, _.labelDistance), W = (W + D) / 2, W > 1.5 * Math.PI ? W -= 2 * Math.PI : W < -Math.PI / 2 && (W += 2 * Math.PI), _.slicedTranslation = { translateX: Math.round(Math.cos(W) * c), translateY: Math.round(Math.sin(W) * c) }, P = Math.cos(W) * x[2] / 2;
  13498. var X = Math.sin(W) * x[2] / 2;
  13499. _.tooltipPos = [x[0] + 0.7 * P, x[1] + 0.7 * X], _.half = W < -Math.PI / 2 || W > Math.PI / 2 ? 1 : 0, _.angle = W, D = Math.min(p, _.labelDistance / 5), _.labelPosition = { natural: { x: x[0] + P + Math.cos(W) * _.labelDistance, y: x[1] + X + Math.sin(W) * _.labelDistance }, final: {}, alignment: 0 > _.labelDistance ? "center" : _.half ? "right" : "left", connectorPosition: { breakAt: { x: x[0] + P + Math.cos(W) * D, y: x[1] + X + Math.sin(W) * D }, touchingSliceAt: { x: x[0] + P, y: x[1] + X } } };
  13500. }
  13501. A(this, "afterTranslate");
  13502. }, w.prototype.updateTotals = function() {
  13503. var x = this.points, a = x.length, c = this.options.ignoreHiddenPoint, p, i = 0;
  13504. for (p = 0; p < a; p++) {
  13505. var h = x[p];
  13506. !h.isValid() || c && !h.visible || (i += h.y);
  13507. }
  13508. for (this.total = i, p = 0; p < a; p++)
  13509. h = x[p], h.percentage = 0 < i && (h.visible || !c) ? h.y / i * 100 : 0, h.total = i;
  13510. }, w.defaultOptions = O(U.defaultOptions, {
  13511. center: [null, null],
  13512. clip: !1,
  13513. colorByPoint: !0,
  13514. dataLabels: { allowOverlap: !0, connectorPadding: 5, connectorShape: "fixedOffset", crookDistance: "70%", distance: 30, enabled: !0, formatter: function() {
  13515. return this.point.isNull ? void 0 : this.point.name;
  13516. }, softConnector: !0, x: 0 },
  13517. fillColor: void 0,
  13518. ignoreHiddenPoint: !0,
  13519. inactiveOtherPoints: !0,
  13520. legendType: "point",
  13521. marker: null,
  13522. size: null,
  13523. showInLegend: !1,
  13524. slicedOffset: 10,
  13525. stickyTracking: !1,
  13526. tooltip: { followPointer: !0 },
  13527. borderColor: "#ffffff",
  13528. borderWidth: 1,
  13529. lineWidth: void 0,
  13530. states: { hover: { brightness: 0.1 } }
  13531. }), w;
  13532. }(U), u(R.prototype, { axisTypes: [], directTouch: !0, drawGraph: void 0, drawLegendSymbol: Z.drawRectangle, drawTracker: j.prototype.drawTracker, getCenter: y.getCenter, getSymbol: I, isCartesian: !1, noSharedTooltip: !0, pointAttribs: j.prototype.pointAttribs, pointClass: H, requireSorting: !1, searchPoint: I, trackerGroups: ["group", "dataLabelsGroup"] }), F.registerSeriesType("pie", R), R;
  13533. }), E(l, "Series/Pie/PieDataLabel.js", [
  13534. l["Core/Series/DataLabel.js"],
  13535. l["Core/Globals.js"],
  13536. l["Core/Renderer/RendererUtilities.js"],
  13537. l["Core/Series/SeriesRegistry.js"],
  13538. l["Core/Utilities.js"]
  13539. ], function(y, j, I, Z, H) {
  13540. var U = j.noop, F = I.distribute, N = Z.series, R = H.arrayMax, S = H.clamp, v = H.defined, d = H.merge, u = H.pick, A = H.relativeLength, O;
  13541. return function(B) {
  13542. function C() {
  13543. var c = this, p = c.data, i = c.chart, h = c.options.dataLabels || {}, o = h.connectorPadding, t = i.plotWidth, s = i.plotHeight, n = i.plotLeft, T = Math.round(i.chartWidth / 3), _ = c.center, D = _[2] / 2, W = _[1], P = [[], []], X = [0, 0, 0, 0], g = c.dataLabelPositioners, m, L, Y, V, Q, k, G, z, $, q, it, et;
  13544. c.visible && (h.enabled || c._hasPointLabels) && (p.forEach(function(nt) {
  13545. nt.dataLabel && nt.visible && nt.dataLabel.shortened && (nt.dataLabel.attr({ width: "auto" }).css({ width: "auto", textOverflow: "clip" }), nt.dataLabel.shortened = !1);
  13546. }), N.prototype.drawDataLabels.apply(c), p.forEach(function(nt) {
  13547. nt.dataLabel && (nt.visible ? (P[nt.half].push(nt), nt.dataLabel._pos = null, !v(h.style.width) && !v(nt.options.dataLabels && nt.options.dataLabels.style && nt.options.dataLabels.style.width) && nt.dataLabel.getBBox().width > T && (nt.dataLabel.css({ width: Math.round(0.7 * T) + "px" }), nt.dataLabel.shortened = !0)) : (nt.dataLabel = nt.dataLabel.destroy(), nt.dataLabels && nt.dataLabels.length === 1 && delete nt.dataLabels));
  13548. }), P.forEach(function(nt, rt) {
  13549. var ct = nt.length, gt = [], dt;
  13550. if (ct) {
  13551. if (c.sortByAngle(nt, rt - 0.5), 0 < c.maxLabelDistance) {
  13552. var ht = Math.max(0, W - D - c.maxLabelDistance), at = Math.min(W + D + c.maxLabelDistance, i.plotHeight);
  13553. nt.forEach(function(J) {
  13554. 0 < J.labelDistance && J.dataLabel && (J.top = Math.max(0, W - D - J.labelDistance), J.bottom = Math.min(W + D + 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));
  13555. }), ht = at + dt - ht, F(gt, ht, ht / 5);
  13556. }
  13557. for (it = 0; it < ct; it++) {
  13558. if (m = nt[it], k = m.labelPosition, V = m.dataLabel, q = m.visible === !1 ? "hidden" : "inherit", $ = ht = k.natural.y, gt && v(m.distributeBox) && (typeof m.distributeBox.pos > "u" ? q = "hidden" : (G = m.distributeBox.size, $ = g.radialDistributionY(m))), delete m.positionIndex, h.justify)
  13559. z = g.justify(m, D, _);
  13560. else
  13561. switch (h.alignTo) {
  13562. case "connectors":
  13563. z = g.alignToConnectors(nt, rt, t, n);
  13564. break;
  13565. case "plotEdges":
  13566. z = g.alignToPlotEdges(V, rt, t, n);
  13567. break;
  13568. default:
  13569. z = g.radialDistributionX(c, m, $, ht);
  13570. }
  13571. V._attr = { visibility: q, align: k.alignment }, et = m.options.dataLabels || {}, V._pos = { x: z + u(et.x, h.x) + ({ left: o, right: -o }[k.alignment] || 0), y: $ + u(et.y, h.y) - 10 }, k.final.x = z, k.final.y = $, u(h.crop, !0) && (Q = V.getBBox().width, ht = null, z - Q < o && rt === 1 ? (ht = Math.round(Q - z + o), X[3] = Math.max(ht, X[3])) : z + Q > t - o && rt === 0 && (ht = Math.round(z + Q - t + o), X[1] = Math.max(ht, X[1])), 0 > $ - G / 2 ? X[0] = Math.max(Math.round(-$ + G / 2), X[0]) : $ + G / 2 > s && (X[2] = Math.max(Math.round($ + G / 2 - s), X[2])), V.sideOverflow = ht);
  13572. }
  13573. }
  13574. }), R(X) === 0 || this.verifyDataLabelOverflow(X)) && (this.placeDataLabels(), this.points.forEach(function(nt) {
  13575. if (et = d(h, nt.options.dataLabels), L = u(et.connectorWidth, 1)) {
  13576. var rt;
  13577. Y = nt.connector, (V = nt.dataLabel) && V._pos && nt.visible && 0 < nt.labelDistance ? (q = V._attr.visibility, (rt = !Y) && (nt.connector = Y = i.renderer.path().addClass("highcharts-data-label-connector highcharts-color-" + nt.colorIndex + (nt.className ? " " + nt.className : "")).add(c.dataLabelsGroup), i.styledMode || Y.attr({ "stroke-width": L, stroke: et.connectorColor || nt.color || "#666666" })), Y[rt ? "attr" : "animate"]({ d: nt.getConnectorPath() }), Y.attr("visibility", q)) : Y && (nt.connector = Y.destroy());
  13578. }
  13579. }));
  13580. }
  13581. function b() {
  13582. this.points.forEach(function(c) {
  13583. var p = c.dataLabel, i;
  13584. p && c.visible && ((i = p._pos) ? (p.sideOverflow && (p._attr.width = Math.max(p.getBBox().width - p.sideOverflow, 0), p.css({ width: p._attr.width + "px", textOverflow: (this.options.dataLabels.style || {}).textOverflow || "ellipsis" }), p.shortened = !0), p.attr(p._attr), p[p.moved ? "animate" : "attr"](i), p.moved = !0) : p && p.attr({ y: -9999 })), delete c.distributeBox;
  13585. }, this);
  13586. }
  13587. function w(c) {
  13588. var p = this.center, i = this.options, h = i.center, o = i.minSize || 80, t = i.size !== null;
  13589. if (!t) {
  13590. if (h[0] !== null)
  13591. var s = Math.max(p[2] - Math.max(c[1], c[3]), o);
  13592. else
  13593. s = Math.max(p[2] - c[1] - c[3], o), p[0] += (c[3] - c[1]) / 2;
  13594. h[1] !== null ? s = S(s, o, p[2] - Math.max(c[0], c[2])) : (s = S(s, o, p[2] - c[0] - c[2]), p[1] += (c[0] - c[2]) / 2), s < p[2] ? (p[2] = s, p[3] = Math.min(A(i.innerSize || 0, s), s), this.translate(p), this.drawDataLabels && this.drawDataLabels()) : t = !0;
  13595. }
  13596. return t;
  13597. }
  13598. var x = [], a = { radialDistributionY: function(c) {
  13599. return c.top + c.distributeBox.pos;
  13600. }, radialDistributionX: function(c, p, i, h) {
  13601. return c.getX(i < p.top + 2 || i > p.bottom - 2 ? h : i, p.half, p);
  13602. }, justify: function(c, p, i) {
  13603. return i[0] + (c.half ? -1 : 1) * (p + c.labelDistance);
  13604. }, alignToPlotEdges: function(c, p, i, h) {
  13605. return c = c.getBBox().width, p ? c + h : i - c - h;
  13606. }, alignToConnectors: function(c, p, i, h) {
  13607. var o = 0, t;
  13608. return c.forEach(function(s) {
  13609. t = s.dataLabel.getBBox().width, t > o && (o = t);
  13610. }), p ? o + h : i - o - h;
  13611. } };
  13612. B.compose = function(c) {
  13613. y.compose(N), x.indexOf(c) === -1 && (x.push(c), c = c.prototype, c.dataLabelPositioners = a, c.alignDataLabel = U, c.drawDataLabels = C, c.placeDataLabels = b, c.verifyDataLabelOverflow = w);
  13614. };
  13615. }(O || (O = {})), O;
  13616. }), E(l, "Extensions/OverlappingDataLabels.js", [l["Core/Chart/Chart.js"], l["Core/Utilities.js"]], function(y, j) {
  13617. function I(S, v) {
  13618. var d = !1;
  13619. if (S) {
  13620. var u = S.newOpacity;
  13621. S.oldOpacity !== u && (S.alignAttr && S.placed ? (S[u ? "removeClass" : "addClass"]("highcharts-data-label-hidden"), d = !0, S.alignAttr.opacity = u, S[S.isOld ? "animate" : "attr"](S.alignAttr, null, function() {
  13622. v.styledMode || S.css({ pointerEvents: u ? "auto" : "none" });
  13623. }), H(v, "afterHideOverlappingLabel")) : S.attr({ opacity: u })), S.isOld = !0;
  13624. }
  13625. return d;
  13626. }
  13627. var Z = j.addEvent, H = j.fireEvent, U = j.isArray, F = j.isNumber, N = j.objectEach, R = j.pick;
  13628. Z(y, "render", function() {
  13629. var S = this, v = [];
  13630. (this.labelCollectors || []).forEach(function(d) {
  13631. v = v.concat(d());
  13632. }), (this.yAxis || []).forEach(function(d) {
  13633. d.stacking && d.options.stackLabels && !d.options.stackLabels.allowOverlap && N(d.stacking.stacks, function(u) {
  13634. N(u, function(A) {
  13635. A.label && A.label.visibility !== "hidden" && v.push(A.label);
  13636. });
  13637. });
  13638. }), (this.series || []).forEach(function(d) {
  13639. var u = d.options.dataLabels;
  13640. d.visible && (u.enabled !== !1 || d._hasPointLabels) && (u = function(A) {
  13641. return A.forEach(function(O) {
  13642. O.visible && (U(O.dataLabels) ? O.dataLabels : O.dataLabel ? [O.dataLabel] : []).forEach(function(B) {
  13643. var C = B.options;
  13644. B.labelrank = R(C.labelrank, O.labelrank, O.shapeArgs && O.shapeArgs.height), C.allowOverlap ? (B.oldOpacity = B.opacity, B.newOpacity = 1, I(B, S)) : v.push(B);
  13645. });
  13646. });
  13647. }, u(d.nodes || []), u(d.points));
  13648. }), this.hideOverlappingLabels(v);
  13649. }), y.prototype.hideOverlappingLabels = function(S) {
  13650. var v = this, d = S.length, u = v.renderer, A, O, B, C = !1, b = function(a) {
  13651. var c, p = a.box ? 0 : a.padding || 0, i = c = 0, h;
  13652. if (a && (!a.alignAttr || a.placed)) {
  13653. var o = a.alignAttr || { x: a.attr("x"), y: a.attr("y") }, t = a.parentGroup;
  13654. a.width || (c = a.getBBox(), a.width = c.width, a.height = c.height, c = u.fontMetrics(null, a.element).h);
  13655. var s = a.width - 2 * p;
  13656. return (h = { left: "0", center: "0.5", right: "1" }[a.alignValue]) ? i = +h * s : F(a.x) && Math.round(a.x) !== a.translateX && (i = a.x - a.translateX), { x: o.x + (t.translateX || 0) + p - (i || 0), y: o.y + (t.translateY || 0) + p - c, width: a.width - 2 * p, height: a.height - 2 * p };
  13657. }
  13658. };
  13659. for (O = 0; O < d; O++)
  13660. (A = S[O]) && (A.oldOpacity = A.opacity, A.newOpacity = 1, A.absoluteBox = b(A));
  13661. for (S.sort(function(a, c) {
  13662. return (c.labelrank || 0) - (a.labelrank || 0);
  13663. }), O = 0; O < d; O++) {
  13664. var w = (b = S[O]) && b.absoluteBox;
  13665. for (A = O + 1; A < d; ++A) {
  13666. var x = (B = S[A]) && B.absoluteBox;
  13667. !w || !x || b === B || b.newOpacity === 0 || B.newOpacity === 0 || x.x >= w.x + w.width || x.x + x.width <= w.x || x.y >= w.y + w.height || x.y + x.height <= w.y || ((b.labelrank < B.labelrank ? b : B).newOpacity = 0);
  13668. }
  13669. }
  13670. S.forEach(function(a) {
  13671. I(a, v) && (C = !0);
  13672. }), C && H(v, "afterHideAllOverlappingLabels");
  13673. };
  13674. }), E(
  13675. l,
  13676. "Core/Responsive.js",
  13677. [l["Core/Utilities.js"]],
  13678. function(y) {
  13679. var j = y.extend, I = y.find, Z = y.isArray, H = y.isObject, U = y.merge, F = y.objectEach, N = y.pick, R = y.splat, S = y.uniqueKey, v;
  13680. return function(d) {
  13681. var u = [];
  13682. d.compose = function(O) {
  13683. return u.indexOf(O) === -1 && (u.push(O), j(O.prototype, A.prototype)), O;
  13684. };
  13685. var A = function() {
  13686. function O() {
  13687. }
  13688. return O.prototype.currentOptions = function(B) {
  13689. function C(x, a, c, p) {
  13690. var i;
  13691. F(x, function(h, o) {
  13692. if (!p && -1 < b.collectionsWithUpdate.indexOf(o) && a[o])
  13693. for (h = R(h), c[o] = [], i = 0; i < Math.max(h.length, a[o].length); i++)
  13694. a[o][i] && (h[i] === void 0 ? c[o][i] = a[o][i] : (c[o][i] = {}, C(h[i], a[o][i], c[o][i], p + 1)));
  13695. else
  13696. H(h) ? (c[o] = Z(h) ? [] : {}, C(h, a[o] || {}, c[o], p + 1)) : c[o] = typeof a[o] > "u" ? null : a[o];
  13697. });
  13698. }
  13699. var b = this, w = {};
  13700. return C(B, this.options, w, 0), w;
  13701. }, O.prototype.matchResponsiveRule = function(B, C) {
  13702. var b = B.condition;
  13703. (b.callback || function() {
  13704. return this.chartWidth <= N(b.maxWidth, Number.MAX_VALUE) && this.chartHeight <= N(b.maxHeight, Number.MAX_VALUE) && this.chartWidth >= N(b.minWidth, 0) && this.chartHeight >= N(b.minHeight, 0);
  13705. }).call(this) && C.push(B._id);
  13706. }, O.prototype.setResponsive = function(B, C) {
  13707. var b = this, w = this.options.responsive, x = this.currentResponsive, a = [];
  13708. !C && w && w.rules && w.rules.forEach(function(c) {
  13709. typeof c._id > "u" && (c._id = S()), b.matchResponsiveRule(c, a);
  13710. }, this), C = U.apply(void 0, a.map(function(c) {
  13711. return I((w || {}).rules || [], function(p) {
  13712. return p._id === c;
  13713. });
  13714. }).map(function(c) {
  13715. return c && c.chartOptions;
  13716. })), C.isResponsiveOptions = !0, a = a.toString() || void 0, a !== (x && x.ruleIds) && (x && this.update(x.undoOptions, B, !0), a ? (x = this.currentOptions(C), x.isResponsiveOptions = !0, this.currentResponsive = { ruleIds: a, mergedOptions: C, undoOptions: x }, this.update(C, B, !0)) : this.currentResponsive = void 0);
  13717. }, O;
  13718. }();
  13719. }(v || (v = {})), v;
  13720. }
  13721. ), E(l, "masters/highcharts.src.js", [
  13722. l["Core/Globals.js"],
  13723. l["Core/Utilities.js"],
  13724. l["Core/DefaultOptions.js"],
  13725. l["Core/Animation/Fx.js"],
  13726. l["Core/Animation/AnimationUtilities.js"],
  13727. l["Core/Renderer/HTML/AST.js"],
  13728. l["Core/FormatUtilities.js"],
  13729. l["Core/Renderer/RendererUtilities.js"],
  13730. l["Core/Renderer/SVG/SVGElement.js"],
  13731. l["Core/Renderer/SVG/SVGRenderer.js"],
  13732. l["Core/Renderer/HTML/HTMLElement.js"],
  13733. l["Core/Renderer/HTML/HTMLRenderer.js"],
  13734. l["Core/Axis/Axis.js"],
  13735. l["Core/Axis/DateTimeAxis.js"],
  13736. l["Core/Axis/LogarithmicAxis.js"],
  13737. l["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
  13738. l["Core/Axis/Tick.js"],
  13739. l["Core/Tooltip.js"],
  13740. l["Core/Series/Point.js"],
  13741. l["Core/Pointer.js"],
  13742. l["Core/MSPointer.js"],
  13743. l["Core/Legend/Legend.js"],
  13744. l["Core/Chart/Chart.js"],
  13745. l["Core/Series/Series.js"],
  13746. l["Core/Series/SeriesRegistry.js"],
  13747. l["Series/Column/ColumnSeries.js"],
  13748. l["Series/Column/ColumnDataLabel.js"],
  13749. l["Series/Pie/PieSeries.js"],
  13750. l["Series/Pie/PieDataLabel.js"],
  13751. l["Core/Series/DataLabel.js"],
  13752. l["Core/Responsive.js"],
  13753. l["Core/Color/Color.js"],
  13754. l["Core/Time.js"]
  13755. ], function(y, j, I, Z, H, U, F, N, R, S, v, d, u, A, O, B, C, b, w, x, a, c, p, i, h, o, t, s, n, T, _, D, W) {
  13756. return y.animate = H.animate, y.animObject = H.animObject, y.getDeferredAnimation = H.getDeferredAnimation, y.setAnimation = H.setAnimation, y.stop = H.stop, y.timers = Z.timers, y.AST = U, y.Axis = u, y.Chart = p, y.chart = p.chart, y.Fx = Z, y.Legend = c, y.PlotLineOrBand = B, y.Point = w, y.Pointer = a.isRequired() ? a : x, y.Series = i, y.SVGElement = R, y.SVGRenderer = S, y.Tick = C, y.Time = W, y.Tooltip = b, y.Color = D, y.color = D.parse, d.compose(S), v.compose(R), y.defaultOptions = I.defaultOptions, y.getOptions = I.getOptions, y.time = I.defaultTime, y.setOptions = I.setOptions, y.dateFormat = F.dateFormat, y.format = F.format, y.numberFormat = F.numberFormat, y.addEvent = j.addEvent, y.arrayMax = j.arrayMax, y.arrayMin = j.arrayMin, y.attr = j.attr, y.clearTimeout = j.clearTimeout, y.correctFloat = j.correctFloat, y.createElement = j.createElement, y.css = j.css, y.defined = j.defined, y.destroyObjectProperties = j.destroyObjectProperties, y.discardElement = j.discardElement, y.distribute = N.distribute, y.erase = j.erase, y.error = j.error, y.extend = j.extend, y.extendClass = j.extendClass, y.find = j.find, y.fireEvent = j.fireEvent, y.getMagnitude = j.getMagnitude, y.getStyle = j.getStyle, y.inArray = j.inArray, y.isArray = j.isArray, y.isClass = j.isClass, y.isDOMElement = j.isDOMElement, y.isFunction = j.isFunction, y.isNumber = j.isNumber, y.isObject = j.isObject, y.isString = j.isString, y.keys = j.keys, y.merge = j.merge, y.normalizeTickInterval = j.normalizeTickInterval, y.objectEach = j.objectEach, y.offset = j.offset, y.pad = j.pad, y.pick = j.pick, y.pInt = j.pInt, y.relativeLength = j.relativeLength, y.removeEvent = j.removeEvent, y.seriesType = h.seriesType, y.splat = j.splat, y.stableSort = j.stableSort, y.syncTimeout = j.syncTimeout, y.timeUnits = j.timeUnits, y.uniqueKey = j.uniqueKey, y.useSerialIds = j.useSerialIds, y.wrap = j.wrap, t.compose(o), T.compose(i), A.compose(u), O.compose(u), n.compose(s), B.compose(u), _.compose(p), y;
  13757. }), l["masters/highcharts.src.js"]._modules = l, l["masters/highcharts.src.js"];
  13758. });
  13759. })(O0);
  13760. const Qn = dl;
  13761. var fl = {}, L0 = {
  13762. get exports() {
  13763. return fl;
  13764. },
  13765. set exports(r) {
  13766. fl = r;
  13767. }
  13768. };
  13769. (function(r) {
  13770. (function(f) {
  13771. r.exports ? (f.default = f, r.exports = f) : f(typeof Highcharts < "u" ? Highcharts : void 0);
  13772. })(function(f) {
  13773. function E(l, y, j, I) {
  13774. l.hasOwnProperty(y) || (l[y] = I.apply(null, j));
  13775. }
  13776. f = f ? f._modules : {}, E(f, "Extensions/Pane.js", [
  13777. f["Core/Chart/Chart.js"],
  13778. f["Series/CenteredUtilities.js"],
  13779. f["Core/Globals.js"],
  13780. f["Core/Pointer.js"],
  13781. f["Core/Utilities.js"]
  13782. ], function(l, y, j, I, Z) {
  13783. function H(v, d, u) {
  13784. return Math.sqrt(Math.pow(v - u[0], 2) + Math.pow(d - u[1], 2)) <= u[2] / 2;
  13785. }
  13786. var U = Z.addEvent, F = Z.extend, N = Z.merge, R = Z.pick, S = Z.splat;
  13787. return l.prototype.collectionsWithUpdate.push("pane"), Z = function() {
  13788. function v(d, u) {
  13789. 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: {
  13790. x1: 0,
  13791. y1: 0,
  13792. x2: 0,
  13793. y2: 1
  13794. }, stops: [[0, "#ffffff"], [1, "#e6e6e6"]] }, from: -Number.MAX_VALUE, innerRadius: 0, to: Number.MAX_VALUE, outerRadius: "105%" }, this.init(d, u);
  13795. }
  13796. return v.prototype.init = function(d, u) {
  13797. this.chart = u, this.background = [], u.pane.push(this), this.setOptions(d);
  13798. }, v.prototype.setOptions = function(d) {
  13799. this.options = N(this.defaultOptions, this.chart.angular ? { background: {} } : void 0, d);
  13800. }, v.prototype.render = function() {
  13801. var d = this.options, u = this.options.background, A = this.chart.renderer;
  13802. if (this.group || (this.group = A.g("pane-group").attr({ zIndex: d.zIndex || 0 }).add()), this.updateCenter(), u)
  13803. for (u = S(u), d = Math.max(u.length, this.background.length || 0), A = 0; A < d; A++)
  13804. u[A] && this.axis ? this.renderBackground(N(this.defaultBackgroundOptions, u[A]), A) : this.background[A] && (this.background[A] = this.background[A].destroy(), this.background.splice(A, 1));
  13805. }, v.prototype.renderBackground = function(d, u) {
  13806. var A = "animate", O = { class: "highcharts-pane " + (d.className || "") };
  13807. this.chart.styledMode || F(O, { fill: d.backgroundColor, stroke: d.borderColor, "stroke-width": d.borderWidth }), this.background[u] || (this.background[u] = this.chart.renderer.path().add(this.group), A = "attr"), this.background[u][A]({ d: this.axis.getPlotBandPath(d.from, d.to, d) }).attr(O);
  13808. }, v.prototype.updateCenter = function(d) {
  13809. this.center = (d || this.axis || {}).center = y.getCenter.call(this);
  13810. }, v.prototype.update = function(d, u) {
  13811. N(!0, this.options, d), this.setOptions(this.options), this.render(), this.chart.axes.forEach(function(A) {
  13812. A.pane === this && (A.pane = null, A.update({}, u));
  13813. }, this);
  13814. }, v;
  13815. }(), l.prototype.getHoverPane = function(v) {
  13816. var d = this, u;
  13817. return v && d.pane.forEach(function(A) {
  13818. var O = v.chartX - d.plotLeft, B = v.chartY - d.plotTop;
  13819. H(d.inverted ? B : O, d.inverted ? O : B, A.center) && (u = A);
  13820. }), u;
  13821. }, U(l, "afterIsInsidePlot", function(v) {
  13822. this.polar && (v.isInsidePlot = this.pane.some(function(d) {
  13823. return H(v.x, v.y, d.center);
  13824. }));
  13825. }), U(I, "beforeGetHoverData", function(v) {
  13826. var d = this.chart;
  13827. d.polar ? (d.hoverPane = d.getHoverPane(v), v.filter = function(u) {
  13828. return u.visible && !(!v.shared && u.directTouch) && R(u.options.enableMouseTracking, !0) && (!d.hoverPane || u.xAxis.pane === d.hoverPane);
  13829. }) : d.hoverPane = void 0;
  13830. }), U(
  13831. I,
  13832. "afterGetHoverData",
  13833. function(v) {
  13834. var d = this.chart;
  13835. v.hoverPoint && v.hoverPoint.plotX && v.hoverPoint.plotY && d.hoverPane && !H(v.hoverPoint.plotX, v.hoverPoint.plotY, d.hoverPane.center) && (v.hoverPoint = void 0);
  13836. }
  13837. ), j.Pane = Z, j.Pane;
  13838. }), E(f, "Core/Axis/RadialAxis.js", [f["Core/Axis/AxisDefaults.js"], f["Core/DefaultOptions.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  13839. var Z = y.defaultOptions, H = j.noop, U = I.addEvent, F = I.correctFloat, N = I.defined, R = I.extend, S = I.fireEvent, v = I.merge, d = I.pick, u = I.relativeLength, A = I.wrap, O;
  13840. return function(B) {
  13841. function C() {
  13842. this.autoConnect = this.isCircular && typeof d(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);
  13843. }
  13844. function b() {
  13845. var $ = this;
  13846. return function() {
  13847. if ($.isRadial && $.tickPositions && $.options.labels && $.options.labels.allowOverlap !== !0)
  13848. return $.tickPositions.map(function(q) {
  13849. return $.ticks[q] && $.ticks[q].label;
  13850. }).filter(function(q) {
  13851. return !!q;
  13852. });
  13853. };
  13854. }
  13855. function w() {
  13856. return H;
  13857. }
  13858. function x($, q, it) {
  13859. var et = this.pane.center, nt = $.value;
  13860. if (this.isCircular) {
  13861. if (N(nt))
  13862. $.point && (rt = $.point.shapeArgs || {}, rt.start && (nt = this.chart.inverted ? this.translate($.point.rectPlotY, !0) : $.point.x));
  13863. else {
  13864. var rt = $.chartX || 0, ct = $.chartY || 0;
  13865. nt = this.translate(Math.atan2(ct - it, rt - q) - this.startAngleRad, !0);
  13866. }
  13867. $ = this.getPosition(nt), rt = $.x, ct = $.y;
  13868. } else
  13869. N(nt) || (rt = $.chartX, ct = $.chartY), N(rt) && N(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));
  13870. return [nt, rt || 0, ct || 0];
  13871. }
  13872. function a($, q, it) {
  13873. $ = this.pane.center;
  13874. var et = this.chart, nt = this.left || 0, rt = this.top || 0, ct = d(q, $[2] / 2 - this.offset);
  13875. 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 + $[0], rt + $[1], ct, ct, { start: this.startAngleRad, end: this.endAngleRad, open: !0, innerR: 0 }), q.xBounds = [nt + $[0]], q.yBounds = [rt + $[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;
  13876. }
  13877. function c() {
  13878. this.constructor.prototype.getOffset.call(this), this.chart.axisOffset[this.side] = 0;
  13879. }
  13880. function p($, q, it) {
  13881. var et = this.chart, nt = function(yt) {
  13882. if (typeof yt == "string") {
  13883. var vt = parseInt(yt, 10);
  13884. return J.test(yt) && (vt = vt * gt / 100), vt;
  13885. }
  13886. return yt;
  13887. }, 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 = d(nt(it.outerRadius), gt), lt = nt(it.innerRadius);
  13888. if (nt = d(nt(it.thickness), 10), this.options.gridLineInterpolation === "polygon")
  13889. dt = this.getPlotLinePath({ value: $ }).concat(this.getPlotLinePath({ value: q, reverse: !0 }));
  13890. else {
  13891. if ($ = Math.max($, this.min), q = Math.min(q, this.max), $ = this.translate($), q = this.translate(q), tt || (ot = $ || 0, lt = q || 0), it.shape !== "circle" && tt)
  13892. it = ct + ($ || 0), ct += q || 0;
  13893. else {
  13894. it = -Math.PI / 2, ct = 1.5 * Math.PI;
  13895. var pt = !0;
  13896. }
  13897. 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: d(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);
  13898. }
  13899. return dt;
  13900. }
  13901. function i($) {
  13902. var q = this, it = this.pane.center, et = this.chart, nt = et.inverted, rt = $.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 = $.isCrosshair;
  13903. ct = it[3] / 2;
  13904. var ot = $.value, lt, pt = this.getPosition(ot), yt = pt.x;
  13905. if (pt = pt.y, tt && (pt = this.getCrosshairPosition($, ht, at), ot = pt[0], yt = pt[1], pt = pt[2]), this.isCircular)
  13906. ot = Math.sqrt(Math.pow(yt - ht, 2) + Math.pow(pt - at, 2)), rt = typeof gt == "string" ? u(gt, 1) : gt / ot, et = typeof dt == "string" ? u(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)]];
  13907. else if ((ot = this.translate(ot)) && (0 > ot || ot > J) && (ot = 0), this.options.gridLineInterpolation === "circle")
  13908. it = this.getLinePath(0, ot, ct);
  13909. else if (it = [], et[nt ? "yAxis" : "xAxis"].forEach(function(vt) {
  13910. vt.pane === q.pane && (lt = vt);
  13911. }), lt)
  13912. 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++)
  13913. ct = lt.getPosition(ht[at], ot), it.push(at ? ["L", ct.x, ct.y] : ["M", ct.x, ct.y]);
  13914. return it;
  13915. }
  13916. function h($, q) {
  13917. return $ = this.translate($), this.postTranslate(this.isCircular ? $ : this.angleRad, d(this.isCircular ? q : 0 > $ ? 0 : $, this.center[2] / 2) - this.offset);
  13918. }
  13919. function o() {
  13920. var $ = this.center, q = this.chart, it = this.options.title;
  13921. return { x: q.plotLeft + $[0] + (it.x || 0), y: q.plotTop + $[1] - { high: 0.5, middle: 0.25, low: 0 }[it.align] * $[2] + (it.y || 0) };
  13922. }
  13923. function t($) {
  13924. $.beforeSetTickPositions = C, $.createLabelCollector = b, $.getCrosshairPosition = x, $.getLinePath = a, $.getOffset = c, $.getPlotBandPath = p, $.getPlotLinePath = i, $.getPosition = h, $.getTitlePosition = o, $.postTranslate = X, $.setAxisSize = m, $.setAxisTranslation = L, $.setOptions = Y;
  13925. }
  13926. function s() {
  13927. var $ = this.chart, q = this.options, it = this.pane, et = it && it.options;
  13928. $.angular && this.isXAxis || !it || !$.angular && !$.polar || (this.angleRad = (q.angle || 0) * Math.PI / 180, this.startAngleRad = (et.startAngle - 90) * Math.PI / 180, this.endAngleRad = (d(et.endAngle, et.startAngle + 360) - 90) * Math.PI / 180, this.offset = q.offset || 0);
  13929. }
  13930. function n($) {
  13931. this.isRadial && ($.align = void 0, $.preventDefault());
  13932. }
  13933. function T() {
  13934. if (this.chart && this.chart.labelCollectors) {
  13935. var $ = this.labelCollector ? this.chart.labelCollectors.indexOf(this.labelCollector) : -1;
  13936. 0 <= $ && this.chart.labelCollectors.splice($, 1);
  13937. }
  13938. }
  13939. function _($) {
  13940. 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;
  13941. $ = $.userOptions.pane || 0, $ = this.pane = q.pane && q.pane[$];
  13942. var ht;
  13943. ct === "colorAxis" ? this.isRadial = !1 : (et ? (gt ? (this.isHidden = !0, this.createLabelCollector = w, this.getOffset = H, this.render = this.redraw = g, this.setTitle = this.setCategories = this.setScale = H) : t(this), (ht = !rt) && (this.defaultPolarOptions = G)) : nt && (t(this), this.defaultPolarOptions = (ht = this.horiz) ? k : v(ct === "xAxis" ? l.defaultXAxisOptions : l.defaultYAxisOptions, z), it && ct === "yAxis" && (this.defaultPolarOptions.stackLabels = l.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, $ && ht && ($.axis = this), this.isCircular = ht);
  13944. }
  13945. function D() {
  13946. this.isRadial && this.beforeSetTickPositions();
  13947. }
  13948. function W($) {
  13949. var q = this.label;
  13950. if (q) {
  13951. 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 = N(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;
  13952. if (it.isRadial) {
  13953. var yt = it.getPosition(this.pos, it.center[2] / 2 + u(d(nt.distance, -25), it.center[2] / 2, -it.center[2] / 2));
  13954. nt.rotation === "auto" ? q.attr({ rotation: rt }) : N(dt) || (dt = it.chart.renderer.fontMetrics(q.styles && q.styles.fontSize).b - et.height / 2), N(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(
  13955. pt,
  13956. lt + gt
  13957. )), $.pos.x = yt.x + (nt.x || 0), $.pos.y = yt.y + (dt || 0);
  13958. }
  13959. }
  13960. }
  13961. function P($) {
  13962. this.axis.getPosition && R($.pos, this.axis.getPosition(this.pos));
  13963. }
  13964. function X($, q) {
  13965. var it = this.chart, et = this.center;
  13966. return $ = this.startAngleRad + $, { x: it.plotLeft + et[0] + Math.cos($) * q, y: it.plotTop + et[1] + Math.sin($) * q };
  13967. }
  13968. function g() {
  13969. this.isDirty = !1;
  13970. }
  13971. function m() {
  13972. if (this.constructor.prototype.setAxisSize.call(this), this.isRadial) {
  13973. this.pane.updateCenter(this);
  13974. var $ = this.center = this.pane.center.slice();
  13975. if (this.isCircular)
  13976. this.sector = this.endAngleRad - this.startAngleRad;
  13977. else {
  13978. var q = this.postTranslate(this.angleRad, $[3] / 2);
  13979. $[0] = q.x - this.chart.plotLeft, $[1] = q.y - this.chart.plotTop;
  13980. }
  13981. this.len = this.width = this.height = ($[2] - $[3]) * d(this.sector, 1) / 2;
  13982. }
  13983. }
  13984. function L() {
  13985. 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);
  13986. }
  13987. function Y($) {
  13988. $ = this.options = v(this.constructor.defaultOptions, this.defaultPolarOptions, Z[this.coll], $), $.plotBands || ($.plotBands = []), S(this, "afterSetOptions");
  13989. }
  13990. function V($, q, it, et, nt, rt, ct) {
  13991. var gt = this.axis;
  13992. return gt.isRadial ? ($ = gt.getPosition(this.pos, gt.center[2] / 2 + et), q = ["M", q, it, "L", $.x, $.y]) : q = $.call(this, q, it, et, nt, rt, ct), q;
  13993. }
  13994. var Q = [], k = { gridLineWidth: 1, labels: { align: void 0, distance: 15, x: 0, y: void 0, style: { textOverflow: "none" } }, maxPadding: 0, minPadding: 0, showLastLabel: !1, tickLength: 0 }, G = {
  13995. labels: { align: "center", x: 0, y: void 0 },
  13996. minorGridLineWidth: 0,
  13997. minorTickInterval: "auto",
  13998. minorTickLength: 10,
  13999. minorTickPosition: "inside",
  14000. minorTickWidth: 1,
  14001. tickLength: 10,
  14002. tickPosition: "inside",
  14003. tickWidth: 2,
  14004. title: { rotation: 0 },
  14005. zIndex: 2
  14006. }, z = { gridLineInterpolation: "circle", gridLineWidth: 1, labels: { align: "right", x: -3, y: -2 }, showLastLabel: !1, title: { x: 4, text: null, rotation: 90 } };
  14007. B.compose = function($, q) {
  14008. return Q.indexOf($) === -1 && (Q.push($), U($, "afterInit", s), U($, "autoLabelAlign", n), U($, "destroy", T), U($, "init", _), U($, "initialAxisTranslation", D)), Q.indexOf(q) === -1 && (Q.push(q), U(
  14009. q,
  14010. "afterGetLabelPosition",
  14011. W
  14012. ), U(q, "afterGetPosition", P), A(q.prototype, "getMarkPath", V)), $;
  14013. };
  14014. }(O || (O = {})), O;
  14015. }), E(f, "Series/AreaRange/AreaRangePoint.js", [f["Series/Area/AreaSeries.js"], f["Core/Series/Point.js"], f["Core/Utilities.js"]], function(l, y, j) {
  14016. var I = this && this.__extends || function() {
  14017. var F = function(N, R) {
  14018. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  14019. S.__proto__ = v;
  14020. } || function(S, v) {
  14021. for (var d in v)
  14022. v.hasOwnProperty(d) && (S[d] = v[d]);
  14023. }, F(N, R);
  14024. };
  14025. return function(N, R) {
  14026. function S() {
  14027. this.constructor = N;
  14028. }
  14029. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  14030. };
  14031. }(), Z = y.prototype, H = j.defined, U = j.isNumber;
  14032. return function(F) {
  14033. function N() {
  14034. var R = F !== null && F.apply(this, arguments) || this;
  14035. return R.high = void 0, R.low = void 0, R.options = void 0, R.plotHigh = void 0, R.plotLow = void 0, R.plotHighX = void 0, R.plotLowX = void 0, R.plotX = void 0, R.series = void 0, R;
  14036. }
  14037. return I(N, F), N.prototype.setState = function() {
  14038. var R = this.state, S = this.series, v = S.chart.polar;
  14039. H(this.plotHigh) || (this.plotHigh = S.yAxis.toPixels(
  14040. this.high,
  14041. !0
  14042. )), H(this.plotLow) || (this.plotLow = this.plotY = S.yAxis.toPixels(this.low, !0)), S.stateMarkerGraphic && (S.lowerStateMarkerGraphic = S.stateMarkerGraphic, S.stateMarkerGraphic = S.upperStateMarkerGraphic), this.graphic = this.upperGraphic, this.plotY = this.plotHigh, v && (this.plotX = this.plotHighX), Z.setState.apply(this, arguments), this.state = R, this.plotY = this.plotLow, this.graphic = this.lowerGraphic, v && (this.plotX = this.plotLowX), S.stateMarkerGraphic && (S.upperStateMarkerGraphic = S.stateMarkerGraphic, S.stateMarkerGraphic = S.lowerStateMarkerGraphic, S.lowerStateMarkerGraphic = void 0), Z.setState.apply(this, arguments);
  14043. }, N.prototype.haloPath = function() {
  14044. var R = this.series.chart.polar, S = [];
  14045. return this.plotY = this.plotLow, R && (this.plotX = this.plotLowX), this.isInside && (S = Z.haloPath.apply(this, arguments)), this.plotY = this.plotHigh, R && (this.plotX = this.plotHighX), this.isTopInside && (S = S.concat(Z.haloPath.apply(this, arguments))), S;
  14046. }, N.prototype.isValid = function() {
  14047. return U(this.low) && U(this.high);
  14048. }, N;
  14049. }(l.prototype.pointClass);
  14050. }), E(
  14051. f,
  14052. "Series/AreaRange/AreaRangeSeries.js",
  14053. [f["Series/AreaRange/AreaRangePoint.js"], f["Series/Area/AreaSeries.js"], f["Series/Column/ColumnSeries.js"], f["Core/Globals.js"], f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]],
  14054. function(l, y, j, I, Z, H, U) {
  14055. var F = this && this.__extends || function() {
  14056. var B = function(C, b) {
  14057. return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(w, x) {
  14058. w.__proto__ = x;
  14059. } || function(w, x) {
  14060. for (var a in x)
  14061. x.hasOwnProperty(a) && (w[a] = x[a]);
  14062. }, B(C, b);
  14063. };
  14064. return function(C, b) {
  14065. function w() {
  14066. this.constructor = C;
  14067. }
  14068. B(C, b), C.prototype = b === null ? Object.create(b) : (w.prototype = b.prototype, new w());
  14069. };
  14070. }(), N = y.prototype, R = j.prototype;
  14071. j = I.noop;
  14072. var S = Z.prototype, v = U.defined, d = U.extend, u = U.isArray, A = U.pick, O = U.merge;
  14073. return Z = function(B) {
  14074. function C() {
  14075. var b = B !== null && B.apply(this, arguments) || this;
  14076. return b.data = void 0, b.options = void 0, b.points = void 0, b.lowerStateMarkerGraphic = void 0, b.xAxis = void 0, b;
  14077. }
  14078. return F(C, B), C.prototype.toYData = function(b) {
  14079. return [b.low, b.high];
  14080. }, C.prototype.highToXY = function(b) {
  14081. var w = this.chart, x = this.xAxis.postTranslate(b.rectPlotX || 0, this.yAxis.len - b.plotHigh);
  14082. b.plotHighX = x.x - w.plotLeft, b.plotHigh = x.y - w.plotTop, b.plotLowX = b.plotX;
  14083. }, C.prototype.translate = function() {
  14084. var b = this, w = b.yAxis;
  14085. N.translate.apply(b), b.points.forEach(function(x) {
  14086. var a = x.high, c = x.plotY;
  14087. x.isNull ? x.plotY = null : (x.plotLow = c, x.plotHigh = w.translate(b.dataModify ? b.dataModify.modifyValue(a) : a, 0, 1, 0, 1), b.dataModify && (x.yBottom = x.plotHigh));
  14088. }), this.chart.polar && this.points.forEach(function(x) {
  14089. b.highToXY(x), x.tooltipPos = [(x.plotHighX + x.plotLowX) / 2, (x.plotHigh + x.plotLow) / 2];
  14090. });
  14091. }, C.prototype.getGraphPath = function(b) {
  14092. var w = [], x = [], a, c = N.getGraphPath, p = this.options, i = this.chart.polar, h = i && p.connectEnds !== !1, o = p.connectNulls, t = p.step;
  14093. for (b = b || this.points, a = b.length; a--; ) {
  14094. var s = b[a], n = i ? { plotX: s.rectPlotX, plotY: s.yBottom, doCurve: !1 } : { plotX: s.plotX, plotY: s.plotY, doCurve: !1 };
  14095. s.isNull || h || o || b[a + 1] && !b[a + 1].isNull || x.push(n);
  14096. var T = { polarPlotY: s.polarPlotY, rectPlotX: s.rectPlotX, yBottom: s.yBottom, plotX: A(
  14097. s.plotHighX,
  14098. s.plotX
  14099. ), plotY: s.plotHigh, isNull: s.isNull };
  14100. x.push(T), w.push(T), s.isNull || h || o || b[a - 1] && !b[a - 1].isNull || x.push(n);
  14101. }
  14102. return b = c.call(this, b), t && (t === !0 && (t = "left"), p.step = { left: "right", center: "center", right: "left" }[t]), w = c.call(this, w), x = c.call(this, x), p.step = t, p = [].concat(b, w), !this.chart.polar && x[0] && x[0][0] === "M" && (x[0] = ["L", x[0][1], x[0][2]]), this.graphPath = p, this.areaPath = b.concat(x), p.isArea = !0, p.xMap = b.xMap, this.areaPath.xMap = b.xMap, p;
  14103. }, C.prototype.drawDataLabels = function() {
  14104. var b = this.points, w = b.length, x, a = [], c = this.options.dataLabels, p, i = this.chart.inverted;
  14105. if (c) {
  14106. if (u(c))
  14107. var h = c[0] || { enabled: !1 }, o = c[1] || { enabled: !1 };
  14108. else
  14109. h = d({}, c), h.x = c.xHigh, h.y = c.yHigh, o = d({}, c), o.x = c.xLow, o.y = c.yLow;
  14110. if (h.enabled || this._hasPointLabels) {
  14111. for (x = w; x--; )
  14112. if (p = b[x]) {
  14113. var t = h.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow;
  14114. p.y = p.high, p._plotY = p.plotY, p.plotY = p.plotHigh, a[x] = p.dataLabel, p.dataLabel = p.dataLabelUpper, p.below = t, i ? h.align || (h.align = t ? "right" : "left") : h.verticalAlign || (h.verticalAlign = t ? "top" : "bottom");
  14115. }
  14116. for (this.options.dataLabels = h, S.drawDataLabels && S.drawDataLabels.apply(this, arguments), x = w; x--; )
  14117. (p = b[x]) && (p.dataLabelUpper = p.dataLabel, p.dataLabel = a[x], delete p.dataLabels, p.y = p.low, p.plotY = p._plotY);
  14118. }
  14119. if (o.enabled || this._hasPointLabels) {
  14120. for (x = w; x--; )
  14121. (p = b[x]) && (t = o.inside ? p.plotHigh < p.plotLow : p.plotHigh > p.plotLow, p.below = !t, i ? o.align || (o.align = t ? "left" : "right") : o.verticalAlign || (o.verticalAlign = t ? "bottom" : "top"));
  14122. this.options.dataLabels = o, S.drawDataLabels && S.drawDataLabels.apply(this, arguments);
  14123. }
  14124. if (h.enabled)
  14125. for (x = w; x--; )
  14126. (p = b[x]) && (p.dataLabels = [p.dataLabelUpper, p.dataLabel].filter(function(s) {
  14127. return !!s;
  14128. }));
  14129. this.options.dataLabels = c;
  14130. }
  14131. }, C.prototype.alignDataLabel = function() {
  14132. R.alignDataLabel.apply(this, arguments);
  14133. }, C.prototype.drawPoints = function() {
  14134. var b = this.points.length, w;
  14135. for (S.drawPoints.apply(this, arguments), w = 0; w < b; ) {
  14136. var x = this.points[w];
  14137. x.origProps = { plotY: x.plotY, plotX: x.plotX, isInside: x.isInside, negative: x.negative, zone: x.zone, y: x.y }, x.lowerGraphic = x.graphic, x.graphic = x.upperGraphic, x.plotY = x.plotHigh, v(x.plotHighX) && (x.plotX = x.plotHighX), x.y = A(x.high, x.origProps.y), x.negative = x.y < (this.options.threshold || 0), this.zones.length && (x.zone = x.getZone()), this.chart.polar || (x.isInside = x.isTopInside = typeof x.plotY < "u" && 0 <= x.plotY && x.plotY <= this.yAxis.len && 0 <= x.plotX && x.plotX <= this.xAxis.len), w++;
  14138. }
  14139. for (S.drawPoints.apply(this, arguments), w = 0; w < b; )
  14140. x = this.points[w], x.upperGraphic = x.graphic, x.graphic = x.lowerGraphic, x.origProps && (d(x, x.origProps), delete x.origProps), w++;
  14141. }, C.defaultOptions = O(y.defaultOptions, {
  14142. lineWidth: 1,
  14143. threshold: null,
  14144. tooltip: { pointFormat: '<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14145. trackByArea: !0,
  14146. dataLabels: { align: void 0, verticalAlign: void 0, xLow: 0, xHigh: 0, yLow: 0, yHigh: 0 }
  14147. }), C;
  14148. }(y), d(Z.prototype, { pointArrayMap: ["low", "high"], pointValKey: "low", deferTranslatePolar: !0, pointClass: l, setStackedPoints: j }), H.registerSeriesType("arearange", Z), Z;
  14149. }
  14150. ), E(f, "Series/AreaSplineRange/AreaSplineRangeSeries.js", [
  14151. f["Series/AreaRange/AreaRangeSeries.js"],
  14152. f["Core/Series/SeriesRegistry.js"],
  14153. f["Core/Utilities.js"]
  14154. ], function(l, y, j) {
  14155. var I = this && this.__extends || function() {
  14156. var F = function(N, R) {
  14157. return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(S, v) {
  14158. S.__proto__ = v;
  14159. } || function(S, v) {
  14160. for (var d in v)
  14161. v.hasOwnProperty(d) && (S[d] = v[d]);
  14162. }, F(N, R);
  14163. };
  14164. return function(N, R) {
  14165. function S() {
  14166. this.constructor = N;
  14167. }
  14168. F(N, R), N.prototype = R === null ? Object.create(R) : (S.prototype = R.prototype, new S());
  14169. };
  14170. }(), Z = y.seriesTypes.spline, H = j.merge;
  14171. j = j.extend;
  14172. var U = function(F) {
  14173. function N() {
  14174. var R = F !== null && F.apply(this, arguments) || this;
  14175. return R.options = void 0, R.data = void 0, R.points = void 0, R;
  14176. }
  14177. return I(N, F), N.defaultOptions = H(l.defaultOptions), N;
  14178. }(l);
  14179. return j(U.prototype, { getPointSpline: Z.prototype.getPointSpline }), y.registerSeriesType("areasplinerange", U), U;
  14180. }), E(f, "Series/BoxPlot/BoxPlotSeries.js", [f["Series/Column/ColumnSeries.js"], f["Core/Globals.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14181. var Z = this && this.__extends || function() {
  14182. var N = function(R, S) {
  14183. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  14184. v.__proto__ = d;
  14185. } || function(v, d) {
  14186. for (var u in d)
  14187. d.hasOwnProperty(u) && (v[u] = d[u]);
  14188. }, N(R, S);
  14189. };
  14190. return function(R, S) {
  14191. function v() {
  14192. this.constructor = R;
  14193. }
  14194. N(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  14195. };
  14196. }();
  14197. y = y.noop;
  14198. var H = I.extend, U = I.merge, F = I.pick;
  14199. return I = function(N) {
  14200. function R() {
  14201. var S = N !== null && N.apply(this, arguments) || this;
  14202. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  14203. }
  14204. return Z(R, N), R.prototype.pointAttribs = function() {
  14205. return {};
  14206. }, R.prototype.translate = function() {
  14207. var S = this.yAxis, v = this.pointArrayMap;
  14208. N.prototype.translate.apply(this), this.points.forEach(function(d) {
  14209. v.forEach(function(u) {
  14210. d[u] !== null && (d[u + "Plot"] = S.translate(d[u], 0, 1, 0, 1));
  14211. }), d.plotHigh = d.highPlot;
  14212. });
  14213. }, R.prototype.drawPoints = function() {
  14214. var S = this, v = S.options, d = S.chart, u = d.renderer, A, O, B, C, b, w, x = 0, a, c, p, i, h = S.doQuartiles !== !1, o, t = S.options.whiskerLength;
  14215. S.points.forEach(function(s) {
  14216. var n = s.graphic, T = n ? "animate" : "attr", _ = s.shapeArgs, D = {}, W = {}, P = {}, X = {}, g = s.color || S.color;
  14217. typeof s.plotY < "u" && (a = Math.round(_.width), c = Math.floor(_.x), p = c + a, i = Math.round(a / 2), A = Math.floor(h ? s.q1Plot : s.lowPlot), O = Math.floor(h ? s.q3Plot : s.lowPlot), B = Math.floor(s.highPlot), C = Math.floor(s.lowPlot), n || (s.graphic = n = u.g("point").add(S.group), s.stem = u.path().addClass("highcharts-boxplot-stem").add(n), t && (s.whiskers = u.path().addClass("highcharts-boxplot-whisker").add(n)), h && (s.box = u.path(void 0).addClass("highcharts-boxplot-box").add(n)), s.medianShape = u.path(void 0).addClass("highcharts-boxplot-median").add(n)), d.styledMode || (W.stroke = s.stemColor || v.stemColor || g, W["stroke-width"] = F(s.stemWidth, v.stemWidth, v.lineWidth), W.dashstyle = s.stemDashStyle || v.stemDashStyle || v.dashStyle, s.stem.attr(W), t && (P.stroke = s.whiskerColor || v.whiskerColor || g, P["stroke-width"] = F(s.whiskerWidth, v.whiskerWidth, v.lineWidth), P.dashstyle = s.whiskerDashStyle || v.whiskerDashStyle || v.dashStyle, s.whiskers.attr(P)), h && (D.fill = s.fillColor || v.fillColor || g, D.stroke = v.lineColor || g, D["stroke-width"] = v.lineWidth || 0, D.dashstyle = s.boxDashStyle || v.boxDashStyle || v.dashStyle, s.box.attr(D)), X.stroke = s.medianColor || v.medianColor || g, X["stroke-width"] = F(s.medianWidth, v.medianWidth, v.lineWidth), X.dashstyle = s.medianDashStyle || v.medianDashStyle || v.dashStyle, s.medianShape.attr(X)), w = s.stem.strokeWidth() % 2 / 2, x = c + i + w, n = [["M", x, O], ["L", x, B], ["M", x, A], ["L", x, C]], s.stem[T]({ d: n }), h && (w = s.box.strokeWidth() % 2 / 2, A = Math.floor(A) + w, O = Math.floor(O) + w, c += w, p += w, n = [["M", c, O], ["L", c, A], ["L", p, A], ["L", p, O], ["L", c, O], ["Z"]], s.box[T]({ d: n })), t && (w = s.whiskers.strokeWidth() % 2 / 2, B += w, C += w, o = /%$/.test(t) ? i * parseFloat(t) / 100 : t / 2, n = [["M", x - o, B], ["L", x + o, B], ["M", x - o, C], ["L", x + o, C]], s.whiskers[T]({ d: n })), b = Math.round(s.medianPlot), w = s.medianShape.strokeWidth() % 2 / 2, b += w, n = [["M", c, b], ["L", p, b]], s.medianShape[T]({ d: n }));
  14218. });
  14219. }, R.prototype.toYData = function(S) {
  14220. return [S.low, S.q1, S.median, S.q3, S.high];
  14221. }, R.defaultOptions = U(l.defaultOptions, {
  14222. threshold: null,
  14223. 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/>' },
  14224. whiskerLength: "50%",
  14225. fillColor: "#ffffff",
  14226. lineWidth: 1,
  14227. medianWidth: 2,
  14228. whiskerWidth: 2
  14229. }), R;
  14230. }(l), H(I.prototype, { pointArrayMap: ["low", "q1", "median", "q3", "high"], pointValKey: "high", drawDataLabels: y, setStackedPoints: y }), j.registerSeriesType("boxplot", I), I;
  14231. }), E(f, "Series/Bubble/BubbleLegendDefaults.js", [], function() {
  14232. 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: {
  14233. className: void 0,
  14234. allowOverlap: !1,
  14235. format: "",
  14236. formatter: void 0,
  14237. align: "right",
  14238. style: { fontSize: "10px", color: "#000000" },
  14239. x: 0,
  14240. y: 0
  14241. }, 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 };
  14242. }), E(f, "Series/Bubble/BubbleLegendItem.js", [f["Core/Color/Color.js"], f["Core/FormatUtilities.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14243. var Z = l.parse, H = j.noop, U = I.arrayMax, F = I.arrayMin, N = I.isNumber, R = I.merge, S = I.pick, v = I.stableSort;
  14244. return function() {
  14245. function d(u, A) {
  14246. 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 = H, this.init(u, A);
  14247. }
  14248. return d.prototype.init = function(u, A) {
  14249. this.options = u, this.visible = !0, this.chart = A.chart, this.legend = A;
  14250. }, d.prototype.addToLegend = function(u) {
  14251. u.splice(
  14252. this.options.legendIndex,
  14253. 0,
  14254. this
  14255. );
  14256. }, d.prototype.drawLegendSymbol = function(u) {
  14257. var A = this.chart, O = this.options, B = S(u.options.itemDistance, 20), C = O.ranges, b = O.connectorDistance;
  14258. this.fontMetrics = A.renderer.fontMetrics(O.labels.style.fontSize), C && C.length && N(C[0].value) ? (v(C, function(w, x) {
  14259. return x.value - w.value;
  14260. }), this.ranges = C, this.setOptions(), this.render(), u = this.getMaxLabelSize(), C = this.ranges[0].radius, A = 2 * C, b = b - C + u.width, b = 0 < b ? b : 0, this.maxLabel = u, this.movementX = O.labels.align === "left" ? b : 0, this.legendItemWidth = A + b + B, this.legendItemHeight = A + this.fontMetrics.h / 2) : u.options.bubbleLegend.autoRanges = !0;
  14261. }, d.prototype.setOptions = function() {
  14262. var u = this.ranges, A = this.options, O = this.chart.series[A.seriesIndex], B = this.legend.baseline, C = { zIndex: A.zIndex, "stroke-width": A.borderWidth }, b = { zIndex: A.zIndex, "stroke-width": A.connectorWidth }, w = { align: this.legend.options.rtl || A.labels.align === "left" ? "right" : "left", zIndex: A.zIndex }, x = O.options.marker.fillOpacity, a = this.chart.styledMode;
  14263. u.forEach(function(c, p) {
  14264. a || (C.stroke = S(c.borderColor, A.borderColor, O.color), C.fill = S(c.color, A.color, x !== 1 ? Z(O.color).setOpacity(x).get("rgba") : O.color), b.stroke = S(c.connectorColor, A.connectorColor, O.color)), u[p].radius = this.getRangeRadius(c.value), u[p] = R(u[p], { center: u[0].radius - u[p].radius + B }), a || R(!0, u[p], { bubbleAttribs: R(C), connectorAttribs: R(b), labelAttribs: w });
  14265. }, this);
  14266. }, d.prototype.getRangeRadius = function(u) {
  14267. var A = this.options;
  14268. return this.chart.series[this.options.seriesIndex].getRadius.call(
  14269. this,
  14270. A.ranges[A.ranges.length - 1].value,
  14271. A.ranges[0].value,
  14272. A.minSize,
  14273. A.maxSize,
  14274. u
  14275. );
  14276. }, d.prototype.render = function() {
  14277. var u = this.chart.renderer, A = this.options.zThreshold;
  14278. this.symbols || (this.symbols = { connectors: [], bubbleItems: [], labels: [] }), this.legendSymbol = u.g("bubble-legend"), this.legendItem = u.g("bubble-legend-item"), this.legendSymbol.translateX = 0, this.legendSymbol.translateY = 0, this.ranges.forEach(function(O) {
  14279. O.value >= A && this.renderRange(O);
  14280. }, this), this.legendSymbol.add(this.legendItem), this.legendItem.add(this.legendGroup), this.hideOverlappingLabels();
  14281. }, d.prototype.renderRange = function(u) {
  14282. var A = this.options, O = A.labels, B = this.chart, C = B.series[A.seriesIndex], b = B.renderer, w = this.symbols;
  14283. B = w.labels;
  14284. var x = u.center, a = Math.abs(u.radius), c = A.connectorDistance || 0, p = O.align, i = A.connectorWidth, h = this.ranges[0].radius || 0, o = x - a - A.borderWidth / 2 + i / 2, t = this.fontMetrics;
  14285. t = t.f / 2 - (t.h - t.f) / 2;
  14286. var s = b.styledMode;
  14287. c = this.legend.options.rtl || p === "left" ? -c : c, p === "center" && (c = 0, A.connectorDistance = 0, u.labelAttribs.align = "center"), p = o + A.labels.y;
  14288. var n = h + c + A.labels.x;
  14289. w.bubbleItems.push(b.circle(
  14290. h,
  14291. x + ((o % 1 ? 1 : 0.5) - (i % 2 ? 0 : 0.5)),
  14292. a
  14293. ).attr(s ? {} : u.bubbleAttribs).addClass((s ? "highcharts-color-" + C.colorIndex + " " : "") + "highcharts-bubble-legend-symbol " + (A.className || "")).add(this.legendSymbol)), w.connectors.push(b.path(b.crispLine([["M", h, o], ["L", h + c, o]], A.connectorWidth)).attr(s ? {} : u.connectorAttribs).addClass((s ? "highcharts-color-" + this.options.seriesIndex + " " : "") + "highcharts-bubble-legend-connectors " + (A.connectorClassName || "")).add(this.legendSymbol)), u = b.text(this.formatLabel(u), n, p + t).attr(s ? {} : u.labelAttribs).css(s ? {} : O.style).addClass("highcharts-bubble-legend-labels " + (A.labels.className || "")).add(this.legendSymbol), B.push(u), u.placed = !0, u.alignAttr = { x: n, y: p + t };
  14294. }, d.prototype.getMaxLabelSize = function() {
  14295. var u, A;
  14296. return this.symbols.labels.forEach(function(O) {
  14297. A = O.getBBox(!0), u = u ? A.width > u.width ? A : u : A;
  14298. }), u || {};
  14299. }, d.prototype.formatLabel = function(u) {
  14300. var A = this.options, O = A.labels.formatter;
  14301. A = A.labels.format;
  14302. var B = this.chart.numberFormatter;
  14303. return A ? y.format(A, u) : O ? O.call(u) : B(u.value, 1);
  14304. }, d.prototype.hideOverlappingLabels = function() {
  14305. var u = this.chart, A = this.symbols;
  14306. !this.options.labels.allowOverlap && A && (u.hideOverlappingLabels(A.labels), A.labels.forEach(function(O, B) {
  14307. O.newOpacity ? O.newOpacity !== O.oldOpacity && A.connectors[B].show() : A.connectors[B].hide();
  14308. }));
  14309. }, d.prototype.getRanges = function() {
  14310. var u = this.legend.bubbleLegend, A = u.options.ranges, O, B = Number.MAX_VALUE, C = -Number.MAX_VALUE;
  14311. u.chart.series.forEach(function(w) {
  14312. w.isBubble && !w.ignoreSeries && (O = w.zData.filter(N), O.length && (B = S(w.options.zMin, Math.min(B, Math.max(
  14313. F(O),
  14314. w.options.displayNegative === !1 ? w.options.zThreshold : -Number.MAX_VALUE
  14315. ))), C = S(w.options.zMax, Math.max(C, U(O)))));
  14316. });
  14317. var b = B === C ? [{ value: C }] : [{ value: B }, { value: (B + C) / 2 }, { value: C, autoRanges: !0 }];
  14318. return A.length && A[0].radius && b.reverse(), b.forEach(function(w, x) {
  14319. A && A[x] && (b[x] = R(A[x], w));
  14320. }), b;
  14321. }, d.prototype.predictBubbleSizes = function() {
  14322. var u = this.chart, A = this.fontMetrics, O = u.legend.options, B = O.floating, C = (O = O.layout === "horizontal") ? u.legend.lastLineHeight : 0, b = u.plotSizeX, w = u.plotSizeY, x = u.series[this.options.seriesIndex], a = x.getPxExtremes();
  14323. u = Math.ceil(a.minPxSize), a = Math.ceil(a.maxPxSize);
  14324. var c = Math.min(w, b);
  14325. return x = x.options.maxSize, B || !/%$/.test(x) ? A = a : (x = parseFloat(x), A = (c + C - A.h / 2) * x / 100 / (x / 100 + 1), (O && w - A >= b || !O && b - A >= w) && (A = a)), [u, Math.ceil(A)];
  14326. }, d.prototype.updateRanges = function(u, A) {
  14327. var O = this.legend.options.bubbleLegend;
  14328. O.minSize = u, O.maxSize = A, O.ranges = this.getRanges();
  14329. }, d.prototype.correctSizes = function() {
  14330. var u = this.legend, A = this.chart.series[this.options.seriesIndex].getPxExtremes();
  14331. 1 < Math.abs(Math.ceil(A.maxPxSize) - this.options.maxSize) && (this.updateRanges(this.options.minSize, A.maxPxSize), u.render());
  14332. }, d;
  14333. }();
  14334. }), E(f, "Series/Bubble/BubbleLegendComposition.js", [f["Series/Bubble/BubbleLegendDefaults.js"], f["Series/Bubble/BubbleLegendItem.js"], f["Core/DefaultOptions.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14335. var Z = j.setOptions, H = I.addEvent, U = I.objectEach, F = I.wrap, N;
  14336. return function(R) {
  14337. function S(C, b, w) {
  14338. var x = this.legend, a = 0 <= v(this);
  14339. if (x && x.options.enabled && x.bubbleLegend && x.options.bubbleLegend.autoRanges && a) {
  14340. var c = x.bubbleLegend.options;
  14341. a = x.bubbleLegend.predictBubbleSizes(), x.bubbleLegend.updateRanges(a[0], a[1]), c.placed || (x.group.placed = !1, x.allItems.forEach(function(p) {
  14342. p.legendGroup.translateY = null;
  14343. })), x.render(), this.getMargins(), this.axes.forEach(function(p) {
  14344. p.visible && p.render(), c.placed || (p.setScale(), p.updateNames(), U(p.ticks, function(i) {
  14345. i.isNew = !0, i.isNewLabel = !0;
  14346. }));
  14347. }), c.placed = !0, this.getMargins(), C.call(this, b, w), x.bubbleLegend.correctSizes(), O(x, d(x));
  14348. } else
  14349. C.call(this, b, w), x && x.options.enabled && x.bubbleLegend && (x.render(), O(x, d(x)));
  14350. }
  14351. function v(C) {
  14352. C = C.series;
  14353. for (var b = 0; b < C.length; ) {
  14354. if (C[b] && C[b].isBubble && C[b].visible && C[b].zData.length)
  14355. return b;
  14356. b++;
  14357. }
  14358. return -1;
  14359. }
  14360. function d(C) {
  14361. C = C.allItems;
  14362. var b = [], w = C.length, x, a = 0;
  14363. for (x = 0; x < w; x++)
  14364. if (C[x].legendItemHeight && (C[x].itemHeight = C[x].legendItemHeight), C[x] === C[w - 1] || C[x + 1] && C[x]._legendItemPos[1] !== C[x + 1]._legendItemPos[1]) {
  14365. b.push({ height: 0 });
  14366. var c = b[b.length - 1];
  14367. for (a; a <= x; a++)
  14368. C[a].itemHeight > c.height && (c.height = C[a].itemHeight);
  14369. c.step = x;
  14370. }
  14371. return b;
  14372. }
  14373. function u(C) {
  14374. var b = this.bubbleLegend, w = this.options, x = w.bubbleLegend, a = v(this.chart);
  14375. b && b.ranges && b.ranges.length && (x.ranges.length && (x.autoRanges = !!x.ranges[0].autoRanges), this.destroyItem(b)), 0 <= a && w.enabled && x.enabled && (x.seriesIndex = a, this.bubbleLegend = new y(x, this), this.bubbleLegend.addToLegend(C.allItems));
  14376. }
  14377. function A() {
  14378. var C = this.chart, b = this.visible, w = this.chart.legend;
  14379. w && w.bubbleLegend && (this.visible = !b, this.ignoreSeries = b, C = 0 <= v(C), w.bubbleLegend.visible !== C && (w.update({ bubbleLegend: { enabled: C } }), w.bubbleLegend.visible = C), this.visible = b);
  14380. }
  14381. function O(C, b) {
  14382. var w = C.options.rtl, x, a, c, p = 0;
  14383. C.allItems.forEach(function(i, h) {
  14384. x = i.legendGroup.translateX, a = i._legendItemPos[1], ((c = i.movementX) || w && i.ranges) && (c = w ? x - i.options.maxSize / 2 : x + c, i.legendGroup.attr({ translateX: c })), h > b[p].step && p++, i.legendGroup.attr({ translateY: Math.round(a + b[p].height / 2) }), i._legendItemPos[1] = a + b[p].height / 2;
  14385. });
  14386. }
  14387. var B = [];
  14388. R.compose = function(C, b, w) {
  14389. B.indexOf(C) === -1 && (B.push(C), Z({ legend: { bubbleLegend: l } }), F(C.prototype, "drawChartBox", S)), B.indexOf(b) === -1 && (B.push(b), H(b, "afterGetAllItems", u)), B.indexOf(w) === -1 && (B.push(w), H(w, "legendItemClick", A));
  14390. };
  14391. }(N || (N = {})), N;
  14392. }), E(f, "Series/Bubble/BubblePoint.js", [f["Core/Series/Point.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j) {
  14393. var I = this && this.__extends || function() {
  14394. var Z = function(H, U) {
  14395. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, N) {
  14396. F.__proto__ = N;
  14397. } || function(F, N) {
  14398. for (var R in N)
  14399. N.hasOwnProperty(R) && (F[R] = N[R]);
  14400. }, Z(H, U);
  14401. };
  14402. return function(H, U) {
  14403. function F() {
  14404. this.constructor = H;
  14405. }
  14406. Z(H, U), H.prototype = U === null ? Object.create(U) : (F.prototype = U.prototype, new F());
  14407. };
  14408. }();
  14409. return j = j.extend, y = function(Z) {
  14410. function H() {
  14411. var U = Z !== null && Z.apply(this, arguments) || this;
  14412. return U.options = void 0, U.series = void 0, U;
  14413. }
  14414. return I(H, Z), H.prototype.haloPath = function(U) {
  14415. return l.prototype.haloPath.call(this, U === 0 ? 0 : (this.marker && this.marker.radius || 0) + U);
  14416. }, H;
  14417. }(y.seriesTypes.scatter.prototype.pointClass), j(y.prototype, { ttBelow: !1 }), y;
  14418. }), E(f, "Series/Bubble/BubbleSeries.js", [
  14419. f["Core/Axis/Axis.js"],
  14420. f["Series/Bubble/BubbleLegendComposition.js"],
  14421. f["Series/Bubble/BubblePoint.js"],
  14422. f["Core/Color/Color.js"],
  14423. f["Core/Globals.js"],
  14424. f["Core/Series/Series.js"],
  14425. f["Core/Series/SeriesRegistry.js"],
  14426. f["Core/Utilities.js"]
  14427. ], function(l, y, j, I, Z, H, U, F) {
  14428. var N = this && this.__extends || function() {
  14429. var w = function(x, a) {
  14430. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  14431. c.__proto__ = p;
  14432. } || function(c, p) {
  14433. for (var i in p)
  14434. p.hasOwnProperty(i) && (c[i] = p[i]);
  14435. }, w(x, a);
  14436. };
  14437. return function(x, a) {
  14438. function c() {
  14439. this.constructor = x;
  14440. }
  14441. w(x, a), x.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  14442. };
  14443. }(), R = I.parse;
  14444. I = Z.noop;
  14445. var S = U.seriesTypes;
  14446. Z = S.column;
  14447. var v = S.scatter;
  14448. S = F.addEvent;
  14449. var d = F.arrayMax, u = F.arrayMin, A = F.clamp, O = F.extend, B = F.isNumber, C = F.merge, b = F.pick;
  14450. return F = function(w) {
  14451. function x() {
  14452. var a = w !== null && w.apply(this, arguments) || this;
  14453. return a.data = void 0, a.maxPxSize = void 0, a.minPxSize = void 0, a.options = void 0, a.points = void 0, a.radii = void 0, a.yData = void 0, a.zData = void 0, a;
  14454. }
  14455. return N(x, w), x.prototype.animate = function(a) {
  14456. !a && this.points.length < this.options.animationLimit && this.points.forEach(function(c) {
  14457. var p = c.graphic;
  14458. p && p.width && (this.hasRendered || p.attr({ x: c.plotX, y: c.plotY, width: 1, height: 1 }), p.animate(this.markerAttribs(c), this.options.animation));
  14459. }, this);
  14460. }, x.prototype.getRadii = function() {
  14461. var a = this, c = this.zData, p = this.yData, i = [], h = this.chart.bubbleZExtremes, o = this.getPxExtremes(), t = o.minPxSize, s = o.maxPxSize;
  14462. if (!h) {
  14463. var n = Number.MAX_VALUE, T = -Number.MAX_VALUE, _;
  14464. this.chart.series.forEach(function(P) {
  14465. P.bubblePadding && (P.visible || !a.chart.options.chart.ignoreHiddenSeries) && (P = P.getZExtremes()) && (n = Math.min(n || P.zMin, P.zMin), T = Math.max(T || P.zMax, P.zMax), _ = !0);
  14466. }), _ ? (h = { zMin: n, zMax: T }, this.chart.bubbleZExtremes = h) : h = { zMin: 0, zMax: 0 };
  14467. }
  14468. var D = 0;
  14469. for (o = c.length; D < o; D++) {
  14470. var W = c[D];
  14471. i.push(this.getRadius(h.zMin, h.zMax, t, s, W, p[D]));
  14472. }
  14473. this.radii = i;
  14474. }, x.prototype.getRadius = function(a, c, p, i, h, o) {
  14475. var t = this.options, s = t.sizeBy !== "width", n = t.zThreshold, T = c - a, _ = 0.5;
  14476. if (o === null || h === null)
  14477. return null;
  14478. if (B(h)) {
  14479. if (t.sizeByAbsoluteValue && (h = Math.abs(h - n), T = Math.max(c - n, Math.abs(a - n)), a = 0), h < a)
  14480. return p / 2 - 1;
  14481. 0 < T && (_ = (h - a) / T);
  14482. }
  14483. return s && 0 <= _ && (_ = Math.sqrt(_)), Math.ceil(p + _ * (i - p)) / 2;
  14484. }, x.prototype.hasData = function() {
  14485. return !!this.processedXData.length;
  14486. }, x.prototype.pointAttribs = function(a, c) {
  14487. var p = this.options.marker.fillOpacity;
  14488. return a = H.prototype.pointAttribs.call(this, a, c), p !== 1 && (a.fill = R(a.fill).setOpacity(p).get("rgba")), a;
  14489. }, x.prototype.translate = function() {
  14490. w.prototype.translate.call(this), this.getRadii(), this.translateBubble();
  14491. }, x.prototype.translateBubble = function() {
  14492. for (var a = this.data, c = this.radii, p = this.getPxExtremes().minPxSize, i = a.length; i--; ) {
  14493. var h = a[i], o = c ? c[i] : 0;
  14494. B(o) && o >= p / 2 ? (h.marker = O(h.marker, { radius: o, width: 2 * o, height: 2 * o }), h.dlBox = { x: h.plotX - o, y: h.plotY - o, width: 2 * o, height: 2 * o }) : h.shapeArgs = h.plotY = h.dlBox = void 0;
  14495. }
  14496. }, x.prototype.getPxExtremes = function() {
  14497. var a = Math.min(this.chart.plotWidth, this.chart.plotHeight), c = function(i) {
  14498. if (typeof i == "string") {
  14499. var h = /%$/.test(i);
  14500. i = parseInt(i, 10);
  14501. }
  14502. return h ? a * i / 100 : i;
  14503. }, p = c(b(this.options.minSize, 8));
  14504. return c = Math.max(c(b(this.options.maxSize, "20%")), p), {
  14505. minPxSize: p,
  14506. maxPxSize: c
  14507. };
  14508. }, x.prototype.getZExtremes = function() {
  14509. var a = this.options, c = (this.zData || []).filter(B);
  14510. if (c.length) {
  14511. var p = b(a.zMin, A(u(c), a.displayNegative === !1 ? a.zThreshold || 0 : -Number.MAX_VALUE, Number.MAX_VALUE));
  14512. if (a = b(a.zMax, d(c)), B(p) && B(a))
  14513. return { zMin: p, zMax: a };
  14514. }
  14515. }, x.compose = y.compose, x.defaultOptions = C(v.defaultOptions, { dataLabels: { formatter: function() {
  14516. var a = this.series.chart.numberFormatter, c = this.point.z;
  14517. return B(c) ? a(c, -1) : "";
  14518. }, inside: !0, verticalAlign: "middle" }, animationLimit: 250, marker: {
  14519. lineColor: null,
  14520. lineWidth: 1,
  14521. fillOpacity: 0.5,
  14522. radius: null,
  14523. states: { hover: { radiusPlus: 0 } },
  14524. symbol: "circle"
  14525. }, 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" }), x;
  14526. }(v), O(F.prototype, {
  14527. alignDataLabel: Z.prototype.alignDataLabel,
  14528. applyZones: I,
  14529. bubblePadding: !0,
  14530. buildKDTree: I,
  14531. directTouch: !0,
  14532. isBubble: !0,
  14533. pointArrayMap: ["y", "z"],
  14534. pointClass: j,
  14535. parallelArrays: ["x", "y", "z"],
  14536. trackerGroups: ["group", "dataLabelsGroup"],
  14537. specialGroup: "group",
  14538. zoneAxis: "z"
  14539. }), S(F, "updatedData", function(w) {
  14540. delete w.target.chart.bubbleZExtremes;
  14541. }), l.prototype.beforePadding = function() {
  14542. var w = this, x = this.len, a = this.chart, c = 0, p = x, i = this.isXAxis, h = i ? "xData" : "yData", o = this.min, t = this.max - o, s = x / t, n;
  14543. this.series.forEach(function(T) {
  14544. if (T.bubblePadding && (T.visible || !a.options.chart.ignoreHiddenSeries)) {
  14545. n = w.allowZoomOutside = !0;
  14546. var _ = T[h];
  14547. if (i && T.getRadii(0, 0, T), 0 < t) {
  14548. for (var D = _.length; D--; )
  14549. if (B(_[D]) && w.dataMin <= _[D] && _[D] <= w.max) {
  14550. var W = T.radii && T.radii[D] || 0;
  14551. c = Math.min((_[D] - o) * s - W, c), p = Math.max((_[D] - o) * s + W, p);
  14552. }
  14553. }
  14554. }
  14555. }), n && 0 < t && !this.logarithmic && (p -= x, s *= (x + Math.max(0, c) - Math.min(p, x)) / x, [["min", "userMin", c], ["max", "userMax", p]].forEach(function(T) {
  14556. typeof b(w.options[T[0]], w[T[1]]) > "u" && (w[T[0]] += T[2] / s);
  14557. }));
  14558. }, U.registerSeriesType("bubble", F), F;
  14559. }), E(f, "Series/ColumnRange/ColumnRangePoint.js", [f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y) {
  14560. var j = this && this.__extends || function() {
  14561. var U = function(F, N) {
  14562. return U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(R, S) {
  14563. R.__proto__ = S;
  14564. } || function(R, S) {
  14565. for (var v in S)
  14566. S.hasOwnProperty(v) && (R[v] = S[v]);
  14567. }, U(F, N);
  14568. };
  14569. return function(F, N) {
  14570. function R() {
  14571. this.constructor = F;
  14572. }
  14573. U(F, N), F.prototype = N === null ? Object.create(N) : (R.prototype = N.prototype, new R());
  14574. };
  14575. }(), I = l.seriesTypes;
  14576. l = I.column.prototype.pointClass;
  14577. var Z = y.extend, H = y.isNumber;
  14578. return y = function(U) {
  14579. function F() {
  14580. var N = U !== null && U.apply(this, arguments) || this;
  14581. return N.series = void 0, N.options = void 0, N.barX = void 0, N.pointWidth = void 0, N.shapeType = void 0, N;
  14582. }
  14583. return j(F, U), F.prototype.isValid = function() {
  14584. return H(this.low);
  14585. }, F;
  14586. }(I.arearange.prototype.pointClass), Z(y.prototype, { setState: l.prototype.setState }), y;
  14587. }), E(f, "Series/ColumnRange/ColumnRangeSeries.js", [f["Series/ColumnRange/ColumnRangePoint.js"], f["Core/Globals.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14588. var Z = this && this.__extends || function() {
  14589. var A = function(O, B) {
  14590. return A = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, b) {
  14591. C.__proto__ = b;
  14592. } || function(C, b) {
  14593. for (var w in b)
  14594. b.hasOwnProperty(w) && (C[w] = b[w]);
  14595. }, A(O, B);
  14596. };
  14597. return function(O, B) {
  14598. function C() {
  14599. this.constructor = O;
  14600. }
  14601. A(O, B), O.prototype = B === null ? Object.create(B) : (C.prototype = B.prototype, new C());
  14602. };
  14603. }();
  14604. y = y.noop;
  14605. var H = j.seriesTypes, U = H.arearange, F = H.column, N = F.prototype, R = U.prototype, S = I.clamp, v = I.merge, d = I.pick;
  14606. I = I.extend;
  14607. var u = { pointRange: null, marker: null, states: { hover: { halo: !1 } } };
  14608. return H = function(A) {
  14609. function O() {
  14610. var B = A !== null && A.apply(this, arguments) || this;
  14611. return B.data = void 0, B.points = void 0, B.options = void 0, B;
  14612. }
  14613. return Z(O, A), O.prototype.setOptions = function() {
  14614. return v(!0, arguments[0], { stacking: void 0 }), R.setOptions.apply(this, arguments);
  14615. }, O.prototype.translate = function() {
  14616. var B = this, C = B.yAxis, b = B.xAxis, w = b.startAngleRad, x, a = B.chart, c = B.xAxis.isRadial, p = Math.max(a.chartWidth, a.chartHeight) + 999, i;
  14617. N.translate.apply(B), B.points.forEach(function(h) {
  14618. var o = h.shapeArgs || {}, t = B.options.minPointLength;
  14619. h.plotHigh = i = S(C.translate(h.high, 0, 1, 0, 1), -p, p), h.plotLow = S(h.plotY, -p, p);
  14620. var s = i, n = d(
  14621. h.rectPlotY,
  14622. h.plotY
  14623. ) - i;
  14624. Math.abs(n) < t ? (t -= n, n += t, s -= t / 2) : 0 > n && (n *= -1, s -= n), c ? (x = h.barX + w, h.shapeType = "arc", h.shapeArgs = B.polarArc(s + n, s, x, x + h.pointWidth)) : (o.height = n, o.y = s, t = o.x, t = t === void 0 ? 0 : t, o = o.width, o = o === void 0 ? 0 : o, h.tooltipPos = a.inverted ? [C.len + C.pos - a.plotLeft - s - n / 2, b.len + b.pos - a.plotTop - t - o / 2, n] : [b.left - a.plotLeft + t + o / 2, C.pos - a.plotTop + s + n / 2, n]);
  14625. });
  14626. }, O.prototype.crispCol = function() {
  14627. return N.crispCol.apply(this, arguments);
  14628. }, O.prototype.drawPoints = function() {
  14629. return N.drawPoints.apply(this, arguments);
  14630. }, O.prototype.drawTracker = function() {
  14631. return N.drawTracker.apply(this, arguments);
  14632. }, O.prototype.getColumnMetrics = function() {
  14633. return N.getColumnMetrics.apply(this, arguments);
  14634. }, O.prototype.pointAttribs = function() {
  14635. return N.pointAttribs.apply(this, arguments);
  14636. }, O.prototype.adjustForMissingColumns = function() {
  14637. return N.adjustForMissingColumns.apply(this, arguments);
  14638. }, O.prototype.animate = function() {
  14639. return N.animate.apply(this, arguments);
  14640. }, O.prototype.translate3dPoints = function() {
  14641. return N.translate3dPoints.apply(this, arguments);
  14642. }, O.prototype.translate3dShapes = function() {
  14643. return N.translate3dShapes.apply(this, arguments);
  14644. }, O.defaultOptions = v(F.defaultOptions, U.defaultOptions, u), O;
  14645. }(U), I(H.prototype, { directTouch: !0, trackerGroups: ["group", "dataLabelsGroup"], drawGraph: y, getSymbol: y, polarArc: function() {
  14646. return N.polarArc.apply(this, arguments);
  14647. }, pointClass: l }), j.registerSeriesType("columnrange", H), H;
  14648. }), E(f, "Series/ColumnPyramid/ColumnPyramidSeries.js", [f["Series/Column/ColumnSeries.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j) {
  14649. var I = this && this.__extends || function() {
  14650. var N = function(R, S) {
  14651. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  14652. v.__proto__ = d;
  14653. } || function(v, d) {
  14654. for (var u in d)
  14655. d.hasOwnProperty(u) && (v[u] = d[u]);
  14656. }, N(R, S);
  14657. };
  14658. return function(R, S) {
  14659. function v() {
  14660. this.constructor = R;
  14661. }
  14662. N(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  14663. };
  14664. }(), Z = l.prototype, H = j.clamp, U = j.merge, F = j.pick;
  14665. return j = function(N) {
  14666. function R() {
  14667. var S = N !== null && N.apply(this, arguments) || this;
  14668. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  14669. }
  14670. return I(R, N), R.prototype.translate = function() {
  14671. var S = this, v = S.chart, d = S.options, u = S.dense = 2 > S.closestPointRange * S.xAxis.transA;
  14672. u = S.borderWidth = F(d.borderWidth, u ? 0 : 1);
  14673. var A = S.yAxis, O = d.threshold, B = S.translatedThreshold = A.getThreshold(O), C = F(d.minPointLength, 5), b = S.getColumnMetrics(), w = b.width, x = S.barW = Math.max(w, 1 + 2 * u), a = S.pointXOffset = b.offset;
  14674. v.inverted && (B -= 0.5), d.pointPadding && (x = Math.ceil(x)), Z.translate.apply(S), S.points.forEach(function(c) {
  14675. var p = F(c.yBottom, B), i = 999 + Math.abs(p), h = H(c.plotY, -i, A.len + i);
  14676. i = c.plotX + a;
  14677. var o = x / 2, t = Math.min(h, p);
  14678. p = Math.max(h, p) - t;
  14679. var s;
  14680. c.barX = i, c.pointWidth = w, c.tooltipPos = v.inverted ? [A.len + A.pos - v.plotLeft - h, S.xAxis.len - i - o, p] : [i + o, h + A.pos - v.plotTop, p], h = O + (c.total || c.y), d.stacking === "percent" && (h = O + (0 > c.y) ? -100 : 100), h = A.toPixels(h, !0);
  14681. var n = (s = v.plotHeight - h - (v.plotHeight - B)) ? o * (t - h) / s : 0, T = s ? o * (t + p - h) / s : 0;
  14682. s = i - n + o, n = i + n + o;
  14683. var _ = i + T + o;
  14684. T = i - T + o;
  14685. var D = t - C, W = t + p;
  14686. 0 > c.y && (D = t, W = t + p + C), v.inverted && (_ = A.width - t, s = h - (A.width - B), n = o * (h - _) / s, T = o * (h - (_ - p)) / s, s = i + o + n, n = s - 2 * n, _ = i - T + o, T = i + T + o, D = t, W = t + p - C, 0 > c.y && (W = t + p + C)), c.shapeType = "path", c.shapeArgs = { x: s, y: D, width: n - s, height: p, d: [["M", s, D], ["L", n, D], ["L", _, W], ["L", T, W], ["Z"]] };
  14687. });
  14688. }, R.defaultOptions = U(l.defaultOptions, {}), R;
  14689. }(l), y.registerSeriesType("columnpyramid", j), j;
  14690. }), E(f, "Series/ErrorBar/ErrorBarSeries.js", [f["Series/BoxPlot/BoxPlotSeries.js"], f["Series/Column/ColumnSeries.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14691. var Z = this && this.__extends || function() {
  14692. var N = function(R, S) {
  14693. return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(v, d) {
  14694. v.__proto__ = d;
  14695. } || function(v, d) {
  14696. for (var u in d)
  14697. d.hasOwnProperty(u) && (v[u] = d[u]);
  14698. }, N(R, S);
  14699. };
  14700. return function(R, S) {
  14701. function v() {
  14702. this.constructor = R;
  14703. }
  14704. N(R, S), R.prototype = S === null ? Object.create(S) : (v.prototype = S.prototype, new v());
  14705. };
  14706. }(), H = j.seriesTypes.arearange, U = I.merge;
  14707. I = I.extend;
  14708. var F = function(N) {
  14709. function R() {
  14710. var S = N !== null && N.apply(this, arguments) || this;
  14711. return S.data = void 0, S.options = void 0, S.points = void 0, S;
  14712. }
  14713. return Z(R, N), R.prototype.getColumnMetrics = function() {
  14714. return this.linkedParent && this.linkedParent.columnMetrics || y.prototype.getColumnMetrics.call(this);
  14715. }, R.prototype.drawDataLabels = function() {
  14716. var S = this.pointValKey;
  14717. H && (H.prototype.drawDataLabels.call(this), this.data.forEach(function(v) {
  14718. v.y = v[S];
  14719. }));
  14720. }, R.prototype.toYData = function(S) {
  14721. return [S.low, S.high];
  14722. }, R.defaultOptions = U(l.defaultOptions, {
  14723. color: "#000000",
  14724. grouping: !1,
  14725. linkedTo: ":previous",
  14726. tooltip: { pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' },
  14727. whiskerWidth: null
  14728. }), R;
  14729. }(l);
  14730. return I(F.prototype, { pointArrayMap: ["low", "high"], pointValKey: "high", doQuartiles: !1 }), j.registerSeriesType("errorbar", F), F;
  14731. }), E(f, "Series/Gauge/GaugePoint.js", [f["Core/Series/SeriesRegistry.js"]], function(l) {
  14732. var y = this && this.__extends || function() {
  14733. var j = function(I, Z) {
  14734. return j = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(H, U) {
  14735. H.__proto__ = U;
  14736. } || function(H, U) {
  14737. for (var F in U)
  14738. U.hasOwnProperty(F) && (H[F] = U[F]);
  14739. }, j(I, Z);
  14740. };
  14741. return function(I, Z) {
  14742. function H() {
  14743. this.constructor = I;
  14744. }
  14745. j(I, Z), I.prototype = Z === null ? Object.create(Z) : (H.prototype = Z.prototype, new H());
  14746. };
  14747. }();
  14748. return function(j) {
  14749. function I() {
  14750. var Z = j !== null && j.apply(this, arguments) || this;
  14751. return Z.options = void 0, Z.series = void 0, Z.shapeArgs = void 0, Z;
  14752. }
  14753. return y(I, j), I.prototype.setState = function(Z) {
  14754. this.state = Z;
  14755. }, I;
  14756. }(l.series.prototype.pointClass);
  14757. }), E(f, "Series/Gauge/GaugeSeries.js", [f["Series/Gauge/GaugePoint.js"], f["Core/Globals.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14758. var Z = this && this.__extends || function() {
  14759. var u = function(A, O) {
  14760. return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, C) {
  14761. B.__proto__ = C;
  14762. } || function(B, C) {
  14763. for (var b in C)
  14764. C.hasOwnProperty(b) && (B[b] = C[b]);
  14765. }, u(A, O);
  14766. };
  14767. return function(A, O) {
  14768. function B() {
  14769. this.constructor = A;
  14770. }
  14771. u(A, O), A.prototype = O === null ? Object.create(O) : (B.prototype = O.prototype, new B());
  14772. };
  14773. }();
  14774. y = y.noop;
  14775. var H = j.series, U = j.seriesTypes.column, F = I.clamp, N = I.isNumber, R = I.extend, S = I.merge, v = I.pick, d = I.pInt;
  14776. return I = function(u) {
  14777. function A() {
  14778. var O = u !== null && u.apply(this, arguments) || this;
  14779. return O.data = void 0, O.points = void 0, O.options = void 0, O.yAxis = void 0, O;
  14780. }
  14781. return Z(A, u), A.prototype.translate = function() {
  14782. var O = this.yAxis, B = this.options, C = O.center;
  14783. this.generatePoints(), this.points.forEach(function(b) {
  14784. var w = S(B.dial, b.dial), x = d(v(w.radius, "80%")) * C[2] / 200, a = d(v(w.baseLength, "70%")) * x / 100, c = d(v(w.rearLength, "10%")) * x / 100, p = w.baseWidth || 3, i = w.topWidth || 1, h = B.overshoot, o = O.startAngleRad + O.translate(b.y, null, null, null, !0);
  14785. (N(h) || B.wrap === !1) && (h = N(h) ? h / 180 * Math.PI : 0, o = F(
  14786. o,
  14787. O.startAngleRad - h,
  14788. O.endAngleRad + h
  14789. )), o = 180 * o / Math.PI, b.shapeType = "path", b.shapeArgs = { d: w.path || [["M", -c, -p / 2], ["L", a, -p / 2], ["L", x, -i / 2], ["L", x, i / 2], ["L", a, p / 2], ["L", -c, p / 2], ["Z"]], translateX: C[0], translateY: C[1], rotation: o }, b.plotX = C[0], b.plotY = C[1];
  14790. });
  14791. }, A.prototype.drawPoints = function() {
  14792. var O = this, B = O.chart, C = O.yAxis.center, b = O.pivot, w = O.options, x = w.pivot, a = B.renderer;
  14793. O.points.forEach(function(c) {
  14794. var p = c.graphic, i = c.shapeArgs, h = i.d, o = S(w.dial, c.dial);
  14795. p ? (p.animate(i), i.d = h) : c.graphic = a[c.shapeType](i).attr({
  14796. rotation: i.rotation,
  14797. zIndex: 1
  14798. }).addClass("highcharts-dial").add(O.group), B.styledMode || c.graphic[p ? "animate" : "attr"]({ stroke: o.borderColor || "none", "stroke-width": o.borderWidth || 0, fill: o.backgroundColor || "#000000" });
  14799. }), b ? b.animate({ translateX: C[0], translateY: C[1] }) : (O.pivot = a.circle(0, 0, v(x.radius, 5)).attr({ zIndex: 2 }).addClass("highcharts-pivot").translate(C[0], C[1]).add(O.group), B.styledMode || O.pivot.attr({ "stroke-width": x.borderWidth || 0, stroke: x.borderColor || "#cccccc", fill: x.backgroundColor || "#000000" }));
  14800. }, A.prototype.animate = function(O) {
  14801. var B = this;
  14802. O || B.points.forEach(function(C) {
  14803. var b = C.graphic;
  14804. b && (b.attr({ rotation: 180 * B.yAxis.startAngleRad / Math.PI }), b.animate({ rotation: C.shapeArgs.rotation }, B.options.animation));
  14805. });
  14806. }, A.prototype.render = function() {
  14807. this.group = this.plotGroup("group", "series", this.visible ? "visible" : "hidden", this.options.zIndex, this.chart.seriesGroup), H.prototype.render.call(this), this.group.clip(this.chart.clipRect);
  14808. }, A.prototype.setData = function(O, B) {
  14809. H.prototype.setData.call(this, O, !1), this.processData(), this.generatePoints(), v(B, !0) && this.chart.redraw();
  14810. }, A.prototype.hasData = function() {
  14811. return !!this.points.length;
  14812. }, A.defaultOptions = S(H.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 }), A;
  14813. }(H), R(I.prototype, { angular: !0, directTouch: !0, drawGraph: y, drawTracker: U.prototype.drawTracker, fixedBox: !0, forceDL: !0, noSharedTooltip: !0, pointClass: l, trackerGroups: [
  14814. "group",
  14815. "dataLabelsGroup"
  14816. ] }), j.registerSeriesType("gauge", I), I;
  14817. }), E(f, "Series/PackedBubble/PackedBubblePoint.js", [f["Core/Chart/Chart.js"], f["Core/Series/Point.js"], f["Core/Series/SeriesRegistry.js"]], function(l, y, j) {
  14818. var I = this && this.__extends || function() {
  14819. var Z = function(H, U) {
  14820. return Z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(F, N) {
  14821. F.__proto__ = N;
  14822. } || function(F, N) {
  14823. for (var R in N)
  14824. N.hasOwnProperty(R) && (F[R] = N[R]);
  14825. }, Z(H, U);
  14826. };
  14827. return function(H, U) {
  14828. function F() {
  14829. this.constructor = H;
  14830. }
  14831. Z(H, U), H.prototype = U === null ? Object.create(U) : (F.prototype = U.prototype, new F());
  14832. };
  14833. }();
  14834. return function(Z) {
  14835. function H() {
  14836. var U = Z !== null && Z.apply(this, arguments) || this;
  14837. return U.degree = NaN, U.mass = NaN, U.radius = NaN, U.options = void 0, U.series = void 0, U.value = null, U;
  14838. }
  14839. return I(H, Z), H.prototype.destroy = function() {
  14840. return this.series.layout && this.series.layout.removeElementFromCollection(this, this.series.layout.nodes), y.prototype.destroy.apply(this, arguments);
  14841. }, H.prototype.firePointEvent = function() {
  14842. var U = this.series.options;
  14843. if (this.isParentNode && U.parentNode) {
  14844. var F = U.allowPointSelect;
  14845. U.allowPointSelect = U.parentNode.allowPointSelect, y.prototype.firePointEvent.apply(this, arguments), U.allowPointSelect = F;
  14846. } else
  14847. y.prototype.firePointEvent.apply(this, arguments);
  14848. }, H.prototype.select = function() {
  14849. var U = this.series.chart;
  14850. this.isParentNode ? (U.getSelectedPoints = U.getSelectedParentNodes, y.prototype.select.apply(this, arguments), U.getSelectedPoints = l.prototype.getSelectedPoints) : y.prototype.select.apply(this, arguments);
  14851. }, H;
  14852. }(j.seriesTypes.bubble.prototype.pointClass);
  14853. }), E(f, "Series/Networkgraph/DraggableNodes.js", [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j) {
  14854. var I = j.addEvent;
  14855. y.dragNodesMixin = { onMouseDown: function(Z, H) {
  14856. H = this.chart.pointer.normalize(H), Z.fixedPosition = { chartX: H.chartX, chartY: H.chartY, plotX: Z.plotX, plotY: Z.plotY }, Z.inDragMode = !0;
  14857. }, onMouseMove: function(Z, H) {
  14858. if (Z.fixedPosition && Z.inDragMode) {
  14859. var U = this.chart, F = U.pointer.normalize(H);
  14860. H = Z.fixedPosition.chartX - F.chartX, F = Z.fixedPosition.chartY - F.chartY;
  14861. var N = void 0, R = void 0, S = U.graphLayoutsLookup;
  14862. (5 < Math.abs(H) || 5 < Math.abs(F)) && (N = Z.fixedPosition.plotX - H, R = Z.fixedPosition.plotY - F, U.isInsidePlot(N, R) && (Z.plotX = N, Z.plotY = R, Z.hasDragged = !0, this.redrawHalo(Z), S.forEach(function(v) {
  14863. v.restartSimulation();
  14864. })));
  14865. }
  14866. }, onMouseUp: function(Z, H) {
  14867. Z.fixedPosition && (Z.hasDragged && (this.layout.enableSimulation ? this.layout.start() : this.chart.redraw()), Z.inDragMode = Z.hasDragged = !1, this.options.fixedDraggable || delete Z.fixedPosition);
  14868. }, redrawHalo: function(Z) {
  14869. Z && this.halo && this.halo.attr({ d: Z.haloPath(this.options.states.hover.halo.size) });
  14870. } }, I(l, "load", function() {
  14871. var Z = this, H, U, F;
  14872. Z.container && (H = I(Z.container, "mousedown", function(N) {
  14873. var R = Z.hoverPoint;
  14874. R && R.series && R.series.hasDraggableNodes && R.series.options.draggable && (R.series.onMouseDown(R, N), U = I(Z.container, "mousemove", function(S) {
  14875. return R && R.series && R.series.onMouseMove(R, S);
  14876. }), F = I(Z.container.ownerDocument, "mouseup", function(S) {
  14877. return U(), F(), R && R.series && R.series.onMouseUp(R, S);
  14878. }));
  14879. })), I(Z, "destroy", function() {
  14880. H();
  14881. });
  14882. });
  14883. }), E(
  14884. f,
  14885. "Series/Networkgraph/Integrations.js",
  14886. [f["Core/Globals.js"]],
  14887. function(l) {
  14888. l.networkgraphIntegrations = { verlet: { attractiveForceFunction: function(y, j) {
  14889. return (j - y) / y;
  14890. }, repulsiveForceFunction: function(y, j) {
  14891. return (j - y) / y * (j > y ? 1 : 0);
  14892. }, barycenter: function() {
  14893. var y = this.options.gravitationalConstant, j = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14894. j = (j - (this.box.left + this.box.width) / 2) * y, I = (I - (this.box.top + this.box.height) / 2) * y, this.nodes.forEach(function(Z) {
  14895. Z.fixedPosition || (Z.plotX -= j / Z.mass / Z.degree, Z.plotY -= I / Z.mass / Z.degree);
  14896. });
  14897. }, repulsive: function(y, j, I) {
  14898. j = j * this.diffTemperature / y.mass / y.degree, y.fixedPosition || (y.plotX += I.x * j, y.plotY += I.y * j);
  14899. }, attractive: function(y, j, I) {
  14900. var Z = y.getMass(), H = -I.x * j * this.diffTemperature;
  14901. j = -I.y * j * this.diffTemperature, y.fromNode.fixedPosition || (y.fromNode.plotX -= H * Z.fromNode / y.fromNode.degree, y.fromNode.plotY -= j * Z.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.plotX += H * Z.toNode / y.toNode.degree, y.toNode.plotY += j * Z.toNode / y.toNode.degree);
  14902. }, integrate: function(y, j) {
  14903. var I = -y.options.friction, Z = y.options.maxSpeed, H = (j.plotX + j.dispX - j.prevX) * I;
  14904. I *= j.plotY + j.dispY - j.prevY;
  14905. var U = Math.abs, F = U(H) / (H || 1);
  14906. U = U(I) / (I || 1), H = F * Math.min(Z, Math.abs(H)), I = U * Math.min(Z, Math.abs(I)), j.prevX = j.plotX + j.dispX, j.prevY = j.plotY + j.dispY, j.plotX += H, j.plotY += I, j.temperature = y.vectorLength({ x: H, y: I });
  14907. }, getK: function(y) {
  14908. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.5);
  14909. } }, euler: { attractiveForceFunction: function(y, j) {
  14910. return y * y / j;
  14911. }, repulsiveForceFunction: function(y, j) {
  14912. return j * j / y;
  14913. }, barycenter: function() {
  14914. var y = this.options.gravitationalConstant, j = this.barycenter.xFactor, I = this.barycenter.yFactor;
  14915. this.nodes.forEach(function(Z) {
  14916. if (!Z.fixedPosition) {
  14917. var H = Z.getDegree();
  14918. H *= 1 + H / 2, Z.dispX += (j - Z.plotX) * y * H / Z.degree, Z.dispY += (I - Z.plotY) * y * H / Z.degree;
  14919. }
  14920. });
  14921. }, repulsive: function(y, j, I, Z) {
  14922. y.dispX += I.x / Z * j / y.degree, y.dispY += I.y / Z * j / y.degree;
  14923. }, attractive: function(y, j, I, Z) {
  14924. var H = y.getMass(), U = I.x / Z * j;
  14925. j *= I.y / Z, y.fromNode.fixedPosition || (y.fromNode.dispX -= U * H.fromNode / y.fromNode.degree, y.fromNode.dispY -= j * H.fromNode / y.fromNode.degree), y.toNode.fixedPosition || (y.toNode.dispX += U * H.toNode / y.toNode.degree, y.toNode.dispY += j * H.toNode / y.toNode.degree);
  14926. }, integrate: function(y, j) {
  14927. j.dispX += j.dispX * y.options.friction, j.dispY += j.dispY * y.options.friction;
  14928. var I = j.temperature = y.vectorLength({ x: j.dispX, y: j.dispY });
  14929. I !== 0 && (j.plotX += j.dispX / I * Math.min(Math.abs(j.dispX), y.temperature), j.plotY += j.dispY / I * Math.min(Math.abs(j.dispY), y.temperature));
  14930. }, getK: function(y) {
  14931. return Math.pow(y.box.width * y.box.height / y.nodes.length, 0.3);
  14932. } } };
  14933. }
  14934. ), E(
  14935. f,
  14936. "Series/Networkgraph/QuadTree.js",
  14937. [f["Core/Globals.js"], f["Core/Utilities.js"]],
  14938. function(l, y) {
  14939. y = y.extend;
  14940. var j = l.QuadTreeNode = function(I) {
  14941. this.box = I, this.boxSize = Math.min(I.width, I.height), this.nodes = [], this.body = this.isInternal = !1, this.isEmpty = !0;
  14942. };
  14943. y(j.prototype, { insert: function(I, Z) {
  14944. this.isInternal ? this.nodes[this.getBoxPosition(I)].insert(I, Z - 1) : (this.isEmpty = !1, this.body ? Z ? (this.isInternal = !0, this.divideBox(), this.body !== !0 && (this.nodes[this.getBoxPosition(this.body)].insert(this.body, Z - 1), this.body = !0), this.nodes[this.getBoxPosition(I)].insert(I, Z - 1)) : (Z = new j({
  14945. top: I.plotX,
  14946. left: I.plotY,
  14947. width: 0.1,
  14948. height: 0.1
  14949. }), Z.body = I, Z.isInternal = !1, this.nodes.push(Z)) : (this.isInternal = !1, this.body = I));
  14950. }, updateMassAndCenter: function() {
  14951. var I = 0, Z = 0, H = 0;
  14952. this.isInternal ? (this.nodes.forEach(function(U) {
  14953. U.isEmpty || (I += U.mass, Z += U.plotX * U.mass, H += U.plotY * U.mass);
  14954. }), Z /= I, H /= I) : this.body && (I = this.body.mass, Z = this.body.plotX, H = this.body.plotY), this.mass = I, this.plotX = Z, this.plotY = H;
  14955. }, divideBox: function() {
  14956. var I = this.box.width / 2, Z = this.box.height / 2;
  14957. this.nodes[0] = new j({
  14958. left: this.box.left,
  14959. top: this.box.top,
  14960. width: I,
  14961. height: Z
  14962. }), this.nodes[1] = new j({ left: this.box.left + I, top: this.box.top, width: I, height: Z }), this.nodes[2] = new j({ left: this.box.left + I, top: this.box.top + Z, width: I, height: Z }), this.nodes[3] = new j({ left: this.box.left, top: this.box.top + Z, width: I, height: Z });
  14963. }, getBoxPosition: function(I) {
  14964. var Z = I.plotY < this.box.top + this.box.height / 2;
  14965. return I.plotX < this.box.left + this.box.width / 2 ? Z ? 0 : 3 : Z ? 1 : 2;
  14966. } }), l = l.QuadTree = function(I, Z, H, U) {
  14967. this.box = { left: I, top: Z, width: H, height: U }, this.maxDepth = 25, this.root = new j(
  14968. this.box,
  14969. "0"
  14970. ), this.root.isInternal = !0, this.root.isRoot = !0, this.root.divideBox();
  14971. }, y(l.prototype, { insertNodes: function(I) {
  14972. I.forEach(function(Z) {
  14973. this.root.insert(Z, this.maxDepth);
  14974. }, this);
  14975. }, visitNodeRecursive: function(I, Z, H) {
  14976. var U;
  14977. I || (I = this.root), I === this.root && Z && (U = Z(I)), U !== !1 && (I.nodes.forEach(function(F) {
  14978. if (F.isInternal) {
  14979. if (Z && (U = Z(F)), U === !1)
  14980. return;
  14981. this.visitNodeRecursive(F, Z, H);
  14982. } else
  14983. F.body && Z && Z(F.body);
  14984. H && H(F);
  14985. }, this), I === this.root && H && H(I));
  14986. }, calculateMassAndCenter: function() {
  14987. this.visitNodeRecursive(
  14988. null,
  14989. null,
  14990. function(I) {
  14991. I.updateMassAndCenter();
  14992. }
  14993. );
  14994. } });
  14995. }
  14996. ), E(f, "Series/Networkgraph/Layouts.js", [f["Core/Chart/Chart.js"], f["Core/Animation/AnimationUtilities.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  14997. var Z = y.setAnimation;
  14998. y = I.addEvent;
  14999. var H = I.clamp, U = I.defined, F = I.extend, N = I.isFunction, R = I.pick;
  15000. j.layouts = { "reingold-fruchterman": function() {
  15001. } }, F(j.layouts["reingold-fruchterman"].prototype, {
  15002. init: function(S) {
  15003. this.options = S, this.nodes = [], this.links = [], this.series = [], this.box = {
  15004. x: 0,
  15005. y: 0,
  15006. width: 0,
  15007. height: 0
  15008. }, this.setInitialRendering(!0), this.integration = j.networkgraphIntegrations[S.integration], this.enableSimulation = S.enableSimulation, this.attractiveForce = R(S.attractiveForce, this.integration.attractiveForceFunction), this.repulsiveForce = R(S.repulsiveForce, this.integration.repulsiveForceFunction), this.approximation = S.approximation;
  15009. },
  15010. updateSimulation: function(S) {
  15011. this.enableSimulation = R(S, this.options.enableSimulation);
  15012. },
  15013. start: function() {
  15014. var S = this.series, v = this.options;
  15015. this.currentStep = 0, this.forces = S[0] && S[0].forces || [], this.chart = S[0] && S[0].chart, this.initialRendering && (this.initPositions(), S.forEach(function(d) {
  15016. d.finishedAnimating = !0, d.render();
  15017. })), this.setK(), this.resetSimulation(v), this.enableSimulation && this.step();
  15018. },
  15019. step: function() {
  15020. var S = this, v = this.series;
  15021. S.currentStep++, S.approximation === "barnes-hut" && (S.createQuadTree(), S.quadTree.calculateMassAndCenter()), S.forces.forEach(function(d) {
  15022. S[d + "Forces"](S.temperature);
  15023. }), S.applyLimits(S.temperature), S.temperature = S.coolDown(
  15024. S.startTemperature,
  15025. S.diffTemperature,
  15026. S.currentStep
  15027. ), S.prevSystemTemperature = S.systemTemperature, S.systemTemperature = S.getSystemTemperature(), S.enableSimulation && (v.forEach(function(d) {
  15028. d.chart && d.render();
  15029. }), S.maxIterations-- && isFinite(S.temperature) && !S.isStable() ? (S.simulation && j.win.cancelAnimationFrame(S.simulation), S.simulation = j.win.requestAnimationFrame(function() {
  15030. S.step();
  15031. })) : S.simulation = !1);
  15032. },
  15033. stop: function() {
  15034. this.simulation && j.win.cancelAnimationFrame(this.simulation);
  15035. },
  15036. setArea: function(S, v, d, u) {
  15037. this.box = {
  15038. left: S,
  15039. top: v,
  15040. width: d,
  15041. height: u
  15042. };
  15043. },
  15044. setK: function() {
  15045. this.k = this.options.linkLength || this.integration.getK(this);
  15046. },
  15047. addElementsToCollection: function(S, v) {
  15048. S.forEach(function(d) {
  15049. v.indexOf(d) === -1 && v.push(d);
  15050. });
  15051. },
  15052. removeElementFromCollection: function(S, v) {
  15053. S = v.indexOf(S), S !== -1 && v.splice(S, 1);
  15054. },
  15055. clear: function() {
  15056. this.nodes.length = 0, this.links.length = 0, this.series.length = 0, this.resetSimulation();
  15057. },
  15058. resetSimulation: function() {
  15059. this.forcedStop = !1, this.systemTemperature = 0, this.setMaxIterations(), this.setTemperature(), this.setDiffTemperature();
  15060. },
  15061. restartSimulation: function() {
  15062. this.simulation ? this.resetSimulation() : (this.setInitialRendering(!1), this.enableSimulation ? this.start() : this.setMaxIterations(1), this.chart && this.chart.redraw(), this.setInitialRendering(!0));
  15063. },
  15064. setMaxIterations: function(S) {
  15065. this.maxIterations = R(S, this.options.maxIterations);
  15066. },
  15067. setTemperature: function() {
  15068. this.temperature = this.startTemperature = Math.sqrt(this.nodes.length);
  15069. },
  15070. setDiffTemperature: function() {
  15071. this.diffTemperature = this.startTemperature / (this.options.maxIterations + 1);
  15072. },
  15073. setInitialRendering: function(S) {
  15074. this.initialRendering = S;
  15075. },
  15076. createQuadTree: function() {
  15077. this.quadTree = new j.QuadTree(this.box.left, this.box.top, this.box.width, this.box.height), this.quadTree.insertNodes(this.nodes);
  15078. },
  15079. initPositions: function() {
  15080. var S = this.options.initialPositions;
  15081. N(S) ? (S.call(this), this.nodes.forEach(function(v) {
  15082. U(v.prevX) || (v.prevX = v.plotX), U(v.prevY) || (v.prevY = v.plotY), v.dispX = 0, v.dispY = 0;
  15083. })) : S === "circle" ? this.setCircularPositions() : this.setRandomPositions();
  15084. },
  15085. setCircularPositions: function() {
  15086. function S(b) {
  15087. b.linksFrom.forEach(function(w) {
  15088. B[w.toNode.id] || (B[w.toNode.id] = !0, O.push(w.toNode), S(w.toNode));
  15089. });
  15090. }
  15091. var v = this.box, d = this.nodes, u = 2 * Math.PI / (d.length + 1), A = d.filter(function(b) {
  15092. return b.linksTo.length === 0;
  15093. }), O = [], B = {}, C = this.options.initialPositionRadius;
  15094. A.forEach(function(b) {
  15095. O.push(b), S(b);
  15096. }), O.length ? d.forEach(function(b) {
  15097. O.indexOf(b) === -1 && O.push(b);
  15098. }) : O = d, O.forEach(function(b, w) {
  15099. b.plotX = b.prevX = R(b.plotX, v.width / 2 + C * Math.cos(w * u)), b.plotY = b.prevY = R(b.plotY, v.height / 2 + C * Math.sin(w * u)), b.dispX = 0, b.dispY = 0;
  15100. });
  15101. },
  15102. setRandomPositions: function() {
  15103. function S(A) {
  15104. return A = A * A / Math.PI, A -= Math.floor(A);
  15105. }
  15106. var v = this.box, d = this.nodes, u = d.length + 1;
  15107. d.forEach(function(A, O) {
  15108. A.plotX = A.prevX = R(A.plotX, v.width * S(O)), A.plotY = A.prevY = R(A.plotY, v.height * S(u + O)), A.dispX = 0, A.dispY = 0;
  15109. });
  15110. },
  15111. force: function(S) {
  15112. this.integration[S].apply(this, Array.prototype.slice.call(arguments, 1));
  15113. },
  15114. barycenterForces: function() {
  15115. this.getBarycenter(), this.force("barycenter");
  15116. },
  15117. getBarycenter: function() {
  15118. var S = 0, v = 0, d = 0;
  15119. return this.nodes.forEach(function(u) {
  15120. v += u.plotX * u.mass, d += u.plotY * u.mass, S += u.mass;
  15121. }), this.barycenter = { x: v, y: d, xFactor: v / S, yFactor: d / S };
  15122. },
  15123. barnesHutApproximation: function(S, v) {
  15124. var d = this.getDistXY(S, v), u = this.vectorLength(d);
  15125. if (S !== v && u !== 0)
  15126. if (v.isInternal)
  15127. if (v.boxSize / u < this.options.theta && u !== 0) {
  15128. var A = this.repulsiveForce(u, this.k);
  15129. this.force("repulsive", S, A * v.mass, d, u);
  15130. var O = !1;
  15131. } else
  15132. O = !0;
  15133. else
  15134. A = this.repulsiveForce(u, this.k), this.force("repulsive", S, A * v.mass, d, u);
  15135. return O;
  15136. },
  15137. repulsiveForces: function() {
  15138. var S = this;
  15139. S.approximation === "barnes-hut" ? S.nodes.forEach(function(v) {
  15140. S.quadTree.visitNodeRecursive(
  15141. null,
  15142. function(d) {
  15143. return S.barnesHutApproximation(v, d);
  15144. }
  15145. );
  15146. }) : S.nodes.forEach(function(v) {
  15147. S.nodes.forEach(function(d) {
  15148. if (v !== d && !v.fixedPosition) {
  15149. var u = S.getDistXY(v, d), A = S.vectorLength(u);
  15150. if (A !== 0) {
  15151. var O = S.repulsiveForce(A, S.k);
  15152. S.force("repulsive", v, O * d.mass, u, A);
  15153. }
  15154. }
  15155. });
  15156. });
  15157. },
  15158. attractiveForces: function() {
  15159. var S = this, v, d, u;
  15160. S.links.forEach(function(A) {
  15161. A.fromNode && A.toNode && (v = S.getDistXY(A.fromNode, A.toNode), d = S.vectorLength(v), d !== 0 && (u = S.attractiveForce(d, S.k), S.force("attractive", A, u, v, d)));
  15162. });
  15163. },
  15164. applyLimits: function() {
  15165. var S = this;
  15166. S.nodes.forEach(function(v) {
  15167. v.fixedPosition || (S.integration.integrate(S, v), S.applyLimitBox(v, S.box), v.dispX = 0, v.dispY = 0);
  15168. });
  15169. },
  15170. applyLimitBox: function(S, v) {
  15171. var d = S.radius;
  15172. S.plotX = H(S.plotX, v.left + d, v.width - d), S.plotY = H(S.plotY, v.top + d, v.height - d);
  15173. },
  15174. coolDown: function(S, v, d) {
  15175. return S - v * d;
  15176. },
  15177. isStable: function() {
  15178. return 1e-5 > Math.abs(this.systemTemperature - this.prevSystemTemperature) || 0 >= this.temperature;
  15179. },
  15180. getSystemTemperature: function() {
  15181. return this.nodes.reduce(function(S, v) {
  15182. return S + v.temperature;
  15183. }, 0);
  15184. },
  15185. vectorLength: function(S) {
  15186. return Math.sqrt(S.x * S.x + S.y * S.y);
  15187. },
  15188. getDistR: function(S, v) {
  15189. return S = this.getDistXY(S, v), this.vectorLength(S);
  15190. },
  15191. getDistXY: function(S, v) {
  15192. var d = S.plotX - v.plotX;
  15193. return S = S.plotY - v.plotY, { x: d, y: S, absX: Math.abs(d), absY: Math.abs(S) };
  15194. }
  15195. }), y(l, "predraw", function() {
  15196. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(S) {
  15197. S.stop();
  15198. });
  15199. }), y(l, "render", function() {
  15200. function S(u) {
  15201. u.maxIterations-- && isFinite(u.temperature) && !u.isStable() && !u.enableSimulation && (u.beforeStep && u.beforeStep(), u.step(), d = !1, v = !0);
  15202. }
  15203. var v = !1;
  15204. if (this.graphLayoutsLookup) {
  15205. for (Z(!1, this), this.graphLayoutsLookup.forEach(function(u) {
  15206. u.start();
  15207. }); !d; ) {
  15208. var d = !0;
  15209. this.graphLayoutsLookup.forEach(S);
  15210. }
  15211. v && this.series.forEach(function(u) {
  15212. u && u.layout && u.render();
  15213. });
  15214. }
  15215. }), y(l, "beforePrint", function() {
  15216. this.graphLayoutsLookup && (this.graphLayoutsLookup.forEach(function(S) {
  15217. S.updateSimulation(!1);
  15218. }), this.redraw());
  15219. }), y(l, "afterPrint", function() {
  15220. this.graphLayoutsLookup && this.graphLayoutsLookup.forEach(function(S) {
  15221. S.updateSimulation();
  15222. }), this.redraw();
  15223. });
  15224. }), E(f, "Series/PackedBubble/PackedBubbleComposition.js", [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j) {
  15225. var I = y.layouts["reingold-fruchterman"], Z = j.addEvent, H = j.extendClass, U = j.pick;
  15226. l.prototype.getSelectedParentNodes = function() {
  15227. var F = [];
  15228. return this.series.forEach(function(N) {
  15229. N.parentNode && N.parentNode.selected && F.push(N.parentNode);
  15230. }), F;
  15231. }, y.networkgraphIntegrations.packedbubble = { repulsiveForceFunction: function(F, N, R, S) {
  15232. return Math.min(F, (R.marker.radius + S.marker.radius) / 2);
  15233. }, barycenter: function() {
  15234. var F = this, N = F.options.gravitationalConstant, R = F.box, S = F.nodes, v, d;
  15235. S.forEach(function(u) {
  15236. F.options.splitSeries && !u.isParentNode ? (v = u.series.parentNode.plotX, d = u.series.parentNode.plotY) : (v = R.width / 2, d = R.height / 2), u.fixedPosition || (u.plotX -= (u.plotX - v) * N / (u.mass * Math.sqrt(S.length)), u.plotY -= (u.plotY - d) * N / (u.mass * Math.sqrt(S.length)));
  15237. });
  15238. }, repulsive: function(F, N, R, S) {
  15239. var v = N * this.diffTemperature / F.mass / F.degree;
  15240. N = R.x * v, R = R.y * v, F.fixedPosition || (F.plotX += N, F.plotY += R), S.fixedPosition || (S.plotX -= N, S.plotY -= R);
  15241. }, integrate: y.networkgraphIntegrations.verlet.integrate, getK: y.noop }, y.layouts.packedbubble = H(I, { beforeStep: function() {
  15242. this.options.marker && this.series.forEach(function(F) {
  15243. F && F.calculateParentRadius();
  15244. });
  15245. }, isStable: function() {
  15246. var F = Math.abs(this.prevSystemTemperature - this.systemTemperature);
  15247. return 1 > Math.abs(10 * this.systemTemperature / Math.sqrt(this.nodes.length)) && 1e-5 > F || 0 >= this.temperature;
  15248. }, setCircularPositions: function() {
  15249. var F = this, N = F.box, R = F.nodes, S = 2 * Math.PI / (R.length + 1), v, d, u = F.options.initialPositionRadius;
  15250. R.forEach(function(A, O) {
  15251. F.options.splitSeries && !A.isParentNode ? (v = A.series.parentNode.plotX, d = A.series.parentNode.plotY) : (v = N.width / 2, d = N.height / 2), A.plotX = A.prevX = U(A.plotX, v + u * Math.cos(A.index || O * S)), A.plotY = A.prevY = U(A.plotY, d + u * Math.sin(A.index || O * S)), A.dispX = 0, A.dispY = 0;
  15252. });
  15253. }, repulsiveForces: function() {
  15254. var F = this, N, R, S, v = F.options.bubblePadding;
  15255. F.nodes.forEach(function(d) {
  15256. d.degree = d.mass, d.neighbours = 0, F.nodes.forEach(function(u) {
  15257. N = 0, d === u || d.fixedPosition || !F.options.seriesInteraction && d.series !== u.series || (S = F.getDistXY(d, u), R = F.vectorLength(S) - (d.marker.radius + u.marker.radius + v), 0 > R && (d.degree += 0.01, d.neighbours++, N = F.repulsiveForce(-R / Math.sqrt(d.neighbours), F.k, d, u)), F.force("repulsive", d, N * u.mass, S, u, R));
  15258. });
  15259. });
  15260. }, applyLimitBox: function(F) {
  15261. if (this.options.splitSeries && !F.isParentNode && this.options.parentNodeLimit) {
  15262. var N = this.getDistXY(F, F.series.parentNode), R = F.series.parentNodeRadius - F.marker.radius - this.vectorLength(N);
  15263. 0 > R && R > -2 * F.marker.radius && (F.plotX -= 0.01 * N.x, F.plotY -= 0.01 * N.y);
  15264. }
  15265. I.prototype.applyLimitBox.apply(this, arguments);
  15266. } }), Z(l, "beforeRedraw", function() {
  15267. this.allDataPoints && delete this.allDataPoints;
  15268. });
  15269. }), E(f, "Series/PackedBubble/PackedBubbleSeries.js", [f["Core/Color/Color.js"], f["Core/Globals.js"], f["Series/PackedBubble/PackedBubblePoint.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j, I, Z) {
  15270. var H = this && this.__extends || function() {
  15271. var w = function(x, a) {
  15272. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(c, p) {
  15273. c.__proto__ = p;
  15274. } || function(c, p) {
  15275. for (var i in p)
  15276. p.hasOwnProperty(i) && (c[i] = p[i]);
  15277. }, w(x, a);
  15278. };
  15279. return function(x, a) {
  15280. function c() {
  15281. this.constructor = x;
  15282. }
  15283. w(x, a), x.prototype = a === null ? Object.create(a) : (c.prototype = a.prototype, new c());
  15284. };
  15285. }(), U = l.parse, F = I.series, N = I.seriesTypes.bubble, R = Z.addEvent, S = Z.clamp, v = Z.defined, d = Z.extend, u = Z.fireEvent, A = Z.isArray, O = Z.isNumber, B = Z.merge, C = Z.pick, b = y.dragNodesMixin;
  15286. return l = function(w) {
  15287. function x() {
  15288. var a = w !== null && w.apply(this, arguments) || this;
  15289. return a.chart = void 0, a.data = void 0, a.layout = void 0, a.options = void 0, a.points = void 0, a.xData = void 0, a;
  15290. }
  15291. return H(x, w), x.prototype.accumulateAllPoints = function(a) {
  15292. var c = a.chart, p = [], i, h;
  15293. for (i = 0; i < c.series.length; i++)
  15294. if (a = c.series[i], a.is("packedbubble") && a.visible || !c.options.chart.ignoreHiddenSeries)
  15295. for (h = 0; h < a.yData.length; h++)
  15296. p.push([null, null, a.yData[h], a.index, h, { id: h, marker: { radius: 0 } }]);
  15297. return p;
  15298. }, x.prototype.addLayout = function() {
  15299. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = this.chart.options.chart;
  15300. c || (this.chart.graphLayoutsStorage = c = {}, this.chart.graphLayoutsLookup = p = []);
  15301. var h = c[a.type];
  15302. h || (a.enableSimulation = v(i.forExport) ? !i.forExport : a.enableSimulation, c[a.type] = h = new y.layouts[a.type](), h.init(a), p.splice(h.index, 0, h)), this.layout = h, this.points.forEach(function(o) {
  15303. o.mass = 2, o.degree = 1, o.collisionNmb = 1;
  15304. }), h.setArea(0, 0, this.chart.plotWidth, this.chart.plotHeight), h.addElementsToCollection([this], h.series), h.addElementsToCollection(this.points, h.nodes);
  15305. }, x.prototype.addSeriesLayout = function() {
  15306. var a = this.options.layoutAlgorithm, c = this.chart.graphLayoutsStorage, p = this.chart.graphLayoutsLookup, i = B(a, a.parentNodeOptions, { enableSimulation: this.layout.options.enableSimulation }), h = c[a.type + "-series"];
  15307. h || (c[a.type + "-series"] = h = new y.layouts[a.type](), h.init(i), p.splice(h.index, 0, h)), this.parentNodeLayout = h, this.createParentNodes();
  15308. }, x.prototype.calculateParentRadius = function() {
  15309. var a = this.seriesBox();
  15310. this.parentNodeRadius = S(Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20, 20, a ? Math.max(Math.sqrt(Math.pow(
  15311. a.width,
  15312. 2
  15313. ) + Math.pow(a.height, 2)) / 2 + 20, 20) : Math.sqrt(2 * this.parentNodeMass / Math.PI) + 20), this.parentNode && (this.parentNode.marker.radius = this.parentNode.radius = this.parentNodeRadius);
  15314. }, x.prototype.calculateZExtremes = function() {
  15315. var a = this.options.zMin, c = this.options.zMax, p = 1 / 0, i = -1 / 0;
  15316. return a && c ? [a, c] : (this.chart.series.forEach(function(h) {
  15317. h.yData.forEach(function(o) {
  15318. v(o) && (o > i && (i = o), o < p && (p = o));
  15319. });
  15320. }), a = C(a, p), c = C(c, i), [a, c]);
  15321. }, x.prototype.checkOverlap = function(a, c) {
  15322. var p = a[0] - c[0], i = a[1] - c[1];
  15323. return -1e-3 > Math.sqrt(p * p + i * i) - Math.abs(a[2] + c[2]);
  15324. }, x.prototype.createParentNodes = function() {
  15325. var a = this, c = a.chart, p = a.parentNodeLayout, i, h = a.parentNode, o = a.pointClass, t = a.layout.options, s = { radius: a.parentNodeRadius, lineColor: a.color, fillColor: U(a.color).brighten(0.4).get() };
  15326. t.parentNodeOptions && (s = B(t.parentNodeOptions.marker || {}, s)), a.parentNodeMass = 0, a.points.forEach(function(n) {
  15327. a.parentNodeMass += Math.PI * Math.pow(n.marker.radius, 2);
  15328. }), a.calculateParentRadius(), p.nodes.forEach(function(n) {
  15329. n.seriesIndex === a.index && (i = !0);
  15330. }), p.setArea(0, 0, c.plotWidth, c.plotHeight), i || (h || (h = new o().init(this, { mass: a.parentNodeRadius / 2, marker: s, dataLabels: { inside: !1 }, states: { normal: { marker: s }, hover: { marker: s } }, dataLabelOnNull: !0, degree: a.parentNodeRadius, isParentNode: !0, seriesIndex: a.index })), a.parentNode && (h.plotX = a.parentNode.plotX, h.plotY = a.parentNode.plotY), a.parentNode = h, p.addElementsToCollection([a], p.series), p.addElementsToCollection([h], p.nodes));
  15331. }, x.prototype.deferLayout = function() {
  15332. var a = this.options.layoutAlgorithm;
  15333. this.visible && (this.addLayout(), a.splitSeries && this.addSeriesLayout());
  15334. }, x.prototype.destroy = function() {
  15335. this.chart.graphLayoutsLookup && this.chart.graphLayoutsLookup.forEach(function(a) {
  15336. a.removeElementFromCollection(this, a.series);
  15337. }, 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);
  15338. }, x.prototype.drawDataLabels = function() {
  15339. var a = this.options.dataLabels.textPath, c = this.points;
  15340. 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 = a);
  15341. }, x.prototype.drawGraph = function() {
  15342. if (this.layout && this.layout.options.splitSeries) {
  15343. var a = this.chart, c = this.layout.options.parentNodeOptions.marker, p = { fill: c.fillColor || U(this.color).brighten(0.4).get(), opacity: c.fillOpacity, stroke: c.lineColor || this.color, "stroke-width": C(c.lineWidth, this.options.lineWidth) };
  15344. this.parentNodesGroup || (this.parentNodesGroup = this.plotGroup("parentNodesGroup", "parentNode", this.visible ? "inherit" : "hidden", 0.1, a.seriesGroup), this.group.attr({ zIndex: 2 })), this.calculateParentRadius(), c = B({
  15345. x: this.parentNode.plotX - this.parentNodeRadius,
  15346. y: this.parentNode.plotY - this.parentNodeRadius,
  15347. width: 2 * this.parentNodeRadius,
  15348. height: 2 * this.parentNodeRadius
  15349. }, p), this.parentNode.graphic || (this.graph = this.parentNode.graphic = a.renderer.symbol(p.symbol).add(this.parentNodesGroup)), this.parentNode.graphic.attr(c);
  15350. }
  15351. }, x.prototype.drawTracker = function() {
  15352. var a = this.parentNode;
  15353. if (w.prototype.drawTracker.call(this), a) {
  15354. var c = A(a.dataLabels) ? a.dataLabels : a.dataLabel ? [a.dataLabel] : [];
  15355. a.graphic && (a.graphic.element.point = a), c.forEach(function(p) {
  15356. p.div ? p.div.point = a : p.element.point = a;
  15357. });
  15358. }
  15359. }, x.prototype.getPointRadius = function() {
  15360. var a = this, c = a.chart, p = a.options, i = p.useSimulation, h = Math.min(c.plotWidth, c.plotHeight), o = {}, t = [], s = c.allDataPoints, n, T, _, D;
  15361. ["minSize", "maxSize"].forEach(function(P) {
  15362. var X = parseInt(p[P], 10), g = /%$/.test(p[P]);
  15363. o[P] = g ? h * X / 100 : X * Math.sqrt(s.length);
  15364. }), c.minRadius = n = o.minSize / Math.sqrt(s.length), c.maxRadius = T = o.maxSize / Math.sqrt(s.length);
  15365. var W = i ? a.calculateZExtremes() : [n, T];
  15366. (s || []).forEach(function(P, X) {
  15367. _ = i ? S(P[2], W[0], W[1]) : P[2], D = a.getRadius(W[0], W[1], n, T, _), D === 0 && (D = null), s[X][2] = D, t.push(D);
  15368. }), a.radii = t;
  15369. }, x.prototype.init = function() {
  15370. return F.prototype.init.apply(this, arguments), this.eventsToUnbind.push(R(this, "updatedData", function() {
  15371. this.chart.series.forEach(function(a) {
  15372. a.type === this.type && (a.isDirty = !0);
  15373. }, this);
  15374. })), this;
  15375. }, x.prototype.onMouseUp = function(a) {
  15376. if (a.fixedPosition && !a.removed) {
  15377. var c, p, i = this.layout, h = this.parentNodeLayout;
  15378. h && i.options.dragBetweenSeries && h.nodes.forEach(function(o) {
  15379. a && a.marker && o !== a.series.parentNode && (c = i.getDistXY(a, o), p = i.vectorLength(c) - o.marker.radius - a.marker.radius, 0 > p && (o.series.addPoint(B(a.options, { plotX: a.plotX, plotY: a.plotY }), !1), i.removeElementFromCollection(a, i.nodes), a.remove()));
  15380. }), b.onMouseUp.apply(this, arguments);
  15381. }
  15382. }, x.prototype.placeBubbles = function(a) {
  15383. var c = this.checkOverlap, p = this.positionBubble, i = [], h = 1, o = 0, t = 0, s = [], n;
  15384. if (a = a.sort(function(T, _) {
  15385. return _[2] - T[2];
  15386. }), a.length) {
  15387. if (i.push([[0, 0, a[0][2], a[0][3], a[0][4]]]), 1 < a.length)
  15388. for (i.push([[0, 0 - a[1][2] - a[0][2], a[1][2], a[1][3], a[1][4]]]), n = 2; n < a.length; n++)
  15389. a[n][2] = a[n][2] || 1, s = p(i[h][o], i[h - 1][t], a[n]), c(s, i[h][0]) ? (i.push([]), t = 0, i[h + 1].push(p(i[h][o], i[h][0], a[n])), h++, o = 0) : 1 < h && i[h - 1][t + 1] && c(s, i[h - 1][t + 1]) ? (t++, i[h].push(p(i[h][o], i[h - 1][t], a[n])), o++) : (o++, i[h].push(s));
  15390. this.chart.stages = i, this.chart.rawPositions = [].concat.apply([], i), this.resizeRadius(), s = this.chart.rawPositions;
  15391. }
  15392. return s;
  15393. }, x.prototype.pointAttribs = function(a, c) {
  15394. var p = this.options, i = p.marker;
  15395. return a && a.isParentNode && p.layoutAlgorithm && p.layoutAlgorithm.parentNodeOptions && (i = p.layoutAlgorithm.parentNodeOptions.marker), p = i.fillOpacity, a = F.prototype.pointAttribs.call(this, a, c), p !== 1 && (a["fill-opacity"] = p), a;
  15396. }, x.prototype.positionBubble = function(a, c, p) {
  15397. var i = Math.sqrt, h = Math.asin, o = Math.acos, t = Math.pow, s = Math.abs;
  15398. return i = i(t(a[0] - c[0], 2) + t(a[1] - c[1], 2)), o = o((t(i, 2) + t(p[2] + c[2], 2) - t(p[2] + a[2], 2)) / (2 * (p[2] + c[2]) * i)), h = h(s(a[0] - c[0]) / i), a = (0 > a[1] - c[1] ? 0 : Math.PI) + o + h * (0 > (a[0] - c[0]) * (a[1] - c[1]) ? 1 : -1), [c[0] + (c[2] + p[2]) * Math.sin(a), c[1] - (c[2] + p[2]) * Math.cos(a), p[2], p[3], p[4]];
  15399. }, x.prototype.render = function() {
  15400. var a = [];
  15401. F.prototype.render.apply(this, arguments), this.options.dataLabels.allowOverlap || (this.data.forEach(function(c) {
  15402. A(c.dataLabels) && c.dataLabels.forEach(function(p) {
  15403. a.push(p);
  15404. });
  15405. }), this.options.useSimulation && this.chart.hideOverlappingLabels(a));
  15406. }, x.prototype.resizeRadius = function() {
  15407. var a = this.chart, c = a.rawPositions, p = Math.min, i = Math.max, h = a.plotLeft, o = a.plotTop, t = a.plotHeight, s = a.plotWidth, n, T, _, D = n = Number.POSITIVE_INFINITY, W = T = Number.NEGATIVE_INFINITY;
  15408. for (_ = 0; _ < c.length; _++) {
  15409. var P = c[_][2];
  15410. D = p(
  15411. D,
  15412. c[_][0] - P
  15413. ), W = i(W, c[_][0] + P), n = p(n, c[_][1] - P), T = i(T, c[_][1] + P);
  15414. }
  15415. if (_ = [W - D, T - n], p = p.apply([], [(s - h) / _[0], (t - o) / _[1]]), 1e-10 < Math.abs(p - 1)) {
  15416. for (_ = 0; _ < c.length; _++)
  15417. c[_][2] *= p;
  15418. this.placeBubbles(c);
  15419. } else
  15420. a.diffY = t / 2 + o - n - (T - n) / 2, a.diffX = s / 2 + h - D - (W - D) / 2;
  15421. }, x.prototype.seriesBox = function() {
  15422. var a = this.chart, c = Math.max, p = Math.min, i, h = [a.plotLeft, a.plotLeft + a.plotWidth, a.plotTop, a.plotTop + a.plotHeight];
  15423. return this.data.forEach(function(o) {
  15424. v(o.plotX) && v(o.plotY) && o.marker.radius && (i = o.marker.radius, h[0] = p(h[0], o.plotX - i), h[1] = c(h[1], o.plotX + i), h[2] = p(h[2], o.plotY - i), h[3] = c(h[3], o.plotY + i));
  15425. }), O(h.width / h.height) ? h : null;
  15426. }, x.prototype.setVisible = function() {
  15427. var a = this;
  15428. F.prototype.setVisible.apply(a, arguments), a.parentNodeLayout && a.graph ? a.visible ? (a.graph.show(), a.parentNode.dataLabel && a.parentNode.dataLabel.show()) : (a.graph.hide(), a.parentNodeLayout.removeElementFromCollection(a.parentNode, a.parentNodeLayout.nodes), a.parentNode.dataLabel && a.parentNode.dataLabel.hide()) : a.layout && (a.visible ? a.layout.addElementsToCollection(
  15429. a.points,
  15430. a.layout.nodes
  15431. ) : a.points.forEach(function(c) {
  15432. a.layout.removeElementFromCollection(c, a.layout.nodes);
  15433. }));
  15434. }, x.prototype.translate = function() {
  15435. var a = this.chart, c = this.data, p = this.index, i, h = this.options.useSimulation;
  15436. if (this.processedXData = this.xData, this.generatePoints(), v(a.allDataPoints) || (a.allDataPoints = this.accumulateAllPoints(this), this.getPointRadius()), h)
  15437. var o = a.allDataPoints;
  15438. else
  15439. o = this.placeBubbles(a.allDataPoints), this.options.draggable = !1;
  15440. for (i = 0; i < o.length; i++)
  15441. if (o[i][3] === p) {
  15442. var t = c[o[i][4]], s = C(o[i][2], void 0);
  15443. h || (t.plotX = o[i][0] - a.plotLeft + a.diffX, t.plotY = o[i][1] - a.plotTop + a.diffY), O(s) && (t.marker = d(t.marker, { radius: s, width: 2 * s, height: 2 * s }), t.radius = s);
  15444. }
  15445. h && this.deferLayout(), u(this, "afterTranslate");
  15446. }, x.defaultOptions = B(N.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() {
  15447. var a = this.series.chart.numberFormatter, c = this.point.value;
  15448. return O(c) ? a(c, -1) : "";
  15449. }, parentNodeFormatter: function() {
  15450. return this.name;
  15451. }, 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: {
  15452. fillColor: null,
  15453. fillOpacity: 1,
  15454. lineWidth: null,
  15455. lineColor: null,
  15456. symbol: "circle"
  15457. } }, enableSimulation: !0, type: "packedbubble", integration: "packedbubble", maxIterations: 1e3, splitSeries: !1, maxSpeed: 5, gravitationalConstant: 0.01, friction: -0.981 } }), x;
  15458. }(N), d(l.prototype, {
  15459. alignDataLabel: F.prototype.alignDataLabel,
  15460. axisTypes: [],
  15461. directTouch: !0,
  15462. forces: ["barycenter", "repulsive"],
  15463. hasDraggableNodes: !0,
  15464. isCartesian: !1,
  15465. noSharedTooltip: !0,
  15466. onMouseDown: b.onMouseDown,
  15467. onMouseMove: b.onMouseMove,
  15468. pointArrayMap: ["value"],
  15469. pointClass: j,
  15470. pointValKey: "value",
  15471. redrawHalo: b.redrawHalo,
  15472. requireSorting: !1,
  15473. searchPoint: y.noop,
  15474. trackerGroups: ["group", "dataLabelsGroup", "parentNodesGroup"]
  15475. }), I.registerSeriesType("packedbubble", l), l;
  15476. }), E(f, "Series/Polygon/PolygonSeries.js", [f["Core/Globals.js"], f["Core/Legend/LegendSymbol.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  15477. var Z = this && this.__extends || function() {
  15478. var v = function(d, u) {
  15479. return v = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(A, O) {
  15480. A.__proto__ = O;
  15481. } || function(A, O) {
  15482. for (var B in O)
  15483. O.hasOwnProperty(B) && (A[B] = O[B]);
  15484. }, v(d, u);
  15485. };
  15486. return function(d, u) {
  15487. function A() {
  15488. this.constructor = d;
  15489. }
  15490. v(d, u), d.prototype = u === null ? Object.create(u) : (A.prototype = u.prototype, new A());
  15491. };
  15492. }();
  15493. l = l.noop;
  15494. var H = j.series, U = j.seriesTypes, F = U.area, N = U.line, R = U.scatter;
  15495. U = I.extend;
  15496. var S = I.merge;
  15497. return I = function(v) {
  15498. function d() {
  15499. var u = v !== null && v.apply(this, arguments) || this;
  15500. return u.data = void 0, u.options = void 0, u.points = void 0, u;
  15501. }
  15502. return Z(d, v), d.prototype.getGraphPath = function() {
  15503. for (var u = N.prototype.getGraphPath.call(this), A = u.length + 1; A--; )
  15504. (A === u.length || u[A][0] === "M") && 0 < A && u.splice(A, 0, ["Z"]);
  15505. return this.areaPath = u;
  15506. }, d.prototype.drawGraph = function() {
  15507. this.options.fillColor = this.color, F.prototype.drawGraph.call(this);
  15508. }, d.defaultOptions = S(R.defaultOptions, { marker: { enabled: !1, states: { hover: { enabled: !1 } } }, stickyTracking: !1, tooltip: { followPointer: !0, pointFormat: "" }, trackByArea: !0 }), d;
  15509. }(R), U(I.prototype, { type: "polygon", drawLegendSymbol: y.drawRectangle, drawTracker: H.prototype.drawTracker, setStackedPoints: l }), j.registerSeriesType("polygon", I), I;
  15510. }), E(f, "Core/Axis/WaterfallAxis.js", [f["Extensions/Stacking.js"], f["Core/Utilities.js"]], function(l, y) {
  15511. var j = y.addEvent, I = y.objectEach, Z;
  15512. return function(H) {
  15513. function U() {
  15514. var v = this.waterfall.stacks;
  15515. v && (v.changed = !1, delete v.alreadyChanged);
  15516. }
  15517. function F() {
  15518. var v = this.options.stackLabels;
  15519. v && v.enabled && this.waterfall.stacks && this.waterfall.renderStackTotals();
  15520. }
  15521. function N() {
  15522. for (var v = this.axes, d = this.series, u = d.length; u--; )
  15523. d[u].options.stacking && (v.forEach(function(A) {
  15524. A.isXAxis || (A.waterfall.stacks.changed = !0);
  15525. }), u = 0);
  15526. }
  15527. function R() {
  15528. this.waterfall || (this.waterfall = new S(this));
  15529. }
  15530. var S = function() {
  15531. function v(d) {
  15532. this.axis = d, this.stacks = { changed: !1 };
  15533. }
  15534. return v.prototype.renderStackTotals = function() {
  15535. var d = this.axis, u = d.waterfall.stacks, A = d.stacking && d.stacking.stackTotalGroup, O = new l(d, d.options.stackLabels, !1, 0, void 0);
  15536. this.dummyStackItem = O, I(u, function(B) {
  15537. I(B, function(C) {
  15538. O.total = C.stackTotal, C.label && (O.label = C.label), l.prototype.render.call(O, A), C.label = O.label, delete O.label;
  15539. });
  15540. }), O.total = null;
  15541. }, v;
  15542. }();
  15543. H.Composition = S, H.compose = function(v, d) {
  15544. j(v, "init", R), j(v, "afterBuildStacks", U), j(v, "afterRender", F), j(d, "beforeRedraw", N);
  15545. };
  15546. }(Z || (Z = {})), Z;
  15547. }), E(f, "Series/Waterfall/WaterfallPoint.js", [f["Series/Column/ColumnSeries.js"], f["Core/Series/Point.js"], f["Core/Utilities.js"]], function(l, y, j) {
  15548. var I = this && this.__extends || function() {
  15549. var H = function(U, F) {
  15550. return H = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(N, R) {
  15551. N.__proto__ = R;
  15552. } || function(N, R) {
  15553. for (var S in R)
  15554. R.hasOwnProperty(S) && (N[S] = R[S]);
  15555. }, H(U, F);
  15556. };
  15557. return function(U, F) {
  15558. function N() {
  15559. this.constructor = U;
  15560. }
  15561. H(U, F), U.prototype = F === null ? Object.create(F) : (N.prototype = F.prototype, new N());
  15562. };
  15563. }(), Z = j.isNumber;
  15564. return function(H) {
  15565. function U() {
  15566. var F = H !== null && H.apply(this, arguments) || this;
  15567. return F.options = void 0, F.series = void 0, F;
  15568. }
  15569. return I(U, H), U.prototype.getClassName = function() {
  15570. var F = y.prototype.getClassName.call(this);
  15571. return this.isSum ? F += " highcharts-sum" : this.isIntermediateSum && (F += " highcharts-intermediate-sum"), F;
  15572. }, U.prototype.isValid = function() {
  15573. return Z(this.y) || this.isSum || !!this.isIntermediateSum;
  15574. }, U;
  15575. }(l.prototype.pointClass);
  15576. }), E(f, "Series/Waterfall/WaterfallSeries.js", [f["Core/Axis/Axis.js"], f["Core/Chart/Chart.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"], f["Core/Axis/WaterfallAxis.js"], f["Series/Waterfall/WaterfallPoint.js"]], function(l, y, j, I, Z, H) {
  15577. var U = this && this.__extends || function() {
  15578. var C = function(b, w) {
  15579. return C = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(x, a) {
  15580. x.__proto__ = a;
  15581. } || function(x, a) {
  15582. for (var c in a)
  15583. a.hasOwnProperty(c) && (x[c] = a[c]);
  15584. }, C(b, w);
  15585. };
  15586. return function(b, w) {
  15587. function x() {
  15588. this.constructor = b;
  15589. }
  15590. C(b, w), b.prototype = w === null ? Object.create(w) : (x.prototype = w.prototype, new x());
  15591. };
  15592. }(), F = j.seriesTypes, N = F.column, R = F.line, S = I.arrayMax, v = I.arrayMin, d = I.correctFloat;
  15593. F = I.extend;
  15594. var u = I.isNumber, A = I.merge, O = I.objectEach, B = I.pick;
  15595. return I = function(C) {
  15596. function b() {
  15597. var w = C !== null && C.apply(this, arguments) || this;
  15598. return w.chart = void 0, w.data = void 0, w.options = void 0, w.points = void 0, w.stackedYNeg = void 0, w.stackedYPos = void 0, w.stackKey = void 0, w.xData = void 0, w.yAxis = void 0, w.yData = void 0, w;
  15599. }
  15600. return U(b, C), b.prototype.generatePoints = function() {
  15601. var w;
  15602. N.prototype.generatePoints.apply(this);
  15603. var x = 0;
  15604. for (w = this.points.length; x < w; x++) {
  15605. var a = this.points[x], c = this.processedYData[x];
  15606. (a.isIntermediateSum || a.isSum) && (a.y = d(c));
  15607. }
  15608. }, b.prototype.translate = function() {
  15609. var w = this.options, x = this.yAxis, a = B(w.minPointLength, 5), c = a / 2, p = w.threshold || 0, i = p, h = p;
  15610. w = w.stacking;
  15611. var o = x.waterfall.stacks[this.stackKey];
  15612. N.prototype.translate.apply(this);
  15613. for (var t = this.points, s = 0; s < t.length; s++) {
  15614. var n = t[s], T = this.processedYData[s], _ = n.shapeArgs;
  15615. if (_ && u(T)) {
  15616. var D = [0, T], W = n.y;
  15617. if (w) {
  15618. if (o) {
  15619. if (D = o[s], w === "overlap") {
  15620. var P = D.stackState[D.stateIndex--];
  15621. P = 0 <= W ? P : P - W, Object.hasOwnProperty.call(D, "absolutePos") && delete D.absolutePos, Object.hasOwnProperty.call(D, "absoluteNeg") && delete D.absoluteNeg;
  15622. } else
  15623. 0 <= W ? (P = D.threshold + D.posTotal, D.posTotal -= W) : (P = D.threshold + D.negTotal, D.negTotal -= W, P -= W), !D.posTotal && Object.hasOwnProperty.call(D, "absolutePos") && (D.posTotal = D.absolutePos, delete D.absolutePos), !D.negTotal && Object.hasOwnProperty.call(D, "absoluteNeg") && (D.negTotal = D.absoluteNeg, delete D.absoluteNeg);
  15624. n.isSum || (D.connectorThreshold = D.threshold + D.stackTotal), x.reversed ? (T = 0 <= W ? P - W : P + W, W = P) : (T = P, W = P - W), n.below = T <= p, _.y = x.translate(T, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - (x.translate(W, !1, !0, !1, !0) || 0)), (W = x.waterfall.dummyStackItem) && (W.x = s, W.label = o[s].label, W.setOffset(this.pointXOffset || 0, this.barW || 0, this.stackedYNeg[s], this.stackedYPos[s]));
  15625. }
  15626. } else
  15627. P = Math.max(i, i + W) + D[0], _.y = x.translate(
  15628. P,
  15629. !1,
  15630. !0,
  15631. !1,
  15632. !0
  15633. ) || 0, n.isSum ? (_.y = x.translate(D[1], !1, !0, !1, !0) || 0, _.height = Math.min(x.translate(D[0], !1, !0, !1, !0) || 0, x.len) - _.y, n.below = D[1] <= p) : n.isIntermediateSum ? (0 <= W ? (T = D[1] + h, W = h) : (T = h, W = D[1] + h), x.reversed && (T ^= W, W ^= T, T ^= W), _.y = x.translate(T, !1, !0, !1, !0) || 0, _.height = Math.abs(_.y - Math.min(x.translate(W, !1, !0, !1, !0) || 0, x.len)), h += D[1], n.below = T <= p) : (_.height = 0 < T ? (x.translate(i, !1, !0, !1, !0) || 0) - _.y : (x.translate(i, !1, !0, !1, !0) || 0) - (x.translate(i - T, !1, !0, !1, !0) || 0), i += T, n.below = i < p), 0 > _.height && (_.y += _.height, _.height *= -1);
  15634. n.plotY = _.y = Math.round(_.y || 0) - this.borderWidth % 2 / 2, _.height = Math.max(Math.round(_.height || 0), 1e-3), n.yBottom = _.y + _.height, _.height <= a && !n.isNull ? (_.height = a, _.y -= c, n.plotY = _.y, n.minPointLengthOffset = 0 > n.y ? -c : c) : (n.isNull && (_.width = 0), n.minPointLengthOffset = 0), W = n.plotY + (n.negative ? _.height : 0), n.below && (n.plotY += _.height), n.tooltipPos && (this.chart.inverted ? n.tooltipPos[0] = x.len - W : n.tooltipPos[1] = W);
  15635. }
  15636. }
  15637. }, b.prototype.processData = function(w) {
  15638. var x = this.options, a = this.yData, c = x.data, p = a.length, i = x.threshold || 0, h, o, t, s, n;
  15639. for (n = o = h = t = s = 0; n < p; n++) {
  15640. var T = a[n], _ = c && c[n] ? c[n] : {};
  15641. T === "sum" || _.isSum ? a[n] = d(o) : T === "intermediateSum" || _.isIntermediateSum ? (a[n] = d(h), h = 0) : (o += T, h += T), t = Math.min(o, t), s = Math.max(o, s);
  15642. }
  15643. C.prototype.processData.call(this, w), x.stacking || (this.dataMin = t + i, this.dataMax = s);
  15644. }, b.prototype.toYData = function(w) {
  15645. return w.isSum ? "sum" : w.isIntermediateSum ? "intermediateSum" : w.y;
  15646. }, b.prototype.updateParallelArrays = function(w, x) {
  15647. C.prototype.updateParallelArrays.call(this, w, x), (this.yData[0] === "sum" || this.yData[0] === "intermediateSum") && (this.yData[0] = null);
  15648. }, b.prototype.pointAttribs = function(w, x) {
  15649. var a = this.options.upColor;
  15650. return a && !w.options.color && (w.color = 0 < w.y ? a : null), w = N.prototype.pointAttribs.call(this, w, x), delete w.dashstyle, w;
  15651. }, b.prototype.getGraphPath = function() {
  15652. return [["M", 0, 0]];
  15653. }, b.prototype.getCrispPath = function() {
  15654. var w = this.data, x = this.yAxis, a = w.length, c = Math.round(this.graph.strokeWidth()) % 2 / 2, p = Math.round(this.borderWidth) % 2 / 2, i = this.xAxis.reversed, h = this.yAxis.reversed, o = this.options.stacking, t = [], s;
  15655. for (s = 1; s < a; s++) {
  15656. var n = w[s].shapeArgs, T = w[s - 1], _ = w[s - 1].shapeArgs, D = x.waterfall.stacks[this.stackKey], W = 0 < T.y ? -_.height : 0;
  15657. D && _ && n && (D = D[s - 1], o ? (D = D.connectorThreshold, W = Math.round(x.translate(D, 0, 1, 0, 1) + (h ? W : 0)) - c) : W = _.y + T.minPointLengthOffset + p - c, t.push(["M", (_.x || 0) + (i ? 0 : _.width || 0), W], ["L", (n.x || 0) + (i && n.width || 0), W])), _ && t.length && (!o && 0 > T.y && !h || 0 < T.y && h) && ((T = t[t.length - 2]) && typeof T[2] == "number" && (T[2] += _.height || 0), (T = t[t.length - 1]) && typeof T[2] == "number" && (T[2] += _.height || 0));
  15658. }
  15659. return t;
  15660. }, b.prototype.drawGraph = function() {
  15661. R.prototype.drawGraph.call(this), this.graph.attr({ d: this.getCrispPath() });
  15662. }, b.prototype.setStackedPoints = function() {
  15663. function w(V, Q, k, G) {
  15664. if (Y)
  15665. for (k; k < Y; k++)
  15666. X.stackState[k] += G;
  15667. else
  15668. X.stackState[0] = V, Y = X.stackState.length;
  15669. X.stackState.push(X.stackState[Y - 1] + Q);
  15670. }
  15671. var x = this.options, a = this.yAxis.waterfall.stacks, c = x.threshold, p = c || 0, i = p, h = this.stackKey, o = this.xData, t = o.length, s, n, T;
  15672. this.yAxis.stacking.usePercentage = !1;
  15673. var _ = n = T = p;
  15674. if (this.visible || !this.chart.options.chart.ignoreHiddenSeries) {
  15675. var D = a.changed;
  15676. (s = a.alreadyChanged) && 0 > s.indexOf(h) && (D = !0), a[h] || (a[h] = {}), s = a[h];
  15677. for (var W = 0; W < t; W++) {
  15678. var P = o[W];
  15679. (!s[P] || D) && (s[P] = { negTotal: 0, posTotal: 0, stackTotal: 0, threshold: 0, stateIndex: 0, stackState: [], label: D && s[P] ? s[P].label : void 0 });
  15680. var X = s[P], g = this.yData[W];
  15681. 0 <= g ? X.posTotal += g : X.negTotal += g;
  15682. var m = x.data[W];
  15683. P = X.absolutePos = X.posTotal;
  15684. var L = X.absoluteNeg = X.negTotal;
  15685. X.stackTotal = P + L;
  15686. var Y = X.stackState.length;
  15687. m && m.isIntermediateSum ? (w(T, n, 0, T), T = n, n = c, p ^= i, i ^= p, p ^= i) : m && m.isSum ? (w(c, _, Y), p = c) : (w(p, g, 0, _), m && (_ += g, n += g)), X.stateIndex++, X.threshold = p, p += X.stackTotal;
  15688. }
  15689. a.changed = !1, a.alreadyChanged || (a.alreadyChanged = []), a.alreadyChanged.push(h);
  15690. }
  15691. }, b.prototype.getExtremes = function() {
  15692. var w = this.options.stacking;
  15693. if (w) {
  15694. var x = this.yAxis;
  15695. x = x.waterfall.stacks;
  15696. var a = this.stackedYNeg = [], c = this.stackedYPos = [];
  15697. return w === "overlap" ? O(x[this.stackKey], function(p) {
  15698. a.push(v(p.stackState)), c.push(S(p.stackState));
  15699. }) : O(x[this.stackKey], function(p) {
  15700. a.push(p.negTotal + p.threshold), c.push(p.posTotal + p.threshold);
  15701. }), { dataMin: v(a), dataMax: S(c) };
  15702. }
  15703. return { dataMin: this.dataMin, dataMax: this.dataMax };
  15704. }, b.defaultOptions = A(N.defaultOptions, { dataLabels: { inside: !0 }, lineWidth: 1, lineColor: "#333333", dashStyle: "Dot", borderColor: "#333333", states: { hover: { lineWidthPlus: 0 } } }), b;
  15705. }(N), F(I.prototype, { getZonesGraphs: R.prototype.getZonesGraphs, pointValKey: "y", showLine: !0, pointClass: H }), j.registerSeriesType("waterfall", I), Z.compose(l, y), I;
  15706. }), E(f, "Extensions/Polar.js", [
  15707. f["Core/Animation/AnimationUtilities.js"],
  15708. f["Core/Chart/Chart.js"],
  15709. f["Core/Globals.js"],
  15710. f["Extensions/Pane.js"],
  15711. f["Core/Pointer.js"],
  15712. f["Core/Series/Series.js"],
  15713. f["Core/Series/SeriesRegistry.js"],
  15714. f["Core/Renderer/SVG/SVGRenderer.js"],
  15715. f["Core/Utilities.js"]
  15716. ], function(l, y, j, I, Z, H, U, F, N) {
  15717. var R = l.animObject;
  15718. U = U.seriesTypes;
  15719. var S = N.addEvent, v = N.defined, d = N.find, u = N.isNumber, A = N.pick, O = N.splat, B = N.uniqueKey;
  15720. l = N.wrap;
  15721. var C = H.prototype;
  15722. Z = Z.prototype, C.searchPointByAngle = function(x) {
  15723. var a = this.chart, c = this.xAxis.pane.center;
  15724. return this.searchKDTree({ clientX: 180 + -180 / Math.PI * Math.atan2(x.chartX - c[0] - a.plotLeft, x.chartY - c[1] - a.plotTop) });
  15725. }, C.getConnectors = function(x, a, c, p) {
  15726. var i = p ? 1 : 0, h = 0 <= a && a <= x.length - 1 ? a : 0 > a ? x.length - 1 + a : 0;
  15727. a = 0 > h - 1 ? x.length - (1 + i) : h - 1, i = h + 1 > x.length - 1 ? i : h + 1;
  15728. var o = x[a];
  15729. i = x[i];
  15730. var t = o.plotX;
  15731. o = o.plotY;
  15732. var s = i.plotX, n = i.plotY;
  15733. i = x[h].plotX, h = x[h].plotY, t = (1.5 * i + t) / 2.5, o = (1.5 * h + o) / 2.5, s = (1.5 * i + s) / 2.5;
  15734. var T = (1.5 * h + n) / 2.5;
  15735. n = Math.sqrt(Math.pow(t - i, 2) + Math.pow(o - h, 2));
  15736. var _ = Math.sqrt(Math.pow(s - i, 2) + Math.pow(T - h, 2));
  15737. return t = Math.atan2(o - h, t - i), T = Math.PI / 2 + (t + Math.atan2(T - h, s - i)) / 2, Math.abs(t - T) > Math.PI / 2 && (T -= Math.PI), t = i + Math.cos(T) * n, o = h + Math.sin(T) * n, s = i + Math.cos(Math.PI + T) * _, T = h + Math.sin(Math.PI + T) * _, i = { rightContX: s, rightContY: T, leftContX: t, leftContY: o, plotX: i, plotY: h }, c && (i.prevPointCont = this.getConnectors(x, a, !1, p)), i;
  15738. }, C.toXY = function(x) {
  15739. var a = this.chart, c = this.xAxis, p = this.yAxis, i = x.plotX, h = x.plotY, o = x.series, t = a.inverted, s = x.y, n = t ? i : p.len - h;
  15740. t && o && !o.isRadialBar && (x.plotY = h = typeof s == "number" && p.translate(s) || 0), x.rectPlotX = i, x.rectPlotY = h, p.center && (n += p.center[3] / 2), u(h) && (p = t ? p.postTranslate(h, n) : c.postTranslate(i, n), x.plotX = x.polarPlotX = p.x - a.plotLeft, x.plotY = x.polarPlotY = p.y - a.plotTop), this.kdByAngle ? (a = (i / Math.PI * 180 + c.pane.options.startAngle) % 360, 0 > a && (a += 360), x.clientX = a) : x.clientX = x.plotX;
  15741. }, U.spline && (l(U.spline.prototype, "getPointSpline", function(x, a, c, p) {
  15742. return this.chart.polar ? p ? (x = this.getConnectors(a, p, !0, this.connectEnds), a = x.prevPointCont && x.prevPointCont.rightContX, c = x.prevPointCont && x.prevPointCont.rightContY, x = ["C", u(a) ? a : x.plotX, u(c) ? c : x.plotY, u(x.leftContX) ? x.leftContX : x.plotX, u(x.leftContY) ? x.leftContY : x.plotY, x.plotX, x.plotY]) : x = ["M", c.plotX, c.plotY] : x = x.call(this, a, c, p), x;
  15743. }), U.areasplinerange && (U.areasplinerange.prototype.getPointSpline = U.spline.prototype.getPointSpline)), S(H, "afterTranslate", function() {
  15744. var x = this.chart;
  15745. if (x.polar && this.xAxis) {
  15746. if ((this.kdByAngle = x.tooltip && x.tooltip.shared) ? this.searchPoint = this.searchPointByAngle : this.options.findNearestPointBy = "xy", !this.preventPostTranslate)
  15747. for (var a = this.points, c = a.length; c--; )
  15748. this.toXY(a[c]), !x.hasParallelCoordinates && !this.yAxis.reversed && a[c].y < this.yAxis.min && (a[c].isNull = !0);
  15749. this.hasClipCircleSetter || (this.hasClipCircleSetter = !!this.eventsToUnbind.push(S(this, "afterRender", function() {
  15750. if (x.polar) {
  15751. var p = this.yAxis.pane.center;
  15752. this.clipCircle ? this.clipCircle.animate({ x: p[0], y: p[1], r: p[2] / 2, innerR: p[3] / 2 }) : this.clipCircle = x.renderer.clipCircle(p[0], p[1], p[2] / 2, p[3] / 2), this.group.clip(this.clipCircle), this.setClip = j.noop;
  15753. }
  15754. })));
  15755. }
  15756. }, { order: 2 }), l(
  15757. U.line.prototype,
  15758. "getGraphPath",
  15759. function(x, a) {
  15760. var c = this, p;
  15761. if (this.chart.polar) {
  15762. for (a = a || this.points, p = 0; p < a.length; p++)
  15763. if (!a[p].isNull) {
  15764. var i = p;
  15765. break;
  15766. }
  15767. if (this.options.connectEnds !== !1 && typeof i < "u") {
  15768. this.connectEnds = !0, a.splice(a.length, 0, a[i]);
  15769. var h = !0;
  15770. }
  15771. a.forEach(function(o) {
  15772. typeof o.polarPlotY > "u" && c.toXY(o);
  15773. });
  15774. }
  15775. return p = x.apply(this, [].slice.call(arguments, 1)), h && a.pop(), p;
  15776. }
  15777. );
  15778. var b = function(x, a) {
  15779. var c = this, p = this.chart, i = this.options.animation, h = this.group, o = this.markerGroup, t = this.xAxis && this.xAxis.center, s = p.plotLeft, n = p.plotTop, T, _, D, W;
  15780. if (p.polar) {
  15781. if (c.isRadialBar)
  15782. a || (c.startAngleRad = A(c.translatedThreshold, c.xAxis.startAngleRad), j.seriesTypes.pie.prototype.animate.call(c, a));
  15783. else if (p.renderer.isSVG)
  15784. if (i = R(i), c.is("column")) {
  15785. if (!a) {
  15786. var P = t[3] / 2;
  15787. c.points.forEach(function(X) {
  15788. T = X.graphic, D = (_ = X.shapeArgs) && _.r, W = _ && _.innerR, T && _ && (T.attr({ r: P, innerR: P }), T.animate({ r: D, innerR: W }, c.options.animation));
  15789. });
  15790. }
  15791. } else
  15792. a ? (x = { translateX: t[0] + s, translateY: t[1] + n, scaleX: 1e-3, scaleY: 1e-3 }, h.attr(x), o && o.attr(x)) : (x = { translateX: s, translateY: n, scaleX: 1, scaleY: 1 }, h.animate(x, i), o && o.animate(x, i));
  15793. } else
  15794. x.call(this, a);
  15795. };
  15796. if (l(C, "animate", b), U.column) {
  15797. var w = U.arearange.prototype;
  15798. U = U.column.prototype, U.polarArc = function(x, a, c, p) {
  15799. var i = this.xAxis.center, h = this.yAxis.len, o = i[3] / 2;
  15800. return a = h - a + o, x = h - A(x, h) + o, this.yAxis.reversed && (0 > a && (a = o), 0 > x && (x = o)), { x: i[0], y: i[1], r: a, innerR: x, start: c, end: p };
  15801. }, l(U, "animate", b), l(U, "translate", function(x) {
  15802. var a = this.options, c = a.stacking, p = this.chart, i = this.xAxis, h = this.yAxis, o = h.reversed, t = h.center, s = i.startAngleRad, n = i.endAngleRad - s;
  15803. if (this.preventPostTranslate = !0, x.call(this), i.isRadial) {
  15804. x = this.points, i = x.length;
  15805. var T = h.translate(h.min), _ = h.translate(h.max);
  15806. if (a = a.threshold || 0, p.inverted && u(a)) {
  15807. var D = h.translate(a);
  15808. v(D) && (0 > D ? D = 0 : D > n && (D = n), this.translatedThreshold = D + s);
  15809. }
  15810. for (; i--; ) {
  15811. a = x[i];
  15812. var W = a.barX, P = a.x, X = a.y;
  15813. if (a.shapeType = "arc", p.inverted) {
  15814. if (a.plotY = h.translate(X), c && h.stacking) {
  15815. if (X = h.stacking.stacks[(0 > X ? "-" : "") + this.stackKey], this.visible && X && X[P] && !a.isNull) {
  15816. var g = X[P].points[this.getStackIndicator(void 0, P, this.index).key], m = h.translate(g[0]);
  15817. g = h.translate(g[1]), v(m) && (m = N.clamp(m, 0, n));
  15818. }
  15819. } else
  15820. m = D, g = a.plotY;
  15821. m > g && (g = [m, m = g][0]), o ? g > T ? g = T : m < _ ? m = _ : (m > T || g < _) && (m = g = n) : m < T ? m = T : g > _ ? g = _ : (g < T || m > _) && (m = g = 0), h.min > h.max && (m = g = o ? n : 0), m += s, g += s, t && (a.barX = W += t[3] / 2), P = Math.max(W, 0), X = Math.max(W + a.pointWidth, 0), a.shapeArgs = { x: t && t[0], y: t && t[1], r: X, innerR: P, start: m, end: g }, a.opacity = m === g ? 0 : void 0, a.plotY = (v(this.translatedThreshold) && (m < this.translatedThreshold ? m : g)) - s;
  15822. } else
  15823. m = W + s, a.shapeArgs = this.polarArc(a.yBottom, a.plotY, m, m + a.pointWidth);
  15824. this.toXY(a), p.inverted ? (W = h.postTranslate(a.rectPlotY, W + a.pointWidth / 2), a.tooltipPos = [W.x - p.plotLeft, W.y - p.plotTop]) : a.tooltipPos = [a.plotX, a.plotY], t && (a.ttBelow = a.plotY > t[1]);
  15825. }
  15826. }
  15827. }), U.findAlignments = function(x, a) {
  15828. return a.align === null && (a.align = 20 < x && 160 > x ? "left" : 200 < x && 340 > x ? "right" : "center"), a.verticalAlign === null && (a.verticalAlign = 45 > x || 315 < x ? "bottom" : 135 < x && 225 > x ? "top" : "middle"), a;
  15829. }, w && (w.findAlignments = U.findAlignments), l(U, "alignDataLabel", function(x, a, c, p, i, h) {
  15830. var o = this.chart, t = A(p.inside, !!this.options.stacking);
  15831. o.polar ? (x = a.rectPlotX / Math.PI * 180, o.inverted ? (this.forceDL = o.isInsidePlot(a.plotX, Math.round(a.plotY)), t && a.shapeArgs ? (i = a.shapeArgs, i = this.yAxis.postTranslate(((i.start || 0) + (i.end || 0)) / 2 - this.xAxis.startAngleRad, a.barX + a.pointWidth / 2), i = { x: i.x - o.plotLeft, y: i.y - o.plotTop }) : a.tooltipPos && (i = { x: a.tooltipPos[0], y: a.tooltipPos[1] }), p.align = A(p.align, "center"), p.verticalAlign = A(
  15832. p.verticalAlign,
  15833. "middle"
  15834. )) : this.findAlignments && (p = this.findAlignments(x, p)), C.alignDataLabel.call(this, a, c, p, i, h), this.isRadialBar && a.shapeArgs && a.shapeArgs.start === a.shapeArgs.end && c.hide(!0)) : x.call(this, a, c, p, i, h);
  15835. });
  15836. }
  15837. l(Z, "getCoordinates", function(x, a) {
  15838. var c = this.chart, p = { xAxis: [], yAxis: [] };
  15839. return c.polar ? c.axes.forEach(function(i) {
  15840. var h = i.isXAxis, o = i.center;
  15841. if (i.coll !== "colorAxis") {
  15842. var t = a.chartX - o[0] - c.plotLeft;
  15843. o = a.chartY - o[1] - c.plotTop, p[h ? "xAxis" : "yAxis"].push({ axis: i, value: i.translate(h ? Math.PI - Math.atan2(t, o) : Math.sqrt(Math.pow(
  15844. t,
  15845. 2
  15846. ) + Math.pow(o, 2)), !0) });
  15847. }
  15848. }) : p = x.call(this, a), p;
  15849. }), F.prototype.clipCircle = function(x, a, c, p) {
  15850. var i = B(), h = this.createElement("clipPath").attr({ id: i }).add(this.defs);
  15851. return x = p ? this.arc(x, a, c, p, 0, 2 * Math.PI).add(h) : this.circle(x, a, c).add(h), x.id = i, x.clipPath = h, x;
  15852. }, S(y, "getAxes", function() {
  15853. this.pane || (this.pane = []), this.options.pane = O(this.options.pane), this.options.pane.forEach(function(x) {
  15854. new I(x, this);
  15855. }, this);
  15856. }), S(y, "afterDrawChartBox", function() {
  15857. this.pane.forEach(function(x) {
  15858. x.render();
  15859. });
  15860. }), S(
  15861. H,
  15862. "afterInit",
  15863. function() {
  15864. var x = this.chart;
  15865. x.inverted && x.polar && (this.isRadialSeries = !0, this.is("column") && (this.isRadialBar = !0));
  15866. }
  15867. ), l(y.prototype, "get", function(x, a) {
  15868. return d(this.pane || [], function(c) {
  15869. return c.options.id === a;
  15870. }) || x.call(this, a);
  15871. });
  15872. }), E(f, "masters/highcharts-more.src.js", [f["Core/Globals.js"], f["Core/Axis/RadialAxis.js"], f["Series/Bubble/BubbleSeries.js"]], function(l, y, j) {
  15873. y.compose(l.Axis, l.Tick), j.compose(l.Chart, l.Legend, l.Series);
  15874. });
  15875. });
  15876. })(L0);
  15877. const _0 = fl;
  15878. var gl = {}, D0 = {
  15879. get exports() {
  15880. return gl;
  15881. },
  15882. set exports(r) {
  15883. gl = r;
  15884. }
  15885. };
  15886. (function(r) {
  15887. (function(f) {
  15888. r.exports ? (f.default = f, r.exports = f) : f(typeof Highcharts < "u" ? Highcharts : void 0);
  15889. })(function(f) {
  15890. function E(l, y, j, I) {
  15891. l.hasOwnProperty(y) || (l[y] = I.apply(null, j));
  15892. }
  15893. f = f ? f._modules : {}, E(
  15894. f,
  15895. "Extensions/FullScreen.js",
  15896. [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Renderer/HTML/AST.js"], f["Core/Utilities.js"]],
  15897. function(l, y, j, I) {
  15898. var Z = I.addEvent;
  15899. return I = function() {
  15900. function H(U) {
  15901. this.chart = U, this.isOpen = !1, U = U.renderTo, this.browserProps || (typeof U.requestFullscreen == "function" ? this.browserProps = { fullscreenChange: "fullscreenchange", requestFullscreen: "requestFullscreen", exitFullscreen: "exitFullscreen" } : U.mozRequestFullScreen ? this.browserProps = { fullscreenChange: "mozfullscreenchange", requestFullscreen: "mozRequestFullScreen", exitFullscreen: "mozCancelFullScreen" } : U.webkitRequestFullScreen ? this.browserProps = {
  15902. fullscreenChange: "webkitfullscreenchange",
  15903. requestFullscreen: "webkitRequestFullScreen",
  15904. exitFullscreen: "webkitExitFullscreen"
  15905. } : U.msRequestFullscreen && (this.browserProps = { fullscreenChange: "MSFullscreenChange", requestFullscreen: "msRequestFullscreen", exitFullscreen: "msExitFullscreen" }));
  15906. }
  15907. return H.prototype.close = function() {
  15908. var U = this.chart, F = U.options.chart;
  15909. this.isOpen && this.browserProps && U.container.ownerDocument instanceof Document && U.container.ownerDocument[this.browserProps.exitFullscreen](), this.unbindFullscreenEvent && (this.unbindFullscreenEvent = this.unbindFullscreenEvent()), U.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();
  15910. }, H.prototype.open = function() {
  15911. var U = this, F = U.chart, N = F.options.chart;
  15912. if (N && (U.origWidthOption = N.width, U.origHeightOption = N.height), U.origWidth = F.chartWidth, U.origHeight = F.chartHeight, U.browserProps) {
  15913. var R = Z(
  15914. F.container.ownerDocument,
  15915. U.browserProps.fullscreenChange,
  15916. function() {
  15917. U.isOpen ? (U.isOpen = !1, U.close()) : (F.setSize(null, null, !1), U.isOpen = !0, U.setButtonText());
  15918. }
  15919. ), S = Z(F, "destroy", R);
  15920. U.unbindFullscreenEvent = function() {
  15921. R(), S();
  15922. }, (N = F.renderTo[U.browserProps.requestFullscreen]()) && N.catch(function() {
  15923. alert("Full screen is not supported inside a frame.");
  15924. });
  15925. }
  15926. }, H.prototype.setButtonText = function() {
  15927. var U = this.chart, F = U.exportDivElements, N = U.options.exporting, R = N && N.buttons && N.buttons.contextButton.menuItems;
  15928. U = U.options.lang, N && N.menuItemDefinitions && U && U.exitFullscreen && U.viewFullscreen && R && F && (F = F[R.indexOf("viewFullscreen")]) && j.setElementHTML(F, this.isOpen ? U.exitFullscreen : N.menuItemDefinitions.viewFullscreen.text || U.viewFullscreen);
  15929. }, H.prototype.toggle = function() {
  15930. this.isOpen ? this.close() : this.open();
  15931. }, H;
  15932. }(), y.Fullscreen = I, Z(l, "beforeRender", function() {
  15933. this.fullscreen = new y.Fullscreen(this);
  15934. }), y.Fullscreen;
  15935. }
  15936. ), E(f, "Core/Chart/ChartNavigationComposition.js", [], function() {
  15937. var l;
  15938. return function(y) {
  15939. y.compose = function(I) {
  15940. return I.navigation || (I.navigation = new j(I)), I;
  15941. };
  15942. var j = function() {
  15943. function I(Z) {
  15944. this.updates = [], this.chart = Z;
  15945. }
  15946. return I.prototype.addUpdate = function(Z) {
  15947. this.chart.navigation.updates.push(Z);
  15948. }, I.prototype.update = function(Z, H) {
  15949. var U = this;
  15950. this.updates.forEach(function(F) {
  15951. F.call(U.chart, Z, H);
  15952. });
  15953. }, I;
  15954. }();
  15955. y.Additions = j;
  15956. }(l || (l = {})), l;
  15957. }), E(f, "Extensions/Exporting/ExportingDefaults.js", [f["Core/Globals.js"]], function(l) {
  15958. return { exporting: { type: "image/png", url: "https://export.highcharts.com/", printMaxWidth: 780, scale: 2, buttons: { contextButton: {
  15959. className: "highcharts-contextbutton",
  15960. menuClassName: "highcharts-contextmenu",
  15961. symbol: "menu",
  15962. titleKey: "contextButtonTitle",
  15963. menuItems: "viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")
  15964. } }, menuItemDefinitions: { viewFullscreen: { textKey: "viewFullscreen", onclick: function() {
  15965. this.fullscreen.toggle();
  15966. } }, printChart: { textKey: "printChart", onclick: function() {
  15967. this.print();
  15968. } }, separator: { separator: !0 }, downloadPNG: { textKey: "downloadPNG", onclick: function() {
  15969. this.exportChart();
  15970. } }, downloadJPEG: {
  15971. textKey: "downloadJPEG",
  15972. onclick: function() {
  15973. this.exportChart({ type: "image/jpeg" });
  15974. }
  15975. }, downloadPDF: { textKey: "downloadPDF", onclick: function() {
  15976. this.exportChart({ type: "application/pdf" });
  15977. } }, downloadSVG: { textKey: "downloadSVG", onclick: function() {
  15978. this.exportChart({ type: "image/svg+xml" });
  15979. } } } }, lang: {
  15980. viewFullscreen: "View in full screen",
  15981. exitFullscreen: "Exit from full screen",
  15982. printChart: "Print chart",
  15983. downloadPNG: "Download PNG image",
  15984. downloadJPEG: "Download JPEG image",
  15985. downloadPDF: "Download PDF document",
  15986. downloadSVG: "Download SVG vector image",
  15987. contextButtonTitle: "Chart context menu"
  15988. }, 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: l.isTouchDevice ? "14px" : "11px", transition: "background 250ms, color 250ms" }, menuItemHoverStyle: {
  15989. background: "#335cad",
  15990. color: "#ffffff"
  15991. } } };
  15992. }), E(f, "Extensions/Exporting/ExportingSymbols.js", [], function() {
  15993. var l;
  15994. return function(y) {
  15995. function j(H, U, F, N) {
  15996. return [["M", H, U + 2.5], ["L", H + F, U + 2.5], ["M", H, U + N / 2 + 0.5], ["L", H + F, U + N / 2 + 0.5], ["M", H, U + N - 1.5], ["L", H + F, U + N - 1.5]];
  15997. }
  15998. function I(H, U, F, N) {
  15999. return H = N / 3 - 2, N = [], N = N.concat(this.circle(F - H, U, H, H), this.circle(F - H, U + H + 4, H, H), this.circle(F - H, U + 2 * (H + 4), H, H));
  16000. }
  16001. var Z = [];
  16002. y.compose = function(H) {
  16003. Z.indexOf(H) === -1 && (Z.push(H), H = H.prototype.symbols, H.menu = j, H.menuball = I.bind(H));
  16004. };
  16005. }(l || (l = {})), l;
  16006. }), E(f, "Core/HttpUtilities.js", [f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y) {
  16007. var j = l.doc, I = y.createElement, Z = y.discardElement, H = y.merge, U = y.objectEach, F = { ajax: function(N) {
  16008. var R = H(!0, { url: !1, type: "get", dataType: "json", success: !1, error: !1, data: !1, headers: {} }, N);
  16009. N = { json: "application/json", xml: "application/xml", text: "text/plain", octet: "application/octet-stream" };
  16010. var S = new XMLHttpRequest();
  16011. if (!R.url)
  16012. return !1;
  16013. S.open(R.type.toUpperCase(), R.url, !0), R.headers["Content-Type"] || S.setRequestHeader(
  16014. "Content-Type",
  16015. N[R.dataType] || N.text
  16016. ), U(R.headers, function(v, d) {
  16017. S.setRequestHeader(d, v);
  16018. }), S.onreadystatechange = function() {
  16019. if (S.readyState === 4) {
  16020. if (S.status === 200) {
  16021. var v = S.responseText;
  16022. if (R.dataType === "json")
  16023. try {
  16024. v = JSON.parse(v);
  16025. } catch (d) {
  16026. R.error && R.error(S, d);
  16027. return;
  16028. }
  16029. return R.success && R.success(v);
  16030. }
  16031. R.error && R.error(S, S.responseText);
  16032. }
  16033. };
  16034. try {
  16035. R.data = JSON.stringify(R.data);
  16036. } catch {
  16037. }
  16038. S.send(R.data || !0);
  16039. }, getJSON: function(N, R) {
  16040. F.ajax({ url: N, success: R, dataType: "json", headers: { "Content-Type": "text/plain" } });
  16041. }, post: function(N, R, S) {
  16042. var v = I("form", H({ method: "post", action: N, enctype: "multipart/form-data" }, S), { display: "none" }, j.body);
  16043. U(R, function(d, u) {
  16044. I("input", { type: "hidden", name: u, value: d }, null, v);
  16045. }), v.submit(), Z(v);
  16046. } };
  16047. return F;
  16048. }), E(f, "Extensions/Exporting/Exporting.js", [
  16049. f["Core/Renderer/HTML/AST.js"],
  16050. f["Core/Chart/Chart.js"],
  16051. f["Core/Chart/ChartNavigationComposition.js"],
  16052. f["Core/DefaultOptions.js"],
  16053. f["Extensions/Exporting/ExportingDefaults.js"],
  16054. f["Extensions/Exporting/ExportingSymbols.js"],
  16055. f["Core/Globals.js"],
  16056. f["Core/HttpUtilities.js"],
  16057. f["Core/Utilities.js"]
  16058. ], function(l, y, j, I, Z, H, U, F, N) {
  16059. y = I.defaultOptions;
  16060. var R = U.doc, S = U.win, v = N.addEvent, d = N.css, u = N.createElement, A = N.discardElement, O = N.extend, B = N.find, C = N.fireEvent, b = N.isObject, w = N.merge, x = N.objectEach, a = N.pick, c = N.removeEvent, p = N.uniqueKey, i;
  16061. return function(h) {
  16062. function o(nt) {
  16063. var rt = this, ct = rt.renderer, gt = w(rt.options.navigation.buttonOptions, nt), dt = gt.onclick, ht = gt.menuItems, at = gt.symbolSize || 12;
  16064. if (rt.btnCount || (rt.btnCount = 0), rt.exportDivElements || (rt.exportDivElements = [], rt.exportSVGElements = []), gt.enabled !== !1 && gt.theme) {
  16065. var J = gt.theme, tt = J.states, ot = tt && tt.hover;
  16066. tt = tt && tt.select;
  16067. var lt;
  16068. rt.styledMode || (J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none")), delete J.states, dt ? lt = function(vt) {
  16069. vt && vt.stopPropagation(), dt.call(rt, vt);
  16070. } : ht && (lt = function(vt) {
  16071. vt && vt.stopPropagation(), rt.contextMenu(pt.menuClassName, ht, pt.translateX, pt.translateY, pt.width, pt.height, pt), pt.setState(2);
  16072. }), gt.text && gt.symbol ? J.paddingLeft = a(J.paddingLeft, 30) : gt.text || O(J, { width: gt.width, height: gt.height, padding: 0 }), rt.styledMode || (J["stroke-linecap"] = "round", J.fill = a(J.fill, "#ffffff"), J.stroke = a(J.stroke, "none"));
  16073. var pt = ct.button(gt.text, 0, 0, lt, J, ot, tt).addClass(nt.className).attr({ title: a(rt.options.lang[gt._titleKey || gt.titleKey], "") });
  16074. if (pt.menuClassName = nt.menuClassName || "highcharts-menu-" + rt.btnCount++, gt.symbol) {
  16075. 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);
  16076. rt.styledMode || yt.attr({ stroke: gt.symbolStroke, fill: gt.symbolFill, "stroke-width": gt.symbolStrokeWidth || 1 });
  16077. }
  16078. pt.add(rt.exportingGroup).align(O(
  16079. gt,
  16080. { width: pt.width, x: a(gt.x, rt.buttonOffset) }
  16081. ), !0, "spacingBox"), rt.buttonOffset += (pt.width + gt.buttonSpacing) * (gt.align === "right" ? -1 : 1), rt.exportSVGElements.push(pt, yt);
  16082. }
  16083. }
  16084. function t() {
  16085. if (this.printReverseInfo) {
  16086. var nt = this.printReverseInfo, rt = nt.childNodes, ct = nt.origDisplay;
  16087. nt = nt.resetParams, this.moveContainers(this.renderTo), [].forEach.call(rt, function(gt, dt) {
  16088. gt.nodeType === 1 && (gt.style.display = ct[dt] || "");
  16089. }), this.isPrinting = !1, nt && this.setSize.apply(this, nt), delete this.printReverseInfo, et = void 0, C(this, "afterPrint");
  16090. }
  16091. }
  16092. function s() {
  16093. var nt = R.body, rt = this.options.exporting.printMaxWidth, ct = { childNodes: nt.childNodes, origDisplay: [], resetParams: void 0 };
  16094. this.isPrinting = !0, this.pointer.reset(null, 0), C(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) {
  16095. gt.nodeType === 1 && (ct.origDisplay[dt] = gt.style.display, gt.style.display = "none");
  16096. }), this.moveContainers(nt), this.printReverseInfo = ct;
  16097. }
  16098. function n(nt) {
  16099. nt.renderExporting(), v(nt, "redraw", nt.renderExporting), v(nt, "destroy", nt.destroyExport);
  16100. }
  16101. function T(nt, rt, ct, gt, dt, ht, at) {
  16102. var J = this, tt = J.options.navigation, ot = J.chartWidth, lt = J.chartHeight, pt = "cache-" + nt, yt = Math.max(dt, ht), vt = J[pt];
  16103. if (!vt) {
  16104. J.exportContextMenu = J[pt] = vt = u("div", { className: nt }, { position: "absolute", zIndex: 1e3, padding: yt + "px", pointerEvents: "auto" }, J.fixedDiv || J.container);
  16105. var Ct = u("ul", { className: "highcharts-menu" }, { listStyle: "none", margin: 0, padding: 0 }, vt);
  16106. J.styledMode || d(Ct, O(
  16107. { MozBoxShadow: "3px 3px 10px #888", WebkitBoxShadow: "3px 3px 10px #888", boxShadow: "3px 3px 10px #888" },
  16108. tt.menuStyle
  16109. )), vt.hideMenu = function() {
  16110. d(vt, { display: "none" }), at && at.setState(0), J.openMenu = !1, d(J.renderTo, { overflow: "hidden" }), d(J.container, { overflow: "hidden" }), N.clearTimeout(vt.hideTimer), C(J, "exportMenuHidden");
  16111. }, J.exportEvents.push(v(vt, "mouseleave", function() {
  16112. vt.hideTimer = S.setTimeout(vt.hideMenu, 500);
  16113. }), v(vt, "mouseenter", function() {
  16114. N.clearTimeout(vt.hideTimer);
  16115. }), v(R, "mouseup", function(Pt) {
  16116. J.pointer.inClass(Pt.target, nt) || vt.hideMenu();
  16117. }), v(vt, "click", function() {
  16118. J.openMenu && vt.hideMenu();
  16119. })), rt.forEach(function(Pt) {
  16120. if (typeof Pt == "string" && (Pt = J.options.exporting.menuItemDefinitions[Pt]), b(Pt, !0)) {
  16121. var At = void 0;
  16122. Pt.separator ? At = u("hr", void 0, void 0, Ct) : (Pt.textKey === "viewData" && J.isDataTableVisible && (Pt.textKey = "hideData"), At = u("li", { className: "highcharts-menu-item", onclick: function(St) {
  16123. St && St.stopPropagation(), vt.hideMenu(), Pt.onclick && Pt.onclick.apply(J, arguments);
  16124. } }, void 0, Ct), l.setElementHTML(At, Pt.text || J.options.lang[Pt.textKey]), J.styledMode || (At.onmouseover = function() {
  16125. d(this, tt.menuItemHoverStyle);
  16126. }, At.onmouseout = function() {
  16127. d(this, tt.menuItemStyle);
  16128. }, d(At, O({ cursor: "pointer" }, tt.menuItemStyle)))), J.exportDivElements.push(At);
  16129. }
  16130. }), J.exportDivElements.push(Ct, vt), J.exportMenuWidth = vt.offsetWidth, J.exportMenuHeight = vt.offsetHeight;
  16131. }
  16132. 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", d(vt, rt), d(J.renderTo, { overflow: "" }), d(J.container, { overflow: "" }), J.openMenu = !0, C(J, "exportMenuShown");
  16133. }
  16134. function _(nt) {
  16135. var rt = nt ? nt.target : this, ct = rt.exportSVGElements, gt = rt.exportDivElements;
  16136. nt = rt.exportEvents;
  16137. var dt;
  16138. ct && (ct.forEach(function(ht, at) {
  16139. ht && (ht.onclick = ht.ontouchstart = null, dt = "cache-" + ht.menuClassName, rt[dt] && delete rt[dt], ct[at] = ht.destroy());
  16140. }), ct.length = 0), rt.exportingGroup && (rt.exportingGroup.destroy(), delete rt.exportingGroup), gt && (gt.forEach(function(ht, at) {
  16141. ht && (N.clearTimeout(ht.hideTimer), c(ht, "mouseleave"), gt[at] = ht.onmouseout = ht.onmouseover = ht.ontouchstart = ht.onclick = null, A(ht));
  16142. }), gt.length = 0), nt && (nt.forEach(function(ht) {
  16143. ht();
  16144. }), nt.length = 0);
  16145. }
  16146. function D(nt, rt) {
  16147. rt = this.getSVGForExport(nt, rt), nt = w(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);
  16148. }
  16149. function W() {
  16150. return this.styledMode && this.inlineStyles(), this.container.innerHTML;
  16151. }
  16152. function P() {
  16153. var nt = this.userOptions.title && this.userOptions.title.text, rt = this.options.exporting.filename;
  16154. return rt ? rt.replace(/\//g, "-") : (typeof nt == "string" && (rt = nt.toLowerCase().replace(/<\/?[^>]+(>|$)/g, "").replace(/[\s_]+/g, "-").replace(
  16155. /[^a-z0-9\-]/g,
  16156. ""
  16157. ).replace(/^[\-]+/g, "").replace(/[\-]+/g, "-").substr(0, 24).replace(/[\-]+$/g, "")), (!rt || 5 > rt.length) && (rt = "chart"), rt);
  16158. }
  16159. function X(nt) {
  16160. var rt, ct = w(this.options, nt);
  16161. ct.plotOptions = w(this.userOptions.plotOptions, nt && nt.plotOptions), ct.time = w(this.userOptions.time, nt && nt.time);
  16162. var gt = u("div", null, { position: "absolute", top: "-9999em", width: this.chartWidth + "px", height: this.chartHeight + "px" }, R.body), dt = this.renderTo.style.width, ht = this.renderTo.style.height;
  16163. 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) {
  16164. rt = w(tt.userOptions, { animation: !1, enableMouseTracking: !1, showCheckbox: !1, visible: tt.visible }), rt.isInternal || ct.series.push(rt);
  16165. });
  16166. var at = {};
  16167. this.axes.forEach(function(tt) {
  16168. tt.userOptions.internalKey || (tt.userOptions.internalKey = p()), tt.options.isInternal || (at[tt.coll] || (at[tt.coll] = !0, ct[tt.coll] = []), ct[tt.coll].push(w(tt.userOptions, { visible: tt.visible })));
  16169. });
  16170. var J = new this.constructor(ct, this.callback);
  16171. return nt && ["xAxis", "yAxis", "series"].forEach(function(tt) {
  16172. var ot = {};
  16173. nt[tt] && (ot[tt] = nt[tt], J.update(ot));
  16174. }), this.axes.forEach(function(tt) {
  16175. var ot = B(J.axes, function(yt) {
  16176. return yt.options.internalKey === tt.userOptions.internalKey;
  16177. }), lt = tt.getExtremes(), pt = lt.userMin;
  16178. lt = lt.userMax, ot && (typeof pt < "u" && pt !== ot.min || typeof lt < "u" && lt !== ot.max) && ot.setExtremes(
  16179. pt,
  16180. lt,
  16181. !0,
  16182. !1
  16183. );
  16184. }), ht = J.getChartHTML(), C(this, "getSVG", { chartCopy: J }), ht = this.sanitizeSVG(ht, ct), ct = null, J.destroy(), A(gt), ht;
  16185. }
  16186. function g(nt, rt) {
  16187. var ct = this.options.exporting;
  16188. return this.getSVG(w({ chart: { borderRadius: 0 } }, ct.chartOptions, rt, { exporting: { sourceWidth: nt && nt.sourceWidth || ct.sourceWidth, sourceHeight: nt && nt.sourceHeight || ct.sourceHeight } }));
  16189. }
  16190. function m(nt) {
  16191. return nt.replace(/([A-Z])/g, function(rt, ct) {
  16192. return "-" + ct.toLowerCase();
  16193. });
  16194. }
  16195. function L() {
  16196. function nt(J) {
  16197. function tt(St, Dt) {
  16198. if (lt = pt = !1, ct.length) {
  16199. for (yt = ct.length; yt-- && !pt; )
  16200. pt = ct[yt].test(Dt);
  16201. lt = !pt;
  16202. }
  16203. for (Dt === "transform" && St === "none" && (lt = !0), yt = rt.length; yt-- && !lt; )
  16204. lt = rt[yt].test(Dt) || typeof St == "function";
  16205. 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));
  16206. }
  16207. var ot = "", lt, pt, yt;
  16208. if (J.nodeType === 1 && it.indexOf(J.nodeName) === -1) {
  16209. var vt = S.getComputedStyle(J, null), Ct = J.nodeName === "svg" ? {} : S.getComputedStyle(J.parentNode, null);
  16210. if (!gt[J.nodeName]) {
  16211. dt = at.getElementsByTagName("svg")[0];
  16212. var Pt = at.createElementNS(J.namespaceURI, J.nodeName);
  16213. dt.appendChild(Pt), gt[J.nodeName] = w(S.getComputedStyle(Pt, null)), J.nodeName === "text" && delete gt.text.fill, dt.removeChild(Pt);
  16214. }
  16215. if (U.isFirefox || U.isMS)
  16216. for (var At in vt)
  16217. tt(vt[At], At);
  16218. else
  16219. x(vt, tt);
  16220. 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);
  16221. }
  16222. }
  16223. var rt = $, ct = h.inlineWhitelist, gt = {}, dt, ht = R.createElement("iframe");
  16224. d(ht, { width: "1px", height: "1px", visibility: "hidden" }), R.body.appendChild(ht);
  16225. var at = ht.contentWindow.document;
  16226. 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);
  16227. }
  16228. function Y(nt) {
  16229. (this.fixedDiv ? [this.fixedDiv, this.scrollingContainer] : [this.container]).forEach(function(rt) {
  16230. nt.appendChild(rt);
  16231. });
  16232. }
  16233. function V() {
  16234. var nt = this;
  16235. nt.exporting = { update: function(rt, ct) {
  16236. nt.isDirtyExporting = !0, w(!0, nt.options.exporting, rt), a(ct, !0) && nt.redraw();
  16237. } }, j.compose(nt).navigation.addUpdate(function(rt, ct) {
  16238. nt.isDirtyExporting = !0, w(!0, nt.options.navigation, rt), a(ct, !0) && nt.redraw();
  16239. });
  16240. }
  16241. function Q() {
  16242. var nt = this;
  16243. nt.isPrinting || (et = nt, U.isSafari || nt.beforePrint(), setTimeout(function() {
  16244. S.focus(), S.print(), U.isSafari || setTimeout(function() {
  16245. nt.afterPrint();
  16246. }, 1e3);
  16247. }, 1));
  16248. }
  16249. function k() {
  16250. var nt = this, rt = nt.options.exporting, ct = rt.buttons, gt = nt.isDirtyExporting || !nt.exportSVGElements;
  16251. 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(), x(ct, function(dt) {
  16252. nt.addButton(dt);
  16253. }), nt.isDirtyExporting = !1);
  16254. }
  16255. function G(nt, rt) {
  16256. var ct = nt.indexOf("</svg>") + 6, gt = nt.substr(ct);
  16257. 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(
  16258. /jQuery[0-9]+="[^"]+"/g,
  16259. ""
  16260. ).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;
  16261. }
  16262. var z = [], $ = [
  16263. /-/,
  16264. /^(clipPath|cssText|d|height|width)$/,
  16265. /^font$/,
  16266. /[lL]ogical(Width|Height)$/,
  16267. /perspective/,
  16268. /TapHighlightColor/,
  16269. /^transition/,
  16270. /^length$/
  16271. ], q = "fill stroke strokeLinecap strokeLinejoin strokeWidth textAnchor x y".split(" ");
  16272. h.inlineWhitelist = [];
  16273. var it = ["clipPath", "defs", "desc"], et;
  16274. h.compose = function(nt, rt) {
  16275. H.compose(rt), z.indexOf(nt) === -1 && (z.push(nt), rt = nt.prototype, rt.afterPrint = t, rt.exportChart = D, rt.inlineStyles = L, rt.print = Q, rt.sanitizeSVG = G, rt.getChartHTML = W, rt.getSVG = X, rt.getSVGForExport = g, rt.getFilename = P, rt.moveContainers = Y, rt.beforePrint = s, rt.contextMenu = T, rt.addButton = o, rt.destroyExport = _, rt.renderExporting = k, rt.callbacks.push(n), v(nt, "init", V), U.isSafari && U.win.matchMedia("print").addListener(function(ct) {
  16276. et && (ct.matches ? et.beforePrint() : et.afterPrint());
  16277. }));
  16278. };
  16279. }(i || (i = {})), y.exporting = w(Z.exporting, y.exporting), y.lang = w(Z.lang, y.lang), y.navigation = w(Z.navigation, y.navigation), i;
  16280. }), E(f, "masters/modules/exporting.src.js", [f["Core/Globals.js"], f["Extensions/Exporting/Exporting.js"], f["Core/HttpUtilities.js"]], function(l, y, j) {
  16281. l.HttpUtilities = j, l.ajax = j.ajax, l.getJSON = j.getJSON, l.post = j.post, y.compose(l.Chart, l.Renderer);
  16282. });
  16283. });
  16284. })(D0);
  16285. const I0 = gl;
  16286. var ml = {}, R0 = {
  16287. get exports() {
  16288. return ml;
  16289. },
  16290. set exports(r) {
  16291. ml = r;
  16292. }
  16293. };
  16294. (function(r) {
  16295. (function(f) {
  16296. r.exports ? (f.default = f, r.exports = f) : f(typeof Highcharts < "u" ? Highcharts : void 0);
  16297. })(function(f) {
  16298. function E(l, y, j, I) {
  16299. l.hasOwnProperty(y) || (l[y] = I.apply(null, j));
  16300. }
  16301. f = f ? f._modules : {}, E(f, "Extensions/Boost/Boostables.js", [], function() {
  16302. return "area arearange column columnrange bar line scatter heatmap bubble treemap".split(" ");
  16303. }), E(f, "Extensions/Boost/BoostableMap.js", [f["Extensions/Boost/Boostables.js"]], function(l) {
  16304. var y = {};
  16305. return l.forEach(function(j) {
  16306. y[j] = 1;
  16307. }), y;
  16308. }), E(f, "Extensions/Boost/WGLShader.js", [f["Core/Utilities.js"]], function(l) {
  16309. var y = l.clamp, j = l.error, I = l.pick;
  16310. return function(Z) {
  16311. function H() {
  16312. x.length && j("[highcharts boost] shader error - " + x.join(`
  16313. `));
  16314. }
  16315. function U(c, p) {
  16316. var i = Z.createShader(p === "vertex" ? Z.VERTEX_SHADER : Z.FRAGMENT_SHADER);
  16317. return Z.shaderSource(i, c), Z.compileShader(i), Z.getShaderParameter(i, Z.COMPILE_STATUS) ? i : (x.push("when compiling " + p + ` shader:
  16318. ` + Z.getShaderInfoLog(i)), !1);
  16319. }
  16320. function F() {
  16321. function c(h) {
  16322. return Z.getUniformLocation(S, h);
  16323. }
  16324. var p = U(
  16325. `#version 100
  16326. #define LN10 2.302585092994046
  16327. precision highp float;
  16328. attribute vec4 aVertexPosition;
  16329. attribute vec4 aColor;
  16330. varying highp vec2 position;
  16331. varying highp vec4 vColor;
  16332. uniform mat4 uPMatrix;
  16333. uniform float pSize;
  16334. uniform float translatedThreshold;
  16335. uniform bool hasThreshold;
  16336. uniform bool skipTranslation;
  16337. uniform float xAxisTrans;
  16338. uniform float xAxisMin;
  16339. uniform float xAxisMinPad;
  16340. uniform float xAxisPointRange;
  16341. uniform float xAxisLen;
  16342. uniform bool xAxisPostTranslate;
  16343. uniform float xAxisOrdinalSlope;
  16344. uniform float xAxisOrdinalOffset;
  16345. uniform float xAxisPos;
  16346. uniform bool xAxisCVSCoord;
  16347. uniform bool xAxisIsLog;
  16348. uniform bool xAxisReversed;
  16349. uniform float yAxisTrans;
  16350. uniform float yAxisMin;
  16351. uniform float yAxisMinPad;
  16352. uniform float yAxisPointRange;
  16353. uniform float yAxisLen;
  16354. uniform bool yAxisPostTranslate;
  16355. uniform float yAxisOrdinalSlope;
  16356. uniform float yAxisOrdinalOffset;
  16357. uniform float yAxisPos;
  16358. uniform bool yAxisCVSCoord;
  16359. uniform bool yAxisIsLog;
  16360. uniform bool yAxisReversed;
  16361. uniform bool isBubble;
  16362. uniform bool bubbleSizeByArea;
  16363. uniform float bubbleZMin;
  16364. uniform float bubbleZMax;
  16365. uniform float bubbleZThreshold;
  16366. uniform float bubbleMinSize;
  16367. uniform float bubbleMaxSize;
  16368. uniform bool bubbleSizeAbs;
  16369. uniform bool isInverted;
  16370. float bubbleRadius(){
  16371. float value = aVertexPosition.w;
  16372. float zMax = bubbleZMax;
  16373. float zMin = bubbleZMin;
  16374. float radius = 0.0;
  16375. float pos = 0.0;
  16376. float zRange = zMax - zMin;
  16377. if (bubbleSizeAbs){
  16378. value = value - bubbleZThreshold;
  16379. zMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);
  16380. zMin = 0.0;
  16381. }
  16382. if (value < zMin){
  16383. radius = bubbleZMin / 2.0 - 1.0;
  16384. } else {
  16385. pos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;
  16386. if (bubbleSizeByArea && pos > 0.0){
  16387. pos = sqrt(pos);
  16388. }
  16389. radius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;
  16390. }
  16391. return radius * 2.0;
  16392. }
  16393. float translate(float val,
  16394. float pointPlacement,
  16395. float localA,
  16396. float localMin,
  16397. float minPixelPadding,
  16398. float pointRange,
  16399. float len,
  16400. bool cvsCoord,
  16401. bool isLog,
  16402. bool reversed
  16403. ){
  16404. float sign = 1.0;
  16405. float cvsOffset = 0.0;
  16406. if (cvsCoord) {
  16407. sign *= -1.0;
  16408. cvsOffset = len;
  16409. }
  16410. if (isLog) {
  16411. val = log(val) / LN10;
  16412. }
  16413. if (reversed) {
  16414. sign *= -1.0;
  16415. cvsOffset -= sign * len;
  16416. }
  16417. return sign * (val - localMin) * localA + cvsOffset +
  16418. (sign * minPixelPadding);
  16419. }
  16420. float xToPixels(float value) {
  16421. if (skipTranslation){
  16422. return value;// + xAxisPos;
  16423. }
  16424. return translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;
  16425. }
  16426. float yToPixels(float value, float checkTreshold) {
  16427. float v;
  16428. if (skipTranslation){
  16429. v = value;// + yAxisPos;
  16430. } else {
  16431. v = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;
  16432. if (v > yAxisLen) {
  16433. v = yAxisLen;
  16434. }
  16435. }
  16436. if (checkTreshold > 0.0 && hasThreshold) {
  16437. v = min(v, translatedThreshold);
  16438. }
  16439. return v;
  16440. }
  16441. void main(void) {
  16442. if (isBubble){
  16443. gl_PointSize = bubbleRadius();
  16444. } else {
  16445. gl_PointSize = pSize;
  16446. }
  16447. vColor = aColor;
  16448. if (skipTranslation && isInverted) {
  16449. gl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);
  16450. } else if (isInverted) {
  16451. gl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);
  16452. } else {
  16453. gl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);
  16454. }
  16455. }`,
  16456. "vertex"
  16457. ), i = U(`precision highp float;
  16458. uniform vec4 fillColor;
  16459. varying highp vec2 position;
  16460. varying highp vec4 vColor;
  16461. uniform sampler2D uSampler;
  16462. uniform bool isCircle;
  16463. uniform bool hasColor;
  16464. void main(void) {
  16465. vec4 col = fillColor;
  16466. vec4 tcol = texture2D(uSampler, gl_PointCoord.st);
  16467. if (hasColor) {
  16468. col = vColor;
  16469. }
  16470. if (isCircle) {
  16471. col *= tcol;
  16472. if (tcol.r < 0.0) {
  16473. discard;
  16474. } else {
  16475. gl_FragColor = col;
  16476. }
  16477. } else {
  16478. gl_FragColor = col;
  16479. }
  16480. }`, "fragment");
  16481. return !p || !i ? (S = !1, H(), !1) : (S = Z.createProgram(), Z.attachShader(S, p), Z.attachShader(S, i), Z.linkProgram(S), Z.getProgramParameter(S, Z.LINK_STATUS) ? (Z.useProgram(S), Z.bindAttribLocation(S, 0, "aVertexPosition"), v = c("uPMatrix"), d = c("pSize"), u = c("fillColor"), A = c("isBubble"), O = c("bubbleSizeAbs"), B = c("bubbleSizeByArea"), a = c("uSampler"), C = c("skipTranslation"), b = c("isCircle"), w = c("isInverted"), !0) : (x.push(Z.getProgramInfoLog(S)), H(), S = !1));
  16482. }
  16483. function N(c, p) {
  16484. Z && S && (c = R[c] = R[c] || Z.getUniformLocation(S, c), Z.uniform1f(c, p));
  16485. }
  16486. var R = {}, S, v, d, u, A, O, B, C, b, w, x = [], a;
  16487. return Z && !F() ? !1 : { psUniform: function() {
  16488. return d;
  16489. }, pUniform: function() {
  16490. return v;
  16491. }, fillColorUniform: function() {
  16492. return u;
  16493. }, setBubbleUniforms: function(c, p, i) {
  16494. var h = c.options, o = Number.MAX_VALUE, t = -Number.MAX_VALUE;
  16495. if (Z && S && c.is("bubble")) {
  16496. var s = c.getPxExtremes();
  16497. o = I(h.zMin, y(p, h.displayNegative === !1 ? h.zThreshold : -Number.MAX_VALUE, o)), t = I(h.zMax, Math.max(t, i)), Z.uniform1i(A, 1), Z.uniform1i(b, 1), Z.uniform1i(B, c.options.sizeBy !== "width"), Z.uniform1i(O, c.options.sizeByAbsoluteValue), N("bubbleZMin", o), N("bubbleZMax", t), N("bubbleZThreshold", c.options.zThreshold), N("bubbleMinSize", s.minPxSize), N("bubbleMaxSize", s.maxPxSize);
  16498. }
  16499. }, bind: function() {
  16500. Z && S && Z.useProgram(S);
  16501. }, program: function() {
  16502. return S;
  16503. }, create: F, setUniform: N, setPMatrix: function(c) {
  16504. Z && S && Z.uniformMatrix4fv(v, !1, c);
  16505. }, setColor: function(c) {
  16506. Z && S && Z.uniform4f(u, c[0] / 255, c[1] / 255, c[2] / 255, c[3]);
  16507. }, setPointSize: function(c) {
  16508. Z && S && Z.uniform1f(d, c);
  16509. }, setSkipTranslation: function(c) {
  16510. Z && S && Z.uniform1i(C, c === !0 ? 1 : 0);
  16511. }, setTexture: function(c) {
  16512. Z && S && Z.uniform1i(a, c);
  16513. }, setDrawAsCircle: function(c) {
  16514. Z && S && Z.uniform1i(b, c ? 1 : 0);
  16515. }, reset: function() {
  16516. Z && S && (Z.uniform1i(A, 0), Z.uniform1i(b, 0));
  16517. }, setInverted: function(c) {
  16518. Z && S && Z.uniform1i(w, c);
  16519. }, destroy: function() {
  16520. Z && S && (Z.deleteProgram(S), S = !1);
  16521. } };
  16522. };
  16523. }), E(f, "Extensions/Boost/WGLVBuffer.js", [], function() {
  16524. return function(l, y, j) {
  16525. function I() {
  16526. Z && (l.deleteBuffer(Z), H = Z = !1), N = 0, U = j || 2, R = [];
  16527. }
  16528. var Z = !1, H = !1, U = j || 2, F = !1, N = 0, R;
  16529. return {
  16530. destroy: I,
  16531. bind: function() {
  16532. if (!Z)
  16533. return !1;
  16534. l.vertexAttribPointer(H, U, l.FLOAT, !1, 0, 0);
  16535. },
  16536. data: R,
  16537. build: function(S, v, d) {
  16538. var u;
  16539. return R = S || [], R && R.length !== 0 || F ? (U = d || U, Z && l.deleteBuffer(Z), F || (u = new Float32Array(R)), Z = l.createBuffer(), l.bindBuffer(l.ARRAY_BUFFER, Z), l.bufferData(l.ARRAY_BUFFER, F || u, l.STATIC_DRAW), H = l.getAttribLocation(y.program(), v), l.enableVertexAttribArray(H), !0) : (I(), !1);
  16540. },
  16541. render: function(S, v, d) {
  16542. var u = F ? F.length : R.length;
  16543. return !Z || !u || ((!S || S > u || 0 > S) && (S = 0), (!v || v > u) && (v = u), S >= v) ? !1 : (l.drawArrays(l[(d || "points").toUpperCase()], S / U, (v - S) / U), !0);
  16544. },
  16545. allocate: function(S) {
  16546. N = -1, F = new Float32Array(4 * S);
  16547. },
  16548. push: function(S, v, d, u) {
  16549. F && (F[++N] = S, F[++N] = v, F[++N] = d, F[++N] = u);
  16550. }
  16551. };
  16552. };
  16553. }), E(f, "Extensions/Boost/WGLRenderer.js", [f["Core/Color/Color.js"], f["Extensions/Boost/WGLShader.js"], f["Extensions/Boost/WGLVBuffer.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j, I, Z) {
  16554. var H = l.parse, U = I.doc, F = Z.isNumber, N = Z.isObject, R = Z.merge, S = Z.objectEach, v = Z.pick;
  16555. return function(d) {
  16556. function u(m) {
  16557. if (m.isSeriesBoosting) {
  16558. var L = !!m.options.stacking, Y = m.xData || m.options.xData || m.processedXData;
  16559. return L = (L ? m.data : Y || m.options.data).length, m.type === "treemap" ? L *= 12 : m.type === "heatmap" ? L *= 6 : P[m.type] && (L *= 2), L;
  16560. }
  16561. return 0;
  16562. }
  16563. function A() {
  16564. h.clear(h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT);
  16565. }
  16566. function O(m, L) {
  16567. function Y($t) {
  16568. $t && (L.colorData.push($t[0]), L.colorData.push($t[1]), L.colorData.push($t[2]), L.colorData.push($t[3]));
  16569. }
  16570. function V($t, ue, ge, Re, De) {
  16571. Y(De), g.usePreallocated ? (p.push($t, ue, ge ? 1 : 0, Re || 1), i += 4) : (s.push($t), s.push(ue), s.push(ge ? 1 : 0), s.push(Re || 1));
  16572. }
  16573. function Q() {
  16574. L.segments.length && (L.segments[L.segments.length - 1].to = s.length || i);
  16575. }
  16576. function k() {
  16577. L.segments.length && L.segments[L.segments.length - 1].from === (s.length || i) || (Q(), L.segments.push({ from: s.length || i }));
  16578. }
  16579. function G($t, ue, ge, Re, De) {
  16580. Y(De), V($t + ge, ue), Y(De), V($t, ue), Y(De), V($t, ue + Re), Y(De), V($t, ue + Re), Y(De), V($t + ge, ue + Re), Y(De), V($t + ge, ue);
  16581. }
  16582. function z($t, ue) {
  16583. g.useGPUTranslations || (L.skipTranslation = !0, $t.x = lt.toPixels($t.x, !0), $t.y = ot.toPixels($t.y, !0)), ue ? s = [$t.x, $t.y, 0, 2].concat(s) : V($t.x, $t.y, 0, 2);
  16584. }
  16585. var $ = 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;
  16586. rt = m.yAxis.getExtremes();
  16587. 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;
  16588. rt = m.points || !1;
  16589. var Ct = !1, Pt = !1, At, St, Dt = et ? m.data : at || nt, Lt = { x: Number.MAX_VALUE, y: 0 }, Nt = { x: -Number.MAX_VALUE, y: 0 }, Et = 0, Kt = !1, Gt, Wt, Jt, be, zt = -1, Vt = !1, Me = !1, _r, ps = typeof q.index > "u", Tn = !1, Pn = !1, $e = !1, En = P[m.type], On = !1, Jr = !0, us = !0, Xo = it.zoneAxis || "y", Dr = it.zones || !1, Yi = !1, ds = it.threshold, Ln = !1;
  16590. if (!(it.boostData && 0 < it.boostData.length)) {
  16591. if (it.gapSize && (Ln = it.gapUnit !== "value" ? it.gapSize * m.closestPointRange : it.gapSize), Dr) {
  16592. var Ir = [];
  16593. Dr.forEach(function($t, ue) {
  16594. if ($t.color) {
  16595. var ge = H($t.color).rgba;
  16596. ge[0] /= 255, ge[1] /= 255, ge[2] /= 255, Ir[ue] = ge, Yi || typeof $t.value < "u" || (Yi = ge);
  16597. }
  16598. }), Yi || (at = m.pointAttribs && m.pointAttribs().fill || m.color, Yi = H(at).rgba, Yi[0] /= 255, Yi[1] /= 255, Yi[2] /= 255);
  16599. }
  16600. if (q.inverted && (pt = m.chart.plotHeight), m.closestPointRangePx = Number.MAX_VALUE, k(), rt && 0 < rt.length)
  16601. L.skipTranslation = !0, L.drawMode = "triangles", rt[0].node && rt[0].node.levelDynamic && rt.sort(function($t, ue) {
  16602. if ($t.node) {
  16603. if ($t.node.levelDynamic > ue.node.levelDynamic)
  16604. return 1;
  16605. if ($t.node.levelDynamic < ue.node.levelDynamic)
  16606. return -1;
  16607. }
  16608. return 0;
  16609. }), rt.forEach(function($t) {
  16610. var ue = $t.plotY;
  16611. if (typeof ue < "u" && !isNaN(ue) && $t.y !== null && $t.shapeArgs) {
  16612. var ge = $t.shapeArgs;
  16613. ue = ge.x, ue = ue === void 0 ? 0 : ue;
  16614. var Re = ge.y;
  16615. Re = Re === void 0 ? 0 : Re;
  16616. var De = ge.width;
  16617. De = De === void 0 ? 0 : De, ge = ge.height, ge = ge === void 0 ? 0 : ge;
  16618. var qr = q.styledMode ? $t.series.colorAttribs($t) : qr = $t.series.pointAttribs($t);
  16619. $t = qr["stroke-width"] || 0, $e = H(qr.fill).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255, m.type === "treemap" && ($t = $t || 1, St = H(qr.stroke).rgba, St[0] /= 255, St[1] /= 255, St[2] /= 255, G(ue, Re, De, ge, St), $t /= 2), m.type === "heatmap" && q.inverted && (ue = lt.len - ue, Re = ot.len - Re, De = -De, ge = -ge), G(ue + $t, Re + $t, De - 2 * $t, ge - 2 * $t, $e);
  16620. }
  16621. });
  16622. else {
  16623. for (rt = function() {
  16624. if (Jt = Dt[++zt], typeof Jt > "u")
  16625. return "continue";
  16626. if (ps)
  16627. return "break";
  16628. var $t = nt && nt[zt];
  16629. if (!yt && N($t, !0) && $t.color && ($e = H($t.color).rgba, $e[0] /= 255, $e[1] /= 255, $e[2] /= 255), yt ? (Gt = Jt[0], Wt = Jt[1], Dt[zt + 1] && (Me = Dt[zt + 1][0]), Dt[zt - 1] && (Vt = Dt[zt - 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[zt], Dt[zt + 1] && (Me = Dt[zt + 1]), Dt[zt - 1] && (Vt = Dt[zt - 1]), tt && tt.length && (be = tt[zt], tt[zt] > L.zMax && (L.zMax = tt[zt]), tt[zt] < L.zMin && (L.zMin = tt[zt]))), !vt && (Gt === null || Wt === null))
  16630. return k(), "continue";
  16631. if (Me && Me >= ct && Me <= gt && (Tn = !0), Vt && Vt >= ct && Vt <= gt && (Pn = !0), $ ? (yt && (Wt = Jt.slice(1, 3)), _r = Wt[0], Wt = Wt[1]) : et && (Gt = Jt.x, Wt = Jt.stackY, _r = 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 && Lt.x > ct && (Lt.x = Gt, Lt.y = Wt), Wt === null && vt)
  16632. return "continue";
  16633. if (Wt === null || !Jr && !Tn && !Pn)
  16634. return k(), "continue";
  16635. if ((Me >= ct || Gt >= ct) && (Vt <= gt || Gt <= gt) && (On = !0), !On && !Tn && !Pn)
  16636. return "continue";
  16637. if (Ln && Gt - Vt > Ln && k(), Dr) {
  16638. var ue;
  16639. Dr.some(function(ge, Re) {
  16640. var De = Dr[Re - 1];
  16641. return Xo === "x" ? typeof ge.value < "u" && Gt <= ge.value ? (Ir[Re] && (!De || Gt >= De.value) && (ue = Ir[Re]), !0) : !1 : typeof ge.value < "u" && Wt <= ge.value ? (Ir[Re] && (!De || Wt >= De.value) && (ue = Ir[Re]), !0) : !1;
  16642. }), $e = ue || Yi || $e;
  16643. }
  16644. if (!g.useGPUTranslations && (L.skipTranslation = !0, Gt = lt.toPixels(Gt, !0), Wt = ot.toPixels(Wt, !0), Gt > pt && L.drawMode === "points"))
  16645. return "continue";
  16646. if (L.hasMarkers && On && 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))
  16647. return g.debug.showSkipSummary && ++Et, "continue";
  16648. En && (At = _r, (_r === !1 || typeof _r > "u") && (At = 0 > Wt ? Wt : 0), $ || et || (At = Math.max(ds === null ? dt : ds, dt)), g.useGPUTranslations || (At = ot.toPixels(At, !0)), V(Gt, At, 0, 0, $e)), it.step && !us && V(Gt, Pt, 0, 2, $e), V(Gt, Wt, 0, m.type === "bubble" ? be || 1 : 2, $e), Ct = Gt, Pt = Wt, Kt = !0, us = !1;
  16649. }; zt < Dt.length - 1 && rt() !== "break"; )
  16650. ;
  16651. g.debug.showSkipSummary && console.log("skipped points:", Et), Kt || vt === !1 || m.drawMode !== "line_strip" || (Lt.x < Number.MAX_VALUE && z(Lt, !0), Nt.x > -Number.MAX_VALUE && z(Nt));
  16652. }
  16653. Q();
  16654. }
  16655. }
  16656. function B() {
  16657. D = [], T.data = s = [], n = [], p && p.destroy();
  16658. }
  16659. function C(m) {
  16660. 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(
  16661. "xAxisPos",
  16662. m.pos
  16663. ), c.setUniform("xAxisCVSCoord", !m.horiz), c.setUniform("xAxisIsLog", !!m.logarithmic), c.setUniform("xAxisReversed", !!m.reversed));
  16664. }
  16665. function b(m) {
  16666. 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));
  16667. }
  16668. function w(m, L) {
  16669. c.setUniform("hasThreshold", m), c.setUniform("translatedThreshold", L);
  16670. }
  16671. function x(m) {
  16672. if (m)
  16673. o = m.chartWidth || 800, t = m.chartHeight || 400;
  16674. else
  16675. return !1;
  16676. if (!(h && o && t && c))
  16677. return !1;
  16678. g.debug.timeRendering && console.time("gl rendering"), h.canvas.width = o, h.canvas.height = t, c.bind(), h.viewport(0, 0, o, t), c.setPMatrix([2 / o, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]), 1 < g.lineWidth && !I.isMS && h.lineWidth(g.lineWidth), p.build(T.data, "aVertexPosition", 4), p.bind(), c.setInverted(m.inverted), D.forEach(function(L, Y) {
  16679. var V = L.series.options, Q = V.marker, k = typeof V.lineWidth < "u" ? V.lineWidth : 1, G = V.threshold, z = F(G), $ = L.series.yAxis.getThreshold(G);
  16680. if (G = v(V.marker ? V.marker.enabled : null, L.series.xAxis.isRadial ? !0 : null, L.series.closestPointRangePx > 2 * ((V.marker ? V.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) {
  16681. if (Q.isReady && (h.bindTexture(h.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, V.colorByPoint && (Q = L.series.chart.options.colors[Y])), L.series.fillOpacity && V.fillOpacity && (Q = new l(Q).setOpacity(v(V.fillOpacity, 1)).get()), Q = H(Q).rgba, g.useAlpha || (Q[3] = 1), L.drawMode === "lines" && g.useAlpha && 1 > Q[3] && (Q[3] /= 10), V.boostBlending === "add" ? (h.blendFunc(h.SRC_ALPHA, h.ONE), h.blendEquation(h.FUNC_ADD)) : V.boostBlending === "mult" || V.boostBlending === "multiply" ? h.blendFunc(h.DST_COLOR, h.ZERO) : V.boostBlending === "darken" ? (h.blendFunc(h.ONE, h.ONE), h.blendEquation(h.FUNC_MIN)) : h.blendFuncSeparate(h.SRC_ALPHA, h.ONE_MINUS_SRC_ALPHA, h.ONE, h.ONE_MINUS_SRC_ALPHA), c.reset(), 0 < L.colorData.length ? (c.setUniform("hasColor", 1), Y = j(h, c), Y.build(L.colorData, "aColor", 4), Y.bind()) : h.disableVertexAttribArray(h.getAttribLocation(c.program(), "aColor")), c.setColor(Q), C(L.series.xAxis), b(L.series.yAxis), w(z, $), L.drawMode === "points" && (V.marker && F(V.marker.radius) ? c.setPointSize(2 * V.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 < k || L.drawMode !== "line_strip")
  16682. for (k = 0; k < L.segments.length; k++)
  16683. p.render(L.segments[k].from, L.segments[k].to, L.drawMode);
  16684. if (L.hasMarkers && G)
  16685. for (V.marker && F(V.marker.radius) ? c.setPointSize(2 * V.marker.radius) : c.setPointSize(10), c.setDrawAsCircle(!0), k = 0; k < L.segments.length; k++)
  16686. p.render(L.segments[k].from, L.segments[k].to, "POINTS");
  16687. }
  16688. }), g.debug.timeRendering && console.timeEnd("gl rendering"), d && d(), B();
  16689. }
  16690. function a(m) {
  16691. if (A(), m.renderer.forExport)
  16692. return x(m);
  16693. _ ? x(m) : setTimeout(function() {
  16694. a(m);
  16695. }, 1);
  16696. }
  16697. var c = !1, p = !1, i = 0, h = !1, o = 0, t = 0, s = !1, n = !1, T = {}, _ = !1, D = [], W = {}, P = { 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 } };
  16698. return T = { allocateBufferForSingleSeries: function(m) {
  16699. var L = 0;
  16700. g.usePreallocated && (m.isSeriesBoosting && (L = u(m)), p.allocate(L));
  16701. }, pushSeries: function(m) {
  16702. 0 < D.length && D[D.length - 1].hasMarkers && (D[D.length - 1].markerTo = n.length), g.debug.timeSeriesProcessing && console.time("building " + m.type + " series");
  16703. 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: {
  16704. area: "lines",
  16705. arearange: "lines",
  16706. areaspline: "line_strip",
  16707. column: "lines",
  16708. columnrange: "lines",
  16709. bar: "lines",
  16710. line: "line_strip",
  16711. scatter: "points",
  16712. heatmap: "triangles",
  16713. treemap: "triangles",
  16714. bubble: "points"
  16715. }[m.type] || "line_strip" };
  16716. m.index >= D.length ? D.push(L) : D[m.index] = L, O(m, L), g.debug.timeSeriesProcessing && console.timeEnd("building " + m.type + " series");
  16717. }, setSize: function(m, L) {
  16718. o === m && t === L || !c || (o = m, t = L, c.bind(), c.setPMatrix([2 / o, 0, 0, 0, 0, -(2 / t), 0, 0, 0, 0, -2, 0, -1, 1, -1, 1]));
  16719. }, inited: function() {
  16720. return _;
  16721. }, setThreshold: w, init: function(m, L) {
  16722. function Y(k, G) {
  16723. var z = { isReady: !1, texture: U.createElement("canvas"), handle: h.createTexture() }, $ = z.texture.getContext("2d");
  16724. W[k] = z, z.texture.width = 512, z.texture.height = 512, $.mozImageSmoothingEnabled = !1, $.webkitImageSmoothingEnabled = !1, $.msImageSmoothingEnabled = !1, $.imageSmoothingEnabled = !1, $.strokeStyle = "rgba(255, 255, 255, 0)", $.fillStyle = "#FFF", G($);
  16725. try {
  16726. h.activeTexture(h.TEXTURE0), h.bindTexture(h.TEXTURE_2D, z.handle), h.texImage2D(h.TEXTURE_2D, 0, h.RGBA, h.RGBA, h.UNSIGNED_BYTE, z.texture), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE), h.texParameteri(
  16727. h.TEXTURE_2D,
  16728. h.TEXTURE_WRAP_T,
  16729. h.CLAMP_TO_EDGE
  16730. ), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR), h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR), h.bindTexture(h.TEXTURE_2D, null), z.isReady = !0;
  16731. } catch {
  16732. }
  16733. }
  16734. var V = 0, Q = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"];
  16735. if (_ = !1, !m)
  16736. return !1;
  16737. for (g.debug.timeSetup && console.time("gl setup"); V < Q.length && !(h = m.getContext(Q[V], {})); V++)
  16738. ;
  16739. if (h)
  16740. L || B();
  16741. else
  16742. return !1;
  16743. return h.enable(h.BLEND), h.blendFunc(h.SRC_ALPHA, h.ONE_MINUS_SRC_ALPHA), h.disable(h.DEPTH_TEST), h.depthFunc(h.LESS), c = y(h), c ? (p = j(h, c), Y("circle", function(k) {
  16744. k.beginPath(), k.arc(256, 256, 256, 0, 2 * Math.PI), k.stroke(), k.fill();
  16745. }), Y("square", function(k) {
  16746. k.fillRect(0, 0, 512, 512);
  16747. }), Y("diamond", function(k) {
  16748. k.beginPath(), k.moveTo(256, 0), k.lineTo(512, 256), k.lineTo(256, 512), k.lineTo(0, 256), k.lineTo(256, 0), k.fill();
  16749. }), Y("triangle", function(k) {
  16750. k.beginPath(), k.moveTo(0, 512), k.lineTo(256, 0), k.lineTo(512, 512), k.lineTo(0, 512), k.fill();
  16751. }), Y("triangle-down", function(k) {
  16752. k.beginPath(), k.moveTo(0, 0), k.lineTo(256, 512), k.lineTo(
  16753. 512,
  16754. 0
  16755. ), k.lineTo(0, 0), k.fill();
  16756. }), _ = !0, g.debug.timeSetup && console.timeEnd("gl setup"), !0) : !1;
  16757. }, render: a, settings: g, valid: function() {
  16758. return h !== !1;
  16759. }, clear: A, flush: B, setXAxis: C, setYAxis: b, data: s, gl: function() {
  16760. return h;
  16761. }, allocateBuffer: function(m) {
  16762. var L = 0;
  16763. g.usePreallocated && (m.series.forEach(function(Y) {
  16764. Y.isSeriesBoosting && (L += u(Y));
  16765. }), p.allocate(L));
  16766. }, destroy: function() {
  16767. B(), p.destroy(), c.destroy(), h && (S(W, function(m) {
  16768. m.handle && h.deleteTexture(m.handle);
  16769. }), h.canvas.width = 1, h.canvas.height = 1);
  16770. }, setOptions: function(m) {
  16771. R(
  16772. !0,
  16773. g,
  16774. m
  16775. );
  16776. } };
  16777. };
  16778. }), E(f, "Extensions/Boost/BoostAttach.js", [f["Core/Chart/Chart.js"], f["Extensions/Boost/WGLRenderer.js"], f["Core/Globals.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  16779. var Z = j.doc, H = I.error, U;
  16780. return function(F, N) {
  16781. var R = F.chartWidth, S = F.chartHeight, v = F, d = F.seriesGroup || N.group, u = Z.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility", "1.1");
  16782. return v = F.isChartSeriesBoosting() ? F : N, u = !1, U || (U = Z.createElement("canvas")), v.renderTarget || (v.canvas = U, F.renderer.forExport || !u ? (v.renderTarget = F.renderer.image("", 0, 0, R, S).addClass("highcharts-boost-canvas").add(d), v.boostClear = function() {
  16783. v.renderTarget.attr({ href: "" });
  16784. }, v.boostCopy = function() {
  16785. v.boostResizeTarget(), v.renderTarget.attr({ href: v.canvas.toDataURL("image/png") });
  16786. }) : (v.renderTargetFo = F.renderer.createElement("foreignObject").add(d), v.renderTarget = Z.createElement("canvas"), v.renderTargetCtx = v.renderTarget.getContext("2d"), v.renderTargetFo.element.appendChild(v.renderTarget), v.boostClear = function() {
  16787. v.renderTarget.width = v.canvas.width, v.renderTarget.height = v.canvas.height;
  16788. }, v.boostCopy = function() {
  16789. v.renderTarget.width = v.canvas.width, v.renderTarget.height = v.canvas.height, v.renderTargetCtx.drawImage(v.canvas, 0, 0);
  16790. }), v.boostResizeTarget = function() {
  16791. R = F.chartWidth, S = F.chartHeight, (v.renderTargetFo || v.renderTarget).attr({ x: 0, y: 0, width: R, height: S }).css({ pointerEvents: "none", mixedBlendMode: "normal", opacity: 1 }), v instanceof l && v.markerGroup.translate(F.plotLeft, F.plotTop);
  16792. }, v.boostClipRect = F.renderer.clipRect(), (v.renderTargetFo || v.renderTarget).clip(v.boostClipRect), v instanceof l && (v.markerGroup = v.renderer.g().add(d), v.markerGroup.translate(N.xAxis.pos, N.yAxis.pos))), v.canvas.width = R, v.canvas.height = S, v.boostClipRect.attr(F.getBoostClipRect(v)), v.boostResizeTarget(), v.boostClear(), v.ogl || (v.ogl = y(function() {
  16793. v.ogl.settings.debug.timeBufferCopy && console.time("buffer copy"), v.boostCopy(), v.ogl.settings.debug.timeBufferCopy && console.timeEnd("buffer copy");
  16794. }), v.ogl.init(v.canvas) || H("[highcharts boost] - unable to init WebGL renderer"), v.ogl.setOptions(F.options.boost || {}), v instanceof l && v.ogl.allocateBuffer(F)), v.ogl.setSize(R, S), v.ogl;
  16795. };
  16796. }), E(f, "Extensions/Boost/BoostUtils.js", [f["Core/Globals.js"], f["Extensions/Boost/BoostableMap.js"], f["Extensions/Boost/BoostAttach.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  16797. function Z() {
  16798. for (var d = [], u = 0; u < arguments.length; u++)
  16799. d[u] = arguments[u];
  16800. var A = -Number.MAX_VALUE;
  16801. return d.forEach(function(O) {
  16802. if (typeof O < "u" && O !== null && typeof O.length < "u" && 0 < O.length)
  16803. return A = O.length, !0;
  16804. }), A;
  16805. }
  16806. function H(d, u, A) {
  16807. d && u.renderTarget && u.canvas && !(A || u.chart).isChartSeriesBoosting() && d.render(A || u.chart);
  16808. }
  16809. function U(d, u) {
  16810. d && u.renderTarget && u.canvas && !u.chart.isChartSeriesBoosting() && d.allocateBufferForSingleSeries(u);
  16811. }
  16812. function F(d, u, A, O, B, C) {
  16813. B = B || 0, O = O || 3e3;
  16814. for (var b = B + O, w = !0; w && B < b && B < d.length; )
  16815. w = u(d[B], B), ++B;
  16816. w && (B < d.length ? C ? F(d, u, A, O, B, C) : R.requestAnimationFrame ? R.requestAnimationFrame(function() {
  16817. F(d, u, A, O, B);
  16818. }) : setTimeout(function() {
  16819. F(d, u, A, O, B);
  16820. }) : A && A());
  16821. }
  16822. function N() {
  16823. var d = 0, u, A = [
  16824. "webgl",
  16825. "experimental-webgl",
  16826. "moz-webgl",
  16827. "webkit-3d"
  16828. ], O = !1;
  16829. if (typeof R.WebGLRenderingContext < "u")
  16830. for (u = S.createElement("canvas"); d < A.length; d++)
  16831. try {
  16832. if (O = u.getContext(A[d]), typeof O < "u" && O !== null)
  16833. return !0;
  16834. } catch {
  16835. }
  16836. return !1;
  16837. }
  16838. var R = l.win, S = l.doc, v = I.pick;
  16839. return I = { patientMax: Z, boostEnabled: function(d) {
  16840. return v(d && d.options && d.options.boost && d.options.boost.enabled, !0);
  16841. }, shouldForceChartSeriesBoosting: function(d) {
  16842. var u = 0, A = 0, O = v(d.options.boost && d.options.boost.allowForce, !0);
  16843. if (typeof d.boostForceChartBoost < "u")
  16844. return d.boostForceChartBoost;
  16845. if (1 < d.series.length)
  16846. for (var B = 0; B < d.series.length; B++) {
  16847. var C = d.series[B];
  16848. C.options.boostThreshold !== 0 && C.visible !== !1 && C.type !== "heatmap" && (y[C.type] && ++A, Z(C.processedXData, C.options.data, C.points) >= (C.options.boostThreshold || Number.MAX_VALUE) && ++u);
  16849. }
  16850. return d.boostForceChartBoost = O && (A === d.series.length && 0 < u || 5 < u), d.boostForceChartBoost;
  16851. }, renderIfNotSeriesBoosting: H, allocateIfNotSeriesBoosting: U, eachAsync: F, hasWebGLSupport: N, pointDrawHandler: function(d) {
  16852. var u = !0;
  16853. if (this.chart.options && this.chart.options.boost && (u = typeof this.chart.options.boost.enabled > "u" ? !0 : this.chart.options.boost.enabled), !u || !this.isSeriesBoosting)
  16854. return d.call(this);
  16855. this.chart.isBoosting = !0, (d = j(this.chart, this)) && (U(d, this), d.pushSeries(this)), H(d, this);
  16856. } }, l.hasWebGLSupport = N, I;
  16857. }), E(
  16858. f,
  16859. "Extensions/Boost/BoostInit.js",
  16860. [f["Core/Chart/Chart.js"], f["Core/Globals.js"], f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"], f["Extensions/Boost/BoostUtils.js"], f["Extensions/Boost/BoostAttach.js"]],
  16861. function(l, y, j, I, Z, H, U) {
  16862. var F = y.noop, N = I.seriesTypes, R = Z.addEvent, S = Z.extend, v = Z.fireEvent, d = Z.wrap, u = H.eachAsync, A = H.pointDrawHandler, O = H.allocateIfNotSeriesBoosting, B = H.renderIfNotSeriesBoosting, C = H.shouldForceChartSeriesBoosting, b;
  16863. return function() {
  16864. S(j.prototype, { renderCanvas: function() {
  16865. function w(dt, ht) {
  16866. var at = !1, J = typeof i.index > "u", tt = !0;
  16867. if (typeof dt > "u")
  16868. return !0;
  16869. if (!J) {
  16870. if (G)
  16871. var ot = dt[0], lt = dt[1];
  16872. else
  16873. ot = dt, lt = s[ht];
  16874. Y ? (G && (lt = dt.slice(1, 3)), at = lt[0], lt = lt[1]) : V && (ot = dt.x, lt = dt.stackY, at = lt - dt.y), k || (tt = lt >= D && lt <= W), lt !== null && ot >= T && ot <= _ && tt && (dt = h.toPixels(ot, !0), g ? ((typeof q > "u" || dt === X) && (Y || (at = lt), (typeof it > "u" || lt > $) && ($ = lt, it = ht), (typeof q > "u" || at < z) && (z = at, q = ht)), dt !== X && (typeof q < "u" && (lt = o.toPixels($, !0), L = o.toPixels(z, !0), rt(dt, lt, it), L !== lt && rt(dt, L, q)), q = it = void 0, X = dt)) : (lt = Math.ceil(o.toPixels(lt, !0)), rt(dt, lt, ht)));
  16875. }
  16876. return !J;
  16877. }
  16878. function x() {
  16879. v(a, "renderedCanvas"), delete a.buildKDTree, a.buildKDTree(), ct.debug.timeKDTree && console.timeEnd("kd tree building");
  16880. }
  16881. var a = this, c = a.options || {}, p = !1, i = a.chart, h = this.xAxis, o = this.yAxis, t = c.xData || a.processedXData, s = c.yData || a.processedYData, n = c.data;
  16882. p = h.getExtremes();
  16883. var T = p.min, _ = p.max;
  16884. p = o.getExtremes();
  16885. var D = p.min, W = p.max, P = {}, X, g = !!a.sampling, m = c.enableMouseTracking !== !1, L = o.getThreshold(c.threshold), Y = a.pointArrayMap && a.pointArrayMap.join(",") === "low,high", V = !!c.stacking, Q = a.cropStart || 0, k = a.requireSorting, G = !t, z, $, q, it, et = c.findNearestPointBy === "x", nt = this.xData || this.options.xData || this.processedXData || !1, rt = function(dt, ht, at) {
  16886. dt = Math.ceil(dt), b = et ? dt : dt + "," + ht, m && !P[b] && (P[b] = !0, i.inverted && (dt = h.len - dt, ht = o.len - ht), gt.push({ x: nt ? nt[Q + at] : !1, clientX: dt, plotX: dt, plotY: ht, i: Q + at }));
  16887. };
  16888. p = U(i, a), i.isBoosting = !0;
  16889. var ct = p.settings;
  16890. if (this.visible) {
  16891. (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 = a.plotGroup("markerGroup", "markers", !0, 1, i.seriesGroup));
  16892. var gt = this.points = [];
  16893. a.buildKDTree = F, p && (O(p, this), p.pushSeries(a), B(p, this, i)), i.renderer.forExport || (ct.debug.timeKDTree && console.time("kd tree building"), u(V ? a.data : t || n, w, x));
  16894. }
  16895. } }), ["heatmap", "treemap"].forEach(function(w) {
  16896. N[w] && d(N[w].prototype, "drawPoints", A);
  16897. }), N.bubble && (delete N.bubble.prototype.buildKDTree, d(N.bubble.prototype, "markerAttribs", function(w) {
  16898. return this.isSeriesBoosting ? !1 : w.apply(this, [].slice.call(arguments, 1));
  16899. })), N.scatter.prototype.fill = !0, S(N.area.prototype, { fill: !0, fillOpacity: !0, sampling: !0 }), S(N.column.prototype, { fill: !0, sampling: !0 }), l.prototype.propsRequireUpdateSeries.push("boost"), l.prototype.callbacks.push(function(w) {
  16900. R(w, "predraw", function() {
  16901. w.boostForceChartBoost = void 0, w.boostForceChartBoost = C(w), w.isBoosting = !1, !w.isChartSeriesBoosting() && w.didBoost && (w.didBoost = !1), w.boostClear && w.boostClear(), w.canvas && w.ogl && w.isChartSeriesBoosting() && (w.didBoost = !0, w.ogl.allocateBuffer(w)), w.markerGroup && w.xAxis && 0 < w.xAxis.length && w.yAxis && 0 < w.yAxis.length && w.markerGroup.translate(w.xAxis[0].pos, w.yAxis[0].pos);
  16902. }), R(w, "render", function() {
  16903. w.ogl && w.isChartSeriesBoosting() && w.ogl.render(w);
  16904. });
  16905. var x = -1, a = -1;
  16906. R(w.pointer, "afterGetHoverData", function() {
  16907. var c = w.hoverSeries;
  16908. if (w.markerGroup && c) {
  16909. var p = w.inverted ? c.yAxis : c.xAxis;
  16910. c = w.inverted ? c.xAxis : c.yAxis, (p && p.pos !== x || c && c.pos !== a) && (w.markerGroup.translate(p.pos, c.pos), x = p.pos, a = c.pos);
  16911. }
  16912. });
  16913. });
  16914. };
  16915. }
  16916. ), E(
  16917. f,
  16918. "Extensions/BoostCanvas.js",
  16919. [f["Core/Chart/Chart.js"], f["Core/Color/Color.js"], f["Core/Globals.js"], f["Core/Series/Series.js"], f["Core/Series/SeriesRegistry.js"], f["Core/Utilities.js"]],
  16920. function(l, y, j, I, Z, H) {
  16921. var U = y.parse, F = j.doc, N = j.noop, R = Z.seriesTypes, S = H.addEvent, v = H.extend, d = H.fireEvent, u = H.isNumber, A = H.merge, O = H.pick, B = H.wrap, C;
  16922. return function() {
  16923. j.seriesTypes.heatmap && B(j.seriesTypes.heatmap.prototype, "drawPoints", function() {
  16924. var b = this.chart, w = this.getContext(), x = this.chart.inverted, a = this.xAxis, c = this.yAxis;
  16925. w ? (this.points.forEach(function(p) {
  16926. var i = p.plotY;
  16927. if (typeof i < "u" && !isNaN(i) && p.y !== null && w) {
  16928. var h = p.shapeArgs || {};
  16929. i = h.x, i = i === void 0 ? 0 : i;
  16930. var o = h.y;
  16931. o = o === void 0 ? 0 : o;
  16932. var t = h.width;
  16933. t = t === void 0 ? 0 : t, h = h.height, h = h === void 0 ? 0 : h, p = b.styledMode ? p.series.colorAttribs(p) : p.series.pointAttribs(p), w.fillStyle = p.fill, x ? w.fillRect(c.len - o + a.left, a.len - i + c.top, -h, -t) : w.fillRect(i + a.left, o + c.top, t, h);
  16934. }
  16935. }), this.canvasToSVG()) : this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser");
  16936. }), v(I.prototype, { getContext: function() {
  16937. var b = this.chart, w = b.chartWidth, x = b.chartHeight, a = b.seriesGroup || this.group, c = this, p = function(h, o, t, s, n, T, _) {
  16938. h.call(this, t, o, s, n, T, _);
  16939. };
  16940. b.isChartSeriesBoosting() && (c = b, a = b.seriesGroup);
  16941. var i = c.ctx;
  16942. return c.canvas || (c.canvas = F.createElement("canvas"), c.renderTarget = b.renderer.image("", 0, 0, w, x).addClass("highcharts-boost-canvas").add(a), c.ctx = i = c.canvas.getContext("2d"), b.inverted && ["moveTo", "lineTo", "rect", "arc"].forEach(function(h) {
  16943. B(i, h, p);
  16944. }), c.boostCopy = function() {
  16945. c.renderTarget.attr({ href: c.canvas.toDataURL("image/png") });
  16946. }, c.boostClear = function() {
  16947. i.clearRect(0, 0, c.canvas.width, c.canvas.height), c === this && c.renderTarget.attr({ href: "" });
  16948. }, c.boostClipRect = b.renderer.clipRect(), c.renderTarget.clip(c.boostClipRect)), c.canvas.width !== w && (c.canvas.width = w), c.canvas.height !== x && (c.canvas.height = x), c.renderTarget.attr({ x: 0, y: 0, width: w, height: x, style: "pointer-events: none", href: "" }), c.boostClipRect.attr(b.getBoostClipRect(c)), i;
  16949. }, canvasToSVG: function() {
  16950. this.chart.isChartSeriesBoosting() ? this.boostClear && this.boostClear() : (this.boostCopy || this.chart.boostCopy) && (this.boostCopy || this.chart.boostCopy)();
  16951. }, cvsLineTo: function(b, w, x) {
  16952. b.lineTo(w, x);
  16953. }, renderCanvas: function() {
  16954. var b = this, w = b.options, x = b.chart, a = this.xAxis, c = this.yAxis, p = (x.options.boost || {}).timeRendering || !1, i = 0, h = b.processedXData, o = b.processedYData, t = w.data, s = a.getExtremes(), n = s.min, T = s.max;
  16955. s = c.getExtremes();
  16956. var _ = s.min, D = s.max, W = {}, P, X = !!b.sampling, g = w.marker && w.marker.radius, m = this.cvsDrawPoint, L = w.lineWidth ? this.cvsLineTo : void 0, Y = g && 1 >= g ? this.cvsMarkerSquare : this.cvsMarkerCircle, V = this.cvsStrokeBatch || 1e3, Q = w.enableMouseTracking !== !1, k;
  16957. s = w.threshold;
  16958. var G = c.getThreshold(s), z = u(s), $ = G, q = this.fill, it = b.pointArrayMap && b.pointArrayMap.join(",") === "low,high", et = !!w.stacking, nt = b.cropStart || 0;
  16959. s = x.options.loading;
  16960. var rt = b.requireSorting, ct, gt = w.connectNulls, dt = !h, ht, at, J, tt, ot, lt = et ? b.data : h || t, pt = b.fillOpacity ? y.parse(b.color).setOpacity(O(w.fillOpacity, 0.75)).get() : b.color, yt = function() {
  16961. q ? (Dt.fillStyle = pt, Dt.fill()) : (Dt.strokeStyle = b.color, Dt.lineWidth = w.lineWidth, Dt.stroke());
  16962. }, vt = function(Lt, Nt, Et, Kt) {
  16963. i === 0 && (Dt.beginPath(), L && (Dt.lineJoin = "round")), x.scroller && b.options.className === "highcharts-navigator-series" ? (Nt += x.scroller.top, Et && (Et += x.scroller.top)) : Nt += x.plotTop, Lt += x.plotLeft, ct ? Dt.moveTo(Lt, Nt) : m ? m(Dt, Lt, Nt, Et, k) : L ? L(Dt, Lt, Nt) : Y && Y.call(b, Dt, Lt, Nt, g, Kt), i += 1, i === V && (yt(), i = 0), k = { clientX: Lt, plotY: Nt, yBottom: Et };
  16964. }, Ct = w.findNearestPointBy === "x", Pt = this.xData || this.options.xData || this.processedXData || !1, At = function(Lt, Nt, Et) {
  16965. ot = Ct ? Lt : Lt + "," + Nt, Q && !W[ot] && (W[ot] = !0, x.inverted && (Lt = a.len - Lt, Nt = c.len - Nt), St.push({ x: Pt ? Pt[nt + Et] : !1, clientX: Lt, plotX: Lt, plotY: Nt, i: nt + Et }));
  16966. };
  16967. this.renderTarget && this.renderTarget.attr({ href: "" }), (this.points || this.graph) && this.destroyGraphics(), b.plotGroup("group", "series", b.visible ? "visible" : "hidden", w.zIndex, x.seriesGroup), b.markerGroup = b.group, S(b, "destroy", function() {
  16968. b.markerGroup = null;
  16969. });
  16970. var St = this.points = [], Dt = this.getContext();
  16971. b.buildKDTree = N, this.boostClear && this.boostClear(), this.visible && (99999 < t.length && (x.options.loading = A(s, { labelStyle: {
  16972. backgroundColor: U("#ffffff").setOpacity(0.75).get(),
  16973. padding: "1em",
  16974. borderRadius: "0.5em"
  16975. }, style: { backgroundColor: "none", opacity: 1 } }), H.clearTimeout(C), x.showLoading("Drawing..."), x.options.loading = s), p && console.time("canvas rendering"), j.eachAsync(lt, function(Lt, Nt) {
  16976. var Et = !1, Kt = !1, Gt = !1, Wt = !1, Jt = typeof x.index > "u", be = !0;
  16977. if (!Jt) {
  16978. if (dt) {
  16979. var zt = Lt[0], Vt = Lt[1];
  16980. lt[Nt + 1] && (Gt = lt[Nt + 1][0]), lt[Nt - 1] && (Wt = lt[Nt - 1][0]);
  16981. } else
  16982. zt = Lt, Vt = o[Nt], lt[Nt + 1] && (Gt = lt[Nt + 1]), lt[Nt - 1] && (Wt = lt[Nt - 1]);
  16983. if (Gt && Gt >= n && Gt <= T && (Et = !0), Wt && Wt >= n && Wt <= T && (Kt = !0), it) {
  16984. dt && (Vt = Lt.slice(1, 3));
  16985. var Me = Vt[0];
  16986. Vt = Vt[1];
  16987. } else
  16988. et && (zt = Lt.x, Vt = Lt.stackY, Me = Vt - Lt.y);
  16989. Lt = Vt === null, rt || (be = Vt >= _ && Vt <= D), !Lt && (zt >= n && zt <= T && be || Et || Kt) && (zt = Math.round(a.toPixels(zt, !0)), X ? ((typeof J > "u" || zt === P) && (it || (Me = Vt), (typeof tt > "u" || Vt > at) && (at = Vt, tt = Nt), (typeof J > "u" || Me < ht) && (ht = Me, J = Nt)), zt !== P && (typeof J < "u" && (Vt = c.toPixels(at, !0), G = c.toPixels(ht, !0), vt(zt, z ? Math.min(Vt, $) : Vt, z ? Math.max(G, $) : G, Nt), At(zt, Vt, tt), G !== Vt && At(zt, G, J)), J = tt = void 0, P = zt)) : (Vt = Math.round(c.toPixels(Vt, !0)), vt(zt, Vt, G, Nt), At(zt, Vt, Nt))), ct = Lt && !gt, Nt % 5e4 === 0 && (b.boostCopy || b.chart.boostCopy) && (b.boostCopy || b.chart.boostCopy)();
  16990. }
  16991. return !Jt;
  16992. }, function() {
  16993. var Lt = x.loadingDiv, Nt = x.loadingShown;
  16994. yt(), b.canvasToSVG(), p && console.timeEnd("canvas rendering"), d(b, "renderedCanvas"), Nt && (v(Lt.style, { transition: "opacity 250ms", opacity: 0 }), x.loadingShown = !1, C = setTimeout(function() {
  16995. Lt.parentNode && Lt.parentNode.removeChild(Lt), x.loadingDiv = x.loadingSpan = null;
  16996. }, 250)), delete b.buildKDTree, b.buildKDTree();
  16997. }, x.renderer.forExport ? Number.MAX_VALUE : void 0));
  16998. } }), R.scatter.prototype.cvsMarkerCircle = function(b, w, x, a) {
  16999. b.moveTo(w, x), b.arc(w, x, a, 0, 2 * Math.PI, !1);
  17000. }, R.scatter.prototype.cvsMarkerSquare = function(b, w, x, a) {
  17001. b.rect(w - a, x - a, 2 * a, 2 * a);
  17002. }, R.scatter.prototype.fill = !0, R.bubble && (R.bubble.prototype.cvsMarkerCircle = function(b, w, x, a, c) {
  17003. b.moveTo(w, x), b.arc(w, x, this.radii && this.radii[c], 0, 2 * Math.PI, !1);
  17004. }, R.bubble.prototype.cvsStrokeBatch = 1), v(R.area.prototype, {
  17005. cvsDrawPoint: function(b, w, x, a, c) {
  17006. c && w !== c.clientX && (b.moveTo(c.clientX, c.yBottom), b.lineTo(c.clientX, c.plotY), b.lineTo(w, x), b.lineTo(w, a));
  17007. },
  17008. fill: !0,
  17009. fillOpacity: !0,
  17010. sampling: !0
  17011. }), v(R.column.prototype, { cvsDrawPoint: function(b, w, x, a) {
  17012. b.rect(w - 1, x, 1, a - x);
  17013. }, fill: !0, sampling: !0 }), l.prototype.callbacks.push(function(b) {
  17014. S(b, "predraw", function() {
  17015. b.renderTarget && b.renderTarget.attr({ href: "" }), b.canvas && b.canvas.getContext("2d").clearRect(0, 0, b.canvas.width, b.canvas.height);
  17016. }), S(b, "render", function() {
  17017. b.boostCopy && b.boostCopy();
  17018. });
  17019. });
  17020. };
  17021. }
  17022. ), E(f, "Extensions/Boost/BoostOverrides.js", [
  17023. f["Core/Chart/Chart.js"],
  17024. f["Core/DefaultOptions.js"],
  17025. f["Core/Series/Point.js"],
  17026. f["Core/Series/Series.js"],
  17027. f["Core/Series/SeriesRegistry.js"],
  17028. f["Core/Utilities.js"],
  17029. f["Extensions/Boost/BoostUtils.js"],
  17030. f["Extensions/Boost/Boostables.js"],
  17031. f["Extensions/Boost/BoostableMap.js"]
  17032. ], function(l, y, j, I, Z, H, U, F, N) {
  17033. y = y.getOptions;
  17034. var R = Z.seriesTypes;
  17035. Z = H.addEvent;
  17036. var S = H.error, v = H.isArray, d = H.isNumber, u = H.pick, A = H.wrap, O = U.boostEnabled, B = U.shouldForceChartSeriesBoosting, C = y().plotOptions;
  17037. l.prototype.isChartSeriesBoosting = function() {
  17038. return u(this.options.boost && this.options.boost.seriesThreshold, 50) <= this.series.length || B(this);
  17039. }, l.prototype.getBoostClipRect = function(b) {
  17040. var w = { x: this.plotLeft, y: this.plotTop, width: this.plotWidth, height: this.plotHeight };
  17041. return b === this && (b = this.inverted ? this.xAxis : this.yAxis, 1 >= b.length ? (w.y = Math.min(b[0].pos, w.y), w.height = b[0].pos - this.plotTop + b[0].len) : w.height = this.plotHeight), w;
  17042. }, I.prototype.getPoint = function(b) {
  17043. var w = b, x = this.xData || this.options.xData || this.processedXData || !1;
  17044. return !b || b instanceof this.pointClass || (w = new this.pointClass().init(this, this.options.data[b.i], x ? x[b.i] : void 0), w.category = u(this.xAxis.categories ? this.xAxis.categories[w.x] : w.x, w.x), w.dist = b.dist, w.distX = b.distX, w.plotX = b.plotX, w.plotY = b.plotY, w.index = b.i, w.isInside = this.isPointInside(b)), w;
  17045. }, A(I.prototype, "searchPoint", function(b) {
  17046. return this.getPoint(b.apply(this, [].slice.call(arguments, 1)));
  17047. }), A(j.prototype, "haloPath", function(b) {
  17048. var w = this.series, x = this.plotX, a = this.plotY, c = w.chart.inverted;
  17049. w.isSeriesBoosting && c && (this.plotX = w.yAxis.len - a, this.plotY = w.xAxis.len - x);
  17050. var p = b.apply(this, Array.prototype.slice.call(
  17051. arguments,
  17052. 1
  17053. ));
  17054. return w.isSeriesBoosting && c && (this.plotX = x, this.plotY = a), p;
  17055. }), A(I.prototype, "markerAttribs", function(b, w) {
  17056. var x = w.plotX, a = w.plotY, c = this.chart.inverted;
  17057. this.isSeriesBoosting && c && (w.plotX = this.yAxis.len - a, w.plotY = this.xAxis.len - x);
  17058. var p = b.apply(this, Array.prototype.slice.call(arguments, 1));
  17059. return this.isSeriesBoosting && c && (w.plotX = x, w.plotY = a), p;
  17060. }), Z(I, "destroy", function() {
  17061. var b = this, w = b.chart;
  17062. w.markerGroup === b.markerGroup && (b.markerGroup = null), w.hoverPoints && (w.hoverPoints = w.hoverPoints.filter(function(x) {
  17063. return x.series === b;
  17064. })), w.hoverPoint && w.hoverPoint.series === b && (w.hoverPoint = null);
  17065. }), A(I.prototype, "getExtremes", function(b) {
  17066. return this.isSeriesBoosting && this.hasExtremes && this.hasExtremes() ? {} : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17067. }), ["translate", "generatePoints", "drawTracker", "drawPoints", "render"].forEach(function(b) {
  17068. function w(x) {
  17069. var a = this.options.stacking && (b === "translate" || b === "generatePoints");
  17070. !this.isSeriesBoosting || a || !O(this.chart) || this.type === "heatmap" || this.type === "treemap" || !N[this.type] || this.options.boostThreshold === 0 ? x.call(this) : this[b + "Canvas"] && this[b + "Canvas"]();
  17071. }
  17072. A(I.prototype, b, w), b === "translate" && "column bar arearange columnrange heatmap treemap".split(" ").forEach(function(x) {
  17073. R[x] && A(R[x].prototype, b, w);
  17074. });
  17075. }), A(I.prototype, "processData", function(b) {
  17076. function w(c) {
  17077. return x.forceCrop ? !1 : x.chart.isChartSeriesBoosting() || (c ? c.length : 0) >= (x.options.boostThreshold || Number.MAX_VALUE);
  17078. }
  17079. var x = this, a = this.options.data;
  17080. O(this.chart) && N[this.type] ? (w(a) && this.type !== "heatmap" && this.type !== "treemap" && !this.options.stacking && this.hasExtremes && this.hasExtremes(!0) || (b.apply(this, Array.prototype.slice.call(arguments, 1)), a = this.processedXData), (this.isSeriesBoosting = w(a)) ? (a = void 0, this.options.data && this.options.data.length && (a = this.getFirstValidPoint(this.options.data), d(a) || v(a) || S(12, !1, this.chart)), this.enterBoost()) : this.exitBoost && this.exitBoost()) : b.apply(this, Array.prototype.slice.call(arguments, 1));
  17081. }), Z(I, "hide", function() {
  17082. this.canvas && this.renderTarget && (this.ogl && this.ogl.clear(), this.boostClear());
  17083. }), I.prototype.enterBoost = function() {
  17084. this.alteredByBoost = [], ["allowDG", "directTouch", "stickyTracking"].forEach(function(b) {
  17085. this.alteredByBoost.push({ prop: b, val: this[b], own: Object.hasOwnProperty.call(this, b) });
  17086. }, this), this.directTouch = this.allowDG = !1, this.finishedAnimating = this.stickyTracking = !0, this.labelBySeries && (this.labelBySeries = this.labelBySeries.destroy());
  17087. }, I.prototype.exitBoost = function() {
  17088. (this.alteredByBoost || []).forEach(
  17089. function(b) {
  17090. b.own ? this[b.prop] = b.val : delete this[b.prop];
  17091. },
  17092. this
  17093. ), this.boostClear && this.boostClear();
  17094. }, I.prototype.hasExtremes = function(b) {
  17095. var w = this.options, x = this.xAxis && this.xAxis.options, a = this.yAxis && this.yAxis.options, c = this.colorAxis && this.colorAxis.options;
  17096. return w.data.length > (w.boostThreshold || Number.MAX_VALUE) && d(a.min) && d(a.max) && (!b || d(x.min) && d(x.max)) && (!c || d(c.min) && d(c.max));
  17097. }, I.prototype.destroyGraphics = function() {
  17098. var b = this, w = this, x = this.points, a, c;
  17099. if (x)
  17100. for (c = 0; c < x.length; c += 1)
  17101. (a = x[c]) && a.destroyElements && a.destroyElements();
  17102. [
  17103. "graph",
  17104. "area",
  17105. "tracker"
  17106. ].forEach(function(p) {
  17107. w[p] && (w[p] = w[p].destroy());
  17108. }), this.getZonesGraphs && this.getZonesGraphs([["graph", "highcharts-graph"]]).forEach(function(p) {
  17109. var i = b[p[0]];
  17110. i && (b[p[0]] = i.destroy());
  17111. });
  17112. }, F.forEach(function(b) {
  17113. C[b] && (C[b].boostThreshold = 5e3, C[b].boostData = [], R[b].prototype.fillOpacity = !0);
  17114. });
  17115. }), E(f, "Extensions/Boost/NamedColors.js", [f["Core/Color/Color.js"]], function(l) {
  17116. var y = {
  17117. aliceblue: "#f0f8ff",
  17118. antiquewhite: "#faebd7",
  17119. aqua: "#00ffff",
  17120. aquamarine: "#7fffd4",
  17121. azure: "#f0ffff",
  17122. beige: "#f5f5dc",
  17123. bisque: "#ffe4c4",
  17124. black: "#000000",
  17125. blanchedalmond: "#ffebcd",
  17126. blue: "#0000ff",
  17127. blueviolet: "#8a2be2",
  17128. brown: "#a52a2a",
  17129. burlywood: "#deb887",
  17130. cadetblue: "#5f9ea0",
  17131. chartreuse: "#7fff00",
  17132. chocolate: "#d2691e",
  17133. coral: "#ff7f50",
  17134. cornflowerblue: "#6495ed",
  17135. cornsilk: "#fff8dc",
  17136. crimson: "#dc143c",
  17137. cyan: "#00ffff",
  17138. darkblue: "#00008b",
  17139. darkcyan: "#008b8b",
  17140. darkgoldenrod: "#b8860b",
  17141. darkgray: "#a9a9a9",
  17142. darkgreen: "#006400",
  17143. darkkhaki: "#bdb76b",
  17144. darkmagenta: "#8b008b",
  17145. darkolivegreen: "#556b2f",
  17146. darkorange: "#ff8c00",
  17147. darkorchid: "#9932cc",
  17148. darkred: "#8b0000",
  17149. darksalmon: "#e9967a",
  17150. darkseagreen: "#8fbc8f",
  17151. darkslateblue: "#483d8b",
  17152. darkslategray: "#2f4f4f",
  17153. darkturquoise: "#00ced1",
  17154. darkviolet: "#9400d3",
  17155. deeppink: "#ff1493",
  17156. deepskyblue: "#00bfff",
  17157. dimgray: "#696969",
  17158. dodgerblue: "#1e90ff",
  17159. feldspar: "#d19275",
  17160. firebrick: "#b22222",
  17161. floralwhite: "#fffaf0",
  17162. forestgreen: "#228b22",
  17163. fuchsia: "#ff00ff",
  17164. gainsboro: "#dcdcdc",
  17165. ghostwhite: "#f8f8ff",
  17166. gold: "#ffd700",
  17167. goldenrod: "#daa520",
  17168. gray: "#808080",
  17169. green: "#008000",
  17170. greenyellow: "#adff2f",
  17171. honeydew: "#f0fff0",
  17172. hotpink: "#ff69b4",
  17173. indianred: "#cd5c5c",
  17174. indigo: "#4b0082",
  17175. ivory: "#fffff0",
  17176. khaki: "#f0e68c",
  17177. lavender: "#e6e6fa",
  17178. lavenderblush: "#fff0f5",
  17179. lawngreen: "#7cfc00",
  17180. lemonchiffon: "#fffacd",
  17181. lightblue: "#add8e6",
  17182. lightcoral: "#f08080",
  17183. lightcyan: "#e0ffff",
  17184. lightgoldenrodyellow: "#fafad2",
  17185. lightgrey: "#d3d3d3",
  17186. lightgreen: "#90ee90",
  17187. lightpink: "#ffb6c1",
  17188. lightsalmon: "#ffa07a",
  17189. lightseagreen: "#20b2aa",
  17190. lightskyblue: "#87cefa",
  17191. lightslateblue: "#8470ff",
  17192. lightslategray: "#778899",
  17193. lightsteelblue: "#b0c4de",
  17194. lightyellow: "#ffffe0",
  17195. lime: "#00ff00",
  17196. limegreen: "#32cd32",
  17197. linen: "#faf0e6",
  17198. magenta: "#ff00ff",
  17199. maroon: "#800000",
  17200. mediumaquamarine: "#66cdaa",
  17201. mediumblue: "#0000cd",
  17202. mediumorchid: "#ba55d3",
  17203. mediumpurple: "#9370d8",
  17204. mediumseagreen: "#3cb371",
  17205. mediumslateblue: "#7b68ee",
  17206. mediumspringgreen: "#00fa9a",
  17207. mediumturquoise: "#48d1cc",
  17208. mediumvioletred: "#c71585",
  17209. midnightblue: "#191970",
  17210. mintcream: "#f5fffa",
  17211. mistyrose: "#ffe4e1",
  17212. moccasin: "#ffe4b5",
  17213. navajowhite: "#ffdead",
  17214. navy: "#000080",
  17215. oldlace: "#fdf5e6",
  17216. olive: "#808000",
  17217. olivedrab: "#6b8e23",
  17218. orange: "#ffa500",
  17219. orangered: "#ff4500",
  17220. orchid: "#da70d6",
  17221. palegoldenrod: "#eee8aa",
  17222. palegreen: "#98fb98",
  17223. paleturquoise: "#afeeee",
  17224. palevioletred: "#d87093",
  17225. papayawhip: "#ffefd5",
  17226. peachpuff: "#ffdab9",
  17227. peru: "#cd853f",
  17228. pink: "#ffc0cb",
  17229. plum: "#dda0dd",
  17230. powderblue: "#b0e0e6",
  17231. purple: "#800080",
  17232. red: "#ff0000",
  17233. rosybrown: "#bc8f8f",
  17234. royalblue: "#4169e1",
  17235. saddlebrown: "#8b4513",
  17236. salmon: "#fa8072",
  17237. sandybrown: "#f4a460",
  17238. seagreen: "#2e8b57",
  17239. seashell: "#fff5ee",
  17240. sienna: "#a0522d",
  17241. silver: "#c0c0c0",
  17242. skyblue: "#87ceeb",
  17243. slateblue: "#6a5acd",
  17244. slategray: "#708090",
  17245. snow: "#fffafa",
  17246. springgreen: "#00ff7f",
  17247. steelblue: "#4682b4",
  17248. tan: "#d2b48c",
  17249. teal: "#008080",
  17250. thistle: "#d8bfd8",
  17251. tomato: "#ff6347",
  17252. turquoise: "#40e0d0",
  17253. violet: "#ee82ee",
  17254. violetred: "#d02090",
  17255. wheat: "#f5deb3",
  17256. white: "#ffffff",
  17257. whitesmoke: "#f5f5f5",
  17258. yellow: "#ffff00",
  17259. yellowgreen: "#9acd32"
  17260. };
  17261. return l.names = y;
  17262. }), E(f, "Extensions/Boost/Boost.js", [f["Extensions/Boost/BoostUtils.js"], f["Extensions/Boost/BoostInit.js"], f["Extensions/BoostCanvas.js"], f["Core/Utilities.js"]], function(l, y, j, I) {
  17263. I = I.error, l = l.hasWebGLSupport, l() ? y() : typeof j < "u" ? j() : I(26);
  17264. }), E(f, "masters/modules/boost.src.js", [], function() {
  17265. });
  17266. });
  17267. })(R0);
  17268. const N0 = ml, B0 = (r) => {
  17269. let f = window.location.protocol;
  17270. /^http(s)?:&/.test(f) || (f = "http:");
  17271. let E = {
  17272. lang: {
  17273. // Highcharts
  17274. contextButtonTitle: "图表导出菜单",
  17275. decimalPoint: ".",
  17276. downloadJPEG: "下载 JPEG 图片",
  17277. downloadPDF: "下载 PDF 文件",
  17278. downloadPNG: "下载 PNG 文件",
  17279. downloadSVG: "下载 SVG 文件",
  17280. downloadXLS: "下载 XLS 文件",
  17281. drillUpText: "◁ 返回 {series.name}",
  17282. exitFullscreen: "退出全屏",
  17283. exportData: {
  17284. categoryDatetimeHeader: "时间",
  17285. categoryHeader: "类别"
  17286. },
  17287. openInCloud: "在 Highcharts Cloud 中打开",
  17288. invalidDate: "无效的时间",
  17289. loading: "加载中...",
  17290. months: [
  17291. "一月",
  17292. "二月",
  17293. "三月",
  17294. "四月",
  17295. "五月",
  17296. "六月",
  17297. "七月",
  17298. "八月",
  17299. "九月",
  17300. "十月",
  17301. "十一月",
  17302. "十二月"
  17303. ],
  17304. navigation: {
  17305. popup: {
  17306. addButton: "新增",
  17307. arrowLine: "直线",
  17308. arrowRay: "射线",
  17309. arrowSegment: "线段",
  17310. background: "背景",
  17311. backgroundColor: "背景颜色",
  17312. backgroundColors: "背景颜色",
  17313. borderColor: "边框颜色",
  17314. borderRadius: "圆角",
  17315. borderWidth: "边框大小",
  17316. circle: "圆",
  17317. color: "颜色",
  17318. connector: "连接",
  17319. crooked3: "Crooked 3 line",
  17320. crooked5: "Crooked 5 line",
  17321. crosshairX: "竖直准星线",
  17322. crosshairY: "水平准星线",
  17323. editButton: "编辑",
  17324. elliott3: "Elliott 3 line",
  17325. elliott5: "Elliott 5 line",
  17326. fibonacci: "斐波纳契",
  17327. fill: "填充颜色",
  17328. flags: "标志",
  17329. fontSize: "字体大小",
  17330. format: "文本",
  17331. height: "高度",
  17332. horizontalLine: "水平线",
  17333. infinityLine: "无限线",
  17334. innerBackground: "内背景",
  17335. label: "文字标签",
  17336. labelOptions: "文字标签配置",
  17337. labels: "文字标签",
  17338. line: "线",
  17339. lines: "线条",
  17340. measure: "Measure",
  17341. measureX: "Measure X",
  17342. measureXY: "Measure XY",
  17343. measureY: "Measure Y",
  17344. name: "名字",
  17345. outerBackground: "外背景",
  17346. padding: "内间距",
  17347. parallelChannel: "并行通道",
  17348. pitchfork: "杈子",
  17349. ray: "射线",
  17350. rectangle: "矩形",
  17351. removeButton: "删除",
  17352. saveButton: "保存",
  17353. segment: "段落",
  17354. series: "数据列",
  17355. shapeOptions: "图形配置",
  17356. shapes: "图形",
  17357. simpleShapes: "简单图形",
  17358. stroke: "线条颜色",
  17359. strokeWidth: "线条粗细",
  17360. style: "样式",
  17361. title: "标题",
  17362. tunnel: "通道",
  17363. typeOptions: "详情",
  17364. verticalArrow: "竖直箭头",
  17365. verticalCounter: "竖直计数器",
  17366. verticalLabel: "竖直标签",
  17367. verticalLine: "竖直线",
  17368. volume: "成交量"
  17369. }
  17370. },
  17371. noData: "暂无数据",
  17372. numericSymbols: null,
  17373. printChart: "打印图表",
  17374. resetZoom: "重置缩放比例",
  17375. resetZoomTitle: "重置为原始大小",
  17376. shortMonths: [
  17377. "一月",
  17378. "二月",
  17379. "三月",
  17380. "四月",
  17381. "五月",
  17382. "六月",
  17383. "七月",
  17384. "八月",
  17385. "九月",
  17386. "十月",
  17387. "十一月",
  17388. "十二月"
  17389. ],
  17390. thousandsSep: ",",
  17391. viewData: "查看数据表格",
  17392. viewFullscreen: "全屏查看",
  17393. weekdays: [
  17394. "星期天",
  17395. "星期一",
  17396. "星期二",
  17397. "星期三",
  17398. "星期四",
  17399. "星期五",
  17400. "星期六"
  17401. ],
  17402. viewData: "查看数据表格",
  17403. // Highstock
  17404. rangeSelectorFrom: "开始时间",
  17405. rangeSelectorTo: "结束时间",
  17406. rangeSelectorZoom: "范围",
  17407. // Highmaps
  17408. zoomIn: "缩小",
  17409. zoomOut: "放大"
  17410. },
  17411. global: {
  17412. // 不使用 UTC时间
  17413. useUTC: !1,
  17414. timezoneOffset: -8 * 60,
  17415. canvasToolsURL: f + "//cdn.hcharts.cn/highcharts/modules/canvas-tools.js",
  17416. VMLRadialGradientURL: f + +"//cdn.hcharts.cn/highcharts/gfx/vml-radial-gradient.png"
  17417. },
  17418. exporting: {
  17419. url: f + "//export.highcharts.com.cn"
  17420. },
  17421. credits: {
  17422. text: "Highcharts.com.cn",
  17423. href: "https://www.highcharts.com.cn"
  17424. },
  17425. /**
  17426. * Highstock
  17427. */
  17428. rangeSelector: {
  17429. inputDateFormat: "%Y-%m-%d",
  17430. buttons: [
  17431. {
  17432. type: "month",
  17433. count: 1,
  17434. text: "月"
  17435. },
  17436. {
  17437. type: "month",
  17438. count: 3,
  17439. text: "季度"
  17440. },
  17441. {
  17442. type: "month",
  17443. count: 6,
  17444. text: "半年"
  17445. },
  17446. {
  17447. type: "ytd",
  17448. text: "YTD"
  17449. },
  17450. {
  17451. type: "year",
  17452. count: 1,
  17453. text: "年"
  17454. },
  17455. {
  17456. type: "all",
  17457. text: "所有"
  17458. }
  17459. ]
  17460. },
  17461. plotOptions: {
  17462. series: {
  17463. dataGrouping: {
  17464. dateTimeLabelFormats: {
  17465. /* millisecond: [
  17466. '%Y-%m-%d %H:%M:%S.%L',
  17467. '%Y-%m-%d %H:%M:%S.%L',
  17468. ' ~ %H:%M:%S.%L',
  17469. ],
  17470. second: ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S', ' ~ %H:%M:%S'],
  17471. minute: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'],
  17472. hour: ['%Y-%m-%d %H:%M', '%Y-%m-%d %H:%M', ' ~ %H:%M'], */
  17473. day: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17474. week: ["%Y/%m/%d", "%Y/%m/%d", " ~ %Y/%m/%d"],
  17475. month: ["%Y/%m", "%Y/%m", " ~ %Y/%m"],
  17476. year: ["%Y", "%Y", " ~ %Y"]
  17477. }
  17478. }
  17479. }
  17480. }
  17481. };
  17482. r.setOptions(E);
  17483. };
  17484. //! moment.js
  17485. //! version : 2.29.4
  17486. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  17487. //! license : MIT
  17488. //! momentjs.com
  17489. var Zp;
  17490. function Xt() {
  17491. return Zp.apply(null, arguments);
  17492. }
  17493. function j0(r) {
  17494. Zp = r;
  17495. }
  17496. function ji(r) {
  17497. return r instanceof Array || Object.prototype.toString.call(r) === "[object Array]";
  17498. }
  17499. function Zr(r) {
  17500. return r != null && Object.prototype.toString.call(r) === "[object Object]";
  17501. }
  17502. function me(r, f) {
  17503. return Object.prototype.hasOwnProperty.call(r, f);
  17504. }
  17505. function Pl(r) {
  17506. if (Object.getOwnPropertyNames)
  17507. return Object.getOwnPropertyNames(r).length === 0;
  17508. var f;
  17509. for (f in r)
  17510. if (me(r, f))
  17511. return !1;
  17512. return !0;
  17513. }
  17514. function hi(r) {
  17515. return r === void 0;
  17516. }
  17517. function ur(r) {
  17518. return typeof r == "number" || Object.prototype.toString.call(r) === "[object Number]";
  17519. }
  17520. function ss(r) {
  17521. return r instanceof Date || Object.prototype.toString.call(r) === "[object Date]";
  17522. }
  17523. function Kp(r, f) {
  17524. var E = [], l, y = r.length;
  17525. for (l = 0; l < y; ++l)
  17526. E.push(f(r[l], l));
  17527. return E;
  17528. }
  17529. function Er(r, f) {
  17530. for (var E in f)
  17531. me(f, E) && (r[E] = f[E]);
  17532. return me(f, "toString") && (r.toString = f.toString), me(f, "valueOf") && (r.valueOf = f.valueOf), r;
  17533. }
  17534. function $i(r, f, E, l) {
  17535. return bu(r, f, E, l, !0).utc();
  17536. }
  17537. function W0() {
  17538. return {
  17539. empty: !1,
  17540. unusedTokens: [],
  17541. unusedInput: [],
  17542. overflow: -2,
  17543. charsLeftOver: 0,
  17544. nullInput: !1,
  17545. invalidEra: null,
  17546. invalidMonth: null,
  17547. invalidFormat: !1,
  17548. userInvalidated: !1,
  17549. iso: !1,
  17550. parsedDateParts: [],
  17551. era: null,
  17552. meridiem: null,
  17553. rfc2822: !1,
  17554. weekdayMismatch: !1
  17555. };
  17556. }
  17557. function se(r) {
  17558. return r._pf == null && (r._pf = W0()), r._pf;
  17559. }
  17560. var yl;
  17561. Array.prototype.some ? yl = Array.prototype.some : yl = function(r) {
  17562. var f = Object(this), E = f.length >>> 0, l;
  17563. for (l = 0; l < E; l++)
  17564. if (l in f && r.call(this, f[l], l, f))
  17565. return !0;
  17566. return !1;
  17567. };
  17568. function El(r) {
  17569. if (r._isValid == null) {
  17570. var f = se(r), E = yl.call(f.parsedDateParts, function(y) {
  17571. return y != null;
  17572. }), l = !isNaN(r._d.getTime()) && f.overflow < 0 && !f.empty && !f.invalidEra && !f.invalidMonth && !f.invalidWeekday && !f.weekdayMismatch && !f.nullInput && !f.invalidFormat && !f.userInvalidated && (!f.meridiem || f.meridiem && E);
  17573. if (r._strict && (l = l && f.charsLeftOver === 0 && f.unusedTokens.length === 0 && f.bigHour === void 0), Object.isFrozen == null || !Object.isFrozen(r))
  17574. r._isValid = l;
  17575. else
  17576. return l;
  17577. }
  17578. return r._isValid;
  17579. }
  17580. function ko(r) {
  17581. var f = $i(NaN);
  17582. return r != null ? Er(se(f), r) : se(f).userInvalidated = !0, f;
  17583. }
  17584. var Op = Xt.momentProperties = [], el = !1;
  17585. function Ol(r, f) {
  17586. var E, l, y, j = Op.length;
  17587. if (hi(f._isAMomentObject) || (r._isAMomentObject = f._isAMomentObject), hi(f._i) || (r._i = f._i), hi(f._f) || (r._f = f._f), hi(f._l) || (r._l = f._l), hi(f._strict) || (r._strict = f._strict), hi(f._tzm) || (r._tzm = f._tzm), hi(f._isUTC) || (r._isUTC = f._isUTC), hi(f._offset) || (r._offset = f._offset), hi(f._pf) || (r._pf = se(f)), hi(f._locale) || (r._locale = f._locale), j > 0)
  17588. for (E = 0; E < j; E++)
  17589. l = Op[E], y = f[l], hi(y) || (r[l] = y);
  17590. return r;
  17591. }
  17592. function os(r) {
  17593. Ol(this, r), this._d = new Date(r._d != null ? r._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), el === !1 && (el = !0, Xt.updateOffset(this), el = !1);
  17594. }
  17595. function Wi(r) {
  17596. return r instanceof os || r != null && r._isAMomentObject != null;
  17597. }
  17598. function Jp(r) {
  17599. Xt.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + r);
  17600. }
  17601. function Oi(r, f) {
  17602. var E = !0;
  17603. return Er(function() {
  17604. if (Xt.deprecationHandler != null && Xt.deprecationHandler(null, r), E) {
  17605. var l = [], y, j, I, Z = arguments.length;
  17606. for (j = 0; j < Z; j++) {
  17607. if (y = "", typeof arguments[j] == "object") {
  17608. y += `
  17609. [` + j + "] ";
  17610. for (I in arguments[0])
  17611. me(arguments[0], I) && (y += I + ": " + arguments[0][I] + ", ");
  17612. y = y.slice(0, -2);
  17613. } else
  17614. y = arguments[j];
  17615. l.push(y);
  17616. }
  17617. Jp(
  17618. r + `
  17619. Arguments: ` + Array.prototype.slice.call(l).join("") + `
  17620. ` + new Error().stack
  17621. ), E = !1;
  17622. }
  17623. return f.apply(this, arguments);
  17624. }, f);
  17625. }
  17626. var Lp = {};
  17627. function qp(r, f) {
  17628. Xt.deprecationHandler != null && Xt.deprecationHandler(r, f), Lp[r] || (Jp(f), Lp[r] = !0);
  17629. }
  17630. Xt.suppressDeprecationWarnings = !1;
  17631. Xt.deprecationHandler = null;
  17632. function Zi(r) {
  17633. return typeof Function < "u" && r instanceof Function || Object.prototype.toString.call(r) === "[object Function]";
  17634. }
  17635. function z0(r) {
  17636. var f, E;
  17637. for (E in r)
  17638. me(r, E) && (f = r[E], Zi(f) ? this[E] = f : this["_" + E] = f);
  17639. this._config = r, this._dayOfMonthOrdinalParseLenient = new RegExp(
  17640. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
  17641. );
  17642. }
  17643. function vl(r, f) {
  17644. var E = Er({}, r), l;
  17645. for (l in f)
  17646. me(f, l) && (Zr(r[l]) && Zr(f[l]) ? (E[l] = {}, Er(E[l], r[l]), Er(E[l], f[l])) : f[l] != null ? E[l] = f[l] : delete E[l]);
  17647. for (l in r)
  17648. me(r, l) && !me(f, l) && Zr(r[l]) && (E[l] = Er({}, E[l]));
  17649. return E;
  17650. }
  17651. function Ll(r) {
  17652. r != null && this.set(r);
  17653. }
  17654. var xl;
  17655. Object.keys ? xl = Object.keys : xl = function(r) {
  17656. var f, E = [];
  17657. for (f in r)
  17658. me(r, f) && E.push(f);
  17659. return E;
  17660. };
  17661. var Y0 = {
  17662. sameDay: "[Today at] LT",
  17663. nextDay: "[Tomorrow at] LT",
  17664. nextWeek: "dddd [at] LT",
  17665. lastDay: "[Yesterday at] LT",
  17666. lastWeek: "[Last] dddd [at] LT",
  17667. sameElse: "L"
  17668. };
  17669. function X0(r, f, E) {
  17670. var l = this._calendar[r] || this._calendar.sameElse;
  17671. return Zi(l) ? l.call(f, E) : l;
  17672. }
  17673. function Vi(r, f, E) {
  17674. var l = "" + Math.abs(r), y = f - l.length, j = r >= 0;
  17675. return (j ? E ? "+" : "" : "-") + Math.pow(10, Math.max(0, y)).toString().substr(1) + l;
  17676. }
  17677. var _l = /(\[[^\[]*\])|(\\)?([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, io = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, il = {}, vn = {};
  17678. function Zt(r, f, E, l) {
  17679. var y = l;
  17680. typeof l == "string" && (y = function() {
  17681. return this[l]();
  17682. }), r && (vn[r] = y), f && (vn[f[0]] = function() {
  17683. return Vi(y.apply(this, arguments), f[1], f[2]);
  17684. }), E && (vn[E] = function() {
  17685. return this.localeData().ordinal(
  17686. y.apply(this, arguments),
  17687. r
  17688. );
  17689. });
  17690. }
  17691. function G0(r) {
  17692. return r.match(/\[[\s\S]/) ? r.replace(/^\[|\]$/g, "") : r.replace(/\\/g, "");
  17693. }
  17694. function H0(r) {
  17695. var f = r.match(_l), E, l;
  17696. for (E = 0, l = f.length; E < l; E++)
  17697. vn[f[E]] ? f[E] = vn[f[E]] : f[E] = G0(f[E]);
  17698. return function(y) {
  17699. var j = "", I;
  17700. for (I = 0; I < l; I++)
  17701. j += Zi(f[I]) ? f[I].call(y, r) : f[I];
  17702. return j;
  17703. };
  17704. }
  17705. function so(r, f) {
  17706. return r.isValid() ? (f = Qp(f, r.localeData()), il[f] = il[f] || H0(f), il[f](r)) : r.localeData().invalidDate();
  17707. }
  17708. function Qp(r, f) {
  17709. var E = 5;
  17710. function l(y) {
  17711. return f.longDateFormat(y) || y;
  17712. }
  17713. for (io.lastIndex = 0; E >= 0 && io.test(r); )
  17714. r = r.replace(
  17715. io,
  17716. l
  17717. ), io.lastIndex = 0, E -= 1;
  17718. return r;
  17719. }
  17720. var F0 = {
  17721. LTS: "h:mm:ss A",
  17722. LT: "h:mm A",
  17723. L: "MM/DD/YYYY",
  17724. LL: "MMMM D, YYYY",
  17725. LLL: "MMMM D, YYYY h:mm A",
  17726. LLLL: "dddd, MMMM D, YYYY h:mm A"
  17727. };
  17728. function U0(r) {
  17729. var f = this._longDateFormat[r], E = this._longDateFormat[r.toUpperCase()];
  17730. return f || !E ? f : (this._longDateFormat[r] = E.match(_l).map(function(l) {
  17731. return l === "MMMM" || l === "MM" || l === "DD" || l === "dddd" ? l.slice(1) : l;
  17732. }).join(""), this._longDateFormat[r]);
  17733. }
  17734. var V0 = "Invalid date";
  17735. function $0() {
  17736. return this._invalidDate;
  17737. }
  17738. var Z0 = "%d", K0 = /\d{1,2}/;
  17739. function J0(r) {
  17740. return this._ordinal.replace("%d", r);
  17741. }
  17742. var q0 = {
  17743. future: "in %s",
  17744. past: "%s ago",
  17745. s: "a few seconds",
  17746. ss: "%d seconds",
  17747. m: "a minute",
  17748. mm: "%d minutes",
  17749. h: "an hour",
  17750. hh: "%d hours",
  17751. d: "a day",
  17752. dd: "%d days",
  17753. w: "a week",
  17754. ww: "%d weeks",
  17755. M: "a month",
  17756. MM: "%d months",
  17757. y: "a year",
  17758. yy: "%d years"
  17759. };
  17760. function Q0(r, f, E, l) {
  17761. var y = this._relativeTime[E];
  17762. return Zi(y) ? y(r, f, E, l) : y.replace(/%d/i, r);
  17763. }
  17764. function t1(r, f) {
  17765. var E = this._relativeTime[r > 0 ? "future" : "past"];
  17766. return Zi(E) ? E(f) : E.replace(/%s/i, f);
  17767. }
  17768. var Jn = {};
  17769. function ti(r, f) {
  17770. var E = r.toLowerCase();
  17771. Jn[E] = Jn[E + "s"] = Jn[f] = r;
  17772. }
  17773. function Li(r) {
  17774. return typeof r == "string" ? Jn[r] || Jn[r.toLowerCase()] : void 0;
  17775. }
  17776. function Dl(r) {
  17777. var f = {}, E, l;
  17778. for (l in r)
  17779. me(r, l) && (E = Li(l), E && (f[E] = r[l]));
  17780. return f;
  17781. }
  17782. var tu = {};
  17783. function ei(r, f) {
  17784. tu[r] = f;
  17785. }
  17786. function e1(r) {
  17787. var f = [], E;
  17788. for (E in r)
  17789. me(r, E) && f.push({ unit: E, priority: tu[E] });
  17790. return f.sort(function(l, y) {
  17791. return l.priority - y.priority;
  17792. }), f;
  17793. }
  17794. function Ao(r) {
  17795. return r % 4 === 0 && r % 100 !== 0 || r % 400 === 0;
  17796. }
  17797. function Ti(r) {
  17798. return r < 0 ? Math.ceil(r) || 0 : Math.floor(r);
  17799. }
  17800. function le(r) {
  17801. var f = +r, E = 0;
  17802. return f !== 0 && isFinite(f) && (E = Ti(f)), E;
  17803. }
  17804. function Cn(r, f) {
  17805. return function(E) {
  17806. return E != null ? (eu(this, r, E), Xt.updateOffset(this, f), this) : mo(this, r);
  17807. };
  17808. }
  17809. function mo(r, f) {
  17810. return r.isValid() ? r._d["get" + (r._isUTC ? "UTC" : "") + f]() : NaN;
  17811. }
  17812. function eu(r, f, E) {
  17813. r.isValid() && !isNaN(E) && (f === "FullYear" && Ao(r.year()) && r.month() === 1 && r.date() === 29 ? (E = le(E), r._d["set" + (r._isUTC ? "UTC" : "") + f](
  17814. E,
  17815. r.month(),
  17816. _o(E, r.month())
  17817. )) : r._d["set" + (r._isUTC ? "UTC" : "") + f](E));
  17818. }
  17819. function i1(r) {
  17820. return r = Li(r), Zi(this[r]) ? this[r]() : this;
  17821. }
  17822. function r1(r, f) {
  17823. if (typeof r == "object") {
  17824. r = Dl(r);
  17825. var E = e1(r), l, y = E.length;
  17826. for (l = 0; l < y; l++)
  17827. this[E[l].unit](r[E[l].unit]);
  17828. } else if (r = Li(r), Zi(this[r]))
  17829. return this[r](f);
  17830. return this;
  17831. }
  17832. var iu = /\d/, vi = /\d\d/, ru = /\d{3}/, Il = /\d{4}/, To = /[+-]?\d{6}/, Pe = /\d\d?/, nu = /\d\d\d\d?/, su = /\d\d\d\d\d\d?/, Po = /\d{1,3}/, Rl = /\d{1,4}/, Eo = /[+-]?\d{1,6}/, kn = /\d+/, Oo = /[+-]?\d+/, n1 = /Z|[+-]\d\d:?\d\d/gi, Lo = /Z|[+-]\d\d(?::?\d\d)?/gi, s1 = /[+-]?\d+(\.\d{1,3})?/, as = /[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, yo;
  17833. yo = {};
  17834. function Ft(r, f, E) {
  17835. yo[r] = Zi(f) ? f : function(l, y) {
  17836. return l && E ? E : f;
  17837. };
  17838. }
  17839. function o1(r, f) {
  17840. return me(yo, r) ? yo[r](f._strict, f._locale) : new RegExp(a1(r));
  17841. }
  17842. function a1(r) {
  17843. return yi(
  17844. r.replace("\\", "").replace(
  17845. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  17846. function(f, E, l, y, j) {
  17847. return E || l || y || j;
  17848. }
  17849. )
  17850. );
  17851. }
  17852. function yi(r) {
  17853. return r.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
  17854. }
  17855. var bl = {};
  17856. function we(r, f) {
  17857. var E, l = f, y;
  17858. for (typeof r == "string" && (r = [r]), ur(f) && (l = function(j, I) {
  17859. I[f] = le(j);
  17860. }), y = r.length, E = 0; E < y; E++)
  17861. bl[r[E]] = l;
  17862. }
  17863. function ls(r, f) {
  17864. we(r, function(E, l, y, j) {
  17865. y._w = y._w || {}, f(E, y._w, y, j);
  17866. });
  17867. }
  17868. function l1(r, f, E) {
  17869. f != null && me(bl, r) && bl[r](f, E._a, E, r);
  17870. }
  17871. var Qe = 0, lr = 1, Fi = 2, Xe = 3, Bi = 4, hr = 5, Ur = 6, h1 = 7, c1 = 8;
  17872. function p1(r, f) {
  17873. return (r % f + f) % f;
  17874. }
  17875. var We;
  17876. Array.prototype.indexOf ? We = Array.prototype.indexOf : We = function(r) {
  17877. var f;
  17878. for (f = 0; f < this.length; ++f)
  17879. if (this[f] === r)
  17880. return f;
  17881. return -1;
  17882. };
  17883. function _o(r, f) {
  17884. if (isNaN(r) || isNaN(f))
  17885. return NaN;
  17886. var E = p1(f, 12);
  17887. return r += (f - E) / 12, E === 1 ? Ao(r) ? 29 : 28 : 31 - E % 7 % 2;
  17888. }
  17889. Zt("M", ["MM", 2], "Mo", function() {
  17890. return this.month() + 1;
  17891. });
  17892. Zt("MMM", 0, 0, function(r) {
  17893. return this.localeData().monthsShort(this, r);
  17894. });
  17895. Zt("MMMM", 0, 0, function(r) {
  17896. return this.localeData().months(this, r);
  17897. });
  17898. ti("month", "M");
  17899. ei("month", 8);
  17900. Ft("M", Pe);
  17901. Ft("MM", Pe, vi);
  17902. Ft("MMM", function(r, f) {
  17903. return f.monthsShortRegex(r);
  17904. });
  17905. Ft("MMMM", function(r, f) {
  17906. return f.monthsRegex(r);
  17907. });
  17908. we(["M", "MM"], function(r, f) {
  17909. f[lr] = le(r) - 1;
  17910. });
  17911. we(["MMM", "MMMM"], function(r, f, E, l) {
  17912. var y = E._locale.monthsParse(r, l, E._strict);
  17913. y != null ? f[lr] = y : se(E).invalidMonth = r;
  17914. });
  17915. var u1 = "January_February_March_April_May_June_July_August_September_October_November_December".split(
  17916. "_"
  17917. ), ou = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), au = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, d1 = as, f1 = as;
  17918. function g1(r, f) {
  17919. return r ? ji(this._months) ? this._months[r.month()] : this._months[(this._months.isFormat || au).test(f) ? "format" : "standalone"][r.month()] : ji(this._months) ? this._months : this._months.standalone;
  17920. }
  17921. function m1(r, f) {
  17922. return r ? ji(this._monthsShort) ? this._monthsShort[r.month()] : this._monthsShort[au.test(f) ? "format" : "standalone"][r.month()] : ji(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
  17923. }
  17924. function y1(r, f, E) {
  17925. var l, y, j, I = r.toLocaleLowerCase();
  17926. if (!this._monthsParse)
  17927. for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], l = 0; l < 12; ++l)
  17928. j = $i([2e3, l]), this._shortMonthsParse[l] = this.monthsShort(
  17929. j,
  17930. ""
  17931. ).toLocaleLowerCase(), this._longMonthsParse[l] = this.months(j, "").toLocaleLowerCase();
  17932. return E ? f === "MMM" ? (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : null) : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : null) : f === "MMM" ? (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : null)) : (y = We.call(this._longMonthsParse, I), y !== -1 ? y : (y = We.call(this._shortMonthsParse, I), y !== -1 ? y : null));
  17933. }
  17934. function v1(r, f, E) {
  17935. var l, y, j;
  17936. if (this._monthsParseExact)
  17937. return y1.call(this, r, f, E);
  17938. for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), l = 0; l < 12; l++) {
  17939. if (y = $i([2e3, l]), E && !this._longMonthsParse[l] && (this._longMonthsParse[l] = new RegExp(
  17940. "^" + this.months(y, "").replace(".", "") + "$",
  17941. "i"
  17942. ), this._shortMonthsParse[l] = new RegExp(
  17943. "^" + this.monthsShort(y, "").replace(".", "") + "$",
  17944. "i"
  17945. )), !E && !this._monthsParse[l] && (j = "^" + this.months(y, "") + "|^" + this.monthsShort(y, ""), this._monthsParse[l] = new RegExp(j.replace(".", ""), "i")), E && f === "MMMM" && this._longMonthsParse[l].test(r))
  17946. return l;
  17947. if (E && f === "MMM" && this._shortMonthsParse[l].test(r))
  17948. return l;
  17949. if (!E && this._monthsParse[l].test(r))
  17950. return l;
  17951. }
  17952. }
  17953. function lu(r, f) {
  17954. var E;
  17955. if (!r.isValid())
  17956. return r;
  17957. if (typeof f == "string") {
  17958. if (/^\d+$/.test(f))
  17959. f = le(f);
  17960. else if (f = r.localeData().monthsParse(f), !ur(f))
  17961. return r;
  17962. }
  17963. return E = Math.min(r.date(), _o(r.year(), f)), r._d["set" + (r._isUTC ? "UTC" : "") + "Month"](f, E), r;
  17964. }
  17965. function hu(r) {
  17966. return r != null ? (lu(this, r), Xt.updateOffset(this, !0), this) : mo(this, "Month");
  17967. }
  17968. function x1() {
  17969. return _o(this.year(), this.month());
  17970. }
  17971. function b1(r) {
  17972. return this._monthsParseExact ? (me(this, "_monthsRegex") || cu.call(this), r ? this._monthsShortStrictRegex : this._monthsShortRegex) : (me(this, "_monthsShortRegex") || (this._monthsShortRegex = d1), this._monthsShortStrictRegex && r ? this._monthsShortStrictRegex : this._monthsShortRegex);
  17973. }
  17974. function S1(r) {
  17975. return this._monthsParseExact ? (me(this, "_monthsRegex") || cu.call(this), r ? this._monthsStrictRegex : this._monthsRegex) : (me(this, "_monthsRegex") || (this._monthsRegex = f1), this._monthsStrictRegex && r ? this._monthsStrictRegex : this._monthsRegex);
  17976. }
  17977. function cu() {
  17978. function r(I, Z) {
  17979. return Z.length - I.length;
  17980. }
  17981. var f = [], E = [], l = [], y, j;
  17982. for (y = 0; y < 12; y++)
  17983. j = $i([2e3, y]), f.push(this.monthsShort(j, "")), E.push(this.months(j, "")), l.push(this.months(j, "")), l.push(this.monthsShort(j, ""));
  17984. for (f.sort(r), E.sort(r), l.sort(r), y = 0; y < 12; y++)
  17985. f[y] = yi(f[y]), E[y] = yi(E[y]);
  17986. for (y = 0; y < 24; y++)
  17987. l[y] = yi(l[y]);
  17988. this._monthsRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
  17989. "^(" + E.join("|") + ")",
  17990. "i"
  17991. ), this._monthsShortStrictRegex = new RegExp(
  17992. "^(" + f.join("|") + ")",
  17993. "i"
  17994. );
  17995. }
  17996. Zt("Y", 0, 0, function() {
  17997. var r = this.year();
  17998. return r <= 9999 ? Vi(r, 4) : "+" + r;
  17999. });
  18000. Zt(0, ["YY", 2], 0, function() {
  18001. return this.year() % 100;
  18002. });
  18003. Zt(0, ["YYYY", 4], 0, "year");
  18004. Zt(0, ["YYYYY", 5], 0, "year");
  18005. Zt(0, ["YYYYYY", 6, !0], 0, "year");
  18006. ti("year", "y");
  18007. ei("year", 1);
  18008. Ft("Y", Oo);
  18009. Ft("YY", Pe, vi);
  18010. Ft("YYYY", Rl, Il);
  18011. Ft("YYYYY", Eo, To);
  18012. Ft("YYYYYY", Eo, To);
  18013. we(["YYYYY", "YYYYYY"], Qe);
  18014. we("YYYY", function(r, f) {
  18015. f[Qe] = r.length === 2 ? Xt.parseTwoDigitYear(r) : le(r);
  18016. });
  18017. we("YY", function(r, f) {
  18018. f[Qe] = Xt.parseTwoDigitYear(r);
  18019. });
  18020. we("Y", function(r, f) {
  18021. f[Qe] = parseInt(r, 10);
  18022. });
  18023. function qn(r) {
  18024. return Ao(r) ? 366 : 365;
  18025. }
  18026. Xt.parseTwoDigitYear = function(r) {
  18027. return le(r) + (le(r) > 68 ? 1900 : 2e3);
  18028. };
  18029. var pu = Cn("FullYear", !0);
  18030. function w1() {
  18031. return Ao(this.year());
  18032. }
  18033. function M1(r, f, E, l, y, j, I) {
  18034. var Z;
  18035. return r < 100 && r >= 0 ? (Z = new Date(r + 400, f, E, l, y, j, I), isFinite(Z.getFullYear()) && Z.setFullYear(r)) : Z = new Date(r, f, E, l, y, j, I), Z;
  18036. }
  18037. function ts(r) {
  18038. var f, E;
  18039. return r < 100 && r >= 0 ? (E = Array.prototype.slice.call(arguments), E[0] = r + 400, f = new Date(Date.UTC.apply(null, E)), isFinite(f.getUTCFullYear()) && f.setUTCFullYear(r)) : f = new Date(Date.UTC.apply(null, arguments)), f;
  18040. }
  18041. function vo(r, f, E) {
  18042. var l = 7 + f - E, y = (7 + ts(r, 0, l).getUTCDay() - f) % 7;
  18043. return -y + l - 1;
  18044. }
  18045. function uu(r, f, E, l, y) {
  18046. var j = (7 + E - l) % 7, I = vo(r, l, y), Z = 1 + 7 * (f - 1) + j + I, H, U;
  18047. return Z <= 0 ? (H = r - 1, U = qn(H) + Z) : Z > qn(r) ? (H = r + 1, U = Z - qn(r)) : (H = r, U = Z), {
  18048. year: H,
  18049. dayOfYear: U
  18050. };
  18051. }
  18052. function es(r, f, E) {
  18053. var l = vo(r.year(), f, E), y = Math.floor((r.dayOfYear() - l - 1) / 7) + 1, j, I;
  18054. return y < 1 ? (I = r.year() - 1, j = y + cr(I, f, E)) : y > cr(r.year(), f, E) ? (j = y - cr(r.year(), f, E), I = r.year() + 1) : (I = r.year(), j = y), {
  18055. week: j,
  18056. year: I
  18057. };
  18058. }
  18059. function cr(r, f, E) {
  18060. var l = vo(r, f, E), y = vo(r + 1, f, E);
  18061. return (qn(r) - l + y) / 7;
  18062. }
  18063. Zt("w", ["ww", 2], "wo", "week");
  18064. Zt("W", ["WW", 2], "Wo", "isoWeek");
  18065. ti("week", "w");
  18066. ti("isoWeek", "W");
  18067. ei("week", 5);
  18068. ei("isoWeek", 5);
  18069. Ft("w", Pe);
  18070. Ft("ww", Pe, vi);
  18071. Ft("W", Pe);
  18072. Ft("WW", Pe, vi);
  18073. ls(
  18074. ["w", "ww", "W", "WW"],
  18075. function(r, f, E, l) {
  18076. f[l.substr(0, 1)] = le(r);
  18077. }
  18078. );
  18079. function C1(r) {
  18080. return es(r, this._week.dow, this._week.doy).week;
  18081. }
  18082. var k1 = {
  18083. dow: 0,
  18084. // Sunday is the first day of the week.
  18085. doy: 6
  18086. // The week that contains Jan 6th is the first week of the year.
  18087. };
  18088. function A1() {
  18089. return this._week.dow;
  18090. }
  18091. function T1() {
  18092. return this._week.doy;
  18093. }
  18094. function P1(r) {
  18095. var f = this.localeData().week(this);
  18096. return r == null ? f : this.add((r - f) * 7, "d");
  18097. }
  18098. function E1(r) {
  18099. var f = es(this, 1, 4).week;
  18100. return r == null ? f : this.add((r - f) * 7, "d");
  18101. }
  18102. Zt("d", 0, "do", "day");
  18103. Zt("dd", 0, 0, function(r) {
  18104. return this.localeData().weekdaysMin(this, r);
  18105. });
  18106. Zt("ddd", 0, 0, function(r) {
  18107. return this.localeData().weekdaysShort(this, r);
  18108. });
  18109. Zt("dddd", 0, 0, function(r) {
  18110. return this.localeData().weekdays(this, r);
  18111. });
  18112. Zt("e", 0, 0, "weekday");
  18113. Zt("E", 0, 0, "isoWeekday");
  18114. ti("day", "d");
  18115. ti("weekday", "e");
  18116. ti("isoWeekday", "E");
  18117. ei("day", 11);
  18118. ei("weekday", 11);
  18119. ei("isoWeekday", 11);
  18120. Ft("d", Pe);
  18121. Ft("e", Pe);
  18122. Ft("E", Pe);
  18123. Ft("dd", function(r, f) {
  18124. return f.weekdaysMinRegex(r);
  18125. });
  18126. Ft("ddd", function(r, f) {
  18127. return f.weekdaysShortRegex(r);
  18128. });
  18129. Ft("dddd", function(r, f) {
  18130. return f.weekdaysRegex(r);
  18131. });
  18132. ls(["dd", "ddd", "dddd"], function(r, f, E, l) {
  18133. var y = E._locale.weekdaysParse(r, l, E._strict);
  18134. y != null ? f.d = y : se(E).invalidWeekday = r;
  18135. });
  18136. ls(["d", "e", "E"], function(r, f, E, l) {
  18137. f[l] = le(r);
  18138. });
  18139. function O1(r, f) {
  18140. return typeof r != "string" ? r : isNaN(r) ? (r = f.weekdaysParse(r), typeof r == "number" ? r : null) : parseInt(r, 10);
  18141. }
  18142. function L1(r, f) {
  18143. return typeof r == "string" ? f.weekdaysParse(r) % 7 || 7 : isNaN(r) ? null : r;
  18144. }
  18145. function Nl(r, f) {
  18146. return r.slice(f, 7).concat(r.slice(0, f));
  18147. }
  18148. var _1 = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), du = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), D1 = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), I1 = as, R1 = as, N1 = as;
  18149. function B1(r, f) {
  18150. var E = ji(this._weekdays) ? this._weekdays : this._weekdays[r && r !== !0 && this._weekdays.isFormat.test(f) ? "format" : "standalone"];
  18151. return r === !0 ? Nl(E, this._week.dow) : r ? E[r.day()] : E;
  18152. }
  18153. function j1(r) {
  18154. return r === !0 ? Nl(this._weekdaysShort, this._week.dow) : r ? this._weekdaysShort[r.day()] : this._weekdaysShort;
  18155. }
  18156. function W1(r) {
  18157. return r === !0 ? Nl(this._weekdaysMin, this._week.dow) : r ? this._weekdaysMin[r.day()] : this._weekdaysMin;
  18158. }
  18159. function z1(r, f, E) {
  18160. var l, y, j, I = r.toLocaleLowerCase();
  18161. if (!this._weekdaysParse)
  18162. for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], l = 0; l < 7; ++l)
  18163. j = $i([2e3, 1]).day(l), this._minWeekdaysParse[l] = this.weekdaysMin(
  18164. j,
  18165. ""
  18166. ).toLocaleLowerCase(), this._shortWeekdaysParse[l] = this.weekdaysShort(
  18167. j,
  18168. ""
  18169. ).toLocaleLowerCase(), this._weekdaysParse[l] = this.weekdays(j, "").toLocaleLowerCase();
  18170. return E ? f === "dddd" ? (y = We.call(this._weekdaysParse, I), y !== -1 ? y : null) : f === "ddd" ? (y = We.call(this._shortWeekdaysParse, I), y !== -1 ? y : null) : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null) : f === "dddd" ? (y = We.call(this._weekdaysParse, I), y !== -1 || (y = We.call(this._shortWeekdaysParse, I), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : f === "ddd" ? (y = We.call(this._shortWeekdaysParse, I), y !== -1 || (y = We.call(this._weekdaysParse, I), y !== -1) ? y : (y = We.call(this._minWeekdaysParse, I), y !== -1 ? y : null)) : (y = We.call(this._minWeekdaysParse, I), y !== -1 || (y = We.call(this._weekdaysParse, I), y !== -1) ? y : (y = We.call(this._shortWeekdaysParse, I), y !== -1 ? y : null));
  18171. }
  18172. function Y1(r, f, E) {
  18173. var l, y, j;
  18174. if (this._weekdaysParseExact)
  18175. return z1.call(this, r, f, E);
  18176. for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), l = 0; l < 7; l++) {
  18177. if (y = $i([2e3, 1]).day(l), E && !this._fullWeekdaysParse[l] && (this._fullWeekdaysParse[l] = new RegExp(
  18178. "^" + this.weekdays(y, "").replace(".", "\\.?") + "$",
  18179. "i"
  18180. ), this._shortWeekdaysParse[l] = new RegExp(
  18181. "^" + this.weekdaysShort(y, "").replace(".", "\\.?") + "$",
  18182. "i"
  18183. ), this._minWeekdaysParse[l] = new RegExp(
  18184. "^" + this.weekdaysMin(y, "").replace(".", "\\.?") + "$",
  18185. "i"
  18186. )), this._weekdaysParse[l] || (j = "^" + this.weekdays(y, "") + "|^" + this.weekdaysShort(y, "") + "|^" + this.weekdaysMin(y, ""), this._weekdaysParse[l] = new RegExp(j.replace(".", ""), "i")), E && f === "dddd" && this._fullWeekdaysParse[l].test(r))
  18187. return l;
  18188. if (E && f === "ddd" && this._shortWeekdaysParse[l].test(r))
  18189. return l;
  18190. if (E && f === "dd" && this._minWeekdaysParse[l].test(r))
  18191. return l;
  18192. if (!E && this._weekdaysParse[l].test(r))
  18193. return l;
  18194. }
  18195. }
  18196. function X1(r) {
  18197. if (!this.isValid())
  18198. return r != null ? this : NaN;
  18199. var f = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  18200. return r != null ? (r = O1(r, this.localeData()), this.add(r - f, "d")) : f;
  18201. }
  18202. function G1(r) {
  18203. if (!this.isValid())
  18204. return r != null ? this : NaN;
  18205. var f = (this.day() + 7 - this.localeData()._week.dow) % 7;
  18206. return r == null ? f : this.add(r - f, "d");
  18207. }
  18208. function H1(r) {
  18209. if (!this.isValid())
  18210. return r != null ? this : NaN;
  18211. if (r != null) {
  18212. var f = L1(r, this.localeData());
  18213. return this.day(this.day() % 7 ? f : f - 7);
  18214. } else
  18215. return this.day() || 7;
  18216. }
  18217. function F1(r) {
  18218. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Bl.call(this), r ? this._weekdaysStrictRegex : this._weekdaysRegex) : (me(this, "_weekdaysRegex") || (this._weekdaysRegex = I1), this._weekdaysStrictRegex && r ? this._weekdaysStrictRegex : this._weekdaysRegex);
  18219. }
  18220. function U1(r) {
  18221. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Bl.call(this), r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (me(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = R1), this._weekdaysShortStrictRegex && r ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
  18222. }
  18223. function V1(r) {
  18224. return this._weekdaysParseExact ? (me(this, "_weekdaysRegex") || Bl.call(this), r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (me(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = N1), this._weekdaysMinStrictRegex && r ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
  18225. }
  18226. function Bl() {
  18227. function r(F, N) {
  18228. return N.length - F.length;
  18229. }
  18230. var f = [], E = [], l = [], y = [], j, I, Z, H, U;
  18231. for (j = 0; j < 7; j++)
  18232. I = $i([2e3, 1]).day(j), Z = yi(this.weekdaysMin(I, "")), H = yi(this.weekdaysShort(I, "")), U = yi(this.weekdays(I, "")), f.push(Z), E.push(H), l.push(U), y.push(Z), y.push(H), y.push(U);
  18233. f.sort(r), E.sort(r), l.sort(r), y.sort(r), this._weekdaysRegex = new RegExp("^(" + y.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
  18234. "^(" + l.join("|") + ")",
  18235. "i"
  18236. ), this._weekdaysShortStrictRegex = new RegExp(
  18237. "^(" + E.join("|") + ")",
  18238. "i"
  18239. ), this._weekdaysMinStrictRegex = new RegExp(
  18240. "^(" + f.join("|") + ")",
  18241. "i"
  18242. );
  18243. }
  18244. function jl() {
  18245. return this.hours() % 12 || 12;
  18246. }
  18247. function $1() {
  18248. return this.hours() || 24;
  18249. }
  18250. Zt("H", ["HH", 2], 0, "hour");
  18251. Zt("h", ["hh", 2], 0, jl);
  18252. Zt("k", ["kk", 2], 0, $1);
  18253. Zt("hmm", 0, 0, function() {
  18254. return "" + jl.apply(this) + Vi(this.minutes(), 2);
  18255. });
  18256. Zt("hmmss", 0, 0, function() {
  18257. return "" + jl.apply(this) + Vi(this.minutes(), 2) + Vi(this.seconds(), 2);
  18258. });
  18259. Zt("Hmm", 0, 0, function() {
  18260. return "" + this.hours() + Vi(this.minutes(), 2);
  18261. });
  18262. Zt("Hmmss", 0, 0, function() {
  18263. return "" + this.hours() + Vi(this.minutes(), 2) + Vi(this.seconds(), 2);
  18264. });
  18265. function fu(r, f) {
  18266. Zt(r, 0, 0, function() {
  18267. return this.localeData().meridiem(
  18268. this.hours(),
  18269. this.minutes(),
  18270. f
  18271. );
  18272. });
  18273. }
  18274. fu("a", !0);
  18275. fu("A", !1);
  18276. ti("hour", "h");
  18277. ei("hour", 13);
  18278. function gu(r, f) {
  18279. return f._meridiemParse;
  18280. }
  18281. Ft("a", gu);
  18282. Ft("A", gu);
  18283. Ft("H", Pe);
  18284. Ft("h", Pe);
  18285. Ft("k", Pe);
  18286. Ft("HH", Pe, vi);
  18287. Ft("hh", Pe, vi);
  18288. Ft("kk", Pe, vi);
  18289. Ft("hmm", nu);
  18290. Ft("hmmss", su);
  18291. Ft("Hmm", nu);
  18292. Ft("Hmmss", su);
  18293. we(["H", "HH"], Xe);
  18294. we(["k", "kk"], function(r, f, E) {
  18295. var l = le(r);
  18296. f[Xe] = l === 24 ? 0 : l;
  18297. });
  18298. we(["a", "A"], function(r, f, E) {
  18299. E._isPm = E._locale.isPM(r), E._meridiem = r;
  18300. });
  18301. we(["h", "hh"], function(r, f, E) {
  18302. f[Xe] = le(r), se(E).bigHour = !0;
  18303. });
  18304. we("hmm", function(r, f, E) {
  18305. var l = r.length - 2;
  18306. f[Xe] = le(r.substr(0, l)), f[Bi] = le(r.substr(l)), se(E).bigHour = !0;
  18307. });
  18308. we("hmmss", function(r, f, E) {
  18309. var l = r.length - 4, y = r.length - 2;
  18310. f[Xe] = le(r.substr(0, l)), f[Bi] = le(r.substr(l, 2)), f[hr] = le(r.substr(y)), se(E).bigHour = !0;
  18311. });
  18312. we("Hmm", function(r, f, E) {
  18313. var l = r.length - 2;
  18314. f[Xe] = le(r.substr(0, l)), f[Bi] = le(r.substr(l));
  18315. });
  18316. we("Hmmss", function(r, f, E) {
  18317. var l = r.length - 4, y = r.length - 2;
  18318. f[Xe] = le(r.substr(0, l)), f[Bi] = le(r.substr(l, 2)), f[hr] = le(r.substr(y));
  18319. });
  18320. function Z1(r) {
  18321. return (r + "").toLowerCase().charAt(0) === "p";
  18322. }
  18323. var K1 = /[ap]\.?m?\.?/i, J1 = Cn("Hours", !0);
  18324. function q1(r, f, E) {
  18325. return r > 11 ? E ? "pm" : "PM" : E ? "am" : "AM";
  18326. }
  18327. var mu = {
  18328. calendar: Y0,
  18329. longDateFormat: F0,
  18330. invalidDate: V0,
  18331. ordinal: Z0,
  18332. dayOfMonthOrdinalParse: K0,
  18333. relativeTime: q0,
  18334. months: u1,
  18335. monthsShort: ou,
  18336. week: k1,
  18337. weekdays: _1,
  18338. weekdaysMin: D1,
  18339. weekdaysShort: du,
  18340. meridiemParse: K1
  18341. }, Oe = {}, Vn = {}, is;
  18342. function Q1(r, f) {
  18343. var E, l = Math.min(r.length, f.length);
  18344. for (E = 0; E < l; E += 1)
  18345. if (r[E] !== f[E])
  18346. return E;
  18347. return l;
  18348. }
  18349. function _p(r) {
  18350. return r && r.toLowerCase().replace("_", "-");
  18351. }
  18352. function tb(r) {
  18353. for (var f = 0, E, l, y, j; f < r.length; ) {
  18354. for (j = _p(r[f]).split("-"), E = j.length, l = _p(r[f + 1]), l = l ? l.split("-") : null; E > 0; ) {
  18355. if (y = Do(j.slice(0, E).join("-")), y)
  18356. return y;
  18357. if (l && l.length >= E && Q1(j, l) >= E - 1)
  18358. break;
  18359. E--;
  18360. }
  18361. f++;
  18362. }
  18363. return is;
  18364. }
  18365. function eb(r) {
  18366. return r.match("^[^/\\\\]*$") != null;
  18367. }
  18368. function Do(r) {
  18369. var f = null, E;
  18370. if (Oe[r] === void 0 && typeof module < "u" && module && module.exports && eb(r))
  18371. try {
  18372. f = is._abbr, E = require, E("./locale/" + r), Lr(f);
  18373. } catch {
  18374. Oe[r] = null;
  18375. }
  18376. return Oe[r];
  18377. }
  18378. function Lr(r, f) {
  18379. var E;
  18380. return r && (hi(f) ? E = gr(r) : E = Wl(r, f), E ? is = E : typeof console < "u" && console.warn && console.warn(
  18381. "Locale " + r + " not found. Did you forget to load it?"
  18382. )), is._abbr;
  18383. }
  18384. function Wl(r, f) {
  18385. if (f !== null) {
  18386. var E, l = mu;
  18387. if (f.abbr = r, Oe[r] != null)
  18388. qp(
  18389. "defineLocaleOverride",
  18390. "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."
  18391. ), l = Oe[r]._config;
  18392. else if (f.parentLocale != null)
  18393. if (Oe[f.parentLocale] != null)
  18394. l = Oe[f.parentLocale]._config;
  18395. else if (E = Do(f.parentLocale), E != null)
  18396. l = E._config;
  18397. else
  18398. return Vn[f.parentLocale] || (Vn[f.parentLocale] = []), Vn[f.parentLocale].push({
  18399. name: r,
  18400. config: f
  18401. }), null;
  18402. return Oe[r] = new Ll(vl(l, f)), Vn[r] && Vn[r].forEach(function(y) {
  18403. Wl(y.name, y.config);
  18404. }), Lr(r), Oe[r];
  18405. } else
  18406. return delete Oe[r], null;
  18407. }
  18408. function ib(r, f) {
  18409. if (f != null) {
  18410. var E, l, y = mu;
  18411. Oe[r] != null && Oe[r].parentLocale != null ? Oe[r].set(vl(Oe[r]._config, f)) : (l = Do(r), l != null && (y = l._config), f = vl(y, f), l == null && (f.abbr = r), E = new Ll(f), E.parentLocale = Oe[r], Oe[r] = E), Lr(r);
  18412. } else
  18413. Oe[r] != null && (Oe[r].parentLocale != null ? (Oe[r] = Oe[r].parentLocale, r === Lr() && Lr(r)) : Oe[r] != null && delete Oe[r]);
  18414. return Oe[r];
  18415. }
  18416. function gr(r) {
  18417. var f;
  18418. if (r && r._locale && r._locale._abbr && (r = r._locale._abbr), !r)
  18419. return is;
  18420. if (!ji(r)) {
  18421. if (f = Do(r), f)
  18422. return f;
  18423. r = [r];
  18424. }
  18425. return tb(r);
  18426. }
  18427. function rb() {
  18428. return xl(Oe);
  18429. }
  18430. function zl(r) {
  18431. var f, E = r._a;
  18432. return E && se(r).overflow === -2 && (f = E[lr] < 0 || E[lr] > 11 ? lr : E[Fi] < 1 || E[Fi] > _o(E[Qe], E[lr]) ? Fi : E[Xe] < 0 || E[Xe] > 24 || E[Xe] === 24 && (E[Bi] !== 0 || E[hr] !== 0 || E[Ur] !== 0) ? Xe : E[Bi] < 0 || E[Bi] > 59 ? Bi : E[hr] < 0 || E[hr] > 59 ? hr : E[Ur] < 0 || E[Ur] > 999 ? Ur : -1, se(r)._overflowDayOfYear && (f < Qe || f > Fi) && (f = Fi), se(r)._overflowWeeks && f === -1 && (f = h1), se(r)._overflowWeekday && f === -1 && (f = c1), se(r).overflow = f), r;
  18433. }
  18434. var nb = /^\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)?)?$/, sb = /^\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)?)?$/, ob = /Z|[+-]\d\d(?::?\d\d)?/, ro = [
  18435. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  18436. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  18437. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  18438. ["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
  18439. ["YYYY-DDD", /\d{4}-\d{3}/],
  18440. ["YYYY-MM", /\d{4}-\d\d/, !1],
  18441. ["YYYYYYMMDD", /[+-]\d{10}/],
  18442. ["YYYYMMDD", /\d{8}/],
  18443. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  18444. ["GGGG[W]WW", /\d{4}W\d{2}/, !1],
  18445. ["YYYYDDD", /\d{7}/],
  18446. ["YYYYMM", /\d{6}/, !1],
  18447. ["YYYY", /\d{4}/, !1]
  18448. ], rl = [
  18449. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  18450. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  18451. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  18452. ["HH:mm", /\d\d:\d\d/],
  18453. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  18454. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  18455. ["HHmmss", /\d\d\d\d\d\d/],
  18456. ["HHmm", /\d\d\d\d/],
  18457. ["HH", /\d\d/]
  18458. ], ab = /^\/?Date\((-?\d+)/i, lb = /^(?:(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}))$/, hb = {
  18459. UT: 0,
  18460. GMT: 0,
  18461. EDT: -4 * 60,
  18462. EST: -5 * 60,
  18463. CDT: -5 * 60,
  18464. CST: -6 * 60,
  18465. MDT: -6 * 60,
  18466. MST: -7 * 60,
  18467. PDT: -7 * 60,
  18468. PST: -8 * 60
  18469. };
  18470. function yu(r) {
  18471. var f, E, l = r._i, y = nb.exec(l) || sb.exec(l), j, I, Z, H, U = ro.length, F = rl.length;
  18472. if (y) {
  18473. for (se(r).iso = !0, f = 0, E = U; f < E; f++)
  18474. if (ro[f][1].exec(y[1])) {
  18475. I = ro[f][0], j = ro[f][2] !== !1;
  18476. break;
  18477. }
  18478. if (I == null) {
  18479. r._isValid = !1;
  18480. return;
  18481. }
  18482. if (y[3]) {
  18483. for (f = 0, E = F; f < E; f++)
  18484. if (rl[f][1].exec(y[3])) {
  18485. Z = (y[2] || " ") + rl[f][0];
  18486. break;
  18487. }
  18488. if (Z == null) {
  18489. r._isValid = !1;
  18490. return;
  18491. }
  18492. }
  18493. if (!j && Z != null) {
  18494. r._isValid = !1;
  18495. return;
  18496. }
  18497. if (y[4])
  18498. if (ob.exec(y[4]))
  18499. H = "Z";
  18500. else {
  18501. r._isValid = !1;
  18502. return;
  18503. }
  18504. r._f = I + (Z || "") + (H || ""), Xl(r);
  18505. } else
  18506. r._isValid = !1;
  18507. }
  18508. function cb(r, f, E, l, y, j) {
  18509. var I = [
  18510. pb(r),
  18511. ou.indexOf(f),
  18512. parseInt(E, 10),
  18513. parseInt(l, 10),
  18514. parseInt(y, 10)
  18515. ];
  18516. return j && I.push(parseInt(j, 10)), I;
  18517. }
  18518. function pb(r) {
  18519. var f = parseInt(r, 10);
  18520. return f <= 49 ? 2e3 + f : f <= 999 ? 1900 + f : f;
  18521. }
  18522. function ub(r) {
  18523. return r.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
  18524. }
  18525. function db(r, f, E) {
  18526. if (r) {
  18527. var l = du.indexOf(r), y = new Date(
  18528. f[0],
  18529. f[1],
  18530. f[2]
  18531. ).getDay();
  18532. if (l !== y)
  18533. return se(E).weekdayMismatch = !0, E._isValid = !1, !1;
  18534. }
  18535. return !0;
  18536. }
  18537. function fb(r, f, E) {
  18538. if (r)
  18539. return hb[r];
  18540. if (f)
  18541. return 0;
  18542. var l = parseInt(E, 10), y = l % 100, j = (l - y) / 100;
  18543. return j * 60 + y;
  18544. }
  18545. function vu(r) {
  18546. var f = lb.exec(ub(r._i)), E;
  18547. if (f) {
  18548. if (E = cb(
  18549. f[4],
  18550. f[3],
  18551. f[2],
  18552. f[5],
  18553. f[6],
  18554. f[7]
  18555. ), !db(f[1], E, r))
  18556. return;
  18557. r._a = E, r._tzm = fb(f[8], f[9], f[10]), r._d = ts.apply(null, r._a), r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), se(r).rfc2822 = !0;
  18558. } else
  18559. r._isValid = !1;
  18560. }
  18561. function gb(r) {
  18562. var f = ab.exec(r._i);
  18563. if (f !== null) {
  18564. r._d = /* @__PURE__ */ new Date(+f[1]);
  18565. return;
  18566. }
  18567. if (yu(r), r._isValid === !1)
  18568. delete r._isValid;
  18569. else
  18570. return;
  18571. if (vu(r), r._isValid === !1)
  18572. delete r._isValid;
  18573. else
  18574. return;
  18575. r._strict ? r._isValid = !1 : Xt.createFromInputFallback(r);
  18576. }
  18577. Xt.createFromInputFallback = Oi(
  18578. "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.",
  18579. function(r) {
  18580. r._d = /* @__PURE__ */ new Date(r._i + (r._useUTC ? " UTC" : ""));
  18581. }
  18582. );
  18583. function gn(r, f, E) {
  18584. return r ?? f ?? E;
  18585. }
  18586. function mb(r) {
  18587. var f = new Date(Xt.now());
  18588. return r._useUTC ? [
  18589. f.getUTCFullYear(),
  18590. f.getUTCMonth(),
  18591. f.getUTCDate()
  18592. ] : [f.getFullYear(), f.getMonth(), f.getDate()];
  18593. }
  18594. function Yl(r) {
  18595. var f, E, l = [], y, j, I;
  18596. if (!r._d) {
  18597. for (y = mb(r), r._w && r._a[Fi] == null && r._a[lr] == null && yb(r), r._dayOfYear != null && (I = gn(r._a[Qe], y[Qe]), (r._dayOfYear > qn(I) || r._dayOfYear === 0) && (se(r)._overflowDayOfYear = !0), E = ts(I, 0, r._dayOfYear), r._a[lr] = E.getUTCMonth(), r._a[Fi] = E.getUTCDate()), f = 0; f < 3 && r._a[f] == null; ++f)
  18598. r._a[f] = l[f] = y[f];
  18599. for (; f < 7; f++)
  18600. r._a[f] = l[f] = r._a[f] == null ? f === 2 ? 1 : 0 : r._a[f];
  18601. r._a[Xe] === 24 && r._a[Bi] === 0 && r._a[hr] === 0 && r._a[Ur] === 0 && (r._nextDay = !0, r._a[Xe] = 0), r._d = (r._useUTC ? ts : M1).apply(
  18602. null,
  18603. l
  18604. ), j = r._useUTC ? r._d.getUTCDay() : r._d.getDay(), r._tzm != null && r._d.setUTCMinutes(r._d.getUTCMinutes() - r._tzm), r._nextDay && (r._a[Xe] = 24), r._w && typeof r._w.d < "u" && r._w.d !== j && (se(r).weekdayMismatch = !0);
  18605. }
  18606. }
  18607. function yb(r) {
  18608. var f, E, l, y, j, I, Z, H, U;
  18609. f = r._w, f.GG != null || f.W != null || f.E != null ? (j = 1, I = 4, E = gn(
  18610. f.GG,
  18611. r._a[Qe],
  18612. es(Te(), 1, 4).year
  18613. ), l = gn(f.W, 1), y = gn(f.E, 1), (y < 1 || y > 7) && (H = !0)) : (j = r._locale._week.dow, I = r._locale._week.doy, U = es(Te(), j, I), E = gn(f.gg, r._a[Qe], U.year), l = gn(f.w, U.week), f.d != null ? (y = f.d, (y < 0 || y > 6) && (H = !0)) : f.e != null ? (y = f.e + j, (f.e < 0 || f.e > 6) && (H = !0)) : y = j), l < 1 || l > cr(E, j, I) ? se(r)._overflowWeeks = !0 : H != null ? se(r)._overflowWeekday = !0 : (Z = uu(E, l, y, j, I), r._a[Qe] = Z.year, r._dayOfYear = Z.dayOfYear);
  18614. }
  18615. Xt.ISO_8601 = function() {
  18616. };
  18617. Xt.RFC_2822 = function() {
  18618. };
  18619. function Xl(r) {
  18620. if (r._f === Xt.ISO_8601) {
  18621. yu(r);
  18622. return;
  18623. }
  18624. if (r._f === Xt.RFC_2822) {
  18625. vu(r);
  18626. return;
  18627. }
  18628. r._a = [], se(r).empty = !0;
  18629. var f = "" + r._i, E, l, y, j, I, Z = f.length, H = 0, U, F;
  18630. for (y = Qp(r._f, r._locale).match(_l) || [], F = y.length, E = 0; E < F; E++)
  18631. j = y[E], l = (f.match(o1(j, r)) || [])[0], l && (I = f.substr(0, f.indexOf(l)), I.length > 0 && se(r).unusedInput.push(I), f = f.slice(
  18632. f.indexOf(l) + l.length
  18633. ), H += l.length), vn[j] ? (l ? se(r).empty = !1 : se(r).unusedTokens.push(j), l1(j, l, r)) : r._strict && !l && se(r).unusedTokens.push(j);
  18634. se(r).charsLeftOver = Z - H, f.length > 0 && se(r).unusedInput.push(f), r._a[Xe] <= 12 && se(r).bigHour === !0 && r._a[Xe] > 0 && (se(r).bigHour = void 0), se(r).parsedDateParts = r._a.slice(0), se(r).meridiem = r._meridiem, r._a[Xe] = vb(
  18635. r._locale,
  18636. r._a[Xe],
  18637. r._meridiem
  18638. ), U = se(r).era, U !== null && (r._a[Qe] = r._locale.erasConvertYear(U, r._a[Qe])), Yl(r), zl(r);
  18639. }
  18640. function vb(r, f, E) {
  18641. var l;
  18642. return E == null ? f : r.meridiemHour != null ? r.meridiemHour(f, E) : (r.isPM != null && (l = r.isPM(E), l && f < 12 && (f += 12), !l && f === 12 && (f = 0)), f);
  18643. }
  18644. function xb(r) {
  18645. var f, E, l, y, j, I, Z = !1, H = r._f.length;
  18646. if (H === 0) {
  18647. se(r).invalidFormat = !0, r._d = /* @__PURE__ */ new Date(NaN);
  18648. return;
  18649. }
  18650. for (y = 0; y < H; y++)
  18651. j = 0, I = !1, f = Ol({}, r), r._useUTC != null && (f._useUTC = r._useUTC), f._f = r._f[y], Xl(f), El(f) && (I = !0), j += se(f).charsLeftOver, j += se(f).unusedTokens.length * 10, se(f).score = j, Z ? j < l && (l = j, E = f) : (l == null || j < l || I) && (l = j, E = f, I && (Z = !0));
  18652. Er(r, E || f);
  18653. }
  18654. function bb(r) {
  18655. if (!r._d) {
  18656. var f = Dl(r._i), E = f.day === void 0 ? f.date : f.day;
  18657. r._a = Kp(
  18658. [f.year, f.month, E, f.hour, f.minute, f.second, f.millisecond],
  18659. function(l) {
  18660. return l && parseInt(l, 10);
  18661. }
  18662. ), Yl(r);
  18663. }
  18664. }
  18665. function Sb(r) {
  18666. var f = new os(zl(xu(r)));
  18667. return f._nextDay && (f.add(1, "d"), f._nextDay = void 0), f;
  18668. }
  18669. function xu(r) {
  18670. var f = r._i, E = r._f;
  18671. return r._locale = r._locale || gr(r._l), f === null || E === void 0 && f === "" ? ko({ nullInput: !0 }) : (typeof f == "string" && (r._i = f = r._locale.preparse(f)), Wi(f) ? new os(zl(f)) : (ss(f) ? r._d = f : ji(E) ? xb(r) : E ? Xl(r) : wb(r), El(r) || (r._d = null), r));
  18672. }
  18673. function wb(r) {
  18674. var f = r._i;
  18675. hi(f) ? r._d = new Date(Xt.now()) : ss(f) ? r._d = new Date(f.valueOf()) : typeof f == "string" ? gb(r) : ji(f) ? (r._a = Kp(f.slice(0), function(E) {
  18676. return parseInt(E, 10);
  18677. }), Yl(r)) : Zr(f) ? bb(r) : ur(f) ? r._d = new Date(f) : Xt.createFromInputFallback(r);
  18678. }
  18679. function bu(r, f, E, l, y) {
  18680. var j = {};
  18681. return (f === !0 || f === !1) && (l = f, f = void 0), (E === !0 || E === !1) && (l = E, E = void 0), (Zr(r) && Pl(r) || ji(r) && r.length === 0) && (r = void 0), j._isAMomentObject = !0, j._useUTC = j._isUTC = y, j._l = E, j._i = r, j._f = f, j._strict = l, Sb(j);
  18682. }
  18683. function Te(r, f, E, l) {
  18684. return bu(r, f, E, l, !1);
  18685. }
  18686. var Mb = Oi(
  18687. "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  18688. function() {
  18689. var r = Te.apply(null, arguments);
  18690. return this.isValid() && r.isValid() ? r < this ? this : r : ko();
  18691. }
  18692. ), Cb = Oi(
  18693. "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  18694. function() {
  18695. var r = Te.apply(null, arguments);
  18696. return this.isValid() && r.isValid() ? r > this ? this : r : ko();
  18697. }
  18698. );
  18699. function Su(r, f) {
  18700. var E, l;
  18701. if (f.length === 1 && ji(f[0]) && (f = f[0]), !f.length)
  18702. return Te();
  18703. for (E = f[0], l = 1; l < f.length; ++l)
  18704. (!f[l].isValid() || f[l][r](E)) && (E = f[l]);
  18705. return E;
  18706. }
  18707. function kb() {
  18708. var r = [].slice.call(arguments, 0);
  18709. return Su("isBefore", r);
  18710. }
  18711. function Ab() {
  18712. var r = [].slice.call(arguments, 0);
  18713. return Su("isAfter", r);
  18714. }
  18715. var Tb = function() {
  18716. return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
  18717. }, $n = [
  18718. "year",
  18719. "quarter",
  18720. "month",
  18721. "week",
  18722. "day",
  18723. "hour",
  18724. "minute",
  18725. "second",
  18726. "millisecond"
  18727. ];
  18728. function Pb(r) {
  18729. var f, E = !1, l, y = $n.length;
  18730. for (f in r)
  18731. if (me(r, f) && !(We.call($n, f) !== -1 && (r[f] == null || !isNaN(r[f]))))
  18732. return !1;
  18733. for (l = 0; l < y; ++l)
  18734. if (r[$n[l]]) {
  18735. if (E)
  18736. return !1;
  18737. parseFloat(r[$n[l]]) !== le(r[$n[l]]) && (E = !0);
  18738. }
  18739. return !0;
  18740. }
  18741. function Eb() {
  18742. return this._isValid;
  18743. }
  18744. function Ob() {
  18745. return zi(NaN);
  18746. }
  18747. function Io(r) {
  18748. var f = Dl(r), E = f.year || 0, l = f.quarter || 0, y = f.month || 0, j = f.week || f.isoWeek || 0, I = f.day || 0, Z = f.hour || 0, H = f.minute || 0, U = f.second || 0, F = f.millisecond || 0;
  18749. this._isValid = Pb(f), this._milliseconds = +F + U * 1e3 + // 1000
  18750. H * 6e4 + // 1000 * 60
  18751. Z * 1e3 * 60 * 60, this._days = +I + j * 7, this._months = +y + l * 3 + E * 12, this._data = {}, this._locale = gr(), this._bubble();
  18752. }
  18753. function oo(r) {
  18754. return r instanceof Io;
  18755. }
  18756. function Sl(r) {
  18757. return r < 0 ? Math.round(-1 * r) * -1 : Math.round(r);
  18758. }
  18759. function Lb(r, f, E) {
  18760. var l = Math.min(r.length, f.length), y = Math.abs(r.length - f.length), j = 0, I;
  18761. for (I = 0; I < l; I++)
  18762. (E && r[I] !== f[I] || !E && le(r[I]) !== le(f[I])) && j++;
  18763. return j + y;
  18764. }
  18765. function wu(r, f) {
  18766. Zt(r, 0, 0, function() {
  18767. var E = this.utcOffset(), l = "+";
  18768. return E < 0 && (E = -E, l = "-"), l + Vi(~~(E / 60), 2) + f + Vi(~~E % 60, 2);
  18769. });
  18770. }
  18771. wu("Z", ":");
  18772. wu("ZZ", "");
  18773. Ft("Z", Lo);
  18774. Ft("ZZ", Lo);
  18775. we(["Z", "ZZ"], function(r, f, E) {
  18776. E._useUTC = !0, E._tzm = Gl(Lo, r);
  18777. });
  18778. var _b = /([\+\-]|\d\d)/gi;
  18779. function Gl(r, f) {
  18780. var E = (f || "").match(r), l, y, j;
  18781. return E === null ? null : (l = E[E.length - 1] || [], y = (l + "").match(_b) || ["-", 0, 0], j = +(y[1] * 60) + le(y[2]), j === 0 ? 0 : y[0] === "+" ? j : -j);
  18782. }
  18783. function Hl(r, f) {
  18784. var E, l;
  18785. return f._isUTC ? (E = f.clone(), l = (Wi(r) || ss(r) ? r.valueOf() : Te(r).valueOf()) - E.valueOf(), E._d.setTime(E._d.valueOf() + l), Xt.updateOffset(E, !1), E) : Te(r).local();
  18786. }
  18787. function wl(r) {
  18788. return -Math.round(r._d.getTimezoneOffset());
  18789. }
  18790. Xt.updateOffset = function() {
  18791. };
  18792. function Db(r, f, E) {
  18793. var l = this._offset || 0, y;
  18794. if (!this.isValid())
  18795. return r != null ? this : NaN;
  18796. if (r != null) {
  18797. if (typeof r == "string") {
  18798. if (r = Gl(Lo, r), r === null)
  18799. return this;
  18800. } else
  18801. Math.abs(r) < 16 && !E && (r = r * 60);
  18802. return !this._isUTC && f && (y = wl(this)), this._offset = r, this._isUTC = !0, y != null && this.add(y, "m"), l !== r && (!f || this._changeInProgress ? ku(
  18803. this,
  18804. zi(r - l, "m"),
  18805. 1,
  18806. !1
  18807. ) : this._changeInProgress || (this._changeInProgress = !0, Xt.updateOffset(this, !0), this._changeInProgress = null)), this;
  18808. } else
  18809. return this._isUTC ? l : wl(this);
  18810. }
  18811. function Ib(r, f) {
  18812. return r != null ? (typeof r != "string" && (r = -r), this.utcOffset(r, f), this) : -this.utcOffset();
  18813. }
  18814. function Rb(r) {
  18815. return this.utcOffset(0, r);
  18816. }
  18817. function Nb(r) {
  18818. return this._isUTC && (this.utcOffset(0, r), this._isUTC = !1, r && this.subtract(wl(this), "m")), this;
  18819. }
  18820. function Bb() {
  18821. if (this._tzm != null)
  18822. this.utcOffset(this._tzm, !1, !0);
  18823. else if (typeof this._i == "string") {
  18824. var r = Gl(n1, this._i);
  18825. r != null ? this.utcOffset(r) : this.utcOffset(0, !0);
  18826. }
  18827. return this;
  18828. }
  18829. function jb(r) {
  18830. return this.isValid() ? (r = r ? Te(r).utcOffset() : 0, (this.utcOffset() - r) % 60 === 0) : !1;
  18831. }
  18832. function Wb() {
  18833. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  18834. }
  18835. function zb() {
  18836. if (!hi(this._isDSTShifted))
  18837. return this._isDSTShifted;
  18838. var r = {}, f;
  18839. return Ol(r, this), r = xu(r), r._a ? (f = r._isUTC ? $i(r._a) : Te(r._a), this._isDSTShifted = this.isValid() && Lb(r._a, f.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
  18840. }
  18841. function Yb() {
  18842. return this.isValid() ? !this._isUTC : !1;
  18843. }
  18844. function Xb() {
  18845. return this.isValid() ? this._isUTC : !1;
  18846. }
  18847. function Mu() {
  18848. return this.isValid() ? this._isUTC && this._offset === 0 : !1;
  18849. }
  18850. var Gb = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Hb = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  18851. function zi(r, f) {
  18852. var E = r, l = null, y, j, I;
  18853. return oo(r) ? E = {
  18854. ms: r._milliseconds,
  18855. d: r._days,
  18856. M: r._months
  18857. } : ur(r) || !isNaN(+r) ? (E = {}, f ? E[f] = +r : E.milliseconds = +r) : (l = Gb.exec(r)) ? (y = l[1] === "-" ? -1 : 1, E = {
  18858. y: 0,
  18859. d: le(l[Fi]) * y,
  18860. h: le(l[Xe]) * y,
  18861. m: le(l[Bi]) * y,
  18862. s: le(l[hr]) * y,
  18863. ms: le(Sl(l[Ur] * 1e3)) * y
  18864. // the millisecond decimal point is included in the match
  18865. }) : (l = Hb.exec(r)) ? (y = l[1] === "-" ? -1 : 1, E = {
  18866. y: Hr(l[2], y),
  18867. M: Hr(l[3], y),
  18868. w: Hr(l[4], y),
  18869. d: Hr(l[5], y),
  18870. h: Hr(l[6], y),
  18871. m: Hr(l[7], y),
  18872. s: Hr(l[8], y)
  18873. }) : E == null ? E = {} : typeof E == "object" && ("from" in E || "to" in E) && (I = Fb(
  18874. Te(E.from),
  18875. Te(E.to)
  18876. ), E = {}, E.ms = I.milliseconds, E.M = I.months), j = new Io(E), oo(r) && me(r, "_locale") && (j._locale = r._locale), oo(r) && me(r, "_isValid") && (j._isValid = r._isValid), j;
  18877. }
  18878. zi.fn = Io.prototype;
  18879. zi.invalid = Ob;
  18880. function Hr(r, f) {
  18881. var E = r && parseFloat(r.replace(",", "."));
  18882. return (isNaN(E) ? 0 : E) * f;
  18883. }
  18884. function Dp(r, f) {
  18885. var E = {};
  18886. return E.months = f.month() - r.month() + (f.year() - r.year()) * 12, r.clone().add(E.months, "M").isAfter(f) && --E.months, E.milliseconds = +f - +r.clone().add(E.months, "M"), E;
  18887. }
  18888. function Fb(r, f) {
  18889. var E;
  18890. return r.isValid() && f.isValid() ? (f = Hl(f, r), r.isBefore(f) ? E = Dp(r, f) : (E = Dp(f, r), E.milliseconds = -E.milliseconds, E.months = -E.months), E) : { milliseconds: 0, months: 0 };
  18891. }
  18892. function Cu(r, f) {
  18893. return function(E, l) {
  18894. var y, j;
  18895. return l !== null && !isNaN(+l) && (qp(
  18896. f,
  18897. "moment()." + f + "(period, number) is deprecated. Please use moment()." + f + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
  18898. ), j = E, E = l, l = j), y = zi(E, l), ku(this, y, r), this;
  18899. };
  18900. }
  18901. function ku(r, f, E, l) {
  18902. var y = f._milliseconds, j = Sl(f._days), I = Sl(f._months);
  18903. r.isValid() && (l = l ?? !0, I && lu(r, mo(r, "Month") + I * E), j && eu(r, "Date", mo(r, "Date") + j * E), y && r._d.setTime(r._d.valueOf() + y * E), l && Xt.updateOffset(r, j || I));
  18904. }
  18905. var Ub = Cu(1, "add"), Vb = Cu(-1, "subtract");
  18906. function Au(r) {
  18907. return typeof r == "string" || r instanceof String;
  18908. }
  18909. function $b(r) {
  18910. return Wi(r) || ss(r) || Au(r) || ur(r) || Kb(r) || Zb(r) || r === null || r === void 0;
  18911. }
  18912. function Zb(r) {
  18913. var f = Zr(r) && !Pl(r), E = !1, l = [
  18914. "years",
  18915. "year",
  18916. "y",
  18917. "months",
  18918. "month",
  18919. "M",
  18920. "days",
  18921. "day",
  18922. "d",
  18923. "dates",
  18924. "date",
  18925. "D",
  18926. "hours",
  18927. "hour",
  18928. "h",
  18929. "minutes",
  18930. "minute",
  18931. "m",
  18932. "seconds",
  18933. "second",
  18934. "s",
  18935. "milliseconds",
  18936. "millisecond",
  18937. "ms"
  18938. ], y, j, I = l.length;
  18939. for (y = 0; y < I; y += 1)
  18940. j = l[y], E = E || me(r, j);
  18941. return f && E;
  18942. }
  18943. function Kb(r) {
  18944. var f = ji(r), E = !1;
  18945. return f && (E = r.filter(function(l) {
  18946. return !ur(l) && Au(r);
  18947. }).length === 0), f && E;
  18948. }
  18949. function Jb(r) {
  18950. var f = Zr(r) && !Pl(r), E = !1, l = [
  18951. "sameDay",
  18952. "nextDay",
  18953. "lastDay",
  18954. "nextWeek",
  18955. "lastWeek",
  18956. "sameElse"
  18957. ], y, j;
  18958. for (y = 0; y < l.length; y += 1)
  18959. j = l[y], E = E || me(r, j);
  18960. return f && E;
  18961. }
  18962. function qb(r, f) {
  18963. var E = r.diff(f, "days", !0);
  18964. return E < -6 ? "sameElse" : E < -1 ? "lastWeek" : E < 0 ? "lastDay" : E < 1 ? "sameDay" : E < 2 ? "nextDay" : E < 7 ? "nextWeek" : "sameElse";
  18965. }
  18966. function Qb(r, f) {
  18967. arguments.length === 1 && (arguments[0] ? $b(arguments[0]) ? (r = arguments[0], f = void 0) : Jb(arguments[0]) && (f = arguments[0], r = void 0) : (r = void 0, f = void 0));
  18968. var E = r || Te(), l = Hl(E, this).startOf("day"), y = Xt.calendarFormat(this, l) || "sameElse", j = f && (Zi(f[y]) ? f[y].call(this, E) : f[y]);
  18969. return this.format(
  18970. j || this.localeData().calendar(y, this, Te(E))
  18971. );
  18972. }
  18973. function tS() {
  18974. return new os(this);
  18975. }
  18976. function eS(r, f) {
  18977. var E = Wi(r) ? r : Te(r);
  18978. return this.isValid() && E.isValid() ? (f = Li(f) || "millisecond", f === "millisecond" ? this.valueOf() > E.valueOf() : E.valueOf() < this.clone().startOf(f).valueOf()) : !1;
  18979. }
  18980. function iS(r, f) {
  18981. var E = Wi(r) ? r : Te(r);
  18982. return this.isValid() && E.isValid() ? (f = Li(f) || "millisecond", f === "millisecond" ? this.valueOf() < E.valueOf() : this.clone().endOf(f).valueOf() < E.valueOf()) : !1;
  18983. }
  18984. function rS(r, f, E, l) {
  18985. var y = Wi(r) ? r : Te(r), j = Wi(f) ? f : Te(f);
  18986. return this.isValid() && y.isValid() && j.isValid() ? (l = l || "()", (l[0] === "(" ? this.isAfter(y, E) : !this.isBefore(y, E)) && (l[1] === ")" ? this.isBefore(j, E) : !this.isAfter(j, E))) : !1;
  18987. }
  18988. function nS(r, f) {
  18989. var E = Wi(r) ? r : Te(r), l;
  18990. return this.isValid() && E.isValid() ? (f = Li(f) || "millisecond", f === "millisecond" ? this.valueOf() === E.valueOf() : (l = E.valueOf(), this.clone().startOf(f).valueOf() <= l && l <= this.clone().endOf(f).valueOf())) : !1;
  18991. }
  18992. function sS(r, f) {
  18993. return this.isSame(r, f) || this.isAfter(r, f);
  18994. }
  18995. function oS(r, f) {
  18996. return this.isSame(r, f) || this.isBefore(r, f);
  18997. }
  18998. function aS(r, f, E) {
  18999. var l, y, j;
  19000. if (!this.isValid())
  19001. return NaN;
  19002. if (l = Hl(r, this), !l.isValid())
  19003. return NaN;
  19004. switch (y = (l.utcOffset() - this.utcOffset()) * 6e4, f = Li(f), f) {
  19005. case "year":
  19006. j = ao(this, l) / 12;
  19007. break;
  19008. case "month":
  19009. j = ao(this, l);
  19010. break;
  19011. case "quarter":
  19012. j = ao(this, l) / 3;
  19013. break;
  19014. case "second":
  19015. j = (this - l) / 1e3;
  19016. break;
  19017. case "minute":
  19018. j = (this - l) / 6e4;
  19019. break;
  19020. case "hour":
  19021. j = (this - l) / 36e5;
  19022. break;
  19023. case "day":
  19024. j = (this - l - y) / 864e5;
  19025. break;
  19026. case "week":
  19027. j = (this - l - y) / 6048e5;
  19028. break;
  19029. default:
  19030. j = this - l;
  19031. }
  19032. return E ? j : Ti(j);
  19033. }
  19034. function ao(r, f) {
  19035. if (r.date() < f.date())
  19036. return -ao(f, r);
  19037. var E = (f.year() - r.year()) * 12 + (f.month() - r.month()), l = r.clone().add(E, "months"), y, j;
  19038. return f - l < 0 ? (y = r.clone().add(E - 1, "months"), j = (f - l) / (l - y)) : (y = r.clone().add(E + 1, "months"), j = (f - l) / (y - l)), -(E + j) || 0;
  19039. }
  19040. Xt.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
  19041. Xt.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  19042. function lS() {
  19043. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
  19044. }
  19045. function hS(r) {
  19046. if (!this.isValid())
  19047. return null;
  19048. var f = r !== !0, E = f ? this.clone().utc() : this;
  19049. return E.year() < 0 || E.year() > 9999 ? so(
  19050. E,
  19051. f ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19052. ) : Zi(Date.prototype.toISOString) ? f ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", so(E, "Z")) : so(
  19053. E,
  19054. f ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
  19055. );
  19056. }
  19057. function cS() {
  19058. if (!this.isValid())
  19059. return "moment.invalid(/* " + this._i + " */)";
  19060. var r = "moment", f = "", E, l, y, j;
  19061. return this.isLocal() || (r = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", f = "Z"), E = "[" + r + '("]', l = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", y = "-MM-DD[T]HH:mm:ss.SSS", j = f + '[")]', this.format(E + l + y + j);
  19062. }
  19063. function pS(r) {
  19064. r || (r = this.isUtc() ? Xt.defaultFormatUtc : Xt.defaultFormat);
  19065. var f = so(this, r);
  19066. return this.localeData().postformat(f);
  19067. }
  19068. function uS(r, f) {
  19069. return this.isValid() && (Wi(r) && r.isValid() || Te(r).isValid()) ? zi({ to: this, from: r }).locale(this.locale()).humanize(!f) : this.localeData().invalidDate();
  19070. }
  19071. function dS(r) {
  19072. return this.from(Te(), r);
  19073. }
  19074. function fS(r, f) {
  19075. return this.isValid() && (Wi(r) && r.isValid() || Te(r).isValid()) ? zi({ from: this, to: r }).locale(this.locale()).humanize(!f) : this.localeData().invalidDate();
  19076. }
  19077. function gS(r) {
  19078. return this.to(Te(), r);
  19079. }
  19080. function Tu(r) {
  19081. var f;
  19082. return r === void 0 ? this._locale._abbr : (f = gr(r), f != null && (this._locale = f), this);
  19083. }
  19084. var Pu = Oi(
  19085. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  19086. function(r) {
  19087. return r === void 0 ? this.localeData() : this.locale(r);
  19088. }
  19089. );
  19090. function Eu() {
  19091. return this._locale;
  19092. }
  19093. var xo = 1e3, xn = 60 * xo, bo = 60 * xn, Ou = (365 * 400 + 97) * 24 * bo;
  19094. function bn(r, f) {
  19095. return (r % f + f) % f;
  19096. }
  19097. function Lu(r, f, E) {
  19098. return r < 100 && r >= 0 ? new Date(r + 400, f, E) - Ou : new Date(r, f, E).valueOf();
  19099. }
  19100. function _u(r, f, E) {
  19101. return r < 100 && r >= 0 ? Date.UTC(r + 400, f, E) - Ou : Date.UTC(r, f, E);
  19102. }
  19103. function mS(r) {
  19104. var f, E;
  19105. if (r = Li(r), r === void 0 || r === "millisecond" || !this.isValid())
  19106. return this;
  19107. switch (E = this._isUTC ? _u : Lu, r) {
  19108. case "year":
  19109. f = E(this.year(), 0, 1);
  19110. break;
  19111. case "quarter":
  19112. f = E(
  19113. this.year(),
  19114. this.month() - this.month() % 3,
  19115. 1
  19116. );
  19117. break;
  19118. case "month":
  19119. f = E(this.year(), this.month(), 1);
  19120. break;
  19121. case "week":
  19122. f = E(
  19123. this.year(),
  19124. this.month(),
  19125. this.date() - this.weekday()
  19126. );
  19127. break;
  19128. case "isoWeek":
  19129. f = E(
  19130. this.year(),
  19131. this.month(),
  19132. this.date() - (this.isoWeekday() - 1)
  19133. );
  19134. break;
  19135. case "day":
  19136. case "date":
  19137. f = E(this.year(), this.month(), this.date());
  19138. break;
  19139. case "hour":
  19140. f = this._d.valueOf(), f -= bn(
  19141. f + (this._isUTC ? 0 : this.utcOffset() * xn),
  19142. bo
  19143. );
  19144. break;
  19145. case "minute":
  19146. f = this._d.valueOf(), f -= bn(f, xn);
  19147. break;
  19148. case "second":
  19149. f = this._d.valueOf(), f -= bn(f, xo);
  19150. break;
  19151. }
  19152. return this._d.setTime(f), Xt.updateOffset(this, !0), this;
  19153. }
  19154. function yS(r) {
  19155. var f, E;
  19156. if (r = Li(r), r === void 0 || r === "millisecond" || !this.isValid())
  19157. return this;
  19158. switch (E = this._isUTC ? _u : Lu, r) {
  19159. case "year":
  19160. f = E(this.year() + 1, 0, 1) - 1;
  19161. break;
  19162. case "quarter":
  19163. f = E(
  19164. this.year(),
  19165. this.month() - this.month() % 3 + 3,
  19166. 1
  19167. ) - 1;
  19168. break;
  19169. case "month":
  19170. f = E(this.year(), this.month() + 1, 1) - 1;
  19171. break;
  19172. case "week":
  19173. f = E(
  19174. this.year(),
  19175. this.month(),
  19176. this.date() - this.weekday() + 7
  19177. ) - 1;
  19178. break;
  19179. case "isoWeek":
  19180. f = E(
  19181. this.year(),
  19182. this.month(),
  19183. this.date() - (this.isoWeekday() - 1) + 7
  19184. ) - 1;
  19185. break;
  19186. case "day":
  19187. case "date":
  19188. f = E(this.year(), this.month(), this.date() + 1) - 1;
  19189. break;
  19190. case "hour":
  19191. f = this._d.valueOf(), f += bo - bn(
  19192. f + (this._isUTC ? 0 : this.utcOffset() * xn),
  19193. bo
  19194. ) - 1;
  19195. break;
  19196. case "minute":
  19197. f = this._d.valueOf(), f += xn - bn(f, xn) - 1;
  19198. break;
  19199. case "second":
  19200. f = this._d.valueOf(), f += xo - bn(f, xo) - 1;
  19201. break;
  19202. }
  19203. return this._d.setTime(f), Xt.updateOffset(this, !0), this;
  19204. }
  19205. function vS() {
  19206. return this._d.valueOf() - (this._offset || 0) * 6e4;
  19207. }
  19208. function xS() {
  19209. return Math.floor(this.valueOf() / 1e3);
  19210. }
  19211. function bS() {
  19212. return new Date(this.valueOf());
  19213. }
  19214. function SS() {
  19215. var r = this;
  19216. return [
  19217. r.year(),
  19218. r.month(),
  19219. r.date(),
  19220. r.hour(),
  19221. r.minute(),
  19222. r.second(),
  19223. r.millisecond()
  19224. ];
  19225. }
  19226. function wS() {
  19227. var r = this;
  19228. return {
  19229. years: r.year(),
  19230. months: r.month(),
  19231. date: r.date(),
  19232. hours: r.hours(),
  19233. minutes: r.minutes(),
  19234. seconds: r.seconds(),
  19235. milliseconds: r.milliseconds()
  19236. };
  19237. }
  19238. function MS() {
  19239. return this.isValid() ? this.toISOString() : null;
  19240. }
  19241. function CS() {
  19242. return El(this);
  19243. }
  19244. function kS() {
  19245. return Er({}, se(this));
  19246. }
  19247. function AS() {
  19248. return se(this).overflow;
  19249. }
  19250. function TS() {
  19251. return {
  19252. input: this._i,
  19253. format: this._f,
  19254. locale: this._locale,
  19255. isUTC: this._isUTC,
  19256. strict: this._strict
  19257. };
  19258. }
  19259. Zt("N", 0, 0, "eraAbbr");
  19260. Zt("NN", 0, 0, "eraAbbr");
  19261. Zt("NNN", 0, 0, "eraAbbr");
  19262. Zt("NNNN", 0, 0, "eraName");
  19263. Zt("NNNNN", 0, 0, "eraNarrow");
  19264. Zt("y", ["y", 1], "yo", "eraYear");
  19265. Zt("y", ["yy", 2], 0, "eraYear");
  19266. Zt("y", ["yyy", 3], 0, "eraYear");
  19267. Zt("y", ["yyyy", 4], 0, "eraYear");
  19268. Ft("N", Fl);
  19269. Ft("NN", Fl);
  19270. Ft("NNN", Fl);
  19271. Ft("NNNN", jS);
  19272. Ft("NNNNN", WS);
  19273. we(
  19274. ["N", "NN", "NNN", "NNNN", "NNNNN"],
  19275. function(r, f, E, l) {
  19276. var y = E._locale.erasParse(r, l, E._strict);
  19277. y ? se(E).era = y : se(E).invalidEra = r;
  19278. }
  19279. );
  19280. Ft("y", kn);
  19281. Ft("yy", kn);
  19282. Ft("yyy", kn);
  19283. Ft("yyyy", kn);
  19284. Ft("yo", zS);
  19285. we(["y", "yy", "yyy", "yyyy"], Qe);
  19286. we(["yo"], function(r, f, E, l) {
  19287. var y;
  19288. E._locale._eraYearOrdinalRegex && (y = r.match(E._locale._eraYearOrdinalRegex)), E._locale.eraYearOrdinalParse ? f[Qe] = E._locale.eraYearOrdinalParse(r, y) : f[Qe] = parseInt(r, 10);
  19289. });
  19290. function PS(r, f) {
  19291. var E, l, y, j = this._eras || gr("en")._eras;
  19292. for (E = 0, l = j.length; E < l; ++E) {
  19293. switch (typeof j[E].since) {
  19294. case "string":
  19295. y = Xt(j[E].since).startOf("day"), j[E].since = y.valueOf();
  19296. break;
  19297. }
  19298. switch (typeof j[E].until) {
  19299. case "undefined":
  19300. j[E].until = 1 / 0;
  19301. break;
  19302. case "string":
  19303. y = Xt(j[E].until).startOf("day").valueOf(), j[E].until = y.valueOf();
  19304. break;
  19305. }
  19306. }
  19307. return j;
  19308. }
  19309. function ES(r, f, E) {
  19310. var l, y, j = this.eras(), I, Z, H;
  19311. for (r = r.toUpperCase(), l = 0, y = j.length; l < y; ++l)
  19312. if (I = j[l].name.toUpperCase(), Z = j[l].abbr.toUpperCase(), H = j[l].narrow.toUpperCase(), E)
  19313. switch (f) {
  19314. case "N":
  19315. case "NN":
  19316. case "NNN":
  19317. if (Z === r)
  19318. return j[l];
  19319. break;
  19320. case "NNNN":
  19321. if (I === r)
  19322. return j[l];
  19323. break;
  19324. case "NNNNN":
  19325. if (H === r)
  19326. return j[l];
  19327. break;
  19328. }
  19329. else if ([I, Z, H].indexOf(r) >= 0)
  19330. return j[l];
  19331. }
  19332. function OS(r, f) {
  19333. var E = r.since <= r.until ? 1 : -1;
  19334. return f === void 0 ? Xt(r.since).year() : Xt(r.since).year() + (f - r.offset) * E;
  19335. }
  19336. function LS() {
  19337. var r, f, E, l = this.localeData().eras();
  19338. for (r = 0, f = l.length; r < f; ++r)
  19339. if (E = this.clone().startOf("day").valueOf(), l[r].since <= E && E <= l[r].until || l[r].until <= E && E <= l[r].since)
  19340. return l[r].name;
  19341. return "";
  19342. }
  19343. function _S() {
  19344. var r, f, E, l = this.localeData().eras();
  19345. for (r = 0, f = l.length; r < f; ++r)
  19346. if (E = this.clone().startOf("day").valueOf(), l[r].since <= E && E <= l[r].until || l[r].until <= E && E <= l[r].since)
  19347. return l[r].narrow;
  19348. return "";
  19349. }
  19350. function DS() {
  19351. var r, f, E, l = this.localeData().eras();
  19352. for (r = 0, f = l.length; r < f; ++r)
  19353. if (E = this.clone().startOf("day").valueOf(), l[r].since <= E && E <= l[r].until || l[r].until <= E && E <= l[r].since)
  19354. return l[r].abbr;
  19355. return "";
  19356. }
  19357. function IS() {
  19358. var r, f, E, l, y = this.localeData().eras();
  19359. for (r = 0, f = y.length; r < f; ++r)
  19360. if (E = y[r].since <= y[r].until ? 1 : -1, l = this.clone().startOf("day").valueOf(), y[r].since <= l && l <= y[r].until || y[r].until <= l && l <= y[r].since)
  19361. return (this.year() - Xt(y[r].since).year()) * E + y[r].offset;
  19362. return this.year();
  19363. }
  19364. function RS(r) {
  19365. return me(this, "_erasNameRegex") || Ul.call(this), r ? this._erasNameRegex : this._erasRegex;
  19366. }
  19367. function NS(r) {
  19368. return me(this, "_erasAbbrRegex") || Ul.call(this), r ? this._erasAbbrRegex : this._erasRegex;
  19369. }
  19370. function BS(r) {
  19371. return me(this, "_erasNarrowRegex") || Ul.call(this), r ? this._erasNarrowRegex : this._erasRegex;
  19372. }
  19373. function Fl(r, f) {
  19374. return f.erasAbbrRegex(r);
  19375. }
  19376. function jS(r, f) {
  19377. return f.erasNameRegex(r);
  19378. }
  19379. function WS(r, f) {
  19380. return f.erasNarrowRegex(r);
  19381. }
  19382. function zS(r, f) {
  19383. return f._eraYearOrdinalRegex || kn;
  19384. }
  19385. function Ul() {
  19386. var r = [], f = [], E = [], l = [], y, j, I = this.eras();
  19387. for (y = 0, j = I.length; y < j; ++y)
  19388. f.push(yi(I[y].name)), r.push(yi(I[y].abbr)), E.push(yi(I[y].narrow)), l.push(yi(I[y].name)), l.push(yi(I[y].abbr)), l.push(yi(I[y].narrow));
  19389. this._erasRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + f.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
  19390. "^(" + E.join("|") + ")",
  19391. "i"
  19392. );
  19393. }
  19394. Zt(0, ["gg", 2], 0, function() {
  19395. return this.weekYear() % 100;
  19396. });
  19397. Zt(0, ["GG", 2], 0, function() {
  19398. return this.isoWeekYear() % 100;
  19399. });
  19400. function Ro(r, f) {
  19401. Zt(0, [r, r.length], 0, f);
  19402. }
  19403. Ro("gggg", "weekYear");
  19404. Ro("ggggg", "weekYear");
  19405. Ro("GGGG", "isoWeekYear");
  19406. Ro("GGGGG", "isoWeekYear");
  19407. ti("weekYear", "gg");
  19408. ti("isoWeekYear", "GG");
  19409. ei("weekYear", 1);
  19410. ei("isoWeekYear", 1);
  19411. Ft("G", Oo);
  19412. Ft("g", Oo);
  19413. Ft("GG", Pe, vi);
  19414. Ft("gg", Pe, vi);
  19415. Ft("GGGG", Rl, Il);
  19416. Ft("gggg", Rl, Il);
  19417. Ft("GGGGG", Eo, To);
  19418. Ft("ggggg", Eo, To);
  19419. ls(
  19420. ["gggg", "ggggg", "GGGG", "GGGGG"],
  19421. function(r, f, E, l) {
  19422. f[l.substr(0, 2)] = le(r);
  19423. }
  19424. );
  19425. ls(["gg", "GG"], function(r, f, E, l) {
  19426. f[l] = Xt.parseTwoDigitYear(r);
  19427. });
  19428. function YS(r) {
  19429. return Du.call(
  19430. this,
  19431. r,
  19432. this.week(),
  19433. this.weekday(),
  19434. this.localeData()._week.dow,
  19435. this.localeData()._week.doy
  19436. );
  19437. }
  19438. function XS(r) {
  19439. return Du.call(
  19440. this,
  19441. r,
  19442. this.isoWeek(),
  19443. this.isoWeekday(),
  19444. 1,
  19445. 4
  19446. );
  19447. }
  19448. function GS() {
  19449. return cr(this.year(), 1, 4);
  19450. }
  19451. function HS() {
  19452. return cr(this.isoWeekYear(), 1, 4);
  19453. }
  19454. function FS() {
  19455. var r = this.localeData()._week;
  19456. return cr(this.year(), r.dow, r.doy);
  19457. }
  19458. function US() {
  19459. var r = this.localeData()._week;
  19460. return cr(this.weekYear(), r.dow, r.doy);
  19461. }
  19462. function Du(r, f, E, l, y) {
  19463. var j;
  19464. return r == null ? es(this, l, y).year : (j = cr(r, l, y), f > j && (f = j), VS.call(this, r, f, E, l, y));
  19465. }
  19466. function VS(r, f, E, l, y) {
  19467. var j = uu(r, f, E, l, y), I = ts(j.year, 0, j.dayOfYear);
  19468. return this.year(I.getUTCFullYear()), this.month(I.getUTCMonth()), this.date(I.getUTCDate()), this;
  19469. }
  19470. Zt("Q", 0, "Qo", "quarter");
  19471. ti("quarter", "Q");
  19472. ei("quarter", 7);
  19473. Ft("Q", iu);
  19474. we("Q", function(r, f) {
  19475. f[lr] = (le(r) - 1) * 3;
  19476. });
  19477. function $S(r) {
  19478. return r == null ? Math.ceil((this.month() + 1) / 3) : this.month((r - 1) * 3 + this.month() % 3);
  19479. }
  19480. Zt("D", ["DD", 2], "Do", "date");
  19481. ti("date", "D");
  19482. ei("date", 9);
  19483. Ft("D", Pe);
  19484. Ft("DD", Pe, vi);
  19485. Ft("Do", function(r, f) {
  19486. return r ? f._dayOfMonthOrdinalParse || f._ordinalParse : f._dayOfMonthOrdinalParseLenient;
  19487. });
  19488. we(["D", "DD"], Fi);
  19489. we("Do", function(r, f) {
  19490. f[Fi] = le(r.match(Pe)[0]);
  19491. });
  19492. var Iu = Cn("Date", !0);
  19493. Zt("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
  19494. ti("dayOfYear", "DDD");
  19495. ei("dayOfYear", 4);
  19496. Ft("DDD", Po);
  19497. Ft("DDDD", ru);
  19498. we(["DDD", "DDDD"], function(r, f, E) {
  19499. E._dayOfYear = le(r);
  19500. });
  19501. function ZS(r) {
  19502. var f = Math.round(
  19503. (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
  19504. ) + 1;
  19505. return r == null ? f : this.add(r - f, "d");
  19506. }
  19507. Zt("m", ["mm", 2], 0, "minute");
  19508. ti("minute", "m");
  19509. ei("minute", 14);
  19510. Ft("m", Pe);
  19511. Ft("mm", Pe, vi);
  19512. we(["m", "mm"], Bi);
  19513. var KS = Cn("Minutes", !1);
  19514. Zt("s", ["ss", 2], 0, "second");
  19515. ti("second", "s");
  19516. ei("second", 15);
  19517. Ft("s", Pe);
  19518. Ft("ss", Pe, vi);
  19519. we(["s", "ss"], hr);
  19520. var JS = Cn("Seconds", !1);
  19521. Zt("S", 0, 0, function() {
  19522. return ~~(this.millisecond() / 100);
  19523. });
  19524. Zt(0, ["SS", 2], 0, function() {
  19525. return ~~(this.millisecond() / 10);
  19526. });
  19527. Zt(0, ["SSS", 3], 0, "millisecond");
  19528. Zt(0, ["SSSS", 4], 0, function() {
  19529. return this.millisecond() * 10;
  19530. });
  19531. Zt(0, ["SSSSS", 5], 0, function() {
  19532. return this.millisecond() * 100;
  19533. });
  19534. Zt(0, ["SSSSSS", 6], 0, function() {
  19535. return this.millisecond() * 1e3;
  19536. });
  19537. Zt(0, ["SSSSSSS", 7], 0, function() {
  19538. return this.millisecond() * 1e4;
  19539. });
  19540. Zt(0, ["SSSSSSSS", 8], 0, function() {
  19541. return this.millisecond() * 1e5;
  19542. });
  19543. Zt(0, ["SSSSSSSSS", 9], 0, function() {
  19544. return this.millisecond() * 1e6;
  19545. });
  19546. ti("millisecond", "ms");
  19547. ei("millisecond", 16);
  19548. Ft("S", Po, iu);
  19549. Ft("SS", Po, vi);
  19550. Ft("SSS", Po, ru);
  19551. var Or, Ru;
  19552. for (Or = "SSSS"; Or.length <= 9; Or += "S")
  19553. Ft(Or, kn);
  19554. function qS(r, f) {
  19555. f[Ur] = le(("0." + r) * 1e3);
  19556. }
  19557. for (Or = "S"; Or.length <= 9; Or += "S")
  19558. we(Or, qS);
  19559. Ru = Cn("Milliseconds", !1);
  19560. Zt("z", 0, 0, "zoneAbbr");
  19561. Zt("zz", 0, 0, "zoneName");
  19562. function QS() {
  19563. return this._isUTC ? "UTC" : "";
  19564. }
  19565. function tw() {
  19566. return this._isUTC ? "Coordinated Universal Time" : "";
  19567. }
  19568. var jt = os.prototype;
  19569. jt.add = Ub;
  19570. jt.calendar = Qb;
  19571. jt.clone = tS;
  19572. jt.diff = aS;
  19573. jt.endOf = yS;
  19574. jt.format = pS;
  19575. jt.from = uS;
  19576. jt.fromNow = dS;
  19577. jt.to = fS;
  19578. jt.toNow = gS;
  19579. jt.get = i1;
  19580. jt.invalidAt = AS;
  19581. jt.isAfter = eS;
  19582. jt.isBefore = iS;
  19583. jt.isBetween = rS;
  19584. jt.isSame = nS;
  19585. jt.isSameOrAfter = sS;
  19586. jt.isSameOrBefore = oS;
  19587. jt.isValid = CS;
  19588. jt.lang = Pu;
  19589. jt.locale = Tu;
  19590. jt.localeData = Eu;
  19591. jt.max = Cb;
  19592. jt.min = Mb;
  19593. jt.parsingFlags = kS;
  19594. jt.set = r1;
  19595. jt.startOf = mS;
  19596. jt.subtract = Vb;
  19597. jt.toArray = SS;
  19598. jt.toObject = wS;
  19599. jt.toDate = bS;
  19600. jt.toISOString = hS;
  19601. jt.inspect = cS;
  19602. typeof Symbol < "u" && Symbol.for != null && (jt[Symbol.for("nodejs.util.inspect.custom")] = function() {
  19603. return "Moment<" + this.format() + ">";
  19604. });
  19605. jt.toJSON = MS;
  19606. jt.toString = lS;
  19607. jt.unix = xS;
  19608. jt.valueOf = vS;
  19609. jt.creationData = TS;
  19610. jt.eraName = LS;
  19611. jt.eraNarrow = _S;
  19612. jt.eraAbbr = DS;
  19613. jt.eraYear = IS;
  19614. jt.year = pu;
  19615. jt.isLeapYear = w1;
  19616. jt.weekYear = YS;
  19617. jt.isoWeekYear = XS;
  19618. jt.quarter = jt.quarters = $S;
  19619. jt.month = hu;
  19620. jt.daysInMonth = x1;
  19621. jt.week = jt.weeks = P1;
  19622. jt.isoWeek = jt.isoWeeks = E1;
  19623. jt.weeksInYear = FS;
  19624. jt.weeksInWeekYear = US;
  19625. jt.isoWeeksInYear = GS;
  19626. jt.isoWeeksInISOWeekYear = HS;
  19627. jt.date = Iu;
  19628. jt.day = jt.days = X1;
  19629. jt.weekday = G1;
  19630. jt.isoWeekday = H1;
  19631. jt.dayOfYear = ZS;
  19632. jt.hour = jt.hours = J1;
  19633. jt.minute = jt.minutes = KS;
  19634. jt.second = jt.seconds = JS;
  19635. jt.millisecond = jt.milliseconds = Ru;
  19636. jt.utcOffset = Db;
  19637. jt.utc = Rb;
  19638. jt.local = Nb;
  19639. jt.parseZone = Bb;
  19640. jt.hasAlignedHourOffset = jb;
  19641. jt.isDST = Wb;
  19642. jt.isLocal = Yb;
  19643. jt.isUtcOffset = Xb;
  19644. jt.isUtc = Mu;
  19645. jt.isUTC = Mu;
  19646. jt.zoneAbbr = QS;
  19647. jt.zoneName = tw;
  19648. jt.dates = Oi(
  19649. "dates accessor is deprecated. Use date instead.",
  19650. Iu
  19651. );
  19652. jt.months = Oi(
  19653. "months accessor is deprecated. Use month instead",
  19654. hu
  19655. );
  19656. jt.years = Oi(
  19657. "years accessor is deprecated. Use year instead",
  19658. pu
  19659. );
  19660. jt.zone = Oi(
  19661. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  19662. Ib
  19663. );
  19664. jt.isDSTShifted = Oi(
  19665. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  19666. zb
  19667. );
  19668. function ew(r) {
  19669. return Te(r * 1e3);
  19670. }
  19671. function iw() {
  19672. return Te.apply(null, arguments).parseZone();
  19673. }
  19674. function Nu(r) {
  19675. return r;
  19676. }
  19677. var ye = Ll.prototype;
  19678. ye.calendar = X0;
  19679. ye.longDateFormat = U0;
  19680. ye.invalidDate = $0;
  19681. ye.ordinal = J0;
  19682. ye.preparse = Nu;
  19683. ye.postformat = Nu;
  19684. ye.relativeTime = Q0;
  19685. ye.pastFuture = t1;
  19686. ye.set = z0;
  19687. ye.eras = PS;
  19688. ye.erasParse = ES;
  19689. ye.erasConvertYear = OS;
  19690. ye.erasAbbrRegex = NS;
  19691. ye.erasNameRegex = RS;
  19692. ye.erasNarrowRegex = BS;
  19693. ye.months = g1;
  19694. ye.monthsShort = m1;
  19695. ye.monthsParse = v1;
  19696. ye.monthsRegex = S1;
  19697. ye.monthsShortRegex = b1;
  19698. ye.week = C1;
  19699. ye.firstDayOfYear = T1;
  19700. ye.firstDayOfWeek = A1;
  19701. ye.weekdays = B1;
  19702. ye.weekdaysMin = W1;
  19703. ye.weekdaysShort = j1;
  19704. ye.weekdaysParse = Y1;
  19705. ye.weekdaysRegex = F1;
  19706. ye.weekdaysShortRegex = U1;
  19707. ye.weekdaysMinRegex = V1;
  19708. ye.isPM = Z1;
  19709. ye.meridiem = q1;
  19710. function So(r, f, E, l) {
  19711. var y = gr(), j = $i().set(l, f);
  19712. return y[E](j, r);
  19713. }
  19714. function Bu(r, f, E) {
  19715. if (ur(r) && (f = r, r = void 0), r = r || "", f != null)
  19716. return So(r, f, E, "month");
  19717. var l, y = [];
  19718. for (l = 0; l < 12; l++)
  19719. y[l] = So(r, l, E, "month");
  19720. return y;
  19721. }
  19722. function Vl(r, f, E, l) {
  19723. typeof r == "boolean" ? (ur(f) && (E = f, f = void 0), f = f || "") : (f = r, E = f, r = !1, ur(f) && (E = f, f = void 0), f = f || "");
  19724. var y = gr(), j = r ? y._week.dow : 0, I, Z = [];
  19725. if (E != null)
  19726. return So(f, (E + j) % 7, l, "day");
  19727. for (I = 0; I < 7; I++)
  19728. Z[I] = So(f, (I + j) % 7, l, "day");
  19729. return Z;
  19730. }
  19731. function rw(r, f) {
  19732. return Bu(r, f, "months");
  19733. }
  19734. function nw(r, f) {
  19735. return Bu(r, f, "monthsShort");
  19736. }
  19737. function sw(r, f, E) {
  19738. return Vl(r, f, E, "weekdays");
  19739. }
  19740. function ow(r, f, E) {
  19741. return Vl(r, f, E, "weekdaysShort");
  19742. }
  19743. function aw(r, f, E) {
  19744. return Vl(r, f, E, "weekdaysMin");
  19745. }
  19746. Lr("en", {
  19747. eras: [
  19748. {
  19749. since: "0001-01-01",
  19750. until: 1 / 0,
  19751. offset: 1,
  19752. name: "Anno Domini",
  19753. narrow: "AD",
  19754. abbr: "AD"
  19755. },
  19756. {
  19757. since: "0000-12-31",
  19758. until: -1 / 0,
  19759. offset: 1,
  19760. name: "Before Christ",
  19761. narrow: "BC",
  19762. abbr: "BC"
  19763. }
  19764. ],
  19765. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19766. ordinal: function(r) {
  19767. var f = r % 10, E = le(r % 100 / 10) === 1 ? "th" : f === 1 ? "st" : f === 2 ? "nd" : f === 3 ? "rd" : "th";
  19768. return r + E;
  19769. }
  19770. });
  19771. Xt.lang = Oi(
  19772. "moment.lang is deprecated. Use moment.locale instead.",
  19773. Lr
  19774. );
  19775. Xt.langData = Oi(
  19776. "moment.langData is deprecated. Use moment.localeData instead.",
  19777. gr
  19778. );
  19779. var sr = Math.abs;
  19780. function lw() {
  19781. var r = this._data;
  19782. 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;
  19783. }
  19784. function ju(r, f, E, l) {
  19785. var y = zi(f, E);
  19786. return r._milliseconds += l * y._milliseconds, r._days += l * y._days, r._months += l * y._months, r._bubble();
  19787. }
  19788. function hw(r, f) {
  19789. return ju(this, r, f, 1);
  19790. }
  19791. function cw(r, f) {
  19792. return ju(this, r, f, -1);
  19793. }
  19794. function Ip(r) {
  19795. return r < 0 ? Math.floor(r) : Math.ceil(r);
  19796. }
  19797. function pw() {
  19798. var r = this._milliseconds, f = this._days, E = this._months, l = this._data, y, j, I, Z, H;
  19799. return r >= 0 && f >= 0 && E >= 0 || r <= 0 && f <= 0 && E <= 0 || (r += Ip(Ml(E) + f) * 864e5, f = 0, E = 0), l.milliseconds = r % 1e3, y = Ti(r / 1e3), l.seconds = y % 60, j = Ti(y / 60), l.minutes = j % 60, I = Ti(j / 60), l.hours = I % 24, f += Ti(I / 24), H = Ti(Wu(f)), E += H, f -= Ip(Ml(H)), Z = Ti(E / 12), E %= 12, l.days = f, l.months = E, l.years = Z, this;
  19800. }
  19801. function Wu(r) {
  19802. return r * 4800 / 146097;
  19803. }
  19804. function Ml(r) {
  19805. return r * 146097 / 4800;
  19806. }
  19807. function uw(r) {
  19808. if (!this.isValid())
  19809. return NaN;
  19810. var f, E, l = this._milliseconds;
  19811. if (r = Li(r), r === "month" || r === "quarter" || r === "year")
  19812. switch (f = this._days + l / 864e5, E = this._months + Wu(f), r) {
  19813. case "month":
  19814. return E;
  19815. case "quarter":
  19816. return E / 3;
  19817. case "year":
  19818. return E / 12;
  19819. }
  19820. else
  19821. switch (f = this._days + Math.round(Ml(this._months)), r) {
  19822. case "week":
  19823. return f / 7 + l / 6048e5;
  19824. case "day":
  19825. return f + l / 864e5;
  19826. case "hour":
  19827. return f * 24 + l / 36e5;
  19828. case "minute":
  19829. return f * 1440 + l / 6e4;
  19830. case "second":
  19831. return f * 86400 + l / 1e3;
  19832. case "millisecond":
  19833. return Math.floor(f * 864e5) + l;
  19834. default:
  19835. throw new Error("Unknown unit " + r);
  19836. }
  19837. }
  19838. function dw() {
  19839. return this.isValid() ? this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + le(this._months / 12) * 31536e6 : NaN;
  19840. }
  19841. function mr(r) {
  19842. return function() {
  19843. return this.as(r);
  19844. };
  19845. }
  19846. var fw = mr("ms"), gw = mr("s"), mw = mr("m"), yw = mr("h"), vw = mr("d"), xw = mr("w"), bw = mr("M"), Sw = mr("Q"), ww = mr("y");
  19847. function Mw() {
  19848. return zi(this);
  19849. }
  19850. function Cw(r) {
  19851. return r = Li(r), this.isValid() ? this[r + "s"]() : NaN;
  19852. }
  19853. function Kr(r) {
  19854. return function() {
  19855. return this.isValid() ? this._data[r] : NaN;
  19856. };
  19857. }
  19858. var kw = Kr("milliseconds"), Aw = Kr("seconds"), Tw = Kr("minutes"), Pw = Kr("hours"), Ew = Kr("days"), Ow = Kr("months"), Lw = Kr("years");
  19859. function _w() {
  19860. return Ti(this.days() / 7);
  19861. }
  19862. var or = Math.round, mn = {
  19863. ss: 44,
  19864. // a few seconds to seconds
  19865. s: 45,
  19866. // seconds to minute
  19867. m: 45,
  19868. // minutes to hour
  19869. h: 22,
  19870. // hours to day
  19871. d: 26,
  19872. // days to month/week
  19873. w: null,
  19874. // weeks to month
  19875. M: 11
  19876. // months to year
  19877. };
  19878. function Dw(r, f, E, l, y) {
  19879. return y.relativeTime(f || 1, !!E, r, l);
  19880. }
  19881. function Iw(r, f, E, l) {
  19882. var y = zi(r).abs(), j = or(y.as("s")), I = or(y.as("m")), Z = or(y.as("h")), H = or(y.as("d")), U = or(y.as("M")), F = or(y.as("w")), N = or(y.as("y")), R = j <= E.ss && ["s", j] || j < E.s && ["ss", j] || I <= 1 && ["m"] || I < E.m && ["mm", I] || Z <= 1 && ["h"] || Z < E.h && ["hh", Z] || H <= 1 && ["d"] || H < E.d && ["dd", H];
  19883. return E.w != null && (R = R || F <= 1 && ["w"] || F < E.w && ["ww", F]), R = R || U <= 1 && ["M"] || U < E.M && ["MM", U] || N <= 1 && ["y"] || ["yy", N], R[2] = f, R[3] = +r > 0, R[4] = l, Dw.apply(null, R);
  19884. }
  19885. function Rw(r) {
  19886. return r === void 0 ? or : typeof r == "function" ? (or = r, !0) : !1;
  19887. }
  19888. function Nw(r, f) {
  19889. return mn[r] === void 0 ? !1 : f === void 0 ? mn[r] : (mn[r] = f, r === "s" && (mn.ss = f - 1), !0);
  19890. }
  19891. function Bw(r, f) {
  19892. if (!this.isValid())
  19893. return this.localeData().invalidDate();
  19894. var E = !1, l = mn, y, j;
  19895. return typeof r == "object" && (f = r, r = !1), typeof r == "boolean" && (E = r), typeof f == "object" && (l = Object.assign({}, mn, f), f.s != null && f.ss == null && (l.ss = f.s - 1)), y = this.localeData(), j = Iw(this, !E, l, y), E && (j = y.pastFuture(+this, j)), y.postformat(j);
  19896. }
  19897. var nl = Math.abs;
  19898. function fn(r) {
  19899. return (r > 0) - (r < 0) || +r;
  19900. }
  19901. function No() {
  19902. if (!this.isValid())
  19903. return this.localeData().invalidDate();
  19904. var r = nl(this._milliseconds) / 1e3, f = nl(this._days), E = nl(this._months), l, y, j, I, Z = this.asSeconds(), H, U, F, N;
  19905. return Z ? (l = Ti(r / 60), y = Ti(l / 60), r %= 60, l %= 60, j = Ti(E / 12), E %= 12, I = r ? r.toFixed(3).replace(/\.?0+$/, "") : "", H = Z < 0 ? "-" : "", U = fn(this._months) !== fn(Z) ? "-" : "", F = fn(this._days) !== fn(Z) ? "-" : "", N = fn(this._milliseconds) !== fn(Z) ? "-" : "", H + "P" + (j ? U + j + "Y" : "") + (E ? U + E + "M" : "") + (f ? F + f + "D" : "") + (y || l || r ? "T" : "") + (y ? N + y + "H" : "") + (l ? N + l + "M" : "") + (r ? N + I + "S" : "")) : "P0D";
  19906. }
  19907. var de = Io.prototype;
  19908. de.isValid = Eb;
  19909. de.abs = lw;
  19910. de.add = hw;
  19911. de.subtract = cw;
  19912. de.as = uw;
  19913. de.asMilliseconds = fw;
  19914. de.asSeconds = gw;
  19915. de.asMinutes = mw;
  19916. de.asHours = yw;
  19917. de.asDays = vw;
  19918. de.asWeeks = xw;
  19919. de.asMonths = bw;
  19920. de.asQuarters = Sw;
  19921. de.asYears = ww;
  19922. de.valueOf = dw;
  19923. de._bubble = pw;
  19924. de.clone = Mw;
  19925. de.get = Cw;
  19926. de.milliseconds = kw;
  19927. de.seconds = Aw;
  19928. de.minutes = Tw;
  19929. de.hours = Pw;
  19930. de.days = Ew;
  19931. de.weeks = _w;
  19932. de.months = Ow;
  19933. de.years = Lw;
  19934. de.humanize = Bw;
  19935. de.toISOString = No;
  19936. de.toString = No;
  19937. de.toJSON = No;
  19938. de.locale = Tu;
  19939. de.localeData = Eu;
  19940. de.toIsoString = Oi(
  19941. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  19942. No
  19943. );
  19944. de.lang = Pu;
  19945. Zt("X", 0, 0, "unix");
  19946. Zt("x", 0, 0, "valueOf");
  19947. Ft("x", Oo);
  19948. Ft("X", s1);
  19949. we("X", function(r, f, E) {
  19950. E._d = new Date(parseFloat(r) * 1e3);
  19951. });
  19952. we("x", function(r, f, E) {
  19953. E._d = new Date(le(r));
  19954. });
  19955. //! moment.js
  19956. Xt.version = "2.29.4";
  19957. j0(Te);
  19958. Xt.fn = jt;
  19959. Xt.min = kb;
  19960. Xt.max = Ab;
  19961. Xt.now = Tb;
  19962. Xt.utc = $i;
  19963. Xt.unix = ew;
  19964. Xt.months = rw;
  19965. Xt.isDate = ss;
  19966. Xt.locale = Lr;
  19967. Xt.invalid = ko;
  19968. Xt.duration = zi;
  19969. Xt.isMoment = Wi;
  19970. Xt.weekdays = sw;
  19971. Xt.parseZone = iw;
  19972. Xt.localeData = gr;
  19973. Xt.isDuration = oo;
  19974. Xt.monthsShort = nw;
  19975. Xt.weekdaysMin = aw;
  19976. Xt.defineLocale = Wl;
  19977. Xt.updateLocale = ib;
  19978. Xt.locales = rb;
  19979. Xt.weekdaysShort = ow;
  19980. Xt.normalizeUnits = Li;
  19981. Xt.relativeTimeRounding = Rw;
  19982. Xt.relativeTimeThreshold = Nw;
  19983. Xt.calendarFormat = qb;
  19984. Xt.prototype = jt;
  19985. Xt.HTML5_FMT = {
  19986. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  19987. // <input type="datetime-local" />
  19988. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  19989. // <input type="datetime-local" step="1" />
  19990. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  19991. // <input type="datetime-local" step="0.001" />
  19992. DATE: "YYYY-MM-DD",
  19993. // <input type="date" />
  19994. TIME: "HH:mm",
  19995. // <input type="time" />
  19996. TIME_SECONDS: "HH:mm:ss",
  19997. // <input type="time" step="1" />
  19998. TIME_MS: "HH:mm:ss.SSS",
  19999. // <input type="time" step="0.001" />
  20000. WEEK: "GGGG-[W]WW",
  20001. // <input type="week" />
  20002. MONTH: "YYYY-MM"
  20003. // <input type="month" />
  20004. };
  20005. var wo = {}, jw = {
  20006. get exports() {
  20007. return wo;
  20008. },
  20009. set exports(r) {
  20010. wo = r;
  20011. }
  20012. };
  20013. /**
  20014. * @license
  20015. * Lodash <https://lodash.com/>
  20016. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  20017. * Released under MIT license <https://lodash.com/license>
  20018. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  20019. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  20020. */
  20021. (function(r, f) {
  20022. (function() {
  20023. var E, l = "4.17.21", y = 200, j = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", I = "Expected a function", Z = "Invalid `variable` option passed into `_.template`", H = "__lodash_hash_undefined__", U = 500, F = "__lodash_placeholder__", N = 1, R = 2, S = 4, v = 1, d = 2, u = 1, A = 2, O = 4, B = 8, C = 16, b = 32, w = 64, x = 128, a = 256, c = 512, p = 30, i = "...", h = 800, o = 16, t = 1, s = 2, n = 3, T = 1 / 0, _ = 9007199254740991, D = 17976931348623157e292, W = 0 / 0, P = 4294967295, X = P - 1, g = P >>> 1, m = [
  20024. ["ary", x],
  20025. ["bind", u],
  20026. ["bindKey", A],
  20027. ["curry", B],
  20028. ["curryRight", C],
  20029. ["flip", c],
  20030. ["partial", b],
  20031. ["partialRight", w],
  20032. ["rearg", a]
  20033. ], L = "[object Arguments]", Y = "[object Array]", V = "[object AsyncFunction]", Q = "[object Boolean]", k = "[object Date]", G = "[object DOMException]", z = "[object Error]", $ = "[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]", Lt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Et = "[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, zt = RegExp(Jt.source), Vt = RegExp(be.source), Me = /<%-([\s\S]+?)%>/g, _r = /<%([\s\S]+?)%>/g, ps = /<%=([\s\S]+?)%>/g, Tn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pn = /^\w*$/, $e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, En = /[\\^$.*+?()[\]{}|]/g, On = RegExp(En.source), Jr = /^\s+/, us = /\s/, Xo = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Dr = /\{\n\/\* \[wrapped with (.+)\] \*/, Yi = /,? & /, ds = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ln = /[()=,{}\[\]\/\s]/, Ir = /\\(\\)?/g, $t = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ue = /\w*$/, ge = /^[-+]0x[0-9a-f]+$/i, Re = /^0b[01]+$/i, De = /^\[object .+?Constructor\]$/, qr = /^0o[0-7]+$/i, dd = /^(?:0|[1-9]\d*)$/, fd = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, fs = /($^)/, gd = /['\n\r\u2028\u2029\\]/g, gs = "\\ud800-\\udfff", md = "\\u0300-\\u036f", yd = "\\ufe20-\\ufe2f", vd = "\\u20d0-\\u20ff", nh = md + yd + vd, sh = "\\u2700-\\u27bf", oh = "a-z\\xdf-\\xf6\\xf8-\\xff", xd = "\\xac\\xb1\\xd7\\xf7", bd = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Sd = "\\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", ah = "A-Z\\xc0-\\xd6\\xd8-\\xde", lh = "\\ufe0e\\ufe0f", hh = xd + bd + Sd + wd, Go = "['’]", Md = "[" + gs + "]", ch = "[" + hh + "]", ms = "[" + nh + "]", ph = "\\d+", Cd = "[" + sh + "]", uh = "[" + oh + "]", dh = "[^" + gs + hh + ph + sh + oh + ah + "]", Ho = "\\ud83c[\\udffb-\\udfff]", kd = "(?:" + ms + "|" + Ho + ")", fh = "[^" + gs + "]", Fo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Uo = "[\\ud800-\\udbff][\\udc00-\\udfff]", Qr = "[" + ah + "]", gh = "\\u200d", mh = "(?:" + uh + "|" + dh + ")", Ad = "(?:" + Qr + "|" + dh + ")", yh = "(?:" + Go + "(?:d|ll|m|re|s|t|ve))?", vh = "(?:" + Go + "(?:D|LL|M|RE|S|T|VE))?", xh = kd + "?", bh = "[" + lh + "]?", Td = "(?:" + gh + "(?:" + [fh, Fo, Uo].join("|") + ")" + bh + xh + ")*", Pd = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ed = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Sh = bh + xh + Td, Od = "(?:" + [Cd, Fo, Uo].join("|") + ")" + Sh, Ld = "(?:" + [fh + ms + "?", ms, Fo, Uo, Md].join("|") + ")", _d = RegExp(Go, "g"), Dd = RegExp(ms, "g"), Vo = RegExp(Ho + "(?=" + Ho + ")|" + Ld + Sh, "g"), Id = RegExp([
  20034. Qr + "?" + uh + "+" + yh + "(?=" + [ch, Qr, "$"].join("|") + ")",
  20035. Ad + "+" + vh + "(?=" + [ch, Qr + mh, "$"].join("|") + ")",
  20036. Qr + "?" + mh + "+" + yh,
  20037. Qr + "+" + vh,
  20038. Ed,
  20039. Pd,
  20040. ph,
  20041. Od
  20042. ].join("|"), "g"), Rd = RegExp("[" + gh + gs + nh + lh + "]"), Nd = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Bd = [
  20043. "Array",
  20044. "Buffer",
  20045. "DataView",
  20046. "Date",
  20047. "Error",
  20048. "Float32Array",
  20049. "Float64Array",
  20050. "Function",
  20051. "Int8Array",
  20052. "Int16Array",
  20053. "Int32Array",
  20054. "Map",
  20055. "Math",
  20056. "Object",
  20057. "Promise",
  20058. "RegExp",
  20059. "Set",
  20060. "String",
  20061. "Symbol",
  20062. "TypeError",
  20063. "Uint8Array",
  20064. "Uint8ClampedArray",
  20065. "Uint16Array",
  20066. "Uint32Array",
  20067. "WeakMap",
  20068. "_",
  20069. "clearTimeout",
  20070. "isFinite",
  20071. "parseInt",
  20072. "setTimeout"
  20073. ], jd = -1, Ae = {};
  20074. Ae[vt] = Ae[Ct] = Ae[Pt] = Ae[At] = Ae[St] = Ae[Dt] = Ae[Lt] = Ae[Nt] = Ae[Et] = !0, Ae[L] = Ae[Y] = Ae[pt] = Ae[Q] = Ae[yt] = Ae[k] = Ae[z] = Ae[$] = Ae[it] = Ae[et] = Ae[rt] = Ae[dt] = Ae[ht] = Ae[at] = Ae[ot] = !1;
  20075. var ke = {};
  20076. ke[L] = ke[Y] = ke[pt] = ke[yt] = ke[Q] = ke[k] = 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[Lt] = ke[Nt] = ke[Et] = !0, ke[z] = ke[$] = ke[ot] = !1;
  20077. var Wd = {
  20078. // Latin-1 Supplement block.
  20079. À: "A",
  20080. Á: "A",
  20081. Â: "A",
  20082. Ã: "A",
  20083. Ä: "A",
  20084. Å: "A",
  20085. à: "a",
  20086. á: "a",
  20087. â: "a",
  20088. ã: "a",
  20089. ä: "a",
  20090. å: "a",
  20091. Ç: "C",
  20092. ç: "c",
  20093. Ð: "D",
  20094. ð: "d",
  20095. È: "E",
  20096. É: "E",
  20097. Ê: "E",
  20098. Ë: "E",
  20099. è: "e",
  20100. é: "e",
  20101. ê: "e",
  20102. ë: "e",
  20103. Ì: "I",
  20104. Í: "I",
  20105. Î: "I",
  20106. Ï: "I",
  20107. ì: "i",
  20108. í: "i",
  20109. î: "i",
  20110. ï: "i",
  20111. Ñ: "N",
  20112. ñ: "n",
  20113. Ò: "O",
  20114. Ó: "O",
  20115. Ô: "O",
  20116. Õ: "O",
  20117. Ö: "O",
  20118. Ø: "O",
  20119. ò: "o",
  20120. ó: "o",
  20121. ô: "o",
  20122. õ: "o",
  20123. ö: "o",
  20124. ø: "o",
  20125. Ù: "U",
  20126. Ú: "U",
  20127. Û: "U",
  20128. Ü: "U",
  20129. ù: "u",
  20130. ú: "u",
  20131. û: "u",
  20132. ü: "u",
  20133. Ý: "Y",
  20134. ý: "y",
  20135. ÿ: "y",
  20136. Æ: "Ae",
  20137. æ: "ae",
  20138. Þ: "Th",
  20139. þ: "th",
  20140. ß: "ss",
  20141. // Latin Extended-A block.
  20142. Ā: "A",
  20143. Ă: "A",
  20144. Ą: "A",
  20145. ā: "a",
  20146. ă: "a",
  20147. ą: "a",
  20148. Ć: "C",
  20149. Ĉ: "C",
  20150. Ċ: "C",
  20151. Č: "C",
  20152. ć: "c",
  20153. ĉ: "c",
  20154. ċ: "c",
  20155. č: "c",
  20156. Ď: "D",
  20157. Đ: "D",
  20158. ď: "d",
  20159. đ: "d",
  20160. Ē: "E",
  20161. Ĕ: "E",
  20162. Ė: "E",
  20163. Ę: "E",
  20164. Ě: "E",
  20165. ē: "e",
  20166. ĕ: "e",
  20167. ė: "e",
  20168. ę: "e",
  20169. ě: "e",
  20170. Ĝ: "G",
  20171. Ğ: "G",
  20172. Ġ: "G",
  20173. Ģ: "G",
  20174. ĝ: "g",
  20175. ğ: "g",
  20176. ġ: "g",
  20177. ģ: "g",
  20178. Ĥ: "H",
  20179. Ħ: "H",
  20180. ĥ: "h",
  20181. ħ: "h",
  20182. Ĩ: "I",
  20183. Ī: "I",
  20184. Ĭ: "I",
  20185. Į: "I",
  20186. İ: "I",
  20187. ĩ: "i",
  20188. ī: "i",
  20189. ĭ: "i",
  20190. į: "i",
  20191. ı: "i",
  20192. Ĵ: "J",
  20193. ĵ: "j",
  20194. Ķ: "K",
  20195. ķ: "k",
  20196. ĸ: "k",
  20197. Ĺ: "L",
  20198. Ļ: "L",
  20199. Ľ: "L",
  20200. Ŀ: "L",
  20201. Ł: "L",
  20202. ĺ: "l",
  20203. ļ: "l",
  20204. ľ: "l",
  20205. ŀ: "l",
  20206. ł: "l",
  20207. Ń: "N",
  20208. Ņ: "N",
  20209. Ň: "N",
  20210. Ŋ: "N",
  20211. ń: "n",
  20212. ņ: "n",
  20213. ň: "n",
  20214. ŋ: "n",
  20215. Ō: "O",
  20216. Ŏ: "O",
  20217. Ő: "O",
  20218. ō: "o",
  20219. ŏ: "o",
  20220. ő: "o",
  20221. Ŕ: "R",
  20222. Ŗ: "R",
  20223. Ř: "R",
  20224. ŕ: "r",
  20225. ŗ: "r",
  20226. ř: "r",
  20227. Ś: "S",
  20228. Ŝ: "S",
  20229. Ş: "S",
  20230. Š: "S",
  20231. ś: "s",
  20232. ŝ: "s",
  20233. ş: "s",
  20234. š: "s",
  20235. Ţ: "T",
  20236. Ť: "T",
  20237. Ŧ: "T",
  20238. ţ: "t",
  20239. ť: "t",
  20240. ŧ: "t",
  20241. Ũ: "U",
  20242. Ū: "U",
  20243. Ŭ: "U",
  20244. Ů: "U",
  20245. Ű: "U",
  20246. Ų: "U",
  20247. ũ: "u",
  20248. ū: "u",
  20249. ŭ: "u",
  20250. ů: "u",
  20251. ű: "u",
  20252. ų: "u",
  20253. Ŵ: "W",
  20254. ŵ: "w",
  20255. Ŷ: "Y",
  20256. ŷ: "y",
  20257. Ÿ: "Y",
  20258. Ź: "Z",
  20259. Ż: "Z",
  20260. Ž: "Z",
  20261. ź: "z",
  20262. ż: "z",
  20263. ž: "z",
  20264. IJ: "IJ",
  20265. ij: "ij",
  20266. Œ: "Oe",
  20267. œ: "oe",
  20268. ʼn: "'n",
  20269. ſ: "s"
  20270. }, zd = {
  20271. "&": "&amp;",
  20272. "<": "&lt;",
  20273. ">": "&gt;",
  20274. '"': "&quot;",
  20275. "'": "&#39;"
  20276. }, Yd = {
  20277. "&amp;": "&",
  20278. "&lt;": "<",
  20279. "&gt;": ">",
  20280. "&quot;": '"',
  20281. "&#39;": "'"
  20282. }, Xd = {
  20283. "\\": "\\",
  20284. "'": "'",
  20285. "\n": "n",
  20286. "\r": "r",
  20287. "\u2028": "u2028",
  20288. "\u2029": "u2029"
  20289. }, Gd = parseFloat, Hd = parseInt, wh = typeof Fr == "object" && Fr && Fr.Object === Object && Fr, Fd = typeof self == "object" && self && self.Object === Object && self, Ue = wh || Fd || Function("return this")(), $o = f && !f.nodeType && f, Rr = $o && !0 && r && !r.nodeType && r, Mh = Rr && Rr.exports === $o, Zo = Mh && wh.process, xi = function() {
  20290. try {
  20291. var wt = Rr && Rr.require && Rr.require("util").types;
  20292. return wt || Zo && Zo.binding && Zo.binding("util");
  20293. } catch {
  20294. }
  20295. }(), Ch = xi && xi.isArrayBuffer, kh = xi && xi.isDate, Ah = xi && xi.isMap, Th = xi && xi.isRegExp, Ph = xi && xi.isSet, Eh = xi && xi.isTypedArray;
  20296. function pi(wt, Ot, Tt) {
  20297. switch (Tt.length) {
  20298. case 0:
  20299. return wt.call(Ot);
  20300. case 1:
  20301. return wt.call(Ot, Tt[0]);
  20302. case 2:
  20303. return wt.call(Ot, Tt[0], Tt[1]);
  20304. case 3:
  20305. return wt.call(Ot, Tt[0], Tt[1], Tt[2]);
  20306. }
  20307. return wt.apply(Ot, Tt);
  20308. }
  20309. function Ud(wt, Ot, Tt, Ht) {
  20310. for (var ee = -1, ve = wt == null ? 0 : wt.length; ++ee < ve; ) {
  20311. var ze = wt[ee];
  20312. Ot(Ht, ze, Tt(ze), wt);
  20313. }
  20314. return Ht;
  20315. }
  20316. function bi(wt, Ot) {
  20317. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht && Ot(wt[Tt], Tt, wt) !== !1; )
  20318. ;
  20319. return wt;
  20320. }
  20321. function Vd(wt, Ot) {
  20322. for (var Tt = wt == null ? 0 : wt.length; Tt-- && Ot(wt[Tt], Tt, wt) !== !1; )
  20323. ;
  20324. return wt;
  20325. }
  20326. function Oh(wt, Ot) {
  20327. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht; )
  20328. if (!Ot(wt[Tt], Tt, wt))
  20329. return !1;
  20330. return !0;
  20331. }
  20332. function vr(wt, Ot) {
  20333. for (var Tt = -1, Ht = wt == null ? 0 : wt.length, ee = 0, ve = []; ++Tt < Ht; ) {
  20334. var ze = wt[Tt];
  20335. Ot(ze, Tt, wt) && (ve[ee++] = ze);
  20336. }
  20337. return ve;
  20338. }
  20339. function ys(wt, Ot) {
  20340. var Tt = wt == null ? 0 : wt.length;
  20341. return !!Tt && tn(wt, Ot, 0) > -1;
  20342. }
  20343. function Ko(wt, Ot, Tt) {
  20344. for (var Ht = -1, ee = wt == null ? 0 : wt.length; ++Ht < ee; )
  20345. if (Tt(Ot, wt[Ht]))
  20346. return !0;
  20347. return !1;
  20348. }
  20349. function Ee(wt, Ot) {
  20350. for (var Tt = -1, Ht = wt == null ? 0 : wt.length, ee = Array(Ht); ++Tt < Ht; )
  20351. ee[Tt] = Ot(wt[Tt], Tt, wt);
  20352. return ee;
  20353. }
  20354. function xr(wt, Ot) {
  20355. for (var Tt = -1, Ht = Ot.length, ee = wt.length; ++Tt < Ht; )
  20356. wt[ee + Tt] = Ot[Tt];
  20357. return wt;
  20358. }
  20359. function Jo(wt, Ot, Tt, Ht) {
  20360. var ee = -1, ve = wt == null ? 0 : wt.length;
  20361. for (Ht && ve && (Tt = wt[++ee]); ++ee < ve; )
  20362. Tt = Ot(Tt, wt[ee], ee, wt);
  20363. return Tt;
  20364. }
  20365. function $d(wt, Ot, Tt, Ht) {
  20366. var ee = wt == null ? 0 : wt.length;
  20367. for (Ht && ee && (Tt = wt[--ee]); ee--; )
  20368. Tt = Ot(Tt, wt[ee], ee, wt);
  20369. return Tt;
  20370. }
  20371. function qo(wt, Ot) {
  20372. for (var Tt = -1, Ht = wt == null ? 0 : wt.length; ++Tt < Ht; )
  20373. if (Ot(wt[Tt], Tt, wt))
  20374. return !0;
  20375. return !1;
  20376. }
  20377. var Zd = Qo("length");
  20378. function Kd(wt) {
  20379. return wt.split("");
  20380. }
  20381. function Jd(wt) {
  20382. return wt.match(ds) || [];
  20383. }
  20384. function Lh(wt, Ot, Tt) {
  20385. var Ht;
  20386. return Tt(wt, function(ee, ve, ze) {
  20387. if (Ot(ee, ve, ze))
  20388. return Ht = ve, !1;
  20389. }), Ht;
  20390. }
  20391. function vs(wt, Ot, Tt, Ht) {
  20392. for (var ee = wt.length, ve = Tt + (Ht ? 1 : -1); Ht ? ve-- : ++ve < ee; )
  20393. if (Ot(wt[ve], ve, wt))
  20394. return ve;
  20395. return -1;
  20396. }
  20397. function tn(wt, Ot, Tt) {
  20398. return Ot === Ot ? cf(wt, Ot, Tt) : vs(wt, _h, Tt);
  20399. }
  20400. function qd(wt, Ot, Tt, Ht) {
  20401. for (var ee = Tt - 1, ve = wt.length; ++ee < ve; )
  20402. if (Ht(wt[ee], Ot))
  20403. return ee;
  20404. return -1;
  20405. }
  20406. function _h(wt) {
  20407. return wt !== wt;
  20408. }
  20409. function Dh(wt, Ot) {
  20410. var Tt = wt == null ? 0 : wt.length;
  20411. return Tt ? ea(wt, Ot) / Tt : W;
  20412. }
  20413. function Qo(wt) {
  20414. return function(Ot) {
  20415. return Ot == null ? E : Ot[wt];
  20416. };
  20417. }
  20418. function ta(wt) {
  20419. return function(Ot) {
  20420. return wt == null ? E : wt[Ot];
  20421. };
  20422. }
  20423. function Ih(wt, Ot, Tt, Ht, ee) {
  20424. return ee(wt, function(ve, ze, Ce) {
  20425. Tt = Ht ? (Ht = !1, ve) : Ot(Tt, ve, ze, Ce);
  20426. }), Tt;
  20427. }
  20428. function Qd(wt, Ot) {
  20429. var Tt = wt.length;
  20430. for (wt.sort(Ot); Tt--; )
  20431. wt[Tt] = wt[Tt].value;
  20432. return wt;
  20433. }
  20434. function ea(wt, Ot) {
  20435. for (var Tt, Ht = -1, ee = wt.length; ++Ht < ee; ) {
  20436. var ve = Ot(wt[Ht]);
  20437. ve !== E && (Tt = Tt === E ? ve : Tt + ve);
  20438. }
  20439. return Tt;
  20440. }
  20441. function ia(wt, Ot) {
  20442. for (var Tt = -1, Ht = Array(wt); ++Tt < wt; )
  20443. Ht[Tt] = Ot(Tt);
  20444. return Ht;
  20445. }
  20446. function tf(wt, Ot) {
  20447. return Ee(Ot, function(Tt) {
  20448. return [Tt, wt[Tt]];
  20449. });
  20450. }
  20451. function Rh(wt) {
  20452. return wt && wt.slice(0, Wh(wt) + 1).replace(Jr, "");
  20453. }
  20454. function ui(wt) {
  20455. return function(Ot) {
  20456. return wt(Ot);
  20457. };
  20458. }
  20459. function ra(wt, Ot) {
  20460. return Ee(Ot, function(Tt) {
  20461. return wt[Tt];
  20462. });
  20463. }
  20464. function _n(wt, Ot) {
  20465. return wt.has(Ot);
  20466. }
  20467. function Nh(wt, Ot) {
  20468. for (var Tt = -1, Ht = wt.length; ++Tt < Ht && tn(Ot, wt[Tt], 0) > -1; )
  20469. ;
  20470. return Tt;
  20471. }
  20472. function Bh(wt, Ot) {
  20473. for (var Tt = wt.length; Tt-- && tn(Ot, wt[Tt], 0) > -1; )
  20474. ;
  20475. return Tt;
  20476. }
  20477. function ef(wt, Ot) {
  20478. for (var Tt = wt.length, Ht = 0; Tt--; )
  20479. wt[Tt] === Ot && ++Ht;
  20480. return Ht;
  20481. }
  20482. var rf = ta(Wd), nf = ta(zd);
  20483. function sf(wt) {
  20484. return "\\" + Xd[wt];
  20485. }
  20486. function of(wt, Ot) {
  20487. return wt == null ? E : wt[Ot];
  20488. }
  20489. function en(wt) {
  20490. return Rd.test(wt);
  20491. }
  20492. function af(wt) {
  20493. return Nd.test(wt);
  20494. }
  20495. function lf(wt) {
  20496. for (var Ot, Tt = []; !(Ot = wt.next()).done; )
  20497. Tt.push(Ot.value);
  20498. return Tt;
  20499. }
  20500. function na(wt) {
  20501. var Ot = -1, Tt = Array(wt.size);
  20502. return wt.forEach(function(Ht, ee) {
  20503. Tt[++Ot] = [ee, Ht];
  20504. }), Tt;
  20505. }
  20506. function jh(wt, Ot) {
  20507. return function(Tt) {
  20508. return wt(Ot(Tt));
  20509. };
  20510. }
  20511. function br(wt, Ot) {
  20512. for (var Tt = -1, Ht = wt.length, ee = 0, ve = []; ++Tt < Ht; ) {
  20513. var ze = wt[Tt];
  20514. (ze === Ot || ze === F) && (wt[Tt] = F, ve[ee++] = Tt);
  20515. }
  20516. return ve;
  20517. }
  20518. function xs(wt) {
  20519. var Ot = -1, Tt = Array(wt.size);
  20520. return wt.forEach(function(Ht) {
  20521. Tt[++Ot] = Ht;
  20522. }), Tt;
  20523. }
  20524. function hf(wt) {
  20525. var Ot = -1, Tt = Array(wt.size);
  20526. return wt.forEach(function(Ht) {
  20527. Tt[++Ot] = [Ht, Ht];
  20528. }), Tt;
  20529. }
  20530. function cf(wt, Ot, Tt) {
  20531. for (var Ht = Tt - 1, ee = wt.length; ++Ht < ee; )
  20532. if (wt[Ht] === Ot)
  20533. return Ht;
  20534. return -1;
  20535. }
  20536. function pf(wt, Ot, Tt) {
  20537. for (var Ht = Tt + 1; Ht--; )
  20538. if (wt[Ht] === Ot)
  20539. return Ht;
  20540. return Ht;
  20541. }
  20542. function rn(wt) {
  20543. return en(wt) ? df(wt) : Zd(wt);
  20544. }
  20545. function _i(wt) {
  20546. return en(wt) ? ff(wt) : Kd(wt);
  20547. }
  20548. function Wh(wt) {
  20549. for (var Ot = wt.length; Ot-- && us.test(wt.charAt(Ot)); )
  20550. ;
  20551. return Ot;
  20552. }
  20553. var uf = ta(Yd);
  20554. function df(wt) {
  20555. for (var Ot = Vo.lastIndex = 0; Vo.test(wt); )
  20556. ++Ot;
  20557. return Ot;
  20558. }
  20559. function ff(wt) {
  20560. return wt.match(Vo) || [];
  20561. }
  20562. function gf(wt) {
  20563. return wt.match(Id) || [];
  20564. }
  20565. var mf = function wt(Ot) {
  20566. Ot = Ot == null ? Ue : nn.defaults(Ue.Object(), Ot, nn.pick(Ue, Bd));
  20567. var Tt = Ot.Array, Ht = Ot.Date, ee = Ot.Error, ve = Ot.Function, ze = Ot.Math, Ce = Ot.Object, sa = Ot.RegExp, yf = Ot.String, Si = Ot.TypeError, bs = Tt.prototype, vf = ve.prototype, sn = Ce.prototype, Ss = Ot["__core-js_shared__"], ws = vf.toString, Se = sn.hasOwnProperty, xf = 0, zh = function() {
  20568. var e = /[^.]+$/.exec(Ss && Ss.keys && Ss.keys.IE_PROTO || "");
  20569. return e ? "Symbol(src)_1." + e : "";
  20570. }(), Ms = sn.toString, bf = ws.call(Ce), Sf = Ue._, wf = sa(
  20571. "^" + ws.call(Se).replace(En, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
  20572. ), Cs = Mh ? Ot.Buffer : E, Sr = Ot.Symbol, ks = Ot.Uint8Array, Yh = Cs ? Cs.allocUnsafe : E, As = jh(Ce.getPrototypeOf, Ce), Xh = Ce.create, Gh = sn.propertyIsEnumerable, Ts = bs.splice, Hh = Sr ? Sr.isConcatSpreadable : E, Dn = Sr ? Sr.iterator : E, Nr = Sr ? Sr.toStringTag : E, Ps = function() {
  20573. try {
  20574. var e = Yr(Ce, "defineProperty");
  20575. return e({}, "", {}), e;
  20576. } catch {
  20577. }
  20578. }(), Mf = Ot.clearTimeout !== Ue.clearTimeout && Ot.clearTimeout, Cf = Ht && Ht.now !== Ue.Date.now && Ht.now, kf = Ot.setTimeout !== Ue.setTimeout && Ot.setTimeout, Es = ze.ceil, Os = ze.floor, oa = Ce.getOwnPropertySymbols, Af = Cs ? Cs.isBuffer : E, Fh = Ot.isFinite, Tf = bs.join, Pf = jh(Ce.keys, Ce), Ye = ze.max, Ze = ze.min, Ef = Ht.now, Of = Ot.parseInt, Uh = ze.random, Lf = bs.reverse, aa = Yr(Ot, "DataView"), In = Yr(Ot, "Map"), la = Yr(Ot, "Promise"), on = Yr(Ot, "Set"), Rn = Yr(Ot, "WeakMap"), Nn = Yr(Ce, "create"), Ls = Rn && new Rn(), an = {}, _f = Xr(aa), Df = Xr(In), If = Xr(la), Rf = Xr(on), Nf = Xr(Rn), _s = Sr ? Sr.prototype : E, Bn = _s ? _s.valueOf : E, Vh = _s ? _s.toString : E;
  20579. function ft(e) {
  20580. if (Ne(e) && !ie(e) && !(e instanceof ce)) {
  20581. if (e instanceof wi)
  20582. return e;
  20583. if (Se.call(e, "__wrapped__"))
  20584. return $c(e);
  20585. }
  20586. return new wi(e);
  20587. }
  20588. var ln = function() {
  20589. function e() {
  20590. }
  20591. return function(M) {
  20592. if (!Ie(M))
  20593. return {};
  20594. if (Xh)
  20595. return Xh(M);
  20596. e.prototype = M;
  20597. var K = new e();
  20598. return e.prototype = E, K;
  20599. };
  20600. }();
  20601. function Ds() {
  20602. }
  20603. function wi(e, M) {
  20604. this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!M, this.__index__ = 0, this.__values__ = E;
  20605. }
  20606. ft.templateSettings = {
  20607. /**
  20608. * Used to detect `data` property values to be HTML-escaped.
  20609. *
  20610. * @memberOf _.templateSettings
  20611. * @type {RegExp}
  20612. */
  20613. escape: Me,
  20614. /**
  20615. * Used to detect code to be evaluated.
  20616. *
  20617. * @memberOf _.templateSettings
  20618. * @type {RegExp}
  20619. */
  20620. evaluate: _r,
  20621. /**
  20622. * Used to detect `data` property values to inject.
  20623. *
  20624. * @memberOf _.templateSettings
  20625. * @type {RegExp}
  20626. */
  20627. interpolate: ps,
  20628. /**
  20629. * Used to reference the data object in the template text.
  20630. *
  20631. * @memberOf _.templateSettings
  20632. * @type {string}
  20633. */
  20634. variable: "",
  20635. /**
  20636. * Used to import variables into the compiled template.
  20637. *
  20638. * @memberOf _.templateSettings
  20639. * @type {Object}
  20640. */
  20641. imports: {
  20642. /**
  20643. * A reference to the `lodash` function.
  20644. *
  20645. * @memberOf _.templateSettings.imports
  20646. * @type {Function}
  20647. */
  20648. _: ft
  20649. }
  20650. }, ft.prototype = Ds.prototype, ft.prototype.constructor = ft, wi.prototype = ln(Ds.prototype), wi.prototype.constructor = wi;
  20651. function ce(e) {
  20652. this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = P, this.__views__ = [];
  20653. }
  20654. function Bf() {
  20655. var e = new ce(this.__wrapped__);
  20656. return e.__actions__ = si(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = si(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = si(this.__views__), e;
  20657. }
  20658. function jf() {
  20659. if (this.__filtered__) {
  20660. var e = new ce(this);
  20661. e.__dir__ = -1, e.__filtered__ = !0;
  20662. } else
  20663. e = this.clone(), e.__dir__ *= -1;
  20664. return e;
  20665. }
  20666. function Wf() {
  20667. var e = this.__wrapped__.value(), M = this.__dir__, K = ie(e), st = M < 0, ut = K ? e.length : 0, mt = Jg(0, ut, this.__views__), xt = mt.start, bt = mt.end, Mt = bt - xt, It = st ? bt : xt - 1, Rt = this.__iteratees__, Bt = Rt.length, Yt = 0, Ut = Ze(Mt, this.__takeCount__);
  20668. if (!K || !st && ut == Mt && Ut == Mt)
  20669. return yc(e, this.__actions__);
  20670. var Qt = [];
  20671. t:
  20672. for (; Mt-- && Yt < Ut; ) {
  20673. It += M;
  20674. for (var oe = -1, te = e[It]; ++oe < Bt; ) {
  20675. var he = Rt[oe], pe = he.iteratee, gi = he.type, ni = pe(te);
  20676. if (gi == s)
  20677. te = ni;
  20678. else if (!ni) {
  20679. if (gi == t)
  20680. continue t;
  20681. break t;
  20682. }
  20683. }
  20684. Qt[Yt++] = te;
  20685. }
  20686. return Qt;
  20687. }
  20688. ce.prototype = ln(Ds.prototype), ce.prototype.constructor = ce;
  20689. function Br(e) {
  20690. var M = -1, K = e == null ? 0 : e.length;
  20691. for (this.clear(); ++M < K; ) {
  20692. var st = e[M];
  20693. this.set(st[0], st[1]);
  20694. }
  20695. }
  20696. function zf() {
  20697. this.__data__ = Nn ? Nn(null) : {}, this.size = 0;
  20698. }
  20699. function Yf(e) {
  20700. var M = this.has(e) && delete this.__data__[e];
  20701. return this.size -= M ? 1 : 0, M;
  20702. }
  20703. function Xf(e) {
  20704. var M = this.__data__;
  20705. if (Nn) {
  20706. var K = M[e];
  20707. return K === H ? E : K;
  20708. }
  20709. return Se.call(M, e) ? M[e] : E;
  20710. }
  20711. function Gf(e) {
  20712. var M = this.__data__;
  20713. return Nn ? M[e] !== E : Se.call(M, e);
  20714. }
  20715. function Hf(e, M) {
  20716. var K = this.__data__;
  20717. return this.size += this.has(e) ? 0 : 1, K[e] = Nn && M === E ? H : M, this;
  20718. }
  20719. Br.prototype.clear = zf, Br.prototype.delete = Yf, Br.prototype.get = Xf, Br.prototype.has = Gf, Br.prototype.set = Hf;
  20720. function Ki(e) {
  20721. var M = -1, K = e == null ? 0 : e.length;
  20722. for (this.clear(); ++M < K; ) {
  20723. var st = e[M];
  20724. this.set(st[0], st[1]);
  20725. }
  20726. }
  20727. function Ff() {
  20728. this.__data__ = [], this.size = 0;
  20729. }
  20730. function Uf(e) {
  20731. var M = this.__data__, K = Is(M, e);
  20732. if (K < 0)
  20733. return !1;
  20734. var st = M.length - 1;
  20735. return K == st ? M.pop() : Ts.call(M, K, 1), --this.size, !0;
  20736. }
  20737. function Vf(e) {
  20738. var M = this.__data__, K = Is(M, e);
  20739. return K < 0 ? E : M[K][1];
  20740. }
  20741. function $f(e) {
  20742. return Is(this.__data__, e) > -1;
  20743. }
  20744. function Zf(e, M) {
  20745. var K = this.__data__, st = Is(K, e);
  20746. return st < 0 ? (++this.size, K.push([e, M])) : K[st][1] = M, this;
  20747. }
  20748. Ki.prototype.clear = Ff, Ki.prototype.delete = Uf, Ki.prototype.get = Vf, Ki.prototype.has = $f, Ki.prototype.set = Zf;
  20749. function Ji(e) {
  20750. var M = -1, K = e == null ? 0 : e.length;
  20751. for (this.clear(); ++M < K; ) {
  20752. var st = e[M];
  20753. this.set(st[0], st[1]);
  20754. }
  20755. }
  20756. function Kf() {
  20757. this.size = 0, this.__data__ = {
  20758. hash: new Br(),
  20759. map: new (In || Ki)(),
  20760. string: new Br()
  20761. };
  20762. }
  20763. function Jf(e) {
  20764. var M = Us(this, e).delete(e);
  20765. return this.size -= M ? 1 : 0, M;
  20766. }
  20767. function qf(e) {
  20768. return Us(this, e).get(e);
  20769. }
  20770. function Qf(e) {
  20771. return Us(this, e).has(e);
  20772. }
  20773. function tg(e, M) {
  20774. var K = Us(this, e), st = K.size;
  20775. return K.set(e, M), this.size += K.size == st ? 0 : 1, this;
  20776. }
  20777. Ji.prototype.clear = Kf, Ji.prototype.delete = Jf, Ji.prototype.get = qf, Ji.prototype.has = Qf, Ji.prototype.set = tg;
  20778. function jr(e) {
  20779. var M = -1, K = e == null ? 0 : e.length;
  20780. for (this.__data__ = new Ji(); ++M < K; )
  20781. this.add(e[M]);
  20782. }
  20783. function eg(e) {
  20784. return this.__data__.set(e, H), this;
  20785. }
  20786. function ig(e) {
  20787. return this.__data__.has(e);
  20788. }
  20789. jr.prototype.add = jr.prototype.push = eg, jr.prototype.has = ig;
  20790. function Di(e) {
  20791. var M = this.__data__ = new Ki(e);
  20792. this.size = M.size;
  20793. }
  20794. function rg() {
  20795. this.__data__ = new Ki(), this.size = 0;
  20796. }
  20797. function ng(e) {
  20798. var M = this.__data__, K = M.delete(e);
  20799. return this.size = M.size, K;
  20800. }
  20801. function sg(e) {
  20802. return this.__data__.get(e);
  20803. }
  20804. function og(e) {
  20805. return this.__data__.has(e);
  20806. }
  20807. function ag(e, M) {
  20808. var K = this.__data__;
  20809. if (K instanceof Ki) {
  20810. var st = K.__data__;
  20811. if (!In || st.length < y - 1)
  20812. return st.push([e, M]), this.size = ++K.size, this;
  20813. K = this.__data__ = new Ji(st);
  20814. }
  20815. return K.set(e, M), this.size = K.size, this;
  20816. }
  20817. Di.prototype.clear = rg, Di.prototype.delete = ng, Di.prototype.get = sg, Di.prototype.has = og, Di.prototype.set = ag;
  20818. function $h(e, M) {
  20819. var K = ie(e), st = !K && Gr(e), ut = !K && !st && Ar(e), mt = !K && !st && !ut && un(e), xt = K || st || ut || mt, bt = xt ? ia(e.length, yf) : [], Mt = bt.length;
  20820. for (var It in e)
  20821. (M || Se.call(e, It)) && !(xt && // Safari 9 has enumerable `arguments.length` in strict mode.
  20822. (It == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
  20823. ut && (It == "offset" || It == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
  20824. mt && (It == "buffer" || It == "byteLength" || It == "byteOffset") || // Skip index properties.
  20825. er(It, Mt))) && bt.push(It);
  20826. return bt;
  20827. }
  20828. function Zh(e) {
  20829. var M = e.length;
  20830. return M ? e[xa(0, M - 1)] : E;
  20831. }
  20832. function lg(e, M) {
  20833. return Vs(si(e), Wr(M, 0, e.length));
  20834. }
  20835. function hg(e) {
  20836. return Vs(si(e));
  20837. }
  20838. function ha(e, M, K) {
  20839. (K !== E && !Ii(e[M], K) || K === E && !(M in e)) && qi(e, M, K);
  20840. }
  20841. function jn(e, M, K) {
  20842. var st = e[M];
  20843. (!(Se.call(e, M) && Ii(st, K)) || K === E && !(M in e)) && qi(e, M, K);
  20844. }
  20845. function Is(e, M) {
  20846. for (var K = e.length; K--; )
  20847. if (Ii(e[K][0], M))
  20848. return K;
  20849. return -1;
  20850. }
  20851. function cg(e, M, K, st) {
  20852. return wr(e, function(ut, mt, xt) {
  20853. M(st, ut, K(ut), xt);
  20854. }), st;
  20855. }
  20856. function Kh(e, M) {
  20857. return e && Gi(M, He(M), e);
  20858. }
  20859. function pg(e, M) {
  20860. return e && Gi(M, ai(M), e);
  20861. }
  20862. function qi(e, M, K) {
  20863. M == "__proto__" && Ps ? Ps(e, M, {
  20864. configurable: !0,
  20865. enumerable: !0,
  20866. value: K,
  20867. writable: !0
  20868. }) : e[M] = K;
  20869. }
  20870. function ca(e, M) {
  20871. for (var K = -1, st = M.length, ut = Tt(st), mt = e == null; ++K < st; )
  20872. ut[K] = mt ? E : Ha(e, M[K]);
  20873. return ut;
  20874. }
  20875. function Wr(e, M, K) {
  20876. return e === e && (K !== E && (e = e <= K ? e : K), M !== E && (e = e >= M ? e : M)), e;
  20877. }
  20878. function Mi(e, M, K, st, ut, mt) {
  20879. var xt, bt = M & N, Mt = M & R, It = M & S;
  20880. if (K && (xt = ut ? K(e, st, ut, mt) : K(e)), xt !== E)
  20881. return xt;
  20882. if (!Ie(e))
  20883. return e;
  20884. var Rt = ie(e);
  20885. if (Rt) {
  20886. if (xt = Qg(e), !bt)
  20887. return si(e, xt);
  20888. } else {
  20889. var Bt = Ke(e), Yt = Bt == $ || Bt == q;
  20890. if (Ar(e))
  20891. return bc(e, bt);
  20892. if (Bt == rt || Bt == L || Yt && !ut) {
  20893. if (xt = Mt || Yt ? {} : Wc(e), !bt)
  20894. return Mt ? Xg(e, pg(xt, e)) : Yg(e, Kh(xt, e));
  20895. } else {
  20896. if (!ke[Bt])
  20897. return ut ? e : {};
  20898. xt = tm(e, Bt, bt);
  20899. }
  20900. }
  20901. mt || (mt = new Di());
  20902. var Ut = mt.get(e);
  20903. if (Ut)
  20904. return Ut;
  20905. mt.set(e, xt), fp(e) ? e.forEach(function(te) {
  20906. xt.add(Mi(te, M, K, te, e, mt));
  20907. }) : up(e) && e.forEach(function(te, he) {
  20908. xt.set(he, Mi(te, M, K, he, e, mt));
  20909. });
  20910. var Qt = It ? Mt ? Oa : Ea : Mt ? ai : He, oe = Rt ? E : Qt(e);
  20911. return bi(oe || e, function(te, he) {
  20912. oe && (he = te, te = e[he]), jn(xt, he, Mi(te, M, K, he, e, mt));
  20913. }), xt;
  20914. }
  20915. function ug(e) {
  20916. var M = He(e);
  20917. return function(K) {
  20918. return Jh(K, e, M);
  20919. };
  20920. }
  20921. function Jh(e, M, K) {
  20922. var st = K.length;
  20923. if (e == null)
  20924. return !st;
  20925. for (e = Ce(e); st--; ) {
  20926. var ut = K[st], mt = M[ut], xt = e[ut];
  20927. if (xt === E && !(ut in e) || !mt(xt))
  20928. return !1;
  20929. }
  20930. return !0;
  20931. }
  20932. function qh(e, M, K) {
  20933. if (typeof e != "function")
  20934. throw new Si(I);
  20935. return Fn(function() {
  20936. e.apply(E, K);
  20937. }, M);
  20938. }
  20939. function Wn(e, M, K, st) {
  20940. var ut = -1, mt = ys, xt = !0, bt = e.length, Mt = [], It = M.length;
  20941. if (!bt)
  20942. return Mt;
  20943. K && (M = Ee(M, ui(K))), st ? (mt = Ko, xt = !1) : M.length >= y && (mt = _n, xt = !1, M = new jr(M));
  20944. t:
  20945. for (; ++ut < bt; ) {
  20946. var Rt = e[ut], Bt = K == null ? Rt : K(Rt);
  20947. if (Rt = st || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  20948. for (var Yt = It; Yt--; )
  20949. if (M[Yt] === Bt)
  20950. continue t;
  20951. Mt.push(Rt);
  20952. } else
  20953. mt(M, Bt, st) || Mt.push(Rt);
  20954. }
  20955. return Mt;
  20956. }
  20957. var wr = kc(Xi), Qh = kc(ua, !0);
  20958. function dg(e, M) {
  20959. var K = !0;
  20960. return wr(e, function(st, ut, mt) {
  20961. return K = !!M(st, ut, mt), K;
  20962. }), K;
  20963. }
  20964. function Rs(e, M, K) {
  20965. for (var st = -1, ut = e.length; ++st < ut; ) {
  20966. var mt = e[st], xt = M(mt);
  20967. if (xt != null && (bt === E ? xt === xt && !fi(xt) : K(xt, bt)))
  20968. var bt = xt, Mt = mt;
  20969. }
  20970. return Mt;
  20971. }
  20972. function fg(e, M, K, st) {
  20973. var ut = e.length;
  20974. for (K = ne(K), K < 0 && (K = -K > ut ? 0 : ut + K), st = st === E || st > ut ? ut : ne(st), st < 0 && (st += ut), st = K > st ? 0 : mp(st); K < st; )
  20975. e[K++] = M;
  20976. return e;
  20977. }
  20978. function tc(e, M) {
  20979. var K = [];
  20980. return wr(e, function(st, ut, mt) {
  20981. M(st, ut, mt) && K.push(st);
  20982. }), K;
  20983. }
  20984. function Ve(e, M, K, st, ut) {
  20985. var mt = -1, xt = e.length;
  20986. for (K || (K = im), ut || (ut = []); ++mt < xt; ) {
  20987. var bt = e[mt];
  20988. M > 0 && K(bt) ? M > 1 ? Ve(bt, M - 1, K, st, ut) : xr(ut, bt) : st || (ut[ut.length] = bt);
  20989. }
  20990. return ut;
  20991. }
  20992. var pa = Ac(), ec = Ac(!0);
  20993. function Xi(e, M) {
  20994. return e && pa(e, M, He);
  20995. }
  20996. function ua(e, M) {
  20997. return e && ec(e, M, He);
  20998. }
  20999. function Ns(e, M) {
  21000. return vr(M, function(K) {
  21001. return ir(e[K]);
  21002. });
  21003. }
  21004. function zr(e, M) {
  21005. M = Cr(M, e);
  21006. for (var K = 0, st = M.length; e != null && K < st; )
  21007. e = e[Hi(M[K++])];
  21008. return K && K == st ? e : E;
  21009. }
  21010. function ic(e, M, K) {
  21011. var st = M(e);
  21012. return ie(e) ? st : xr(st, K(e));
  21013. }
  21014. function ii(e) {
  21015. return e == null ? e === E ? tt : nt : Nr && Nr in Ce(e) ? Kg(e) : hm(e);
  21016. }
  21017. function da(e, M) {
  21018. return e > M;
  21019. }
  21020. function gg(e, M) {
  21021. return e != null && Se.call(e, M);
  21022. }
  21023. function mg(e, M) {
  21024. return e != null && M in Ce(e);
  21025. }
  21026. function yg(e, M, K) {
  21027. return e >= Ze(M, K) && e < Ye(M, K);
  21028. }
  21029. function fa(e, M, K) {
  21030. for (var st = K ? Ko : ys, ut = e[0].length, mt = e.length, xt = mt, bt = Tt(mt), Mt = 1 / 0, It = []; xt--; ) {
  21031. var Rt = e[xt];
  21032. xt && M && (Rt = Ee(Rt, ui(M))), Mt = Ze(Rt.length, Mt), bt[xt] = !K && (M || ut >= 120 && Rt.length >= 120) ? new jr(xt && Rt) : E;
  21033. }
  21034. Rt = e[0];
  21035. var Bt = -1, Yt = bt[0];
  21036. t:
  21037. for (; ++Bt < ut && It.length < Mt; ) {
  21038. var Ut = Rt[Bt], Qt = M ? M(Ut) : Ut;
  21039. if (Ut = K || Ut !== 0 ? Ut : 0, !(Yt ? _n(Yt, Qt) : st(It, Qt, K))) {
  21040. for (xt = mt; --xt; ) {
  21041. var oe = bt[xt];
  21042. if (!(oe ? _n(oe, Qt) : st(e[xt], Qt, K)))
  21043. continue t;
  21044. }
  21045. Yt && Yt.push(Qt), It.push(Ut);
  21046. }
  21047. }
  21048. return It;
  21049. }
  21050. function vg(e, M, K, st) {
  21051. return Xi(e, function(ut, mt, xt) {
  21052. M(st, K(ut), mt, xt);
  21053. }), st;
  21054. }
  21055. function zn(e, M, K) {
  21056. M = Cr(M, e), e = Gc(e, M);
  21057. var st = e == null ? e : e[Hi(ki(M))];
  21058. return st == null ? E : pi(st, e, K);
  21059. }
  21060. function rc(e) {
  21061. return Ne(e) && ii(e) == L;
  21062. }
  21063. function xg(e) {
  21064. return Ne(e) && ii(e) == pt;
  21065. }
  21066. function bg(e) {
  21067. return Ne(e) && ii(e) == k;
  21068. }
  21069. function Yn(e, M, K, st, ut) {
  21070. return e === M ? !0 : e == null || M == null || !Ne(e) && !Ne(M) ? e !== e && M !== M : Sg(e, M, K, st, Yn, ut);
  21071. }
  21072. function Sg(e, M, K, st, ut, mt) {
  21073. var xt = ie(e), bt = ie(M), Mt = xt ? Y : Ke(e), It = bt ? Y : Ke(M);
  21074. Mt = Mt == L ? rt : Mt, It = It == L ? rt : It;
  21075. var Rt = Mt == rt, Bt = It == rt, Yt = Mt == It;
  21076. if (Yt && Ar(e)) {
  21077. if (!Ar(M))
  21078. return !1;
  21079. xt = !0, Rt = !1;
  21080. }
  21081. if (Yt && !Rt)
  21082. return mt || (mt = new Di()), xt || un(e) ? Nc(e, M, K, st, ut, mt) : $g(e, M, Mt, K, st, ut, mt);
  21083. if (!(K & v)) {
  21084. var Ut = Rt && Se.call(e, "__wrapped__"), Qt = Bt && Se.call(M, "__wrapped__");
  21085. if (Ut || Qt) {
  21086. var oe = Ut ? e.value() : e, te = Qt ? M.value() : M;
  21087. return mt || (mt = new Di()), ut(oe, te, K, st, mt);
  21088. }
  21089. }
  21090. return Yt ? (mt || (mt = new Di()), Zg(e, M, K, st, ut, mt)) : !1;
  21091. }
  21092. function wg(e) {
  21093. return Ne(e) && Ke(e) == it;
  21094. }
  21095. function ga(e, M, K, st) {
  21096. var ut = K.length, mt = ut, xt = !st;
  21097. if (e == null)
  21098. return !mt;
  21099. for (e = Ce(e); ut--; ) {
  21100. var bt = K[ut];
  21101. if (xt && bt[2] ? bt[1] !== e[bt[0]] : !(bt[0] in e))
  21102. return !1;
  21103. }
  21104. for (; ++ut < mt; ) {
  21105. bt = K[ut];
  21106. var Mt = bt[0], It = e[Mt], Rt = bt[1];
  21107. if (xt && bt[2]) {
  21108. if (It === E && !(Mt in e))
  21109. return !1;
  21110. } else {
  21111. var Bt = new Di();
  21112. if (st)
  21113. var Yt = st(It, Rt, Mt, e, M, Bt);
  21114. if (!(Yt === E ? Yn(Rt, It, v | d, st, Bt) : Yt))
  21115. return !1;
  21116. }
  21117. }
  21118. return !0;
  21119. }
  21120. function nc(e) {
  21121. if (!Ie(e) || nm(e))
  21122. return !1;
  21123. var M = ir(e) ? wf : De;
  21124. return M.test(Xr(e));
  21125. }
  21126. function Mg(e) {
  21127. return Ne(e) && ii(e) == dt;
  21128. }
  21129. function Cg(e) {
  21130. return Ne(e) && Ke(e) == ht;
  21131. }
  21132. function kg(e) {
  21133. return Ne(e) && Qs(e.length) && !!Ae[ii(e)];
  21134. }
  21135. function sc(e) {
  21136. return typeof e == "function" ? e : e == null ? li : typeof e == "object" ? ie(e) ? lc(e[0], e[1]) : ac(e) : Tp(e);
  21137. }
  21138. function ma(e) {
  21139. if (!Hn(e))
  21140. return Pf(e);
  21141. var M = [];
  21142. for (var K in Ce(e))
  21143. Se.call(e, K) && K != "constructor" && M.push(K);
  21144. return M;
  21145. }
  21146. function Ag(e) {
  21147. if (!Ie(e))
  21148. return lm(e);
  21149. var M = Hn(e), K = [];
  21150. for (var st in e)
  21151. st == "constructor" && (M || !Se.call(e, st)) || K.push(st);
  21152. return K;
  21153. }
  21154. function ya(e, M) {
  21155. return e < M;
  21156. }
  21157. function oc(e, M) {
  21158. var K = -1, st = oi(e) ? Tt(e.length) : [];
  21159. return wr(e, function(ut, mt, xt) {
  21160. st[++K] = M(ut, mt, xt);
  21161. }), st;
  21162. }
  21163. function ac(e) {
  21164. var M = _a(e);
  21165. return M.length == 1 && M[0][2] ? Yc(M[0][0], M[0][1]) : function(K) {
  21166. return K === e || ga(K, e, M);
  21167. };
  21168. }
  21169. function lc(e, M) {
  21170. return Ia(e) && zc(M) ? Yc(Hi(e), M) : function(K) {
  21171. var st = Ha(K, e);
  21172. return st === E && st === M ? Fa(K, e) : Yn(M, st, v | d);
  21173. };
  21174. }
  21175. function Bs(e, M, K, st, ut) {
  21176. e !== M && pa(M, function(mt, xt) {
  21177. if (ut || (ut = new Di()), Ie(mt))
  21178. Tg(e, M, xt, K, Bs, st, ut);
  21179. else {
  21180. var bt = st ? st(Na(e, xt), mt, xt + "", e, M, ut) : E;
  21181. bt === E && (bt = mt), ha(e, xt, bt);
  21182. }
  21183. }, ai);
  21184. }
  21185. function Tg(e, M, K, st, ut, mt, xt) {
  21186. var bt = Na(e, K), Mt = Na(M, K), It = xt.get(Mt);
  21187. if (It) {
  21188. ha(e, K, It);
  21189. return;
  21190. }
  21191. var Rt = mt ? mt(bt, Mt, K + "", e, M, xt) : E, Bt = Rt === E;
  21192. if (Bt) {
  21193. var Yt = ie(Mt), Ut = !Yt && Ar(Mt), Qt = !Yt && !Ut && un(Mt);
  21194. Rt = Mt, Yt || Ut || Qt ? ie(bt) ? Rt = bt : Be(bt) ? Rt = si(bt) : Ut ? (Bt = !1, Rt = bc(Mt, !0)) : Qt ? (Bt = !1, Rt = Sc(Mt, !0)) : Rt = [] : Un(Mt) || Gr(Mt) ? (Rt = bt, Gr(bt) ? Rt = yp(bt) : (!Ie(bt) || ir(bt)) && (Rt = Wc(Mt))) : Bt = !1;
  21195. }
  21196. Bt && (xt.set(Mt, Rt), ut(Rt, Mt, st, mt, xt), xt.delete(Mt)), ha(e, K, Rt);
  21197. }
  21198. function hc(e, M) {
  21199. var K = e.length;
  21200. if (K)
  21201. return M += M < 0 ? K : 0, er(M, K) ? e[M] : E;
  21202. }
  21203. function cc(e, M, K) {
  21204. M.length ? M = Ee(M, function(mt) {
  21205. return ie(mt) ? function(xt) {
  21206. return zr(xt, mt.length === 1 ? mt[0] : mt);
  21207. } : mt;
  21208. }) : M = [li];
  21209. var st = -1;
  21210. M = Ee(M, ui(qt()));
  21211. var ut = oc(e, function(mt, xt, bt) {
  21212. var Mt = Ee(M, function(It) {
  21213. return It(mt);
  21214. });
  21215. return { criteria: Mt, index: ++st, value: mt };
  21216. });
  21217. return Qd(ut, function(mt, xt) {
  21218. return zg(mt, xt, K);
  21219. });
  21220. }
  21221. function Pg(e, M) {
  21222. return pc(e, M, function(K, st) {
  21223. return Fa(e, st);
  21224. });
  21225. }
  21226. function pc(e, M, K) {
  21227. for (var st = -1, ut = M.length, mt = {}; ++st < ut; ) {
  21228. var xt = M[st], bt = zr(e, xt);
  21229. K(bt, xt) && Xn(mt, Cr(xt, e), bt);
  21230. }
  21231. return mt;
  21232. }
  21233. function Eg(e) {
  21234. return function(M) {
  21235. return zr(M, e);
  21236. };
  21237. }
  21238. function va(e, M, K, st) {
  21239. var ut = st ? qd : tn, mt = -1, xt = M.length, bt = e;
  21240. for (e === M && (M = si(M)), K && (bt = Ee(e, ui(K))); ++mt < xt; )
  21241. for (var Mt = 0, It = M[mt], Rt = K ? K(It) : It; (Mt = ut(bt, Rt, Mt, st)) > -1; )
  21242. bt !== e && Ts.call(bt, Mt, 1), Ts.call(e, Mt, 1);
  21243. return e;
  21244. }
  21245. function uc(e, M) {
  21246. for (var K = e ? M.length : 0, st = K - 1; K--; ) {
  21247. var ut = M[K];
  21248. if (K == st || ut !== mt) {
  21249. var mt = ut;
  21250. er(ut) ? Ts.call(e, ut, 1) : wa(e, ut);
  21251. }
  21252. }
  21253. return e;
  21254. }
  21255. function xa(e, M) {
  21256. return e + Os(Uh() * (M - e + 1));
  21257. }
  21258. function Og(e, M, K, st) {
  21259. for (var ut = -1, mt = Ye(Es((M - e) / (K || 1)), 0), xt = Tt(mt); mt--; )
  21260. xt[st ? mt : ++ut] = e, e += K;
  21261. return xt;
  21262. }
  21263. function ba(e, M) {
  21264. var K = "";
  21265. if (!e || M < 1 || M > _)
  21266. return K;
  21267. do
  21268. M % 2 && (K += e), M = Os(M / 2), M && (e += e);
  21269. while (M);
  21270. return K;
  21271. }
  21272. function ae(e, M) {
  21273. return Ba(Xc(e, M, li), e + "");
  21274. }
  21275. function Lg(e) {
  21276. return Zh(dn(e));
  21277. }
  21278. function _g(e, M) {
  21279. var K = dn(e);
  21280. return Vs(K, Wr(M, 0, K.length));
  21281. }
  21282. function Xn(e, M, K, st) {
  21283. if (!Ie(e))
  21284. return e;
  21285. M = Cr(M, e);
  21286. for (var ut = -1, mt = M.length, xt = mt - 1, bt = e; bt != null && ++ut < mt; ) {
  21287. var Mt = Hi(M[ut]), It = K;
  21288. if (Mt === "__proto__" || Mt === "constructor" || Mt === "prototype")
  21289. return e;
  21290. if (ut != xt) {
  21291. var Rt = bt[Mt];
  21292. It = st ? st(Rt, Mt, bt) : E, It === E && (It = Ie(Rt) ? Rt : er(M[ut + 1]) ? [] : {});
  21293. }
  21294. jn(bt, Mt, It), bt = bt[Mt];
  21295. }
  21296. return e;
  21297. }
  21298. var dc = Ls ? function(e, M) {
  21299. return Ls.set(e, M), e;
  21300. } : li, Dg = Ps ? function(e, M) {
  21301. return Ps(e, "toString", {
  21302. configurable: !0,
  21303. enumerable: !1,
  21304. value: Va(M),
  21305. writable: !0
  21306. });
  21307. } : li;
  21308. function Ig(e) {
  21309. return Vs(dn(e));
  21310. }
  21311. function Ci(e, M, K) {
  21312. var st = -1, ut = e.length;
  21313. 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;
  21314. for (var mt = Tt(ut); ++st < ut; )
  21315. mt[st] = e[st + M];
  21316. return mt;
  21317. }
  21318. function Rg(e, M) {
  21319. var K;
  21320. return wr(e, function(st, ut, mt) {
  21321. return K = M(st, ut, mt), !K;
  21322. }), !!K;
  21323. }
  21324. function js(e, M, K) {
  21325. var st = 0, ut = e == null ? st : e.length;
  21326. if (typeof M == "number" && M === M && ut <= g) {
  21327. for (; st < ut; ) {
  21328. var mt = st + ut >>> 1, xt = e[mt];
  21329. xt !== null && !fi(xt) && (K ? xt <= M : xt < M) ? st = mt + 1 : ut = mt;
  21330. }
  21331. return ut;
  21332. }
  21333. return Sa(e, M, li, K);
  21334. }
  21335. function Sa(e, M, K, st) {
  21336. var ut = 0, mt = e == null ? 0 : e.length;
  21337. if (mt === 0)
  21338. return 0;
  21339. M = K(M);
  21340. for (var xt = M !== M, bt = M === null, Mt = fi(M), It = M === E; ut < mt; ) {
  21341. var Rt = Os((ut + mt) / 2), Bt = K(e[Rt]), Yt = Bt !== E, Ut = Bt === null, Qt = Bt === Bt, oe = fi(Bt);
  21342. if (xt)
  21343. var te = st || Qt;
  21344. else
  21345. It ? te = Qt && (st || Yt) : bt ? te = Qt && Yt && (st || !Ut) : Mt ? te = Qt && Yt && !Ut && (st || !oe) : Ut || oe ? te = !1 : te = st ? Bt <= M : Bt < M;
  21346. te ? ut = Rt + 1 : mt = Rt;
  21347. }
  21348. return Ze(mt, X);
  21349. }
  21350. function fc(e, M) {
  21351. for (var K = -1, st = e.length, ut = 0, mt = []; ++K < st; ) {
  21352. var xt = e[K], bt = M ? M(xt) : xt;
  21353. if (!K || !Ii(bt, Mt)) {
  21354. var Mt = bt;
  21355. mt[ut++] = xt === 0 ? 0 : xt;
  21356. }
  21357. }
  21358. return mt;
  21359. }
  21360. function gc(e) {
  21361. return typeof e == "number" ? e : fi(e) ? W : +e;
  21362. }
  21363. function di(e) {
  21364. if (typeof e == "string")
  21365. return e;
  21366. if (ie(e))
  21367. return Ee(e, di) + "";
  21368. if (fi(e))
  21369. return Vh ? Vh.call(e) : "";
  21370. var M = e + "";
  21371. return M == "0" && 1 / e == -T ? "-0" : M;
  21372. }
  21373. function Mr(e, M, K) {
  21374. var st = -1, ut = ys, mt = e.length, xt = !0, bt = [], Mt = bt;
  21375. if (K)
  21376. xt = !1, ut = Ko;
  21377. else if (mt >= y) {
  21378. var It = M ? null : Ug(e);
  21379. if (It)
  21380. return xs(It);
  21381. xt = !1, ut = _n, Mt = new jr();
  21382. } else
  21383. Mt = M ? [] : bt;
  21384. t:
  21385. for (; ++st < mt; ) {
  21386. var Rt = e[st], Bt = M ? M(Rt) : Rt;
  21387. if (Rt = K || Rt !== 0 ? Rt : 0, xt && Bt === Bt) {
  21388. for (var Yt = Mt.length; Yt--; )
  21389. if (Mt[Yt] === Bt)
  21390. continue t;
  21391. M && Mt.push(Bt), bt.push(Rt);
  21392. } else
  21393. ut(Mt, Bt, K) || (Mt !== bt && Mt.push(Bt), bt.push(Rt));
  21394. }
  21395. return bt;
  21396. }
  21397. function wa(e, M) {
  21398. return M = Cr(M, e), e = Gc(e, M), e == null || delete e[Hi(ki(M))];
  21399. }
  21400. function mc(e, M, K, st) {
  21401. return Xn(e, M, K(zr(e, M)), st);
  21402. }
  21403. function Ws(e, M, K, st) {
  21404. for (var ut = e.length, mt = st ? ut : -1; (st ? mt-- : ++mt < ut) && M(e[mt], mt, e); )
  21405. ;
  21406. return K ? Ci(e, st ? 0 : mt, st ? mt + 1 : ut) : Ci(e, st ? mt + 1 : 0, st ? ut : mt);
  21407. }
  21408. function yc(e, M) {
  21409. var K = e;
  21410. return K instanceof ce && (K = K.value()), Jo(M, function(st, ut) {
  21411. return ut.func.apply(ut.thisArg, xr([st], ut.args));
  21412. }, K);
  21413. }
  21414. function Ma(e, M, K) {
  21415. var st = e.length;
  21416. if (st < 2)
  21417. return st ? Mr(e[0]) : [];
  21418. for (var ut = -1, mt = Tt(st); ++ut < st; )
  21419. for (var xt = e[ut], bt = -1; ++bt < st; )
  21420. bt != ut && (mt[ut] = Wn(mt[ut] || xt, e[bt], M, K));
  21421. return Mr(Ve(mt, 1), M, K);
  21422. }
  21423. function vc(e, M, K) {
  21424. for (var st = -1, ut = e.length, mt = M.length, xt = {}; ++st < ut; ) {
  21425. var bt = st < mt ? M[st] : E;
  21426. K(xt, e[st], bt);
  21427. }
  21428. return xt;
  21429. }
  21430. function Ca(e) {
  21431. return Be(e) ? e : [];
  21432. }
  21433. function ka(e) {
  21434. return typeof e == "function" ? e : li;
  21435. }
  21436. function Cr(e, M) {
  21437. return ie(e) ? e : Ia(e, M) ? [e] : Vc(xe(e));
  21438. }
  21439. var Ng = ae;
  21440. function kr(e, M, K) {
  21441. var st = e.length;
  21442. return K = K === E ? st : K, !M && K >= st ? e : Ci(e, M, K);
  21443. }
  21444. var xc = Mf || function(e) {
  21445. return Ue.clearTimeout(e);
  21446. };
  21447. function bc(e, M) {
  21448. if (M)
  21449. return e.slice();
  21450. var K = e.length, st = Yh ? Yh(K) : new e.constructor(K);
  21451. return e.copy(st), st;
  21452. }
  21453. function Aa(e) {
  21454. var M = new e.constructor(e.byteLength);
  21455. return new ks(M).set(new ks(e)), M;
  21456. }
  21457. function Bg(e, M) {
  21458. var K = M ? Aa(e.buffer) : e.buffer;
  21459. return new e.constructor(K, e.byteOffset, e.byteLength);
  21460. }
  21461. function jg(e) {
  21462. var M = new e.constructor(e.source, ue.exec(e));
  21463. return M.lastIndex = e.lastIndex, M;
  21464. }
  21465. function Wg(e) {
  21466. return Bn ? Ce(Bn.call(e)) : {};
  21467. }
  21468. function Sc(e, M) {
  21469. var K = M ? Aa(e.buffer) : e.buffer;
  21470. return new e.constructor(K, e.byteOffset, e.length);
  21471. }
  21472. function wc(e, M) {
  21473. if (e !== M) {
  21474. var K = e !== E, st = e === null, ut = e === e, mt = fi(e), xt = M !== E, bt = M === null, Mt = M === M, It = fi(M);
  21475. if (!bt && !It && !mt && e > M || mt && xt && Mt && !bt && !It || st && xt && Mt || !K && Mt || !ut)
  21476. return 1;
  21477. if (!st && !mt && !It && e < M || It && K && ut && !st && !mt || bt && K && ut || !xt && ut || !Mt)
  21478. return -1;
  21479. }
  21480. return 0;
  21481. }
  21482. function zg(e, M, K) {
  21483. for (var st = -1, ut = e.criteria, mt = M.criteria, xt = ut.length, bt = K.length; ++st < xt; ) {
  21484. var Mt = wc(ut[st], mt[st]);
  21485. if (Mt) {
  21486. if (st >= bt)
  21487. return Mt;
  21488. var It = K[st];
  21489. return Mt * (It == "desc" ? -1 : 1);
  21490. }
  21491. }
  21492. return e.index - M.index;
  21493. }
  21494. function Mc(e, M, K, st) {
  21495. for (var ut = -1, mt = e.length, xt = K.length, bt = -1, Mt = M.length, It = Ye(mt - xt, 0), Rt = Tt(Mt + It), Bt = !st; ++bt < Mt; )
  21496. Rt[bt] = M[bt];
  21497. for (; ++ut < xt; )
  21498. (Bt || ut < mt) && (Rt[K[ut]] = e[ut]);
  21499. for (; It--; )
  21500. Rt[bt++] = e[ut++];
  21501. return Rt;
  21502. }
  21503. function Cc(e, M, K, st) {
  21504. for (var ut = -1, mt = e.length, xt = -1, bt = K.length, Mt = -1, It = M.length, Rt = Ye(mt - bt, 0), Bt = Tt(Rt + It), Yt = !st; ++ut < Rt; )
  21505. Bt[ut] = e[ut];
  21506. for (var Ut = ut; ++Mt < It; )
  21507. Bt[Ut + Mt] = M[Mt];
  21508. for (; ++xt < bt; )
  21509. (Yt || ut < mt) && (Bt[Ut + K[xt]] = e[ut++]);
  21510. return Bt;
  21511. }
  21512. function si(e, M) {
  21513. var K = -1, st = e.length;
  21514. for (M || (M = Tt(st)); ++K < st; )
  21515. M[K] = e[K];
  21516. return M;
  21517. }
  21518. function Gi(e, M, K, st) {
  21519. var ut = !K;
  21520. K || (K = {});
  21521. for (var mt = -1, xt = M.length; ++mt < xt; ) {
  21522. var bt = M[mt], Mt = st ? st(K[bt], e[bt], bt, K, e) : E;
  21523. Mt === E && (Mt = e[bt]), ut ? qi(K, bt, Mt) : jn(K, bt, Mt);
  21524. }
  21525. return K;
  21526. }
  21527. function Yg(e, M) {
  21528. return Gi(e, Da(e), M);
  21529. }
  21530. function Xg(e, M) {
  21531. return Gi(e, Bc(e), M);
  21532. }
  21533. function zs(e, M) {
  21534. return function(K, st) {
  21535. var ut = ie(K) ? Ud : cg, mt = M ? M() : {};
  21536. return ut(K, e, qt(st, 2), mt);
  21537. };
  21538. }
  21539. function hn(e) {
  21540. return ae(function(M, K) {
  21541. var st = -1, ut = K.length, mt = ut > 1 ? K[ut - 1] : E, xt = ut > 2 ? K[2] : E;
  21542. for (mt = e.length > 3 && typeof mt == "function" ? (ut--, mt) : E, xt && ri(K[0], K[1], xt) && (mt = ut < 3 ? E : mt, ut = 1), M = Ce(M); ++st < ut; ) {
  21543. var bt = K[st];
  21544. bt && e(M, bt, st, mt);
  21545. }
  21546. return M;
  21547. });
  21548. }
  21549. function kc(e, M) {
  21550. return function(K, st) {
  21551. if (K == null)
  21552. return K;
  21553. if (!oi(K))
  21554. return e(K, st);
  21555. for (var ut = K.length, mt = M ? ut : -1, xt = Ce(K); (M ? mt-- : ++mt < ut) && st(xt[mt], mt, xt) !== !1; )
  21556. ;
  21557. return K;
  21558. };
  21559. }
  21560. function Ac(e) {
  21561. return function(M, K, st) {
  21562. for (var ut = -1, mt = Ce(M), xt = st(M), bt = xt.length; bt--; ) {
  21563. var Mt = xt[e ? bt : ++ut];
  21564. if (K(mt[Mt], Mt, mt) === !1)
  21565. break;
  21566. }
  21567. return M;
  21568. };
  21569. }
  21570. function Gg(e, M, K) {
  21571. var st = M & u, ut = Gn(e);
  21572. function mt() {
  21573. var xt = this && this !== Ue && this instanceof mt ? ut : e;
  21574. return xt.apply(st ? K : this, arguments);
  21575. }
  21576. return mt;
  21577. }
  21578. function Tc(e) {
  21579. return function(M) {
  21580. M = xe(M);
  21581. var K = en(M) ? _i(M) : E, st = K ? K[0] : M.charAt(0), ut = K ? kr(K, 1).join("") : M.slice(1);
  21582. return st[e]() + ut;
  21583. };
  21584. }
  21585. function cn(e) {
  21586. return function(M) {
  21587. return Jo(kp(Cp(M).replace(_d, "")), e, "");
  21588. };
  21589. }
  21590. function Gn(e) {
  21591. return function() {
  21592. var M = arguments;
  21593. switch (M.length) {
  21594. case 0:
  21595. return new e();
  21596. case 1:
  21597. return new e(M[0]);
  21598. case 2:
  21599. return new e(M[0], M[1]);
  21600. case 3:
  21601. return new e(M[0], M[1], M[2]);
  21602. case 4:
  21603. return new e(M[0], M[1], M[2], M[3]);
  21604. case 5:
  21605. return new e(M[0], M[1], M[2], M[3], M[4]);
  21606. case 6:
  21607. return new e(M[0], M[1], M[2], M[3], M[4], M[5]);
  21608. case 7:
  21609. return new e(M[0], M[1], M[2], M[3], M[4], M[5], M[6]);
  21610. }
  21611. var K = ln(e.prototype), st = e.apply(K, M);
  21612. return Ie(st) ? st : K;
  21613. };
  21614. }
  21615. function Hg(e, M, K) {
  21616. var st = Gn(e);
  21617. function ut() {
  21618. for (var mt = arguments.length, xt = Tt(mt), bt = mt, Mt = pn(ut); bt--; )
  21619. xt[bt] = arguments[bt];
  21620. var It = mt < 3 && xt[0] !== Mt && xt[mt - 1] !== Mt ? [] : br(xt, Mt);
  21621. if (mt -= It.length, mt < K)
  21622. return _c(
  21623. e,
  21624. M,
  21625. Ys,
  21626. ut.placeholder,
  21627. E,
  21628. xt,
  21629. It,
  21630. E,
  21631. E,
  21632. K - mt
  21633. );
  21634. var Rt = this && this !== Ue && this instanceof ut ? st : e;
  21635. return pi(Rt, this, xt);
  21636. }
  21637. return ut;
  21638. }
  21639. function Pc(e) {
  21640. return function(M, K, st) {
  21641. var ut = Ce(M);
  21642. if (!oi(M)) {
  21643. var mt = qt(K, 3);
  21644. M = He(M), K = function(bt) {
  21645. return mt(ut[bt], bt, ut);
  21646. };
  21647. }
  21648. var xt = e(M, K, st);
  21649. return xt > -1 ? ut[mt ? M[xt] : xt] : E;
  21650. };
  21651. }
  21652. function Ec(e) {
  21653. return tr(function(M) {
  21654. var K = M.length, st = K, ut = wi.prototype.thru;
  21655. for (e && M.reverse(); st--; ) {
  21656. var mt = M[st];
  21657. if (typeof mt != "function")
  21658. throw new Si(I);
  21659. if (ut && !xt && Fs(mt) == "wrapper")
  21660. var xt = new wi([], !0);
  21661. }
  21662. for (st = xt ? st : K; ++st < K; ) {
  21663. mt = M[st];
  21664. var bt = Fs(mt), Mt = bt == "wrapper" ? La(mt) : E;
  21665. Mt && Ra(Mt[0]) && Mt[1] == (x | B | b | a) && !Mt[4].length && Mt[9] == 1 ? xt = xt[Fs(Mt[0])].apply(xt, Mt[3]) : xt = mt.length == 1 && Ra(mt) ? xt[bt]() : xt.thru(mt);
  21666. }
  21667. return function() {
  21668. var It = arguments, Rt = It[0];
  21669. if (xt && It.length == 1 && ie(Rt))
  21670. return xt.plant(Rt).value();
  21671. for (var Bt = 0, Yt = K ? M[Bt].apply(this, It) : Rt; ++Bt < K; )
  21672. Yt = M[Bt].call(this, Yt);
  21673. return Yt;
  21674. };
  21675. });
  21676. }
  21677. function Ys(e, M, K, st, ut, mt, xt, bt, Mt, It) {
  21678. var Rt = M & x, Bt = M & u, Yt = M & A, Ut = M & (B | C), Qt = M & c, oe = Yt ? E : Gn(e);
  21679. function te() {
  21680. for (var he = arguments.length, pe = Tt(he), gi = he; gi--; )
  21681. pe[gi] = arguments[gi];
  21682. if (Ut)
  21683. var ni = pn(te), mi = ef(pe, ni);
  21684. if (st && (pe = Mc(pe, st, ut, Ut)), mt && (pe = Cc(pe, mt, xt, Ut)), he -= mi, Ut && he < It) {
  21685. var je = br(pe, ni);
  21686. return _c(
  21687. e,
  21688. M,
  21689. Ys,
  21690. te.placeholder,
  21691. K,
  21692. pe,
  21693. je,
  21694. bt,
  21695. Mt,
  21696. It - he
  21697. );
  21698. }
  21699. var Ri = Bt ? K : this, nr = Yt ? Ri[e] : e;
  21700. return he = pe.length, bt ? pe = cm(pe, bt) : Qt && he > 1 && pe.reverse(), Rt && Mt < he && (pe.length = Mt), this && this !== Ue && this instanceof te && (nr = oe || Gn(nr)), nr.apply(Ri, pe);
  21701. }
  21702. return te;
  21703. }
  21704. function Oc(e, M) {
  21705. return function(K, st) {
  21706. return vg(K, e, M(st), {});
  21707. };
  21708. }
  21709. function Xs(e, M) {
  21710. return function(K, st) {
  21711. var ut;
  21712. if (K === E && st === E)
  21713. return M;
  21714. if (K !== E && (ut = K), st !== E) {
  21715. if (ut === E)
  21716. return st;
  21717. typeof K == "string" || typeof st == "string" ? (K = di(K), st = di(st)) : (K = gc(K), st = gc(st)), ut = e(K, st);
  21718. }
  21719. return ut;
  21720. };
  21721. }
  21722. function Ta(e) {
  21723. return tr(function(M) {
  21724. return M = Ee(M, ui(qt())), ae(function(K) {
  21725. var st = this;
  21726. return e(M, function(ut) {
  21727. return pi(ut, st, K);
  21728. });
  21729. });
  21730. });
  21731. }
  21732. function Gs(e, M) {
  21733. M = M === E ? " " : di(M);
  21734. var K = M.length;
  21735. if (K < 2)
  21736. return K ? ba(M, e) : M;
  21737. var st = ba(M, Es(e / rn(M)));
  21738. return en(M) ? kr(_i(st), 0, e).join("") : st.slice(0, e);
  21739. }
  21740. function Fg(e, M, K, st) {
  21741. var ut = M & u, mt = Gn(e);
  21742. function xt() {
  21743. for (var bt = -1, Mt = arguments.length, It = -1, Rt = st.length, Bt = Tt(Rt + Mt), Yt = this && this !== Ue && this instanceof xt ? mt : e; ++It < Rt; )
  21744. Bt[It] = st[It];
  21745. for (; Mt--; )
  21746. Bt[It++] = arguments[++bt];
  21747. return pi(Yt, ut ? K : this, Bt);
  21748. }
  21749. return xt;
  21750. }
  21751. function Lc(e) {
  21752. return function(M, K, st) {
  21753. return st && typeof st != "number" && ri(M, K, st) && (K = st = E), M = rr(M), K === E ? (K = M, M = 0) : K = rr(K), st = st === E ? M < K ? 1 : -1 : rr(st), Og(M, K, st, e);
  21754. };
  21755. }
  21756. function Hs(e) {
  21757. return function(M, K) {
  21758. return typeof M == "string" && typeof K == "string" || (M = Ai(M), K = Ai(K)), e(M, K);
  21759. };
  21760. }
  21761. function _c(e, M, K, st, ut, mt, xt, bt, Mt, It) {
  21762. var Rt = M & B, Bt = Rt ? xt : E, Yt = Rt ? E : xt, Ut = Rt ? mt : E, Qt = Rt ? E : mt;
  21763. M |= Rt ? b : w, M &= ~(Rt ? w : b), M & O || (M &= ~(u | A));
  21764. var oe = [
  21765. e,
  21766. M,
  21767. ut,
  21768. Ut,
  21769. Bt,
  21770. Qt,
  21771. Yt,
  21772. bt,
  21773. Mt,
  21774. It
  21775. ], te = K.apply(E, oe);
  21776. return Ra(e) && Hc(te, oe), te.placeholder = st, Fc(te, e, M);
  21777. }
  21778. function Pa(e) {
  21779. var M = ze[e];
  21780. return function(K, st) {
  21781. if (K = Ai(K), st = st == null ? 0 : Ze(ne(st), 292), st && Fh(K)) {
  21782. var ut = (xe(K) + "e").split("e"), mt = M(ut[0] + "e" + (+ut[1] + st));
  21783. return ut = (xe(mt) + "e").split("e"), +(ut[0] + "e" + (+ut[1] - st));
  21784. }
  21785. return M(K);
  21786. };
  21787. }
  21788. var Ug = on && 1 / xs(new on([, -0]))[1] == T ? function(e) {
  21789. return new on(e);
  21790. } : Ka;
  21791. function Dc(e) {
  21792. return function(M) {
  21793. var K = Ke(M);
  21794. return K == it ? na(M) : K == ht ? hf(M) : tf(M, e(M));
  21795. };
  21796. }
  21797. function Qi(e, M, K, st, ut, mt, xt, bt) {
  21798. var Mt = M & A;
  21799. if (!Mt && typeof e != "function")
  21800. throw new Si(I);
  21801. var It = st ? st.length : 0;
  21802. if (It || (M &= ~(b | w), st = ut = E), xt = xt === E ? xt : Ye(ne(xt), 0), bt = bt === E ? bt : ne(bt), It -= ut ? ut.length : 0, M & w) {
  21803. var Rt = st, Bt = ut;
  21804. st = ut = E;
  21805. }
  21806. var Yt = Mt ? E : La(e), Ut = [
  21807. e,
  21808. M,
  21809. K,
  21810. st,
  21811. ut,
  21812. Rt,
  21813. Bt,
  21814. mt,
  21815. xt,
  21816. bt
  21817. ];
  21818. if (Yt && am(Ut, Yt), e = Ut[0], M = Ut[1], K = Ut[2], st = Ut[3], ut = Ut[4], bt = Ut[9] = Ut[9] === E ? Mt ? 0 : e.length : Ye(Ut[9] - It, 0), !bt && M & (B | C) && (M &= ~(B | C)), !M || M == u)
  21819. var Qt = Gg(e, M, K);
  21820. else
  21821. M == B || M == C ? Qt = Hg(e, M, bt) : (M == b || M == (u | b)) && !ut.length ? Qt = Fg(e, M, K, st) : Qt = Ys.apply(E, Ut);
  21822. var oe = Yt ? dc : Hc;
  21823. return Fc(oe(Qt, Ut), e, M);
  21824. }
  21825. function Ic(e, M, K, st) {
  21826. return e === E || Ii(e, sn[K]) && !Se.call(st, K) ? M : e;
  21827. }
  21828. function Rc(e, M, K, st, ut, mt) {
  21829. return Ie(e) && Ie(M) && (mt.set(M, e), Bs(e, M, E, Rc, mt), mt.delete(M)), e;
  21830. }
  21831. function Vg(e) {
  21832. return Un(e) ? E : e;
  21833. }
  21834. function Nc(e, M, K, st, ut, mt) {
  21835. var xt = K & v, bt = e.length, Mt = M.length;
  21836. if (bt != Mt && !(xt && Mt > bt))
  21837. return !1;
  21838. var It = mt.get(e), Rt = mt.get(M);
  21839. if (It && Rt)
  21840. return It == M && Rt == e;
  21841. var Bt = -1, Yt = !0, Ut = K & d ? new jr() : E;
  21842. for (mt.set(e, M), mt.set(M, e); ++Bt < bt; ) {
  21843. var Qt = e[Bt], oe = M[Bt];
  21844. if (st)
  21845. var te = xt ? st(oe, Qt, Bt, M, e, mt) : st(Qt, oe, Bt, e, M, mt);
  21846. if (te !== E) {
  21847. if (te)
  21848. continue;
  21849. Yt = !1;
  21850. break;
  21851. }
  21852. if (Ut) {
  21853. if (!qo(M, function(he, pe) {
  21854. if (!_n(Ut, pe) && (Qt === he || ut(Qt, he, K, st, mt)))
  21855. return Ut.push(pe);
  21856. })) {
  21857. Yt = !1;
  21858. break;
  21859. }
  21860. } else if (!(Qt === oe || ut(Qt, oe, K, st, mt))) {
  21861. Yt = !1;
  21862. break;
  21863. }
  21864. }
  21865. return mt.delete(e), mt.delete(M), Yt;
  21866. }
  21867. function $g(e, M, K, st, ut, mt, xt) {
  21868. switch (K) {
  21869. case yt:
  21870. if (e.byteLength != M.byteLength || e.byteOffset != M.byteOffset)
  21871. return !1;
  21872. e = e.buffer, M = M.buffer;
  21873. case pt:
  21874. return !(e.byteLength != M.byteLength || !mt(new ks(e), new ks(M)));
  21875. case Q:
  21876. case k:
  21877. case et:
  21878. return Ii(+e, +M);
  21879. case z:
  21880. return e.name == M.name && e.message == M.message;
  21881. case dt:
  21882. case at:
  21883. return e == M + "";
  21884. case it:
  21885. var bt = na;
  21886. case ht:
  21887. var Mt = st & v;
  21888. if (bt || (bt = xs), e.size != M.size && !Mt)
  21889. return !1;
  21890. var It = xt.get(e);
  21891. if (It)
  21892. return It == M;
  21893. st |= d, xt.set(e, M);
  21894. var Rt = Nc(bt(e), bt(M), st, ut, mt, xt);
  21895. return xt.delete(e), Rt;
  21896. case J:
  21897. if (Bn)
  21898. return Bn.call(e) == Bn.call(M);
  21899. }
  21900. return !1;
  21901. }
  21902. function Zg(e, M, K, st, ut, mt) {
  21903. var xt = K & v, bt = Ea(e), Mt = bt.length, It = Ea(M), Rt = It.length;
  21904. if (Mt != Rt && !xt)
  21905. return !1;
  21906. for (var Bt = Mt; Bt--; ) {
  21907. var Yt = bt[Bt];
  21908. if (!(xt ? Yt in M : Se.call(M, Yt)))
  21909. return !1;
  21910. }
  21911. var Ut = mt.get(e), Qt = mt.get(M);
  21912. if (Ut && Qt)
  21913. return Ut == M && Qt == e;
  21914. var oe = !0;
  21915. mt.set(e, M), mt.set(M, e);
  21916. for (var te = xt; ++Bt < Mt; ) {
  21917. Yt = bt[Bt];
  21918. var he = e[Yt], pe = M[Yt];
  21919. if (st)
  21920. var gi = xt ? st(pe, he, Yt, M, e, mt) : st(he, pe, Yt, e, M, mt);
  21921. if (!(gi === E ? he === pe || ut(he, pe, K, st, mt) : gi)) {
  21922. oe = !1;
  21923. break;
  21924. }
  21925. te || (te = Yt == "constructor");
  21926. }
  21927. if (oe && !te) {
  21928. var ni = e.constructor, mi = M.constructor;
  21929. ni != mi && "constructor" in e && "constructor" in M && !(typeof ni == "function" && ni instanceof ni && typeof mi == "function" && mi instanceof mi) && (oe = !1);
  21930. }
  21931. return mt.delete(e), mt.delete(M), oe;
  21932. }
  21933. function tr(e) {
  21934. return Ba(Xc(e, E, Jc), e + "");
  21935. }
  21936. function Ea(e) {
  21937. return ic(e, He, Da);
  21938. }
  21939. function Oa(e) {
  21940. return ic(e, ai, Bc);
  21941. }
  21942. var La = Ls ? function(e) {
  21943. return Ls.get(e);
  21944. } : Ka;
  21945. function Fs(e) {
  21946. for (var M = e.name + "", K = an[M], st = Se.call(an, M) ? K.length : 0; st--; ) {
  21947. var ut = K[st], mt = ut.func;
  21948. if (mt == null || mt == e)
  21949. return ut.name;
  21950. }
  21951. return M;
  21952. }
  21953. function pn(e) {
  21954. var M = Se.call(ft, "placeholder") ? ft : e;
  21955. return M.placeholder;
  21956. }
  21957. function qt() {
  21958. var e = ft.iteratee || $a;
  21959. return e = e === $a ? sc : e, arguments.length ? e(arguments[0], arguments[1]) : e;
  21960. }
  21961. function Us(e, M) {
  21962. var K = e.__data__;
  21963. return rm(M) ? K[typeof M == "string" ? "string" : "hash"] : K.map;
  21964. }
  21965. function _a(e) {
  21966. for (var M = He(e), K = M.length; K--; ) {
  21967. var st = M[K], ut = e[st];
  21968. M[K] = [st, ut, zc(ut)];
  21969. }
  21970. return M;
  21971. }
  21972. function Yr(e, M) {
  21973. var K = of(e, M);
  21974. return nc(K) ? K : E;
  21975. }
  21976. function Kg(e) {
  21977. var M = Se.call(e, Nr), K = e[Nr];
  21978. try {
  21979. e[Nr] = E;
  21980. var st = !0;
  21981. } catch {
  21982. }
  21983. var ut = Ms.call(e);
  21984. return st && (M ? e[Nr] = K : delete e[Nr]), ut;
  21985. }
  21986. var Da = oa ? function(e) {
  21987. return e == null ? [] : (e = Ce(e), vr(oa(e), function(M) {
  21988. return Gh.call(e, M);
  21989. }));
  21990. } : Ja, Bc = oa ? function(e) {
  21991. for (var M = []; e; )
  21992. xr(M, Da(e)), e = As(e);
  21993. return M;
  21994. } : Ja, Ke = ii;
  21995. (aa && Ke(new aa(new ArrayBuffer(1))) != yt || In && Ke(new In()) != it || la && Ke(la.resolve()) != ct || on && Ke(new on()) != ht || Rn && Ke(new Rn()) != ot) && (Ke = function(e) {
  21996. var M = ii(e), K = M == rt ? e.constructor : E, st = K ? Xr(K) : "";
  21997. if (st)
  21998. switch (st) {
  21999. case _f:
  22000. return yt;
  22001. case Df:
  22002. return it;
  22003. case If:
  22004. return ct;
  22005. case Rf:
  22006. return ht;
  22007. case Nf:
  22008. return ot;
  22009. }
  22010. return M;
  22011. });
  22012. function Jg(e, M, K) {
  22013. for (var st = -1, ut = K.length; ++st < ut; ) {
  22014. var mt = K[st], xt = mt.size;
  22015. switch (mt.type) {
  22016. case "drop":
  22017. e += xt;
  22018. break;
  22019. case "dropRight":
  22020. M -= xt;
  22021. break;
  22022. case "take":
  22023. M = Ze(M, e + xt);
  22024. break;
  22025. case "takeRight":
  22026. e = Ye(e, M - xt);
  22027. break;
  22028. }
  22029. }
  22030. return { start: e, end: M };
  22031. }
  22032. function qg(e) {
  22033. var M = e.match(Dr);
  22034. return M ? M[1].split(Yi) : [];
  22035. }
  22036. function jc(e, M, K) {
  22037. M = Cr(M, e);
  22038. for (var st = -1, ut = M.length, mt = !1; ++st < ut; ) {
  22039. var xt = Hi(M[st]);
  22040. if (!(mt = e != null && K(e, xt)))
  22041. break;
  22042. e = e[xt];
  22043. }
  22044. return mt || ++st != ut ? mt : (ut = e == null ? 0 : e.length, !!ut && Qs(ut) && er(xt, ut) && (ie(e) || Gr(e)));
  22045. }
  22046. function Qg(e) {
  22047. var M = e.length, K = new e.constructor(M);
  22048. return M && typeof e[0] == "string" && Se.call(e, "index") && (K.index = e.index, K.input = e.input), K;
  22049. }
  22050. function Wc(e) {
  22051. return typeof e.constructor == "function" && !Hn(e) ? ln(As(e)) : {};
  22052. }
  22053. function tm(e, M, K) {
  22054. var st = e.constructor;
  22055. switch (M) {
  22056. case pt:
  22057. return Aa(e);
  22058. case Q:
  22059. case k:
  22060. return new st(+e);
  22061. case yt:
  22062. return Bg(e, K);
  22063. case vt:
  22064. case Ct:
  22065. case Pt:
  22066. case At:
  22067. case St:
  22068. case Dt:
  22069. case Lt:
  22070. case Nt:
  22071. case Et:
  22072. return Sc(e, K);
  22073. case it:
  22074. return new st();
  22075. case et:
  22076. case at:
  22077. return new st(e);
  22078. case dt:
  22079. return jg(e);
  22080. case ht:
  22081. return new st();
  22082. case J:
  22083. return Wg(e);
  22084. }
  22085. }
  22086. function em(e, M) {
  22087. var K = M.length;
  22088. if (!K)
  22089. return e;
  22090. var st = K - 1;
  22091. return M[st] = (K > 1 ? "& " : "") + M[st], M = M.join(K > 2 ? ", " : " "), e.replace(Xo, `{
  22092. /* [wrapped with ` + M + `] */
  22093. `);
  22094. }
  22095. function im(e) {
  22096. return ie(e) || Gr(e) || !!(Hh && e && e[Hh]);
  22097. }
  22098. function er(e, M) {
  22099. var K = typeof e;
  22100. return M = M ?? _, !!M && (K == "number" || K != "symbol" && dd.test(e)) && e > -1 && e % 1 == 0 && e < M;
  22101. }
  22102. function ri(e, M, K) {
  22103. if (!Ie(K))
  22104. return !1;
  22105. var st = typeof M;
  22106. return (st == "number" ? oi(K) && er(M, K.length) : st == "string" && M in K) ? Ii(K[M], e) : !1;
  22107. }
  22108. function Ia(e, M) {
  22109. if (ie(e))
  22110. return !1;
  22111. var K = typeof e;
  22112. return K == "number" || K == "symbol" || K == "boolean" || e == null || fi(e) ? !0 : Pn.test(e) || !Tn.test(e) || M != null && e in Ce(M);
  22113. }
  22114. function rm(e) {
  22115. var M = typeof e;
  22116. return M == "string" || M == "number" || M == "symbol" || M == "boolean" ? e !== "__proto__" : e === null;
  22117. }
  22118. function Ra(e) {
  22119. var M = Fs(e), K = ft[M];
  22120. if (typeof K != "function" || !(M in ce.prototype))
  22121. return !1;
  22122. if (e === K)
  22123. return !0;
  22124. var st = La(K);
  22125. return !!st && e === st[0];
  22126. }
  22127. function nm(e) {
  22128. return !!zh && zh in e;
  22129. }
  22130. var sm = Ss ? ir : qa;
  22131. function Hn(e) {
  22132. var M = e && e.constructor, K = typeof M == "function" && M.prototype || sn;
  22133. return e === K;
  22134. }
  22135. function zc(e) {
  22136. return e === e && !Ie(e);
  22137. }
  22138. function Yc(e, M) {
  22139. return function(K) {
  22140. return K == null ? !1 : K[e] === M && (M !== E || e in Ce(K));
  22141. };
  22142. }
  22143. function om(e) {
  22144. var M = Js(e, function(st) {
  22145. return K.size === U && K.clear(), st;
  22146. }), K = M.cache;
  22147. return M;
  22148. }
  22149. function am(e, M) {
  22150. var K = e[1], st = M[1], ut = K | st, mt = ut < (u | A | x), xt = st == x && K == B || st == x && K == a && e[7].length <= M[8] || st == (x | a) && M[7].length <= M[8] && K == B;
  22151. if (!(mt || xt))
  22152. return e;
  22153. st & u && (e[2] = M[2], ut |= K & u ? 0 : O);
  22154. var bt = M[3];
  22155. if (bt) {
  22156. var Mt = e[3];
  22157. e[3] = Mt ? Mc(Mt, bt, M[4]) : bt, e[4] = Mt ? br(e[3], F) : M[4];
  22158. }
  22159. return bt = M[5], bt && (Mt = e[5], e[5] = Mt ? Cc(Mt, bt, M[6]) : bt, e[6] = Mt ? br(e[5], F) : M[6]), bt = M[7], bt && (e[7] = bt), st & x && (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;
  22160. }
  22161. function lm(e) {
  22162. var M = [];
  22163. if (e != null)
  22164. for (var K in Ce(e))
  22165. M.push(K);
  22166. return M;
  22167. }
  22168. function hm(e) {
  22169. return Ms.call(e);
  22170. }
  22171. function Xc(e, M, K) {
  22172. return M = Ye(M === E ? e.length - 1 : M, 0), function() {
  22173. for (var st = arguments, ut = -1, mt = Ye(st.length - M, 0), xt = Tt(mt); ++ut < mt; )
  22174. xt[ut] = st[M + ut];
  22175. ut = -1;
  22176. for (var bt = Tt(M + 1); ++ut < M; )
  22177. bt[ut] = st[ut];
  22178. return bt[M] = K(xt), pi(e, this, bt);
  22179. };
  22180. }
  22181. function Gc(e, M) {
  22182. return M.length < 2 ? e : zr(e, Ci(M, 0, -1));
  22183. }
  22184. function cm(e, M) {
  22185. for (var K = e.length, st = Ze(M.length, K), ut = si(e); st--; ) {
  22186. var mt = M[st];
  22187. e[st] = er(mt, K) ? ut[mt] : E;
  22188. }
  22189. return e;
  22190. }
  22191. function Na(e, M) {
  22192. if (!(M === "constructor" && typeof e[M] == "function") && M != "__proto__")
  22193. return e[M];
  22194. }
  22195. var Hc = Uc(dc), Fn = kf || function(e, M) {
  22196. return Ue.setTimeout(e, M);
  22197. }, Ba = Uc(Dg);
  22198. function Fc(e, M, K) {
  22199. var st = M + "";
  22200. return Ba(e, em(st, pm(qg(st), K)));
  22201. }
  22202. function Uc(e) {
  22203. var M = 0, K = 0;
  22204. return function() {
  22205. var st = Ef(), ut = o - (st - K);
  22206. if (K = st, ut > 0) {
  22207. if (++M >= h)
  22208. return arguments[0];
  22209. } else
  22210. M = 0;
  22211. return e.apply(E, arguments);
  22212. };
  22213. }
  22214. function Vs(e, M) {
  22215. var K = -1, st = e.length, ut = st - 1;
  22216. for (M = M === E ? st : M; ++K < M; ) {
  22217. var mt = xa(K, ut), xt = e[mt];
  22218. e[mt] = e[K], e[K] = xt;
  22219. }
  22220. return e.length = M, e;
  22221. }
  22222. var Vc = om(function(e) {
  22223. var M = [];
  22224. return e.charCodeAt(0) === 46 && M.push(""), e.replace($e, function(K, st, ut, mt) {
  22225. M.push(ut ? mt.replace(Ir, "$1") : st || K);
  22226. }), M;
  22227. });
  22228. function Hi(e) {
  22229. if (typeof e == "string" || fi(e))
  22230. return e;
  22231. var M = e + "";
  22232. return M == "0" && 1 / e == -T ? "-0" : M;
  22233. }
  22234. function Xr(e) {
  22235. if (e != null) {
  22236. try {
  22237. return ws.call(e);
  22238. } catch {
  22239. }
  22240. try {
  22241. return e + "";
  22242. } catch {
  22243. }
  22244. }
  22245. return "";
  22246. }
  22247. function pm(e, M) {
  22248. return bi(m, function(K) {
  22249. var st = "_." + K[0];
  22250. M & K[1] && !ys(e, st) && e.push(st);
  22251. }), e.sort();
  22252. }
  22253. function $c(e) {
  22254. if (e instanceof ce)
  22255. return e.clone();
  22256. var M = new wi(e.__wrapped__, e.__chain__);
  22257. return M.__actions__ = si(e.__actions__), M.__index__ = e.__index__, M.__values__ = e.__values__, M;
  22258. }
  22259. function um(e, M, K) {
  22260. (K ? ri(e, M, K) : M === E) ? M = 1 : M = Ye(ne(M), 0);
  22261. var st = e == null ? 0 : e.length;
  22262. if (!st || M < 1)
  22263. return [];
  22264. for (var ut = 0, mt = 0, xt = Tt(Es(st / M)); ut < st; )
  22265. xt[mt++] = Ci(e, ut, ut += M);
  22266. return xt;
  22267. }
  22268. function dm(e) {
  22269. for (var M = -1, K = e == null ? 0 : e.length, st = 0, ut = []; ++M < K; ) {
  22270. var mt = e[M];
  22271. mt && (ut[st++] = mt);
  22272. }
  22273. return ut;
  22274. }
  22275. function fm() {
  22276. var e = arguments.length;
  22277. if (!e)
  22278. return [];
  22279. for (var M = Tt(e - 1), K = arguments[0], st = e; st--; )
  22280. M[st - 1] = arguments[st];
  22281. return xr(ie(K) ? si(K) : [K], Ve(M, 1));
  22282. }
  22283. var gm = ae(function(e, M) {
  22284. return Be(e) ? Wn(e, Ve(M, 1, Be, !0)) : [];
  22285. }), mm = ae(function(e, M) {
  22286. var K = ki(M);
  22287. return Be(K) && (K = E), Be(e) ? Wn(e, Ve(M, 1, Be, !0), qt(K, 2)) : [];
  22288. }), ym = ae(function(e, M) {
  22289. var K = ki(M);
  22290. return Be(K) && (K = E), Be(e) ? Wn(e, Ve(M, 1, Be, !0), E, K) : [];
  22291. });
  22292. function vm(e, M, K) {
  22293. var st = e == null ? 0 : e.length;
  22294. return st ? (M = K || M === E ? 1 : ne(M), Ci(e, M < 0 ? 0 : M, st)) : [];
  22295. }
  22296. function xm(e, M, K) {
  22297. var st = e == null ? 0 : e.length;
  22298. return st ? (M = K || M === E ? 1 : ne(M), M = st - M, Ci(e, 0, M < 0 ? 0 : M)) : [];
  22299. }
  22300. function bm(e, M) {
  22301. return e && e.length ? Ws(e, qt(M, 3), !0, !0) : [];
  22302. }
  22303. function Sm(e, M) {
  22304. return e && e.length ? Ws(e, qt(M, 3), !0) : [];
  22305. }
  22306. function wm(e, M, K, st) {
  22307. var ut = e == null ? 0 : e.length;
  22308. return ut ? (K && typeof K != "number" && ri(e, M, K) && (K = 0, st = ut), fg(e, M, K, st)) : [];
  22309. }
  22310. function Zc(e, M, K) {
  22311. var st = e == null ? 0 : e.length;
  22312. if (!st)
  22313. return -1;
  22314. var ut = K == null ? 0 : ne(K);
  22315. return ut < 0 && (ut = Ye(st + ut, 0)), vs(e, qt(M, 3), ut);
  22316. }
  22317. function Kc(e, M, K) {
  22318. var st = e == null ? 0 : e.length;
  22319. if (!st)
  22320. return -1;
  22321. var ut = st - 1;
  22322. return K !== E && (ut = ne(K), ut = K < 0 ? Ye(st + ut, 0) : Ze(ut, st - 1)), vs(e, qt(M, 3), ut, !0);
  22323. }
  22324. function Jc(e) {
  22325. var M = e == null ? 0 : e.length;
  22326. return M ? Ve(e, 1) : [];
  22327. }
  22328. function Mm(e) {
  22329. var M = e == null ? 0 : e.length;
  22330. return M ? Ve(e, T) : [];
  22331. }
  22332. function Cm(e, M) {
  22333. var K = e == null ? 0 : e.length;
  22334. return K ? (M = M === E ? 1 : ne(M), Ve(e, M)) : [];
  22335. }
  22336. function km(e) {
  22337. for (var M = -1, K = e == null ? 0 : e.length, st = {}; ++M < K; ) {
  22338. var ut = e[M];
  22339. st[ut[0]] = ut[1];
  22340. }
  22341. return st;
  22342. }
  22343. function qc(e) {
  22344. return e && e.length ? e[0] : E;
  22345. }
  22346. function Am(e, M, K) {
  22347. var st = e == null ? 0 : e.length;
  22348. if (!st)
  22349. return -1;
  22350. var ut = K == null ? 0 : ne(K);
  22351. return ut < 0 && (ut = Ye(st + ut, 0)), tn(e, M, ut);
  22352. }
  22353. function Tm(e) {
  22354. var M = e == null ? 0 : e.length;
  22355. return M ? Ci(e, 0, -1) : [];
  22356. }
  22357. var Pm = ae(function(e) {
  22358. var M = Ee(e, Ca);
  22359. return M.length && M[0] === e[0] ? fa(M) : [];
  22360. }), Em = ae(function(e) {
  22361. var M = ki(e), K = Ee(e, Ca);
  22362. return M === ki(K) ? M = E : K.pop(), K.length && K[0] === e[0] ? fa(K, qt(M, 2)) : [];
  22363. }), Om = ae(function(e) {
  22364. var M = ki(e), K = Ee(e, Ca);
  22365. return M = typeof M == "function" ? M : E, M && K.pop(), K.length && K[0] === e[0] ? fa(K, E, M) : [];
  22366. });
  22367. function Lm(e, M) {
  22368. return e == null ? "" : Tf.call(e, M);
  22369. }
  22370. function ki(e) {
  22371. var M = e == null ? 0 : e.length;
  22372. return M ? e[M - 1] : E;
  22373. }
  22374. function _m(e, M, K) {
  22375. var st = e == null ? 0 : e.length;
  22376. if (!st)
  22377. return -1;
  22378. var ut = st;
  22379. return K !== E && (ut = ne(K), ut = ut < 0 ? Ye(st + ut, 0) : Ze(ut, st - 1)), M === M ? pf(e, M, ut) : vs(e, _h, ut, !0);
  22380. }
  22381. function Dm(e, M) {
  22382. return e && e.length ? hc(e, ne(M)) : E;
  22383. }
  22384. var Im = ae(Qc);
  22385. function Qc(e, M) {
  22386. return e && e.length && M && M.length ? va(e, M) : e;
  22387. }
  22388. function Rm(e, M, K) {
  22389. return e && e.length && M && M.length ? va(e, M, qt(K, 2)) : e;
  22390. }
  22391. function Nm(e, M, K) {
  22392. return e && e.length && M && M.length ? va(e, M, E, K) : e;
  22393. }
  22394. var Bm = tr(function(e, M) {
  22395. var K = e == null ? 0 : e.length, st = ca(e, M);
  22396. return uc(e, Ee(M, function(ut) {
  22397. return er(ut, K) ? +ut : ut;
  22398. }).sort(wc)), st;
  22399. });
  22400. function jm(e, M) {
  22401. var K = [];
  22402. if (!(e && e.length))
  22403. return K;
  22404. var st = -1, ut = [], mt = e.length;
  22405. for (M = qt(M, 3); ++st < mt; ) {
  22406. var xt = e[st];
  22407. M(xt, st, e) && (K.push(xt), ut.push(st));
  22408. }
  22409. return uc(e, ut), K;
  22410. }
  22411. function ja(e) {
  22412. return e == null ? e : Lf.call(e);
  22413. }
  22414. function Wm(e, M, K) {
  22415. var st = e == null ? 0 : e.length;
  22416. return st ? (K && typeof K != "number" && ri(e, M, K) ? (M = 0, K = st) : (M = M == null ? 0 : ne(M), K = K === E ? st : ne(K)), Ci(e, M, K)) : [];
  22417. }
  22418. function zm(e, M) {
  22419. return js(e, M);
  22420. }
  22421. function Ym(e, M, K) {
  22422. return Sa(e, M, qt(K, 2));
  22423. }
  22424. function Xm(e, M) {
  22425. var K = e == null ? 0 : e.length;
  22426. if (K) {
  22427. var st = js(e, M);
  22428. if (st < K && Ii(e[st], M))
  22429. return st;
  22430. }
  22431. return -1;
  22432. }
  22433. function Gm(e, M) {
  22434. return js(e, M, !0);
  22435. }
  22436. function Hm(e, M, K) {
  22437. return Sa(e, M, qt(K, 2), !0);
  22438. }
  22439. function Fm(e, M) {
  22440. var K = e == null ? 0 : e.length;
  22441. if (K) {
  22442. var st = js(e, M, !0) - 1;
  22443. if (Ii(e[st], M))
  22444. return st;
  22445. }
  22446. return -1;
  22447. }
  22448. function Um(e) {
  22449. return e && e.length ? fc(e) : [];
  22450. }
  22451. function Vm(e, M) {
  22452. return e && e.length ? fc(e, qt(M, 2)) : [];
  22453. }
  22454. function $m(e) {
  22455. var M = e == null ? 0 : e.length;
  22456. return M ? Ci(e, 1, M) : [];
  22457. }
  22458. function Zm(e, M, K) {
  22459. return e && e.length ? (M = K || M === E ? 1 : ne(M), Ci(e, 0, M < 0 ? 0 : M)) : [];
  22460. }
  22461. function Km(e, M, K) {
  22462. var st = e == null ? 0 : e.length;
  22463. return st ? (M = K || M === E ? 1 : ne(M), M = st - M, Ci(e, M < 0 ? 0 : M, st)) : [];
  22464. }
  22465. function Jm(e, M) {
  22466. return e && e.length ? Ws(e, qt(M, 3), !1, !0) : [];
  22467. }
  22468. function qm(e, M) {
  22469. return e && e.length ? Ws(e, qt(M, 3)) : [];
  22470. }
  22471. var Qm = ae(function(e) {
  22472. return Mr(Ve(e, 1, Be, !0));
  22473. }), ty = ae(function(e) {
  22474. var M = ki(e);
  22475. return Be(M) && (M = E), Mr(Ve(e, 1, Be, !0), qt(M, 2));
  22476. }), ey = ae(function(e) {
  22477. var M = ki(e);
  22478. return M = typeof M == "function" ? M : E, Mr(Ve(e, 1, Be, !0), E, M);
  22479. });
  22480. function iy(e) {
  22481. return e && e.length ? Mr(e) : [];
  22482. }
  22483. function ry(e, M) {
  22484. return e && e.length ? Mr(e, qt(M, 2)) : [];
  22485. }
  22486. function ny(e, M) {
  22487. return M = typeof M == "function" ? M : E, e && e.length ? Mr(e, E, M) : [];
  22488. }
  22489. function Wa(e) {
  22490. if (!(e && e.length))
  22491. return [];
  22492. var M = 0;
  22493. return e = vr(e, function(K) {
  22494. if (Be(K))
  22495. return M = Ye(K.length, M), !0;
  22496. }), ia(M, function(K) {
  22497. return Ee(e, Qo(K));
  22498. });
  22499. }
  22500. function tp(e, M) {
  22501. if (!(e && e.length))
  22502. return [];
  22503. var K = Wa(e);
  22504. return M == null ? K : Ee(K, function(st) {
  22505. return pi(M, E, st);
  22506. });
  22507. }
  22508. var sy = ae(function(e, M) {
  22509. return Be(e) ? Wn(e, M) : [];
  22510. }), oy = ae(function(e) {
  22511. return Ma(vr(e, Be));
  22512. }), ay = ae(function(e) {
  22513. var M = ki(e);
  22514. return Be(M) && (M = E), Ma(vr(e, Be), qt(M, 2));
  22515. }), ly = ae(function(e) {
  22516. var M = ki(e);
  22517. return M = typeof M == "function" ? M : E, Ma(vr(e, Be), E, M);
  22518. }), hy = ae(Wa);
  22519. function cy(e, M) {
  22520. return vc(e || [], M || [], jn);
  22521. }
  22522. function py(e, M) {
  22523. return vc(e || [], M || [], Xn);
  22524. }
  22525. var uy = ae(function(e) {
  22526. var M = e.length, K = M > 1 ? e[M - 1] : E;
  22527. return K = typeof K == "function" ? (e.pop(), K) : E, tp(e, K);
  22528. });
  22529. function ep(e) {
  22530. var M = ft(e);
  22531. return M.__chain__ = !0, M;
  22532. }
  22533. function dy(e, M) {
  22534. return M(e), e;
  22535. }
  22536. function $s(e, M) {
  22537. return M(e);
  22538. }
  22539. var fy = tr(function(e) {
  22540. var M = e.length, K = M ? e[0] : 0, st = this.__wrapped__, ut = function(mt) {
  22541. return ca(mt, e);
  22542. };
  22543. 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({
  22544. func: $s,
  22545. args: [ut],
  22546. thisArg: E
  22547. }), new wi(st, this.__chain__).thru(function(mt) {
  22548. return M && !mt.length && mt.push(E), mt;
  22549. }));
  22550. });
  22551. function gy() {
  22552. return ep(this);
  22553. }
  22554. function my() {
  22555. return new wi(this.value(), this.__chain__);
  22556. }
  22557. function yy() {
  22558. this.__values__ === E && (this.__values__ = gp(this.value()));
  22559. var e = this.__index__ >= this.__values__.length, M = e ? E : this.__values__[this.__index__++];
  22560. return { done: e, value: M };
  22561. }
  22562. function vy() {
  22563. return this;
  22564. }
  22565. function xy(e) {
  22566. for (var M, K = this; K instanceof Ds; ) {
  22567. var st = $c(K);
  22568. st.__index__ = 0, st.__values__ = E, M ? ut.__wrapped__ = st : M = st;
  22569. var ut = st;
  22570. K = K.__wrapped__;
  22571. }
  22572. return ut.__wrapped__ = e, M;
  22573. }
  22574. function by() {
  22575. var e = this.__wrapped__;
  22576. if (e instanceof ce) {
  22577. var M = e;
  22578. return this.__actions__.length && (M = new ce(this)), M = M.reverse(), M.__actions__.push({
  22579. func: $s,
  22580. args: [ja],
  22581. thisArg: E
  22582. }), new wi(M, this.__chain__);
  22583. }
  22584. return this.thru(ja);
  22585. }
  22586. function Sy() {
  22587. return yc(this.__wrapped__, this.__actions__);
  22588. }
  22589. var wy = zs(function(e, M, K) {
  22590. Se.call(e, K) ? ++e[K] : qi(e, K, 1);
  22591. });
  22592. function My(e, M, K) {
  22593. var st = ie(e) ? Oh : dg;
  22594. return K && ri(e, M, K) && (M = E), st(e, qt(M, 3));
  22595. }
  22596. function Cy(e, M) {
  22597. var K = ie(e) ? vr : tc;
  22598. return K(e, qt(M, 3));
  22599. }
  22600. var ky = Pc(Zc), Ay = Pc(Kc);
  22601. function Ty(e, M) {
  22602. return Ve(Zs(e, M), 1);
  22603. }
  22604. function Py(e, M) {
  22605. return Ve(Zs(e, M), T);
  22606. }
  22607. function Ey(e, M, K) {
  22608. return K = K === E ? 1 : ne(K), Ve(Zs(e, M), K);
  22609. }
  22610. function ip(e, M) {
  22611. var K = ie(e) ? bi : wr;
  22612. return K(e, qt(M, 3));
  22613. }
  22614. function rp(e, M) {
  22615. var K = ie(e) ? Vd : Qh;
  22616. return K(e, qt(M, 3));
  22617. }
  22618. var Oy = zs(function(e, M, K) {
  22619. Se.call(e, K) ? e[K].push(M) : qi(e, K, [M]);
  22620. });
  22621. function Ly(e, M, K, st) {
  22622. e = oi(e) ? e : dn(e), K = K && !st ? ne(K) : 0;
  22623. var ut = e.length;
  22624. return K < 0 && (K = Ye(ut + K, 0)), to(e) ? K <= ut && e.indexOf(M, K) > -1 : !!ut && tn(e, M, K) > -1;
  22625. }
  22626. var _y = ae(function(e, M, K) {
  22627. var st = -1, ut = typeof M == "function", mt = oi(e) ? Tt(e.length) : [];
  22628. return wr(e, function(xt) {
  22629. mt[++st] = ut ? pi(M, xt, K) : zn(xt, M, K);
  22630. }), mt;
  22631. }), Dy = zs(function(e, M, K) {
  22632. qi(e, K, M);
  22633. });
  22634. function Zs(e, M) {
  22635. var K = ie(e) ? Ee : oc;
  22636. return K(e, qt(M, 3));
  22637. }
  22638. function Iy(e, M, K, st) {
  22639. return e == null ? [] : (ie(M) || (M = M == null ? [] : [M]), K = st ? E : K, ie(K) || (K = K == null ? [] : [K]), cc(e, M, K));
  22640. }
  22641. var Ry = zs(function(e, M, K) {
  22642. e[K ? 0 : 1].push(M);
  22643. }, function() {
  22644. return [[], []];
  22645. });
  22646. function Ny(e, M, K) {
  22647. var st = ie(e) ? Jo : Ih, ut = arguments.length < 3;
  22648. return st(e, qt(M, 4), K, ut, wr);
  22649. }
  22650. function By(e, M, K) {
  22651. var st = ie(e) ? $d : Ih, ut = arguments.length < 3;
  22652. return st(e, qt(M, 4), K, ut, Qh);
  22653. }
  22654. function jy(e, M) {
  22655. var K = ie(e) ? vr : tc;
  22656. return K(e, qs(qt(M, 3)));
  22657. }
  22658. function Wy(e) {
  22659. var M = ie(e) ? Zh : Lg;
  22660. return M(e);
  22661. }
  22662. function zy(e, M, K) {
  22663. (K ? ri(e, M, K) : M === E) ? M = 1 : M = ne(M);
  22664. var st = ie(e) ? lg : _g;
  22665. return st(e, M);
  22666. }
  22667. function Yy(e) {
  22668. var M = ie(e) ? hg : Ig;
  22669. return M(e);
  22670. }
  22671. function Xy(e) {
  22672. if (e == null)
  22673. return 0;
  22674. if (oi(e))
  22675. return to(e) ? rn(e) : e.length;
  22676. var M = Ke(e);
  22677. return M == it || M == ht ? e.size : ma(e).length;
  22678. }
  22679. function Gy(e, M, K) {
  22680. var st = ie(e) ? qo : Rg;
  22681. return K && ri(e, M, K) && (M = E), st(e, qt(M, 3));
  22682. }
  22683. var Hy = ae(function(e, M) {
  22684. if (e == null)
  22685. return [];
  22686. var K = M.length;
  22687. return K > 1 && ri(e, M[0], M[1]) ? M = [] : K > 2 && ri(M[0], M[1], M[2]) && (M = [M[0]]), cc(e, Ve(M, 1), []);
  22688. }), Ks = Cf || function() {
  22689. return Ue.Date.now();
  22690. };
  22691. function Fy(e, M) {
  22692. if (typeof M != "function")
  22693. throw new Si(I);
  22694. return e = ne(e), function() {
  22695. if (--e < 1)
  22696. return M.apply(this, arguments);
  22697. };
  22698. }
  22699. function np(e, M, K) {
  22700. return M = K ? E : M, M = e && M == null ? e.length : M, Qi(e, x, E, E, E, E, M);
  22701. }
  22702. function sp(e, M) {
  22703. var K;
  22704. if (typeof M != "function")
  22705. throw new Si(I);
  22706. return e = ne(e), function() {
  22707. return --e > 0 && (K = M.apply(this, arguments)), e <= 1 && (M = E), K;
  22708. };
  22709. }
  22710. var za = ae(function(e, M, K) {
  22711. var st = u;
  22712. if (K.length) {
  22713. var ut = br(K, pn(za));
  22714. st |= b;
  22715. }
  22716. return Qi(e, st, M, K, ut);
  22717. }), op = ae(function(e, M, K) {
  22718. var st = u | A;
  22719. if (K.length) {
  22720. var ut = br(K, pn(op));
  22721. st |= b;
  22722. }
  22723. return Qi(M, st, e, K, ut);
  22724. });
  22725. function ap(e, M, K) {
  22726. M = K ? E : M;
  22727. var st = Qi(e, B, E, E, E, E, E, M);
  22728. return st.placeholder = ap.placeholder, st;
  22729. }
  22730. function lp(e, M, K) {
  22731. M = K ? E : M;
  22732. var st = Qi(e, C, E, E, E, E, E, M);
  22733. return st.placeholder = lp.placeholder, st;
  22734. }
  22735. function hp(e, M, K) {
  22736. var st, ut, mt, xt, bt, Mt, It = 0, Rt = !1, Bt = !1, Yt = !0;
  22737. if (typeof e != "function")
  22738. throw new Si(I);
  22739. M = Ai(M) || 0, Ie(K) && (Rt = !!K.leading, Bt = "maxWait" in K, mt = Bt ? Ye(Ai(K.maxWait) || 0, M) : mt, Yt = "trailing" in K ? !!K.trailing : Yt);
  22740. function Ut(je) {
  22741. var Ri = st, nr = ut;
  22742. return st = ut = E, It = je, xt = e.apply(nr, Ri), xt;
  22743. }
  22744. function Qt(je) {
  22745. return It = je, bt = Fn(he, M), Rt ? Ut(je) : xt;
  22746. }
  22747. function oe(je) {
  22748. var Ri = je - Mt, nr = je - It, Pp = M - Ri;
  22749. return Bt ? Ze(Pp, mt - nr) : Pp;
  22750. }
  22751. function te(je) {
  22752. var Ri = je - Mt, nr = je - It;
  22753. return Mt === E || Ri >= M || Ri < 0 || Bt && nr >= mt;
  22754. }
  22755. function he() {
  22756. var je = Ks();
  22757. if (te(je))
  22758. return pe(je);
  22759. bt = Fn(he, oe(je));
  22760. }
  22761. function pe(je) {
  22762. return bt = E, Yt && st ? Ut(je) : (st = ut = E, xt);
  22763. }
  22764. function gi() {
  22765. bt !== E && xc(bt), It = 0, st = Mt = ut = bt = E;
  22766. }
  22767. function ni() {
  22768. return bt === E ? xt : pe(Ks());
  22769. }
  22770. function mi() {
  22771. var je = Ks(), Ri = te(je);
  22772. if (st = arguments, ut = this, Mt = je, Ri) {
  22773. if (bt === E)
  22774. return Qt(Mt);
  22775. if (Bt)
  22776. return xc(bt), bt = Fn(he, M), Ut(Mt);
  22777. }
  22778. return bt === E && (bt = Fn(he, M)), xt;
  22779. }
  22780. return mi.cancel = gi, mi.flush = ni, mi;
  22781. }
  22782. var Uy = ae(function(e, M) {
  22783. return qh(e, 1, M);
  22784. }), Vy = ae(function(e, M, K) {
  22785. return qh(e, Ai(M) || 0, K);
  22786. });
  22787. function $y(e) {
  22788. return Qi(e, c);
  22789. }
  22790. function Js(e, M) {
  22791. if (typeof e != "function" || M != null && typeof M != "function")
  22792. throw new Si(I);
  22793. var K = function() {
  22794. var st = arguments, ut = M ? M.apply(this, st) : st[0], mt = K.cache;
  22795. if (mt.has(ut))
  22796. return mt.get(ut);
  22797. var xt = e.apply(this, st);
  22798. return K.cache = mt.set(ut, xt) || mt, xt;
  22799. };
  22800. return K.cache = new (Js.Cache || Ji)(), K;
  22801. }
  22802. Js.Cache = Ji;
  22803. function qs(e) {
  22804. if (typeof e != "function")
  22805. throw new Si(I);
  22806. return function() {
  22807. var M = arguments;
  22808. switch (M.length) {
  22809. case 0:
  22810. return !e.call(this);
  22811. case 1:
  22812. return !e.call(this, M[0]);
  22813. case 2:
  22814. return !e.call(this, M[0], M[1]);
  22815. case 3:
  22816. return !e.call(this, M[0], M[1], M[2]);
  22817. }
  22818. return !e.apply(this, M);
  22819. };
  22820. }
  22821. function Zy(e) {
  22822. return sp(2, e);
  22823. }
  22824. var Ky = Ng(function(e, M) {
  22825. M = M.length == 1 && ie(M[0]) ? Ee(M[0], ui(qt())) : Ee(Ve(M, 1), ui(qt()));
  22826. var K = M.length;
  22827. return ae(function(st) {
  22828. for (var ut = -1, mt = Ze(st.length, K); ++ut < mt; )
  22829. st[ut] = M[ut].call(this, st[ut]);
  22830. return pi(e, this, st);
  22831. });
  22832. }), Ya = ae(function(e, M) {
  22833. var K = br(M, pn(Ya));
  22834. return Qi(e, b, E, M, K);
  22835. }), cp = ae(function(e, M) {
  22836. var K = br(M, pn(cp));
  22837. return Qi(e, w, E, M, K);
  22838. }), Jy = tr(function(e, M) {
  22839. return Qi(e, a, E, E, E, M);
  22840. });
  22841. function qy(e, M) {
  22842. if (typeof e != "function")
  22843. throw new Si(I);
  22844. return M = M === E ? M : ne(M), ae(e, M);
  22845. }
  22846. function Qy(e, M) {
  22847. if (typeof e != "function")
  22848. throw new Si(I);
  22849. return M = M == null ? 0 : Ye(ne(M), 0), ae(function(K) {
  22850. var st = K[M], ut = kr(K, 0, M);
  22851. return st && xr(ut, st), pi(e, this, ut);
  22852. });
  22853. }
  22854. function tv(e, M, K) {
  22855. var st = !0, ut = !0;
  22856. if (typeof e != "function")
  22857. throw new Si(I);
  22858. return Ie(K) && (st = "leading" in K ? !!K.leading : st, ut = "trailing" in K ? !!K.trailing : ut), hp(e, M, {
  22859. leading: st,
  22860. maxWait: M,
  22861. trailing: ut
  22862. });
  22863. }
  22864. function ev(e) {
  22865. return np(e, 1);
  22866. }
  22867. function iv(e, M) {
  22868. return Ya(ka(M), e);
  22869. }
  22870. function rv() {
  22871. if (!arguments.length)
  22872. return [];
  22873. var e = arguments[0];
  22874. return ie(e) ? e : [e];
  22875. }
  22876. function nv(e) {
  22877. return Mi(e, S);
  22878. }
  22879. function sv(e, M) {
  22880. return M = typeof M == "function" ? M : E, Mi(e, S, M);
  22881. }
  22882. function ov(e) {
  22883. return Mi(e, N | S);
  22884. }
  22885. function av(e, M) {
  22886. return M = typeof M == "function" ? M : E, Mi(e, N | S, M);
  22887. }
  22888. function lv(e, M) {
  22889. return M == null || Jh(e, M, He(M));
  22890. }
  22891. function Ii(e, M) {
  22892. return e === M || e !== e && M !== M;
  22893. }
  22894. var hv = Hs(da), cv = Hs(function(e, M) {
  22895. return e >= M;
  22896. }), Gr = rc(function() {
  22897. return arguments;
  22898. }()) ? rc : function(e) {
  22899. return Ne(e) && Se.call(e, "callee") && !Gh.call(e, "callee");
  22900. }, ie = Tt.isArray, pv = Ch ? ui(Ch) : xg;
  22901. function oi(e) {
  22902. return e != null && Qs(e.length) && !ir(e);
  22903. }
  22904. function Be(e) {
  22905. return Ne(e) && oi(e);
  22906. }
  22907. function uv(e) {
  22908. return e === !0 || e === !1 || Ne(e) && ii(e) == Q;
  22909. }
  22910. var Ar = Af || qa, dv = kh ? ui(kh) : bg;
  22911. function fv(e) {
  22912. return Ne(e) && e.nodeType === 1 && !Un(e);
  22913. }
  22914. function gv(e) {
  22915. if (e == null)
  22916. return !0;
  22917. if (oi(e) && (ie(e) || typeof e == "string" || typeof e.splice == "function" || Ar(e) || un(e) || Gr(e)))
  22918. return !e.length;
  22919. var M = Ke(e);
  22920. if (M == it || M == ht)
  22921. return !e.size;
  22922. if (Hn(e))
  22923. return !ma(e).length;
  22924. for (var K in e)
  22925. if (Se.call(e, K))
  22926. return !1;
  22927. return !0;
  22928. }
  22929. function mv(e, M) {
  22930. return Yn(e, M);
  22931. }
  22932. function yv(e, M, K) {
  22933. K = typeof K == "function" ? K : E;
  22934. var st = K ? K(e, M) : E;
  22935. return st === E ? Yn(e, M, E, K) : !!st;
  22936. }
  22937. function Xa(e) {
  22938. if (!Ne(e))
  22939. return !1;
  22940. var M = ii(e);
  22941. return M == z || M == G || typeof e.message == "string" && typeof e.name == "string" && !Un(e);
  22942. }
  22943. function vv(e) {
  22944. return typeof e == "number" && Fh(e);
  22945. }
  22946. function ir(e) {
  22947. if (!Ie(e))
  22948. return !1;
  22949. var M = ii(e);
  22950. return M == $ || M == q || M == V || M == gt;
  22951. }
  22952. function pp(e) {
  22953. return typeof e == "number" && e == ne(e);
  22954. }
  22955. function Qs(e) {
  22956. return typeof e == "number" && e > -1 && e % 1 == 0 && e <= _;
  22957. }
  22958. function Ie(e) {
  22959. var M = typeof e;
  22960. return e != null && (M == "object" || M == "function");
  22961. }
  22962. function Ne(e) {
  22963. return e != null && typeof e == "object";
  22964. }
  22965. var up = Ah ? ui(Ah) : wg;
  22966. function xv(e, M) {
  22967. return e === M || ga(e, M, _a(M));
  22968. }
  22969. function bv(e, M, K) {
  22970. return K = typeof K == "function" ? K : E, ga(e, M, _a(M), K);
  22971. }
  22972. function Sv(e) {
  22973. return dp(e) && e != +e;
  22974. }
  22975. function wv(e) {
  22976. if (sm(e))
  22977. throw new ee(j);
  22978. return nc(e);
  22979. }
  22980. function Mv(e) {
  22981. return e === null;
  22982. }
  22983. function Cv(e) {
  22984. return e == null;
  22985. }
  22986. function dp(e) {
  22987. return typeof e == "number" || Ne(e) && ii(e) == et;
  22988. }
  22989. function Un(e) {
  22990. if (!Ne(e) || ii(e) != rt)
  22991. return !1;
  22992. var M = As(e);
  22993. if (M === null)
  22994. return !0;
  22995. var K = Se.call(M, "constructor") && M.constructor;
  22996. return typeof K == "function" && K instanceof K && ws.call(K) == bf;
  22997. }
  22998. var Ga = Th ? ui(Th) : Mg;
  22999. function kv(e) {
  23000. return pp(e) && e >= -_ && e <= _;
  23001. }
  23002. var fp = Ph ? ui(Ph) : Cg;
  23003. function to(e) {
  23004. return typeof e == "string" || !ie(e) && Ne(e) && ii(e) == at;
  23005. }
  23006. function fi(e) {
  23007. return typeof e == "symbol" || Ne(e) && ii(e) == J;
  23008. }
  23009. var un = Eh ? ui(Eh) : kg;
  23010. function Av(e) {
  23011. return e === E;
  23012. }
  23013. function Tv(e) {
  23014. return Ne(e) && Ke(e) == ot;
  23015. }
  23016. function Pv(e) {
  23017. return Ne(e) && ii(e) == lt;
  23018. }
  23019. var Ev = Hs(ya), Ov = Hs(function(e, M) {
  23020. return e <= M;
  23021. });
  23022. function gp(e) {
  23023. if (!e)
  23024. return [];
  23025. if (oi(e))
  23026. return to(e) ? _i(e) : si(e);
  23027. if (Dn && e[Dn])
  23028. return lf(e[Dn]());
  23029. var M = Ke(e), K = M == it ? na : M == ht ? xs : dn;
  23030. return K(e);
  23031. }
  23032. function rr(e) {
  23033. if (!e)
  23034. return e === 0 ? e : 0;
  23035. if (e = Ai(e), e === T || e === -T) {
  23036. var M = e < 0 ? -1 : 1;
  23037. return M * D;
  23038. }
  23039. return e === e ? e : 0;
  23040. }
  23041. function ne(e) {
  23042. var M = rr(e), K = M % 1;
  23043. return M === M ? K ? M - K : M : 0;
  23044. }
  23045. function mp(e) {
  23046. return e ? Wr(ne(e), 0, P) : 0;
  23047. }
  23048. function Ai(e) {
  23049. if (typeof e == "number")
  23050. return e;
  23051. if (fi(e))
  23052. return W;
  23053. if (Ie(e)) {
  23054. var M = typeof e.valueOf == "function" ? e.valueOf() : e;
  23055. e = Ie(M) ? M + "" : M;
  23056. }
  23057. if (typeof e != "string")
  23058. return e === 0 ? e : +e;
  23059. e = Rh(e);
  23060. var K = Re.test(e);
  23061. return K || qr.test(e) ? Hd(e.slice(2), K ? 2 : 8) : ge.test(e) ? W : +e;
  23062. }
  23063. function yp(e) {
  23064. return Gi(e, ai(e));
  23065. }
  23066. function Lv(e) {
  23067. return e ? Wr(ne(e), -_, _) : e === 0 ? e : 0;
  23068. }
  23069. function xe(e) {
  23070. return e == null ? "" : di(e);
  23071. }
  23072. var _v = hn(function(e, M) {
  23073. if (Hn(M) || oi(M)) {
  23074. Gi(M, He(M), e);
  23075. return;
  23076. }
  23077. for (var K in M)
  23078. Se.call(M, K) && jn(e, K, M[K]);
  23079. }), vp = hn(function(e, M) {
  23080. Gi(M, ai(M), e);
  23081. }), eo = hn(function(e, M, K, st) {
  23082. Gi(M, ai(M), e, st);
  23083. }), Dv = hn(function(e, M, K, st) {
  23084. Gi(M, He(M), e, st);
  23085. }), Iv = tr(ca);
  23086. function Rv(e, M) {
  23087. var K = ln(e);
  23088. return M == null ? K : Kh(K, M);
  23089. }
  23090. var Nv = ae(function(e, M) {
  23091. e = Ce(e);
  23092. var K = -1, st = M.length, ut = st > 2 ? M[2] : E;
  23093. for (ut && ri(M[0], M[1], ut) && (st = 1); ++K < st; )
  23094. for (var mt = M[K], xt = ai(mt), bt = -1, Mt = xt.length; ++bt < Mt; ) {
  23095. var It = xt[bt], Rt = e[It];
  23096. (Rt === E || Ii(Rt, sn[It]) && !Se.call(e, It)) && (e[It] = mt[It]);
  23097. }
  23098. return e;
  23099. }), Bv = ae(function(e) {
  23100. return e.push(E, Rc), pi(xp, E, e);
  23101. });
  23102. function jv(e, M) {
  23103. return Lh(e, qt(M, 3), Xi);
  23104. }
  23105. function Wv(e, M) {
  23106. return Lh(e, qt(M, 3), ua);
  23107. }
  23108. function zv(e, M) {
  23109. return e == null ? e : pa(e, qt(M, 3), ai);
  23110. }
  23111. function Yv(e, M) {
  23112. return e == null ? e : ec(e, qt(M, 3), ai);
  23113. }
  23114. function Xv(e, M) {
  23115. return e && Xi(e, qt(M, 3));
  23116. }
  23117. function Gv(e, M) {
  23118. return e && ua(e, qt(M, 3));
  23119. }
  23120. function Hv(e) {
  23121. return e == null ? [] : Ns(e, He(e));
  23122. }
  23123. function Fv(e) {
  23124. return e == null ? [] : Ns(e, ai(e));
  23125. }
  23126. function Ha(e, M, K) {
  23127. var st = e == null ? E : zr(e, M);
  23128. return st === E ? K : st;
  23129. }
  23130. function Uv(e, M) {
  23131. return e != null && jc(e, M, gg);
  23132. }
  23133. function Fa(e, M) {
  23134. return e != null && jc(e, M, mg);
  23135. }
  23136. var Vv = Oc(function(e, M, K) {
  23137. M != null && typeof M.toString != "function" && (M = Ms.call(M)), e[M] = K;
  23138. }, Va(li)), $v = Oc(function(e, M, K) {
  23139. M != null && typeof M.toString != "function" && (M = Ms.call(M)), Se.call(e, M) ? e[M].push(K) : e[M] = [K];
  23140. }, qt), Zv = ae(zn);
  23141. function He(e) {
  23142. return oi(e) ? $h(e) : ma(e);
  23143. }
  23144. function ai(e) {
  23145. return oi(e) ? $h(e, !0) : Ag(e);
  23146. }
  23147. function Kv(e, M) {
  23148. var K = {};
  23149. return M = qt(M, 3), Xi(e, function(st, ut, mt) {
  23150. qi(K, M(st, ut, mt), st);
  23151. }), K;
  23152. }
  23153. function Jv(e, M) {
  23154. var K = {};
  23155. return M = qt(M, 3), Xi(e, function(st, ut, mt) {
  23156. qi(K, ut, M(st, ut, mt));
  23157. }), K;
  23158. }
  23159. var qv = hn(function(e, M, K) {
  23160. Bs(e, M, K);
  23161. }), xp = hn(function(e, M, K, st) {
  23162. Bs(e, M, K, st);
  23163. }), Qv = tr(function(e, M) {
  23164. var K = {};
  23165. if (e == null)
  23166. return K;
  23167. var st = !1;
  23168. M = Ee(M, function(mt) {
  23169. return mt = Cr(mt, e), st || (st = mt.length > 1), mt;
  23170. }), Gi(e, Oa(e), K), st && (K = Mi(K, N | R | S, Vg));
  23171. for (var ut = M.length; ut--; )
  23172. wa(K, M[ut]);
  23173. return K;
  23174. });
  23175. function tx(e, M) {
  23176. return bp(e, qs(qt(M)));
  23177. }
  23178. var ex = tr(function(e, M) {
  23179. return e == null ? {} : Pg(e, M);
  23180. });
  23181. function bp(e, M) {
  23182. if (e == null)
  23183. return {};
  23184. var K = Ee(Oa(e), function(st) {
  23185. return [st];
  23186. });
  23187. return M = qt(M), pc(e, K, function(st, ut) {
  23188. return M(st, ut[0]);
  23189. });
  23190. }
  23191. function ix(e, M, K) {
  23192. M = Cr(M, e);
  23193. var st = -1, ut = M.length;
  23194. for (ut || (ut = 1, e = E); ++st < ut; ) {
  23195. var mt = e == null ? E : e[Hi(M[st])];
  23196. mt === E && (st = ut, mt = K), e = ir(mt) ? mt.call(e) : mt;
  23197. }
  23198. return e;
  23199. }
  23200. function rx(e, M, K) {
  23201. return e == null ? e : Xn(e, M, K);
  23202. }
  23203. function nx(e, M, K, st) {
  23204. return st = typeof st == "function" ? st : E, e == null ? e : Xn(e, M, K, st);
  23205. }
  23206. var Sp = Dc(He), wp = Dc(ai);
  23207. function sx(e, M, K) {
  23208. var st = ie(e), ut = st || Ar(e) || un(e);
  23209. if (M = qt(M, 4), K == null) {
  23210. var mt = e && e.constructor;
  23211. ut ? K = st ? new mt() : [] : Ie(e) ? K = ir(mt) ? ln(As(e)) : {} : K = {};
  23212. }
  23213. return (ut ? bi : Xi)(e, function(xt, bt, Mt) {
  23214. return M(K, xt, bt, Mt);
  23215. }), K;
  23216. }
  23217. function ox(e, M) {
  23218. return e == null ? !0 : wa(e, M);
  23219. }
  23220. function ax(e, M, K) {
  23221. return e == null ? e : mc(e, M, ka(K));
  23222. }
  23223. function lx(e, M, K, st) {
  23224. return st = typeof st == "function" ? st : E, e == null ? e : mc(e, M, ka(K), st);
  23225. }
  23226. function dn(e) {
  23227. return e == null ? [] : ra(e, He(e));
  23228. }
  23229. function hx(e) {
  23230. return e == null ? [] : ra(e, ai(e));
  23231. }
  23232. function cx(e, M, K) {
  23233. return K === E && (K = M, M = E), K !== E && (K = Ai(K), K = K === K ? K : 0), M !== E && (M = Ai(M), M = M === M ? M : 0), Wr(Ai(e), M, K);
  23234. }
  23235. function px(e, M, K) {
  23236. return M = rr(M), K === E ? (K = M, M = 0) : K = rr(K), e = Ai(e), yg(e, M, K);
  23237. }
  23238. function ux(e, M, K) {
  23239. if (K && typeof K != "boolean" && ri(e, M, K) && (M = K = E), K === E && (typeof M == "boolean" ? (K = M, M = E) : typeof e == "boolean" && (K = e, e = E)), e === E && M === E ? (e = 0, M = 1) : (e = rr(e), M === E ? (M = e, e = 0) : M = rr(M)), e > M) {
  23240. var st = e;
  23241. e = M, M = st;
  23242. }
  23243. if (K || e % 1 || M % 1) {
  23244. var ut = Uh();
  23245. return Ze(e + ut * (M - e + Gd("1e-" + ((ut + "").length - 1))), M);
  23246. }
  23247. return xa(e, M);
  23248. }
  23249. var dx = cn(function(e, M, K) {
  23250. return M = M.toLowerCase(), e + (K ? Mp(M) : M);
  23251. });
  23252. function Mp(e) {
  23253. return Ua(xe(e).toLowerCase());
  23254. }
  23255. function Cp(e) {
  23256. return e = xe(e), e && e.replace(fd, rf).replace(Dd, "");
  23257. }
  23258. function fx(e, M, K) {
  23259. e = xe(e), M = di(M);
  23260. var st = e.length;
  23261. K = K === E ? st : Wr(ne(K), 0, st);
  23262. var ut = K;
  23263. return K -= M.length, K >= 0 && e.slice(K, ut) == M;
  23264. }
  23265. function gx(e) {
  23266. return e = xe(e), e && Vt.test(e) ? e.replace(be, nf) : e;
  23267. }
  23268. function mx(e) {
  23269. return e = xe(e), e && On.test(e) ? e.replace(En, "\\$&") : e;
  23270. }
  23271. var yx = cn(function(e, M, K) {
  23272. return e + (K ? "-" : "") + M.toLowerCase();
  23273. }), vx = cn(function(e, M, K) {
  23274. return e + (K ? " " : "") + M.toLowerCase();
  23275. }), xx = Tc("toLowerCase");
  23276. function bx(e, M, K) {
  23277. e = xe(e), M = ne(M);
  23278. var st = M ? rn(e) : 0;
  23279. if (!M || st >= M)
  23280. return e;
  23281. var ut = (M - st) / 2;
  23282. return Gs(Os(ut), K) + e + Gs(Es(ut), K);
  23283. }
  23284. function Sx(e, M, K) {
  23285. e = xe(e), M = ne(M);
  23286. var st = M ? rn(e) : 0;
  23287. return M && st < M ? e + Gs(M - st, K) : e;
  23288. }
  23289. function wx(e, M, K) {
  23290. e = xe(e), M = ne(M);
  23291. var st = M ? rn(e) : 0;
  23292. return M && st < M ? Gs(M - st, K) + e : e;
  23293. }
  23294. function Mx(e, M, K) {
  23295. return K || M == null ? M = 0 : M && (M = +M), Of(xe(e).replace(Jr, ""), M || 0);
  23296. }
  23297. function Cx(e, M, K) {
  23298. return (K ? ri(e, M, K) : M === E) ? M = 1 : M = ne(M), ba(xe(e), M);
  23299. }
  23300. function kx() {
  23301. var e = arguments, M = xe(e[0]);
  23302. return e.length < 3 ? M : M.replace(e[1], e[2]);
  23303. }
  23304. var Ax = cn(function(e, M, K) {
  23305. return e + (K ? "_" : "") + M.toLowerCase();
  23306. });
  23307. function Tx(e, M, K) {
  23308. return K && typeof K != "number" && ri(e, M, K) && (M = K = E), K = K === E ? P : K >>> 0, K ? (e = xe(e), e && (typeof M == "string" || M != null && !Ga(M)) && (M = di(M), !M && en(e)) ? kr(_i(e), 0, K) : e.split(M, K)) : [];
  23309. }
  23310. var Px = cn(function(e, M, K) {
  23311. return e + (K ? " " : "") + Ua(M);
  23312. });
  23313. function Ex(e, M, K) {
  23314. return e = xe(e), K = K == null ? 0 : Wr(ne(K), 0, e.length), M = di(M), e.slice(K, K + M.length) == M;
  23315. }
  23316. function Ox(e, M, K) {
  23317. var st = ft.templateSettings;
  23318. K && ri(e, M, K) && (M = E), e = xe(e), M = eo({}, M, st, Ic);
  23319. var ut = eo({}, M.imports, st.imports, Ic), mt = He(ut), xt = ra(ut, mt), bt, Mt, It = 0, Rt = M.interpolate || fs, Bt = "__p += '", Yt = sa(
  23320. (M.escape || fs).source + "|" + Rt.source + "|" + (Rt === ps ? $t : fs).source + "|" + (M.evaluate || fs).source + "|$",
  23321. "g"
  23322. ), Ut = "//# sourceURL=" + (Se.call(M, "sourceURL") ? (M.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++jd + "]") + `
  23323. `;
  23324. e.replace(Yt, function(te, he, pe, gi, ni, mi) {
  23325. return pe || (pe = gi), Bt += e.slice(It, mi).replace(gd, sf), he && (bt = !0, Bt += `' +
  23326. __e(` + he + `) +
  23327. '`), ni && (Mt = !0, Bt += `';
  23328. ` + ni + `;
  23329. __p += '`), pe && (Bt += `' +
  23330. ((__t = (` + pe + `)) == null ? '' : __t) +
  23331. '`), It = mi + te.length, te;
  23332. }), Bt += `';
  23333. `;
  23334. var Qt = Se.call(M, "variable") && M.variable;
  23335. if (!Qt)
  23336. Bt = `with (obj) {
  23337. ` + Bt + `
  23338. }
  23339. `;
  23340. else if (Ln.test(Qt))
  23341. throw new ee(Z);
  23342. Bt = (Mt ? Bt.replace(Kt, "") : Bt).replace(Gt, "$1").replace(Wt, "$1;"), Bt = "function(" + (Qt || "obj") + `) {
  23343. ` + (Qt ? "" : `obj || (obj = {});
  23344. `) + "var __t, __p = ''" + (bt ? ", __e = _.escape" : "") + (Mt ? `, __j = Array.prototype.join;
  23345. function print() { __p += __j.call(arguments, '') }
  23346. ` : `;
  23347. `) + Bt + `return __p
  23348. }`;
  23349. var oe = Ap(function() {
  23350. return ve(mt, Ut + "return " + Bt).apply(E, xt);
  23351. });
  23352. if (oe.source = Bt, Xa(oe))
  23353. throw oe;
  23354. return oe;
  23355. }
  23356. function Lx(e) {
  23357. return xe(e).toLowerCase();
  23358. }
  23359. function _x(e) {
  23360. return xe(e).toUpperCase();
  23361. }
  23362. function Dx(e, M, K) {
  23363. if (e = xe(e), e && (K || M === E))
  23364. return Rh(e);
  23365. if (!e || !(M = di(M)))
  23366. return e;
  23367. var st = _i(e), ut = _i(M), mt = Nh(st, ut), xt = Bh(st, ut) + 1;
  23368. return kr(st, mt, xt).join("");
  23369. }
  23370. function Ix(e, M, K) {
  23371. if (e = xe(e), e && (K || M === E))
  23372. return e.slice(0, Wh(e) + 1);
  23373. if (!e || !(M = di(M)))
  23374. return e;
  23375. var st = _i(e), ut = Bh(st, _i(M)) + 1;
  23376. return kr(st, 0, ut).join("");
  23377. }
  23378. function Rx(e, M, K) {
  23379. if (e = xe(e), e && (K || M === E))
  23380. return e.replace(Jr, "");
  23381. if (!e || !(M = di(M)))
  23382. return e;
  23383. var st = _i(e), ut = Nh(st, _i(M));
  23384. return kr(st, ut).join("");
  23385. }
  23386. function Nx(e, M) {
  23387. var K = p, st = i;
  23388. if (Ie(M)) {
  23389. var ut = "separator" in M ? M.separator : ut;
  23390. K = "length" in M ? ne(M.length) : K, st = "omission" in M ? di(M.omission) : st;
  23391. }
  23392. e = xe(e);
  23393. var mt = e.length;
  23394. if (en(e)) {
  23395. var xt = _i(e);
  23396. mt = xt.length;
  23397. }
  23398. if (K >= mt)
  23399. return e;
  23400. var bt = K - rn(st);
  23401. if (bt < 1)
  23402. return st;
  23403. var Mt = xt ? kr(xt, 0, bt).join("") : e.slice(0, bt);
  23404. if (ut === E)
  23405. return Mt + st;
  23406. if (xt && (bt += Mt.length - bt), Ga(ut)) {
  23407. if (e.slice(bt).search(ut)) {
  23408. var It, Rt = Mt;
  23409. for (ut.global || (ut = sa(ut.source, xe(ue.exec(ut)) + "g")), ut.lastIndex = 0; It = ut.exec(Rt); )
  23410. var Bt = It.index;
  23411. Mt = Mt.slice(0, Bt === E ? bt : Bt);
  23412. }
  23413. } else if (e.indexOf(di(ut), bt) != bt) {
  23414. var Yt = Mt.lastIndexOf(ut);
  23415. Yt > -1 && (Mt = Mt.slice(0, Yt));
  23416. }
  23417. return Mt + st;
  23418. }
  23419. function Bx(e) {
  23420. return e = xe(e), e && zt.test(e) ? e.replace(Jt, uf) : e;
  23421. }
  23422. var jx = cn(function(e, M, K) {
  23423. return e + (K ? " " : "") + M.toUpperCase();
  23424. }), Ua = Tc("toUpperCase");
  23425. function kp(e, M, K) {
  23426. return e = xe(e), M = K ? E : M, M === E ? af(e) ? gf(e) : Jd(e) : e.match(M) || [];
  23427. }
  23428. var Ap = ae(function(e, M) {
  23429. try {
  23430. return pi(e, E, M);
  23431. } catch (K) {
  23432. return Xa(K) ? K : new ee(K);
  23433. }
  23434. }), Wx = tr(function(e, M) {
  23435. return bi(M, function(K) {
  23436. K = Hi(K), qi(e, K, za(e[K], e));
  23437. }), e;
  23438. });
  23439. function zx(e) {
  23440. var M = e == null ? 0 : e.length, K = qt();
  23441. return e = M ? Ee(e, function(st) {
  23442. if (typeof st[1] != "function")
  23443. throw new Si(I);
  23444. return [K(st[0]), st[1]];
  23445. }) : [], ae(function(st) {
  23446. for (var ut = -1; ++ut < M; ) {
  23447. var mt = e[ut];
  23448. if (pi(mt[0], this, st))
  23449. return pi(mt[1], this, st);
  23450. }
  23451. });
  23452. }
  23453. function Yx(e) {
  23454. return ug(Mi(e, N));
  23455. }
  23456. function Va(e) {
  23457. return function() {
  23458. return e;
  23459. };
  23460. }
  23461. function Xx(e, M) {
  23462. return e == null || e !== e ? M : e;
  23463. }
  23464. var Gx = Ec(), Hx = Ec(!0);
  23465. function li(e) {
  23466. return e;
  23467. }
  23468. function $a(e) {
  23469. return sc(typeof e == "function" ? e : Mi(e, N));
  23470. }
  23471. function Fx(e) {
  23472. return ac(Mi(e, N));
  23473. }
  23474. function Ux(e, M) {
  23475. return lc(e, Mi(M, N));
  23476. }
  23477. var Vx = ae(function(e, M) {
  23478. return function(K) {
  23479. return zn(K, e, M);
  23480. };
  23481. }), $x = ae(function(e, M) {
  23482. return function(K) {
  23483. return zn(e, K, M);
  23484. };
  23485. });
  23486. function Za(e, M, K) {
  23487. var st = He(M), ut = Ns(M, st);
  23488. K == null && !(Ie(M) && (ut.length || !st.length)) && (K = M, M = e, e = this, ut = Ns(M, He(M)));
  23489. var mt = !(Ie(K) && "chain" in K) || !!K.chain, xt = ir(e);
  23490. return bi(ut, function(bt) {
  23491. var Mt = M[bt];
  23492. e[bt] = Mt, xt && (e.prototype[bt] = function() {
  23493. var It = this.__chain__;
  23494. if (mt || It) {
  23495. var Rt = e(this.__wrapped__), Bt = Rt.__actions__ = si(this.__actions__);
  23496. return Bt.push({ func: Mt, args: arguments, thisArg: e }), Rt.__chain__ = It, Rt;
  23497. }
  23498. return Mt.apply(e, xr([this.value()], arguments));
  23499. });
  23500. }), e;
  23501. }
  23502. function Zx() {
  23503. return Ue._ === this && (Ue._ = Sf), this;
  23504. }
  23505. function Ka() {
  23506. }
  23507. function Kx(e) {
  23508. return e = ne(e), ae(function(M) {
  23509. return hc(M, e);
  23510. });
  23511. }
  23512. var Jx = Ta(Ee), qx = Ta(Oh), Qx = Ta(qo);
  23513. function Tp(e) {
  23514. return Ia(e) ? Qo(Hi(e)) : Eg(e);
  23515. }
  23516. function t0(e) {
  23517. return function(M) {
  23518. return e == null ? E : zr(e, M);
  23519. };
  23520. }
  23521. var e0 = Lc(), i0 = Lc(!0);
  23522. function Ja() {
  23523. return [];
  23524. }
  23525. function qa() {
  23526. return !1;
  23527. }
  23528. function r0() {
  23529. return {};
  23530. }
  23531. function n0() {
  23532. return "";
  23533. }
  23534. function s0() {
  23535. return !0;
  23536. }
  23537. function o0(e, M) {
  23538. if (e = ne(e), e < 1 || e > _)
  23539. return [];
  23540. var K = P, st = Ze(e, P);
  23541. M = qt(M), e -= P;
  23542. for (var ut = ia(st, M); ++K < e; )
  23543. M(K);
  23544. return ut;
  23545. }
  23546. function a0(e) {
  23547. return ie(e) ? Ee(e, Hi) : fi(e) ? [e] : si(Vc(xe(e)));
  23548. }
  23549. function l0(e) {
  23550. var M = ++xf;
  23551. return xe(e) + M;
  23552. }
  23553. var h0 = Xs(function(e, M) {
  23554. return e + M;
  23555. }, 0), c0 = Pa("ceil"), p0 = Xs(function(e, M) {
  23556. return e / M;
  23557. }, 1), u0 = Pa("floor");
  23558. function d0(e) {
  23559. return e && e.length ? Rs(e, li, da) : E;
  23560. }
  23561. function f0(e, M) {
  23562. return e && e.length ? Rs(e, qt(M, 2), da) : E;
  23563. }
  23564. function g0(e) {
  23565. return Dh(e, li);
  23566. }
  23567. function m0(e, M) {
  23568. return Dh(e, qt(M, 2));
  23569. }
  23570. function y0(e) {
  23571. return e && e.length ? Rs(e, li, ya) : E;
  23572. }
  23573. function v0(e, M) {
  23574. return e && e.length ? Rs(e, qt(M, 2), ya) : E;
  23575. }
  23576. var x0 = Xs(function(e, M) {
  23577. return e * M;
  23578. }, 1), b0 = Pa("round"), S0 = Xs(function(e, M) {
  23579. return e - M;
  23580. }, 0);
  23581. function w0(e) {
  23582. return e && e.length ? ea(e, li) : 0;
  23583. }
  23584. function M0(e, M) {
  23585. return e && e.length ? ea(e, qt(M, 2)) : 0;
  23586. }
  23587. return ft.after = Fy, ft.ary = np, ft.assign = _v, ft.assignIn = vp, ft.assignInWith = eo, ft.assignWith = Dv, ft.at = Iv, ft.before = sp, ft.bind = za, ft.bindAll = Wx, ft.bindKey = op, ft.castArray = rv, ft.chain = ep, ft.chunk = um, ft.compact = dm, ft.concat = fm, ft.cond = zx, ft.conforms = Yx, ft.constant = Va, ft.countBy = wy, ft.create = Rv, ft.curry = ap, ft.curryRight = lp, ft.debounce = hp, ft.defaults = Nv, ft.defaultsDeep = Bv, ft.defer = Uy, ft.delay = Vy, ft.difference = gm, ft.differenceBy = mm, ft.differenceWith = ym, ft.drop = vm, ft.dropRight = xm, ft.dropRightWhile = bm, ft.dropWhile = Sm, ft.fill = wm, ft.filter = Cy, ft.flatMap = Ty, ft.flatMapDeep = Py, ft.flatMapDepth = Ey, ft.flatten = Jc, ft.flattenDeep = Mm, ft.flattenDepth = Cm, ft.flip = $y, ft.flow = Gx, ft.flowRight = Hx, ft.fromPairs = km, ft.functions = Hv, ft.functionsIn = Fv, ft.groupBy = Oy, ft.initial = Tm, ft.intersection = Pm, ft.intersectionBy = Em, ft.intersectionWith = Om, ft.invert = Vv, ft.invertBy = $v, ft.invokeMap = _y, ft.iteratee = $a, ft.keyBy = Dy, ft.keys = He, ft.keysIn = ai, ft.map = Zs, ft.mapKeys = Kv, ft.mapValues = Jv, ft.matches = Fx, ft.matchesProperty = Ux, ft.memoize = Js, ft.merge = qv, ft.mergeWith = xp, ft.method = Vx, ft.methodOf = $x, ft.mixin = Za, ft.negate = qs, ft.nthArg = Kx, ft.omit = Qv, ft.omitBy = tx, ft.once = Zy, ft.orderBy = Iy, ft.over = Jx, ft.overArgs = Ky, ft.overEvery = qx, ft.overSome = Qx, ft.partial = Ya, ft.partialRight = cp, ft.partition = Ry, ft.pick = ex, ft.pickBy = bp, ft.property = Tp, ft.propertyOf = t0, ft.pull = Im, ft.pullAll = Qc, ft.pullAllBy = Rm, ft.pullAllWith = Nm, ft.pullAt = Bm, ft.range = e0, ft.rangeRight = i0, ft.rearg = Jy, ft.reject = jy, ft.remove = jm, ft.rest = qy, ft.reverse = ja, ft.sampleSize = zy, ft.set = rx, ft.setWith = nx, ft.shuffle = Yy, ft.slice = Wm, ft.sortBy = Hy, ft.sortedUniq = Um, ft.sortedUniqBy = Vm, ft.split = Tx, ft.spread = Qy, ft.tail = $m, ft.take = Zm, ft.takeRight = Km, ft.takeRightWhile = Jm, ft.takeWhile = qm, ft.tap = dy, ft.throttle = tv, ft.thru = $s, ft.toArray = gp, ft.toPairs = Sp, ft.toPairsIn = wp, ft.toPath = a0, ft.toPlainObject = yp, ft.transform = sx, ft.unary = ev, ft.union = Qm, ft.unionBy = ty, ft.unionWith = ey, ft.uniq = iy, ft.uniqBy = ry, ft.uniqWith = ny, ft.unset = ox, ft.unzip = Wa, ft.unzipWith = tp, ft.update = ax, ft.updateWith = lx, ft.values = dn, ft.valuesIn = hx, ft.without = sy, ft.words = kp, ft.wrap = iv, ft.xor = oy, ft.xorBy = ay, ft.xorWith = ly, ft.zip = hy, ft.zipObject = cy, ft.zipObjectDeep = py, ft.zipWith = uy, ft.entries = Sp, ft.entriesIn = wp, ft.extend = vp, ft.extendWith = eo, Za(ft, ft), ft.add = h0, ft.attempt = Ap, ft.camelCase = dx, ft.capitalize = Mp, ft.ceil = c0, ft.clamp = cx, ft.clone = nv, ft.cloneDeep = ov, ft.cloneDeepWith = av, ft.cloneWith = sv, ft.conformsTo = lv, ft.deburr = Cp, ft.defaultTo = Xx, ft.divide = p0, ft.endsWith = fx, ft.eq = Ii, ft.escape = gx, ft.escapeRegExp = mx, ft.every = My, ft.find = ky, ft.findIndex = Zc, ft.findKey = jv, ft.findLast = Ay, ft.findLastIndex = Kc, ft.findLastKey = Wv, ft.floor = u0, ft.forEach = ip, ft.forEachRight = rp, ft.forIn = zv, ft.forInRight = Yv, ft.forOwn = Xv, ft.forOwnRight = Gv, ft.get = Ha, ft.gt = hv, ft.gte = cv, ft.has = Uv, ft.hasIn = Fa, ft.head = qc, ft.identity = li, ft.includes = Ly, ft.indexOf = Am, ft.inRange = px, ft.invoke = Zv, ft.isArguments = Gr, ft.isArray = ie, ft.isArrayBuffer = pv, ft.isArrayLike = oi, ft.isArrayLikeObject = Be, ft.isBoolean = uv, ft.isBuffer = Ar, ft.isDate = dv, ft.isElement = fv, ft.isEmpty = gv, ft.isEqual = mv, ft.isEqualWith = yv, ft.isError = Xa, ft.isFinite = vv, ft.isFunction = ir, ft.isInteger = pp, ft.isLength = Qs, ft.isMap = up, ft.isMatch = xv, ft.isMatchWith = bv, ft.isNaN = Sv, ft.isNative = wv, ft.isNil = Cv, ft.isNull = Mv, ft.isNumber = dp, ft.isObject = Ie, ft.isObjectLike = Ne, ft.isPlainObject = Un, ft.isRegExp = Ga, ft.isSafeInteger = kv, ft.isSet = fp, ft.isString = to, ft.isSymbol = fi, ft.isTypedArray = un, ft.isUndefined = Av, ft.isWeakMap = Tv, ft.isWeakSet = Pv, ft.join = Lm, ft.kebabCase = yx, ft.last = ki, ft.lastIndexOf = _m, ft.lowerCase = vx, ft.lowerFirst = xx, ft.lt = Ev, ft.lte = Ov, ft.max = d0, ft.maxBy = f0, ft.mean = g0, ft.meanBy = m0, ft.min = y0, ft.minBy = v0, ft.stubArray = Ja, ft.stubFalse = qa, ft.stubObject = r0, ft.stubString = n0, ft.stubTrue = s0, ft.multiply = x0, ft.nth = Dm, ft.noConflict = Zx, ft.noop = Ka, ft.now = Ks, ft.pad = bx, ft.padEnd = Sx, ft.padStart = wx, ft.parseInt = Mx, ft.random = ux, ft.reduce = Ny, ft.reduceRight = By, ft.repeat = Cx, ft.replace = kx, ft.result = ix, ft.round = b0, ft.runInContext = wt, ft.sample = Wy, ft.size = Xy, ft.snakeCase = Ax, ft.some = Gy, ft.sortedIndex = zm, ft.sortedIndexBy = Ym, ft.sortedIndexOf = Xm, ft.sortedLastIndex = Gm, ft.sortedLastIndexBy = Hm, ft.sortedLastIndexOf = Fm, ft.startCase = Px, ft.startsWith = Ex, ft.subtract = S0, ft.sum = w0, ft.sumBy = M0, ft.template = Ox, ft.times = o0, ft.toFinite = rr, ft.toInteger = ne, ft.toLength = mp, ft.toLower = Lx, ft.toNumber = Ai, ft.toSafeInteger = Lv, ft.toString = xe, ft.toUpper = _x, ft.trim = Dx, ft.trimEnd = Ix, ft.trimStart = Rx, ft.truncate = Nx, ft.unescape = Bx, ft.uniqueId = l0, ft.upperCase = jx, ft.upperFirst = Ua, ft.each = ip, ft.eachRight = rp, ft.first = qc, Za(ft, function() {
  23588. var e = {};
  23589. return Xi(ft, function(M, K) {
  23590. Se.call(ft.prototype, K) || (e[K] = M);
  23591. }), e;
  23592. }(), { chain: !1 }), ft.VERSION = l, bi(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
  23593. ft[e].placeholder = ft;
  23594. }), bi(["drop", "take"], function(e, M) {
  23595. ce.prototype[e] = function(K) {
  23596. K = K === E ? 1 : Ye(ne(K), 0);
  23597. var st = this.__filtered__ && !M ? new ce(this) : this.clone();
  23598. return st.__filtered__ ? st.__takeCount__ = Ze(K, st.__takeCount__) : st.__views__.push({
  23599. size: Ze(K, P),
  23600. type: e + (st.__dir__ < 0 ? "Right" : "")
  23601. }), st;
  23602. }, ce.prototype[e + "Right"] = function(K) {
  23603. return this.reverse()[e](K).reverse();
  23604. };
  23605. }), bi(["filter", "map", "takeWhile"], function(e, M) {
  23606. var K = M + 1, st = K == t || K == n;
  23607. ce.prototype[e] = function(ut) {
  23608. var mt = this.clone();
  23609. return mt.__iteratees__.push({
  23610. iteratee: qt(ut, 3),
  23611. type: K
  23612. }), mt.__filtered__ = mt.__filtered__ || st, mt;
  23613. };
  23614. }), bi(["head", "last"], function(e, M) {
  23615. var K = "take" + (M ? "Right" : "");
  23616. ce.prototype[e] = function() {
  23617. return this[K](1).value()[0];
  23618. };
  23619. }), bi(["initial", "tail"], function(e, M) {
  23620. var K = "drop" + (M ? "" : "Right");
  23621. ce.prototype[e] = function() {
  23622. return this.__filtered__ ? new ce(this) : this[K](1);
  23623. };
  23624. }), ce.prototype.compact = function() {
  23625. return this.filter(li);
  23626. }, ce.prototype.find = function(e) {
  23627. return this.filter(e).head();
  23628. }, ce.prototype.findLast = function(e) {
  23629. return this.reverse().find(e);
  23630. }, ce.prototype.invokeMap = ae(function(e, M) {
  23631. return typeof e == "function" ? new ce(this) : this.map(function(K) {
  23632. return zn(K, e, M);
  23633. });
  23634. }), ce.prototype.reject = function(e) {
  23635. return this.filter(qs(qt(e)));
  23636. }, ce.prototype.slice = function(e, M) {
  23637. e = ne(e);
  23638. var K = this;
  23639. return K.__filtered__ && (e > 0 || M < 0) ? new ce(K) : (e < 0 ? K = K.takeRight(-e) : e && (K = K.drop(e)), M !== E && (M = ne(M), K = M < 0 ? K.dropRight(-M) : K.take(M - e)), K);
  23640. }, ce.prototype.takeRightWhile = function(e) {
  23641. return this.reverse().takeWhile(e).reverse();
  23642. }, ce.prototype.toArray = function() {
  23643. return this.take(P);
  23644. }, Xi(ce.prototype, function(e, M) {
  23645. 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);
  23646. ut && (ft.prototype[M] = function() {
  23647. var xt = this.__wrapped__, bt = st ? [1] : arguments, Mt = xt instanceof ce, It = bt[0], Rt = Mt || ie(xt), Bt = function(he) {
  23648. var pe = ut.apply(ft, xr([he], bt));
  23649. return st && Yt ? pe[0] : pe;
  23650. };
  23651. Rt && K && typeof It == "function" && It.length != 1 && (Mt = Rt = !1);
  23652. var Yt = this.__chain__, Ut = !!this.__actions__.length, Qt = mt && !Yt, oe = Mt && !Ut;
  23653. if (!mt && Rt) {
  23654. xt = oe ? xt : new ce(this);
  23655. var te = e.apply(xt, bt);
  23656. return te.__actions__.push({ func: $s, args: [Bt], thisArg: E }), new wi(te, Yt);
  23657. }
  23658. return Qt && oe ? e.apply(this, bt) : (te = this.thru(Bt), Qt ? st ? te.value()[0] : te.value() : te);
  23659. });
  23660. }), bi(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
  23661. var M = bs[e], K = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", st = /^(?:pop|shift)$/.test(e);
  23662. ft.prototype[e] = function() {
  23663. var ut = arguments;
  23664. if (st && !this.__chain__) {
  23665. var mt = this.value();
  23666. return M.apply(ie(mt) ? mt : [], ut);
  23667. }
  23668. return this[K](function(xt) {
  23669. return M.apply(ie(xt) ? xt : [], ut);
  23670. });
  23671. };
  23672. }), Xi(ce.prototype, function(e, M) {
  23673. var K = ft[M];
  23674. if (K) {
  23675. var st = K.name + "";
  23676. Se.call(an, st) || (an[st] = []), an[st].push({ name: M, func: K });
  23677. }
  23678. }), an[Ys(E, A).name] = [{
  23679. name: "wrapper",
  23680. func: E
  23681. }], ce.prototype.clone = Bf, ce.prototype.reverse = jf, ce.prototype.value = Wf, ft.prototype.at = fy, ft.prototype.chain = gy, ft.prototype.commit = my, ft.prototype.next = yy, ft.prototype.plant = xy, ft.prototype.reverse = by, ft.prototype.toJSON = ft.prototype.valueOf = ft.prototype.value = Sy, ft.prototype.first = ft.prototype.head, Dn && (ft.prototype[Dn] = vy), ft;
  23682. }, nn = mf();
  23683. Rr ? ((Rr.exports = nn)._ = nn, $o._ = nn) : Ue._ = nn;
  23684. }).call(Fr);
  23685. })(jw, wo);
  23686. const rs = wo;
  23687. B0($r);
  23688. I0($r);
  23689. _0($r);
  23690. N0($r);
  23691. let lo = null, _e = Le(null), Fe = Le("zh"), sl = Le(""), re = Le(null);
  23692. const kt = C0({
  23693. //极值数据
  23694. leftIndex: -1,
  23695. //左侧上下限对应下标
  23696. rightIndex: -1,
  23697. //右侧上下限对应下标
  23698. rightTwoIndex: -1,
  23699. //右2上下限对应下标
  23700. hasLeftAxis: !1,
  23701. hasRightAxis: !1,
  23702. hasRightTwoAxis: !1,
  23703. hasXAxis: !1,
  23704. leftMin: 0,
  23705. leftMax: 0,
  23706. rightMin: 0,
  23707. rightMax: 0,
  23708. rightTwoMin: 0,
  23709. rightTwoMax: 0,
  23710. xMin: 0,
  23711. xMax: 0
  23712. });
  23713. let ci = !1, zu = Le(!1);
  23714. const $l = Le(document.body.clientWidth < 1200 ? "phone" : "pc");
  23715. function Ww() {
  23716. return {
  23717. options: re,
  23718. axisLimitState: kt,
  23719. chartRender: zw,
  23720. setLimitData: aM,
  23721. isUseSelfLimit: zu
  23722. };
  23723. }
  23724. function zw({ data: r, renderId: f, lang: E = "zh", changeLangIsCheck: l, showChartTitle: y = !0, shouldUseSelfLimit: j = !1 }) {
  23725. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1, kt.hasLeftAxis = !1, kt.hasRightAxis = !1, kt.hasRightTwoAxis = !1, kt.hasXAxis = !1, zu.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);
  23726. let I = {};
  23727. Fe.value = E, sl.value = f, _e.value = r, ci = j, [1, 11, 12].includes(r.ChartInfo.Source) ? I = {
  23728. 1: Rp,
  23729. 2: $w,
  23730. 3: al,
  23731. 4: al,
  23732. 5: Zw,
  23733. 6: al,
  23734. 7: qw,
  23735. 10: rM,
  23736. 11: sM,
  23737. 14: Uw
  23738. }[r.ChartInfo.ChartType](r) : [2, 5].includes(r.ChartInfo.Source) ? I = eM(r) : [3].includes(r.ChartInfo.Source) ? I = iM(r) : [4, 6, 7, 8].includes(r.ChartInfo.Source) ? I = Rp(r) : [9].includes(r.ChartInfo.Source) ? I = Vw(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), I = nM(r));
  23739. let Z = Yw();
  23740. return re.value = { ...go, ...Z, ...I }, Fw(y), Hw(l), $r.setOptions({ global: { useUTC: r.ChartInfo.ChartType == 2 } }), (I.series ? I.series.some((U) => U.chartType === "linear") : !1) ? lo = $r.chart(sl.value, re.value) : lo = $r.stockChart(sl.value, re.value), lo;
  23741. }
  23742. function Yw() {
  23743. if (!_e.value.ChartInfo.ChartThemeStyle)
  23744. return {};
  23745. let r = JSON.parse(_e.value.ChartInfo.ChartThemeStyle);
  23746. return {
  23747. legend: {
  23748. ...go.legend,
  23749. ...r.legendOptions
  23750. },
  23751. chart: {
  23752. ...go.chart,
  23753. ...r.drawOption
  23754. },
  23755. colors: r.colorsOptions
  23756. };
  23757. }
  23758. function Pi(r, f) {
  23759. const { MarkersLines: E, ChartType: l } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23760. return E ? JSON.parse(E).filter((H) => H.isShow && H.axis === r).map((H) => {
  23761. let U = r === 3 && f === "datetime", F;
  23762. if (U) {
  23763. let N = l === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23764. F = l === 2 ? (/* @__PURE__ */ new Date(`${N}-${H.value}`)).getTime() : new Date(H.value).getTime();
  23765. } else
  23766. F = Number(H.value);
  23767. return {
  23768. value: F,
  23769. dashStyle: H.dashStyle,
  23770. width: Number(H.lineWidth),
  23771. color: H.color,
  23772. label: {
  23773. text: H.text || "",
  23774. verticalAlign: H.textPosition,
  23775. style: {
  23776. color: H.textColor,
  23777. fontSize: H.textFontSize
  23778. }
  23779. }
  23780. };
  23781. }) : [];
  23782. }
  23783. function Ei(r, f) {
  23784. const { MarkersAreas: E, ChartType: l } = _e.value.ChartInfo, { EdbInfoList: y } = _e.value;
  23785. return E ? JSON.parse(E).filter((H) => H.isShow && H.axis === r).map((H) => {
  23786. let U = r === 3 && f === "datetime", F, N;
  23787. if (U) {
  23788. let S = l === 2 ? new Date(y[0].DataList[1].DataList[0].DataTimestamp).getFullYear() : "";
  23789. F = l === 2 ? (/* @__PURE__ */ new Date(`${S}-${H.fromValue}`)).getTime() : new Date(H.fromValue).getTime(), N = l === 2 ? (/* @__PURE__ */ new Date(`${S}-${H.toValue}`)).getTime() : new Date(H.toValue).getTime();
  23790. } else
  23791. F = Number(H.fromValue), N = Number(H.toValue);
  23792. let R = {
  23793. top: 12,
  23794. middle: 0,
  23795. bottom: -10
  23796. };
  23797. return {
  23798. from: F,
  23799. to: N,
  23800. color: H.color,
  23801. label: {
  23802. text: H.text || "",
  23803. verticalAlign: H.textPosition,
  23804. y: R[H.textPosition],
  23805. style: {
  23806. color: H.textColor,
  23807. fontSize: H.textFontSize
  23808. }
  23809. }
  23810. };
  23811. }) : [];
  23812. }
  23813. function Yu({ LatestDate: r, PredictChartColor: f }) {
  23814. return {
  23815. zoneAxis: "x",
  23816. zones: [{
  23817. value: new Date(r).getTime() + 1
  23818. }, {
  23819. dashStyle: "ShortDot",
  23820. color: f
  23821. }]
  23822. };
  23823. }
  23824. function Xw(r) {
  23825. return r ? {
  23826. zoneAxis: "x",
  23827. zones: [{
  23828. value: new Date(r).getTime() + 1
  23829. }, {
  23830. dashStyle: "ShortDot"
  23831. }]
  23832. } : {};
  23833. }
  23834. function Xu(r, f, E) {
  23835. let l = Xt(f).diff(Xt(r), "years", !0);
  23836. return !!([5, 6].includes(E) && l <= 1);
  23837. }
  23838. function ol(r, f) {
  23839. const { IsAxis: E, IsOrder: l, EdbInfoType: y, LeadValue: j, LeadUnit: I } = r, Z = f == "zh" ? {
  23840. 0: "右轴",
  23841. 2: "右2轴"
  23842. } : {
  23843. 0: "RHS",
  23844. 2: "2-RHS"
  23845. }, H = f == "zh" ? {
  23846. 1: "逆序"
  23847. } : {
  23848. 1: "REV"
  23849. }, U = f == "zh" ? {
  23850. 0: "领先"
  23851. } : {
  23852. 0: "Lead"
  23853. }, F = f === "zh" ? I : P0[I];
  23854. let N = Z[E] || "", R = H[Number(l)] ? `${N ? "," : ""}${H[Number(l)]}` : "", S = U[y] ? `${N || R ? "," : ""}${U[y]}${j}${F}` : "";
  23855. return N || R || S ? `(${N}${R}${S})` : "";
  23856. }
  23857. function Mo(r, f, E = "zh") {
  23858. let l = "";
  23859. const y = r.EdbNameEn ? `${r.EdbNameEn}${ol(r, "en")}` : "", j = f.length > 1 ? `${r.EdbAliasName || r.EdbName}(${r.SourceName})${ol(r, "zh")}` : `${r.EdbAliasName || r.EdbName}${ol(r, "zh")}`;
  23860. if (l = E == "zh" ? j : y || j, l.length > 20) {
  23861. let I = [];
  23862. for (let Z = 0; Z < l.length / 20; Z++)
  23863. I.push(l.slice(Z * 20, Z * 20 + 20));
  23864. l = I.join("<br>");
  23865. }
  23866. return l;
  23867. }
  23868. function Zl(r) {
  23869. let f = r.filter((y) => y.IsAxis === 1), E = r.filter((y) => !y.IsAxis), l = r.filter((y) => y.IsAxis === 2);
  23870. return [f, E, l].flat(1 / 0);
  23871. }
  23872. function Gw() {
  23873. let r = !0;
  23874. return _e.value.ChartInfo.ChartNameEn || (r = !1), _e.value.EdbInfoList.forEach((f) => {
  23875. f.EdbNameEn || (r = !1), _e.value.ChartInfo.ChartType !== 10 && f.Unit && !f.UnitEn && (r = !1);
  23876. }), r;
  23877. }
  23878. function Hw(r) {
  23879. if (r && !Gw())
  23880. return;
  23881. const { ChartType: f, Source: E } = _e.value.ChartInfo;
  23882. E == 1 && (f == 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((l) => {
  23883. l.name = Fe.value == "zh" ? l.nameZh : l.nameEn;
  23884. }), re.value.tooltip.formatter = Fe.value == "zh" ? re.value.tooltip.formatterZh : re.value.tooltip.formatterEn) : (re.value.yAxis.forEach((l) => {
  23885. l.title.text = Fe.value == "zh" ? l.title.textZh : l.title.textEn;
  23886. }), f != 2 && re.value.series.forEach((l) => {
  23887. l.name = Fe.value == "zh" ? l.nameZh : l.nameEn != "无英文名称" ? l.nameEn : `<span style="color:#999">${l.nameEn}</span>`;
  23888. }), f === 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((l) => {
  23889. l.linkedTo || l.data.forEach((y) => {
  23890. y.dataLabels.format = Fe.value == "zh" ? y.dataLabels.formatZh : y.dataLabels.formatEn || "无英文标签", y.dataLabels.color = Fe.value === "en" && !y.dataLabels.formatEn ? "#999" : "#333";
  23891. });
  23892. })), [7, 11].includes(f) && (re.value.xAxis.categories = _e.value.XEdbIdValue.map((l) => Fe.value == "zh" ? _e.value.EdbInfoList.find((y) => y.EdbInfoId === l).EdbAliasName || _e.value.EdbInfoList.find((y) => y.EdbInfoId === l).EdbName : _e.value.EdbInfoList.find((y) => y.EdbInfoId === l).EdbNameEn)))), [2, 3, 4].includes(E) && (re.value.yAxis.forEach((l) => {
  23893. l.title.text = Fe.value == "zh" ? l.title.textZh : l.title.textEn || l.title.textZh;
  23894. }), re.value.series.forEach((l) => {
  23895. l.name = Fe.value == "en" && l.nameEn || l.nameZh;
  23896. }), re.value.tooltip.formatter = Fe.value == "en" ? re.value.tooltip.formatterEn : re.value.tooltip.formatterZh, E == 2 && (re.value.xAxis.categories = Vr.value.filter((l) => l.IsHide === 0).map((l) => Fe.value == "en" ? l.NameEn : l.Name)), [3].includes(E) && (re.value.xAxis.title.text = Fe.value == "en" && re.value.xAxis.title.textEn || re.value.xAxis.title.textZh));
  23897. }
  23898. function Fw(r) {
  23899. if (r) {
  23900. const f = _e.value.ChartInfo;
  23901. re.value.title.textZh = f.ChartName, re.value.title.textEn = f.ChartNameEn, re.value.title.text = Fe.value == "zh" ? re.value.title.textZh : re.value.title.textEn || re.value.title.textZh;
  23902. } else
  23903. re.value.title.text = "";
  23904. }
  23905. function Uw(r) {
  23906. const f = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { XDataList: E, UnitList: l, SeriesList: y, IsHeap: j } = r.DataResp;
  23907. kt.leftIndex = y.findIndex((N) => N.IsAxis === 1), kt.rightIndex = y.findIndex((N) => !N.IsAxis), kt.rightTwoIndex = y.findIndex((N) => N.IsAxis === 2), kt.leftIndex != -1 && (kt.hasLeftAxis = !0), kt.rightIndex != -1 && (kt.hasRightAxis = !0), kt.rightTwoIndex != -1 && (kt.hasRightTwoAxis = !0);
  23908. const I = {
  23909. categories: E.map((N) => this.currentLang == "en" ? N.NameEn : N.Name),
  23910. tickWidth: 1,
  23911. labels: {
  23912. style: {
  23913. ...f && f.xAxisOptions.style
  23914. }
  23915. },
  23916. plotBands: Ei(3),
  23917. plotLines: Pi(3)
  23918. };
  23919. let Z = [], H = [];
  23920. const U = y.some((N) => N.IsAxis === 2) ? Zl(y) : rs.cloneDeep(y);
  23921. return U.forEach((N, R) => {
  23922. const S = U.findIndex(
  23923. (x) => x.IsAxis === N.IsAxis
  23924. ), v = {
  23925. 1: ["LeftName", "LeftNameEn"],
  23926. 0: ["RightName", "RightNameEn"],
  23927. 2: ["RightTwoName", "RightTwoNameEn"]
  23928. };
  23929. let d = 0, u = 0;
  23930. const A = {
  23931. 0: ["rightMin", "rightMax"],
  23932. 1: ["leftMin", "leftMax"],
  23933. 2: ["rightTwoMin", "rightTwoMax"]
  23934. };
  23935. A[N.IsAxis] && (d = kt[`${A[N.IsAxis][0]}`] || 0, u = kt[`${A[N.IsAxis][1]}`] || 0);
  23936. let O = {
  23937. ...fr,
  23938. title: {
  23939. text: l[v[N.IsAxis][0]],
  23940. textCh: l[v[N.IsAxis][0]],
  23941. // 中文
  23942. // 中文不存在,无论英文有无都显示空
  23943. textEn: l[v[N.IsAxis][0]] ? l[v[N.IsAxis][1]] : "",
  23944. // 英文
  23945. style: {
  23946. ...f && f.yAxisOptions.style
  23947. },
  23948. align: "high",
  23949. rotation: 0,
  23950. y: -12,
  23951. // x: (item.IsAxis===0 && this.rightTwoIndex>-1) ? -chartData[this.rightTwoIndex].Unit.length*12 : 0,
  23952. textAlign: N.IsAxis === 1 ? "left" : "right",
  23953. reserveSpace: !1
  23954. },
  23955. labels: {
  23956. formatter: function(x) {
  23957. return x.value;
  23958. },
  23959. align: "center",
  23960. x: [0, 2].includes(N.IsAxis) ? 5 : -5,
  23961. style: {
  23962. ...f && f.yAxisOptions.style
  23963. }
  23964. },
  23965. opposite: [0, 2].includes(N.IsAxis),
  23966. min: Number(d),
  23967. max: Number(u),
  23968. tickWidth: 1,
  23969. visible: S === R,
  23970. plotBands: Ei(N.IsAxis),
  23971. plotLines: Pi(N.IsAxis)
  23972. }, B = R;
  23973. j == 1 && (B = 0);
  23974. let C = N.DataList || [];
  23975. C.forEach((x, a) => {
  23976. N.NoDataEdbIndex.includes(a) && (C[a] = null);
  23977. });
  23978. const b = f ? R % f.lineOptionList.length : R;
  23979. let w = {
  23980. data: C,
  23981. type: N.ChartStyle || "",
  23982. dashStyle: f && f.lineOptionList[b].dashStyle || "Solid",
  23983. chartType: "linear",
  23984. yAxis: B,
  23985. name: N.SeriesName,
  23986. nameZh: N.SeriesName,
  23987. nameEn: N.SeriesNameEn,
  23988. unitName: l[v[N.IsAxis][0]],
  23989. unitNameCh: l[v[N.IsAxis][0]],
  23990. unitNameEn: l[v[N.IsAxis][0]] ? l[v[N.IsAxis][1]] : "",
  23991. color: N.ChartColor,
  23992. lineWidth: Number(N.ChartWidth) || f && f.lineOptionList[b].lineWidth,
  23993. borderWidth: 1,
  23994. borderColor: N.ChartColor,
  23995. marker: {
  23996. //展示数据点
  23997. enabled: !!(N.ChartStyle != "column" && N.IsPoint),
  23998. radius: f && f.lineOptionList[b].radius || 5
  23999. },
  24000. dataLabels: {
  24001. //展示数值
  24002. enabled: !!N.IsNumber,
  24003. align: N.ChartStyle == "column" ? "center" : void 0,
  24004. y: N.ChartStyle == "column" ? -20 : 0,
  24005. inside: N.ChartStyle == "column" ? !1 : void 0,
  24006. crop: N.ChartStyle != "column"
  24007. },
  24008. stacking: j == 1 ? "normal" : void 0,
  24009. zIndex: ["line", "spline"].includes(N.ChartStyle) ? 1 : 0
  24010. //防止组合图曲线被遮住
  24011. };
  24012. Z.push(O), H.push(w);
  24013. }), {
  24014. title: {
  24015. text: ""
  24016. },
  24017. tooltip: {
  24018. formatter: function() {
  24019. let N = `<b>${this.points[0].x}</b>`;
  24020. return this.points.forEach((R) => {
  24021. const S = H.find((v) => v.name === R.series.name);
  24022. N = N + `<br><span style="color:${R.color}">●</span>${S.name}:${R.y} ${S.unitNameCh}`;
  24023. }), N;
  24024. },
  24025. formatterCh: function() {
  24026. let N = `<b>${this.points[0].x}</b>`;
  24027. return this.points.forEach((R) => {
  24028. const S = H.find((v) => v.name === R.series.name);
  24029. N = N + `<br><span style="color:${R.color}">●</span>${S.nameCh}:${R.y} ${S.unitNameCh}`;
  24030. }), N;
  24031. },
  24032. formatterEn: function() {
  24033. let N = `<b>${this.points[0].x}</b>`;
  24034. return this.points.forEach((R) => {
  24035. const S = H.find((v) => v.name === R.series.name);
  24036. N = N + `<br><span style="color:${R.color}">●</span>${S.nameEn}:${R.y} ${S.unitNameEn}`;
  24037. }), N;
  24038. },
  24039. shared: !0
  24040. },
  24041. series: H,
  24042. yAxis: Z,
  24043. xAxis: I
  24044. };
  24045. }
  24046. function Vw(r) {
  24047. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24048. const f = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null, { DataList: E, LeftMaxValue: l, LeftMinValue: y, RightMaxValue: j, RightMinValue: I } = r.DataResp, Z = {
  24049. ...Mn,
  24050. tickWidth: 1,
  24051. labels: {
  24052. style: {
  24053. ...f && f.xAxisOptions.style
  24054. }
  24055. }
  24056. };
  24057. let H = [], U = [];
  24058. return E.forEach((N, R) => {
  24059. let S = {
  24060. ...fr,
  24061. title: {
  24062. text: N.Unit,
  24063. textCh: N.Unit,
  24064. // 中文
  24065. textEn: N.UnitEn || N.Unit,
  24066. align: "high",
  24067. rotation: 0,
  24068. y: -15,
  24069. reserveSpace: !1,
  24070. style: {
  24071. ...f && f.yAxisOptions.style
  24072. }
  24073. },
  24074. labels: {
  24075. style: {
  24076. ...f && f.yAxisOptions.style
  24077. }
  24078. },
  24079. opposite: N.IsAxis !== 1,
  24080. min: Number(R === 0 ? y : I),
  24081. max: Number(R === 0 ? l : j),
  24082. tickWidth: 1
  24083. };
  24084. const v = f ? R % f.lineOptionList.length : R;
  24085. let d = {
  24086. data: N.Value.map((u) => [u.X, u.Y]),
  24087. dashStyle: f && f.lineOptionList[v].dashStyle || "Solid",
  24088. type: f && f.lineOptionList[v].lineType || "spline",
  24089. yAxis: R,
  24090. name: N.Name,
  24091. nameZh: N.Name,
  24092. nameEn: N.NameEn || N.Name,
  24093. color: N.Color,
  24094. lineWidth: f && f.lineOptionList[v].lineWidth || 3,
  24095. chartType: "linear",
  24096. zIndex: 1
  24097. };
  24098. U.push(d), H.push(S);
  24099. }), {
  24100. title: {
  24101. text: ""
  24102. },
  24103. tooltip: {
  24104. formatter: function() {
  24105. let N = E[0].Value.map((d) => d.X), R = N[1] - N[0], v = `<b>${`[${this.x},${this.x + R}]`}</b>`;
  24106. return this.points.forEach((d) => {
  24107. v += `<br><span style="color:${d.color}">●</span>${d.series.name}: ${d.y}%<br>`;
  24108. }), v;
  24109. },
  24110. shared: !0
  24111. },
  24112. series: U,
  24113. yAxis: H,
  24114. xAxis: Z
  24115. };
  24116. }
  24117. function Rp(r) {
  24118. const f = r.ChartInfo.Source === 1, E = [4, 6, 7, 8].includes(r.ChartInfo.Source) ? [r.DataResp] : r.EdbInfoList;
  24119. let l = [], y = [], j = {}, I = E.findIndex((d) => d.IsAxis === 1), Z = E.findIndex((d) => !d.IsAxis), H = E.findIndex((d) => d.IsAxis === 2);
  24120. kt.leftIndex = I, kt.rightIndex = Z, kt.rightTwoIndex = H;
  24121. const U = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24122. let F = [], N = E.some((d) => d.IsAxis === 2) ? Zl(E) : E;
  24123. N.forEach((d, u) => {
  24124. let A = N.findIndex((t) => t.IsAxis === d.IsAxis), O = d.EdbName, B = N.filter(
  24125. (t) => O === t.EdbName
  24126. ), C = Mo(d, B, "zh"), b = Mo(d, B, "en"), w = d.EdbInfoCategoryType === 1 ? Yu(d) : {};
  24127. const x = U ? u % U.lineOptionList.length : u;
  24128. let a = {
  24129. data: [],
  24130. dataGrouping: {
  24131. enabled: !1
  24132. },
  24133. type: U && U.lineOptionList[x].lineType || "spline",
  24134. dashStyle: U && U.lineOptionList[x].dashStyle || "Solid",
  24135. yAxis: u,
  24136. name: C,
  24137. nameZh: C,
  24138. nameEn: b,
  24139. color: d.ChartColor,
  24140. lineWidth: Number(d.ChartWidth) || U && U.lineOptionList[x].lineWidth || 1,
  24141. visible: !0,
  24142. LatestDate: d.LatestDate,
  24143. LatestValue: d.LatestValue,
  24144. marker: U && U.lineOptionList[x].dataMark && U.lineOptionList[x].dataMark != "none" ? {
  24145. enabled: !0,
  24146. symbol: U.lineOptionList[x].markType || "circle",
  24147. fillColor: U.lineOptionList[x].markColor,
  24148. radius: U.lineOptionList[x].markSize
  24149. } : {},
  24150. ...w
  24151. };
  24152. d.DataList = d.DataList || [];
  24153. for (let t of d.DataList)
  24154. a.data.push([t.DataTimestamp, t.Value]);
  24155. l.push(a), d.IsAxis, console.log("useSelfLimit", ci);
  24156. let c = 0, p = 0;
  24157. if ((!ci || !f) && (c = d.MinData, p = d.MaxData), ci && f) {
  24158. const t = {
  24159. 0: ["rightMin", "rightMax"],
  24160. 1: ["leftMin", "leftMax"],
  24161. 2: ["rightTwoMin", "rightTwoMax"]
  24162. };
  24163. t[d.IsAxis] && (c = kt[`${t[d.IsAxis][0]}`] || 0, p = kt[`${t[d.IsAxis][1]}`] || 0);
  24164. }
  24165. const i = r.ChartInfo.Source === 12 ? d.ConvertUnit : d.ConvertUnit || d.Unit, h = r.ChartInfo.Source === 12 ? d.ConvertEnUnit : d.ConvertEnUnit || d.UnitEn || d.ConvertUnit || d.Unit;
  24166. let o = {
  24167. ...fr,
  24168. IsAxis: d.IsAxis,
  24169. labels: {
  24170. formatter: function(t) {
  24171. return A !== u ? "" : t.value;
  24172. },
  24173. align: "center",
  24174. x: [0, 2].includes(d.IsAxis) ? 5 : -5,
  24175. style: {
  24176. ...U && U.yAxisOptions.style
  24177. }
  24178. },
  24179. tickWidth: A !== u ? 0 : 1,
  24180. title: {
  24181. text: A !== u ? "" : `${i}`,
  24182. textZh: i,
  24183. //中文单位
  24184. textEn: i ? h : "",
  24185. //英文单位,但如果无中文单位则不显示
  24186. align: "high",
  24187. rotation: 0,
  24188. y: -15,
  24189. x: d.IsAxis === 0 && H > -1 ? -N[H].Unit.length * 12 : 0,
  24190. textAlign: d.IsAxis === 1 ? "left" : "right",
  24191. reserveSpace: !1,
  24192. style: {
  24193. ...U && U.yAxisOptions.style
  24194. }
  24195. },
  24196. opposite: [0, 2].includes(d.IsAxis),
  24197. reversed: d.IsOrder,
  24198. min: Number(c),
  24199. max: Number(p),
  24200. visible: A === u,
  24201. chartEdbInfo: d,
  24202. //指标数据用于在保存时读取指标数据
  24203. plotBands: Ei(d.IsAxis),
  24204. plotLines: Pi(d.IsAxis)
  24205. };
  24206. y.push(o), d.DataList.length > 0 && (F.push(d.DataList[0].DataTimestamp), F.push(d.DataList[d.DataList.length - 1].DataTimestamp));
  24207. });
  24208. let R = Math.min.apply(null, F), S = Math.max.apply(null, F);
  24209. const v = Xu(R, S, r.ChartInfo.DateType);
  24210. return j = {
  24211. ...$p,
  24212. labels: {
  24213. formatter: function(d) {
  24214. return v ? Qn.dateFormat("%m/%d", d.value) : Qn.dateFormat("%y/%m", d.value);
  24215. },
  24216. style: {
  24217. ...U && U.xAxisOptions.style
  24218. }
  24219. },
  24220. tickInterval: $l.value === "phone" ? (S - R) / 6 / (24 * 3600 * 1e3) > 30 ? (S - R) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24221. plotBands: Ei(3, "datetime"),
  24222. plotLines: Pi(3, "datetime")
  24223. }, y.forEach((d) => {
  24224. d.IsAxis === 1 ? (kt.hasLeftAxis = !0, (!ci || !f) && (kt.leftMin = E[I].MinData, kt.leftMax = E[I].MaxData, d.min = E[I].MinData, d.max = E[I].MaxData)) : d.IsAxis === 2 ? (kt.hasRightTwoAxis = !0, (!ci || !f) && (kt.rightTwoMin = E[H].MinData, kt.rightTwoMax = E[H].MaxData, d.min = E[H].MinData, d.max = E[H].MaxData)) : (kt.hasRightAxis = !0, (!ci || !f) && (kt.rightMin = E[Z].MinData, kt.rightMax = E[Z].MaxData, d.min = E[Z].MinData, d.max = E[Z].MaxData));
  24225. }), {
  24226. series: l,
  24227. xAxis: [j],
  24228. yAxis: y,
  24229. rangeSelector: { enabled: !1 }
  24230. };
  24231. }
  24232. function $w(r) {
  24233. var b;
  24234. kt.leftIndex = 0;
  24235. const { RightAxis: f = {} } = r.DataResp || {};
  24236. kt.rightIndex = f.IsShow ? 1 : -1, kt.rightTwoIndex = -1;
  24237. const E = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24238. let l = {};
  24239. const y = r.EdbInfoList[0], j = r.ChartInfo.Calendar || "公历", I = E && E.colorsOptions.reverse();
  24240. let Z = [], H = [];
  24241. const U = j === "农历" ? y.DataList.filter((w, x) => x > 0) : y.DataList;
  24242. E && (E.lineOptionList = E.lineOptionList.reverse().slice(-U.length));
  24243. let F = 0;
  24244. U.forEach((w, x) => {
  24245. let a = y.EdbInfoCategoryType === 1 ? Xw(w.CuttingDataTimestamp) : {};
  24246. const c = E ? x % E.lineOptionList.length : x;
  24247. let p = {
  24248. data: [],
  24249. dataGrouping: {
  24250. enabled: !1
  24251. },
  24252. type: E && E.lineOptionList[c].lineType || y.ChartStyle,
  24253. dashStyle: E && E.lineOptionList[c].dashStyle || "Solid",
  24254. yAxis: 0,
  24255. name: w.ChartLegend,
  24256. lineWidth: E && E.lineOptionList[c].lineWidth || 1,
  24257. // color:colorsArr.slice(-chartDataHandle.length)[lineIndex], //与PC端的配置不同步,导致两边 十条之后的线条颜色不对应
  24258. visible: !0,
  24259. marker: E && E.lineOptionList[c].dataMark && E.lineOptionList[c].dataMark != "none" ? {
  24260. enabled: !0,
  24261. symbol: E.lineOptionList[c].markType || "circle",
  24262. fillColor: E.lineOptionList[c].markColor,
  24263. radius: E.lineOptionList[c].markSize
  24264. } : {},
  24265. ...a
  24266. };
  24267. if (w.DataList = w.DataList || [], (w.DataList || []).length > 0) {
  24268. let h = w.DataList[w.DataList.length - 1].DataTimestamp - w.DataList[0].DataTimestamp;
  24269. F = Math.max(F, h);
  24270. }
  24271. for (let h of w.DataList)
  24272. p.data.push([h.DataTimestamp, h.Value]);
  24273. Z.push(p);
  24274. }), l.colors = I.slice(-U.length);
  24275. const { MaxMinLimits: N = {}, SamePeriodAverage: R = {}, SamePeriodStandardDeviation: S = {} } = r.DataResp || {};
  24276. if (N.IsShow && N.List && N.List.length) {
  24277. let w = {
  24278. type: "arearange",
  24279. //上下限是一个范围
  24280. data: [],
  24281. name: N.Legend || "同期上下限",
  24282. color: N.Color || "#075EEE",
  24283. fillOpacity: no(N.Color || "") > 0.75 ? 0.75 : no(N.Color || "")
  24284. //透明度最高0.75
  24285. };
  24286. N.List.forEach((x) => {
  24287. w.data.push([x.DataTimestamp, x.MinValue, x.MaxValue]);
  24288. }), Z.push(w);
  24289. }
  24290. if (R.IsShow && R.List) {
  24291. let w = {
  24292. type: "line",
  24293. data: [],
  24294. lineWidth: R.LineWidth,
  24295. dashStyle: R.LineType,
  24296. name: R.Legend || "同期均值",
  24297. color: R.Color || "#075EEE"
  24298. };
  24299. R.List.forEach((x) => {
  24300. w.data.push([x.DataTimestamp, x.Value]);
  24301. }), Z.push(w);
  24302. }
  24303. if (S.IsShow && S.List) {
  24304. let w = {
  24305. type: "arearange",
  24306. //标准差也是一个范围
  24307. data: [],
  24308. name: S.Legend || "同期标准差",
  24309. color: S.Color || "#075EEE",
  24310. fillOpacity: no(S.Color || "") > 0.75 ? 0.75 : no(S.Color || "")
  24311. };
  24312. S.List.forEach((x) => {
  24313. w.data.push([x.DataTimestamp, x.MinValue, x.MaxValue]);
  24314. }), Z.push(w);
  24315. }
  24316. if (f.IsShow) {
  24317. let x = {
  24318. ...f.Style === "column" ? {
  24319. //柱形
  24320. type: "column",
  24321. color: f.ChartColor
  24322. } : {
  24323. //标记点
  24324. type: "spline",
  24325. lineWidth: f.LineWidth,
  24326. dashStyle: f.LineStyle,
  24327. color: f.IsConnected ? f.LineColor : "rgba(255, 255, 255, 0)",
  24328. //没有连线颜色设置为透明
  24329. marker: {
  24330. enabled: !0,
  24331. symbol: f.Shape,
  24332. fillColor: f.ChartColor,
  24333. radius: f.Size
  24334. }
  24335. },
  24336. name: f.Legend || "",
  24337. data: [],
  24338. yAxis: 1
  24339. };
  24340. ((f.IndicatorType === 1 ? f.EdbInfoList[0].DataList : (b = r.EdbInfoList[1]) == null ? void 0 : b.DataList) || []).forEach((c) => {
  24341. x.data.push([c.DataTimestamp, c.Value]);
  24342. }), Z.push(x);
  24343. }
  24344. let v = 0, d = 0, u = 0, A = 0;
  24345. ci ? (v = kt.leftMin || 0, d = kt.leftMax || 0, kt.rightIndex !== -1 && (u = kt.rightMin || 0, A = kt.rightMax || 0)) : (v = y.MinData, d = y.MaxData);
  24346. const O = y.ConvertUnit || y.Unit, B = y.ConvertEnUnit || y.UnitEn || y.ConvertUnit || y.Unit;
  24347. if (H = [{
  24348. IsAxis: y.IsAxis,
  24349. labels: {
  24350. align: "center",
  24351. y: 5,
  24352. style: {
  24353. ...E && E.yAxisOptions.style
  24354. }
  24355. },
  24356. title: {
  24357. text: `${O}`,
  24358. textZh: O,
  24359. // 中文
  24360. // 中文不存在,无论英文有无都显示空
  24361. textEn: O ? B || "英文单位" : "",
  24362. // 英文
  24363. align: "high",
  24364. rotation: 0,
  24365. y: -5,
  24366. x: 0,
  24367. textAlign: "left",
  24368. reserveSpace: !1,
  24369. style: {
  24370. ...E && E.yAxisOptions.style
  24371. }
  24372. },
  24373. max: Number(d),
  24374. min: Number(v),
  24375. plotBands: Ei(1),
  24376. plotLines: Pi(1),
  24377. lineWidth: 1,
  24378. lineColor: "#bfbfbf",
  24379. tickColor: "#bfbfbf",
  24380. offset: 0,
  24381. opposite: !1,
  24382. reversed: !1,
  24383. visible: !0,
  24384. gridLineWidth: 0,
  24385. tickWidth: 1,
  24386. tickLength: 5,
  24387. tickPosition: "inside",
  24388. endOnTick: !1,
  24389. startOnTick: !1,
  24390. showLastLabel: !0,
  24391. //显示最后刻度值
  24392. tickPixelInterval: 50
  24393. // chartEdbInfo:item//指标数据
  24394. }], f.IsShow) {
  24395. const w = (f.IndicatorType === 1 ? f.EdbInfoList[0] : r.EdbInfoList[1]) || { Unit: "" };
  24396. f.IndicatorType === 1 ? w.Unit = f.NumFormat === 1 ? "%" : "" : w.Unit = r.EdbInfoList[1] && (r.EdbInfoList[1].ConvertUnit || r.EdbInfoList[1].Unit) || "", H.push({
  24397. ...T0.yAxis,
  24398. opposite: !0,
  24399. //右轴
  24400. labels: {
  24401. align: "center",
  24402. y: 5,
  24403. style: {
  24404. ...E && E.yAxisOptions.style
  24405. }
  24406. },
  24407. title: {
  24408. text: w.Unit || "",
  24409. style: {
  24410. ...E && E.yAxisOptions.style
  24411. },
  24412. align: "high",
  24413. rotation: 0,
  24414. y: -5,
  24415. x: 0,
  24416. textAlign: "right",
  24417. reserveSpace: !1
  24418. },
  24419. max: Number(A),
  24420. min: Number(u)
  24421. });
  24422. }
  24423. l.series = Z, l.yAxis = H, kt.hasLeftAxis = !0, ci || (kt.leftMin = Number(y.MinData), kt.leftMax = Number(y.MaxData));
  24424. let C = {
  24425. tickPosition: "inside",
  24426. lineColor: "#bfbfbf",
  24427. tickColor: "#bfbfbf",
  24428. tickLength: 5,
  24429. type: "datetime",
  24430. ordinal: !1,
  24431. dateTimeLabelFormats: {
  24432. day: "%y/%m",
  24433. week: "%y/%m",
  24434. month: "%y/%m",
  24435. year: "%y/%m"
  24436. },
  24437. labels: {
  24438. formatter: (w) => Qn.dateFormat("%m/%d", w.value),
  24439. style: {
  24440. ...E && E.xAxisOptions.style
  24441. }
  24442. },
  24443. tickInterval: $l.value === "phone" ? F / 6 : void 0,
  24444. //季节图
  24445. plotBands: Ei(3, "datetime"),
  24446. plotLines: Pi(3, "datetime")
  24447. };
  24448. return l.xAxis = [C], l.tooltip = {
  24449. split: !1,
  24450. shared: !0,
  24451. dateTimeLabelFormats: {
  24452. // 时间格式化字符
  24453. day: "%m/%d",
  24454. week: "%m/%d",
  24455. month: "%m/%d",
  24456. year: "%m/%d"
  24457. },
  24458. xDateFormat: "%m/%d"
  24459. }, {
  24460. ...l
  24461. // title: {
  24462. // enabled: true,
  24463. // text:e.ChartInfo.ChartName
  24464. // },
  24465. // legend:{
  24466. // enabled:true,
  24467. // verticalAlign: 'top',
  24468. // y:-10,
  24469. // x:(10 * data.Unit.length)/2
  24470. // }
  24471. };
  24472. }
  24473. function al(r) {
  24474. const f = r.EdbInfoList;
  24475. let l = {
  24476. 3: "areaspline",
  24477. 4: "column",
  24478. 6: ""
  24479. }[r.ChartInfo.ChartType];
  24480. const y = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24481. let j = [], I = [], Z = {}, H, U, F, N = [], R = f.some((u) => u.IsAxis === 2) ? Zl(f) : f;
  24482. R.forEach((u, A) => {
  24483. let O = R.findIndex((n) => n.IsAxis === u.IsAxis), B = A;
  24484. [3, 4].includes(r.ChartInfo.ChartType) ? B = 0 : r.ChartInfo.ChartType === 6 && ["areaspline", "column"].includes(u.ChartStyle) && (B = R.findIndex((n) => n.ChartStyle === u.ChartStyle)), u.IsAxis = B === A ? u.IsAxis : R[B].IsAxis, u.IsOrder = B === A ? u.IsOrder : R[B].IsOrder, H = [3, 4].includes(r.ChartInfo.ChartType) ? R[B].IsAxis ? B : -1 : f.findIndex((n) => n.IsAxis === 1), U = [3, 4].includes(r.ChartInfo.ChartType) ? R[B].IsAxis ? -1 : B : f.findIndex((n) => !n.IsAxis), F = [3, 4].includes(r.ChartInfo.ChartType) ? -1 : f.findIndex((n) => n.IsAxis === 2), kt.leftIndex = H, kt.rightIndex = U, kt.rightTwoIndex = F;
  24485. let C = u.EdbName, b = R.filter(
  24486. (n) => C === n.EdbName
  24487. ), w = Mo(u, b, "zh"), x = Mo(u, b, "en"), a = u.EdbInfoCategoryType === 1 ? Yu(u) : {};
  24488. const c = y ? A % y.lineOptionList.length : A;
  24489. let p = {
  24490. data: [],
  24491. dataGrouping: {
  24492. enabled: !1
  24493. },
  24494. type: l || u.ChartStyle,
  24495. yAxis: B,
  24496. name: w,
  24497. nameZh: w,
  24498. nameEn: x,
  24499. color: u.ChartColor,
  24500. lineWidth: Number(u.ChartWidth) || y && y.lineOptionList[c].lineWidth || 1,
  24501. fillColor: r.ChartInfo.ChartType === 3 || r.ChartInfo.ChartType === 6 && u.ChartStyle === "areaspline" ? u.ChartColor : void 0,
  24502. visible: !0,
  24503. LatestDate: u.LatestDate,
  24504. LatestValue: u.LatestValue,
  24505. ...a,
  24506. stacking: r.ChartInfo.ChartType == 6 && !r.DataResp.IsHeap ? void 0 : "normal"
  24507. };
  24508. u.DataList = u.DataList || [];
  24509. for (let n of u.DataList)
  24510. p.data.push([n.DataTimestamp, n.Value]);
  24511. j.push(p);
  24512. let i = 0, h = 0;
  24513. if (!ci)
  24514. i = R[O].MinData, h = R[O].MaxData;
  24515. else {
  24516. const n = {
  24517. 0: ["rightMin", "rightMax"],
  24518. 1: ["leftMin", "leftMax"],
  24519. 2: ["rightTwoMin", "rightTwoMax"]
  24520. };
  24521. n[u.IsAxis] && (i = kt[`${n[u.IsAxis][0]}`] || 0, h = kt[`${n[u.IsAxis][1]}`] || 0);
  24522. }
  24523. u.IsAxis;
  24524. const o = u.ConvertUnit || u.Unit, t = u.ConvertEnUnit || u.UnitEn || u.ConvertUnit || u.Unit;
  24525. let s = {
  24526. ...fr,
  24527. IsAxis: u.IsAxis,
  24528. labels: {
  24529. formatter: function(n) {
  24530. return O !== A ? "" : n.value;
  24531. },
  24532. align: "center",
  24533. x: [0, 2].includes(u.IsAxis) ? 5 : -5,
  24534. style: {
  24535. ...y && y.yAxisOptions.style
  24536. }
  24537. },
  24538. title: {
  24539. // text: sameSideIndex !== index ? '' : `${item.Unit}`,
  24540. text: o,
  24541. textZh: o,
  24542. // 中文
  24543. // 中文不存在,无论英文有无都显示空
  24544. textEn: o ? t || "英文单位" : "",
  24545. // 英文
  24546. align: "high",
  24547. rotation: 0,
  24548. y: -15,
  24549. x: u.IsAxis === 0 && F > -1 ? -R[F].Unit.length * 12 : 0,
  24550. textAlign: u.IsAxis === 1 ? "left" : "right",
  24551. reserveSpace: !1,
  24552. style: {
  24553. ...y && y.yAxisOptions.style
  24554. }
  24555. },
  24556. opposite: [0, 2].includes(u.IsAxis),
  24557. reversed: u.IsOrder,
  24558. min: Number(i),
  24559. max: Number(h),
  24560. tickWidth: O !== A ? 0 : 1,
  24561. visible: B === A && O === A,
  24562. plotBands: Ei(u.IsAxis),
  24563. plotLines: Pi(u.IsAxis),
  24564. chartEdbInfo: u
  24565. //指标数据用于在保存时读取指标数据
  24566. };
  24567. I.push(s), u.DataList.length > 0 && (N.push(u.DataList[0].DataTimestamp), N.push(u.DataList[u.DataList.length - 1].DataTimestamp));
  24568. });
  24569. let S = Math.min.apply(null, N), v = Math.max.apply(null, N);
  24570. const d = Xu(S, v, r.ChartInfo.DateType);
  24571. return Z = {
  24572. ...$p,
  24573. labels: {
  24574. formatter: function(u) {
  24575. return d ? Qn.dateFormat("%m/%d", u.value) : Qn.dateFormat("%y/%m", u.value);
  24576. },
  24577. style: {
  24578. ...y && y.xAxisOptions.style
  24579. }
  24580. },
  24581. tickInterval: $l.value === "phone" ? (v - S) / 6 / (24 * 3600 * 1e3) > 30 ? (v - S) / 6 : 24 * 3600 * 1e3 * 30 : void 0,
  24582. plotBands: Ei(3, "datetime"),
  24583. plotLines: Pi(3, "datetime")
  24584. }, I.forEach((u) => {
  24585. u.IsAxis === 1 ? (kt.hasLeftAxis = !0, ci || (kt.leftMin = f[H].MinData, kt.leftMax = f[H].MaxData, u.min = f[H].MinData, u.max = f[H].MaxData)) : u.IsAxis === 2 ? (kt.hasRightTwoAxis = !0, ci || (kt.rightTwoMin = f[F].MinData, kt.rightTwoMax = f[F].MaxData, u.min = f[F].MinData, u.max = f[F].MaxData)) : (kt.hasRightAxis = !0, ci || (kt.rightMin = f[U].MinData, kt.rightMax = f[U].MaxData, u.min = f[U].MinData, u.max = f[U].MaxData));
  24586. }), {
  24587. series: j,
  24588. xAxis: Z,
  24589. yAxis: I,
  24590. rangeSelector: { enabled: !1 }
  24591. };
  24592. }
  24593. function Zw(r) {
  24594. kt.leftIndex = 1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24595. const f = r.EdbInfoList, { ChartInfo: E } = r, l = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null;
  24596. kt.hasLeftAxis = !0;
  24597. const y = [];
  24598. let j = {}, I = rs.cloneDeep(f)[0].DataList || [], Z = rs.cloneDeep(f)[1].DataList || [];
  24599. I.forEach((B) => {
  24600. Z.forEach((C) => {
  24601. if (B.DataTimestamp === C.DataTimestamp) {
  24602. let b = B.Value + "_" + C.Value;
  24603. j[b] ? j[b].push(Xt(B.DataTimestamp).format("YYYY/MM/DD")) : j[b] = [Xt(B.DataTimestamp).format("YYYY/MM/DD")], y.push({
  24604. x: B.Value,
  24605. y: C.Value
  24606. });
  24607. }
  24608. });
  24609. }), y.sort((B, C) => B - C);
  24610. let H = {
  24611. formatter: function() {
  24612. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24613. ${f[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24614. ${f[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24615. `;
  24616. },
  24617. // 中文
  24618. formatterCh: function() {
  24619. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24620. ${f[0].EdbName}: <span style="font-weight: 600"> ${this.x}</span><br>
  24621. ${f[1].EdbName}: <span style="font-weight: 600"> ${this.y}</span>
  24622. `;
  24623. },
  24624. // 英文
  24625. formatterEn: function() {
  24626. let B = `${f[0].EdbNameEn}`, C = `${f[1].EdbNameEn}`;
  24627. return `<strong>${j[this.x + "_" + this.y].length > 4 ? j[this.x + "_" + this.y].slice(0, 4).join() + "..." : j[this.x + "_" + this.y].join()}</strong><br>
  24628. ${B}: <span style="font-weight: 600"> ${this.x}</span><br>
  24629. ${C}: <span style="font-weight: 600"> ${this.y}</span>
  24630. `;
  24631. }
  24632. };
  24633. const { IsOrder: U, ChartColor: F } = f[0];
  24634. let N = 0, R = 0;
  24635. ci ? (N = kt.leftMin || 0, R = kt.leftMax || 0) : (N = r.ChartInfo.LeftMin || 0, R = r.ChartInfo.LeftMax || 0), console.log("check limit", N, R);
  24636. const S = f[1].ConvertUnit || f[1].Unit, v = f[1].ConvertEnUnit || f[1].UnitEn || f[1].ConvertUnit || f[1].Unit;
  24637. let d = {
  24638. title: {
  24639. text: `${S}`,
  24640. textZh: S,
  24641. textEn: S ? v : "",
  24642. align: "high",
  24643. rotation: 0,
  24644. y: -15,
  24645. x: 0,
  24646. textAlign: "left",
  24647. reserveSpace: !1,
  24648. style: {
  24649. ...l && l.yAxisOptions.style
  24650. }
  24651. },
  24652. labels: {
  24653. formatter: function(B) {
  24654. return B.value;
  24655. },
  24656. align: "center",
  24657. style: {
  24658. ...l && l.yAxisOptions.style
  24659. }
  24660. },
  24661. opposite: !1,
  24662. reversed: U,
  24663. min: Number(N),
  24664. max: Number(R),
  24665. tickWidth: 1,
  24666. tickLength: 5,
  24667. lineWidth: 1,
  24668. lineColor: "#bfbfbf",
  24669. tickColor: "#bfbfbf",
  24670. offset: 0,
  24671. visible: !0,
  24672. gridLineWidth: 0,
  24673. tickPosition: "inside",
  24674. endOnTick: !1,
  24675. startOnTick: !1,
  24676. showLastLabel: !0,
  24677. tickPixelInterval: 50,
  24678. plotBands: Ei(1),
  24679. plotLines: Pi(1)
  24680. }, u = {
  24681. data: [],
  24682. type: "scatter",
  24683. name: `${E.ChartName}${U ? "(逆序)" : ""}`,
  24684. nameZh: `${E.ChartName}${U ? "(逆序)" : ""}`,
  24685. nameEn: E.ChartNameEn ? `${E.ChartNameEn}${U ? "(reverse)" : ""}` : "",
  24686. color: F,
  24687. visible: !0,
  24688. chartType: "linear",
  24689. marker: {
  24690. radius: l && l.lineOptionList[0].radius || 5
  24691. }
  24692. };
  24693. y.forEach((B) => {
  24694. u.data.push([B.x, B.y]);
  24695. });
  24696. const A = f[0].ConvertUnit || f[0].Unit, O = f[0].ConvertEnUnit || f[0].UnitEn || f[0].ConvertUnit || f[0].Unit;
  24697. return {
  24698. title: {
  24699. text: ""
  24700. },
  24701. series: [u],
  24702. yAxis: d,
  24703. xAxis: {
  24704. ...Mn,
  24705. title: {
  24706. text: `${A}`,
  24707. textZh: A,
  24708. textEn: A ? O : "",
  24709. align: "high",
  24710. rotation: 0,
  24711. x: 0,
  24712. offset: 20,
  24713. style: {
  24714. ...l && l.xAxisOptions.style
  24715. }
  24716. },
  24717. labels: {
  24718. style: {
  24719. ...l && l.xAxisOptions.style
  24720. }
  24721. }
  24722. },
  24723. tooltip: H
  24724. };
  24725. }
  24726. const Gu = Le([]), Hu = Le([]), Kw = Le([]);
  24727. function Jw(r) {
  24728. var F, N, R;
  24729. let f = [];
  24730. const E = rs.cloneDeep(Gu.value), l = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24731. let y = {
  24732. ...Mn,
  24733. categories: Hu.value,
  24734. tickWidth: 1,
  24735. labels: {
  24736. style: {
  24737. ...l && l.xAxisOptions.style
  24738. }
  24739. }
  24740. };
  24741. const { leftMin: j, leftMax: I } = kt, Z = (F = r.ChartInfo) == null ? void 0 : F.Unit, H = ((N = r.ChartInfo) == null ? void 0 : N.UnitEn) || ((R = r.ChartInfo) == null ? void 0 : R.Unit);
  24742. let U = {
  24743. ...fr,
  24744. title: {
  24745. text: Z,
  24746. textZh: Z,
  24747. textEn: H,
  24748. align: "high",
  24749. rotation: 0,
  24750. y: -12,
  24751. x: 0,
  24752. textAlign: "left",
  24753. reserveSpace: !1,
  24754. style: {
  24755. ...l && l.yAxisOptions.style
  24756. }
  24757. },
  24758. labels: {
  24759. formatter: function(S) {
  24760. return S.value;
  24761. },
  24762. align: "center",
  24763. style: {
  24764. ...l && l.yAxisOptions.style
  24765. }
  24766. },
  24767. min: Number(j),
  24768. max: Number(I),
  24769. opposite: !1,
  24770. tickWidth: 1,
  24771. plotBands: Ei(1),
  24772. plotLines: Pi(1)
  24773. };
  24774. return E.forEach((S) => {
  24775. let v = {
  24776. data: S.Value,
  24777. type: "column",
  24778. yAxis: 0,
  24779. name: S.Name || S.Date,
  24780. nameZh: S.Name || S.Date,
  24781. nameEn: S.Date,
  24782. color: S.Color,
  24783. chartType: "linear",
  24784. visible: !0
  24785. };
  24786. f.push(v);
  24787. }), {
  24788. title: {
  24789. text: ""
  24790. },
  24791. plotOptions: {
  24792. column: {
  24793. stacking: null
  24794. }
  24795. },
  24796. series: f,
  24797. yAxis: [U],
  24798. xAxis: y
  24799. };
  24800. }
  24801. function qw(r) {
  24802. const { XEdbIdValue: f, YDataList: E, EdbInfoList: l, ChartInfo: y } = r;
  24803. let j = f.map((I) => l.find((Z) => Z.EdbInfoId === I).EdbAliasName);
  24804. return kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1, Gu.value = E, Hu.value = j, Kw.value = l, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), Jw(r);
  24805. }
  24806. const Fu = Le([]), Vr = Le([]), Ni = Le([]), Qw = (r, f) => {
  24807. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24808. const E = _e.value.ChartInfo.ChartThemeStyle ? JSON.parse(_e.value.ChartInfo.ChartThemeStyle) : null;
  24809. let l = [];
  24810. const y = rs.cloneDeep(Fu.value);
  24811. console.log(y);
  24812. let j = {
  24813. ...Mn,
  24814. categories: Vr.value.filter((H) => H.IsHide === 0).map((H) => H.Name),
  24815. tickWidth: 1,
  24816. labels: {
  24817. style: {
  24818. ...E && E.xAxisOptions.style
  24819. }
  24820. }
  24821. }, I = {
  24822. ...fr,
  24823. title: {
  24824. text: Ni.value[0].Unit,
  24825. textZh: Ni.value[0].Unit,
  24826. textEn: Ni.value[0].Unit ? Ni.value[0].UnitEn || "英文单位" : "",
  24827. align: "high",
  24828. rotation: 0,
  24829. y: -15,
  24830. textAlign: "left",
  24831. reserveSpace: !1,
  24832. style: {
  24833. ...E && E.yAxisOptions.style
  24834. }
  24835. },
  24836. labels: {
  24837. formatter: function(H) {
  24838. return H.value;
  24839. },
  24840. align: "center",
  24841. style: {
  24842. ...E && E.yAxisOptions.style
  24843. }
  24844. },
  24845. min: Number(r),
  24846. max: Number(f),
  24847. opposite: !1,
  24848. tickWidth: 1
  24849. };
  24850. return y.forEach((H, U) => {
  24851. let F = tM(H);
  24852. const N = E ? U % E.lineOptionList.length : U;
  24853. let R = {
  24854. data: F,
  24855. type: E && E.lineOptionList[N].lineType || "spline",
  24856. dashStyle: E && E.lineOptionList[N].dashStyle || "Solid",
  24857. yAxis: 0,
  24858. name: H.Name,
  24859. nameZh: H.Name,
  24860. nameEn: H.NameEn,
  24861. color: H.Color,
  24862. chartType: "linear",
  24863. lineWidth: E && E.lineOptionList[N].lineWidth || 3,
  24864. visible: !0,
  24865. marker: {
  24866. enabled: !1
  24867. }
  24868. };
  24869. l.push(R);
  24870. }), {
  24871. title: {
  24872. text: ""
  24873. },
  24874. series: l,
  24875. yAxis: [I],
  24876. xAxis: j,
  24877. tooltip: {
  24878. formatter: function() {
  24879. const H = this;
  24880. let U = "";
  24881. return H.points.forEach((F) => {
  24882. let N = y.find((v) => v.Name === F.series.name), R = Vr.value.findIndex((v) => v.Name === H.x);
  24883. const S = N.XEdbInfoIdList[R];
  24884. if (S) {
  24885. const v = Ni.value.some((u) => u.EdbInfoId === S);
  24886. let d = _e.value.ChartInfo.Source === 5 ? v ? N.NameList[R] : `${_e.value.DataResp.ProfitName}(${N.NameList[R]})` : Ni.value.find((u) => u.EdbInfoId === N.XEdbInfoIdList[R]).EdbName;
  24887. U += `<b>${d}</b>`, N.NoDataEdbList.includes(N.XEdbInfoIdList[R]) ? U += `<br><span style="color:${F.color}">●</span>${N.Date}: 无<br>` : U += `<br><span style="color:${F.color}">●</span>${N.Date}: ${F.y}<br>`;
  24888. }
  24889. }), U || "无合约";
  24890. },
  24891. formatterCh: function() {
  24892. const H = this;
  24893. let U = "";
  24894. return H.points.forEach((F) => {
  24895. let N = y.find((v) => v.Name === F.series.name), R = Vr.value.findIndex((v) => v.Name === H.x);
  24896. const S = N.XEdbInfoIdList[R];
  24897. if (S) {
  24898. const v = Ni.value.some((u) => u.EdbInfoId === S);
  24899. let d = _e.value.ChartInfo.Source === 5 ? v ? N.NameList[R] : `${_e.value.DataResp.ProfitName}(${N.NameList[R]})` : Ni.value.find((u) => u.EdbInfoId === N.XEdbInfoIdList[R]).EdbName;
  24900. U += `<b>${d}</b>`, N.NoDataEdbList.includes(N.XEdbInfoIdList[R]) ? U += `<br><span style="color:${F.color}">●</span>${N.Date}: 无<br>` : U += `<br><span style="color:${F.color}">●</span>${N.Date}: ${F.y}<br>`;
  24901. }
  24902. }), U || "无合约";
  24903. },
  24904. formatterEn: function() {
  24905. const H = this;
  24906. let U = "";
  24907. return H.points.forEach((F) => {
  24908. let N = y.find((v) => v.NameEn === F.series.name), R = Vr.value.findIndex((v) => v.NameEn === H.x);
  24909. const S = N.XEdbInfoIdList[R];
  24910. if (S) {
  24911. const v = Ni.value.some((u) => u.EdbInfoId === S);
  24912. let d = _e.value.ChartInfo.Source === 5 ? v ? N.NameList[R] : `${_e.value.DataResp.ProfitNameEn}(${N.NameList[R]})` : Ni.value.find((u) => u.EdbInfoId === N.XEdbInfoIdList[R]).EdbNameEn;
  24913. U += `<b>${d}</b>`, N.NoDataEdbList.includes(N.XEdbInfoIdList[R]) ? U += `<br><span style="color:${F.color}">●</span>${N.Date}: 无<br>` : U += `<br><span style="color:${F.color}">●</span>${N.Date}: ${F.y}<br>`;
  24914. }
  24915. }), U || "无合约";
  24916. },
  24917. shared: !0
  24918. }
  24919. };
  24920. };
  24921. function tM(r) {
  24922. let f = r.XEdbInfoIdList.filter((I) => !r.NoDataEdbList.includes(I)), E = r.XEdbInfoIdList.findIndex((I) => I === f[0]), l = r.XEdbInfoIdList.findIndex((I) => I === f[f.length - 1]), y = r.Value.map((I, Z) => Z < E || Z > l ? null : I), j = [];
  24923. return Vr.value.forEach((I, Z) => {
  24924. I.IsHide !== 1 && j.push(y[Z]);
  24925. }), j;
  24926. }
  24927. function eM(r) {
  24928. const { XDataList: f, YDataList: E, EdbInfoList: l, ChartInfo: y, DataResp: j } = r;
  24929. return Ni.value = l, Fu.value = y.Source === 5 ? j.YDataList : E, Vr.value = y.Source === 5 ? j.XDataList : f, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), Qw(y.LeftMin, y.LeftMax);
  24930. }
  24931. function iM(r) {
  24932. const f = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24933. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  24934. let E = {
  24935. categories: r.ChartInfo.Source === 3 ? r.XEdbIdValue : r.DataResp.XDateTimeValue,
  24936. tickWidth: 1,
  24937. title: {
  24938. text: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24939. textZh: r.ChartInfo.Source === 3 ? `期数(${r.CorrelationChartInfo.LeadUnit})` : null,
  24940. textEn: r.ChartInfo.Source === 3 ? `stage(${Ep[r.CorrelationChartInfo.LeadUnit]})` : null,
  24941. align: "high",
  24942. rotation: 0,
  24943. x: 0,
  24944. y: 10,
  24945. offset: 20,
  24946. style: {
  24947. ...f && f.xAxisOptions.style
  24948. }
  24949. },
  24950. labels: {
  24951. style: {
  24952. ...f && f.xAxisOptions.style
  24953. }
  24954. },
  24955. tickInterval: 1,
  24956. offset: 0,
  24957. tickmarkPlacement: "on"
  24958. }, l = {
  24959. ...fr,
  24960. title: {
  24961. text: "相关性系数",
  24962. textZh: "相关性系数",
  24963. textEn: "Correlation coefficient",
  24964. align: "high",
  24965. rotation: 0,
  24966. y: -15,
  24967. textAlign: "left",
  24968. reserveSpace: !1,
  24969. style: {
  24970. ...f && f.yAxisOptions.style
  24971. }
  24972. },
  24973. labels: {
  24974. formatter: function(U) {
  24975. return U.value;
  24976. },
  24977. align: "center",
  24978. style: {
  24979. ...f && f.yAxisOptions.style
  24980. }
  24981. },
  24982. opposite: !1,
  24983. tickWidth: 1
  24984. }, y = [];
  24985. r.YDataList.forEach((U, F) => {
  24986. const N = f ? F % f.lineOptionList.length : F;
  24987. let R = {
  24988. data: U.Value,
  24989. type: f && f.lineOptionList[N].lineType || "spline",
  24990. dashStyle: f && f.lineOptionList[N].dashStyle || "Solid",
  24991. yAxis: 0,
  24992. name: U.Name || r.ChartInfo.ChartName,
  24993. nameZh: U.Name || r.ChartInfo.ChartName,
  24994. nameEn: U.NameEn || r.ChartInfo.ChartNameEn,
  24995. color: U.Color,
  24996. chartType: "linear",
  24997. lineWidth: f && f.lineOptionList[N].lineWidth || 3,
  24998. visible: !0,
  24999. marker: {
  25000. enabled: !1
  25001. }
  25002. };
  25003. y.push(R);
  25004. });
  25005. const { LeadValue: j, LeadUnit: I } = r.CorrelationChartInfo, { Source: Z } = r.ChartInfo;
  25006. let H = {
  25007. formatter: function() {
  25008. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : j + I}</p>`;
  25009. },
  25010. formatterCh: function() {
  25011. return `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${Z === 3 ? this.x + "期" : j + I}</p>`;
  25012. },
  25013. formatterEn: function() {
  25014. return `<p>Correlation coefficient:${this.y.toFixed(4)}</p><br><p>lead${Z === 3 ? this.x + "stage" : j + Ep[I]}</p>`;
  25015. }
  25016. };
  25017. return fo(() => {
  25018. re.value = {
  25019. isRelevanceChart: r.ChartInfo.Source === 3,
  25020. title: {
  25021. text: ""
  25022. },
  25023. series: y,
  25024. yAxis: [l],
  25025. xAxis: E,
  25026. tooltip: H
  25027. }, lo.update(re.value, !0);
  25028. }), {
  25029. isRelevanceChart: !0,
  25030. title: {
  25031. text: ""
  25032. },
  25033. series: y,
  25034. yAxis: [l],
  25035. xAxis: E,
  25036. tooltip: H
  25037. };
  25038. }
  25039. function rM({ DataResp: r, ChartInfo: f }) {
  25040. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25041. const E = f.ChartThemeStyle ? JSON.parse(f.ChartThemeStyle) : null, { DataList: l, XName: y, XNameEn: j, XUnitName: I, XUnitNameEn: Z, YName: H, YNameEn: U, YUnitName: F, YUnitNameEn: N } = r, R = Number(r.YMinValue), S = Number(r.YMaxValue), v = Number(r.XMinValue), d = Number(r.XMaxValue);
  25042. kt.hasLeftAxis = !0, kt.hasXAxis = !0, kt.leftMin = R, kt.leftMax = S, kt.xMin = v, kt.xMax = d;
  25043. let u = {
  25044. ...fr,
  25045. title: {
  25046. text: H,
  25047. textZh: H,
  25048. // 中文
  25049. textEn: U || "",
  25050. style: {
  25051. ...E && E.yAxisOptions.style
  25052. },
  25053. align: "middle"
  25054. },
  25055. labels: {
  25056. style: {
  25057. ...E && E.yAxisOptions.style
  25058. }
  25059. },
  25060. opposite: !1,
  25061. reversed: !1,
  25062. min: Number(R),
  25063. max: Number(S),
  25064. tickWidth: 1,
  25065. plotBands: Ei(1),
  25066. plotLines: Pi(1)
  25067. }, A = {
  25068. ...Mn,
  25069. title: {
  25070. text: y,
  25071. textZh: y,
  25072. // 中文
  25073. textEn: j || "",
  25074. style: {
  25075. ...E && E.xAxisOptions.style
  25076. },
  25077. align: "middle"
  25078. },
  25079. labels: {
  25080. style: {
  25081. ...E && E.xAxisOptions.style
  25082. }
  25083. },
  25084. min: Number(v),
  25085. max: Number(d),
  25086. plotBands: Ei(3),
  25087. plotLines: Pi(3)
  25088. }, O = [];
  25089. return l.forEach((C, b) => {
  25090. const w = E ? b % E.lineOptionList.length : b;
  25091. let x = {
  25092. data: [],
  25093. type: "scatter",
  25094. name: C.Name,
  25095. nameZh: C.Name,
  25096. nameEn: C.NameEn,
  25097. color: C.Color,
  25098. lineWidth: 0,
  25099. chartType: "linear",
  25100. zIndex: 1,
  25101. visible: !0,
  25102. marker: {
  25103. radius: E && E.lineOptionList[w].radius || 5
  25104. }
  25105. };
  25106. if (C.EdbInfoList.forEach((a) => {
  25107. x.data.push({
  25108. x: a.XValue,
  25109. y: a.YValue,
  25110. dataLabels: {
  25111. enabled: a.IsShow,
  25112. allowOverlap: !0,
  25113. align: "left",
  25114. format: a.Name,
  25115. formatZh: a.Name,
  25116. formatEn: a.NameEn
  25117. }
  25118. });
  25119. }), O.push(x), C.ShowTrendLine) {
  25120. let c = {
  25121. data: C.TrendLimitData.map((p, i) => i === C.TrendLimitData.length - 1 ? {
  25122. x: p.X,
  25123. y: p.Y,
  25124. dataLabels: {
  25125. enabled: C.ShowRSquare || C.ShowFitEquation,
  25126. align: "left",
  25127. color: C.Color,
  25128. x: 20,
  25129. y: 30,
  25130. zIndex: 9,
  25131. allowOverlap: !0,
  25132. formatter: function() {
  25133. let h = "";
  25134. return C.ShowRSquare && C.ShowFitEquation ? h = `<span>${C.TrendLine}</span><br><span>R²=${C.RSquare}</span>` : C.ShowRSquare && !C.ShowFitEquation ? h = `<span>R²=${C.RSquare}</span>` : C.ShowFitEquation && !C.ShowRSquare && (h = `<span>${C.TrendLine}</span>`), h;
  25135. }
  25136. }
  25137. } : {
  25138. x: p.X,
  25139. y: p.Y
  25140. }),
  25141. type: "spline",
  25142. linkedTo: ":previous",
  25143. color: C.Color,
  25144. lineWidth: 1,
  25145. chartType: "linear",
  25146. enableMouseTracking: !1,
  25147. dashStyle: "Dash",
  25148. zIndex: 2,
  25149. visible: !0,
  25150. marker: {
  25151. enabled: !1
  25152. }
  25153. };
  25154. O.push(c);
  25155. }
  25156. }), {
  25157. title: {
  25158. text: ""
  25159. },
  25160. series: O,
  25161. yAxis: [u],
  25162. xAxis: A,
  25163. tooltip: {
  25164. formatter: function() {
  25165. let b = l.find((x) => x.Name === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), w = `<b>${b.Name}</b>`;
  25166. return w += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, w;
  25167. },
  25168. formatterCh: function() {
  25169. let b = l.find((x) => x.Name === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), w = `<b>${b.Name}</b>`;
  25170. return w += `<br><span style="color:${this.color}">●</span>${b.XName}: ${this.x} ${b.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${b.YName}: ${this.y} (${b.YDate})`, w;
  25171. },
  25172. formatterEn: function() {
  25173. let b = l.find((x) => x.NameEn === this.series.name).EdbInfoList.find((x) => x.XValue === this.x && x.YValue === this.y), w = `<b>${b.NameEn}</b>`;
  25174. return w += `<br><span style="color:${this.color}">●</span>${b.XNameEn}: ${this.x} ${b.XDate}<br>`, w += `<span style="color:${this.color}">●</span>${b.YNameEn}: ${this.y} ${b.YDate}`, w;
  25175. }
  25176. }
  25177. };
  25178. }
  25179. function nM({ DataResp: r, EdbInfoList: f, ChartInfo: E }) {
  25180. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25181. const l = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null, { DataList: y, XName: j, YName: I, XNameEn: Z, YNameEn: H, XMaxValue: U, XMinValue: F, YMaxValue: N, YMinValue: R } = r, { leftMin: S, leftMax: v, xMin: d, xMax: u } = kt;
  25182. let A = {
  25183. ...fr,
  25184. title: {
  25185. text: I,
  25186. textCh: I,
  25187. // 中文
  25188. textEn: H || I,
  25189. align: "middle",
  25190. style: {
  25191. ...l && l.xAxisOptions.style
  25192. }
  25193. },
  25194. labels: {
  25195. style: {
  25196. ...l && l.xAxisOptions.style
  25197. }
  25198. },
  25199. opposite: !1,
  25200. reversed: !1,
  25201. min: Number(S),
  25202. max: Number(v),
  25203. tickWidth: 1
  25204. }, O = {
  25205. ...Mn,
  25206. title: {
  25207. text: j,
  25208. textCh: j,
  25209. // 中文
  25210. textEn: Z || j,
  25211. align: "middle",
  25212. style: {
  25213. ...l && l.xAxisOptions.style
  25214. }
  25215. },
  25216. labels: {
  25217. style: {
  25218. ...l && l.xAxisOptions.style
  25219. }
  25220. },
  25221. min: Number(d),
  25222. max: Number(u)
  25223. }, B = [];
  25224. const C = {
  25225. //标签对应文字
  25226. 1: "最新",
  25227. 3: "Fix"
  25228. };
  25229. return y.forEach((w) => {
  25230. let x = {
  25231. data: [],
  25232. type: "scatter",
  25233. name: w.Name,
  25234. nameZh: w.Name,
  25235. nameEn: w.NameEn || w.Name,
  25236. color: w.Color,
  25237. lineWidth: 0,
  25238. chartType: "linear",
  25239. zIndex: 1
  25240. };
  25241. w.CoordinatePointData.forEach((a) => {
  25242. x.data.push({
  25243. x: a.X,
  25244. y: a.Y,
  25245. dataLabels: {
  25246. enabled: a.ShowTips === 1,
  25247. allowOverlap: !0,
  25248. align: "left",
  25249. format: C[a.DateType] || `-${a.DaysAgo}D`
  25250. }
  25251. });
  25252. }), B.push(x);
  25253. }), {
  25254. title: {
  25255. text: ""
  25256. },
  25257. series: B,
  25258. yAxis: [A],
  25259. xAxis: O,
  25260. tooltip: {
  25261. formatter: function() {
  25262. let x = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = f.find((i) => i.EdbInfoId === x.XEdbInfoId), c = f.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25263. return p += `<br><span style="color:${this.color}">●</span>${a.EdbName}: ${this.x} ${x.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${x.YDate}`, p;
  25264. },
  25265. formatterCh: function() {
  25266. let x = y.find((i) => i.Name === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = f.find((i) => i.EdbInfoId === x.XEdbInfoId), c = f.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25267. return p += `<br><span style="color:${this.color}">●</span>${a.EdbName}: ${this.x} ${x.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbName}: ${this.y} ${x.YDate}`, p;
  25268. },
  25269. formatterEn: function() {
  25270. let x = y.find((i) => i.NameEn === this.series.name).CoordinatePointData.find((i) => i.X === this.x && i.Y === this.y), a = f.find((i) => i.EdbInfoId === x.XEdbInfoId), c = f.find((i) => i.EdbInfoId === x.YEdbInfoId), p = `<b>${this.series.name}</b>`;
  25271. return p += `<br><span style="color:${this.color}">●</span>${a.EdbNameEn}: ${this.x} ${x.XDate}<br>`, p += `<span style="color:${this.color}">●</span>${c.EdbNameEn}: ${this.y} ${x.YDate}`, p;
  25272. }
  25273. }
  25274. };
  25275. }
  25276. function sM({ DataResp: r, EdbInfoList: f, ChartInfo: E }) {
  25277. kt.leftIndex = -1, kt.rightIndex = -1, kt.rightTwoIndex = -1;
  25278. const { YDataList: l, XEdbIdValue: y } = r;
  25279. let j = f.filter((F) => y.includes(F.EdbInfoId));
  25280. kt.hasLeftAxis = !0, kt.leftMin = Number(E.LeftMin), kt.leftMax = Number(E.LeftMax);
  25281. const I = E.ChartThemeStyle ? JSON.parse(E.ChartThemeStyle) : null;
  25282. let Z = {
  25283. lineWidth: 0,
  25284. tickLength: 0,
  25285. tickmarkPlacement: "on",
  25286. categories: j.map((F) => F.EdbAliasName || F.EdbName),
  25287. labels: {
  25288. allowOverlap: !0,
  25289. autoRotationLimit: 40,
  25290. style: {
  25291. ...I && I.xAxisOptions.style
  25292. }
  25293. }
  25294. }, H = [{
  25295. gridLineInterpolation: "polygon",
  25296. gridLineWidth: 1,
  25297. lineWidth: 0,
  25298. endOnTick: !1,
  25299. startOnTick: !1,
  25300. showLastLabel: !0,
  25301. // tickAmount:4,
  25302. title: {
  25303. text: E.Unit,
  25304. textCh: E.Unit,
  25305. textEn: E.UnitEn,
  25306. align: "high",
  25307. rotation: 0,
  25308. y: 5,
  25309. x: 10,
  25310. textAlign: "left",
  25311. reserveSpace: !1,
  25312. style: {
  25313. ...I && I.yAxisOptions.style
  25314. }
  25315. },
  25316. labels: {
  25317. allowOverlap: !0,
  25318. style: {
  25319. ...I && I.yAxisOptions.style
  25320. }
  25321. },
  25322. min: Number(E.LeftMin),
  25323. max: Number(E.LeftMax)
  25324. }], U = [];
  25325. return l.forEach((F, N) => {
  25326. const R = I ? N % I.lineOptionList.length : N;
  25327. let S = {
  25328. name: F.Name || F.Date,
  25329. nameZh: F.Name || F.Date,
  25330. nameEn: F.Date,
  25331. data: F.Value,
  25332. pointPlacement: "on",
  25333. type: I && I.lineOptionList[R].lineType || "line",
  25334. dashStyle: I && I.lineOptionList[R].dashStyle || "Solid",
  25335. yAxis: 0,
  25336. color: F.Color,
  25337. lineWidth: I && I.lineOptionList[R].lineWidth || 1,
  25338. chartType: "linear"
  25339. };
  25340. U.push(S);
  25341. }), {
  25342. chart: {
  25343. ...go.chart,
  25344. ...I == null ? void 0 : I.drawOption,
  25345. spacing: [2, 10, 2, 10],
  25346. polar: !0
  25347. },
  25348. title: {
  25349. text: ""
  25350. },
  25351. pane: {
  25352. size: "85%"
  25353. },
  25354. series: U,
  25355. yAxis: H,
  25356. xAxis: Z
  25357. };
  25358. }
  25359. function no(r = "rgba(51, 51, 51, 1)") {
  25360. const f = r.match(/(\d(\.\d+)?)+/g) || ["", "", "", 1];
  25361. return parseFloat(f[3] || 1);
  25362. }
  25363. function oM(r = [], f, E = {}) {
  25364. if (f.ChartType === 5) {
  25365. r[1] && (kt.leftMin = r[1].MinData, kt.leftMax = r[1].MaxData);
  25366. return;
  25367. }
  25368. const l = r.filter((I) => I.IsAxis === 1).map((I) => [Number(I.MinData), Number(I.MaxData)]), y = r.filter((I) => !I.IsAxis).map((I) => [Number(I.MinData), Number(I.MaxData)]), j = r.filter((I) => I.IsAxis === 2).map((I) => [Number(I.MinData), Number(I.MaxData)]);
  25369. if (l.length) {
  25370. const {
  25371. Max: I,
  25372. Min: Z
  25373. } = Sn(l.flat());
  25374. kt.leftMin = Z, kt.leftMax = I;
  25375. }
  25376. if (y.length) {
  25377. const {
  25378. Max: I,
  25379. Min: Z
  25380. } = Sn(y.flat());
  25381. kt.rightMin = Z, kt.rightMax = I;
  25382. }
  25383. if (j.length) {
  25384. const {
  25385. Max: I,
  25386. Min: Z
  25387. } = Sn(j.flat());
  25388. kt.rightTwoMin = Z, kt.rightTwoMax = I;
  25389. }
  25390. f.ChartType === 2 && E.RightAxis && E.RightAxis.IsAdd && E.RightAxis.IsShow && (E.RightAxis.IndicatorType === 1 ? (kt.rightMin = E.RightAxis.EdbInfoList[0].MinData || 0, kt.rightMax = E.RightAxis.EdbInfoList[0].MaxData || 0) : (kt.rightMin = r[1].MinData || 0, kt.rightMax = r[1].MaxData || 0));
  25391. }
  25392. function Sn(r) {
  25393. return {
  25394. Max: Math.max(...r),
  25395. Min: Math.min(...r)
  25396. };
  25397. }
  25398. function aM({ EdbInfoList: r, ChartInfo: f, DataResp: E }) {
  25399. const {
  25400. //左右轴极值字段
  25401. LeftMin: l = 0,
  25402. LeftMax: y = 0,
  25403. RightMin: j = 0,
  25404. RightMax: I = 0,
  25405. Right2Min: Z = 0,
  25406. Right2Max: H = 0,
  25407. MinMaxSave: U
  25408. } = f;
  25409. U ? (kt.leftMin = Number(l), kt.leftMax = Number(y), kt.rightMin = Number(j), kt.rightMax = Number(I), kt.rightTwoMin = Number(Z), kt.rightTwoMax = Number(H), lM(r, f), console.log("check", kt.leftMin, kt.leftMax)) : oM(r, f, E || {});
  25410. }
  25411. function lM(r = [], f) {
  25412. if (f.ChartType === 5) {
  25413. r[1] && Number(kt.leftMin) === 0 && Number(kt.leftMax) === 0 && (kt.leftMin = r[1].MinData, kt.leftMax = r[1].MaxData);
  25414. return;
  25415. }
  25416. if (Number(kt.leftMin) === 0 && Number(kt.leftMax) === 0) {
  25417. const E = r.filter((l) => l.IsAxis === 1).map((l) => [Number(l.MinData), Number(l.MaxData)]);
  25418. if (E.length) {
  25419. const { Max: l, Min: y } = Sn(E.flat());
  25420. kt.leftMin = y, kt.leftMax = l;
  25421. }
  25422. }
  25423. if (Number(kt.rightMin) === 0 && Number(kt.rightMax) === 0) {
  25424. const E = r.filter((l) => !l.IsAxis).map((l) => [Number(l.MinData), Number(l.MaxData)]);
  25425. if (E.length) {
  25426. const { Max: l, Min: y } = Sn(E.flat());
  25427. kt.rightMin = y, kt.rightMax = l;
  25428. }
  25429. }
  25430. if (Number(kt.rightTwoMin) === 0 && Number(kt.rightTwoMax) === 0) {
  25431. const E = r.filter((l) => l.IsAxis === 2).map((l) => [Number(l.MinData), Number(l.MaxData)]);
  25432. if (E.length) {
  25433. const { Max: l, Min: y } = Sn(E.flat());
  25434. kt.rightTwoMin = y, kt.rightTwoMax = l;
  25435. }
  25436. }
  25437. }
  25438. function Uu(r, f) {
  25439. return function() {
  25440. return r.apply(f, arguments);
  25441. };
  25442. }
  25443. const { toString: hM } = Object.prototype, { getPrototypeOf: Kl } = Object, Bo = ((r) => (f) => {
  25444. const E = hM.call(f);
  25445. return r[E] || (r[E] = E.slice(8, -1).toLowerCase());
  25446. })(/* @__PURE__ */ Object.create(null)), yr = (r) => (r = r.toLowerCase(), (f) => Bo(f) === r), jo = (r) => (f) => typeof f === r, { isArray: An } = Array, ns = jo("undefined");
  25447. function cM(r) {
  25448. return r !== null && !ns(r) && r.constructor !== null && !ns(r.constructor) && dr(r.constructor.isBuffer) && r.constructor.isBuffer(r);
  25449. }
  25450. const Vu = yr("ArrayBuffer");
  25451. function pM(r) {
  25452. let f;
  25453. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? f = ArrayBuffer.isView(r) : f = r && r.buffer && Vu(r.buffer), f;
  25454. }
  25455. const uM = jo("string"), dr = jo("function"), $u = jo("number"), Jl = (r) => r !== null && typeof r == "object", dM = (r) => r === !0 || r === !1, ho = (r) => {
  25456. if (Bo(r) !== "object")
  25457. return !1;
  25458. const f = Kl(r);
  25459. return (f === null || f === Object.prototype || Object.getPrototypeOf(f) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r);
  25460. }, fM = yr("Date"), gM = yr("File"), mM = yr("Blob"), yM = yr("FileList"), vM = (r) => Jl(r) && dr(r.pipe), xM = (r) => {
  25461. let f;
  25462. return r && (typeof FormData == "function" && r instanceof FormData || dr(r.append) && ((f = Bo(r)) === "formdata" || // detect form-data instance
  25463. f === "object" && dr(r.toString) && r.toString() === "[object FormData]"));
  25464. }, bM = yr("URLSearchParams"), SM = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  25465. function hs(r, f, { allOwnKeys: E = !1 } = {}) {
  25466. if (r === null || typeof r > "u")
  25467. return;
  25468. let l, y;
  25469. if (typeof r != "object" && (r = [r]), An(r))
  25470. for (l = 0, y = r.length; l < y; l++)
  25471. f.call(null, r[l], l, r);
  25472. else {
  25473. const j = E ? Object.getOwnPropertyNames(r) : Object.keys(r), I = j.length;
  25474. let Z;
  25475. for (l = 0; l < I; l++)
  25476. Z = j[l], f.call(null, r[Z], Z, r);
  25477. }
  25478. }
  25479. function Zu(r, f) {
  25480. f = f.toLowerCase();
  25481. const E = Object.keys(r);
  25482. let l = E.length, y;
  25483. for (; l-- > 0; )
  25484. if (y = E[l], f === y.toLowerCase())
  25485. return y;
  25486. return null;
  25487. }
  25488. const Ku = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ju = (r) => !ns(r) && r !== Ku;
  25489. function Cl() {
  25490. const { caseless: r } = Ju(this) && this || {}, f = {}, E = (l, y) => {
  25491. const j = r && Zu(f, y) || y;
  25492. ho(f[j]) && ho(l) ? f[j] = Cl(f[j], l) : ho(l) ? f[j] = Cl({}, l) : An(l) ? f[j] = l.slice() : f[j] = l;
  25493. };
  25494. for (let l = 0, y = arguments.length; l < y; l++)
  25495. arguments[l] && hs(arguments[l], E);
  25496. return f;
  25497. }
  25498. const wM = (r, f, E, { allOwnKeys: l } = {}) => (hs(f, (y, j) => {
  25499. E && dr(y) ? r[j] = Uu(y, E) : r[j] = y;
  25500. }, { allOwnKeys: l }), r), MM = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), CM = (r, f, E, l) => {
  25501. r.prototype = Object.create(f.prototype, l), r.prototype.constructor = r, Object.defineProperty(r, "super", {
  25502. value: f.prototype
  25503. }), E && Object.assign(r.prototype, E);
  25504. }, kM = (r, f, E, l) => {
  25505. let y, j, I;
  25506. const Z = {};
  25507. if (f = f || {}, r == null)
  25508. return f;
  25509. do {
  25510. for (y = Object.getOwnPropertyNames(r), j = y.length; j-- > 0; )
  25511. I = y[j], (!l || l(I, r, f)) && !Z[I] && (f[I] = r[I], Z[I] = !0);
  25512. r = E !== !1 && Kl(r);
  25513. } while (r && (!E || E(r, f)) && r !== Object.prototype);
  25514. return f;
  25515. }, AM = (r, f, E) => {
  25516. r = String(r), (E === void 0 || E > r.length) && (E = r.length), E -= f.length;
  25517. const l = r.indexOf(f, E);
  25518. return l !== -1 && l === E;
  25519. }, TM = (r) => {
  25520. if (!r)
  25521. return null;
  25522. if (An(r))
  25523. return r;
  25524. let f = r.length;
  25525. if (!$u(f))
  25526. return null;
  25527. const E = new Array(f);
  25528. for (; f-- > 0; )
  25529. E[f] = r[f];
  25530. return E;
  25531. }, PM = ((r) => (f) => r && f instanceof r)(typeof Uint8Array < "u" && Kl(Uint8Array)), EM = (r, f) => {
  25532. const l = (r && r[Symbol.iterator]).call(r);
  25533. let y;
  25534. for (; (y = l.next()) && !y.done; ) {
  25535. const j = y.value;
  25536. f.call(r, j[0], j[1]);
  25537. }
  25538. }, OM = (r, f) => {
  25539. let E;
  25540. const l = [];
  25541. for (; (E = r.exec(f)) !== null; )
  25542. l.push(E);
  25543. return l;
  25544. }, LM = yr("HTMLFormElement"), _M = (r) => r.toLowerCase().replace(
  25545. /[-_\s]([a-z\d])(\w*)/g,
  25546. function(E, l, y) {
  25547. return l.toUpperCase() + y;
  25548. }
  25549. ), Np = (({ hasOwnProperty: r }) => (f, E) => r.call(f, E))(Object.prototype), DM = yr("RegExp"), qu = (r, f) => {
  25550. const E = Object.getOwnPropertyDescriptors(r), l = {};
  25551. hs(E, (y, j) => {
  25552. f(y, j, r) !== !1 && (l[j] = y);
  25553. }), Object.defineProperties(r, l);
  25554. }, IM = (r) => {
  25555. qu(r, (f, E) => {
  25556. if (dr(r) && ["arguments", "caller", "callee"].indexOf(E) !== -1)
  25557. return !1;
  25558. const l = r[E];
  25559. if (dr(l)) {
  25560. if (f.enumerable = !1, "writable" in f) {
  25561. f.writable = !1;
  25562. return;
  25563. }
  25564. f.set || (f.set = () => {
  25565. throw Error("Can not rewrite read-only method '" + E + "'");
  25566. });
  25567. }
  25568. });
  25569. }, RM = (r, f) => {
  25570. const E = {}, l = (y) => {
  25571. y.forEach((j) => {
  25572. E[j] = !0;
  25573. });
  25574. };
  25575. return An(r) ? l(r) : l(String(r).split(f)), E;
  25576. }, NM = () => {
  25577. }, BM = (r, f) => (r = +r, Number.isFinite(r) ? r : f), ll = "abcdefghijklmnopqrstuvwxyz", Bp = "0123456789", Qu = {
  25578. DIGIT: Bp,
  25579. ALPHA: ll,
  25580. ALPHA_DIGIT: ll + ll.toUpperCase() + Bp
  25581. }, jM = (r = 16, f = Qu.ALPHA_DIGIT) => {
  25582. let E = "";
  25583. const { length: l } = f;
  25584. for (; r--; )
  25585. E += f[Math.random() * l | 0];
  25586. return E;
  25587. };
  25588. function WM(r) {
  25589. return !!(r && dr(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]);
  25590. }
  25591. const zM = (r) => {
  25592. const f = new Array(10), E = (l, y) => {
  25593. if (Jl(l)) {
  25594. if (f.indexOf(l) >= 0)
  25595. return;
  25596. if (!("toJSON" in l)) {
  25597. f[y] = l;
  25598. const j = An(l) ? [] : {};
  25599. return hs(l, (I, Z) => {
  25600. const H = E(I, y + 1);
  25601. !ns(H) && (j[Z] = H);
  25602. }), f[y] = void 0, j;
  25603. }
  25604. }
  25605. return l;
  25606. };
  25607. return E(r, 0);
  25608. }, _t = {
  25609. isArray: An,
  25610. isArrayBuffer: Vu,
  25611. isBuffer: cM,
  25612. isFormData: xM,
  25613. isArrayBufferView: pM,
  25614. isString: uM,
  25615. isNumber: $u,
  25616. isBoolean: dM,
  25617. isObject: Jl,
  25618. isPlainObject: ho,
  25619. isUndefined: ns,
  25620. isDate: fM,
  25621. isFile: gM,
  25622. isBlob: mM,
  25623. isRegExp: DM,
  25624. isFunction: dr,
  25625. isStream: vM,
  25626. isURLSearchParams: bM,
  25627. isTypedArray: PM,
  25628. isFileList: yM,
  25629. forEach: hs,
  25630. merge: Cl,
  25631. extend: wM,
  25632. trim: SM,
  25633. stripBOM: MM,
  25634. inherits: CM,
  25635. toFlatObject: kM,
  25636. kindOf: Bo,
  25637. kindOfTest: yr,
  25638. endsWith: AM,
  25639. toArray: TM,
  25640. forEachEntry: EM,
  25641. matchAll: OM,
  25642. isHTMLForm: LM,
  25643. hasOwnProperty: Np,
  25644. hasOwnProp: Np,
  25645. // an alias to avoid ESLint no-prototype-builtins detection
  25646. reduceDescriptors: qu,
  25647. freezeMethods: IM,
  25648. toObjectSet: RM,
  25649. toCamelCase: _M,
  25650. noop: NM,
  25651. toFiniteNumber: BM,
  25652. findKey: Zu,
  25653. global: Ku,
  25654. isContextDefined: Ju,
  25655. ALPHABET: Qu,
  25656. generateString: jM,
  25657. isSpecCompliantForm: WM,
  25658. toJSONObject: zM
  25659. };
  25660. function fe(r, f, E, l, y) {
  25661. Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = r, this.name = "AxiosError", f && (this.code = f), E && (this.config = E), l && (this.request = l), y && (this.response = y);
  25662. }
  25663. _t.inherits(fe, Error, {
  25664. toJSON: function() {
  25665. return {
  25666. // Standard
  25667. message: this.message,
  25668. name: this.name,
  25669. // Microsoft
  25670. description: this.description,
  25671. number: this.number,
  25672. // Mozilla
  25673. fileName: this.fileName,
  25674. lineNumber: this.lineNumber,
  25675. columnNumber: this.columnNumber,
  25676. stack: this.stack,
  25677. // Axios
  25678. config: _t.toJSONObject(this.config),
  25679. code: this.code,
  25680. status: this.response && this.response.status ? this.response.status : null
  25681. };
  25682. }
  25683. });
  25684. const td = fe.prototype, ed = {};
  25685. [
  25686. "ERR_BAD_OPTION_VALUE",
  25687. "ERR_BAD_OPTION",
  25688. "ECONNABORTED",
  25689. "ETIMEDOUT",
  25690. "ERR_NETWORK",
  25691. "ERR_FR_TOO_MANY_REDIRECTS",
  25692. "ERR_DEPRECATED",
  25693. "ERR_BAD_RESPONSE",
  25694. "ERR_BAD_REQUEST",
  25695. "ERR_CANCELED",
  25696. "ERR_NOT_SUPPORT",
  25697. "ERR_INVALID_URL"
  25698. // eslint-disable-next-line func-names
  25699. ].forEach((r) => {
  25700. ed[r] = { value: r };
  25701. });
  25702. Object.defineProperties(fe, ed);
  25703. Object.defineProperty(td, "isAxiosError", { value: !0 });
  25704. fe.from = (r, f, E, l, y, j) => {
  25705. const I = Object.create(td);
  25706. return _t.toFlatObject(r, I, function(H) {
  25707. return H !== Error.prototype;
  25708. }, (Z) => Z !== "isAxiosError"), fe.call(I, r.message, f, E, l, y), I.cause = r, I.name = r.name, j && Object.assign(I, j), I;
  25709. };
  25710. const YM = null;
  25711. function kl(r) {
  25712. return _t.isPlainObject(r) || _t.isArray(r);
  25713. }
  25714. function id(r) {
  25715. return _t.endsWith(r, "[]") ? r.slice(0, -2) : r;
  25716. }
  25717. function jp(r, f, E) {
  25718. return r ? r.concat(f).map(function(y, j) {
  25719. return y = id(y), !E && j ? "[" + y + "]" : y;
  25720. }).join(E ? "." : "") : f;
  25721. }
  25722. function XM(r) {
  25723. return _t.isArray(r) && !r.some(kl);
  25724. }
  25725. const GM = _t.toFlatObject(_t, {}, null, function(f) {
  25726. return /^is[A-Z]/.test(f);
  25727. });
  25728. function Wo(r, f, E) {
  25729. if (!_t.isObject(r))
  25730. throw new TypeError("target must be an object");
  25731. f = f || new FormData(), E = _t.toFlatObject(E, {
  25732. metaTokens: !0,
  25733. dots: !1,
  25734. indexes: !1
  25735. }, !1, function(d, u) {
  25736. return !_t.isUndefined(u[d]);
  25737. });
  25738. const l = E.metaTokens, y = E.visitor || F, j = E.dots, I = E.indexes, H = (E.Blob || typeof Blob < "u" && Blob) && _t.isSpecCompliantForm(f);
  25739. if (!_t.isFunction(y))
  25740. throw new TypeError("visitor must be a function");
  25741. function U(v) {
  25742. if (v === null)
  25743. return "";
  25744. if (_t.isDate(v))
  25745. return v.toISOString();
  25746. if (!H && _t.isBlob(v))
  25747. throw new fe("Blob is not supported. Use a Buffer instead.");
  25748. return _t.isArrayBuffer(v) || _t.isTypedArray(v) ? H && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v;
  25749. }
  25750. function F(v, d, u) {
  25751. let A = v;
  25752. if (v && !u && typeof v == "object") {
  25753. if (_t.endsWith(d, "{}"))
  25754. d = l ? d : d.slice(0, -2), v = JSON.stringify(v);
  25755. else if (_t.isArray(v) && XM(v) || (_t.isFileList(v) || _t.endsWith(d, "[]")) && (A = _t.toArray(v)))
  25756. return d = id(d), A.forEach(function(B, C) {
  25757. !(_t.isUndefined(B) || B === null) && f.append(
  25758. // eslint-disable-next-line no-nested-ternary
  25759. I === !0 ? jp([d], C, j) : I === null ? d : d + "[]",
  25760. U(B)
  25761. );
  25762. }), !1;
  25763. }
  25764. return kl(v) ? !0 : (f.append(jp(u, d, j), U(v)), !1);
  25765. }
  25766. const N = [], R = Object.assign(GM, {
  25767. defaultVisitor: F,
  25768. convertValue: U,
  25769. isVisitable: kl
  25770. });
  25771. function S(v, d) {
  25772. if (!_t.isUndefined(v)) {
  25773. if (N.indexOf(v) !== -1)
  25774. throw Error("Circular reference detected in " + d.join("."));
  25775. N.push(v), _t.forEach(v, function(A, O) {
  25776. (!(_t.isUndefined(A) || A === null) && y.call(
  25777. f,
  25778. A,
  25779. _t.isString(O) ? O.trim() : O,
  25780. d,
  25781. R
  25782. )) === !0 && S(A, d ? d.concat(O) : [O]);
  25783. }), N.pop();
  25784. }
  25785. }
  25786. if (!_t.isObject(r))
  25787. throw new TypeError("data must be an object");
  25788. return S(r), f;
  25789. }
  25790. function Wp(r) {
  25791. const f = {
  25792. "!": "%21",
  25793. "'": "%27",
  25794. "(": "%28",
  25795. ")": "%29",
  25796. "~": "%7E",
  25797. "%20": "+",
  25798. "%00": "\0"
  25799. };
  25800. return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g, function(l) {
  25801. return f[l];
  25802. });
  25803. }
  25804. function ql(r, f) {
  25805. this._pairs = [], r && Wo(r, this, f);
  25806. }
  25807. const rd = ql.prototype;
  25808. rd.append = function(f, E) {
  25809. this._pairs.push([f, E]);
  25810. };
  25811. rd.toString = function(f) {
  25812. const E = f ? function(l) {
  25813. return f.call(this, l, Wp);
  25814. } : Wp;
  25815. return this._pairs.map(function(y) {
  25816. return E(y[0]) + "=" + E(y[1]);
  25817. }, "").join("&");
  25818. };
  25819. function HM(r) {
  25820. return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
  25821. }
  25822. function nd(r, f, E) {
  25823. if (!f)
  25824. return r;
  25825. const l = E && E.encode || HM, y = E && E.serialize;
  25826. let j;
  25827. if (y ? j = y(f, E) : j = _t.isURLSearchParams(f) ? f.toString() : new ql(f, E).toString(l), j) {
  25828. const I = r.indexOf("#");
  25829. I !== -1 && (r = r.slice(0, I)), r += (r.indexOf("?") === -1 ? "?" : "&") + j;
  25830. }
  25831. return r;
  25832. }
  25833. class FM {
  25834. constructor() {
  25835. this.handlers = [];
  25836. }
  25837. /**
  25838. * Add a new interceptor to the stack
  25839. *
  25840. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  25841. * @param {Function} rejected The function to handle `reject` for a `Promise`
  25842. *
  25843. * @return {Number} An ID used to remove interceptor later
  25844. */
  25845. use(f, E, l) {
  25846. return this.handlers.push({
  25847. fulfilled: f,
  25848. rejected: E,
  25849. synchronous: l ? l.synchronous : !1,
  25850. runWhen: l ? l.runWhen : null
  25851. }), this.handlers.length - 1;
  25852. }
  25853. /**
  25854. * Remove an interceptor from the stack
  25855. *
  25856. * @param {Number} id The ID that was returned by `use`
  25857. *
  25858. * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
  25859. */
  25860. eject(f) {
  25861. this.handlers[f] && (this.handlers[f] = null);
  25862. }
  25863. /**
  25864. * Clear all interceptors from the stack
  25865. *
  25866. * @returns {void}
  25867. */
  25868. clear() {
  25869. this.handlers && (this.handlers = []);
  25870. }
  25871. /**
  25872. * Iterate over all the registered interceptors
  25873. *
  25874. * This method is particularly useful for skipping over any
  25875. * interceptors that may have become `null` calling `eject`.
  25876. *
  25877. * @param {Function} fn The function to call for each interceptor
  25878. *
  25879. * @returns {void}
  25880. */
  25881. forEach(f) {
  25882. _t.forEach(this.handlers, function(l) {
  25883. l !== null && f(l);
  25884. });
  25885. }
  25886. }
  25887. const zp = FM, sd = {
  25888. silentJSONParsing: !0,
  25889. forcedJSONParsing: !0,
  25890. clarifyTimeoutError: !1
  25891. }, UM = typeof URLSearchParams < "u" ? URLSearchParams : ql, VM = typeof FormData < "u" ? FormData : null, $M = typeof Blob < "u" ? Blob : null, ZM = (() => {
  25892. let r;
  25893. return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
  25894. })(), KM = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
  25895. self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Ui = {
  25896. isBrowser: !0,
  25897. classes: {
  25898. URLSearchParams: UM,
  25899. FormData: VM,
  25900. Blob: $M
  25901. },
  25902. isStandardBrowserEnv: ZM,
  25903. isStandardBrowserWebWorkerEnv: KM,
  25904. protocols: ["http", "https", "file", "blob", "url", "data"]
  25905. };
  25906. function JM(r, f) {
  25907. return Wo(r, new Ui.classes.URLSearchParams(), Object.assign({
  25908. visitor: function(E, l, y, j) {
  25909. return Ui.isNode && _t.isBuffer(E) ? (this.append(l, E.toString("base64")), !1) : j.defaultVisitor.apply(this, arguments);
  25910. }
  25911. }, f));
  25912. }
  25913. function qM(r) {
  25914. return _t.matchAll(/\w+|\[(\w*)]/g, r).map((f) => f[0] === "[]" ? "" : f[1] || f[0]);
  25915. }
  25916. function QM(r) {
  25917. const f = {}, E = Object.keys(r);
  25918. let l;
  25919. const y = E.length;
  25920. let j;
  25921. for (l = 0; l < y; l++)
  25922. j = E[l], f[j] = r[j];
  25923. return f;
  25924. }
  25925. function od(r) {
  25926. function f(E, l, y, j) {
  25927. let I = E[j++];
  25928. const Z = Number.isFinite(+I), H = j >= E.length;
  25929. return I = !I && _t.isArray(y) ? y.length : I, H ? (_t.hasOwnProp(y, I) ? y[I] = [y[I], l] : y[I] = l, !Z) : ((!y[I] || !_t.isObject(y[I])) && (y[I] = []), f(E, l, y[I], j) && _t.isArray(y[I]) && (y[I] = QM(y[I])), !Z);
  25930. }
  25931. if (_t.isFormData(r) && _t.isFunction(r.entries)) {
  25932. const E = {};
  25933. return _t.forEachEntry(r, (l, y) => {
  25934. f(qM(l), y, E, 0);
  25935. }), E;
  25936. }
  25937. return null;
  25938. }
  25939. const tC = {
  25940. "Content-Type": void 0
  25941. };
  25942. function eC(r, f, E) {
  25943. if (_t.isString(r))
  25944. try {
  25945. return (f || JSON.parse)(r), _t.trim(r);
  25946. } catch (l) {
  25947. if (l.name !== "SyntaxError")
  25948. throw l;
  25949. }
  25950. return (E || JSON.stringify)(r);
  25951. }
  25952. const zo = {
  25953. transitional: sd,
  25954. adapter: ["xhr", "http"],
  25955. transformRequest: [function(f, E) {
  25956. const l = E.getContentType() || "", y = l.indexOf("application/json") > -1, j = _t.isObject(f);
  25957. if (j && _t.isHTMLForm(f) && (f = new FormData(f)), _t.isFormData(f))
  25958. return y && y ? JSON.stringify(od(f)) : f;
  25959. if (_t.isArrayBuffer(f) || _t.isBuffer(f) || _t.isStream(f) || _t.isFile(f) || _t.isBlob(f))
  25960. return f;
  25961. if (_t.isArrayBufferView(f))
  25962. return f.buffer;
  25963. if (_t.isURLSearchParams(f))
  25964. return E.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), f.toString();
  25965. let Z;
  25966. if (j) {
  25967. if (l.indexOf("application/x-www-form-urlencoded") > -1)
  25968. return JM(f, this.formSerializer).toString();
  25969. if ((Z = _t.isFileList(f)) || l.indexOf("multipart/form-data") > -1) {
  25970. const H = this.env && this.env.FormData;
  25971. return Wo(
  25972. Z ? { "files[]": f } : f,
  25973. H && new H(),
  25974. this.formSerializer
  25975. );
  25976. }
  25977. }
  25978. return j || y ? (E.setContentType("application/json", !1), eC(f)) : f;
  25979. }],
  25980. transformResponse: [function(f) {
  25981. const E = this.transitional || zo.transitional, l = E && E.forcedJSONParsing, y = this.responseType === "json";
  25982. if (f && _t.isString(f) && (l && !this.responseType || y)) {
  25983. const I = !(E && E.silentJSONParsing) && y;
  25984. try {
  25985. return JSON.parse(f);
  25986. } catch (Z) {
  25987. if (I)
  25988. throw Z.name === "SyntaxError" ? fe.from(Z, fe.ERR_BAD_RESPONSE, this, null, this.response) : Z;
  25989. }
  25990. }
  25991. return f;
  25992. }],
  25993. /**
  25994. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  25995. * timeout is not created.
  25996. */
  25997. timeout: 0,
  25998. xsrfCookieName: "XSRF-TOKEN",
  25999. xsrfHeaderName: "X-XSRF-TOKEN",
  26000. maxContentLength: -1,
  26001. maxBodyLength: -1,
  26002. env: {
  26003. FormData: Ui.classes.FormData,
  26004. Blob: Ui.classes.Blob
  26005. },
  26006. validateStatus: function(f) {
  26007. return f >= 200 && f < 300;
  26008. },
  26009. headers: {
  26010. common: {
  26011. Accept: "application/json, text/plain, */*"
  26012. }
  26013. }
  26014. };
  26015. _t.forEach(["delete", "get", "head"], function(f) {
  26016. zo.headers[f] = {};
  26017. });
  26018. _t.forEach(["post", "put", "patch"], function(f) {
  26019. zo.headers[f] = _t.merge(tC);
  26020. });
  26021. const Ql = zo, iC = _t.toObjectSet([
  26022. "age",
  26023. "authorization",
  26024. "content-length",
  26025. "content-type",
  26026. "etag",
  26027. "expires",
  26028. "from",
  26029. "host",
  26030. "if-modified-since",
  26031. "if-unmodified-since",
  26032. "last-modified",
  26033. "location",
  26034. "max-forwards",
  26035. "proxy-authorization",
  26036. "referer",
  26037. "retry-after",
  26038. "user-agent"
  26039. ]), rC = (r) => {
  26040. const f = {};
  26041. let E, l, y;
  26042. return r && r.split(`
  26043. `).forEach(function(I) {
  26044. y = I.indexOf(":"), E = I.substring(0, y).trim().toLowerCase(), l = I.substring(y + 1).trim(), !(!E || f[E] && iC[E]) && (E === "set-cookie" ? f[E] ? f[E].push(l) : f[E] = [l] : f[E] = f[E] ? f[E] + ", " + l : l);
  26045. }), f;
  26046. }, Yp = Symbol("internals");
  26047. function Zn(r) {
  26048. return r && String(r).trim().toLowerCase();
  26049. }
  26050. function co(r) {
  26051. return r === !1 || r == null ? r : _t.isArray(r) ? r.map(co) : String(r);
  26052. }
  26053. function nC(r) {
  26054. const f = /* @__PURE__ */ Object.create(null), E = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  26055. let l;
  26056. for (; l = E.exec(r); )
  26057. f[l[1]] = l[2];
  26058. return f;
  26059. }
  26060. const sC = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
  26061. function hl(r, f, E, l, y) {
  26062. if (_t.isFunction(l))
  26063. return l.call(this, f, E);
  26064. if (y && (f = E), !!_t.isString(f)) {
  26065. if (_t.isString(l))
  26066. return f.indexOf(l) !== -1;
  26067. if (_t.isRegExp(l))
  26068. return l.test(f);
  26069. }
  26070. }
  26071. function oC(r) {
  26072. return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (f, E, l) => E.toUpperCase() + l);
  26073. }
  26074. function aC(r, f) {
  26075. const E = _t.toCamelCase(" " + f);
  26076. ["get", "set", "has"].forEach((l) => {
  26077. Object.defineProperty(r, l + E, {
  26078. value: function(y, j, I) {
  26079. return this[l].call(this, f, y, j, I);
  26080. },
  26081. configurable: !0
  26082. });
  26083. });
  26084. }
  26085. class Yo {
  26086. constructor(f) {
  26087. f && this.set(f);
  26088. }
  26089. set(f, E, l) {
  26090. const y = this;
  26091. function j(Z, H, U) {
  26092. const F = Zn(H);
  26093. if (!F)
  26094. throw new Error("header name must be a non-empty string");
  26095. const N = _t.findKey(y, F);
  26096. (!N || y[N] === void 0 || U === !0 || U === void 0 && y[N] !== !1) && (y[N || H] = co(Z));
  26097. }
  26098. const I = (Z, H) => _t.forEach(Z, (U, F) => j(U, F, H));
  26099. return _t.isPlainObject(f) || f instanceof this.constructor ? I(f, E) : _t.isString(f) && (f = f.trim()) && !sC(f) ? I(rC(f), E) : f != null && j(E, f, l), this;
  26100. }
  26101. get(f, E) {
  26102. if (f = Zn(f), f) {
  26103. const l = _t.findKey(this, f);
  26104. if (l) {
  26105. const y = this[l];
  26106. if (!E)
  26107. return y;
  26108. if (E === !0)
  26109. return nC(y);
  26110. if (_t.isFunction(E))
  26111. return E.call(this, y, l);
  26112. if (_t.isRegExp(E))
  26113. return E.exec(y);
  26114. throw new TypeError("parser must be boolean|regexp|function");
  26115. }
  26116. }
  26117. }
  26118. has(f, E) {
  26119. if (f = Zn(f), f) {
  26120. const l = _t.findKey(this, f);
  26121. return !!(l && this[l] !== void 0 && (!E || hl(this, this[l], l, E)));
  26122. }
  26123. return !1;
  26124. }
  26125. delete(f, E) {
  26126. const l = this;
  26127. let y = !1;
  26128. function j(I) {
  26129. if (I = Zn(I), I) {
  26130. const Z = _t.findKey(l, I);
  26131. Z && (!E || hl(l, l[Z], Z, E)) && (delete l[Z], y = !0);
  26132. }
  26133. }
  26134. return _t.isArray(f) ? f.forEach(j) : j(f), y;
  26135. }
  26136. clear(f) {
  26137. const E = Object.keys(this);
  26138. let l = E.length, y = !1;
  26139. for (; l--; ) {
  26140. const j = E[l];
  26141. (!f || hl(this, this[j], j, f, !0)) && (delete this[j], y = !0);
  26142. }
  26143. return y;
  26144. }
  26145. normalize(f) {
  26146. const E = this, l = {};
  26147. return _t.forEach(this, (y, j) => {
  26148. const I = _t.findKey(l, j);
  26149. if (I) {
  26150. E[I] = co(y), delete E[j];
  26151. return;
  26152. }
  26153. const Z = f ? oC(j) : String(j).trim();
  26154. Z !== j && delete E[j], E[Z] = co(y), l[Z] = !0;
  26155. }), this;
  26156. }
  26157. concat(...f) {
  26158. return this.constructor.concat(this, ...f);
  26159. }
  26160. toJSON(f) {
  26161. const E = /* @__PURE__ */ Object.create(null);
  26162. return _t.forEach(this, (l, y) => {
  26163. l != null && l !== !1 && (E[y] = f && _t.isArray(l) ? l.join(", ") : l);
  26164. }), E;
  26165. }
  26166. [Symbol.iterator]() {
  26167. return Object.entries(this.toJSON())[Symbol.iterator]();
  26168. }
  26169. toString() {
  26170. return Object.entries(this.toJSON()).map(([f, E]) => f + ": " + E).join(`
  26171. `);
  26172. }
  26173. get [Symbol.toStringTag]() {
  26174. return "AxiosHeaders";
  26175. }
  26176. static from(f) {
  26177. return f instanceof this ? f : new this(f);
  26178. }
  26179. static concat(f, ...E) {
  26180. const l = new this(f);
  26181. return E.forEach((y) => l.set(y)), l;
  26182. }
  26183. static accessor(f) {
  26184. const l = (this[Yp] = this[Yp] = {
  26185. accessors: {}
  26186. }).accessors, y = this.prototype;
  26187. function j(I) {
  26188. const Z = Zn(I);
  26189. l[Z] || (aC(y, I), l[Z] = !0);
  26190. }
  26191. return _t.isArray(f) ? f.forEach(j) : j(f), this;
  26192. }
  26193. }
  26194. Yo.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
  26195. _t.freezeMethods(Yo.prototype);
  26196. _t.freezeMethods(Yo);
  26197. const pr = Yo;
  26198. function cl(r, f) {
  26199. const E = this || Ql, l = f || E, y = pr.from(l.headers);
  26200. let j = l.data;
  26201. return _t.forEach(r, function(Z) {
  26202. j = Z.call(E, j, y.normalize(), f ? f.status : void 0);
  26203. }), y.normalize(), j;
  26204. }
  26205. function ad(r) {
  26206. return !!(r && r.__CANCEL__);
  26207. }
  26208. function cs(r, f, E) {
  26209. fe.call(this, r ?? "canceled", fe.ERR_CANCELED, f, E), this.name = "CanceledError";
  26210. }
  26211. _t.inherits(cs, fe, {
  26212. __CANCEL__: !0
  26213. });
  26214. function lC(r, f, E) {
  26215. const l = E.config.validateStatus;
  26216. !E.status || !l || l(E.status) ? r(E) : f(new fe(
  26217. "Request failed with status code " + E.status,
  26218. [fe.ERR_BAD_REQUEST, fe.ERR_BAD_RESPONSE][Math.floor(E.status / 100) - 4],
  26219. E.config,
  26220. E.request,
  26221. E
  26222. ));
  26223. }
  26224. const hC = Ui.isStandardBrowserEnv ? (
  26225. // Standard browser envs support document.cookie
  26226. function() {
  26227. return {
  26228. write: function(E, l, y, j, I, Z) {
  26229. const H = [];
  26230. H.push(E + "=" + encodeURIComponent(l)), _t.isNumber(y) && H.push("expires=" + new Date(y).toGMTString()), _t.isString(j) && H.push("path=" + j), _t.isString(I) && H.push("domain=" + I), Z === !0 && H.push("secure"), document.cookie = H.join("; ");
  26231. },
  26232. read: function(E) {
  26233. const l = document.cookie.match(new RegExp("(^|;\\s*)(" + E + ")=([^;]*)"));
  26234. return l ? decodeURIComponent(l[3]) : null;
  26235. },
  26236. remove: function(E) {
  26237. this.write(E, "", Date.now() - 864e5);
  26238. }
  26239. };
  26240. }()
  26241. ) : (
  26242. // Non standard browser env (web workers, react-native) lack needed support.
  26243. function() {
  26244. return {
  26245. write: function() {
  26246. },
  26247. read: function() {
  26248. return null;
  26249. },
  26250. remove: function() {
  26251. }
  26252. };
  26253. }()
  26254. );
  26255. function cC(r) {
  26256. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r);
  26257. }
  26258. function pC(r, f) {
  26259. return f ? r.replace(/\/+$/, "") + "/" + f.replace(/^\/+/, "") : r;
  26260. }
  26261. function ld(r, f) {
  26262. return r && !cC(f) ? pC(r, f) : f;
  26263. }
  26264. const uC = Ui.isStandardBrowserEnv ? (
  26265. // Standard browser envs have full support of the APIs needed to test
  26266. // whether the request URL is of the same origin as current location.
  26267. function() {
  26268. const f = /(msie|trident)/i.test(navigator.userAgent), E = document.createElement("a");
  26269. let l;
  26270. function y(j) {
  26271. let I = j;
  26272. return f && (E.setAttribute("href", I), I = E.href), E.setAttribute("href", I), {
  26273. href: E.href,
  26274. protocol: E.protocol ? E.protocol.replace(/:$/, "") : "",
  26275. host: E.host,
  26276. search: E.search ? E.search.replace(/^\?/, "") : "",
  26277. hash: E.hash ? E.hash.replace(/^#/, "") : "",
  26278. hostname: E.hostname,
  26279. port: E.port,
  26280. pathname: E.pathname.charAt(0) === "/" ? E.pathname : "/" + E.pathname
  26281. };
  26282. }
  26283. return l = y(window.location.href), function(I) {
  26284. const Z = _t.isString(I) ? y(I) : I;
  26285. return Z.protocol === l.protocol && Z.host === l.host;
  26286. };
  26287. }()
  26288. ) : (
  26289. // Non standard browser envs (web workers, react-native) lack needed support.
  26290. function() {
  26291. return function() {
  26292. return !0;
  26293. };
  26294. }()
  26295. );
  26296. function dC(r) {
  26297. const f = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r);
  26298. return f && f[1] || "";
  26299. }
  26300. function fC(r, f) {
  26301. r = r || 10;
  26302. const E = new Array(r), l = new Array(r);
  26303. let y = 0, j = 0, I;
  26304. return f = f !== void 0 ? f : 1e3, function(H) {
  26305. const U = Date.now(), F = l[j];
  26306. I || (I = U), E[y] = H, l[y] = U;
  26307. let N = j, R = 0;
  26308. for (; N !== y; )
  26309. R += E[N++], N = N % r;
  26310. if (y = (y + 1) % r, y === j && (j = (j + 1) % r), U - I < f)
  26311. return;
  26312. const S = F && U - F;
  26313. return S ? Math.round(R * 1e3 / S) : void 0;
  26314. };
  26315. }
  26316. function Xp(r, f) {
  26317. let E = 0;
  26318. const l = fC(50, 250);
  26319. return (y) => {
  26320. const j = y.loaded, I = y.lengthComputable ? y.total : void 0, Z = j - E, H = l(Z), U = j <= I;
  26321. E = j;
  26322. const F = {
  26323. loaded: j,
  26324. total: I,
  26325. progress: I ? j / I : void 0,
  26326. bytes: Z,
  26327. rate: H || void 0,
  26328. estimated: H && I && U ? (I - j) / H : void 0,
  26329. event: y
  26330. };
  26331. F[f ? "download" : "upload"] = !0, r(F);
  26332. };
  26333. }
  26334. const gC = typeof XMLHttpRequest < "u", mC = gC && function(r) {
  26335. return new Promise(function(E, l) {
  26336. let y = r.data;
  26337. const j = pr.from(r.headers).normalize(), I = r.responseType;
  26338. let Z;
  26339. function H() {
  26340. r.cancelToken && r.cancelToken.unsubscribe(Z), r.signal && r.signal.removeEventListener("abort", Z);
  26341. }
  26342. _t.isFormData(y) && (Ui.isStandardBrowserEnv || Ui.isStandardBrowserWebWorkerEnv) && j.setContentType(!1);
  26343. let U = new XMLHttpRequest();
  26344. if (r.auth) {
  26345. const S = r.auth.username || "", v = r.auth.password ? unescape(encodeURIComponent(r.auth.password)) : "";
  26346. j.set("Authorization", "Basic " + btoa(S + ":" + v));
  26347. }
  26348. const F = ld(r.baseURL, r.url);
  26349. U.open(r.method.toUpperCase(), nd(F, r.params, r.paramsSerializer), !0), U.timeout = r.timeout;
  26350. function N() {
  26351. if (!U)
  26352. return;
  26353. const S = pr.from(
  26354. "getAllResponseHeaders" in U && U.getAllResponseHeaders()
  26355. ), d = {
  26356. data: !I || I === "text" || I === "json" ? U.responseText : U.response,
  26357. status: U.status,
  26358. statusText: U.statusText,
  26359. headers: S,
  26360. config: r,
  26361. request: U
  26362. };
  26363. lC(function(A) {
  26364. E(A), H();
  26365. }, function(A) {
  26366. l(A), H();
  26367. }, d), U = null;
  26368. }
  26369. if ("onloadend" in U ? U.onloadend = N : U.onreadystatechange = function() {
  26370. !U || U.readyState !== 4 || U.status === 0 && !(U.responseURL && U.responseURL.indexOf("file:") === 0) || setTimeout(N);
  26371. }, U.onabort = function() {
  26372. U && (l(new fe("Request aborted", fe.ECONNABORTED, r, U)), U = null);
  26373. }, U.onerror = function() {
  26374. l(new fe("Network Error", fe.ERR_NETWORK, r, U)), U = null;
  26375. }, U.ontimeout = function() {
  26376. let v = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
  26377. const d = r.transitional || sd;
  26378. r.timeoutErrorMessage && (v = r.timeoutErrorMessage), l(new fe(
  26379. v,
  26380. d.clarifyTimeoutError ? fe.ETIMEDOUT : fe.ECONNABORTED,
  26381. r,
  26382. U
  26383. )), U = null;
  26384. }, Ui.isStandardBrowserEnv) {
  26385. const S = (r.withCredentials || uC(F)) && r.xsrfCookieName && hC.read(r.xsrfCookieName);
  26386. S && j.set(r.xsrfHeaderName, S);
  26387. }
  26388. y === void 0 && j.setContentType(null), "setRequestHeader" in U && _t.forEach(j.toJSON(), function(v, d) {
  26389. U.setRequestHeader(d, v);
  26390. }), _t.isUndefined(r.withCredentials) || (U.withCredentials = !!r.withCredentials), I && I !== "json" && (U.responseType = r.responseType), typeof r.onDownloadProgress == "function" && U.addEventListener("progress", Xp(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && U.upload && U.upload.addEventListener("progress", Xp(r.onUploadProgress)), (r.cancelToken || r.signal) && (Z = (S) => {
  26391. U && (l(!S || S.type ? new cs(null, r, U) : S), U.abort(), U = null);
  26392. }, r.cancelToken && r.cancelToken.subscribe(Z), r.signal && (r.signal.aborted ? Z() : r.signal.addEventListener("abort", Z)));
  26393. const R = dC(F);
  26394. if (R && Ui.protocols.indexOf(R) === -1) {
  26395. l(new fe("Unsupported protocol " + R + ":", fe.ERR_BAD_REQUEST, r));
  26396. return;
  26397. }
  26398. U.send(y || null);
  26399. });
  26400. }, po = {
  26401. http: YM,
  26402. xhr: mC
  26403. };
  26404. _t.forEach(po, (r, f) => {
  26405. if (r) {
  26406. try {
  26407. Object.defineProperty(r, "name", { value: f });
  26408. } catch {
  26409. }
  26410. Object.defineProperty(r, "adapterName", { value: f });
  26411. }
  26412. });
  26413. const yC = {
  26414. getAdapter: (r) => {
  26415. r = _t.isArray(r) ? r : [r];
  26416. const { length: f } = r;
  26417. let E, l;
  26418. for (let y = 0; y < f && (E = r[y], !(l = _t.isString(E) ? po[E.toLowerCase()] : E)); y++)
  26419. ;
  26420. if (!l)
  26421. throw l === !1 ? new fe(
  26422. `Adapter ${E} is not supported by the environment`,
  26423. "ERR_NOT_SUPPORT"
  26424. ) : new Error(
  26425. _t.hasOwnProp(po, E) ? `Adapter '${E}' is not available in the build` : `Unknown adapter '${E}'`
  26426. );
  26427. if (!_t.isFunction(l))
  26428. throw new TypeError("adapter is not a function");
  26429. return l;
  26430. },
  26431. adapters: po
  26432. };
  26433. function pl(r) {
  26434. if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
  26435. throw new cs(null, r);
  26436. }
  26437. function Gp(r) {
  26438. return pl(r), r.headers = pr.from(r.headers), r.data = cl.call(
  26439. r,
  26440. r.transformRequest
  26441. ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), yC.getAdapter(r.adapter || Ql.adapter)(r).then(function(l) {
  26442. return pl(r), l.data = cl.call(
  26443. r,
  26444. r.transformResponse,
  26445. l
  26446. ), l.headers = pr.from(l.headers), l;
  26447. }, function(l) {
  26448. return ad(l) || (pl(r), l && l.response && (l.response.data = cl.call(
  26449. r,
  26450. r.transformResponse,
  26451. l.response
  26452. ), l.response.headers = pr.from(l.response.headers))), Promise.reject(l);
  26453. });
  26454. }
  26455. const Hp = (r) => r instanceof pr ? r.toJSON() : r;
  26456. function wn(r, f) {
  26457. f = f || {};
  26458. const E = {};
  26459. function l(U, F, N) {
  26460. return _t.isPlainObject(U) && _t.isPlainObject(F) ? _t.merge.call({ caseless: N }, U, F) : _t.isPlainObject(F) ? _t.merge({}, F) : _t.isArray(F) ? F.slice() : F;
  26461. }
  26462. function y(U, F, N) {
  26463. if (_t.isUndefined(F)) {
  26464. if (!_t.isUndefined(U))
  26465. return l(void 0, U, N);
  26466. } else
  26467. return l(U, F, N);
  26468. }
  26469. function j(U, F) {
  26470. if (!_t.isUndefined(F))
  26471. return l(void 0, F);
  26472. }
  26473. function I(U, F) {
  26474. if (_t.isUndefined(F)) {
  26475. if (!_t.isUndefined(U))
  26476. return l(void 0, U);
  26477. } else
  26478. return l(void 0, F);
  26479. }
  26480. function Z(U, F, N) {
  26481. if (N in f)
  26482. return l(U, F);
  26483. if (N in r)
  26484. return l(void 0, U);
  26485. }
  26486. const H = {
  26487. url: j,
  26488. method: j,
  26489. data: j,
  26490. baseURL: I,
  26491. transformRequest: I,
  26492. transformResponse: I,
  26493. paramsSerializer: I,
  26494. timeout: I,
  26495. timeoutMessage: I,
  26496. withCredentials: I,
  26497. adapter: I,
  26498. responseType: I,
  26499. xsrfCookieName: I,
  26500. xsrfHeaderName: I,
  26501. onUploadProgress: I,
  26502. onDownloadProgress: I,
  26503. decompress: I,
  26504. maxContentLength: I,
  26505. maxBodyLength: I,
  26506. beforeRedirect: I,
  26507. transport: I,
  26508. httpAgent: I,
  26509. httpsAgent: I,
  26510. cancelToken: I,
  26511. socketPath: I,
  26512. responseEncoding: I,
  26513. validateStatus: Z,
  26514. headers: (U, F) => y(Hp(U), Hp(F), !0)
  26515. };
  26516. return _t.forEach(Object.keys(r).concat(Object.keys(f)), function(F) {
  26517. const N = H[F] || y, R = N(r[F], f[F], F);
  26518. _t.isUndefined(R) && N !== Z || (E[F] = R);
  26519. }), E;
  26520. }
  26521. const hd = "1.3.6", th = {};
  26522. ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, f) => {
  26523. th[r] = function(l) {
  26524. return typeof l === r || "a" + (f < 1 ? "n " : " ") + r;
  26525. };
  26526. });
  26527. const Fp = {};
  26528. th.transitional = function(f, E, l) {
  26529. function y(j, I) {
  26530. return "[Axios v" + hd + "] Transitional option '" + j + "'" + I + (l ? ". " + l : "");
  26531. }
  26532. return (j, I, Z) => {
  26533. if (f === !1)
  26534. throw new fe(
  26535. y(I, " has been removed" + (E ? " in " + E : "")),
  26536. fe.ERR_DEPRECATED
  26537. );
  26538. return E && !Fp[I] && (Fp[I] = !0, console.warn(
  26539. y(
  26540. I,
  26541. " has been deprecated since v" + E + " and will be removed in the near future"
  26542. )
  26543. )), f ? f(j, I, Z) : !0;
  26544. };
  26545. };
  26546. function vC(r, f, E) {
  26547. if (typeof r != "object")
  26548. throw new fe("options must be an object", fe.ERR_BAD_OPTION_VALUE);
  26549. const l = Object.keys(r);
  26550. let y = l.length;
  26551. for (; y-- > 0; ) {
  26552. const j = l[y], I = f[j];
  26553. if (I) {
  26554. const Z = r[j], H = Z === void 0 || I(Z, j, r);
  26555. if (H !== !0)
  26556. throw new fe("option " + j + " must be " + H, fe.ERR_BAD_OPTION_VALUE);
  26557. continue;
  26558. }
  26559. if (E !== !0)
  26560. throw new fe("Unknown option " + j, fe.ERR_BAD_OPTION);
  26561. }
  26562. }
  26563. const Al = {
  26564. assertOptions: vC,
  26565. validators: th
  26566. }, Tr = Al.validators;
  26567. class Co {
  26568. constructor(f) {
  26569. this.defaults = f, this.interceptors = {
  26570. request: new zp(),
  26571. response: new zp()
  26572. };
  26573. }
  26574. /**
  26575. * Dispatch a request
  26576. *
  26577. * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
  26578. * @param {?Object} config
  26579. *
  26580. * @returns {Promise} The Promise to be fulfilled
  26581. */
  26582. request(f, E) {
  26583. typeof f == "string" ? (E = E || {}, E.url = f) : E = f || {}, E = wn(this.defaults, E);
  26584. const { transitional: l, paramsSerializer: y, headers: j } = E;
  26585. l !== void 0 && Al.assertOptions(l, {
  26586. silentJSONParsing: Tr.transitional(Tr.boolean),
  26587. forcedJSONParsing: Tr.transitional(Tr.boolean),
  26588. clarifyTimeoutError: Tr.transitional(Tr.boolean)
  26589. }, !1), y != null && (_t.isFunction(y) ? E.paramsSerializer = {
  26590. serialize: y
  26591. } : Al.assertOptions(y, {
  26592. encode: Tr.function,
  26593. serialize: Tr.function
  26594. }, !0)), E.method = (E.method || this.defaults.method || "get").toLowerCase();
  26595. let I;
  26596. I = j && _t.merge(
  26597. j.common,
  26598. j[E.method]
  26599. ), I && _t.forEach(
  26600. ["delete", "get", "head", "post", "put", "patch", "common"],
  26601. (v) => {
  26602. delete j[v];
  26603. }
  26604. ), E.headers = pr.concat(I, j);
  26605. const Z = [];
  26606. let H = !0;
  26607. this.interceptors.request.forEach(function(d) {
  26608. typeof d.runWhen == "function" && d.runWhen(E) === !1 || (H = H && d.synchronous, Z.unshift(d.fulfilled, d.rejected));
  26609. });
  26610. const U = [];
  26611. this.interceptors.response.forEach(function(d) {
  26612. U.push(d.fulfilled, d.rejected);
  26613. });
  26614. let F, N = 0, R;
  26615. if (!H) {
  26616. const v = [Gp.bind(this), void 0];
  26617. for (v.unshift.apply(v, Z), v.push.apply(v, U), R = v.length, F = Promise.resolve(E); N < R; )
  26618. F = F.then(v[N++], v[N++]);
  26619. return F;
  26620. }
  26621. R = Z.length;
  26622. let S = E;
  26623. for (N = 0; N < R; ) {
  26624. const v = Z[N++], d = Z[N++];
  26625. try {
  26626. S = v(S);
  26627. } catch (u) {
  26628. d.call(this, u);
  26629. break;
  26630. }
  26631. }
  26632. try {
  26633. F = Gp.call(this, S);
  26634. } catch (v) {
  26635. return Promise.reject(v);
  26636. }
  26637. for (N = 0, R = U.length; N < R; )
  26638. F = F.then(U[N++], U[N++]);
  26639. return F;
  26640. }
  26641. getUri(f) {
  26642. f = wn(this.defaults, f);
  26643. const E = ld(f.baseURL, f.url);
  26644. return nd(E, f.params, f.paramsSerializer);
  26645. }
  26646. }
  26647. _t.forEach(["delete", "get", "head", "options"], function(f) {
  26648. Co.prototype[f] = function(E, l) {
  26649. return this.request(wn(l || {}, {
  26650. method: f,
  26651. url: E,
  26652. data: (l || {}).data
  26653. }));
  26654. };
  26655. });
  26656. _t.forEach(["post", "put", "patch"], function(f) {
  26657. function E(l) {
  26658. return function(j, I, Z) {
  26659. return this.request(wn(Z || {}, {
  26660. method: f,
  26661. headers: l ? {
  26662. "Content-Type": "multipart/form-data"
  26663. } : {},
  26664. url: j,
  26665. data: I
  26666. }));
  26667. };
  26668. }
  26669. Co.prototype[f] = E(), Co.prototype[f + "Form"] = E(!0);
  26670. });
  26671. const uo = Co;
  26672. class eh {
  26673. constructor(f) {
  26674. if (typeof f != "function")
  26675. throw new TypeError("executor must be a function.");
  26676. let E;
  26677. this.promise = new Promise(function(j) {
  26678. E = j;
  26679. });
  26680. const l = this;
  26681. this.promise.then((y) => {
  26682. if (!l._listeners)
  26683. return;
  26684. let j = l._listeners.length;
  26685. for (; j-- > 0; )
  26686. l._listeners[j](y);
  26687. l._listeners = null;
  26688. }), this.promise.then = (y) => {
  26689. let j;
  26690. const I = new Promise((Z) => {
  26691. l.subscribe(Z), j = Z;
  26692. }).then(y);
  26693. return I.cancel = function() {
  26694. l.unsubscribe(j);
  26695. }, I;
  26696. }, f(function(j, I, Z) {
  26697. l.reason || (l.reason = new cs(j, I, Z), E(l.reason));
  26698. });
  26699. }
  26700. /**
  26701. * Throws a `CanceledError` if cancellation has been requested.
  26702. */
  26703. throwIfRequested() {
  26704. if (this.reason)
  26705. throw this.reason;
  26706. }
  26707. /**
  26708. * Subscribe to the cancel signal
  26709. */
  26710. subscribe(f) {
  26711. if (this.reason) {
  26712. f(this.reason);
  26713. return;
  26714. }
  26715. this._listeners ? this._listeners.push(f) : this._listeners = [f];
  26716. }
  26717. /**
  26718. * Unsubscribe from the cancel signal
  26719. */
  26720. unsubscribe(f) {
  26721. if (!this._listeners)
  26722. return;
  26723. const E = this._listeners.indexOf(f);
  26724. E !== -1 && this._listeners.splice(E, 1);
  26725. }
  26726. /**
  26727. * Returns an object that contains a new `CancelToken` and a function that, when called,
  26728. * cancels the `CancelToken`.
  26729. */
  26730. static source() {
  26731. let f;
  26732. return {
  26733. token: new eh(function(y) {
  26734. f = y;
  26735. }),
  26736. cancel: f
  26737. };
  26738. }
  26739. }
  26740. const xC = eh;
  26741. function bC(r) {
  26742. return function(E) {
  26743. return r.apply(null, E);
  26744. };
  26745. }
  26746. function SC(r) {
  26747. return _t.isObject(r) && r.isAxiosError === !0;
  26748. }
  26749. const Tl = {
  26750. Continue: 100,
  26751. SwitchingProtocols: 101,
  26752. Processing: 102,
  26753. EarlyHints: 103,
  26754. Ok: 200,
  26755. Created: 201,
  26756. Accepted: 202,
  26757. NonAuthoritativeInformation: 203,
  26758. NoContent: 204,
  26759. ResetContent: 205,
  26760. PartialContent: 206,
  26761. MultiStatus: 207,
  26762. AlreadyReported: 208,
  26763. ImUsed: 226,
  26764. MultipleChoices: 300,
  26765. MovedPermanently: 301,
  26766. Found: 302,
  26767. SeeOther: 303,
  26768. NotModified: 304,
  26769. UseProxy: 305,
  26770. Unused: 306,
  26771. TemporaryRedirect: 307,
  26772. PermanentRedirect: 308,
  26773. BadRequest: 400,
  26774. Unauthorized: 401,
  26775. PaymentRequired: 402,
  26776. Forbidden: 403,
  26777. NotFound: 404,
  26778. MethodNotAllowed: 405,
  26779. NotAcceptable: 406,
  26780. ProxyAuthenticationRequired: 407,
  26781. RequestTimeout: 408,
  26782. Conflict: 409,
  26783. Gone: 410,
  26784. LengthRequired: 411,
  26785. PreconditionFailed: 412,
  26786. PayloadTooLarge: 413,
  26787. UriTooLong: 414,
  26788. UnsupportedMediaType: 415,
  26789. RangeNotSatisfiable: 416,
  26790. ExpectationFailed: 417,
  26791. ImATeapot: 418,
  26792. MisdirectedRequest: 421,
  26793. UnprocessableEntity: 422,
  26794. Locked: 423,
  26795. FailedDependency: 424,
  26796. TooEarly: 425,
  26797. UpgradeRequired: 426,
  26798. PreconditionRequired: 428,
  26799. TooManyRequests: 429,
  26800. RequestHeaderFieldsTooLarge: 431,
  26801. UnavailableForLegalReasons: 451,
  26802. InternalServerError: 500,
  26803. NotImplemented: 501,
  26804. BadGateway: 502,
  26805. ServiceUnavailable: 503,
  26806. GatewayTimeout: 504,
  26807. HttpVersionNotSupported: 505,
  26808. VariantAlsoNegotiates: 506,
  26809. InsufficientStorage: 507,
  26810. LoopDetected: 508,
  26811. NotExtended: 510,
  26812. NetworkAuthenticationRequired: 511
  26813. };
  26814. Object.entries(Tl).forEach(([r, f]) => {
  26815. Tl[f] = r;
  26816. });
  26817. const wC = Tl;
  26818. function cd(r) {
  26819. const f = new uo(r), E = Uu(uo.prototype.request, f);
  26820. return _t.extend(E, uo.prototype, f, { allOwnKeys: !0 }), _t.extend(E, f, null, { allOwnKeys: !0 }), E.create = function(y) {
  26821. return cd(wn(r, y));
  26822. }, E;
  26823. }
  26824. const Ge = cd(Ql);
  26825. Ge.Axios = uo;
  26826. Ge.CanceledError = cs;
  26827. Ge.CancelToken = xC;
  26828. Ge.isCancel = ad;
  26829. Ge.VERSION = hd;
  26830. Ge.toFormData = Wo;
  26831. Ge.AxiosError = fe;
  26832. Ge.Cancel = Ge.CanceledError;
  26833. Ge.all = function(f) {
  26834. return Promise.all(f);
  26835. };
  26836. Ge.spread = bC;
  26837. Ge.isAxiosError = SC;
  26838. Ge.mergeConfig = wn;
  26839. Ge.AxiosHeaders = pr;
  26840. Ge.formToJSON = (r) => od(_t.isHTMLForm(r) ? new FormData(r) : r);
  26841. Ge.HttpStatusCode = wC;
  26842. Ge.default = Ge;
  26843. const MC = Ge;
  26844. let CC = {
  26845. baseURL: "/api",
  26846. timeout: 10 * 60 * 1e3
  26847. };
  26848. const ih = MC.create(CC);
  26849. ih.interceptors.request.use(
  26850. function(r) {
  26851. return r;
  26852. },
  26853. function(r) {
  26854. return console.error(r), Promise.reject(r);
  26855. }
  26856. );
  26857. ih.interceptors.response.use(
  26858. function(r) {
  26859. let f = r.data;
  26860. return r.status !== 200 && console.error("网络异常"), f || console.error("服务器开了个小差"), f.Ret === 408 && console.error(f.Msg), f.Ret === 403 && console.error(f.Msg || "网络异常"), f;
  26861. },
  26862. function(r) {
  26863. return console.error(r), Promise.reject(r);
  26864. }
  26865. );
  26866. const rh = (r, f) => ih.post(r, f), kC = (r) => rh("/chart/detail", r), AC = (r) => rh("/eta_forum/chart/detail", r), TC = (r) => rh("/excel/detail", r);
  26867. function pd(r) {
  26868. if (r.indexOf("?") === -1)
  26869. return {};
  26870. const E = r.split("?")[1].split("&"), l = {};
  26871. return E.forEach((y) => {
  26872. const [j, I] = y.split("=");
  26873. l[j] = decodeURIComponent(I);
  26874. }), l;
  26875. }
  26876. const PC = `@charset "UTF-8";div[data-v-4a9f0e4d]{box-sizing:border-box}.hz-chart-wrap[data-v-4a9f0e4d]{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-4a9f0e4d]{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-4a9f0e4d]{width:100%}.hz-chart-wrap .chart-wrapper[data-v-4a9f0e4d]{position:relative;display:flex;height:100%;width:100%}.hz-chart-wrap .chart-wrapper .hz-chart-content[data-v-4a9f0e4d]{width:100%;flex:1}.hz-chart-wrap .chart-wrapper .mark[data-v-4a9f0e4d]{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-4a9f0e4d]{flex:1;overflow:hidden;padding:10PX;color:#777;text-align:center}.hz-chart-wrap .chart-bottom-info[data-v-4a9f0e4d]{padding-right:10PX;padding-bottom:0;padding-left:25PX;display:flex}.hz-chart-wrap .chart-bottom-info .chart-instruction[data-v-4a9f0e4d]{max-width:80%;flex:1;text-align:right;margin-left:auto}.hz-chart-wrap .hz-chart-footer[data-v-4a9f0e4d]{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-4a9f0e4d]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  26877. `, ud = (r, f) => {
  26878. const E = r.__vccOpts || r;
  26879. for (const [l, y] of f)
  26880. E[l] = y;
  26881. return E;
  26882. }, EC = { class: "hz-chart-head" }, OC = {
  26883. key: 0,
  26884. class: "chart-wrapper"
  26885. }, LC = ["id"], _C = {
  26886. key: 1,
  26887. class: "notfound"
  26888. }, DC = {
  26889. key: 2,
  26890. class: "chart-bottom-info bootom-source"
  26891. }, IC = ["textContent"], RC = {
  26892. __name: "EtaChart.ce",
  26893. props: {
  26894. src: "",
  26895. width: "",
  26896. height: "",
  26897. style: ""
  26898. },
  26899. setup(r) {
  26900. const { chartRender: f, setLimitData: E, isUseSelfLimit: l } = Ww(), y = r, j = pd(y.src), I = Le(null), Z = Le(""), H = Le(null), U = Le(null), F = Le(!1), N = Le(null), R = Le(null), S = Le(null);
  26901. async function v() {
  26902. if (!j.code) {
  26903. F.value = !1;
  26904. return;
  26905. }
  26906. try {
  26907. const u = j.isETAForumChart && j.isETAForumChart == "true" ? await AC({
  26908. UniqueCode: j.code,
  26909. IsReplace: 1
  26910. }) : await kC({
  26911. UniqueCode: j.code,
  26912. IsReplace: 1
  26913. });
  26914. if (u.Ret !== 200)
  26915. return;
  26916. H.value = u.Data.ChartInfo, U.value = u.Data.ChartInfo.Source === 1 ? u.Data.EdbInfoList : [u.Data.EdbInfoList[0]], Z.value = `hz-chart_${j.code}_${(/* @__PURE__ */ new Date()).getTime()}`, d(), F.value = !0, u.Data.ChartInfo.Source === 1 && ![7, 10, 11].includes(u.Data.ChartInfo.ChartType) ? (l.value = !0, E(u.Data)) : l.value = !1, fo(() => {
  26917. f({
  26918. data: u.Data,
  26919. renderId: I.value,
  26920. lang: j.language,
  26921. changeLangIsCheck: !1,
  26922. showChartTitle: !1,
  26923. shouldUseSelfLimit: !0
  26924. }), u.Data.WaterMark && (N.value.style.backgroundImage = `url(${u.Data.WaterMark})`);
  26925. }), fo(() => {
  26926. var A;
  26927. S.value && (S.value.style.maxWidth = ((A = R.value) == null ? void 0 : A.clientWidth) + "px");
  26928. });
  26929. } catch {
  26930. F.value = !1;
  26931. }
  26932. }
  26933. const d = () => {
  26934. j.language = j.fromPage || j.lang || "zh";
  26935. };
  26936. return v(), (u, A) => {
  26937. var O, B, C, b;
  26938. return Je(), qe("div", {
  26939. class: "hz-chart-wrap",
  26940. ref_key: "chartContainer",
  26941. ref: R,
  26942. style: Pr([y.style + ";height:" + y.height + "px", { margin: "0 0 10px 0" }])
  26943. }, [
  26944. ar("header", EC, [
  26945. H.value ? (Je(), qe("span", {
  26946. key: 0,
  26947. class: "chart-title",
  26948. style: Pr(H.value.ChartThemeStyle ? `
  26949. text-align:${JSON.parse(H.value.ChartThemeStyle).titleOptions.align};
  26950. font-size:${JSON.parse(H.value.ChartThemeStyle).titleOptions.style.fontSize}px;
  26951. color:${JSON.parse(H.value.ChartThemeStyle).titleOptions.style.color}
  26952. ` : "")
  26953. }, yn(k0(j).language === "en" ? H.value.ChartNameEn : H.value.ChartName), 5)) : Kn("", !0)
  26954. ]),
  26955. F.value ? (Je(), qe("div", OC, [
  26956. ar("div", {
  26957. id: Z.value,
  26958. ref_key: "chartContentEl",
  26959. ref: I,
  26960. class: "hz-chart-content"
  26961. }, null, 8, LC),
  26962. ar("div", {
  26963. class: "mark",
  26964. ref_key: "markDom",
  26965. ref: N
  26966. }, null, 512)
  26967. ])) : (Je(), qe("div", _C, " 哎吆,你的图飞了,赶快去找管理员救命吧~ ")),
  26968. (O = H.value) != null && O.Instructions && JSON.parse((B = H.value) == null ? void 0 : B.Instructions).isShow ? (Je(), qe("div", DC, [
  26969. ar("div", {
  26970. class: "chart-instruction text_oneLine",
  26971. textContent: yn(JSON.parse(H.value.Instructions).text),
  26972. style: Pr(`
  26973. color: ${JSON.parse(H.value.Instructions).color};
  26974. font-size: ${JSON.parse(H.value.Instructions).fontSize}px
  26975. `)
  26976. }, null, 12, IC)
  26977. ])) : Kn("", !0),
  26978. (C = H.value) != null && C.SourcesFrom && ((b = JSON.parse(H.value.SourcesFrom)) != null && b.isShow) ? (Je(), qe("div", {
  26979. key: 3,
  26980. class: "hz-chart-footer",
  26981. ref_key: "chartFooter",
  26982. ref: S,
  26983. style: Pr(`
  26984. color: ${JSON.parse(H.value.SourcesFrom).color};
  26985. font-size: ${JSON.parse(H.value.SourcesFrom).fontSize}px;
  26986. `)
  26987. }, [
  26988. A[0] || (A[0] = Up(" source:")),
  26989. ar("em", null, yn(JSON.parse(H.value.SourcesFrom).text), 1)
  26990. ], 4)) : Kn("", !0)
  26991. ], 4);
  26992. };
  26993. }
  26994. }, NC = /* @__PURE__ */ ud(RC, [["styles", [PC]], ["__scopeId", "data-v-4a9f0e4d"]]), BC = `@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}
  26995. `, jC = { class: "table-wrapper" }, WC = ["colspan", "rowspan"], zC = {
  26996. key: 0,
  26997. class: "split-word"
  26998. }, YC = { key: 1 }, XC = {
  26999. __name: "EtaTable.ce",
  27000. props: {
  27001. src: "",
  27002. width: "",
  27003. height: "",
  27004. style: ""
  27005. },
  27006. setup(r) {
  27007. const E = pd(r.src), l = Le({}), y = Le(!1), j = Le(null), I = Le(null), Z = (U) => JSON.stringify({
  27008. isShow: !0,
  27009. text: U,
  27010. color: "#606266",
  27011. fontSize: 9
  27012. });
  27013. async function H() {
  27014. const U = await TC({ UniqueCode: E.code, FromScene: Number(E.fromScene || "") });
  27015. U.Ret === 200 && (l.value = U.Data, l.value.SourcesFrom || (l.value.SourcesFrom = U.Data.ExcelSource ? Z(U.Data.ExcelSource || "") : ""), y.value = !0, fo(() => {
  27016. var F;
  27017. console.log(j.value.clientWidth), I.value && (I.value.style.maxWidth = ((F = j.value) == null ? void 0 : F.clientWidth) + "px");
  27018. }));
  27019. }
  27020. return H(), (U, F) => {
  27021. var N, R;
  27022. return y.value ? (Je(), qe("div", {
  27023. key: 0,
  27024. class: "sheet-show-wrapper",
  27025. ref_key: "sheetRef",
  27026. ref: j
  27027. }, [
  27028. ar("div", jC, [
  27029. ar("table", {
  27030. cellpadding: "0",
  27031. cellspacing: "0",
  27032. style: Pr(`font-size: ${((N = l.value.Config) == null ? void 0 : N.FontSize) || 12}PX`)
  27033. }, [
  27034. ar("tbody", null, [
  27035. (Je(!0), qe(Qa, null, tl((R = l.value.TableInfo) == null ? void 0 : R.TableDataList, (S, v) => (Je(), qe("tr", { key: v }, [
  27036. (Je(!0), qe(Qa, null, tl(S, (d, u) => (Je(), qe("td", {
  27037. class: A0(["data-cell", {
  27038. "one-bg": (v + 1) % 2 && v > 0,
  27039. "tow-bg": (v + 1) % 2 !== 0 && v > 0,
  27040. "head-column": v === 0
  27041. }]),
  27042. key: u,
  27043. colspan: d.mc.cs || 1,
  27044. rowspan: d.mc.rs || 1,
  27045. style: Pr(`
  27046. color: ${d.fc};
  27047. font-weight: ${d.bl ? "bold" : "normal"};
  27048. font-style: ${d.it ? "italic" : "normal"};
  27049. background: ${d.bg};
  27050. `)
  27051. }, [
  27052. d.ct.s ? (Je(), qe("div", zC, [
  27053. (Je(!0), qe(Qa, null, tl(d.ct.s, (A, O) => (Je(), qe("span", {
  27054. key: `${v}_${u}_${O}`,
  27055. style: Pr(`
  27056. color: ${A.fc};
  27057. font-weight: ${A.bl ? "bold" : "normal"};
  27058. font-style: ${A.it ? "italic" : "normal"};
  27059. `)
  27060. }, yn(A.v), 5))), 128))
  27061. ])) : (Je(), qe("div", YC, yn(d.m), 1))
  27062. ], 14, WC))), 128))
  27063. ]))), 128))
  27064. ])
  27065. ], 4)
  27066. ]),
  27067. l.value.SourcesFrom && JSON.parse(l.value.SourcesFrom).isShow ? (Je(), qe("div", {
  27068. key: 0,
  27069. class: "sheet-source",
  27070. ref_key: "sheetFooter",
  27071. ref: I,
  27072. style: Pr(`
  27073. color: ${JSON.parse(l.value.SourcesFrom).color};
  27074. font-size: ${JSON.parse(l.value.SourcesFrom).fontSize}px;
  27075. `)
  27076. }, [
  27077. F[0] || (F[0] = Up(" source:")),
  27078. ar("em", null, yn(JSON.parse(l.value.SourcesFrom).text), 1)
  27079. ], 4)) : Kn("", !0)
  27080. ], 512)) : Kn("", !0);
  27081. };
  27082. }
  27083. }, GC = /* @__PURE__ */ ud(XC, [["styles", [BC]], ["__scopeId", "data-v-98ab6c2e"]]), HC = Vp(NC), FC = Vp(GC);
  27084. function VC() {
  27085. customElements.define("eta-chart", HC), customElements.define("eta-table", FC);
  27086. }
  27087. export {
  27088. VC as registerEtaComp
  27089. };