eta_comp.js 1.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085
  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 Fp, Fragment as Qa, renderList as tl, normalizeClass as A0, defineCustomElement as Up } 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. }, Vp = {
  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. }, Pp = {
  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, A) {
  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 A < "u") {
  250. var P = "";
  251. D && (W += "?"), b(A, 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: A }, 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(A, _) {
  265. F(t[_], !0) && !t.nodeType && s[_] ? (A = I(t[_], s[_]), Object.keys(A).length && (n[_] = A)) : (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 A;
  295. return H(s) ? v(n) ? t.setAttribute(s, n) : t && t.getAttribute && ((A = t.getAttribute(s)) || s !== "class" || (A = t.getAttribute(s + "Name"))) : b(s, function(_, D) {
  296. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  297. }), A;
  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 T() {
  307. for (var t = arguments, s = t.length, n = 0; n < s; n++) {
  308. var A = t[n];
  309. if (typeof A < "u" && A !== null)
  310. return A;
  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 A = 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 - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  323. if (s === "height")
  324. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  325. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  326. var _ = t.getPropertyValue(s);
  327. T(n, s !== "opacity") && (_ = Z(_));
  328. }
  329. return _;
  330. }
  331. function b(t, s, n) {
  332. for (var A in t)
  333. Object.hasOwnProperty.call(t, A) && s.call(n || t[A], t[A], A, t);
  334. }
  335. function w(t, s, n) {
  336. function A(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. A(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. }), A(s, n)) : (_(W), W[s] = [])) : (_(W), delete D.hcEvents);
  361. }
  362. }
  363. function x(t, s, n, A) {
  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. A && !n.defaultPrevented && A.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, A = t.length;
  389. for (n = 0; n < A; 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 A;
  396. return j(32, !1, void 0, (A = {}, A["Highcharts." + s] = "use Array." + t, A)), 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, A) {
  410. A === void 0 && (A = {});
  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: A.passive === void 0 ? s.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[s] || (_[s] = []), _[s].push({ fn: n, order: typeof A.order == "number" ? A.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, A, _) {
  432. return t = c.createElement(t), s && u(t, s), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), A && A.appendChild(t), t;
  433. }, css: O, defined: v, destroyObjectProperties: function(t, s) {
  434. b(t, function(n, A) {
  435. n && n !== s && n.destroy && n.destroy(), delete t[A];
  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 = {}, A = 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] = A(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 = A(n, s[t]);
  474. return n;
  475. }, normalizeTickInterval: function(t, s, n, A, _) {
  476. var D = t;
  477. n = T(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], A === !1 && (n === 1 ? s = s.filter(function(P) {
  480. return P % 1 === 0;
  481. }) : 0.1 >= n && (s = [1 / n]))), A = 0; A < s.length && (D = s[A], !(_ && D * n >= t || !_ && W <= (s[A] + (s[A + 1] || s[A])) / 2)); A++)
  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: T, 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, A, _;
  495. for (_ = 0; _ < n; _++)
  496. t[_].safeI = _;
  497. for (t.sort(function(D, W) {
  498. return A = s(D, W), A === 0 ? D.safeI - W.safeI : A;
  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 = T(t, h);
  514. }, wrap: function(t, s, n) {
  515. var A = t[s];
  516. t[s] = function() {
  517. var _ = Array.prototype.slice.call(arguments), D = arguments, W = this;
  518. return W.proceed = function() {
  519. A.apply(W, arguments.length ? arguments : D);
  520. }, _.unshift(A), _ = 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, T = 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 || T && 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(A, _) {
  653. for (; C.indexOf("%" + _) !== -1; )
  654. C = C.replace("%" + _, typeof A == "function" ? A.call(x, b) : A);
  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), A = 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, A + 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 T = S[u], O = R[u], B = [], C = 0; C < O.length; C++) {
  809. var b = T[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, T = function(C) {
  824. return T.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, T.elem = this.elem, T.prop = this.prop, T() && N.timers.push(T) === 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, T = v.duration, O = v.curAnim;
  838. if (d.attr && !d.element)
  839. R = !1;
  840. else if (R || S >= T + 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) / T), 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 T = 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 (T && O && O.length) {
  874. for (R = 0; R < T.length; R++)
  875. if (T[R] === O[0]) {
  876. var b = R;
  877. break;
  878. } else if (T[0] === O[O.length - T.length + R]) {
  879. b = R;
  880. var w = !0;
  881. break;
  882. } else if (T[T.length - 1] === O[O.length - T.length + R]) {
  883. b = T.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, T) {
  904. for (var O = y.timers.length; O--; )
  905. y.timers[O].elem !== u || T && T !== 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, T, 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(T), v(T, function(a, c) {
  915. Z(u, c), w = new y(u, O, c), b = void 0, c === "d" && F(T.d) ? (w.paths = w.initPath(u, u.pathArray, T.d), w.toD = T.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, T, O) {
  918. var B = I(T), C = 0, b = 0;
  919. return (O ? [O] : u.series).forEach(function(w) {
  920. w = I(w.options.animation), C = T && H(T.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, T) {
  923. T.renderer.globalAnimation = d(u, T.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(T) {
  927. return T;
  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 T(O) {
  936. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  937. }
  938. return T.filterUserAttributes = function(O) {
  939. return R(O, function(B, C) {
  940. var b = !0;
  941. T.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = N(B) && T.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. }, T.setElementHTML = function(O, B) {
  946. O.innerHTML = T.emptyHTML, B && new T(B).addToDOM(O);
  947. }, T.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 (T.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, T.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. }, T.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. }, T.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), T.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), T.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "), T.emptyHTML = d, T;
  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 T = 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, T.decimalPoint), u = N(u, T.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 = "{", T = !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 (T) {
  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 = (T = !T) ? "}" : "{";
  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. }, T = 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, T), 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, T), 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, T = 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, A = 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 = A(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] = "" + A(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 T.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 !== T.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 = A(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) : (A(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, T) {
  1438. u.__proto__ = T;
  1439. } || function(u, T) {
  1440. for (var O in T)
  1441. T.hasOwnProperty(O) && (u[O] = T[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, T, 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 = T, 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 T = "width" in u;
  1473. "fontSize" in u || "fontWeight" in u ? this.updateTextPadding() : T && 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 = {}, T = 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 * T, d = this.renderer.fontMetrics(d && d.fontSize, this.text), this.baselineOffset = T + Math.min((this.text.firstLineMetrics || d).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - d.h) / 2), this.needsBox && (this.box || (T = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), T.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), T.add(this)), T = this.getCrispAdjust(), u.x = T, u.y = (this.baseline ? -this.baselineOffset : 0) + T, 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, T = N(this.paddingLeft, this.padding);
  1515. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (T += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (T !== d.x || u !== d.y) && (d.attr("x", T), d.hasBoxWidthChanged && (this.bBox = d.getBBox(!0)), typeof u < "u" && d.attr("y", u)), d.x = T, 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 T = 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) - T - 2 * Math.PI)), b = Math.cos(T), w = Math.sin(T), x = Math.cos(B), a = Math.sin(B);
  1541. T = F(d.longArc, 1e-3 > B - T - Math.PI ? 0 : 1), u.push(["M", N + O * b, R + S * w], ["A", O, S, 0, T, 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, T, 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), T = 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 + T && d < R + v - T ? 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 + T && d < R + v - T ? 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 + T && O < N + S - T ? 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 + T && O < N + S - T && 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, T = d.renderer, O = S(d.textStr, "").toString(), B = O.indexOf("<") !== -1, C = u.childNodes;
  1576. T = this.width && !d.added && T.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 !== "" && (T && T.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. ), T && T.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, T = 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: T }));
  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: T }), 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, T = 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(T);
  1641. };
  1642. d.forEach(T);
  1643. }, v.prototype.truncate = function(d, u, T, O, B, C) {
  1644. var b = this.svgElement, w = b.renderer, x = b.rotation, a = [], c = T ? 1 : 0, p = (u || T || "").length, i = p, h, o = function(s, n) {
  1645. n = n || s;
  1646. var A = d.parentNode;
  1647. if (A && typeof a[n] > "u")
  1648. if (A.getSubStringLength)
  1649. try {
  1650. a[n] = O + A.getSubStringLength(0, T ? n + 1 : n);
  1651. } catch {
  1652. }
  1653. else
  1654. w.getSpanWidth && (d.textContent = C(u || T, 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), T && (h = C(T, 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 || T, i));
  1663. }
  1664. T && T.splice(0, i), b.actualWidth = t, b.rotation = x;
  1665. }, v.prototype.unescapeEntities = function(d, u) {
  1666. return R(this.renderer.escapes, function(T, O) {
  1667. u && u.indexOf(T) !== -1 || (d = d.toString().replace(new RegExp(T, "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, T = 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, A = 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, T ? "mouseover" : "mouseenter", function() {
  1730. nt !== 3 && it.setState(1);
  1731. }), x(it.element, T ? "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. A(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 T = function(O, B) {
  1836. return T = 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. }, T(O, B);
  1842. };
  1843. return function(O, B) {
  1844. function C() {
  1845. this.constructor = O;
  1846. }
  1847. T(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(T) {
  1851. function O() {
  1852. return T !== null && T.apply(this, arguments) || this;
  1853. }
  1854. return Z(O, T), 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(A) {
  1877. R(A, { marginLeft: b + 1, marginTop: w + 1 });
  1878. }), this.inverted && [].forEach.call(C.childNodes, function(A) {
  1879. B.invertChild(A, 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, T) {
  1906. u.__proto__ = T;
  1907. } || function(u, T) {
  1908. for (var O in T)
  1909. T.hasOwnProperty(O) && (u[O] = T[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, T) {
  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(T) }).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, A) {
  1949. i[A] = n, A === "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(A) {
  1965. this.element.setAttribute("class", A), n.className = A;
  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, T = 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 = T(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, A;
  2041. if (x = this.parameters.category || (x ? T(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 (A = 0; A < X.length; A++)
  2066. if (R(W, { dateTimeLabelFormat: X[A] }), 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), A = {}, _ = 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), A.x = B, A.y = Math.round(C), S(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  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 = T(C.labelLeft, Math.min(C.pos, a[3]));
  2090. a = T(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, A = 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, A = -1), n = Math.min(t, n), n < t && C.labelAlign === "center" && (B.x += A * (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 = T(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 = T(b, this.label && this.label.newOpacity, 1), b = T(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 = T(
  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 = T(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 = T(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, T = 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, A = 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 = A(m.opposite, this.opposite), this.side = A(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 = A(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 = A(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(A(g.dataMin, k), k), g.dataMax = Math.max(A(g.dataMax, G), G));
  2190. }
  2191. } else
  2192. Y = Y.applyExtremes(), h(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(A(g.dataMin, k), k)), h(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(A(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 = A(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 ? A(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, A(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = u(it), Y = [L + q, A(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = T(Y), Y - L < q && (it[0] = Y - q, it[1] = A(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) : A(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 ? A(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 = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  2311. if (Q) {
  2312. this.linkedParent = m[this.coll][Y.linkedTo];
  2313. var ct = this.linkedParent.getExtremes();
  2314. this.min = A(ct.min, ct.dataMin), this.max = A(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 = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  2325. }
  2326. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, A(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 : A(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 = A(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), A(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 = A(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 = A(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, A(Q.min, Y)), G = Math.max(V, A(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(_(A(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(A(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(A(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  2405. m = this.left = Math.round(_(A(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 = (A(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 = A(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 = A($, 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, A(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 : A(nt.margin, Y ? 5 : 10);
  2524. }
  2525. m.renderLine(), m.offset = gt * A(
  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 ? A(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = A(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 = A(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 = A(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 : A(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: A(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": A(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, A(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, A(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, T) {
  2666. var O = T || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]];
  2667. T = O[O.length - 1];
  2668. var B = H[T[0]], C = T[1], b;
  2669. for (b = 0; b < O.length && (T = O[b], B = H[T[0]], C = T[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, T[0] === "year" ? Math.max(I(u / B), 1) : 1), { unitRange: B, count: u, unitName: T[0] };
  2672. }, d.prototype.getXDateFormat = function(u, T) {
  2673. var O = this.axis;
  2674. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, u, O.options.startOfWeek, T) || T.year : T.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, T, 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, T, O);
  2706. else if (0.08 <= u) {
  2707. var a = Math.floor(T), 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 > T && (!B || w <= O) && typeof w < "u" && x.push(w), w > O && (p = !0), w = h;
  2713. }
  2714. }
  2715. } else
  2716. T = this.lin2log(T), O = this.lin2log(O), u = B ? C.getMinorTickInterval() : w.tickInterval, u = H(u === "auto" ? null : u, this.minorAutoInterval, w.tickPixelInterval / (B ? 5 : 1) * (O - T) / ((B ? b / C.tickPositions.length : b) || 1)), u = Z(u, void 0, I(u)), x = C.getLinearTickPositions(u, T, 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 T = 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 && T) {
  2740. if (d) {
  2741. var C = v.toString() === T.toString();
  2742. u = 0;
  2743. }
  2744. for (d = 0; d < v.length; d += 2) {
  2745. var b = v[d], w = v[d + 1], x = T[d], a = T[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, T = this.userOptions, O = new N(this, v);
  2756. if (this.visible && (O = O.render()), O) {
  2757. if (this._addedPlotLB || (this._addedPlotLB = !0, (T.plotLines || []).concat(T.plotBands || []).forEach(function(C) {
  2758. u.addPlotBandOrLine(C);
  2759. })), d) {
  2760. var B = T[d] || [];
  2761. B.push(v), T[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, T = this.userOptions;
  2768. if (d) {
  2769. for (var O = d.length; O--; )
  2770. d[O].id === v && d[O].destroy();
  2771. [u.plotLines || [], T.plotLines || [], u.plotBands || [], T.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, T) {
  2787. this.axis = u, T && (this.options = T, this.id = T.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, T = u.axis, O = T.horiz, B = T.logarithmic, C = u.options, b = C.color, w = v(C.zIndex, 0), x = C.events, a = {}, c = T.chart.renderer, p = C.label, i = u.label, h = C.to, o = C.from, t = C.value, s = u.svgElem, n = [], A = H(o) && H(h);
  2794. n = H(t);
  2795. var _ = !s, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (C.className || "") }, W = A ? "bands" : "lines";
  2796. if (B && (o = B.log2lin(o), h = B.log2lin(h), t = B.log2lin(t)), T.chart.styledMode || (n ? (D.stroke = b || "#999999", D["stroke-width"] = v(C.width, 1), C.dashStyle && (D.dashstyle = C.dashStyle)) : A && (D.fill = b || "#e6ebf5", C.borderWidth && (D.stroke = C.borderColor, D["stroke-width"] = C.borderWidth))), a.zIndex = w, W += "-" + w, (B = T.plotLinesAndBandsGroups[W]) || (T.plotLinesAndBandsGroups[W] = B = c.g("plot-" + W).attr(a).add()), _ && (u.svgElem = s = c.path().attr(D).add(B)), n)
  2797. n = T.getPlotLinePath({ value: t, lineWidth: s.strokeWidth(), acrossPanes: C.acrossPanes });
  2798. else if (A)
  2799. n = T.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 < T.width && 0 < T.height && !n.isFlat ? (p = R({ align: O && A && "center", x: O ? !A && 4 : 10, verticalAlign: !O && A && "middle", y: O ? A ? 16 : 10 : A ? 6 : -4, rotation: O && !A && 90 }, p), this.renderLabel(p, n, A, w)) : i && i.hide(), u;
  2811. }, d.prototype.renderLabel = function(u, T, 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 = T.xBounds || [T[0][1], T[1][1], O ? T[2][1] : T[0][1]], T = T.yBounds || [T[0][2], T[1][2], O ? T[2][2] : T[0][2]], O = Z(B), b = Z(T), w.align(u, !1, { x: O, y: b, width: I(B) - O, height: I(T) - 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, T = 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, A = 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 - A, 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 += A + o.plotWidth - _.len - _.pos) : (W += D.pos - A, 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 - A : 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"), A = 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", A), 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", A).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 = {}, A = 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 - A ? at : at - A);
  2902. else if (ht)
  2903. n[z] = Math.max(nt, et + A + q > $ ? et : et + A);
  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, A = s.options.animation !== !1 && !s.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(h - n.y)), _ = s.followPointer || 1 < s.len;
  2929. T(n, { x: A ? (2 * n.x + i) / 3 : i, y: A ? (n.y + h) / 2 : h, anchorX: _ ? void 0 : A ? (2 * n.anchorX + o) / 3 : o, anchorY: _ ? void 0 : A ? (n.anchorY + t) / 2 : t }), s.getLabel().attr(n), s.drawTracker(), A && (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], A = [], _ = 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"), A.push(Y.getLabelConfig());
  2939. }), P = { x: n.category, y: n.y }, P.points = A) : P = n.getLabelConfig(), this.len = A.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, A = 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 + A, 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 T(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 A = t.xDateFormat, _ = t[h ? "footerFormat" : "headerFormat"];
  3044. return O(this, "headerFormatter", s, function(D) {
  3045. n && !A && C(i.key) && (A = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  3046. _ = _.replace("{point." + W + "}", "{point." + W + ":" + A + "}");
  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), A = 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 + ")" }), A *= t.scaleX, i *= t.scaleY), A += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), A, 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, T = 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(A) {
  3075. A.element && A.animate(d({ x: o.startXPos }, A.startYPos ? { x: A.startXPos, y: A.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 A = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  3090. t.legendItem && n.legend.destroyItem(t), A && (t.setState(), v(A, t), A.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, A = this.series.options;
  3102. (A.point.events[o] || n.options && n.options.events && n.options.events[o]) && n.importEvents(), o === "click" && A.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: [] }, A;
  3109. for (o = o || { graphic: 1, dataLabel: 1 }, o.graphic && s.push("graphic", "upperGraphic", "shadowGroup"), o.dataLabel && s.push("dataLabel", "dataLabelUpper", "connector"), A = s.length; A--; ) {
  3110. var _ = s[A];
  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 ? T(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"], A = 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 > A && (t = typeof o[0], t === "string" ? _.name = o[0] : t === "number" && (_.x = o[0]), D++); W < A; )
  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, A, _, D) {
  3157. return n[A] = D.length - 1 === _ ? t : b(n[A], !0) ? n[A] : {}, n[A];
  3158. }, o), o;
  3159. }, h.prototype.tooltipFormatter = function(o) {
  3160. var t = this.series, s = t.tooltipOptions, n = a(s.valueDecimals, ""), A = 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, (A || _) && (o = o.replace(RegExp(D + "}", "g"), A + 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 A() {
  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 ? A() : _.firePointEvent("update", { options: o }, A);
  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, A = 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 || A.getSelectedPoints().forEach(function(_) {
  3178. var D = _.series;
  3179. _.selected && _ !== s && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.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, A = 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" || A.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, A.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. A = A.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", A && A.size && V && Y !== "hidden" && !this.isCluster ? (L || (s.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.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": A.opacity }, y.filterUserAttributes(A.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, T = 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, A = 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 + A && (g = s + A), 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 : A, 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, A = o.attr ? o.attr("height") : o.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: s, width: n, height: A }, 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 + A) - X), _[W.coll].push({ axis: W, min: Math.min(g, P), max: Math.max(g, P) }), D = !0;
  3256. }
  3257. }), D && T(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 A = 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 : A !== 0 ? A : _ !== 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. T(this, "beforeGetHoverData", n);
  3306. var A = 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(A, o, t);
  3309. return p = _ && _.series, _ && (o && !p.noSharedTooltip ? (A = i.filter(function(D) {
  3310. return n.filter ? n.filter(D) : D.visible && !(!o && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  3311. }), A.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: _ }, T(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") ? (T(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 }) && T(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, A = {}, _ = 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 && (T(i, "touchpan", { originalEvent: c }, function() {
  3390. W || (p.selectionMarker = W = d({ destroy: F, touch: !0 }, i.plotBox)), p.pinchTranslate(h, o, A, W, D, s), p.hasPinched = n, p.scaleGroups(A, 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 A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", W = "chart" + D, P = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], g = A.inverted, m = A.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 = A["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(A) {
  3409. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  3410. }), c ? s && n && x(n).length && (s.refresh(n), s.shared && t ? t.forEach(function(A) {
  3411. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  3412. null,
  3413. A
  3414. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  3415. }) : o && (o.setState(o.state, !0), i.axes.forEach(function(A) {
  3416. A.crosshair && o.series[A.coll] === A && A.drawCrosshair(null, o);
  3417. }))) : (o && o.onMouseOut(), t && t.forEach(function(A) {
  3418. A.setState();
  3419. }), h && h.onMouseOut(), s && s.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  3420. A.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(A) {
  3428. n.indexOf(A) === -1 && A.setState();
  3429. }), i.hoverSeries !== s && s.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(A) {
  3430. A.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(A) {
  3437. var _ = U[a.hoverChartIndex];
  3438. _ && _.pointer.onDocumentMouseMove(A);
  3439. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  3440. var _ = w((A.crosshair || {}).snap, !0), D;
  3441. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = u(n, function(W) {
  3442. return W.series[A.coll] === A;
  3443. }))), D || !_ ? A.drawCrosshair(c, D) : A.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, T = 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(T), 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, T = 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, A = 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 }), A && A.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, A = !s.rtl, _ = o._legendItemPos;
  3588. s = _[0], _ = _[1];
  3589. var D = o.checkbox, W = o.legendGroup;
  3590. W && W.element && (n = { translateX: A ? s : this.legendWidth - s - 2 * n - 4, translateY: _ }, A = function() {
  3591. b(t, "afterPositionItem", { item: o });
  3592. }, O(W.translateY) ? W.animate(n, void 0, A) : (W.attr(n), A())), 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(A) {
  3613. var _ = A.checkbox;
  3614. if (_) {
  3615. var D = n + s + _.y + (this.scrollOffset || 0) + 3;
  3616. T(_, { left: o.translateX + A.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, A = 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 = A + _ + 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 ? A + _ : -_, 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", A = 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(A, this.lastLineHeight), o._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), 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, A = this.getAlignment();
  3643. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  3644. _.test(A) && !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 A, _ = s;
  3650. if (n.yAxis) {
  3651. n.xAxis.options.reversed && (_ = !_), n.points && (A = 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 ? (A = A ? A.plotY : n.yAxis.height, A += D - 0.3 * _) : A = D + n.yAxis.height, t.push({ target: A, 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, A = 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(A, function(X, g) {
  3665. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  3666. }), s.reversed && A.reverse(), this.allItems = A, this.display = W = !!A.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, A.forEach(this.renderItem, this), A.forEach(this.layoutItem, this), A = (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 < A && 0 < P && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: A, height: P }, D.strokeWidth())), D.isNew = !1), D[W ? "show" : "hide"](), o.styledMode && _.getStyle("display") === "none" && (A = P = 0), this.legendWidth = A, 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, A = this.options, _ = A.y, D = A.verticalAlign === "top", W = this.padding, P = A.maxHeight, X = A.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 A.layout !== "horizontal" || A.verticalAlign === "middle" || A.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, A = this.pages, _ = A.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 = -A[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, A = 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 && A.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(""), A.removeClass(D), o.setState();
  3717. }).on("click", function(g) {
  3718. var m = function() {
  3719. o.setVisible && o.setVisible(), P(o.visible ? "inactive" : "");
  3720. };
  3721. A.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 T = H.plotOptions || {}, O = u.defaultOptions;
  3751. u.prototype.pointClass || (u.prototype.pointClass = I), u.prototype.type = d, O && (T[d] = O), S.seriesTypes[d] = u;
  3752. }
  3753. S.seriesTypes = y.seriesTypes, S.getSeries = function(d, u) {
  3754. u === void 0 && (u = {});
  3755. var T = d.options.chart;
  3756. T = u.type || T.type || T.defaultSeriesType || "";
  3757. var O = S.seriesTypes[T];
  3758. return S || U(17, !0, d, { missingModuleFor: T }), T = new O(), typeof T.init == "function" && T.init(d, u), T;
  3759. }, S.registerSeriesType = v, S.seriesType = function(d, u, T, O, B) {
  3760. var C = H.plotOptions || {};
  3761. return u = u || "", C[d] = N(C[u], T), 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, T, 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 = T.addEvent, A = T.attr, _ = T.cleanRecursively, D = T.createElement, W = T.css, P = T.defined, X = T.discardElement, g = T.erase, m = T.error, L = T.extend, Y = T.find, V = T.fireEvent, Q = T.getStyle, k = T.isArray, G = T.isNumber, z = T.isObject, $ = T.isString, q = T.merge, it = T.objectEach, et = T.pick, nt = T.pInt, rt = T.relativeLength, ct = T.removeEvent, gt = T.splat, dt = T.syncTimeout, ht = T.uniqueKey;
  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(A(pt, "data-highcharts-chart"));
  3932. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), A(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) && (T.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 = {}, T = 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), T && T.enabled !== !1 && N && (F = Math.min(I(T.radius, S), S), this.symbol.indexOf("url") === 0 && (T = j(T, { width: R, height: R }), F = 0), this.legendSymbol = N = v.symbol(this.symbol, N / 2 - F, U - F, 2 * F, 2 * F, T).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, T = 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, A = 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. A(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 }), T(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), A(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. A(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. }), A(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. A(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 }), A(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, A(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, A(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) }, A(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, A(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, A(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 (A(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, A(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, A(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. })), A(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 && A(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 ? A(
  4715. it,
  4716. "remove",
  4717. null,
  4718. q
  4719. ) : q();
  4720. }, Q.prototype.update = function(k, G) {
  4721. k = p(k, this.userOptions), A(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), A(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 && A(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 && A(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), A(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), A(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, T = u && u.minWidth;
  4813. if (u = u && u.minHeight, !this.renderer.forExport) {
  4814. if (T) {
  4815. if (this.scrollablePixelsX = T = Math.max(0, T - this.chartWidth)) {
  4816. this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.width = this.plotWidth += T, this.inverted ? this.clipBox.height += T : this.clipBox.width += T;
  4817. var O = { 1: { name: "right", value: T } };
  4818. }
  4819. } else
  4820. u && (this.scrollablePixelsY = T = Math.max(
  4821. 0,
  4822. u - this.chartHeight
  4823. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.height = this.plotHeight += T, this.inverted ? this.clipBox.width += T : this.clipBox.height += T, O = { 2: { name: "bottom", value: T } });
  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, T = ".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), O;
  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 && T.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), T.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, T = 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(T.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 && (T.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * T.scrollPositionX), T.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * T.scrollPositionY)), O = this.axisOffset, d = this.plotTop - O[0] - 1, T = 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", T, 0], ["L", T, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", T, C], ["L", T, 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 T = [];
  4883. v.compose = function(B) {
  4884. return T.indexOf(B) === -1 && (T.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, T = 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 && T(C.stacks, function(b, w) {
  4972. w.slice(-5) === "group" && (T(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, A = 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] || (A[m] && A[m][W] ? (n[m][W] = A[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(T, O) {
  5028. var B = T[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(T[1]).attr({ zIndex: 1 }).add(R.group)), C && !d && (B = { stroke: T[2], "stroke-width": S.lineWidth, fill: R.fillGraph && R.color || "none" }, T[3] ? B.dashstyle = T[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, T = [], 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)), T.push.apply(T, x), B = !1);
  5038. }), T.xMap = O, d.graphPath = T;
  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(T, O) {
  5054. T.__proto__ = O;
  5055. } || function(T, O) {
  5056. for (var B in O)
  5057. O.hasOwnProperty(B) && (T[B] = O[B]);
  5058. }, v(d, u);
  5059. };
  5060. return function(d, u) {
  5061. function T() {
  5062. this.constructor = d;
  5063. }
  5064. v(d, u), d.prototype = u === null ? Object.create(u) : (T.prototype = u.prototype, new T());
  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, T = 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 : T.xMap, w.animate({ d: T })) : (a.zIndex = 0, w = u[b] = u.chart.renderer.path(T).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 = T.xMap, w.shiftUnit = O.step ? 2 : 1;
  5082. });
  5083. }, d.prototype.getGraphPath = function(u) {
  5084. var T = 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, A, _) {
  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[A] && u[A].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 = T.call(this, x, !0, !0), w.reversed = !0, o = T.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"]), T = T.call(this, x, !1, O), o.xMap = b.xMap, this.areaPath = o, T;
  5103. }, d.prototype.getStackPoints = function(u) {
  5104. var T = 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(T);
  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, A, _;
  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. A = g.points[L], A || (L === T.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 (A = w[t].points[a[D].index]) {
  5131. n = A[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, T = R[v - 1];
  5170. if (v = R[v + 1], T && !T.isNull && T.doCurve !== !1 && !S.isCliff && v && !v.isNull && v.doCurve !== !1 && !S.isCliff) {
  5171. R = T.plotY || 0;
  5172. var O = v.plotX || 0;
  5173. v = v.plotY || 0;
  5174. var B = 0, C = (1.5 * d + (T.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(T.rightContX, T.plotX, 0), U(T.rightContY, T.plotY, 0), U(C, d, 0), U(b, u, 0), d, u], T.rightContX = T.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, T) {
  5190. u.__proto__ = T;
  5191. } || function(u, T) {
  5192. for (var O in T)
  5193. T.hasOwnProperty(O) && (u[O] = T[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, T = 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 = {}, A = 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(A));
  5249. h.group.animate({ scaleY: 1 }, O(R(h.options.animation), { step: function(D, W) {
  5250. h.group && (n[A] = _ + 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 = {}, A, _ = 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. A = X.stackKey, typeof n[A] > "u" && (n[A] = _++);
  5268. var L = n[A];
  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, A = -(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) + A, i = Math.round(i) + A, o -= i), t = Math.round(h + t) + n, A = 0.5 >= Math.abs(h) && 0.5 < t, h = Math.round(h) + n, t -= h, A && 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 A = 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 && (A = _), D.hasValidPoints && _++) : C(W) && (A = W[1], _ = P || 0);
  5287. }
  5288. }), i = (o.plotX || 0) + ((_ - 1) * t.paddedWidth + h) / 2 - h - A * 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, A = o.threshold, _ = i.translatedThreshold = n.getThreshold(A), 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(A) && b(m) && Y.y === A && m <= A && (n.min || 0) < A && (g !== m || (n.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), T(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", A = i && i.color || this.color, _ = i && i[s] || o[s] || A;
  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. A = 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, A = i.color || typeof h < "u" && S(A).brighten(i.brightness).get() || A, _ = i[s] || _, D = i[n] || D, t = i.dashStyle || t, W = x(i.opacity, W)), s = { fill: A, 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(A) {
  5315. var _ = A.graphic, D = !!_, W = _ && h.pointCount < s ? "animate" : "attr";
  5316. b(A.plotY) && A.y !== null ? (n = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](n).add(A.group || i.group)) && i.enabledDataSorting && h.hasRendered && h.pointCount < s && (_.attr({ x: A.startXPos }), D = !0, W = "animate"), _ && D && _[W](w(n)), o.borderRadius && _[W]({ r: o.borderRadius }), h.styledMode || _[W](i.pointAttribs(A, A.selected && "select")).shadow(A.allowShadow !== !1 && o.shadow, null, o.stacking && !o.borderRadius), _ && (_.addClass(A.getClassName(), !0), _.attr({ visibility: A.visible ? "inherit" : "hidden" }))) : _ && (A.graphic = _.destroy());
  5317. });
  5318. }, p.prototype.drawTracker = function() {
  5319. var i = this, h = i.chart, o = h.pointer, t = function(n) {
  5320. var A = o.getPointFromEvent(n);
  5321. typeof A < "u" && (o.isDirectTouch = !0, A.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(A) {
  5325. A.div ? A.div.point = n : A.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(A) {
  5329. o.onTrackerMouseOut(A);
  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, T;
  5351. return function(O) {
  5352. function B(p, i, h, o, t) {
  5353. var s = this, n = this.chart, A = 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: A, 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, A ? o.x + 1 : o.y + o.height - 1, { inverted: A, 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: A ? this.yAxis.len - W : D, y: Math.round(A ? 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: A ? n.plotWidth - p.plotY : p.plotX, anchorY: A ? 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, A, _ = 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. A = u(x(n, W.dlOptions || W.options && W.options.dataLabels)), A.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, A = 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. A === "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 && (A === "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, A = this.xAxis, _ = A.reversed, D = n ? i.height / 2 : i.width / 2;
  5433. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : A.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. }(T || (T = {})), T;
  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, T, 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 && (T = H(w), 0 > T.y && (T.height += T.y, T.y = 0), w = T.y + T.height - C, 0 < w && w < T.height && (T.height -= w), B && (T = { x: C - T.y - T.height, y: b - T.x - T.width, width: T.height, height: T.width }), a || (B ? (T.x += x ? 0 : T.width, T.width = 0) : (T.y += x ? T.height : 0, T.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, T, 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 T in u)
  5495. u.hasOwnProperty(T) && (d[T] = u[T]);
  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(T, O) {
  5513. ["x", "y"].forEach(function(B, C) {
  5514. var b = "plot" + B.toUpperCase();
  5515. if (d[B] && !T.isNull) {
  5516. var w = v[B + "Axis"], x = d[B] * w.transA;
  5517. if (w && !w.isLog) {
  5518. var a = Math.max(0, T[b] - x);
  5519. w = Math.min(w.len, T[b] + x), C = 1e4 * Math.sin(O + C * u), T[b] = a + (w - a) * (C - Math.floor(C)), B === "x" && (T.clientX = T.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, T = v.plotHeight - 2 * d, O = S.center, B = Math.min(u, T), 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, T, 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(T, O) {
  5549. T.__proto__ = O;
  5550. } || function(T, O) {
  5551. for (var B in O)
  5552. O.hasOwnProperty(B) && (T[B] = O[B]);
  5553. }, v(d, u);
  5554. };
  5555. return function(d, u) {
  5556. function T() {
  5557. this.constructor = d;
  5558. }
  5559. v(d, u), d.prototype = u === null ? Object.create(u) : (T.prototype = u.prototype, new T());
  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, T = this.series.options.dataLabels, O = this.connectorShapes, B = T.connectorShape;
  5571. return O[B] && (B = O[B]), B.call(this, { x: u.final.x, y: u.final.y, alignment: u.alignment }, u.connectorPosition, T);
  5572. }, d.prototype.getTranslate = function() {
  5573. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  5574. }, d.prototype.haloPath = function(u) {
  5575. var T = this.shapeArgs;
  5576. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(T.x, T.y, T.r + u, T.r + u, { innerR: T.r - 1, start: T.start, end: T.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 T = function(O) {
  5584. u.slice(O.type === "select");
  5585. };
  5586. return U(this, "select", T), U(this, "unselect", T), this;
  5587. }, d.prototype.isValid = function() {
  5588. return N(this.y) && 0 <= this.y;
  5589. }, d.prototype.setVisible = function(u, T) {
  5590. var O = this, B = this.series, C = B.chart, b = B.options.ignoreHiddenPoint;
  5591. T = R(T, 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), T && C.redraw());
  5594. }, d.prototype.slice = function(u, T, O) {
  5595. var B = this.series;
  5596. H(O, B.chart), R(T, !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 T = 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 * T.x - d.x, 2 * T.y - d.y, T.x, T.y] : ["L", T.x, T.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 T = this.series, O = T.center[0], B = T.chart.plotWidth, C = T.chart.plotLeft;
  5606. T = v.alignment;
  5607. var b = this.shapeArgs.r;
  5608. return u = S(u.crookDistance, 1), B = T === "left" ? O + b + (B + C - O - b) * (1 - u) : C + (O - b) * u, u = ["L", B, v.y], O = !0, (T === "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, T = 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 A = void 0;
  5665. t = s.shapeArgs, i = s.getTranslate(), a.styledMode || (A = s.shadowGroup, p && !A && (A = s.shadowGroup = c.g("shadow").add(x.shadowGroup)), A && A.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, A), 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, A = 0;
  5680. for (x || (this.center = x = this.getCenter()), n = 0; n < s; n++) {
  5681. var _ = o[n], D = h + A * i;
  5682. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  5683. var W = h + A * 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. T(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, T = 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, A = 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 > A && (nt.dataLabel.css({ width: Math.round(0.7 * A) + "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(T(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(T) {
  5822. T.label && T.label.visibility !== "hidden" && v.push(T.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(T) {
  5828. return T.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, T, 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. (T = S[O]) && (T.oldOpacity = T.opacity, T.newOpacity = 1, T.absoluteBox = b(T));
  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 (T = O + 1; T < d; ++T) {
  5853. var x = (B = S[T]) && 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, T.prototype)), O;
  5871. };
  5872. var T = 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, T, O, B, C, b, w, x, a, c, p, i, h, o, t, s, n, A, _, 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), A.compose(i), T.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(T) {
  5952. function O(t, s, n, A, _, 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], A); 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 A = t - n;
  6003. }
  6004. return typeof A < "u" && typeof s[n] < "u" ? s[n] + (A ? A * (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 A = (t - (this.old ? this.old.min : this.min)) * (this.old ? this.old.transA : this.transA) + this.minPixelPadding;
  6011. if (0 < A && A < this.left + this.len || (s.extendedOrdinalPositions || (s.extendedOrdinalPositions = s.getExtendedPositions()), n = s.extendedOrdinalPositions), n && n.length) {
  6012. if (t = s.getIndexOfPoint(A, 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, A = n[0], n = n[s - 1];
  6015. var _ = (n - A) / (s - 1);
  6016. return 0 > t ? A + _ * t : n + _ * (t - s);
  6017. }
  6018. return t;
  6019. }
  6020. function b(t, s) {
  6021. var n = T.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 T.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, A = 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 - A) / (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 = A, 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, A = n.positions, _ = n.slope, D = n.extendedOrdinalPositions;
  6058. if (!A)
  6059. return t;
  6060. var W = A.length;
  6061. if (A[0] <= t && A[W - 1] >= t)
  6062. t = b(A, 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), A = b(D, A[0]), t >= D[0] && t <= D[W - 1] ? t = b(D, t) - A : t < D[0] ? (t = D[0] - t, t = -A - t / _) : (t -= D[W - 1], t = t / _ + W - A);
  6067. }
  6068. return s ? t : _ * (t || 0) + n.offset;
  6069. }
  6070. T.compose = function(t, s, n) {
  6071. if (d.indexOf(t) === -1) {
  6072. d.push(t);
  6073. var A = t.prototype;
  6074. A.getTimeTicks = O, A.index2val = B, A.lin2val = C, A.val2lin = h, A.ordinal2lin = A.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, A = s.getExtremes(), _ = A.min, D = A.max, W = s.isXAxis && !!s.options.breaks;
  6084. A = s.options.ordinal;
  6085. var P = s.chart.options.chart.ignoreHiddenSeries, X, g, m = [], L = Number.MAX_VALUE, Y = !1;
  6086. if (A || 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 = A && Y, n.groupIntervalFactor = null;
  6107. }, t.findIndexOf = function(s, n, A) {
  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 || A ? _ : -1;
  6111. }, t.prototype.getExtendedPositions = function() {
  6112. var s = this, n = s.axis, A = 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: A.getGroupPixelWidth,
  6122. getTimeTicks: A.getTimeTicks,
  6123. options: { ordinal: !0 },
  6124. ordinal: { getGroupIntervalFactor: this.getGroupIntervalFactor },
  6125. ordinal2lin: A.ordinal2lin,
  6126. getIndexOfPoint: A.getIndexOfPoint,
  6127. val2lin: A.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, A) {
  6135. A = A.processedXData;
  6136. var _ = A.length, D = [], W = this.groupIntervalFactor;
  6137. if (!W) {
  6138. for (W = 0; W < _ - 1; W++)
  6139. D[W] = A[W + 1] - A[W];
  6140. D.sort(function(P, X) {
  6141. return P - X;
  6142. }), D = D[Math.floor(_ / 2)], s = Math.max(s, A[0]), n = Math.min(n, A[_ - 1]), this.groupIntervalFactor = W = _ * D / (n - s);
  6143. }
  6144. return W;
  6145. }, t.prototype.getIndexOfPoint = function(s, n) {
  6146. var A = this.axis, _ = this.positions ? this.positions[0] : 0, D = A.series[0].points && A.series[0].points[0] && A.series[0].points[0].plotX || A.minPixelPadding;
  6147. return 1 < A.series.length && A.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) / (A.translationSlope * (this.slope || A.closestPointRange || this.overscrollPointsRange)), t.findIndexOf(n, _) + s;
  6150. }, t.prototype.getOverscrollPositions = function() {
  6151. var s = this.axis, n = s.options.overscroll, A = this.overscrollPointsRange, _ = [], D = s.dataMax;
  6152. if (N(A))
  6153. for (; D <= s.dataMax + n; )
  6154. D += A, _.push(D);
  6155. return _;
  6156. }, t.prototype.postProcessTickInterval = function(s) {
  6157. var n = this.axis, A = this.slope;
  6158. return A ? n.options.breaks ? n.closestPointRange || s : s / (A / n.closestPointRange) : s;
  6159. }, t;
  6160. }();
  6161. T.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, T = Z.pick, O;
  6165. return function(B) {
  6166. function C(s, n, A) {
  6167. this.isXAxis || (this.series.forEach(function(_) {
  6168. s === "compare" && typeof n != "boolean" ? _.setCompare(n, !1) : s !== "cumulative" || u(n) || _.setCumulative(n, !1);
  6169. }), T(A, !0) && this.chart.redraw());
  6170. }
  6171. function b(s) {
  6172. var n = this, A = n.series.chart.numberFormatter, _ = function(D) {
  6173. s = s.replace("{point." + D + "}", (0 < n[D] && D === "change" ? "+" : "") + A(n[D], T(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 A = void 0;
  6190. this.options.compare ? A = [this.dataModify.modifyValue(s.dataMin), this.dataModify.modifyValue(s.dataMax)] : this.options.cumulative && v(n) && 2 <= n.length && (A = t.getCumulativeExtremes(n)), A && (s.dataMin = N(A), s.dataMax = F(A));
  6191. }
  6192. }
  6193. function a(s, n) {
  6194. this.options.compare = this.userOptions.compare = s, this.update({}, T(n, !0)), !this.dataModify || s !== "value" && s !== "percent" ? this.points.forEach(function(A) {
  6195. delete A.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, A = 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 < A - _; 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 = T(s, !1), this.options.cumulative = this.userOptions.cumulative = s, this.update({}, T(n, !0)), this.dataModify ? this.dataModify.initCumulative() : this.points.forEach(function(A) {
  6215. delete A.cumulativeSum;
  6216. });
  6217. }
  6218. function h(s, n) {
  6219. this.setModifier("cumulative", s, n);
  6220. }
  6221. var o = [];
  6222. B.compose = function(s, n, A) {
  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(A) === -1 && (o.push(A), A.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 A = 1 / 0, _ = -1 / 0;
  6238. return n.reduce(function(D, W) {
  6239. return W = D + W, A = Math.min(A, W, D), _ = Math.max(
  6240. _,
  6241. W,
  6242. D
  6243. ), W;
  6244. }), [A, _];
  6245. }, s.prototype.initCompare = function(n) {
  6246. this.modifyValue = function(A, _) {
  6247. A === null && (A = 0);
  6248. var D = this.compareValue;
  6249. return typeof A < "u" && typeof D < "u" ? (A = n === "value" ? A - D : A / D * 100 - (this.series.options.compareBase === 100 ? 0 : 100), typeof _ < "u" && (_ = this.series.points[_]) && (_.change = A), A) : 0;
  6250. };
  6251. }, s.prototype.initCumulative = function() {
  6252. this.modifyValue = function(n, A) {
  6253. if (n === null && (n = 0), n !== void 0 && A !== void 0) {
  6254. var _ = 0 < A ? this.series.points[A - 1] : null;
  6255. return _ && _.cumulativeSum && (n = R(_.cumulativeSum + n)), (A = this.series.points[A]) && (A.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 T() {
  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(A) {
  6299. h = n && n.breakArray || [], o = a.isXAxis ? a.min : N(p.options.threshold, a.min), i.forEach(function(_) {
  6300. s = N(_["stack" + A.toUpperCase()], _[A]), 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", T), 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, A, _) {
  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, A, _);
  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 = [], A = 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 - _ + A, H(h, "afterBreaks"), h.staticScale ? h.transA = h.staticScale : i.unitLength && (h.transA *= (P - h.min + A) / i.unitLength), A && (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, T = 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 = T(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, A) {
  6474. if (t = a.open(t), s = a.high(s), n = a.low(n), A = a.close(A), b(t) || b(s) || b(n) || b(A))
  6475. return [t, s, n, A];
  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, A) {
  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. A = typeof A == "function" ? A : a[A] ? a[A] : 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 = A.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, A = this.allowDG !== !1 && n && x(n.enabled, s.options.isStock), _ = this.visible || !s.options.chart.ignoreHiddenSeries, D, W = this.currentDataGrouping, P = !1;
  6537. if (A && !this.requireSorting && (this.requireSorting = P = !0), t = !!(this.isCartesian && !this.isDirty && !this.xAxis.isDirty && !this.yAxis.isDirty && !t) || !A, P && (this.requireSorting = !1), !t) {
  6538. this.destroyGroupedData(), A = 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 && A && A.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, A[0]), Math.max(L, A[A.length - 1]), P.options.startOfWeek, A, this.closestPointRange), m = v.groupData.apply(this, [A, X, t, n.approximation]), A = m.groupedXData, X = m.groupedYData, g = 0, n && n.smoothed && A.length && (n.firstAnchor = "firstPoint", n.anchor = "middle", n.lastAnchor = "lastPoint", B(32, !1, s, { "dataGrouping.smoothed": "use dataGrouping.anchor" })), s = A;
  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, _ && (_ = A, 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(A, X, P.min, P.max, 1), A = n.xData, X = n.yData, this.cropStart = n.start), this.processedXData = A, 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, A = 0, _ = !1, D;
  6581. for (n = s; n--; )
  6582. (D = t[n].options.dataGrouping) && (A = Math.max(A, 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 / A || s && D.forced) && (_ = !0));
  6585. return _ ? A : 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(A) {
  6593. A.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, A = t.labelConfig, _ = A.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(A.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(A.x, D.dateTimeLabelFormats));
  6616. P = n.dateFormat(P, A.key), L && (P += n.dateFormat(L, A.key + m.totalRange - 1)), _.chart.styledMode && (g = this.styledModeFormat(g)), t.text = S(g, { point: C(A.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, A = N.defaultOptions.plotOptions[s].dataGrouping, _ = this.useCommonDataGrouping && i;
  6621. if (n && (h[s] || _)) {
  6622. A || (A = w(i, h[s]));
  6623. var D = this.chart.rangeSelector;
  6624. t.dataGrouping = w(
  6625. _,
  6626. A,
  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, T = Math.round(S.plotX) - u, O = Math.round(S.shapeArgs.width / 2), B = [["M", T, Math.round(S.yBottom)], ["L", T, Math.round(S.plotHigh)]];
  6694. return S.close !== null && (S = Math.round(S.plotClose) + u, B.push(["M", T, S], ["L", T + 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, T = !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[T ? "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(T) {
  6708. return "plot" + (T.charAt(0).toUpperCase() + T.slice(1));
  6709. });
  6710. u.push("yBottom"), d.push("low"), N.prototype.translate.apply(S), S.points.forEach(function(T) {
  6711. d.forEach(function(O, B) {
  6712. O = T[O], O !== null && (S.dataModify && (O = S.dataModify.modifyValue(O)), T[u[B]] = v.toPixels(O, !0));
  6713. }), T.tooltipPos[1] = T.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(T, O) {
  6764. T.__proto__ = O;
  6765. } || function(T, O) {
  6766. for (var B in O)
  6767. O.hasOwnProperty(B) && (T[B] = O[B]);
  6768. }, v(d, u);
  6769. };
  6770. return function(d, u) {
  6771. function T() {
  6772. this.constructor = d;
  6773. }
  6774. v(d, u), d.prototype = u === null ? Object.create(u) : (T.prototype = u.prototype, new T());
  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, T) {
  6782. var O = v.prototype.getPointPath.call(this, u, T);
  6783. T = T.strokeWidth();
  6784. var B = T % 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, T / 2, u)), O;
  6786. }, d.prototype.pointAttribs = function(u, T) {
  6787. T = v.prototype.pointAttribs.call(this, u, T);
  6788. var O = this.options;
  6789. return delete T.fill, !u.options.color && O.upColor && u.open < u.close && (T.stroke = O.upColor), T;
  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 T in u)
  6809. u.hasOwnProperty(T) && (d[T] = u[T]);
  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), T = this.options, O = v.open < v.close, B = T.lineColor || this.color, C = v.color || this.color;
  6828. return u["stroke-width"] = T.lineWidth, u.fill = v.options.color || O && T.upColor || C, u.stroke = v.options.lineColor || O && T.upLineColor || B, d && (v = T.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(T) {
  6832. var O = T.graphic, B = !O;
  6833. if (typeof T.plotY < "u") {
  6834. O || (T.graphic = O = d.renderer.path().add(v.group)), v.chart.styledMode || O.attr(v.pointAttribs(T, T.selected && "select")).shadow(v.options.shadow);
  6835. var C = O.strokeWidth() % 2 / 2, b = Math.round(T.plotX) - C, w = T.plotOpen, x = T.plotClose, a = Math.min(w, x);
  6836. w = Math.max(w, x);
  6837. var c = Math.round(T.shapeArgs.width / 2);
  6838. x = u ? w !== T.yBottom : Math.round(a) !== Math.round(T.plotHigh);
  6839. var p = u ? Math.round(a) !== Math.round(T.plotHigh) : w !== T.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 ? T.yBottom : T.plotHigh) : a], ["M", b, w], ["L", b, p ? Math.round(u ? T.plotHigh : T.yBottom) : w]), O[B ? "attr" : "animate"]({ d: C }).addClass(T.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, T = u.options, O = u.chart, B = u.points, C = T.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. T = T.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. }), T = "plot" + T[0].toUpperCase() + T.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[T] < "u") {
  6899. if (t.x <= s && (t.plotY = n[T], n.x < t.x && !b && (o = w[i + 1]) && typeof o[T] < "u")) {
  6900. var A = (t.x - n.x) / (o.x - n.x);
  6901. t.plotY += A * (o[T] - n[T]), t.y += A * (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 T = u.prototype;
  6921. T.getPlotBox = S, T.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 T = 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], A = (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 <= _ && !A ? (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(T(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 = T(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, T = v.scrollMax - u;
  7060. I(v.axisMin) && I(d) && (R.horiz && !R.reversed || !R.horiz && R.reversed ? (v = u + T * this.to, u += T * this.from) : (v = u + T * (1 - this.from), u += T * (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, T = 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 ? T : 0), this.width, this.height), this.opposite || (u[1] += T), d = 1) : (this.opposite && (u[0] += d), R.position(
  7070. R.options.opposite ? this.left + this.width + 2 + u[0] - (this.opposite ? 0 : T) : this.opposite ? 0 : T,
  7071. this.top,
  7072. this.width,
  7073. this.height
  7074. ), this.opposite && (u[0] += T), 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, T = 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. T.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, T) {
  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(T, O.translate(d, !0, !O.horiz)), O = B && (d - v) / B, U(u) || (v = H(v + C)), U(T) || (d = H(d - C)), 0.7 < O && 1.3 > O && (T ? 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, T = u.navigator, O = this.navigatorAxis, B = u.chart.pinchType, C = u.rangeSelector;
  7214. u = u.chart.zoomType, this.isXAxis && (T && T.enabled || C && C.enabled) && (u === "y" ? d.zoomed = !1 : (!I && u === "xy" || I && B === "xy") && this.options.range && (T = O.previousZoom, U(d.newMin) ? O.previousZoom = [this.min, this.max] : T && (d.newMin = T[0], d.newMax = T[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, T = 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(T, { navigator: { height: 40, margin: 25, maskInside: !0, handles: { width: 7, height: 15, symbols: ["navigator-handle", "navigator-handle"], enabled: !0, lineWidth: 1, backgroundColor: "#f2f2f2", borderColor: "#999999" }, maskFill: 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 A = 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) ? T.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, T.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. T.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 = A, 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 A(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 A(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 = A, 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. }), A = "HkIlMS".split("").some(function(_) {
  7538. return s.indexOf("%" + _) !== -1;
  7539. });
  7540. return n && A ? "datetime-local" : n ? "date" : A ? "time" : "text";
  7541. }
  7542. var N = Z.defaultOptions, R = U.addEvent, S = U.createElement, v = U.css, d = U.defined, u = U.destroyObjectProperties, T = 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, A) {
  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. }), A = !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(A, !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 A = this, _ = n.options.rangeSelector, D = _.buttons || A.defaultButtons.slice(), W = _.selected, P = function() {
  7601. var X = A.minInput, g = A.maxInput;
  7602. X && X.blur && C(X, "blur"), g && g.blur && C(g, "blur");
  7603. };
  7604. A.chart = n, A.options = _, A.buttons = [], A.buttonOptions = D, this.eventsToUnbind = [], this.eventsToUnbind.push(R(n.container, "mousedown", P)), this.eventsToUnbind.push(R(n, "resize", P)), D.forEach(A.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" && A.forcedDataGrouping && !A.frozenStates && this.setDataGrouping(!1, !1);
  7607. });
  7608. }));
  7609. }, s.prototype.updateButtonStates = function() {
  7610. var n = this, A = this.chart, _ = this.dropdown, D = A.xAxis[0], W = Math.round(D.max - D.min), P = !D.hasVisibleSeries, X = A.scroller && A.scroller.getUnionExtremes() || D, g = X.dataMin, m = X.dataMax;
  7611. A = n.getYTDExtremes(m, g, A.time.useUTC);
  7612. var L = A.min, Y = A.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 A = n.type, _ = n.count || 1, D = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5 };
  7621. D[A] ? n._range = D[A] * _ : (A === "month" || A === "year") && (n._range = 864e5 * { month: 30, year: 365 }[A] * _), 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 A = this.chart.options.rangeSelector, _ = this.chart.time;
  7625. return n ? (n.type === "text" && A.inputDateParser || this.defaultInputDateParser)(n.value, _.useUTC, _) : 0;
  7626. }, s.prototype.setInputValue = function(n, A) {
  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(A) && (d(P) && W.setAttribute("data-hc-time-previous", P), W.setAttribute("data-hc-time", A), P = A), 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, A, _) {
  7633. if (n = n === "min" ? this.minInput : this.maxInput) {
  7634. var D = this.inputTypeFormats[n.type], W = this.chart.time;
  7635. D && (A = W.dateFormat(D, A), n.min !== A && (n.min = A), _ = W.dateFormat(D, _), n.max !== _ && (n.max = _));
  7636. }
  7637. }, s.prototype.showInput = function(n) {
  7638. var A = n === "min" ? this.minDateBox : this.maxDateBox;
  7639. if ((n = n === "min" ? this.minInput : this.maxInput) && A && 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: _ ? A.width + (P ? -2 : 20) + "px" : "auto", height: _ ? A.height - 2 + "px" : "auto", border: "2px solid silver" }), _ && P ? v(n, { left: W + A.x + "px", top: D + "px" }) : v(n, { left: Math.min(Math.round(A.x + W - (n.offsetWidth - A.width) / 2), this.chart.chartWidth - n.offsetWidth) + "px", top: D - (n.offsetHeight - A.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, A, _) {
  7648. var D = n.split("/").join("-").split(" ").join("T");
  7649. if (D.indexOf("T") === -1 && (D += "T00:00"), A)
  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]))), _ && A && b(D) && (D += _.getTimezoneOffset(D)), D;
  7656. }, s.prototype.drawInput = function(n) {
  7657. function A() {
  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 && A(), P.hideInput(n), P.setInputValue(n), V.blur();
  7686. };
  7687. var Q = !1;
  7688. return V.onchange = function() {
  7689. Q || (A(), P.hideInput(n), V.blur());
  7690. }, V.onkeypress = function(k) {
  7691. k.keyCode === 13 && A();
  7692. }, V.onkeydown = function(k) {
  7693. Q = !0, k.keyCode !== 38 && k.keyCode !== 40 || A();
  7694. }, V.onkeyup = function() {
  7695. Q = !1;
  7696. }, { dateBox: g, input: V, label: Y };
  7697. }, s.prototype.getPosition = function() {
  7698. var n = this.chart, A = n.options.rangeSelector;
  7699. return n = A.verticalAlign === "top" ? n.plotTop - n.axisOffset[0] : 0, { buttonTop: n + A.buttonPosition.y, inputTop: n + A.inputPosition.y - 10 };
  7700. }, s.prototype.getYTDExtremes = function(n, A, _) {
  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), A = Math.max(A, _), W = W.getTime(), { max: Math.min(n || W, W), min: A };
  7703. }, s.prototype.render = function(n, A) {
  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", A), 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, A = 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 = A[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), A[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 && A[Y].attr("title", L.title);
  7742. });
  7743. }, s.prototype.alignElements = function() {
  7744. var n = this, A = 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 (A) {
  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(A, m), this.alignButtonGroup(g), W.placed = A.placed = D.hasLoaded;
  7759. }
  7760. A = 0, P && (A = Q(P, Y), Y.align === "left" ? G = k : Y.align === "right" && (G = -Math.max(D.axisOffset[1], -A)), 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(A), W.align({ verticalAlign: V }, !0, D.spacingBox), P = W.alignAttr.translateY, A = 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, A = A + Q - 20, Q = P - A - (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 - A)), 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, A) {
  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(A, this.initialButtonGroupWidth), align: W.align, x: X }, !0, _.spacingBox);
  7765. }, s.prototype.positionButtons = function() {
  7766. var n = this.buttons, A = this.chart, _ = this.options, D = this.zoomText, W = A.hasLoaded ? "animate" : "attr", P = _.buttonPosition, X = A.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 A = 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 A.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 A = 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 = A[V], V.state !== 2 ? V.hide() : (V.show(), V.attr(m(Y.text)), L = !0);
  7803. }), L || (W && (W.selectedIndex = 0), A[0].show(), A[0].attr(m(this.zoomText && this.zoomText.textStr))), _ = P.buttonPosition.align, this.positionButtons(), _ !== "right" && _ !== "center" || this.alignButtonGroup(n, A[this.currentButtonIndex()].getBBox().width), this.showDropdown();
  7804. }, s.prototype.expandButtons = function() {
  7805. var n = this.buttons, A = this.buttonOptions, _ = this.options, D = this.zoomText;
  7806. this.hideDropdown(), D && D.show(), A.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, A = this.buttons, _ = this.chart, D = this.dropdown;
  7814. if (n && D) {
  7815. var W = n.translateX;
  7816. n = n.translateY, A = A[this.currentButtonIndex()].getBBox(), v(D, { left: _.plotLeft + W + "px", top: n + 0.5 + "px", width: A.width + "px", height: A.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, A = this.group, _ = n.y, D = n.buttonPosition.y, W = n.inputPosition.y;
  7823. return n.height ? n.height : (this.alignElements(), n = A ? A.getBBox(!0).height + 13 + _ : 0, A = Math.min(W, D), (0 > W && 0 > D || 0 < W && 0 < D) && (n += Math.abs(A)), 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 A = this.chart;
  7828. w(!0, A.options.rangeSelector, n), this.destroy(), this.init(A), this.render();
  7829. }, s.prototype.destroy = function() {
  7830. var n = this, A = n.minInput, _ = n.maxInput;
  7831. n.eventsToUnbind && (n.eventsToUnbind.forEach(function(D) {
  7832. return D();
  7833. }), n.eventsToUnbind = void 0), u(n.buttons), A && (A.onfocus = A.onblur = A.onchange = null), _ && (_.onfocus = _.onblur = _.onchange = null), x(n, function(D, W) {
  7834. D && W !== "chart" && (D instanceof H ? D.destroy() : D instanceof window.HTMLElement && T(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, A = 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 = A - s, P = s;
  7852. else
  7853. W = A + D(A, -s.count), this.chart && (this.chart.fixedRange = A - 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(A) || (W = void 0), W;
  7856. }, !I.RangeSelector) {
  7857. var o = [], t = function(s) {
  7858. function n() {
  7859. _ && (A = s.xAxis[0].getExtremes(), D = s.legend, P = _ && _.options.verticalAlign, b(A.min) && _.render(A.min, A.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 A, _ = 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(A) {
  7873. A.updateNames(), A.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 A = 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 !== A || 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(A) {
  7891. return A();
  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 T = 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, A = a(h.navigator && h.navigator.enabled, t.navigator.enabled, !0);
  7939. h.xAxis = h.yAxis = void 0, A = x({ chart: { panning: { enabled: !0, type: "x" }, pinchType: "x" }, navigator: { enabled: A }, 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, A.xAxis = c(h.xAxis || {}).map(function(_, D) {
  7940. return x(R("xAxis", _), t.xAxis, t.xAxis && t.xAxis[D], _, S("xAxis", h));
  7941. }), A.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, A, 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, A = 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 = T(_, 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(A + h.height - k), Y !== "pass" && (D < A || D > A + h.height) && (Y ? D = P = T(D, A, A + 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, A = 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" : A ? 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 += A ? 0 : this.height) : (t = A ? 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 && !A || !g && A) && (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, A) {
  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 A < "u") {
  8072. var P = "";
  8073. D && (W += "?"), b(A, 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: A }, 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(A, _) {
  8087. F(t[_], !0) && !t.nodeType && s[_] ? (A = I(t[_], s[_]), Object.keys(A).length && (n[_] = A)) : (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 A;
  8117. return H(s) ? v(n) ? t.setAttribute(s, n) : t && t.getAttribute && ((A = t.getAttribute(s)) || s !== "class" || (A = t.getAttribute(s + "Name"))) : b(s, function(_, D) {
  8118. v(_) ? t.setAttribute(D, _) : t.removeAttribute(D);
  8119. }), A;
  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 T() {
  8129. for (var t = arguments, s = t.length, n = 0; n < s; n++) {
  8130. var A = t[n];
  8131. if (typeof A < "u" && A !== null)
  8132. return A;
  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 A = 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 - (A(t, "padding-left", !0) || 0) - (A(t, "padding-right", !0) || 0));
  8145. if (s === "height")
  8146. return Math.max(0, Math.min(t.offsetHeight, t.scrollHeight) - (A(t, "padding-top", !0) || 0) - (A(t, "padding-bottom", !0) || 0));
  8147. if (p.getComputedStyle || j(27, !0), t = p.getComputedStyle(t, void 0)) {
  8148. var _ = t.getPropertyValue(s);
  8149. T(n, s !== "opacity") && (_ = Z(_));
  8150. }
  8151. return _;
  8152. }
  8153. function b(t, s, n) {
  8154. for (var A in t)
  8155. Object.hasOwnProperty.call(t, A) && s.call(n || t[A], t[A], A, t);
  8156. }
  8157. function w(t, s, n) {
  8158. function A(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. A(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. }), A(s, n)) : (_(W), W[s] = [])) : (_(W), delete D.hcEvents);
  8183. }
  8184. }
  8185. function x(t, s, n, A) {
  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. A && !n.defaultPrevented && A.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, A = t.length;
  8211. for (n = 0; n < A; 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 A;
  8218. return j(32, !1, void 0, (A = {}, A["Highcharts." + s] = "use Array." + t, A)), 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, A) {
  8232. A === void 0 && (A = {});
  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: A.passive === void 0 ? s.indexOf("touch") !== -1 : A.passive, capture: !1 } : !1), _[s] || (_[s] = []), _[s].push({ fn: n, order: typeof A.order == "number" ? A.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, A, _) {
  8254. return t = c.createElement(t), s && u(t, s), _ && O(t, { padding: "0", border: "none", margin: "0" }), n && O(t, n), A && A.appendChild(t), t;
  8255. }, css: O, defined: v, destroyObjectProperties: function(t, s) {
  8256. b(t, function(n, A) {
  8257. n && n !== s && n.destroy && n.destroy(), delete t[A];
  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 = {}, A = 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] = A(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 = A(n, s[t]);
  8296. return n;
  8297. }, normalizeTickInterval: function(t, s, n, A, _) {
  8298. var D = t;
  8299. n = T(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], A === !1 && (n === 1 ? s = s.filter(function(P) {
  8302. return P % 1 === 0;
  8303. }) : 0.1 >= n && (s = [1 / n]))), A = 0; A < s.length && (D = s[A], !(_ && D * n >= t || !_ && W <= (s[A] + (s[A + 1] || s[A])) / 2)); A++)
  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: T, 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, A, _;
  8317. for (_ = 0; _ < n; _++)
  8318. t[_].safeI = _;
  8319. for (t.sort(function(D, W) {
  8320. return A = s(D, W), A === 0 ? D.safeI - W.safeI : A;
  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 = T(t, h);
  8336. }, wrap: function(t, s, n) {
  8337. var A = t[s];
  8338. t[s] = function() {
  8339. var _ = Array.prototype.slice.call(arguments), D = arguments, W = this;
  8340. return W.proceed = function() {
  8341. A.apply(W, arguments.length ? arguments : D);
  8342. }, _.unshift(A), _ = 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, T = 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 || T && 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(A, _) {
  8475. for (; C.indexOf("%" + _) !== -1; )
  8476. C = C.replace("%" + _, typeof A == "function" ? A.call(x, b) : A);
  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), A = 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, A + 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 T = S[u], O = R[u], B = [], C = 0; C < O.length; C++) {
  8631. var b = T[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, T = function(C) {
  8646. return T.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, T.elem = this.elem, T.prop = this.prop, T() && N.timers.push(T) === 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, T = v.duration, O = v.curAnim;
  8660. if (d.attr && !d.element)
  8661. R = !1;
  8662. else if (R || S >= T + 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) / T), 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 T = 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 (T && O && O.length) {
  8696. for (R = 0; R < T.length; R++)
  8697. if (T[R] === O[0]) {
  8698. var b = R;
  8699. break;
  8700. } else if (T[0] === O[O.length - T.length + R]) {
  8701. b = R;
  8702. var w = !0;
  8703. break;
  8704. } else if (T[T.length - 1] === O[O.length - T.length + R]) {
  8705. b = T.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, T) {
  8726. for (var O = y.timers.length; O--; )
  8727. y.timers[O].elem !== u || T && T !== 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, T, 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(T), v(T, function(a, c) {
  8737. Z(u, c), w = new y(u, O, c), b = void 0, c === "d" && F(T.d) ? (w.paths = w.initPath(u, u.pathArray, T.d), w.toD = T.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, T, O) {
  8740. var B = I(T), C = 0, b = 0;
  8741. return (O ? [O] : u.series).forEach(function(w) {
  8742. w = I(w.options.animation), C = T && H(T.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, T) {
  8745. T.renderer.globalAnimation = d(u, T.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(T) {
  8749. return T;
  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 T(O) {
  8758. this.nodes = typeof O == "string" ? this.parseMarkup(O) : O;
  8759. }
  8760. return T.filterUserAttributes = function(O) {
  8761. return R(O, function(B, C) {
  8762. var b = !0;
  8763. T.allowedAttributes.indexOf(C) === -1 && (b = !1), ["background", "dynsrc", "href", "lowsrc", "src"].indexOf(C) !== -1 && (b = N(B) && T.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. }, T.setElementHTML = function(O, B) {
  8768. O.innerHTML = T.emptyHTML, B && new T(B).addToDOM(O);
  8769. }, T.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 (T.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, T.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. }, T.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. }, T.allowedAttributes = "aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" "), T.allowedReferences = "https:// http:// mailto: / ../ ./ #".split(" "), T.allowedTags = "a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" "), T.emptyHTML = d, T;
  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 T = 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, T.decimalPoint), u = N(u, T.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 = "{", T = !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 (T) {
  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 = (T = !T) ? "}" : "{";
  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. }, T = 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, T), 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, T), 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, T = 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, A = 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 = A(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] = "" + A(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 T.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 !== T.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 = A(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) : (A(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, T) {
  9260. u.__proto__ = T;
  9261. } || function(u, T) {
  9262. for (var O in T)
  9263. T.hasOwnProperty(O) && (u[O] = T[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, T, 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 = T, 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 T = "width" in u;
  9295. "fontSize" in u || "fontWeight" in u ? this.updateTextPadding() : T && 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 = {}, T = 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 * T, d = this.renderer.fontMetrics(d && d.fontSize, this.text), this.baselineOffset = T + Math.min((this.text.firstLineMetrics || d).b, O.height || 1 / 0), this.heightSetting && (this.baselineOffset += (this.heightSetting - d.h) / 2), this.needsBox && (this.box || (T = this.box = this.symbolKey ? this.renderer.symbol(this.symbolKey) : this.renderer.rect(), T.addClass((this.className === "button" ? "" : "highcharts-label-box") + (this.className ? " highcharts-" + this.className + "-box" : "")), T.add(this)), T = this.getCrispAdjust(), u.x = T, u.y = (this.baseline ? -this.baselineOffset : 0) + T, 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, T = N(this.paddingLeft, this.padding);
  9337. Z(this.widthSetting) && this.bBox && (this.textAlign === "center" || this.textAlign === "right") && (T += { center: 0.5, right: 1 }[this.textAlign] * (this.widthSetting - this.bBox.width)), (T !== d.x || u !== d.y) && (d.attr("x", T), d.hasBoxWidthChanged && (this.bBox = d.getBBox(!0)), typeof u < "u" && d.attr("y", u)), d.x = T, 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 T = 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) - T - 2 * Math.PI)), b = Math.cos(T), w = Math.sin(T), x = Math.cos(B), a = Math.sin(B);
  9363. T = F(d.longArc, 1e-3 > B - T - Math.PI ? 0 : 1), u.push(["M", N + O * b, R + S * w], ["A", O, S, 0, T, 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, T, 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), T = 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 + T && d < R + v - T ? 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 + T && d < R + v - T ? 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 + T && O < N + S - T ? 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 + T && O < N + S - T && 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, T = d.renderer, O = S(d.textStr, "").toString(), B = O.indexOf("<") !== -1, C = u.childNodes;
  9398. T = this.width && !d.added && T.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 !== "" && (T && T.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. ), T && T.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, T = 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: T }));
  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: T }), 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, T = 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(T);
  9463. };
  9464. d.forEach(T);
  9465. }, v.prototype.truncate = function(d, u, T, O, B, C) {
  9466. var b = this.svgElement, w = b.renderer, x = b.rotation, a = [], c = T ? 1 : 0, p = (u || T || "").length, i = p, h, o = function(s, n) {
  9467. n = n || s;
  9468. var A = d.parentNode;
  9469. if (A && typeof a[n] > "u")
  9470. if (A.getSubStringLength)
  9471. try {
  9472. a[n] = O + A.getSubStringLength(0, T ? n + 1 : n);
  9473. } catch {
  9474. }
  9475. else
  9476. w.getSpanWidth && (d.textContent = C(u || T, 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), T && (h = C(T, 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 || T, i));
  9485. }
  9486. T && T.splice(0, i), b.actualWidth = t, b.rotation = x;
  9487. }, v.prototype.unescapeEntities = function(d, u) {
  9488. return R(this.renderer.escapes, function(T, O) {
  9489. u && u.indexOf(T) !== -1 || (d = d.toString().replace(new RegExp(T, "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, T = 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, A = 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, T ? "mouseover" : "mouseenter", function() {
  9552. nt !== 3 && it.setState(1);
  9553. }), x(it.element, T ? "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. A(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 T = function(O, B) {
  9658. return T = 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. }, T(O, B);
  9664. };
  9665. return function(O, B) {
  9666. function C() {
  9667. this.constructor = O;
  9668. }
  9669. T(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(T) {
  9673. function O() {
  9674. return T !== null && T.apply(this, arguments) || this;
  9675. }
  9676. return Z(O, T), 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(A) {
  9699. R(A, { marginLeft: b + 1, marginTop: w + 1 });
  9700. }), this.inverted && [].forEach.call(C.childNodes, function(A) {
  9701. B.invertChild(A, 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, T) {
  9728. u.__proto__ = T;
  9729. } || function(u, T) {
  9730. for (var O in T)
  9731. T.hasOwnProperty(O) && (u[O] = T[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, T) {
  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(T) }).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, A) {
  9771. i[A] = n, A === "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(A) {
  9787. this.element.setAttribute("class", A), n.className = A;
  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, T = 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 = T(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, A;
  9863. if (x = this.parameters.category || (x ? T(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 (A = 0; A < X.length; A++)
  9888. if (R(W, { dateTimeLabelFormat: X[A] }), 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), A = {}, _ = 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), A.x = B, A.y = Math.round(C), S(this, "afterGetLabelPosition", { pos: A, tickmarkOffset: a, index: c }), A;
  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 = T(C.labelLeft, Math.min(C.pos, a[3]));
  9912. a = T(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, A = 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, A = -1), n = Math.min(t, n), n < t && C.labelAlign === "center" && (B.x += A * (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 = T(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 = T(b, this.label && this.label.newOpacity, 1), b = T(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 = T(
  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 = T(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 = T(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, T = 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, A = 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 = A(m.opposite, this.opposite), this.side = A(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 = A(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 = A(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(A(g.dataMin, k), k), g.dataMax = Math.max(A(g.dataMax, G), G));
  10012. }
  10013. } else
  10014. Y = Y.applyExtremes(), h(Y.dataMin) && (k = Y.dataMin, g.dataMin = Math.min(A(g.dataMin, k), k)), h(Y.dataMax) && (G = Y.dataMax, g.dataMax = Math.max(A(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 = A(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 ? A(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, A(g.min, L - it)], $ && (it[2] = this.logarithmic ? this.logarithmic.log2lin(this.dataMin) : this.dataMin), L = u(it), Y = [L + q, A(g.max, L + q)], $ && (Y[2] = m ? m.log2lin(this.dataMax) : this.dataMax), Y = T(Y), Y - L < q && (it[0] = Y - q, it[1] = A(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) : A(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 ? A(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 = A(this.userMin, Y.min), rt = A(this.userMax, Y.max);
  10133. if (Q) {
  10134. this.linkedParent = m[this.coll][Y.linkedTo];
  10135. var ct = this.linkedParent.getExtremes();
  10136. this.min = A(ct.min, ct.dataMin), this.max = A(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 = A(nt, ct, this.dataMin), this.max = A(rt, gt, this.dataMax);
  10147. }
  10148. if (L && (this.positiveValuesOnly && !g && 0 >= Math.min(this.min, A(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 : A(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 = A(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), A(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 = A(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 = A(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, A(Q.min, Y)), G = Math.max(V, A(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(_(A(m.width, g.plotWidth - L[3] + L[1]), g.plotWidth)), Q = this.height = Math.round(_(A(m.height, g.plotHeight - L[0] + L[2]), g.plotHeight)), k = this.top = Math.round(_(A(m.top, g.plotTop + L[0]), g.plotHeight, g.plotTop));
  10227. m = this.left = Math.round(_(A(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 = (A(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 = A(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 = A($, 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, A(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 : A(nt.margin, Y ? 5 : 10);
  10346. }
  10347. m.renderLine(), m.offset = gt * A(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 ? A(rt.y, m.tickRotCorr.y + 8 * gt) : rt.x)), m.axisTitleMargin = A(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 = A(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 = A(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 : A(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: A(L.zIndex, 2) }).add(), V.styledMode || (k.attr({ stroke: L.color || (Y ? I.parse("#ccd6eb").setOpacity(0.25).get() : "#cccccc"), "stroke-width": A(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, A(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, A(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, T) {
  10474. var O = T || [["millisecond", [1, 2, 5, 10, 20, 25, 50, 100, 200, 500]], ["second", [1, 2, 5, 10, 15, 30]], ["minute", [1, 2, 5, 10, 15, 30]], ["hour", [1, 2, 3, 4, 6, 8, 12]], ["day", [1, 2]], ["week", [1, 2]], ["month", [1, 2, 3, 4, 6]], ["year", null]];
  10475. T = O[O.length - 1];
  10476. var B = H[T[0]], C = T[1], b;
  10477. for (b = 0; b < O.length && (T = O[b], B = H[T[0]], C = T[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, T[0] === "year" ? Math.max(I(u / B), 1) : 1), { unitRange: B, count: u, unitName: T[0] };
  10480. }, d.prototype.getXDateFormat = function(u, T) {
  10481. var O = this.axis;
  10482. return O.closestPointRange ? O.chart.time.getDateFormat(O.closestPointRange, u, O.options.startOfWeek, T) || T.year : T.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, T, 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, T, O);
  10514. else if (0.08 <= u) {
  10515. var a = Math.floor(T), 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 > T && (!B || w <= O) && typeof w < "u" && x.push(w), w > O && (p = !0), w = h;
  10521. }
  10522. }
  10523. } else
  10524. T = this.lin2log(T), O = this.lin2log(O), u = B ? C.getMinorTickInterval() : w.tickInterval, u = H(u === "auto" ? null : u, this.minorAutoInterval, w.tickPixelInterval / (B ? 5 : 1) * (O - T) / ((B ? b / C.tickPositions.length : b) || 1)), u = Z(u, void 0, I(u)), x = C.getLinearTickPositions(u, T, 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 T = 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 && T) {
  10548. if (d) {
  10549. var C = v.toString() === T.toString();
  10550. u = 0;
  10551. }
  10552. for (d = 0; d < v.length; d += 2) {
  10553. var b = v[d], w = v[d + 1], x = T[d], a = T[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, T = this.userOptions, O = new N(this, v);
  10567. if (this.visible && (O = O.render()), O) {
  10568. if (this._addedPlotLB || (this._addedPlotLB = !0, (T.plotLines || []).concat(T.plotBands || []).forEach(function(C) {
  10569. u.addPlotBandOrLine(C);
  10570. })), d) {
  10571. var B = T[d] || [];
  10572. B.push(v), T[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, T = this.userOptions;
  10579. if (d) {
  10580. for (var O = d.length; O--; )
  10581. d[O].id === v && d[O].destroy();
  10582. [u.plotLines || [], T.plotLines || [], u.plotBands || [], T.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, T) {
  10598. this.axis = u, T && (this.options = T, this.id = T.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, T = u.axis, O = T.horiz, B = T.logarithmic, C = u.options, b = C.color, w = v(C.zIndex, 0), x = C.events, a = {}, c = T.chart.renderer, p = C.label, i = u.label, h = C.to, o = C.from, t = C.value, s = u.svgElem, n = [], A = H(o) && H(h);
  10605. n = H(t);
  10606. var _ = !s, D = { class: "highcharts-plot-" + (A ? "band " : "line ") + (C.className || "") }, W = A ? "bands" : "lines";
  10607. if (B && (o = B.log2lin(o), h = B.log2lin(h), t = B.log2lin(t)), T.chart.styledMode || (n ? (D.stroke = b || "#999999", D["stroke-width"] = v(C.width, 1), C.dashStyle && (D.dashstyle = C.dashStyle)) : A && (D.fill = b || "#e6ebf5", C.borderWidth && (D.stroke = C.borderColor, D["stroke-width"] = C.borderWidth))), a.zIndex = w, W += "-" + w, (B = T.plotLinesAndBandsGroups[W]) || (T.plotLinesAndBandsGroups[W] = B = c.g("plot-" + W).attr(a).add()), _ && (u.svgElem = s = c.path().attr(D).add(B)), n)
  10608. n = T.getPlotLinePath({
  10609. value: t,
  10610. lineWidth: s.strokeWidth(),
  10611. acrossPanes: C.acrossPanes
  10612. });
  10613. else if (A)
  10614. n = T.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 < T.width && 0 < T.height && !n.isFlat ? (p = R({ align: O && A && "center", x: O ? !A && 4 : 10, verticalAlign: !O && A && "middle", y: O ? A ? 16 : 10 : A ? 6 : -4, rotation: O && !A && 90 }, p), this.renderLabel(
  10622. p,
  10623. n,
  10624. A,
  10625. w
  10626. )) : i && i.hide(), u;
  10627. }, d.prototype.renderLabel = function(u, T, 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 = T.xBounds || [T[0][1], T[1][1], O ? T[2][1] : T[0][1]], T = T.yBounds || [T[0][2], T[1][2], O ? T[2][2] : T[0][2]], O = Z(B), b = Z(T), w.align(
  10630. u,
  10631. !1,
  10632. { x: O, y: b, width: I(B) - O, height: I(T) - 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, T = 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, A = 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 - A, 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 += A + o.plotWidth - _.len - _.pos) : (W += D.pos - A, 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 - A : 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"), A = 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", A), 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", A).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 = {}, A = 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 - A ? at : at - A);
  10720. else if (ht)
  10721. n[z] = Math.max(nt, et + A + q > $ ? et : et + A);
  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, A = s.options.animation !== !1 && !s.isHidden && (1 < Math.abs(i - n.x) || 1 < Math.abs(h - n.y)), _ = s.followPointer || 1 < s.len;
  10747. T(n, { x: A ? (2 * n.x + i) / 3 : i, y: A ? (n.y + h) / 2 : h, anchorX: _ ? void 0 : A ? (2 * n.anchorX + o) / 3 : o, anchorY: _ ? void 0 : A ? (n.anchorY + t) / 2 : t }), s.getLabel().attr(n), s.drawTracker(), A && (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], A = [], _ = 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"), A.push(Y.getLabelConfig());
  10757. }), P = { x: n.category, y: n.y }, P.points = A) : P = n.getLabelConfig(), this.len = A.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, A = 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 + A, 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 T(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 A = t.xDateFormat, _ = t[h ? "footerFormat" : "headerFormat"];
  10855. return O(this, "headerFormatter", s, function(D) {
  10856. n && !A && C(i.key) && (A = n.getXDateFormat(i.key, t.dateTimeLabelFormats)), n && A && (i.point && i.point.tooltipDateKeys || ["key"]).forEach(function(W) {
  10857. _ = _.replace("{point." + W + "}", "{point." + W + ":" + A + "}");
  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), A = 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 + ")" }), A *= t.scaleX, i *= t.scaleY), A += t.left - n.x, i += t.top - n.y), this.move(Math.round(n.x), Math.round(n.y || 0), A, 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, T = 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(A) {
  10881. A.element && A.animate(d({ x: o.startXPos }, A.startYPos ? { x: A.startXPos, y: A.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 A = n.hoverPoints, _ = U(t.series.chart.renderer.globalAnimation), D;
  10899. t.legendItem && n.legend.destroyItem(t), A && (t.setState(), v(A, t), A.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, A = this.series.options;
  10911. (A.point.events[o] || n.options && n.options.events && n.options.events[o]) && n.importEvents(), o === "click" && A.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: [] }, A;
  10918. for (o = o || { graphic: 1, dataLabel: 1 }, o.graphic && s.push("graphic", "upperGraphic", "shadowGroup"), o.dataLabel && s.push("dataLabel", "dataLabelUpper", "connector"), A = s.length; A--; ) {
  10919. var _ = s[A];
  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 ? T(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"], A = 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 > A && (t = typeof o[0], t === "string" ? _.name = o[0] : t === "number" && (_.x = o[0]), D++); W < A; )
  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, A, _, D) {
  10966. return n[A] = D.length - 1 === _ ? t : b(n[A], !0) ? n[A] : {}, n[A];
  10967. }, o), o;
  10968. }, h.prototype.tooltipFormatter = function(o) {
  10969. var t = this.series, s = t.tooltipOptions, n = a(s.valueDecimals, ""), A = 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, (A || _) && (o = o.replace(RegExp(D + "}", "g"), A + 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 A() {
  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 ? A() : _.firePointEvent("update", { options: o }, A);
  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, A = 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 || A.getSelectedPoints().forEach(function(_) {
  10987. var D = _.series;
  10988. _.selected && _ !== s && (_.selected = _.options.selected = !1, D.options.data[D.data.indexOf(_)] = _.options, _.setState(A.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, A = 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" || A.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, A.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. A = A.halo, Y = (V = this.graphic || V) && V.visibility || "inherit", A && A.size && V && Y !== "hidden" && !this.isCluster ? (L || (s.halo = L = g.renderer.path().add(V.parentGroup)), L.show()[t ? "animate" : "attr"]({ d: this.haloPath(A.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": A.opacity }, y.filterUserAttributes(A.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, T = 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, A = 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 + A && (g = s + A), 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 : A, 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, A = o.attr ? o.attr("height") : o.height, _ = { originalEvent: c, xAxis: [], yAxis: [], x: t, y: s, width: n, height: A }, 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 + A) - X), _[W.coll].push({ axis: W, min: Math.min(g, P), max: Math.max(g, P) }), D = !0;
  11065. }
  11066. }), D && T(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 A = 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 : A !== 0 ? A : _ !== 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. T(this, "beforeGetHoverData", n);
  11115. var A = 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(A, o, t);
  11118. return p = _ && _.series, _ && (o && !p.noSharedTooltip ? (A = i.filter(function(D) {
  11119. return n.filter ? n.filter(D) : D.visible && !(!o && D.directTouch) && w(D.options.enableMouseTracking, !0) && !D.noSharedTooltip;
  11120. }), A.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: _ }, T(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") ? (T(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 }) && T(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, A = {}, _ = 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 && (T(i, "touchpan", { originalEvent: c }, function() {
  11199. W || (p.selectionMarker = W = d({ destroy: F, touch: !0 }, i.plotBox)), p.pinchTranslate(h, o, A, W, D, s), p.hasPinched = n, p.scaleGroups(A, 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 A = this.chart, _ = c ? "x" : "y", D = c ? "X" : "Y", W = "chart" + D, P = c ? "width" : "height", X = A["plot" + (c ? "Left" : "Top")], g = A.inverted, m = A.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 = A["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(A) {
  11218. A.series.isCartesian && typeof A.plotX > "u" && (c = !1);
  11219. }), c ? s && n && x(n).length && (s.refresh(n), s.shared && t ? t.forEach(function(A) {
  11220. A.setState(A.state, !0), A.series.isCartesian && (A.series.xAxis.crosshair && A.series.xAxis.drawCrosshair(
  11221. null,
  11222. A
  11223. ), A.series.yAxis.crosshair && A.series.yAxis.drawCrosshair(null, A));
  11224. }) : o && (o.setState(o.state, !0), i.axes.forEach(function(A) {
  11225. A.crosshair && o.series[A.coll] === A && A.drawCrosshair(null, o);
  11226. }))) : (o && o.onMouseOut(), t && t.forEach(function(A) {
  11227. A.setState();
  11228. }), h && h.onMouseOut(), s && s.hide(p), this.unDocMouseMove && (this.unDocMouseMove = this.unDocMouseMove()), i.axes.forEach(function(A) {
  11229. A.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(A) {
  11237. n.indexOf(A) === -1 && A.setState();
  11238. }), i.hoverSeries !== s && s.onMouseOver(), this.applyInactiveState(n), (n || []).forEach(function(A) {
  11239. A.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(A) {
  11246. var _ = U[a.hoverChartIndex];
  11247. _ && _.pointer.onDocumentMouseMove(A);
  11248. }), this.eventsToUnbind.push(this.unDocMouseMove)), i.axes.forEach(function(A) {
  11249. var _ = w((A.crosshair || {}).snap, !0), D;
  11250. _ && ((D = i.hoverPoint) && D.series[A.coll] === A || (D = u(n, function(W) {
  11251. return W.series[A.coll] === A;
  11252. }))), D || !_ ? A.drawCrosshair(c, D) : A.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, T = 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(T), 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, T = 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, A = 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 }), A && A.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, A = !s.rtl, _ = o._legendItemPos;
  11397. s = _[0], _ = _[1];
  11398. var D = o.checkbox, W = o.legendGroup;
  11399. W && W.element && (n = { translateX: A ? s : this.legendWidth - s - 2 * n - 4, translateY: _ }, A = function() {
  11400. b(t, "afterPositionItem", { item: o });
  11401. }, O(W.translateY) ? W.animate(n, void 0, A) : (W.attr(n), A())), 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(A) {
  11422. var _ = A.checkbox;
  11423. if (_) {
  11424. var D = n + s + _.y + (this.scrollOffset || 0) + 3;
  11425. T(_, { left: o.translateX + A.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, A = 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 = A + _ + 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 ? A + _ : -_, 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", A = 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(A, this.lastLineHeight), o._legendItemPos = [this.itemX, this.itemY], n ? this.itemX += t : (this.itemY += D + A + _, this.lastLineHeight = A), 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, A = this.getAlignment();
  11452. A && [/(lth|ct|rth)/, /(rtv|rm|rbv)/, /(rbh|cb|lbh)/, /(lbv|lm|ltv)/].forEach(function(_, D) {
  11453. _.test(A) && !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 A, _ = s;
  11459. if (n.yAxis) {
  11460. n.xAxis.options.reversed && (_ = !_), n.points && (A = 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 ? (A = A ? A.plotY : n.yAxis.height, A += D - 0.3 * _) : A = D + n.yAxis.height, t.push({ target: A, 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, A = 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(A, function(X, g) {
  11474. return (X.options && X.options.legendIndex || 0) - (g.options && g.options.legendIndex || 0);
  11475. }), s.reversed && A.reverse(), this.allItems = A, this.display = W = !!A.length, this.itemHeight = this.totalItemWidth = this.maxItemWidth = this.lastLineHeight = 0, A.forEach(this.renderItem, this), A.forEach(this.layoutItem, this), A = (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 < A && 0 < P && (D[D.isNew ? "attr" : "animate"](D.crisp.call({}, { x: 0, y: 0, width: A, height: P }, D.strokeWidth())), D.isNew = !1), D[W ? "show" : "hide"](), o.styledMode && _.getStyle("display") === "none" && (A = P = 0), this.legendWidth = A, 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, A = this.options, _ = A.y, D = A.verticalAlign === "top", W = this.padding, P = A.maxHeight, X = A.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 A.layout !== "horizontal" || A.verticalAlign === "middle" || A.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, A = this.pages, _ = A.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 = -A[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, A = 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 && A.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(""), A.removeClass(D), o.setState();
  11526. }).on("click", function(g) {
  11527. var m = function() {
  11528. o.setVisible && o.setVisible(), P(o.visible ? "inactive" : "");
  11529. };
  11530. A.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 T = H.plotOptions || {}, O = u.defaultOptions;
  11560. u.prototype.pointClass || (u.prototype.pointClass = I), u.prototype.type = d, O && (T[d] = O), S.seriesTypes[d] = u;
  11561. }
  11562. S.seriesTypes = y.seriesTypes, S.getSeries = function(d, u) {
  11563. u === void 0 && (u = {});
  11564. var T = d.options.chart;
  11565. T = u.type || T.type || T.defaultSeriesType || "";
  11566. var O = S.seriesTypes[T];
  11567. return S || U(17, !0, d, { missingModuleFor: T }), T = new O(), typeof T.init == "function" && T.init(d, u), T;
  11568. }, S.registerSeriesType = v, S.seriesType = function(d, u, T, O, B) {
  11569. var C = H.plotOptions || {};
  11570. return u = u || "", C[d] = N(C[u], T), 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, T, 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 = T.addEvent, A = T.attr, _ = T.cleanRecursively, D = T.createElement, W = T.css, P = T.defined, X = T.discardElement, g = T.erase, m = T.error, L = T.extend, Y = T.find, V = T.fireEvent, Q = T.getStyle, k = T.isArray, G = T.isNumber, z = T.isObject, $ = T.isString, q = T.merge, it = T.objectEach, et = T.pick, nt = T.pInt, rt = T.relativeLength, ct = T.removeEvent, gt = T.splat, dt = T.syncTimeout, ht = T.uniqueKey;
  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(A(pt, "data-highcharts-chart"));
  11740. G(yt) && a[yt] && a[yt].hasRendered && a[yt].destroy(), A(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) && (T.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 = {}, T = 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), T && T.enabled !== !1 && N && (F = Math.min(I(T.radius, S), S), this.symbol.indexOf("url") === 0 && (T = j(T, { width: R, height: R }), F = 0), this.legendSymbol = N = v.symbol(this.symbol, N / 2 - F, U - F, 2 * F, 2 * F, T).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, T = 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, A = 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. A(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 }), T(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), A(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. A(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. }), A(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. A(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 }), A(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, A(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, A(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) }, A(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, A(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, A(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 (A(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, A(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, A(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. })), A(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 && A(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 ? A(
  12528. it,
  12529. "remove",
  12530. null,
  12531. q
  12532. ) : q();
  12533. }, Q.prototype.update = function(k, G) {
  12534. k = p(k, this.userOptions), A(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), A(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 && A(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 && A(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), A(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), A(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, T = u && u.minWidth;
  12626. if (u = u && u.minHeight, !this.renderer.forExport) {
  12627. if (T) {
  12628. if (this.scrollablePixelsX = T = Math.max(0, T - this.chartWidth)) {
  12629. this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.width = this.plotWidth += T, this.inverted ? this.clipBox.height += T : this.clipBox.width += T;
  12630. var O = { 1: { name: "right", value: T } };
  12631. }
  12632. } else
  12633. u && (this.scrollablePixelsY = T = Math.max(
  12634. 0,
  12635. u - this.chartHeight
  12636. )) && (this.scrollablePlotBox = this.renderer.scrollablePlotBox = S(this.plotBox), this.plotBox.height = this.plotHeight += T, this.inverted ? this.clipBox.width += T : this.clipBox.height += T, O = { 2: { name: "bottom", value: T } });
  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, T = ".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "), O;
  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 && T.push(O + ":not(.highcharts-radial-axis)", O + "-labels:not(.highcharts-radial-axis-labels)"), T.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, T = 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(T.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 && (T.scrollPositionX && (this.scrollingContainer.scrollLeft = this.scrollablePixelsX * T.scrollPositionX), T.scrollPositionY && (this.scrollingContainer.scrollTop = this.scrollablePixelsY * T.scrollPositionY)), O = this.axisOffset, d = this.plotTop - O[0] - 1, T = 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", T, 0], ["L", T, this.plotTop - 1], ["L", O, this.plotTop - 1], ["L", O, 0], ["Z"], ["M", T, C], ["L", T, 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 T = [];
  12696. v.compose = function(B) {
  12697. return T.indexOf(B) === -1 && (T.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, T = 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 && T(C.stacks, function(b, w) {
  12785. w.slice(-5) === "group" && (T(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, A = 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] || (A[m] && A[m][W] ? (n[m][W] = A[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(T, O) {
  12841. var B = T[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(T[1]).attr({ zIndex: 1 }).add(R.group)), C && !d && (B = { stroke: T[2], "stroke-width": S.lineWidth, fill: R.fillGraph && R.color || "none" }, T[3] ? B.dashstyle = T[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, T = [], 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)), T.push.apply(T, x), B = !1);
  12851. }), T.xMap = O, d.graphPath = T;
  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(T, O) {
  12867. T.__proto__ = O;
  12868. } || function(T, O) {
  12869. for (var B in O)
  12870. O.hasOwnProperty(B) && (T[B] = O[B]);
  12871. }, v(d, u);
  12872. };
  12873. return function(d, u) {
  12874. function T() {
  12875. this.constructor = d;
  12876. }
  12877. v(d, u), d.prototype = u === null ? Object.create(u) : (T.prototype = u.prototype, new T());
  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, T = 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 : T.xMap, w.animate({ d: T })) : (a.zIndex = 0, w = u[b] = u.chart.renderer.path(T).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 = T.xMap, w.shiftUnit = O.step ? 2 : 1;
  12895. });
  12896. }, d.prototype.getGraphPath = function(u) {
  12897. var T = 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, A, _) {
  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[A] && u[A].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 = T.call(this, x, !0, !0), w.reversed = !0, o = T.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"]), T = T.call(this, x, !1, O), o.xMap = b.xMap, this.areaPath = o, T;
  12916. }, d.prototype.getStackPoints = function(u) {
  12917. var T = 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(T);
  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, A, _;
  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. A = g.points[L], A || (L === T.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 (A = w[t].points[a[D].index]) {
  12944. n = A[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, T = R[v - 1];
  12983. if (v = R[v + 1], T && !T.isNull && T.doCurve !== !1 && !S.isCliff && v && !v.isNull && v.doCurve !== !1 && !S.isCliff) {
  12984. R = T.plotY || 0;
  12985. var O = v.plotX || 0;
  12986. v = v.plotY || 0;
  12987. var B = 0, C = (1.5 * d + (T.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(T.rightContX, T.plotX, 0), U(T.rightContY, T.plotY, 0), U(C, d, 0), U(b, u, 0), d, u], T.rightContX = T.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, T) {
  13003. u.__proto__ = T;
  13004. } || function(u, T) {
  13005. for (var O in T)
  13006. T.hasOwnProperty(O) && (u[O] = T[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, T = 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 = {}, A = 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(A));
  13062. h.group.animate({ scaleY: 1 }, O(R(h.options.animation), { step: function(D, W) {
  13063. h.group && (n[A] = _ + 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 = {}, A, _ = 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. A = X.stackKey, typeof n[A] > "u" && (n[A] = _++);
  13081. var L = n[A];
  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, A = -(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) + A, i = Math.round(i) + A, o -= i), t = Math.round(h + t) + n, A = 0.5 >= Math.abs(h) && 0.5 < t, h = Math.round(h) + n, t -= h, A && 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 A = 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 && (A = _), D.hasValidPoints && _++) : C(W) && (A = W[1], _ = P || 0);
  13100. }
  13101. }), i = (o.plotX || 0) + ((_ - 1) * t.paddedWidth + h) / 2 - h - A * 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, A = o.threshold, _ = i.translatedThreshold = n.getThreshold(A), 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(A) && b(m) && Y.y === A && m <= A && (n.min || 0) < A && (g !== m || (n.max || 0) <= A) && (k = !k), G = Math.abs(G - _) > D ? V - D : _ - (k ? D : 0)), T(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", A = i && i.color || this.color, _ = i && i[s] || o[s] || A;
  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. A = 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, A = i.color || typeof h < "u" && S(A).brighten(i.brightness).get() || A, _ = i[s] || _, D = i[n] || D, t = i.dashStyle || t, W = x(i.opacity, W)), s = { fill: A, 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(A) {
  13128. var _ = A.graphic, D = !!_, W = _ && h.pointCount < s ? "animate" : "attr";
  13129. b(A.plotY) && A.y !== null ? (n = A.shapeArgs, _ && A.hasNewShapeType() && (_ = _.destroy()), i.enabledDataSorting && (A.startXPos = i.xAxis.reversed ? -(n && n.width || 0) : i.xAxis.width), _ || (A.graphic = _ = t[A.shapeType](n).add(A.group || i.group)) && i.enabledDataSorting && h.hasRendered && h.pointCount < s && (_.attr({ x: A.startXPos }), D = !0, W = "animate"), _ && D && _[W](w(n)), o.borderRadius && _[W]({ r: o.borderRadius }), h.styledMode || _[W](i.pointAttribs(A, A.selected && "select")).shadow(A.allowShadow !== !1 && o.shadow, null, o.stacking && !o.borderRadius), _ && (_.addClass(A.getClassName(), !0), _.attr({ visibility: A.visible ? "inherit" : "hidden" }))) : _ && (A.graphic = _.destroy());
  13130. });
  13131. }, p.prototype.drawTracker = function() {
  13132. var i = this, h = i.chart, o = h.pointer, t = function(n) {
  13133. var A = o.getPointFromEvent(n);
  13134. typeof A < "u" && (o.isDirectTouch = !0, A.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(A) {
  13138. A.div ? A.div.point = n : A.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(A) {
  13142. o.onTrackerMouseOut(A);
  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, T;
  13164. return function(O) {
  13165. function B(p, i, h, o, t) {
  13166. var s = this, n = this.chart, A = 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: A, 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, A ? o.x + 1 : o.y + o.height - 1, { inverted: A, 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: A ? this.yAxis.len - W : D, y: Math.round(A ? 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: A ? n.plotWidth - p.plotY : p.plotX, anchorY: A ? 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, A, _ = 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. A = u(x(n, W.dlOptions || W.options && W.options.dataLabels)), A.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, A = 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. A === "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 && (A === "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, A = this.xAxis, _ = A.reversed, D = n ? i.height / 2 : i.width / 2;
  13246. p = (p = p.pointWidth) ? p / 2 : 0, i.startXPos = n ? t.x : _ ? -D - p : A.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. }(T || (T = {})), T;
  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, T, 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 && (T = H(w), 0 > T.y && (T.height += T.y, T.y = 0), w = T.y + T.height - C, 0 < w && w < T.height && (T.height -= w), B && (T = { x: C - T.y - T.height, y: b - T.x - T.width, width: T.height, height: T.width }), a || (B ? (T.x += x ? 0 : T.width, T.width = 0) : (T.y += x ? T.height : 0, T.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, T, 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 T in u)
  13308. u.hasOwnProperty(T) && (d[T] = u[T]);
  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(T, O) {
  13326. ["x", "y"].forEach(function(B, C) {
  13327. var b = "plot" + B.toUpperCase();
  13328. if (d[B] && !T.isNull) {
  13329. var w = v[B + "Axis"], x = d[B] * w.transA;
  13330. if (w && !w.isLog) {
  13331. var a = Math.max(0, T[b] - x);
  13332. w = Math.min(w.len, T[b] + x), C = 1e4 * Math.sin(O + C * u), T[b] = a + (w - a) * (C - Math.floor(C)), B === "x" && (T.clientX = T.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, T = v.plotHeight - 2 * d, O = S.center, B = Math.min(u, T), 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, T, 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(T, O) {
  13362. T.__proto__ = O;
  13363. } || function(T, O) {
  13364. for (var B in O)
  13365. O.hasOwnProperty(B) && (T[B] = O[B]);
  13366. }, v(d, u);
  13367. };
  13368. return function(d, u) {
  13369. function T() {
  13370. this.constructor = d;
  13371. }
  13372. v(d, u), d.prototype = u === null ? Object.create(u) : (T.prototype = u.prototype, new T());
  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, T = this.series.options.dataLabels, O = this.connectorShapes, B = T.connectorShape;
  13384. return O[B] && (B = O[B]), B.call(this, { x: u.final.x, y: u.final.y, alignment: u.alignment }, u.connectorPosition, T);
  13385. }, d.prototype.getTranslate = function() {
  13386. return this.sliced ? this.slicedTranslation : { translateX: 0, translateY: 0 };
  13387. }, d.prototype.haloPath = function(u) {
  13388. var T = this.shapeArgs;
  13389. return this.sliced || !this.visible ? [] : this.series.chart.renderer.symbols.arc(T.x, T.y, T.r + u, T.r + u, { innerR: T.r - 1, start: T.start, end: T.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 T = function(O) {
  13397. u.slice(O.type === "select");
  13398. };
  13399. return U(this, "select", T), U(this, "unselect", T), this;
  13400. }, d.prototype.isValid = function() {
  13401. return N(this.y) && 0 <= this.y;
  13402. }, d.prototype.setVisible = function(u, T) {
  13403. var O = this, B = this.series, C = B.chart, b = B.options.ignoreHiddenPoint;
  13404. T = R(T, 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), T && C.redraw());
  13407. }, d.prototype.slice = function(u, T, O) {
  13408. var B = this.series;
  13409. H(O, B.chart), R(T, !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 T = 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 * T.x - d.x, 2 * T.y - d.y, T.x, T.y] : ["L", T.x, T.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 T = this.series, O = T.center[0], B = T.chart.plotWidth, C = T.chart.plotLeft;
  13419. T = v.alignment;
  13420. var b = this.shapeArgs.r;
  13421. return u = S(u.crookDistance, 1), B = T === "left" ? O + b + (B + C - O - b) * (1 - u) : C + (O - b) * u, u = ["L", B, v.y], O = !0, (T === "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, T = 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 A = void 0;
  13478. t = s.shapeArgs, i = s.getTranslate(), a.styledMode || (A = s.shadowGroup, p && !A && (A = s.shadowGroup = c.g("shadow").add(x.shadowGroup)), A && A.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, A), 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, A = 0;
  13493. for (x || (this.center = x = this.getCenter()), n = 0; n < s; n++) {
  13494. var _ = o[n], D = h + A * i;
  13495. !_.isValid() || a && !_.visible || (A += _.percentage / 100);
  13496. var W = h + A * 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. T(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, T = 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, A = 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 > A && (nt.dataLabel.css({ width: Math.round(0.7 * A) + "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(T(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(T) {
  13635. T.label && T.label.visibility !== "hidden" && v.push(T.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(T) {
  13641. return T.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, T, 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. (T = S[O]) && (T.oldOpacity = T.opacity, T.newOpacity = 1, T.absoluteBox = b(T));
  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 (T = O + 1; T < d; ++T) {
  13666. var x = (B = S[T]) && 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, T.prototype)), O;
  13684. };
  13685. var T = 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, T, O, B, C, b, w, x, a, c, p, i, h, o, t, s, n, A, _, 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), A.compose(i), T.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, T = this.chart.renderer;
  13802. if (this.group || (this.group = T.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), T = 0; T < d; T++)
  13804. u[T] && this.axis ? this.renderBackground(N(this.defaultBackgroundOptions, u[T]), T) : this.background[T] && (this.background[T] = this.background[T].destroy(), this.background.splice(T, 1));
  13805. }, v.prototype.renderBackground = function(d, u) {
  13806. var T = "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), T = "attr"), this.background[u][T]({ 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(T) {
  13812. T.pane === this && (T.pane = null, T.update({}, u));
  13813. }, this);
  13814. }, v;
  13815. }(), l.prototype.getHoverPane = function(v) {
  13816. var d = this, u;
  13817. return v && d.pane.forEach(function(T) {
  13818. var O = v.chartX - d.plotLeft, B = v.chartY - d.plotTop;
  13819. H(d.inverted ? B : O, d.inverted ? O : B, T.center) && (u = T);
  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, T = 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 A() {
  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", A), U($, "init", _), U($, "initialAxisTranslation", D)), Q.indexOf(q) === -1 && (Q.push(q), U(
  14009. q,
  14010. "afterGetLabelPosition",
  14011. W
  14012. ), U(q, "afterGetPosition", P), T(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, T = 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 A = { polarPlotY: s.polarPlotY, rectPlotX: s.rectPlotX, yBottom: s.yBottom, plotX: T(
  14097. s.plotHighX,
  14098. s.plotX
  14099. ), plotY: s.plotHigh, isNull: s.isNull };
  14100. x.push(A), w.push(A), 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 = T(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, T, 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, A = 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), T = 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, T], ["L", x, C]], s.stem[A]({ d: n }), h && (w = s.box.strokeWidth() % 2 / 2, T = Math.floor(T) + w, O = Math.floor(O) + w, c += w, p += w, n = [["M", c, O], ["L", c, T], ["L", p, T], ["L", p, O], ["L", c, O], ["Z"]], s.box[A]({ 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[A]({ d: n })), b = Math.round(s.medianPlot), w = s.medianShape.strokeWidth() % 2 / 2, b += w, n = [["M", c, b], ["L", p, b]], s.medianShape[A]({ 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, T) {
  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, T);
  14247. }
  14248. return d.prototype.init = function(u, T) {
  14249. this.options = u, this.visible = !0, this.chart = T.chart, this.legend = T;
  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 T = this.chart, O = this.options, B = S(u.options.itemDistance, 20), C = O.ranges, b = O.connectorDistance;
  14258. this.fontMetrics = T.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, T = 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 = T + b + B, this.legendItemHeight = T + this.fontMetrics.h / 2) : u.options.bubbleLegend.autoRanges = !0;
  14261. }, d.prototype.setOptions = function() {
  14262. var u = this.ranges, T = this.options, O = this.chart.series[T.seriesIndex], B = this.legend.baseline, C = { zIndex: T.zIndex, "stroke-width": T.borderWidth }, b = { zIndex: T.zIndex, "stroke-width": T.connectorWidth }, w = { align: this.legend.options.rtl || T.labels.align === "left" ? "right" : "left", zIndex: T.zIndex }, x = O.options.marker.fillOpacity, a = this.chart.styledMode;
  14263. u.forEach(function(c, p) {
  14264. a || (C.stroke = S(c.borderColor, T.borderColor, O.color), C.fill = S(c.color, T.color, x !== 1 ? Z(O.color).setOpacity(x).get("rgba") : O.color), b.stroke = S(c.connectorColor, T.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 T = this.options;
  14268. return this.chart.series[this.options.seriesIndex].getRadius.call(
  14269. this,
  14270. T.ranges[T.ranges.length - 1].value,
  14271. T.ranges[0].value,
  14272. T.minSize,
  14273. T.maxSize,
  14274. u
  14275. );
  14276. }, d.prototype.render = function() {
  14277. var u = this.chart.renderer, T = 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 >= T && 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 T = this.options, O = T.labels, B = this.chart, C = B.series[T.seriesIndex], b = B.renderer, w = this.symbols;
  14283. B = w.labels;
  14284. var x = u.center, a = Math.abs(u.radius), c = T.connectorDistance || 0, p = O.align, i = T.connectorWidth, h = this.ranges[0].radius || 0, o = x - a - T.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, T.connectorDistance = 0, u.labelAttribs.align = "center"), p = o + T.labels.y;
  14288. var n = h + c + T.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 " + (T.className || "")).add(this.legendSymbol)), w.connectors.push(b.path(b.crispLine([["M", h, o], ["L", h + c, o]], T.connectorWidth)).attr(s ? {} : u.connectorAttribs).addClass((s ? "highcharts-color-" + this.options.seriesIndex + " " : "") + "highcharts-bubble-legend-connectors " + (T.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 " + (T.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, T;
  14296. return this.symbols.labels.forEach(function(O) {
  14297. T = O.getBBox(!0), u = u ? T.width > u.width ? T : u : T;
  14298. }), u || {};
  14299. }, d.prototype.formatLabel = function(u) {
  14300. var T = this.options, O = T.labels.formatter;
  14301. T = T.labels.format;
  14302. var B = this.chart.numberFormatter;
  14303. return T ? y.format(T, u) : O ? O.call(u) : B(u.value, 1);
  14304. }, d.prototype.hideOverlappingLabels = function() {
  14305. var u = this.chart, T = this.symbols;
  14306. !this.options.labels.allowOverlap && T && (u.hideOverlappingLabels(T.labels), T.labels.forEach(function(O, B) {
  14307. O.newOpacity ? O.newOpacity !== O.oldOpacity && T.connectors[B].show() : T.connectors[B].hide();
  14308. }));
  14309. }, d.prototype.getRanges = function() {
  14310. var u = this.legend.bubbleLegend, T = 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 T.length && T[0].radius && b.reverse(), b.forEach(function(w, x) {
  14319. T && T[x] && (b[x] = R(T[x], w));
  14320. }), b;
  14321. }, d.prototype.predictBubbleSizes = function() {
  14322. var u = this.chart, T = 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) ? T = a : (x = parseFloat(x), T = (c + C - T.h / 2) * x / 100 / (x / 100 + 1), (O && w - T >= b || !O && b - T >= w) && (T = a)), [u, Math.ceil(T)];
  14326. }, d.prototype.updateRanges = function(u, T) {
  14327. var O = this.legend.options.bubbleLegend;
  14328. O.minSize = u, O.maxSize = T, O.ranges = this.getRanges();
  14329. }, d.prototype.correctSizes = function() {
  14330. var u = this.legend, T = this.chart.series[this.options.seriesIndex].getPxExtremes();
  14331. 1 < Math.abs(Math.ceil(T.maxPxSize) - this.options.maxSize) && (this.updateRanges(this.options.minSize, T.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 T() {
  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", T));
  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, T = 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, A = -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), A = Math.max(A || P.zMax, P.zMax), _ = !0);
  14466. }), _ ? (h = { zMin: n, zMax: A }, 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, A = 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), A = Math.max(c - n, Math.abs(a - n)), a = 0), h < a)
  14480. return p / 2 - 1;
  14481. 0 < A && (_ = (h - a) / A);
  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, T(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(A) {
  14544. if (A.bubblePadding && (A.visible || !a.options.chart.ignoreHiddenSeries)) {
  14545. n = w.allowZoomOutside = !0;
  14546. var _ = A[h];
  14547. if (i && A.getRadii(0, 0, A), 0 < t) {
  14548. for (var D = _.length; D--; )
  14549. if (B(_[D]) && w.dataMin <= _[D] && _[D] <= w.max) {
  14550. var W = A.radii && A.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(A) {
  14556. typeof b(w.options[A[0]], w[A[1]]) > "u" && (w[A[0]] += A[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 T = function(O, B) {
  14590. return T = 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. }, T(O, B);
  14596. };
  14597. return function(O, B) {
  14598. function C() {
  14599. this.constructor = O;
  14600. }
  14601. T(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(T) {
  14609. function O() {
  14610. var B = T !== null && T.apply(this, arguments) || this;
  14611. return B.data = void 0, B.points = void 0, B.options = void 0, B;
  14612. }
  14613. return Z(O, T), 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 T = S.yAxis, O = d.threshold, B = S.translatedThreshold = T.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, T.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 ? [T.len + T.pos - v.plotLeft - h, S.xAxis.len - i - o, p] : [i + o, h + T.pos - v.plotTop, p], h = O + (c.total || c.y), d.stacking === "percent" && (h = O + (0 > c.y) ? -100 : 100), h = T.toPixels(h, !0);
  14681. var n = (s = v.plotHeight - h - (v.plotHeight - B)) ? o * (t - h) / s : 0, A = s ? o * (t + p - h) / s : 0;
  14682. s = i - n + o, n = i + n + o;
  14683. var _ = i + A + o;
  14684. A = i - A + o;
  14685. var D = t - C, W = t + p;
  14686. 0 > c.y && (D = t, W = t + p + C), v.inverted && (_ = T.width - t, s = h - (T.width - B), n = o * (h - _) / s, A = o * (h - (_ - p)) / s, s = i + o + n, n = s - 2 * n, _ = i - A + o, A = i + A + 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", A, 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(T, 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(T, O);
  14766. };
  14767. return function(T, O) {
  14768. function B() {
  14769. this.constructor = T;
  14770. }
  14771. u(T, O), T.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 T() {
  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(T, u), T.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. }, T.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. }, T.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. }, T.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. }, T.prototype.setData = function(O, B) {
  14809. H.prototype.setData.call(this, O, !1), this.processData(), this.generatePoints(), v(B, !0) && this.chart.redraw();
  14810. }, T.prototype.hasData = function() {
  14811. return !!this.points.length;
  14812. }, T.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 }), T;
  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), T = d.filter(function(b) {
  15092. return b.linksTo.length === 0;
  15093. }), O = [], B = {}, C = this.options.initialPositionRadius;
  15094. T.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(T) {
  15104. return T = T * T / Math.PI, T -= Math.floor(T);
  15105. }
  15106. var v = this.box, d = this.nodes, u = d.length + 1;
  15107. d.forEach(function(T, O) {
  15108. T.plotX = T.prevX = R(T.plotX, v.width * S(O)), T.plotY = T.prevY = R(T.plotY, v.height * S(u + O)), T.dispX = 0, T.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 T = this.repulsiveForce(u, this.k);
  15129. this.force("repulsive", S, T * v.mass, d, u);
  15130. var O = !1;
  15131. } else
  15132. O = !0;
  15133. else
  15134. T = this.repulsiveForce(u, this.k), this.force("repulsive", S, T * 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), T = S.vectorLength(u);
  15150. if (T !== 0) {
  15151. var O = S.repulsiveForce(T, S.k);
  15152. S.force("repulsive", v, O * d.mass, u, T);
  15153. }
  15154. }
  15155. });
  15156. });
  15157. },
  15158. attractiveForces: function() {
  15159. var S = this, v, d, u;
  15160. S.links.forEach(function(T) {
  15161. T.fromNode && T.toNode && (v = S.getDistXY(T.fromNode, T.toNode), d = S.vectorLength(v), d !== 0 && (u = S.attractiveForce(d, S.k), S.force("attractive", T, 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(T, O) {
  15251. F.options.splitSeries && !T.isParentNode ? (v = T.series.parentNode.plotX, d = T.series.parentNode.plotY) : (v = N.width / 2, d = N.height / 2), T.plotX = T.prevX = U(T.plotX, v + u * Math.cos(T.index || O * S)), T.plotY = T.prevY = U(T.plotY, d + u * Math.sin(T.index || O * S)), T.dispX = 0, T.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, T = 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 = T(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, A, _, 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 = A = o.maxSize / Math.sqrt(s.length);
  15365. var W = i ? a.calculateZExtremes() : [n, A];
  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, A, _), 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(A, _) {
  15385. return _[2] - A[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. T(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, A, _, D = n = Number.POSITIVE_INFINITY, W = A = 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), A = i(A, c[_][1] + P);
  15414. }
  15415. if (_ = [W - D, A - 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 - (A - 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(T, O) {
  15480. T.__proto__ = O;
  15481. } || function(T, O) {
  15482. for (var B in O)
  15483. O.hasOwnProperty(B) && (T[B] = O[B]);
  15484. }, v(d, u);
  15485. };
  15486. return function(d, u) {
  15487. function T() {
  15488. this.constructor = d;
  15489. }
  15490. v(d, u), d.prototype = u === null ? Object.create(u) : (T.prototype = u.prototype, new T());
  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), T = u.length + 1; T--; )
  15504. (T === u.length || u[T][0] === "M") && 0 < T && u.splice(T, 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(T) {
  15524. T.isXAxis || (T.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, T = 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, T), 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, T = 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], A = this.processedYData[s], _ = n.shapeArgs;
  15615. if (_ && u(A)) {
  15616. var D = [0, A], 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 ? (A = 0 <= W ? P - W : P + W, W = P) : (A = P, W = P - W), n.below = A <= p, _.y = x.translate(A, !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 ? (A = D[1] + h, W = h) : (A = h, W = D[1] + h), x.reversed && (A ^= W, W ^= A, A ^= W), _.y = x.translate(A, !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 = A <= p) : (_.height = 0 < A ? (x.translate(i, !1, !0, !1, !0) || 0) - _.y : (x.translate(i, !1, !0, !1, !0) || 0) - (x.translate(i - A, !1, !0, !1, !0) || 0), i += A, 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 A = a[n], _ = c && c[n] ? c[n] : {};
  15641. A === "sum" || _.isSum ? a[n] = d(o) : A === "intermediateSum" || _.isIntermediateSum ? (a[n] = d(h), h = 0) : (o += A, h += A), 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, A = w[s - 1], _ = w[s - 1].shapeArgs, D = x.waterfall.stacks[this.stackKey], W = 0 < A.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 + A.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 > A.y && !h || 0 < A.y && h) && ((A = t[t.length - 2]) && typeof A[2] == "number" && (A[2] += _.height || 0), (A = t[t.length - 1]) && typeof A[2] == "number" && (A[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, A;
  15672. this.yAxis.stacking.usePercentage = !1;
  15673. var _ = n = A = 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(A, n, 0, A), A = 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 = T(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, T = 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 A = (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(A - h, 2));
  15737. return t = Math.atan2(o - h, t - i), A = Math.PI / 2 + (t + Math.atan2(A - h, s - i)) / 2, Math.abs(t - A) > Math.PI / 2 && (A -= Math.PI), t = i + Math.cos(A) * n, o = h + Math.sin(A) * n, s = i + Math.cos(Math.PI + A) * _, A = h + Math.sin(Math.PI + A) * _, i = { rightContX: s, rightContY: A, 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, A, _, D, W;
  15780. if (p.polar) {
  15781. if (c.isRadialBar)
  15782. a || (c.startAngleRad = T(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. A = X.graphic, D = (_ = X.shapeArgs) && _.r, W = _ && _.innerR, A && _ && (A.attr({ r: P, innerR: P }), A.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 - T(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 A = 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 > A ? g = A : m < _ ? m = _ : (m > A || g < _) && (m = g = n) : m < A ? m = A : g > _ ? g = _ : (g < A || 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 = T(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 = T(p.align, "center"), p.verticalAlign = T(
  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, T = 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 A(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, T(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(), T(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 = A, 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"), T = 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, T, 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(T, 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(T, 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 T() {
  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 = [], A.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(A.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 (T(), 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, A = {}, _ = !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 A = { 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: T, 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 T = -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 T = O.length, !0;
  16804. }), T;
  16805. }
  16806. function H(d, u, T) {
  16807. d && u.renderTarget && u.canvas && !(T || u.chart).isChartSeriesBoosting() && d.render(T || 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, T, 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, T, O, B, C) : R.requestAnimationFrame ? R.requestAnimationFrame(function() {
  16817. F(d, u, T, O, B);
  16818. }) : setTimeout(function() {
  16819. F(d, u, T, O, B);
  16820. }) : T && T());
  16821. }
  16822. function N() {
  16823. var d = 0, u, T = [
  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 < T.length; d++)
  16831. try {
  16832. if (O = u.getContext(T[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, T = 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] && ++T, Z(C.processedXData, C.options.data, C.points) >= (C.options.boostThreshold || Number.MAX_VALUE) && ++u);
  16849. }
  16850. return d.boostForceChartBoost = O && (T === 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, T = 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 >= A && 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 A = 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", T);
  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, T = 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, A, _) {
  16938. h.call(this, t, o, s, n, A, _);
  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, A = 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 = T(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 <= A && (Et = !0), Wt && Wt >= n && Wt <= A && (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 <= A && 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, T = 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. }, T(I.prototype, "searchPoint", function(b) {
  17046. return this.getPoint(b.apply(this, [].slice.call(arguments, 1)));
  17047. }), T(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. }), T(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. }), T(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. T(I.prototype, b, w), b === "translate" && "column bar arearange columnrange heatmap treemap".split(" ").forEach(function(x) {
  17073. R[x] && T(R[x].prototype, b, w);
  17074. });
  17075. }), T(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 $p;
  17490. function Xt() {
  17491. return $p.apply(null, arguments);
  17492. }
  17493. function j0(r) {
  17494. $p = 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 Zp(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 xu(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 Ep = Xt.momentProperties = [], el = !1;
  17585. function Ol(r, f) {
  17586. var E, l, y, j = Ep.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 = Ep[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 Kp(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. Kp(
  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 Op = {};
  17627. function Jp(r, f) {
  17628. Xt.deprecationHandler != null && Xt.deprecationHandler(r, f), Op[r] || (Kp(f), Op[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 Qp = {};
  17783. function ei(r, f) {
  17784. Qp[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: Qp[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 ? (tu(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 tu(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 eu = /\d/, vi = /\d\d/, iu = /\d{3}/, Il = /\d{4}/, To = /[+-]?\d{6}/, Pe = /\d\d?/, ru = /\d\d\d\d?/, nu = /\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. ), su = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), ou = /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 || ou).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[ou.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 au(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 lu(r) {
  17966. return r != null ? (au(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") || hu.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") || hu.call(this), r ? this._monthsStrictRegex : this._monthsRegex) : (me(this, "_monthsRegex") || (this._monthsRegex = f1), this._monthsStrictRegex && r ? this._monthsStrictRegex : this._monthsRegex);
  17976. }
  17977. function hu() {
  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 cu = 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 pu(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("_"), uu = "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 du(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. du("a", !0);
  18275. du("A", !1);
  18276. ti("hour", "h");
  18277. ei("hour", 13);
  18278. function fu(r, f) {
  18279. return f._meridiemParse;
  18280. }
  18281. Ft("a", fu);
  18282. Ft("A", fu);
  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", ru);
  18290. Ft("hmmss", nu);
  18291. Ft("Hmm", ru);
  18292. Ft("Hmmss", nu);
  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 gu = {
  18328. calendar: Y0,
  18329. longDateFormat: F0,
  18330. invalidDate: V0,
  18331. ordinal: Z0,
  18332. dayOfMonthOrdinalParse: K0,
  18333. relativeTime: q0,
  18334. months: u1,
  18335. monthsShort: su,
  18336. week: k1,
  18337. weekdays: _1,
  18338. weekdaysMin: D1,
  18339. weekdaysShort: uu,
  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 Lp(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 = Lp(r[f]).split("-"), E = j.length, l = Lp(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 = gu;
  18387. if (f.abbr = r, Oe[r] != null)
  18388. Jp(
  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 = gu;
  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 mu(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. su.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 = uu.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 yu(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 (mu(r), r._isValid === !1)
  18568. delete r._isValid;
  18569. else
  18570. return;
  18571. if (yu(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 = pu(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. mu(r);
  18622. return;
  18623. }
  18624. if (r._f === Xt.RFC_2822) {
  18625. yu(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 = Zp(
  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(vu(r)));
  18667. return f._nextDay && (f.add(1, "d"), f._nextDay = void 0), f;
  18668. }
  18669. function vu(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 = Zp(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 xu(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 xu(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 bu(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 bu("isBefore", r);
  18710. }
  18711. function Ab() {
  18712. var r = [].slice.call(arguments, 0);
  18713. return bu("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 Su(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. Su("Z", ":");
  18772. Su("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 ? Cu(
  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 = vu(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 wu() {
  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 _p(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 = _p(r, f) : (E = _p(f, r), E.milliseconds = -E.milliseconds, E.months = -E.months), E) : { milliseconds: 0, months: 0 };
  18891. }
  18892. function Mu(r, f) {
  18893. return function(E, l) {
  18894. var y, j;
  18895. return l !== null && !isNaN(+l) && (Jp(
  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), Cu(this, y, r), this;
  18899. };
  18900. }
  18901. function Cu(r, f, E, l) {
  18902. var y = f._milliseconds, j = Sl(f._days), I = Sl(f._months);
  18903. r.isValid() && (l = l ?? !0, I && au(r, mo(r, "Month") + I * E), j && tu(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 = Mu(1, "add"), Vb = Mu(-1, "subtract");
  18906. function ku(r) {
  18907. return typeof r == "string" || r instanceof String;
  18908. }
  18909. function $b(r) {
  18910. return Wi(r) || ss(r) || ku(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) && ku(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 Au(r) {
  19081. var f;
  19082. return r === void 0 ? this._locale._abbr : (f = gr(r), f != null && (this._locale = f), this);
  19083. }
  19084. var Tu = 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 Pu() {
  19091. return this._locale;
  19092. }
  19093. var xo = 1e3, xn = 60 * xo, bo = 60 * xn, Eu = (365 * 400 + 97) * 24 * bo;
  19094. function bn(r, f) {
  19095. return (r % f + f) % f;
  19096. }
  19097. function Ou(r, f, E) {
  19098. return r < 100 && r >= 0 ? new Date(r + 400, f, E) - Eu : new Date(r, f, E).valueOf();
  19099. }
  19100. function Lu(r, f, E) {
  19101. return r < 100 && r >= 0 ? Date.UTC(r + 400, f, E) - Eu : 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 ? Lu : Ou, 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 ? Lu : Ou, 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 _u.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 _u.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 _u(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 = pu(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", eu);
  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 Du = 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", iu);
  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, eu);
  19549. Ft("SS", Po, vi);
  19550. Ft("SSS", Po, iu);
  19551. var Or, Iu;
  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. Iu = 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 = Tu;
  19589. jt.locale = Au;
  19590. jt.localeData = Pu;
  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 = cu;
  19615. jt.isLeapYear = w1;
  19616. jt.weekYear = YS;
  19617. jt.isoWeekYear = XS;
  19618. jt.quarter = jt.quarters = $S;
  19619. jt.month = lu;
  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 = Du;
  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 = Iu;
  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 = wu;
  19645. jt.isUTC = wu;
  19646. jt.zoneAbbr = QS;
  19647. jt.zoneName = tw;
  19648. jt.dates = Oi(
  19649. "dates accessor is deprecated. Use date instead.",
  19650. Du
  19651. );
  19652. jt.months = Oi(
  19653. "months accessor is deprecated. Use month instead",
  19654. lu
  19655. );
  19656. jt.years = Oi(
  19657. "years accessor is deprecated. Use year instead",
  19658. cu
  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 Ru(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 = Ru;
  19683. ye.postformat = Ru;
  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 Nu(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 Nu(r, f, "months");
  19733. }
  19734. function nw(r, f) {
  19735. return Nu(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 Bu(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 Bu(this, r, f, 1);
  19790. }
  19791. function cw(r, f) {
  19792. return Bu(this, r, f, -1);
  19793. }
  19794. function Dp(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 += Dp(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(ju(f)), E += H, f -= Dp(Ml(H)), Z = Ti(E / 12), E %= 12, l.days = f, l.months = E, l.years = Z, this;
  19800. }
  19801. function ju(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 + ju(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 = Au;
  19939. de.localeData = Pu;
  19940. de.toIsoString = Oi(
  19941. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  19942. No
  19943. );
  19944. de.lang = Tu;
  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, T = 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, A = 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", T],
  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", rh = md + yd + vd, nh = "\\u2700-\\u27bf", sh = "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", oh = "A-Z\\xc0-\\xd6\\xd8-\\xde", ah = "\\ufe0e\\ufe0f", lh = xd + bd + Sd + wd, Go = "['’]", Md = "[" + gs + "]", hh = "[" + lh + "]", ms = "[" + rh + "]", ch = "\\d+", Cd = "[" + nh + "]", ph = "[" + sh + "]", uh = "[^" + gs + lh + ch + nh + sh + oh + "]", Ho = "\\ud83c[\\udffb-\\udfff]", kd = "(?:" + ms + "|" + Ho + ")", dh = "[^" + gs + "]", Fo = "(?:\\ud83c[\\udde6-\\uddff]){2}", Uo = "[\\ud800-\\udbff][\\udc00-\\udfff]", Qr = "[" + oh + "]", fh = "\\u200d", gh = "(?:" + ph + "|" + uh + ")", Ad = "(?:" + Qr + "|" + uh + ")", mh = "(?:" + Go + "(?:d|ll|m|re|s|t|ve))?", yh = "(?:" + Go + "(?:D|LL|M|RE|S|T|VE))?", vh = kd + "?", xh = "[" + ah + "]?", Td = "(?:" + fh + "(?:" + [dh, Fo, Uo].join("|") + ")" + xh + vh + ")*", Pd = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ed = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", bh = xh + vh + Td, Od = "(?:" + [Cd, Fo, Uo].join("|") + ")" + bh, Ld = "(?:" + [dh + ms + "?", ms, Fo, Uo, Md].join("|") + ")", _d = RegExp(Go, "g"), Dd = RegExp(ms, "g"), Vo = RegExp(Ho + "(?=" + Ho + ")|" + Ld + bh, "g"), Id = RegExp([
  20034. Qr + "?" + ph + "+" + mh + "(?=" + [hh, Qr, "$"].join("|") + ")",
  20035. Ad + "+" + yh + "(?=" + [hh, Qr + gh, "$"].join("|") + ")",
  20036. Qr + "?" + gh + "+" + mh,
  20037. Qr + "+" + yh,
  20038. Ed,
  20039. Pd,
  20040. ch,
  20041. Od
  20042. ].join("|"), "g"), Rd = RegExp("[" + fh + gs + rh + ah + "]"), 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, Sh = typeof Fr == "object" && Fr && Fr.Object === Object && Fr, Fd = typeof self == "object" && self && self.Object === Object && self, Ue = Sh || Fd || Function("return this")(), $o = f && !f.nodeType && f, Rr = $o && !0 && r && !r.nodeType && r, wh = Rr && Rr.exports === $o, Zo = wh && Sh.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. }(), Mh = xi && xi.isArrayBuffer, Ch = xi && xi.isDate, kh = xi && xi.isMap, Ah = xi && xi.isRegExp, Th = xi && xi.isSet, Ph = 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 Eh(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 Oh(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, Lh, 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 Lh(wt) {
  20407. return wt !== wt;
  20408. }
  20409. function _h(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 Dh(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 Ih(wt) {
  20452. return wt && wt.slice(0, jh(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 Rh(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 Nh(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 Bh(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 jh(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, Wh = 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 = wh ? Ot.Buffer : E, Sr = Ot.Symbol, ks = Ot.Uint8Array, zh = Cs ? Cs.allocUnsafe : E, As = Bh(Ce.getPrototypeOf, Ce), Yh = Ce.create, Xh = sn.propertyIsEnumerable, Ts = bs.splice, Gh = 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, Hh = Ot.isFinite, Tf = bs.join, Pf = Bh(Ce.keys, Ce), Ye = ze.max, Ze = ze.min, Ef = Ht.now, Of = Ot.parseInt, Fh = 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, Uh = _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 Vc(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 (Yh)
  20595. return Yh(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 mc(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 Vh(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 $h(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 Zh(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 xc(e, bt);
  20892. if (Bt == rt || Bt == L || Yt && !ut) {
  20893. if (xt = Mt || Yt ? {} : jc(e), !bt)
  20894. return Mt ? Xg(e, pg(xt, e)) : Yg(e, Zh(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), dp(e) ? e.forEach(function(te) {
  20906. xt.add(Mi(te, M, K, te, e, mt));
  20907. }) : pp(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 Kh(K, e, M);
  20919. };
  20920. }
  20921. function Kh(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 Jh(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 = Cc(Xi), qh = Cc(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 : gp(st); K < st; )
  20975. e[K++] = M;
  20976. return e;
  20977. }
  20978. function Qh(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 = kc(), tc = kc(!0);
  20993. function Xi(e, M) {
  20994. return e && pa(e, M, He);
  20995. }
  20996. function ua(e, M) {
  20997. return e && tc(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 ec(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 = Xc(e, M);
  21057. var st = e == null ? e : e[Hi(ki(M))];
  21058. return st == null ? E : pi(st, e, K);
  21059. }
  21060. function ic(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) ? Rc(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 rc(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 nc(e) {
  21136. return typeof e == "function" ? e : e == null ? li : typeof e == "object" ? ie(e) ? ac(e[0], e[1]) : oc(e) : Ap(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 sc(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 oc(e) {
  21164. var M = _a(e);
  21165. return M.length == 1 && M[0][2] ? zc(M[0][0], M[0][1]) : function(K) {
  21166. return K === e || ga(K, e, M);
  21167. };
  21168. }
  21169. function ac(e, M) {
  21170. return Ia(e) && Wc(M) ? zc(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 = xc(Mt, !0)) : Qt ? (Bt = !1, Rt = bc(Mt, !0)) : Rt = [] : Un(Mt) || Gr(Mt) ? (Rt = bt, Gr(bt) ? Rt = mp(bt) : (!Ie(bt) || ir(bt)) && (Rt = jc(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 lc(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 hc(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 = sc(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 cc(e, M, function(K, st) {
  21223. return Fa(e, st);
  21224. });
  21225. }
  21226. function cc(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 pc(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(Fh() * (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(Yc(e, M, li), e + "");
  21274. }
  21275. function Lg(e) {
  21276. return $h(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 uc = 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 dc(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 fc(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 Uh ? Uh.call(e) : "";
  21370. var M = e + "";
  21371. return M == "0" && 1 / e == -A ? "-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 = Xc(e, M), e == null || delete e[Hi(ki(M))];
  21399. }
  21400. function gc(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 mc(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 yc(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] : Uc(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 vc = Mf || function(e) {
  21445. return Ue.clearTimeout(e);
  21446. };
  21447. function xc(e, M) {
  21448. if (M)
  21449. return e.slice();
  21450. var K = e.length, st = zh ? zh(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 bc(e, M) {
  21469. var K = M ? Aa(e.buffer) : e.buffer;
  21470. return new e.constructor(K, e.byteOffset, e.length);
  21471. }
  21472. function Sc(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 = Sc(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 wc(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 Mc(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, Nc(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 Cc(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 kc(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 Ac(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(Cp(Mp(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 Lc(
  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 Tc(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 Pc(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 & T, 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 = wc(pe, st, ut, Ut)), mt && (pe = Mc(pe, mt, xt, Ut)), he -= mi, Ut && he < It) {
  21685. var je = br(pe, ni);
  21686. return Lc(
  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 Ec(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 = fc(K), st = fc(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 Oc(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 Lc(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 | T));
  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) && Gc(te, oe), te.placeholder = st, Hc(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 && Hh(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] == A ? function(e) {
  21789. return new on(e);
  21790. } : Ka;
  21791. function _c(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 & T;
  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 ? uc : Gc;
  21823. return Hc(oe(Qt, Ut), e, M);
  21824. }
  21825. function Dc(e, M, K, st) {
  21826. return e === E || Ii(e, sn[K]) && !Se.call(st, K) ? M : e;
  21827. }
  21828. function Ic(e, M, K, st, ut, mt) {
  21829. return Ie(e) && Ie(M) && (mt.set(M, e), Bs(e, M, E, Ic, mt), mt.delete(M)), e;
  21830. }
  21831. function Vg(e) {
  21832. return Un(e) ? E : e;
  21833. }
  21834. function Rc(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 = Rc(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(Yc(e, E, Kc), e + "");
  21935. }
  21936. function Ea(e) {
  21937. return ec(e, He, Da);
  21938. }
  21939. function Oa(e) {
  21940. return ec(e, ai, Nc);
  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 ? nc : 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, Wc(ut)];
  21969. }
  21970. return M;
  21971. }
  21972. function Yr(e, M) {
  21973. var K = of(e, M);
  21974. return rc(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 Xh.call(e, M);
  21989. }));
  21990. } : Ja, Nc = 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 Bc(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 jc(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 bc(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) || !!(Gh && e && e[Gh]);
  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 !!Wh && Wh 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 Wc(e) {
  22136. return e === e && !Ie(e);
  22137. }
  22138. function zc(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 | T | 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 ? wc(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 ? Mc(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 Yc(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 Xc(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 Gc = Fc(uc), Fn = kf || function(e, M) {
  22196. return Ue.setTimeout(e, M);
  22197. }, Ba = Fc(Dg);
  22198. function Hc(e, M, K) {
  22199. var st = M + "";
  22200. return Ba(e, em(st, pm(qg(st), K)));
  22201. }
  22202. function Fc(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 Uc = 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 == -A ? "-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 Vc(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 $c(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 Zc(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 Kc(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, A) : [];
  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 Jc(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, Lh, ut, !0);
  22380. }
  22381. function Dm(e, M) {
  22382. return e && e.length ? lc(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 pc(e, Ee(M, function(ut) {
  22397. return er(ut, K) ? +ut : ut;
  22398. }).sort(Sc)), 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 pc(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 ? dc(e) : [];
  22450. }
  22451. function Vm(e, M) {
  22452. return e && e.length ? dc(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 Qc(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 yc(e || [], M || [], jn);
  22521. }
  22522. function py(e, M) {
  22523. return yc(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, Qc(e, K);
  22528. });
  22529. function tp(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 tp(this);
  22553. }
  22554. function my() {
  22555. return new wi(this.value(), this.__chain__);
  22556. }
  22557. function yy() {
  22558. this.__values__ === E && (this.__values__ = fp(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 = Vc(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 mc(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) ? Eh : 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 : Qh;
  22598. return K(e, qt(M, 3));
  22599. }
  22600. var ky = Tc($c), Ay = Tc(Zc);
  22601. function Ty(e, M) {
  22602. return Ve(Zs(e, M), 1);
  22603. }
  22604. function Py(e, M) {
  22605. return Ve(Zs(e, M), A);
  22606. }
  22607. function Ey(e, M, K) {
  22608. return K = K === E ? 1 : ne(K), Ve(Zs(e, M), K);
  22609. }
  22610. function ep(e, M) {
  22611. var K = ie(e) ? bi : wr;
  22612. return K(e, qt(M, 3));
  22613. }
  22614. function ip(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 : sc;
  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]), hc(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 : Dh, 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 : Dh, 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 : Qh;
  22656. return K(e, qs(qt(M, 3)));
  22657. }
  22658. function Wy(e) {
  22659. var M = ie(e) ? $h : 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]]), hc(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 rp(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 np(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. }), sp = ae(function(e, M, K) {
  22718. var st = u | T;
  22719. if (K.length) {
  22720. var ut = br(K, pn(sp));
  22721. st |= b;
  22722. }
  22723. return Qi(M, st, e, K, ut);
  22724. });
  22725. function op(e, M, K) {
  22726. M = K ? E : M;
  22727. var st = Qi(e, B, E, E, E, E, E, M);
  22728. return st.placeholder = op.placeholder, st;
  22729. }
  22730. function ap(e, M, K) {
  22731. M = K ? E : M;
  22732. var st = Qi(e, C, E, E, E, E, E, M);
  22733. return st.placeholder = ap.placeholder, st;
  22734. }
  22735. function lp(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, Tp = M - Ri;
  22749. return Bt ? Ze(Tp, mt - nr) : Tp;
  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 && vc(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 vc(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 Jh(e, 1, M);
  22784. }), Vy = ae(function(e, M, K) {
  22785. return Jh(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 np(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. }), hp = ae(function(e, M) {
  22836. var K = br(M, pn(hp));
  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), lp(e, M, {
  22859. leading: st,
  22860. maxWait: M,
  22861. trailing: ut
  22862. });
  22863. }
  22864. function ev(e) {
  22865. return rp(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 || Kh(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 = ic(function() {
  22897. return arguments;
  22898. }()) ? ic : function(e) {
  22899. return Ne(e) && Se.call(e, "callee") && !Xh.call(e, "callee");
  22900. }, ie = Tt.isArray, pv = Mh ? ui(Mh) : 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 = Ch ? ui(Ch) : 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" && Hh(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 cp(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 pp = kh ? ui(kh) : 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 up(e) && e != +e;
  22974. }
  22975. function wv(e) {
  22976. if (sm(e))
  22977. throw new ee(j);
  22978. return rc(e);
  22979. }
  22980. function Mv(e) {
  22981. return e === null;
  22982. }
  22983. function Cv(e) {
  22984. return e == null;
  22985. }
  22986. function up(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 = Ah ? ui(Ah) : Mg;
  22999. function kv(e) {
  23000. return cp(e) && e >= -_ && e <= _;
  23001. }
  23002. var dp = Th ? ui(Th) : 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 = Ph ? ui(Ph) : 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 fp(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 === A || e === -A) {
  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 gp(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 = Ih(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 mp(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. }), yp = 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 : Zh(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, Ic), pi(vp, E, e);
  23101. });
  23102. function jv(e, M) {
  23103. return Oh(e, qt(M, 3), Xi);
  23104. }
  23105. function Wv(e, M) {
  23106. return Oh(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 : tc(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 && Bc(e, M, gg);
  23132. }
  23133. function Fa(e, M) {
  23134. return e != null && Bc(e, M, mg);
  23135. }
  23136. var Vv = Ec(function(e, M, K) {
  23137. M != null && typeof M.toString != "function" && (M = Ms.call(M)), e[M] = K;
  23138. }, Va(li)), $v = Ec(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) ? Vh(e) : ma(e);
  23143. }
  23144. function ai(e) {
  23145. return oi(e) ? Vh(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. }), vp = 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 xp(e, qs(qt(M)));
  23177. }
  23178. var ex = tr(function(e, M) {
  23179. return e == null ? {} : Pg(e, M);
  23180. });
  23181. function xp(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), cc(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 bp = _c(He), Sp = _c(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 : gc(e, M, ka(K));
  23222. }
  23223. function lx(e, M, K, st) {
  23224. return st = typeof st == "function" ? st : E, e == null ? e : gc(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 = Fh();
  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 ? wp(M) : M);
  23251. });
  23252. function wp(e) {
  23253. return Ua(xe(e).toLowerCase());
  23254. }
  23255. function Mp(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 = Ac("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, Dc);
  23319. var ut = eo({}, M.imports, st.imports, Dc), 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 = kp(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 Ih(e);
  23365. if (!e || !(M = di(M)))
  23366. return e;
  23367. var st = _i(e), ut = _i(M), mt = Rh(st, ut), xt = Nh(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, jh(e) + 1);
  23373. if (!e || !(M = di(M)))
  23374. return e;
  23375. var st = _i(e), ut = Nh(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 = Rh(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 = Ac("toUpperCase");
  23425. function Cp(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 kp = 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 = Pc(), Hx = Pc(!0);
  23465. function li(e) {
  23466. return e;
  23467. }
  23468. function $a(e) {
  23469. return nc(typeof e == "function" ? e : Mi(e, N));
  23470. }
  23471. function Fx(e) {
  23472. return oc(Mi(e, N));
  23473. }
  23474. function Ux(e, M) {
  23475. return ac(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 lc(M, e);
  23510. });
  23511. }
  23512. var Jx = Ta(Ee), qx = Ta(Eh), Qx = Ta(qo);
  23513. function Ap(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 = Oc(), i0 = Oc(!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(Uc(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 _h(e, li);
  23566. }
  23567. function m0(e, M) {
  23568. return _h(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 = rp, ft.assign = _v, ft.assignIn = yp, ft.assignInWith = eo, ft.assignWith = Dv, ft.at = Iv, ft.before = np, ft.bind = za, ft.bindAll = Wx, ft.bindKey = sp, ft.castArray = rv, ft.chain = tp, 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 = op, ft.curryRight = ap, ft.debounce = lp, 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 = Kc, 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 = vp, 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 = hp, ft.partition = Ry, ft.pick = ex, ft.pickBy = xp, ft.property = Ap, 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 = fp, ft.toPairs = bp, ft.toPairsIn = Sp, ft.toPath = a0, ft.toPlainObject = mp, 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 = Qc, ft.update = ax, ft.updateWith = lx, ft.values = dn, ft.valuesIn = hx, ft.without = sy, ft.words = Cp, 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 = bp, ft.entriesIn = Sp, ft.extend = yp, ft.extendWith = eo, Za(ft, ft), ft.add = h0, ft.attempt = kp, ft.camelCase = dx, ft.capitalize = wp, ft.ceil = c0, ft.clamp = cx, ft.clone = nv, ft.cloneDeep = ov, ft.cloneDeepWith = av, ft.cloneWith = sv, ft.conformsTo = lv, ft.deburr = Mp, 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 = $c, ft.findKey = jv, ft.findLast = Ay, ft.findLastIndex = Zc, ft.findLastKey = Wv, ft.floor = u0, ft.forEach = ep, ft.forEachRight = ip, 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 = Jc, 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 = cp, ft.isLength = Qs, ft.isMap = pp, ft.isMatch = xv, ft.isMatchWith = bv, ft.isNaN = Sv, ft.isNative = wv, ft.isNil = Cv, ft.isNull = Mv, ft.isNumber = up, ft.isObject = Ie, ft.isObjectLike = Ne, ft.isPlainObject = Un, ft.isRegExp = Ga, ft.isSafeInteger = kv, ft.isSet = dp, 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 = gp, 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 = ep, ft.eachRight = ip, ft.first = Jc, 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, T).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, Wu = 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: Wu
  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, Wu.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: Ip,
  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 = Ip(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 zu({ 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 Yu(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 T = {
  23931. 0: ["rightMin", "rightMax"],
  23932. 1: ["leftMin", "leftMax"],
  23933. 2: ["rightTwoMin", "rightTwoMax"]
  23934. };
  23935. T[N.IsAxis] && (d = kt[`${T[N.IsAxis][0]}`] || 0, u = kt[`${T[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 Ip(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 T = 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 ? zu(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 T !== 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: T !== u ? 0 : 1,
  24180. title: {
  24181. text: T !== 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: T === 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 = Yu(R, S, r.ChartInfo.DateType);
  24210. return j = {
  24211. ...Vp,
  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, T = 0;
  24345. ci ? (v = kt.leftMin || 0, d = kt.leftMax || 0, kt.rightIndex !== -1 && (u = kt.rightMin || 0, T = 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(T),
  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, T) => {
  24483. let O = R.findIndex((n) => n.IsAxis === u.IsAxis), B = T;
  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 === T ? u.IsAxis : R[B].IsAxis, u.IsOrder = B === T ? 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 ? zu(u) : {};
  24488. const c = y ? T % y.lineOptionList.length : T;
  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 !== T ? "" : 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 !== T ? 0 : 1,
  24561. visible: B === T && O === T,
  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 = Yu(S, v, r.ChartInfo.DateType);
  24571. return Z = {
  24572. ...Vp,
  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 T = 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: `${T}`,
  24707. textZh: T,
  24708. textEn: T ? 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 Xu = Le([]), Gu = Le([]), Kw = Le([]);
  24727. function Jw(r) {
  24728. var F, N, R;
  24729. let f = [];
  24730. const E = rs.cloneDeep(Xu.value), l = r.ChartInfo.ChartThemeStyle ? JSON.parse(r.ChartInfo.ChartThemeStyle) : null;
  24731. let y = {
  24732. ...Mn,
  24733. categories: Gu.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, Xu.value = E, Gu.value = j, Kw.value = l, kt.hasLeftAxis = !0, kt.leftMin = Number(y.LeftMin), kt.leftMax = Number(y.LeftMax), Jw(r);
  24805. }
  24806. const Hu = 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(Hu.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, Hu.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(${Pp[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 + Pp[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. }, T = {
  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: T,
  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 T = {
  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: [T],
  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 Fu(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 Uu = yr("ArrayBuffer");
  25451. function pM(r) {
  25452. let f;
  25453. return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? f = ArrayBuffer.isView(r) : f = r && r.buffer && Uu(r.buffer), f;
  25454. }
  25455. const uM = jo("string"), dr = jo("function"), Vu = 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 $u(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 Zu = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ku = (r) => !ns(r) && r !== Zu;
  25489. function Cl() {
  25490. const { caseless: r } = Ku(this) && this || {}, f = {}, E = (l, y) => {
  25491. const j = r && $u(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] = Fu(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 (!Vu(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. ), Rp = (({ hasOwnProperty: r }) => (f, E) => r.call(f, E))(Object.prototype), DM = yr("RegExp"), Ju = (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. Ju(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", Np = "0123456789", qu = {
  25578. DIGIT: Np,
  25579. ALPHA: ll,
  25580. ALPHA_DIGIT: ll + ll.toUpperCase() + Np
  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: Uu,
  25611. isBuffer: cM,
  25612. isFormData: xM,
  25613. isArrayBufferView: pM,
  25614. isString: uM,
  25615. isNumber: Vu,
  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: Rp,
  25644. hasOwnProp: Rp,
  25645. // an alias to avoid ESLint no-prototype-builtins detection
  25646. reduceDescriptors: Ju,
  25647. freezeMethods: IM,
  25648. toObjectSet: RM,
  25649. toCamelCase: _M,
  25650. noop: NM,
  25651. toFiniteNumber: BM,
  25652. findKey: $u,
  25653. global: Zu,
  25654. isContextDefined: Ku,
  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 Qu = fe.prototype, td = {};
  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. td[r] = { value: r };
  25701. });
  25702. Object.defineProperties(fe, td);
  25703. Object.defineProperty(Qu, "isAxiosError", { value: !0 });
  25704. fe.from = (r, f, E, l, y, j) => {
  25705. const I = Object.create(Qu);
  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 ed(r) {
  25715. return _t.endsWith(r, "[]") ? r.slice(0, -2) : r;
  25716. }
  25717. function Bp(r, f, E) {
  25718. return r ? r.concat(f).map(function(y, j) {
  25719. return y = ed(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 T = 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, "[]")) && (T = _t.toArray(v)))
  25756. return d = ed(d), T.forEach(function(B, C) {
  25757. !(_t.isUndefined(B) || B === null) && f.append(
  25758. // eslint-disable-next-line no-nested-ternary
  25759. I === !0 ? Bp([d], C, j) : I === null ? d : d + "[]",
  25760. U(B)
  25761. );
  25762. }), !1;
  25763. }
  25764. return kl(v) ? !0 : (f.append(Bp(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(T, O) {
  25776. (!(_t.isUndefined(T) || T === null) && y.call(
  25777. f,
  25778. T,
  25779. _t.isString(O) ? O.trim() : O,
  25780. d,
  25781. R
  25782. )) === !0 && S(T, 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 jp(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 id = ql.prototype;
  25808. id.append = function(f, E) {
  25809. this._pairs.push([f, E]);
  25810. };
  25811. id.toString = function(f) {
  25812. const E = f ? function(l) {
  25813. return f.call(this, l, jp);
  25814. } : jp;
  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 rd(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 Wp = FM, nd = {
  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 sd(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: nd,
  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(sd(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. }, zp = 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[zp] = this[zp] = {
  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 od(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 ad(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 Yp(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 = ad(r.baseURL, r.url);
  26349. U.open(r.method.toUpperCase(), rd(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(T) {
  26364. E(T), H();
  26365. }, function(T) {
  26366. l(T), 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 || nd;
  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", Yp(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && U.upload && U.upload.addEventListener("progress", Yp(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 Xp(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 od(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 Gp = (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(Gp(U), Gp(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 ld = "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 Hp = {};
  26528. th.transitional = function(f, E, l) {
  26529. function y(j, I) {
  26530. return "[Axios v" + ld + "] 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 && !Hp[I] && (Hp[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 Wp(),
  26571. response: new Wp()
  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 = [Xp.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 = Xp.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 = ad(f.baseURL, f.url);
  26644. return rd(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 hd(r) {
  26819. const f = new uo(r), E = Fu(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 hd(wn(r, y));
  26822. }, E;
  26823. }
  26824. const Ge = hd(Ql);
  26825. Ge.Axios = uo;
  26826. Ge.CanceledError = cs;
  26827. Ge.CancelToken = xC;
  26828. Ge.isCancel = od;
  26829. Ge.VERSION = ld;
  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) => sd(_t.isHTMLForm(r) ? new FormData(r) : r);
  26841. Ge.HttpStatusCode = wC;
  26842. Ge.default = Ge;
  26843. const MC = Ge;
  26844. let CC = {
  26845. baseURL: "/ybreport/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 cd = (r, f) => ih.post(r, f), kC = (r) => cd("/chart/detail", r), AC = (r) => cd("/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 TC = `@charset "UTF-8";div[data-v-f415cce0]{box-sizing:border-box}.hz-chart-wrap[data-v-f415cce0]{font:initial;page-break-inside:avoid;max-width:1200PX;height:100%;overflow:hidden;position:relative;margin:0 auto;border:1PX solid rgba(0,0,0,.125)!important;background:#fff;border-radius:5PX;display:flex;flex-direction:column;font-family:PingFangSC-Regular,微软雅黑,宋体!important}.hz-chart-wrap .hz-chart-head[data-v-f415cce0]{box-sizing:border-box;background-color:#f2f2f2;border-bottom:1px solid rgba(0,0,0,.125);cursor:pointer;min-height:40PX;display:flex;align-items:center;padding:2PX 10PX}.hz-chart-wrap .hz-chart-head .chart-title[data-v-f415cce0]{width:100%}.hz-chart-wrap .chart-wrapper[data-v-f415cce0]{position:relative;display:flex;height:100%;width:100%}.hz-chart-wrap .chart-wrapper .hz-chart-content[data-v-f415cce0]{width:100%;flex:1}.hz-chart-wrap .chart-wrapper .mark[data-v-f415cce0]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-image:none;background-position:center center;background-repeat:no-repeat;background-size:contain;pointer-events:none;width:80%;height:80%}.hz-chart-wrap .notfound[data-v-f415cce0]{flex:1;overflow:hidden;padding:10PX;color:#777;text-align:center}.hz-chart-wrap .chart-bottom-info[data-v-f415cce0]{padding-right:10PX;padding-bottom:0;padding-left:25PX;display:flex}.hz-chart-wrap .chart-bottom-info .chart-instruction[data-v-f415cce0]{max-width:80%;flex:1;text-align:right;margin-left:auto}.hz-chart-wrap .hz-chart-footer[data-v-f415cce0]{padding-left:25PX;padding-right:10PX;padding-bottom:10PX;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:1px}.hz-chart-wrap .text_oneLine[data-v-f415cce0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  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. }, PC = { class: "hz-chart-head" }, EC = {
  26883. key: 0,
  26884. class: "chart-wrapper"
  26885. }, OC = ["id"], LC = {
  26886. key: 1,
  26887. class: "notfound"
  26888. }, _C = {
  26889. key: 2,
  26890. class: "chart-bottom-info bootom-source"
  26891. }, DC = ["textContent"], IC = {
  26892. __name: "EtaChart.ce",
  26893. props: {
  26894. src: "",
  26895. width: "",
  26896. height: "",
  26897. style: ""
  26898. },
  26899. setup(r) {
  26900. const f = r, { chartRender: E, setLimitData: l, isUseSelfLimit: y } = Ww(), j = pd(f.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 = await kC({
  26908. UniqueCode: j.code
  26909. });
  26910. if (u.Ret !== 200)
  26911. return;
  26912. 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) ? (y.value = !0, l(u.Data)) : y.value = !1, fo(() => {
  26913. E({
  26914. data: u.Data,
  26915. renderId: I.value,
  26916. lang: j.language,
  26917. changeLangIsCheck: !1,
  26918. showChartTitle: !1,
  26919. shouldUseSelfLimit: !0
  26920. }), u.Data.WaterMark && (N.value.style.backgroundImage = `url(${u.Data.WaterMark})`);
  26921. }), fo(() => {
  26922. var T;
  26923. S.value && (S.value.style.maxWidth = ((T = R.value) == null ? void 0 : T.clientWidth) + "px");
  26924. });
  26925. } catch {
  26926. F.value = !1;
  26927. }
  26928. }
  26929. const d = () => {
  26930. j.language = j.fromPage || j.lang || "zh";
  26931. };
  26932. return v(), (u, T) => {
  26933. var O, B, C, b;
  26934. return Je(), qe("div", {
  26935. class: "hz-chart-wrap",
  26936. ref_key: "chartContainer",
  26937. ref: R,
  26938. style: Pr([f.style + ";height:" + f.height + "px", { margin: "0 0 10px 0" }])
  26939. }, [
  26940. ar("header", PC, [
  26941. H.value ? (Je(), qe("span", {
  26942. key: 0,
  26943. class: "chart-title",
  26944. style: Pr(H.value.ChartThemeStyle ? `
  26945. text-align:${JSON.parse(H.value.ChartThemeStyle).titleOptions.align};
  26946. font-size:${JSON.parse(H.value.ChartThemeStyle).titleOptions.style.fontSize}px;
  26947. color:${JSON.parse(H.value.ChartThemeStyle).titleOptions.style.color}
  26948. ` : "")
  26949. }, yn(k0(j).language === "en" ? H.value.ChartNameEn : H.value.ChartName), 5)) : Kn("", !0)
  26950. ]),
  26951. F.value ? (Je(), qe("div", EC, [
  26952. ar("div", {
  26953. id: Z.value,
  26954. ref_key: "chartContentEl",
  26955. ref: I,
  26956. class: "hz-chart-content"
  26957. }, null, 8, OC),
  26958. ar("div", {
  26959. class: "mark",
  26960. ref_key: "markDom",
  26961. ref: N
  26962. }, null, 512)
  26963. ])) : (Je(), qe("div", LC, " 哎吆,你的图飞了,赶快去找管理员救命吧~ ")),
  26964. (O = H.value) != null && O.Instructions && JSON.parse((B = H.value) == null ? void 0 : B.Instructions).isShow ? (Je(), qe("div", _C, [
  26965. ar("div", {
  26966. class: "chart-instruction text_oneLine",
  26967. textContent: yn(JSON.parse(H.value.Instructions).text),
  26968. style: Pr(`
  26969. color: ${JSON.parse(H.value.Instructions).color};
  26970. font-size: ${JSON.parse(H.value.Instructions).fontSize}px
  26971. `)
  26972. }, null, 12, DC)
  26973. ])) : Kn("", !0),
  26974. (C = H.value) != null && C.SourcesFrom && ((b = JSON.parse(H.value.SourcesFrom)) != null && b.isShow) ? (Je(), qe("div", {
  26975. key: 3,
  26976. class: "hz-chart-footer",
  26977. ref_key: "chartFooter",
  26978. ref: S,
  26979. style: Pr(`
  26980. color: ${JSON.parse(H.value.SourcesFrom).color};
  26981. font-size: ${JSON.parse(H.value.SourcesFrom).fontSize}px;
  26982. `)
  26983. }, [
  26984. Fp(" source:"),
  26985. ar("em", null, yn(JSON.parse(H.value.SourcesFrom).text), 1)
  26986. ], 4)) : Kn("", !0)
  26987. ], 4);
  26988. };
  26989. }
  26990. }, RC = /* @__PURE__ */ ud(IC, [["styles", [TC]], ["__scopeId", "data-v-f415cce0"]]), NC = `@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}
  26991. `, BC = { class: "table-wrapper" }, jC = ["colspan", "rowspan"], WC = {
  26992. key: 0,
  26993. class: "split-word"
  26994. }, zC = { key: 1 }, YC = {
  26995. __name: "EtaTable.ce",
  26996. props: {
  26997. src: "",
  26998. width: "",
  26999. height: "",
  27000. style: ""
  27001. },
  27002. setup(r) {
  27003. const E = pd(r.src), l = Le({}), y = Le(!1), j = Le(null), I = Le(null), Z = (U) => JSON.stringify({
  27004. isShow: !0,
  27005. text: U,
  27006. color: "#606266",
  27007. fontSize: 9
  27008. });
  27009. async function H() {
  27010. const U = await AC({ UniqueCode: E.code, FromScene: Number(E.fromScene || "") });
  27011. U.Ret === 200 && (l.value = U.Data, l.value.SourcesFrom || (l.value.SourcesFrom = U.Data.ExcelSource ? Z(U.Data.ExcelSource || "") : ""), y.value = !0, fo(() => {
  27012. var F;
  27013. console.log(j.value.clientWidth), I.value && (I.value.style.maxWidth = ((F = j.value) == null ? void 0 : F.clientWidth) + "px");
  27014. }));
  27015. }
  27016. return H(), (U, F) => {
  27017. var N, R;
  27018. return y.value ? (Je(), qe("div", {
  27019. key: 0,
  27020. class: "sheet-show-wrapper",
  27021. ref_key: "sheetRef",
  27022. ref: j
  27023. }, [
  27024. ar("div", BC, [
  27025. ar("table", {
  27026. cellpadding: "0",
  27027. cellspacing: "0",
  27028. style: Pr(`font-size: ${((N = l.value.Config) == null ? void 0 : N.FontSize) || 12}PX`)
  27029. }, [
  27030. ar("tbody", null, [
  27031. (Je(!0), qe(Qa, null, tl((R = l.value.TableInfo) == null ? void 0 : R.TableDataList, (S, v) => (Je(), qe("tr", { key: v }, [
  27032. (Je(!0), qe(Qa, null, tl(S, (d, u) => (Je(), qe("td", {
  27033. class: A0(["data-cell", {
  27034. "one-bg": (v + 1) % 2 && v > 0,
  27035. "tow-bg": (v + 1) % 2 !== 0 && v > 0,
  27036. "head-column": v === 0
  27037. }]),
  27038. key: u,
  27039. colspan: d.mc.cs || 1,
  27040. rowspan: d.mc.rs || 1,
  27041. style: Pr(`
  27042. color: ${d.fc};
  27043. font-weight: ${d.bl ? "bold" : "normal"};
  27044. font-style: ${d.it ? "italic" : "normal"};
  27045. background: ${d.bg};
  27046. `)
  27047. }, [
  27048. d.ct.s ? (Je(), qe("div", WC, [
  27049. (Je(!0), qe(Qa, null, tl(d.ct.s, (T, O) => (Je(), qe("span", {
  27050. key: `${v}_${u}_${O}`,
  27051. style: Pr(`
  27052. color: ${T.fc};
  27053. font-weight: ${T.bl ? "bold" : "normal"};
  27054. font-style: ${T.it ? "italic" : "normal"};
  27055. `)
  27056. }, yn(T.v), 5))), 128))
  27057. ])) : (Je(), qe("div", zC, yn(d.m), 1))
  27058. ], 14, jC))), 128))
  27059. ]))), 128))
  27060. ])
  27061. ], 4)
  27062. ]),
  27063. l.value.SourcesFrom && JSON.parse(l.value.SourcesFrom).isShow ? (Je(), qe("div", {
  27064. key: 0,
  27065. class: "sheet-source",
  27066. ref_key: "sheetFooter",
  27067. ref: I,
  27068. style: Pr(`
  27069. color: ${JSON.parse(l.value.SourcesFrom).color};
  27070. font-size: ${JSON.parse(l.value.SourcesFrom).fontSize}px;
  27071. `)
  27072. }, [
  27073. Fp(" source:"),
  27074. ar("em", null, yn(JSON.parse(l.value.SourcesFrom).text), 1)
  27075. ], 4)) : Kn("", !0)
  27076. ], 512)) : Kn("", !0);
  27077. };
  27078. }
  27079. }, XC = /* @__PURE__ */ ud(YC, [["styles", [NC]], ["__scopeId", "data-v-98ab6c2e"]]), GC = Up(RC), HC = Up(XC);
  27080. function UC() {
  27081. customElements.define("eta-chart", GC), customElements.define("eta-table", HC);
  27082. }
  27083. export {
  27084. UC as registerEtaComp
  27085. };