chunks-SZQ34Y5K.js 1.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404
  1. import {
  2. o
  3. } from "./chunk-WDLTDV2L.js";
  4. import "./chunk-A5ICIBVI.js";
  5. // node_modules/@arcgis/core/chunks/index.js
  6. function e(t, e2) {
  7. for (var i2 = 0; i2 < e2.length; i2++) {
  8. const n2 = e2[i2];
  9. if (typeof n2 != "string" && !Array.isArray(n2)) {
  10. for (const e3 in n2)
  11. if (e3 !== "default" && !(e3 in t)) {
  12. const i3 = Object.getOwnPropertyDescriptor(n2, e3);
  13. i3 && Object.defineProperty(t, e3, i3.get ? i3 : { enumerable: true, get: () => n2[e3] });
  14. }
  15. }
  16. }
  17. return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
  18. }
  19. var i;
  20. var n = { exports: {} };
  21. self, i = function() {
  22. return (() => {
  23. var t, e2, i2, n2, r2 = {}, s = {};
  24. function a(t2) {
  25. var e3 = s[t2];
  26. if (e3 !== void 0)
  27. return e3.exports;
  28. var i3 = s[t2] = { exports: {} };
  29. return r2[t2].call(i3.exports, i3, i3.exports, a), i3.exports;
  30. }
  31. a.m = r2, a.n = (t2) => {
  32. var e3 = t2 && t2.__esModule ? () => t2.default : () => t2;
  33. return a.d(e3, { a: e3 }), e3;
  34. }, e2 = Object.getPrototypeOf ? (t2) => Object.getPrototypeOf(t2) : (t2) => t2.__proto__, a.t = function(i3, n3) {
  35. if (1 & n3 && (i3 = this(i3)), 8 & n3)
  36. return i3;
  37. if (typeof i3 == "object" && i3) {
  38. if (4 & n3 && i3.__esModule)
  39. return i3;
  40. if (16 & n3 && typeof i3.then == "function")
  41. return i3;
  42. }
  43. var r3 = Object.create(null);
  44. a.r(r3);
  45. var s2 = {};
  46. t = t || [null, e2({}), e2([]), e2(e2)];
  47. for (var o3 = 2 & n3 && i3; typeof o3 == "object" && !~t.indexOf(o3); o3 = e2(o3))
  48. Object.getOwnPropertyNames(o3).forEach((t2) => s2[t2] = () => i3[t2]);
  49. return s2.default = () => i3, a.d(r3, s2), r3;
  50. }, a.d = (t2, e3) => {
  51. for (var i3 in e3)
  52. a.o(e3, i3) && !a.o(t2, i3) && Object.defineProperty(t2, i3, { enumerable: true, get: e3[i3] });
  53. }, a.f = {}, a.e = (t2) => Promise.all(Object.keys(a.f).reduce((e3, i3) => (a.f[i3](t2, e3), e3), [])), a.u = (t2) => ({ 265: "canvg", 297: "xlsx", 643: "pdfmake" }[t2] || t2) + ".js", a.g = function() {
  54. if (typeof globalThis == "object")
  55. return globalThis;
  56. try {
  57. return this || new Function("return this")();
  58. } catch (t2) {
  59. if (typeof window == "object")
  60. return window;
  61. }
  62. }(), a.o = (t2, e3) => Object.prototype.hasOwnProperty.call(t2, e3), i2 = {}, n2 = "EsriAmCharts:", a.l = (t2, e3, r3, s2) => {
  63. if (i2[t2])
  64. i2[t2].push(e3);
  65. else {
  66. var o3, l2;
  67. if (r3 !== void 0)
  68. for (var h2 = document.getElementsByTagName("script"), p2 = 0; p2 < h2.length; p2++) {
  69. var u2 = h2[p2];
  70. if (u2.getAttribute("src") == t2 || u2.getAttribute("data-webpack") == n2 + r3) {
  71. o3 = u2;
  72. break;
  73. }
  74. }
  75. o3 || (l2 = true, (o3 = document.createElement("script")).charset = "utf-8", o3.timeout = 120, a.nc && o3.setAttribute("nonce", a.nc), o3.setAttribute("data-webpack", n2 + r3), o3.src = t2), i2[t2] = [e3];
  76. var d2 = (e4, n3) => {
  77. o3.onerror = o3.onload = null, clearTimeout(c2);
  78. var r4 = i2[t2];
  79. if (delete i2[t2], o3.parentNode && o3.parentNode.removeChild(o3), r4 && r4.forEach((t3) => t3(n3)), e4)
  80. return e4(n3);
  81. }, c2 = setTimeout(d2.bind(null, void 0, { type: "timeout", target: o3 }), 12e4);
  82. o3.onerror = d2.bind(null, o3.onerror), o3.onload = d2.bind(null, o3.onload), l2 && document.head.appendChild(o3);
  83. }
  84. }, a.r = (t2) => {
  85. typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true });
  86. }, a.p = "", (() => {
  87. var t2 = { 826: 0 };
  88. a.f.j = (e4, i4) => {
  89. var n3 = a.o(t2, e4) ? t2[e4] : void 0;
  90. if (n3 !== 0)
  91. if (n3)
  92. i4.push(n3[2]);
  93. else {
  94. var r3 = new Promise((i5, r4) => n3 = t2[e4] = [i5, r4]);
  95. i4.push(n3[2] = r3);
  96. var s2 = a.p + a.u(e4), o3 = new Error();
  97. a.l(s2, (i5) => {
  98. if (a.o(t2, e4) && ((n3 = t2[e4]) !== 0 && (t2[e4] = void 0), n3)) {
  99. var r4 = i5 && (i5.type === "load" ? "missing" : i5.type), s3 = i5 && i5.target && i5.target.src;
  100. o3.message = "Loading chunk " + e4 + " failed.\n(" + r4 + ": " + s3 + ")", o3.name = "ChunkLoadError", o3.type = r4, o3.request = s3, n3[1](o3);
  101. }
  102. }, "chunk-" + e4, e4);
  103. }
  104. };
  105. var e3 = (e4, i4) => {
  106. var n3, r3, [s2, o3, l2] = i4, h2 = 0;
  107. if (s2.some((e5) => t2[e5] !== 0)) {
  108. for (n3 in o3)
  109. a.o(o3, n3) && (a.m[n3] = o3[n3]);
  110. l2 && l2(a);
  111. }
  112. for (e4 && e4(i4); h2 < s2.length; h2++)
  113. r3 = s2[h2], a.o(t2, r3) && t2[r3] && t2[r3][0](), t2[r3] = 0;
  114. }, i3 = self.webpackChunkEsriAmCharts = self.webpackChunkEsriAmCharts || [];
  115. i3.forEach(e3.bind(null, 0)), i3.push = e3.bind(null, i3.push.bind(i3));
  116. })();
  117. var o2 = {};
  118. a.r(o2), a.d(o2, { am4charts: () => P, am4core: () => _, am4themes_animated: () => vu, am4themes_dark: () => bu });
  119. var l = {};
  120. a.r(l), a.d(l, { castNumber: () => Y, castString: () => X, checkArray: () => N, checkBoolean: () => R, checkDate: () => W, checkNumber: () => B, checkObject: () => H, checkString: () => E, getDefault: () => j, getType: () => L, getValue: () => q, getValueDefault: () => $, hasValue: () => Z, isArray: () => it, isDate: () => J, isNaN: () => M, isNumber: () => tt, isObject: () => et, isString: () => Q, toBoolean: () => z, toNumber: () => U, toNumberOrPercent: () => K, toText: () => G });
  121. var h = {};
  122. a.r(h), a.d(h, { DEGREES: () => at, HALFPI: () => rt, PI: () => nt, RADIANS: () => st, adjustTension: () => jt, ceil: () => ht, closest: () => mt, cos: () => ft, fitAngleToRange: () => Rt, fitToRange: () => ut, getAngle: () => Dt, getArcPoint: () => Ht, getArcRect: () => Bt, getBBox: () => Tt, getCenterShift: () => kt, getCommonRectangle: () => At, getCubicControlPointA: () => Mt, getCubicControlPointB: () => Lt, getCubicCurveDistance: () => Ct, getDistance: () => _t, getHorizontalDistance: () => Pt, getLineIntersection: () => Wt, getMidPoint: () => St, getPointOnCubicCurve: () => Ft, getPointOnQuadraticCurve: () => Vt, getRotation: () => It, getScale: () => Ot, getVerticalDistance: () => wt, intersect: () => vt, intersection: () => xt, invertRange: () => bt, isInRectangle: () => Nt, max: () => gt, min: () => yt, normalizeAngle: () => Et, round: () => lt, sin: () => dt, stretch: () => pt, tan: () => ct, toNumberRange: () => ot });
  123. var p = {};
  124. a.r(p), a.d(p, { add: () => ne, any: () => Yt, copy: () => oe, each: () => Ut, eachContinue: () => Kt, eachReverse: () => Gt, find: () => ce, findIndex: () => de, first: () => $t, getSortedIndex: () => ue, has: () => ae, indexOf: () => Xt, insert: () => Jt, insertIndex: () => he, keepIf: () => ge, last: () => qt, map: () => zt, move: () => ie, pushAll: () => te, remove: () => ee, removeIndex: () => pe, replace: () => re, setIndex: () => Qt, shiftLeft: () => Zt, shuffle: () => fe, slice: () => le, toArray: () => se });
  125. var u = {};
  126. a.r(u), a.d(u, { clone: () => ze, copy: () => Xe, copyAllProperties: () => Ze, copyProperties: () => Ue, each: () => Ne, eachContinue: () => He, eachOrdered: () => We, entries: () => Le, forceCopyProperties: () => Ke, getKey: () => Be, hasKey: () => Re, keys: () => je, keysOrdered: () => Ee, merge: () => Ye, softCopyProperties: () => Ge });
  127. var d = {};
  128. a.r(d), a.d(d, { ListIterator: () => mi, concat: () => ri, contains: () => pi, each: () => ti, eachContinue: () => Qe, filter: () => ni, find: () => li, findIndex: () => oi, findMap: () => hi, flatten: () => si, foldl: () => ui, fromArray: () => qe, indexed: () => ai, join: () => yi, length: () => $e, map: () => ii, max: () => gi, min: () => ci, sort: () => ei, toArray: () => Je });
  129. var c = {};
  130. a.r(c), a.d(c, { order: () => vi, random: () => xi, repeat: () => bi });
  131. var f = {};
  132. a.r(f), a.d(f, { order: () => Bi });
  133. var g = {};
  134. a.r(g), a.d(g, { brighten: () => nn, getBrightnessStep: () => rn, getLightnessStep: () => en, hexToRgb: () => Gi, hexToRgbWithAlpha: () => Ki, hslToRgb: () => an, hsvToRgb: () => hn, interpolate: () => Qi, isLight: () => pn, lighten: () => tn, pad2: () => Ji, rgb: () => Ui, rgbToHex: () => qi, rgbToHsl: () => on, rgbToHsv: () => ln, rgbToRGBA: () => $i, rgbaToRgb: () => Zi, saturate: () => sn });
  135. var y = {};
  136. a.r(y), a.d(y, { anyToDate: () => Qn, anyToNumber: () => tr, camelToDashed: () => jn, capitalize: () => En, cleanFormat: () => Zn, copy: () => Tn, copyProperties: () => Sn, decimalPlaces: () => _r, documentPointToSprite: () => mr, documentPointToSvg: () => gr, escapeForRgex: () => Bn, fitNumber: () => lr, fitNumberRelative: () => hr, get12Hours: () => sr, getBaseURI: () => Dn, getDayFromWeek: () => rr, getFormat: () => Kn, getMonthWeek: () => nr, getPixelRatio: () => Ln, getTimeZone: () => ar, getWeek: () => ir, getYearDay: () => er, height: () => xr, isIE: () => Ir, isNotEmpty: () => An, joinUrl: () => Sr, ltrim: () => Yn, numberToString: () => Jn, padString: () => Gn, parseUrl: () => wr, plainText: () => $n, random: () => or, relativeRadiusToValue: () => Fn, relativeToValue: () => Vn, reverseString: () => zn, rtrim: () => Xn, serializeUrl: () => Cr, softCopyProperties: () => kn, splitTextByCharCount: () => Hn, spritePointToDocument: () => vr, spritePointToSprite: () => dr, spritePointToSvg: () => ur, spriteRectToSvg: () => fr, stringify: () => Rn, stripHash: () => In, stripTags: () => qn, svgPointToDocument: () => yr, svgPointToSprite: () => pr, svgRectToSprite: () => cr, trim: () => Wn, truncateWithEllipsis: () => Nn, unquote: () => Un, used: () => On, valueToRelative: () => Mn, width: () => br });
  137. var m = {};
  138. a.r(m), a.d(m, { bounceIn: () => $r, bounceInOut: () => Qr, bounceOut: () => Jr, circleIn: () => Gr, circleInOut: () => Zr, circleOut: () => Kr, cubicIn: () => Yr, cubicInOut: () => Ur, cubicOut: () => zr, elasticIn: () => is, elasticInOut: () => rs, elasticOut: () => ns, expIn: () => Rr, expInOut: () => Hr, expOut: () => Br, linear: () => Dr, polyIn: () => Vr, polyIn3: () => Lr, polyInOut: () => Mr, polyInOut3: () => Er, polyOut: () => Fr, polyOut3: () => jr, quadIn: () => kr, quadInOut: () => Ar, quadOut: () => Tr, sinIn: () => Nr, sinInOut: () => Xr, sinOut: () => Wr });
  139. var v = {};
  140. a.r(v), a.d(v, { add: () => sa, checkChange: () => ra, copy: () => na, getDuration: () => ta, getNextUnit: () => Qs, getTime: () => ia, getTimezoneMinutes: () => la, now: () => ea, round: () => aa, setTimezone: () => oa, timeUnitDurations: () => Js });
  141. var b = {};
  142. a.r(b), a.d(b, { load: () => Ha, readBlob: () => Na });
  143. var x = {};
  144. a.r(x), a.d(x, { arc: () => ko, arcTo: () => Do, arcToPoint: () => To, closePath: () => Io, cubicCurveTo: () => So, lineTo: () => Co, moveTo: () => wo, pathToPoints: () => Fo, pointsToPath: () => Lo, polyline: () => Po, quadraticCurveTo: () => Oo, rectToPath: () => Vo, rectangle: () => Ao, spiralPoints: () => Mo });
  145. var _ = {};
  146. a.r(_), a.d(_, { AMElement: () => Ws, Adapter: () => Yi, Animation: () => ys, BaseObject: () => yn, BaseObjectEvents: () => mn, Basis: () => ll, BlurFilter: () => Il, Button: () => go, CSVParser: () => io, Cache: () => Ci, Circle: () => yo, CirclePattern: () => wl, CloseButton: () => Yo, Color: () => un, ColorModifier: () => fl, ColorSet: () => kl, ColorizeFilter: () => Ol, Component: () => uo, Cone: () => ml, Container: () => $a, CounterDisposer: () => be, DATE: () => _n, DURATION: () => Pn, DataItem: () => po, DataLoader: () => ro, DataParser: () => to, DataSource: () => ao, DateFormatter: () => Ma, DesaturateFilter: () => Sl, Dictionary: () => Pi, DictionaryDisposer: () => _i, DictionaryTemplate: () => wi, Disposer: () => ye, DropShadowFilter: () => qo, DurationFormatter: () => La, Ellipse: () => mo, EventDispatcher: () => Fe, Export: () => Ga, ExportMenu: () => Ba, Filter: () => Zo, FocusFilter: () => Dl, GlobalAdapter: () => Wi, Group: () => Xs, Image: () => vo, IndexedIterable: () => ki, Inertia: () => Zs, Interaction: () => ha, InteractionKeyboardObject: () => Ks, InteractionObject: () => Gs, InteractionObjectEventDispatcher: () => Us, InterfaceColorSet: () => Ys, JSONParser: () => no, Keyboard: () => qs, Label: () => co, Language: () => Ta, LightenFilter: () => vl, Line: () => bo, LinePattern: () => Pl, LinearGradient: () => Oa, LinearGradientModifier: () => yl, List: () => Fi, ListDisposer: () => Ai, ListGrouper: () => Ti, ListIterator: () => mi, ListTemplate: () => Mi, Modal: () => ca, Morpher: () => Ro, MouseCursorStyle: () => Ia, MultiDisposer: () => me, MutableValueDisposer: () => ve, NUMBER: () => xn, NumberFormatter: () => Fa, OrderedList: () => Li, OrderedListTemplate: () => Ei, PLACEHOLDER: () => wn, PLACEHOLDER2: () => Cn, PX: () => vn, Paper: () => _a, Pattern: () => Ca, PatternSet: () => Tl, Percent: () => A, PlayButton: () => cl, Plugin: () => Al, PointedRectangle: () => _o, PointedShape: () => xo, Polyarc: () => Eo, Polygon: () => Bo, Polyline: () => jo, Polyspline: () => Ho, Popup: () => da, Preloader: () => Wo, RadialGradient: () => Sa, RadialGradientModifier: () => _l, RectPattern: () => Cl, Rectangle: () => qa, Rectangle3D: () => bl, Registry: () => Si, ResizeButton: () => Xo, Responsive: () => oo, ResponsiveBreakpoints: () => ho, RoundedRectangle: () => fo, STRING: () => bn, SVGContainer: () => xa, SVGDefaults: () => os, Scrollbar: () => Uo, Slice: () => No, Slice3D: () => xl, Slider: () => Go, SortedList: () => ji, SortedListTemplate: () => Ri, Sprite: () => Za, SpriteEventDispatcher: () => as, SpriteState: () => ss, StyleClass: () => Es, StyleRule: () => Ls, SwitchButton: () => zo, System: () => Ja, TargetedEventDispatcher: () => Me, Tension: () => tl, TextFormatter: () => Aa, TextLink: () => Ko, Tooltip: () => $o, Trapezoid: () => Jo, Triangle: () => Qo, Validatable: () => Ra, WavedCircle: () => hl, WavedLine: () => pl, WavedRectangle: () => ul, ZoomOutButton: () => dl, addClass: () => Ps, addLicense: () => Ul, animate: () => hs, array: () => p, blur: () => Ss, cache: () => Oi, castColor: () => fn, castNumber: () => Y, castString: () => X, checkBoolean: () => R, checkNumber: () => B, checkObject: () => H, checkString: () => E, color: () => dn, colors: () => g, copyAttributes: () => Fs, create: () => Bl, createDeferred: () => Nl, createFromConfig: () => Hl, dataLoader: () => so, defaultRules: () => lo, disposeAllCharts: () => Ml, ease: () => m, fixPixelPerfect: () => Ms, focus: () => Is, getElement: () => _s, getInteraction: () => ua, getTextFormatter: () => Va, globalAdapter: () => Xi, is: () => Di, isArray: () => it, isColor: () => cn, isElement: () => ks, isNaN: () => M, isNumber: () => tt, isObject: () => et, isPercent: () => F, isString: () => Q, iter: () => d, join: () => yi, keyboard: () => $s, math: () => h, max: () => gi, min: () => ci, net: () => b, nextFrame: () => De, number: () => f, object: () => u, options: () => ls, or: () => Ni, outerHTML: () => Ds, path: () => x, percent: () => V, readFrame: () => ke, ready: () => Rs, registry: () => Ii, removeClass: () => ws, reverse: () => Hi, string: () => c, system: () => Qa, time: () => v, triggerIdle: () => Ve, type: () => l, unuseAllThemes: () => zl, unuseTheme: () => Yl, useTheme: () => Xl, utils: () => y, viewPortHandler: () => El, whenIdle: () => Ae, writeFrame: () => Te });
  147. var P = {};
  148. a.r(P), a.d(P, { Axis: () => oh, AxisBreak: () => rh, AxisBullet: () => gh, AxisDataItem: () => ah, AxisFill: () => hh, AxisFillCircular: () => Bh, AxisLabel: () => uh, AxisLabelCircular: () => Nh, AxisLine: () => lh, AxisRenderer: () => fh, AxisRendererCircular: () => Wh, AxisRendererRadial: () => Xh, AxisRendererX: () => wh, AxisRendererX3D: () => Ap, AxisRendererY: () => yh, AxisRendererY3D: () => Vp, AxisTick: () => ch, Bullet: () => ql, Candlestick: () => Bp, CandlestickSeries: () => Np, CandlestickSeriesDataItem: () => Hp, CategoryAxis: () => Sh, CategoryAxisBreak: () => Ch, CategoryAxisDataItem: () => Oh, Chart: () => Zl, ChartDataItem: () => Kl, ChordDiagram: () => wp, ChordDiagramDataItem: () => Pp, ChordLink: () => _p, ChordNode: () => bp, CircleBullet: () => uu, ClockHand: () => Uh, Column: () => Cp, Column3D: () => Fp, ColumnSeries: () => Sp, ColumnSeries3D: () => Lp, ColumnSeries3DDataItem: () => Mp, ColumnSeriesDataItem: () => Op, ConeColumn: () => su, ConeSeries: () => ou, ConeSeriesDataItem: () => au, Cursor: () => gu, CurvedColumn: () => lu, CurvedColumnSeries: () => pu, CurvedColumnSeriesDataItem: () => hu, DateAxis: () => Ph, DateAxisBreak: () => xh, DateAxisDataItem: () => _h, DurationAxis: () => Mh, DurationAxisDataItem: () => Fh, ErrorBullet: () => du, FlowDiagram: () => cp, FlowDiagramDataItem: () => dp, FlowDiagramLink: () => up, FlowDiagramNode: () => pp, FunnelSeries: () => tu, FunnelSeriesDataItem: () => Qp, FunnelSlice: () => $p, GaugeChart: () => Kh, GaugeChartDataItem: () => Gh, Grid: () => ph, GridCircular: () => Hh, HeatLegend: () => Rp, LabelBullet: () => fp, Legend: () => Ql, LegendDataItem: () => $l, LegendSettings: () => Jl, LineSeries: () => jh, LineSeriesDataItem: () => Lh, LineSeriesSegment: () => Vh, NavigationBar: () => fu, NavigationBarDataItem: () => cu, OHLC: () => Wp, OHLCSeries: () => Yp, OHLCSeriesDataItem: () => Xp, PictorialStackedSeries: () => ru, PictorialStackedSeriesDataItem: () => nu, PieChart: () => np, PieChart3D: () => op, PieChart3DDataItem: () => ap, PieChartDataItem: () => ip, PieSeries: () => ep, PieSeries3D: () => sp, PieSeries3DDataItem: () => rp, PieSeriesDataItem: () => tp, PieTick: () => Qh, PyramidSeries: () => iu, PyramidSeriesDataItem: () => eu, RadarChart: () => zh, RadarChartDataItem: () => Yh, RadarColumn: () => Kp, RadarColumnSeries: () => qp, RadarColumnSeriesDataItem: () => Zp, RadarCursor: () => mu, RadarSeries: () => Rh, RadarSeriesDataItem: () => Eh, SankeyDiagram: () => vp, SankeyDiagramDataItem: () => mp, SankeyLink: () => yp, SankeyNode: () => gp, SerialChart: () => nh, SerialChartDataItem: () => ih, Series: () => eh, SeriesDataItem: () => th, SlicedChart: () => hp, SlicedChartDataItem: () => lp, StepLineSeries: () => Gp, StepLineSeriesDataItem: () => Up, Tick: () => dh, TreeMap: () => Tp, TreeMapDataItem: () => kp, TreeMapSeries: () => Dp, TreeMapSeriesDataItem: () => Ip, ValueAxis: () => bh, ValueAxisBreak: () => mh, ValueAxisDataItem: () => vh, XYChart: () => Ah, XYChart3D: () => Ep, XYChart3DDataItem: () => jp, XYChartDataItem: () => Th, XYChartScrollbar: () => kh, XYCursor: () => yu, XYSeries: () => Dh, XYSeriesDataItem: () => Ih });
  149. var w = function(t2, e3) {
  150. return w = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e4) {
  151. t3.__proto__ = e4;
  152. } || function(t3, e4) {
  153. for (var i3 in e4)
  154. Object.prototype.hasOwnProperty.call(e4, i3) && (t3[i3] = e4[i3]);
  155. }, w(t2, e3);
  156. };
  157. function C(t2, e3) {
  158. if (typeof e3 != "function" && e3 !== null)
  159. throw new TypeError("Class extends value " + String(e3) + " is not a constructor or null");
  160. function i3() {
  161. this.constructor = t2;
  162. }
  163. w(t2, e3), t2.prototype = e3 === null ? Object.create(e3) : (i3.prototype = e3.prototype, new i3());
  164. }
  165. var O = function() {
  166. return O = Object.assign || function(t2) {
  167. for (var e3, i3 = 1, n3 = arguments.length; i3 < n3; i3++)
  168. for (var r3 in e3 = arguments[i3])
  169. Object.prototype.hasOwnProperty.call(e3, r3) && (t2[r3] = e3[r3]);
  170. return t2;
  171. }, O.apply(this, arguments);
  172. };
  173. function S(t2, e3, i3, n3) {
  174. return new (i3 || (i3 = Promise))(function(r3, s2) {
  175. function a2(t3) {
  176. try {
  177. l2(n3.next(t3));
  178. } catch (t4) {
  179. s2(t4);
  180. }
  181. }
  182. function o3(t3) {
  183. try {
  184. l2(n3.throw(t3));
  185. } catch (t4) {
  186. s2(t4);
  187. }
  188. }
  189. function l2(t3) {
  190. var e4;
  191. t3.done ? r3(t3.value) : (e4 = t3.value, e4 instanceof i3 ? e4 : new i3(function(t4) {
  192. t4(e4);
  193. })).then(a2, o3);
  194. }
  195. l2((n3 = n3.apply(t2, e3 || [])).next());
  196. });
  197. }
  198. function I(t2, e3) {
  199. var i3, n3, r3, s2, a2 = { label: 0, sent: function() {
  200. if (1 & r3[0])
  201. throw r3[1];
  202. return r3[1];
  203. }, trys: [], ops: [] };
  204. return s2 = { next: o3(0), throw: o3(1), return: o3(2) }, typeof Symbol == "function" && (s2[Symbol.iterator] = function() {
  205. return this;
  206. }), s2;
  207. function o3(s3) {
  208. return function(o4) {
  209. return function(s4) {
  210. if (i3)
  211. throw new TypeError("Generator is already executing.");
  212. for (; a2; )
  213. try {
  214. if (i3 = 1, n3 && (r3 = 2 & s4[0] ? n3.return : s4[0] ? n3.throw || ((r3 = n3.return) && r3.call(n3), 0) : n3.next) && !(r3 = r3.call(n3, s4[1])).done)
  215. return r3;
  216. switch (n3 = 0, r3 && (s4 = [2 & s4[0], r3.value]), s4[0]) {
  217. case 0:
  218. case 1:
  219. r3 = s4;
  220. break;
  221. case 4:
  222. return a2.label++, { value: s4[1], done: false };
  223. case 5:
  224. a2.label++, n3 = s4[1], s4 = [0];
  225. continue;
  226. case 7:
  227. s4 = a2.ops.pop(), a2.trys.pop();
  228. continue;
  229. default:
  230. if (!((r3 = (r3 = a2.trys).length > 0 && r3[r3.length - 1]) || s4[0] !== 6 && s4[0] !== 2)) {
  231. a2 = 0;
  232. continue;
  233. }
  234. if (s4[0] === 3 && (!r3 || s4[1] > r3[0] && s4[1] < r3[3])) {
  235. a2.label = s4[1];
  236. break;
  237. }
  238. if (s4[0] === 6 && a2.label < r3[1]) {
  239. a2.label = r3[1], r3 = s4;
  240. break;
  241. }
  242. if (r3 && a2.label < r3[2]) {
  243. a2.label = r3[2], a2.ops.push(s4);
  244. break;
  245. }
  246. r3[2] && a2.ops.pop(), a2.trys.pop();
  247. continue;
  248. }
  249. s4 = e3.call(t2, a2);
  250. } catch (t3) {
  251. s4 = [6, t3], n3 = 0;
  252. } finally {
  253. i3 = r3 = 0;
  254. }
  255. if (5 & s4[0])
  256. throw s4[1];
  257. return { value: s4[0] ? s4[1] : void 0, done: true };
  258. }([s3, o4]);
  259. };
  260. }
  261. }
  262. function D(t2) {
  263. var e3 = typeof Symbol == "function" && Symbol.iterator, i3 = e3 && t2[e3], n3 = 0;
  264. if (i3)
  265. return i3.call(t2);
  266. if (t2 && typeof t2.length == "number")
  267. return { next: function() {
  268. return t2 && n3 >= t2.length && (t2 = void 0), { value: t2 && t2[n3++], done: !t2 };
  269. } };
  270. throw new TypeError(e3 ? "Object is not iterable." : "Symbol.iterator is not defined.");
  271. }
  272. function k(t2, e3) {
  273. var i3 = typeof Symbol == "function" && t2[Symbol.iterator];
  274. if (!i3)
  275. return t2;
  276. var n3, r3, s2 = i3.call(t2), a2 = [];
  277. try {
  278. for (; (e3 === void 0 || e3-- > 0) && !(n3 = s2.next()).done; )
  279. a2.push(n3.value);
  280. } catch (t3) {
  281. r3 = { error: t3 };
  282. } finally {
  283. try {
  284. n3 && !n3.done && (i3 = s2.return) && i3.call(s2);
  285. } finally {
  286. if (r3)
  287. throw r3.error;
  288. }
  289. }
  290. return a2;
  291. }
  292. function T() {
  293. for (var t2 = [], e3 = 0; e3 < arguments.length; e3++)
  294. t2 = t2.concat(k(arguments[e3]));
  295. return t2;
  296. }
  297. var A = function() {
  298. function t2(t3) {
  299. this._value = t3;
  300. }
  301. return Object.defineProperty(t2.prototype, "value", { get: function() {
  302. return this._value / 100;
  303. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "percent", { get: function() {
  304. return this._value;
  305. }, enumerable: true, configurable: true }), t2.prototype.toString = function() {
  306. return this._value + "%";
  307. }, t2;
  308. }();
  309. function V(t2) {
  310. return new A(t2);
  311. }
  312. function F(t2) {
  313. return t2 instanceof A;
  314. }
  315. function M(t2) {
  316. return Number(t2) !== t2;
  317. }
  318. function L(t2) {
  319. return {}.toString.call(t2);
  320. }
  321. function j(t2, e3) {
  322. return t2 || e3;
  323. }
  324. function E(t2) {
  325. if (typeof t2 == "string")
  326. return true;
  327. throw new Error("Expected a string but got " + L(t2));
  328. }
  329. function R(t2) {
  330. if (typeof t2 == "boolean")
  331. return true;
  332. throw new Error("Expected a boolean but got " + L(t2));
  333. }
  334. function B(t2) {
  335. if (typeof t2 != "number")
  336. throw new Error("Expected a number but got " + L(t2));
  337. if (M(t2))
  338. throw new Error("Expected a number but got NaN");
  339. return true;
  340. }
  341. function H(t2) {
  342. var e3 = L(t2);
  343. if (e3 === "[object Object]")
  344. return true;
  345. throw new Error("Expected an object but got " + e3);
  346. }
  347. function N(t2) {
  348. if (Array.isArray(t2))
  349. return true;
  350. throw new Error("Expected an array but got " + L(t2));
  351. }
  352. function W(t2) {
  353. var e3 = L(t2);
  354. if (e3 === "[object Date]")
  355. return true;
  356. throw new Error("Expected a date but got " + e3);
  357. }
  358. function X(t2) {
  359. if (typeof t2 == "string")
  360. return t2;
  361. if (typeof t2 == "number")
  362. return "" + t2;
  363. throw new Error("Expected a string or number but got " + L(t2));
  364. }
  365. function Y(t2) {
  366. if (typeof t2 == "string") {
  367. var e3 = +t2;
  368. if (M(e3))
  369. throw new Error("Cannot cast string " + JSON.stringify(t2) + " to a number");
  370. return e3;
  371. }
  372. if (typeof t2 == "number") {
  373. if (M(t2))
  374. throw new Error("Expected a number but got NaN");
  375. return t2;
  376. }
  377. var i3 = L(t2);
  378. if (i3 === "[object Date]")
  379. return t2.getTime();
  380. throw new Error("Expected a string, number, or date but got " + i3);
  381. }
  382. function z(t2) {
  383. return !!t2;
  384. }
  385. function U(t2) {
  386. if (Z(t2) && !tt(t2)) {
  387. var e3 = Number(t2);
  388. return M(e3) && Q(t2) && t2 != "" ? U(t2.replace(/[^0-9.\-]+/g, "")) : e3;
  389. }
  390. return t2;
  391. }
  392. function G(t2) {
  393. if (Z(t2) && !Q(t2)) {
  394. if (tt(t2))
  395. return X(t2);
  396. if (et(t2))
  397. return t2.toString();
  398. }
  399. return t2;
  400. }
  401. function K(t2) {
  402. return !Z(t2) || tt(t2) || F(t2) ? t2 : Q(t2) && t2.indexOf("%") != -1 ? V(U(t2)) : U(t2);
  403. }
  404. function Z(t2) {
  405. return t2 != null;
  406. }
  407. function q(t2) {
  408. if (Z(t2))
  409. return t2;
  410. throw new Error("Value doesn't exist");
  411. }
  412. function $(t2, e3) {
  413. return Z(t2) ? t2 : e3;
  414. }
  415. function J(t2) {
  416. return L(t2) === "[object Date]";
  417. }
  418. function Q(t2) {
  419. return typeof t2 == "string";
  420. }
  421. function tt(t2) {
  422. return typeof t2 == "number" && Number(t2) == t2;
  423. }
  424. function et(t2) {
  425. return typeof t2 == "object" && t2 != null;
  426. }
  427. function it(t2) {
  428. return Array.isArray(t2);
  429. }
  430. var nt = Math.PI, rt = nt / 2, st = nt / 180, at = 180 / nt;
  431. function ot(t2, e3, i3) {
  432. return Z(t2) ? ut(t2 = U(t2), e3, i3) : t2;
  433. }
  434. function lt(t2, e3, i3) {
  435. if (!tt(e3) || e3 <= 0) {
  436. var n3 = Math.round(t2);
  437. return i3 && n3 - t2 == 0.5 && n3--, n3;
  438. }
  439. var r3 = Math.pow(10, e3);
  440. return Math.round(t2 * r3) / r3;
  441. }
  442. function ht(t2, e3) {
  443. if (!tt(e3) || e3 <= 0)
  444. return Math.ceil(t2);
  445. var i3 = Math.pow(10, e3);
  446. return Math.ceil(t2 * i3) / i3;
  447. }
  448. function pt(t2, e3, i3) {
  449. return t2 * (i3 - e3) + e3;
  450. }
  451. function ut(t2, e3, i3) {
  452. if (tt(e3)) {
  453. if (tt(i3) && i3 < e3) {
  454. var n3 = i3;
  455. i3 = e3, e3 = n3;
  456. }
  457. t2 < e3 && (t2 = e3);
  458. }
  459. return tt(i3) && t2 > i3 && (t2 = i3), t2;
  460. }
  461. function dt(t2) {
  462. return lt(Math.sin(st * t2), 10);
  463. }
  464. function ct(t2) {
  465. return lt(Math.tan(st * t2), 10);
  466. }
  467. function ft(t2) {
  468. return lt(Math.cos(st * t2), 10);
  469. }
  470. function gt(t2, e3) {
  471. return tt(t2) ? tt(e3) && e3 > t2 ? e3 : t2 : tt(e3) ? e3 : null;
  472. }
  473. function yt(t2, e3) {
  474. return tt(t2) ? tt(e3) && e3 < t2 ? e3 : t2 : tt(e3) ? e3 : null;
  475. }
  476. function mt(t2, e3) {
  477. return t2.reduce(function(t3, i3) {
  478. return Math.abs(i3 - e3) < Math.abs(t3 - e3) ? i3 : t3;
  479. });
  480. }
  481. function vt(t2, e3) {
  482. var i3 = q(t2.start), n3 = q(e3.start), r3 = q(t2.end), s2 = q(e3.end);
  483. return Math.max(i3, n3) <= Math.min(r3, s2);
  484. }
  485. function bt(t2) {
  486. var e3 = q(t2.start);
  487. return { start: 1 - q(t2.end), end: 1 - e3 };
  488. }
  489. function xt(t2, e3) {
  490. var i3 = q(t2.start), n3 = q(e3.start), r3 = q(t2.end), s2 = q(e3.end), a2 = Math.max(i3, n3), o3 = Math.min(r3, s2);
  491. return o3 < a2 ? void 0 : { start: a2, end: o3 };
  492. }
  493. function _t(t2, e3) {
  494. return t2 ? (e3 || (e3 = { x: 0, y: 0 }), Math.sqrt(Math.pow(Math.abs(t2.x - e3.x), 2) + Math.pow(Math.abs(t2.y - e3.y), 2))) : 0;
  495. }
  496. function Pt(t2, e3) {
  497. return t2 ? (e3 || (e3 = { x: 0, y: 0 }), Math.abs(t2.x - e3.x)) : 0;
  498. }
  499. function wt(t2, e3) {
  500. return t2 ? (e3 || (e3 = { x: 0, y: 0 }), Math.abs(t2.y - e3.y)) : 0;
  501. }
  502. function Ct(t2, e3, i3, n3, r3) {
  503. if (!t2)
  504. return 0;
  505. e3 || (e3 = { x: 0, y: 0 });
  506. var s2 = 0, a2 = t2;
  507. if (r3 > 0)
  508. for (var o3 = 0; o3 <= r3; o3++) {
  509. var l2 = Ft(t2, e3, i3, n3, o3 / r3);
  510. s2 += _t(a2, l2), a2 = l2;
  511. }
  512. return s2;
  513. }
  514. function Ot(t2, e3, i3, n3) {
  515. var r3 = _t(e3, n3), s2 = _t(t2, i3);
  516. return Math.abs(s2 / r3);
  517. }
  518. function St(t2, e3, i3) {
  519. return tt(i3) || (i3 = 0.5), { x: t2.x + (e3.x - t2.x) * i3, y: t2.y + (e3.y - t2.y) * i3 };
  520. }
  521. function It(t2, e3, i3, n3) {
  522. var r3 = Dt(e3, n3) - Dt(t2, i3);
  523. return r3 < 0 && (r3 += 360), r3;
  524. }
  525. function Dt(t2, e3) {
  526. e3 || (e3 = { x: 2 * t2.x, y: 2 * t2.y });
  527. var i3 = e3.x - t2.x, n3 = e3.y - t2.y, r3 = Math.atan2(n3, i3) * at;
  528. return r3 < 0 && (r3 += 360), Et(r3);
  529. }
  530. function kt(t2, e3, i3, n3, r3) {
  531. var s2 = It(e3, i3, n3, r3) - 90;
  532. s2 < 0 && (s2 += 360);
  533. var a2 = _t(e3, n3), o3 = Math.cos(s2) / a2 + e3.x, l2 = Math.cos(s2) / a2 + e3.y;
  534. return { x: o3 - t2.x, y: l2 - t2.y };
  535. }
  536. function Tt(t2) {
  537. if (t2) {
  538. var e3 = t2.length;
  539. if (e3 !== 0) {
  540. for (var i3, n3 = void 0, r3 = void 0, s2 = void 0, a2 = 0; a2 < e3; a2++) {
  541. var o3 = t2[a2];
  542. (!tt(r3) || o3.x > r3) && (r3 = o3.x), (!tt(n3) || o3.x < n3) && (n3 = o3.x), (!tt(i3) || o3.y < i3) && (i3 = o3.y), (!tt(s2) || o3.y > s2) && (s2 = o3.y);
  543. }
  544. return { x: n3, y: i3, width: r3 - n3, height: s2 - i3 };
  545. }
  546. }
  547. return { x: 0, y: 0, width: 0, height: 0 };
  548. }
  549. function At(t2) {
  550. var e3 = t2.length;
  551. if (e3 !== 0) {
  552. for (var i3 = void 0, n3 = void 0, r3 = void 0, s2 = void 0, a2 = 0; a2 < e3; a2++) {
  553. var o3 = t2[a2];
  554. i3 = yt(o3.x, i3), n3 = yt(o3.y, n3), r3 = gt(o3.x + o3.width, r3), s2 = gt(o3.y + o3.height, s2);
  555. }
  556. return { x: i3, y: n3, width: r3 - i3, height: s2 - n3 };
  557. }
  558. }
  559. function Vt(t2, e3, i3, n3) {
  560. return { x: (1 - n3) * (1 - n3) * t2.x + 2 * (1 - n3) * n3 * i3.x + n3 * n3 * e3.x, y: (1 - n3) * (1 - n3) * t2.y + 2 * (1 - n3) * n3 * i3.y + n3 * n3 * e3.y };
  561. }
  562. function Ft(t2, e3, i3, n3, r3) {
  563. var s2 = { x: 0, y: 0 }, a2 = 1 - r3, o3 = a2 * a2, l2 = o3 * a2;
  564. return s2.x = t2.x * l2 + 3 * i3.x * o3 * r3 + 3 * n3.x * a2 * r3 * r3 + e3.x * r3 * r3 * r3, s2.y = t2.y * l2 + 3 * i3.y * o3 * r3 + 3 * n3.y * a2 * r3 * r3 + e3.y * r3 * r3 * r3, s2;
  565. }
  566. function Mt(t2, e3, i3, n3, r3, s2) {
  567. return r3 = jt(r3), s2 = jt(s2), { x: (-t2.x + e3.x / r3 + i3.x) * r3, y: (-t2.y + e3.y / s2 + i3.y) * s2 };
  568. }
  569. function Lt(t2, e3, i3, n3, r3, s2) {
  570. return r3 = jt(r3), s2 = jt(s2), { x: (e3.x + i3.x / r3 - n3.x) * r3, y: (e3.y + i3.y / s2 - n3.y) * s2 };
  571. }
  572. function jt(t2) {
  573. return 1 - t2 + 1e-5;
  574. }
  575. function Et(t2) {
  576. return t2 == 360 ? 360 : t2 % 360;
  577. }
  578. function Rt(t2, e3, i3) {
  579. if (e3 > i3) {
  580. var n3 = e3;
  581. e3 = i3, i3 = n3;
  582. }
  583. t2 = Et(t2);
  584. var r3 = (e3 - Et(e3)) / 360;
  585. return t2 < e3 && (t2 += 360 * (r3 + 1)), t2 > i3 && (t2 - 360 > e3 ? t2 -= 360 : t2 = t2 < e3 + (i3 - e3) / 2 + 180 ? i3 : e3), t2 < e3 && (t2 = t2 > e3 + (i3 - e3) / 2 - 180 ? e3 : i3), t2;
  586. }
  587. function Bt(t2, e3, i3) {
  588. var n3 = Number.MAX_VALUE, r3 = Number.MAX_VALUE, s2 = -Number.MAX_VALUE, a2 = -Number.MAX_VALUE, o3 = [];
  589. tt(i3) || (i3 = 1), o3.push(Ht(i3, t2)), o3.push(Ht(i3, e3));
  590. for (var l2 = Math.min(90 * Math.floor(t2 / 90), 90 * Math.floor(e3 / 90)), h2 = Math.max(90 * Math.ceil(t2 / 90), 90 * Math.ceil(e3 / 90)), p2 = l2; p2 <= h2; p2 += 90)
  591. p2 >= t2 && p2 <= e3 && o3.push(Ht(i3, p2));
  592. for (var u2 = 0; u2 < o3.length; u2++) {
  593. var d2 = o3[u2];
  594. d2.x < n3 && (n3 = d2.x), d2.y < r3 && (r3 = d2.y), d2.x > s2 && (s2 = d2.x), d2.y > a2 && (a2 = d2.y);
  595. }
  596. return { x: n3, y: r3, width: s2 - n3, height: a2 - r3 };
  597. }
  598. function Ht(t2, e3) {
  599. return { x: t2 * ft(e3), y: t2 * dt(e3) };
  600. }
  601. function Nt(t2, e3) {
  602. return t2.x >= e3.x && t2.x <= e3.x + e3.width && t2.y >= e3.y && t2.y <= e3.y + e3.height;
  603. }
  604. function Wt(t2, e3, i3, n3) {
  605. return { x: ((t2.x * e3.y - e3.x * t2.y) * (i3.x - n3.x) - (t2.x - e3.x) * (i3.x * n3.y - i3.y * n3.x)) / ((t2.x - e3.x) * (i3.y - n3.y) - (t2.y - e3.y) * (i3.x - n3.x)), y: ((t2.x * e3.y - e3.x * t2.y) * (i3.y - n3.y) - (t2.y - e3.y) * (i3.x * n3.y - i3.y * n3.x)) / ((t2.x - e3.x) * (i3.y - n3.y) - (t2.y - e3.y) * (i3.x - n3.x)) };
  606. }
  607. function Xt(t2, e3) {
  608. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  609. if (t2[n3] === e3)
  610. return n3;
  611. return -1;
  612. }
  613. function Yt(t2, e3) {
  614. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  615. if (e3(t2[n3]))
  616. return true;
  617. return false;
  618. }
  619. function zt(t2, e3) {
  620. for (var i3 = t2.length, n3 = new Array(i3), r3 = 0; r3 < i3; ++r3)
  621. n3[r3] = e3(t2[r3], r3);
  622. return n3;
  623. }
  624. function Ut(t2, e3) {
  625. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  626. e3(t2[n3], n3);
  627. }
  628. function Gt(t2, e3) {
  629. for (var i3 = t2.length; i3--; )
  630. e3(t2[i3], i3);
  631. }
  632. function Kt(t2, e3) {
  633. for (var i3 = t2.length, n3 = 0; n3 < i3 && e3(t2[n3], n3); ++n3)
  634. ;
  635. }
  636. function Zt(t2, e3) {
  637. for (var i3 = t2.length, n3 = e3; n3 < i3; ++n3)
  638. t2[n3 - e3] = t2[n3];
  639. t2.length = i3 - e3;
  640. }
  641. function qt(t2) {
  642. var e3 = t2.length;
  643. return e3 ? t2[e3 - 1] : void 0;
  644. }
  645. function $t(t2) {
  646. return t2[0];
  647. }
  648. function Jt(t2, e3, i3) {
  649. i3 = ut(i3, 0, t2.length), t2.splice(i3, 0, e3);
  650. }
  651. function Qt(t2, e3, i3) {
  652. ee(t2, e3), Jt(t2, e3, i3);
  653. }
  654. function te(t2, e3) {
  655. for (var i3 = e3.length, n3 = 0; n3 < i3; ++n3)
  656. t2.push(e3[n3]);
  657. }
  658. function ee(t2, e3) {
  659. var i3 = false, n3 = t2.indexOf(e3);
  660. if (n3 !== -1) {
  661. i3 = true, t2.splice(n3, 1);
  662. for (var r3 = t2.length; n3 < r3; )
  663. t2[n3] === e3 ? (t2.splice(n3, 1), --r3) : ++n3;
  664. }
  665. return i3;
  666. }
  667. function ie(t2, e3, i3) {
  668. var n3 = Xt(t2, e3);
  669. n3 !== -1 && pe(t2, n3), i3 == null ? t2.push(e3) : he(t2, i3, e3);
  670. }
  671. function ne(t2, e3, i3) {
  672. tt(i3) ? i3 === 0 ? t2.unshift(e3) : t2.splice(i3, 0, e3) : t2.push(e3);
  673. }
  674. function re(t2, e3, i3) {
  675. var n3 = t2.indexOf(e3);
  676. n3 !== -1 && t2.splice(n3, 1), tt(i3) ? t2.splice(i3, 0, e3) : t2.push(e3);
  677. }
  678. function se(t2) {
  679. return Array.isArray(t2) ? t2 : [t2];
  680. }
  681. function ae(t2, e3) {
  682. return Xt(t2, e3) !== -1;
  683. }
  684. function oe(t2) {
  685. for (var e3 = t2.length, i3 = new Array(e3), n3 = 0; n3 < e3; ++n3)
  686. i3[n3] = t2[n3];
  687. return i3;
  688. }
  689. function le(t2, e3, i3) {
  690. i3 === void 0 && (i3 = t2.length);
  691. for (var n3 = new Array(i3 - e3), r3 = e3; r3 < i3; ++r3)
  692. n3[r3 - e3] = t2[r3];
  693. return n3;
  694. }
  695. function he(t2, e3, i3) {
  696. t2.splice(e3, 0, i3);
  697. }
  698. function pe(t2, e3) {
  699. t2.splice(e3, 1);
  700. }
  701. function ue(t2, e3, i3) {
  702. for (var n3 = 0, r3 = t2.length, s2 = false; n3 < r3; ) {
  703. var a2 = n3 + r3 >> 1, o3 = e3(i3, t2[a2]);
  704. o3 < 0 ? r3 = a2 : o3 === 0 ? (s2 = true, n3 = a2 + 1) : n3 = a2 + 1;
  705. }
  706. return { found: s2, index: s2 ? n3 - 1 : n3 };
  707. }
  708. function de(t2, e3) {
  709. for (var i3 = t2.length, n3 = 0; n3 < i3; ++n3)
  710. if (e3(t2[n3], n3))
  711. return n3;
  712. return -1;
  713. }
  714. function ce(t2, e3) {
  715. var i3 = de(t2, e3);
  716. if (i3 !== -1)
  717. return t2[i3];
  718. }
  719. function fe(t2) {
  720. for (var e3, i3, n3 = t2.length; n3 !== 0; )
  721. i3 = Math.floor(Math.random() * n3), e3 = t2[n3 -= 1], t2[n3] = t2[i3], t2[i3] = e3;
  722. }
  723. function ge(t2, e3) {
  724. for (var i3 = t2.length, n3 = 0; n3 < i3; )
  725. e3(t2[n3]) ? ++n3 : (t2.splice(n3, 1), --i3);
  726. }
  727. var ye = function() {
  728. function t2(t3) {
  729. this._disposed = false, this._dispose = t3;
  730. }
  731. return t2.prototype.isDisposed = function() {
  732. return this._disposed;
  733. }, t2.prototype.dispose = function() {
  734. this._disposed || (this._disposed = true, this._dispose());
  735. }, t2;
  736. }(), me = function(t2) {
  737. function e3(e4) {
  738. return t2.call(this, function() {
  739. Ut(e4, function(t3) {
  740. t3.dispose();
  741. });
  742. }) || this;
  743. }
  744. return C(e3, t2), e3;
  745. }(ye), ve = function(t2) {
  746. function e3() {
  747. var e4 = t2.call(this, function() {
  748. Z(e4._disposer) && (e4._disposer.dispose(), e4._disposer = void 0);
  749. }) || this;
  750. return e4;
  751. }
  752. return C(e3, t2), e3.prototype.get = function() {
  753. return this._value;
  754. }, e3.prototype.set = function(t3, e4) {
  755. Z(this._disposer) && this._disposer.dispose(), this._disposer = e4, this._value = t3;
  756. }, e3.prototype.reset = function() {
  757. this.set(void 0, void 0);
  758. }, e3;
  759. }(ye), be = function(t2) {
  760. function e3() {
  761. var e4 = t2 !== null && t2.apply(this, arguments) || this;
  762. return e4._counter = 0, e4;
  763. }
  764. return C(e3, t2), e3.prototype.increment = function() {
  765. var t3 = this;
  766. return ++this._counter, new ye(function() {
  767. --t3._counter, t3._counter === 0 && t3.dispose();
  768. });
  769. }, e3;
  770. }(ye), xe = false, _e = [], Pe = [], we = [], Ce = [], Oe = typeof requestAnimationFrame == "function" ? function(t2) {
  771. requestAnimationFrame(t2);
  772. } : function(t2) {
  773. setTimeout(t2, 16.666666666666668);
  774. };
  775. function Se() {
  776. for (var t2 = Date.now(), e3 = _e.length, i3 = 0; i3 < e3; ++i3)
  777. _e[i3](t2);
  778. for (Zt(_e, e3), i3 = 0; i3 < Pe.length; ++i3)
  779. Pe[i3](t2);
  780. for (Pe.length = 0, i3 = 0; i3 < we.length; ++i3)
  781. we[i3](t2);
  782. we.length = 0, _e.length === 0 && Pe.length === 0 ? xe = false : Oe(Se);
  783. }
  784. function Ie() {
  785. xe || (xe = true, Oe(Se));
  786. }
  787. function De(t2) {
  788. _e.push(t2), Ie();
  789. }
  790. function ke(t2) {
  791. Pe.push(t2), Ie();
  792. }
  793. function Te(t2) {
  794. we.push(t2), Ie();
  795. }
  796. function Ae(t2) {
  797. Ce.push(t2);
  798. }
  799. function Ve() {
  800. for (var t2 = Date.now(), e3 = Ce.length, i3 = 0; i3 < e3; ++i3)
  801. Ce.shift()(t2);
  802. }
  803. var Fe = function() {
  804. function t2() {
  805. this._listeners = [], this._killed = [], this._disabled = {}, this._iterating = 0, this._enabled = true, this._disposed = false;
  806. }
  807. return t2.prototype.isDisposed = function() {
  808. return this._disposed;
  809. }, t2.prototype.dispose = function() {
  810. if (!this._disposed) {
  811. this._disposed = true;
  812. var t3 = this._listeners;
  813. this._iterating = 1, this._listeners = null, this._disabled = null;
  814. try {
  815. Ut(t3, function(t4) {
  816. t4.disposer.dispose();
  817. });
  818. } finally {
  819. this._killed = null, this._iterating = null;
  820. }
  821. }
  822. }, t2.prototype.hasListeners = function() {
  823. return this._listeners.length !== 0;
  824. }, t2.prototype.hasListenersByType = function(t3) {
  825. return Yt(this._listeners, function(e3) {
  826. return (e3.type === null || e3.type === t3) && !e3.killed;
  827. });
  828. }, t2.prototype.enable = function() {
  829. this._enabled = true;
  830. }, t2.prototype.disable = function() {
  831. this._enabled = false;
  832. }, t2.prototype.enableType = function(t3) {
  833. delete this._disabled[t3];
  834. }, t2.prototype.disableType = function(t3, e3) {
  835. e3 === void 0 && (e3 = 1 / 0), this._disabled[t3] = e3;
  836. }, t2.prototype._removeListener = function(t3) {
  837. if (this._iterating === 0) {
  838. var e3 = this._listeners.indexOf(t3);
  839. if (e3 === -1)
  840. throw new Error("Invalid state: could not remove listener");
  841. this._listeners.splice(e3, 1);
  842. } else
  843. this._killed.push(t3);
  844. }, t2.prototype._removeExistingListener = function(t3, e3, i3, n3) {
  845. if (this._disposed)
  846. throw new Error("EventDispatcher is disposed");
  847. this._eachListener(function(r3) {
  848. r3.once !== t3 || r3.type !== e3 || i3 != null && r3.callback !== i3 || r3.context !== n3 || r3.disposer.dispose();
  849. });
  850. }, t2.prototype.isEnabled = function(t3) {
  851. if (this._disposed)
  852. throw new Error("EventDispatcher is disposed");
  853. return this._enabled && this._listeners.length > 0 && this.hasListenersByType(t3) && this._disabled[t3] == null;
  854. }, t2.prototype.has = function(t3, e3, i3) {
  855. return de(this._listeners, function(n3) {
  856. return n3.once !== true && n3.type === t3 && (e3 == null || n3.callback === e3) && n3.context === i3;
  857. }) !== -1;
  858. }, t2.prototype._shouldDispatch = function(t3) {
  859. if (this._disposed)
  860. throw new Error("EventDispatcher is disposed");
  861. var e3 = this._disabled[t3];
  862. return tt(e3) ? (e3 <= 1 ? delete this._disabled[t3] : --this._disabled[t3], false) : this._enabled;
  863. }, t2.prototype._eachListener = function(t3) {
  864. var e3 = this;
  865. ++this._iterating;
  866. try {
  867. Ut(this._listeners, t3);
  868. } finally {
  869. --this._iterating, this._iterating === 0 && this._killed.length !== 0 && (Ut(this._killed, function(t4) {
  870. e3._removeListener(t4);
  871. }), this._killed.length = 0);
  872. }
  873. }, t2.prototype.dispatchImmediately = function(t3, e3) {
  874. this._shouldDispatch(t3) && this._eachListener(function(i3) {
  875. i3.killed || i3.type !== null && i3.type !== t3 || i3.dispatch(t3, e3);
  876. });
  877. }, t2.prototype.dispatch = function(t3, e3) {
  878. this._shouldDispatch(t3) && this._eachListener(function(i3) {
  879. i3.killed || i3.type !== null && i3.type !== t3 || Ae(function() {
  880. i3.killed || i3.dispatch(t3, e3);
  881. });
  882. });
  883. }, t2.prototype._on = function(t3, e3, i3, n3, r3, s2) {
  884. var a2 = this;
  885. if (this._disposed)
  886. throw new Error("EventDispatcher is disposed");
  887. this._removeExistingListener(t3, e3, i3, n3);
  888. var o3 = { type: e3, callback: i3, context: n3, shouldClone: r3, dispatch: s2, killed: false, once: t3, disposer: new ye(function() {
  889. o3.killed = true, a2._removeListener(o3);
  890. }) };
  891. return this._listeners.push(o3), o3;
  892. }, t2.prototype.onAll = function(t3, e3, i3) {
  893. return i3 === void 0 && (i3 = true), this._on(false, null, t3, e3, i3, function(i4, n3) {
  894. return t3.call(e3, i4, n3);
  895. }).disposer;
  896. }, t2.prototype.on = function(t3, e3, i3, n3) {
  897. return n3 === void 0 && (n3 = true), this._on(false, t3, e3, i3, n3, function(t4, n4) {
  898. return e3.call(i3, n4);
  899. }).disposer;
  900. }, t2.prototype.once = function(t3, e3, i3, n3) {
  901. n3 === void 0 && (n3 = true);
  902. var r3 = this._on(true, t3, e3, i3, n3, function(t4, n4) {
  903. r3.disposer.dispose(), e3.call(i3, n4);
  904. });
  905. return r3.disposer;
  906. }, t2.prototype.off = function(t3, e3, i3) {
  907. this._removeExistingListener(false, t3, e3, i3);
  908. }, t2.prototype.copyFrom = function(t3) {
  909. var e3 = this;
  910. if (this._disposed)
  911. throw new Error("EventDispatcher is disposed");
  912. if (t3 === this)
  913. throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
  914. Ut(t3._listeners, function(t4) {
  915. !t4.killed && t4.shouldClone && (t4.type === null ? e3.onAll(t4.callback, t4.context) : t4.once ? e3.once(t4.type, t4.callback, t4.context) : e3.on(t4.type, t4.callback, t4.context));
  916. });
  917. }, t2;
  918. }(), Me = function(t2) {
  919. function e3(e4) {
  920. var i3 = t2.call(this) || this;
  921. return i3.target = e4, i3;
  922. }
  923. return C(e3, t2), e3.prototype.copyFrom = function(t3) {
  924. var e4 = this;
  925. if (this._disposed)
  926. throw new Error("EventDispatcher is disposed");
  927. if (t3 === this)
  928. throw new Error("Cannot copyFrom the same TargetedEventDispatcher");
  929. Ut(t3._listeners, function(i3) {
  930. i3.context !== t3.target && !i3.killed && i3.shouldClone && (i3.type === null ? e4.onAll(i3.callback, i3.context) : i3.once ? e4.once(i3.type, i3.callback, i3.context) : e4.on(i3.type, i3.callback, i3.context));
  931. });
  932. }, e3;
  933. }(Fe);
  934. function Le(t2) {
  935. return function(e3) {
  936. for (var i3 in t2)
  937. if (Re(t2, i3) && !e3([i3, t2[i3]]))
  938. break;
  939. };
  940. }
  941. function je(t2) {
  942. var e3 = [];
  943. for (var i3 in t2)
  944. Re(t2, i3) && e3.push(i3);
  945. return e3;
  946. }
  947. function Ee(t2, e3) {
  948. return je(t2).sort(e3);
  949. }
  950. function Re(t2, e3) {
  951. return {}.hasOwnProperty.call(t2, e3);
  952. }
  953. function Be(t2, e3) {
  954. return t2[e3];
  955. }
  956. function He(t2, e3) {
  957. for (var i3 in t2)
  958. if (Re(t2, i3) && !e3(i3, t2[i3]))
  959. break;
  960. }
  961. function Ne(t2, e3) {
  962. He(t2, function(t3, i3) {
  963. return e3(t3, i3), true;
  964. });
  965. }
  966. function We(t2, e3, i3) {
  967. Ut(Ee(t2, i3), function(i4) {
  968. e3(i4, t2[i4]);
  969. });
  970. }
  971. function Xe(t2) {
  972. return Object.assign({}, t2);
  973. }
  974. function Ye(t2, e3) {
  975. return Object.assign({}, t2, e3);
  976. }
  977. function ze(t2) {
  978. return JSON.parse(JSON.stringify(t2));
  979. }
  980. function Ue(t2, e3, i3) {
  981. Ut(i3, function(i4) {
  982. Z(t2[i4]) && (e3[i4] = t2[i4]);
  983. });
  984. }
  985. function Ge(t2, e3, i3) {
  986. Ut(i3, function(i4) {
  987. Z(t2[i4]) && !Z(e3[i4]) && (e3[i4] = t2[i4]);
  988. });
  989. }
  990. function Ke(t2, e3, i3) {
  991. Ut(i3, function(i4) {
  992. e3[i4] = t2[i4];
  993. });
  994. }
  995. function Ze(t2, e3) {
  996. Ue(t2, e3, je(t2));
  997. }
  998. function qe(t2) {
  999. return function(e3) {
  1000. for (var i3 = t2.length, n3 = 0; n3 < i3 && e3(t2[n3]); ++n3)
  1001. ;
  1002. };
  1003. }
  1004. function $e(t2) {
  1005. var e3 = 0;
  1006. return t2(function(t3) {
  1007. return ++e3, true;
  1008. }), e3;
  1009. }
  1010. function Je(t2) {
  1011. var e3 = [];
  1012. return t2(function(t3) {
  1013. return e3.push(t3), true;
  1014. }), e3;
  1015. }
  1016. function Qe(t2, e3) {
  1017. t2(e3);
  1018. }
  1019. function ti(t2, e3) {
  1020. t2(function(t3) {
  1021. return e3(t3), true;
  1022. });
  1023. }
  1024. function ei(t2, e3) {
  1025. return qe(Je(t2).sort(e3));
  1026. }
  1027. function ii(t2, e3) {
  1028. return function(i3) {
  1029. return t2(function(t3) {
  1030. return i3(e3(t3));
  1031. });
  1032. };
  1033. }
  1034. function ni(t2, e3) {
  1035. return function(i3) {
  1036. return t2(function(t3) {
  1037. return !e3(t3) || i3(t3);
  1038. });
  1039. };
  1040. }
  1041. function ri() {
  1042. for (var t2 = [], e3 = 0; e3 < arguments.length; e3++)
  1043. t2[e3] = arguments[e3];
  1044. return function(e4) {
  1045. for (var i3 = true, n3 = function(t3) {
  1046. return i3 = e4(t3);
  1047. }, r3 = t2.length, s2 = 0; s2 < r3 && (t2[s2](n3), i3); ++s2)
  1048. ;
  1049. };
  1050. }
  1051. function si(t2) {
  1052. return function(e3) {
  1053. var i3 = true, n3 = function(t3) {
  1054. return i3 = e3(t3);
  1055. };
  1056. t2(function(t3) {
  1057. return t3(n3), i3;
  1058. });
  1059. };
  1060. }
  1061. function ai(t2) {
  1062. return function(e3) {
  1063. var i3 = 0;
  1064. t2(function(t3) {
  1065. return e3([i3++, t3]);
  1066. });
  1067. };
  1068. }
  1069. function oi(t2, e3) {
  1070. var i3 = false, n3 = 0;
  1071. return t2(function(t3) {
  1072. return e3(t3) ? (i3 = true, false) : (++n3, true);
  1073. }), i3 ? n3 : -1;
  1074. }
  1075. function li(t2, e3) {
  1076. var i3;
  1077. return t2(function(t3) {
  1078. return !e3(t3) || (i3 = t3, false);
  1079. }), i3;
  1080. }
  1081. function hi(t2, e3) {
  1082. var i3;
  1083. return t2(function(t3) {
  1084. var n3 = e3(t3);
  1085. return n3 === null || (i3 = n3, false);
  1086. }), i3;
  1087. }
  1088. function pi(t2, e3) {
  1089. var i3 = false;
  1090. return t2(function(t3) {
  1091. return !e3(t3) || (i3 = true, false);
  1092. }), i3;
  1093. }
  1094. function ui(t2, e3, i3) {
  1095. return t2(function(t3) {
  1096. return e3 = i3(e3, t3), true;
  1097. }), e3;
  1098. }
  1099. function di(t2, e3) {
  1100. return t2 == null || e3 < t2 ? e3 : t2;
  1101. }
  1102. function ci(t2) {
  1103. return ui(t2, null, di);
  1104. }
  1105. function fi(t2, e3) {
  1106. return t2 == null || e3 > t2 ? e3 : t2;
  1107. }
  1108. function gi(t2) {
  1109. return ui(t2, null, fi);
  1110. }
  1111. function yi(t2, e3) {
  1112. e3 === void 0 && (e3 = "");
  1113. var i3 = true, n3 = "";
  1114. return t2(function(t3) {
  1115. return i3 ? i3 = false : n3 += e3, n3 += t3, true;
  1116. }), n3;
  1117. }
  1118. var mi = function() {
  1119. function t2(t3, e3) {
  1120. this.createNewItems = false, this.list = t3, this._create = e3, this.reset();
  1121. }
  1122. return t2.prototype.reset = function() {
  1123. this._listCopy = Je(this.list.iterator());
  1124. }, t2.prototype.clear = function() {
  1125. this._listCopy.length = 0;
  1126. }, t2.prototype.getFirst = function() {
  1127. return this.returnItem(0);
  1128. }, t2.prototype.getLast = function() {
  1129. return this.returnItem(this._listCopy.length - 1);
  1130. }, t2.prototype.find = function(t3) {
  1131. var e3 = de(this._listCopy, t3);
  1132. if (e3 !== -1) {
  1133. var i3 = this._listCopy[e3];
  1134. return ee(this._listCopy, i3), i3;
  1135. }
  1136. return this.getLast();
  1137. }, t2.prototype.removeItem = function(t3) {
  1138. return ee(this._listCopy, t3);
  1139. }, t2.prototype.returnItem = function(t3) {
  1140. if (t3 >= 0 && t3 < this._listCopy.length) {
  1141. var e3 = this._listCopy[t3];
  1142. return ee(this._listCopy, e3), e3;
  1143. }
  1144. if (this.createNewItems)
  1145. return this._create();
  1146. }, t2.prototype.iterator = function() {
  1147. return qe(this._listCopy);
  1148. }, t2;
  1149. }();
  1150. function vi(t2, e3) {
  1151. return t2 === e3 ? 0 : t2 < e3 ? -1 : 1;
  1152. }
  1153. function bi(t2, e3) {
  1154. return new Array(e3 + 1).join(t2);
  1155. }
  1156. function xi(t2) {
  1157. for (var e3 = "", i3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n3 = 0; n3 < t2; n3++)
  1158. e3 += i3.charAt(Math.floor(Math.random() * i3.length));
  1159. return e3;
  1160. }
  1161. var _i = function(t2) {
  1162. function e3(e4) {
  1163. var i3 = e4.events.on("removed", function(t3) {
  1164. t3.oldValue.dispose();
  1165. }, void 0, false);
  1166. return t2.call(this, function() {
  1167. i3.dispose(), ti(e4.iterator(), function(t3) {
  1168. t3[1].dispose();
  1169. });
  1170. }) || this;
  1171. }
  1172. return C(e3, t2), e3;
  1173. }(ye), Pi = function() {
  1174. function t2() {
  1175. this.events = new Fe(), this._dictionary = {};
  1176. }
  1177. return t2.prototype.hasKey = function(t3) {
  1178. return Re(this._dictionary, t3);
  1179. }, t2.prototype.getKey = function(t3) {
  1180. return this._dictionary[t3];
  1181. }, t2.prototype.insertKey = function(t3, e3) {
  1182. if (Re(this._dictionary, t3))
  1183. throw new Error("Key " + t3 + " already exists in dictionary");
  1184. this._dictionary[t3] = e3, this.events.isEnabled("insertKey") && this.events.dispatchImmediately("insertKey", { type: "insertKey", target: this, key: t3, newValue: e3 });
  1185. }, t2.prototype.setKey = function(t3, e3) {
  1186. if (Re(this._dictionary, t3)) {
  1187. var i3 = this._dictionary[t3];
  1188. i3 !== e3 && (this._dictionary[t3] = e3, this.events.isEnabled("setKey") && this.events.dispatchImmediately("setKey", { type: "setKey", target: this, key: t3, oldValue: i3, newValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: i3 }));
  1189. } else
  1190. this._dictionary[t3] = e3, this.events.isEnabled("insertKey") && this.events.dispatchImmediately("insertKey", { type: "insertKey", target: this, key: t3, newValue: e3 });
  1191. }, t2.prototype.updateKey = function(t3, e3) {
  1192. if (!Re(this._dictionary, t3))
  1193. throw new Error("Key " + t3 + " doesn't exist in dictionary");
  1194. var i3 = this._dictionary[t3], n3 = e3(i3);
  1195. i3 !== n3 && (this._dictionary[t3] = n3, this.events.isEnabled("setKey") && this.events.dispatchImmediately("setKey", { type: "setKey", target: this, key: t3, oldValue: i3, newValue: n3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: i3 }));
  1196. }, t2.prototype.removeKey = function(t3) {
  1197. if (Re(this._dictionary, t3)) {
  1198. var e3 = this._dictionary[t3];
  1199. delete this._dictionary[t3], this.events.isEnabled("removeKey") && this.events.dispatchImmediately("removeKey", { type: "removeKey", target: this, key: t3, oldValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: e3 });
  1200. }
  1201. }, t2.prototype.insertKeyIfEmpty = function(t3, e3) {
  1202. return this.hasKey(t3) || this.insertKey(t3, e3()), this.getKey(t3);
  1203. }, t2.prototype.clear = function() {
  1204. var t3 = this;
  1205. this.events.isEnabled("removed") && Ne(this._dictionary, function(e3, i3) {
  1206. t3.events.dispatchImmediately("removed", { type: "removed", target: t3, oldValue: i3 });
  1207. }), this._dictionary = {}, this.events.isEnabled("cleared") && this.events.dispatchImmediately("cleared", { type: "cleared", target: this });
  1208. }, t2.prototype.copyFrom = function(t3) {
  1209. var e3 = this;
  1210. ti(t3.iterator(), function(t4) {
  1211. e3.setKey(t4[0], t4[1]);
  1212. });
  1213. }, t2.prototype.iterator = function() {
  1214. return Le(this._dictionary);
  1215. }, t2.prototype[Symbol.iterator] = function() {
  1216. var t3, e3, i3, n3;
  1217. return I(this, function(r3) {
  1218. switch (r3.label) {
  1219. case 0:
  1220. for (e3 in t3 = [], this._dictionary)
  1221. t3.push(e3);
  1222. i3 = 0, r3.label = 1;
  1223. case 1:
  1224. return i3 < t3.length ? (n3 = t3[i3], Re(this._dictionary, n3) ? [4, [n3, this._dictionary[n3]]] : [3, 3]) : [3, 4];
  1225. case 2:
  1226. r3.sent(), r3.label = 3;
  1227. case 3:
  1228. return i3++, [3, 1];
  1229. case 4:
  1230. return [2];
  1231. }
  1232. });
  1233. }, t2.prototype.each = function(t3) {
  1234. ti(this.iterator(), function(e3) {
  1235. var i3 = k(e3, 2), n3 = i3[0], r3 = i3[1];
  1236. return t3(n3, r3);
  1237. });
  1238. }, t2.prototype.sortedIterator = function() {
  1239. return ei(this.iterator(), function(t3, e3) {
  1240. return vi(t3[0], e3[0]);
  1241. });
  1242. }, t2;
  1243. }(), wi = function(t2) {
  1244. function e3(e4) {
  1245. var i3 = t2.call(this) || this;
  1246. return i3.template = e4, i3;
  1247. }
  1248. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1249. return this._template;
  1250. }, set: function(t3) {
  1251. t3.isTemplate = true, this._template = t3;
  1252. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1253. var e4 = this;
  1254. ti(t3.iterator(), function(t4) {
  1255. e4.setKey(t4[0], t4[1].clone());
  1256. });
  1257. }, e3.prototype.create = function(t3) {
  1258. var e4 = this;
  1259. return this.insertKeyIfEmpty(t3, function() {
  1260. return e4.template.clone();
  1261. });
  1262. }, e3;
  1263. }(Pi), Ci = function() {
  1264. function t2() {
  1265. this._storage = new Pi(), this.ttl = 1e3;
  1266. }
  1267. return t2.prototype.set = function(t3, e3, i3, n3) {
  1268. var r3 = this._storage.insertKeyIfEmpty(t3, function() {
  1269. return new Pi();
  1270. }), s2 = { touched: new Date().getTime(), ttl: tt(n3) ? n3 : this.ttl, value: i3 };
  1271. r3.setKey(e3, s2);
  1272. }, t2.prototype.get = function(t3, e3, i3) {
  1273. if (i3 === void 0 && (i3 = void 0), this._storage.hasKey(t3)) {
  1274. var n3 = this._storage.getKey(t3);
  1275. if (n3.hasKey(e3)) {
  1276. var r3 = n3.getKey(e3);
  1277. return r3.ttl && r3.touched + r3.ttl < new Date().getTime() && (r3.expired = true), r3.expired ? (n3.removeKey(e3), i3) : r3.value;
  1278. }
  1279. return i3;
  1280. }
  1281. return i3;
  1282. }, t2.prototype.clear = function(t3) {
  1283. t3 ? this._storage.removeKey(t3) : this._storage.clear();
  1284. }, t2;
  1285. }(), Oi = new Ci(), Si = function() {
  1286. function t2() {
  1287. var t3 = this;
  1288. this.events = new Fe(), this.themes = [], this.loadedThemes = {}, this._uidCount = 0, this.registeredClasses = {}, this._placeholders = {}, this.invalidSprites = {}, this.invalidDatas = {}, this.invalidRawDatas = [], this.invalidDataItems = [], this.invalidDataRange = [], this.invalidPositions = {}, this.invalidLayouts = {}, this.baseSprites = [], this.baseSpritesByUid = {}, this.queue = [], this.deferred = [], this.uid = this.getUniqueId(), this.invalidSprites.noBase = [], this.invalidDatas.noBase = [], this.invalidLayouts.noBase = [], this.invalidPositions.noBase = [], typeof addEventListener != "undefined" && (addEventListener("beforeprint", function() {
  1289. Ut(t3.baseSprites, function(t4) {
  1290. var e3 = t4.paper.svg;
  1291. e3.setAttribute("viewBox", "0 0 " + e3.clientWidth + " " + e3.clientHeight);
  1292. });
  1293. }), addEventListener("afterprint", function() {
  1294. Ut(t3.baseSprites, function(t4) {
  1295. t4.paper.svg.removeAttribute("viewBox");
  1296. });
  1297. }));
  1298. }
  1299. return t2.prototype.getUniqueId = function() {
  1300. var t3 = this._uidCount;
  1301. return this._uidCount += 1, "id-" + t3;
  1302. }, Object.defineProperty(t2.prototype, "map", { get: function() {
  1303. return this._map || (this._map = new Pi()), this._map;
  1304. }, enumerable: true, configurable: true }), t2.prototype.setCache = function(t3, e3, i3) {
  1305. Oi.set(this.uid, t3, e3, i3);
  1306. }, t2.prototype.getCache = function(t3, e3) {
  1307. return e3 === void 0 && (e3 = void 0), Oi.get(this.uid, t3, e3);
  1308. }, t2.prototype.dispatch = function(t3, e3) {
  1309. this.events.isEnabled(t3) && (e3 ? (e3.type = t3, e3.target = e3.target || this, this.events.dispatch(t3, { type: t3, target: this })) : this.events.dispatch(t3, { type: t3, target: this }));
  1310. }, t2.prototype.dispatchImmediately = function(t3, e3) {
  1311. this.events.isEnabled(t3) && (e3 ? (e3.type = t3, e3.target = e3.target || this, this.events.dispatchImmediately(t3, e3)) : this.events.dispatchImmediately(t3, { type: t3, target: this }));
  1312. }, t2.prototype.getPlaceholder = function(t3) {
  1313. return Z(this._placeholders[t3]) || (this._placeholders[t3] = "__amcharts_" + t3 + "_" + xi(8) + "__"), this._placeholders[t3];
  1314. }, t2.prototype.addToInvalidComponents = function(t3) {
  1315. t3.baseId ? ie(this.invalidDatas[t3.baseId], t3) : ie(this.invalidDatas.noBase, t3);
  1316. }, t2.prototype.removeFromInvalidComponents = function(t3) {
  1317. t3.baseId && ee(this.invalidDatas[t3.baseId], t3), ee(this.invalidDatas.noBase, t3);
  1318. }, t2.prototype.addToInvalidSprites = function(t3) {
  1319. t3.baseId ? ne(this.invalidSprites[t3.baseId], t3) : ne(this.invalidSprites.noBase, t3);
  1320. }, t2.prototype.removeFromInvalidSprites = function(t3) {
  1321. t3.baseId && ee(this.invalidSprites[t3.baseId], t3), ee(this.invalidSprites.noBase, t3);
  1322. }, t2.prototype.addToInvalidPositions = function(t3) {
  1323. t3.baseId ? ne(this.invalidPositions[t3.baseId], t3) : ne(this.invalidPositions.noBase, t3);
  1324. }, t2.prototype.removeFromInvalidPositions = function(t3) {
  1325. t3.baseId && ee(this.invalidPositions[t3.baseId], t3), ee(this.invalidPositions.noBase, t3);
  1326. }, t2.prototype.addToInvalidLayouts = function(t3) {
  1327. t3.baseId ? ne(this.invalidLayouts[t3.baseId], t3) : ne(this.invalidLayouts.noBase, t3);
  1328. }, t2.prototype.removeFromInvalidLayouts = function(t3) {
  1329. t3.baseId && ee(this.invalidLayouts[t3.baseId], t3), ee(this.invalidLayouts.noBase, t3);
  1330. }, t2;
  1331. }(), Ii = new Si();
  1332. function Di(t2, e3) {
  1333. var i3 = Ii.registeredClasses[e3];
  1334. return i3 != null && t2 instanceof i3;
  1335. }
  1336. var ki = function() {
  1337. function t2(t3, e3, i3) {
  1338. this._array = t3, this._start = e3, this._end = i3;
  1339. }
  1340. return t2.prototype.iterator = function() {
  1341. var t3 = this;
  1342. return function(e3) {
  1343. if (t3._start !== t3._end)
  1344. if (t3._start < t3._end)
  1345. for (var i3 = t3._start; i3 < t3._end && e3(t3._array[i3]); ++i3)
  1346. ;
  1347. else
  1348. for (i3 = t3._start - 1; i3 >= t3._end && e3(t3._array[i3]); --i3)
  1349. ;
  1350. };
  1351. }, t2.prototype.backwards = function() {
  1352. return new t2(this._array, this._end, this._start);
  1353. }, t2.prototype.range = function(e3, i3) {
  1354. if (e3 <= i3) {
  1355. if (this._start === this._end)
  1356. return this;
  1357. if (this._start < this._end) {
  1358. var n3 = i3 - e3;
  1359. return e3 = Math.max(this._start + e3, this._start), i3 = Math.min(e3 + n3, this._end), new t2(this._array, e3, i3);
  1360. }
  1361. return n3 = i3 - e3, e3 = Math.max(this._start - e3, this._end), i3 = Math.max(e3 - n3, this._end), new t2(this._array, e3, i3);
  1362. }
  1363. throw new Error("Start index must be lower than end index");
  1364. }, t2;
  1365. }(), Ti = function(t2) {
  1366. function e3(e4, i3, n3) {
  1367. var r3 = t2.call(this, [e4.events.on("inserted", function(t3) {
  1368. var i4 = t3.newValue, n4 = r3._getKey(i4), s2 = 0;
  1369. Qe(e4.iterator(), function(t4) {
  1370. return t4 !== i4 && (r3._getKey(t4) === n4 && ++s2, true);
  1371. }), r3._insert(i4, n4, s2);
  1372. }, void 0, false), e4.events.on("removed", function(t3) {
  1373. r3._remove(t3.oldValue);
  1374. }, void 0, false)]) || this;
  1375. return r3._keys = [], r3._groups = {}, r3._getKey = i3, r3._sort = n3, ti(e4.iterator(), function(t3) {
  1376. r3._insert(t3, i3(t3));
  1377. }), r3;
  1378. }
  1379. return C(e3, t2), e3.prototype._insert = function(t3, e4, i3) {
  1380. if (this._groups[e4] == null) {
  1381. this._groups[e4] = [];
  1382. var n3 = ue(this._keys, this._sort, e4), r3 = n3.found, s2 = n3.index;
  1383. if (r3)
  1384. throw new Error("Key already exists: " + e4);
  1385. he(this._keys, s2, e4);
  1386. }
  1387. i3 == null ? this._groups[e4].push(t3) : he(this._groups[e4], i3, t3);
  1388. }, e3.prototype._remove = function(t3) {
  1389. var e4 = this._getKey(t3), i3 = this._groups[e4];
  1390. if (i3 != null && (ee(i3, t3), i3.length === 0)) {
  1391. delete this._groups[e4];
  1392. var n3 = ue(this._keys, this._sort, e4), r3 = n3.found, s2 = n3.index;
  1393. if (!r3)
  1394. throw new Error("Key doesn't exist: " + e4);
  1395. pe(this._keys, s2);
  1396. }
  1397. }, e3.prototype.iterator = function() {
  1398. var t3 = this;
  1399. return si(ii(qe(this._keys), function(e4) {
  1400. return qe(t3._groups[e4]);
  1401. }));
  1402. }, e3;
  1403. }(me), Ai = function(t2) {
  1404. function e3(e4, i3) {
  1405. i3 === void 0 && (i3 = true);
  1406. var n3 = this;
  1407. if (i3) {
  1408. var r3 = e4.events.on("removed", function(t3) {
  1409. t3.oldValue.dispose();
  1410. }, void 0, false);
  1411. n3 = t2.call(this, function() {
  1412. r3.dispose(), ti(e4.iterator(), function(t3) {
  1413. t3.dispose();
  1414. });
  1415. }) || this;
  1416. } else
  1417. n3 = t2.call(this, function() {
  1418. ti(e4.iterator(), function(t3) {
  1419. t3.dispose();
  1420. });
  1421. }) || this;
  1422. return n3;
  1423. }
  1424. return C(e3, t2), e3;
  1425. }(ye);
  1426. function Vi(t2, e3) {
  1427. if (!(t2 >= 0 && t2 < e3))
  1428. throw new Error("Index out of bounds: " + t2);
  1429. }
  1430. var Fi = function() {
  1431. function t2(t3) {
  1432. t3 === void 0 && (t3 = []), this.events = new Fe(), this._values = t3;
  1433. }
  1434. return Object.defineProperty(t2.prototype, "values", { get: function() {
  1435. return this._values;
  1436. }, enumerable: true, configurable: true }), t2.prototype.contains = function(t3) {
  1437. return this._values.indexOf(t3) !== -1;
  1438. }, t2.prototype.removeValue = function(t3) {
  1439. for (var e3 = 0, i3 = this._values.length; e3 < i3; )
  1440. this._values[e3] === t3 ? (this.removeIndex(e3), --i3) : ++e3;
  1441. }, t2.prototype.indexOf = function(t3) {
  1442. return Xt(this._values, t3);
  1443. }, Object.defineProperty(t2.prototype, "length", { get: function() {
  1444. return this._values.length;
  1445. }, enumerable: true, configurable: true }), t2.prototype.hasIndex = function(t3) {
  1446. return t3 >= 0 && t3 < this._values.length;
  1447. }, t2.prototype.getIndex = function(t3) {
  1448. return this._values[t3];
  1449. }, t2.prototype.setIndex = function(t3, e3) {
  1450. Vi(t3, this._values.length);
  1451. var i3 = this._values[t3];
  1452. return i3 !== e3 && (this._values[t3] = e3, this.events.isEnabled("setIndex") && this.events.dispatchImmediately("setIndex", { type: "setIndex", target: this, index: t3, oldValue: i3, newValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: i3 }), this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: e3 })), i3;
  1453. }, t2.prototype.insertIndex = function(t3, e3) {
  1454. Vi(t3, this._values.length + 1), he(this._values, t3, e3), this.events.isEnabled("insertIndex") && this.events.dispatchImmediately("insertIndex", { type: "insertIndex", target: this, index: t3, newValue: e3 }), this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: e3 });
  1455. }, t2.prototype._sortQuicksort = function(t3, e3, i3) {
  1456. if (t3 < e3) {
  1457. var n3 = this._sortPartition(t3, e3, i3);
  1458. this._sortQuicksort(t3, n3, i3), this._sortQuicksort(n3 + 1, e3, i3);
  1459. }
  1460. }, t2.prototype._sortPartition = function(t3, e3, i3) {
  1461. for (var n3 = this._values, r3 = n3[t3], s2 = t3 - 1, a2 = e3 + 1; ; ) {
  1462. do {
  1463. ++s2;
  1464. } while (i3(n3[s2], r3) < 0);
  1465. do {
  1466. --a2;
  1467. } while (i3(n3[a2], r3) > 0);
  1468. if (s2 >= a2)
  1469. return a2;
  1470. this.swap(s2, a2);
  1471. }
  1472. }, t2.prototype.sort = function(t3) {
  1473. this._sortQuicksort(0, this._values.length - 1, t3);
  1474. }, t2.prototype.swap = function(t3, e3) {
  1475. var i3 = this._values.length;
  1476. if (Vi(t3, i3), Vi(e3, i3), t3 !== e3) {
  1477. var n3 = this._values[t3], r3 = this._values[e3];
  1478. this._values[t3] = r3, this.events.isEnabled("setIndex") && this.events.dispatchImmediately("setIndex", { type: "setIndex", target: this, index: t3, oldValue: n3, newValue: r3 }), this._values[e3] = n3, this.events.isEnabled("setIndex") && this.events.dispatchImmediately("setIndex", { type: "setIndex", target: this, index: e3, oldValue: r3, newValue: n3 });
  1479. }
  1480. }, t2.prototype.removeIndex = function(t3) {
  1481. Vi(t3, this._values.length);
  1482. var e3 = this._values[t3];
  1483. return pe(this._values, t3), this.events.isEnabled("removeIndex") && this.events.dispatchImmediately("removeIndex", { type: "removeIndex", target: this, index: t3, oldValue: e3 }), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, oldValue: e3 }), e3;
  1484. }, t2.prototype.moveValue = function(t3, e3) {
  1485. var i3 = this.indexOf(t3);
  1486. if (i3 !== -1) {
  1487. var n3 = this._values[i3];
  1488. pe(this._values, i3), this.events.isEnabled("removeIndex") && this.events.dispatchImmediately("removeIndex", { type: "removeIndex", target: this, index: i3, oldValue: n3 });
  1489. }
  1490. e3 == null ? (e3 = this._values.length, this._values.push(t3)) : he(this._values, e3, t3), this.events.isEnabled("insertIndex") && this.events.dispatchImmediately("insertIndex", { type: "insertIndex", target: this, index: e3, newValue: t3 }), i3 === -1 && this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: t3 });
  1491. }, t2.prototype.push = function(t3) {
  1492. var e3 = this._values.push(t3) - 1;
  1493. return this.events.isEnabled("insertIndex") && this.events.dispatchImmediately("insertIndex", { type: "insertIndex", target: this, index: e3, newValue: t3 }), this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, newValue: t3 }), t3;
  1494. }, t2.prototype.unshift = function(t3) {
  1495. this.insertIndex(0, t3);
  1496. }, t2.prototype.pushAll = function(t3) {
  1497. var e3 = this;
  1498. Ut(t3, function(t4) {
  1499. e3.push(t4);
  1500. });
  1501. }, t2.prototype.copyFrom = function(t3) {
  1502. this.pushAll(t3._values);
  1503. }, t2.prototype.pop = function() {
  1504. return this._values.length - 1 < 0 ? void 0 : this.removeIndex(this._values.length - 1);
  1505. }, t2.prototype.shift = function() {
  1506. return this._values.length ? this.removeIndex(0) : void 0;
  1507. }, t2.prototype.setAll = function(t3) {
  1508. var e3 = this, i3 = oe(this._values);
  1509. this._values.length = 0, Ut(t3, function(t4) {
  1510. e3._values.push(t4);
  1511. }), this.events.isEnabled("setAll") && this.events.dispatchImmediately("setAll", { type: "setAll", target: this, oldArray: i3, newArray: this._values }), this.events.isEnabled("removed") && Ut(i3, function(t4) {
  1512. e3.events.dispatchImmediately("removed", { type: "removed", target: e3, oldValue: t4 });
  1513. }), this.events.isEnabled("inserted") && Ut(this._values, function(t4) {
  1514. e3.events.dispatchImmediately("inserted", { type: "inserted", target: e3, newValue: t4 });
  1515. });
  1516. }, t2.prototype.clear = function() {
  1517. this.setAll([]);
  1518. }, t2.prototype.iterator = function() {
  1519. return qe(this._values);
  1520. }, t2.prototype[Symbol.iterator] = function() {
  1521. var t3, e3;
  1522. return I(this, function(i3) {
  1523. switch (i3.label) {
  1524. case 0:
  1525. t3 = this._values.length, e3 = 0, i3.label = 1;
  1526. case 1:
  1527. return e3 < t3 ? [4, this._values[e3]] : [3, 4];
  1528. case 2:
  1529. i3.sent(), i3.label = 3;
  1530. case 3:
  1531. return ++e3, [3, 1];
  1532. case 4:
  1533. return [2];
  1534. }
  1535. });
  1536. }, t2.prototype.each = function(t3) {
  1537. Ut(this._values, t3);
  1538. }, t2.prototype.range = function(t3, e3) {
  1539. if (t3 <= e3) {
  1540. var i3 = e3 - t3;
  1541. return t3 = Math.max(t3, 0), e3 = Math.min(t3 + i3, this._values.length), new ki(this._values, t3, e3);
  1542. }
  1543. throw new Error("Start index must be lower than end index");
  1544. }, t2.prototype.backwards = function() {
  1545. return new ki(this._values, this._values.length, 0);
  1546. }, t2;
  1547. }(), Mi = function(t2) {
  1548. function e3(e4) {
  1549. var i3 = t2.call(this) || this;
  1550. return i3.template = e4, i3;
  1551. }
  1552. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1553. return this._template;
  1554. }, set: function(t3) {
  1555. t3.isTemplate = true, this._template = t3;
  1556. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1557. var e4 = this;
  1558. ti(t3.iterator(), function(t4) {
  1559. e4.push(t4.clone());
  1560. });
  1561. }, e3.prototype.create = function(t3) {
  1562. var e4 = t3 != null ? new t3() : this.template.clone();
  1563. return this.push(e4), e4;
  1564. }, e3.prototype.clone = function() {
  1565. for (var t3 = new e3(this.template), i3 = this.values, n3 = i3.length, r3 = 0; r3 < n3; ++r3)
  1566. t3.push(i3[r3].clone());
  1567. return t3;
  1568. }, e3;
  1569. }(Fi), Li = function() {
  1570. function t2(t3) {
  1571. this._values = [], this.events = new Fe(), t3 != null && this.setAll(t3);
  1572. }
  1573. return Object.defineProperty(t2.prototype, "values", { get: function() {
  1574. return this._values;
  1575. }, enumerable: true, configurable: true }), t2.prototype._insert = function(t3) {
  1576. return this._values.push(t3), this._values.length - 1;
  1577. }, Object.defineProperty(t2.prototype, "length", { get: function() {
  1578. return this._values.length;
  1579. }, enumerable: true, configurable: true }), t2.prototype.indexOf = function(t3) {
  1580. return Xt(this._values, t3);
  1581. }, t2.prototype.contains = function(t3) {
  1582. return this.indexOf(t3) !== -1;
  1583. }, t2.prototype.getIndex = function(t3) {
  1584. return this._values[t3];
  1585. }, Object.defineProperty(t2.prototype, "first", { get: function() {
  1586. return this._values[0];
  1587. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "last", { get: function() {
  1588. return this._values[this._values.length - 1];
  1589. }, enumerable: true, configurable: true }), t2.prototype.insert = function(t3) {
  1590. var e3 = this._insert(t3);
  1591. this.events.isEnabled("inserted") && this.events.dispatchImmediately("inserted", { type: "inserted", target: this, index: e3, newValue: t3 });
  1592. }, t2.prototype.remove = function(t3) {
  1593. var e3 = this.indexOf(t3);
  1594. if (e3 !== -1) {
  1595. var i3 = this._values[e3];
  1596. pe(this._values, e3), this.events.isEnabled("removed") && this.events.dispatchImmediately("removed", { type: "removed", target: this, index: e3, oldValue: i3 });
  1597. }
  1598. }, t2.prototype.setAll = function(t3) {
  1599. var e3 = this;
  1600. Gt(this._values, function(t4, i3) {
  1601. e3._values.pop(), e3.events.isEnabled("removed") && e3.events.dispatchImmediately("removed", { type: "removed", target: e3, index: i3, oldValue: t4 });
  1602. }), Ut(t3, function(t4) {
  1603. e3.insert(t4);
  1604. });
  1605. }, t2.prototype.clear = function() {
  1606. this.setAll([]);
  1607. }, t2.prototype.slice = function(e3, i3) {
  1608. var n3 = new t2();
  1609. return n3._values = this._values.slice(e3, i3), n3;
  1610. }, t2.prototype.findClosestIndex = function(t3, e3, i3) {
  1611. i3 === void 0 && (i3 = "any");
  1612. var n3, r3, s2 = -1, a2 = 0;
  1613. return Qe(this.iterator(), function(o3) {
  1614. var l2 = e3(o3);
  1615. if (i3 === "any") {
  1616. if (l2 === t3)
  1617. return s2 = a2, false;
  1618. var h2 = Math.abs(t3 - l2);
  1619. (!Z(r3) || r3 > h2) && (s2 = a2, n3 = l2, r3 = h2);
  1620. } else
  1621. i3 === "left" && l2 < t3 ? (!Z(n3) || n3 < l2) && (s2 = a2, n3 = l2) : i3 === "right" && l2 >= t3 && (!Z(n3) || n3 >= l2) && (s2 = a2, n3 = l2);
  1622. return ++a2, true;
  1623. }), s2 === -1 && (i3 === "left" ? s2 = 0 : i3 === "right" && (s2 = this.length - 1)), s2;
  1624. }, t2.prototype.iterator = function() {
  1625. return qe(this._values);
  1626. }, t2.prototype[Symbol.iterator] = function() {
  1627. var t3, e3;
  1628. return I(this, function(i3) {
  1629. switch (i3.label) {
  1630. case 0:
  1631. t3 = this._values.length, e3 = 0, i3.label = 1;
  1632. case 1:
  1633. return e3 < t3 ? [4, this._values[e3]] : [3, 4];
  1634. case 2:
  1635. i3.sent(), i3.label = 3;
  1636. case 3:
  1637. return ++e3, [3, 1];
  1638. case 4:
  1639. return [2];
  1640. }
  1641. });
  1642. }, t2.prototype.each = function(t3) {
  1643. Ut(this._values, t3);
  1644. }, t2;
  1645. }(), ji = function(t2) {
  1646. function e3(e4) {
  1647. var i3 = t2.call(this) || this;
  1648. return i3._ordering = e4, i3;
  1649. }
  1650. return C(e3, t2), e3.prototype._insert = function(t3) {
  1651. var e4 = ue(this._values, this._ordering, t3).index;
  1652. return he(this._values, e4, t3), e4;
  1653. }, e3.prototype.indexOf = function(t3) {
  1654. var e4 = ue(this._values, this._ordering, t3), i3 = e4.found, n3 = e4.index;
  1655. return i3 ? n3 : -1;
  1656. }, e3.prototype.update = function(t3) {
  1657. var e4 = Xt(this._values, t3);
  1658. if (e4 !== -1) {
  1659. var i3 = this._values.length - 1;
  1660. (e4 === 0 || this._ordering(this._values[e4 - 1], t3) < 0) && (e4 === i3 || this._ordering(t3, this._values[e4 + 1]) < 0) || (pe(this._values, e4), this._insert(t3));
  1661. }
  1662. }, e3;
  1663. }(Li), Ei = function(t2) {
  1664. function e3(e4) {
  1665. var i3 = t2.call(this) || this;
  1666. return i3.template = e4, i3;
  1667. }
  1668. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1669. return this._template;
  1670. }, set: function(t3) {
  1671. t3.isTemplate = true, this._template = t3;
  1672. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1673. var e4 = this;
  1674. ti(t3.iterator(), function(t4) {
  1675. e4.insert(t4.clone());
  1676. });
  1677. }, e3.prototype.slice = function(t3, i3) {
  1678. var n3 = new e3(this.template);
  1679. return n3._values = this._values.slice(t3, i3), n3;
  1680. }, e3.prototype.create = function(t3) {
  1681. var e4 = t3 != null ? new t3() : this.template.clone();
  1682. return this.insert(e4), e4;
  1683. }, e3;
  1684. }(Li), Ri = function(t2) {
  1685. function e3(e4, i3) {
  1686. var n3 = t2.call(this, i3) || this;
  1687. return n3.template = e4, n3;
  1688. }
  1689. return C(e3, t2), Object.defineProperty(e3.prototype, "template", { get: function() {
  1690. return this._template;
  1691. }, set: function(t3) {
  1692. t3.isTemplate = true, this._template = t3;
  1693. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(t3) {
  1694. var e4 = this;
  1695. ti(t3.iterator(), function(t4) {
  1696. e4.insert(t4.clone());
  1697. });
  1698. }, e3.prototype.create = function(t3) {
  1699. var e4 = t3 != null ? new t3() : this.template.clone();
  1700. return this.insert(e4), e4;
  1701. }, e3;
  1702. }(ji);
  1703. function Bi(t2, e3) {
  1704. return t2 === e3 ? 0 : t2 < e3 ? -1 : 1;
  1705. }
  1706. function Hi(t2) {
  1707. switch (t2) {
  1708. case 0:
  1709. return 0;
  1710. case -1:
  1711. return 1;
  1712. case 1:
  1713. return -1;
  1714. }
  1715. }
  1716. function Ni(t2, e3) {
  1717. return t2 === 0 ? e3 : t2;
  1718. }
  1719. var Wi = function() {
  1720. function t2() {
  1721. this._callbackId = 0, this._callbacks = new ji(function(t3, e3) {
  1722. return Ni(Bi(t3.priority, e3.priority), Bi(t3.id, e3.id));
  1723. });
  1724. }
  1725. return t2.prototype.addAll = function(t3, e3, i3, n3, r3) {
  1726. n3 === void 0 && (n3 = 0), this._callbacks.insert({ id: ++this._callbackId, key: e3, callback: i3, priority: n3, scope: r3, type: t3 });
  1727. }, t2.prototype.isEnabled = function(t3, e3) {
  1728. return Yt(this._callbacks.values, function(i3) {
  1729. return i3.key === e3 && t3 instanceof i3.type;
  1730. });
  1731. }, t2.prototype.applyAll = function(t3, e3, i3) {
  1732. var n3 = this._callbacks.values, r3 = n3.length;
  1733. if (r3 == 0)
  1734. return i3;
  1735. for (var s2 = 0; s2 < r3; ++s2) {
  1736. var a2 = n3[s2];
  1737. a2.key === e3 && t3 instanceof a2.type && (i3 = a2.callback.call(a2.scope, i3, t3, e3));
  1738. }
  1739. return i3;
  1740. }, t2;
  1741. }(), Xi = new Wi(), Yi = function() {
  1742. function t2(t3) {
  1743. this._callbackId = 0, this._callbacks = new ji(function(t4, e3) {
  1744. return Ni(Bi(t4.priority, e3.priority), Bi(t4.id, e3.id));
  1745. }), this._disabled = {}, this.object = t3, this.events = this._callbacks.events;
  1746. }
  1747. return t2.prototype.add = function(t3, e3, i3, n3) {
  1748. i3 === void 0 && (i3 = 0), this._callbacks.insert({ id: ++this._callbackId, key: t3, callback: e3, priority: i3, scope: n3 });
  1749. }, t2.prototype.has = function(t3, e3, i3, n3) {
  1750. return i3 === void 0 && (i3 = 0), pi(this._callbacks.iterator(), function(r3) {
  1751. return r3.key === t3 && r3.callback === e3 && r3.priority === i3 && r3.scope === n3;
  1752. });
  1753. }, t2.prototype.remove = function(t3, e3) {
  1754. var i3 = this;
  1755. Ut(Je(this._callbacks.iterator()), function(n3) {
  1756. n3.key !== t3 || tt(e3) && e3 !== n3.priority || i3._callbacks.remove(n3);
  1757. });
  1758. }, t2.prototype.enableKey = function(t3) {
  1759. delete this._disabled[t3];
  1760. }, t2.prototype.disableKey = function(t3, e3) {
  1761. e3 === void 0 && (e3 = 1 / 0), this._disabled[t3] = e3;
  1762. }, t2.prototype._hasListenersByType = function(t3) {
  1763. return Yt(this._callbacks.values, function(e3) {
  1764. return e3.key === t3;
  1765. });
  1766. }, t2.prototype.isEnabled = function(t3) {
  1767. return this._disabled[t3] == null && (this._hasListenersByType(t3) || Xi.isEnabled(this.object, t3));
  1768. }, t2.prototype._shouldDispatch = function(t3) {
  1769. var e3 = this._disabled[t3];
  1770. return !tt(e3) || (e3 <= 1 ? delete this._disabled[t3] : --this._disabled[t3], false);
  1771. }, t2.prototype.apply = function(t3, e3) {
  1772. if (this._shouldDispatch(t3)) {
  1773. var i3 = this._callbacks.values, n3 = i3.length;
  1774. if (n3 > 0)
  1775. for (var r3 = 0; r3 < n3; ++r3) {
  1776. var s2 = i3[r3];
  1777. s2.key === t3 && (e3 = s2.callback.call(s2.scope, e3, this.object, t3));
  1778. }
  1779. return Xi.applyAll(this.object, t3, e3);
  1780. }
  1781. return e3;
  1782. }, t2.prototype.keys = function() {
  1783. return Je(ii(this._callbacks.iterator(), function(t3) {
  1784. return t3.key;
  1785. }));
  1786. }, t2.prototype.copyFrom = function(t3) {
  1787. var e3 = this;
  1788. ti(t3._callbacks.iterator(), function(t4) {
  1789. e3.add(t4.key, t4.callback, t4.priority, t4.scope);
  1790. }), Ne(t3._disabled, function(t4, i3) {
  1791. e3._disabled[t4] = i3;
  1792. });
  1793. }, t2.prototype.clear = function() {
  1794. this._callbacks.clear();
  1795. }, t2;
  1796. }(), zi = { aliceblue: { r: 240, g: 248, b: 255 }, antiquewhite: { r: 250, g: 235, b: 215 }, aqua: { r: 0, g: 255, b: 255 }, aquamarine: { r: 127, g: 255, b: 212 }, azure: { r: 240, g: 255, b: 255 }, beige: { r: 245, g: 245, b: 220 }, bisque: { r: 255, g: 228, b: 196 }, black: { r: 0, g: 0, b: 0 }, blanchedalmond: { r: 255, g: 235, b: 205 }, blue: { r: 0, g: 0, b: 255 }, blueviolet: { r: 138, g: 43, b: 226 }, brown: { r: 165, g: 42, b: 42 }, burlywood: { r: 222, g: 184, b: 135 }, cadetblue: { r: 95, g: 158, b: 160 }, chartreuse: { r: 127, g: 255, b: 0 }, chocolate: { r: 210, g: 105, b: 30 }, coral: { r: 255, g: 127, b: 80 }, cornflowerblue: { r: 100, g: 149, b: 237 }, cornsilk: { r: 255, g: 248, b: 220 }, crimson: { r: 220, g: 20, b: 60 }, cyan: { r: 0, g: 255, b: 255 }, darkblue: { r: 0, g: 0, b: 139 }, darkcyan: { r: 0, g: 139, b: 139 }, darkgoldenrod: { r: 184, g: 134, b: 11 }, darkgray: { r: 169, g: 169, b: 169 }, darkgrey: { r: 169, g: 169, b: 169 }, darkgreen: { r: 0, g: 100, b: 0 }, darkkhaki: { r: 189, g: 183, b: 107 }, darkmagenta: { r: 139, g: 0, b: 139 }, darkolivegreen: { r: 85, g: 107, b: 47 }, darkorange: { r: 255, g: 140, b: 0 }, darkorchid: { r: 153, g: 50, b: 204 }, darkred: { r: 139, g: 0, b: 0 }, darksalmon: { r: 233, g: 150, b: 122 }, darkseagreen: { r: 143, g: 188, b: 143 }, darkslateblue: { r: 72, g: 61, b: 139 }, darkslategray: { r: 47, g: 79, b: 79 }, darkslategrey: { r: 47, g: 79, b: 79 }, darkturquoise: { r: 0, g: 206, b: 209 }, darkviolet: { r: 148, g: 0, b: 211 }, deeppink: { r: 255, g: 20, b: 147 }, deepskyblue: { r: 0, g: 191, b: 255 }, dimgray: { r: 105, g: 105, b: 105 }, dimgrey: { r: 105, g: 105, b: 105 }, dodgerblue: { r: 30, g: 144, b: 255 }, firebrick: { r: 178, g: 34, b: 34 }, floralwhite: { r: 255, g: 250, b: 240 }, forestgreen: { r: 34, g: 139, b: 34 }, fuchsia: { r: 255, g: 0, b: 255 }, gainsboro: { r: 220, g: 220, b: 220 }, ghostwhite: { r: 248, g: 248, b: 255 }, gold: { r: 255, g: 215, b: 0 }, goldenrod: { r: 218, g: 165, b: 32 }, gray: { r: 128, g: 128, b: 128 }, grey: { r: 128, g: 128, b: 128 }, green: { r: 0, g: 128, b: 0 }, greenyellow: { r: 173, g: 255, b: 47 }, honeydew: { r: 240, g: 255, b: 240 }, hotpink: { r: 255, g: 105, b: 180 }, indianred: { r: 205, g: 92, b: 92 }, indigo: { r: 75, g: 0, b: 130 }, ivory: { r: 255, g: 255, b: 240 }, khaki: { r: 240, g: 230, b: 140 }, lavender: { r: 230, g: 230, b: 250 }, lavenderblush: { r: 255, g: 240, b: 245 }, lawngreen: { r: 124, g: 252, b: 0 }, lemonchiffon: { r: 255, g: 250, b: 205 }, lightblue: { r: 173, g: 216, b: 230 }, lightcoral: { r: 240, g: 128, b: 128 }, lightcyan: { r: 224, g: 255, b: 255 }, lightgoldenrodyellow: { r: 250, g: 250, b: 210 }, lightgray: { r: 211, g: 211, b: 211 }, lightgrey: { r: 211, g: 211, b: 211 }, lightgreen: { r: 144, g: 238, b: 144 }, lightpink: { r: 255, g: 182, b: 193 }, lightsalmon: { r: 255, g: 160, b: 122 }, lightseagreen: { r: 32, g: 178, b: 170 }, lightskyblue: { r: 135, g: 206, b: 250 }, lightslategray: { r: 119, g: 136, b: 153 }, lightslategrey: { r: 119, g: 136, b: 153 }, lightsteelblue: { r: 176, g: 196, b: 222 }, lightyellow: { r: 255, g: 255, b: 224 }, lime: { r: 0, g: 255, b: 0 }, limegreen: { r: 50, g: 205, b: 50 }, linen: { r: 250, g: 240, b: 230 }, magenta: { r: 255, g: 0, b: 255 }, maroon: { r: 128, g: 0, b: 0 }, mediumaquamarine: { r: 102, g: 205, b: 170 }, mediumblue: { r: 0, g: 0, b: 205 }, mediumorchid: { r: 186, g: 85, b: 211 }, mediumpurple: { r: 147, g: 112, b: 219 }, mediumseagreen: { r: 60, g: 179, b: 113 }, mediumslateblue: { r: 123, g: 104, b: 238 }, mediumspringgreen: { r: 0, g: 250, b: 154 }, mediumturquoise: { r: 72, g: 209, b: 204 }, mediumvioletred: { r: 199, g: 21, b: 133 }, midnightblue: { r: 25, g: 25, b: 112 }, mintcream: { r: 245, g: 255, b: 250 }, mistyrose: { r: 255, g: 228, b: 225 }, moccasin: { r: 255, g: 228, b: 181 }, navajowhite: { r: 255, g: 222, b: 173 }, navy: { r: 0, g: 0, b: 128 }, oldlace: { r: 253, g: 245, b: 230 }, olive: { r: 128, g: 128, b: 0 }, olivedrab: { r: 107, g: 142, b: 35 }, orange: { r: 255, g: 165, b: 0 }, orangered: { r: 255, g: 69, b: 0 }, orchid: { r: 218, g: 112, b: 214 }, palegoldenrod: { r: 238, g: 232, b: 170 }, palegreen: { r: 152, g: 251, b: 152 }, paleturquoise: { r: 175, g: 238, b: 238 }, palevioletred: { r: 219, g: 112, b: 147 }, papayawhip: { r: 255, g: 239, b: 213 }, peachpuff: { r: 255, g: 218, b: 185 }, peru: { r: 205, g: 133, b: 63 }, pink: { r: 255, g: 192, b: 203 }, plum: { r: 221, g: 160, b: 221 }, powderblue: { r: 176, g: 224, b: 230 }, purple: { r: 128, g: 0, b: 128 }, rebeccapurple: { r: 102, g: 51, b: 153 }, red: { r: 255, g: 0, b: 0 }, rosybrown: { r: 188, g: 143, b: 143 }, royalblue: { r: 65, g: 105, b: 225 }, saddlebrown: { r: 139, g: 69, b: 19 }, salmon: { r: 250, g: 128, b: 114 }, sandybrown: { r: 244, g: 164, b: 96 }, seagreen: { r: 46, g: 139, b: 87 }, seashell: { r: 255, g: 245, b: 238 }, sienna: { r: 160, g: 82, b: 45 }, silver: { r: 192, g: 192, b: 192 }, skyblue: { r: 135, g: 206, b: 235 }, slateblue: { r: 106, g: 90, b: 205 }, slategray: { r: 112, g: 128, b: 144 }, slategrey: { r: 112, g: 128, b: 144 }, snow: { r: 255, g: 250, b: 250 }, springgreen: { r: 0, g: 255, b: 127 }, steelblue: { r: 70, g: 130, b: 180 }, tan: { r: 210, g: 180, b: 140 }, teal: { r: 0, g: 128, b: 128 }, thistle: { r: 216, g: 191, b: 216 }, tomato: { r: 255, g: 99, b: 71 }, turquoise: { r: 64, g: 224, b: 208 }, violet: { r: 238, g: 130, b: 238 }, wheat: { r: 245, g: 222, b: 179 }, white: { r: 255, g: 255, b: 255 }, whitesmoke: { r: 245, g: 245, b: 245 }, yellow: { r: 255, g: 255, b: 0 }, yellowgreen: { r: 154, g: 205, b: 50 } };
  1797. function Ui(t2, e3) {
  1798. var i3;
  1799. return zi[t2] ? i3 = zi[t2] : t2.charAt(0) === "#" ? i3 = Gi(t2) : t2.match(/^rgba?\(/) && (i3 = Zi(t2)), i3 || (i3 = { r: 0, g: 0, b: 0, a: 1 }), Z(e3) && (i3.a = e3), i3;
  1800. }
  1801. function Gi(t2) {
  1802. t2 = t2.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function(t3, e4, i3, n3) {
  1803. return e4 + e4 + i3 + i3 + n3 + n3;
  1804. });
  1805. var e3 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t2);
  1806. return e3 ? { r: parseInt(e3[1], 16), g: parseInt(e3[2], 16), b: parseInt(e3[3], 16) } : Ki(t2);
  1807. }
  1808. function Ki(t2) {
  1809. t2 = t2.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i, function(t3, e4, i3, n3, r3) {
  1810. return e4 + e4 + i3 + i3 + n3 + n3 + r3 + r3;
  1811. });
  1812. var e3 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t2);
  1813. return e3 ? { r: parseInt(e3[1], 16), g: parseInt(e3[2], 16), b: parseInt(e3[3], 16), a: parseInt(e3[4], 16) / 256 } : void 0;
  1814. }
  1815. function Zi(t2) {
  1816. var e3 = (t2 = t2.replace(/[ ]/g, "")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);
  1817. if (e3)
  1818. e3.push("1");
  1819. else if (!(e3 = t2.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))
  1820. return;
  1821. return { r: parseInt(e3[1]), g: parseInt(e3[2]), b: parseInt(e3[3]), a: parseFloat(e3[4]) };
  1822. }
  1823. function qi(t2) {
  1824. return "#" + Ji(t2.r.toString(16)) + Ji(t2.g.toString(16)) + Ji(t2.b.toString(16));
  1825. }
  1826. function $i(t2) {
  1827. return Z(t2.a) && t2.a !== 1 ? "rgba(" + t2.r + "," + t2.g + "," + t2.b + "," + t2.a + ")" : "rgb(" + t2.r + "," + t2.g + "," + t2.b + ")";
  1828. }
  1829. function Ji(t2) {
  1830. return t2.length == 1 ? "0" + t2 : "" + t2;
  1831. }
  1832. function Qi(t2, e3, i3) {
  1833. return i3 = ut(i3, 0, 1), t2 ? e3 ? { r: t2.r + Math.round((e3.r - t2.r) * i3), g: t2.g + Math.round((e3.g - t2.g) * i3), b: t2.b + Math.round((e3.b - t2.b) * i3), a: (t2.a || 1) + Math.round(((e3.a || 1) - (t2.a || 1)) * i3) } : t2 : e3 || t2;
  1834. }
  1835. function tn(t2, e3) {
  1836. return t2 ? { r: Math.max(0, Math.min(255, t2.r + en(t2.r, e3))), g: Math.max(0, Math.min(255, t2.g + en(t2.g, e3))), b: Math.max(0, Math.min(255, t2.b + en(t2.b, e3))), a: t2.a } : t2;
  1837. }
  1838. function en(t2, e3) {
  1839. var i3 = e3 > 0 ? 255 - t2 : t2;
  1840. return Math.round(i3 * e3);
  1841. }
  1842. function nn(t2, e3) {
  1843. if (t2) {
  1844. var i3 = en(Math.min(Math.max(t2.r, t2.g, t2.b), 230), e3);
  1845. return { r: Math.max(0, Math.min(255, Math.round(t2.r + i3))), g: Math.max(0, Math.min(255, Math.round(t2.g + i3))), b: Math.max(0, Math.min(255, Math.round(t2.b + i3))), a: t2.a };
  1846. }
  1847. return t2;
  1848. }
  1849. function rn(t2, e3) {
  1850. return Math.round(255 * e3);
  1851. }
  1852. function sn(t2, e3) {
  1853. if (t2 == null || e3 == 1)
  1854. return t2;
  1855. var i3 = on(t2);
  1856. return i3.s = e3, an(i3);
  1857. }
  1858. function an(t2) {
  1859. var e3, i3, n3, r3 = t2.h, s2 = t2.s, a2 = t2.l;
  1860. if (s2 == 0)
  1861. e3 = i3 = n3 = a2;
  1862. else {
  1863. var o3 = function(t3, e4, i4) {
  1864. return i4 < 0 && (i4 += 1), i4 > 1 && (i4 -= 1), i4 < 1 / 6 ? t3 + 6 * (e4 - t3) * i4 : i4 < 0.5 ? e4 : i4 < 2 / 3 ? t3 + (e4 - t3) * (2 / 3 - i4) * 6 : t3;
  1865. }, l2 = a2 < 0.5 ? a2 * (1 + s2) : a2 + s2 - a2 * s2, h2 = 2 * a2 - l2;
  1866. e3 = o3(h2, l2, r3 + 1 / 3), i3 = o3(h2, l2, r3), n3 = o3(h2, l2, r3 - 1 / 3);
  1867. }
  1868. return { r: Math.round(255 * e3), g: Math.round(255 * i3), b: Math.round(255 * n3) };
  1869. }
  1870. function on(t2) {
  1871. var e3 = t2.r / 255, i3 = t2.g / 255, n3 = t2.b / 255, r3 = Math.max(e3, i3, n3), s2 = Math.min(e3, i3, n3), a2 = 0, o3 = 0, l2 = (r3 + s2) / 2;
  1872. if (r3 === s2)
  1873. a2 = o3 = 0;
  1874. else {
  1875. var h2 = r3 - s2;
  1876. switch (o3 = l2 > 0.5 ? h2 / (2 - r3 - s2) : h2 / (r3 + s2), r3) {
  1877. case e3:
  1878. a2 = (i3 - n3) / h2 + (i3 < n3 ? 6 : 0);
  1879. break;
  1880. case i3:
  1881. a2 = (n3 - e3) / h2 + 2;
  1882. break;
  1883. case n3:
  1884. a2 = (e3 - i3) / h2 + 4;
  1885. }
  1886. a2 /= 6;
  1887. }
  1888. return { h: a2, s: o3, l: l2 };
  1889. }
  1890. function ln(t2) {
  1891. var e3, i3 = t2.r / 255, n3 = t2.g / 255, r3 = t2.b / 255, s2 = Math.max(i3, n3, r3), a2 = Math.min(i3, n3, r3), o3 = 0, l2 = s2, h2 = s2 - a2;
  1892. if (e3 = s2 == 0 ? 0 : h2 / s2, s2 == a2)
  1893. o3 = 0;
  1894. else {
  1895. switch (s2) {
  1896. case i3:
  1897. o3 = (n3 - r3) / h2 + (n3 < r3 ? 6 : 0);
  1898. break;
  1899. case n3:
  1900. o3 = (r3 - i3) / h2 + 2;
  1901. break;
  1902. case r3:
  1903. o3 = (i3 - n3) / h2 + 4;
  1904. }
  1905. o3 /= 6;
  1906. }
  1907. return { h: o3, s: e3, v: l2 };
  1908. }
  1909. function hn(t2) {
  1910. var e3 = 0, i3 = 0, n3 = 0, r3 = t2.h, s2 = t2.s, a2 = t2.v, o3 = Math.floor(6 * r3), l2 = 6 * r3 - o3, h2 = a2 * (1 - s2), p2 = a2 * (1 - l2 * s2), u2 = a2 * (1 - (1 - l2) * s2);
  1911. switch (o3 % 6) {
  1912. case 0:
  1913. e3 = a2, i3 = u2, n3 = h2;
  1914. break;
  1915. case 1:
  1916. e3 = p2, i3 = a2, n3 = h2;
  1917. break;
  1918. case 2:
  1919. e3 = h2, i3 = a2, n3 = u2;
  1920. break;
  1921. case 3:
  1922. e3 = h2, i3 = p2, n3 = a2;
  1923. break;
  1924. case 4:
  1925. e3 = u2, i3 = h2, n3 = a2;
  1926. break;
  1927. case 5:
  1928. e3 = a2, i3 = h2, n3 = p2;
  1929. }
  1930. return { r: Math.round(255 * e3), g: Math.round(255 * i3), b: Math.round(255 * n3) };
  1931. }
  1932. function pn(t2) {
  1933. return (299 * t2.r + 587 * t2.g + 114 * t2.b) / 1e3 >= 128;
  1934. }
  1935. var un = function() {
  1936. function t2(t3) {
  1937. this._value = t3;
  1938. }
  1939. return Object.defineProperty(t2.prototype, "rgb", { get: function() {
  1940. return this._value;
  1941. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "hex", { get: function() {
  1942. return this._value ? qi(this._value) : "none";
  1943. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rgba", { get: function() {
  1944. return this._value ? $i(this._value) : "none";
  1945. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "alpha", { get: function() {
  1946. return this._value != null && this._value.a != null ? this._value.a : 1;
  1947. }, set: function(t3) {
  1948. this._value && (this._value.a = t3);
  1949. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "lightColor", { get: function() {
  1950. return this._lightColor || (this._lightColor = new t2({ r: 255, g: 255, b: 255 })), this._lightColor;
  1951. }, set: function(t3) {
  1952. this._lightColor = t3;
  1953. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "darkColor", { get: function() {
  1954. return this._darkColor || (this._darkColor = new t2({ r: 0, g: 0, b: 0 })), this._darkColor;
  1955. }, set: function(t3) {
  1956. this._darkColor = t3;
  1957. }, enumerable: true, configurable: true }), t2.prototype.toString = function() {
  1958. return this.alpha < 1 ? this.rgba : this.hex;
  1959. }, t2.prototype.lighten = function(e3) {
  1960. return new t2(tn(this.rgb, e3));
  1961. }, t2.prototype.brighten = function(e3) {
  1962. return new t2(nn(this.rgb, e3));
  1963. }, t2.prototype.saturate = function(e3) {
  1964. return new t2(sn(this.rgb, e3));
  1965. }, Object.defineProperty(t2.prototype, "alternative", { get: function() {
  1966. if (this.rgb != null)
  1967. return pn(this.rgb) ? this.darkColor : this.lightColor;
  1968. throw new Error("Color does not exist");
  1969. }, enumerable: true, configurable: true }), t2;
  1970. }();
  1971. function dn(t2, e3) {
  1972. if (!Z(t2))
  1973. return new un(void 0);
  1974. if (typeof t2 == "string") {
  1975. var i3 = "_color_" + t2 + "_" + (e3 || "1"), n3 = Ii.getCache(i3);
  1976. if (n3)
  1977. return new un({ r: n3.r, g: n3.g, b: n3.b, a: n3.a });
  1978. var r3 = Ui(t2, e3);
  1979. return Ii.setCache(i3, r3), new un(r3);
  1980. }
  1981. return t2 instanceof un ? (Z(e3) && (t2.alpha = e3), t2) : new un(t2);
  1982. }
  1983. function cn(t2) {
  1984. return t2 instanceof un;
  1985. }
  1986. function fn(t2) {
  1987. return dn(t2);
  1988. }
  1989. function gn(t2) {
  1990. return Z(t2) && !cn(t2) ? fn(t2) : t2;
  1991. }
  1992. var yn = function() {
  1993. function t2() {
  1994. this._disposed = false, this._disposers = [], this.className = "BaseObject";
  1995. }
  1996. return t2.prototype.debug = function() {
  1997. }, Object.defineProperty(t2.prototype, "uid", { get: function() {
  1998. return this._uid || (this._uid = Ii.getUniqueId(), Ii.map.setKey(this._uid, this)), this._uid;
  1999. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "id", { get: function() {
  2000. return this._id;
  2001. }, set: function(t3) {
  2002. this._id = t3;
  2003. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "map", { get: function() {
  2004. return this._map || (this._map = new Pi()), this._map;
  2005. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "delayedMap", { get: function() {
  2006. return this._delayedMap || (this._delayedMap = new Pi()), this._delayedMap;
  2007. }, enumerable: true, configurable: true }), t2.prototype.addDelayedMap = function(t3, e3) {
  2008. var i3 = this.delayedMap;
  2009. i3.hasKey(e3) || i3.setKey(e3, []), i3.getKey(e3).push({ property: t3, target: this });
  2010. }, t2.prototype.processDelayedMap = function() {
  2011. var t3 = this;
  2012. this.delayedMap.each(function(e3, i3) {
  2013. if (t3.map.hasKey(e3)) {
  2014. var n3 = t3.map.getKey(e3);
  2015. Ut(i3, function(t4) {
  2016. t4.target[t4.property] = n3;
  2017. }), t3.delayedMap.removeKey(e3);
  2018. }
  2019. });
  2020. }, t2.prototype.applyTheme = function() {
  2021. var t3 = this;
  2022. if (Ii) {
  2023. var e3 = this.getCurrentThemes();
  2024. e3 && Ut(e3, function(e4, i3) {
  2025. e4(t3);
  2026. });
  2027. }
  2028. }, Object.defineProperty(t2.prototype, "themes", { get: function() {
  2029. return this._themes;
  2030. }, set: function(t3) {
  2031. this._themes = t3;
  2032. }, enumerable: true, configurable: true }), t2.prototype.getCurrentThemes = function() {
  2033. return this.themes || Ii.themes;
  2034. }, t2.prototype.isDisposed = function() {
  2035. return this._disposed;
  2036. }, t2.prototype.dispose = function() {
  2037. if (!this._disposed) {
  2038. this._disposed = true;
  2039. var t3 = this._disposers;
  2040. for (this._disposers = null; t3.length !== 0; )
  2041. t3.shift().dispose();
  2042. this.clearCache(), this.clonedFrom && this.clonedFrom.clones.removeValue(this);
  2043. var e3 = this._uid;
  2044. e3 != null && Ii.map.removeKey(e3);
  2045. }
  2046. }, t2.prototype.addDisposer = function(t3) {
  2047. this._disposers.push(t3);
  2048. }, t2.prototype.removeDispose = function(t3) {
  2049. if (!this._disposed) {
  2050. var e3 = Xt(this._disposers, t3);
  2051. e3 > -1 && this._disposers.splice(e3, 1);
  2052. }
  2053. t3.dispose();
  2054. }, t2.prototype.clone = function(t3) {
  2055. t3 || (t3 = "clone-" + Ii.getUniqueId());
  2056. var e3 = new this.constructor();
  2057. return e3.cloneId = t3, e3.copyFrom(this), e3;
  2058. }, Object.defineProperty(t2.prototype, "clones", { get: function() {
  2059. return this._clones || (this._clones = new Fi()), this._clones;
  2060. }, enumerable: true, configurable: true }), t2.prototype.copyFrom = function(t3) {
  2061. t3.clones.push(this), this.clonedFrom = t3;
  2062. }, Object.defineProperty(t2.prototype, "className", { get: function() {
  2063. return this._className;
  2064. }, set: function(t3) {
  2065. this._className = t3;
  2066. }, enumerable: true, configurable: true }), t2.prototype.setCache = function(t3, e3, i3) {
  2067. Oi.set(this.uid, t3, e3, i3);
  2068. }, t2.prototype.getCache = function(t3, e3) {
  2069. return e3 === void 0 && (e3 = void 0), Oi.get(this.uid, t3, e3);
  2070. }, t2.prototype.clearCache = function() {
  2071. Oi.clear(this.uid);
  2072. }, t2.prototype.setTimeout = function(t3, e3) {
  2073. var i3 = this, n3 = setTimeout(function() {
  2074. i3.removeDispose(r3), t3();
  2075. }, e3), r3 = new ye(function() {
  2076. clearTimeout(n3);
  2077. });
  2078. return this._disposers.push(r3), r3;
  2079. }, t2.prototype.setInterval = function(t3, e3) {
  2080. var i3 = this, n3 = setInterval(function() {
  2081. i3.removeDispose(r3), t3();
  2082. }, e3), r3 = new ye(function() {
  2083. clearTimeout(n3);
  2084. });
  2085. return this._disposers.push(r3), r3;
  2086. }, Object.defineProperty(t2.prototype, "config", { set: function(t3) {
  2087. try {
  2088. this.processConfig(t3);
  2089. } catch (t4) {
  2090. this.raiseCriticalError(t4);
  2091. }
  2092. }, enumerable: true, configurable: true }), t2.prototype.processConfig = function(e3) {
  2093. var i3 = this;
  2094. if (e3) {
  2095. var n3 = this;
  2096. if (We(e3, function(e4, r4) {
  2097. var s2, a2 = r4;
  2098. if (e4 == "callback" && typeof r4 == "function" && r4.call(n3), i3.hasProperty(e4))
  2099. if (!et(a2) || !Z(a2.type) || et(n3[e4]) && Z(n3[e4].className) && !a2.forceCreate && n3[e4].className == a2.type || i3.asIs(e4) ? s2 = n3[e4] : (s2 = i3.createClassInstance(a2.type)) ? n3[e4] = s2 : s2 = n3[e4], s2 instanceof Yi)
  2100. i3.processAdapters(s2, a2);
  2101. else if (s2 instanceof Fe)
  2102. i3.processEvents(s2, a2);
  2103. else if (e4 == "locale" && Q(a2))
  2104. window["am4lang_" + a2] && (n3[e4] = window["am4lang_" + a2]);
  2105. else if (e4 == "parent" && Q(a2)) {
  2106. var o3 = i3.map.getKey(a2);
  2107. o3 ? n3[e4] = o3 : i3.addDelayedMap("parent", a2);
  2108. } else if (i3.asIs(e4))
  2109. n3[e4] = a2;
  2110. else if (i3.asFunction(e4) && Q(a2)) {
  2111. if (!Z(Ii.registeredClasses[a2]))
  2112. throw Error("Invalid easing function: " + a2);
  2113. n3[e4] = Ii.registeredClasses[a2];
  2114. } else if (a2 instanceof t2)
  2115. n3[e4] = a2;
  2116. else if (s2 instanceof t2)
  2117. s2.config = a2;
  2118. else if (s2 instanceof Mi || s2 instanceof Ei || s2 instanceof Ri) {
  2119. if (it(a2))
  2120. s2 instanceof Mi ? i3.processListTemplate(a2, s2) : i3.processOrderedTemplate(a2, s2);
  2121. else if (et(a2))
  2122. if (a2 instanceof t2)
  2123. s2.template = a2;
  2124. else {
  2125. var l2;
  2126. l2 = Z(a2.template) ? a2.template : a2, s2.template instanceof t2 ? s2.template.config = l2 : Ne(l2, function(e5, n4) {
  2127. var r5 = s2.template[e5];
  2128. r5 instanceof Yi ? i3.processAdapters(r5, n4) : r5 instanceof Fe ? i3.processEvents(r5, n4) : r5 instanceof wi ? i3.processDictionaryTemplate(r5, n4) : s2.template[e5] instanceof t2 ? s2.template[e5].config = n4 : et(n4) && Z(n4.type) ? (r5 = i3.createClassInstance(n4.type)) ? (r5 instanceof t2 && (r5.config = n4), s2.template[e5] = r5) : s2.template[e5] = n4 : r5 instanceof Fi ? i3.processList(n4, r5) : s2.template[e5] = i3.maybeColorOrPercent(n4);
  2129. }), Z(a2.values) && (s2 instanceof Mi ? i3.processListTemplate(a2.values, s2) : i3.processOrderedTemplate(a2.values, s2));
  2130. }
  2131. } else
  2132. s2 instanceof Fi ? e4 == "children" ? i3.processList(a2, s2, i3) : i3.processList(a2, s2) : s2 instanceof wi ? i3.processDictionaryTemplate(s2, a2) : s2 instanceof Pi ? i3.processDictionary(s2, a2) : s2 instanceof un || s2 instanceof A ? n3[e4] = i3.maybeColorOrPercent(a2) : et(s2) && et(a2) ? Ze(a2, s2) : (a2 = i3.maybeColorOrPercent(a2), n3[e4] = a2);
  2133. else
  2134. i3.isReserved(e4) || (n3[e4] = a2);
  2135. }, this.configOrder), this.processingErrors.length) {
  2136. var r3 = this.processingErrors.join("\n");
  2137. throw this._processingErrors = [], Error(r3);
  2138. }
  2139. }
  2140. }, t2.prototype.maybeColorOrPercent = function(t3) {
  2141. if (Q(t3)) {
  2142. if (t3.match(/^[\-]?[0-9.]+\%$/))
  2143. return V(U(t3));
  2144. if (t3.match(/^\#[0-9abcdef]{3,}$/i))
  2145. return dn(t3);
  2146. }
  2147. return t3;
  2148. }, t2.prototype.processAdapters = function(t3, e3) {
  2149. var i3 = this;
  2150. it(e3) ? Ut(e3, function(e4, n3) {
  2151. t3.add(e4.key, e4.callback, e4.priority || 0, i3);
  2152. }) : et(e3) && Ne(e3, function(e4, i4) {
  2153. t3.has(e4, i4) || t3.add(e4, i4);
  2154. });
  2155. }, t2.prototype.processEvents = function(t3, e3) {
  2156. var i3 = this;
  2157. it(e3) ? Ut(e3, function(e4, n3) {
  2158. t3.on(e4.type, e4.callback, i3);
  2159. }) : et(e3) && Ne(e3, function(e4, i4) {
  2160. t3.has(e4, i4) || t3.on(e4, i4);
  2161. });
  2162. }, t2.prototype.processDictionaryTemplate = function(e3, i3) {
  2163. et(i3) && Ne(i3, function(i4, n3) {
  2164. var r3;
  2165. (r3 = i4 == "template" ? e3.template : e3.hasKey(i4) ? e3.getKey(i4) : e3.create(i4)) instanceof t2 ? r3.config = n3 : et(r3) && et(n3) ? Ze(n3, r3) : r3.setKey(i4, n3);
  2166. });
  2167. }, t2.prototype.processDictionary = function(t3, e3) {
  2168. et(e3) && Ne(e3, function(e4, i3) {
  2169. t3.setKey(e4, i3);
  2170. });
  2171. }, t2.prototype.processListTemplate = function(e3, i3) {
  2172. var n3 = this;
  2173. for (Ut(e3, function(e4, r3) {
  2174. var s2, a2 = n3.getConfigEntryType(e4);
  2175. if (i3.hasIndex(r3) && !e4.forceCreate)
  2176. s2 = i3.getIndex(r3);
  2177. else {
  2178. if (e4 instanceof t2)
  2179. return void i3.push(e4);
  2180. s2 = a2 ? i3.create(a2) : i3.create();
  2181. }
  2182. e4 === s2 || et(e4) && (s2 instanceof t2 ? s2.config = e4 : et(s2) && et(e4) ? Ze(e4, s2) : i3.setIndex(i3.indexOf(s2), e4));
  2183. }); e3.length > i3.length; )
  2184. i3.pop();
  2185. }, t2.prototype.processOrderedTemplate = function(e3, i3) {
  2186. var n3 = this;
  2187. Ut(e3, function(e4, r3) {
  2188. var s2, a2 = n3.getConfigEntryType(e4);
  2189. s2 = a2 ? i3.create(a2) : i3.create(), et(e4) && (s2 instanceof t2 ? s2.config = e4 : et(s2) && et(e4) ? Ze(e4, s2) : i3.insert(e4));
  2190. });
  2191. }, t2.prototype.processList = function(e3, i3, n3) {
  2192. var r3 = this;
  2193. it(e3) || (e3 = [e3]);
  2194. var s2 = i3.length, a2 = 0;
  2195. for (Ut(e3, function(e4, o3) {
  2196. if (et(e4)) {
  2197. var l2 = void 0;
  2198. if (o3 < s2 && !e4.forceCreate)
  2199. l2 = i3.getIndex(o3);
  2200. else {
  2201. if (e4 instanceof t2)
  2202. return void i3.push(e4);
  2203. a2++, l2 = r3.createEntryInstance(e4), n3 ? l2.parent = n3 : i3.push(l2);
  2204. }
  2205. l2 instanceof t2 ? l2.config = e4 : et(l2) && et(e4) && Ze(e4, l2);
  2206. } else
  2207. i3.hasIndex(o3) ? i3.setIndex(o3, e4) : i3.push(e4);
  2208. }); !n3 && e3.length + a2 < i3.length; )
  2209. i3.pop();
  2210. }, t2.prototype.configOrder = function(t3, e3) {
  2211. return t3 == e3 ? 0 : t3 == "language" ? -1 : e3 == "language" ? 1 : 0;
  2212. }, t2.prototype.asIs = function(t3) {
  2213. return Xt(["locale"], t3) != -1;
  2214. }, t2.prototype.asFunction = function(t3) {
  2215. return false;
  2216. }, t2.prototype.createClassInstance = function(t3) {
  2217. if (Z(Ii.registeredClasses[t3]))
  2218. return new Ii.registeredClasses[t3]();
  2219. throw Error('Invalid type: "' + t3 + '".');
  2220. }, t2.prototype.createEntryInstance = function(t3) {
  2221. var e3;
  2222. return Z(t3.type) && (e3 = this.createClassInstance(t3.type)), e3 || t3;
  2223. }, t2.prototype.getConfigEntryType = function(t3) {
  2224. if (Z(t3.type)) {
  2225. if (Z(Ii.registeredClasses[t3.type]))
  2226. return Ii.registeredClasses[t3.type];
  2227. throw Error('Invalid type: "' + t3.type + '".');
  2228. }
  2229. }, t2.prototype.hasProperty = function(t3) {
  2230. return t3 in this;
  2231. }, t2.prototype.isReserved = function(t3) {
  2232. return ["type", "forceCreate"].indexOf(t3) !== -1;
  2233. }, Object.defineProperty(t2.prototype, "processingErrors", { get: function() {
  2234. return this._processingErrors || (this._processingErrors = []), this._processingErrors;
  2235. }, enumerable: true, configurable: true }), t2;
  2236. }(), mn = function(t2) {
  2237. function e3() {
  2238. var e4 = t2.call(this) || this;
  2239. return e4.className = "BaseObjectEvents", e4;
  2240. }
  2241. return C(e3, t2), Object.defineProperty(e3.prototype, "events", { get: function() {
  2242. return this._eventDispatcher || (this._eventDispatcher = new Fe(), this._disposers.push(this._eventDispatcher)), this._eventDispatcher;
  2243. }, enumerable: true, configurable: true }), e3.prototype.dispatch = function(t3, e4) {
  2244. this._eventDispatcher && this.events.isEnabled(t3) && (e4 ? (e4.type = t3, e4.target = e4.target || this, this.events.dispatch(t3, { type: t3, target: this })) : this.events.dispatch(t3, { type: t3, target: this }));
  2245. }, e3.prototype.dispatchImmediately = function(t3, e4) {
  2246. this._eventDispatcher && this.events.isEnabled(t3) && (e4 ? (e4.type = t3, e4.target = e4.target || this, this.events.dispatchImmediately(t3, e4)) : this.events.dispatchImmediately(t3, { type: t3, target: this }));
  2247. }, e3.prototype.copyFrom = function(e4) {
  2248. t2.prototype.copyFrom.call(this, e4), e4._eventDispatcher && this.events.copyFrom(e4._eventDispatcher);
  2249. }, e3;
  2250. }(yn), vn = "px", bn = "string", xn = "number", _n = "date", Pn = "duration", wn = "__\xA7\xA7\xA7__", Cn = "__\xA7\xA7\xA7\xA7__";
  2251. function On(t2) {
  2252. }
  2253. function Sn(t2, e3) {
  2254. return Ne(t2, function(t3, i3) {
  2255. Z(i3) && (e3[t3] = i3);
  2256. }), e3;
  2257. }
  2258. function In(t2) {
  2259. return /^[^#]*/.exec(t2)[0];
  2260. }
  2261. function Dn() {
  2262. var t2 = "#";
  2263. if (/apple/i.test(navigator.vendor)) {
  2264. var e3 = document.baseURI;
  2265. if (e3) {
  2266. e3 = In(e3);
  2267. var i3 = In(location.href);
  2268. e3 !== i3 && (t2 = i3 + t2);
  2269. }
  2270. }
  2271. return t2;
  2272. }
  2273. function kn(t2, e3) {
  2274. return Ne(t2, function(t3, i3) {
  2275. Z(i3) && !Z(e3[t3]) && (e3[t3] = i3);
  2276. }), e3;
  2277. }
  2278. function Tn(t2, e3) {
  2279. return Ne(t2, function(t3, i3) {
  2280. e3[t3] = i3;
  2281. }), e3;
  2282. }
  2283. function An(t2) {
  2284. return Z(t2) && t2.toString() !== "";
  2285. }
  2286. function Vn(t2, e3) {
  2287. return tt(t2) ? t2 : t2 != null && tt(t2.value) && tt(e3) ? e3 * t2.value : 0;
  2288. }
  2289. function Fn(t2, e3, i3) {
  2290. var n3;
  2291. return tt(t2) ? (n3 = t2) < 0 && (n3 = i3 ? e3 + n3 : e3 - n3) : t2 != null && tt(t2.value) && (n3 = e3 * t2.value), n3;
  2292. }
  2293. function Mn(t2, e3) {
  2294. return t2 instanceof A ? t2.value : t2 / e3;
  2295. }
  2296. function Ln() {
  2297. return window.devicePixelRatio || 1;
  2298. }
  2299. function jn(t2) {
  2300. return t2.replace(/\W+/g, "-").replace(/([a-z\d])([A-Z])/g, "$1-$2").toLowerCase();
  2301. }
  2302. function En(t2) {
  2303. var e3 = t2.split("");
  2304. return e3[0] = e3[0].toUpperCase(), e3.join("");
  2305. }
  2306. function Rn(t2) {
  2307. return JSON.stringify(t2);
  2308. }
  2309. function Bn(t2) {
  2310. return t2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
  2311. }
  2312. function Hn(t2, e3, i3, n3, r3) {
  2313. if (t2.length <= e3)
  2314. return [t2];
  2315. var s2 = [];
  2316. if (i3) {
  2317. for (var a2 = -1, o3 = t2.replace(/([,;:!?\\\/]+|[\s])/g, wn + "$1" + wn).split(wn), l2 = 1; l2 < o3.length; l2++)
  2318. (h2 = o3[l2]) != "." && h2 != "," || !o3[l2 - 1].match(/[\w]+$/) || (o3[l2 - 1] += h2, o3[l2] = "");
  2319. for (l2 = 0; l2 < o3.length; l2++) {
  2320. var h2, p2 = (h2 = o3[l2]).length;
  2321. if (p2 !== 0) {
  2322. if (p2 > e3 && (i3 !== true || r3 != 0)) {
  2323. if (n3 && (h2 = zn(h2)), d2 = h2.match(new RegExp(".{1," + e3 + "}", "g"))) {
  2324. if (n3)
  2325. for (var u2 = 0; u2 < d2.length; u2++)
  2326. d2[u2] = zn(d2[u2]);
  2327. s2 = s2.concat(d2);
  2328. }
  2329. } else
  2330. a2 === -1 && (s2.push(""), a2 = 0), s2[a2].length + p2 + 1 > e3 && s2[a2] !== "" && (s2.push(""), a2++), s2[a2] += h2;
  2331. a2 = s2.length - 1;
  2332. }
  2333. }
  2334. } else {
  2335. var d2;
  2336. if (d2 = t2.match(new RegExp(".{1," + e3 + "}", "g"))) {
  2337. if (n3)
  2338. for (u2 = 0; u2 < d2.length; u2++)
  2339. d2[u2] = zn(d2[u2]);
  2340. s2 = d2;
  2341. }
  2342. }
  2343. return s2.length == 1 && i3 && r3 && s2[0].length > e3 && (s2 = []), s2;
  2344. }
  2345. function Nn(t2, e3, i3, n3, r3) {
  2346. return t2.length <= e3 ? t2 : ((e3 -= i3.length) < 1 && (e3 = 1), (Hn(t2, e3, n3, r3)[0] || "") + i3);
  2347. }
  2348. function Wn(t2) {
  2349. return t2.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
  2350. }
  2351. function Xn(t2) {
  2352. return t2.replace(/[\s\uFEFF\xA0]+$/g, "");
  2353. }
  2354. function Yn(t2) {
  2355. return t2.replace(/^[\s\uFEFF\xA0]+/g, "");
  2356. }
  2357. function zn(t2) {
  2358. return t2.split("").reverse().join("");
  2359. }
  2360. function Un(t2) {
  2361. var e3 = t2.trim();
  2362. return (e3 = t2.replace(/^'(.*)'$/, "$1")) == t2 && (e3 = t2.replace(/^"(.*)"$/, "$1")), e3;
  2363. }
  2364. function Gn(t2, e3, i3) {
  2365. return e3 === void 0 && (e3 = 0), i3 === void 0 && (i3 = "0"), typeof t2 != "string" && (t2 = t2.toString()), e3 > t2.length ? Array(e3 - t2.length + 1).join(i3) + t2 : t2;
  2366. }
  2367. function Kn(t2) {
  2368. if (t2 === void 0)
  2369. return bn;
  2370. var e3 = (t2 = (t2 = (t2 = t2.toLowerCase().replace(/^\[[^\]]*\]/, "")).replace(/\[[^\]]+\]/, "")).trim()).match(/\/(date|number|duration)$/);
  2371. return e3 ? e3[1] : t2 === xn ? xn : t2 === _n ? _n : t2 === Pn ? Pn : t2.match(/[#0]/) ? xn : t2.match(/[ymwdhnsqaxkzgtei]/) ? _n : bn;
  2372. }
  2373. function Zn(t2) {
  2374. return t2.replace(/\/(date|number|duration)$/i, "");
  2375. }
  2376. function qn(t2) {
  2377. return t2 ? t2.replace(/<[^>]*>/g, "") : t2;
  2378. }
  2379. function $n(t2) {
  2380. return t2 ? qn(("" + t2).replace(/[\n\r]+/g, ". ")) : t2;
  2381. }
  2382. function Jn(t2) {
  2383. if (M(t2))
  2384. return "NaN";
  2385. if (t2 === 1 / 0)
  2386. return "Infinity";
  2387. if (t2 === -1 / 0)
  2388. return "-Infinity";
  2389. if (t2 === 0 && 1 / t2 == -1 / 0)
  2390. return "-0";
  2391. var e3 = t2 < 0;
  2392. t2 = Math.abs(t2);
  2393. var i3, n3 = q(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec("" + t2)), r3 = n3[1], s2 = n3[2] || "";
  2394. if (n3[3] == null)
  2395. i3 = s2 === "" ? r3 : r3 + "." + s2;
  2396. else {
  2397. var a2, o3 = +n3[3];
  2398. i3 = t2 < 1 ? "0." + bi("0", a2 = o3 - 1) + r3 + s2 : (a2 = o3 - s2.length) == 0 ? r3 + s2 : a2 < 0 ? r3 + s2.slice(0, a2) + "." + s2.slice(a2) : r3 + s2 + bi("0", a2);
  2399. }
  2400. return e3 ? "-" + i3 : i3;
  2401. }
  2402. function Qn(t2) {
  2403. if (J(t2)) {
  2404. var e3 = new Date(t2);
  2405. return e3.setMilliseconds(t2.getMilliseconds()), e3;
  2406. }
  2407. if (tt(t2))
  2408. return new Date(t2);
  2409. var i3 = Number(t2);
  2410. return tt(i3) ? new Date(i3) : new Date(t2);
  2411. }
  2412. function tr(t2) {
  2413. if (J(t2))
  2414. return t2.getTime();
  2415. if (tt(t2))
  2416. return t2;
  2417. if (Q(t2)) {
  2418. var e3 = Number(t2);
  2419. return tt(e3) ? e3 : void 0;
  2420. }
  2421. }
  2422. function er(t2, e3) {
  2423. var i3 = new Date(t2.getFullYear(), 0, 0), n3 = t2.getTime() - i3.getTime() + 60 * (i3.getTimezoneOffset() - t2.getTimezoneOffset()) * 1e3;
  2424. return Math.floor(n3 / 864e5);
  2425. }
  2426. function ir(t2, e3) {
  2427. var i3 = er(t2) - 1, n3 = Math.floor((i3 - (t2.getDay() || 7) + 10) / 7);
  2428. return n3 === 0 ? n3 = 53 : n3 === 53 && (n3 = 1), n3;
  2429. }
  2430. function nr(t2, e3) {
  2431. var i3 = ir(new Date(t2.getFullYear(), t2.getMonth(), 1)), n3 = ir(t2);
  2432. return n3 == 1 && (n3 = 53), n3 - i3 + 1;
  2433. }
  2434. function rr(t2, e3, i3, n3) {
  2435. i3 === void 0 && (i3 = 1), n3 === void 0 && (n3 = false);
  2436. var r3 = new Date(e3, 0, 4, 0, 0, 0, 0);
  2437. return n3 && r3.setUTCFullYear(e3), 7 * t2 + i3 - ((r3.getDay() || 7) + 3);
  2438. }
  2439. function sr(t2, e3) {
  2440. return t2 > 12 ? t2 -= 12 : t2 === 0 && (t2 = 12), Z(e3) ? t2 + (e3 - 1) : t2;
  2441. }
  2442. function ar(t2, e3, i3, n3) {
  2443. if (e3 === void 0 && (e3 = false), i3 === void 0 && (i3 = false), n3 === void 0 && (n3 = false), n3)
  2444. return e3 ? "Coordinated Universal Time" : "UTC";
  2445. var r3 = t2.toLocaleString("UTC"), s2 = t2.toLocaleString("UTC", { timeZoneName: e3 ? "long" : "short" }).substr(r3.length);
  2446. return i3 === false && (s2 = s2.replace(/ (standard|daylight|summer|winter) /i, " ")), s2;
  2447. }
  2448. function or(t2, e3) {
  2449. return Math.floor(Math.random() * (e3 - t2)) + t2;
  2450. }
  2451. function lr(t2, e3, i3) {
  2452. return t2 > i3 ? i3 : t2 < e3 ? e3 : t2;
  2453. }
  2454. function hr(t2, e3, i3) {
  2455. var n3 = i3 - e3;
  2456. return (t2 > i3 || t2 < e3) && (t2 = e3 + (t2 - n3 * Math.floor(t2 / n3))), t2;
  2457. }
  2458. function pr(t2, e3) {
  2459. var i3 = t2.x, n3 = t2.y, r3 = [];
  2460. if (e3) {
  2461. for (; Z(e3.parent); )
  2462. r3.push(e3), e3 = e3.parent;
  2463. r3.reverse();
  2464. for (var s2 = 0; s2 < r3.length; s2++) {
  2465. var a2 = r3[s2], o3 = a2.rotation, l2 = i3 - a2.pixelX - a2.ex, h2 = n3 - a2.pixelY - a2.ey;
  2466. a2.dx && (i3 -= a2.dx), a2.dy && (n3 -= a2.dy);
  2467. var p2 = a2.scale;
  2468. a2.group && (p2 = a2.group.scale), i3 = (ft(-o3) * l2 - dt(-o3) * h2) / p2 - a2.pixelPaddingLeft, n3 = (ft(-o3) * h2 + dt(-o3) * l2) / p2 - a2.pixelPaddingTop;
  2469. }
  2470. }
  2471. return { x: i3, y: n3 };
  2472. }
  2473. function ur(t2, e3) {
  2474. var i3 = t2.x, n3 = t2.y;
  2475. if (e3)
  2476. for (; Z(e3.parent); ) {
  2477. var r3 = e3.rotation;
  2478. i3 += e3.pixelPaddingLeft + e3.ex, n3 += e3.pixelPaddingTop + e3.ey;
  2479. var s2 = e3.scale;
  2480. e3.group && (s2 = e3.group.scale);
  2481. var a2 = e3.pixelX + (i3 * ft(r3) - n3 * dt(r3)) * s2, o3 = e3.pixelY + (i3 * dt(r3) + n3 * ft(r3)) * s2;
  2482. e3.dx && (a2 += e3.dx), e3.dy && (o3 += e3.dy), i3 = a2, n3 = o3, e3 = e3.parent;
  2483. }
  2484. return { x: i3, y: n3 };
  2485. }
  2486. function dr(t2, e3, i3) {
  2487. return pr(ur(t2, e3), i3);
  2488. }
  2489. function cr(t2, e3) {
  2490. var i3 = pr(t2, e3), n3 = pr({ x: t2.x + t2.width, y: t2.y + t2.height }, e3);
  2491. return { x: i3.x, y: i3.y, width: n3.x - i3.x, height: n3.y - i3.y };
  2492. }
  2493. function fr(t2, e3) {
  2494. var i3 = ur(t2, e3), n3 = ur({ x: t2.x + t2.width, y: t2.y + t2.height }, e3);
  2495. return { x: i3.x, y: i3.y, width: n3.x - i3.x, height: n3.y - i3.y };
  2496. }
  2497. function gr(t2, e3, i3) {
  2498. try {
  2499. var n3 = e3.getBoundingClientRect();
  2500. return tt(i3) || (i3 = 1), { x: (t2.x - n3.left) / i3, y: (t2.y - n3.top) / i3 };
  2501. } catch (e4) {
  2502. return t2;
  2503. }
  2504. }
  2505. function yr(t2, e3) {
  2506. try {
  2507. var i3 = e3.getBoundingClientRect();
  2508. return { x: t2.x + i3.left, y: t2.y + i3.top };
  2509. } catch (e4) {
  2510. return t2;
  2511. }
  2512. }
  2513. function mr(t2, e3) {
  2514. return e3 && e3.htmlContainer ? pr(gr(t2, q(e3.htmlContainer), e3.svgContainer.cssScale), e3) : t2;
  2515. }
  2516. function vr(t2, e3) {
  2517. return e3 && e3.htmlContainer ? yr(ur(t2, e3), q(e3.htmlContainer)) : t2;
  2518. }
  2519. function br(t2) {
  2520. var e3 = getComputedStyle(t2), i3 = parseFloat(e3.paddingLeft) + parseFloat(e3.paddingRight), n3 = parseFloat(e3.borderLeftWidth) + parseFloat(e3.borderRightWidth);
  2521. return t2.clientWidth - i3 - n3;
  2522. }
  2523. function xr(t2) {
  2524. var e3 = getComputedStyle(t2), i3 = parseFloat(e3.paddingTop) + parseFloat(e3.paddingBottom), n3 = parseFloat(e3.borderTopWidth) + parseFloat(e3.borderBottomWidth);
  2525. return t2.clientHeight - i3 - n3;
  2526. }
  2527. function _r(t2) {
  2528. var e3 = ("" + t2).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
  2529. return e3 ? Math.max(0, (e3[1] ? e3[1].length : 0) - (e3[2] ? +e3[2] : 0)) : 0;
  2530. }
  2531. var Pr = /^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;
  2532. function wr(t2) {
  2533. var e3 = Pr.exec(t2);
  2534. return { protocol: e3 && e3[1] || "", separator: e3 && e3[2] || "", authority: e3 && e3[3] || "", domain: e3 && e3[4] || "", port: e3 && e3[5] || "", path: e3 && e3[6] || "", query: e3 && e3[7] || "", hash: e3 && e3[8] || "" };
  2535. }
  2536. function Cr(t2) {
  2537. return t2.protocol + t2.separator + t2.authority + t2.domain + t2.port + t2.path + t2.query + t2.hash;
  2538. }
  2539. function Or(t2) {
  2540. return t2.protocol === "" && t2.separator === "" && t2.authority === "" && t2.domain === "" && t2.port === "";
  2541. }
  2542. function Sr(t2, e3) {
  2543. var i3 = wr(t2), n3 = wr(e3);
  2544. if (Or(i3))
  2545. throw new Error("Left URL is not absolute");
  2546. if (Or(n3)) {
  2547. if (n3.path !== "")
  2548. if (n3.path[0] === "/")
  2549. i3.path = n3.path;
  2550. else {
  2551. var r3 = i3.path.split(/\//), s2 = n3.path.split(/\//);
  2552. if (r3.length === 0 ? s2.length !== 0 && r3.push("") : r3.length > 1 && r3.pop(), te(r3, s2), i3.path = r3.join("/"), i3.path !== "" && i3.path[0] !== "/")
  2553. throw new Error("URL path must start with /");
  2554. }
  2555. return i3.query = n3.query, i3.hash = n3.hash, Cr(i3);
  2556. }
  2557. return Cr(n3);
  2558. }
  2559. function Ir() {
  2560. return !!window.MSInputMethodContext && !!document.documentMode;
  2561. }
  2562. function Dr(t2) {
  2563. return +t2;
  2564. }
  2565. function kr(t2) {
  2566. return t2 * t2;
  2567. }
  2568. function Tr(t2) {
  2569. return t2 * (2 - t2);
  2570. }
  2571. function Ar(t2) {
  2572. return ((t2 *= 2) <= 1 ? t2 * t2 : --t2 * (2 - t2) + 1) / 2;
  2573. }
  2574. function Vr(t2, e3) {
  2575. return Math.pow(t2, e3);
  2576. }
  2577. function Fr(t2, e3) {
  2578. return 1 - Math.pow(1 - t2, e3);
  2579. }
  2580. function Mr(t2, e3) {
  2581. return ((t2 *= 2) <= 1 ? Math.pow(t2, e3) : 2 - Math.pow(2 - t2, e3)) / 2;
  2582. }
  2583. function Lr(t2) {
  2584. return Vr(t2, 3);
  2585. }
  2586. function jr(t2) {
  2587. return Fr(t2, 3);
  2588. }
  2589. function Er(t2) {
  2590. return Mr(t2, 3);
  2591. }
  2592. function Rr(t2) {
  2593. return Math.pow(2, 10 * t2 - 10);
  2594. }
  2595. function Br(t2) {
  2596. return 1 - Math.pow(2, -10 * t2);
  2597. }
  2598. function Hr(t2) {
  2599. return ((t2 *= 2) <= 1 ? Math.pow(2, 10 * t2 - 10) : 2 - Math.pow(2, 10 - 10 * t2)) / 2;
  2600. }
  2601. function Nr(t2) {
  2602. return 1 - Math.cos(t2 * rt);
  2603. }
  2604. function Wr(t2) {
  2605. return Math.sin(t2 * rt);
  2606. }
  2607. function Xr(t2) {
  2608. return (1 - Math.cos(nt * t2)) / 2;
  2609. }
  2610. function Yr(t2) {
  2611. return t2 * t2 * t2;
  2612. }
  2613. function zr(t2) {
  2614. return --t2 * t2 * t2 + 1;
  2615. }
  2616. function Ur(t2) {
  2617. return ((t2 *= 2) <= 1 ? t2 * t2 * t2 : (t2 -= 2) * t2 * t2 + 2) / 2;
  2618. }
  2619. function Gr(t2) {
  2620. return 1 - Math.sqrt(1 - t2 * t2);
  2621. }
  2622. function Kr(t2) {
  2623. return Math.sqrt(1 - --t2 * t2);
  2624. }
  2625. function Zr(t2) {
  2626. return ((t2 *= 2) <= 1 ? 1 - Math.sqrt(1 - t2 * t2) : Math.sqrt(1 - (t2 -= 2) * t2) + 1) / 2;
  2627. }
  2628. Ii.registeredClasses["ease.linear"] = Dr, Ii.registeredClasses["ease.quadIn"] = kr, Ii.registeredClasses["ease.quadOut"] = Tr, Ii.registeredClasses["ease.quadInOut"] = Ar, Ii.registeredClasses["ease.polyIn"] = Vr, Ii.registeredClasses["ease.polyOut"] = Fr, Ii.registeredClasses["ease.polyInOut"] = Mr, Ii.registeredClasses["ease.polyIn3"] = Lr, Ii.registeredClasses["ease.polyOut3"] = jr, Ii.registeredClasses["ease.polyInOut3"] = Er, Ii.registeredClasses["ease.expIn"] = Rr, Ii.registeredClasses["ease.expOut"] = Br, Ii.registeredClasses["ease.expInOut"] = Hr, Ii.registeredClasses["ease.sinIn"] = Nr, Ii.registeredClasses["ease.sinOut"] = Wr, Ii.registeredClasses["ease.sinInOut"] = Xr, Ii.registeredClasses["ease.cubicIn"] = Yr, Ii.registeredClasses["ease.cubicOut"] = zr, Ii.registeredClasses["ease.cubicInOut"] = Ur, Ii.registeredClasses["ease.circleIn"] = Gr, Ii.registeredClasses["ease.circleOut"] = Kr, Ii.registeredClasses["ease.circleInOut"] = Zr;
  2629. var qr = 7.5625;
  2630. function $r(t2) {
  2631. return 1 - Jr(1 - t2);
  2632. }
  2633. function Jr(t2) {
  2634. return (t2 = +t2) < 0.36363636363636365 ? qr * t2 * t2 : t2 < 0.7272727272727273 ? qr * (t2 -= 0.5454545454545454) * t2 + 0.75 : t2 < 0.9090909090909091 ? qr * (t2 -= 0.8181818181818182) * t2 + 0.9375 : qr * (t2 -= 0.9545454545454546) * t2 + 0.984375;
  2635. }
  2636. function Qr(t2) {
  2637. return ((t2 *= 2) <= 1 ? 1 - Jr(1 - t2) : Jr(t2 - 1) + 1) / 2;
  2638. }
  2639. Ii.registeredClasses["ease.bounceIn"] = $r, Ii.registeredClasses["ease.bounceOut"] = Jr, Ii.registeredClasses["ease.bounceInOut"] = Qr;
  2640. var ts = 0.3 / (2 * Math.PI), es = Math.asin(1) * ts;
  2641. function is(t2) {
  2642. return 1 * Math.pow(2, 10 * --t2) * Math.sin((es - t2) / ts);
  2643. }
  2644. function ns(t2) {
  2645. return 1 - 1 * Math.pow(2, -10 * (t2 = +t2)) * Math.sin((t2 + es) / ts);
  2646. }
  2647. function rs(t2) {
  2648. return ((t2 = 2 * t2 - 1) < 0 ? 1 * Math.pow(2, 10 * t2) * Math.sin((es - t2) / ts) : 2 - 1 * Math.pow(2, -10 * t2) * Math.sin((es + t2) / ts)) / 2;
  2649. }
  2650. Ii.registeredClasses["ease.elasticIn"] = is, Ii.registeredClasses["ease.elasticOut"] = ns, Ii.registeredClasses["ease.elasticInOut"] = rs;
  2651. var ss = function(t2) {
  2652. function e3() {
  2653. var e4 = t2.call(this) || this;
  2654. return e4.transitionDuration = 0, e4.transitionEasing = zr, e4.properties = {}, e4.propertyFields = {}, e4.filters = new Fi(), e4.isTemplate = false, e4.className = "SpriteState", e4._disposers.push(new Ai(e4.filters)), e4.applyTheme(), e4;
  2655. }
  2656. return C(e3, t2), Object.defineProperty(e3.prototype, "adapter", { get: function() {
  2657. var t3 = this;
  2658. return this._adapterO || (this._adapterO = new Yi(this), this._adapterO.events.on("inserted", function(e4) {
  2659. t3[e4.newValue.key] = t3[e4.newValue.key];
  2660. }, void 0, false), this._adapterO.events.on("removed", function(e4) {
  2661. t3[e4.newValue.key] = t3[e4.newValue.key];
  2662. }, void 0, false)), this._adapterO;
  2663. }, enumerable: true, configurable: true }), e3.prototype.getPropertyValue = function(t3) {
  2664. var e4 = this.properties[t3], i3 = this.sprite;
  2665. if (i3) {
  2666. var n3 = this.propertyFields[t3];
  2667. if (Z(n3) && (i3.dataItem && (e4 = i3.dataItem.dataContext[n3]), e4 == null && (e4 = "__unset")), Z(e4))
  2668. this._adapterO && (e4 = this._adapterO.apply(t3, e4));
  2669. else {
  2670. var r3 = i3.getPropertyValue(t3);
  2671. (e4 = this._adapterO ? this._adapterO.apply(t3, r3) : r3) == r3 && (e4 = void 0);
  2672. }
  2673. }
  2674. return e4;
  2675. }, e3.prototype.copyFrom = function(t3) {
  2676. t3 && t3 != this && (this.transitionDuration = t3.transitionDuration, this.transitionEasing = t3.transitionEasing, Sn(t3.properties, this.properties), Sn(t3.propertyFields, this.propertyFields), this.filters.copyFrom(t3.filters), t3._adapterO && this.adapter.copyFrom(t3._adapterO));
  2677. }, Object.defineProperty(e3.prototype, "allValues", { get: function() {
  2678. var t3 = this, e4 = {};
  2679. return Ne(this.properties, function(i3, n3) {
  2680. e4[i3] = t3.getPropertyValue(i3);
  2681. }), this._adapterO && Ne(this._adapterO.keys(), function(i3, n3) {
  2682. var r3 = t3.getPropertyValue(n3);
  2683. e4[n3] = r3;
  2684. }), Ne(this.propertyFields, function(i3) {
  2685. var n3 = t3.getPropertyValue(i3);
  2686. e4[i3] = n3;
  2687. }), e4;
  2688. }, enumerable: true, configurable: true }), e3.prototype.reset = function() {
  2689. this.properties = {}, this.filters.clear();
  2690. }, e3.prototype.processConfig = function(e4) {
  2691. Z(e4) && Z(e4.properties) && Ne(e4.properties, function(t3, i3) {
  2692. Q(i3) && (i3.match(/^[0-9.\-]+\%$/) ? e4.properties[t3] = V(U(i3)) : i3.match(/^\#[0-9abcdef]{3,}$/i) && (e4.properties[t3] = gn(i3)));
  2693. }), t2.prototype.processConfig.call(this, e4);
  2694. }, e3.prototype.asFunction = function(e4) {
  2695. return e4 == "transitionEasing" || t2.prototype.asIs.call(this, e4);
  2696. }, e3;
  2697. }(yn);
  2698. Ii.registeredClasses.SpriteState = ss;
  2699. var as = function(t2) {
  2700. function e3() {
  2701. var e4 = t2 !== null && t2.apply(this, arguments) || this;
  2702. return e4._interactionEvents = new Pi(), e4;
  2703. }
  2704. return C(e3, t2), e3.prototype._dispatchSpriteEvent = function(t3) {
  2705. if (!this.target.disabled && !this.target.isTemplate && this.target.events.isEnabled(t3.type)) {
  2706. var e4 = Ye(t3, { target: this.target });
  2707. this.target.events.dispatchImmediately(e4.type, e4);
  2708. }
  2709. }, e3.prototype._dispatchSpritePointEvent = function(t3) {
  2710. if (!this.target.disabled && !this.target.isTemplate && this.target.events.isEnabled(t3.type)) {
  2711. var e4 = Ye(t3, { target: this.target, spritePoint: t3.point ? mr(t3.point, this.target) : void 0, svgPoint: this.target.getSvgPoint(t3.point) });
  2712. this.target.events.dispatchImmediately(e4.type, e4);
  2713. }
  2714. }, e3.prototype._addInteractionObjectEvent = function(t3, e4, i3, n3) {
  2715. var r3 = this, s2 = n3 + "-" + t3;
  2716. return this._interactionEvents.insertKeyIfEmpty(s2, function() {
  2717. var a2 = r3.target.interactions.events.on(t3, e4, i3, n3);
  2718. return new be(function() {
  2719. r3._interactionEvents.removeKey(s2), a2.dispose();
  2720. });
  2721. }).increment();
  2722. }, e3.prototype._on = function(e4, i3, n3, r3, s2, a2) {
  2723. var o3 = t2.prototype._on.call(this, e4, i3, n3, r3, s2, a2), l2 = [o3.disposer];
  2724. switch (i3) {
  2725. case "hit":
  2726. case "track":
  2727. case "doublehit":
  2728. case "wheel":
  2729. case "wheelup":
  2730. case "wheeldown":
  2731. case "wheelleft":
  2732. case "wheelright":
  2733. l2.push(this._addInteractionObjectEvent(i3, this._dispatchSpritePointEvent, this, s2));
  2734. break;
  2735. case "rightclick":
  2736. case "down":
  2737. case "up":
  2738. case "drag":
  2739. case "dragged":
  2740. case "dragstart":
  2741. case "dragstop":
  2742. case "over":
  2743. case "out":
  2744. case "swipe":
  2745. case "swipeleft":
  2746. case "swiperight":
  2747. case "resize":
  2748. case "focus":
  2749. case "blur":
  2750. case "toggled":
  2751. l2.push(this._addInteractionObjectEvent(i3, this._dispatchSpriteEvent, this, s2));
  2752. }
  2753. switch (i3) {
  2754. case "hit":
  2755. case "doublehit":
  2756. case "rightclick":
  2757. case "down":
  2758. case "up":
  2759. this.target.clickable = true;
  2760. break;
  2761. case "toggled":
  2762. this.target.togglable = true;
  2763. break;
  2764. case "drag":
  2765. case "dragstart":
  2766. case "dragstop":
  2767. this.target.draggable = true;
  2768. break;
  2769. case "track":
  2770. this.target.trackable = true;
  2771. break;
  2772. case "resize":
  2773. this.target.resizable = true;
  2774. break;
  2775. case "swipe":
  2776. case "swipeleft":
  2777. case "swiperight":
  2778. this.target.swipeable = true;
  2779. break;
  2780. case "wheel":
  2781. case "wheelup":
  2782. case "wheeldown":
  2783. case "wheelleft":
  2784. case "wheelright":
  2785. this.target.wheelable = true;
  2786. break;
  2787. case "over":
  2788. this.target.hoverable = true;
  2789. case "out":
  2790. this.target.hoverable = true;
  2791. break;
  2792. case "focus":
  2793. case "blur":
  2794. this.target.focusable = true;
  2795. }
  2796. return o3.disposer = new me(l2), o3;
  2797. }, e3;
  2798. }(Me), os = function() {
  2799. function t2() {
  2800. }
  2801. return t2.opacity = 1, t2.strokeOpacity = 1, t2.strokeWidth = 1, t2.fillOpacity = 1, t2.fill = dn("#000000"), t2.stroke = dn("#000000"), t2.focusable = void 0, t2.tabindex = 0, t2;
  2802. }(), ls = { verbose: true, commercialLicense: false, classNamePrefix: "amcharts-", autoSetClassName: false, minPolylineStep: 0.5, onlyShowOnViewport: false, queue: false, autoDispose: false, licenses: [], suppressErrors: false, suppressWarnings: false, animationsEnabled: true, nonce: "", deferredDelay: 100, disableHoverOnTransform: "never", pixelPerfectPrecision: 0 };
  2803. function hs(t2, e3) {
  2804. var i3 = false, n3 = Date.now();
  2805. return De(function r3(s2) {
  2806. if (!i3) {
  2807. var a2 = s2 - n3;
  2808. a2 >= t2 ? e3(1) : (De(r3), e3(a2 / t2));
  2809. }
  2810. }), new ye(function() {
  2811. i3 = true;
  2812. });
  2813. }
  2814. function ps(t2, e3, i3) {
  2815. return e3 + (i3 - e3) * t2;
  2816. }
  2817. function us(t2, e3, i3) {
  2818. return new A(ps(t2, e3.percent, i3.percent));
  2819. }
  2820. function ds(t2, e3, i3) {
  2821. var n3 = new un(Qi(e3.rgb, i3.rgb, t2));
  2822. return e3.alpha != i3.alpha && (n3.alpha = e3.alpha + (i3.alpha - e3.alpha) * t2), n3;
  2823. }
  2824. function cs(t2, e3) {
  2825. return e3 + t2.charAt(0).toUpperCase() + t2.substr(1);
  2826. }
  2827. var fs, gs = function() {
  2828. function t2(t3) {
  2829. this._disposer = new ye(function() {
  2830. for (; t3.length !== 0; )
  2831. t3[0].dispose();
  2832. });
  2833. }
  2834. return t2.prototype.isDisposed = function() {
  2835. return this._disposer.isDisposed();
  2836. }, t2.prototype.dispose = function() {
  2837. this._disposer.dispose();
  2838. }, t2;
  2839. }(), ys = function(t2) {
  2840. function e3(e4, i3, n3, r3) {
  2841. var s2 = t2.call(this) || this;
  2842. return s2.duration = 0, s2.easing = Dr, s2.progress = 0, s2._loop = 0, s2._pause = false, s2._delayTimeout = null, s2._time = 0, s2._isFinished = false, s2.className = "Animation", ls.animationsEnabled === false && (n3 = 0), s2.object = e4, s2.animationOptions = se(i3), s2.duration = n3, r3 && (s2.easing = r3), s2.applyTheme(), s2;
  2843. }
  2844. return C(e3, t2), e3.prototype.debug = function() {
  2845. }, e3.prototype.dispose = function() {
  2846. t2.prototype.dispose.call(this), this.pause();
  2847. }, e3.prototype.delay = function(t3) {
  2848. var e4 = this;
  2849. if (t3 > 0) {
  2850. this.pause(), ie(this.object.animations, this);
  2851. var i3 = setTimeout(function() {
  2852. e4._delayTimeout = null, e4.start();
  2853. }, t3);
  2854. this._delayTimeout = new ye(function() {
  2855. clearTimeout(i3);
  2856. });
  2857. }
  2858. return this;
  2859. }, e3.prototype._start = function() {
  2860. this._isFinished = false, this._delayTimeout && (this.removeDispose(this._delayTimeout), this._delayTimeout = null), this.stopSameAnimations(), this._pause = false, ie(Qa.animations, this), ie(this.object.animations, this), Qa.requestFrame();
  2861. }, e3.prototype.start = function() {
  2862. this._start(), this._startTime = Date.now(), this._time = 0, this.staticOptions = [];
  2863. for (var t3 = this.animationOptions.length - 1; t3 >= 0; t3--) {
  2864. var e4 = this.animationOptions[t3];
  2865. if (Z(e4.from) || (e4.childObject ? e4.from = e4.childObject[e4.property] : (e4.from = this.object[e4.property], Z(e4.from) || (e4.from = os[e4.property]))), e4.from == e4.to)
  2866. ee(this.animationOptions, e4);
  2867. else if (!Z(e4.from) || !(e4.from instanceof A) && e4.to instanceof A || e4.from instanceof A && !(e4.to instanceof A))
  2868. this.staticOptions.push(e4), ee(this.animationOptions, e4);
  2869. else if (tt(e4.to))
  2870. if (e4.updateMethod = ps, e4.from instanceof A) {
  2871. var i3 = this.object[cs(e4.property, "pixel")];
  2872. isNaN(i3) ? (this.staticOptions.push(e4), ee(this.animationOptions, e4)) : e4.from = i3;
  2873. } else
  2874. isNaN(e4.from) && (this.staticOptions.push(e4), ee(this.animationOptions, e4));
  2875. else
  2876. e4.to instanceof un ? e4.from ? e4.updateMethod = ds : (this.staticOptions.push(e4), ee(this.animationOptions, e4)) : e4.to instanceof A ? (e4.updateMethod = us, isNaN(e4.from) || (i3 = this.object[cs(e4.property, "relative")], isNaN(i3) || (e4.from = V(100 * i3)))) : (this.staticOptions.push(e4), ee(this.animationOptions, e4));
  2877. }
  2878. if (this.applyStaticOptions(), this.events.isEnabled("animationstarted")) {
  2879. var n3 = { type: "animationstarted", target: this, progress: this.progress };
  2880. this.events.dispatchImmediately("animationstarted", n3);
  2881. }
  2882. return this.update(), this.duration === 0 && this.end(), this;
  2883. }, e3.prototype.loop = function(t3) {
  2884. return tt(t3) || (t3 = 1 / 0), this._loop = t3, this;
  2885. }, e3.prototype.pause = function() {
  2886. return this._pause = true, this._delayTimeout && (this.removeDispose(this._delayTimeout), this._delayTimeout = null), ee(Qa.animations, this), ee(this.object.animations, this), this;
  2887. }, e3.prototype.resume = function() {
  2888. return this._start(), this._startTime = Date.now() - this._time, this;
  2889. }, e3.prototype.end = function() {
  2890. if (this._loop == 0 && this.pause(), this.setProgress(1), this.applyStaticOptions(), this.events.isEnabled("animationended")) {
  2891. var t3 = { type: "animationended", target: this, progress: this.progress };
  2892. this.events.dispatchImmediately("animationended", t3);
  2893. }
  2894. return this._loop > 0 ? (this._loop--, this.start()) : (this.stop(), this._isFinished = true), this;
  2895. }, e3.prototype.kill = function() {
  2896. this.pause(), this._isFinished = true;
  2897. }, e3.prototype.isFinished = function() {
  2898. return this._isFinished;
  2899. }, e3.prototype.applyStaticOptions = function() {
  2900. var t3 = this;
  2901. Ut(this.staticOptions, function(e4) {
  2902. e4.childObject ? e4.childObject[e4.property] = t3.progress == 1 ? e4.to : e4.from : t3.object[e4.property] = t3.progress == 1 ? e4.to : e4.from;
  2903. });
  2904. }, e3.prototype.stop = function(t3) {
  2905. if (this.pause(), !t3 && this.events.isEnabled("animationstopped")) {
  2906. var e4 = { type: "animationstopped", target: this, progress: this.progress };
  2907. this.events.dispatchImmediately("animationstopped", e4);
  2908. }
  2909. return this;
  2910. }, e3.prototype.setProgress = function(t3) {
  2911. var e4 = this;
  2912. if (this._time = this.duration * t3, Ut(this.animationOptions, function(i4) {
  2913. if (i4.updateMethod && Z(i4.from)) {
  2914. var n3 = i4.updateMethod(t3, i4.from, i4.to);
  2915. i4.childObject ? i4.childObject[i4.property] = n3 : e4.object[i4.property] = n3;
  2916. }
  2917. }), this.progress = t3, this.events.isEnabled("animationprogress")) {
  2918. var i3 = { type: "animationprogress", target: this, progress: this.progress };
  2919. this.events.dispatchImmediately("animationprogress", i3);
  2920. }
  2921. Qa.requestFrame();
  2922. }, e3.prototype.update = function() {
  2923. if (!this._pause) {
  2924. var t3 = void 0;
  2925. this._time = ut(Date.now() - this._startTime, 0, this.duration);
  2926. var e4 = this._time / this.duration;
  2927. t3 = this.easing(e4), (this.duration == 0 || !tt(t3) || e4 >= 1) && (t3 = 1), this.setProgress(t3), lt(this._time / this.duration, 6) == 1 && this.end();
  2928. }
  2929. return this;
  2930. }, Object.defineProperty(e3.prototype, "delayed", { get: function() {
  2931. return !!this._delayTimeout;
  2932. }, enumerable: true, configurable: true }), e3.prototype.stopSameAnimations = function() {
  2933. var t3 = this;
  2934. Ut(oe(this.object.animations), function(e4) {
  2935. if (e4 !== t3 && !e4.delayed) {
  2936. var i3 = [];
  2937. Ut(t3.animationOptions, function(t4) {
  2938. Ut(e4.animationOptions, function(n3) {
  2939. t4.property == n3.property && t4.childObject == n3.childObject && (i3.push(n3), e4.animationOptions.length == 0 && e4.kill());
  2940. });
  2941. }), Ut(i3, function(t4) {
  2942. ee(e4.animationOptions, t4);
  2943. });
  2944. }
  2945. });
  2946. }, e3.prototype.asFunction = function(e4) {
  2947. return e4 == "easing" || t2.prototype.asIs.call(this, e4);
  2948. }, e3;
  2949. }(mn), ms = "http://www.w3.org/2000/svg", vs = "http://www.w3.org/2000/xmlns/", bs = "http://www.w3.org/1999/xlink";
  2950. function xs(t2, e3, i3, n3) {
  2951. return t2.addEventListener(e3, i3, n3 || false), new ye(function() {
  2952. t2.removeEventListener(e3, i3, n3 || false);
  2953. });
  2954. }
  2955. function _s(t2) {
  2956. if (Q(t2)) {
  2957. var e3 = document.getElementById(t2);
  2958. if (e3 == null && (e3 = document.getElementsByClassName(t2)[0]), e3 instanceof HTMLElement)
  2959. return e3;
  2960. } else if (t2 instanceof HTMLElement)
  2961. return t2;
  2962. }
  2963. function Ps(t2, e3) {
  2964. if (t2)
  2965. if (t2.classList)
  2966. Ut(e3.split(" "), function(e4) {
  2967. t2.classList.add(e4);
  2968. });
  2969. else {
  2970. var i3 = t2.getAttribute("class");
  2971. i3 ? t2.setAttribute("class", i3.split(" ").filter(function(t3) {
  2972. return t3 !== e3;
  2973. }).join(" ") + " " + e3) : t2.setAttribute("class", e3);
  2974. }
  2975. }
  2976. function ws(t2, e3) {
  2977. if (t2)
  2978. if (t2.classList)
  2979. t2.classList.remove(e3);
  2980. else {
  2981. var i3 = t2.getAttribute("class");
  2982. i3 && t2.setAttribute("class", i3.split(" ").filter(function(t3) {
  2983. return t3 !== e3;
  2984. }).join(" "));
  2985. }
  2986. }
  2987. function Cs(t2, e3, i3) {
  2988. t2.style[e3] = i3;
  2989. }
  2990. function Os(t2, e3) {
  2991. return t2.currentStyle ? t2.currentStyle[e3] : document.defaultView.getComputedStyle(t2, null).getPropertyValue(e3);
  2992. }
  2993. function Ss() {
  2994. if (document.activeElement && document.activeElement != document.body)
  2995. if (document.activeElement.blur)
  2996. document.activeElement.blur();
  2997. else {
  2998. var t2 = document.createElement("button");
  2999. t2.style.position = "fixed", t2.style.top = "0px", t2.style.left = "-10000px", document.body.appendChild(t2), t2.focus(), t2.blur(), document.body.removeChild(t2);
  3000. }
  3001. }
  3002. function Is(t2) {
  3003. if (t2 instanceof HTMLElement)
  3004. t2.focus();
  3005. else {
  3006. var e3 = document.createElement("input"), i3 = document.createElementNS(ms, "foreignObject");
  3007. i3.appendChild(e3), t2.appendChild(i3), e3.focus(), e3.disabled = true, i3.remove();
  3008. }
  3009. }
  3010. function Ds(t2) {
  3011. if (t2.outerHTML)
  3012. return t2.outerHTML;
  3013. var e3 = document.createElement("div"), i3 = t2.cloneNode(true);
  3014. return e3.appendChild(i3), e3.innerHTML;
  3015. }
  3016. function ks(t2) {
  3017. return t2 instanceof Object && t2 && t2.nodeType === 1;
  3018. }
  3019. function Ts(t2, e3) {
  3020. for (var i3 = e3; ; ) {
  3021. if (t2 === i3)
  3022. return true;
  3023. if (i3.parentNode == null) {
  3024. if (i3.host == null)
  3025. return false;
  3026. i3 = i3.host;
  3027. } else
  3028. i3 = i3.parentNode;
  3029. }
  3030. }
  3031. function As(t2) {
  3032. for (var e3 = t2; ; ) {
  3033. if (e3.parentNode == null)
  3034. return e3.host != null ? e3 : null;
  3035. e3 = e3.parentNode;
  3036. }
  3037. }
  3038. function Vs(t2) {
  3039. for (var e3 = t2.ownerDocument, i3 = t2; ; ) {
  3040. if (i3.parentNode == null)
  3041. return i3 === e3 || i3.host != null ? i3 : null;
  3042. i3 = i3.parentNode;
  3043. }
  3044. }
  3045. function Fs(t2, e3) {
  3046. Ut(t2.attributes, function(t3) {
  3047. t3.value != null && e3.setAttribute(t3.name, t3.value);
  3048. });
  3049. }
  3050. function Ms(t2) {
  3051. ke(function() {
  3052. try {
  3053. var e3 = t2.getBoundingClientRect(), i3 = e3.left - Math.round(e3.left), n3 = e3.top - Math.round(e3.top);
  3054. i3 !== 0 && Te(function() {
  3055. t2.style.left = i3 + "px";
  3056. }), n3 !== 0 && Te(function() {
  3057. t2.style.top = n3 + "px";
  3058. });
  3059. } catch (t3) {
  3060. }
  3061. });
  3062. }
  3063. var Ls = function(t2) {
  3064. function e3(e4, i3, n3) {
  3065. var r3 = this, s2 = function(t3) {
  3066. return t3 == null ? (Z(fs) || ((e5 = document.createElement("style")).type = "text/css", ls.nonce != "" && e5.setAttribute("nonce", ls.nonce), document.head.appendChild(e5), fs = e5.sheet), fs) : ((e5 = document.createElement("style")).type = "text/css", ls.nonce != "" && e5.setAttribute("nonce", ls.nonce), t3.appendChild(e5), e5.sheet);
  3067. var e5;
  3068. }(e4);
  3069. return (r3 = t2.call(this, function() {
  3070. var t3 = Xt(s2.cssRules, r3._rule);
  3071. if (t3 === -1)
  3072. throw new Error("Could not dispose StyleRule");
  3073. s2.deleteRule(t3);
  3074. }) || this)._rule = function(t3, e5) {
  3075. var i4 = t3.cssRules.length;
  3076. return t3.insertRule(e5 + "{}", i4), t3.cssRules[i4];
  3077. }(s2, i3), Ne(n3, function(t3, e5) {
  3078. r3.setStyle(t3, e5);
  3079. }), r3;
  3080. }
  3081. return C(e3, t2), Object.defineProperty(e3.prototype, "selector", { get: function() {
  3082. return this._rule.selectorText;
  3083. }, set: function(t3) {
  3084. this._rule.selectorText = t3;
  3085. }, enumerable: true, configurable: true }), e3.prototype._setVendorPrefixName = function(t3, e4) {
  3086. var i3 = this._rule.style;
  3087. i3.setProperty("-webkit-" + t3, e4, ""), i3.setProperty("-moz-" + t3, e4, ""), i3.setProperty("-ms-" + t3, e4, ""), i3.setProperty("-o-" + t3, e4, ""), i3.setProperty(t3, e4, "");
  3088. }, e3.prototype.setStyle = function(t3, e4) {
  3089. t3 === "transition" ? this._setVendorPrefixName(t3, e4) : this._rule.style.setProperty(t3, e4, "");
  3090. }, e3;
  3091. }(ye), js = 0, Es = function(t2) {
  3092. function e3(e4, i3, n3) {
  3093. var r3 = this, s2 = Z(n3) ? n3 : "__style_" + ++js + "__";
  3094. return (r3 = t2.call(this, e4, "." + s2, i3) || this)._className = s2, r3;
  3095. }
  3096. return C(e3, t2), Object.defineProperty(e3.prototype, "className", { get: function() {
  3097. return this._className;
  3098. }, set: function(t3) {
  3099. this._className = t3, this.selector = "." + t3;
  3100. }, enumerable: true, configurable: true }), e3.prototype.toString = function() {
  3101. return this._className;
  3102. }, e3;
  3103. }(Ls);
  3104. function Rs(t2) {
  3105. if (document.readyState !== "loading")
  3106. t2();
  3107. else {
  3108. var e3 = function() {
  3109. document.readyState !== "loading" && (document.removeEventListener("readystatechange", e3), t2());
  3110. };
  3111. document.addEventListener("readystatechange", e3);
  3112. }
  3113. }
  3114. function Bs(t2) {
  3115. var e3 = Os(t2, "font-family");
  3116. if (e3)
  3117. return e3;
  3118. var i3 = t2.parentElement || t2.parentNode;
  3119. return i3 ? Bs(i3) : void 0;
  3120. }
  3121. function Hs(t2) {
  3122. var e3 = Os(t2, "font-size");
  3123. if (e3)
  3124. return e3;
  3125. var i3 = t2.parentElement || t2.parentNode;
  3126. return i3 ? Hs(i3) : void 0;
  3127. }
  3128. function Ns(t2, e3) {
  3129. var i3 = t2.getBoundingClientRect(), n3 = it(e3) ? e3 : e3 ? [e3] : [];
  3130. if (n3.length) {
  3131. for (var r3 = 0; r3 < n3.length; r3++) {
  3132. var s2 = n3[r3];
  3133. if (!Ns(s2))
  3134. return false;
  3135. var a2 = s2.getBoundingClientRect();
  3136. if (i3.top >= 0 && i3.left >= 0 && i3.top <= a2.top + a2.height && i3.left <= a2.left + a2.width)
  3137. return true;
  3138. }
  3139. return false;
  3140. }
  3141. return i3.top >= 0 && i3.left >= 0 && i3.top <= (window.innerHeight || document.documentElement.clientHeight) && i3.left <= (window.innerWidth || document.documentElement.clientWidth);
  3142. }
  3143. var Ws = function() {
  3144. function t2(t3) {
  3145. this._isDisposed = false, this._x = 0, this._y = 0, this._rotationY = 0, this._rotationX = 0, this._rotation = 0, this._scale = 1, this.node = typeof t3 == "string" ? document.createElementNS(ms, t3) : t3;
  3146. }
  3147. return t2.prototype.removeNode = function() {
  3148. this.node && this.node.parentNode && this.node.parentNode.removeChild(this.node);
  3149. }, Object.defineProperty(t2.prototype, "transformString", { get: function() {
  3150. if (this.node)
  3151. return this._transformString;
  3152. }, enumerable: true, configurable: true }), t2.prototype.transform = function() {
  3153. var t3 = "translate(" + this._x + "," + this._y + ")";
  3154. if (this._scale != 1 && (t3 += (t3 ? " " : "") + "scale(" + this._scale + ")"), this._rotation != 0) {
  3155. var e3 = "rotate(" + this._rotation + ")";
  3156. this._rotationX && this._rotationY && (e3 = "rotate(" + this._rotation + " " + this._rotationX + " " + this._rotationY + ")"), t3 += (t3 ? " " : "") + e3;
  3157. }
  3158. this._transformString = t3, this.node.setAttribute("transform", t3);
  3159. }, t2.prototype.getBBox = function() {
  3160. var t3 = { width: 0, height: 0, x: 0, y: 0 };
  3161. if (this.node && this.node.parentNode)
  3162. try {
  3163. var e3 = this.node.getBBox();
  3164. t3.x = e3.x, t3.y = e3.y, t3.width = e3.width, t3.height = e3.height;
  3165. } catch (t4) {
  3166. }
  3167. return t3;
  3168. }, t2.prototype.moveTo = function(t3) {
  3169. if (t3) {
  3170. var e3 = t3.x, i3 = t3.y;
  3171. this._x == e3 && this._y == i3 || (this._x = e3, this._y = i3, this.transform());
  3172. }
  3173. }, Object.defineProperty(t2.prototype, "content", { get: function() {
  3174. return this.node.innerHTML || "";
  3175. }, set: function(t3) {
  3176. this.node.innerHTML = t3;
  3177. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "textContent", { get: function() {
  3178. return this.node.textContent || "";
  3179. }, set: function(t3) {
  3180. this.node.textContent = t3;
  3181. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "x", { get: function() {
  3182. return this._x;
  3183. }, set: function(t3) {
  3184. this._x != t3 && (this._x = t3, this.transform());
  3185. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "y", { get: function() {
  3186. return this._y;
  3187. }, set: function(t3) {
  3188. this._y != t3 && (this._y = t3, this.transform());
  3189. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rotation", { get: function() {
  3190. return this._rotation;
  3191. }, set: function(t3) {
  3192. this._rotation != t3 && (this._rotation = t3, this.transform());
  3193. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rotationX", { get: function() {
  3194. return this._rotationX;
  3195. }, set: function(t3) {
  3196. this._rotationX != t3 && (this._rotationX = t3, this.transform());
  3197. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "rotationY", { get: function() {
  3198. return this._rotationY;
  3199. }, set: function(t3) {
  3200. this._rotationY != t3 && (this._rotationY = t3, this.transform());
  3201. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "scale", { get: function() {
  3202. return this._scale;
  3203. }, set: function(t3) {
  3204. this._scale != t3 && (this._scale = t3, this.transform());
  3205. }, enumerable: true, configurable: true }), t2.prototype.removeAttr = function(t3) {
  3206. this.node.removeAttribute(t3);
  3207. }, t2.prototype.attr = function(t3) {
  3208. var e3 = this;
  3209. return Ne(t3, function(t4, i3) {
  3210. Z(i3) ? e3.node.setAttribute(t4, i3) : e3.node.removeAttribute(t4);
  3211. }), this;
  3212. }, t2.prototype.getAttr = function(t3) {
  3213. return this.node.getAttribute(t3);
  3214. }, t2.prototype.attrNS = function(t3, e3, i3) {
  3215. return this.node.setAttributeNS(t3, e3, i3), this;
  3216. }, t2.prototype.getAttrNS = function(t3, e3) {
  3217. return this.node.getAttributeNS(t3, e3);
  3218. }, t2.prototype.removeStyle = function(t3) {
  3219. this.node.style[t3] = null, delete this.node.style[t3];
  3220. }, t2.prototype.getStyle = function(t3) {
  3221. return this.node.style[t3];
  3222. }, t2.prototype.addStyle = function(t3) {
  3223. var e3 = this;
  3224. return Ne(t3, function(t4, i3) {
  3225. Z(i3) ? e3.node.style[t4] = i3 : e3.removeStyle(t4);
  3226. }), this;
  3227. }, t2.prototype.addClass = function(t3) {
  3228. Ps(this.node, t3);
  3229. }, t2.prototype.removeClass = function(t3) {
  3230. ws(this.node, t3);
  3231. }, t2.prototype.setClass = function(t3) {
  3232. this.node.setAttribute("class", t3);
  3233. }, t2.prototype.removeChildNodes = function() {
  3234. for (; this.node.childNodes.length > 0; )
  3235. this.node.removeChild(this.node.firstChild);
  3236. }, t2.prototype.isDisposed = function() {
  3237. return this._isDisposed;
  3238. }, t2.prototype.dispose = function() {
  3239. this.removeNode();
  3240. }, t2;
  3241. }(), Xs = function(t2) {
  3242. function e3(e4) {
  3243. return t2.call(this, e4) || this;
  3244. }
  3245. return C(e3, t2), e3.prototype.add = function(t3) {
  3246. t3 && this.node.appendChild(t3.node);
  3247. }, e3.prototype.addToBack = function(t3) {
  3248. if (t3) {
  3249. var e4 = this.node.childNodes[0];
  3250. e4 ? e4 != t3.node && this.node.insertBefore(t3.node, e4) : this.node.appendChild(t3.node);
  3251. }
  3252. }, e3.prototype.removeElement = function(t3) {
  3253. if (t3)
  3254. try {
  3255. t3.node && t3.node.parentNode == this.node && this.node.removeChild(t3.node);
  3256. } catch (t4) {
  3257. }
  3258. }, e3.prototype.hasChild = function(t3) {
  3259. for (var e4 = 0; e4 < this.node.childNodes.length; e4++)
  3260. if (this.node.childNodes[e4] == t3.node)
  3261. return true;
  3262. return false;
  3263. }, Object.defineProperty(e3.prototype, "content", { get: function() {
  3264. return this.node.innerHTML;
  3265. }, set: function(t3) {
  3266. this.node.innerHTML = t3;
  3267. }, enumerable: true, configurable: true }), e3.prototype.removeChildren = function() {
  3268. if (this.node.childNodes)
  3269. for (; this.node.childNodes.length > 0; ) {
  3270. var t3 = this.node.firstChild;
  3271. t3 && t3.parentNode && t3.parentNode.removeChild(t3);
  3272. }
  3273. }, e3;
  3274. }(Ws), Ys = function(t2) {
  3275. function e3() {
  3276. var e4 = t2.call(this) || this;
  3277. return e4._purposes = { stroke: dn("#e5e5e5"), fill: dn("#f3f3f3"), primaryButton: dn("#6794dc"), primaryButtonHover: dn("#6771dc"), primaryButtonDown: dn("#68dc75"), primaryButtonActive: dn("#68dc75"), primaryButtonText: dn("#FFFFFF"), primaryButtonStroke: dn("#FFFFFF"), secondaryButton: dn("#d9d9d9"), secondaryButtonHover: dn("#d9d9d9").brighten(-0.25), secondaryButtonDown: dn("#d9d9d9").brighten(-0.35), secondaryButtonActive: dn("#d9d9d9").brighten(0.35), secondaryButtonText: dn("#000000"), secondaryButtonStroke: dn("#FFFFFF"), grid: dn("#000000"), background: dn("#ffffff"), alternativeBackground: dn("#000000"), text: dn("#000000"), alternativeText: dn("#FFFFFF"), disabledBackground: dn("#999999"), positive: dn("#67dc75"), negative: dn("#dc6788") }, e4.className = "InterfaceColorSet", e4.applyTheme(), e4;
  3278. }
  3279. return C(e3, t2), e3.prototype.debug = function() {
  3280. }, e3.prototype.getFor = function(t3) {
  3281. return this._purposes[t3];
  3282. }, e3.prototype.setFor = function(t3, e4) {
  3283. this._purposes[t3] = e4;
  3284. }, e3;
  3285. }(yn);
  3286. Ii.registeredClasses.InterfaceColorSet = Ys;
  3287. var zs = new Pi(), Us = function(t2) {
  3288. function e3() {
  3289. var e4 = t2 !== null && t2.apply(this, arguments) || this;
  3290. return e4._domEvents = {}, e4;
  3291. }
  3292. return C(e3, t2), e3.prototype._addDOMEvent = function(t3, e4, i3, n3) {
  3293. var r3 = this;
  3294. if (!this._domEvents[t3]) {
  3295. var s2 = function(t4) {
  3296. i3.call(n3, e4, t4);
  3297. };
  3298. this.target.element.addEventListener(t3, s2, false), this._domEvents[t3] = new be(function() {
  3299. delete r3._domEvents[t3], r3.target.element.removeEventListener(t3, s2, false);
  3300. });
  3301. }
  3302. return this._domEvents[t3].increment();
  3303. }, e3.prototype._dispatchKeyboardEvent = function(t3, e4) {
  3304. this.target.events.isEnabled(t3) && this.target.events.dispatchImmediately(t3, { type: t3, target: this.target, event: e4 });
  3305. }, e3.prototype._on = function(e4, i3, n3, r3, s2, a2) {
  3306. var o3 = t2.prototype._on.call(this, e4, i3, n3, r3, s2, a2), l2 = [o3.disposer];
  3307. switch (i3) {
  3308. case "hit":
  3309. case "doublehit":
  3310. case "rightclick":
  3311. case "down":
  3312. case "up":
  3313. this.target.clickable = true;
  3314. break;
  3315. case "drag":
  3316. case "dragstart":
  3317. case "dragstop":
  3318. this.target.draggable = true;
  3319. break;
  3320. case "track":
  3321. this.target.trackable = true;
  3322. break;
  3323. case "resize":
  3324. this.target.resizable = true;
  3325. break;
  3326. case "swipe":
  3327. case "swipeleft":
  3328. case "swiperight":
  3329. this.target.swipeable = true;
  3330. break;
  3331. case "wheel":
  3332. case "wheelup":
  3333. case "wheeldown":
  3334. case "wheelleft":
  3335. case "wheelright":
  3336. this.target.wheelable = true;
  3337. break;
  3338. case "over":
  3339. case "out":
  3340. this.target.hoverable = true;
  3341. break;
  3342. case "focus":
  3343. case "blur":
  3344. case "focusin":
  3345. case "focusout":
  3346. this.target.focusable = true;
  3347. break;
  3348. case "keydown":
  3349. case "keyup":
  3350. case "keypress":
  3351. case "input":
  3352. l2.push(this._addDOMEvent(i3, i3, this._dispatchKeyboardEvent, this));
  3353. }
  3354. return o3.disposer = new me(l2), o3;
  3355. }, e3;
  3356. }(Me), Gs = function(t2) {
  3357. function e3(e4) {
  3358. var i3 = t2.call(this) || this;
  3359. return i3._eventDispatcher = new Us(i3), i3.eventDisposers = new Pi(), i3.replacedStyles = new Pi(), i3._clickable = false, i3._contextMenuDisabled = false, i3._hoverable = false, i3._trackable = false, i3._draggable = false, i3._swipeable = false, i3._resizable = false, i3._wheelable = false, i3._inert = false, i3._isHover = false, i3.isRealHover = false, i3._isHoverByTouch = false, i3._isDown = false, i3._isFocused = false, i3._isTouchProtected = false, i3._inertiaOptions = new Pi(), i3.inertias = new Pi(), i3._hitOptions = {}, i3._hoverOptions = {}, i3._swipeOptions = {}, i3._keyboardOptions = {}, i3._mouseOptions = {}, i3._cursorOptions = { defaultStyle: [{ property: "cursor", value: "default" }] }, i3._disposers.push(i3._eventDispatcher), i3._element = e4, i3.className = "InteractionObject", i3._disposers.push(new _i(i3.inertias)), i3._disposers.push(new _i(i3.eventDisposers)), i3.applyTheme(), i3;
  3360. }
  3361. return C(e3, t2), Object.defineProperty(e3.prototype, "events", { get: function() {
  3362. return this._eventDispatcher;
  3363. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isHover", { get: function() {
  3364. return this._isHover;
  3365. }, set: function(t3) {
  3366. this.isHover != t3 && (this._isHover = t3, t3 ? ua().overObjects.moveValue(this) : (this.isRealHover = false, ua().overObjects.removeValue(this)));
  3367. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isHoverByTouch", { get: function() {
  3368. return this._isHoverByTouch;
  3369. }, set: function(t3) {
  3370. this.isHoverByTouch != t3 && (this._isHoverByTouch = t3);
  3371. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "overPointers", { get: function() {
  3372. return this._overPointers || (this._overPointers = new Fi()), this._overPointers;
  3373. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDown", { get: function() {
  3374. return this._isDown;
  3375. }, set: function(t3) {
  3376. this.isDown != t3 && (this._isDown = t3, t3 ? ua().downObjects.moveValue(this) : ua().downObjects.removeValue(this));
  3377. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "downPointers", { get: function() {
  3378. return this._downPointers || (this._downPointers = new Fi()), this._downPointers;
  3379. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isFocused", { get: function() {
  3380. return this._isFocused;
  3381. }, set: function(t3) {
  3382. this.isFocused != t3 && (this._isFocused = t3, ua().focusedObject = t3 ? this : void 0);
  3383. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isTouchProtected", { get: function() {
  3384. return this._isTouchProtected;
  3385. }, set: function(t3) {
  3386. this._isTouchProtected != t3 && (this._isTouchProtected = t3, t3 ? ua().unprepElement(this) : (this.draggable || this.swipeable || this.trackable || this.resizable) && ua().prepElement(this));
  3387. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "clickable", { get: function() {
  3388. return this._clickable;
  3389. }, set: function(t3) {
  3390. this._clickable !== t3 && (this._clickable = t3, ua().processClickable(this));
  3391. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contextMenuDisabled", { get: function() {
  3392. return this._contextMenuDisabled;
  3393. }, set: function(t3) {
  3394. this._contextMenuDisabled !== t3 && (this._contextMenuDisabled = t3, ua().processContextMenu(this));
  3395. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverable", { get: function() {
  3396. return this._hoverable;
  3397. }, set: function(t3) {
  3398. this._hoverable !== t3 && (this._hoverable = t3, ua().processHoverable(this));
  3399. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "trackable", { get: function() {
  3400. return this._trackable;
  3401. }, set: function(t3) {
  3402. this._trackable !== t3 && (this._trackable = t3, ua().processTrackable(this));
  3403. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "draggable", { get: function() {
  3404. return this._draggable;
  3405. }, set: function(t3) {
  3406. this._draggable !== t3 && (this._draggable = t3, ua().processDraggable(this));
  3407. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "swipeable", { get: function() {
  3408. return this._swipeable;
  3409. }, set: function(t3) {
  3410. this._swipeable !== t3 && (this._swipeable = t3, ua().processSwipeable(this));
  3411. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "resizable", { get: function() {
  3412. return this._resizable;
  3413. }, set: function(t3) {
  3414. this._resizable !== t3 && (this._resizable = t3, ua().processResizable(this));
  3415. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wheelable", { get: function() {
  3416. return this._wheelable;
  3417. }, set: function(t3) {
  3418. this._wheelable !== t3 && (this._wheelable = t3, ua().processWheelable(this));
  3419. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inert", { get: function() {
  3420. return this._inert;
  3421. }, set: function(t3) {
  3422. this._inert !== t3 && (this._inert = t3);
  3423. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "focusable", { get: function() {
  3424. return this._focusable;
  3425. }, set: function(t3) {
  3426. this._focusable !== t3 && (this._focusable = t3, this._focusable && this.tabindex == -1 && (this._tabindex = 1), ua().processFocusable(this));
  3427. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tabindex", { get: function() {
  3428. return $(this._tabindex, -1);
  3429. }, set: function(t3) {
  3430. this._tabindex !== t3 && (this._tabindex = t3, t3 > -1 && (this.focusable = true), ua().processFocusable(this));
  3431. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "element", { get: function() {
  3432. return this._element;
  3433. }, set: function(t3) {
  3434. this._element = t3;
  3435. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "originalPosition", { get: function() {
  3436. return this._originalPosition || { x: 0, y: 0 };
  3437. }, set: function(t3) {
  3438. this._originalPosition = t3;
  3439. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "originalScale", { get: function() {
  3440. return $(this._originalScale, 1);
  3441. }, set: function(t3) {
  3442. this._originalScale !== t3 && (this._originalScale = t3);
  3443. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "originalAngle", { get: function() {
  3444. return $(this._originalAngle, 0);
  3445. }, set: function(t3) {
  3446. this._originalAngle !== t3 && (this._originalAngle = t3);
  3447. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inertiaOptions", { get: function() {
  3448. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("inertiaOptions", this._inertiaOptions) : this._inertiaOptions;
  3449. }, set: function(t3) {
  3450. this._inertiaOptions = t3;
  3451. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hitOptions", { get: function() {
  3452. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("hitOptions", this._hitOptions) : this._hitOptions;
  3453. }, set: function(t3) {
  3454. this._hitOptions = t3;
  3455. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverOptions", { get: function() {
  3456. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("hoverOptions", this._hoverOptions) : this._hoverOptions;
  3457. }, set: function(t3) {
  3458. this._hoverOptions = t3;
  3459. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "swipeOptions", { get: function() {
  3460. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("swipeOptions", this._swipeOptions) : this._swipeOptions;
  3461. }, set: function(t3) {
  3462. this._swipeOptions = t3;
  3463. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keyboardOptions", { get: function() {
  3464. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("keyboardOptions", this._keyboardOptions) : this._keyboardOptions;
  3465. }, set: function(t3) {
  3466. this._keyboardOptions = t3;
  3467. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mouseOptions", { get: function() {
  3468. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("mouseOptions", this._mouseOptions) : this._mouseOptions;
  3469. }, set: function(t3) {
  3470. this._mouseOptions = t3;
  3471. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorOptions", { get: function() {
  3472. return this.sprite && this.sprite._adapterO ? this.sprite._adapterO.apply("cursorOptions", this._cursorOptions) : this._cursorOptions;
  3473. }, set: function(t3) {
  3474. this._cursorOptions = t3;
  3475. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  3476. t2.prototype.copyFrom.call(this, e4), this.inertiaOptions = e4.inertiaOptions, this.hitOptions = e4.hitOptions, this.hoverOptions = e4.hoverOptions, this.swipeOptions = e4.swipeOptions, this.keyboardOptions = e4.keyboardOptions, this.cursorOptions = e4.cursorOptions, this.contextMenuDisabled = e4.contextMenuDisabled, ua().applyCursorOverStyle(this);
  3477. }, e3.prototype.setEventDisposer = function(t3, e4, i3) {
  3478. var n3 = this.eventDisposers.getKey(t3);
  3479. e4 ? n3 == null && this.eventDisposers.setKey(t3, i3()) : n3 != null && (n3.dispose(), this.eventDisposers.removeKey(t3));
  3480. }, e3.prototype.dispose = function() {
  3481. t2.prototype.dispose.call(this);
  3482. var e4 = ua();
  3483. e4.overObjects.removeValue(this), e4.downObjects.removeValue(this), e4.trackedObjects.removeValue(this), e4.transformedObjects.removeValue(this), this.isHover && this.wheelable && e4.unlockWheel(), e4.focusedObject === this && (e4.focusedObject = void 0);
  3484. }, e3;
  3485. }(mn), Ks = function() {
  3486. function t2(t3, e3) {
  3487. this._disposed = false, this.directionX = 0, this.directionY = 0, this.interaction = t3, this.keyboardEvent = e3, this._startedOn = new Date().getTime(), ua().processDragStart(t3), Qa.animations.push(this), this.update();
  3488. }
  3489. return t2.prototype.update = function() {
  3490. var t3 = this.interaction, e3 = ua().getKeyboardOption(t3, "speed"), i3 = ua().getKeyboardOption(t3, "accelleration"), n3 = ua().getKeyboardOption(t3, "accellerationDelay"), r3 = { x: 0, y: 0 };
  3491. this.keyboardEvent.shiftKey ? (e3 *= 0.5, i3 = 1) : this.keyboardEvent.ctrlKey && (e3 *= 2);
  3492. var s2 = new Date().getTime() - this._startedOn, a2 = s2 - n3;
  3493. if (i3 > 0 && a2 > 0) {
  3494. var o3 = s2 / n3;
  3495. s2 = n3, r3.x += this.directionX * (e3 * i3 * o3 * a2), r3.y += this.directionY * (e3 * i3 * o3 * a2);
  3496. }
  3497. r3.x += this.directionX * (e3 * s2), r3.y += this.directionY * (e3 * s2), ua().handleTransformMove(t3, r3, { x: 0, y: 0 }, this.keyboardEvent, true, false);
  3498. }, t2.prototype.isDisposed = function() {
  3499. return this._disposed;
  3500. }, t2.prototype.dispose = function() {
  3501. this._disposed || (ua().processDragStop(this.interaction), ee(Qa.animations, this));
  3502. }, t2;
  3503. }(), Zs = function(t2) {
  3504. function e3(e4, i3, n3, r3) {
  3505. var s2 = t2.call(this) || this;
  3506. return s2.animations = [], s2.className = "Inertia", s2.interaction = e4, s2.type = i3, s2.point = n3, s2.startPoint = r3, s2._disposers.push(new gs(s2.animations)), s2;
  3507. }
  3508. return C(e3, t2), Object.defineProperty(e3.prototype, "x", { get: function() {
  3509. return this.point.x;
  3510. }, set: function(t3) {
  3511. tt(t3) && (this.point.x = t3, this.handleMove());
  3512. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y", { get: function() {
  3513. return this.point.y;
  3514. }, set: function(t3) {
  3515. tt(t3) && (this.point.y = t3, this.handleMove());
  3516. }, enumerable: true, configurable: true }), e3.prototype.handleMove = function() {
  3517. if (this.interaction.events.isEnabled("drag")) {
  3518. var t3 = { type: "drag", target: this.interaction, shift: { x: this.x - this.startPoint.x, y: this.y - this.startPoint.y }, startPoint: this.startPoint, point: { x: this.x, y: this.y }, touch: false };
  3519. this.interaction.events.dispatchImmediately("drag", t3);
  3520. }
  3521. }, e3.prototype.done = function() {
  3522. this.interaction.inertias.removeKey(this.type), this.type === "move" && ua().processDragStop(this.interaction), this.dispose();
  3523. }, e3;
  3524. }(yn), qs = function() {
  3525. function t2() {
  3526. }
  3527. return t2.prototype.getEventKey = function(t3) {
  3528. var e3;
  3529. switch (t3.keyCode || t3.which) {
  3530. case 38:
  3531. e3 = "up";
  3532. break;
  3533. case 40:
  3534. e3 = "down";
  3535. break;
  3536. case 37:
  3537. e3 = "left";
  3538. break;
  3539. case 39:
  3540. e3 = "right";
  3541. break;
  3542. case 13:
  3543. e3 = "enter";
  3544. break;
  3545. case 27:
  3546. e3 = "esc";
  3547. break;
  3548. case 36:
  3549. case 36:
  3550. e3 = "home";
  3551. break;
  3552. case 35:
  3553. case 35:
  3554. e3 = "end";
  3555. break;
  3556. case 9:
  3557. e3 = "tab";
  3558. break;
  3559. case 17:
  3560. e3 = "ctrl";
  3561. break;
  3562. case 18:
  3563. e3 = "alt";
  3564. break;
  3565. case 16:
  3566. e3 = "shift";
  3567. break;
  3568. case 32:
  3569. e3 = "space";
  3570. break;
  3571. case 33:
  3572. e3 = "pgup";
  3573. break;
  3574. case 34:
  3575. e3 = "pgdn";
  3576. break;
  3577. case 45:
  3578. e3 = "ins";
  3579. break;
  3580. case 46:
  3581. e3 = "del";
  3582. break;
  3583. case 107:
  3584. e3 = "plus";
  3585. break;
  3586. case 109:
  3587. e3 = "minus";
  3588. break;
  3589. default:
  3590. e3 = "other";
  3591. }
  3592. return e3;
  3593. }, t2.prototype.isKey = function(t3, e3) {
  3594. var i3 = this.getEventKey(t3);
  3595. return Q(e3) && (e3 = [e3]), e3.indexOf(i3) !== -1;
  3596. }, t2.prototype.shiftKey = function(t3) {
  3597. return t3.shiftKey;
  3598. }, t2.prototype.ctrlKey = function(t3) {
  3599. return t3.ctrlKey;
  3600. }, t2.prototype.altKey = function(t3) {
  3601. return t3.altKey;
  3602. }, t2.prototype.metaKey = function(t3) {
  3603. return t3.metaKey;
  3604. }, t2;
  3605. }(), $s = new qs(), Js = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5, month: 2592e6, year: 31536e6 };
  3606. function Qs(t2) {
  3607. switch (t2) {
  3608. case "year":
  3609. return;
  3610. case "month":
  3611. return "year";
  3612. case "week":
  3613. case "day":
  3614. return "month";
  3615. case "hour":
  3616. return "day";
  3617. case "minute":
  3618. return "hour";
  3619. case "second":
  3620. return "minute";
  3621. case "millisecond":
  3622. return "second";
  3623. }
  3624. }
  3625. function ta(t2, e3) {
  3626. return Z(e3) || (e3 = 1), Js[t2] * e3;
  3627. }
  3628. function ea() {
  3629. return new Date();
  3630. }
  3631. function ia() {
  3632. return ea().getTime();
  3633. }
  3634. function na(t2) {
  3635. return new Date(t2.getTime());
  3636. }
  3637. function ra(t2, e3, i3, n3) {
  3638. t2 = new Date(t2.getTime()), e3 = new Date(e3.getTime());
  3639. var r3 = 0, s2 = 0;
  3640. n3 || i3 == "millisecond" || (r3 = t2.getTimezoneOffset(), t2.setUTCMinutes(t2.getUTCMinutes() - r3), s2 = e3.getTimezoneOffset(), e3.setUTCMinutes(e3.getUTCMinutes() - s2));
  3641. var a2 = false;
  3642. switch (i3) {
  3643. case "year":
  3644. t2.getUTCFullYear() != e3.getUTCFullYear() && (a2 = true);
  3645. break;
  3646. case "month":
  3647. (t2.getUTCFullYear() != e3.getUTCFullYear() || t2.getUTCMonth() != e3.getUTCMonth()) && (a2 = true);
  3648. break;
  3649. case "day":
  3650. (t2.getUTCMonth() != e3.getUTCMonth() || t2.getUTCDate() != e3.getUTCDate()) && (a2 = true);
  3651. break;
  3652. case "hour":
  3653. t2.getUTCHours() != e3.getUTCHours() && (a2 = true);
  3654. break;
  3655. case "minute":
  3656. t2.getUTCMinutes() != e3.getUTCMinutes() && (a2 = true);
  3657. break;
  3658. case "second":
  3659. t2.getUTCSeconds() != e3.getUTCSeconds() && (a2 = true);
  3660. break;
  3661. case "millisecond":
  3662. t2.getTime() != e3.getTime() && (a2 = true);
  3663. }
  3664. if (a2)
  3665. return true;
  3666. var o3 = Qs(i3);
  3667. return !!o3 && (t2.setUTCMinutes(t2.getUTCMinutes() + r3), e3.setUTCMinutes(e3.getUTCMinutes() + s2), ra(t2, e3, o3, n3));
  3668. }
  3669. function sa(t2, e3, i3, n3) {
  3670. var r3 = 0;
  3671. switch (n3 || e3 == "millisecond" || (r3 = t2.getTimezoneOffset(), t2.setUTCMinutes(t2.getUTCMinutes() - r3)), e3) {
  3672. case "day":
  3673. var s2 = t2.getUTCDate();
  3674. t2.setUTCDate(s2 + i3);
  3675. break;
  3676. case "second":
  3677. var a2 = t2.getUTCSeconds();
  3678. t2.setUTCSeconds(a2 + i3);
  3679. break;
  3680. case "millisecond":
  3681. var o3 = t2.getUTCMilliseconds();
  3682. t2.setUTCMilliseconds(o3 + i3);
  3683. break;
  3684. case "hour":
  3685. var l2 = t2.getUTCHours();
  3686. t2.setUTCHours(l2 + i3);
  3687. break;
  3688. case "minute":
  3689. var h2 = t2.getUTCMinutes();
  3690. t2.setUTCMinutes(h2 + i3);
  3691. break;
  3692. case "year":
  3693. var p2 = t2.getUTCFullYear();
  3694. t2.setUTCFullYear(p2 + i3);
  3695. break;
  3696. case "month":
  3697. var u2 = t2.getUTCMonth();
  3698. t2.setUTCMonth(u2 + i3);
  3699. break;
  3700. case "week":
  3701. var d2 = t2.getUTCDate();
  3702. t2.setUTCDate(d2 + 7 * i3);
  3703. }
  3704. if (!n3 && e3 != "millisecond" && (t2.setUTCMinutes(t2.getUTCMinutes() + r3), e3 == "day" || e3 == "week" || e3 == "month" || e3 == "year")) {
  3705. var c2 = t2.getTimezoneOffset();
  3706. if (c2 != r3) {
  3707. var f2 = c2 - r3;
  3708. t2.setUTCMinutes(t2.getUTCMinutes() + f2), t2.getTimezoneOffset() != c2 && t2.setUTCMinutes(t2.getUTCMinutes() - f2);
  3709. }
  3710. }
  3711. return t2;
  3712. }
  3713. function aa(t2, e3, i3, n3, r3, s2, a2, o3) {
  3714. a2 === void 0 && (a2 = 0), tt(i3) || (i3 = 1);
  3715. var l2 = 0;
  3716. switch (o3 && ["day", "month", "week", "year"].indexOf(e3) != -1 && (t2 = oa(t2, o3)), r3 || e3 == "millisecond" || (l2 = t2.getTimezoneOffset(), t2.setUTCMinutes(t2.getUTCMinutes() - l2)), e3) {
  3717. case "day":
  3718. var h2 = t2.getUTCDate();
  3719. if (i3 > 1) {
  3720. if (s2) {
  3721. s2 = aa(s2, "day", 1);
  3722. var p2 = t2.getTime() - s2.getTime(), u2 = Math.floor(p2 / ta("day") / i3), d2 = ta("day", u2 * i3);
  3723. t2.setTime(s2.getTime() + d2 - l2 * ta("minute"));
  3724. }
  3725. } else
  3726. t2.setUTCDate(h2);
  3727. t2.setUTCHours(0, 0, 0, 0);
  3728. break;
  3729. case "second":
  3730. var c2 = t2.getUTCSeconds();
  3731. i3 > 1 && (c2 = Math.floor(c2 / i3) * i3), t2.setUTCSeconds(c2, 0);
  3732. break;
  3733. case "millisecond":
  3734. if (i3 == 1)
  3735. return t2;
  3736. var f2 = t2.getUTCMilliseconds();
  3737. f2 = Math.floor(f2 / i3) * i3, t2.setUTCMilliseconds(f2);
  3738. break;
  3739. case "hour":
  3740. var g2 = t2.getUTCHours();
  3741. i3 > 1 && (g2 = Math.floor(g2 / i3) * i3), t2.setUTCHours(g2, a2, 0, 0);
  3742. break;
  3743. case "minute":
  3744. var y2 = t2.getUTCMinutes();
  3745. f2 = t2.getUTCMilliseconds(), i3 > 1 && (y2 = Math.floor(y2 / i3) * i3), t2.setUTCMinutes(y2, 0, 0);
  3746. break;
  3747. case "month":
  3748. var m2 = t2.getUTCMonth();
  3749. i3 > 1 && (m2 = Math.floor(m2 / i3) * i3), t2.setUTCMonth(m2, 1), t2.setUTCHours(0, a2, 0, 0);
  3750. break;
  3751. case "year":
  3752. var v2 = t2.getUTCFullYear();
  3753. i3 > 1 && (v2 = Math.floor(v2 / i3) * i3), t2.setUTCFullYear(v2, 0, 1), t2.setUTCHours(0, a2, 0, 0);
  3754. break;
  3755. case "week":
  3756. var b2 = t2.getUTCDate(), x2 = t2.getUTCDay();
  3757. tt(n3) || (n3 = 1), b2 = x2 >= n3 ? b2 - x2 + n3 : b2 - (7 + x2) + n3, t2.setUTCDate(b2), t2.setUTCHours(0, a2, 0, 0);
  3758. }
  3759. if (!r3 && e3 != "millisecond" && (t2.setUTCMinutes(t2.getUTCMinutes() + l2), e3 == "day" || e3 == "week" || e3 == "month" || e3 == "year")) {
  3760. var _2 = t2.getTimezoneOffset();
  3761. if (_2 != l2) {
  3762. var P2 = _2 - l2;
  3763. t2.setUTCMinutes(t2.getUTCMinutes() + P2);
  3764. }
  3765. }
  3766. return t2;
  3767. }
  3768. function oa(t2, e3) {
  3769. return new Date(t2.toLocaleString("en-US", { timeZone: e3 }));
  3770. }
  3771. function la(t2) {
  3772. var e3 = new Date();
  3773. return e3.setHours(0, 0, 0, 0), oa(e3, t2).getMinutes();
  3774. }
  3775. var ha = function(t2) {
  3776. function e3() {
  3777. var i3 = t2.call(this) || this;
  3778. return i3._globalEventsAdded = false, i3._pointerEvents = { pointerdown: "mousedown", pointerup: "mouseup", pointermove: "mousemove", pointercancel: "mouseup", pointerover: "mouseover", pointerout: "mouseout", wheel: "wheel" }, i3._usePointerEventsOnly = false, i3._useTouchEventsOnly = false, i3._addHoverEvents = true, i3._passiveSupported = false, i3._delayedEvents = { out: [] }, i3.overObjects = new Fi(), i3.downObjects = new Fi(), i3.trackedObjects = new Fi(), i3.transformedObjects = new Fi(), i3.pointers = new Pi(), i3.inertiaOptions = new Pi(), i3.hitOptions = { doubleHitTime: 300, hitTolerance: 10, noFocus: true }, i3.hoverOptions = { touchOutBehavior: "leave", touchOutDelay: 1e3 }, i3.swipeOptions = { time: 500, verticalThreshold: 75, horizontalThreshold: 30 }, i3.keyboardOptions = { speed: 0.1, accelleration: 1.2, accellerationDelay: 2e3 }, i3.mouseOptions = { sensitivity: 1 }, i3.className = "Interaction", i3.body = i3.getInteraction(document.body), i3._disposers.push(i3.body), window.hasOwnProperty("PointerEvent") ? (i3._pointerEvents.pointerdown = "pointerdown", i3._pointerEvents.pointerup = "pointerup", i3._pointerEvents.pointermove = "pointermove", i3._pointerEvents.pointercancel = "pointercancel", i3._pointerEvents.pointerover = "pointerover", i3._pointerEvents.pointerout = "pointerout") : window.hasOwnProperty("MSPointerEvent") ? (i3._pointerEvents.pointerdown = "MSPointerDown", i3._pointerEvents.pointerup = "MSPointerUp", i3._pointerEvents.pointermove = "MSPointerMove", i3._pointerEvents.pointercancel = "MSPointerUp", i3._pointerEvents.pointerover = "MSPointerOver", i3._pointerEvents.pointerout = "MSPointerOut") : typeof matchMedia != "undefined" && matchMedia("(pointer:fine)").matches ? "ontouchstart" in window && (i3._addHoverEvents = false, i3._useTouchEventsOnly = true) : window.navigator.userAgent.match(/MSIE /) || i3.fullFF() ? i3._usePointerEventsOnly = true : i3._useTouchEventsOnly = true, "onwheel" in document.createElement("div") ? i3._pointerEvents.wheel = "wheel" : Z(document.onmousewheel) && (i3._pointerEvents.wheel = "mousewheel"), i3.inertiaOptions.setKey("move", { time: 100, duration: 500, factor: 1, easing: jr }), i3.inertiaOptions.setKey("resize", { time: 100, duration: 500, factor: 1, easing: jr }), i3._passiveSupported = e3.passiveSupported, i3.applyTheme(), i3;
  3779. }
  3780. return C(e3, t2), e3.prototype.fullFF = function() {
  3781. return window.navigator.userAgent.match(/Firefox/) && !window.navigator.userAgent.match(/Android/);
  3782. }, e3.prototype.debug = function() {
  3783. }, e3.prototype.addGlobalEvents = function() {
  3784. var t3 = this;
  3785. this._globalEventsAdded || (this._useTouchEventsOnly || (this._disposers.push(xs(document, this._pointerEvents.pointerdown, function(e4) {
  3786. t3.handleGlobalPointerDown(e4);
  3787. })), this._disposers.push(xs(document, this._pointerEvents.pointermove, function(e4) {
  3788. t3.handleGlobalPointerMove(e4);
  3789. })), this._disposers.push(xs(document, this._pointerEvents.pointerup, function(e4) {
  3790. t3.handleGlobalPointerUp(e4);
  3791. })), this._disposers.push(xs(document, this._pointerEvents.pointercancel, function(e4) {
  3792. t3.handleGlobalPointerUp(e4, true);
  3793. })), this._disposers.push(xs(document, "mouseenter", function(e4) {
  3794. Z(e4.relatedTarget) || e4.buttons != 0 && e4.which != 0 || t3.handleDocumentLeave(e4);
  3795. }))), this._usePointerEventsOnly || (this._disposers.push(xs(document, "touchstart", function(e4) {
  3796. t3.handleGlobalTouchStart(e4);
  3797. })), this._disposers.push(xs(document, "touchmove", function(e4) {
  3798. t3.handleGlobalTouchMove(e4);
  3799. })), this._disposers.push(xs(document, "touchend", function(e4) {
  3800. t3.handleGlobalTouchEnd(e4);
  3801. }))), this._disposers.push(xs(document, "keydown", function(e4) {
  3802. t3.handleGlobalKeyDown(e4);
  3803. })), this._disposers.push(xs(document, "keyup", function(e4) {
  3804. t3.handleGlobalKeyUp(e4);
  3805. })), this._globalEventsAdded = true);
  3806. }, e3.prototype.processClickable = function(t3) {
  3807. this.processTouchable(t3);
  3808. }, e3.prototype.processContextMenu = function(t3) {
  3809. t3.contextMenuDisabled ? t3.eventDisposers.hasKey("contextMenuDisabled") || t3.eventDisposers.setKey("contextMenuDisabled", xs(t3.element, "contextmenu", function(t4) {
  3810. t4.preventDefault();
  3811. })) : t3.eventDisposers.hasKey("contextMenuDisabled") && t3.eventDisposers.getKey("contextMenuDisabled").dispose();
  3812. }, e3.prototype.processHoverable = function(t3) {
  3813. var e4 = this;
  3814. if (t3.hoverable || t3.trackable)
  3815. this.addGlobalEvents(), this.applyCursorOverStyle(t3), !t3.eventDisposers.hasKey("hoverable") && this._addHoverEvents && t3.eventDisposers.setKey("hoverable", new me([xs(t3.element, this._pointerEvents.pointerout, function(i4) {
  3816. return e4.handlePointerOut(t3, i4);
  3817. }), xs(t3.element, this._pointerEvents.pointerover, function(i4) {
  3818. return e4.handlePointerOver(t3, i4);
  3819. })])), t3.trackable;
  3820. else {
  3821. var i3 = t3.eventDisposers.getKey("hoverable");
  3822. i3 != null && (i3.dispose(), t3.eventDisposers.removeKey("hoverable"));
  3823. }
  3824. this.processTouchable(t3);
  3825. }, e3.prototype.processMovable = function(t3) {
  3826. (t3.draggable || t3.swipeable || t3.trackable || t3.resizable) && (this.isGlobalElement(t3) || t3.isTouchProtected || this.prepElement(t3), this.applyCursorOverStyle(t3)), this.processTouchable(t3);
  3827. }, e3.prototype.processTrackable = function(t3) {
  3828. this.processHoverable(t3), this.processMovable(t3), t3.trackable ? this.trackedObjects.moveValue(t3) : this.trackedObjects.removeValue(t3);
  3829. }, e3.prototype.processDraggable = function(t3) {
  3830. this.processMovable(t3);
  3831. }, e3.prototype.processSwipeable = function(t3) {
  3832. this.processMovable(t3);
  3833. }, e3.prototype.processResizable = function(t3) {
  3834. this.processMovable(t3);
  3835. }, e3.prototype.processWheelable = function(t3) {
  3836. var e4 = this;
  3837. if (t3.wheelable)
  3838. t3.eventDisposers.hasKey("wheelable") || t3.eventDisposers.setKey("wheelable", new me([xs(t3.element, this._pointerEvents.wheel, function(i4) {
  3839. return e4.handleMouseWheel(t3, i4);
  3840. }, !!this._passiveSupported && { passive: false }), t3.events.on("out", function(i4) {
  3841. t3.wheelable && e4.unlockWheel();
  3842. }), t3.events.on("over", function(i4) {
  3843. t3.wheelable && e4.lockWheel();
  3844. })]));
  3845. else {
  3846. var i3 = t3.eventDisposers.getKey("wheelable");
  3847. i3 != null && (i3.dispose(), t3.eventDisposers.removeKey("wheelable"));
  3848. }
  3849. }, e3.prototype.processFocusable = function(t3) {
  3850. var e4 = this;
  3851. if (t3.focusable === true && t3.tabindex > -1 && !this._useTouchEventsOnly)
  3852. t3.eventDisposers.hasKey("focusable") || t3.eventDisposers.setKey("focusable", new me([xs(t3.element, "focus", function(i4) {
  3853. return e4.handleFocus(t3, i4);
  3854. }), xs(t3.element, "blur", function(i4) {
  3855. return e4.handleBlur(t3, i4);
  3856. }), xs(t3.element, this._pointerEvents.pointerdown, function(i4) {
  3857. return e4.handleFocusBlur(t3, i4);
  3858. }), xs(t3.element, "touchstart", function(i4) {
  3859. return e4.handleFocusBlur(t3, i4);
  3860. }, !!this._passiveSupported && { passive: false })]));
  3861. else {
  3862. var i3 = t3.eventDisposers.getKey("focusable");
  3863. i3 != null && (i3.dispose(), t3.eventDisposers.removeKey("focusable"));
  3864. }
  3865. }, e3.prototype.processTouchable = function(t3) {
  3866. var e4 = this;
  3867. if (t3.clickable || t3.hoverable || t3.trackable || t3.draggable || t3.swipeable || t3.resizable)
  3868. this.addGlobalEvents(), t3.eventDisposers.hasKey("touchable") || (this._useTouchEventsOnly || this._usePointerEventsOnly ? this._useTouchEventsOnly ? this._usePointerEventsOnly || t3.eventDisposers.setKey("touchable", xs(t3.element, "touchstart", function(i4) {
  3869. return e4.handleTouchDown(t3, i4);
  3870. }, !!this._passiveSupported && { passive: false })) : t3.eventDisposers.setKey("touchable", xs(t3.element, this._pointerEvents.pointerdown, function(i4) {
  3871. return e4.handlePointerDown(t3, i4);
  3872. })) : t3.eventDisposers.setKey("touchable", new me([xs(t3.element, this._pointerEvents.pointerdown, function(i4) {
  3873. return e4.handlePointerDown(t3, i4);
  3874. }), xs(t3.element, "touchstart", function(i4) {
  3875. return e4.handleTouchDown(t3, i4);
  3876. }, !!this._passiveSupported && { passive: false })])));
  3877. else {
  3878. var i3 = t3.eventDisposers.getKey("touchable");
  3879. i3 != null && (i3.dispose(), t3.eventDisposers.removeKey("touchable"));
  3880. }
  3881. }, e3.prototype.handleFocus = function(t3, e4) {
  3882. if (t3.focusable) {
  3883. if (t3.isFocused = true, t3.events.isEnabled("focus") && !Qa.isPaused) {
  3884. var i3 = { type: "focus", target: t3, event: e4 };
  3885. t3.events.dispatchImmediately("focus", i3);
  3886. }
  3887. } else
  3888. e4.preventDefault();
  3889. }, e3.prototype.handleFocusBlur = function(t3, e4) {
  3890. t3.focusable !== false && this.getHitOption(t3, "noFocus") && t3.events.once("focus", function() {
  3891. t3.events.disableType("blur"), Ss(), t3.sprite && t3.sprite.handleBlur(), t3.events.enableType("blur");
  3892. });
  3893. }, e3.prototype.handleBlur = function(t3, e4) {
  3894. if (t3.focusable) {
  3895. if (t3.isFocused = false, t3.events.isEnabled("blur") && !Qa.isPaused) {
  3896. var i3 = { type: "blur", target: t3, event: e4 };
  3897. t3.events.dispatchImmediately("blur", i3);
  3898. }
  3899. } else
  3900. e4.preventDefault();
  3901. }, e3.prototype.handleGlobalKeyDown = function(t3) {
  3902. if (this.focusedObject) {
  3903. if ($s.isKey(t3, "esc"))
  3904. Ss();
  3905. else if (this.focusedObject.draggable && $s.isKey(t3, ["up", "down", "left", "right"])) {
  3906. t3.preventDefault();
  3907. var e4 = this.focusedObject, i3 = "interactionKeyboardObject";
  3908. if (e4.eventDisposers.hasKey(i3))
  3909. return;
  3910. var n3 = new Ks(e4, t3);
  3911. switch (e4.eventDisposers.setKey(i3, n3), $s.getEventKey(t3)) {
  3912. case "up":
  3913. n3.directionY = -1;
  3914. break;
  3915. case "down":
  3916. n3.directionY = 1;
  3917. break;
  3918. case "left":
  3919. n3.directionX = -1;
  3920. break;
  3921. case "right":
  3922. n3.directionX = 1;
  3923. }
  3924. }
  3925. }
  3926. }, e3.prototype.handleGlobalKeyUp = function(t3) {
  3927. var e4 = "interactionKeyboardObject";
  3928. if (this.focusedObject) {
  3929. var i3 = this.focusedObject.eventDisposers.getKey(e4);
  3930. i3 != null && (t3.preventDefault(), i3.dispose(), this.focusedObject.eventDisposers.removeKey(e4)), $s.isKey(t3, "enter") && this.focusedObject.sprite && !this.focusedObject.sprite.events.isEnabled("toggled") && (this.focusedObject.sprite.events.isEnabled("hit") ? this.focusedObject.dispatchImmediately("hit") : this.focusedObject.sprite.showTooltipOn == "hit" && this.focusedObject.dispatchImmediately("up"));
  3931. }
  3932. }, e3.prototype.handleGlobalPointerMove = function(t3) {
  3933. var e4 = this.getPointer(t3);
  3934. if (e4.point = this.getPointerPoint(t3), this.events.isEnabled("track") && !Qa.isPaused) {
  3935. var i3 = { type: "track", target: this, event: t3, pointer: e4, touch: e4.touch };
  3936. this.events.dispatchImmediately("track", i3);
  3937. }
  3938. this.addBreadCrumb(e4, e4.point), this.handleGlobalMove(e4, t3);
  3939. }, e3.prototype.handleGlobalPointerDown = function(t3) {
  3940. this.processDelayed();
  3941. var e4 = this.getPointer(t3);
  3942. if (this.events.isEnabled("down") && !Qa.isPaused) {
  3943. var i3 = { type: "down", target: this, event: t3, pointer: e4, touch: e4.touch };
  3944. this.events.dispatchImmediately("down", i3);
  3945. }
  3946. }, e3.prototype.preventTouchAction = function(t3) {
  3947. t3.defaultPrevented || t3.preventDefault();
  3948. }, e3.prototype.handleGlobalPointerUp = function(t3, e4) {
  3949. e4 === void 0 && (e4 = false);
  3950. var i3 = this.getPointer(t3);
  3951. if (this.events.isEnabled("up") && !Qa.isPaused) {
  3952. var n3 = { type: "up", target: this, event: t3, pointer: i3, touch: i3.touch };
  3953. this.events.dispatchImmediately("up", n3);
  3954. }
  3955. this.handleGlobalUp(i3, t3, e4);
  3956. }, e3.prototype.handleGlobalTouchMove = function(t3) {
  3957. for (var e4 = 0; e4 < t3.changedTouches.length; e4++) {
  3958. var i3 = this.getPointer(t3.changedTouches[e4]);
  3959. if (i3.point = this.getPointerPoint(t3.changedTouches[e4]), this.events.isEnabled("track") && !Qa.isPaused) {
  3960. var n3 = { type: "track", target: this, event: t3, pointer: i3, touch: i3.touch };
  3961. this.events.dispatchImmediately("track", n3);
  3962. }
  3963. this.addBreadCrumb(i3, i3.point), this.handleGlobalMove(i3, t3);
  3964. }
  3965. }, e3.prototype.handleGlobalTouchStart = function(t3) {
  3966. this.processDelayed();
  3967. for (var e4 = 0; e4 < t3.changedTouches.length; e4++) {
  3968. var i3 = this.getPointer(t3.changedTouches[e4]);
  3969. if (!this._usePointerEventsOnly && this.events.isEnabled("down") && !Qa.isPaused) {
  3970. var n3 = { type: "down", target: this, event: t3, pointer: i3, touch: i3.touch };
  3971. this.events.dispatchImmediately("down", n3);
  3972. }
  3973. }
  3974. }, e3.prototype.handleGlobalTouchEnd = function(t3) {
  3975. for (var e4 = 0; e4 < t3.changedTouches.length; e4++) {
  3976. var i3 = this.getPointer(t3.changedTouches[e4]);
  3977. if (this.events.isEnabled("up") && !Qa.isPaused) {
  3978. var n3 = { type: "up", target: this, event: t3, pointer: i3, touch: i3.touch };
  3979. this.events.dispatchImmediately("up", n3);
  3980. }
  3981. this.handleGlobalUp(i3, t3);
  3982. }
  3983. }, e3.prototype.handlePointerDown = function(t3, e4) {
  3984. var i3 = this.getPointer(e4);
  3985. (i3.touch || e4.which == 1 || e4.which == 3) && (i3.button = e4.which, this.resetPointer(i3, e4), this.handleDown(t3, i3, e4));
  3986. }, e3.prototype.handlePointerOver = function(t3, e4) {
  3987. var i3 = this.getPointer(e4);
  3988. this.handleOver(t3, i3, e4);
  3989. }, e3.prototype.handlePointerOut = function(t3, e4) {
  3990. var i3 = this.getPointer(e4);
  3991. this.handleOut(t3, i3, e4);
  3992. }, e3.prototype.handleMouseWheel = function(t3, e4) {
  3993. var i3 = this.getPointer(e4);
  3994. i3.point = this.getPointerPoint(e4);
  3995. var n3, r3, s2 = 1;
  3996. if (e4.deltaMode == 1 && (s2 = 50), s2 *= this.getMouseOption(t3, "sensitivity"), !(e4 instanceof WheelEvent))
  3997. throw new Error("Invalid event type");
  3998. n3 = Math.round(-1 * e4.wheelDeltaX || e4.deltaX * s2), r3 = Math.round(-1 * e4.wheelDeltaY || e4.deltaY * s2), this.handleWheel(t3, i3, n3, r3, e4);
  3999. }, e3.prototype.handleTouchDown = function(t3, e4) {
  4000. for (var i3 = 0; i3 < e4.changedTouches.length; i3++) {
  4001. var n3 = this.getPointer(e4.changedTouches[i3]);
  4002. this.maybePreventDefault(t3, e4, n3), this.resetPointer(n3, e4.changedTouches[i3]), this.handleDown(t3, n3, e4);
  4003. }
  4004. }, e3.prototype.handleHit = function(t3, e4, i3) {
  4005. var n3 = ia();
  4006. if (t3.lastHit && t3.lastHit >= n3 - this.getHitOption(t3, "doubleHitTime")) {
  4007. if (n3 - t3.lastHit < 100)
  4008. return;
  4009. if (t3.lastHit = void 0, t3.lastHitPointer = void 0, t3.events.isEnabled("doublehit") && !Qa.isPaused) {
  4010. var r3 = { type: "doublehit", target: t3, point: e4.point, event: i3, touch: e4.touch };
  4011. t3.events.dispatchImmediately("doublehit", r3);
  4012. }
  4013. } else
  4014. t3.lastHit = n3, t3.lastHitPointer = e4, e4.button === 3 ? t3.events.isEnabled("rightclick") && !Qa.isPaused && (r3 = { type: "rightclick", target: t3, event: i3 }, t3.events.dispatchImmediately("rightclick", r3)) : t3.events.isEnabled("hit") && !Qa.isPaused && (r3 = { type: "hit", target: t3, event: i3, point: e4.point, touch: e4.touch }, t3.events.dispatchImmediately("hit", r3));
  4015. }, e3.prototype.handleOver = function(t3, e4, i3, n3) {
  4016. if (t3.hoverable) {
  4017. var r3 = false;
  4018. if (this.shouldCancelHovers(e4) && this.areTransformed() && this.moved(e4, this.getHitOption(t3, "hitTolerance")) && (r3 = true, this.cancelAllHovers(i3)), this.processDelayed(), t3.overPointers.moveValue(e4), !t3.isRealHover && (r3 || (t3.isHover = true, t3.isRealHover = true, this.overObjects.moveValue(t3)), this.handleTrack(this.body, e4, i3, true), t3.events.isEnabled("over") && !Qa.isPaused && !r3)) {
  4019. var s2 = { type: "over", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4020. t3.events.dispatchImmediately("over", s2);
  4021. }
  4022. }
  4023. }, e3.prototype.handleOut = function(t3, e4, i3, n3, r3) {
  4024. var s2 = this;
  4025. if (n3 === void 0 && (n3 = false), r3 === void 0 && (r3 = false), t3.hoverable && (t3.overPointers.removeValue(e4), t3.isHover && (!t3.hasDelayedOut || r3))) {
  4026. if (n3 && t3.overPointers.length)
  4027. return;
  4028. if (e4 && e4.touch && !r3 && !this.old(e4)) {
  4029. var a2 = this.getHoverOption(t3, "touchOutBehavior");
  4030. if (a2 == "leave")
  4031. return this._delayedEvents.out.push({ type: "out", io: t3, pointer: e4, event: i3, keepUntil: ia() + 500 }), void (t3.hasDelayedOut = true);
  4032. if (a2 == "delay" && this.getHoverOption(t3, "touchOutDelay"))
  4033. return void this._delayedEvents.out.push({ type: "out", io: t3, pointer: e4, event: i3, keepUntil: ia() + 500, timeout: this.setTimeout(function() {
  4034. s2.handleOut(t3, e4, i3, true);
  4035. }, this.getHoverOption(t3, "touchOutDelay")) });
  4036. }
  4037. if (t3.isHover = false, this.overObjects.removeValue(t3), !t3.isDisposed() && t3.events.isEnabled("out") && !Qa.isPaused) {
  4038. var o3 = { type: "out", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4039. t3.events.dispatchImmediately("out", o3);
  4040. }
  4041. t3.overPointers.clear(), t3.hasDelayedOut = false;
  4042. }
  4043. }, e3.prototype.processDelayed = function() {
  4044. for (var t3; t3 = this._delayedEvents.out.pop(); )
  4045. t3.timeout && t3.timeout.dispose(), this.handleOut(t3.io, t3.pointer, t3.event, false, true);
  4046. }, e3.prototype.handleDown = function(t3, e4, i3) {
  4047. if (this.maybePreventDefault(t3, i3, e4), t3.inert && this.stopInertia(t3), this.handleOver(t3, e4, i3, true), t3.downPointers.moveValue(e4), this.applyCursorDownStyle(t3, e4), t3.isDown || (t3.focusable !== false && this.getHitOption(t3, "noFocus") && this.focusedObject && Ss(), t3.isDown = true, this.downObjects.moveValue(t3), t3.draggable && this.processDragStart(t3, e4, i3), t3.resizable && this.processResizeStart(t3, e4, i3)), t3.events.isEnabled("down") && !Qa.isPaused) {
  4048. var n3 = { type: "down", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4049. t3.events.dispatchImmediately("down", n3);
  4050. }
  4051. }, e3.prototype.handleGlobalUp = function(t3, e4, i3) {
  4052. var n3 = this;
  4053. i3 === void 0 && (i3 = false);
  4054. var r3 = this.downObjects.values.slice();
  4055. r3.sort(function(t4, e5) {
  4056. if (t4 && e5) {
  4057. var i4 = t4.element.compareDocumentPosition(e5.element);
  4058. return i4 & Node.DOCUMENT_POSITION_CONTAINED_BY ? 1 : i4 & Node.DOCUMENT_POSITION_CONTAINS ? -1 : 0;
  4059. }
  4060. return 0;
  4061. }), Ut(r3, function(r4) {
  4062. r4 && r4.downPointers.contains(t3) && n3.handleUp(r4, t3, e4, i3);
  4063. });
  4064. }, e3.prototype.handleDocumentLeave = function(t3) {
  4065. var e4 = this;
  4066. ti(this.downObjects.backwards().iterator(), function(i3) {
  4067. i3.downPointers.each(function(n3) {
  4068. e4.handleUp(i3, n3, t3);
  4069. });
  4070. });
  4071. }, e3.prototype.handleUp = function(t3, e4, i3, n3) {
  4072. if (n3 === void 0 && (n3 = false), this.restoreCursorDownStyle(t3, e4), t3.downPointers.removeValue(e4), (e4.touch || this._useTouchEventsOnly) && this.handleOut(t3, e4, i3, true), t3.isDown) {
  4073. if (t3.downPointers.length == 0 && (t3.isDown = false, this.downObjects.removeValue(t3)), t3.events.isEnabled("up") && !Qa.isPaused) {
  4074. var r3 = { type: "up", target: t3, event: i3, pointer: e4, touch: e4.touch };
  4075. t3.events.dispatchImmediately("up", r3);
  4076. }
  4077. n3 || (t3.swipeable && this.swiped(t3, e4) ? this.handleSwipe(t3, e4, i3) : (t3.clickable && !this.moved(e4, this.getHitOption(t3, "hitTolerance")) && this.handleHit(t3, e4, i3), t3.inert && this.moved(e4, this.getHitOption(t3, "hitTolerance")) ? this.handleInertia(t3, e4) : t3.draggable && this.processDragStop(t3, e4, i3), t3.resizable && this.processResizeStop(t3, e4, i3)));
  4078. }
  4079. }, e3.prototype.maybePreventDefault = function(t3, e4, i3) {
  4080. !Z(e4) || !(t3.draggable || t3.swipeable || t3.trackable || t3.resizable) || this.isGlobalElement(t3) || e4.cancelable === false || t3.isTouchProtected && i3 && i3.touch || e4.preventDefault();
  4081. }, e3.prototype.cancelAllHovers = function(t3) {
  4082. var e4 = this;
  4083. ti(this.overObjects.backwards().iterator(), function(i3) {
  4084. if (i3) {
  4085. var n3 = i3.overPointers.getIndex(0);
  4086. e4.handleOut(i3, n3, t3, true, true);
  4087. }
  4088. });
  4089. }, e3.prototype.shouldCancelHovers = function(t3) {
  4090. return ls.disableHoverOnTransform == "always" || ls.disableHoverOnTransform == "touch" && t3.touch;
  4091. }, e3.prototype.handleGlobalMove = function(t3, e4) {
  4092. var i3, n3 = this;
  4093. if (!t3.touch) {
  4094. var r3 = typeof (i3 = t3.lastEvent).composedPath == "function" ? i3.composedPath()[0] : i3.target;
  4095. ti(this.overObjects.backwards().iterator(), function(i4) {
  4096. if (i4 && i4.overPointers.contains(t3) && i4.hoverable) {
  4097. var s2 = false;
  4098. i4.element && t3.lastEvent && Ts(i4.element, r3) || (s2 = true), s2 && n3.handleOut(i4, t3, e4, true);
  4099. }
  4100. });
  4101. }
  4102. ti(this.transformedObjects.backwards().iterator(), function(i4) {
  4103. !i4.downPointers.contains(t3) || i4.swipeable && n3.swiping(i4, t3) || !i4.draggable && !i4.resizable || n3.handleTransform(i4, e4);
  4104. }), ti(this.trackedObjects.backwards().iterator(), function(i4) {
  4105. i4.overPointers.contains(t3) || n3.handleTrack(i4, t3, e4);
  4106. });
  4107. }, e3.prototype.handleTrack = function(t3, e4, i3, n3) {
  4108. if (n3 === void 0 && (n3 = false), (n3 || this.moved(e4, 0)) && t3.events.isEnabled("track") && !Qa.isPaused) {
  4109. var r3 = { type: "track", target: t3, event: i3, point: e4.point, pointer: e4, touch: e4.touch };
  4110. t3.events.dispatchImmediately("track", r3);
  4111. }
  4112. }, e3.prototype.handleSwipe = function(t3, e4, i3) {
  4113. if (t3.events.isEnabled("swipe") && !Qa.isPaused) {
  4114. var n3 = { type: "swipe", target: t3, event: i3, touch: e4.touch };
  4115. t3.events.dispatchImmediately("swipe", n3);
  4116. }
  4117. e4.startPoint.x < e4.point.x ? t3.events.isEnabled("swiperight") && !Qa.isPaused && (n3 = { type: "swiperight", target: t3, event: i3, touch: e4.touch }, t3.events.dispatchImmediately("swiperight", n3)) : t3.events.isEnabled("swipeleft") && !Qa.isPaused && (n3 = { type: "swipeleft", target: t3, event: i3, touch: e4.touch }, t3.events.dispatchImmediately("swipeleft", n3));
  4118. }, e3.prototype.handleWheel = function(t3, e4, i3, n3, r3) {
  4119. var s2 = { x: i3, y: n3 };
  4120. t3.events.isEnabled("wheel") && !Qa.isPaused && t3.events.dispatchImmediately("wheel", { type: "wheel", target: t3, event: r3, point: e4.point, shift: s2 }), i3 < 0 ? t3.events.isEnabled("wheelleft") && !Qa.isPaused && t3.events.dispatchImmediately("wheelleft", { type: "wheelleft", target: t3, event: r3, point: e4.point, shift: s2 }) : i3 > 0 ? t3.events.isEnabled("swiperight") && !Qa.isPaused && t3.events.dispatchImmediately("wheelright", { type: "wheelright", target: t3, event: r3, point: e4.point, shift: s2 }) : n3 < 0 ? t3.events.isEnabled("wheelup") && !Qa.isPaused && t3.events.dispatchImmediately("wheelup", { type: "wheelup", target: t3, event: r3, point: e4.point, shift: s2 }) : n3 > 0 && t3.events.isEnabled("wheeldown") && !Qa.isPaused && t3.events.dispatchImmediately("wheeldown", { type: "wheeldown", target: t3, event: r3, point: e4.point, shift: s2 });
  4121. }, e3.prototype.handleInertia = function(t3, e4) {
  4122. t3.draggable && t3.downPointers.length === 0 && this.handleMoveInertia(t3, e4), t3.resizable && t3.downPointers.length > 1 && this.handleResizeInertia(t3, e4);
  4123. }, e3.prototype.handleMoveInertia = function(t3, e4) {
  4124. var i3 = t3, n3 = { x: e4.point.x, y: e4.point.y }, r3 = { x: e4.startPoint.x, y: e4.startPoint.y }, s2 = new Zs(i3, "move", n3, r3), a2 = this.getTrailPoint(e4, ia() - this.getInertiaOption(t3, "move", "time"));
  4125. if (a2 !== void 0) {
  4126. var o3 = this.getInertiaOption(t3, "move", "factor"), l2 = [{ to: e4.point.x + (e4.point.x - a2.point.x) * o3, property: "x" }, { to: e4.point.y + (e4.point.y - a2.point.y) * o3, property: "y" }], h2 = new ys(s2, l2, this.getInertiaOption(t3, "move", "duration"), this.getInertiaOption(t3, "move", "easing")).start();
  4127. this._disposers.push(h2.events.on("animationended", function(t4) {
  4128. s2.done();
  4129. })), t3.inertias.setKey("move", s2);
  4130. } else
  4131. this.processDragStop(t3, e4, e4.lastUpEvent);
  4132. }, e3.prototype.handleResizeInertia = function(t3, e4) {
  4133. }, e3.prototype.handleTransform = function(t3, e4) {
  4134. var i3, n3, r3, s2 = t3.downPointers.getIndex(0), a2 = null, o3 = null;
  4135. s2 && (a2 = s2.point, o3 = s2.startPoint), r3 = n3 = { x: t3.originalPosition.x, y: t3.originalPosition.y };
  4136. for (var l2 = true, h2 = 1; h2 < t3.downPointers.length; h2++) {
  4137. var p2 = t3.downPointers.getIndex(h2);
  4138. if (o3.x != p2.startPoint.x && o3.y != p2.startPoint.y) {
  4139. l2 = false, n3 = (i3 = p2).point, r3 = i3.startPoint;
  4140. break;
  4141. }
  4142. }
  4143. var u2 = s2 && this.moved(s2, 0);
  4144. if (t3.draggable && s2 && s2.dragStartEvents && s2.dragStartEvents.length && u2 && t3.events.isEnabled("dragstart") && !Qa.isPaused && t3.events.dispatchImmediately("dragstart", s2.dragStartEvents.shift()), l2 && t3.draggable)
  4145. this.handleTransformMove(t3, a2, o3, e4, u2, s2.touch), this.shouldCancelHovers(s2) && this.moved(s2, this.getHitOption(t3, "hitTolerance")) && this.cancelAllHovers(e4);
  4146. else {
  4147. var d2 = i3 && this.moved(i3, 0);
  4148. (this.shouldCancelHovers(s2) && this.moved(s2, this.getHitOption(t3, "hitTolerance")) || this.shouldCancelHovers(i3) && this.moved(i3, this.getHitOption(t3, "hitTolerance"))) && this.cancelAllHovers(e4), t3.draggable && t3.resizable ? (this.handleTransformMove(t3, a2, o3, e4, u2 && d2, s2.touch), this.handleTransformResize(t3, a2, o3, n3, r3, e4, u2 && d2, s2.touch)) : (t3.draggable && this.handleTransformMove(t3, a2, o3, e4, u2, s2.touch), !t3.resizable || l2 && !e4.ctrlKey || this.handleTransformResize(t3, a2, o3, n3, r3, e4, u2 && d2, s2.touch));
  4149. }
  4150. }, e3.prototype.handleTransformMove = function(t3, e4, i3, n3, r3, s2) {
  4151. if (r3 && t3.events.isEnabled("drag") && !Qa.isPaused && (!t3.isTouchProtected || !s2)) {
  4152. var a2 = { type: "drag", target: t3, event: n3, shift: { x: e4.x - i3.x, y: e4.y - i3.y }, startPoint: i3, point: e4, touch: s2 };
  4153. t3.events.dispatchImmediately("drag", a2);
  4154. }
  4155. }, e3.prototype.handleTransformResize = function(t3, e4, i3, n3, r3, s2, a2, o3) {
  4156. if (t3.events.isEnabled("resize") && !Qa.isPaused && (!t3.isTouchProtected || !o3)) {
  4157. var l2 = { type: "resize", target: t3, event: s2, scale: Ot(e4, i3, n3, r3), startPoint1: i3, point1: e4, startPoint2: r3, point2: n3, touch: o3 };
  4158. t3.events.dispatchImmediately("resize", l2);
  4159. }
  4160. }, e3.prototype.processDragStart = function(t3, e4, i3) {
  4161. this.transformedObjects.moveValue(t3), this.shouldCancelHovers(e4) && this.cancelAllHovers(i3);
  4162. var n3 = { type: "dragstart", target: t3, event: i3, touch: !!e4 && e4.touch };
  4163. e4 && (e4.dragTarget = t3), e4 && e4.dragStartEvents ? e4.dragStartEvents.push(n3) : Qa.isPaused || t3.dispatchImmediately("dragstart", n3);
  4164. }, e3.prototype.processDragStop = function(t3, e4, i3) {
  4165. if (e4 || (e4 = this.getDragPointer(t3)), e4 && (e4.dragTarget = void 0), this.transformedObjects.removeValue(t3), (!e4 || this.moved(e4, 0)) && t3.events.isEnabled("dragstop") && !Qa.isPaused) {
  4166. var n3 = { type: "dragstop", target: t3, touch: !!e4 && e4.touch };
  4167. t3.events.dispatchImmediately("dragstop", n3);
  4168. }
  4169. }, e3.prototype.processResizeStart = function(t3, e4, i3) {
  4170. this.transformedObjects.moveValue(t3);
  4171. }, e3.prototype.processResizeStop = function(t3, e4, i3) {
  4172. this.transformedObjects.removeValue(t3);
  4173. }, e3.prototype.dragStart = function(t3, e4) {
  4174. e4 || (e4 = this.getDragPointer(t3)), e4 && this.handleDown(t3, e4, e4.lastDownEvent);
  4175. }, e3.prototype.dragStop = function(t3, e4, i3) {
  4176. e4 || (e4 = this.getDragPointer(t3)), e4 && !i3 && this.handleGlobalUp(e4, e4.lastUpEvent, i3);
  4177. }, e3.prototype.getDragPointer = function(t3) {
  4178. return t3 ? t3.downPointers.getIndex(0) : this.transformedObjects.length ? this.getDragPointer(this.transformedObjects.getIndex(0)) : void 0;
  4179. }, e3.prototype.getPointerId = function(t3) {
  4180. return (Z(t3.identifier) ? "" + t3.identifier : Z(t3.pointerId) ? "" + t3.pointerId : "m").replace("-", "");
  4181. }, e3.prototype.getPointerPoint = function(t3) {
  4182. return { x: t3.clientX, y: t3.clientY };
  4183. }, e3.prototype.getPointer = function(t3) {
  4184. var e4, i3 = this.getPointerId(t3), n3 = this.getPointerPoint(t3);
  4185. return this.pointers.hasKey(i3) ? (e4 = this.pointers.getKey(i3)).touch = this.isPointerTouch(t3) : (e4 = { id: i3, touch: this.isPointerTouch(t3), startPoint: n3, startTime: ia(), point: n3, track: [], swipeCanceled: false, dragStartEvents: [] }, this.addBreadCrumb(e4, n3), this.pointers.setKey(i3, e4)), e4.lastEvent = t3, this.lastPointer = e4, e4;
  4186. }, e3.prototype.isPointerTouch = function(t3) {
  4187. if (typeof Touch != "undefined" && t3 instanceof Touch)
  4188. return true;
  4189. if (typeof PointerEvent != "undefined" && t3 instanceof PointerEvent && Z(t3.pointerType))
  4190. switch (t3.pointerType) {
  4191. case "touch":
  4192. case "pen":
  4193. case 2:
  4194. return true;
  4195. case "mouse":
  4196. case 4:
  4197. return false;
  4198. default:
  4199. return !(t3 instanceof MouseEvent);
  4200. }
  4201. else if (Z(t3.type) && t3.type.match(/^mouse/))
  4202. return false;
  4203. return true;
  4204. }, e3.prototype.resetPointer = function(t3, e4) {
  4205. var i3 = this.getPointerPoint(e4);
  4206. t3.startTime = ia(), t3.startPoint = { x: i3.x, y: i3.y }, t3.point = { x: i3.x, y: i3.y }, t3.track = [], t3.swipeCanceled = false;
  4207. }, e3.prototype.addBreadCrumb = function(t3, e4) {
  4208. t3.track.push({ timestamp: ia(), point: e4 });
  4209. }, e3.prototype.lockDocument = function() {
  4210. this.prepElement(this.body);
  4211. }, e3.prototype.unlockDocument = function() {
  4212. this.transformedObjects.length == 0 && this.restoreAllStyles(this.body);
  4213. }, e3.prototype.lockElement = function(t3) {
  4214. this.prepElement(t3);
  4215. }, e3.prototype.unlockElement = function(t3) {
  4216. this.restoreAllStyles(t3);
  4217. }, e3.prototype.lockWheel = function() {
  4218. window.addEventListener(this._pointerEvents.wheel, this.wheelLockEvent, !!this._passiveSupported && { passive: false });
  4219. }, e3.prototype.unlockWheel = function() {
  4220. window.removeEventListener(this._pointerEvents.wheel, this.wheelLockEvent);
  4221. }, e3.prototype.isLocalElement = function(t3, e4, i3) {
  4222. var n3 = this.getCache("local_pointer_" + t3.id);
  4223. if (Z(n3))
  4224. return n3;
  4225. var r3 = Vs(e4) || document;
  4226. if (r3.elementFromPoint) {
  4227. var s2 = r3.elementFromPoint(t3.point.x, t3.point.y), a2 = s2 && Ts(e4, s2);
  4228. return this.setCache("local_pointer_" + t3.id + "_" + i3, a2, 100), a2;
  4229. }
  4230. return false;
  4231. }, e3.prototype.wheelLockEvent = function(t3) {
  4232. return t3.preventDefault(), false;
  4233. }, e3.prototype.prepElement = function(t3) {
  4234. var e4 = t3.element;
  4235. if (e4) {
  4236. for (var i3 = ["touchAction", "webkitTouchAction", "MozTouchAction", "MSTouchAction", "msTouchAction", "oTouchAction", "userSelect", "webkitUserSelect", "MozUserSelect", "MSUserSelect", "msUserSelect", "oUserSelect", "touchSelect", "webkitTouchSelect", "MozTouchSelect", "MSTouchSelect", "msTouchSelect", "oTouchSelect", "touchCallout", "webkitTouchCallout", "MozTouchCallout", "MSTouchCallout", "msTouchCallout", "oTouchCallout", "contentZooming", "webkitContentZooming", "MozContentZooming", "MSContentZooming", "msContentZooming", "oContentZooming", "userDrag", "webkitUserDrag", "MozUserDrag", "MSUserDrag", "msUserDrag", "oUserDrag"], n3 = 0; n3 < i3.length; n3++)
  4237. i3[n3] in e4.style && this.setTemporaryStyle(t3, i3[n3], "none");
  4238. this.setTemporaryStyle(t3, "tapHighlightColor", "rgba(0, 0, 0, 0)");
  4239. }
  4240. }, e3.prototype.unprepElement = function(t3) {
  4241. var e4 = t3.element;
  4242. if (e4) {
  4243. for (var i3 = ["touchAction", "webkitTouchAction", "MozTouchAction", "MSTouchAction", "msTouchAction", "oTouchAction", "userSelect", "webkitUserSelect", "MozUserSelect", "MSUserSelect", "msUserSelect", "oUserSelect", "touchSelect", "webkitTouchSelect", "MozTouchSelect", "MSTouchSelect", "msTouchSelect", "oTouchSelect", "touchCallout", "webkitTouchCallout", "MozTouchCallout", "MSTouchCallout", "msTouchCallout", "oTouchCallout", "contentZooming", "webkitContentZooming", "MozContentZooming", "MSContentZooming", "msContentZooming", "oContentZooming", "userDrag", "webkitUserDrag", "MozUserDrag", "MSUserDrag", "msUserDrag", "oUserDrag"], n3 = 0; n3 < i3.length; n3++)
  4244. i3[n3] in e4.style && this.restoreStyle(t3, i3[n3]);
  4245. this.restoreStyle(t3, "tapHighlightColor");
  4246. }
  4247. }, e3.prototype.getHitOption = function(t3, e4) {
  4248. var i3 = t3.hitOptions[e4];
  4249. return i3 === void 0 && (i3 = this.hitOptions[e4]), i3;
  4250. }, e3.prototype.getHoverOption = function(t3, e4) {
  4251. var i3 = t3.hoverOptions[e4];
  4252. return i3 === void 0 && (i3 = this.hoverOptions[e4]), i3;
  4253. }, e3.prototype.getSwipeOption = function(t3, e4) {
  4254. var i3 = t3.swipeOptions[e4];
  4255. return i3 === void 0 && (i3 = this.swipeOptions[e4]), i3;
  4256. }, e3.prototype.getKeyboardOption = function(t3, e4) {
  4257. var i3 = t3.keyboardOptions[e4];
  4258. return i3 === void 0 && (i3 = this.keyboardOptions[e4]), i3;
  4259. }, e3.prototype.getMouseOption = function(t3, e4) {
  4260. var i3 = t3.mouseOptions[e4];
  4261. return i3 === void 0 && (i3 = this.mouseOptions[e4]), i3;
  4262. }, e3.prototype.getInertiaOption = function(t3, e4, i3) {
  4263. var n3 = t3.inertiaOptions.getKey(e4);
  4264. return n3 && Z(n3[i3]) ? n3[i3] : this.inertiaOptions.getKey(e4)[i3];
  4265. }, e3.prototype.stopInertia = function(t3) {
  4266. for (var e4, i3 = ["move", "resize"], n3 = 0; n3 < i3.length; n3++)
  4267. if (e4 = i3[n3], t3.inertias.hasKey(e4)) {
  4268. var r3 = t3.inertias.getKey(e4);
  4269. if (r3) {
  4270. r3.dispose();
  4271. continue;
  4272. }
  4273. }
  4274. }, e3.prototype.swiping = function(t3, e4) {
  4275. var i3 = ia();
  4276. return !(e4.swipeCanceled || !t3.swipeable) && Math.abs(e4.startPoint.y - e4.point.y) < this.getSwipeOption(t3, "verticalThreshold") && e4.startTime > i3 - this.getSwipeOption(t3, "time");
  4277. }, e3.prototype.swiped = function(t3, e4) {
  4278. var i3 = ia();
  4279. return !e4.swipeCanceled && Math.abs(e4.startPoint.x - e4.point.x) > this.getSwipeOption(t3, "horizontalThreshold") && Math.abs(e4.startPoint.y - e4.point.y) < this.getSwipeOption(t3, "verticalThreshold") && e4.startTime > i3 - this.getSwipeOption(t3, "time");
  4280. }, e3.prototype.applyCursorOverStyle = function(t3) {
  4281. var e4 = t3.cursorOptions;
  4282. if (Z(e4.overStyle))
  4283. for (var i3 = 0; i3 < e4.overStyle.length; i3++)
  4284. Cs(t3.element, e4.overStyle[i3].property, e4.overStyle[i3].value);
  4285. }, e3.prototype.applyCursorDownStyle = function(t3, e4) {
  4286. if (!e4 || !e4.touch) {
  4287. var i3 = t3.cursorOptions.downStyle;
  4288. if (t3.downPointers.contains(e4) && Z(i3))
  4289. for (var n3 = 0; n3 < i3.length; n3++)
  4290. this.setTemporaryStyle(this.body, i3[n3].property, i3[n3].value), this.setTemporaryStyle(t3, i3[n3].property, i3[n3].value);
  4291. }
  4292. }, e3.prototype.restoreCursorDownStyle = function(t3, e4) {
  4293. if (!e4 || !e4.touch) {
  4294. var i3 = t3.cursorOptions.downStyle;
  4295. if (t3.downPointers.contains(e4) && Z(i3))
  4296. for (var n3 = 0; n3 < i3.length; n3++)
  4297. this.restoreStyle(this.body, i3[n3].property), this.restoreStyle(t3, i3[n3].property);
  4298. }
  4299. }, e3.prototype.setGlobalStyle = function(t3) {
  4300. for (var e4 = ua().body, i3 = it(t3) ? t3 : [t3], n3 = 0; n3 < i3.length; n3++)
  4301. this.setTemporaryStyle(e4, i3[n3].property, i3[n3].value);
  4302. }, e3.prototype.restoreGlobalStyle = function(t3) {
  4303. for (var e4 = ua().body, i3 = it(t3) ? t3 : [t3], n3 = 0; n3 < i3.length; n3++)
  4304. this.restoreStyle(e4, i3[n3].property);
  4305. }, e3.prototype.isGlobalElement = function(t3) {
  4306. return document.body === t3.element;
  4307. }, e3.prototype.moved = function(t3, e4, i3) {
  4308. var n3 = this.getShift(t3);
  4309. return Math.abs(n3.x) > e4 || Math.abs(n3.y) > e4;
  4310. }, e3.prototype.old = function(t3, e4) {
  4311. return e4 === void 0 && (e4 = 300), ia() - t3.startTime > e4;
  4312. }, e3.prototype.getShift = function(t3) {
  4313. return { x: t3.startPoint.x - t3.point.x, y: t3.startPoint.y - t3.point.y };
  4314. }, e3.prototype.getTrailPoint = function(t3, e4) {
  4315. for (var i3, n3 = 0; n3 < t3.track.length; n3++)
  4316. if (t3.track[n3].timestamp >= e4) {
  4317. i3 = t3.track[n3];
  4318. break;
  4319. }
  4320. return i3;
  4321. }, e3.prototype.pointerExists = function(t3, e4) {
  4322. var i3 = false;
  4323. return t3.each(function(t4) {
  4324. t4 != e4 && (i3 = t4.point.x == e4.point.x && t4.point.y == e4.point.y);
  4325. }), i3;
  4326. }, e3.prototype.getInteraction = function(t3) {
  4327. return new Gs(t3);
  4328. }, e3.prototype.setTemporaryStyle = function(t3, e4, i3) {
  4329. var n3 = t3.element;
  4330. Z(n3.style[e4]) && !t3.replacedStyles.hasKey(e4) && t3.replacedStyles.setKey(e4, n3.style[e4]), Cs(n3, e4, i3);
  4331. }, e3.prototype.restoreStyle = function(t3, e4) {
  4332. t3.replacedStyles.hasKey(e4) ? (t3.element.style[e4] = t3.replacedStyles.getKey(e4), t3.replacedStyles.removeKey(e4)) : delete t3.element.style[e4];
  4333. }, e3.prototype.restoreAllStyles = function(t3) {
  4334. ti(t3.replacedStyles.iterator(), function(e4) {
  4335. var i3 = e4[0], n3 = e4[1];
  4336. t3.element.style[i3] = n3, t3.replacedStyles.removeKey(i3);
  4337. });
  4338. }, e3.prototype.dispose = function() {
  4339. this.isDisposed() || (t2.prototype.dispose.call(this), this.restoreAllStyles(this.body), this.unlockWheel());
  4340. }, e3.prototype.log = function(t3, e4, i3) {
  4341. if (e4.changedTouches)
  4342. for (var n3 = 0; n3 < e4.changedTouches.length; n3++)
  4343. this.logTouch(t3, e4.type, e4.changedTouches[n3]);
  4344. else {
  4345. var r3, s2 = "";
  4346. if (e4.pointerType)
  4347. switch (e4.pointerType) {
  4348. case 2:
  4349. s2 = "touch";
  4350. break;
  4351. case 4:
  4352. s2 = "mouse";
  4353. break;
  4354. default:
  4355. s2 = e4.pointerType;
  4356. }
  4357. else
  4358. s2 = typeof TouchEvent != "undefined" && e4 instanceof TouchEvent ? "touch" : e4.type.match(/^mouse/) ? "mouse" : "???";
  4359. r3 = Z(e4.identifier) ? e4.identifier : Z(e4.pointerId) ? e4.pointerId : "???", i3 ? console.log(t3 + " (" + i3.uid + ") " + e4.type + " " + s2 + " " + r3) : console.log(t3 + " " + e4.type + " " + s2 + " " + r3);
  4360. }
  4361. }, e3.prototype.areTransformed = function(t3) {
  4362. var e4 = this.transformedObjects.length;
  4363. if (t3)
  4364. for (var i3 = it(t3) ? t3 : [t3], n3 = 0; n3 < i3.length; n3++)
  4365. this.transformedObjects.contains(i3[n3]) && e4--;
  4366. return e4 > 0;
  4367. }, e3.prototype.logTouch = function(t3, e4, i3) {
  4368. console.log(t3 + " " + e4 + " touch " + i3.identifier);
  4369. }, Object.defineProperty(e3, "passiveSupported", { get: function() {
  4370. var t3 = this;
  4371. if (this._passiveSupported == null)
  4372. try {
  4373. var e4 = Object.defineProperty({}, "passive", { get: function() {
  4374. t3._passiveSupported = true;
  4375. } });
  4376. window.addEventListener("test", e4, e4), window.removeEventListener("test", e4, e4);
  4377. } catch (t4) {
  4378. this._passiveSupported = false;
  4379. }
  4380. return this._passiveSupported;
  4381. }, enumerable: true, configurable: true }), e3;
  4382. }(mn), pa = null;
  4383. function ua() {
  4384. return pa == null && (pa = new ha()), pa;
  4385. }
  4386. var da = function(t2) {
  4387. function e3() {
  4388. var e4 = t2.call(this) || this;
  4389. return e4.adapter = new Yi(e4), e4._elements = {}, e4._IOs = {}, e4._content = "", e4._title = "", e4._classPrefix = "ampopup", e4._defaultStyles = true, e4._showCurtain = false, e4._draggable = true, e4._align = "center", e4._dynamicResize = true, e4._verticalAlign = "middle", e4._shift = { x: 0, y: 0 }, e4._tempShift = { x: 0, y: 0 }, e4._readerTitle = "", e4._closable = true, e4._cssLoaded = false, e4._fitTo = "window", e4.isTemplate = false, e4._sized = false, e4.className = "Popup", e4;
  4390. }
  4391. return C(e3, t2), e3.prototype.open = function() {
  4392. this.container && (this._elements.wrapper && this.container.appendChild(this._elements.wrapper), this._elements.curtain && (this.container.appendChild(this._elements.curtain), this.showCurtain = this.showCurtain), this.positionElement(), this.dispatchImmediately("opened"));
  4393. }, e3.prototype.close = function() {
  4394. this._elements.wrapper && this._elements.wrapper.parentElement && this._elements.wrapper.parentElement.removeChild(this._elements.wrapper), this._elements.curtain && this._elements.curtain.parentElement && this._elements.curtain.parentElement.removeChild(this._elements.curtain), this.dispatchImmediately("closed"), this.releasePointers();
  4395. }, e3.prototype.dispose = function() {
  4396. this.close(), t2.prototype.dispose.call(this);
  4397. }, e3.prototype.positionElement = function(t3) {
  4398. var e4 = this;
  4399. t3 === void 0 && (t3 = true), this._elements.wrapper && setTimeout(function() {
  4400. if (e4._elements.wrapper) {
  4401. if (t3 || !e4._sized) {
  4402. e4._elements.wrapper.style.opacity = "0.01", e4._elements.wrapper.style.left = "0", e4._elements.wrapper.style.top = "0", e4._elements.wrapper.style.margin = "0 0 0 0", e4._elements.wrapper.style.width = "", e4._elements.wrapper.style.height = "";
  4403. var i3 = e4._elements.wrapper.getBoundingClientRect();
  4404. e4._elements.wrapper.style.width = i3.width + "px", e4._elements.wrapper.style.height = i3.height + "px", e4._sized = true;
  4405. }
  4406. if (e4.dynamicResize)
  4407. for (var n3 = e4._elements.wrapper.getElementsByTagName("img"), r3 = 0; r3 < n3.length; r3++) {
  4408. var s2 = n3[r3];
  4409. if (!s2.complete) {
  4410. s2.addEventListener("load", function() {
  4411. e4.positionElement(true);
  4412. });
  4413. break;
  4414. }
  4415. }
  4416. setTimeout(function() {
  4417. if (e4._elements.wrapper) {
  4418. var i4;
  4419. switch (!t3 && e4._sized || !e4._bbox ? (i4 = e4._elements.wrapper.getBoundingClientRect(), e4._elements.wrapper.style.opacity = "") : i4 = e4._bbox, e4.align) {
  4420. case "left":
  4421. e4._elements.wrapper.style.left = "0", e4._elements.wrapper.style.right = "auto", e4._elements.wrapper.style.marginLeft = e4.toStyle(e4._shift.x + e4._tempShift.x);
  4422. break;
  4423. case "center":
  4424. e4._elements.wrapper.style.left = "50%", e4._elements.wrapper.style.right = "auto", e4._elements.wrapper.style.marginLeft = e4.toStyle(Math.round(-i4.width / 2) + (e4._shift.x + e4._tempShift.x));
  4425. break;
  4426. case "right":
  4427. e4._elements.wrapper.style.left = "auto", e4._elements.wrapper.style.right = "0", e4._elements.wrapper.style.marginLeft = e4.toStyle(e4._shift.x + e4._tempShift.x);
  4428. break;
  4429. default:
  4430. e4._elements.wrapper.style.left = e4.toStyle(e4.left) || "auto", e4._elements.wrapper.style.right = e4.toStyle(e4.right) || "auto", e4._elements.wrapper.style.marginLeft = e4.toStyle(e4._shift.x + e4._tempShift.x);
  4431. }
  4432. switch (e4.verticalAlign) {
  4433. case "top":
  4434. e4._elements.wrapper.style.top = "0", e4._elements.wrapper.style.bottom = "auto", e4._elements.wrapper.style.marginTop = e4.toStyle(e4._shift.y + e4._tempShift.y);
  4435. break;
  4436. case "middle":
  4437. e4._elements.wrapper.style.top = "50%", e4._elements.wrapper.style.bottom = "auto", e4._elements.wrapper.style.marginTop = e4.toStyle(Math.round(-i4.height / 2) + (e4._shift.y + e4._tempShift.y));
  4438. break;
  4439. case "bottom":
  4440. e4._elements.wrapper.style.top = "auto", e4._elements.wrapper.style.bottom = "0", e4._elements.wrapper.style.marginTop = e4.toStyle(e4._shift.y + e4._tempShift.y);
  4441. break;
  4442. default:
  4443. e4._elements.wrapper.style.top = e4.toStyle(e4.top) || "auto", e4._elements.wrapper.style.bottom = e4.toStyle(e4.bottom) || "auto", e4._elements.wrapper.style.marginTop = e4.toStyle(e4._shift.y + e4._tempShift.y);
  4444. }
  4445. }
  4446. }, 1);
  4447. }
  4448. }, 1);
  4449. }, e3.prototype.setupDragging = function() {
  4450. var t3 = this;
  4451. this.draggable ? (this._IOs.header.events.has("drag") || this._IOs.header.events.on("drag", function(e4) {
  4452. t3._tempShift.x = e4.shift.x, t3._tempShift.y = e4.shift.y, t3.positionElement(false);
  4453. }), this._IOs.header.events.has("dragstop") || this._IOs.header.events.on("dragstop", function(e4) {
  4454. t3._shift.x += t3._tempShift.x, t3._shift.y += t3._tempShift.y, t3._tempShift.x = 0, t3._tempShift.y = 0, t3.positionElement(false);
  4455. })) : this._IOs.header && (ua().unprepElement(this._IOs.header), this._IOs.header.events.has("drag") && this._IOs.header.events.off("drag"), this._IOs.header.events.has("dragstop") && this._IOs.header.events.off("dragstop"));
  4456. }, e3.prototype.toStyle = function(t3) {
  4457. return Z(t3) ? tt(t3) ? t3 + "px" : t3.toString() : null;
  4458. }, Object.defineProperty(e3.prototype, "classPrefix", { get: function() {
  4459. return this.adapter.apply("classPrefix", this._classPrefix);
  4460. }, set: function(t3) {
  4461. this._classPrefix = t3;
  4462. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "classPrefixRaw", { get: function() {
  4463. return this._classPrefix;
  4464. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "content", { get: function() {
  4465. return this.adapter.apply("content", this._content);
  4466. }, set: function(t3) {
  4467. this._content != t3 && (this._content = t3, this._elements.content || this.createContentElement(), this._elements.content.innerHTML = t3, this.positionElement());
  4468. }, enumerable: true, configurable: true }), e3.prototype.getClassNames = function() {
  4469. return this.adapter.apply("classNames", { wrapperClass: this.classPrefix + "", headerClass: this.classPrefix + "-header", titleClass: this.classPrefix + "-title", contentClass: this.classPrefix + "-content", insideClass: this.classPrefix + "-inside", curtainClass: this.classPrefix + "-curtain", closeClass: this.classPrefix + "-close" });
  4470. }, e3.prototype.createContentElement = function() {
  4471. if (!this._elements.wrapper) {
  4472. var t3 = this.getClassNames(), e4 = document.createElement("div");
  4473. e4.className = t3.contentClass, e4.style.opacity = "0.01";
  4474. var i3 = document.createElement("a");
  4475. i3.className = t3.closeClass;
  4476. var n3 = document.createElement("div");
  4477. n3.className = t3.headerClass;
  4478. var r3 = document.createElement("div");
  4479. r3.innerHTML = this.title, r3.className = t3.titleClass, this.title || (r3.style.display = "none");
  4480. var s2 = document.createElement("div");
  4481. s2.className = t3.insideClass, s2.innerHTML = this.content, this._IOs.wrapper = ua().getInteraction(e4), this._IOs.header = ua().getInteraction(n3), this._disposers.push(this._IOs.wrapper), this._IOs.wrapper.events.on("over", this.disablePointers, this), this._IOs.wrapper.events.on("out", this.releasePointers, this), this._IOs.close = ua().getInteraction(i3), this._disposers.push(this._IOs.close), i3.style.visibility = "hidden", e4.setAttribute("role", "dialog"), n3.appendChild(i3), n3.appendChild(r3), e4.appendChild(n3), e4.appendChild(s2), this.container.appendChild(e4), this._elements.wrapper = e4, this._elements.header = n3, this._elements.content = s2, this._elements.title = r3, this._elements.close = i3, this.defaultStyles && this.loadDefaultCSS(), this.createCurtainElement(), this.applyEvents(), this.applyReaderSettings(), this.setupDragging();
  4482. }
  4483. }, Object.defineProperty(e3.prototype, "title", { get: function() {
  4484. return this.adapter.apply("title", this._title);
  4485. }, set: function(t3) {
  4486. this._title != t3 && (this._title = t3, this._elements.content || this.createContentElement(), this._elements.title.innerHTML = t3, this.positionElement(), this.applyReaderSettings());
  4487. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerTitle", { get: function() {
  4488. return this.adapter.apply("readerTitle", this._readerTitle != "" ? this._readerTitle : this.title);
  4489. }, set: function(t3) {
  4490. this._readerTitle != t3 && (this._readerTitle = t3, this.applyReaderSettings());
  4491. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "closable", { get: function() {
  4492. return this.adapter.apply("closable", this._closable);
  4493. }, set: function(t3) {
  4494. t3 !== this._closable && (this._closable = t3, this.applyEvents());
  4495. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fitTo", { get: function() {
  4496. return this.adapter.apply("fitTo", this._fitTo);
  4497. }, set: function(t3) {
  4498. t3 != this._fitTo && (this._fitTo = t3, this.positionElement());
  4499. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultStyles", { get: function() {
  4500. return this.adapter.apply("defaultStyles", this._defaultStyles);
  4501. }, set: function(t3) {
  4502. this._defaultStyles != t3 && (this._defaultStyles = t3);
  4503. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showCurtain", { get: function() {
  4504. return this.adapter.apply("showCurtain", this._showCurtain);
  4505. }, set: function(t3) {
  4506. this._showCurtain != t3 && (this._showCurtain = t3, this._elements.curtain && (this._elements.curtain.style.display = t3 ? "block" : "none"));
  4507. }, enumerable: true, configurable: true }), e3.prototype.createCurtainElement = function() {
  4508. var t3 = this.getClassNames(), e4 = document.createElement("div");
  4509. e4.className = t3.curtainClass, this.container.appendChild(e4), this._IOs.curtain = ua().getInteraction(e4), this._disposers.push(this._IOs.curtain), this._IOs.curtain.events.on("over", this.disablePointers, this), this._IOs.curtain.events.on("out", this.releasePointers, this), e4.style.display = this.showCurtain ? "block" : "none", this._elements.curtain = e4;
  4510. }, Object.defineProperty(e3.prototype, "draggable", { get: function() {
  4511. return this.adapter.apply("draggable", this._draggable);
  4512. }, set: function(t3) {
  4513. this._draggable != t3 && (this._draggable = t3, this.setupDragging());
  4514. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dynamicResize", { get: function() {
  4515. return this.adapter.apply("dynamicResize", this._dynamicResize);
  4516. }, set: function(t3) {
  4517. this._dynamicResize != t3 && (this._dynamicResize = t3, this.positionElement(true));
  4518. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "align", { get: function() {
  4519. return this.adapter.apply("align", this._align);
  4520. }, set: function(t3) {
  4521. this._align != t3 && (this._align = t3, this.positionElement());
  4522. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalAlign", { get: function() {
  4523. return this.adapter.apply("verticalAlign", this._verticalAlign);
  4524. }, set: function(t3) {
  4525. this._verticalAlign != t3 && (this._verticalAlign = t3, this.positionElement());
  4526. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "left", { get: function() {
  4527. return this.adapter.apply("left", this._left);
  4528. }, set: function(t3) {
  4529. this.left != t3 && (this._left = t3, this._align = "none", this.positionElement());
  4530. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "right", { get: function() {
  4531. return this.adapter.apply("right", this._right);
  4532. }, set: function(t3) {
  4533. this.right != t3 && (this._right = t3, this._align = "none", this.positionElement());
  4534. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "top", { get: function() {
  4535. return this.adapter.apply("top", this._top);
  4536. }, set: function(t3) {
  4537. this.top != t3 && (this._top = t3, this._verticalAlign = "none", this.positionElement());
  4538. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottom", { get: function() {
  4539. return this.adapter.apply("bottom", this._bottom);
  4540. }, set: function(t3) {
  4541. this.bottom != t3 && (this._bottom = t3, this._verticalAlign = "none", this.positionElement());
  4542. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "elements", { get: function() {
  4543. return this._elements;
  4544. }, enumerable: true, configurable: true }), e3.prototype.loadDefaultCSS = function() {
  4545. this._cssLoaded || (this._disposers.push(function(t3, e4) {
  4546. e4 || (e4 = "ampopup");
  4547. var i3 = new Ys(), n3 = i3.getFor("text"), r3 = i3.getFor("background");
  4548. r3.alpha = 0.8;
  4549. var s2 = i3.getFor("alternativeBackground");
  4550. return s2.alpha = 0.05, zs.insertKeyIfEmpty(e4, function() {
  4551. var i4 = new me([new Ls(t3, "." + e4, { overflow: "visible", position: "absolute", top: "0", left: "0", "z-index": "2000" }), new Ls(t3, "." + e4 + "-curtain", { width: "100%", height: "100%", position: "absolute", top: "0", left: "0", "z-index": "2001", "background-color": r3.hex, opacity: "0.5" }), new Ls(t3, "." + e4 + "-header", { display: "block", width: "100%", "min-height": "1.8em", background: s2.rgba }), new Ls(t3, "." + e4 + "-title", { "font-weight": "bold", "font-size": "110%", padding: "0.5em 1.2em 0.5em 1em" }), new Ls(t3, "." + e4 + "-content", { background: r3.hex, "background-color": r3.rgba, color: n3.hex, display: "inline-block", position: "absolute", top: "0", left: "0", "max-width": "90%", "max-height": "90%", overflow: "auto", "z-index": "2002" }), new Ls(t3, "." + e4 + "-inside", { padding: "1em" }), new Ls(t3, "." + e4 + "-close", { display: "block", position: "absolute", top: "0.3em", right: "0.3em", "background-color": "rgb(100, 100, 100)", background: "rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center", "background-size": "80%", width: "1.2em", height: "1.2em", cursor: "pointer" })]);
  4552. return new be(function() {
  4553. zs.removeKey(e4), i4.dispose();
  4554. });
  4555. }).increment();
  4556. }(As(this.container), this.classPrefix)), Ne(this._elements, function(t3, e4) {
  4557. e4.style.display = "";
  4558. }), this._cssLoaded = true);
  4559. }, e3.prototype.applyEvents = function() {
  4560. var t3 = this;
  4561. if (this._IOs.close)
  4562. if (this.closable) {
  4563. this._IOs.close.element.style.visibility = "visible";
  4564. var e4 = [ua().body.events.on("keyup", function(e5) {
  4565. $s.isKey(e5.event, "esc") && t3.closable && t3.close();
  4566. }), this._IOs.close.events.on("hit", function(e5) {
  4567. t3.close();
  4568. })];
  4569. e4.push(this._IOs.curtain.events.on("hit", function(e5) {
  4570. t3.showCurtain && t3.closable && t3.close();
  4571. })), this._disposers.push(new me(e4));
  4572. } else
  4573. this._IOs.close.element.style.visibility = "hidden";
  4574. }, e3.prototype.disablePointers = function() {
  4575. this.sprite && (this._spriteInteractionsEnabled = this.sprite.interactionsEnabled, this.sprite.interactionsEnabled = false);
  4576. }, e3.prototype.releasePointers = function() {
  4577. Z(this._spriteInteractionsEnabled) && (this.sprite.interactionsEnabled = this._spriteInteractionsEnabled, this._spriteInteractionsEnabled = void 0);
  4578. }, e3.prototype.applyReaderSettings = function() {
  4579. this.elements.wrapper.setAttribute("aria-label", this.readerTitle);
  4580. }, e3.prototype.copyFrom = function(e4) {
  4581. t2.prototype.copyFrom.call(this, e4), this.container = e4.container, this.sprite = e4.sprite, this.classPrefix = e4.classPrefixRaw, this.content = e4.content, this.title = e4.title, this.readerTitle = e4.readerTitle, this.defaultStyles = e4.defaultStyles, this.showCurtain = e4.showCurtain, this.align = e4.align, this.verticalAlign = e4.verticalAlign, this.left = e4.left, this.right = e4.right, this.top = e4.top, this.bottom = e4.bottom, this.adapter.copyFrom(e4.adapter);
  4582. }, e3;
  4583. }(mn), ca = function(t2) {
  4584. function e3() {
  4585. var e4 = t2.call(this) || this;
  4586. return e4.adapter = new Yi(e4), e4.className = "Modal", e4.showCurtain = true, e4.draggable = false, e4;
  4587. }
  4588. return C(e3, t2), e3;
  4589. }(da);
  4590. function fa() {
  4591. for (var t2 = [], e3 = 0; e3 < arguments.length; e3++)
  4592. t2[e3] = arguments[e3];
  4593. ls.suppressWarnings || console && console.warn.apply(console, T(t2));
  4594. }
  4595. var ga = function() {
  4596. function t2() {
  4597. var t3 = this;
  4598. this._targets = [], this._observer = new ResizeObserver(function(e3) {
  4599. Ut(e3, function(e4) {
  4600. Ut(t3._targets, function(t4) {
  4601. t4.target === e4.target && t4.callback();
  4602. });
  4603. });
  4604. });
  4605. }
  4606. return t2.prototype.addTarget = function(t3, e3) {
  4607. this._observer.observe(t3, { box: "content-box" }), this._targets.push({ target: t3, callback: e3 });
  4608. }, t2.prototype.removeTarget = function(t3) {
  4609. this._observer.unobserve(t3), ge(this._targets, function(e3) {
  4610. return e3.target !== t3;
  4611. });
  4612. }, t2;
  4613. }(), ya = function() {
  4614. function t2() {
  4615. this._targets = [];
  4616. }
  4617. return t2.prototype.addTarget = function(e3, i3) {
  4618. var n3 = this;
  4619. if (this._targets.length === 0) {
  4620. var r3 = null, s2 = function() {
  4621. var e4 = Date.now();
  4622. (r3 === null || e4 > r3 + t2.delay) && (r3 = e4, Ut(n3._targets, function(t3) {
  4623. var e5 = t3.target.getBoundingClientRect();
  4624. e5.width === t3.size.width && e5.height === t3.size.height || (t3.size = e5, t3.callback());
  4625. })), n3._timer = requestAnimationFrame(s2);
  4626. };
  4627. this._timer = requestAnimationFrame(s2);
  4628. }
  4629. var a2 = e3.getBoundingClientRect();
  4630. this._targets.push({ target: e3, callback: i3, size: a2 });
  4631. }, t2.prototype.removeTarget = function(t3) {
  4632. ge(this._targets, function(e3) {
  4633. return e3.target !== t3;
  4634. }), this._targets.length === 0 && cancelAnimationFrame(this._timer);
  4635. }, t2.delay = 200, t2;
  4636. }(), ma = null, va = function() {
  4637. function t2(t3, e3) {
  4638. this._disposed = false, this._sensor = (ma === null && (ma = typeof ResizeObserver != "undefined" ? new ga() : new ya()), ma), this._element = t3, this._sensor.addTarget(t3, e3);
  4639. }
  4640. return t2.prototype.isDisposed = function() {
  4641. return this._disposed;
  4642. }, t2.prototype.dispose = function() {
  4643. this._disposed || (this._disposed = true, this._sensor.removeTarget(this._element));
  4644. }, Object.defineProperty(t2.prototype, "sensor", { get: function() {
  4645. return this._sensor;
  4646. }, enumerable: true, configurable: true }), t2.prototype.reset = function() {
  4647. fa("resizeSensor.reset() is no longer needed and can be removed");
  4648. }, t2;
  4649. }(), ba = [], xa = function() {
  4650. function t2(t3, e3) {
  4651. var i3 = this;
  4652. this._disposed = false, this.autoResize = true, this.nonExportableSprites = [], this._disposers = [], this.cssScale = 1, this._printing = false, this.htmlElement = t3, e3 || (this._printing = false, this.initSensor(), this._disposers.push(xs(window, "beforeprint", function() {
  4653. i3._printing = true;
  4654. })), this._disposers.push(xs(window, "afterprint", function() {
  4655. i3._printing = false;
  4656. }))), ba.push(this);
  4657. var n3 = document.createElement("div"), r3 = n3.style;
  4658. r3.width = "100%", r3.height = "100%", r3.position = "relative", t3.appendChild(n3), this.SVGContainer = n3;
  4659. }
  4660. return t2.prototype.initSensor = function() {
  4661. var t3 = this;
  4662. this.resizeSensor && this.resizeSensor.dispose(), this.resizeSensor = new va(this.htmlElement, function() {
  4663. t3.autoResize && !t3._printing && t3.measure();
  4664. }), this._disposers.push(this.resizeSensor);
  4665. }, t2.prototype.measure = function() {
  4666. var t3 = br(this.htmlElement), e3 = xr(this.htmlElement), i3 = this.container;
  4667. i3 && (this.width == t3 && this.height == e3 || (this.width = t3, this.height = e3, t3 > 0 && (i3.maxWidth = t3), e3 > 0 && (i3.maxHeight = e3), Ms(this.SVGContainer)), i3.maxWidth || (i3.maxWidth = 0), i3.maxHeight || (i3.maxHeight = 0), this.cssScale = 1, this.checkTransform(this.htmlElement));
  4668. }, Object.defineProperty(t2.prototype, "container", { get: function() {
  4669. return this._container;
  4670. }, set: function(t3) {
  4671. this._container = t3, this.measure();
  4672. }, enumerable: true, configurable: true }), t2.prototype.isDisposed = function() {
  4673. return this._disposed;
  4674. }, t2.prototype.dispose = function() {
  4675. this._disposed || ee(ba, this), Ut(this._disposers, function(t3) {
  4676. t3.dispose();
  4677. });
  4678. }, Object.defineProperty(t2.prototype, "hideOverflow", { set: function(t3) {
  4679. this.SVGContainer.style.overflow = t3 ? "hidden" : "";
  4680. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "modal", { get: function() {
  4681. return Z(this._modal) || (this._modal = new ca(), this._modal.container = this.SVGContainer, this._disposers.push(this._modal)), this._modal;
  4682. }, enumerable: true, configurable: true }), t2.prototype.openModal = function(t3, e3) {
  4683. this.closeModal();
  4684. var i3 = this.modal;
  4685. return i3.content = t3, i3.readerTitle = e3 || "", i3.title = e3 || "", i3.open(), i3;
  4686. }, t2.prototype.closeModal = function() {
  4687. this._modal && this.modal.close();
  4688. }, Object.defineProperty(t2.prototype, "popups", { get: function() {
  4689. if (!Z(this._popups)) {
  4690. var t3 = new da();
  4691. t3.container = this.SVGContainer, this._popups = new Mi(t3), this._disposers.push(new Ai(this._popups)), this._disposers.push(this._popups.template);
  4692. }
  4693. return this._popups;
  4694. }, enumerable: true, configurable: true }), t2.prototype.openPopup = function(t3, e3) {
  4695. var i3 = this.popups.create();
  4696. return i3.content = t3, Z(e3) && (i3.title = e3), i3.open(), i3;
  4697. }, t2.prototype.closeAllPopups = function() {
  4698. this.popups.each(function(t3) {
  4699. t3.close();
  4700. });
  4701. }, Object.defineProperty(t2.prototype, "readerAlertElement", { get: function() {
  4702. if (!Z(this._readerAlertElement)) {
  4703. var t3 = document.createElement("div");
  4704. t3.setAttribute("role", "alert"), t3.style.zIndex = "-100000", t3.style.opacity = "0", t3.style.position = "absolute", t3.style.top = "0", this.SVGContainer.appendChild(t3), this._readerAlertElement = t3;
  4705. }
  4706. return this._readerAlertElement;
  4707. }, enumerable: true, configurable: true }), t2.prototype.readerAlert = function(t3) {
  4708. this.readerAlertElement.innerHTML = t3;
  4709. }, t2.prototype.checkTransform = function(t3) {
  4710. if (window.getComputedStyle) {
  4711. if (t3 && t3.style) {
  4712. var e3 = window.getComputedStyle(t3, null);
  4713. if (e3) {
  4714. var i3 = e3.getPropertyValue("-webkit-transform") || e3.getPropertyValue("-moz-transform") || e3.getPropertyValue("-ms-transform") || e3.getPropertyValue("-o-transform") || e3.getPropertyValue("transform");
  4715. if (i3 && i3 !== "none") {
  4716. var n3 = i3.split("(")[1].split(")")[0].split(","), r3 = Number(n3[0]), s2 = Number(n3[1]), a2 = Math.sqrt(r3 * r3 + s2 * s2);
  4717. isNaN(a2) || (this.cssScale *= a2);
  4718. }
  4719. }
  4720. }
  4721. t3.parentNode && t3.parentNode instanceof HTMLElement && this.checkTransform(t3.parentNode);
  4722. }
  4723. }, t2;
  4724. }(), _a = function() {
  4725. function t2(t3, e3) {
  4726. this.container = t3, this.id = e3;
  4727. var i3 = document.createElementNS(ms, "svg");
  4728. i3.setAttribute("version", "1.1"), i3.setAttributeNS(vs, "xmlns", ms), i3.setAttributeNS(vs, "xmlns:xlink", bs), i3.setAttribute("role", "group"), this.container.appendChild(i3), this.defs = document.createElementNS(ms, "defs"), i3.appendChild(this.defs), i3.style.width = "100%", i3.style.height = "100%", i3.style.overflow = "visible", this.svg = i3;
  4729. }
  4730. return t2.prototype.add = function(t3) {
  4731. return new Ws(t3);
  4732. }, t2.prototype.addGroup = function(t3) {
  4733. return new Xs(t3);
  4734. }, t2.prototype.append = function(t3) {
  4735. t3 && this.svg.appendChild(t3.node);
  4736. }, t2.prototype.appendDef = function(t3) {
  4737. t3 && this.defs.appendChild(t3.node);
  4738. }, t2.prototype.foreignObject = function() {
  4739. return new Ws("foreignObject");
  4740. }, t2.prototype.supportsForeignObject = function() {
  4741. return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1");
  4742. }, t2;
  4743. }(), Pa = null;
  4744. function wa() {
  4745. if (Pa === null) {
  4746. var t2 = document.createElement("div");
  4747. t2.hidden = true, t2.style.width = "1px", t2.style.height = "1px", t2.style.position = "absolute", t2.style.zIndex = "-1000000", document.body.appendChild(t2);
  4748. var e3 = new xa(t2, true);
  4749. Pa = new _a(e3.SVGContainer, "ghost");
  4750. }
  4751. return Pa;
  4752. }
  4753. var Ca = function(t2) {
  4754. function e3() {
  4755. var e4 = t2.call(this) || this;
  4756. e4._elements = new Fi(), e4.properties = {}, e4.className = "Pattern", e4.width = 10, e4.height = 10, e4.x = 0, e4.y = 0, e4.patternUnits = "userSpaceOnUse";
  4757. var i3 = new Ys();
  4758. return e4.backgroundFill = i3.getFor("background"), e4.backgroundOpacity = 0, e4.fillOpacity = 1, e4.fill = i3.getFor("alternativeBackground"), e4.stroke = i3.getFor("alternativeBackground"), e4.strokeOpacity = 1, e4.strokeWidth = 1, e4.shapeRendering = "crispEdges", e4.rotation = 0, e4.element = e4.paper.addGroup("pattern"), e4.id = "pattern-" + Ii.getUniqueId(), e4.element.attr({ id: e4.id }), e4._disposers.push(e4.element), e4._disposers.push(new Ai(e4._elements)), e4.patternUnits = e4.patternUnits, e4.width = e4.width, e4.height = e4.height, e4.applyTheme(), e4;
  4759. }
  4760. return C(e3, t2), e3.prototype.draw = function() {
  4761. var t3 = this, e4 = this.element;
  4762. if (e4) {
  4763. e4.removeChildNodes();
  4764. var i3 = this.paper.add("rect");
  4765. i3.attr({ width: this.width, height: this.height, "shape-rendering": "crispEdges", fill: this.backgroundFill.hex, "fill-opacity": this.backgroundOpacity, stroke: this.backgroundFill.hex, "stroke-opacity": 0 }), e4.add(i3), e4.attr({ x: this.x, y: this.y, width: this.width, height: this.height, stroke: this.stroke.hex, fill: this.fill.hex, "fill-opacity": this.fillOpacity, "stroke-opacity": this.strokeOpacity, "stroke-width": this.strokeWidth, "shape-rendering": this.shapeRendering, patternUnits: this.patternUnits, "stroke-dasharray": this.strokeDasharray }), ti(this._elements.iterator(), function(e5) {
  4766. e5.rotation = t3.rotation, e5.rotationX = t3.properties.rotationX, e5.rotationY = t3.properties.rotationY, t3.element.add(e5);
  4767. });
  4768. }
  4769. }, e3.prototype.animate = function(t3, e4, i3) {
  4770. return new ys(this, t3, e4, i3).start();
  4771. }, e3.prototype.addElement = function(t3) {
  4772. this._elements.push(t3), this._disposers.push(t3);
  4773. }, e3.prototype.removeElement = function(t3) {
  4774. this._elements.removeValue(t3), this.removeDispose(t3);
  4775. }, Object.defineProperty(e3.prototype, "elements", { get: function() {
  4776. return this._elements;
  4777. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fillOpacity", { get: function() {
  4778. return this.properties.fillOpacity;
  4779. }, set: function(t3) {
  4780. this.properties.fillOpacity = t3, this.draw();
  4781. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fill", { get: function() {
  4782. return this.properties.fill;
  4783. }, set: function(t3) {
  4784. this.properties.fill = t3, this.draw();
  4785. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "backgroundFill", { get: function() {
  4786. return this.properties.backgroundFill;
  4787. }, set: function(t3) {
  4788. this.properties.backgroundFill = t3, this.draw();
  4789. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "backgroundOpacity", { get: function() {
  4790. return this.properties.backgroundOpacity;
  4791. }, set: function(t3) {
  4792. this.properties.backgroundOpacity = t3, this.draw();
  4793. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "stroke", { get: function() {
  4794. return this.properties.stroke;
  4795. }, set: function(t3) {
  4796. this.properties.stroke = t3, this.draw();
  4797. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeOpacity", { get: function() {
  4798. return this.properties.strokeOpacity;
  4799. }, set: function(t3) {
  4800. this.properties.strokeOpacity = t3, this.draw();
  4801. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeWidth", { get: function() {
  4802. return this.properties.strokeWidth;
  4803. }, set: function(t3) {
  4804. this.properties.strokeWidth = t3, this.draw();
  4805. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "shapeRendering", { get: function() {
  4806. return this.properties.shapeRendering;
  4807. }, set: function(t3) {
  4808. this.properties.shapeRendering = t3, this.draw();
  4809. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotation", { get: function() {
  4810. return this.properties.rotation;
  4811. }, set: function(t3) {
  4812. this.properties.rotation = t3, this.draw();
  4813. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "patternUnits", { get: function() {
  4814. return this.properties.patternUnits;
  4815. }, set: function(t3) {
  4816. this.properties.patternUnits = t3, this.draw();
  4817. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "width", { get: function() {
  4818. return this.properties.width;
  4819. }, set: function(t3) {
  4820. this.properties.width = t3, this.draw();
  4821. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  4822. return this.properties.height;
  4823. }, set: function(t3) {
  4824. this.properties.height = t3, this.draw();
  4825. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x", { get: function() {
  4826. return this.properties.x;
  4827. }, set: function(t3) {
  4828. this.properties.x = t3, this.draw();
  4829. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y", { get: function() {
  4830. return this.properties.y;
  4831. }, set: function(t3) {
  4832. this.properties.y = t3, this.draw();
  4833. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paper", { get: function() {
  4834. return this._paper ? this._paper : wa();
  4835. }, set: function(t3) {
  4836. this._paper != t3 && (this._paper = t3, this.draw(), t3.appendDef(this.element));
  4837. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  4838. var i3 = this;
  4839. t2.prototype.copyFrom.call(this, e4), Ne(e4.properties, function(t3, e5) {
  4840. i3[t3] = e5;
  4841. });
  4842. }, Object.defineProperty(e3.prototype, "animations", { get: function() {
  4843. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  4844. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeDasharray", { get: function() {
  4845. return this.properties.strokeDashArray;
  4846. }, set: function(t3) {
  4847. this.properties.strokeDashArray = t3, this.draw();
  4848. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  4849. if (e4 && Z(e4.elements) && it(e4.elements))
  4850. for (var i3 = 0, n3 = e4.elements.length; i3 < n3; i3++) {
  4851. var r3 = e4.elements[i3];
  4852. if (Z(r3.type)) {
  4853. var s2 = this.createEntryInstance(r3);
  4854. s2 instanceof yn && (s2.config = r3), this.addElement(Z(r3.typeProperty) ? s2[r3.typeProperty] : s2.element);
  4855. }
  4856. }
  4857. t2.prototype.processConfig.call(this, e4);
  4858. }, e3;
  4859. }(yn);
  4860. Ii.registeredClasses.Pattern = Ca;
  4861. var Oa = function(t2) {
  4862. function e3() {
  4863. var e4 = t2.call(this) || this;
  4864. return e4._stops = new Fi(), e4._rotation = 0, e4.className = "LinearGradient", e4._stops.events.on("setIndex", e4.validate, e4), e4._stops.events.on("inserted", e4.validate, e4), e4.element = e4.paper.addGroup("linearGradient"), e4.id = "gradient-" + Ii.getUniqueId(), e4.element.attr({ id: e4.id }), e4._disposers.push(e4.element), e4.applyTheme(), e4;
  4865. }
  4866. return C(e3, t2), e3.prototype.validate = function() {
  4867. var t3 = this, e4 = (this._rotation + 90) * st, i3 = Math.round(50 + 50 * Math.sin(e4 + Math.PI)) + "%", n3 = Math.round(50 + 50 * Math.cos(e4)) + "%", r3 = Math.round(50 + 50 * Math.sin(e4)) + "%", s2 = Math.round(50 + 50 * Math.cos(e4 + Math.PI)) + "%", a2 = this.element;
  4868. a2.removeChildNodes(), a2.attr({ x1: i3, x2: r3, y1: n3, y2: s2 }), ti(ai(this._stops.iterator()), function(e5) {
  4869. var i4 = e5[0], n4 = e5[1], r4 = n4.offset;
  4870. tt(r4) || (r4 = i4 / (t3._stops.length - 1));
  4871. var s3 = t3.paper.add("stop");
  4872. Z(n4.color) && s3.attr({ "stop-color": n4.color.toString() }), tt(n4.opacity) && s3.attr({ "stop-opacity": n4.opacity }), tt(r4) && s3.attr({ offset: r4 }), a2.add(s3);
  4873. });
  4874. }, e3.prototype.clear = function() {
  4875. this._stops.clear();
  4876. }, e3.prototype.addColor = function(t3, e4, i3) {
  4877. this._stops.push({ color: t3, opacity: e4, offset: i3 });
  4878. }, Object.defineProperty(e3.prototype, "stops", { get: function() {
  4879. return this._stops;
  4880. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paper", { get: function() {
  4881. return this._paper ? this._paper : wa();
  4882. }, set: function(t3) {
  4883. this._paper != t3 && (this._paper = t3, this.validate(), t3.appendDef(this.element));
  4884. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotation", { get: function() {
  4885. return this._rotation;
  4886. }, set: function(t3) {
  4887. this._rotation = t3, this.validate();
  4888. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  4889. t2.prototype.copyFrom.call(this, e4), this.stops.copyFrom(e4.stops), this._rotation = e4.rotation;
  4890. }, Object.defineProperty(e3.prototype, "gradientUnits", { set: function(t3) {
  4891. this.element.attr({ gradientUnits: t3 });
  4892. }, enumerable: true, configurable: true }), e3;
  4893. }(yn);
  4894. Ii.registeredClasses.LinearGradient = Oa;
  4895. var Sa = function(t2) {
  4896. function e3() {
  4897. var e4 = t2.call(this) || this;
  4898. return e4._stops = new Fi(), e4.element = e4.paper.addGroup("radialGradient"), e4.id = "gradient-" + Ii.getUniqueId(), e4.element.attr({ id: e4.id }), e4._disposers.push(e4.element), e4.applyTheme(), e4;
  4899. }
  4900. return C(e3, t2), e3.prototype.draw = function() {
  4901. var t3, e4 = this, i3 = this.element;
  4902. tt(this.cx) && ((t3 = this.cx) instanceof A && (t3 = t3.percent + "%"), i3.attr({ cx: t3 })), tt(this.cy) && ((t3 = this.cy) instanceof A && (t3 = t3.percent + "%"), i3.attr({ cy: t3 })), this.fx && ((t3 = this.fx) instanceof A && (t3 = t3.percent + "%"), i3.attr({ fx: t3 })), this.fy && ((t3 = this.fy) instanceof A && (t3 = t3.percent + "%"), i3.attr({ fy: t3 })), i3.removeChildNodes(), ti(ai(this._stops.iterator()), function(t4) {
  4903. var n3 = t4[0], r3 = t4[1], s2 = r3.offset;
  4904. tt(s2) || (s2 = n3 / (e4._stops.length - 1));
  4905. var a2 = e4.paper.add("stop");
  4906. Z(r3.color) && a2.attr({ "stop-color": r3.color.toString() }), tt(r3.opacity) && a2.attr({ "stop-opacity": r3.opacity }), tt(s2) && a2.attr({ offset: s2 }), i3.add(a2);
  4907. });
  4908. }, e3.prototype.addColor = function(t3, e4, i3) {
  4909. this._stops.push({ color: t3, opacity: e4, offset: i3 }), this.draw();
  4910. }, Object.defineProperty(e3.prototype, "paper", { get: function() {
  4911. return this._paper ? this._paper : wa();
  4912. }, set: function(t3) {
  4913. this._paper != t3 && (this._paper = t3, this.draw(), t3.appendDef(this.element));
  4914. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cx", { get: function() {
  4915. return this._cx;
  4916. }, set: function(t3) {
  4917. this._cx = t3, this.draw();
  4918. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cy", { get: function() {
  4919. return this._cy;
  4920. }, set: function(t3) {
  4921. this._cy = t3, this.draw();
  4922. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fx", { get: function() {
  4923. return this._fx;
  4924. }, set: function(t3) {
  4925. this._fx = t3, this.draw();
  4926. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fy", { get: function() {
  4927. return this._fy;
  4928. }, set: function(t3) {
  4929. this._fy = t3, this.draw();
  4930. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  4931. t2.prototype.copyFrom.call(this, e4), this.stops.copyFrom(e4.stops), this.cx = e4.cx, this.cy = e4.cy, this.fx = e4.fx, this.fy = e4.fy;
  4932. }, Object.defineProperty(e3.prototype, "stops", { get: function() {
  4933. return this._stops;
  4934. }, enumerable: true, configurable: true }), e3.prototype.clear = function() {
  4935. this._stops.clear();
  4936. }, e3;
  4937. }(yn);
  4938. Ii.registeredClasses.RadialGradient = Sa;
  4939. var Ia = function() {
  4940. function t2() {
  4941. }
  4942. return t2.grab = [{ property: "cursor", value: "move" }, { property: "cursor", value: "grab" }, { property: "cursor", value: "-webkit-grab" }], t2.grabbing = [{ property: "cursor", value: "move" }, { property: "cursor", value: "grabbing" }, { property: "cursor", value: "-webkit-grabbing" }], t2.pointer = [{ property: "cursor", value: "pointer" }], t2.default = [{ property: "cursor", value: "default" }], t2.horizontalResize = [{ property: "cursor", value: "ew-resize" }], t2.verticalResize = [{ property: "cursor", value: "ns-resize" }], t2.notAllowed = [{ property: "cursor", value: "not-allowed" }], t2.text = [{ property: "cursor", value: "text" }], t2;
  4943. }();
  4944. const Da = { _decimalSeparator: ".", _thousandSeparator: ",", _big_number_suffix_3: "k", _big_number_suffix_6: "M", _big_number_suffix_9: "G", _big_number_suffix_12: "T", _big_number_suffix_15: "P", _big_number_suffix_18: "E", _big_number_suffix_21: "Z", _big_number_suffix_24: "Y", _small_number_suffix_3: "m", _small_number_suffix_6: "\u03BC", _small_number_suffix_9: "n", _small_number_suffix_12: "p", _small_number_suffix_15: "f", _small_number_suffix_18: "a", _small_number_suffix_21: "z", _small_number_suffix_24: "y", _byte_suffix_B: "B", _byte_suffix_KB: "KB", _byte_suffix_MB: "MB", _byte_suffix_GB: "GB", _byte_suffix_TB: "TB", _byte_suffix_PB: "PB", _date: "yyyy-MM-dd", _date_millisecond: "mm:ss SSS", _date_second: "HH:mm:ss", _date_minute: "HH:mm", _date_hour: "HH:mm", _date_day: "MMM dd", _date_week: "ww", _date_month: "MMM", _date_year: "yyyy", _duration_millisecond: "SSS", _duration_millisecond_second: "ss.SSS", _duration_millisecond_minute: "mm:ss SSS", _duration_millisecond_hour: "hh:mm:ss SSS", _duration_millisecond_day: "d'd' mm:ss SSS", _duration_millisecond_week: "d'd' mm:ss SSS", _duration_millisecond_month: "M'm' dd'd' mm:ss SSS", _duration_millisecond_year: "y'y' MM'm' dd'd' mm:ss SSS", _duration_second: "ss", _duration_second_minute: "mm:ss", _duration_second_hour: "hh:mm:ss", _duration_second_day: "d'd' hh:mm:ss", _duration_second_week: "d'd' hh:mm:ss", _duration_second_month: "M'm' dd'd' hh:mm:ss", _duration_second_year: "y'y' MM'm' dd'd' hh:mm:ss", _duration_minute: "mm", _duration_minute_hour: "hh:mm", _duration_minute_day: "d'd' hh:mm", _duration_minute_week: "d'd' hh:mm", _duration_minute_month: "M'm' dd'd' hh:mm", _duration_minute_year: "y'y' MM'm' dd'd' hh:mm", _duration_hour: "hh'h'", _duration_hour_day: "d'd' hh'h'", _duration_hour_week: "d'd' hh'h'", _duration_hour_month: "M'm' dd'd' hh'h'", _duration_hour_year: "y'y' MM'm' dd'd' hh'h'", _duration_day: "d'd'", _duration_day_week: "d'd'", _duration_day_month: "M'm' dd'd'", _duration_day_year: "y'y' MM'm' dd'd'", _duration_week: "w'w'", _duration_week_month: "w'w'", _duration_week_year: "w'w'", _duration_month: "M'm'", _duration_month_year: "y'y' MM'm'", _duration_year: "y'y'", _era_ad: "AD", _era_bc: "BC", A: "", P: "", AM: "", PM: "", "A.M.": "", "P.M.": "", January: "", February: "", March: "", April: "", May: "", June: "", July: "", August: "", September: "", October: "", November: "", December: "", Jan: "", Feb: "", Mar: "", Apr: "", "May(short)": "May", Jun: "", Jul: "", Aug: "", Sep: "", Oct: "", Nov: "", Dec: "", Sunday: "", Monday: "", Tuesday: "", Wednesday: "", Thursday: "", Friday: "", Saturday: "", Sun: "", Mon: "", Tue: "", Wed: "", Thu: "", Fri: "", Sat: "", _dateOrd: function(t2) {
  4945. var e3 = "th";
  4946. if (t2 < 11 || t2 > 13)
  4947. switch (t2 % 10) {
  4948. case 1:
  4949. e3 = "st";
  4950. break;
  4951. case 2:
  4952. e3 = "nd";
  4953. break;
  4954. case 3:
  4955. e3 = "rd";
  4956. }
  4957. return e3;
  4958. }, "Zoom Out": "", Play: "", Stop: "", Legend: "", "Click, tap or press ENTER to toggle": "", Loading: "", Home: "", Chart: "", "Serial chart": "", "X/Y chart": "", "Pie chart": "", "Gauge chart": "", "Radar chart": "", "Sankey diagram": "", "Flow diagram": "", "Chord diagram": "", "TreeMap chart": "", "Force directed tree": "", "Sliced chart": "", Series: "", "Candlestick Series": "", "OHLC Series": "", "Column Series": "", "Line Series": "", "Pie Slice Series": "", "Funnel Series": "", "Pyramid Series": "", "X/Y Series": "", Map: "", "Press ENTER to zoom in": "", "Press ENTER to zoom out": "", "Use arrow keys to zoom in and out": "", "Use plus and minus keys on your keyboard to zoom in and out": "", Export: "", Image: "", Data: "", Print: "", "Press ENTER or use arrow keys to navigate": "", "Click, tap or press ENTER to open": "", "Click, tap or press ENTER to print.": "", "Click, tap or press ENTER to export as %1.": "", 'To save the image, right-click this link and choose "Save picture as..."': "", 'To save the image, right-click thumbnail on the left and choose "Save picture as..."': "", "(Press ESC to close this message)": "", "Image Export Complete": "", "Export operation took longer than expected. Something might have gone wrong.": "", "Saved from": "", PNG: "", JPG: "", GIF: "", SVG: "", PDF: "", JSON: "", CSV: "", XLSX: "", "Use TAB to select grip buttons or left and right arrows to change selection": "", "Use left and right arrows to move selection": "", "Use left and right arrows to move left selection": "", "Use left and right arrows to move right selection": "", "Use TAB select grip buttons or up and down arrows to change selection": "", "Use up and down arrows to move selection": "", "Use up and down arrows to move lower selection": "", "Use up and down arrows to move upper selection": "", "From %1 to %2": "", "From %1": "", "To %1": "", "No parser available for file: %1": "", "Error parsing file: %1": "", "Unable to load file: %1": "", "Invalid date": "", Close: "", Minimize: "" };
  4959. var ka, Ta = function(t2) {
  4960. function e3() {
  4961. var e4 = t2.call(this) || this;
  4962. return e4.adapter = new Yi(e4), e4._locale = Da, e4._defaultLocale = Da, e4.className = "Language", Z(ls.defaultLocale) && (e4.locale = ls.defaultLocale), e4.applyTheme(), e4;
  4963. }
  4964. return C(e3, t2), e3.prototype.getLocale = function(t3) {
  4965. return t3 == null && (t3 = this._locale), this.adapter.apply("locale", { locale: t3 }).locale;
  4966. }, e3.prototype.translate = function(t3, e4) {
  4967. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  4968. i3[n3 - 2] = arguments[n3];
  4969. e4 = this.getLocale(e4);
  4970. var r3 = t3, s2 = this.getTranslations(e4)[t3];
  4971. if (s2 === null)
  4972. s2 = "";
  4973. else if (Z(s2))
  4974. s2 && (r3 = s2);
  4975. else if (e4 !== this._defaultLocale)
  4976. return this.translate.apply(this, T([t3, this._defaultLocale], i3));
  4977. if (i3.length)
  4978. for (var a2 = i3.length, o3 = 0; o3 < a2; ++o3)
  4979. r3 = r3.split("%" + (o3 + 1)).join(i3[o3]);
  4980. return this.adapter.apply("translate", { translation: r3, locale: e4 }).translation;
  4981. }, e3.prototype.translateAny = function(t3, e4) {
  4982. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  4983. i3[n3 - 2] = arguments[n3];
  4984. return this.translate.apply(this, T([t3, e4], i3));
  4985. }, e3.prototype.setTranslationAny = function(t3, e4, i3) {
  4986. (i3 || this.locale)[t3] = e4;
  4987. }, e3.prototype.translateEmpty = function(t3, e4) {
  4988. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  4989. i3[n3 - 2] = arguments[n3];
  4990. var r3 = this.translate.apply(this, T([t3, e4], i3));
  4991. return r3 == t3 ? "" : r3;
  4992. }, e3.prototype.translateFunc = function(t3, e4) {
  4993. e4 = this.getLocale(e4);
  4994. var i3 = this.getTranslations(e4)[t3];
  4995. return i3 != null ? i3 : e4 !== this._defaultLocale ? this.translateFunc(t3, this._defaultLocale) : function() {
  4996. return "";
  4997. };
  4998. }, e3.prototype.translateAll = function(t3, e4) {
  4999. var i3 = this;
  5000. return this.isDefault() ? t3 : zt(t3, function(t4) {
  5001. return i3.translate(t4, e4);
  5002. });
  5003. }, e3.prototype.isDefault = function() {
  5004. return this._defaultLocale === this._locale;
  5005. }, Object.defineProperty(e3.prototype, "locale", { get: function() {
  5006. return this._locale;
  5007. }, set: function(t3) {
  5008. if (this._locale != t3 && (this._locale = t3, this.events.isEnabled("localechanged"))) {
  5009. var e4 = { type: "localechanged", locale: t3, target: this };
  5010. this.events.dispatchImmediately("localechanged", e4);
  5011. }
  5012. }, enumerable: true, configurable: true }), e3.prototype.getTranslations = function(t3) {
  5013. return this.adapter.apply("translations", { translations: t3, locale: t3 }).translations;
  5014. }, e3;
  5015. }(mn), Aa = function(t2) {
  5016. function e3() {
  5017. var e4 = t2.call(this) || this;
  5018. return e4.adapter = new Yi(e4), e4.className = "TextFormatter", e4.applyTheme(), e4;
  5019. }
  5020. return C(e3, t2), e3.prototype.debug = function() {
  5021. }, e3.prototype.format = function(t3, e4) {
  5022. Z(e4) || (e4 = "svg");
  5023. var i3 = "", n3 = (t3 = this.escape(t3)).match(/\[([^\]]*?)\]/gm);
  5024. if (!n3)
  5025. return this.wrap(t3, "", e4);
  5026. for (var r3 = t3.split(/\[[^\[\]]*\]/), s2 = 0, a2 = r3.length; s2 < a2; s2++) {
  5027. var o3 = r3[s2];
  5028. if (o3 !== "") {
  5029. o3 = this.adapter.apply("chunk", o3);
  5030. var l2 = "";
  5031. s2 > 0 && (l2 = n3[s2 - 1].replace("[", "").replace("]", "")), i3 += this.wrap(o3, l2, e4);
  5032. }
  5033. }
  5034. return i3 = this.unescape(i3), this.cleanUp(i3);
  5035. }, e3.prototype.escape = function(t3) {
  5036. return t3.replace(/\[\[/g, Ii.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g, "$1" + Ii.getPlaceholder("2")).replace(/\]\]/g, Ii.getPlaceholder("2")).replace(/\{\{/g, Ii.getPlaceholder("3")).replace(/\}\}/g, Ii.getPlaceholder("4")).replace(/\'\'/g, Ii.getPlaceholder("5"));
  5037. }, e3.prototype.unescape = function(t3) {
  5038. return t3.replace(new RegExp(Ii.getPlaceholder("1"), "g"), "[[").replace(new RegExp(Ii.getPlaceholder("2"), "g"), "]]").replace(new RegExp(Ii.getPlaceholder("3"), "g"), "{{").replace(new RegExp(Ii.getPlaceholder("4"), "g"), "}}").replace(new RegExp(Ii.getPlaceholder("5"), "g"), "''");
  5039. }, e3.prototype.cleanUp = function(t3) {
  5040. return t3.replace(/\[\[/g, "[").replace(/\]\]/g, "]").replace(/\{\{/g, "{").replace(/\}\}/g, "}").replace(/\'\'/g, "'");
  5041. }, e3.prototype.wrap = function(t3, e4, i3) {
  5042. return e4 !== "" && e4 !== "/" || (e4 = ""), i3 === "html" ? this.wrapHtml(t3, this.translateStyleShortcuts(e4)) : this.wrapSvg(t3, this.translateStyleShortcuts(e4));
  5043. }, e3.prototype.wrapSvg = function(t3, e4) {
  5044. return e4 === "" ? "<tspan>" + t3 + "</tspan>" : "<tspan style='" + e4 + "'>" + t3 + "</tspan>";
  5045. }, e3.prototype.getSvgElement = function(t3, e4) {
  5046. var i3 = new Ws("tspan");
  5047. return i3.textContent = t3, e4 && i3.node.setAttribute("style", e4), i3;
  5048. }, e3.prototype.wrapHtml = function(t3, e4) {
  5049. return e4 === "" ? "<span>" + t3 + "</span>" : "<span style='" + this.styleSvgToHtml(e4) + "'>" + t3 + "</span>";
  5050. }, e3.prototype.getHtmlElement = function(t3, e4) {
  5051. var i3 = document.createElement("span");
  5052. return i3.innerHTML = t3, e4 && i3.setAttribute("style", e4), i3;
  5053. }, e3.prototype.styleSvgToHtml = function(t3) {
  5054. return t3.replace(/fill:/, "color:");
  5055. }, e3.prototype.translateStyleShortcuts = function(t3) {
  5056. if (t3 == "" || t3 == "[ ]")
  5057. return "";
  5058. var e4 = Ii.getCache("translateStyleShortcuts_" + t3);
  5059. if (e4)
  5060. return e4;
  5061. var i3 = t3.match(/('[^']*')|("[^"]*")/gi);
  5062. if (i3)
  5063. for (var n3 = 0; n3 < i3.length; n3++)
  5064. t3 = t3.replace(i3[n3], i3[n3].replace(/['"]*/g, "").replace(/[ ]+/g, "+"));
  5065. var r3 = t3.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);
  5066. if (!r3)
  5067. return t3;
  5068. for (n3 = 0; n3 < r3.length; n3++)
  5069. r3[n3].match(/^bold$/i) ? r3[n3] = "font-weight:" + r3[n3] : r3[n3] == "/" ? r3[n3] = "" : r3[n3].match(/:/) ? r3[n3] = r3[n3].replace(/\+/g, " ") : r3[n3] = "fill:" + r3[n3];
  5070. var s2 = r3.join(";");
  5071. return Ii.setCache("translateStyleShortcuts_" + t3, s2), s2;
  5072. }, e3.prototype.chunk = function(t3, e4, i3) {
  5073. e4 === void 0 && (e4 = false), i3 === void 0 && (i3 = false);
  5074. var n3 = [];
  5075. t3 = this.escape(t3);
  5076. for (var r3 = e4 ? t3.split("'") : [t3], s2 = 0; s2 < r3.length; s2++) {
  5077. var a2 = r3[s2];
  5078. if (a2 !== "")
  5079. if (s2 % 2 == 0)
  5080. for (var o3 = (a2 = (a2 = a2.replace(/\]\[/g, "]" + wn + "[")).replace(/\[\]/g, "[ ]")).split(/[\[\]]+/), l2 = 0; l2 < o3.length; l2++)
  5081. (h2 = this.cleanUp(this.unescape(o3[l2]))) !== wn && h2 !== "" && (l2 % 2 == 0 ? n3.push({ type: "value", text: this.adapter.apply("chunk", h2) }) : n3.push({ type: i3 ? "value" : "format", text: "[" + h2 + "]" }));
  5082. else
  5083. for (o3 = a2.split(/[\[\]]+/), l2 = 0; l2 < o3.length; l2++) {
  5084. var h2;
  5085. (h2 = this.cleanUp(this.unescape(o3[l2]))) !== "" && (l2 % 2 == 0 ? n3.push({ type: "text", text: h2 }) : this.isImage(h2) ? n3.push({ type: "image", text: "[" + h2 + "]" }) : n3.push({ type: "format", text: "[" + h2 + "]" }));
  5086. }
  5087. }
  5088. return n3;
  5089. }, e3.prototype.isImage = function(t3) {
  5090. return !!t3.match(/img[ ]?:/);
  5091. }, e3;
  5092. }(yn);
  5093. function Va() {
  5094. return ka == null && (ka = new Aa()), ka;
  5095. }
  5096. Ii.registeredClasses.TextFormatter = Aa;
  5097. var Fa = function(t2) {
  5098. function e3() {
  5099. var e4 = t2.call(this) || this;
  5100. return e4._negativeBase = 0, e4._numberFormat = "#,###.#####", e4._outputFormat = "svg", e4._smallNumberThreshold = 1, e4._forceLTR = false, e4.className = "NumberFormatter", e4.applyTheme(), e4;
  5101. }
  5102. return C(e3, t2), e3.prototype.dispose = function() {
  5103. t2.prototype.dispose.call(this), this.language && this.language.dispose();
  5104. }, Object.defineProperty(e3.prototype, "language", { get: function() {
  5105. return this._language || (this.sprite ? this._language = this.sprite.language : this._language = new Ta()), this._language;
  5106. }, set: function(t3) {
  5107. this._language = t3;
  5108. }, enumerable: true, configurable: true }), e3.prototype.format = function(t3, e4, i3) {
  5109. var n3;
  5110. (e4 === void 0 || Q(e4) && e4.toLowerCase() === "number") && (e4 = this._numberFormat);
  5111. var r3 = Number(t3);
  5112. if (et(e4))
  5113. try {
  5114. return this.intlLocales ? new Intl.NumberFormat(this.intlLocales, e4).format(r3) : new Intl.NumberFormat(void 0, e4).format(r3);
  5115. } catch (t4) {
  5116. return "Invalid";
  5117. }
  5118. else {
  5119. e4 = Zn(e4);
  5120. var s2 = this.parseFormat(e4, this.language), a2 = void 0;
  5121. a2 = r3 > this._negativeBase ? s2.positive : r3 < this._negativeBase ? s2.negative : s2.zero, Z(i3) && !a2.mod && ((a2 = ze(a2)).decimals.active = r3 == 0 ? 0 : i3), n3 = a2.template.split(wn).join(this.applyFormat(r3, a2));
  5122. }
  5123. return this.forceLTR && (n3 = "\u200E" + n3), n3;
  5124. }, e3.prototype.parseFormat = function(t3, e4) {
  5125. var i3 = this, n3 = this.getCache(t3);
  5126. if (Z(n3))
  5127. return n3;
  5128. var r3 = { positive: { thousands: { active: -1, passive: -1, interval: -1, separator: e4.translateEmpty("_thousandSeparator") }, decimals: { active: -1, passive: -1, separator: e4.translateEmpty("_decimalSeparator") }, template: "", source: "", parsed: false }, negative: { thousands: { active: -1, passive: -1, interval: -1, separator: e4.translateEmpty("_thousandSeparator") }, decimals: { active: -1, passive: -1, separator: e4.translateEmpty("_decimalSeparator") }, template: "", source: "", parsed: false }, zero: { thousands: { active: -1, passive: -1, interval: -1, separator: e4.translateEmpty("_thousandSeparator") }, decimals: { active: -1, passive: -1, separator: e4.translateEmpty("_decimalSeparator") }, template: "", source: "", parsed: false } }, s2 = (t3 = t3.replace("||", Cn)).split("|");
  5129. return r3.positive.source = s2[0], s2[2] === void 0 ? r3.zero = r3.positive : r3.zero.source = s2[2], s2[1] === void 0 ? r3.negative = r3.positive : r3.negative.source = s2[1], Ne(r3, function(t4, e5) {
  5130. if (!e5.parsed)
  5131. if (i3.getCache(e5.source) === void 0) {
  5132. var n4 = e5.source;
  5133. n4.toLowerCase() === "number" && (n4 = Q(i3._numberFormat) ? i3._numberFormat : "#,###.#####");
  5134. for (var s3 = Va().chunk(n4, true), a2 = 0; a2 < s3.length; a2++) {
  5135. var o3 = s3[a2];
  5136. if (o3.text = o3.text.replace(Cn, "|"), o3.type === "value") {
  5137. var l2 = o3.text.match(/[#0.,]+[ ]?[abesABES%!]?[abesABES‰!]?/);
  5138. if (l2)
  5139. if (l2 === null || l2[0] === "")
  5140. e5.template += o3.text;
  5141. else {
  5142. var h2 = l2[0].match(/[abesABES%‰!]{2}|[abesABES%‰]{1}$/);
  5143. h2 && (e5.mod = h2[0].toLowerCase(), e5.modSpacing = !!l2[0].match(/[ ]{1}[abesABES%‰!]{1}$/));
  5144. var p2 = l2[0].split(".");
  5145. if (p2[0] === "")
  5146. ;
  5147. else {
  5148. e5.thousands.active = (p2[0].match(/0/g) || []).length, e5.thousands.passive = (p2[0].match(/\#/g) || []).length + e5.thousands.active;
  5149. var u2 = p2[0].split(",");
  5150. u2.length === 1 || (e5.thousands.interval = q(u2.pop()).length, e5.thousands.interval === 0 && (e5.thousands.interval = -1));
  5151. }
  5152. p2[1] === void 0 || (e5.decimals.active = (p2[1].match(/0/g) || []).length, e5.decimals.passive = (p2[1].match(/\#/g) || []).length + e5.decimals.active), e5.template += o3.text.split(l2[0]).join(wn);
  5153. }
  5154. } else
  5155. e5.template += o3.text;
  5156. }
  5157. i3.setCache(e5.source, e5), e5.parsed = true;
  5158. } else
  5159. r3[t4] = i3.getCache(e5.source);
  5160. }), this.setCache(t3, r3), r3;
  5161. }, e3.prototype.applyFormat = function(t3, e4) {
  5162. var i3 = t3 < 0;
  5163. t3 = Math.abs(t3);
  5164. var n3, r3 = "", s2 = "", a2 = e4.mod ? e4.mod.split("") : [];
  5165. if (a2.indexOf("b") !== -1) {
  5166. var o3 = this.applyPrefix(t3, this.bytePrefixes, a2.indexOf("!") !== -1);
  5167. t3 = o3[0], r3 = o3[1], s2 = o3[2], e4.modSpacing && (s2 = " " + s2);
  5168. } else if (a2.indexOf("a") !== -1) {
  5169. var l2 = this.applyPrefix(t3, t3 < this.smallNumberThreshold ? this.smallNumberPrefixes : this.bigNumberPrefixes, a2.indexOf("!") !== -1);
  5170. t3 = l2[0], r3 = l2[1], s2 = l2[2], e4.modSpacing && (s2 = " " + s2);
  5171. } else if (a2.indexOf("%") !== -1) {
  5172. var h2 = yt(t3.toString().length + 2, 21);
  5173. t3 *= 100, t3 = parseFloat(t3.toPrecision(h2)), s2 = "%";
  5174. } else
  5175. a2.indexOf("\u2030") !== -1 && (h2 = yt(t3.toString().length + 3, 21), t3 *= 1e3, t3 = parseFloat(t3.toPrecision(h2)), s2 = "\u2030");
  5176. if (a2.indexOf("e") !== -1)
  5177. n3 = e4.decimals.passive >= 0 ? t3.toExponential(e4.decimals.passive).split("e") : t3.toExponential().split("e"), t3 = Number(n3[0]), s2 = "e" + n3[1], e4.modSpacing && (s2 = " " + s2);
  5178. else if (e4.decimals.passive === 0)
  5179. t3 = Math.round(t3);
  5180. else if (e4.decimals.passive > 0) {
  5181. var p2 = Math.pow(10, e4.decimals.passive);
  5182. t3 = Math.round(t3 * p2) / p2;
  5183. }
  5184. var u2 = "", d2 = Jn(t3).split("."), c2 = d2[0];
  5185. if (c2.length < e4.thousands.active && (c2 = Array(e4.thousands.active - c2.length + 1).join("0") + c2), e4.thousands.interval > 0) {
  5186. for (var f2 = [], g2 = c2.split("").reverse().join(""), y2 = 0, m2 = c2.length; y2 <= m2; y2 += e4.thousands.interval) {
  5187. var v2 = g2.substr(y2, e4.thousands.interval).split("").reverse().join("");
  5188. v2 !== "" && f2.unshift(v2);
  5189. }
  5190. c2 = f2.join(e4.thousands.separator);
  5191. }
  5192. u2 += c2, d2.length === 1 && d2.push("");
  5193. var b2 = d2[1];
  5194. return b2.length < e4.decimals.active && (b2 += Array(e4.decimals.active - b2.length + 1).join("0")), b2 !== "" && (u2 += e4.decimals.separator + b2), u2 === "" && (u2 = "0"), t3 !== 0 && i3 && a2.indexOf("s") === -1 && (u2 = "-" + u2), r3 && (u2 = r3 + u2), s2 && (u2 += s2), u2;
  5195. }, e3.prototype.applyPrefix = function(t3, e4, i3) {
  5196. i3 === void 0 && (i3 = false);
  5197. for (var n3 = t3, r3 = "", s2 = "", a2 = false, o3 = 1, l2 = 0, h2 = e4.length; l2 < h2; l2++)
  5198. e4[l2].number <= t3 && (e4[l2].number === 0 ? n3 = 0 : (n3 = t3 / e4[l2].number, o3 = e4[l2].number), r3 = e4[l2].prefix, s2 = e4[l2].suffix, a2 = true);
  5199. return !a2 && i3 && e4.length && t3 != 0 && (n3 = t3 / e4[0].number, r3 = e4[0].prefix, s2 = e4[0].suffix, a2 = true), a2 && (n3 = parseFloat(n3.toPrecision(yt(o3.toString().length + Math.floor(n3).toString().replace(/[^0-9]*/g, "").length, 21)))), [n3, r3, s2];
  5200. }, e3.prototype.invalidateSprite = function() {
  5201. this.sprite && this.sprite.invalidate();
  5202. }, Object.defineProperty(e3.prototype, "numberFormat", { get: function() {
  5203. return this._numberFormat;
  5204. }, set: function(t3) {
  5205. this._numberFormat = t3;
  5206. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "intlLocales", { get: function() {
  5207. return this._intlLocales;
  5208. }, set: function(t3) {
  5209. this._intlLocales = t3, this.invalidateSprite();
  5210. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "negativeBase", { get: function() {
  5211. return this._negativeBase;
  5212. }, set: function(t3) {
  5213. this._negativeBase = t3;
  5214. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bigNumberPrefixes", { get: function() {
  5215. return Z(this._bigNumberPrefixes) || (this._bigNumberPrefixes = [{ number: 1e3, suffix: this.language.translate("_big_number_suffix_3") }, { number: 1e6, suffix: this.language.translate("_big_number_suffix_6") }, { number: 1e9, suffix: this.language.translate("_big_number_suffix_9") }, { number: 1e12, suffix: this.language.translate("_big_number_suffix_12") }, { number: 1e15, suffix: this.language.translate("_big_number_suffix_15") }, { number: 1e18, suffix: this.language.translate("_big_number_suffix_18") }, { number: 1e21, suffix: this.language.translate("_big_number_suffix_21") }, { number: 1e24, suffix: this.language.translate("_big_number_suffix_24") }]), this._bigNumberPrefixes;
  5216. }, set: function(t3) {
  5217. this._bigNumberPrefixes = t3;
  5218. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "smallNumberPrefixes", { get: function() {
  5219. return Z(this._smallNumberPrefixes) || (this._smallNumberPrefixes = [{ number: 1e-24, suffix: this.language.translate("_small_number_suffix_24") }, { number: 1e-21, suffix: this.language.translate("_small_number_suffix_21") }, { number: 1e-18, suffix: this.language.translate("_small_number_suffix_18") }, { number: 1e-15, suffix: this.language.translate("_small_number_suffix_15") }, { number: 1e-12, suffix: this.language.translate("_small_number_suffix_12") }, { number: 1e-9, suffix: this.language.translate("_small_number_suffix_9") }, { number: 1e-6, suffix: this.language.translate("_small_number_suffix_6") }, { number: 1e-3, suffix: this.language.translate("_small_number_suffix_3") }]), this._smallNumberPrefixes;
  5220. }, set: function(t3) {
  5221. this._smallNumberPrefixes = t3;
  5222. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "smallNumberThreshold", { get: function() {
  5223. return this._smallNumberThreshold;
  5224. }, set: function(t3) {
  5225. this._smallNumberThreshold = t3;
  5226. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bytePrefixes", { get: function() {
  5227. return Z(this._bytePrefixes) || (this._bytePrefixes = [{ number: 1, suffix: this.language.translate("_byte_suffix_B") }, { number: 1024, suffix: this.language.translate("_byte_suffix_KB") }, { number: 1048576, suffix: this.language.translate("_byte_suffix_MB") }, { number: 1073741824, suffix: this.language.translate("_byte_suffix_GB") }, { number: 1099511627776, suffix: this.language.translate("_byte_suffix_TB") }, { number: 1125899906842624, suffix: this.language.translate("_byte_suffix_PB") }]), this._bytePrefixes;
  5228. }, set: function(t3) {
  5229. this._bytePrefixes = t3;
  5230. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outputFormat", { get: function() {
  5231. return this._outputFormat;
  5232. }, set: function(t3) {
  5233. this._outputFormat = t3.toLowerCase(), this.invalidateSprite();
  5234. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "forceLTR", { get: function() {
  5235. return this._forceLTR;
  5236. }, set: function(t3) {
  5237. this._forceLTR = t3, this.invalidateSprite();
  5238. }, enumerable: true, configurable: true }), e3.prototype.escape = function(t3) {
  5239. return t3.replace("||", Cn);
  5240. }, e3.prototype.unescape = function(t3) {
  5241. return t3.replace(Cn, "|");
  5242. }, e3;
  5243. }(yn);
  5244. Ii.registeredClasses.NumberFormatter = Fa;
  5245. var Ma = function(t2) {
  5246. function e3() {
  5247. var e4 = t2.call(this) || this;
  5248. return e4._dateFormat = "yyyy-MM-dd", e4._inputDateFormat = "yyyy-MM-dd", e4._utc = false, e4.timezoneMinutes = 0, e4._firstDayOfWeek = 1, e4.months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], e4.monthsShort = ["Jan", "Feb", "Mar", "Apr", "May(short)", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], e4.weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], e4.weekdaysShort = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], e4._outputFormat = "svg", e4.capitalize = true, e4.className = "DateFormatter", e4.applyTheme(), e4;
  5249. }
  5250. return C(e3, t2), Object.defineProperty(e3.prototype, "language", { get: function() {
  5251. return this._language;
  5252. }, set: function(t3) {
  5253. this._language = t3, this.dateFormat = this._language.translate("_date");
  5254. }, enumerable: true, configurable: true }), e3.prototype.format = function(t3, e4, i3) {
  5255. var n3, r3;
  5256. if (this.language || (this.sprite ? this.language = this.sprite.language : this.language = new Ta()), e4 !== void 0 && e4 !== "" || (e4 = this._dateFormat), r3 = Q(t3) ? this.parse(t3) : Qn(t3), et(e4))
  5257. try {
  5258. return this.intlLocales ? new Intl.DateTimeFormat(this.intlLocales, e4).format(r3) : new Intl.DateTimeFormat(void 0, e4).format(r3);
  5259. } catch (t4) {
  5260. return "Invalid";
  5261. }
  5262. else {
  5263. e4 = Zn(e4);
  5264. var s2 = this.parseFormat(e4);
  5265. if (Z(this.timezoneOffset) ? r3.setMinutes(r3.getMinutes() + r3.getTimezoneOffset() - this.timezoneOffset) : Z(this.timezone) && i3 !== false && (r3 = oa(r3, this.timezone)), !tt(r3.getTime()))
  5266. return this.language.translate("Invalid date");
  5267. n3 = this.applyFormat(r3, s2, this.language), this.capitalize && (n3 = n3.replace(/^.{1}/, n3.substr(0, 1).toUpperCase()));
  5268. }
  5269. return n3;
  5270. }, e3.prototype.parseFormat = function(t3) {
  5271. var e4 = this.getCache(t3);
  5272. if (Z(e4))
  5273. return e4;
  5274. for (var i3 = { template: "", parts: [] }, n3 = Va().chunk(t3, true), r3 = 0; r3 < n3.length; r3++) {
  5275. var s2 = n3[r3];
  5276. if (s2.type === "value") {
  5277. s2.text.match(/^date$/i) && Q(this._dateFormat) && (s2.text = this._dateFormat);
  5278. var a2 = s2.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);
  5279. if (a2)
  5280. for (var o3 = 0; o3 < a2.length; o3++)
  5281. i3.parts.push(a2[o3]), s2.text = s2.text.replace(a2[o3], wn);
  5282. }
  5283. i3.template += s2.text;
  5284. }
  5285. return this.setCache(t3, i3), i3;
  5286. }, e3.prototype.applyFormat = function(t3, e4, i3) {
  5287. var n3, r3, s2, a2, o3, l2, h2, p2, u2 = e4.template, d2 = t3.getTimezoneOffset(), c2 = t3.getTime();
  5288. this.utc ? (n3 = t3.getUTCFullYear(), r3 = t3.getUTCMonth(), s2 = t3.getUTCDay(), a2 = t3.getUTCDate(), o3 = t3.getUTCHours(), l2 = t3.getUTCMinutes(), h2 = t3.getUTCSeconds(), p2 = t3.getUTCMilliseconds()) : (n3 = t3.getFullYear(), r3 = t3.getMonth(), s2 = t3.getDay(), a2 = t3.getDate(), o3 = t3.getHours(), l2 = t3.getMinutes(), h2 = t3.getSeconds(), p2 = t3.getMilliseconds());
  5289. for (var f2 = 0, g2 = e4.parts.length; f2 < g2; f2++) {
  5290. var y2 = "";
  5291. switch (e4.parts[f2]) {
  5292. case "G":
  5293. y2 = i3.translate(n3 < 0 ? "_era_bc" : "_era_ad");
  5294. break;
  5295. case "yyyy":
  5296. y2 = Math.abs(n3).toString(), n3 < 0 && (y2 += i3.translate("_era_bc"));
  5297. break;
  5298. case "yyy":
  5299. case "yy":
  5300. case "y":
  5301. y2 = Math.abs(n3).toString().substr(-e4.parts[f2].length), n3 < 0 && (y2 += i3.translate("_era_bc"));
  5302. break;
  5303. case "YYYY":
  5304. case "YYY":
  5305. case "YY":
  5306. case "Y":
  5307. var m2 = n3;
  5308. ir(t3) == 1 && s2 > 4 && m2--, y2 = e4.parts[f2] == "YYYY" ? Math.abs(m2).toString() : Math.abs(m2).toString().substr(-e4.parts[f2].length), m2 < 0 && (y2 += i3.translate("_era_bc"));
  5309. break;
  5310. case "u":
  5311. case "F":
  5312. case "g":
  5313. break;
  5314. case "q":
  5315. y2 = "" + Math.ceil((t3.getMonth() + 1) / 3);
  5316. break;
  5317. case "MMMMM":
  5318. y2 = i3.translate(this.months[r3]).substr(0, 1);
  5319. break;
  5320. case "MMMM":
  5321. y2 = i3.translate(this.months[r3]);
  5322. break;
  5323. case "MMM":
  5324. y2 = i3.translate(this.monthsShort[r3]);
  5325. break;
  5326. case "MM":
  5327. y2 = Gn(r3 + 1, 2, "0");
  5328. break;
  5329. case "M":
  5330. y2 = (r3 + 1).toString();
  5331. break;
  5332. case "ww":
  5333. y2 = Gn(ir(t3, this.utc), 2, "0");
  5334. break;
  5335. case "w":
  5336. y2 = ir(t3, this.utc).toString();
  5337. break;
  5338. case "W":
  5339. y2 = nr(t3, this.utc).toString();
  5340. break;
  5341. case "dd":
  5342. y2 = Gn(a2, 2, "0");
  5343. break;
  5344. case "d":
  5345. y2 = a2.toString();
  5346. break;
  5347. case "DD":
  5348. case "DDD":
  5349. y2 = Gn(er(t3, this.utc).toString(), e4.parts[f2].length, "0");
  5350. break;
  5351. case "D":
  5352. y2 = er(t3, this.utc).toString();
  5353. break;
  5354. case "t":
  5355. y2 = i3.translateFunc("_dateOrd").call(this, a2);
  5356. break;
  5357. case "E":
  5358. y2 = (s2 || 7).toString();
  5359. break;
  5360. case "EE":
  5361. y2 = Gn((s2 || 7).toString(), 2, "0");
  5362. break;
  5363. case "EEE":
  5364. case "eee":
  5365. y2 = i3.translate(this.weekdaysShort[s2]);
  5366. break;
  5367. case "EEEE":
  5368. case "eeee":
  5369. y2 = i3.translate(this.weekdays[s2]);
  5370. break;
  5371. case "EEEEE":
  5372. case "eeeee":
  5373. y2 = i3.translate(this.weekdays[s2]).substr(0, 1);
  5374. break;
  5375. case "e":
  5376. case "ee":
  5377. y2 = (s2 - this.firstDayOfWeek + 1).toString(), e4.parts[f2] == "ee" && (y2 = Gn(y2, 2, "0"));
  5378. break;
  5379. case "a":
  5380. y2 = o3 >= 12 ? i3.translate("PM") : i3.translate("AM");
  5381. break;
  5382. case "aa":
  5383. y2 = o3 >= 12 ? i3.translate("P.M.") : i3.translate("A.M.");
  5384. break;
  5385. case "aaa":
  5386. y2 = o3 >= 12 ? i3.translate("P") : i3.translate("A");
  5387. break;
  5388. case "h":
  5389. y2 = sr(o3).toString();
  5390. break;
  5391. case "hh":
  5392. y2 = Gn(sr(o3), 2, "0");
  5393. break;
  5394. case "H":
  5395. y2 = o3.toString();
  5396. break;
  5397. case "HH":
  5398. y2 = Gn(o3, 2, "0");
  5399. break;
  5400. case "K":
  5401. y2 = sr(o3, 0).toString();
  5402. break;
  5403. case "KK":
  5404. y2 = Gn(sr(o3, 0), 2, "0");
  5405. break;
  5406. case "k":
  5407. y2 = (o3 + 1).toString();
  5408. break;
  5409. case "kk":
  5410. y2 = Gn(o3 + 1, 2, "0");
  5411. break;
  5412. case "m":
  5413. y2 = l2.toString();
  5414. break;
  5415. case "mm":
  5416. y2 = Gn(l2, 2, "0");
  5417. break;
  5418. case "s":
  5419. y2 = h2.toString();
  5420. break;
  5421. case "ss":
  5422. y2 = Gn(h2, 2, "0");
  5423. break;
  5424. case "S":
  5425. case "SS":
  5426. case "SSS":
  5427. y2 = Math.round(p2 / 1e3 * Math.pow(10, e4.parts[f2].length)).toString();
  5428. break;
  5429. case "x":
  5430. y2 = c2.toString();
  5431. break;
  5432. case "n":
  5433. case "nn":
  5434. case "nnn":
  5435. y2 = Gn(p2, e4.parts[f2].length, "0");
  5436. break;
  5437. case "z":
  5438. y2 = ar(t3, false, false, this.utc);
  5439. break;
  5440. case "zz":
  5441. y2 = ar(t3, true, false, this.utc);
  5442. break;
  5443. case "zzz":
  5444. y2 = ar(t3, false, true, this.utc);
  5445. break;
  5446. case "zzzz":
  5447. y2 = ar(t3, true, true, this.utc);
  5448. break;
  5449. case "Z":
  5450. case "ZZ":
  5451. var v2 = Math.abs(d2) / 60, b2 = Math.floor(v2), x2 = 60 * v2 - 60 * b2;
  5452. this.utc && (b2 = 0, x2 = 0), e4.parts[f2] == "Z" ? (y2 = "GMT", y2 += d2 > 0 ? "-" : "+", y2 += Gn(b2, 2) + ":" + Gn(x2, 2)) : (y2 = d2 > 0 ? "-" : "+", y2 += Gn(b2, 2) + Gn(x2, 2));
  5453. break;
  5454. case "i":
  5455. y2 = t3.toISOString();
  5456. break;
  5457. case "I":
  5458. y2 = t3.toUTCString();
  5459. }
  5460. u2 = u2.replace(wn, y2);
  5461. }
  5462. return u2;
  5463. }, e3.prototype.parse = function(t3, e4) {
  5464. if (Z(e4) || (e4 = this.inputDateFormat), t3 instanceof Date)
  5465. return t3;
  5466. if (typeof t3 == "number")
  5467. return new Date(t3);
  5468. var i3;
  5469. typeof t3 != "string" && (t3 = t3.toString()), this.language || (this.sprite ? this.language = this.sprite.language : this.language = new Ta());
  5470. var n3 = "";
  5471. e4 = (e4 = Zn(e4)).substr(0, t3.length);
  5472. for (var r3 = this.parseFormat(e4), s2 = { year: -1, year3: -1, year2: -1, year1: -1, month: -1, monthShort: -1, monthLong: -1, weekdayShort: -1, weekdayLong: -1, day: -1, yearDay: -1, week: -1, hourBase0: -1, hour12Base0: -1, hourBase1: -1, hour12Base1: -1, minute: -1, second: -1, millisecond: -1, millisecondDigits: -1, am: -1, zone: -1, timestamp: -1, iso: -1 }, a2 = { year: 1970, month: 0, day: 1, hour: 0, minute: 0, second: 0, millisecond: 0, timestamp: null, offset: 0, utc: this.utc }, o3 = 0, l2 = 0, h2 = 0; h2 < r3.parts.length; h2++) {
  5473. switch (l2 = h2 + o3 + 1, r3.parts[h2]) {
  5474. case "yyyy":
  5475. case "YYYY":
  5476. n3 += "([0-9]{4})", s2.year = l2;
  5477. break;
  5478. case "yyy":
  5479. case "YYY":
  5480. n3 += "([0-9]{3})", s2.year3 = l2;
  5481. break;
  5482. case "yy":
  5483. case "YY":
  5484. n3 += "([0-9]{2})", s2.year2 = l2;
  5485. break;
  5486. case "y":
  5487. case "Y":
  5488. n3 += "([0-9]{1})", s2.year1 = l2;
  5489. break;
  5490. case "MMMM":
  5491. n3 += "(" + this.getStringList(this.months).join("|") + ")", s2.monthLong = l2;
  5492. break;
  5493. case "MMM":
  5494. n3 += "(" + this.getStringList(this.monthsShort).join("|") + ")", s2.monthShort = l2;
  5495. break;
  5496. case "MM":
  5497. case "M":
  5498. n3 += "([0-9]{2}|[0-9]{1})", s2.month = l2;
  5499. break;
  5500. case "ww":
  5501. case "w":
  5502. n3 += "([0-9]{2}|[0-9]{1})", s2.week = l2;
  5503. break;
  5504. case "dd":
  5505. case "d":
  5506. n3 += "([0-9]{2}|[0-9]{1})", s2.day = l2;
  5507. break;
  5508. case "DDD":
  5509. case "DD":
  5510. case "D":
  5511. n3 += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s2.yearDay = l2;
  5512. break;
  5513. case "dddd":
  5514. n3 += "(" + this.getStringList(this.weekdays).join("|") + ")", s2.weekdayLong = l2;
  5515. break;
  5516. case "ddd":
  5517. n3 += "(" + this.getStringList(this.weekdaysShort).join("|") + ")", s2.weekdayShort = l2;
  5518. break;
  5519. case "aaa":
  5520. case "aa":
  5521. case "a":
  5522. n3 += "(" + this.getStringList(["AM", "PM", "A.M.", "P.M.", "A", "P"]).join("|") + ")", s2.am = l2;
  5523. break;
  5524. case "hh":
  5525. case "h":
  5526. n3 += "([0-9]{2}|[0-9]{1})", s2.hour12Base1 = l2;
  5527. break;
  5528. case "HH":
  5529. case "H":
  5530. n3 += "([0-9]{2}|[0-9]{1})", s2.hourBase0 = l2;
  5531. break;
  5532. case "KK":
  5533. case "K":
  5534. n3 += "([0-9]{2}|[0-9]{1})", s2.hour12Base0 = l2;
  5535. break;
  5536. case "kk":
  5537. case "k":
  5538. n3 += "([0-9]{2}|[0-9]{1})", s2.hourBase1 = l2;
  5539. break;
  5540. case "mm":
  5541. case "m":
  5542. n3 += "([0-9]{2}|[0-9]{1})", s2.minute = l2;
  5543. break;
  5544. case "ss":
  5545. case "s":
  5546. n3 += "([0-9]{2}|[0-9]{1})", s2.second = l2;
  5547. break;
  5548. case "SSS":
  5549. case "SS":
  5550. case "S":
  5551. n3 += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s2.millisecond = l2, s2.millisecondDigits = r3.parts[h2].length;
  5552. break;
  5553. case "nnn":
  5554. case "nn":
  5555. case "n":
  5556. n3 += "([0-9]{3}|[0-9]{2}|[0-9]{1})", s2.millisecond = l2;
  5557. break;
  5558. case "x":
  5559. n3 += "([0-9]{1,})", s2.timestamp = l2;
  5560. break;
  5561. case "Z":
  5562. n3 += "GMT([-+]+[0-9]{2}:[0-9]{2})", s2.zone = l2;
  5563. break;
  5564. case "ZZ":
  5565. n3 += "([\\-+]+[0-9]{2}[0-9]{2})", s2.zone = l2;
  5566. break;
  5567. case "i":
  5568. n3 += "([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2}).?([0-9]{0,3})([zZ]|[+-][0-9]{2}:?[0-9]{2}|$)", s2.iso = l2, o3 += 7;
  5569. break;
  5570. case "G":
  5571. case "YYYY":
  5572. case "YYY":
  5573. case "YY":
  5574. case "Y":
  5575. case "MMMMM":
  5576. case "W":
  5577. case "EEEEE":
  5578. case "EEEE":
  5579. case "EEE":
  5580. case "EE":
  5581. case "E":
  5582. case "eeeee":
  5583. case "eeee":
  5584. case "eee":
  5585. case "ee":
  5586. case "e":
  5587. case "zzzz":
  5588. case "zzz":
  5589. case "zz":
  5590. case "z":
  5591. case "t":
  5592. o3--;
  5593. }
  5594. n3 += "[^0-9]*";
  5595. }
  5596. var p2 = new RegExp(n3), u2 = t3.match(p2);
  5597. if (u2) {
  5598. if (s2.year > -1 && (a2.year = parseInt(u2[s2.year])), s2.year3 > -1) {
  5599. var d2 = parseInt(u2[s2.year3]);
  5600. d2 += 1e3, a2.year = d2;
  5601. }
  5602. if (s2.year2 > -1 && (d2 = parseInt(u2[s2.year2]), d2 += d2 > 50 ? 1e3 : 2e3, a2.year = d2), s2.year1 > -1 && (d2 = parseInt(u2[s2.year1]), d2 = 10 * Math.floor(new Date().getFullYear() / 10) + d2, a2.year = d2), s2.monthLong > -1 && (a2.month = this.resolveMonth(u2[s2.monthLong])), s2.monthShort > -1 && (a2.month = this.resolveShortMonth(u2[s2.monthShort])), s2.month > -1 && (a2.month = parseInt(u2[s2.month]) - 1), s2.week > -1 && s2.day === -1 && (a2.month = 0, a2.day = rr(parseInt(u2[s2.week]), a2.year, 1, this.utc)), s2.day > -1 && (a2.day = parseInt(u2[s2.day])), s2.yearDay > -1 && (a2.month = 0, a2.day = parseInt(u2[s2.yearDay])), s2.hourBase0 > -1 && (a2.hour = parseInt(u2[s2.hourBase0])), s2.hourBase1 > -1 && (a2.hour = parseInt(u2[s2.hourBase1]) - 1), s2.hour12Base0 > -1 && ((d2 = parseInt(u2[s2.hour12Base0])) == 11 && (d2 = 0), s2.am > -1 && !this.isAm(u2[s2.am]) && (d2 += 12), a2.hour = d2), s2.hour12Base1 > -1 && ((d2 = parseInt(u2[s2.hour12Base1])) == 12 && (d2 = 0), s2.am > -1 && !this.isAm(u2[s2.am]) && (d2 += 12), a2.hour = d2), s2.minute > -1 && (a2.minute = parseInt(u2[s2.minute])), s2.second > -1 && (a2.second = parseInt(u2[s2.second])), s2.millisecond > -1 && (d2 = parseInt(u2[s2.millisecond]), s2.millisecondDigits == 2 ? d2 *= 10 : s2.millisecondDigits == 1 && (d2 *= 100), a2.millisecond = d2), s2.timestamp > -1) {
  5603. a2.timestamp = parseInt(u2[s2.timestamp]);
  5604. var c2 = new Date(a2.timestamp);
  5605. a2.year = c2.getUTCFullYear(), a2.month = c2.getUTCMonth(), a2.day = c2.getUTCDate(), a2.hour = c2.getUTCHours(), a2.minute = c2.getUTCMinutes(), a2.second = c2.getUTCSeconds(), a2.millisecond = c2.getUTCMilliseconds();
  5606. }
  5607. s2.zone > -1 && (a2.offset = this.resolveTimezoneOffset(new Date(a2.year, a2.month, a2.day), u2[s2.zone])), s2.iso > -1 && (a2.year = U(u2[s2.iso + 0]), a2.month = U(u2[s2.iso + 1]) - 1, a2.day = U(u2[s2.iso + 2]), a2.hour = U(u2[s2.iso + 3]), a2.minute = U(u2[s2.iso + 4]), a2.second = U(u2[s2.iso + 5]), a2.millisecond = U(u2[s2.iso + 6]), u2[s2.iso + 7] == "Z" || u2[s2.iso + 7] == "z" ? a2.utc = true : u2[s2.iso + 7] != "" && (a2.offset = this.resolveTimezoneOffset(new Date(a2.year, a2.month, a2.day), u2[s2.iso + 7]))), i3 = a2.utc ? new Date(Date.UTC(a2.year, a2.month, a2.day, a2.hour, a2.minute, a2.second, a2.millisecond)) : new Date(a2.year, a2.month, a2.day, a2.hour, a2.minute + a2.offset, a2.second, a2.millisecond);
  5608. } else
  5609. i3 = new Date(t3);
  5610. return i3;
  5611. }, e3.prototype.resolveTimezoneOffset = function(t3, e4) {
  5612. if (e4.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)) {
  5613. var i3 = q(e4.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)), n3 = i3[1], r3 = i3[2], s2 = i3[3], a2 = 60 * parseInt(r3) + parseInt(s2);
  5614. return n3 == "+" && (a2 *= -1), a2 - (t3 || new Date()).getTimezoneOffset();
  5615. }
  5616. return 0;
  5617. }, e3.prototype.resolveMonth = function(t3) {
  5618. var e4 = this.months.indexOf(t3);
  5619. return e4 > -1 || this.language && !this.language.isDefault() && (e4 = this.language.translateAll(this.months).indexOf(t3)) > -1 ? e4 : 0;
  5620. }, e3.prototype.resolveShortMonth = function(t3) {
  5621. var e4 = this.monthsShort.indexOf(t3);
  5622. return e4 > -1 || (e4 = this.months.indexOf(t3)) > -1 || this.language && !this.language.isDefault() && (e4 = this.language.translateAll(this.monthsShort).indexOf(t3)) > -1 ? e4 : 0;
  5623. }, e3.prototype.isAm = function(t3) {
  5624. return this.getStringList(["AM", "A.M.", "A"]).indexOf(t3.toUpperCase()) > -1;
  5625. }, e3.prototype.invalidateSprite = function() {
  5626. this.sprite && this.sprite.invalidate();
  5627. }, e3.prototype.getStringList = function(t3) {
  5628. for (var e4 = [], i3 = 0; i3 < t3.length; i3++)
  5629. this.language ? e4.push(Bn(this.language.translate(t3[i3]))) : e4.push(Bn(t3[i3]));
  5630. return e4;
  5631. }, Object.defineProperty(e3.prototype, "dateFormat", { get: function() {
  5632. return this._dateFormat;
  5633. }, set: function(t3) {
  5634. this._dateFormat = t3, this.invalidateSprite();
  5635. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inputDateFormat", { get: function() {
  5636. return this._inputDateFormat;
  5637. }, set: function(t3) {
  5638. this._inputDateFormat = t3, this.invalidateSprite();
  5639. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "intlLocales", { get: function() {
  5640. return this._intlLocales;
  5641. }, set: function(t3) {
  5642. this._intlLocales = t3, this.invalidateSprite();
  5643. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "utc", { get: function() {
  5644. return this._utc;
  5645. }, set: function(t3) {
  5646. this._utc = t3, this.invalidateSprite();
  5647. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezoneOffset", { get: function() {
  5648. return this._timezoneOffset;
  5649. }, set: function(t3) {
  5650. this._timezoneOffset != t3 && (this._timezoneOffset = t3, this.invalidateSprite());
  5651. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezone", { get: function() {
  5652. return this._timezone;
  5653. }, set: function(t3) {
  5654. this._timezone != t3 && (this._timezone = t3, this.timezoneMinutes = la(t3), this.invalidateSprite());
  5655. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "firstDayOfWeek", { get: function() {
  5656. return this._firstDayOfWeek;
  5657. }, set: function(t3) {
  5658. this._firstDayOfWeek = t3, this.invalidateSprite();
  5659. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outputFormat", { get: function() {
  5660. return this._outputFormat;
  5661. }, set: function(t3) {
  5662. this._outputFormat = t3.toLowerCase(), this.invalidateSprite();
  5663. }, enumerable: true, configurable: true }), e3;
  5664. }(yn);
  5665. Ii.registeredClasses.DateFormatter = Ma;
  5666. var La = function(t2) {
  5667. function e3() {
  5668. var e4 = t2.call(this) || this;
  5669. return e4._negativeBase = 0, e4._baseUnit = "second", e4._outputFormat = "svg", e4._unitValues = { millisecond: 1, second: 1e3, minute: 6e4, hour: 36e5, day: 864e5, week: 6048e5, month: 2592e6, year: 31536e6 }, e4._unitAliases = { Y: "y", D: "d", H: "h", K: "h", k: "h", n: "S" }, e4.className = "DurationFormatter", e4.applyTheme(), e4;
  5670. }
  5671. return C(e3, t2), e3.prototype.format = function(t3, e4, i3) {
  5672. this.language || (this.sprite ? this.language = this.sprite.language : this.language = new Ta());
  5673. var n3 = i3 || this._baseUnit;
  5674. e4 !== void 0 && e4 !== "" || (e4 = Z(this.durationFormat) ? this.durationFormat : this.getFormat(U(t3), null, n3)), e4 = Zn(e4);
  5675. var r3, s2 = this.parseFormat(e4, n3), a2 = Number(t3);
  5676. r3 = a2 > this._negativeBase ? s2.positive : a2 < this._negativeBase ? s2.negative : s2.zero;
  5677. var o3 = this.applyFormat(a2, r3);
  5678. return r3.color !== "" && (this._outputFormat === "svg" ? o3 = "<tspan fill='" + r3.color + "'>" + o3 + "</tspan>" : this._outputFormat === "html" && (o3 = "<span style='color: " + r3.color + ";'>" + o3 + "</span>")), o3;
  5679. }, e3.prototype.parseFormat = function(t3, e4) {
  5680. var i3 = this, n3 = this.getCache(t3);
  5681. if (Z(n3))
  5682. return n3;
  5683. var r3 = e4 || this._baseUnit, s2 = { positive: { color: "", template: "", parts: [], source: "", baseUnit: r3, parsed: false, absolute: false }, negative: { color: "", template: "", parts: [], source: "", baseUnit: r3, parsed: false, absolute: false }, zero: { color: "", template: "", parts: [], source: "", baseUnit: r3, parsed: false, absolute: false } }, a2 = (t3 = t3.replace("||", Cn)).split("|");
  5684. return s2.positive.source = a2[0], a2[2] === void 0 ? s2.zero = s2.positive : s2.zero.source = a2[2], a2[1] === void 0 ? s2.negative = s2.positive : s2.negative.source = a2[1], Ne(s2, function(t4, e5) {
  5685. if (!e5.parsed)
  5686. if (i3.getCache(e5.source) === void 0) {
  5687. var n4, r4 = e5.source;
  5688. (n4 = e5.source.match(/^\[([^\]]*)\]/)) && n4.length && n4[0] !== "" && (r4 = e5.source.substr(n4[0].length), e5.color = n4[1]);
  5689. for (var a3 = Va().chunk(r4, true), o3 = 0; o3 < a3.length; o3++) {
  5690. var l2 = a3[o3];
  5691. if (l2.text = l2.text.replace(Cn, "|"), l2.type === "value") {
  5692. l2.text.match(/[yYMdDwhHKkmsSn]+a/) && (e5.absolute = true, l2.text = l2.text.replace(/([yYMdDwhHKkmsSn]+)a/, "$1"));
  5693. var h2 = l2.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);
  5694. if (h2)
  5695. for (var p2 = 0; p2 < h2.length; p2++)
  5696. Z(h2[p2]) || (h2[p2] = i3._unitAliases[h2[p2]]), e5.parts.push(h2[p2]), l2.text = l2.text.replace(h2[p2], wn);
  5697. }
  5698. e5.template += l2.text;
  5699. }
  5700. i3.setCache(e5.source, e5), e5.parsed = true;
  5701. } else
  5702. s2[t4] = i3.getCache(e5.source);
  5703. }), this.setCache(t3, s2), s2;
  5704. }, e3.prototype.applyFormat = function(t3, e4) {
  5705. var i3 = !e4.absolute && t3 < this._negativeBase;
  5706. t3 = Math.abs(t3);
  5707. for (var n3 = this.toTimeStamp(t3, e4.baseUnit), r3 = e4.template, s2 = 0, a2 = e4.parts.length; s2 < a2; s2++) {
  5708. var o3 = e4.parts[s2], l2 = this.toTimeUnit(o3.substr(0, 1)), h2 = o3.length, p2 = Math.floor(n3 / this._unitValues[l2]);
  5709. r3 = r3.replace(wn, Gn(p2, h2, "0")), n3 -= p2 * this._unitValues[l2];
  5710. }
  5711. return i3 && (r3 = "-" + r3), r3;
  5712. }, e3.prototype.toTimeStamp = function(t3, e4) {
  5713. return t3 * this._unitValues[e4];
  5714. }, e3.prototype.toTimeUnit = function(t3) {
  5715. switch (t3) {
  5716. case "S":
  5717. return "millisecond";
  5718. case "s":
  5719. return "second";
  5720. case "m":
  5721. return "minute";
  5722. case "h":
  5723. return "hour";
  5724. case "d":
  5725. return "day";
  5726. case "w":
  5727. return "week";
  5728. case "M":
  5729. return "month";
  5730. case "y":
  5731. return "year";
  5732. }
  5733. }, e3.prototype.invalidateSprite = function() {
  5734. this.sprite && this.sprite.invalidate();
  5735. }, Object.defineProperty(e3.prototype, "baseUnit", { get: function() {
  5736. return this._baseUnit;
  5737. }, set: function(t3) {
  5738. this._baseUnit = t3, this.invalidateSprite();
  5739. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outputFormat", { get: function() {
  5740. return this._outputFormat;
  5741. }, set: function(t3) {
  5742. this._outputFormat = t3.toLowerCase(), this.invalidateSprite();
  5743. }, enumerable: true, configurable: true }), e3.prototype.getFormat = function(t3, e4, i3) {
  5744. if (Z(this.durationFormat))
  5745. return this.durationFormat;
  5746. if (i3 || (i3 = this.baseUnit), Z(e4) && t3 != e4) {
  5747. t3 = Math.abs(t3), e4 = Math.abs(e4);
  5748. var n3 = this.getValueUnit(gt(t3, e4), i3);
  5749. return this.durationFormats[i3][n3];
  5750. }
  5751. var r3 = this.getValueUnit(t3, i3);
  5752. return this.durationFormats[i3][r3];
  5753. }, e3.prototype.getValueUnit = function(t3, e4) {
  5754. var i3;
  5755. e4 || (e4 = this.baseUnit);
  5756. var n3 = this.getMilliseconds(t3, e4);
  5757. return He(this._unitValues, function(t4, r3) {
  5758. if (t4 == e4 || i3) {
  5759. if (n3 / r3 <= 1)
  5760. return i3 || (i3 = t4), false;
  5761. i3 = t4;
  5762. }
  5763. return true;
  5764. }), i3;
  5765. }, e3.prototype.getMilliseconds = function(t3, e4) {
  5766. return e4 || (e4 = this.baseUnit), t3 * this._unitValues[e4];
  5767. }, Object.defineProperty(e3.prototype, "durationFormat", { get: function() {
  5768. return this._durationFormat;
  5769. }, set: function(t3) {
  5770. this._durationFormat != t3 && (this._durationFormat = t3, this.invalidateSprite());
  5771. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormats", { get: function() {
  5772. return this._durationFormats || (this._durationFormats = { millisecond: { millisecond: this.language.translate("_duration_millisecond"), second: this.language.translate("_duration_millisecond_second"), minute: this.language.translate("_duration_millisecond_minute"), hour: this.language.translate("_duration_millisecond_hour"), day: this.language.translate("_duration_millisecond_day"), week: this.language.translate("_duration_millisecond_week"), month: this.language.translate("_duration_millisecond_month"), year: this.language.translate("_duration_millisecond_year") }, second: { second: this.language.translate("_duration_second"), minute: this.language.translate("_duration_second_minute"), hour: this.language.translate("_duration_second_hour"), day: this.language.translate("_duration_second_day"), week: this.language.translate("_duration_second_week"), month: this.language.translate("_duration_second_month"), year: this.language.translate("_duration_second_year") }, minute: { minute: this.language.translate("_duration_minute"), hour: this.language.translate("_duration_minute_hour"), day: this.language.translate("_duration_minute_day"), week: this.language.translate("_duration_minute_week"), month: this.language.translate("_duration_minute_month"), year: this.language.translate("_duration_minute_year") }, hour: { hour: this.language.translate("_duration_hour"), day: this.language.translate("_duration_hour_day"), week: this.language.translate("_duration_hour_week"), month: this.language.translate("_duration_hour_month"), year: this.language.translate("_duration_hour_year") }, day: { day: this.language.translate("_duration_day"), week: this.language.translate("_duration_day_week"), month: this.language.translate("_duration_day_month"), year: this.language.translate("_duration_day_year") }, week: { week: this.language.translate("_duration_week"), month: this.language.translate("_duration_week_month"), year: this.language.translate("_duration_week_year") }, month: { month: this.language.translate("_duration_month"), year: this.language.translate("_duration_month_year") }, year: { year: this.language.translate("_duration_year") } }), this._durationFormats;
  5773. }, set: function(t3) {
  5774. this._durationFormats = t3, this.invalidateSprite();
  5775. }, enumerable: true, configurable: true }), e3;
  5776. }(yn);
  5777. Ii.registeredClasses.DurationFormatter = La;
  5778. var ja, Ea = new Pi(), Ra = function(t2) {
  5779. function e3() {
  5780. var e4 = t2 !== null && t2.apply(this, arguments) || this;
  5781. return e4._validateDisposer = null, e4;
  5782. }
  5783. return C(e3, t2), e3.prototype.invalidate = function() {
  5784. this._validateDisposer === null && (this._validateDisposer = Ii.events.on("exitframe", this.validate, this));
  5785. }, e3.prototype.validate = function() {
  5786. this._validateDisposer !== null && (this._validateDisposer.dispose(), this._validateDisposer = null);
  5787. }, e3.prototype.dispose = function() {
  5788. this._validateDisposer !== null && (this._validateDisposer.dispose(), this._validateDisposer = null), t2.prototype.dispose.call(this);
  5789. }, e3;
  5790. }(mn), Ba = function(t2) {
  5791. function e3() {
  5792. var e4 = t2.call(this) || this;
  5793. return e4.adapter = new Yi(e4), e4.closeDelay = 1e3, e4.closeOnClick = true, e4._language = new ve(), e4._menuTag = "ul", e4._itemTag = "li", e4._labelTag = "a", e4._iconTag = "img", e4._classPrefix = "amexport", e4._defaultStyles = true, e4._align = "right", e4._verticalAlign = "top", e4._tabindex = 0, e4._ignoreNextClose = false, e4._items = [{ label: "...", menu: [{ label: "Image", menu: [{ type: "png", label: "PNG" }, { type: "jpg", label: "JPG" }, { type: "svg", label: "SVG" }, { type: "pdf", label: "PDF" }] }, { label: "Data", menu: [{ type: "json", label: "JSON" }, { type: "csv", label: "CSV" }, { type: "xlsx", label: "XLSX" }, { type: "html", label: "HTML" }, { type: "pdfdata", label: "PDF" }] }, { label: "Print", type: "print" }] }], e4.className = "ExportMenu", e4._disposers.push(e4._language), e4.invalidate(), e4.applyTheme(), e4;
  5794. }
  5795. return C(e3, t2), e3.prototype.validate = function() {
  5796. this.draw(), t2.prototype.validate.call(this);
  5797. }, e3.prototype.draw = function() {
  5798. var t3 = this;
  5799. this._element ? (this._element.innerHTML = "", this._element.className = this.getMenuItemClass(0)) : this._element = this.createMenuElement(0), this.defaultStyles && (this._element.style.display = "none"), q(this._container).appendChild(this._element);
  5800. for (var e4 = this.adapter.apply("items", { items: this._items }).items, i3 = e4.length, n3 = 0; n3 < i3; n3++)
  5801. this.drawBranch(this._element, e4[n3], 0);
  5802. this._element = this.adapter.apply("menuElement", { menuElement: this._element }).menuElement, this._disposers.push(ua().body.events.on("down", function(e5) {
  5803. e5.pointer.touch || (t3._ignoreNextClose = false), t3.close();
  5804. })), this._disposers.push(ua().body.events.on("keydown", function(e5) {
  5805. var i4 = $s.getEventKey(e5.event);
  5806. switch (i4) {
  5807. case "esc":
  5808. t3.close();
  5809. break;
  5810. case "up":
  5811. case "down":
  5812. case "left":
  5813. case "right":
  5814. t3._currentSelection && e5.event.preventDefault(), t3.moveSelection(i4);
  5815. }
  5816. })), this.defaultStyles && this.loadDefaultCSS();
  5817. }, e3.prototype.drawBranch = function(t3, e4, i3) {
  5818. var n3 = this;
  5819. if ((e4 = this.adapter.apply("branch", { branch: e4, level: i3 }).branch).unsupported !== true) {
  5820. e4.ascendants || (e4.ascendants = new Fi());
  5821. var r3, s2 = e4.type, a2 = this.createItemElement(i3, s2);
  5822. e4.icon ? ((r3 = this.createIconElement(i3, s2)).src = e4.icon, (e4.label || e4.title) && (r3.title = e4.title || e4.label)) : e4.svg ? (r3 = this.createSvgElement(i3, s2, e4.svg), (e4.label || e4.title) && (r3.title = e4.title || e4.label)) : ((r3 = this.createLabelElement(i3, s2)).innerHTML = e4.label ? this.language.translate(e4.label) : "", e4.title && (r3.title = e4.title));
  5823. var o3 = this.getReaderLabel(e4, r3.innerHTML);
  5824. r3.setAttribute("aria-label", o3), a2.appendChild(r3), e4.interactions = ua().getInteraction(a2), e4.element = a2, this.typeClickable(s2) && (e4.interactions.events.on("hit", function(t4) {
  5825. if (n3.events.isEnabled("hit") && !n3.isDisposed()) {
  5826. var i4 = { type: "hit", event: t4.event, target: n3, branch: e4 };
  5827. n3.events.dispatchImmediately("hit", i4);
  5828. }
  5829. }), e4.interactions.events.on("keyup", function(t4) {
  5830. if ($s.isKey(t4.event, "enter") && n3.events.isEnabled("enter")) {
  5831. var i4 = { type: "enter", event: t4.event, target: n3, branch: e4 };
  5832. n3.events.dispatchImmediately("enter", i4);
  5833. }
  5834. }));
  5835. var l2 = this.getSubMenu(e4);
  5836. l2 != null && (e4.interactions.events.on("keyup", function(t4) {
  5837. $s.isKey(t4.event, "enter") && (n3.selectBranch(l2[0]), n3.setFocus(l2[0]));
  5838. }), e4.interactions.events.on("hit", function(t4) {
  5839. n3.selectBranch(e4);
  5840. })), e4.interactions.events.on("over", function(t4) {
  5841. if (t4.pointer.touch && (n3._ignoreNextClose = true), n3.selectBranch(e4), n3.events.isEnabled("over")) {
  5842. var i4 = { type: "over", event: t4.event, target: n3, branch: e4 };
  5843. n3.events.dispatchImmediately("over", i4);
  5844. }
  5845. }), e4.interactions.events.on("out", function(t4) {
  5846. if (!n3.isDisposed() && (t4.pointer.touch || n3.delayUnselectBranch(e4), n3.events.isEnabled("out"))) {
  5847. var i4 = { type: "out", event: t4.event, target: n3, branch: e4 };
  5848. n3.events.dispatchImmediately("out", i4);
  5849. }
  5850. }), e4.interactions.events.on("focus", function(t4) {
  5851. n3.selectBranch(e4);
  5852. }), e4.interactions.events.on("blur", function(t4) {
  5853. n3.delayUnselectBranch(e4);
  5854. });
  5855. var h2 = i3 + 1;
  5856. if (e4.menu) {
  5857. var p2 = this.createMenuElement(h2);
  5858. e4.submenuElement = p2;
  5859. for (var u2 = e4.menu.length, d2 = 0; d2 < u2; d2++) {
  5860. var c2 = new Fi();
  5861. e4.menu[d2].ascendants = c2, e4.ascendants.length && c2.copyFrom(e4.ascendants), c2.push(e4), this.drawBranch(p2, e4.menu[d2], h2);
  5862. }
  5863. if (p2.innerHTML == "")
  5864. return;
  5865. a2.appendChild(p2);
  5866. }
  5867. e4.hidden && this.hideBranch(e4), e4.id && a2.setAttribute("id", e4.id), e4.color && (a2.style.backgroundColor = e4.color.hex), t3.appendChild(a2);
  5868. }
  5869. }, e3.prototype.createMenuElement = function(t3) {
  5870. var e4 = document.createElement(this.menuTag);
  5871. return e4.className = this.getMenuItemClass(t3), t3 === 0 ? e4.setAttribute("role", "menubar") : e4.setAttribute("role", "menu"), e4;
  5872. }, e3.prototype.getMenuItemClass = function(t3) {
  5873. var e4 = this.classPrefix + "-menu " + this.classPrefix + "-menu-level-" + t3;
  5874. return t3 === 0 && (e4 += " " + this.classPrefix + "-menu-root " + this.classPrefix + "-" + this.align + " " + this.classPrefix + "-" + this.verticalAlign), this.adapter.apply("menuClass", { className: e4, level: t3 }).className;
  5875. }, e3.prototype.createItemElement = function(t3, e4) {
  5876. var i3 = document.createElement(this.itemTag), n3 = this.classPrefix + "-item " + this.classPrefix + "-item-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5877. return i3.className = this.adapter.apply("itemClass", { className: n3, level: t3, type: e4 }).className, i3.setAttribute("role", "menuitem"), i3.setAttribute("tabindex", this.tabindex.toString()), i3;
  5878. }, e3.prototype.createLabelElement = function(t3, e4) {
  5879. var i3 = document.createElement(this.labelTag), n3 = this.classPrefix + "-label " + this.classPrefix + "-label-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5880. return this.typeClickable(e4) && (n3 += " " + this.classPrefix + "-clickable"), i3.className = this.adapter.apply("labelClass", { className: n3, level: t3, type: e4 }).className, i3;
  5881. }, e3.prototype.createIconElement = function(t3, e4) {
  5882. var i3 = document.createElement(this.iconTag), n3 = this.classPrefix + "-icon " + this.classPrefix + "-icon-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5883. return this.typeClickable(e4) && (n3 += " " + this.classPrefix + "-clickable"), i3.className = this.adapter.apply("labelClass", { className: n3, level: t3, type: e4 }).className, i3.setAttribute("tabindex", this.tabindex.toString()), i3.setAttribute("role", "menuitem"), i3;
  5884. }, e3.prototype.createSvgElement = function(t3, e4, i3) {
  5885. var n3 = new DOMParser().parseFromString(i3, "image/svg+xml").documentElement, r3 = this.classPrefix + "-icon " + this.classPrefix + "-icon-level-" + t3 + " " + this.classPrefix + "-item-" + (e4 || "blank");
  5886. return this.typeClickable(e4) && (r3 += " " + this.classPrefix + "-clickable"), n3.setAttribute("class", this.adapter.apply("labelClass", { className: r3, level: t3, type: e4 }).className), n3.setAttribute("tabindex", this.tabindex.toString()), n3.setAttribute("role", "menuitem"), n3;
  5887. }, e3.prototype.dispose = function() {
  5888. this._disposed || (t2.prototype.dispose.call(this), this._element && this._element.parentNode && this._element.parentNode.removeChild(this._element));
  5889. }, e3.prototype.typeClickable = function(t3) {
  5890. return Z(t3);
  5891. }, e3.prototype.hasSubMenu = function(t3) {
  5892. return !(!t3.menu || !t3.menu.length);
  5893. }, e3.prototype.getSubMenu = function(t3) {
  5894. if (t3.menu && t3.menu.length)
  5895. return t3.menu;
  5896. }, e3.prototype.getReaderLabel = function(t3, e4) {
  5897. return e4 = qn(e4), t3.ascendants.length == 0 ? (e4 = e4 == "..." ? this.language.translate("Export") : e4, e4 += " [" + this.language.translate("Press ENTER or use arrow keys to navigate") + "]") : this.hasSubMenu(t3) ? e4 += " [" + this.language.translate("Click, tap or press ENTER to open") + "]" : t3.type == "print" ? e4 = this.language.translate("Click, tap or press ENTER to print.") : this.typeClickable(t3.type) && (e4 = this.language.translate("Click, tap or press ENTER to export as %1.", void 0, e4)), this.adapter.apply("rederLabel", { label: e4, branch: t3 }).label;
  5898. }, Object.defineProperty(e3.prototype, "container", { get: function() {
  5899. return this._container;
  5900. }, set: function(t3) {
  5901. this._container = t3, this.invalidate();
  5902. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "items", { get: function() {
  5903. return this._items;
  5904. }, set: function(t3) {
  5905. this._items = t3, this.invalidate();
  5906. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tag", { set: function(t3) {
  5907. this._menuTag = t3, this._itemTag = t3 == "ul" ? "li" : "div", this.invalidate();
  5908. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "menuTag", { get: function() {
  5909. return this.adapter.apply("menuTag", { tag: this._menuTag }).tag;
  5910. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "itemTag", { get: function() {
  5911. return this.adapter.apply("itemTag", { tag: this._itemTag }).tag;
  5912. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "labelTag", { get: function() {
  5913. return this.adapter.apply("labelTag", { tag: this._labelTag }).tag;
  5914. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "iconTag", { get: function() {
  5915. return this.adapter.apply("iconTag", { tag: this._iconTag }).tag;
  5916. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "align", { get: function() {
  5917. return this.adapter.apply("align", { align: this._align }).align;
  5918. }, set: function(t3) {
  5919. this._align = t3, this.invalidate();
  5920. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalAlign", { get: function() {
  5921. return this.adapter.apply("verticalAlign", { verticalAlign: this._verticalAlign }).verticalAlign;
  5922. }, set: function(t3) {
  5923. this._verticalAlign = t3, this.invalidate();
  5924. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "classPrefix", { get: function() {
  5925. return this.adapter.apply("classPrefix", { classPrefix: this._classPrefix }).classPrefix;
  5926. }, set: function(t3) {
  5927. this._classPrefix = t3, this.invalidate();
  5928. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultStyles", { get: function() {
  5929. return this.adapter.apply("defaultStyles", { defaultStyles: this._defaultStyles }).defaultStyles;
  5930. }, set: function(t3) {
  5931. this._defaultStyles != t3 && (this._defaultStyles = t3, t3 && this.loadDefaultCSS()), this.invalidate();
  5932. }, enumerable: true, configurable: true }), e3.prototype.loadDefaultCSS = function() {
  5933. var t3, e4, i3, n3;
  5934. this._disposers.push((t3 = As(this.container), e4 = this.classPrefix, i3 = e4 || "amexport", n3 = new Ys(), Ea.insertKeyIfEmpty(i3, function() {
  5935. var e5 = new me([new Ls(t3, "." + i3 + "-menu *", { "box-sizing": "border-box" }), new Ls(t3, "." + i3 + "-menu-level-0", { position: "absolute", top: "5px", right: "5px" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-left", { right: "auto", left: "5px" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-right", { right: "5px", left: "auto" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-top", { top: "5px", bottom: "auto" }), new Ls(t3, "." + i3 + "-menu-level-0." + i3 + "-bottom", { top: "auto", bottom: "5px" }), new Ls(t3, "." + i3 + "-item." + i3 + "-item-level-0", { opacity: "0.3", width: "30px", "min-height": "30px", transition: "all 100ms ease-in-out" }), new Ls(t3, "div:hover > div > ." + i3 + "-menu ." + i3 + "-item." + i3 + "-item-level-0, ." + i3 + "-item." + i3 + "-item-level-0.active", { opacity: "0.9" }), new Ls(t3, "." + i3 + "-item." + i3 + "-item-level-0 > a", { padding: "0", "text-align": "center", overflow: "hidden" }), new Ls(t3, "." + i3 + "-item." + i3 + "-item-level-0:before", { display: "block" }), new Ls(t3, "." + i3 + "-item", { position: "relative", display: "block", opacity: "0", "z-index": "1", "border-radius": "3px", "background-color": n3.getFor("secondaryButton").hex, padding: "0", margin: "1px 1px 0 0", color: n3.getFor("secondaryButton").alternative.hex, transition: "all 100ms ease-in-out, opacity 0.5s ease 0.5s" }), new Ls(t3, "." + i3 + "-left ." + i3 + "-item", { margin: "1px 0 0 1px" }), new Ls(t3, "." + i3 + "-item:hover, ." + i3 + "-item.active", { background: n3.getFor("secondaryButtonHover").hex, color: n3.getFor("secondaryButtonText").hex }), new Ls(t3, "." + i3 + "-item > ." + i3 + "-menu", { position: "absolute", top: "-1px", right: "0", "margin-right": "100%" }), new Ls(t3, "." + i3 + "-left ." + i3 + "-item > ." + i3 + "-menu", { left: "0", right: "auto", "margin-left": "100%", "margin-right": "auto" }), new Ls(t3, "." + i3 + "-right ." + i3 + "-item > ." + i3 + "-menu", { left: "auto", right: "0", "margin-left": "auto", "margin-right": "100%" }), new Ls(t3, "." + i3 + "-top ." + i3 + "-item > ." + i3 + "-menu", { top: "-1px", bottom: "auto" }), new Ls(t3, "." + i3 + "-bottom ." + i3 + "-item > ." + i3 + "-menu", { top: "auto", bottom: "0" }), new Ls(t3, "." + i3 + "-item > ." + i3 + "-menu", { display: "none" }), new Ls(t3, "." + i3 + "-item:hover > ." + i3 + "-menu, ." + i3 + "-item.active > ." + i3 + "-menu", { display: "block" }), new Ls(t3, "." + i3 + "-item:hover > ." + i3 + "-menu > ." + i3 + "-item, ." + i3 + "-item.active > ." + i3 + "-menu > ." + i3 + "-item", { opacity: "1" }), new Ls(t3, "." + i3 + "-menu", { display: "block", "list-style": "none", margin: "0", padding: "0" }), new Ls(t3, "." + i3 + "-label", { display: "block", cursor: "default", padding: "0.5em 1em" }), new Ls(t3, "." + i3 + "-icon", { display: "block", cursor: "default", padding: "0.2em 0.4em", width: "1.2em", height: "1.2em", "min-width": "32px", "min-height": "32px", margin: "auto auto", "border-radius": "3px" }), new Ls(t3, "." + i3 + "-item-level-0 > ." + i3 + "-icon", { padding: "0.1em 0.2em" }), new Ls(t3, "." + i3 + "-clickable", { cursor: "pointer" })]);
  5936. return new be(function() {
  5937. Ea.removeKey(i3), e5.dispose();
  5938. });
  5939. }).increment())), this._element && (this._element.style.display = "");
  5940. }, Object.defineProperty(e3.prototype, "tabindex", { get: function() {
  5941. return this.adapter.apply("tabindex", { tabindex: this._tabindex }).tabindex;
  5942. }, set: function(t3) {
  5943. this._tabindex = t3, this.invalidate();
  5944. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "language", { get: function() {
  5945. var t3 = this, e4 = this._language.get();
  5946. return e4 == null && (e4 = new Ta(), this._language.set(e4, e4.events.on("localechanged", function(e5) {
  5947. t3.invalidate();
  5948. }))), e4;
  5949. }, set: function(t3) {
  5950. var e4 = this;
  5951. this._language.set(t3, t3.events.on("localechanged", function(t4) {
  5952. e4.invalidate();
  5953. })), this.invalidate();
  5954. }, enumerable: true, configurable: true }), e3.prototype.close = function() {
  5955. var t3 = this;
  5956. if (!this.isDisposed())
  5957. if (this._ignoreNextClose)
  5958. this._ignoreNextClose = false;
  5959. else {
  5960. if (this.closeOnClick && (this._element.style.pointerEvents = "none", setTimeout(function() {
  5961. t3._element.style.pointerEvents = "auto";
  5962. }, 100)), this._currentSelection && (this.setBlur(this._currentSelection), this._currentSelection = void 0), this._element)
  5963. for (var e4 = this._element.getElementsByClassName("active"), i3 = e4.length - 1; i3 >= 0; i3--)
  5964. e4[i3] && ws(e4[i3], "active");
  5965. this.events.dispatchImmediately("closed", { type: "closed", target: this });
  5966. }
  5967. }, e3.prototype.selectBranch = function(t3) {
  5968. var e4 = this;
  5969. if (!this.isDisposed() && (t3.closeTimeout && (this.removeDispose(t3.closeTimeout), t3.closeTimeout = void 0), Ps(t3.element, "active"), t3.submenuElement && t3.submenuElement.setAttribute("aria-expanded", "true"), this._currentSelection && this._currentSelection !== t3 && this._currentSelection.ascendants && ti(ri(qe([this._currentSelection]), this._currentSelection.ascendants.iterator()), function(i4) {
  5970. t3.ascendants.contains(i4) || t3 === i4 || e4.unselectBranch(i4, true);
  5971. }), ti(t3.ascendants.iterator(), function(t4) {
  5972. t4.closeTimeout && (e4.removeDispose(t4.closeTimeout), t4.closeTimeout = void 0), Ps(t4.element, "active");
  5973. }), this._currentSelection = t3, this.events.isEnabled("branchselected"))) {
  5974. var i3 = { type: "branchselected", target: this, branch: t3 };
  5975. this.events.dispatchImmediately("branchselected", i3);
  5976. }
  5977. }, e3.prototype.unselectBranch = function(t3, e4) {
  5978. if (!this.isDisposed() && (ws(t3.element, "active"), t3.submenuElement && t3.submenuElement.removeAttribute("aria-expanded"), this._currentSelection == t3 && (this._currentSelection = void 0), this.events.isEnabled("branchunselected"))) {
  5979. var i3 = { type: "branchunselected", target: this, branch: t3 };
  5980. this.events.dispatchImmediately("branchunselected", i3);
  5981. }
  5982. }, e3.prototype.delayUnselectBranch = function(t3, e4) {
  5983. var i3 = this;
  5984. this.isDisposed() || (t3.closeTimeout && (this.removeDispose(t3.closeTimeout), t3.closeTimeout = void 0), t3.closeTimeout = this.setTimeout(function() {
  5985. i3.unselectBranch(t3, e4);
  5986. }, this.closeDelay), e4 !== true && t3.ascendants && ti(t3.ascendants.iterator(), function(t4) {
  5987. i3.delayUnselectBranch(t4, true);
  5988. }));
  5989. }, e3.prototype.moveSelection = function(t3) {
  5990. if (!this.isDisposed() && this._currentSelection) {
  5991. var e4;
  5992. if (t3 == "up")
  5993. e4 = this.getPrevSibling(this._currentSelection);
  5994. else if (t3 == "down")
  5995. e4 = this.getNextSibling(this._currentSelection);
  5996. else if (t3 == "left" && this.align == "right" || t3 == "right" && this.align == "left") {
  5997. var i3 = this.getSubMenu(this._currentSelection);
  5998. i3 != null && (e4 = i3[0]);
  5999. } else
  6000. (t3 == "right" && this.align == "right" || t3 == "left" && this.align == "left") && (e4 = this.getParentItem(this._currentSelection));
  6001. e4 && e4 !== this._currentSelection && (this.selectBranch(e4), this.setFocus(e4), this._currentSelection = e4);
  6002. }
  6003. }, e3.prototype.getSiblings = function(t3) {
  6004. var e4 = this.getParentItem(t3);
  6005. return e4 && e4.menu ? e4.menu : [];
  6006. }, e3.prototype.getParentItem = function(t3) {
  6007. return t3.ascendants && t3.ascendants.length ? t3.ascendants.getIndex(t3.ascendants.length - 1) : void 0;
  6008. }, e3.prototype.getNextSibling = function(t3) {
  6009. var e4 = this.getSiblings(t3);
  6010. if (e4.length > 1) {
  6011. var i3 = e4.indexOf(t3) + 1;
  6012. return e4[i3 = e4.length == i3 ? 0 : i3].unsupported ? this.getNextSibling(e4[i3]) : e4[i3];
  6013. }
  6014. return t3;
  6015. }, e3.prototype.getPrevSibling = function(t3) {
  6016. var e4 = this.getSiblings(t3);
  6017. if (e4.length > 1) {
  6018. var i3 = e4.indexOf(t3) - 1;
  6019. return e4[i3 = i3 == -1 ? e4.length - 1 : i3].unsupported ? this.getPrevSibling(e4[i3]) : e4[i3];
  6020. }
  6021. return t3;
  6022. }, e3.prototype.setFocus = function(t3) {
  6023. if (t3.interactions)
  6024. try {
  6025. t3.interactions.element.focus();
  6026. } catch (t4) {
  6027. }
  6028. }, e3.prototype.setBlur = function(t3) {
  6029. if (t3.interactions)
  6030. try {
  6031. t3.interactions.element.blur();
  6032. } catch (t4) {
  6033. }
  6034. }, e3.prototype.hideBranch = function(t3) {
  6035. t3.element.style.display = "none";
  6036. }, e3.prototype.showBranch = function(t3) {
  6037. t3.element.style.display = "";
  6038. }, Object.defineProperty(e3.prototype, "element", { get: function() {
  6039. return this._element;
  6040. }, enumerable: true, configurable: true }), e3;
  6041. }(Ra);
  6042. function Ha(t2, e3, i3) {
  6043. return new Promise(function(n3, r3) {
  6044. var s2 = Z(i3) && i3.responseType == "blob", a2 = new XMLHttpRequest();
  6045. if (a2.onload = function() {
  6046. if (a2.status === 200) {
  6047. var t3, i4;
  6048. if (s2)
  6049. return void Na(t3 = a2.response).then(function(i5) {
  6050. var r4 = { xhr: a2, error: false, response: i5, blob: t3, type: a2.getResponseHeader("Content-Type"), target: e3 };
  6051. n3(r4);
  6052. });
  6053. i4 = a2.responseText || a2.response;
  6054. var o4 = { xhr: a2, error: false, response: i4, blob: t3, type: a2.getResponseHeader("Content-Type"), target: e3 };
  6055. n3(o4);
  6056. } else
  6057. r3({ xhr: a2, error: true, type: a2.getResponseHeader("Content-Type"), target: e3 });
  6058. }, a2.onerror = function() {
  6059. r3({ xhr: a2, error: true, type: a2.getResponseHeader("Content-Type"), target: e3 });
  6060. }, a2.open("GET", t2, true), i3 && i3.withCredentials && (a2.withCredentials = true), Z(i3)) {
  6061. if (Z(i3.requestHeaders))
  6062. for (var o3 = 0; o3 < i3.requestHeaders.length; o3++) {
  6063. var l2 = i3.requestHeaders[o3];
  6064. a2.setRequestHeader(l2.key, l2.value);
  6065. }
  6066. Z(i3.responseType) && (a2.responseType = i3.responseType);
  6067. }
  6068. a2.send();
  6069. });
  6070. }
  6071. function Na(t2) {
  6072. return new Promise(function(e3, i3) {
  6073. var n3 = new FileReader();
  6074. n3.onload = function(t3) {
  6075. e3(n3.result);
  6076. }, n3.onerror = function(t3) {
  6077. i3(t3);
  6078. }, n3.readAsText(t2);
  6079. });
  6080. }
  6081. var Wa = /src: ([^;]+);/;
  6082. function Xa(t2) {
  6083. return S(this, void 0, void 0, function() {
  6084. var e3;
  6085. return I(this, function(i3) {
  6086. switch (i3.label) {
  6087. case 0:
  6088. e3 = t2.sheet, i3.label = 1;
  6089. case 1:
  6090. return i3.trys.push([1, 2, , 4]), [2, e3.cssRules];
  6091. case 2:
  6092. return i3.sent(), [4, new Promise(function(i4, n3) {
  6093. t2.addEventListener("load", function() {
  6094. i4(e3.cssRules);
  6095. }, true), t2.addEventListener("error", function(t3) {
  6096. n3(t3);
  6097. }, true), setTimeout(function() {
  6098. n3(new Error("Timeout while waiting for <style> to load"));
  6099. }, 1e4);
  6100. })];
  6101. case 3:
  6102. return [2, i3.sent()];
  6103. case 4:
  6104. return [2];
  6105. }
  6106. });
  6107. });
  6108. }
  6109. function Ya(t2, e3, i3) {
  6110. return S(this, void 0, void 0, function() {
  6111. var n3, r3, s2, a2;
  6112. return I(this, function(o3) {
  6113. switch (o3.label) {
  6114. case 0:
  6115. return o3.trys.push([0, 2, , 3]), [4, Ha(e3)];
  6116. case 1:
  6117. return n3 = o3.sent(), [3, 3];
  6118. case 2:
  6119. return r3 = o3.sent(), console.error("Failed to load stylesheet", e3, r3), [2];
  6120. case 3:
  6121. (s2 = t2.createElement("style")).textContent = n3.response, ls.nonce != "" && s2.setAttribute("nonce", ls.nonce), t2.head.appendChild(s2), o3.label = 4;
  6122. case 4:
  6123. return o3.trys.push([4, , 7, 8]), [4, Xa(s2)];
  6124. case 5:
  6125. return a2 = o3.sent(), [4, za(t2, e3, a2, i3)];
  6126. case 6:
  6127. return o3.sent(), [3, 8];
  6128. case 7:
  6129. return t2.head.removeChild(s2), [7];
  6130. case 8:
  6131. return [2];
  6132. }
  6133. });
  6134. });
  6135. }
  6136. function za(t2, e3, i3, n3) {
  6137. return S(this, void 0, void 0, function() {
  6138. var r3, s2, a2, o3, l2;
  6139. return I(this, function(h2) {
  6140. switch (h2.label) {
  6141. case 0:
  6142. for (r3 = [], s2 = i3.length, a2 = 0; a2 < s2; a2++)
  6143. (o3 = i3[a2]).type === CSSRule.IMPORT_RULE ? (l2 = o3.href) && (l2 = Sr(e3, l2), r3.push(Ya(t2, l2, n3))) : n3(e3, o3);
  6144. return r3.length ? [4, Promise.all(r3)] : [3, 2];
  6145. case 1:
  6146. h2.sent(), h2.label = 2;
  6147. case 2:
  6148. return [2];
  6149. }
  6150. });
  6151. });
  6152. }
  6153. function Ua(t2) {
  6154. return S(this, void 0, void 0, function() {
  6155. var e3, i3;
  6156. return I(this, function(n3) {
  6157. switch (n3.label) {
  6158. case 0:
  6159. (e3 = document.createElement("iframe")).src = "about:blank", e3.setAttribute("title", ""), document.head.appendChild(e3), n3.label = 1;
  6160. case 1:
  6161. return n3.trys.push([1, , 3, 4]), i3 = e3.contentDocument, [4, Promise.all(zt(document.styleSheets, function(e4) {
  6162. var n4 = e4.href;
  6163. return n4 == null ? za(i3, location.href, e4.cssRules, t2) : (n4 = Sr(location.href, n4), Ya(i3, n4, t2));
  6164. }))];
  6165. case 2:
  6166. return n3.sent(), [3, 4];
  6167. case 3:
  6168. return document.head.removeChild(e3), [7];
  6169. case 4:
  6170. return [2];
  6171. }
  6172. });
  6173. });
  6174. }
  6175. var Ga = function(t2) {
  6176. function e3(e4) {
  6177. var i3 = t2.call(this) || this;
  6178. return i3.adapter = new Yi(i3), i3._formatOptions = new Pi(), i3._extraSprites = [], i3._validateSprites = [], i3.dataFieldsOrder = [], i3._dynamicDataFields = true, i3._removedObjects = new Fi(), i3._hiddenObjects = [], i3._objectsAlreadyHidden = false, i3._filePrefix = "amCharts", i3.useWebFonts = true, i3.useRetina = true, i3.useSimplifiedExport = true, i3.timeoutDelay = 2e3, i3._exportRunning = false, i3._prevHasData = false, i3._container = e4, i3.className = "Export", i3._formatOptions.setKey("png", {}), i3._formatOptions.setKey("jpg", { quality: 0.8 }), i3._formatOptions.setKey("gif", {}), i3._formatOptions.setKey("svg", {}), i3._formatOptions.setKey("pdf", { fontSize: 14, imageFormat: "png", align: "left", addURL: true, addColumnNames: true }), i3._formatOptions.setKey("json", { indent: 2, useLocale: true }), i3._formatOptions.setKey("csv", { addColumnNames: true, emptyAs: "", addBOM: true }), i3._formatOptions.setKey("xlsx", { addColumnNames: true, useLocale: true, emptyAs: "" }), i3._formatOptions.setKey("html", { addColumnNames: true, emptyAs: "" }), i3._formatOptions.setKey("pdfdata", { fontSize: 14, imageFormat: "png", addURL: true, addColumnNames: true, emptyAs: "" }), i3._formatOptions.setKey("print", { delay: 500, printMethod: "iframe" }), i3.adapter.add("options", function(t3) {
  6179. var e5 = i3._formatOptions.getKey(t3.type);
  6180. return t3.options ? t3.options = Ye(e5, t3.options) : t3.options = e5, t3;
  6181. }), i3.applyTheme(), i3.dispatchImmediately("inited"), i3;
  6182. }
  6183. return C(e3, t2), Object.defineProperty(e3.prototype, "menu", { get: function() {
  6184. return this._menu;
  6185. }, set: function(t3) {
  6186. var e4 = this;
  6187. this._menu && this.removeDispose(this._menu), this._menu = t3, this._menu.container = this.container, this._menu.language = this._language, this._menu.adapter.add("branch", function(t4) {
  6188. return t4.branch.unsupported = !e4.typeSupported(t4.branch.type), t4;
  6189. }), this._menu.events.on("hit", function(t4) {
  6190. e4.export(t4.branch.type, t4.branch.options), e4.menu.close();
  6191. }), this._menu.events.on("enter", function(t4) {
  6192. e4.export(t4.branch.type, t4.branch.options), e4.menu.close();
  6193. }), this._menu.events.on("over", function(t4) {
  6194. e4._disablePointers();
  6195. }), this._menu.events.on("out", function(t4) {
  6196. setTimeout(function() {
  6197. e4._releasePointers();
  6198. }, 10);
  6199. }), this.dispatchImmediately("menucreated"), this._menu.adapter.add("classPrefix", function(t4) {
  6200. return t4.classPrefix = ls.classNamePrefix + t4.classPrefix, t4;
  6201. }), this._disposers.push(this._menu);
  6202. }, enumerable: true, configurable: true }), e3.prototype.typeSupported = function(t3) {
  6203. var e4 = true, i3 = this.getFormatOptions(t3);
  6204. return Z(i3) && i3.disabled ? e4 = false : t3 === "pdf" || (t3 === "xlsx" ? e4 = !!this._hasData() : (t3 != "print" || window.print) && (["json", "csv", "html", "pdfdata"].indexOf(t3) === -1 || this._hasData()) || (e4 = false)), this.adapter.apply("supported", { supported: e4, type: t3 }).supported;
  6205. }, e3.prototype._hasData = function() {
  6206. return this.data && this.data.length;
  6207. }, e3.prototype._getFunction = function(t3) {
  6208. switch (t3) {
  6209. case "png":
  6210. case "gif":
  6211. case "jpg":
  6212. return this.getImage;
  6213. case "svg":
  6214. return this.getSVG;
  6215. case "pdf":
  6216. case "pdfdata":
  6217. return this.getPDF;
  6218. case "xlsx":
  6219. return this.getExcel;
  6220. case "csv":
  6221. return this.getCSV;
  6222. case "json":
  6223. return this.getJSON;
  6224. case "html":
  6225. return this.getHTML;
  6226. case "print":
  6227. return this.getPrint;
  6228. default:
  6229. return this.unsupported;
  6230. }
  6231. }, e3.prototype.export = function(t3, e4) {
  6232. return S(this, void 0, void 0, function() {
  6233. var i3, n3, r3, s2, a2, o3 = this;
  6234. return I(this, function(l2) {
  6235. switch (l2.label) {
  6236. case 0:
  6237. return t3 == "custom" ? (this.handleCustom(e4), [2, true]) : (this._exportRunning = true, this.events.isEnabled("exportstarted") && (i3 = { type: "exportstarted", target: this, format: t3, options: e4 }, this.events.dispatchImmediately("exportstarted", i3)), this.showPreloader(), this.timeoutDelay && (this.hideTimeout(), this._timeoutTimeout = this.setTimeout(function() {
  6238. if (o3.events.isEnabled("exporttimedout")) {
  6239. var i4 = { type: "exporttimedout", target: o3, format: t3, options: e4 };
  6240. o3.events.dispatchImmediately("exporttimedout", i4);
  6241. }
  6242. o3.showTimeout();
  6243. }, this.timeoutDelay)), this.hideNonExportableSprites(), n3 = this._getFunction(t3), e4 = this.adapter.apply("options", { options: e4, type: t3 }).options, [4, (n3 = this.adapter.apply("exportFunction", { func: n3, type: t3, options: e4 }).func).call(this, t3, e4)]);
  6244. case 1:
  6245. return r3 = l2.sent(), this._exportRunning = false, this._releasePointers(), this.restoreNonExportableSprites(), r3 ? (this.events.isEnabled("exportfinished") && (s2 = { type: "exportfinished", target: this, format: t3, options: e4 }, this.events.dispatchImmediately("exportfinished", s2)), this.hidePreloader(), this.hideTimeout(), this.menu && this.menu.close(), t3 === "print" ? [2, this.print(r3, e4, this.adapter.apply("title", { title: this.title, options: e4 }).title)] : t3 == "pdfdata" ? [2, this.download(r3, this.filePrefix + ".pdf")] : [2, this.download(r3, this.filePrefix + "." + t3, e4 && e4.addBOM)]) : (this.events.isEnabled("error") && (a2 = { type: "error", target: this, format: t3, options: e4 }, this.events.dispatchImmediately("error", a2)), [2, false]);
  6246. }
  6247. });
  6248. });
  6249. }, e3.prototype.unsupported = function(t3, e4) {
  6250. return S(this, void 0, void 0, function() {
  6251. return I(this, function(t4) {
  6252. return [2, ""];
  6253. });
  6254. });
  6255. }, e3.prototype.handleCustom = function(t3) {
  6256. Z(t3) && Z(t3.callback) && t3.callback.call(t3.callbackTarget || this, t3);
  6257. }, e3.prototype.getPrint = function(t3, e4) {
  6258. return S(this, void 0, void 0, function() {
  6259. return I(this, function(t4) {
  6260. return [2, this.getImage("png", e4)];
  6261. });
  6262. });
  6263. }, e3.prototype.getFontFamilies = function() {
  6264. return S(this, void 0, void 0, function() {
  6265. var t3, e4, i3, n3, r3 = this;
  6266. return I(this, function(s2) {
  6267. switch (s2.label) {
  6268. case 0:
  6269. return t3 = this.getDOMURL(), e4 = [], i3 = [], [4, Ua(function(n4, s3) {
  6270. if (s3.type === CSSRule.FONT_FACE_RULE) {
  6271. var a2 = s3.cssText, o3 = Wa.exec(a2);
  6272. if (o3 !== null) {
  6273. var l2 = o3[1].split(/ *, */).map(function(i4) {
  6274. return S(r3, void 0, void 0, function() {
  6275. var r4, s4, a3, o4, l3, h2;
  6276. return I(this, function(p2) {
  6277. switch (p2.label) {
  6278. case 0:
  6279. return (r4 = /^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(i4)) !== null ? [3, 1] : [2, i4];
  6280. case 1:
  6281. if (s4 = r4[2], a3 = Sr(n4, r4[1]), this.webFontFilter && !a3.match(this.webFontFilter))
  6282. return [2, null];
  6283. p2.label = 2;
  6284. case 2:
  6285. return p2.trys.push([2, 7, , 8]), [4, Ha(a3, void 0, { responseType: "blob" })];
  6286. case 3:
  6287. return o4 = p2.sent(), window.navigator.msSaveOrOpenBlob == null ? [3, 4] : (l3 = t3.createObjectURL(o4.blob), e4.push(l3), [3, 6]);
  6288. case 4:
  6289. return [4, (u2 = o4.blob, new Promise(function(t4, e5) {
  6290. var i5 = new FileReader();
  6291. i5.onload = function(e6) {
  6292. t4(i5.result);
  6293. }, i5.onerror = function(t5) {
  6294. e5(t5);
  6295. }, i5.readAsDataURL(u2);
  6296. }))];
  6297. case 5:
  6298. l3 = p2.sent(), p2.label = 6;
  6299. case 6:
  6300. return [2, 'url("' + l3 + '")' + s4];
  6301. case 7:
  6302. return h2 = p2.sent(), console.error("Failed to load font", a3, h2), [2, null];
  6303. case 8:
  6304. return [2];
  6305. }
  6306. var u2;
  6307. });
  6308. });
  6309. });
  6310. i3.push(Promise.all(l2).then(function(t4) {
  6311. return (t4 = t4.filter(function(t5) {
  6312. return t5 != null;
  6313. })).length === 0 ? "" : a2.replace(Wa, "src: " + t4.join(", ") + ";");
  6314. }));
  6315. }
  6316. }
  6317. })];
  6318. case 1:
  6319. return s2.sent(), [4, Promise.all(i3)];
  6320. case 2:
  6321. return n3 = s2.sent(), [2, { blobs: e4, cssText: n3.filter(function(t4) {
  6322. return !!t4;
  6323. }).join("\n") }];
  6324. }
  6325. });
  6326. });
  6327. }, e3.prototype.getImage = function(t3, e4, i3) {
  6328. return S(this, void 0, void 0, function() {
  6329. var n3, r3, s2, a2, o3;
  6330. return I(this, function(l2) {
  6331. switch (l2.label) {
  6332. case 0:
  6333. return (n3 = this._objectsAlreadyHidden) || this.hideNonExportableSprites(), Z(e4) || (e4 = this.getFormatOptions(t3)), [4, this.awaitValidSprites()];
  6334. case 1:
  6335. return l2.sent(), [4, this.simplifiedImageExport()];
  6336. case 2:
  6337. if (!l2.sent())
  6338. return [3, 10];
  6339. r3 = void 0, l2.label = 3;
  6340. case 3:
  6341. return l2.trys.push([3, 7, , 9]), [4, this.getCanvas(e4)];
  6342. case 4:
  6343. return r3 = l2.sent(), i3 === false ? [3, 6] : [4, this.addExtras(r3, e4)];
  6344. case 5:
  6345. r3 = l2.sent(), l2.label = 6;
  6346. case 6:
  6347. return s2 = r3.toDataURL(this.getContentType(t3), e4.quality), this.disposeCanvas(r3), n3 || this.restoreNonExportableSprites(), [2, s2];
  6348. case 7:
  6349. return a2 = l2.sent(), console.error(a2.message + "\n" + a2.stack), fa("Simple export failed, falling back to advanced export"), r3 && this.disposeCanvas(r3), [4, this.getImageAdvanced(t3, e4, i3)];
  6350. case 8:
  6351. return o3 = l2.sent(), n3 || this.restoreNonExportableSprites(), [2, o3];
  6352. case 9:
  6353. return [3, 12];
  6354. case 10:
  6355. return [4, this.getImageAdvanced(t3, e4, i3)];
  6356. case 11:
  6357. return o3 = l2.sent(), n3 || this.restoreNonExportableSprites(), [2, o3];
  6358. case 12:
  6359. return [2];
  6360. }
  6361. });
  6362. });
  6363. }, e3.prototype.addExtras = function(t3, e4, i3) {
  6364. return S(this, void 0, void 0, function() {
  6365. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2, f2, g2, y2, m2 = this;
  6366. return I(this, function(v2) {
  6367. switch (v2.label) {
  6368. case 0:
  6369. return this.extraSprites.length ? (n3 = 0, r3 = 0, s2 = t3.width, a2 = t3.height, o3 = 0, l2 = 0, [4, Promise.all(zt(this.extraSprites, function(t4) {
  6370. return S(m2, void 0, void 0, function() {
  6371. var h3, p3, u3, d3;
  6372. return I(this, function(c3) {
  6373. switch (c3.label) {
  6374. case 0:
  6375. return (h3 = t4 instanceof Za ? { sprite: t4, position: "bottom" } : t4).position = h3.position || "bottom", h3.marginTop = h3.marginTop || 0, h3.marginRight = h3.marginRight || 0, h3.marginBottom = h3.marginBottom || 0, h3.marginLeft = h3.marginLeft || 0, i3 ? [4, h3.sprite.exporting.getCanvasAdvanced(e4)] : [3, 2];
  6376. case 1:
  6377. return p3 = c3.sent(), [3, 4];
  6378. case 2:
  6379. return [4, h3.sprite.exporting.getCanvas(e4)];
  6380. case 3:
  6381. p3 = c3.sent(), c3.label = 4;
  6382. case 4:
  6383. return u3 = p3.width + h3.marginLeft + h3.marginRight, d3 = p3.height + h3.marginTop + h3.marginBottom, h3.position == "top" ? (s2 = h3.crop ? a2 : gt(s2, u3), r3 += d3) : h3.position == "right" ? (a2 = h3.crop ? a2 : gt(a2, d3), o3 += u3) : h3.position == "left" ? (a2 = h3.crop ? a2 : gt(a2, d3), n3 += u3) : h3.position === "bottom" && (s2 = h3.crop ? a2 : gt(s2, u3), l2 += d3), [2, { canvas: p3, position: h3.position, left: h3.marginLeft, top: h3.marginTop, width: u3, height: d3 }];
  6384. }
  6385. });
  6386. });
  6387. }))]) : [3, 2];
  6388. case 1:
  6389. return h2 = v2.sent(), (p2 = this.getDisposableCanvas()).width = n3 + s2 + o3, p2.height = r3 + a2 + l2, u2 = p2.getContext("2d"), (d2 = this.backgroundColor || this.findBackgroundColor(this.sprite.dom)) && (u2.fillStyle = d2.toString(), u2.fillRect(0, 0, p2.width, p2.height)), g2 = (c2 = n3) + s2, y2 = (f2 = r3) + a2, Ut(h2, function(t4) {
  6390. t4.position == "top" ? (f2 -= t4.height, u2.drawImage(t4.canvas, n3 + t4.left, f2 + t4.top)) : t4.position == "right" ? (u2.drawImage(t4.canvas, g2 + t4.left, r3 + t4.top), g2 += t4.width) : t4.position == "left" ? (c2 -= t4.width, u2.drawImage(t4.canvas, c2 + t4.left, r3 + t4.top)) : t4.position === "bottom" && (u2.drawImage(t4.canvas, n3 + t4.left, y2 + t4.top), y2 += t4.height), m2.disposeCanvas(t4.canvas);
  6391. }), u2.drawImage(t3, n3, r3), [2, p2];
  6392. case 2:
  6393. return [2, t3];
  6394. }
  6395. });
  6396. });
  6397. }, e3.prototype.getCanvas = function(t3) {
  6398. return S(this, void 0, void 0, function() {
  6399. var e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2, f2, g2, y2, m2;
  6400. return I(this, function(v2) {
  6401. switch (v2.label) {
  6402. case 0:
  6403. Z(t3) || (t3 = {}), e4 = this.backgroundColor || this.findBackgroundColor(this.sprite.dom), i3 = this.getDOMURL(), n3 = null, r3 = null, v2.label = 1;
  6404. case 1:
  6405. return v2.trys.push([1, , 4, 5]), a2 = this.sprite.pixelWidth, o3 = this.sprite.pixelHeight, l2 = Bs(this.sprite.dom), h2 = Hs(this.sprite.dom), p2 = t3.scale || 1, u2 = this.getPixelRatio(t3), p2 = this.getAdjustedScale(a2 * u2, o3 * u2, p2, t3), (s2 = this.getDisposableCanvas()).style.width = a2 * p2 + "px", s2.style.height = o3 * p2 + "px", s2.width = a2 * p2, s2.height = o3 * p2, d2 = s2.getContext("2d"), e4 && (d2.fillStyle = e4.toString(), d2.fillRect(0, 0, a2 * p2, o3 * p2)), c2 = [], this.useWebFonts && c2.push(this.getFontFamilies().then(function(t4) {
  6406. return r3 = t4.blobs, t4.cssText;
  6407. })), c2.push(this.imagesToDataURI(this.sprite.dom, t3)), c2.push(this.prepForeignObjects(this.sprite.dom, t3)), [4, Promise.all(c2)];
  6408. case 2:
  6409. return f2 = v2.sent(), g2 = this.normalizeSVG("<style>" + f2[0] + "</style>" + this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), t3, a2, o3, p2, l2, h2), y2 = new Blob([g2], { type: "image/svg+xml" }), n3 = i3.createObjectURL(y2), [4, this.loadNewImage(n3, a2 * p2 * u2, o3 * p2 * u2, "anonymous")];
  6410. case 3:
  6411. return m2 = v2.sent(), d2.drawImage(m2, 0, 0), [3, 5];
  6412. case 4:
  6413. return n3 !== null && i3.revokeObjectURL(n3), r3 !== null && Ut(r3, function(t4) {
  6414. i3.revokeObjectURL(t4);
  6415. }), this.restoreRemovedObjects(), [7];
  6416. case 5:
  6417. return [2, s2];
  6418. }
  6419. });
  6420. });
  6421. }, e3.prototype.getCanvasAdvanced = function(t3) {
  6422. return S(this, void 0, void 0, function() {
  6423. var e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2;
  6424. return I(this, function(d2) {
  6425. switch (d2.label) {
  6426. case 0:
  6427. return Z(t3) || (t3 = {}), [4, this.imagesToDataURI(this.sprite.dom, t3)];
  6428. case 1:
  6429. return d2.sent(), e4 = this.backgroundColor || this.findBackgroundColor(this.sprite.dom), [4, this.canvg];
  6430. case 2:
  6431. return i3 = d2.sent(), n3 = this.sprite.pixelWidth, r3 = this.sprite.pixelHeight, s2 = Bs(this.sprite.dom), a2 = Hs(this.sprite.dom), o3 = t3.scale || 1, l2 = this.getPixelRatio(t3), o3 = this.getAdjustedScale(n3 * l2, r3 * l2, o3, t3), h2 = this.normalizeSVG(this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), t3, n3, r3, o3, s2, a2, e4), (p2 = this.getDisposableCanvas()).style.width = n3 * l2 * o3 + "px", p2.style.height = r3 * l2 * o3 + "px", p2.width = n3 * l2 * o3, p2.height = r3 * l2 * o3, u2 = { useCORS: true }, l2 != 1 && (u2.ignoreDimensions = true, u2.scaleWidth = n3 * l2 * o3, u2.scaleHeight = r3 * l2 * o3), [4, i3.fromString(p2.getContext("2d"), h2, u2).render()];
  6432. case 3:
  6433. return d2.sent(), [2, p2];
  6434. }
  6435. });
  6436. });
  6437. }, e3.prototype.getImageAdvanced = function(t3, e4, i3) {
  6438. return S(this, void 0, void 0, function() {
  6439. var n3, r3, s2;
  6440. return I(this, function(a2) {
  6441. switch (a2.label) {
  6442. case 0:
  6443. return (n3 = this._objectsAlreadyHidden) || this.hideNonExportableSprites(), Z(e4) || (e4 = this.getFormatOptions(t3)), [4, this.getCanvasAdvanced(e4)];
  6444. case 1:
  6445. return r3 = a2.sent(), i3 === false ? [3, 3] : [4, this.addExtras(r3, e4, true)];
  6446. case 2:
  6447. r3 = a2.sent(), a2.label = 3;
  6448. case 3:
  6449. return s2 = r3.toDataURL(this.getContentType(t3), e4.quality), this.disposeCanvas(r3), n3 || this.restoreNonExportableSprites(), [2, s2];
  6450. }
  6451. });
  6452. });
  6453. }, e3.prototype.getDisposableCanvas = function() {
  6454. var t3 = document.createElement("canvas");
  6455. return t3.style.position = "fixed", t3.style.top = "-10000px", document.body.appendChild(t3), t3;
  6456. }, e3.prototype.disposeCanvas = function(t3) {
  6457. document.body.removeChild(t3);
  6458. }, e3.prototype.getPixelRatio = function(t3) {
  6459. return this.useRetina ? Ln() : 1;
  6460. }, e3.prototype.getAdjustedScale = function(t3, e4, i3, n3) {
  6461. if (!n3)
  6462. return i3;
  6463. var r3, s2, a2 = t3 * i3, o3 = t3 * i3;
  6464. return n3.maxWidth && a2 > n3.maxWidth && (r3 = n3.maxWidth / t3), n3.maxHeight && o3 > n3.maxHeight && (s2 = n3.maxHeight / e4), r3 || s2 ? yt(r3, s2) : (n3.minWidth && a2 < n3.minWidth && (r3 = n3.minWidth / t3), n3.minHeight && o3 < n3.minHeight && (s2 = n3.minHeight / e4), r3 || s2 ? gt(r3, s2) : i3);
  6465. }, e3.prototype.imagesToDataURI = function(t3, i3) {
  6466. return S(this, void 0, void 0, function() {
  6467. var n3, r3, s2, a2, o3, l2;
  6468. return I(this, function(h2) {
  6469. switch (h2.label) {
  6470. case 0:
  6471. if (!(n3 = t3.querySelectorAll("image")).length)
  6472. return [3, 2];
  6473. for (r3 = [], s2 = n3.length, a2 = 0; a2 < s2; a2++)
  6474. o3 = n3[a2], (l2 = o3.getAttributeNS(e3.XLINK, "href")) && (l2.indexOf("data:image") !== -1 || (l2.indexOf(".svg") !== -1 ? r3.push(this.svgToDataURI(o3, i3)) : r3.push(this.imageToDataURI(o3, i3))));
  6475. return [4, Promise.all(r3)];
  6476. case 1:
  6477. return h2.sent(), [2];
  6478. case 2:
  6479. return [2];
  6480. }
  6481. });
  6482. });
  6483. }, e3.prototype.prepForeignObjects = function(t3, e4) {
  6484. return S(this, void 0, void 0, function() {
  6485. var e5, i3, n3;
  6486. return I(this, function(r3) {
  6487. if ((e5 = t3.querySelectorAll("foreignObject")).length)
  6488. for (i3 = e5.length, n3 = 0; n3 < i3; n3++)
  6489. this.temporarilyRemoveObject(e5[n3]);
  6490. return [2];
  6491. });
  6492. });
  6493. }, e3.prototype.imageToDataURI = function(t3, i3) {
  6494. return S(this, void 0, void 0, function() {
  6495. var n3, r3, s2;
  6496. return I(this, function(a2) {
  6497. switch (a2.label) {
  6498. case 0:
  6499. return a2.trys.push([0, 2, , 3]), [4, this.loadNewImage(t3.getAttributeNS(e3.XLINK, "href"), null, null, "anonymous")];
  6500. case 1:
  6501. n3 = a2.sent(), (r3 = document.createElement("canvas")).width = n3.width, r3.height = n3.height, r3.getContext("2d").drawImage(n3, 0, 0);
  6502. try {
  6503. return s2 = r3.toDataURL(), t3.setAttribute("href", s2), [2, s2];
  6504. } catch (e4) {
  6505. return i3.keepTainted !== false && this.temporarilyRemoveObject(t3), [2, void 0];
  6506. }
  6507. return [3, 3];
  6508. case 2:
  6509. return a2.sent(), i3 && i3.keepTainted === false || this.temporarilyRemoveObject(t3), [2, void 0];
  6510. case 3:
  6511. return [2];
  6512. }
  6513. });
  6514. });
  6515. }, e3.prototype.svgToDataURI = function(t3, i3) {
  6516. return S(this, void 0, void 0, function() {
  6517. var n3, r3, s2, a2;
  6518. return I(this, function(o3) {
  6519. switch (o3.label) {
  6520. case 0:
  6521. n3 = t3.getAttributeNS(e3.XLINK, "href"), o3.label = 1;
  6522. case 1:
  6523. return o3.trys.push([1, 3, , 4]), [4, Ha(n3)];
  6524. case 2:
  6525. return r3 = o3.sent(), s2 = this.adapter.apply("charset", { charset: "base64", type: "svg", options: i3 }).charset, a2 = this.adapter.apply("svgToDataURI", { data: "data:" + this.getContentType("svg") + ";" + s2 + "," + btoa(r3.response), options: i3 }).data, t3.setAttributeNS(e3.XLINK, "href", a2), [2, a2];
  6526. case 3:
  6527. return o3.sent(), i3 && i3.keepTainted === false || this.temporarilyRemoveObject(t3), [2, void 0];
  6528. case 4:
  6529. return [2];
  6530. }
  6531. });
  6532. });
  6533. }, e3.prototype.temporarilyRemoveObject = function(t3, e4) {
  6534. var i3 = t3.parentElement || t3.parentNode;
  6535. e4 || (e4 = this.sprite.paper.add("g").node), i3.insertBefore(e4, t3), t3.textContent, i3.removeChild(t3), this._removedObjects.push({ element: t3, placeholder: e4 });
  6536. }, e3.prototype.restoreRemovedObjects = function() {
  6537. for (var t3; t3 = this._removedObjects.pop(); )
  6538. (t3.placeholder.parentElement || t3.placeholder.parentNode).insertBefore(t3.element, t3.placeholder);
  6539. }, e3.prototype.simplifiedImageExport = function() {
  6540. return S(this, void 0, void 0, function() {
  6541. var t3, e4, i3, n3, r3, s2, a2;
  6542. return I(this, function(o3) {
  6543. switch (o3.label) {
  6544. case 0:
  6545. if (this.useSimplifiedExport === false)
  6546. return [2, false];
  6547. if ((t3 = Ii.getCache("simplifiedImageExport")) === false || t3 === true)
  6548. return [2, t3];
  6549. o3.label = 1;
  6550. case 1:
  6551. o3.trys.push([1, 6, , 7]), (e4 = document.createElement("canvas")).width = 1, e4.height = 1, i3 = e4.getContext("2d"), n3 = this.getDOMURL(), r3 = new Blob([this.normalizeSVG("<g></g>", {}, 1, 1)], { type: "image/svg+xml" }), s2 = n3.createObjectURL(r3), a2 = void 0, o3.label = 2;
  6552. case 2:
  6553. return o3.trys.push([2, 4, , 5]), [4, this.loadNewImage(s2, 1, 1)];
  6554. case 3:
  6555. return a2 = o3.sent(), [3, 5];
  6556. case 4:
  6557. return o3.sent(), [2, false];
  6558. case 5:
  6559. i3.drawImage(a2, 0, 0), n3.revokeObjectURL(s2);
  6560. try {
  6561. return Ii.setCache("simplifiedImageExport", true), [2, true];
  6562. } catch (t4) {
  6563. return Ii.setCache("simplifiedImageExport", false), [2, false];
  6564. }
  6565. return [3, 7];
  6566. case 6:
  6567. return o3.sent(), Ii.setCache("simplifiedImageExport", false), [2, false];
  6568. case 7:
  6569. return [2];
  6570. }
  6571. });
  6572. });
  6573. }, e3.prototype.loadNewImage = function(t3, e4, i3, n3) {
  6574. return new Promise(function(r3, s2) {
  6575. var a2;
  6576. function o3() {
  6577. if (n3) {
  6578. var e5 = a2.src;
  6579. a2.onerror = function() {
  6580. s2(new Error('Loading image "' + t3 + '" failed'));
  6581. }, a2.removeAttribute("crossorigin"), a2.src = "", a2.src = e5;
  6582. } else
  6583. s2(new Error('Loading image "' + t3 + '" failed'));
  6584. }
  6585. a2 = e4 && i3 ? new Image(e4, i3) : new Image(), n3 && a2.setAttribute("crossOrigin", n3), a2.onload = function() {
  6586. r3(a2);
  6587. }, a2.onabort = o3, a2.onerror = o3, a2.src = t3;
  6588. });
  6589. }, e3.prototype.getDOMURL = function() {
  6590. return self.URL || self.webkitURL || self;
  6591. }, e3.prototype.getSVG = function(t3, e4, i3) {
  6592. return i3 === void 0 && (i3 = true), S(this, void 0, void 0, function() {
  6593. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2;
  6594. return I(this, function(c2) {
  6595. switch (c2.label) {
  6596. case 0:
  6597. return (n3 = this._objectsAlreadyHidden) || this.hideNonExportableSprites(), Z(e4) || (e4 = this.getFormatOptions("svg")), [4, this.awaitValidSprites()];
  6598. case 1:
  6599. return c2.sent(), r3 = this.sprite.pixelWidth, s2 = this.sprite.pixelHeight, a2 = Bs(this.sprite.dom), o3 = Hs(this.sprite.dom), l2 = e4.scale || 1, h2 = this.getPixelRatio(e4), l2 = this.getAdjustedScale(r3 * h2, s2 * h2, l2, e4), p2 = this.normalizeSVG(this.serializeElement(this.sprite.paper.defs) + this.serializeElement(this.sprite.dom), e4, r3, s2, l2, a2, o3), u2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: "svg", options: e4 }).charset, d2 = this.adapter.apply("getSVG", { data: i3 ? "data:" + this.getContentType(t3) + ";" + u2 + "," + encodeURIComponent(p2) : p2, options: e4 }).data, n3 || this.restoreNonExportableSprites(), [2, d2];
  6600. }
  6601. });
  6602. });
  6603. }, e3.prototype.normalizeSVG = function(t3, e4, i3, n3, r3, s2, a2, o3) {
  6604. var l2 = "";
  6605. i3 && (l2 += 'width="' + Math.round(i3 * (r3 || 1)) + 'px" '), n3 && (l2 += 'height="' + Math.round(n3 * (r3 || 1)) + 'px" ');
  6606. var h2 = "";
  6607. s2 && (h2 += "font-family: " + s2.replace(/"/g, "") + ";"), a2 && (h2 += "font-size: " + a2 + ";"), r3 && (l2 += 'viewBox="0 0 ' + i3 + " " + n3 + '" ');
  6608. var p2 = [], u2 = t3.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);
  6609. if (u2)
  6610. for (var d2 = 0; d2 < u2.length; d2++)
  6611. t3 = t3.replace(u2[d2], wn), p2.push(u2[d2]);
  6612. t3.match(/<svg/) ? l2 !== "" && (t3 = (t3 = (t3 = t3.replace(/(<svg[^>]*)width="[^"]*"/, "$1")).replace(/(<svg[^>]*)height="[^"]*"/, "$1")).replace(/(<svg)/, "$1" + l2)) : t3 = '<?xml version="1.0" encoding="utf-8"?><svg ' + l2 + ' style="' + h2 + '" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + t3 + "</svg>", o3 && (t3 = t3.replace(/(<svg[^>]*>)/, '$1<rect width="100%" height="100%" fill="' + o3.rgba + '"/>')), /MSIE |Trident\//.test(navigator.userAgent) && (t3 = t3.replace(/<feColorMatrix [^\/>]*\/>/gi, ""));
  6613. var c2 = new RegExp("url\\(" + Bn(Dn()), "g");
  6614. if (t3 = (t3 = t3.replace(c2, "url(#")).replace(/url\(&quot;([^)]*)&quot;\)/gm, "url($1)"), p2.length)
  6615. for (d2 = 0; d2 < p2.length; d2++)
  6616. t3 = t3.replace(wn, p2[d2]);
  6617. return this.adapter.apply("normalizeSVG", { data: t3, options: e4 }).data;
  6618. }, e3.prototype.serializeElement = function(t3) {
  6619. return new XMLSerializer().serializeToString(t3);
  6620. }, e3.prototype.getPDF = function(t3, e4) {
  6621. return S(this, void 0, void 0, function() {
  6622. function i3(t4) {
  6623. var e5 = {};
  6624. e5.normal = t4.normal.path, c2[t4.normal.path] = t4.normal.bytes, t4.bold ? (e5.bold = t4.bold.path, c2[t4.bold.path] = t4.bold.bytes) : e5.bold = t4.normal.path, t4.italics ? (e5.italics = t4.italics.path, c2[t4.italics.path] = t4.italics.bytes) : e5.italics = t4.normal.path, t4.bolditalics ? (e5.bolditalics = t4.bolditalics.path, c2[t4.bolditalics.path] = t4.bolditalics.bytes) : e5.bolditalics = t4.normal.path, d2[t4.name] = e5;
  6625. }
  6626. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2;
  6627. return I(this, function(f2) {
  6628. switch (f2.label) {
  6629. case 0:
  6630. return [4, this.getImage(e4.imageFormat || "png", e4)];
  6631. case 1:
  6632. return n3 = f2.sent(), [4, this.pdfmake];
  6633. case 2:
  6634. return r3 = f2.sent(), s2 = [30, 30, 30, 30], a2 = { pageSize: e4.pageSize || "A4", pageOrientation: e4.pageOrientation || "portrait", pageMargins: e4.pageMargins || s2, defaultStyle: { font: e4.font ? e4.font.name : void 0 }, content: [] }, o3 = this.adapter.apply("title", { title: this.title, options: e4 }).title, l2 = 0, o3 && (a2.content.push({ text: o3, fontSize: e4.fontSize || 14, bold: true, margin: [0, 0, 0, 15] }), l2 += 50), e4.addURL && (a2.content.push({ text: this.language.translate("Saved from") + ": " + document.location.href, fontSize: e4.fontSize, margin: [0, 0, 0, 15] }), l2 += 50), t3 != "pdfdata" && a2.content.push({ image: n3, alignment: e4.align || "left", fit: this.getPageSizeFit(a2.pageSize, a2.pageMargins, l2) }), t3 == "pdfdata" || e4.addData ? (p2 = (h2 = a2.content).push, u2 = {}, [4, this.getPDFData("pdf", e4)]) : [3, 4];
  6635. case 3:
  6636. p2.apply(h2, [(u2.table = f2.sent(), u2.fontSize = e4.fontSize || 14, u2)]), f2.label = 4;
  6637. case 4:
  6638. return a2 = this.adapter.apply("pdfmakeDocument", { doc: a2, options: e4 }).doc, d2 = null, c2 = null, e4.font && (d2 = {}, c2 = {}, i3(e4.font), e4.extraFonts && Ut(e4.extraFonts, i3)), [4, new Promise(function(t4, e5) {
  6639. r3.createPdf(a2, null, d2, c2).getDataUrl(function(e6) {
  6640. t4(e6);
  6641. });
  6642. })];
  6643. case 5:
  6644. return [2, f2.sent()];
  6645. }
  6646. });
  6647. });
  6648. }, e3.prototype.getPDFData = function(t3, e4) {
  6649. return S(this, void 0, void 0, function() {
  6650. var t4, i3, n3, r3, s2, a2, o3 = this;
  6651. return I(this, function(l2) {
  6652. if (t4 = { body: [] }, i3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "pdf" }).dataFields, n3 = this.data, e4.pivot)
  6653. r3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "pdfdata" }).dataFieldsOrder, We(i3, function(i4, r4) {
  6654. var s3 = [];
  6655. e4.addColumnNames && s3.push(r4);
  6656. for (var a3 = n3.length, l3 = 0; l3 < a3; l3++) {
  6657. var h2 = n3[l3][i4];
  6658. s3.push(o3.convertToSpecialFormat(i4, h2, e4, true));
  6659. }
  6660. t4.body.push(o3.getPDFDataRow(s3, e4, void 0, true));
  6661. }, function(t5, e5) {
  6662. var i4 = r3.indexOf(t5), n4 = r3.indexOf(e5);
  6663. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6664. });
  6665. else
  6666. for (e4.addColumnNames && (t4.body.push(this.getPDFDataRow(i3, e4, void 0, true)), t4.headerRows = 1), s2 = n3.length, a2 = 0; a2 < s2; a2++)
  6667. t4.body.push(this.getPDFDataRow(n3[a2], e4, i3));
  6668. return [2, this.adapter.apply("pdfmakeTable", { table: t4, options: e4 }).table];
  6669. });
  6670. });
  6671. }, e3.prototype.getPDFDataRow = function(t3, e4, i3, n3) {
  6672. var r3 = this;
  6673. n3 === void 0 && (n3 = false);
  6674. var s2 = [];
  6675. i3 || (i3 = t3);
  6676. var a2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "pdfdata" }).dataFieldsOrder;
  6677. return We(i3, function(i4, a3) {
  6678. var o3 = r3.convertEmptyValue(i4, t3[i4], e4), l2 = n3 ? o3 : r3.convertToSpecialFormat(i4, o3, e4);
  6679. l2 = "" + l2, s2.push(l2);
  6680. }, function(t4, e5) {
  6681. var i4 = a2.indexOf(t4), n4 = a2.indexOf(e5);
  6682. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6683. }), s2;
  6684. }, e3.prototype.getPageSizeFit = function(t3, e4, i3) {
  6685. i3 === void 0 && (i3 = 0);
  6686. var n3 = [0, 0, 0, 0];
  6687. typeof e4 == "number" ? n3 = [e4, e4, e4, e4] : e4.length == 2 ? n3 = [e4[0], e4[1], e4[0], e4[1]] : e4.length == 4 && (n3 = e4);
  6688. var r3 = { "4A0": [4767.87, 6740.79], "2A0": [3370.39, 4767.87], A0: [2383.94, 3370.39], A1: [1683.78, 2383.94], A2: [1190.55, 1683.78], A3: [841.89, 1190.55], A4: [595.28, 841.89], A5: [419.53, 595.28], A6: [297.64, 419.53], A7: [209.76, 297.64], A8: [147.4, 209.76], A9: [104.88, 147.4], A10: [73.7, 104.88], B0: [2834.65, 4008.19], B1: [2004.09, 2834.65], B2: [1417.32, 2004.09], B3: [1000.63, 1417.32], B4: [708.66, 1000.63], B5: [498.9, 708.66], B6: [354.33, 498.9], B7: [249.45, 354.33], B8: [175.75, 249.45], B9: [124.72, 175.75], B10: [87.87, 124.72], C0: [2599.37, 3676.54], C1: [1836.85, 2599.37], C2: [1298.27, 1836.85], C3: [918.43, 1298.27], C4: [649.13, 918.43], C5: [459.21, 649.13], C6: [323.15, 459.21], C7: [229.61, 323.15], C8: [161.57, 229.61], C9: [113.39, 161.57], C10: [79.37, 113.39], RA0: [2437.8, 3458.27], RA1: [1729.13, 2437.8], RA2: [1218.9, 1729.13], RA3: [864.57, 1218.9], RA4: [609.45, 864.57], SRA0: [2551.18, 3628.35], SRA1: [1814.17, 2551.18], SRA2: [1275.59, 1814.17], SRA3: [907.09, 1275.59], SRA4: [637.8, 907.09], EXECUTIVE: [521.86, 756], FOLIO: [612, 936], LEGAL: [612, 1008], LETTER: [612, 792], TABLOID: [792, 1224] }[t3];
  6689. return r3[0] -= n3[0] + n3[2], r3[1] -= n3[1] + n3[3] + i3, r3;
  6690. }, e3.prototype.getExcel = function(t3, e4) {
  6691. return S(this, void 0, void 0, function() {
  6692. var i3, n3, r3, s2, a2, o3, l2, h2, p2, u2 = this;
  6693. return I(this, function(d2) {
  6694. switch (d2.label) {
  6695. case 0:
  6696. return Z(e4) || (e4 = this.getFormatOptions("xlsx")), [4, this.xlsx];
  6697. case 1:
  6698. if (i3 = d2.sent(), n3 = this.adapter.apply("xlsxWorkbookOptions", { xlsx: i3, options: { bookType: "xlsx", bookSST: false, type: "base64" } }).options, r3 = this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName", { xlsx: i3, name: this.title || this.language.translate("Data") }).name), s2 = { SheetNames: [r3], Sheets: {} }, a2 = [], o3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "xslx" }).dataFields, e4.pivot)
  6699. l2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "xlsx" }).dataFieldsOrder, We(o3, function(t4, i4) {
  6700. var n4 = [];
  6701. e4.addColumnNames && n4.push(i4);
  6702. for (var r4 = u2.data.length, s3 = 0; s3 < r4; s3++) {
  6703. var o4 = u2.data[s3][t4];
  6704. n4.push(u2.convertToSpecialFormat(t4, o4, e4, true));
  6705. }
  6706. a2.push(u2.getExcelRow(n4, e4, void 0, true));
  6707. }, function(t4, e5) {
  6708. var i4 = l2.indexOf(t4), n4 = l2.indexOf(e5);
  6709. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6710. });
  6711. else
  6712. for (e4.addColumnNames && a2.push(this.getExcelRow(o3, e4, void 0, true)), h2 = this.data.length, p2 = 0; p2 < h2; p2++)
  6713. a2.push(this.getExcelRow(this.data[p2], e4, o3));
  6714. return s2.Sheets[r3] = i3.utils.aoa_to_sheet(a2), s2 = this.adapter.apply("xlsxWorkbook", { xlsx: i3, workbook: s2, options: e4 }).workbook, [2, this.adapter.apply("getExcel", { data: "data:" + this.getContentType(t3) + ";base64," + i3.write(s2, n3), options: e4 }).data];
  6715. }
  6716. });
  6717. });
  6718. }, e3.prototype.normalizeExcelSheetName = function(t3) {
  6719. return Nn(t3 = t3.replace(/([:\\\/?*\[\]]+)/g, " "), 31, "...", true);
  6720. }, e3.prototype.getExcelRow = function(t3, e4, i3, n3) {
  6721. var r3 = this;
  6722. n3 === void 0 && (n3 = false);
  6723. var s2 = [];
  6724. i3 || (i3 = t3);
  6725. var a2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "xlsx" }).dataFieldsOrder;
  6726. return We(i3, function(i4, a3) {
  6727. var o3 = r3.convertEmptyValue(i4, t3[i4], e4), l2 = n3 ? o3 : r3.convertToSpecialFormat(i4, o3, e4, true);
  6728. s2.push(l2);
  6729. }, function(t4, e5) {
  6730. var i4 = a2.indexOf(t4), n4 = a2.indexOf(e5);
  6731. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6732. }), s2;
  6733. }, e3.prototype.getCSV = function(t3, e4, i3) {
  6734. return i3 === void 0 && (i3 = true), S(this, void 0, void 0, function() {
  6735. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2 = this;
  6736. return I(this, function(c2) {
  6737. if (Z(e4) || (e4 = this.getFormatOptions("csv")), n3 = "", r3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "csv" }).dataFields, s2 = "", a2 = this.data, e4.pivot)
  6738. o3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "csv" }).dataFieldsOrder, We(r3, function(t4, i4) {
  6739. var r4 = [];
  6740. e4.addColumnNames && r4.push(i4);
  6741. for (var o4 = a2.length, l3 = 0; l3 < o4; l3++) {
  6742. var h3 = a2[l3][t4];
  6743. r4.push(d2.convertToSpecialFormat(t4, h3, e4, true));
  6744. }
  6745. n3 += s2 + d2.getCSVRow(r4, e4, void 0, true), s2 = "\n";
  6746. }, function(t4, e5) {
  6747. var i4 = o3.indexOf(t4), n4 = o3.indexOf(e5);
  6748. return i4 > n4 ? -1 : i4 < n4 ? 1 : 0;
  6749. });
  6750. else {
  6751. for (l2 = a2.length, h2 = 0; h2 < l2; h2++)
  6752. p2 = this.getCSVRow(a2[h2], e4, r3), e4.reverse ? n3 = p2 + s2 + n3 : n3 += s2 + p2, s2 = "\n";
  6753. e4.addColumnNames && (n3 = this.getCSVRow(r3, e4, void 0, true) + s2 + n3);
  6754. }
  6755. return u2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: t3, options: e4 }).charset, [2, this.adapter.apply("getCSV", { data: i3 ? "data:" + this.getContentType(t3) + ";" + u2 + "," + encodeURIComponent(n3) : n3, options: e4 }).data];
  6756. });
  6757. });
  6758. }, e3.prototype.getCSVRow = function(t3, e4, i3, n3) {
  6759. var r3 = this;
  6760. n3 === void 0 && (n3 = false);
  6761. var s2 = e4.separator || ",", a2 = [];
  6762. i3 || (i3 = t3);
  6763. var o3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "csv" }).dataFieldsOrder;
  6764. return We(i3, function(i4, o4) {
  6765. var l2 = r3.convertEmptyValue(i4, t3[i4], e4), h2 = n3 ? l2 : r3.convertToSpecialFormat(i4, l2, e4);
  6766. h2 = (h2 = "" + h2).replace(/"/g, '""'), (e4.forceQuotes || h2.search(new RegExp('"|\n|' + s2, "g")) >= 0) && (h2 = '"' + h2 + '"'), a2.push(h2);
  6767. }, function(t4, e5) {
  6768. var i4 = o3.indexOf(t4), n4 = o3.indexOf(e5);
  6769. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6770. }), a2.join(s2);
  6771. }, e3.prototype.getHTML = function(t3, e4, i3) {
  6772. return i3 === void 0 && (i3 = true), S(this, void 0, void 0, function() {
  6773. var n3, r3, s2, a2, o3, l2, h2, p2 = this;
  6774. return I(this, function(u2) {
  6775. if (Z(e4) || (e4 = this.getFormatOptions("html")), n3 = "<table>", e4.tableClass && (n3 = '<table class="' + e4.tableClass + '">'), r3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "html" }).dataFields, s2 = this.data, e4.pivot)
  6776. a2 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "html" }).dataFieldsOrder, n3 += "\n<tbody>", We(r3, function(t4, i4) {
  6777. var r4 = [];
  6778. e4.addColumnNames && r4.push(i4);
  6779. for (var a3 = s2.length, o4 = 0; o4 < a3; o4++) {
  6780. var l3 = s2[o4][t4];
  6781. r4.push(p2.convertToSpecialFormat(t4, l3, e4, true));
  6782. }
  6783. n3 += "\n" + p2.getHTMLRow(r4, e4, void 0, true);
  6784. }, function(t4, e5) {
  6785. var i4 = a2.indexOf(t4), n4 = a2.indexOf(e5);
  6786. return i4 > n4 ? -1 : i4 < n4 ? 1 : 0;
  6787. }), n3 += "\n</tbody>";
  6788. else {
  6789. for (e4.addColumnNames && (n3 += "\n<thead>\n" + this.getHTMLRow(r3, e4, void 0, true, true) + "\n</thead>"), n3 += "\n<tbody>", o3 = s2.length, l2 = 0; l2 < o3; l2++)
  6790. n3 += "\n" + this.getHTMLRow(s2[l2], e4, r3);
  6791. n3 += "\n</tbody>";
  6792. }
  6793. return n3 += "\n</table>", h2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: t3, options: e4 }).charset, [2, this.adapter.apply("getHTML", { data: i3 ? "data:" + this.getContentType(t3) + ";" + h2 + "," + encodeURIComponent(n3) : n3, options: e4 }).data];
  6794. });
  6795. });
  6796. }, e3.prototype.getHTMLRow = function(t3, e4, i3, n3, r3) {
  6797. var s2 = this;
  6798. n3 === void 0 && (n3 = false), r3 === void 0 && (r3 = false);
  6799. var a2 = " <tr>";
  6800. e4.rowClass && (a2 = ' <tr class="' + e4.rowClass + '">'), i3 || (i3 = t3);
  6801. var o3 = this.adapter.apply("dataFieldsOrder", { dataFieldsOrder: this.dataFieldsOrder, format: "html" }).dataFieldsOrder, l2 = r3 ? "th" : "td", h2 = true;
  6802. return We(i3, function(i4, r4) {
  6803. var o4 = s2.convertEmptyValue(i4, t3[i4], e4), p2 = n3 ? o4 : s2.convertToSpecialFormat(i4, o4, e4);
  6804. p2 = (p2 = "" + p2).replace(/[\u00A0-\u9999<>\&]/gim, function(t4) {
  6805. return "&#" + t4.charCodeAt(0) + ";";
  6806. });
  6807. var u2 = l2;
  6808. e4.pivot && h2 && (u2 = "th"), e4.cellClass ? a2 += "\n <" + u2 + ' class="' + e4.cellClass + '">' + p2 + "</" + u2 + ">" : a2 += "\n <" + u2 + ">" + p2 + "</" + u2 + ">", h2 = false;
  6809. }, function(t4, e5) {
  6810. var i4 = o3.indexOf(t4), n4 = o3.indexOf(e5);
  6811. return i4 > n4 ? 1 : i4 < n4 ? -1 : 0;
  6812. }), a2 += "\n </tr>";
  6813. }, e3.prototype.getJSON = function(t3, e4, i3) {
  6814. return i3 === void 0 && (i3 = true), S(this, void 0, void 0, function() {
  6815. var n3, r3, s2, a2, o3, l2, h2, p2, u2 = this;
  6816. return I(this, function(d2) {
  6817. if (Z(e4) || (e4 = this.getFormatOptions("json")), r3 = this.adapter.apply("formatDataFields", { dataFields: this.dataFields, format: "json" }).dataFields, this._dynamicDataFields)
  6818. n3 = this.data;
  6819. else
  6820. for (n3 = [], s2 = this.data, a2 = function(t4, i4) {
  6821. var a3 = s2[i4];
  6822. if (typeof a3 == "object") {
  6823. var o4 = {};
  6824. Ne(a3, function(t5, i5) {
  6825. Z(r3[t5]) && (o4[r3[t5]] = u2.convertToSpecialFormat(t5, i5, e4));
  6826. }), n3.push(o4);
  6827. }
  6828. }, o3 = s2.length, l2 = 0; l2 < o3; l2++)
  6829. a2(0, l2);
  6830. return h2 = JSON.stringify(n3, function(t4, i4) {
  6831. return typeof i4 == "object" && Ne(i4, function(t5, n4) {
  6832. i4[t5] = u2.convertToSpecialFormat(t5, n4, e4);
  6833. }), i4;
  6834. }, e4.indent), p2 = this.adapter.apply("charset", { charset: "charset=utf-8", type: t3, options: e4 }).charset, [2, this.adapter.apply("getJSON", { data: i3 ? "data:" + this.getContentType(t3) + ";" + p2 + "," + encodeURIComponent(h2) : h2, options: e4 }).data];
  6835. });
  6836. });
  6837. }, e3.prototype.convertToSpecialFormat = function(t3, e4, i3, n3) {
  6838. if (typeof e4 == "number")
  6839. if (this.isDateField(t3))
  6840. e4 = new Date(e4);
  6841. else {
  6842. if (this.isDurationField(t3))
  6843. return this.durationFormatter.format(e4, this.durationFormat);
  6844. if (this.isNumberField(t3) && this.numberFormat)
  6845. return this.numberFormatter.format(e4, this.numberFormat);
  6846. }
  6847. return e4 instanceof Date ? i3.useTimestamps ? e4 = e4.getTime() : i3.useLocale ? n3 || (e4 = e4.toLocaleString()) : e4 = this.dateFormatter.format(e4, this.dateFormat) : Q(e4) && this.isDateField(t3) && this.dateFormat && (e4 = this.dateFormatter.format(this.dateFormatter.parse(e4), this.dateFormat)), e4;
  6848. }, e3.prototype.convertEmptyValue = function(t3, e4, i3) {
  6849. return Z(e4) ? e4 : i3.emptyAs;
  6850. }, e3.prototype.download = function(t3, e4, i3) {
  6851. return i3 === void 0 && (i3 = false), S(this, void 0, void 0, function() {
  6852. var n3, r3, s2, a2, o3, l2, h2, p2, u2, d2, c2, f2, g2, y2, m2;
  6853. return I(this, function(v2) {
  6854. if (this.msBlobDownloadSupport()) {
  6855. if (f2 = t3.split(";"), g2 = f2.shift().replace(/data:/, ""), t3 = decodeURIComponent(f2.join(";").replace(/^[^,]*,/, "")), ["image/svg+xml", "application/json", "text/csv"].indexOf(g2) != -1)
  6856. return n3 = new Blob([t3], { type: g2 }), window.navigator.msSaveBlob(n3, e4), [2, true];
  6857. try {
  6858. s2 = atob(t3), t3 = s2;
  6859. } catch (t4) {
  6860. return [2, false];
  6861. }
  6862. for (l2 = new Array(t3.length), h2 = 0; h2 < t3.length; ++h2)
  6863. p2 = t3.charCodeAt(h2), l2[h2] = p2;
  6864. u2 = new Blob([new Uint8Array(l2)], { type: g2 }), window.navigator.msSaveBlob(u2, e4);
  6865. } else if (this.blobDownloadSupport()) {
  6866. if ((r3 = document.createElement("a")).download = e4, document.body.appendChild(r3), f2 = t3.split(";"), g2 = f2.shift().replace(/data:/, ""), t3 = decodeURIComponent(f2.join(";").replace(/^[^,]*,/, "")), ["image/svg+xml", "application/json", "text/csv", "text/html"].indexOf(g2) != -1)
  6867. return i3 && (t3 = "\uFEFF" + t3), a2 = new Blob([t3], { type: g2 }), o3 = window.URL.createObjectURL(a2), r3.href = o3, r3.download = e4, r3.click(), setTimeout(function() {
  6868. document.body.removeChild(r3), window.URL.revokeObjectURL(o3);
  6869. }, 100), [2, true];
  6870. try {
  6871. s2 = atob(t3), t3 = s2;
  6872. } catch (t4) {
  6873. return [2, false];
  6874. }
  6875. for (l2 = new Array(t3.length), h2 = 0; h2 < t3.length; ++h2)
  6876. p2 = t3.charCodeAt(h2), l2[h2] = p2;
  6877. i3 && (l2 = [239, 187, 191].concat(l2)), u2 = new Blob([new Uint8Array(l2)], { type: g2 }), d2 = window.URL.createObjectURL(u2), r3.href = d2, r3.download = e4, document.body.appendChild(r3), r3.click(), document.body.removeChild(r3), setTimeout(function() {
  6878. window.URL.revokeObjectURL(d2);
  6879. }, 100);
  6880. } else
  6881. this.linkDownloadSupport() ? ((c2 = document.createElement("a")).download = e4, c2.href = t3, document.body.appendChild(c2), c2.click(), document.body.removeChild(c2)) : this.legacyIE() ? (f2 = t3.match(/^data:(.*);[ ]*([^,]*),(.*)$/)).length === 4 && (f2[2] == "base64" ? f2[1].match(/^image\//) && this.showModal('<img src="' + t3 + '" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>' + this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."') + '</p><p style="text-align: center;"><small>' + this.language.translate("(Press ESC to close this message)") + "</small></p>", this.language.translate("Image Export Complete")) : (g2 = void 0, e4.match(/\.svg$/) ? g2 = "image/svg+xml" : (g2 = "text/plain", e4 += ".txt"), (y2 = document.createElement("iframe")).width = "1px", y2.height = "1px", y2.style.display = "none", document.body.appendChild(y2), (m2 = y2.contentDocument).open(g2, "replace"), m2.write(decodeURIComponent(f2[3])), m2.close(), m2.execCommand("SaveAs", true, e4), document.body.removeChild(y2))) : window.location.href = t3;
  6882. return [2, true];
  6883. });
  6884. });
  6885. }, e3.prototype.downloadSupport = function() {
  6886. return this.linkDownloadSupport() || this.msBlobDownloadSupport();
  6887. }, e3.prototype.linkDownloadSupport = function() {
  6888. var t3 = Ii.getCache("linkDownloadSupport");
  6889. if (t3 === false || t3 === true)
  6890. return t3;
  6891. var e4 = document.createElement("a").download !== void 0;
  6892. return Ii.setCache("linkDownloadSupport", e4), e4;
  6893. }, e3.prototype.blobDownloadSupport = function() {
  6894. return Z(window.Blob);
  6895. }, e3.prototype.msBlobDownloadSupport = function() {
  6896. return Z(window.navigator.msSaveOrOpenBlob);
  6897. }, e3.prototype.legacyIE = function() {
  6898. var t3 = document.createElement("div");
  6899. return t3.innerHTML = "<!--[if lt IE 10]><i></i><![endif]-->", t3.getElementsByTagName("i").length == 1;
  6900. }, e3.prototype.print = function(t3, e4, i3) {
  6901. return S(this, void 0, void 0, function() {
  6902. return I(this, function(n3) {
  6903. return e4.printMethod == "css" ? [2, this.printViaCSS(t3, e4, i3)] : [2, this.printViaIframe(t3, e4, i3)];
  6904. });
  6905. });
  6906. }, e3.prototype.printViaCSS = function(t3, e4, i3) {
  6907. return S(this, void 0, void 0, function() {
  6908. var n3, r3, s2, a2;
  6909. return I(this, function(o3) {
  6910. return n3 = document.documentElement.scrollTop || document.body.scrollTop, r3 = new Ls(As(this.container), "body > *", { display: "none", position: "fixed", visibility: "hidden", opacity: "0", clipPath: "polygon(0px 0px,0px 0px,0px 0px,0px 0px);" }), i3 && document && document.title && (s2 = document.title, document.title = i3), (a2 = new Image()).src = t3, a2.style.maxWidth = "100%", a2.style.display = "block", a2.style.position = "relative", a2.style.visibility = "visible", a2.style.opacity = "1", a2.style.clipPath = "none", document.body.appendChild(a2), this.setTimeout(function() {
  6911. window.print();
  6912. }, 50), /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && e4.delay < 1e3 ? e4.delay = 1e3 : e4.delay < 100 && (e4.delay = 100), this.setTimeout(function() {
  6913. document.body.removeChild(a2), r3.dispose(), s2 && (document.title = document.title), document.documentElement.scrollTop = document.body.scrollTop = n3;
  6914. }, e4.delay || 500), [2, true];
  6915. });
  6916. });
  6917. }, e3.prototype.printViaIframe = function(t3, e4, i3) {
  6918. return S(this, void 0, void 0, function() {
  6919. var n3, r3;
  6920. return I(this, function(s2) {
  6921. return (n3 = document.createElement("iframe")).style.visibility = "hidden", document.body.appendChild(n3), n3.contentWindow.document.open(), n3.contentWindow.document.close(), (r3 = new Image()).src = t3, r3.style.maxWidth = "100%", r3.style.height = "auto", i3 && (n3.contentWindow.document.title = i3), n3.contentWindow.document.body.appendChild(r3), n3.load = function() {
  6922. n3.contentWindow.document.body.appendChild(r3);
  6923. }, this.setTimeout(function() {
  6924. try {
  6925. n3.contentWindow.document.execCommand("print", false, null) || n3.contentWindow.print();
  6926. } catch (t4) {
  6927. n3.contentWindow.print();
  6928. }
  6929. }, e4.delay || 50), /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream && e4.delay < 1e3 ? e4.delay = 1e3 : e4.delay < 100 && (e4.delay = 100), this.setTimeout(function() {
  6930. document.body.removeChild(n3);
  6931. }, e4.delay + 50 || 100), [2, true];
  6932. });
  6933. });
  6934. }, e3.prototype.findBackgroundColor = function(t3) {
  6935. var e4 = 1, i3 = Os(t3, "background-color");
  6936. if ((i3.match(/[^,]*,[^,]*,[^,]*,[ ]?0/) || i3 == "transparent") && (e4 = 0), e4 == 0) {
  6937. var n3 = t3.parentElement;
  6938. return n3 ? this.findBackgroundColor(n3) : dn("#fff");
  6939. }
  6940. return dn(i3, e4);
  6941. }, Object.defineProperty(e3.prototype, "container", { get: function() {
  6942. return this.adapter.apply("container", { container: this._container }).container;
  6943. }, set: function(t3) {
  6944. this._container = t3;
  6945. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sprite", { get: function() {
  6946. return this.adapter.apply("sprite", { sprite: this._sprite }).sprite;
  6947. }, set: function(t3) {
  6948. this._sprite = t3;
  6949. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraSprites", { get: function() {
  6950. return this.adapter.apply("extraSprites", { extraSprites: this._extraSprites }).extraSprites;
  6951. }, set: function(t3) {
  6952. this._extraSprites = t3;
  6953. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "validateSprites", { get: function() {
  6954. return this.adapter.apply("validateSprites", { validateSprites: this._validateSprites }).validateSprites;
  6955. }, set: function(t3) {
  6956. this._validateSprites = t3;
  6957. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "data", { get: function() {
  6958. return this.adapter.apply("data", { data: this._data }).data;
  6959. }, set: function(t3) {
  6960. this._data = t3;
  6961. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dataFields", { get: function() {
  6962. return this._dataFields || this.generateDataFields(), this.adapter.apply("dataFields", { dataFields: this._dataFields }).dataFields;
  6963. }, set: function(t3) {
  6964. this._dataFields = t3, this._dynamicDataFields = false;
  6965. }, enumerable: true, configurable: true }), e3.prototype.handleDataUpdated = function() {
  6966. this._dynamicDataFields && (this._dataFields = void 0);
  6967. var t3 = this.data.length > 0;
  6968. this._prevHasData != t3 && (this._prevHasData = t3, this.menu && this.menu.invalidate());
  6969. }, Object.defineProperty(e3.prototype, "dateFormatter", { get: function() {
  6970. return this._dateFormatter || (this._dateFormatter = new Ma(), this._dateFormatter.language = this.language), this.adapter.apply("dateFormatter", { dateFormatter: this._dateFormatter }).dateFormatter;
  6971. }, set: function(t3) {
  6972. this._dateFormatter = t3;
  6973. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFormat", { get: function() {
  6974. return this.adapter.apply("dateFormat", { dateFormat: this._dateFormat }).dateFormat;
  6975. }, set: function(t3) {
  6976. this._dateFormat = t3;
  6977. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFields", { get: function() {
  6978. return this._dateFields || (this._dateFields = new Fi()), this.adapter.apply("dateFields", { dateFields: this._dateFields }).dateFields;
  6979. }, set: function(t3) {
  6980. this._dateFields = t3;
  6981. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFormatter", { get: function() {
  6982. return this._numberFormatter || (this._numberFormatter = new Fa(), this._numberFormatter.language = this.language), this.adapter.apply("numberFormatter", { numberFormatter: this._numberFormatter }).numberFormatter;
  6983. }, set: function(t3) {
  6984. this._numberFormatter = t3;
  6985. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFormat", { get: function() {
  6986. return this.adapter.apply("numberFormat", { numberFormat: this._numberFormat }).numberFormat;
  6987. }, set: function(t3) {
  6988. this._numberFormat = t3;
  6989. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFields", { get: function() {
  6990. return this._numberFields || (this._numberFields = new Fi()), this.adapter.apply("numberFields", { numberFields: this._numberFields }).numberFields;
  6991. }, set: function(t3) {
  6992. this._numberFields = t3;
  6993. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormatter", { get: function() {
  6994. return this._durationFormatter || (this._durationFormatter = new La(), this._durationFormatter.language = this.language), this.adapter.apply("durationFormatter", { durationFormatter: this._durationFormatter }).durationFormatter;
  6995. }, set: function(t3) {
  6996. this._durationFormatter = t3;
  6997. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormat", { get: function() {
  6998. return this.adapter.apply("durationFormat", { durationFormat: this._durationFormat }).durationFormat;
  6999. }, set: function(t3) {
  7000. this._durationFormat = t3;
  7001. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFields", { get: function() {
  7002. return this._durationFields || (this._durationFields = new Fi()), this.adapter.apply("durationFields", { durationFields: this._durationFields }).durationFields;
  7003. }, set: function(t3) {
  7004. this._durationFields = t3;
  7005. }, enumerable: true, configurable: true }), e3.prototype.generateDataFields = function() {
  7006. var t3 = this;
  7007. this._dataFields = {}, this.data.length && Ut(this.data, function(e4) {
  7008. Ne(e4, function(e5, i3) {
  7009. Z(t3._dataFields[e5]) || (t3._dataFields[e5] = t3.adapter.apply("dataFieldName", { name: e5, field: e5 }).name);
  7010. });
  7011. });
  7012. }, e3.prototype.isDateField = function(t3) {
  7013. return this.adapter.apply("isDateField", { isDateField: this.dateFields.contains(t3), field: t3 }).isDateField;
  7014. }, e3.prototype.isNumberField = function(t3) {
  7015. return this.adapter.apply("isNumberField", { isNumberField: this.numberFields.contains(t3), field: t3 }).isNumberField;
  7016. }, e3.prototype.isDurationField = function(t3) {
  7017. return this.adapter.apply("isDurationField", { isDurationField: this.durationFields.contains(t3), field: t3 }).isDurationField;
  7018. }, e3.prototype.getContentType = function(t3) {
  7019. var e4 = "";
  7020. switch (t3) {
  7021. case "png":
  7022. case "gif":
  7023. e4 = "image/" + t3;
  7024. break;
  7025. case "jpg":
  7026. e4 = "image/jpeg";
  7027. break;
  7028. case "svg":
  7029. e4 = "image/svg+xml";
  7030. break;
  7031. case "csv":
  7032. e4 = "text/csv";
  7033. break;
  7034. case "json":
  7035. e4 = "application/json";
  7036. break;
  7037. case "html":
  7038. e4 = "text/html";
  7039. break;
  7040. case "pdf":
  7041. case "pdfdata":
  7042. e4 = "application/pdf";
  7043. break;
  7044. case "xlsx":
  7045. e4 = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
  7046. }
  7047. return this.adapter.apply("contentType", { contentType: e4, type: t3 }).contentType;
  7048. }, Object.defineProperty(e3.prototype, "filePrefix", { get: function() {
  7049. return this.adapter.apply("filePrefix", { filePrefix: this._filePrefix }).filePrefix;
  7050. }, set: function(t3) {
  7051. this._filePrefix = t3;
  7052. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "backgroundColor", { get: function() {
  7053. return this.adapter.apply("backgroundColor", { backgroundColor: this._backgroundColor }).backgroundColor;
  7054. }, set: function(t3) {
  7055. this._backgroundColor = t3;
  7056. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "title", { get: function() {
  7057. return this.adapter.apply("title", { title: this._title }).title;
  7058. }, set: function(t3) {
  7059. this._title = t3;
  7060. }, enumerable: true, configurable: true }), e3.prototype.showPreloader = function() {
  7061. var t3 = this.preloader;
  7062. t3 && (t3.progress = 0.5, t3.label.text = "...");
  7063. }, e3.prototype.hidePreloader = function() {
  7064. var t3 = this.preloader;
  7065. t3 && (t3.progress = 1);
  7066. }, Object.defineProperty(e3.prototype, "preloader", { get: function() {
  7067. return this._sprite && this._sprite.parent && this._sprite.parent.preloader ? this._sprite.parent.preloader : void 0;
  7068. }, enumerable: true, configurable: true }), e3.prototype.showTimeout = function() {
  7069. this.showModal(this.adapter.apply("timeoutMessage", { message: this.language.translate("Export operation took longer than expected. Something might have gone wrong.") }).message);
  7070. }, e3.prototype.hideTimeout = function() {
  7071. this._timeoutTimeout && (this.removeDispose(this._timeoutTimeout), this._timeoutTimeout = null), this.hideModal();
  7072. }, Object.defineProperty(e3.prototype, "language", { get: function() {
  7073. return this._language || (this._language = new Ta()), this._language;
  7074. }, set: function(t3) {
  7075. this._language = t3;
  7076. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "modal", { get: function() {
  7077. return this._modal || (this._modal = new ca(), this._modal.adapter.add("classPrefix", function(t3) {
  7078. return ls.classNamePrefix + t3;
  7079. })), this._modal;
  7080. }, enumerable: true, configurable: true }), e3.prototype.showModal = function(t3, e4) {
  7081. this.hideModal(), this.hidePreloader();
  7082. var i3 = this.modal;
  7083. i3.container = this.sprite.svgContainer.SVGContainer, i3.content = t3, i3.readerTitle = e4, i3.open();
  7084. }, e3.prototype.hideModal = function() {
  7085. this._modal && this.modal.close();
  7086. }, e3.prototype._canvg = function() {
  7087. return S(this, void 0, void 0, function() {
  7088. var t3;
  7089. return I(this, function(e4) {
  7090. switch (e4.label) {
  7091. case 0:
  7092. return [4, a.e(265).then(a.bind(a, 1234))];
  7093. case 1:
  7094. return (t3 = e4.sent()).default != null ? [2, t3.default] : [2, t3];
  7095. }
  7096. });
  7097. });
  7098. }, Object.defineProperty(e3.prototype, "canvg", { get: function() {
  7099. return this._canvg();
  7100. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pdfmake", { get: function() {
  7101. return ja == null && (ja = function() {
  7102. return S(this, void 0, void 0, function() {
  7103. var t3, e4, i3, n3;
  7104. return I(this, function(r3) {
  7105. switch (r3.label) {
  7106. case 0:
  7107. return [4, Promise.all([a.e(643).then(a.t.bind(a, 6727, 23)), a.e(643).then(a.bind(a, 4995))])];
  7108. case 1:
  7109. return t3 = r3.sent(), e4 = t3[0], i3 = t3[1], (n3 = window).pdfMake = n3.pdfMake || {}, n3.pdfMake.vfs = i3.default, e4.vfs = i3.default, [2, e4];
  7110. }
  7111. });
  7112. });
  7113. }()), ja;
  7114. }, enumerable: true, configurable: true }), e3.prototype._xlsx = function() {
  7115. return S(this, void 0, void 0, function() {
  7116. return I(this, function(t3) {
  7117. switch (t3.label) {
  7118. case 0:
  7119. return [4, Promise.all([a.e(739), a.e(297)]).then(a.t.bind(a, 7739, 23))];
  7120. case 1:
  7121. return [2, t3.sent()];
  7122. }
  7123. });
  7124. });
  7125. }, Object.defineProperty(e3.prototype, "xlsx", { get: function() {
  7126. return this._xlsx();
  7127. }, enumerable: true, configurable: true }), e3.prototype.setFormatOptions = function(t3, e4) {
  7128. this._formatOptions.setKey(t3, e4);
  7129. }, e3.prototype.getFormatOptions = function(t3) {
  7130. return this._formatOptions.getKey(t3);
  7131. }, Object.defineProperty(e3.prototype, "formatOptions", { get: function() {
  7132. return this._formatOptions;
  7133. }, enumerable: true, configurable: true }), e3.prototype._disablePointers = function() {
  7134. Z(this._spriteInteractionsEnabled) || (this._spriteInteractionsEnabled = this.sprite.interactionsEnabled), this.sprite.interactionsEnabled = false;
  7135. }, e3.prototype._releasePointers = function() {
  7136. Z(this._spriteInteractionsEnabled) && !this._exportRunning && (this.sprite.interactionsEnabled = this._spriteInteractionsEnabled);
  7137. }, e3.prototype.hideNonExportableSprites = function() {
  7138. var t3 = this;
  7139. if (!this._objectsAlreadyHidden) {
  7140. var e4 = this.sprite.svgContainer;
  7141. e4 && Ut(e4.nonExportableSprites, function(e5) {
  7142. e5.isHidden || e5.isHiding || !e5.visible || t3._hiddenObjects.push(e5), e5.hide(0);
  7143. }), this._objectsAlreadyHidden = true;
  7144. }
  7145. }, e3.prototype.restoreNonExportableSprites = function() {
  7146. this._objectsAlreadyHidden && (Ut(this._hiddenObjects, function(t3) {
  7147. t3.show(0);
  7148. }), this._hiddenObjects = [], this._objectsAlreadyHidden = false);
  7149. }, e3.prototype.awaitValidSprites = function() {
  7150. return S(this, void 0, void 0, function() {
  7151. var t3;
  7152. return I(this, function(e4) {
  7153. switch (e4.label) {
  7154. case 0:
  7155. return t3 = [], this.validateSprites.length && Ut(this.validateSprites, function(e5, i3) {
  7156. e5.invalid && t3.push(new Promise(function(t4, i4) {
  7157. e5.events.once("validated", function(e6) {
  7158. t4();
  7159. });
  7160. }));
  7161. }), t3.length ? [4, Promise.all(t3)] : [3, 2];
  7162. case 1:
  7163. e4.sent(), e4.label = 2;
  7164. case 2:
  7165. return [2];
  7166. }
  7167. });
  7168. });
  7169. }, e3.prototype.processConfig = function(e4) {
  7170. Ii.registeredClasses.ExportMenu = Ba, e4 && (Z(e4.menu) && !Z(e4.menu.type) && (e4.menu.type = "ExportMenu"), Z(e4.dataFields) && et(e4.dataFields) && (this.dataFields = e4.dataFields, delete e4.dataFields)), t2.prototype.processConfig.call(this, e4);
  7171. }, e3.XLINK = "http://www.w3.org/1999/xlink", e3;
  7172. }(Ra), Ka = ["fill", "fillOpacity", "stroke", "strokeOpacity", "strokeWidth", "strokeDasharray", "strokeDashoffset", "strokeLinecap", "strokeLinejoin"], Za = function(t2) {
  7173. function e3() {
  7174. var e4 = t2.call(this) || this;
  7175. return e4.properties = {}, e4._eventDispatcher = new as(e4), e4._bindings = {}, e4._isTemplate = false, e4._isPath = false, e4._inited = false, e4._ready = false, e4.isHiding = false, e4._isHidden = false, e4.isShowing = false, e4.isStandaloneInstance = false, e4._isActive = false, e4._mask = new ve(), e4._positionPrecision = 3, e4._language = new ve(), e4._exporting = new ve(), e4._exportable = true, e4._bbox = { x: 0, y: 0, width: 0, height: 0 }, e4.invalid = false, e4.positionInvalid = false, e4.propertyFields = {}, e4.applyOnClones = false, e4._measuredWidthSelf = 0, e4._measuredHeightSelf = 0, e4.maxLeft = 0, e4.maxRight = 0, e4.maxTop = 0, e4.maxBottom = 0, e4.maxLeftSelf = 0, e4.maxRightSelf = 0, e4.maxTopSelf = 0, e4.maxBottomSelf = 0, e4._isDragged = false, e4._isResized = false, e4._disabled = false, e4._internalDisabled = false, e4._updateDisabled = false, e4._internalDefaultsApplied = false, e4.rollOutDelay = 0, e4.isBaseSprite = false, e4.shouldClone = true, e4.appeared = false, e4.ex = 0, e4.ey = 0, e4.dragWhileResize = false, e4.measureFailed = false, e4.preventShow = false, e4.cloneTooltip = true, e4.className = "Sprite", e4._disposers.push(e4._eventDispatcher), e4.uid, e4.group = e4.paper.addGroup("g"), e4.setPropertyValue("scale", 1), e4.setPropertyValue("rotation", 0), e4.setPropertyValue("align", "none"), e4.setPropertyValue("valign", "none"), e4.setPropertyValue("pixelPerfect", false), e4.setPropertyValue("visible", true), e4.setPropertyValue("tooltipPosition", "fixed"), e4.setPropertyValue("verticalCenter", "none"), e4.setPropertyValue("horizontalCenter", "none"), e4.setPropertyValue("tooltipX", V(50)), e4.setPropertyValue("tooltipX", V(50)), e4.setPropertyValue("marginTop", 0), e4.setPropertyValue("marginBottom", 0), e4.setPropertyValue("marginLeft", 0), e4.setPropertyValue("marginRight", 0), e4.setPropertyValue("dx", 0), e4.setPropertyValue("dy", 0), e4.setPropertyValue("paddingTop", 0), e4.setPropertyValue("paddingBottom", 0), e4.setPropertyValue("paddingRight", 0), e4.setPropertyValue("paddingLeft", 0), e4.setPropertyValue("togglable", false), e4.setPropertyValue("hidden", false), e4.setPropertyValue("urlTarget", "_self"), e4.setPropertyValue("alwaysShowTooltip", false), e4.setPropertyValue("showTooltipOn", "hover"), e4._prevMeasuredWidth = 0, e4._prevMeasuredHeight = 0, e4._measuredWidth = 0, e4._measuredHeight = 0, e4._isMeasured = true, e4.invalidate(), e4.applyTheme(), e4._disposers.push(e4.events), e4._disposers.push(e4.group), e4._disposers.push(e4._mask), e4._disposers.push(e4._language), e4._disposers.push(e4._exporting), e4._disposers.push(new ye(function() {
  7176. Ne(e4._bindings, function(t3, e5) {
  7177. e5.dispose();
  7178. });
  7179. })), e4.setPropertyValue("interactionsEnabled", true), e4;
  7180. }
  7181. return C(e3, t2), Object.defineProperty(e3.prototype, "events", { get: function() {
  7182. return this._eventDispatcher;
  7183. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "adapter", { get: function() {
  7184. return this._adapterO || (this._adapterO = new Yi(this)), this._adapterO;
  7185. }, enumerable: true, configurable: true }), e3.prototype.applyTheme = function() {
  7186. t2.prototype.applyTheme.call(this), ls.autoSetClassName && this.setClassName();
  7187. }, e3.prototype.getCurrentThemes = function() {
  7188. var t3 = this._themes;
  7189. if (t3)
  7190. return t3;
  7191. var e4 = this._parent;
  7192. return e4 ? e4.getCurrentThemes() : Ii.themes;
  7193. }, e3.prototype.applyInternalDefaults = function() {
  7194. this._internalDefaultsApplied = true;
  7195. }, e3.prototype.invalidate = function() {
  7196. this.disabled || this._isTemplate || this.__disabled || this.invalid || (this.invalid = true, Ii.addToInvalidSprites(this), Qa.requestFrame());
  7197. }, e3.prototype.validate = function() {
  7198. this.dispatchImmediately("beforevalidated"), this._internalDefaultsApplied || this.applyInternalDefaults(), this.beforeDraw(), this.draw(), this.invalid = false, Ii.removeFromInvalidSprites(this), this.afterDraw();
  7199. }, e3.prototype.invalidatePosition = function() {
  7200. this.disabled || this._isTemplate || this.positionInvalid || (this.positionInvalid = true, Ii.addToInvalidPositions(this), Qa.requestFrame());
  7201. }, e3.prototype.validatePosition = function() {
  7202. var t3 = this.pixelX, e4 = this.pixelY, i3 = this.dx, n3 = this.dy, r3 = t3 + i3, s2 = e4 + n3;
  7203. this._updateDisabled && (this._internalDisabled ? this.group.attr({ display: "none" }) : this.disabled || this.removeSVGAttribute("display"), this._updateDisabled = false);
  7204. var a2 = this.measure(), o3 = this.group.transformString;
  7205. this.group.moveTo({ x: r3, y: s2 }), this.group.rotation = this.rotation, this.nonScaling ? this.group.scale = this.scale / this.globalScale : this.group.scale = this.scale, (o3 != this.group.transformString || a2) && (o3 == null ? this.dispatch("transformed") : this.dispatchImmediately("transformed"), this.dispatch("positionchanged"), this.showTooltipOn != "hit" && this.showTooltipOn != "always" || this.updateTooltipPosition()), t3 + i3 == r3 && e4 + n3 == s2 && (Ii.removeFromInvalidPositions(this), this.positionInvalid = false);
  7206. var l2 = this._maskRectangle;
  7207. l2 && this._clipElement.moveTo({ x: l2.x - t3, y: l2.y - e4 });
  7208. }, e3.prototype.beforeDraw = function() {
  7209. }, e3.prototype.draw = function() {
  7210. }, e3.prototype.afterDraw = function() {
  7211. var t3, e4;
  7212. if ((this.isMeasured || this.horizontalCenter !== "none" || this.verticalCenter !== "none") && this.measureElement(), this._inited)
  7213. this.dispatch("validated");
  7214. else {
  7215. if (this._adapterO)
  7216. try {
  7217. for (var i3 = D(this._adapterO.keys()), n3 = i3.next(); !n3.done; n3 = i3.next()) {
  7218. var r3 = n3.value;
  7219. switch (r3) {
  7220. case "mask":
  7221. case "fill":
  7222. case "opacity":
  7223. case "fillOpacity":
  7224. case "stroke":
  7225. case "strokeOpacity":
  7226. case "strokeWidth":
  7227. case "shapeRendering":
  7228. case "strokeDasharray":
  7229. case "strokeDashoffset":
  7230. case "strokeLinecap":
  7231. case "strokeLinejoin":
  7232. case "textDecoration":
  7233. case "fontSize":
  7234. case "fontFamily":
  7235. case "fontWeight":
  7236. this[r3] = this[r3];
  7237. }
  7238. }
  7239. } catch (e5) {
  7240. t3 = { error: e5 };
  7241. } finally {
  7242. try {
  7243. n3 && !n3.done && (e4 = i3.return) && e4.call(i3);
  7244. } finally {
  7245. if (t3)
  7246. throw t3.error;
  7247. }
  7248. }
  7249. this.applyFilters(), this.visible = this.visible, this.interactionsEnabled = this.getPropertyValue("interactionsEnabled"), this._inited = true, this.showOnInit || (this.appeared = true), this.hidden && this.hide(0), this.applyMask(), this.dispatch("validated"), this.dispatch("inited"), this.dispatchReady();
  7250. }
  7251. this.showTooltipOn == "always" && (!this.visible || this.disabled || this.__disabled ? this.hideTooltip(0) : this.showTooltip());
  7252. }, e3.prototype.dispatchReady = function() {
  7253. this.isReady() || (this._ready = true, this.dispatch("ready"));
  7254. }, e3.prototype.reinit = function() {
  7255. this._inited = false, this.setState(this.defaultState), this.invalidate();
  7256. }, e3.prototype.handleGlobalScale = function() {
  7257. this.dispatch("globalscalechanged"), this.nonScalingStroke && (this.strokeWidth = this.strokeWidth), this.nonScaling && this.validatePosition(), this.updateFilterScale();
  7258. }, e3.prototype.updateFilterScale = function() {
  7259. var t3 = this;
  7260. ti(this.filters.iterator(), function(e4) {
  7261. e4.scale = t3.globalScale;
  7262. });
  7263. }, e3.prototype.removeFromInvalids = function() {
  7264. Ii.removeFromInvalidSprites(this), Ii.removeFromInvalidPositions(this);
  7265. }, e3.prototype.copyFrom = function(e4) {
  7266. var i3 = this;
  7267. t2.prototype.copyFrom.call(this, e4), this.isMeasured = e4.isMeasured, this.states.copyFrom(e4.states), e4.filters.length > 0 && e4.filters.each(function(t3) {
  7268. i3.filters.push(t3.clone());
  7269. }), e4._adapterO && this.adapter.copyFrom(e4._adapterO), e4._interaction && this.interactions.copyFrom(e4.interactions), e4._plugins && this.plugins.copyFrom(e4.plugins), this.configField = e4.configField, this.applyOnClones = e4.applyOnClones, this.disabled = e4.disabled, this.virtualParent = e4.virtualParent, this.exportable = e4.exportable, e4._tooltip && (this._tooltip ? this._tooltip.copyFrom(e4.tooltip) : e4.cloneTooltip ? this.tooltip = e4.tooltip.clone() : this._tooltip = e4.tooltip), this._showSystemTooltip = e4.showSystemTooltip, Sn(e4.propertyFields, this.propertyFields), Sn(e4.properties, this), e4.fillModifier && (this.fillModifier = e4.fillModifier.clone()), e4.strokeModifier && (this.strokeModifier = e4.strokeModifier.clone());
  7270. }, e3.prototype.dispose = function() {
  7271. if (!this.isDisposed()) {
  7272. if (this.showTooltipOn == "always" && this.tooltip && this.tooltip.hide(), this.dispatchImmediately("beforedisposed"), this.isBaseSprite) {
  7273. if (this.htmlContainer)
  7274. for (; this.htmlContainer.childNodes.length > 0; )
  7275. this.htmlContainer.removeChild(this.htmlContainer.firstChild);
  7276. this.isBaseSprite = false;
  7277. }
  7278. if (t2.prototype.dispose.call(this), this._adapterO && this._adapterO.clear(), this.applyOnClones && this._clones)
  7279. for (var e4 = this._clones.length - 1; e4 >= 0; e4--)
  7280. this._clones.getIndex(e4).dispose();
  7281. this._svgContainer && this._svgContainer.dispose(), this._interactionDisposer && (this._interactionDisposer.dispose(), this._interactionDisposer = void 0), this._urlDisposer && this._urlDisposer.dispose(), this.removeFromInvalids(), this.element && this.element.dispose(), this.group && this.group.dispose(), this._numberFormatter && this._numberFormatter.dispose(), this._focusFilter && this._focusFilter.dispose();
  7282. var i3 = this.stroke;
  7283. !i3 || i3 instanceof un || !i3.dispose || this.clonedFrom && this.clonedFrom.stroke == i3 || i3.dispose();
  7284. var n3 = this.fill;
  7285. if (!n3 || n3 instanceof un || !n3.dispose || this.clonedFrom && this.clonedFrom.fill == n3 || n3.dispose(), Z(this.id) && this.map.removeKey(this.id), this.parent = void 0, this._filters)
  7286. for (; this._filters.length > 0; ) {
  7287. var r3 = this._filters.getIndex(0);
  7288. r3.dispose(), this._filters.removeValue(r3);
  7289. }
  7290. this._alwaysShowDisposers = void 0;
  7291. }
  7292. }, Object.defineProperty(e3.prototype, "isTemplate", { get: function() {
  7293. return this._isTemplate;
  7294. }, set: function(t3) {
  7295. t3 = z(t3), this._isTemplate != t3 && (this._isTemplate = t3, this instanceof $a && ti(this.children.iterator(), function(e4) {
  7296. e4.isTemplate = t3;
  7297. }), t3 ? (this.parent = this._parent, this.removeFromInvalids()) : this.invalidate());
  7298. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showSystemTooltip", { get: function() {
  7299. return Z(this._showSystemTooltip) ? this._showSystemTooltip : this.virtualParent ? this.virtualParent.showSystemTooltip : !!this._parent && this._parent.showSystemTooltip;
  7300. }, set: function(t3) {
  7301. t3 = z(t3), this._showSystemTooltip != t3 && (this._showSystemTooltip = t3, this.applyAccessibility());
  7302. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "topParent", { get: function() {
  7303. return this._topParent ? this._topParent : this._parent ? this._parent.topParent : void 0;
  7304. }, set: function(t3) {
  7305. this._topParent = t3;
  7306. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "parent", { get: function() {
  7307. return this._parent;
  7308. }, set: function(t3) {
  7309. if (!this._isTemplate) {
  7310. this.paper;
  7311. var e4 = this._parent;
  7312. e4 != t3 && (e4 && e4.children.removeValue(this), this._parent = t3, t3 ? (this.topParent = t3.topParent, t3.isTemplate && (this.isTemplate = true), this.baseId = t3.baseId, t3.children.push(this), this._tooltip && !this._tooltipContainer && (this._tooltip.parent = t3.tooltipContainer), this._dataItem || (this.dataItem = t3.dataItem), this.handleAlwaysShowTooltip(), this.dataItem && this.applyAccessibility(), this.dispatchImmediately("parentset")) : this.topParent = void 0);
  7313. }
  7314. }, enumerable: true, configurable: true }), e3.prototype.handleAlwaysShow = function() {
  7315. this.showTooltip();
  7316. }, e3.prototype.handleAlwaysShowTooltip = function() {
  7317. var t3 = this, e4 = this._alwaysShowDisposers;
  7318. if (e4 && Ut(e4, function(t4) {
  7319. t4.dispose();
  7320. }), this._alwaysShowDisposers = [], this.showTooltipOn == "always")
  7321. for (; t3 != null; ) {
  7322. var i3 = t3.events.on("visibilitychanged", this.handleAlwaysShow, this, false);
  7323. this.addDisposer(i3), this._alwaysShowDisposers.push(i3), t3 = t3.parent;
  7324. }
  7325. }, Object.defineProperty(e3.prototype, "virtualParent", { get: function() {
  7326. return this._virtualParent;
  7327. }, set: function(t3) {
  7328. this._virtualParent = t3, this.dataItem && this.applyAccessibility();
  7329. }, enumerable: true, configurable: true }), e3.prototype.appendDefs = function() {
  7330. this.filterElement && this.paper.appendDef(this.filterElement);
  7331. var t3 = this.fill;
  7332. t3 && t3.element && this.paper.appendDef(t3.element);
  7333. var e4 = this.stroke;
  7334. if (e4 && e4.element && this.paper.appendDef(e4.element), this.fillModifier && this.fill instanceof un) {
  7335. var i3 = this.fillModifier.modify(this.fill);
  7336. i3 && i3.element && this.paper.appendDef(i3.element);
  7337. }
  7338. if (this.strokeModifier && this.stroke instanceof un) {
  7339. var n3 = this.strokeModifier.modify(this.stroke);
  7340. n3 && n3.element && this.paper.appendDef(n3.element);
  7341. }
  7342. this._clipPath && this.paper.appendDef(this._clipPath), this._exportable === false && (this.exportable = false);
  7343. }, Object.defineProperty(e3.prototype, "map", { get: function() {
  7344. var t3 = this.topParent;
  7345. return t3 ? t3.map : (this._map || (this._map = new Pi()), this._map);
  7346. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "delayedMap", { get: function() {
  7347. var t3 = this.topParent;
  7348. return t3 ? t3.delayedMap : (this._delayedMap || (this._delayedMap = new Pi()), this._delayedMap);
  7349. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "id", { get: function() {
  7350. return this._id;
  7351. }, set: function(t3) {
  7352. if (this._id != t3) {
  7353. if (this._id = t3, this.map.hasKey(t3))
  7354. throw Error("Duplicate id (" + t3 + ") used on multiple objects.");
  7355. this.map.setKey(t3, this), ls.autoSetClassName && this.setClassName();
  7356. }
  7357. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dom", { get: function() {
  7358. return this.group.node;
  7359. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paper", { get: function() {
  7360. if (this._paper)
  7361. return this._paper;
  7362. var t3 = this._parent;
  7363. return t3 ? t3.paper : wa();
  7364. }, set: function(t3) {
  7365. this.setPaper(t3);
  7366. }, enumerable: true, configurable: true }), e3.prototype.setPaper = function(t3) {
  7367. return this._paper != t3 && (this._paper = t3, this.appendDefs(), true);
  7368. }, Object.defineProperty(e3.prototype, "htmlContainer", { get: function() {
  7369. if (this._htmlContainer)
  7370. return this._htmlContainer;
  7371. var t3 = this._parent;
  7372. return t3 ? t3.htmlContainer : void 0;
  7373. }, set: function(t3) {
  7374. this._htmlContainer = t3;
  7375. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "titleElement", { get: function() {
  7376. return this._titleElement || (this._titleElement = this.paper.add("title"), this.group.add(this._titleElement)), this._titleElement;
  7377. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "descriptionElement", { get: function() {
  7378. return this._descriptionElement || (this._descriptionElement = this.paper.add("desc"), this.group.add(this._descriptionElement)), this._descriptionElement;
  7379. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "filters", { get: function() {
  7380. return this._filters || (this._filters = new Fi(), this._disposers.push(this._filters.events.onAll(this.applyFilters, this)), this._disposers.push(new Ai(this._filters))), this._filters;
  7381. }, enumerable: true, configurable: true }), e3.prototype.setSVGAttributes = function() {
  7382. this.fill = this.fill, this.opacity = this.opacity, this.fillOpacity = this.fillOpacity, this.stroke = this.stroke, this.strokeOpacity = this.strokeOpacity, this.shapeRendering = this.shapeRendering, this.strokeDasharray = this.strokeDasharray, this.strokeDashoffset = this.strokeDashoffset, this.strokeLinecap = this.strokeLinecap, this.strokeLinejoin = this.strokeLinejoin, this.focusable = this.focusable, this.tabindex = this.tabindex, this.role = this.role;
  7383. }, e3.prototype.setSVGAttribute = function(t3) {
  7384. this.group.attr(t3);
  7385. }, e3.prototype.removeSVGAttribute = function(t3) {
  7386. this.group.removeAttr(t3);
  7387. }, e3.prototype.setClassName = function() {
  7388. var t3 = this.className, e4 = ls.classNamePrefix;
  7389. this.element && this.element.addClass(e4 + t3), this.group.addClass(e4 + t3 + "-group"), Z(this.id) && this.group.addClass(e4 + this.id), this.userClassName && this.group.addClass(this.userClassName);
  7390. }, e3.prototype.uidAttr = function() {
  7391. return this.setSVGAttribute({ id: this.uid }), this.uid;
  7392. }, e3.prototype.updateClipPath = function() {
  7393. var t3 = this._clipElement;
  7394. t3 && t3.moveTo({ x: this.mask.pixelX, y: this.mask.pixelY });
  7395. }, e3.prototype.createClipPath = function() {
  7396. if (!this._clipPath) {
  7397. this._clipPath = this.paper.addGroup("clipPath"), this.paper.appendDef(this._clipPath), this._disposers.push(this._clipPath);
  7398. var t3 = Ii.getUniqueId();
  7399. this._clipPath.attr({ id: t3 }), this.group.attr({ "clip-path": 'url("' + Dn() + t3 + '")' });
  7400. }
  7401. }, e3.prototype.applyMask = function() {
  7402. var t3 = this.mask;
  7403. if (this._clipPath && t3)
  7404. if (t3 instanceof $a) {
  7405. this._clipElement.attr({ width: gt(0, t3.pixelWidth), height: gt(0, t3.pixelHeight) });
  7406. var e4 = dr({ x: t3.pixelX, y: t3.pixelY }, t3.parent, this);
  7407. this._clipPath.x = e4.x, this._clipPath.y = e4.y;
  7408. } else
  7409. t3.element && t3.element != this._clipElement && (this._clipElement = t3.element, this._clipPath.add(this._clipElement)), this._clipPath.scale = t3.scale, this._clipPath.x = t3.pixelX, this._clipPath.y = t3.pixelY, this._clipPath.rotation = t3.rotation;
  7410. }, e3.prototype.applyFilters = function() {
  7411. var t3 = this;
  7412. if (this._filters && this._filters.length > 0) {
  7413. var e4 = 100, i3 = 100;
  7414. this.filterElement ? this.filterElement.removeChildNodes() : (this.filterElement = this.paper.addGroup("filter"), this._disposers.push(this.filterElement)), this.paper.appendDef(this.filterElement);
  7415. var n3 = "filter-" + this.uid;
  7416. this.filterElement.attr({ id: n3 }), ti(this.filters.iterator(), function(n4) {
  7417. n4.sprite = t3, n4.paper = t3.paper, t3.filterElement.attr({ filterUnits: n4.filterUnits }), n4.appendPrimitives(t3.filterElement), n4.width > e4 && (e4 = n4.width), n4.height > i3 && (i3 = n4.height), n4.scale = t3.globalScale;
  7418. });
  7419. var r3 = e4 + "%", s2 = i3 + "%";
  7420. this.filterElement.attr({ width: r3, height: s2, x: -(e4 - 100) / 2 + "%", y: -(i3 - 100) / 2 + "%" }), this.group.attr({ filter: 'url("' + Dn() + n3 + '")' });
  7421. } else
  7422. this.filterElement && (this.group.removeAttr("filter"), this.filterElement.removeChildNodes());
  7423. }, e3.prototype.removeClipPath = function() {
  7424. this._clipPath && (this.removeDispose(this._clipPath), this._clipPath = void 0);
  7425. }, e3.prototype.setElement = function(t3) {
  7426. this.element = t3, this.setSVGAttributes(), this.applyAccessibility();
  7427. }, Object.defineProperty(e3.prototype, "element", { get: function() {
  7428. return this._element;
  7429. }, set: function(t3) {
  7430. this.removeElement(), this._element = t3, this.group.add(t3), t3.node instanceof SVGPathElement && (this._isPath = true), this.invalid || this.validate(), ls.autoSetClassName && this.setClassName();
  7431. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "svgContainer", { get: function() {
  7432. return this._svgContainer ? this._svgContainer : this._parent ? this._parent.svgContainer : void 0;
  7433. }, set: function(t3) {
  7434. this._svgContainer = t3;
  7435. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  7436. if (this.element)
  7437. if (this.definedBBox)
  7438. this._bbox = this.definedBBox;
  7439. else {
  7440. var t3 = this.element.getBBox();
  7441. this._bbox = { x: t3.x, y: t3.y, width: t3.width, height: t3.height };
  7442. }
  7443. }, e3.prototype.updateCenter = function() {
  7444. if (this.element) {
  7445. var t3 = this.element.transformString, e4 = this.bbox, i3 = 0, n3 = 0, r3 = e4.x, s2 = e4.y, a2 = e4.width, o3 = e4.height, l2 = this.pixelPaddingLeft, h2 = this.pixelPaddingRight, p2 = this.pixelPaddingTop, u2 = this.pixelPaddingBottom, d2 = gt(a2 + l2 + h2, this.pixelWidth), c2 = gt(o3 + p2 + u2, this.pixelHeight), f2 = e4.x, g2 = e4.x + d2, y2 = e4.y, m2 = e4.y + c2, v2 = this.horizontalCenter, b2 = this.verticalCenter;
  7446. switch (v2) {
  7447. case "none":
  7448. i3 = r3 + l2;
  7449. break;
  7450. case "left":
  7451. i3 = l2;
  7452. break;
  7453. case "middle":
  7454. i3 = l2 - (a2 + h2 + l2) / 2;
  7455. break;
  7456. case "right":
  7457. i3 = -h2 - a2;
  7458. }
  7459. switch (b2) {
  7460. case "none":
  7461. n3 = s2 + p2;
  7462. break;
  7463. case "top":
  7464. n3 = p2;
  7465. break;
  7466. case "middle":
  7467. n3 = p2 - (o3 + u2 + p2) / 2;
  7468. break;
  7469. case "bottom":
  7470. n3 = -u2 - o3;
  7471. }
  7472. this._measuredHeight = c2, this._measuredWidth = d2;
  7473. var x2 = lt(i3 - r3, this._positionPrecision, true), _2 = lt(n3 - s2, this._positionPrecision, true);
  7474. this.ex = x2 - l2, this.ey = _2 - p2, this.maxLeft = f2 + x2 - l2, this.maxRight = g2 + x2 - l2, this.maxTop = y2 + _2 - p2, this.maxBottom = m2 + _2 - p2, this.pixelPerfect && ls.pixelPerfectPrecision == 0 && (x2 -= 0.5, _2 -= 0.5), this.element.moveTo({ x: x2, y: _2 }), t3 != this.element.transformString && this.dispatchImmediately("transformed");
  7475. }
  7476. }, e3.prototype.measure = function() {
  7477. this.updateCenter();
  7478. var t3 = this._measuredWidth, e4 = this._measuredHeight, i3 = this.maxLeft, n3 = this.maxRight, r3 = this.maxTop, s2 = this.maxBottom;
  7479. this._measuredWidthSelf = t3, this._measuredHeightSelf = e4;
  7480. var a2 = this._positionPrecision;
  7481. if (this.maxLeftSelf = this.maxLeft, this.maxRightSelf = this.maxRight, this.maxTopSelf = this.maxTop, this.maxBottomSelf = this.maxBottom, this.rotation !== 0 || this.scale !== 1 || this.nonScaling) {
  7482. this.nonScalingStroke && (this.strokeWidth = this.strokeWidth);
  7483. var o3 = this.paper.svg, l2 = o3.createSVGMatrix(), h2 = this.rotation, p2 = this.scale;
  7484. this.nonScaling && (p2 = this.scale / this.globalScale), l2.a = ft(h2) * p2, l2.c = -dt(h2) * p2, l2.e = 0, l2.b = dt(h2) * p2, l2.d = ft(h2) * p2, l2.f = 0;
  7485. var u2 = o3.createSVGPoint();
  7486. u2.x = i3, u2.y = r3;
  7487. var d2 = o3.createSVGPoint();
  7488. d2.x = n3, d2.y = r3;
  7489. var c2 = o3.createSVGPoint();
  7490. c2.x = n3, c2.y = s2;
  7491. var f2 = o3.createSVGPoint();
  7492. f2.x = i3, f2.y = s2;
  7493. var g2 = u2.matrixTransform(l2), y2 = d2.matrixTransform(l2), m2 = c2.matrixTransform(l2), v2 = f2.matrixTransform(l2);
  7494. i3 = Math.min(g2.x, y2.x, m2.x, v2.x), n3 = Math.max(g2.x, y2.x, m2.x, v2.x), r3 = Math.min(g2.y, y2.y, m2.y, v2.y), t3 = n3 - i3, e4 = (s2 = Math.max(g2.y, y2.y, m2.y, v2.y)) - r3, this.maxLeft = lt(i3, a2, true), this.maxRight = lt(n3, a2, true), this.maxTop = lt(r3, a2, true), this.maxBottom = lt(s2, a2, true);
  7495. }
  7496. return this._measuredWidth = lt(t3, a2, true), this._measuredHeight = lt(e4, a2, true), (this._measuredWidth != this._prevMeasuredWidth || this._measuredHeight != this._prevMeasuredHeight) && (this._prevMeasuredHeight = this._measuredHeight, this._prevMeasuredWidth = this._measuredWidth, this.dispatch("sizechanged"), (this.isHover || this.showTooltipOn == "hit" || this.showTooltipOn == "always") && this.tooltip && this.tooltip.visible && (Z(this.tooltipText) || Z(this.tooltipHTML)) && this.updateTooltipPosition(), true);
  7497. }, e3.prototype.insertBefore = function(t3) {
  7498. var e4 = this._parent;
  7499. if (e4) {
  7500. var i3 = e4.children.indexOf(t3);
  7501. i3 !== -1 && (e4.children.moveValue(this, i3), e4.sortChildren());
  7502. }
  7503. return this;
  7504. }, e3.prototype.insertAfter = function(t3) {
  7505. var e4 = this._parent;
  7506. if (e4) {
  7507. var i3 = e4.children.indexOf(t3);
  7508. i3 !== -1 && (e4.children.moveValue(this, i3 + 1), e4.sortChildren());
  7509. }
  7510. return this;
  7511. }, e3.prototype.removeElement = function() {
  7512. this._element && (this.removeDispose(this._element), this._element = void 0);
  7513. }, e3.prototype.getRelativeX = function(t3) {
  7514. return t3 instanceof A ? t3.value : this._parent ? t3 / this._parent.innerWidth : 0;
  7515. }, e3.prototype.getRelativeY = function(t3) {
  7516. return t3 instanceof A ? t3.value : this._parent ? t3 / this._parent.innerHeight : 0;
  7517. }, e3.prototype.getPixelX = function(t3) {
  7518. var e4 = 0;
  7519. if (tt(t3))
  7520. e4 = t3;
  7521. else if (t3 instanceof A) {
  7522. var i3 = t3.value;
  7523. this._parent && (e4 = lt(this._parent.innerWidth * i3, this._positionPrecision, true));
  7524. }
  7525. return e4;
  7526. }, e3.prototype.getPixelY = function(t3) {
  7527. var e4 = 0;
  7528. if (tt(t3))
  7529. e4 = t3;
  7530. else if (t3 instanceof A) {
  7531. var i3 = t3.value;
  7532. this._parent && (e4 = lt(this._parent.innerHeight * i3, this._positionPrecision, true));
  7533. }
  7534. return e4;
  7535. }, e3.prototype.moveTo = function(t3, e4, i3, n3) {
  7536. this.isDragged && !n3 || (t3 && (tt(t3.x) && this.setPropertyValue("x", lt(t3.x, this._positionPrecision, true)), tt(t3.y) && this.setPropertyValue("y", lt(t3.y, this._positionPrecision, true))), tt(e4) && (this.rotation = e4), tt(i3) && (this.scale = i3), this.invalidatePosition());
  7537. }, Object.defineProperty(e3.prototype, "mask", { get: function() {
  7538. return this._adapterO ? this._adapterO.apply("mask", this._mask.get()) : this._mask.get();
  7539. }, set: function(t3) {
  7540. var e4 = this;
  7541. this._mask.get() !== t3 && (t3 ? (this.createClipPath(), t3 instanceof $a ? this._clipElement = this.paper.add("rect") : (t3.isMeasured = false, t3.element && (this._clipElement = t3.element)), this._clipElement && this._clipPath.add(this._clipElement), this._mask.set(t3, new me([t3.events.on("maxsizechanged", function() {
  7542. e4.inited && e4.applyMask();
  7543. }, void 0, false), t3.events.on("validated", this.applyMask, this, false), t3.events.on("positionchanged", this.applyMask, this, false)])), this.applyMask()) : (this._mask.reset(), this.group.removeAttr("clip-path"), this.removeClipPath()));
  7544. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maskRectangle", { get: function() {
  7545. return this._maskRectangle;
  7546. }, set: function(t3) {
  7547. t3 ? (this.createClipPath(), this._clipElement || (this._clipElement = this.paper.add("rect"), this._clipPath.add(this._clipElement)), this._clipElement.attr({ width: t3.width, height: t3.height })) : (this.removeClipPath(), this._clipElement = void 0), this._maskRectangle = t3;
  7548. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isMeasured", { get: function() {
  7549. return this._isMeasured;
  7550. }, set: function(t3) {
  7551. (t3 = z(t3)) || (this._measuredWidth = 0, this._measuredHeight = 0), this._isMeasured != t3 && (this._isMeasured = t3, this.invalidatePosition());
  7552. }, enumerable: true, configurable: true }), e3.prototype.hitTest = function(t3) {
  7553. this.invalid && this.validate(), t3.invalid && t3.validate();
  7554. var e4 = this.pixelX + this.maxLeft, i3 = this.pixelY + this.maxTop, n3 = e4 + this.maxRight, r3 = i3 + this.maxBottom, s2 = t3.pixelX + t3.maxLeft, a2 = t3.pixelY + t3.maxTop, o3 = s2 + t3.maxRight, l2 = a2 + t3.maxBottom;
  7555. return !(s2 > n3 || o3 < e4 || a2 > r3 || l2 < i3);
  7556. }, Object.defineProperty(e3.prototype, "inited", { get: function() {
  7557. return this._inited;
  7558. }, enumerable: true, configurable: true }), e3.prototype.isReady = function() {
  7559. return this._ready;
  7560. }, Object.defineProperty(e3.prototype, "states", { get: function() {
  7561. if (!this._states) {
  7562. var t3 = new ss();
  7563. this._states = new wi(t3), this._disposers.push(this._states.events.on("insertKey", this.processState, this, false)), this._disposers.push(this._states.events.on("setKey", this.processState, this, false)), this._disposers.push(new _i(this._states)), this._disposers.push(t3);
  7564. }
  7565. return this._states;
  7566. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hiddenState", { get: function() {
  7567. if (!this.states.getKey("hidden")) {
  7568. var t3 = this.states.create("hidden");
  7569. t3.properties.opacity = 0, t3.properties.visible = false;
  7570. }
  7571. return this.states.getKey("hidden");
  7572. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultState", { get: function() {
  7573. return this.states.getKey("default") || (this.states.create("default").properties.opacity = 1), this.states.getKey("default");
  7574. }, enumerable: true, configurable: true }), e3.prototype.processState = function(t3) {
  7575. var e4 = t3.newValue;
  7576. if (e4.sprite = this, e4.name = t3.key, (this.states.hasKey("hover") || this.showTooltipOn == "hover" && (Z(this.tooltipHTML) || Z(this.tooltipText))) && (this.hoverable = true), (this.states.hasKey("down") || this.showTooltipOn == "hover" && (Z(this.tooltipHTML) || Z(this.tooltipText))) && (this.clickable = true), this.states.hasKey("focus") && (this.focusable = true), this.applyOnClones)
  7577. for (var i3 = this.clones.values, n3 = i3.length, r3 = 0; r3 < n3; ++r3) {
  7578. var s2 = i3[r3];
  7579. s2.isDisposed() || s2.states.setKey(e4.name, e4);
  7580. }
  7581. }, Object.defineProperty(e3.prototype, "animations", { get: function() {
  7582. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  7583. }, enumerable: true, configurable: true }), e3.prototype.getSvgPoint = function(t3) {
  7584. try {
  7585. var e4 = this.htmlContainer.getBoundingClientRect();
  7586. return { x: t3.x - e4.left, y: t3.y - e4.top };
  7587. } catch (e5) {
  7588. return t3;
  7589. }
  7590. }, e3.prototype.animate = function(t3, e4, i3) {
  7591. return new ys(this, t3, e4, i3).start();
  7592. }, e3.prototype.setState = function(t3, e4, i3) {
  7593. var n3;
  7594. if (t3 instanceof ss)
  7595. this.states.setKey(t3.name, t3), n3 = t3;
  7596. else if (!(n3 = this.states.getKey(t3)))
  7597. return;
  7598. if (n3.name == "hover") {
  7599. if (this.isHidden)
  7600. return;
  7601. this.isHover = true;
  7602. }
  7603. return n3.name == "hidden" ? this.isHiding = true : this.visible || this.setVisibility(n3.properties.visible || this.defaultState.properties.visible), n3.name == "active" && (this.isActive = true), tt(e4) || (e4 = n3.transitionDuration), Z(i3) || (i3 = n3.transitionEasing), this.transitTo(n3, e4, i3);
  7604. }, e3.prototype.applyCurrentState = function(t3) {
  7605. var e4 = this.setState(this.defaultState, t3);
  7606. return this.isHover && (e4 = this.setState("hover", t3)), this.isDown && this.interactions.downPointers.length && (e4 = this.setState("down", t3)), this.isFocused = this.isFocused, this.isActive && (e4 = this.setState("active", t3), this.isHover && this.states.hasKey("hoverActive") && (e4 = this.setState("hoverActive", t3))), e4;
  7607. }, e3.prototype.transitTo = function(t3, e4, i3) {
  7608. var n3, r3 = this, s2 = [];
  7609. if (Ne(t3.allValues, function(t4, e5) {
  7610. var i4 = r3[t4];
  7611. if (e5 != i4 && r3.defaultState.properties[t4] == null && (r3.defaultState.properties[t4] = i4), e5 != "__unset") {
  7612. var n4 = { from: i4, to: e5, property: t4 };
  7613. s2.push(n4);
  7614. }
  7615. }), s2.length > 0 && ((n3 = this.animate(s2, e4, i3)) && !n3.isFinished() ? this._disposers.push(n3.events.on("animationended", function() {
  7616. r3.dispatchImmediately("transitionended");
  7617. })) : this.dispatchImmediately("transitionended")), t3.filters.length > 0) {
  7618. var a2 = [];
  7619. ti(t3.filters.iterator(), function(t4) {
  7620. var n4 = t4.clone();
  7621. a2.push(n4);
  7622. var s3 = [];
  7623. ti(r3.filters.iterator(), function(t5) {
  7624. t5.className == n4.className && (pi(r3.defaultState.filters.iterator(), function(t6) {
  7625. return t6.className === n4.className;
  7626. }) || r3.defaultState.filters.push(t5), Ne(n4.properties, function(e5, i4) {
  7627. var n5 = t5.properties[e5];
  7628. n5 != i4 && s3.push({ property: e5, from: n5, to: i4 });
  7629. }));
  7630. }), n4.animate(s3, e4, i3);
  7631. }), this.filters.clear(), this.filters.pushAll(a2);
  7632. }
  7633. return n3;
  7634. }, e3.prototype.isInTransition = function() {
  7635. return this.animations.length > 0;
  7636. }, Object.defineProperty(e3.prototype, "isHover", { get: function() {
  7637. return !!this.isInteractive() && this.interactions.isHover;
  7638. }, set: function(t3) {
  7639. (t3 = z(t3)) !== this.isHover && this.isInteractive() && (this.interactions.isHover = t3, t3 ? this.handleOver() : (this.interactions.isRealHover = false, this.handleOut()));
  7640. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDragged", { get: function() {
  7641. return this._isDragged;
  7642. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isResized", { get: function() {
  7643. return this._isResized;
  7644. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDown", { get: function() {
  7645. return !!this.isInteractive() && this.interactions.isDown;
  7646. }, set: function(t3) {
  7647. t3 = z(t3), this.isInteractive() && this.isDown != t3 && (this.interactions.isDown = t3, t3 ? this.handleDown() : this.handleUp());
  7648. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isFocused", { get: function() {
  7649. return !!this.isInteractive() && this.interactions.isFocused;
  7650. }, set: function(t3) {
  7651. t3 = z(t3), this.focusable && this.isFocused != t3 && this.isInteractive() && (this.interactions.isFocused = t3, t3 === true ? this.handleFocus() : this.handleBlur());
  7652. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isActive", { get: function() {
  7653. return this._isActive;
  7654. }, set: function(t3) {
  7655. this.setActive(t3);
  7656. }, enumerable: true, configurable: true }), e3.prototype.setActive = function(t3) {
  7657. t3 = z(t3), this._isActive !== t3 && (this._isActive = t3, t3 && this.states.hasKey("active") ? (this.setState("active"), this.isHover && this.states.hasKey("hoverActive") && this.setState("hoverActive")) : this.applyCurrentState(), this.dispatchImmediately("toggled"));
  7658. }, Object.defineProperty(e3.prototype, "disabled", { get: function() {
  7659. var t3 = this.getPropertyValue("disabled");
  7660. return Z(t3) ? t3 : this.virtualParent ? this.virtualParent.disabled : !!this._parent && this._parent.disabled;
  7661. }, set: function(t3) {
  7662. this.setDisabled(t3);
  7663. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(t3) {
  7664. if (t3 = z(t3), this.getPropertyValue("disabled") != t3) {
  7665. if (this.setPropertyValue("disabled", t3, true), t3)
  7666. this.parent = this._parent, this.removeFromInvalids(), this.group.attr({ display: "none" }), this.dispatch("disabled");
  7667. else {
  7668. if (this._parent) {
  7669. var e4 = this._parent.element;
  7670. e4.hasChild(this.group) || e4.add(this.group);
  7671. }
  7672. this instanceof $a ? (this.deepInvalidate(), this._background && this._background.invalidate()) : this.invalidate(), this.__disabled || this.removeSVGAttribute("display"), this.dispatch("enabled");
  7673. }
  7674. return this.dispatch("transformed"), Qa.requestFrame(), true;
  7675. }
  7676. return false;
  7677. }, Object.defineProperty(e3.prototype, "__disabled", { get: function() {
  7678. return this._internalDisabled;
  7679. }, set: function(t3) {
  7680. this._internalDisabled != t3 && (this._internalDisabled = t3, this._updateDisabled = true, this.invalidatePosition(), t3 || this.invalidate());
  7681. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "numberFormatter", { get: function() {
  7682. return this._numberFormatter ? this._numberFormatter : this.virtualParent ? this.virtualParent.numberFormatter : this._parent ? this._parent.numberFormatter : (this._numberFormatter = new Fa(), this._numberFormatter.language = this.language, this.numberFormatter);
  7683. }, set: function(t3) {
  7684. this._numberFormatter = t3, this._numberFormatter.language = this.language;
  7685. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFormatter", { get: function() {
  7686. return this._dateFormatter ? this._dateFormatter : this.virtualParent ? this.virtualParent.dateFormatter : this._parent ? this._parent.dateFormatter : (this._dateFormatter = new Ma(), this._dateFormatter.language = this.language, this.dateFormatter);
  7687. }, set: function(t3) {
  7688. this._dateFormatter = t3, this._dateFormatter.language = this.language;
  7689. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "durationFormatter", { get: function() {
  7690. return this._durationFormatter ? this._durationFormatter : this.virtualParent ? this.virtualParent.durationFormatter : this._parent ? this._parent.durationFormatter : (this._durationFormatter = new La(), this._durationFormatter.language = this.language, this.durationFormatter);
  7691. }, set: function(t3) {
  7692. this._durationFormatter = t3, this._durationFormatter.language = this.language;
  7693. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "language", { get: function() {
  7694. var t3 = this._language.get();
  7695. return t3 || (this.virtualParent ? this.virtualParent.language : this._parent ? this._parent.language : (t3 = new Ta(), this.language = t3, t3));
  7696. }, set: function(t3) {
  7697. var e4 = this;
  7698. this._language.get() !== t3 && this._language.set(t3, t3.events.on("localechanged", function(t4) {
  7699. if (e4._numberFormatter && (e4._numberFormatter.language = e4.language), e4._dateFormatter && (e4._dateFormatter.language = e4.language), e4._durationFormatter && (e4._durationFormatter.language = e4.language), e4._exporting.get()) {
  7700. var i3 = e4._exporting.get();
  7701. i3.numberFormatter.language = e4.language, i3.dateFormatter.language = e4.language, i3.durationFormatter.language = e4.language, i3.language = e4.language;
  7702. }
  7703. e4 instanceof $a && e4.deepInvalidate();
  7704. }));
  7705. }, enumerable: true, configurable: true }), e3.prototype.populateString = function(t3, e4) {
  7706. if (Z(t3)) {
  7707. t3 = X(t3);
  7708. var i3 = (t3 = Va().escape(t3)).match(/\{([^}]+)\}/g), n3 = void 0;
  7709. if (i3)
  7710. for (n3 = 0; n3 < i3.length; n3++) {
  7711. var r3 = i3[n3].replace(/\{([^}]+)\}/, "$1"), s2 = this.getTagValue(r3, "", e4);
  7712. Z(s2) || (s2 = ""), t3 = t3.split(i3[n3]).join(s2);
  7713. }
  7714. t3 = Va().unescape(t3);
  7715. } else
  7716. t3 = "";
  7717. return this._adapterO ? this._adapterO.apply("populateString", t3) : t3;
  7718. }, e3.prototype.getTagValue = function(t3, e4, i3) {
  7719. var n3;
  7720. Z(i3) || (i3 = this.dataItem);
  7721. for (var r3, s2 = [], a2 = /([^.]+)\(([^)]*)\)|([^.]+)/g; (r3 = a2.exec(t3)) !== null; )
  7722. if (r3[3])
  7723. s2.push({ prop: r3[3] });
  7724. else {
  7725. var o3 = [];
  7726. if (Wn(r3[2]) != "")
  7727. for (var l2 = /'([^']*)'|"([^"]*)"|([0-9\-]+)/g, h2 = void 0; (h2 = l2.exec(r3[2])) !== null; )
  7728. o3.push(h2[1] || h2[2] || h2[3]);
  7729. s2.push({ method: r3[1], params: o3 });
  7730. }
  7731. if (i3) {
  7732. Z(n3 = this.getTagValueFromObject(s2, i3.values)) && !et(n3) || (n3 = this.getTagValueFromObject(s2, i3));
  7733. var p2 = i3.dataContext;
  7734. !Z(n3) && p2 && (Z(n3 = this.getTagValueFromObject(s2, i3.dataContext)) || (n3 = this.getTagValueFromObject([{ prop: t3 }], p2)), !Z(n3) && p2.dataContext && (n3 = this.getTagValueFromObject(s2, p2.dataContext))), !Z(n3) && i3.component && i3.component.dataItem !== i3 && (n3 = i3.component.getTagValue(t3, e4));
  7735. }
  7736. return Z(n3) || (n3 = this.getTagValueFromObject(s2, this.populateStringFrom || this)), !Z(n3) && this._parent && (n3 = this._parent.getTagValue(t3, e4)), n3;
  7737. }, e3.prototype.getTagValueFromObject = function(t3, e4, i3) {
  7738. for (var n3 = e4, r3 = false, s2 = 0, a2 = t3.length; s2 < a2; s2++) {
  7739. var o3 = t3[s2];
  7740. if (o3.prop) {
  7741. if (!Z(n3 = n3[o3.prop]))
  7742. return;
  7743. } else
  7744. switch (o3.method) {
  7745. case "formatNumber":
  7746. var l2 = tr(n3);
  7747. Z(l2) && (n3 = this.numberFormatter.format(l2, i3 || o3.params[0] || void 0), r3 = true);
  7748. break;
  7749. case "formatDate":
  7750. var h2 = void 0;
  7751. if (!J(h2 = Q(n3) ? this.dateFormatter.parse(n3) : Qn(n3)) || M(h2.getTime()))
  7752. return;
  7753. Z(h2) && (n3 = this.dateFormatter.format(h2, i3 || o3.params[0] || void 0), r3 = true);
  7754. break;
  7755. case "formatDuration":
  7756. var p2 = tr(n3);
  7757. Z(p2) && (n3 = this.durationFormatter.format(p2, i3 || o3.params[0] || void 0, o3.params[1] || void 0), r3 = true);
  7758. break;
  7759. case "urlEncode":
  7760. case "encodeURIComponent":
  7761. n3 = encodeURIComponent(n3);
  7762. break;
  7763. default:
  7764. n3[o3.method] && n3[o3.method].apply(this, o3.params);
  7765. }
  7766. }
  7767. if (!r3) {
  7768. var u2 = [{ method: "", params: i3 }];
  7769. if (Z(i3)) {
  7770. var d2 = Kn(i3);
  7771. d2 === xn ? u2[0].method = "formatNumber" : d2 === _n ? u2[0].method = "formatDate" : d2 === Pn && (u2[0].method = "formatDuration");
  7772. } else
  7773. tt(n3) ? (u2[0].method = "formatNumber", u2[0].params = "") : J(n3) && (u2[0].method = "formatDate", u2[0].params = "");
  7774. u2[0].method && (n3 = this.getTagValueFromObject(u2, n3));
  7775. }
  7776. return n3;
  7777. }, Object.defineProperty(e3.prototype, "dataItem", { get: function() {
  7778. if (!this._dataItem) {
  7779. if (this.virtualParent)
  7780. return this.virtualParent.dataItem;
  7781. if (this._parent)
  7782. return this._parent.dataItem;
  7783. }
  7784. return this._dataItem;
  7785. }, set: function(t3) {
  7786. this.setDataItem(t3);
  7787. }, enumerable: true, configurable: true }), e3.prototype.setDataItem = function(t3) {
  7788. var e4 = this;
  7789. if (this._dataItem != t3) {
  7790. if (this._dataItem = t3, t3) {
  7791. if (this.configField) {
  7792. var i3 = t3.dataContext;
  7793. i3 && (this.config = i3[this.configField], !this.config && i3.dataContext && (this.config = i3.dataContext[this.configField]));
  7794. }
  7795. var n3 = t3.dataContext;
  7796. if (n3) {
  7797. var r3 = n3.dataContext;
  7798. Ne(this.propertyFields, function(t4, i4) {
  7799. if (Z(n3[i4]))
  7800. e4[t4] = n3[i4];
  7801. else if (r3) {
  7802. var s2 = r3[i4];
  7803. Z(s2) && (e4[t4] = s2);
  7804. }
  7805. });
  7806. }
  7807. }
  7808. this.invalidate();
  7809. }
  7810. }, e3.prototype.getPropertyValue = function(t3) {
  7811. var e4 = this.properties[t3];
  7812. return this._isTemplate || (this._adapterO && (e4 = this._adapterO.apply(t3, e4)), e4 = Xi.applyAll(this, t3, e4)), e4;
  7813. }, e3.prototype.setColorProperty = function(t3, e4, i3) {
  7814. var n3 = this.properties[t3];
  7815. return !(e4 instanceof un && n3 instanceof un && e4.toString() == n3.toString()) && this.setPropertyValue(t3, e4, i3);
  7816. }, e3.prototype.setPercentProperty = function(t3, e4, i3, n3, r3, s2) {
  7817. if (tt(e4 = K(e4)))
  7818. return tt(r3) && (e4 = lt(e4, r3, s2)), this.setPropertyValue(t3, e4, i3, n3);
  7819. var a2 = this.properties[t3];
  7820. return !(e4 instanceof A && a2 instanceof A && e4.value == a2.value) && this.setPropertyValue(t3, e4, i3, n3);
  7821. }, e3.prototype.setPropertyValue = function(t3, e4, i3, n3) {
  7822. if (this.properties[t3] !== e4 && !this.isDisposed()) {
  7823. if (this.properties[t3] = e4, this.events.isEnabled("propertychanged")) {
  7824. var r3 = { type: "propertychanged", target: this, property: t3 };
  7825. this.events.dispatchImmediately("propertychanged", r3);
  7826. }
  7827. if (i3 && this.invalidate(), n3 && this.invalidatePosition(), this.applyOnClones)
  7828. for (var s2 = this.clones.values, a2 = s2.length, o3 = 0; o3 < a2; ++o3) {
  7829. var l2 = s2[o3];
  7830. l2.isDisposed() || (l2[t3] = e4);
  7831. }
  7832. return true;
  7833. }
  7834. return false;
  7835. }, e3.prototype.bind = function(t3, e4, i3, n3) {
  7836. var r3 = this;
  7837. i3 === void 0 && (i3 = t3), Z(this._bindings[t3]) && this._bindings[t3].dispose(), this[t3] = e4[i3], this._bindings[t3] = e4.events.on("propertychanged", function(s2) {
  7838. if (s2.property === i3) {
  7839. var a2 = e4[i3];
  7840. n3 && (a2 = n3(a2)), r3[t3] = a2;
  7841. }
  7842. });
  7843. }, e3.prototype.observe = function(t3, e4, i3, n3) {
  7844. var r3 = this;
  7845. return new me(zt(se(t3), function(t4) {
  7846. return r3.events.on("propertychanged", function(n4) {
  7847. n4.property === t4 && e4.call(i3, n4);
  7848. }, i3, n3);
  7849. }));
  7850. }, e3.prototype.applyAccessibility = function() {
  7851. var t3 = this.readerTitle, e4 = this.readerDescription, i3 = this.role, n3 = this.readerHidden, r3 = this.readerChecked, s2 = this.readerControls, a2 = this.readerLive, o3 = this.readerOrientation, l2 = this.readerValueNow, h2 = this.readerValueText, p2 = [], u2 = [], d2 = this.readerLabelledBy;
  7852. d2 && p2.push(d2);
  7853. var c2 = this.readerDescribedBy;
  7854. if (c2 && u2.push(c2), t3)
  7855. if (p2.length || this.showSystemTooltip) {
  7856. var f2 = this.titleElement, g2 = this.uid + "-title";
  7857. f2.node.textContent != t3 && (f2.node.textContent = t3, f2.attr({ id: g2 })), p2.push(g2);
  7858. } else
  7859. this._titleElement && (this.group.removeElement(this._titleElement), this._titleElement = void 0), this.setSVGAttribute({ "aria-label": t3 });
  7860. else
  7861. this.removeSVGAttribute("aria-label"), this._titleElement && (this.group.removeElement(this._titleElement), this._titleElement = void 0);
  7862. if (e4) {
  7863. var y2 = this.descriptionElement, m2 = this.uid + "-description";
  7864. y2.node.textContent != e4 && (y2.node.textContent = e4, y2.attr({ id: m2 })), u2.push(m2);
  7865. } else
  7866. this._descriptionElement && (this.group.removeElement(this._descriptionElement), this._descriptionElement = void 0);
  7867. p2.length ? this.setSVGAttribute({ "aria-labelledby": p2.join(" ") }) : this.removeSVGAttribute("aria-labelledby"), u2.length ? this.setSVGAttribute({ "aria-describedby": u2.join(" ") }) : this.removeSVGAttribute("aria-describedby"), i3 ? this.setSVGAttribute({ role: i3 }) : this.removeSVGAttribute("role"), n3 ? this.setSVGAttribute({ "aria-hidden": "true" }) : this.removeSVGAttribute("aria-hidden"), r3 ? this.setSVGAttribute({ "aria-checked": "true" }) : r3 === false ? this.setSVGAttribute({ "aria-checked": "false" }) : this.removeSVGAttribute("aria-checked"), s2 ? this.setSVGAttribute({ "aria-controls": s2 }) : this.removeSVGAttribute("aria-controls"), a2 ? this.setSVGAttribute({ "aria-live": a2 }) : this.removeSVGAttribute("aria-live"), o3 ? this.setSVGAttribute({ "aria-orientation": o3 }) : this.removeSVGAttribute("aria-orientation"), l2 ? this.setSVGAttribute({ "aria-valuenow": l2 }) : this.removeSVGAttribute("aria-valuenow"), h2 ? this.setSVGAttribute({ "aria-valuetext": h2 }) : this.removeSVGAttribute("aria-valuetext");
  7868. }, Object.defineProperty(e3.prototype, "readerTitle", { get: function() {
  7869. var t3 = this.getPropertyValue("readerTitle");
  7870. return Z(t3) && this.dataItem ? this.populateString(t3) : t3;
  7871. }, set: function(t3) {
  7872. t3 = G(t3), this.setPropertyValue("readerTitle", t3) && this.applyAccessibility();
  7873. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerDescription", { get: function() {
  7874. var t3 = this.getPropertyValue("readerDescription");
  7875. return Z(t3) && this.dataItem ? this.populateString(t3) : this.getPropertyValue("readerDescription");
  7876. }, set: function(t3) {
  7877. t3 = G(t3), this.setPropertyValue("readerDescription", t3) && this.applyAccessibility();
  7878. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "role", { get: function() {
  7879. return this.getPropertyValue("role");
  7880. }, set: function(t3) {
  7881. t3 = G(t3), this.setPropertyValue("role", t3) && (this.applyAccessibility(), t3 == "slider" && (this.setSVGAttribute({ "aria-valuemin": "0" }), this.setSVGAttribute({ "aria-valuemax": "100" })));
  7882. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerHidden", { get: function() {
  7883. return this.getPropertyValue("readerHidden");
  7884. }, set: function(t3) {
  7885. t3 = z(t3), this.setPropertyValue("readerHidden", t3) && this.applyAccessibility();
  7886. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerChecked", { get: function() {
  7887. return this.getPropertyValue("readerChecked");
  7888. }, set: function(t3) {
  7889. t3 = z(t3), this.setPropertyValue("readerChecked", t3) && this.applyAccessibility();
  7890. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerControls", { get: function() {
  7891. return this.getPropertyValue("readerControls");
  7892. }, set: function(t3) {
  7893. t3 = G(t3), this.setPropertyValue("readerControls", t3) && this.applyAccessibility();
  7894. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerLive", { get: function() {
  7895. return this.getPropertyValue("readerLive");
  7896. }, set: function(t3) {
  7897. t3 = G(t3), this.setPropertyValue("readerLive", t3) && this.applyAccessibility();
  7898. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerLabelledBy", { get: function() {
  7899. return this.getPropertyValue("readerLabelledBy");
  7900. }, set: function(t3) {
  7901. t3 = G(t3), this.setPropertyValue("readerLabelledBy", t3) && this.applyAccessibility();
  7902. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerDescribedBy", { get: function() {
  7903. return this.getPropertyValue("readerDescribedBy");
  7904. }, set: function(t3) {
  7905. t3 = G(t3), this.setPropertyValue("readerDescribedBy", t3) && this.applyAccessibility();
  7906. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerOrientation", { get: function() {
  7907. return this.getPropertyValue("readerOrientation");
  7908. }, set: function(t3) {
  7909. t3 = G(t3), this.setPropertyValue("readerOrientation", t3) && this.applyAccessibility();
  7910. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerValueNow", { get: function() {
  7911. return this.getPropertyValue("readerValueNow");
  7912. }, set: function(t3) {
  7913. t3 = G(t3), this.setPropertyValue("readerValueNow", t3) && this.applyAccessibility();
  7914. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "readerValueText", { get: function() {
  7915. return this.getPropertyValue("readerValueText");
  7916. }, set: function(t3) {
  7917. t3 = G(t3), this.setPropertyValue("readerValueText", t3) && this.applyAccessibility();
  7918. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keyboardOptions", { get: function() {
  7919. if (!this.interactions.keyboardOptions) {
  7920. if (this.virtualParent)
  7921. return this.virtualParent.keyboardOptions;
  7922. if (this._parent)
  7923. return this._parent.keyboardOptions;
  7924. }
  7925. return this.interactions.keyboardOptions;
  7926. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mouseOptions", { get: function() {
  7927. if (!this.interactions.mouseOptions) {
  7928. if (this.virtualParent)
  7929. return this.virtualParent.mouseOptions;
  7930. if (this._parent)
  7931. return this._parent.mouseOptions;
  7932. }
  7933. return this.interactions.mouseOptions;
  7934. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "interactions", { get: function() {
  7935. if (!this._interaction) {
  7936. var t3 = ua().getInteraction(this.dom);
  7937. this._interaction = t3, this._interaction.clickable = this.clickable, this._interaction.hoverable = this.hoverable, this._interaction.trackable = this.trackable, this._interaction.draggable = this.draggable, this._interaction.swipeable = this.swipeable, this._interaction.resizable = this.resizable, this._interaction.wheelable = this.wheelable, this._interaction.contextMenuDisabled = this.contextMenuDisabled, this._interaction.inert = this.inert, this._interaction.sprite = this, this._disposers.push(this._interaction);
  7938. }
  7939. return this._interaction;
  7940. }, enumerable: true, configurable: true }), e3.prototype.isInteractive = function() {
  7941. return !!this._interaction;
  7942. }, Object.defineProperty(e3.prototype, "focusable", { get: function() {
  7943. return this.getPropertyValue("focusable");
  7944. }, set: function(t3) {
  7945. var e4 = this;
  7946. t3 = z(t3), this.setPropertyValue("focusable", t3) && (t3 || this.isInteractive()) && (this.interactions.focusable = t3, t3 ? (this.setSVGAttribute({ focusable: t3 }), this._tabindex || (this.tabindex = 0)) : (this.removeSVGAttribute("focusable"), this.tabindex = void 0), this.interactions.setEventDisposer("sprite-focusable", t3, function() {
  7947. return new me([e4.events.on("blur", e4.handleBlur, e4, false), e4.events.on("focus", e4.handleFocus, e4, false)]);
  7948. }));
  7949. }, enumerable: true, configurable: true }), e3.prototype.handleFocus = function(t3) {
  7950. this.focusable && (this.topParent && (this.topParent.hasFocused = true, this.topParent.focusedElement = this), this.focusFilter && this.filters.push(this.focusFilter), this.hoverOnFocus && (this.isHover = true, this.handleOver()));
  7951. }, e3.prototype.handleBlur = function(t3) {
  7952. this.focusable && (this.topParent && (this.topParent.hasFocused = false, this.topParent.focusedElement = void 0), this.focusFilter && this.filters.removeValue(this.focusFilter), this.hoverOnFocus && (this.isHover = false, this.handleOut()));
  7953. }, Object.defineProperty(e3.prototype, "focusFilter", { get: function() {
  7954. return this._focusFilter || (this.virtualParent ? this.virtualParent.focusFilter : this._parent ? this._parent.focusFilter : void 0);
  7955. }, set: function(t3) {
  7956. this._focusFilter = t3;
  7957. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverOnFocus", { get: function() {
  7958. return this.getPropertyValue("hoverOnFocus");
  7959. }, set: function(t3) {
  7960. t3 !== this.hoverOnFocus && this.setPropertyValue("hoverOnFocus", t3);
  7961. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tabindex", { get: function() {
  7962. var t3 = this._tabindex;
  7963. return t3 != null ? t3 : this.virtualParent ? this.virtualParent.tabindex : this._parent ? this._parent.tabindex : void 0;
  7964. }, set: function(t3) {
  7965. t3 = U(t3), this.setPropertyValue("tabindex", t3) && tt(t3) && (this.interactions.tabindex = t3, this.setSVGAttribute({ tabindex: t3 }), this._tabindex = t3, this.focusable = t3 > -1 || void 0);
  7966. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inertiaOptions", { get: function() {
  7967. return !this.interactions.inertiaOptions && this._parent ? this._parent.inertiaOptions : this.interactions.inertiaOptions;
  7968. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "draggable", { get: function() {
  7969. return this.getPropertyValue("draggable");
  7970. }, set: function(t3) {
  7971. var e4 = this;
  7972. t3 = z(t3), this.setPropertyValue("draggable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.draggable = t3, this.interactions.setEventDisposer("sprite-draggable", t3, function() {
  7973. return new me([e4.events.on("down", e4.handleDown, e4, false), e4.events.on("dragstart", e4.handleDragStart, e4, false), e4.events.on("drag", e4.handleDragMove, e4, false), e4.events.on("dragstop", e4.handleDragStop, e4, false)]);
  7974. }));
  7975. }, enumerable: true, configurable: true }), e3.prototype.handleDragStart = function(t3) {
  7976. this.interactions.isTouchProtected && t3.touch || (this.interactions.originalPosition = { x: this.pixelX, y: this.pixelY }, this._isDragged = true, this.hideTooltip(0));
  7977. }, e3.prototype.dragStart = function(t3) {
  7978. this._isDragged = true, ua().dragStart(this.interactions, t3);
  7979. }, e3.prototype.handleDragStop = function(t3) {
  7980. this.interactions.isTouchProtected && t3.touch || (this._isDragged = false, this.showTooltip(), this.interactions.originalPosition = void 0);
  7981. }, e3.prototype.dragStop = function(t3, e4) {
  7982. this._isDragged = false, ua().dragStop(this.interactions, t3, e4);
  7983. }, e3.prototype.handleDragMove = function(t3) {
  7984. if (!this.interactions.isTouchProtected || !t3.touch) {
  7985. var e4 = this.interactions.originalPosition;
  7986. if (e4 && this._isDragged) {
  7987. var i3 = this._parent.globalScale * this.svgContainer.cssScale;
  7988. this.moveTo({ x: e4.x + t3.shift.x / i3, y: e4.y + t3.shift.y / i3 }, void 0, void 0, true);
  7989. }
  7990. this.dispatchImmediately("dragged", t3);
  7991. }
  7992. }, Object.defineProperty(e3.prototype, "inert", { get: function() {
  7993. return this.getPropertyValue("inert");
  7994. }, set: function(t3) {
  7995. t3 = z(t3), this.setPropertyValue("inert", t3) && (t3 || this.isInteractive()) && (this.interactions.inert = t3);
  7996. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverOptions", { get: function() {
  7997. if (!this.interactions.hoverOptions) {
  7998. if (this.virtualParent)
  7999. return this.virtualParent.hoverOptions;
  8000. if (this._parent)
  8001. return this._parent.hoverOptions;
  8002. }
  8003. return this.interactions.hoverOptions;
  8004. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hoverable", { get: function() {
  8005. return this.getPropertyValue("hoverable");
  8006. }, set: function(t3) {
  8007. var e4 = this;
  8008. t3 = z(t3), this.setPropertyValue("hoverable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.hoverable = t3, this.interactions.setEventDisposer("sprite-hoverable", t3, function() {
  8009. return new me([e4.events.on("over", e4.handleOver, e4, false), e4.events.on("out", e4.handleOut, e4, false)]);
  8010. }));
  8011. }, enumerable: true, configurable: true }), e3.prototype.handleOver = function(t3) {
  8012. if (this._outTimeout && this._outTimeout.dispose(), this.isHover) {
  8013. this.states.hasKey("hover") && (this.isHidden || this.applyCurrentState());
  8014. var e4 = void 0;
  8015. t3 && t3.pointer && (e4 = gr(t3.pointer.point, this.svgContainer.SVGContainer, this.svgContainer.cssScale)), this.showTooltipOn == "hover" && this.showTooltip(e4);
  8016. } else
  8017. this.showTooltipOn == "hover" && this.hideTooltip(), !this.isHidden && this.states.hasKey("hover") && this.applyCurrentState();
  8018. }, e3.prototype.handleOut = function(t3) {
  8019. var e4 = this;
  8020. this.tooltip && this.tooltip.targetSprite == this && this.tooltip.keepTargetHover ? this._outTimeout = this.setTimeout(function() {
  8021. e4.tooltip.isHover || (e4.tooltip.targetSprite == e4 && e4.hideTooltip(), e4._outTimeout = e4.setTimeout(e4.handleOutReal.bind(e4), e4.rollOutDelay));
  8022. }, 10) : (this.showTooltipOn == "hover" && this.hideTooltip(), this._outTimeout = this.setTimeout(this.handleOutReal.bind(this), this.rollOutDelay));
  8023. }, e3.prototype.handleOutReal = function() {
  8024. this.isHidden || this.isHiding || !this.states.hasKey("hover") || this.applyCurrentState();
  8025. }, Object.defineProperty(e3.prototype, "hitOptions", { get: function() {
  8026. if (!this.interactions.hitOptions) {
  8027. if (this.virtualParent)
  8028. return this.virtualParent.hitOptions;
  8029. if (this._parent)
  8030. return this._parent.hitOptions;
  8031. }
  8032. return this.interactions.hitOptions;
  8033. }, enumerable: true, configurable: true }), e3.prototype.handleDown = function(t3) {
  8034. this.interactions.downPointers.length === 1 && (this.interactions.originalPosition = { x: this.pixelX, y: this.pixelY }, this.interactions.originalAngle = this.rotation, this.interactions.originalScale = this.scale, this.states.hasKey("down") && this.setState("down"));
  8035. }, e3.prototype.handleUp = function(t3) {
  8036. var e4 = this;
  8037. this._isResized = false, this.states.hasKey("down") && this.applyCurrentState(), this.showTooltipOn == "hit" && (this.updateTooltipPosition(t3.pointer ? t3.pointer.point : void 0), this._disposers.push(Ii.events.once("exitframe", function() {
  8038. e4.showTooltip();
  8039. })), this._disposers.push(ua().body.events.once("down", function(t4) {
  8040. e4.hideTooltip();
  8041. })));
  8042. }, Object.defineProperty(e3.prototype, "clickable", { get: function() {
  8043. return this.getPropertyValue("clickable");
  8044. }, set: function(t3) {
  8045. var e4 = this;
  8046. t3 = z(t3), this.setPropertyValue("clickable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.clickable = t3, this.interactions.setEventDisposer("sprite-clickable", t3, function() {
  8047. return new me([e4.events.on("down", e4.handleDown, e4, false), e4.events.on("up", e4.handleUp, e4, false)]);
  8048. }));
  8049. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "togglable", { get: function() {
  8050. return this.getPropertyValue("togglable");
  8051. }, set: function(t3) {
  8052. var e4 = this;
  8053. t3 = z(t3), this.setPropertyValue("togglable", t3) && (t3 || this.isInteractive()) && this.interactions.setEventDisposer("sprite-togglable", t3, function() {
  8054. return e4.events.on("hit", e4.handleToggle, e4, false);
  8055. });
  8056. }, enumerable: true, configurable: true }), e3.prototype.handleToggle = function(t3) {
  8057. this.isActive = !this.isActive;
  8058. }, Object.defineProperty(e3.prototype, "contextMenuDisabled", { get: function() {
  8059. return this.getPropertyValue("contextMenuDisabled");
  8060. }, set: function(t3) {
  8061. t3 = z(t3), this.setPropertyValue("contextMenuDisabled", t3) && (this.interactions.contextMenuDisabled = t3);
  8062. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "url", { get: function() {
  8063. return this.getPropertyValue("url");
  8064. }, set: function(t3) {
  8065. this.setPropertyValue("url", t3) && (this._urlDisposer && this._urlDisposer.dispose(), An(t3) && (this._urlDisposer = this.events.on("hit", this.urlHandler, this, false), this.clickable = true, this.cursorOverStyle = Ia.pointer));
  8066. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "baseId", { get: function() {
  8067. return !this._baseId && this._parent && (this.baseId = this._parent.baseId), this._baseId;
  8068. }, set: function(t3) {
  8069. this.setBaseId(t3);
  8070. }, enumerable: true, configurable: true }), e3.prototype.setBaseId = function(t3) {
  8071. t3 != this._baseId && (this.invalid && (this.invalid = false, Ii.removeFromInvalidSprites(this), this.invalidate()), this._baseId = t3);
  8072. }, Object.defineProperty(e3.prototype, "baseSprite", { get: function() {
  8073. return this.isBaseSprite ? this : this._parent ? this._parent.baseSprite : void 0;
  8074. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "urlTarget", { get: function() {
  8075. return this.getPropertyValue("urlTarget");
  8076. }, set: function(t3) {
  8077. this.setPropertyValue("urlTarget", t3);
  8078. }, enumerable: true, configurable: true }), e3.prototype.urlHandler = function(t3) {
  8079. if (An(this.url)) {
  8080. var e4 = this.populateString(this.url);
  8081. this.urlTarget === "_self" ? window.location.href = e4 : window.open(e4, this.urlTarget);
  8082. }
  8083. }, Object.defineProperty(e3.prototype, "swipeOptions", { get: function() {
  8084. if (!this.interactions.swipeOptions) {
  8085. if (this.virtualParent)
  8086. return this.virtualParent.swipeOptions;
  8087. if (this._parent)
  8088. return this._parent.swipeOptions;
  8089. }
  8090. return this.interactions.swipeOptions;
  8091. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "swipeable", { get: function() {
  8092. return this.getPropertyValue("swipeable");
  8093. }, set: function(t3) {
  8094. t3 = z(t3), this.setPropertyValue("swipeable", t3) && (this.applyCursorStyle(), (t3 || this.isInteractive()) && (this.interactions.swipeable = t3));
  8095. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "trackable", { get: function() {
  8096. return this.getPropertyValue("trackable");
  8097. }, set: function(t3) {
  8098. t3 = z(t3), this.setPropertyValue("trackable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.trackable = t3);
  8099. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wheelable", { get: function() {
  8100. return this.getPropertyValue("wheelable");
  8101. }, set: function(t3) {
  8102. this.setPropertyValue("wheelable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.wheelable = t3);
  8103. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "resizable", { get: function() {
  8104. return this.getPropertyValue("resizable");
  8105. }, set: function(t3) {
  8106. var e4 = this;
  8107. t3 = z(t3), this.setPropertyValue("resizable", t3) && (t3 || this.isInteractive()) && (this.applyCursorStyle(), this.interactions.resizable = t3, this.interactions.setEventDisposer("sprite-resizable", t3, function() {
  8108. return new me([e4.events.on("down", e4.handleDown, e4, false), e4.events.on("resize", e4.handleResize, e4, false)]);
  8109. }));
  8110. }, enumerable: true, configurable: true }), e3.prototype.handleResize = function(t3) {
  8111. if ((!this.interactions.isTouchProtected || !t3.touch) && (this._isResized = true, this.scale = this.interactions.originalScale * t3.scale, this.validatePosition(), this.draggable || this.dragWhileResize)) {
  8112. this._isDragged = false;
  8113. var e4 = St(gr(t3.point1, this.htmlContainer, this.svgContainer.cssScale), gr(t3.point2, this.htmlContainer, this.svgContainer.cssScale)), i3 = mr(t3.startPoint1, this._parent), n3 = mr(t3.startPoint2, this._parent), r3 = this.interactions.originalPosition, s2 = this.interactions.originalScale;
  8114. if (r3) {
  8115. var a2 = St({ x: (i3.x - r3.x) / s2, y: (i3.y - r3.y) / s2 }, { x: (n3.x - r3.x) / s2, y: (n3.y - r3.y) / s2 }), o3 = pr(e4, this._parent);
  8116. this.moveTo({ x: o3.x - a2.x * this.scale, y: o3.y - a2.y * this.scale }, void 0, void 0, true);
  8117. }
  8118. }
  8119. }, Object.defineProperty(e3.prototype, "cursorOptions", { get: function() {
  8120. if (!this.interactions.cursorOptions) {
  8121. if (this.virtualParent)
  8122. return this.virtualParent.cursorOptions;
  8123. if (this._parent)
  8124. return this._parent.cursorOptions;
  8125. }
  8126. return this.interactions.cursorOptions;
  8127. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorOverStyle", { set: function(t3) {
  8128. this.cursorOptions.overStyle || (this.interactions.cursorOptions = { defaultStyle: this.cursorOptions.defaultStyle }), this.cursorOptions.overStyle = t3, ua().applyCursorOverStyle(this.interactions);
  8129. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorDownStyle", { set: function(t3) {
  8130. this.cursorOptions.downStyle = t3;
  8131. }, enumerable: true, configurable: true }), e3.prototype.applyCursorStyle = function() {
  8132. }, Object.defineProperty(e3.prototype, "interactionsEnabled", { get: function() {
  8133. return this.getPropertyValue("interactionsEnabled") !== false && (this.virtualParent ? this.virtualParent.interactionsEnabled : !this._parent || this._parent.interactionsEnabled);
  8134. }, set: function(t3) {
  8135. if (t3 = z(t3), this.setPropertyValue("interactionsEnabled", t3)) {
  8136. var e4 = null;
  8137. t3 ? this.group.node.style.pointerEvents = "" : e4 = "none", this.group.node.style.pointerEvents = e4;
  8138. }
  8139. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "exporting", { get: function() {
  8140. return this.getExporting();
  8141. }, set: function(t3) {
  8142. this._exporting.set(t3, t3);
  8143. }, enumerable: true, configurable: true }), e3.prototype.getExporting = function() {
  8144. var t3 = this._exporting.get();
  8145. return t3 || (!this.isStandaloneInstance && this._parent ? this._parent.exporting : ((t3 = new Ga(this.svgContainer.SVGContainer)).sprite = this, t3.language = this.language, t3.numberFormatter = this.numberFormatter, t3.dateFormatter = this.dateFormatter, t3.durationFormatter = this.durationFormatter, this._exporting.set(t3, t3), t3));
  8146. }, Object.defineProperty(e3.prototype, "exportable", { get: function() {
  8147. return this._exportable;
  8148. }, set: function(t3) {
  8149. var e4 = this.svgContainer;
  8150. this._exportable = t3, e4 && (t3 ? ee(e4.nonExportableSprites, this) : Xt(e4.nonExportableSprites, this) == -1 && e4.nonExportableSprites.push(this));
  8151. }, enumerable: true, configurable: true }), e3.prototype.modalPrefix = function(t3) {
  8152. return ls.classNamePrefix + t3;
  8153. }, Object.defineProperty(e3.prototype, "modal", { get: function() {
  8154. var t3 = this.svgContainer;
  8155. if (t3) {
  8156. var e4 = t3.modal;
  8157. return e4.adapter.has("classPrefix", this.modalPrefix) || e4.adapter.add("classPrefix", this.modalPrefix), e4;
  8158. }
  8159. }, enumerable: true, configurable: true }), e3.prototype.openModal = function(t3, e4) {
  8160. var i3 = this.svgContainer;
  8161. if (i3)
  8162. return i3.openModal(t3, e4);
  8163. }, e3.prototype.closeModal = function() {
  8164. var t3 = this.svgContainer;
  8165. t3 && t3.closeModal();
  8166. }, Object.defineProperty(e3.prototype, "popups", { get: function() {
  8167. var t3 = this.svgContainer;
  8168. if (t3) {
  8169. var e4 = t3.popups;
  8170. return e4.template.sprite = this, e4.template.adapter.has("classPrefix", this.modalPrefix) || e4.template.adapter.add("classPrefix", this.modalPrefix), e4;
  8171. }
  8172. }, enumerable: true, configurable: true }), e3.prototype.openPopup = function(t3, e4) {
  8173. var i3 = this.svgContainer;
  8174. if (i3)
  8175. return i3.openPopup(t3, e4);
  8176. }, e3.prototype.closeAllPopups = function() {
  8177. var t3 = this.svgContainer;
  8178. t3 && t3.closeAllPopups();
  8179. }, Object.defineProperty(e3.prototype, "x", { get: function() {
  8180. return this.getPropertyValue("x");
  8181. }, set: function(t3) {
  8182. this.isDragged || this.setPercentProperty("x", t3, false, true, this._positionPrecision, true);
  8183. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelX", { get: function() {
  8184. var t3 = ut(this.getPixelX(this.x), this.minX, this.maxX);
  8185. return this._adapterO ? this._adapterO.apply("pixelX", t3) : t3;
  8186. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeX", { get: function() {
  8187. return this._adapterO ? this._adapterO.apply("relativeX", this.getRelativeX(this.x)) : this.getRelativeX(this.x);
  8188. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minX", { get: function() {
  8189. return this.getPropertyValue("minX");
  8190. }, set: function(t3) {
  8191. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("minX", t3, false, true));
  8192. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxX", { get: function() {
  8193. return this.getPropertyValue("maxX");
  8194. }, set: function(t3) {
  8195. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("maxX", t3, false, true));
  8196. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y", { get: function() {
  8197. return this.getPropertyValue("y");
  8198. }, set: function(t3) {
  8199. this.isDragged || this.setPercentProperty("y", t3, false, true, this._positionPrecision, true);
  8200. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelY", { get: function() {
  8201. var t3 = ut(this.getPixelY(this.y), this.minY, this.maxY);
  8202. return this._adapterO ? this._adapterO.apply("pixelY", t3) : t3;
  8203. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeY", { get: function() {
  8204. return this._adapterO ? this._adapterO.apply("relativeY", this.getRelativeX(this.y)) : this.getRelativeX(this.y);
  8205. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minY", { get: function() {
  8206. return this.getPropertyValue("minY");
  8207. }, set: function(t3) {
  8208. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("minY", t3, false, true));
  8209. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxY", { get: function() {
  8210. return this.getPropertyValue("maxY");
  8211. }, set: function(t3) {
  8212. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("maxY", t3, false, true));
  8213. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dx", { get: function() {
  8214. return this.getPropertyValue("dx");
  8215. }, set: function(t3) {
  8216. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("dx", t3, false, true));
  8217. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dy", { get: function() {
  8218. return this.getPropertyValue("dy");
  8219. }, set: function(t3) {
  8220. tt(t3) && (t3 = lt(t3, this._positionPrecision, true), this.setPropertyValue("dy", t3, false, true));
  8221. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotation", { get: function() {
  8222. return this.getPropertyValue("rotation");
  8223. }, set: function(t3) {
  8224. tt(t3 = U(t3)) || (t3 = 0), this.setPropertyValue("rotation", t3, false, true);
  8225. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "align", { get: function() {
  8226. return this.getPropertyValue("align");
  8227. }, set: function(t3) {
  8228. t3 = G(t3), this.setPropertyValue("align", t3) && this._parent && this._parent.invalidateLayout();
  8229. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valign", { get: function() {
  8230. return this.getPropertyValue("valign");
  8231. }, set: function(t3) {
  8232. t3 = G(t3), this.setPropertyValue("valign", t3) && this._parent && this._parent.invalidateLayout();
  8233. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "horizontalCenter", { get: function() {
  8234. return this.getPropertyValue("horizontalCenter");
  8235. }, set: function(t3) {
  8236. t3 = G(t3), this.setPropertyValue("horizontalCenter", t3) && this.updateCenter();
  8237. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalCenter", { get: function() {
  8238. return this.getPropertyValue("verticalCenter");
  8239. }, set: function(t3) {
  8240. t3 = G(t3), this.setPropertyValue("verticalCenter", t3) && this.updateCenter();
  8241. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxWidth", { get: function() {
  8242. var t3 = this.getPropertyValue("maxWidth");
  8243. if (!tt(t3) && this._parent) {
  8244. var e4 = this._parent.maxWidth;
  8245. return this._parent.layout != "absolute" && this.align != "none" && this.align != null && (e4 = e4 - this.pixelMarginLeft - this.pixelMarginRight), e4;
  8246. }
  8247. return t3;
  8248. }, set: function(t3) {
  8249. this.setMaxWidth(t3);
  8250. }, enumerable: true, configurable: true }), e3.prototype.setMaxWidth = function(t3) {
  8251. var e4 = this.maxWidth, i3 = this.maxHeight;
  8252. if (this.setPropertyValue("maxWidth", t3)) {
  8253. tt(this.relativeWidth) && this.invalidate();
  8254. var n3 = { type: "maxsizechanged", target: this, previousWidth: e4, previousHeight: i3 };
  8255. this.dispatchImmediately("maxsizechanged", n3);
  8256. }
  8257. }, Object.defineProperty(e3.prototype, "maxHeight", { get: function() {
  8258. var t3 = this.getPropertyValue("maxHeight");
  8259. if (!tt(t3) && this._parent) {
  8260. var e4 = this._parent.maxHeight;
  8261. return this._parent.layout != "absolute" && this.valign != "none" && this.valign != null && (e4 = e4 - this.pixelMarginTop - this.pixelMarginBottom), e4;
  8262. }
  8263. return t3;
  8264. }, set: function(t3) {
  8265. this.setMaxHeight(t3);
  8266. }, enumerable: true, configurable: true }), e3.prototype.setMaxHeight = function(t3) {
  8267. var e4 = this.maxWidth, i3 = this.maxHeight;
  8268. if (this.setPropertyValue("maxHeight", t3)) {
  8269. tt(this.relativeHeight) && this.invalidate();
  8270. var n3 = { type: "maxsizechanged", target: this, previousWidth: e4, previousHeight: i3 };
  8271. this.dispatchImmediately("maxsizechanged", n3);
  8272. }
  8273. }, Object.defineProperty(e3.prototype, "minWidth", { get: function() {
  8274. return this.getPropertyValue("minWidth");
  8275. }, set: function(t3) {
  8276. this.setPropertyValue("minWidth", t3, true);
  8277. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minHeight", { get: function() {
  8278. return this.getPropertyValue("minHeight");
  8279. }, set: function(t3) {
  8280. this.setPropertyValue("minHeight", t3, true);
  8281. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "width", { get: function() {
  8282. return this.getPropertyValue("width");
  8283. }, set: function(t3) {
  8284. this.setPercentProperty("width", t3, true, false, this._positionPrecision, true) && (this.percentWidth = void 0, this.relativeWidth = void 0, t3 instanceof A ? (this.percentWidth = t3.percent, tt(this._pixelWidth) && (this.maxWidth = void 0), this._pixelWidth = void 0) : (this._pixelWidth = Number(t3), this.maxWidth = this._pixelWidth), this.invalidatePosition());
  8285. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  8286. return this.getPropertyValue("height");
  8287. }, set: function(t3) {
  8288. this.setPercentProperty("height", t3, true, false, this._positionPrecision, true) && (this.percentHeight = void 0, this._relativeHeight = void 0, t3 instanceof A ? (this.percentHeight = t3.percent, tt(this._pixelHeight) && (this.maxHeight = void 0), this._pixelHeight = void 0) : (this._pixelHeight = Number(t3), this.maxHeight = this._pixelHeight), this.invalidatePosition());
  8289. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelWidth", { get: function() {
  8290. var t3;
  8291. t3 = tt(this.percentWidth) ? this.maxWidth : tt(this._pixelWidth) ? this._pixelWidth : 0;
  8292. var e4 = this.minWidth;
  8293. e4 != null && t3 < e4 && (t3 = e4);
  8294. var i3 = lt(t3, this._positionPrecision, true);
  8295. return this._adapterO ? this._adapterO.apply("pixelWidth", i3) : i3;
  8296. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelHeight", { get: function() {
  8297. var t3;
  8298. t3 = tt(this.percentHeight) ? this.maxHeight : tt(this._pixelHeight) ? this._pixelHeight : 0;
  8299. var e4 = this.minHeight;
  8300. e4 != null && t3 < e4 && (t3 = e4);
  8301. var i3 = lt(t3, this._positionPrecision, true);
  8302. return this._adapterO ? this._adapterO.apply("pixelHeight", i3) : i3;
  8303. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeWidth", { get: function() {
  8304. var t3 = this._relativeWidth;
  8305. if (tt(t3))
  8306. return this._adapterO ? this._adapterO.apply("relativeWidth", t3) : t3;
  8307. }, set: function(t3) {
  8308. this._relativeWidth != t3 && (this._relativeWidth = t3);
  8309. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeHeight", { get: function() {
  8310. var t3 = this._relativeHeight;
  8311. if (tt(t3))
  8312. return this._adapterO ? this._adapterO.apply("relativeHeight", t3) : t3;
  8313. }, set: function(t3) {
  8314. this._relativeHeight != t3 && (this._relativeHeight = t3);
  8315. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "measuredWidth", { get: function() {
  8316. return this.disabled || this.__disabled ? 0 : this._adapterO ? this._adapterO.apply("measuredWidth", this._measuredWidth) : this._measuredWidth;
  8317. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "measuredHeight", { get: function() {
  8318. return this.disabled || this.__disabled ? 0 : this._adapterO ? this._adapterO.apply("measuredHeight", this._measuredHeight) : this._measuredHeight;
  8319. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outerWidth", { get: function() {
  8320. var t3 = this.pixelWidth + this.pixelMarginRight + this.pixelMarginLeft;
  8321. return this._adapterO ? this._adapterO.apply("outerWidth", t3) : t3;
  8322. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outerHeight", { get: function() {
  8323. var t3 = this.pixelHeight + this.pixelMarginTop + this.pixelMarginBottom;
  8324. return this._adapterO ? this._adapterO.apply("outerHeight", t3) : t3;
  8325. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerWidth", { get: function() {
  8326. var t3 = Math.max(0, this.pixelWidth - this.pixelPaddingRight - this.pixelPaddingLeft);
  8327. return this._adapterO ? this._adapterO.apply("innerWidth", t3) : t3;
  8328. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerHeight", { get: function() {
  8329. var t3 = Math.max(0, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom);
  8330. return this._adapterO ? this._adapterO.apply("innerHeight", t3) : t3;
  8331. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "globalScale", { get: function() {
  8332. var t3 = this.scale;
  8333. return this._parent && (t3 *= this._parent.globalScale), this._adapterO ? this._adapterO.apply("globalScale", t3) : t3;
  8334. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scale", { get: function() {
  8335. return this.getPropertyValue("scale");
  8336. }, set: function(t3) {
  8337. (t3 = U(t3)) < 0 && (t3 = 0), t3 != this.getPropertyValue("scale") && (this.setPropertyValue("scale", t3, false, true), this.handleGlobalScale());
  8338. }, enumerable: true, configurable: true }), e3.prototype.margin = function(t3, e4, i3, n3) {
  8339. return this.marginTop = t3, this.marginRight = e4, this.marginBottom = i3, this.marginLeft = n3, this;
  8340. }, Object.defineProperty(e3.prototype, "marginLeft", { get: function() {
  8341. return this.getPropertyValue("marginLeft");
  8342. }, set: function(t3) {
  8343. this.setPercentProperty("marginLeft", t3, true, true, this._positionPrecision, true);
  8344. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marginRight", { get: function() {
  8345. return this.getPropertyValue("marginRight");
  8346. }, set: function(t3) {
  8347. this.setPercentProperty("marginRight", t3, true, true, this._positionPrecision, true);
  8348. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marginTop", { get: function() {
  8349. return this.getPropertyValue("marginTop");
  8350. }, set: function(t3) {
  8351. this.setPercentProperty("marginTop", t3, true, true, this._positionPrecision, true);
  8352. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marginBottom", { get: function() {
  8353. return this.getPropertyValue("marginBottom");
  8354. }, set: function(t3) {
  8355. this.setPercentProperty("marginBottom", t3, true, true, this._positionPrecision, true);
  8356. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginRight", { get: function() {
  8357. var t3 = this.getPixelX(this.marginRight);
  8358. return this._adapterO ? this._adapterO.apply("pixelMarginRight", t3) : t3;
  8359. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginRight", { get: function() {
  8360. var t3 = this.getRelativeX(this.marginRight);
  8361. return this._adapterO ? this._adapterO.apply("relativeMarginRight", t3) : t3;
  8362. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginLeft", { get: function() {
  8363. var t3 = this.getPixelX(this.marginLeft);
  8364. return this._adapterO ? this._adapterO.apply("pixelMarginLeft", t3) : t3;
  8365. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginLeft", { get: function() {
  8366. var t3 = this.getRelativeX(this.marginLeft);
  8367. return this._adapterO ? this._adapterO.apply("relativeMarginLeft", t3) : t3;
  8368. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginTop", { get: function() {
  8369. var t3 = this.getPixelY(this.marginTop);
  8370. return this._adapterO ? this._adapterO.apply("pixelMarginTop", t3) : t3;
  8371. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginTop", { get: function() {
  8372. var t3 = this.getRelativeY(this.marginTop);
  8373. return this._adapterO ? this._adapterO.apply("relativeMarginTop", t3) : t3;
  8374. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelMarginBottom", { get: function() {
  8375. var t3 = this.getPixelY(this.marginBottom);
  8376. return this._adapterO ? this._adapterO.apply("pixelMarginBottom", t3) : t3;
  8377. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativeMarginBottom", { get: function() {
  8378. var t3 = this.getRelativeY(this.marginBottom);
  8379. return this._adapterO ? this._adapterO.apply("relativeMarginBottom", t3) : t3;
  8380. }, enumerable: true, configurable: true }), e3.prototype.padding = function(t3, e4, i3, n3) {
  8381. return this.paddingTop = t3, this.paddingRight = e4, this.paddingBottom = i3, this.paddingLeft = n3, this;
  8382. }, Object.defineProperty(e3.prototype, "paddingLeft", { get: function() {
  8383. return this.getPropertyValue("paddingLeft");
  8384. }, set: function(t3) {
  8385. this.setPercentProperty("paddingLeft", t3, true, true, this._positionPrecision, true);
  8386. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paddingRight", { get: function() {
  8387. return this.getPropertyValue("paddingRight");
  8388. }, set: function(t3) {
  8389. this.setPercentProperty("paddingRight", t3, true, true, this._positionPrecision, true);
  8390. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paddingTop", { get: function() {
  8391. return this.getPropertyValue("paddingTop");
  8392. }, set: function(t3) {
  8393. this.setPercentProperty("paddingTop", t3, true, true, this._positionPrecision, true);
  8394. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "paddingBottom", { get: function() {
  8395. return this.getPropertyValue("paddingBottom");
  8396. }, set: function(t3) {
  8397. this.setPercentProperty("paddingBottom", t3, true, true, this._positionPrecision, true);
  8398. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingRight", { get: function() {
  8399. return this.getPixelX(this.paddingRight);
  8400. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingRight", { get: function() {
  8401. return this.getRelativeX(this.paddingRight);
  8402. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingLeft", { get: function() {
  8403. return this.getPixelX(this.paddingLeft);
  8404. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingLeft", { get: function() {
  8405. return this.getRelativeX(this.paddingLeft);
  8406. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingTop", { get: function() {
  8407. return this.getPixelY(this.paddingTop);
  8408. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingTop", { get: function() {
  8409. return this.getRelativeY(this.paddingTop);
  8410. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPaddingBottom", { get: function() {
  8411. return this.getPixelY(this.paddingBottom);
  8412. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "relativePaddingBottom", { get: function() {
  8413. return this.getRelativeY(this.paddingBottom);
  8414. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "path", { get: function() {
  8415. return this.getPropertyValue("path");
  8416. }, set: function(t3) {
  8417. this.setPath(t3);
  8418. }, enumerable: true, configurable: true }), e3.prototype.setPath = function(t3) {
  8419. return !!this.setPropertyValue("path", t3) && (this._adapterO && (t3 = this._adapterO.apply("path", t3)), this._isPath || (this.element && (!this.element.node || this.element.node instanceof SVGPathElement) || (this.element = this.paper.add("path")), this._isPath = true), Z(t3) ? this.element.attr({ d: t3 }) : this.element.removeAttr("d"), this.invalidatePosition(), this.inited || this.events.once("inited", this.validatePosition, this, false), true);
  8420. }, Object.defineProperty(e3.prototype, "fillModifier", { get: function() {
  8421. return this.getPropertyValue("fillModifier");
  8422. }, set: function(t3) {
  8423. this.setPropertyValue("fillModifier", t3) && this.setFill(this.fill);
  8424. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeModifier", { get: function() {
  8425. return this.getPropertyValue("strokeModifier");
  8426. }, set: function(t3) {
  8427. this.setPropertyValue("strokeModifier", t3, true);
  8428. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fillOpacity", { get: function() {
  8429. return this.getPropertyValue("fillOpacity");
  8430. }, set: function(t3) {
  8431. t3 = ot(t3, 0, 1), this.setPropertyValue("fillOpacity", t3) && this.setSVGAttribute({ "fill-opacity": t3 });
  8432. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fill", { get: function() {
  8433. return this.getPropertyValue("fill");
  8434. }, set: function(t3) {
  8435. this.setFill(t3);
  8436. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(t3) {
  8437. if (et(t3) && !("r" in t3) || (t3 = gn(t3)), this.setColorProperty("fill", t3) || this.fillModifier)
  8438. if (t3 instanceof un && this.fillModifier && (t3 = this.fillModifier.modify(t3)), this.realFill = t3, t3 instanceof un)
  8439. this.setSVGAttribute({ fill: t3.toString() });
  8440. else if (Z(t3)) {
  8441. if (t3 instanceof Ca || t3 instanceof Oa || t3 instanceof Sa) {
  8442. var e4 = t3;
  8443. e4.paper = this.paper, this.setSVGAttribute({ fill: 'url("' + Dn() + e4.id + '")' });
  8444. }
  8445. } else
  8446. this.removeSVGAttribute("fill");
  8447. }, Object.defineProperty(e3.prototype, "opacity", { get: function() {
  8448. return this.getPropertyValue("opacity");
  8449. }, set: function(t3) {
  8450. t3 = ot(t3, 0, 1), this.setPropertyValue("opacity", t3) && this.setSVGAttribute({ opacity: t3 });
  8451. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "stroke", { get: function() {
  8452. return this.getPropertyValue("stroke");
  8453. }, set: function(t3) {
  8454. this.setStroke(t3);
  8455. }, enumerable: true, configurable: true }), e3.prototype.setStroke = function(t3) {
  8456. if (et(t3) && !("r" in t3) || (t3 = gn(t3)), this.setColorProperty("stroke", t3) || this.strokeModifier)
  8457. if (t3 instanceof un && this.strokeModifier && (t3 = this.strokeModifier.modify(t3)), this.realStroke = t3, t3 instanceof un)
  8458. t3.hex == "none" ? this.removeSVGAttribute("stroke") : this.setSVGAttribute({ stroke: t3.toString() });
  8459. else if (Z(t3)) {
  8460. if (t3 instanceof Ca || t3 instanceof Oa || t3 instanceof Sa) {
  8461. var e4 = t3;
  8462. e4.paper = this.paper, this.setSVGAttribute({ stroke: 'url("' + Dn() + e4.id + '")' });
  8463. }
  8464. } else
  8465. this.removeSVGAttribute("stroke");
  8466. }, Object.defineProperty(e3.prototype, "strokeOpacity", { get: function() {
  8467. return this.getPropertyValue("strokeOpacity");
  8468. }, set: function(t3) {
  8469. t3 = ot(t3, 0, 1), this.setPropertyValue("strokeOpacity", t3) && this.setSVGAttribute({ "stroke-opacity": t3 });
  8470. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonScalingStroke", { get: function() {
  8471. return this.getPropertyValue("nonScalingStroke");
  8472. }, set: function(t3) {
  8473. t3 = z(t3), this.setPropertyValue("nonScalingStroke", t3) && (this.strokeWidth = this.strokeWidth);
  8474. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonScaling", { get: function() {
  8475. return this.getPropertyValue("nonScaling");
  8476. }, set: function(t3) {
  8477. t3 = z(t3), this.setPropertyValue("nonScaling", t3, false, true);
  8478. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeWidth", { get: function() {
  8479. return this.getPropertyValue("strokeWidth");
  8480. }, set: function(t3) {
  8481. t3 = U(t3), this.setPropertyValue("strokeWidth", t3, true), this.nonScalingStroke && (tt(t3) || (t3 = 1), t3 /= this.globalScale), this.setSVGAttribute({ "stroke-width": t3 });
  8482. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeDasharray", { get: function() {
  8483. return this.getPropertyValue("strokeDasharray");
  8484. }, set: function(t3) {
  8485. t3 = G(t3), this.setPropertyValue("strokeDasharray", t3) && this.setSVGAttribute({ "stroke-dasharray": t3 });
  8486. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeDashoffset", { get: function() {
  8487. return this.getPropertyValue("strokeDashoffset");
  8488. }, set: function(t3) {
  8489. t3 = U(t3), this.setPropertyValue("strokeDashoffset", t3) && this.setSVGAttribute({ "stroke-dashoffset": t3 });
  8490. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeLinecap", { get: function() {
  8491. return this.getPropertyValue("strokeLinecap");
  8492. }, set: function(t3) {
  8493. this.setPropertyValue("strokeLinecap", t3) && this.setSVGAttribute({ "stroke-linecap": t3 });
  8494. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeLinejoin", { get: function() {
  8495. return this.getPropertyValue("strokeLinejoin");
  8496. }, set: function(t3) {
  8497. this.setPropertyValue("strokeLinejoin", t3) && this.setSVGAttribute({ "stroke-linejoin": t3 });
  8498. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "shapeRendering", { get: function() {
  8499. return this.getPropertyValue("shapeRendering");
  8500. }, set: function(t3) {
  8501. t3 = G(t3), this.setPropertyValue("shapeRendering", t3) && this.setSVGAttribute({ "shape-rendering": t3 });
  8502. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelPerfect", { get: function() {
  8503. return this.getPropertyValue("pixelPerfect");
  8504. }, set: function(t3) {
  8505. t3 = z(t3), this._positionPrecision = t3 ? ls.pixelPerfectPrecision : 3, this.setPropertyValue("pixelPerfect", t3, true);
  8506. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rtl", { get: function() {
  8507. return Z(this._rtl) ? this._rtl : !!this._topParent && this._topParent.rtl;
  8508. }, set: function(t3) {
  8509. t3 = z(t3), this.isBaseSprite && (this.topParent.rtl = t3), this._rtl = t3;
  8510. }, enumerable: true, configurable: true }), e3.prototype.show = function(t3) {
  8511. return this.showReal(t3);
  8512. }, e3.prototype.showReal = function(t3) {
  8513. var e4 = this;
  8514. if (!this.preventShow) {
  8515. var i3, n3 = this.defaultState.properties;
  8516. if (!this.disabled && (this.isHidden || !this.visible || this.isHiding || n3.opacity != null && this.opacity < n3.opacity && !this.isShowing) && !this.isDisposed()) {
  8517. this.invalid && this.validate(), this.positionInvalid && this.validatePosition(), tt(t3) || (t3 = this.defaultState.transitionDuration), this._hideAnimation && (this._hideAnimation.kill(), this._hideAnimation = void 0), this._showHideDisposer && this.removeDispose(this._showHideDisposer), this._isHidden = false, this.isHiding = false, this.isShowing = true, (i3 = this.applyCurrentState(t3)) && !i3.isFinished() ? (this._showHideDisposer = i3.events.on("animationended", function() {
  8518. e4.isShowing = false;
  8519. }), this._disposers.push(this._showHideDisposer)) : this.isShowing = false;
  8520. var r3 = this.defaultState.properties.visible;
  8521. Z(r3) || (r3 = true), this.visible = r3, this.readerHidden = false, this.dispatchImmediately("shown");
  8522. }
  8523. return i3;
  8524. }
  8525. }, e3.prototype.hide = function(t3) {
  8526. return this.hideReal(t3);
  8527. }, e3.prototype.hideReal = function(t3) {
  8528. var e4, i3 = this;
  8529. if (!this.isHiding && this.visible && !this.isDisposed()) {
  8530. this.tooltip && this.tooltip.currentSprite == this && this.hideTooltip(0), this._hideAnimation && (this._hideAnimation.kill(), this._hideAnimation = void 0), this.isShowing = false, this._showHideDisposer && this.removeDispose(this._showHideDisposer);
  8531. var n3 = this.hiddenState;
  8532. n3 ? (e4 = this.setState(n3, t3, void 0)) && !e4.isFinished() ? (this._hideAnimation = e4, this._showHideDisposer = e4.events.on("animationended", function() {
  8533. i3.isHiding = false, i3._isHidden = true, n3.properties.visible == 0 && (i3.visible = false);
  8534. }, this), this._disposers.push(this._showHideDisposer), this._disposers.push(e4)) : (this.isHiding = false, this._isHidden = true) : (this.visible = false, this.isHiding = false, this._isHidden = true), this.readerHidden = true, this.dispatchImmediately("hidden"), this.invalidate();
  8535. }
  8536. return tt(t3) || (t3 = this.hiddenState.transitionDuration), e4;
  8537. }, Object.defineProperty(e3.prototype, "visible", { get: function() {
  8538. return this.getVisibility();
  8539. }, set: function(t3) {
  8540. t3 = z(t3), this.setVisibility(t3);
  8541. }, enumerable: true, configurable: true }), e3.prototype.getVisibility = function() {
  8542. var t3 = this.getPropertyValue("visible");
  8543. return Z(t3) || (t3 = true), t3;
  8544. }, e3.prototype.setVisibility = function(t3) {
  8545. if (this.setPropertyValue("visible", t3) && (t3 ? this.group.removeAttr("visibility") : this.group.attr({ visibility: "hidden" }), this.events.isEnabled("visibilitychanged"))) {
  8546. var e4 = { type: "visibilitychanged", target: this, visible: t3 };
  8547. this.events.dispatchImmediately("visibilitychanged", e4);
  8548. }
  8549. }, Object.defineProperty(e3.prototype, "zIndex", { get: function() {
  8550. return this.getPropertyValue("zIndex");
  8551. }, set: function(t3) {
  8552. t3 = U(t3), this.setPropertyValue("zIndex", t3) && this.dispatch("zIndexChanged");
  8553. }, enumerable: true, configurable: true }), e3.prototype.toFront = function() {
  8554. var t3 = this._parent;
  8555. t3 && t3.children.indexOf(this) != t3.children.length - 1 && (t3.children.moveValue(this, t3.children.length - 1), this.dispatch("zIndexChanged"));
  8556. }, e3.prototype.toBack = function() {
  8557. var t3 = this._parent;
  8558. t3 && t3.children.indexOf(this) != 0 && (t3.children.moveValue(this, 0), this.dispatch("zIndexChanged"));
  8559. }, Object.defineProperty(e3.prototype, "userClassName", { get: function() {
  8560. return this.getPropertyValue("userClassName");
  8561. }, set: function(t3) {
  8562. this.setPropertyValue("userClassName", t3) && (!t3 && this.userClassName && this.group.removeClass(this.userClassName), this.setClassName());
  8563. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltip", { get: function() {
  8564. return this._tooltip ? this._tooltip : this.virtualParent ? this.virtualParent.tooltip : this._parent ? this._parent.tooltip : void 0;
  8565. }, set: function(t3) {
  8566. this._tooltip && this.removeDispose(this._tooltip), this._tooltip = t3, t3 && (t3.parent = this.tooltipContainer);
  8567. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipDataItem", { get: function() {
  8568. return this._tooltipDataItem || this.dataItem;
  8569. }, set: function(t3) {
  8570. this._tooltipDataItem = t3;
  8571. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipColorSource", { get: function() {
  8572. return this._tooltipColorSource;
  8573. }, set: function(t3) {
  8574. this._tooltipColorSource = t3;
  8575. }, enumerable: true, configurable: true }), e3.prototype.showTooltip = function(t3) {
  8576. this.showTooltipOn == "always" && !this._tooltip && this.tooltip && (this._tooltip = this.tooltip.clone()), !t3 && this.tooltipPosition == "pointer" && this.isHover && (t3 = gr(ua().lastPointer.point, this.svgContainer.SVGContainer, this.svgContainer.cssScale));
  8577. for (var e4 = this; e4 != null; ) {
  8578. if (!e4.visible || e4.disabled || e4.__disabled)
  8579. return void (this._tooltip && this._tooltip.visible && this._tooltip.hide(0));
  8580. e4 = e4.parent;
  8581. }
  8582. if (Z(this.tooltipText) || Z(this.tooltipHTML)) {
  8583. var i3 = this.tooltip, n3 = this.tooltipDataItem;
  8584. if (i3) {
  8585. i3.targetSprite = this;
  8586. var r3 = this, s2 = this.tooltipColorSource;
  8587. if ((i3.getStrokeFromObject || i3.getFillFromObject) && s2 && (s2.isTemplate ? n3 && Kt(n3.sprites, function(t4) {
  8588. return t4.clonedFrom != s2 || (r3 = t4, false);
  8589. }) : r3 = s2), i3.getStrokeFromObject) {
  8590. for (var a2 = this.stroke, o3 = r3; o3.parent != null && ((a2 = o3.stroke) == null && (o3 = o3.parent), a2 == null); )
  8591. ;
  8592. a2 instanceof un ? i3.background.animate({ property: "stroke", to: a2 }, i3.animationDuration) : i3.background.stroke = a2;
  8593. }
  8594. if (i3.dataItem = n3, i3.label.populateStringFrom = this, i3.getFillFromObject) {
  8595. var l2 = this.fill;
  8596. for (o3 = r3; o3.parent != null; )
  8597. if ((l2 = o3.fill) == null || l2 instanceof un && l2.rgb == null)
  8598. o3 = o3.parent;
  8599. else if (l2 != null)
  8600. break;
  8601. l2 == null && (l2 = dn("#000000")), l2 instanceof un && i3.visible ? i3.background.animate({ property: "fill", to: l2 }, i3.animationDuration) : i3.background.fill = l2, i3.autoTextColor && l2 instanceof un && (i3.label.fill = l2.alternative);
  8602. }
  8603. var h2 = "";
  8604. if (this.tooltipHTML && (i3.html = this.tooltipHTML, h2 = this.tooltipHTML), this.tooltipText && (i3.text = this.tooltipText, h2 = this.tooltipText), this.updateTooltipPosition(t3)) {
  8605. if (i3.readerDescribedBy = this.uidAttr(), i3.label.invalid && i3.label.validate(), h2 != null && h2 != "" && i3.label.currentText != "") {
  8606. i3 && !i3.parent && (i3.parent = this.tooltipContainer);
  8607. var p2 = i3.defaultState.transitionDuration;
  8608. return p2 <= 0 && (p2 = 1), i3.show(p2), i3.currentSprite = this, true;
  8609. }
  8610. this.hideTooltip(0);
  8611. } else
  8612. this.hideTooltip(0);
  8613. }
  8614. }
  8615. return false;
  8616. }, e3.prototype.updateTooltipPosition = function(t3) {
  8617. var e4 = this;
  8618. if (this.tooltipPosition != "pointer") {
  8619. var i3 = ur({ x: this.getTooltipX(), y: this.getTooltipY() }, this);
  8620. return this.pointTooltipTo(i3);
  8621. }
  8622. if (this._interactionDisposer && this._interactionDisposer.dispose(), this._interactionDisposer = ua().body.events.on("track", function(t4) {
  8623. return e4.pointTooltipTo(gr(t4.point, e4.svgContainer.SVGContainer, e4.svgContainer.cssScale), true);
  8624. }), t3)
  8625. return this.pointTooltipTo(t3, true);
  8626. }, e3.prototype.pointTooltipTo = function(t3, e4) {
  8627. var i3 = this.tooltip;
  8628. if (i3 && this.topParent) {
  8629. if (i3.showInViewport)
  8630. return i3.pointTo(t3, e4), true;
  8631. if (Nt(t3, { x: 0, y: 0, width: this.topParent.maxWidth, height: this.topParent.maxHeight }))
  8632. return i3.pointTo(t3, e4), true;
  8633. }
  8634. return false;
  8635. }, e3.prototype.hideTooltip = function(t3) {
  8636. if (this.showTooltipOn != "always") {
  8637. var e4 = this.tooltip;
  8638. e4 && (e4.targetSprite == this && (e4.targetSprite = void 0), e4.hide(t3), this._interactionDisposer && (this._interactionDisposer.dispose(), this._interactionDisposer = void 0));
  8639. }
  8640. }, Object.defineProperty(e3.prototype, "tooltipHTML", { get: function() {
  8641. return this.getPropertyValue("tooltipHTML");
  8642. }, set: function(t3) {
  8643. t3 = G(t3), this.hoverable = true, this.setPropertyValue("tooltipHTML", t3) && this.tooltip && this.tooltip.visible && this.showTooltip();
  8644. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipText", { get: function() {
  8645. return this.getPropertyValue("tooltipText");
  8646. }, set: function(t3) {
  8647. (t3 = G(t3)) && (this.hoverable = true), this.setPropertyValue("tooltipText", t3) && this.tooltip && this.tooltip.visible && this.showTooltip();
  8648. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipContainer", { get: function() {
  8649. return this._tooltipContainer ? this._tooltipContainer : this._parent ? this._parent.tooltipContainer : void 0;
  8650. }, set: function(t3) {
  8651. this._tooltipContainer = t3;
  8652. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipX", { get: function() {
  8653. return this.getTooltipX();
  8654. }, set: function(t3) {
  8655. this.setPercentProperty("tooltipX", t3) && this.tooltip && this.tooltip.invalidate();
  8656. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "alwaysShowTooltip", { get: function() {
  8657. return this.getPropertyValue("showTooltipOn") == "always";
  8658. }, set: function(t3) {
  8659. (t3 = z(t3)) && (this.showTooltipOn = "always");
  8660. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showTooltipOn", { get: function() {
  8661. return this.getPropertyValue("showTooltipOn");
  8662. }, set: function(t3) {
  8663. this.setPropertyValue("showTooltipOn", t3) && (t3 == "hit" && (this.clickable = true), this.tooltip && (t3 == "always" ? this.showTooltip() : this.handleAlwaysShowTooltip()));
  8664. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipPosition", { get: function() {
  8665. return this.getPropertyValue("tooltipPosition");
  8666. }, set: function(t3) {
  8667. this.setPropertyValue("tooltipPosition", t3);
  8668. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipY", { get: function() {
  8669. return this.getTooltipY();
  8670. }, set: function(t3) {
  8671. this.setPercentProperty("tooltipY", t3) && this.tooltip && this.tooltip.invalidate();
  8672. }, enumerable: true, configurable: true }), e3.prototype.getTooltipX = function() {
  8673. var t3, e4 = this.getPropertyValue("tooltipX");
  8674. return Z(e4) || (e4 = V(50)), tt(e4) && (t3 = e4), e4 instanceof A && (t3 = this.maxLeftSelf + this._measuredWidthSelf * e4.value - this.pixelPaddingLeft - this.ex), tt(t3) || (t3 = 0), t3;
  8675. }, e3.prototype.getTooltipY = function() {
  8676. var t3, e4 = this.getPropertyValue("tooltipY");
  8677. return Z(e4) || (e4 = V(50)), tt(e4) && (t3 = e4), e4 instanceof A && (t3 = this.maxTopSelf + this._measuredHeightSelf * e4.value - this.pixelPaddingTop - this.ey), tt(t3) || (t3 = 0), t3;
  8678. }, e3.prototype.raiseCriticalError = function(t3, e4) {
  8679. this.svgContainer && (this._adapterO ? this.modal.content = this._adapterO.apply("criticalError", t3).message : this.modal.content = t3.message, e4 ? this.modal.closable = true : this.disabled = true, ls.suppressErrors || this.modal.open()), ls.verbose && console.log(t3);
  8680. }, e3.prototype.processConfig = function(e4) {
  8681. e4 && (Z(e4.tooltipColorSource) && Q(e4.tooltipColorSource) && this.map.hasKey(e4.tooltipColorSource) && (e4.tooltipColorSource = this.map.getKey(e4.tooltipColorSource)), Z(e4.cursorOverStyle) && Q(e4.cursorOverStyle) && (e4.cursorOverStyle = this.getCursorStyle(e4.cursorOverStyle)), Z(e4.cursorDowntyle) && Q(e4.cursorDowntyle) && (e4.cursorDowntyle = this.getCursorStyle(e4.cursorDowntyle)), Z(e4.cursorOptions) && (Z(e4.cursorOptions.overStyle) && Q(e4.cursorOptions.overStyle) && (e4.cursorOptions.overStyle = this.getCursorStyle(e4.cursorOptions.overStyle)), Z(e4.cursorOptions.downStyle) && Q(e4.cursorOptions.downStyle) && (e4.cursorOptions.downStyle = this.getCursorStyle(e4.cursorOptions.downStyle)))), t2.prototype.processConfig.call(this, e4), this.processDelayedMap();
  8682. }, e3.prototype.getCursorStyle = function(t3) {
  8683. switch (t3) {
  8684. case "grab":
  8685. return Ia.grab;
  8686. case "grabbing":
  8687. return Ia.grabbing;
  8688. case "pointer":
  8689. return Ia.pointer;
  8690. case "horizontalResize":
  8691. return Ia.horizontalResize;
  8692. case "verticalResize":
  8693. return Ia.verticalResize;
  8694. default:
  8695. return Ia.default;
  8696. }
  8697. }, e3.prototype.configOrder = function(e4, i3) {
  8698. return e4 == i3 ? 0 : e4 == "tooltipColorSource" ? 1 : i3 == "tooltipColorSource" ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  8699. }, Object.defineProperty(e3.prototype, "isHidden", { get: function() {
  8700. return this._isHidden ? this._isHidden : !!this._parent && this._parent.isHidden;
  8701. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showOnInit", { get: function() {
  8702. return this.getPropertyValue("showOnInit");
  8703. }, set: function(t3) {
  8704. t3 = z(t3), this.setShowOnInit(t3);
  8705. }, enumerable: true, configurable: true }), e3.prototype.setShowOnInit = function(t3) {
  8706. this.setPropertyValue("showOnInit", t3) && (this.isTemplate || (!t3 || this.inited || this.hidden ? this._showOnInitDisposer && this._showOnInitDisposer.dispose() : (this._showOnInitDisposer = new me([Ii.events.once("enterframe", this.hideInitially, this), this.events.once("beforevalidated", this.hideInitially, this, false), this.events.on("inited", this.appear, this, false)]), this._disposers.push(this._showOnInitDisposer))));
  8707. }, e3.prototype.hideInitially = function() {
  8708. this.isDisposed() || (this.appeared = false, this.inited || this.hide(0));
  8709. }, e3.prototype.appear = function() {
  8710. var t3 = this;
  8711. if (this.appeared = false, this.hidden || this.isHidden || this.hide(0), this.hidden)
  8712. this.appeared = true, this.dispatch("appeared");
  8713. else {
  8714. var e4 = this.show();
  8715. e4 && !e4.isFinished() ? this.addDisposer(e4.events.on("animationended", function() {
  8716. t3.appeared = true, t3.dispatch("appeared");
  8717. })) : (this.appeared = true, this.dispatch("appeared"));
  8718. }
  8719. }, Object.defineProperty(e3.prototype, "hidden", { get: function() {
  8720. return this.getPropertyValue("hidden");
  8721. }, set: function(t3) {
  8722. t3 = z(t3), this.setPropertyValue("hidden", t3);
  8723. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bbox", { get: function() {
  8724. return this.definedBBox ? this.definedBBox : this._bbox;
  8725. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "plugins", { get: function() {
  8726. var t3 = this;
  8727. return this._plugins || (this._plugins = new Fi(), this._disposers.push(this._plugins.events.on("inserted", function(e4) {
  8728. e4.newValue.target = t3, e4.newValue.init();
  8729. })), this._disposers.push(new Ai(this._plugins))), this._plugins;
  8730. }, enumerable: true, configurable: true }), e3.prototype._systemUpdate = function(t3) {
  8731. this.validate();
  8732. }, e3.prototype._systemCheckIfValidate = function() {
  8733. return true;
  8734. }, e3.prototype._systemValidatePositions = function() {
  8735. this.validatePosition();
  8736. }, e3.prototype._systemValidateLayouts = function() {
  8737. }, e3;
  8738. }(mn);
  8739. Ii.registeredClasses.Sprite = Za;
  8740. var qa = function(t2) {
  8741. function e3() {
  8742. var e4 = t2.call(this) || this;
  8743. return e4.className = "Rectangle", e4.element = e4.paper.add("rect"), e4.applyTheme(), e4;
  8744. }
  8745. return C(e3, t2), e3.prototype.draw = function() {
  8746. t2.prototype.draw.call(this);
  8747. var e4 = this._positionPrecision;
  8748. this.pixelPerfect && (e4 = 0);
  8749. var i3 = lt(this.innerWidth, e4), n3 = lt(this.innerHeight, e4);
  8750. this.element.attr({ width: i3, height: n3 });
  8751. }, e3.prototype.measureElement = function() {
  8752. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  8753. return this.definedBBox ? this.definedBBox : this.isMeasured ? { x: 0, y: 0, width: this.innerWidth, height: this.innerHeight } : { x: 0, y: 0, width: 0, height: 0 };
  8754. }, enumerable: true, configurable: true }), e3;
  8755. }(Za);
  8756. Ii.registeredClasses.Rectangle = qa;
  8757. var $a = function(t2) {
  8758. function e3() {
  8759. var e4 = t2.call(this) || this;
  8760. return e4._childrenByLayout = [], e4._childrenDisposers = new Pi(), e4.hasFocused = false, e4.setStateOnSprites = [], e4.layoutInvalid = false, e4._absoluteWidth = 0, e4._absoluteHeight = 0, e4._shouldBeReady = [], e4._tapToActivate = false, e4.tapTimeout = 3e3, e4.className = "Container", e4._element = e4.paper.addGroup("g"), e4.group.add(e4.element), e4.setPropertyValue("pixelPerfect", false), e4.setPropertyValue("layout", "absolute"), e4.setPropertyValue("fixedWidthGrid", false), e4.setPropertyValue("verticalCenter", "none"), e4.setPropertyValue("horizontalCenter", "none"), e4._positionPrecision = 4, e4._disposers.push(new _i(e4._childrenDisposers)), e4.children.events.on("inserted", e4.handleChildAdded, e4), e4.children.events.on("removed", e4.handleChildRemoved, e4), e4.applyTheme(), e4;
  8761. }
  8762. return C(e3, t2), e3.prototype.handleChildAdded = function(t3) {
  8763. this.processChild(t3.newValue);
  8764. }, e3.prototype.processChild = function(t3) {
  8765. try {
  8766. this._childrenDisposers.insertKey(t3.uid, new me([t3.events.on("transformed", this.handleChildTransform, this), t3.events.on("zIndexChanged", this.sortAndAdd, this)]));
  8767. } catch (t4) {
  8768. }
  8769. this.element && this.element.add(t3.group), t3.parent = this, t3.paper = this.paper, this.dispatchImmediately("childadded", { type: "childadded", newValue: t3 }), this.invalidate();
  8770. }, e3.prototype.sortAndAdd = function() {
  8771. this.sortChildren(), this.addChildren();
  8772. }, e3.prototype.handleChildRemoved = function(t3) {
  8773. var e4 = t3.oldValue;
  8774. this._childrenDisposers.removeKey(e4.uid), this.element && this.element.removeElement(e4.group), e4.isMeasured && this.invalidateLayout(), this.dispatchImmediately("childremoved", { type: "childremoved", oldValue: e4 });
  8775. }, e3.prototype.handleChildTransform = function(t3) {
  8776. t3.target.isMeasured && this.invalidateLayout();
  8777. }, e3.prototype.invalidateLayout = function() {
  8778. this.layoutInvalid || this.disabled || this.isTemplate || this.layout == "none" || this.__disabled || (this.layoutInvalid = true, Ii.addToInvalidLayouts(this), Qa.requestFrame());
  8779. }, e3.prototype.invalidate = function() {
  8780. t2.prototype.invalidate.call(this), this.invalidateLayout();
  8781. }, e3.prototype.deepInvalidate = function() {
  8782. t2.prototype.invalidate.call(this), Ut(this._childrenByLayout, function(t3) {
  8783. t3 instanceof e3 ? t3.deepInvalidate() : t3.invalidate();
  8784. }), this.invalidateLayout();
  8785. }, Object.defineProperty(e3.prototype, "children", { get: function() {
  8786. return this._children || (this._children = new Fi()), this._children;
  8787. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minWidth", { get: function() {
  8788. return this.getPropertyValue("minWidth");
  8789. }, set: function(t3) {
  8790. this.setPropertyValue("minWidth", t3) && this.invalidateLayout();
  8791. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minHeight", { get: function() {
  8792. return this.getPropertyValue("minHeight");
  8793. }, set: function(t3) {
  8794. this.setPropertyValue("minHeight", t3) && this.invalidateLayout();
  8795. }, enumerable: true, configurable: true }), e3.prototype.removeElement = function() {
  8796. }, e3.prototype.sortChildren = function() {
  8797. var t3 = this;
  8798. if (this._childrenByLayout = [], this.layout != "none" && this.layout != "absolute" && this.layout) {
  8799. var e4 = [], i3 = [];
  8800. ti(this.children.iterator(), function(n3) {
  8801. t3.layout == "horizontal" || t3.layout == "grid" ? tt(n3.percentWidth) ? i3.push(n3) : e4.push(n3) : t3.layout == "vertical" && tt(n3.percentHeight) ? i3.push(n3) : e4.push(n3);
  8802. }), this._childrenByLayout = e4.concat(i3);
  8803. } else
  8804. this._childrenByLayout = this.children.values;
  8805. this.calculateRelativeSize();
  8806. }, e3.prototype.calculateRelativeSize = function() {
  8807. var t3 = this, e4 = 0, i3 = 0;
  8808. Ut(this._childrenByLayout, function(t4) {
  8809. t4.isMeasured && (tt(t4.percentWidth) && (e4 += t4.percentWidth), tt(t4.percentHeight) && (i3 += t4.percentHeight));
  8810. }), Ut(this._childrenByLayout, function(n3) {
  8811. n3.isMeasured && (t3.layout == "horizontal" && (tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / e4), tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / 100)), t3.layout == "vertical" && (tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / i3), tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / 100)), t3.layout == "grid" && (tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / 100), tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / 100))), t3.layout != "absolute" && n3.isMeasured || (tt(n3.percentWidth) && (n3.relativeWidth = n3.percentWidth / 100), tt(n3.percentHeight) && (n3.relativeHeight = n3.percentHeight / 100));
  8812. });
  8813. }, e3.prototype.addChildren = function() {
  8814. if (this.element) {
  8815. var t3 = oe(this.children.values), e4 = t3.map(function(t4, e5) {
  8816. return { idx: e5, data: t4 };
  8817. });
  8818. e4.sort(function(t4, e5) {
  8819. var i4 = t4.data.zIndex || 0, n4 = e5.data.zIndex || 0;
  8820. return i4 < n4 ? -1 : i4 > n4 ? 1 : t4.idx - e5.idx;
  8821. }), t3 = e4.map(function(t4) {
  8822. return t4.data;
  8823. });
  8824. var i3 = this.element, n3 = true;
  8825. if (i3.node && i3.node.childNodes) {
  8826. for (var r3 = 0, s2 = i3.node.childNodes.length; r3 < s2; r3++)
  8827. if (i3.node.childNodes[r3] != t3[r3].group.node) {
  8828. n3 = false;
  8829. break;
  8830. }
  8831. }
  8832. n3 || (Ut(t3, function(t4) {
  8833. t4.group && i3.add(t4.group);
  8834. }), this._background && this.group.addToBack(this._background.group), this.invalidateLayout());
  8835. }
  8836. }, e3.prototype.createChild = function(t3) {
  8837. var e4 = new t3();
  8838. return e4.parent = this, e4;
  8839. }, e3.prototype.removeChildren = function() {
  8840. for (; this.children.length > 0; ) {
  8841. var t3 = this.children.getIndex(0);
  8842. t3.parent = void 0, this.children.removeValue(t3);
  8843. }
  8844. }, e3.prototype.disposeChildren = function() {
  8845. for (; this.children.length > 0; ) {
  8846. var t3 = this.children.getIndex(0);
  8847. t3.dispose(), this.children.removeValue(t3);
  8848. }
  8849. }, Object.defineProperty(e3.prototype, "background", { get: function() {
  8850. return this._background || (this._background = this.createBackground(), this.processBackground()), this._background;
  8851. }, set: function(t3) {
  8852. this._background && this.background != t3 && this.removeDispose(this._background), t3 && (this._background = t3, this._disposers.push(t3), this.processBackground());
  8853. }, enumerable: true, configurable: true }), e3.prototype.handleGlobalScale = function() {
  8854. t2.prototype.handleGlobalScale.call(this), this.children.each(function(t3) {
  8855. t3.handleGlobalScale();
  8856. });
  8857. }, e3.prototype.createBackground = function() {
  8858. return new qa();
  8859. }, e3.prototype.processBackground = function() {
  8860. var t3 = this._background;
  8861. t3 && (t3.isMeasured = false, this._background.fill = new Ys().getFor("background"), t3.parent = this, t3.isMeasured = false, this.children.removeValue(t3), this._disposers.push(t3), this.group.addToBack(this._background.group));
  8862. }, e3.prototype.validateLayout = function() {
  8863. var t3 = this;
  8864. Ii.removeFromInvalidLayouts(this), this.layoutInvalid = false, this._availableWidth = this.innerWidth, this._availableHeight = this.innerHeight;
  8865. var e4 = 0, i3 = 0, n3 = true;
  8866. this.children && (this.sortChildren(), Ut(this._childrenByLayout, function(r3) {
  8867. var s2, a2;
  8868. if (tt(r3.relativeWidth) ? (s2 = lt(t3._availableWidth * r3.relativeWidth, 2), t3.layout == "horizontal" && (s2 -= r3.pixelMarginRight + r3.pixelMarginLeft)) : t3.layout == "horizontal" && r3.invalid && r3.validate(), tt(r3.relativeHeight) ? (a2 = lt(t3._availableHeight * r3.relativeHeight, 2), t3.layout == "vertical" && (a2 -= r3.pixelMarginTop + r3.pixelMarginBottom)) : t3.layout == "vertical" && r3.invalid && r3.validate(), r3.invalid == 0) {
  8869. if (tt(r3.relativeWidth) && (r3.maxWidth = s2), tt(r3.relativeHeight) && (r3.maxHeight = a2), r3.isMeasured) {
  8870. t3.layout == "horizontal" && (tt(r3.percentWidth) || r3.measuredWidth > 0 && (t3._availableWidth -= r3.measuredWidth + r3.pixelMarginLeft + r3.pixelMarginRight)), t3.layout == "vertical" && (tt(r3.percentHeight) || r3.measuredHeight > 0 && (t3._availableHeight -= r3.measuredHeight + r3.pixelMarginTop + r3.pixelMarginBottom));
  8871. var o3 = r3.measuredWidth, l2 = r3.measuredHeight;
  8872. r3.align != "none" && (o3 += r3.pixelMarginLeft + r3.pixelMarginRight), r3.valign != "none" && (l2 += r3.pixelMarginTop + r3.pixelMarginBottom), e4 = Math.max(e4, o3), i3 = Math.max(i3, l2);
  8873. }
  8874. } else
  8875. r3.isMeasured && (tt(r3.relativeWidth) && r3.maxWidth != s2 && (r3.maxWidth = s2, n3 = false), tt(r3.relativeHeight) && r3.maxHeight != a2 && (r3.maxHeight = a2, n3 = false));
  8876. })), this._absoluteWidth = e4, this._absoluteHeight = i3, n3 && this.arrange();
  8877. }, e3.prototype.arrange = function() {
  8878. var t3, e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2 = this, d2 = this.children, c2 = 0, f2 = 0, g2 = gt(this.innerWidth, this._absoluteWidth), y2 = gt(this.innerHeight, this._absoluteHeight), m2 = this.pixelPaddingLeft, v2 = this.pixelPaddingRight, b2 = this.pixelPaddingTop, x2 = this.pixelPaddingBottom, _2 = 0, P2 = 0, w2 = 0, C2 = 0, O2 = [], S2 = [], I2 = this.maxWidth, D2 = this.maxHeight, k2 = this.minWidth, T2 = this.minHeight, V2 = oe(d2.values);
  8879. if (this.reverseOrder && V2.reverse(), this.layout == "grid") {
  8880. s2 = I2, r3 = 1;
  8881. for (var F2 = 0, M2 = V2.length; F2 < M2; F2++)
  8882. if ((j2 = V2[F2]).isMeasured && !j2.disabled && !j2.__disabled) {
  8883. var L2 = j2.measuredWidth;
  8884. L2 < s2 && (s2 = L2), L2 > r3 && (r3 = L2);
  8885. }
  8886. s2 = ut(s2, 1, I2), r3 = ut(r3, 1, I2), a2 = this.fixedWidthGrid ? I2 / r3 : I2 / s2, a2 = gt(1, Math.floor(a2)), a2 = yt(this.maxColumns, a2), O2 = this.getColumnWidth(V2, a2, r3);
  8887. }
  8888. for (F2 = 0, M2 = V2.length; F2 < M2; F2++) {
  8889. var j2;
  8890. if (!(j2 = V2[F2]).isMeasured || j2.disabled || j2.__disabled)
  8891. j2.validatePosition();
  8892. else {
  8893. var E2 = void 0, R2 = void 0, B2 = j2.pixelMarginLeft, H2 = j2.pixelMarginRight, N2 = j2.pixelMarginTop, W2 = j2.pixelMarginBottom, X2 = j2.measuredWidth, Y2 = j2.measuredHeight, z2 = void 0, U2 = void 0, G2 = void 0, K2 = void 0;
  8894. switch (this.layout) {
  8895. case "none":
  8896. break;
  8897. case "absolute":
  8898. switch (j2.align) {
  8899. case "left":
  8900. E2 = B2 - j2.maxLeft;
  8901. break;
  8902. case "center":
  8903. E2 = (g2 - X2) / 2 - j2.maxLeft;
  8904. break;
  8905. case "right":
  8906. E2 = g2 - H2 - j2.maxRight;
  8907. break;
  8908. default:
  8909. j2.x instanceof A || (E2 = j2.pixelX);
  8910. }
  8911. switch (j2.valign) {
  8912. case "top":
  8913. R2 = N2 - j2.maxTop;
  8914. break;
  8915. case "middle":
  8916. R2 = (y2 - Y2) / 2 - j2.maxTop;
  8917. break;
  8918. case "bottom":
  8919. R2 = y2 - W2 - j2.maxBottom;
  8920. break;
  8921. default:
  8922. j2.y instanceof A || (R2 = j2.pixelY);
  8923. }
  8924. break;
  8925. case "vertical":
  8926. switch (j2.align) {
  8927. case "left":
  8928. E2 = B2 - j2.maxLeft;
  8929. break;
  8930. case "center":
  8931. E2 = (g2 - X2) / 2 - j2.maxLeft;
  8932. break;
  8933. case "right":
  8934. E2 = g2 - H2 - j2.maxRight;
  8935. break;
  8936. default:
  8937. E2 = j2.pixelX;
  8938. }
  8939. P2 = (R2 = P2 + N2 - j2.maxTop) + j2.maxBottom + W2;
  8940. break;
  8941. case "horizontal":
  8942. switch (j2.valign) {
  8943. case "top":
  8944. R2 = N2 - j2.maxTop;
  8945. break;
  8946. case "middle":
  8947. R2 = (y2 - Y2) / 2 - j2.maxTop;
  8948. break;
  8949. case "bottom":
  8950. R2 = y2 - W2 - j2.maxBottom;
  8951. break;
  8952. default:
  8953. R2 = j2.pixelY;
  8954. }
  8955. _2 = (E2 = _2 + B2 - j2.maxLeft) + j2.maxRight + H2;
  8956. break;
  8957. case "grid":
  8958. switch (E2 = _2 + B2 - j2.maxLeft, j2.valign) {
  8959. case "top":
  8960. R2 = P2 + N2 - j2.maxTop;
  8961. break;
  8962. case "middle":
  8963. R2 = P2 + (y2 - Y2) / 2 - j2.maxTop;
  8964. break;
  8965. case "bottom":
  8966. R2 = P2 + y2 - W2 - j2.maxBottom;
  8967. break;
  8968. default:
  8969. R2 = P2 - j2.maxTop;
  8970. }
  8971. _2 += O2[C2], S2[w2] = gt(S2[w2], Y2);
  8972. var Z2 = O2[++C2];
  8973. if (tt(Z2) || (Z2 = r3), _2 > yt(this.innerWidth, I2) - Z2 + 1 && C2 < a2) {
  8974. a2 = C2, _2 = 0, P2 = 0, w2 = 0, C2 = 0, O2 = this.getColumnWidth(V2, a2, r3), S2 = [], F2 = -1;
  8975. continue;
  8976. }
  8977. C2 >= a2 && (C2 = 0, P2 += S2[w2], w2++, _2 = 0);
  8978. }
  8979. this.layout !== "none" && (j2.moveTo({ x: E2, y: R2 }), z2 = E2 + j2.maxLeft - B2, U2 = E2 + j2.maxRight + H2, G2 = R2 + j2.maxTop - N2, K2 = R2 + j2.maxBottom + W2, (U2 > e4 || !tt(e4)) && (e4 = U2), (z2 < t3 || !tt(t3)) && (t3 = z2), (G2 < i3 || !tt(i3)) && (i3 = G2), (K2 > n3 || !tt(n3)) && (n3 = K2), (U2 > l2 || !tt(l2)) && (l2 = U2), (z2 < o3 || !tt(o3)) && (o3 = z2), (G2 < h2 || !tt(h2)) && (h2 = G2), K2 > p2 || tt(p2));
  8980. }
  8981. }
  8982. if (this.layout == "none") {
  8983. var q2 = this.bbox;
  8984. t3 = q2.x, e4 = q2.x + q2.width, i3 = q2.y, n3 = q2.y + q2.height;
  8985. }
  8986. tt(t3) || (t3 = 0, o3 = 0), tt(e4) || (l2 = e4 = this._availableWidth), tt(i3) || (i3 = 0, h2 = 0), tt(n3) || (p2 = n3 = this._availableHeight), tt(h2) || (h2 = 0), tt(p2) || (p2 = h2), tt(o3) || (o3 = 0), tt(l2) || (l2 = o3), c2 = e4 - t3, f2 = n3 - i3, tt(this.relativeWidth) && (t3 = 0, e4 = c2 = I2 - m2 - v2), tt(this.relativeHeight) && (i3 = 0, n3 = f2 = D2 - b2 - x2), tt(this._pixelWidth) && (t3 = 0, c2 = this._pixelWidth - m2 - v2), tt(k2) && c2 < k2 && (t3 = 0, c2 = this.minWidth - m2 - v2), tt(this._pixelHeight) && (i3 = 0, f2 = this._pixelHeight - b2 - x2), tt(T2) && f2 < T2 && (i3 = 0, f2 = T2 - b2 - x2);
  8987. var $2 = l2 - o3, J2 = p2 - h2;
  8988. if (this.layout != "none" && (this.contentAlign || this.contentValign) && d2.length > 0) {
  8989. var Q2, et2, it2 = c2, nt2 = f2;
  8990. it2 < $2 && (it2 = $2), nt2 < J2 && (nt2 = J2), this.contentAlign == "center" && (Q2 = (it2 - $2) / 2), this.contentAlign == "right" && (Q2 = it2 - $2), this.contentValign == "middle" && (et2 = (nt2 - J2) / 2), this.contentValign == "bottom" && (et2 = nt2 - J2), tt(Q2) && ti(d2.iterator(), function(t4) {
  8991. var e5 = t4.maxLeft, i4 = Q2;
  8992. u2.layout == "horizontal" && (t4.x = t4.pixelX + i4), u2.layout == "grid" && (t4.x = t4.pixelX + i4), u2.layout == "vertical" && (i4 += t4.pixelMarginLeft, t4.align == "none" && (t4.x = i4 - e5)), u2.layout == "absolute" && (i4 += t4.pixelMarginLeft, t4.align == "none" && (t4.x = i4 - e5));
  8993. }), tt(et2) && ti(d2.iterator(), function(t4) {
  8994. var e5 = t4.maxTop, i4 = et2;
  8995. u2.layout == "horizontal" && (i4 += t4.pixelMarginTop, t4.valign == "none" && (t4.y = i4 - e5)), u2.layout == "grid" && (i4 += t4.pixelMarginTop, t4.y = i4 - e5), u2.layout == "vertical" && (t4.y = t4.pixelY + i4), u2.layout == "absolute" && (i4 += t4.pixelMarginTop, t4.valign == "none" && (t4.y = i4 - e5));
  8996. });
  8997. }
  8998. var rt2 = this.bbox;
  8999. c2 = gt(c2, k2), f2 = gt(f2, T2), this.contentWidth = c2, this.contentHeight = f2, c2 = yt(c2, I2), f2 = yt(f2, D2), this._bbox = { x: t3, y: i3, width: c2, height: f2 };
  9000. var st2 = this.maxLeft, at2 = this.maxTop, ot2 = this.maxBottom, lt2 = this.maxRight;
  9001. if (this.measure(), (st2 != this.maxLeft || lt2 != this.maxRight || at2 != this.maxTop || ot2 != this.maxBottom) && this.events.isEnabled("transformed")) {
  9002. var ht2 = { type: "transformed", target: this };
  9003. rt2 && (ht2.dummyData = rt2.width + " " + c2 + " " + rt2.height + " " + f2), this.events.dispatchImmediately("transformed", ht2);
  9004. }
  9005. this.dispatchImmediately("layoutvalidated");
  9006. }, e3.prototype.updateCenter = function() {
  9007. t2.prototype.updateCenter.call(this), this.updateBackground();
  9008. }, e3.prototype.updateBackground = function() {
  9009. var t3 = this._background;
  9010. t3 && (t3.x = this.maxLeft, t3.y = this.maxTop, t3.width = this.maxRight - this.maxLeft, t3.height = this.maxBottom - this.maxTop);
  9011. }, e3.prototype.getColumnWidth = function(t3, e4, i3) {
  9012. var n3 = this, r3 = [], s2 = 0;
  9013. return Ut(t3, function(t4) {
  9014. !t4.isMeasured || t4.disabled || t4.__disabled || (n3.fixedWidthGrid ? r3[s2] = i3 : r3[s2] = gt(r3[s2], t4.measuredWidth + t4.pixelMarginRight + t4.pixelMarginLeft), ++s2 == e4 && (s2 = 0));
  9015. }), r3;
  9016. }, Object.defineProperty(e3.prototype, "layout", { get: function() {
  9017. return this.getPropertyValue("layout");
  9018. }, set: function(t3) {
  9019. this.setPropertyValue("layout", t3) && this.invalidateLayout();
  9020. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contentValign", { get: function() {
  9021. return this.getPropertyValue("contentValign");
  9022. }, set: function(t3) {
  9023. this.setPropertyValue("contentValign", t3, true);
  9024. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contentAlign", { get: function() {
  9025. return this.getPropertyValue("contentAlign");
  9026. }, set: function(t3) {
  9027. this.setPropertyValue("contentAlign", t3, true);
  9028. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fixedWidthGrid", { get: function() {
  9029. return this.getPropertyValue("fixedWidthGrid");
  9030. }, set: function(t3) {
  9031. this.setPropertyValue("fixedWidthGrid", t3, true);
  9032. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxColumns", { get: function() {
  9033. return this.getPropertyValue("maxColumns");
  9034. }, set: function(t3) {
  9035. this.setPropertyValue("maxColumns", t3, true);
  9036. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "reverseOrder", { get: function() {
  9037. return this.getPropertyValue("reverseOrder");
  9038. }, set: function(t3) {
  9039. this.setPropertyValue("reverseOrder", t3, true);
  9040. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "setStateOnChildren", { get: function() {
  9041. return this.getPropertyValue("setStateOnChildren");
  9042. }, set: function(t3) {
  9043. this.setPropertyValue("setStateOnChildren", t3, true);
  9044. }, enumerable: true, configurable: true }), e3.prototype.fitsToBounds = function(t3) {
  9045. var e4 = t3.x, i3 = t3.y;
  9046. return e4 >= -0.5 && e4 <= this.pixelWidth + 0.5 && i3 >= -0.5 && i3 <= this.pixelHeight + 0.5;
  9047. }, e3.prototype.copyFrom = function(e4) {
  9048. var i3 = this;
  9049. t2.prototype.copyFrom.call(this, e4), this.layout = e4.layout, this.setStateOnChildren = e4.setStateOnChildren, e4._background && (this.background = e4._background.clone(), this.background.copyFrom(e4._background)), ti(e4.children.iterator(), function(t3) {
  9050. t3.shouldClone && (t3.clone().parent = i3);
  9051. });
  9052. }, Object.defineProperty(e3.prototype, "preloader", { get: function() {
  9053. return this._preloader || (this.parent ? this.parent.preloader : void 0);
  9054. }, set: function(t3) {
  9055. this._preloader && this.removeDispose(this._preloader), this._preloader = t3, t3 && (t3.parent = this.tooltipContainer, this._disposers.push(t3));
  9056. }, enumerable: true, configurable: true }), e3.prototype.setPaper = function(e4) {
  9057. var i3 = this, n3 = t2.prototype.setPaper.call(this, e4);
  9058. return n3 && (this._background && (this._background.paper = e4, this._background.topParent = this.topParent), this.children.each(function(t3) {
  9059. t3.setPaper(e4), t3.topParent = i3.topParent;
  9060. })), n3;
  9061. }, e3.prototype.removeFromInvalids = function() {
  9062. t2.prototype.removeFromInvalids.call(this), Ii.removeFromInvalidLayouts(this);
  9063. }, e3.prototype.setDataItem = function(e4) {
  9064. this._dataItem != e4 && (ti(this.children.iterator(), function(t3) {
  9065. t3.dataItem = e4;
  9066. }), this._background && (this._background.dataItem = e4)), t2.prototype.setDataItem.call(this, e4);
  9067. }, e3.prototype.measureElement = function() {
  9068. this.disabled || this.isTemplate || this.layout == "none" || this.__disabled || this.validateLayout();
  9069. }, Object.defineProperty(e3.prototype, "fontFamily", { get: function() {
  9070. return this.getPropertyValue("fontFamily");
  9071. }, set: function(t3) {
  9072. this.setPropertyValue("fontFamily", t3, true) && (this.setSVGAttribute({ "font-family": t3 }), this.invalidateLabels());
  9073. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fontSize", { get: function() {
  9074. return this.getPropertyValue("fontSize");
  9075. }, set: function(t3) {
  9076. this.setPropertyValue("fontSize", t3, true) && (this.setSVGAttribute({ "font-size": t3 }), this.invalidateLabels());
  9077. }, enumerable: true, configurable: true }), e3.prototype.invalidateLabels = function() {
  9078. this.children.each(function(t3) {
  9079. t3.hardInvalidate ? (t3.hardInvalidate(), t3.events.once("validated", t3.handleValidate, t3, false)) : t3 instanceof e3 && t3.invalidateLabels();
  9080. });
  9081. }, Object.defineProperty(e3.prototype, "fontWeight", { get: function() {
  9082. return this.getPropertyValue("fontWeight");
  9083. }, set: function(t3) {
  9084. this.setPropertyValue("fontWeight", t3), this.setSVGAttribute({ "font-weight": t3 });
  9085. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "textDecoration", { get: function() {
  9086. return this.getPropertyValue("textDecoration");
  9087. }, set: function(t3) {
  9088. this.setPropertyValue("textDecoration", t3), this.setSVGAttribute({ "text-decoration": t3 });
  9089. }, enumerable: true, configurable: true }), e3.prototype.dispose = function() {
  9090. this._background && this._background.dispose(), this._shouldBeReady = [], this.disposeChildren(), t2.prototype.dispose.call(this);
  9091. }, e3.prototype.setState = function(e4, i3, n3) {
  9092. var r3 = e4;
  9093. return e4 instanceof ss && (r3 = e4.name), this.setStateOnChildren && ti(this.children.iterator(), function(t3) {
  9094. t3.setState(r3, i3, n3), r3 != "active" && (t3.isActive = false);
  9095. }), this._background && this._background.setState(r3), this.setStateOnSprites.length && Ut(this.setStateOnSprites, function(t3) {
  9096. t3.setState(r3, i3, n3);
  9097. }), t2.prototype.setState.call(this, e4, i3, n3);
  9098. }, e3.prototype.setActive = function(e4) {
  9099. t2.prototype.setActive.call(this, e4), this._background && (this._background.isActive = e4);
  9100. }, e3.prototype.dispatchReady = function() {
  9101. var e4 = this;
  9102. if (!this.isReady() && !this.isDisposed()) {
  9103. var i3 = true;
  9104. Qe(this.children.iterator(), function(t3) {
  9105. return !!(t3.__disabled || t3.disabled || t3.isReady()) || (i3 = false, false);
  9106. }), Kt(this._shouldBeReady, function(t3) {
  9107. return !!(t3.__disabled || t3.disabled || t3.isReady()) || (i3 = false, false);
  9108. }), i3 ? t2.prototype.dispatchReady.call(this) : Ii.events.once("exitframe", function() {
  9109. e4.dispatchReady(), Qa.requestFrame();
  9110. }, void 0, false);
  9111. }
  9112. }, e3.prototype._systemUpdate = function(e4) {
  9113. this.children.each(function(t3) {
  9114. t3.invalid && (t3._systemCheckIfValidate() ? t3.dataItem && t3.dataItem.component && t3.dataItem.component.dataInvalid ? e4.push(t3) : t3.validate() : e4.push(t3));
  9115. }), t2.prototype._systemUpdate.call(this, e4);
  9116. }, e3.prototype._systemValidatePositions = function() {
  9117. this.children.each(function(t3) {
  9118. t3.positionInvalid && t3.validatePosition();
  9119. }), t2.prototype._systemValidatePositions.call(this);
  9120. }, e3.prototype._systemValidateLayouts = function() {
  9121. this.layoutInvalid && !this.isDisposed() && this.validateLayout();
  9122. }, Object.defineProperty(e3.prototype, "tapToActivate", { get: function() {
  9123. return this._tapToActivate;
  9124. }, set: function(t3) {
  9125. this._tapToActivate != t3 && this.setTapToActivate(t3);
  9126. }, enumerable: true, configurable: true }), e3.prototype.setTapToActivate = function(t3) {
  9127. var e4 = this;
  9128. this._tapToActivate = t3, this.interactions.isTouchProtected = t3, t3 && this.interactions.setEventDisposer("container-tapToActivate", t3, function() {
  9129. return new me([e4.events.on("hit", e4.handleTapToActivate, e4, false), e4.events.on("down", e4.initTapTimeout, e4, false), e4.events.on("track", e4.initTapTimeout, e4, false), ua().body.events.on("down", function(t4) {
  9130. ua().isLocalElement(t4.pointer, e4.paper.svg, e4.uid) || e4.handleTapToActivateDeactivation();
  9131. }, e4, false)]);
  9132. }), ua();
  9133. }, e3.prototype.handleTapToActivate = function() {
  9134. this.interactions.isTouchProtected = false, this.initTapTimeout();
  9135. }, e3.prototype.handleTapToActivateDeactivation = function() {
  9136. this.interactions.isTouchProtected = true;
  9137. }, e3.prototype.initTapTimeout = function() {
  9138. var t3 = this;
  9139. this._tapToActivateTimeout && this._tapToActivateTimeout.dispose(), this.tapToActivate && !this.interactions.isTouchProtected && this.tapTimeout && (this._tapToActivateTimeout = this.setTimeout(function() {
  9140. t3.handleTapToActivateDeactivation();
  9141. }, this.tapTimeout));
  9142. }, e3.prototype.moveHtmlContainer = function(t3) {
  9143. var e4 = _s(t3);
  9144. if (e4) {
  9145. this.htmlContainer = e4;
  9146. var i3 = this.svgContainer;
  9147. i3.htmlElement = e4, i3.htmlElement.appendChild(i3.SVGContainer), i3.initSensor(), i3.measure();
  9148. } else
  9149. Q(t3) && t3 != "" && Qa.log("html container '" + t3 + "' not found");
  9150. }, e3.prototype.hasLicense = function() {
  9151. if (ls.commercialLicense)
  9152. return true;
  9153. for (var t3 = 0; t3 < ls.licenses.length; t3++)
  9154. if (ls.licenses[t3].match(/^CH.{5,}/i))
  9155. return true;
  9156. return false;
  9157. }, e3;
  9158. }(Za);
  9159. Ii.registeredClasses.Container = $a;
  9160. var Ja = function() {
  9161. function t2() {
  9162. this._isPaused = false, this.animations = [], this.uid = Ii.getUniqueId(), this.dummyCounter = 0, this._frameRequested = false, this.updateStepDuration = 45, this.time = Date.now();
  9163. }
  9164. return t2.prototype.reportTime = function(t3, e3) {
  9165. this.dummyCounter, e3 && (this.time = Date.now());
  9166. }, t2.prototype.update = function() {
  9167. var t3 = this;
  9168. if (!this._isPaused) {
  9169. this._frameRequested = false;
  9170. var e3 = Date.now();
  9171. for (var i3 in Ii.dispatchImmediately("enterframe"), Ii.invalidDatas)
  9172. if (Re(Ii.invalidDatas, i3)) {
  9173. for (var n3 = Ii.invalidDatas[i3]; n3.length > 0; ) {
  9174. var r3 = (s2 = n3[0]).dataProvider;
  9175. if (s2.isDisposed())
  9176. ee(n3, s2);
  9177. else if (r3 && r3.dataInvalid)
  9178. try {
  9179. if (r3.validateData(), r3.dataValidationProgress < 1)
  9180. break;
  9181. } catch (t4) {
  9182. ee(n3, r3), r3.raiseCriticalError(t4);
  9183. }
  9184. else
  9185. try {
  9186. if (s2.validateData(), s2.dataValidationProgress < 1)
  9187. break;
  9188. } catch (t4) {
  9189. ee(n3, s2), s2.raiseCriticalError(t4);
  9190. }
  9191. }
  9192. if (Date.now() - e3 > this.updateStepDuration)
  9193. break;
  9194. }
  9195. for (; Ii.invalidRawDatas.length > 0; )
  9196. if ((s2 = Ii.invalidRawDatas[0]).isDisposed())
  9197. ee(Ii.invalidRawDatas, s2);
  9198. else
  9199. try {
  9200. s2.validateRawData();
  9201. } catch (t4) {
  9202. ee(Ii.invalidRawDatas, s2), s2.raiseCriticalError(t4);
  9203. }
  9204. for (; Ii.invalidDataItems.length > 0; ) {
  9205. if (r3 = (s2 = Ii.invalidDataItems[0]).dataProvider, s2.isDisposed() || s2.dataInvalid || r3 && r3.dataInvalid)
  9206. ;
  9207. else
  9208. try {
  9209. s2.validateDataItems();
  9210. } catch (t4) {
  9211. ee(Ii.invalidDataItems, s2), s2.raiseCriticalError(t4);
  9212. }
  9213. ee(Ii.invalidDataItems, s2);
  9214. }
  9215. for (; Ii.invalidDataRange.length > 0; ) {
  9216. var s2;
  9217. if (r3 = (s2 = Ii.invalidDataRange[0]).dataProvider, s2.isDisposed() || s2.dataInvalid || r3 && r3.dataInvalid)
  9218. ;
  9219. else
  9220. try {
  9221. s2.validateDataRange(), s2.skipRangeEvent || s2.dispatchImmediately("datarangechanged"), s2.skipRangeEvent = false;
  9222. } catch (t4) {
  9223. ee(Ii.invalidDataRange, s2), s2.raiseCriticalError(t4);
  9224. }
  9225. ee(Ii.invalidDataRange, s2);
  9226. }
  9227. var a2 = [];
  9228. Ne(Ii.invalidLayouts, function(e4) {
  9229. t3.validateLayouts(e4);
  9230. }), Ne(Ii.invalidPositions, function(e4) {
  9231. t3.validatePositions(e4);
  9232. });
  9233. var o3 = false;
  9234. if (e3 = Date.now(), Ne(Ii.invalidSprites, function(i4, n4) {
  9235. for (var r4 = 0; n4.length > 0; ) {
  9236. if (t3.validateLayouts(i4), t3.validatePositions(i4), ++r4 == 5) {
  9237. if (Date.now() - e3 > t3.updateStepDuration)
  9238. break;
  9239. r4 = 0;
  9240. }
  9241. var s3 = n4[n4.length - 1];
  9242. if (s3 && !s3.isDisposed()) {
  9243. if (s3._systemCheckIfValidate())
  9244. if (t3.checkIfValidate2(s3))
  9245. try {
  9246. s3._systemUpdate(a2);
  9247. } catch (t4) {
  9248. s3.invalid = false, ee(n4, s3), s3.raiseCriticalError(t4);
  9249. }
  9250. else
  9251. a2.push(s3);
  9252. else
  9253. a2.push(s3);
  9254. s3.invalid = false;
  9255. }
  9256. ee(n4, s3);
  9257. }
  9258. Ii.invalidSprites[i4] = Ii.invalidSprites[i4].concat(a2);
  9259. }), Ne(Ii.invalidSprites, function(t4, e4) {
  9260. e4.length > 0 && (o3 = true);
  9261. }), Ne(Ii.invalidDatas, function(t4, e4) {
  9262. e4.length > 0 && (o3 = true);
  9263. }), Ut(oe(this.animations), function(t4) {
  9264. t4.update();
  9265. }), Ne(Ii.invalidLayouts, function(e4) {
  9266. t3.validateLayouts(e4);
  9267. }), Ne(Ii.invalidPositions, function(e4) {
  9268. t3.validatePositions(e4);
  9269. }), Ve(), Ne(Ii.invalidLayouts, function(e4) {
  9270. t3.validateLayouts(e4);
  9271. }), Ne(Ii.invalidPositions, function(e4) {
  9272. t3.validatePositions(e4);
  9273. }), Ii.dispatchImmediately("exitframe"), (o3 || this.animations.length > 0 || [].length > 0) && this.requestFrame(), this.updateStepDuration < 200) {
  9274. var l2 = true;
  9275. Ne(Ii.invalidDatas, function(t4, e4) {
  9276. e4.length > 0 && (l2 = false);
  9277. }), Ne(Ii.invalidSprites, function(t4, e4) {
  9278. e4.length > 0 && (l2 = false);
  9279. }), l2 && (this.updateStepDuration = 200);
  9280. }
  9281. }
  9282. }, t2.prototype.checkIfValidate2 = function(t3) {
  9283. return !(t3.dataItem && t3.dataItem.component && t3.dataItem.component.dataInvalid && !t3.dataItem.component.isTemplate);
  9284. }, t2.prototype.requestFrame = function() {
  9285. var t3 = this;
  9286. this._frameRequested || (Oe(function() {
  9287. t3.update();
  9288. }), this._frameRequested = true);
  9289. }, t2.prototype.softInvalidate = function(t3) {
  9290. var e3 = this;
  9291. t3.children.each(function(t4) {
  9292. t4 instanceof $a && e3.softInvalidate(t4), t4.measureFailed && (Di(t4, "Label") ? t4.hardInvalidate() : t4.invalidate(), t4.measureFailed = false);
  9293. });
  9294. }, t2.prototype.validatePositions = function(t3) {
  9295. for (var e3 = Ii.invalidPositions[t3]; e3.length > 0; ) {
  9296. var i3 = e3[e3.length - 1];
  9297. if (i3.isDisposed())
  9298. ee(e3, i3);
  9299. else
  9300. try {
  9301. i3._systemValidatePositions();
  9302. } catch (t4) {
  9303. i3.positionInvalid = false, ee(e3, i3), i3.raiseCriticalError(t4);
  9304. }
  9305. }
  9306. }, t2.prototype.validateLayouts = function(t3) {
  9307. for (var e3 = Ii.invalidLayouts[t3]; e3.length > 0; ) {
  9308. var i3 = e3[e3.length - 1];
  9309. if (i3.isDisposed())
  9310. ee(e3, i3);
  9311. else
  9312. try {
  9313. i3.children.each(function(t4) {
  9314. t4._systemValidateLayouts();
  9315. }), i3.validateLayout();
  9316. } catch (t4) {
  9317. i3.layoutInvalid = false, ee(e3, i3), i3.raiseCriticalError(t4);
  9318. }
  9319. }
  9320. }, t2.prototype.log = function(t3) {
  9321. !function() {
  9322. for (var t4 = [], e3 = 0; e3 < arguments.length; e3++)
  9323. t4[e3] = arguments[e3];
  9324. ls.verbose && console && console.log.apply(console, T(t4));
  9325. }(t3);
  9326. }, Object.defineProperty(t2.prototype, "isPaused", { get: function() {
  9327. return this._isPaused;
  9328. }, set: function(t3) {
  9329. this._isPaused = t3, t3 || (this._frameRequested = false, this.requestFrame());
  9330. }, enumerable: true, configurable: true }), t2.VERSION = "4.10.24", t2;
  9331. }(), Qa = new Ja(), to = function() {
  9332. function t2() {
  9333. }
  9334. return t2.prototype.parse = function(t3) {
  9335. return [];
  9336. }, Object.defineProperty(t2.prototype, "parsableNumbers", { get: function() {
  9337. return this.options.numberFields && this.options.numberFields.length > 0;
  9338. }, enumerable: true, configurable: true }), t2.prototype.maybeToNumber = function(t3, e3) {
  9339. return this.options.numberFields.indexOf(t3) !== -1 ? tr(e3) : e3;
  9340. }, Object.defineProperty(t2.prototype, "parsableDates", { get: function() {
  9341. return this.options.dateFields && this.options.dateFields.length > 0;
  9342. }, enumerable: true, configurable: true }), t2.prototype.maybeToDate = function(t3, e3) {
  9343. return this.options.dateFields.indexOf(t3) !== -1 ? this.options.dateFormatter.parse(e3, this.dateFormat) : e3;
  9344. }, t2.prototype.maybeToEmpty = function(t3) {
  9345. return Z(t3) && t3 != "" || !Z(this.options.emptyAs) ? t3 : this.options.emptyAs;
  9346. }, Object.defineProperty(t2.prototype, "dateFormatter", { get: function() {
  9347. return this.options.dateFormatter || (this.options.dateFormatter = new Ma(), this.options.dateFormat && (this.options.dateFormat = this.options.dateFormat)), this.options.dateFormatter;
  9348. }, enumerable: true, configurable: true }), Object.defineProperty(t2.prototype, "dateFormat", { get: function() {
  9349. return this.options.dateFormat || this.dateFormatter.inputDateFormat;
  9350. }, enumerable: true, configurable: true }), t2;
  9351. }(), eo = [",", ";", " "], io = function(t2) {
  9352. function e3() {
  9353. var e4 = t2 !== null && t2.apply(this, arguments) || this;
  9354. return e4.contentType = "text/csv", e4.options = { delimiter: "", reverse: false, skipRows: 0, skipEmpty: true, useColumnNames: false }, e4;
  9355. }
  9356. return C(e3, t2), e3.isCSV = function(t3) {
  9357. return !!e3.getDelimiterFromData(t3);
  9358. }, e3.getDelimiterFromData = function(t3) {
  9359. var e4, i3 = t3.split("\n"), n3 = i3.length;
  9360. return Ut(eo, function(t4) {
  9361. for (var r3 = 0, s2 = 0, a2 = 0; a2 < n3; ++a2) {
  9362. if (!((r3 = i3[a2].split(t4).length) > 1)) {
  9363. s2 = 0;
  9364. break;
  9365. }
  9366. if (s2 === 0)
  9367. s2 = r3;
  9368. else if (r3 != s2) {
  9369. s2 = 0;
  9370. break;
  9371. }
  9372. }
  9373. s2 && (e4 = t4);
  9374. }), e4;
  9375. }, e3.prototype.parse = function(t3) {
  9376. this.options.delimiter || (this.options.delimiter = e3.getDelimiterFromData(t3));
  9377. var i3, n3, r3, s2 = this.CSVToArray(t3, this.options.delimiter), a2 = Z(this.options.emptyAs), o3 = this.parsableNumbers, l2 = this.parsableDates, h2 = [], p2 = [];
  9378. for (n3 = 0; n3 < this.options.skipRows; n3++)
  9379. s2.shift();
  9380. if (this.options.useColumnNames) {
  9381. p2 = s2.shift();
  9382. for (var u2 = 0; u2 < p2.length; u2++)
  9383. (i3 = Z(p2[u2]) ? p2[u2].replace(/^\s+|\s+$/gm, "") : "") === "" && (i3 = "col" + u2), p2[u2] = i3;
  9384. }
  9385. for (; r3 = this.options.reverse ? s2.pop() : s2.shift(); )
  9386. if (!this.options.skipEmpty || r3.length !== 1 || r3[0] !== "") {
  9387. var d2 = {};
  9388. for (n3 = 0; n3 < r3.length; n3++)
  9389. d2[i3 = p2[n3] === void 0 ? "col" + n3 : p2[n3]] = r3[n3] === "" ? this.options.emptyAs : r3[n3], a2 && (d2[i3] = this.maybeToEmpty(d2[i3])), o3 && (d2[i3] = this.maybeToNumber(i3, d2[i3])), l2 && (d2[i3] = this.maybeToDate(i3, d2[i3]));
  9390. h2.push(d2);
  9391. }
  9392. return h2;
  9393. }, e3.prototype.CSVToArray = function(t3, e4) {
  9394. e4 = e4 || ",";
  9395. for (var i3 = new RegExp("(\\" + e4 + '|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\' + e4 + "\\r\\n]*))", "gi"), n3 = [[]], r3 = null; r3 = i3.exec(t3); ) {
  9396. var s2, a2 = r3[1];
  9397. a2.length && a2 !== e4 && n3.push([]), s2 = r3[2] ? r3[2].replace(new RegExp('""', "g"), '"') : r3[3], n3[n3.length - 1].push(s2);
  9398. }
  9399. return n3;
  9400. }, e3;
  9401. }(to), no = function(t2) {
  9402. function e3() {
  9403. var e4 = t2 !== null && t2.apply(this, arguments) || this;
  9404. return e4.contentType = "application/json", e4.options = {}, e4;
  9405. }
  9406. return C(e3, t2), e3.isJSON = function(t3) {
  9407. try {
  9408. return JSON.parse(t3), true;
  9409. } catch (t4) {
  9410. return false;
  9411. }
  9412. }, e3.prototype.parse = function(t3) {
  9413. var e4, i3 = this;
  9414. try {
  9415. Z(JSON) && (e4 = JSON.parse(t3));
  9416. } catch (t4) {
  9417. return;
  9418. }
  9419. var n3 = Z(this.options.emptyAs), r3 = this.parsableNumbers, s2 = this.parsableDates;
  9420. if (Array.isArray(e4) && (r3 || s2 || n3))
  9421. for (var a2 = function(t4, a3) {
  9422. var o4 = e4[t4];
  9423. Ne(o4, function(t5, e5) {
  9424. n3 && (o4[t5] = i3.maybeToEmpty(o4[t5])), r3 && (o4[t5] = i3.maybeToNumber(t5, o4[t5])), s2 && (o4[t5] = i3.maybeToDate(t5, o4[t5]));
  9425. });
  9426. }, o3 = 0, l2 = e4.length; o3 < l2; o3++)
  9427. a2(o3);
  9428. return e4;
  9429. }, e3;
  9430. }(to), ro = function() {
  9431. function t2() {
  9432. this.adapter = new Yi(this);
  9433. }
  9434. return t2.prototype.load = function(t3) {
  9435. var e3 = zt(Array.isArray(t3) ? t3 : [t3], function(t4) {
  9436. return t4.dispatchImmediately("started"), t4.dispatchImmediately("loadstarted"), Ha(t4.url, t4, t4.requestOptions);
  9437. });
  9438. Promise.all(e3).then(function(t4) {
  9439. Ut(t4, function(t5) {
  9440. var e4 = t5.target;
  9441. e4.dispatchImmediately("loadended"), t5.error ? e4.events.isEnabled("error") && e4.events.dispatchImmediately("error", { type: "error", code: t5.xhr.status, message: e4.language.translate("Unable to load file: %1", null, e4.url), target: e4 }) : e4.processData(t5.response, t5.type), e4.dispatchImmediately("ended");
  9442. });
  9443. }).catch(function(t4) {
  9444. t4.target && (t4.target.dispatchImmediately("loadended"), t4.target.events.isEnabled("error") && t4.target.events.dispatchImmediately("error", { type: "error", code: t4.xhr.status, message: t4.target.language.translate("Unable to load file: %1", null, t4.target.url), target: t4.target }), t4.target.dispatchImmediately("ended"));
  9445. });
  9446. }, t2.prototype.getParserByType = function(t3) {
  9447. return this.adapter.apply("getParserByType", { parser: null, type: t3 }).parser || (t3 == "csv" || t3 == "text/csv" || t3 == "application/vnd.ms-excel" ? new io() : t3 == "json" || t3 == "application/json" ? new no() : void 0);
  9448. }, t2.prototype.getParserByData = function(t3, e3) {
  9449. var i3 = this.adapter.apply("getParserByData", { parser: null, data: t3, type: e3 }).parser;
  9450. if (!i3) {
  9451. if (i3 = this.getParserByType(e3))
  9452. return i3;
  9453. if (no.isJSON(t3))
  9454. return this.getParserByType("json");
  9455. if (io.isCSV(t3))
  9456. return this.getParserByType("csv");
  9457. }
  9458. return i3;
  9459. }, t2;
  9460. }(), so = new ro(), ao = function(t2) {
  9461. function e3(e4, i3) {
  9462. var n3 = t2.call(this) || this;
  9463. return n3.adapter = new Yi(n3), n3._requestOptions = {}, n3._incremental = false, n3._incrementalParams = {}, n3._keepCount = false, n3._updateCurrentData = false, n3.showPreloader = true, n3.className = "DataSource", e4 && (n3.url = e4), i3 && (n3.parser = typeof i3 == "string" ? so.getParserByType(i3) : i3), n3;
  9464. }
  9465. return C(e3, t2), e3.prototype.processData = function(t3, e4) {
  9466. if (this.dispatchImmediately("parsestarted"), this.parser || (this.parser = so.getParserByData(t3, e4), this.parser)) {
  9467. if (this.parser.options = this.adapter.apply("parserOptions", this.parser.options), this.parser.options.dateFields = this.adapter.apply("dateFields", this.parser.options.dateFields || []), this.parser.options.numberFields = this.adapter.apply("numberFields", this.parser.options.numberFields || []), this.parser.options.dateFields && !this.parser.options.dateFormatter && (this.parser.options.dateFormatter = this.dateFormatter), this.data = this.adapter.apply("parsedData", this.parser.parse(this.adapter.apply("unparsedData", t3))), !Z(this.data) && this.events.isEnabled("parseerror")) {
  9468. var i3 = { type: "parseerror", message: this.language.translate("Error parsing file: %1", null, this.url), target: this };
  9469. this.events.dispatchImmediately("parseerror", i3);
  9470. }
  9471. this.dispatchImmediately("parseended"), Z(this.data) && this.dispatchImmediately("done", { data: this.data }), this.lastLoad = new Date();
  9472. } else {
  9473. if (this.events.isEnabled("parseerror")) {
  9474. var n3 = { type: "parseerror", message: this.language.translate("No parser available for file: %1", null, this.url), target: this };
  9475. this.events.dispatchImmediately("parseerror", n3);
  9476. }
  9477. this.dispatchImmediately("parseended");
  9478. }
  9479. }, Object.defineProperty(e3.prototype, "url", { get: function() {
  9480. var t3 = this.disableCache ? this.timestampUrl(this._url) : this._url;
  9481. return this.incremental && this.component.data.length && (t3 = this.addUrlParams(t3, this.incrementalParams)), this.adapter.apply("url", t3);
  9482. }, set: function(t3) {
  9483. this._url = t3;
  9484. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "requestOptions", { get: function() {
  9485. return this.adapter.apply("requestOptions", this._requestOptions);
  9486. }, set: function(t3) {
  9487. this._requestOptions = t3;
  9488. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "parser", { get: function() {
  9489. return this._parser || (this._parser = new no()), this.adapter.apply("parser", this._parser);
  9490. }, set: function(t3) {
  9491. this._parser = t3;
  9492. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "reloadFrequency", { get: function() {
  9493. return this.adapter.apply("reloadTimeout", this._reloadFrequency);
  9494. }, set: function(t3) {
  9495. var e4 = this;
  9496. this._reloadFrequency != t3 && (this._reloadFrequency = t3, t3 ? Z(this._reloadDisposer) || (this._reloadDisposer = this.events.on("ended", function(t4) {
  9497. e4._reloadTimeout = setTimeout(function() {
  9498. e4.load();
  9499. }, e4.reloadFrequency);
  9500. })) : Z(this._reloadDisposer) && (this._reloadDisposer.dispose(), this._reloadDisposer = void 0));
  9501. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "incremental", { get: function() {
  9502. return this.adapter.apply("incremental", this._incremental);
  9503. }, set: function(t3) {
  9504. this._incremental = t3;
  9505. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "incrementalParams", { get: function() {
  9506. return this.adapter.apply("incrementalParams", this._incrementalParams);
  9507. }, set: function(t3) {
  9508. this._incrementalParams = t3;
  9509. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keepCount", { get: function() {
  9510. return this.adapter.apply("keepCount", this._keepCount);
  9511. }, set: function(t3) {
  9512. this._keepCount = t3;
  9513. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "updateCurrentData", { get: function() {
  9514. return this.adapter.apply("updateCurrentData", this._updateCurrentData);
  9515. }, set: function(t3) {
  9516. this._updateCurrentData = t3;
  9517. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "language", { get: function() {
  9518. return this._language ? this._language : this.component ? (this._language = this.component.language, this._language) : (this.language = new Ta(), this.language);
  9519. }, set: function(t3) {
  9520. this._language = t3;
  9521. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateFormatter", { get: function() {
  9522. return this._dateFormatter ? this._dateFormatter : this.component ? (this._dateFormatter = this.component.dateFormatter, this._dateFormatter) : (this.dateFormatter = new Ma(), this.dateFormatter);
  9523. }, set: function(t3) {
  9524. this._dateFormatter = t3;
  9525. }, enumerable: true, configurable: true }), e3.prototype.timestampUrl = function(t3) {
  9526. var e4 = {};
  9527. return e4[new Date().getTime().toString()] = "", this.addUrlParams(t3, e4);
  9528. }, e3.prototype.dispose = function() {
  9529. t2.prototype.dispose.call(this), this._reloadTimeout && clearTimeout(this._reloadTimeout), Z(this._reloadDisposer) && (this._reloadDisposer.dispose(), this._reloadDisposer = void 0);
  9530. }, e3.prototype.load = function() {
  9531. this.url && (this._reloadTimeout && clearTimeout(this._reloadTimeout), so.load(this));
  9532. }, e3.prototype.addUrlParams = function(t3, e4) {
  9533. var i3 = t3.match(/\?/) ? "&" : "?", n3 = [];
  9534. return Ne(e4, function(t4, e5) {
  9535. e5 != "" ? n3.push(t4 + "=" + encodeURIComponent(e5)) : n3.push(t4);
  9536. }), n3.length ? t3 + i3 + n3.join("&") : t3;
  9537. }, e3.prototype.processConfig = function(e4) {
  9538. Ii.registeredClasses.json = no, Ii.registeredClasses.JSONParser = no, Ii.registeredClasses.csv = io, Ii.registeredClasses.CSVParser = io, t2.prototype.processConfig.call(this, e4);
  9539. }, e3;
  9540. }(mn), oo = function(t2) {
  9541. function e3() {
  9542. var e4 = t2.call(this) || this;
  9543. return e4._rules = new Fi(), e4._appliedRules = {}, e4._appliedTargets = [], e4._useDefault = true, e4.adapter = new Yi(e4), e4._enabled = false, e4._responsiveDisposers = [], e4._noStates = [], e4.className = "Responsive", e4.rules.events.on("inserted", function() {
  9544. e4.checkRules();
  9545. }, true), e4.rules.events.on("removed", function() {
  9546. e4.checkRules();
  9547. }, true), e4._disposers.push(e4.rules.events), e4.applyTheme(), e4;
  9548. }
  9549. return C(e3, t2), Object.defineProperty(e3.prototype, "component", { get: function() {
  9550. return this._component;
  9551. }, set: function(t3) {
  9552. var e4 = this;
  9553. t3 != this._component && (this.disposeResponsiveHandlers(), this._component = t3, this._responsiveDisposers.push(q(this.component).events.on("sizechanged", function() {
  9554. e4.checkRules();
  9555. }, this)), this._responsiveDisposers.push(q(this.component).events.on("datavalidated", function() {
  9556. e4._component.isReady() && e4.checkRules(true);
  9557. }, this)), this.enabled = true);
  9558. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "enabled", { get: function() {
  9559. return this.adapter.apply("enabled", this._enabled);
  9560. }, set: function(t3) {
  9561. this._enabled != t3 && (this._enabled = t3, this.applyRules());
  9562. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "useDefault", { get: function() {
  9563. return this.adapter.apply("useDefault", this._useDefault);
  9564. }, set: function(t3) {
  9565. this._useDefault != t3 && (this._useDefault = t3, this.applyRules());
  9566. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rules", { get: function() {
  9567. return this.adapter.apply("rules", this._rules);
  9568. }, set: function(t3) {
  9569. this._rules = t3, this._enabled = true, this.applyRules();
  9570. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "defaultRules", { get: function() {
  9571. return this.adapter.apply("defaultRules", lo);
  9572. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "allRules", { get: function() {
  9573. var t3 = new Fi();
  9574. return this.useDefault && t3.copyFrom(this.defaultRules), t3.copyFrom(this.rules), this.adapter.apply("allRules", t3);
  9575. }, enumerable: true, configurable: true }), e3.prototype.isApplied = function(t3) {
  9576. var e4 = this._appliedRules[t3];
  9577. return !!Z(e4) && e4;
  9578. }, e3.prototype.checkRules = function(t3) {
  9579. var e4 = this;
  9580. t3 === void 0 && (t3 = false);
  9581. var i3 = this.allRules;
  9582. if (i3 && i3.length != 0) {
  9583. var n3 = false, r3 = q(this.component);
  9584. if (ti(i3.iterator(), function(t4) {
  9585. t4.id || (t4.id = Ii.getUniqueId());
  9586. var i4 = t4.relevant(r3);
  9587. (i4 && !e4.isApplied(t4.id) || !i4 && e4.isApplied(t4.id)) && (n3 = true), e4._appliedRules[t4.id] = i4;
  9588. }), t3 && (n3 = true), n3) {
  9589. if (!this.component.isReady())
  9590. return r3.hidden = true, void r3.events.once("ready", function(t4) {
  9591. t4.target.show(0), e4.applyRules();
  9592. });
  9593. this.dispatchImmediately("ruleschanged"), this.applyRules();
  9594. }
  9595. }
  9596. }, e3.prototype.applyRules = function(t3) {
  9597. var e4 = this, i3 = Z(t3) ? t3 : q(this.component), n3 = false;
  9598. if (this.enabled) {
  9599. var r3 = false;
  9600. ti(this.allRules.iterator(), function(t4) {
  9601. var s2 = e4.getState(t4, i3);
  9602. s2 && (n3 || (Xt(e4._appliedTargets, i3.uid) !== -1 && i3.setState(e4.getDefaultState(i3), 0), n3 = true), e4.isApplied(q(t4.id)) && (s2.transitionDuration = 0, e4.setTargetState(i3, s2), e4.dispatchImmediately("ruleapplied", { rule: t4 }), r3 = true));
  9603. }), r3 ? re(this._appliedTargets, i3.uid) : ee(this._appliedTargets, i3.uid);
  9604. }
  9605. i3.children && ti(i3.children.iterator(), function(t4) {
  9606. e4.applyRules(t4);
  9607. });
  9608. }, e3.prototype.getState = function(t3, e4) {
  9609. var i3 = "responsive-" + t3.id, n3 = e4.uid + "_" + i3;
  9610. if (Xt(this._noStates, n3) === -1) {
  9611. if (e4.states.hasKey(i3))
  9612. return e4.states.getKey(i3);
  9613. var r3 = t3.state(e4, i3);
  9614. return r3 || this._noStates.push(n3), r3;
  9615. }
  9616. }, e3.prototype.getDefaultState = function(t3) {
  9617. return t3.states.hasKey("responsive-default") ? t3.states.getKey("responsive-default") : t3.states.create("responsive-default");
  9618. }, e3.prototype.setTargetState = function(t3, e4) {
  9619. var i3 = this, n3 = this.getDefaultState(t3);
  9620. Ne(e4.properties, function(e5, r3) {
  9621. Z(n3.properties[e5]) || (n3.properties[e5] = i3.getValue(t3, e5));
  9622. }), t3.setState(e4);
  9623. }, e3.prototype.getValue = function(t3, e4) {
  9624. var i3 = t3.getPropertyValue(e4);
  9625. return !Z(i3) && Z(t3[e4]) && (i3 = t3[e4]), i3;
  9626. }, e3.prototype.dispose = function() {
  9627. this.disposeResponsiveHandlers(), t2.prototype.dispose.call(this);
  9628. }, e3.prototype.disposeResponsiveHandlers = function() {
  9629. for (var t3 = this._responsiveDisposers.pop(); t3; )
  9630. t3.dispose(), t3 = this._responsiveDisposers.pop();
  9631. }, e3;
  9632. }(mn), lo = new Fi();
  9633. lo.events.on("inserted", function(t2) {
  9634. t2.newValue.id = Ii.getUniqueId();
  9635. });
  9636. var ho = function() {
  9637. function t2() {
  9638. }
  9639. return t2.widthXXS = function(e3) {
  9640. return e3.pixelWidth <= t2.XXS;
  9641. }, t2.widthXS = function(e3) {
  9642. return e3.pixelWidth <= t2.XS;
  9643. }, t2.widthS = function(e3) {
  9644. return e3.pixelWidth <= t2.S;
  9645. }, t2.widthM = function(e3) {
  9646. return e3.pixelWidth <= t2.M;
  9647. }, t2.widthL = function(e3) {
  9648. return e3.pixelWidth <= t2.L;
  9649. }, t2.widthXL = function(e3) {
  9650. return e3.pixelWidth <= t2.XL;
  9651. }, t2.widthXXL = function(e3) {
  9652. return e3.pixelWidth <= t2.XXL;
  9653. }, t2.heightXXS = function(e3) {
  9654. return e3.pixelHeight <= t2.XXS;
  9655. }, t2.heightXS = function(e3) {
  9656. return e3.pixelHeight <= t2.XS;
  9657. }, t2.heightS = function(e3) {
  9658. return e3.pixelHeight <= t2.S;
  9659. }, t2.heightM = function(e3) {
  9660. return e3.pixelHeight <= t2.M;
  9661. }, t2.heightL = function(e3) {
  9662. return e3.pixelHeight <= t2.L;
  9663. }, t2.heightXL = function(e3) {
  9664. return e3.pixelHeight <= t2.XL;
  9665. }, t2.heightXXL = function(e3) {
  9666. return e3.pixelHeight <= t2.XXL;
  9667. }, t2.isXXS = function(e3) {
  9668. return e3.pixelWidth <= t2.XXS && e3.pixelHeight <= t2.XXS;
  9669. }, t2.isXS = function(e3) {
  9670. return e3.pixelWidth <= t2.XS && e3.pixelHeight <= t2.XS;
  9671. }, t2.isS = function(e3) {
  9672. return e3.pixelWidth <= t2.S && e3.pixelHeight <= t2.S;
  9673. }, t2.isM = function(e3) {
  9674. return e3.pixelWidth <= t2.M && e3.pixelHeight <= t2.M;
  9675. }, t2.isL = function(e3) {
  9676. return e3.pixelWidth <= t2.L && e3.pixelHeight <= t2.L;
  9677. }, t2.isXL = function(e3) {
  9678. return e3.pixelWidth <= t2.XL && e3.pixelHeight <= t2.XL;
  9679. }, t2.isXXL = function(e3) {
  9680. return e3.pixelWidth <= t2.XXL && e3.pixelHeight <= t2.XXL;
  9681. }, t2.maybeXXS = function(e3) {
  9682. return e3.pixelWidth <= t2.XXS || e3.pixelHeight <= t2.XXS;
  9683. }, t2.maybeXS = function(e3) {
  9684. return e3.pixelWidth <= t2.XS || e3.pixelHeight <= t2.XS;
  9685. }, t2.maybeS = function(e3) {
  9686. return e3.pixelWidth <= t2.S || e3.pixelHeight <= t2.S;
  9687. }, t2.maybeM = function(e3) {
  9688. return e3.pixelWidth <= t2.M || e3.pixelHeight <= t2.M;
  9689. }, t2.maybeL = function(e3) {
  9690. return e3.pixelWidth <= t2.L || e3.pixelHeight <= t2.L;
  9691. }, t2.maybeXL = function(e3) {
  9692. return e3.pixelWidth <= t2.XL || e3.pixelHeight <= t2.XL;
  9693. }, t2.maybeXXL = function(e3) {
  9694. return e3.pixelWidth <= t2.XXL || e3.pixelHeight <= t2.XXL;
  9695. }, t2.XXS = 100, t2.XS = 200, t2.S = 300, t2.M = 400, t2.L = 600, t2.XL = 800, t2.XXL = 1e3, t2;
  9696. }(), po = function(t2) {
  9697. function e3() {
  9698. var e4 = t2.call(this) || this;
  9699. return e4._disabled = false, e4.hasProperties = false, e4.values = {}, e4.categories = {}, e4.dates = {}, e4.locations = {}, e4.workingLocations = {}, e4.properties = {}, e4.sprites = [], e4.isTemplate = false, e4._index = null, e4._visible = true, e4._hidden = false, e4._ignoreMinMax = false, e4.hasChildren = {}, e4.isHiding = false, e4._valueAnimations = {}, e4._locationAnimations = {}, e4.className = "DataItem", e4.applyTheme(), e4;
  9700. }
  9701. return C(e3, t2), Object.defineProperty(e3.prototype, "adapter", { get: function() {
  9702. return this._adapterO || (this._adapterO = new Yi(this)), this._adapterO;
  9703. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "index", { get: function() {
  9704. return this.component && this._index != null ? this._index : -1;
  9705. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animations", { get: function() {
  9706. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  9707. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "visible", { get: function() {
  9708. return !this._hidden && this._visible;
  9709. }, set: function(t3) {
  9710. t3 && (this.hidden = false), this._visible != t3 && this.setVisibility(t3);
  9711. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hidden", { get: function() {
  9712. return this._hidden;
  9713. }, set: function(t3) {
  9714. this._hidden != t3 && (this._hidden = t3, t3 ? this.setVisibility(false) : this.setVisibility(true, true));
  9715. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "__disabled", { get: function() {
  9716. return this._disabled;
  9717. }, set: function(t3) {
  9718. this._disabled = t3, Ut(this.sprites, function(e4) {
  9719. e4.__disabled = t3;
  9720. });
  9721. }, enumerable: true, configurable: true }), e3.prototype.setVisibility = function(t3, e4) {
  9722. if (Ut(this.sprites, function(e5) {
  9723. t3 ? e5.visible = e5.defaultState.properties.visible : e5.hiddenState ? e5.visible = e5.hiddenState.properties.visible : e5.visible = false;
  9724. }), this._visible = t3, this._eventDispatcher && !this.__disabled && this.events.isEnabled("visibilitychanged")) {
  9725. var i3 = { type: "visibilitychanged", target: this, visible: t3 };
  9726. this.events.dispatchImmediately("visibilitychanged", i3);
  9727. }
  9728. }, e3.prototype.show = function(t3, e4, i3) {
  9729. var n3, r3 = this;
  9730. if (!this.hidden)
  9731. return this.setVisibility(true, true), this.isHiding = false, this._hideDisposer && this.removeDispose(this._hideDisposer), i3 && Ut(i3, function(i4) {
  9732. n3 = r3.setWorkingValue(i4, r3.values[i4].value, t3, e4);
  9733. }), Ut(this.sprites, function(i4) {
  9734. var n4 = i4.show(t3);
  9735. n4 == null || n4.isFinished() || (r3._disposers.push(n4), e4 != null && e4 > 0 && n4.delay(e4));
  9736. }), n3;
  9737. }, e3.prototype.dispose = function() {
  9738. t2.prototype.dispose.call(this), Ut(this.sprites, function(t3) {
  9739. t3.dispose();
  9740. }), this.sprites = [];
  9741. }, e3.prototype.hide = function(t3, e4, i3, n3) {
  9742. var r3 = this;
  9743. if (this.isHiding = true, Ut(this.sprites, function(i4) {
  9744. var n4 = i4.hide(t3);
  9745. n4 == null || n4.isFinished() || (r3._disposers.push(n4), e4 != null && e4 > 0 && n4.delay(e4));
  9746. }), tt(i3) && n3) {
  9747. var s2;
  9748. if (Ut(n3, function(n4) {
  9749. var a2 = r3.setWorkingValue(n4, i3, t3, e4);
  9750. a2 && (s2 = a2);
  9751. }), s2 && !s2.isFinished())
  9752. return this._hideDisposer = s2.events.on("animationended", function() {
  9753. r3.setVisibility(false, true), r3.isHiding = false;
  9754. }), this._disposers.push(this._hideDisposer), s2;
  9755. this.isHiding = false, this.setVisibility(false, true);
  9756. } else
  9757. this.isHiding = false, this.setVisibility(false);
  9758. }, e3.prototype.getDuration = function(t3) {
  9759. if (!tt(t3)) {
  9760. var e4 = this.component;
  9761. e4 && (t3 = e4.interpolationDuration);
  9762. }
  9763. if (t3 != null)
  9764. return this._adapterO ? this._adapterO.apply("duration", t3) : t3;
  9765. }, e3.prototype.getValue = function(t3, e4) {
  9766. if (t3 && this.component) {
  9767. e4 || (e4 = this.component.dataFields[t3 + "Show"]) || (e4 = "value");
  9768. var i3 = this.values[t3][e4];
  9769. return this._adapterO && this._adapterO.isEnabled("value") ? this._adapterO.apply("value", { value: i3, field: t3 }).value : i3;
  9770. }
  9771. }, e3.prototype.getWorkingValue = function(t3) {
  9772. if (t3 && this.component) {
  9773. var e4 = this.component.dataFields[t3 + "Show"];
  9774. return e4 || (e4 = "workingValue"), this._adapterO ? this._adapterO.apply("workingValue", { workingValue: this.values[t3][e4], field: t3 }).workingValue : this.values[t3][e4];
  9775. }
  9776. }, e3.prototype.getActualWorkingValue = function(t3) {
  9777. return this.values[t3].workingValue;
  9778. }, e3.prototype.setValue = function(t3, e4, i3, n3) {
  9779. var r3 = this.values[t3].value, s2 = this.getDuration(i3);
  9780. if (r3 !== (e4 = U(e4))) {
  9781. if (this.values[t3].value = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("valuechanged")) {
  9782. var a2 = { type: "valuechanged", target: this, property: t3 };
  9783. this.events.dispatchImmediately("valuechanged", a2);
  9784. }
  9785. this.component && this.component.handleDataItemValueChange(this, t3);
  9786. }
  9787. this.setWorkingValue(t3, e4, s2, n3);
  9788. }, e3.prototype.setCalculatedValue = function(t3, e4, i3) {
  9789. if (this.values[t3][i3] !== e4 && tt(e4)) {
  9790. if (this.values[t3][i3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("calculatedvaluechanged")) {
  9791. var n3 = { type: "calculatedvaluechanged", target: this, property: t3 };
  9792. this.events.dispatchImmediately("calculatedvaluechanged", n3);
  9793. }
  9794. this.component && this.component.handleDataItemCalculatedValueChange(this, t3);
  9795. }
  9796. }, e3.prototype.setWorkingValue = function(t3, e4, i3, n3) {
  9797. if (tt(this.values[t3].value)) {
  9798. var r3 = this.getDuration(i3), s2 = this.values[t3].workingValue;
  9799. if (r3 != null && r3 > 0 && tt(s2) && this.component) {
  9800. if (s2 != e4) {
  9801. var a2 = this.animate({ childObject: this.values[t3], property: "workingValue", from: s2, to: e4, dummyData: t3 }, r3, this.component.interpolationEasing);
  9802. return n3 != null && a2.delay(n3), a2.events.on("animationstarted", this.handleInterpolationProgress, this), a2.events.on("animationprogress", this.handleInterpolationProgress, this), a2.events.on("animationended", this.handleInterpolationProgress, this), this._valueAnimations[t3] = a2, a2;
  9803. }
  9804. (o3 = this._valueAnimations[t3]) && o3.stop(), this.values[t3].workingValue = e4;
  9805. } else {
  9806. var o3;
  9807. if ((o3 = this._valueAnimations[t3]) && o3.stop(), this.values[t3].workingValue = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("workingvaluechanged")) {
  9808. var l2 = { type: "workingvaluechanged", target: this, property: t3 };
  9809. this.events.dispatchImmediately("workingvaluechanged", l2);
  9810. }
  9811. this.component && this.component.handleDataItemWorkingValueChange(this, t3);
  9812. }
  9813. }
  9814. }, e3.prototype.setLocation = function(t3, e4, i3, n3) {
  9815. if (this.locations[t3] !== e4) {
  9816. if (this.locations[t3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("locationchanged")) {
  9817. var r3 = { type: "locationchanged", target: this, property: t3 };
  9818. this.events.dispatchImmediately("locationchanged", r3);
  9819. }
  9820. this.component && this.component.handleDataItemValueChange(this, t3), this.setWorkingLocation(t3, e4, i3, n3);
  9821. }
  9822. }, e3.prototype.setWorkingLocation = function(t3, e4, i3, n3) {
  9823. var r3 = this.getDuration(i3), s2 = this.workingLocations[t3];
  9824. if (r3 != null && r3 > 0 && tt(s2) && this.component) {
  9825. if (s2 != e4) {
  9826. var a2 = this.animate({ childObject: this.workingLocations, property: t3, from: s2, to: e4, dummyData: t3 }, r3, this.component.interpolationEasing);
  9827. return n3 != null && a2.delay(n3), a2.events.on("animationstarted", this.handleInterpolationProgress, this), a2.events.on("animationprogress", this.handleInterpolationProgress, this), a2.events.on("animationended", this.handleInterpolationProgress, this), this._locationAnimations[t3] = a2, a2;
  9828. }
  9829. (o3 = this._locationAnimations[t3]) && o3.stop(), this.workingLocations[t3] = e4;
  9830. } else {
  9831. var o3;
  9832. if ((o3 = this._locationAnimations[t3]) && o3.stop(), this.workingLocations[t3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("workinglocationchanged")) {
  9833. var l2 = { type: "workinglocationchanged", target: this, property: t3 };
  9834. this.events.dispatchImmediately("workinglocationchanged", l2);
  9835. }
  9836. this.component && this.component.handleDataItemWorkingLocationChange(this, t3);
  9837. }
  9838. }, e3.prototype.setDate = function(t3, e4, i3) {
  9839. !J(e4) && this.component && (e4 = this.component.dateFormatter.parse(e4)), this.dates[t3] !== e4 && (this.dates[t3] = e4, this.setValue(t3, e4.getTime(), i3));
  9840. }, e3.prototype.getDate = function(t3) {
  9841. return this._adapterO ? this._adapterO.apply("date", { date: this.dates[t3], field: t3 }).date : this.dates[t3];
  9842. }, e3.prototype.setProperty = function(t3, e4) {
  9843. if (this.properties[t3] !== e4) {
  9844. if (this.hasProperties = true, this.properties[t3] = e4, this._eventDispatcher && !this.__disabled && this.events.isEnabled("propertychanged")) {
  9845. var i3 = { type: "propertychanged", target: this, property: t3, value: e4 };
  9846. this.events.dispatchImmediately("propertychanged", i3);
  9847. }
  9848. this.component && this.component.handleDataItemPropertyChange(this, t3);
  9849. }
  9850. }, e3.prototype.setCategory = function(t3, e4) {
  9851. Q(e4) || (e4 = X(e4)), this.categories[t3] !== e4 && (this.categories[t3] = e4);
  9852. }, e3.prototype.copyFrom = function(e4) {
  9853. t2.prototype.copyFrom.call(this, e4), e4.dataContext && (this.dataContext = Tn(e4.dataContext, {})), Sn(e4.locations, this.locations), e4._adapterO && this.adapter.copyFrom(e4._adapterO), this.component = e4.component;
  9854. }, Object.defineProperty(e3.prototype, "opacity", { set: function(t3) {
  9855. Ut(this.sprites, function(e4) {
  9856. e4.opacity = t3;
  9857. });
  9858. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ignoreMinMax", { get: function() {
  9859. return this._ignoreMinMax;
  9860. }, set: function(t3) {
  9861. if (this._ignoreMinMax = t3, this._eventDispatcher && !this.__disabled && this.events.isEnabled("propertychanged")) {
  9862. var e4 = { type: "propertychanged", target: this, property: "ignoreMinMax", value: t3 };
  9863. this.events.dispatchImmediately("propertychanged", e4);
  9864. }
  9865. this.component && this.component.handleDataItemPropertyChange(this, "ignoreMinMax");
  9866. }, enumerable: true, configurable: true }), e3.prototype.animate = function(t3, e4, i3) {
  9867. return new ys(this, t3, e4, i3).start();
  9868. }, e3.prototype.handleInterpolationProgress = function(t3) {
  9869. var e4 = t3.target.animationOptions[0];
  9870. if (e4) {
  9871. if (this._eventDispatcher && !this.__disabled && this.events.isEnabled("workingvaluechanged")) {
  9872. var i3 = { type: "workingvaluechanged", target: this, property: e4.dummyData };
  9873. this.events.dispatchImmediately("workingvaluechanged", i3);
  9874. }
  9875. this.component && this.component.handleDataItemWorkingValueChange(this, e4.dummyData);
  9876. }
  9877. }, e3.prototype.hasValue = function(t3) {
  9878. for (var e4 = 0, i3 = t3.length; e4 < i3; e4++) {
  9879. var n3 = this.values[t3[e4]];
  9880. if (!n3 || !Z(n3.value))
  9881. return false;
  9882. }
  9883. return true;
  9884. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  9885. return this.parent ? this.parent.depth + 1 : 0;
  9886. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dataContext", { get: function() {
  9887. return this._dataContext;
  9888. }, set: function(t3) {
  9889. this._dataContext = t3;
  9890. }, enumerable: true, configurable: true }), e3.prototype.addSprite = function(t3) {
  9891. t3.dataItem && t3.dataItem != this && ee(t3.dataItem.sprites, t3), this.visible || t3.hide(0), this.isHiding && t3.hide(), this.sprites.push(t3), t3.dataItem = this;
  9892. }, e3;
  9893. }(mn), uo = function(t2) {
  9894. function e3() {
  9895. var e4 = t2.call(this) || this;
  9896. return e4.dataFields = {}, e4._dataSources = {}, e4._parseDataFrom = 0, e4._dataDisposers = [], e4._currentDataSetId = "", e4._start = 0, e4._end = 1, e4.skipRangeEvent = false, e4.rangeChangeDuration = 0, e4.rangeChangeEasing = zr, e4.parsingStepDuration = 50, e4.dataInvalid = false, e4.rawDataInvalid = false, e4.dataRangeInvalid = false, e4.dataItemsInvalid = false, e4.interpolationDuration = 0, e4.interpolationEasing = zr, e4.sequencedInterpolation = true, e4.sequencedInterpolationDelay = 0, e4.dataValidationProgress = 0, e4._addAllDataItems = true, e4._usesData = true, e4.className = "Component", e4.minZoomCount = 1, e4.maxZoomCount = 0, e4._dataItems = new Ei(e4.createDataItem()), e4._dataItems.events.on("inserted", e4.handleDataItemAdded, e4, false), e4._dataItems.events.on("removed", e4.handleDataItemRemoved, e4, false), e4._disposers.push(new Ai(e4._dataItems)), e4._disposers.push(e4._dataItems.template), e4.invalidateData(), e4.dataUsers.events.on("inserted", e4.handleDataUserAdded, e4, false), e4._disposers.push(new me(e4._dataDisposers)), e4._start = 0, e4._end = 1, e4.maxZoomDeclination = 1, e4.applyTheme(), e4;
  9897. }
  9898. return C(e3, t2), e3.prototype.createDataItem = function() {
  9899. return new po();
  9900. }, e3.prototype.handleDataUserAdded = function(t3) {
  9901. t3.newValue.dataProvider = this;
  9902. }, e3.prototype.handleDataItemValueChange = function(t3, e4) {
  9903. this.dataItemsInvalid || this.invalidateDataItems();
  9904. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  9905. }, e3.prototype.handleDataItemWorkingLocationChange = function(t3, e4) {
  9906. }, e3.prototype.handleDataItemCalculatedValueChange = function(t3, e4) {
  9907. }, e3.prototype.handleDataItemPropertyChange = function(t3, e4) {
  9908. }, e3.prototype.processDataItem = function(t3, e4) {
  9909. var i3 = this;
  9910. if (t3) {
  9911. e4 || (e4 = {}), t3.dataContext = e4;
  9912. var n3 = false;
  9913. Ne(this.dataFields, function(r3, s2) {
  9914. var a2 = r3, o3 = e4[s2];
  9915. if (i3._adapterO && i3._adapterO.isEnabled("dataContextValue") && (o3 = i3._adapterO.apply("dataContextValue", { field: a2, value: o3, dataItem: t3 }).value), Z(o3))
  9916. if (n3 = true, t3.hasChildren[a2]) {
  9917. var l2 = i3.createDataItem();
  9918. l2.copyFrom(i3.mainDataSet.template);
  9919. var h2 = new Ei(l2);
  9920. h2.events.on("inserted", i3.handleDataItemAdded, i3, false), h2.events.on("removed", i3.handleDataItemRemoved, i3, false), i3._dataDisposers.push(new Ai(h2));
  9921. for (var p2 = o3.length, u2 = 0; u2 < p2; u2++) {
  9922. var d2 = o3[u2], c2 = h2.create();
  9923. c2.parent = t3, i3.processDataItem(c2, d2);
  9924. }
  9925. t3[a2] = h2;
  9926. } else
  9927. t3[a2] = o3;
  9928. }), Ne(this.propertyFields, function(i4, r3) {
  9929. var s2 = i4, a2 = e4[r3];
  9930. Z(a2) && (n3 = true, t3.setProperty(s2, a2));
  9931. }), this._addAllDataItems || n3 || this.mainDataSet.remove(t3);
  9932. }
  9933. }, e3.prototype.updateDataItem = function(t3) {
  9934. var e4 = this;
  9935. if (t3) {
  9936. var i3 = t3.dataContext;
  9937. Ne(this.dataFields, function(n3, r3) {
  9938. var s2 = n3, a2 = i3[r3];
  9939. e4._adapterO && (a2 = e4._adapterO.apply("dataContextValue", { field: s2, value: a2, dataItem: t3 }).value), Z(a2) && (t3.hasChildren[s2] ? t3[s2].each(function(t4) {
  9940. e4.updateDataItem(t4);
  9941. }) : t3[s2] = a2);
  9942. }), Ne(this.propertyFields, function(e5, n3) {
  9943. var r3 = e5, s2 = i3[n3];
  9944. Z(s2) && t3.setProperty(r3, s2);
  9945. });
  9946. }
  9947. }, e3.prototype.validateDataElements = function() {
  9948. for (var t3 = this.endIndex, e4 = this.startIndex; e4 < t3; e4++) {
  9949. var i3 = this.dataItems.getIndex(e4);
  9950. i3 && this.validateDataElement(i3);
  9951. }
  9952. }, e3.prototype.validate = function() {
  9953. this.validateDataElements(), t2.prototype.validate.call(this);
  9954. }, e3.prototype.validateDataElement = function(t3) {
  9955. }, e3.prototype.addData = function(t3, e4, i3) {
  9956. var n3 = this;
  9957. if (!this.dataInvalid && this.inited && (this._parseDataFrom = this.data.length), i3 || (t3 instanceof Array ? Ut(t3, function(t4) {
  9958. n3.data.push(t4);
  9959. }) : this.data.push(t3)), this.inited)
  9960. this.removeData(e4, i3);
  9961. else if (tt(e4))
  9962. for (; e4 > 0; )
  9963. this.data.shift(), e4--;
  9964. this.invalidateData();
  9965. }, e3.prototype.removeData = function(t3, e4) {
  9966. if (tt(t3) && t3 > 0) {
  9967. for (; t3 > 0; ) {
  9968. var i3 = this.mainDataSet.getIndex(0);
  9969. i3 && this.mainDataSet.remove(i3), this.dataUsers.each(function(t4) {
  9970. if (!t4.data || t4.data.length == 0) {
  9971. var e5 = t4.mainDataSet.getIndex(0);
  9972. e5 && t4.mainDataSet.remove(e5);
  9973. }
  9974. }), e4 || this.data.shift(), this._parseDataFrom > 0 && this._parseDataFrom--, t3--;
  9975. }
  9976. this.invalidateDataItems();
  9977. }
  9978. }, e3.prototype.invalidateData = function() {
  9979. this.disabled || this.isTemplate || (Ii.addToInvalidComponents(this), Qa.requestFrame(), this.dataInvalid = true, ti(this.dataUsers.iterator(), function(t3) {
  9980. t3.invalidateDataItems();
  9981. }));
  9982. }, e3.prototype.invalidateDataUsers = function() {
  9983. ti(this.dataUsers.iterator(), function(t3) {
  9984. t3.invalidate();
  9985. });
  9986. }, e3.prototype.invalidateDataItems = function() {
  9987. this.disabled || this.isTemplate || (ie(Ii.invalidDataItems, this), Qa.requestFrame(), this.dataItemsInvalid = true, ti(this.dataUsers.iterator(), function(t3) {
  9988. t3.invalidateDataItems();
  9989. }));
  9990. }, e3.prototype.invalidateDataRange = function() {
  9991. this.disabled || this.isTemplate || (this.dataRangeInvalid = true, ie(Ii.invalidDataRange, this), Qa.requestFrame());
  9992. }, e3.prototype.validateDataRange = function() {
  9993. ee(Ii.invalidDataRange, this), this.dataRangeInvalid = false, this.startIndex == this._prevStartIndex && this.endIndex == this._prevEndIndex || (this.rangeChangeUpdate(), this.appendDataItems(), this.invalidate(), this.dispatchImmediately("datarangechanged"));
  9994. }, e3.prototype.sliceData = function() {
  9995. this._workingStartIndex = this.startIndex, this._workingEndIndex = this.endIndex;
  9996. }, e3.prototype.rangeChangeUpdate = function() {
  9997. this.sliceData(), this._prevStartIndex = this.startIndex, this._prevEndIndex = this.endIndex;
  9998. }, e3.prototype.appendDataItems = function() {
  9999. for (var t3 = this.endIndex, e4 = this.startIndex; e4 < t3; e4++)
  10000. (i3 = this.dataItems.getIndex(e4)) && (i3.__disabled = false);
  10001. for (e4 = 0; e4 < this.startIndex; e4++)
  10002. (i3 = this.dataItems.getIndex(e4)) && (i3.__disabled = true);
  10003. for (e4 = this.endIndex; e4 < this.dataItems.length; e4++) {
  10004. var i3;
  10005. (i3 = this.dataItems.getIndex(e4)) && (i3.__disabled = true);
  10006. }
  10007. }, e3.prototype.invalidateRawData = function() {
  10008. this.disabled || this.isTemplate || (ie(Ii.invalidRawDatas, this), Qa.requestFrame(), this.rawDataInvalid = true, ti(this.dataUsers.iterator(), function(t3) {
  10009. t3.invalidateRawData();
  10010. }));
  10011. }, e3.prototype.validateRawData = function() {
  10012. var t3 = this;
  10013. ee(Ii.invalidRawDatas, this), ti(this.mainDataSet.iterator(), function(e4) {
  10014. e4 && t3.updateDataItem(e4);
  10015. });
  10016. }, e3.prototype.dispose = function() {
  10017. var e4 = this;
  10018. this.mainDataSet.template.clones.clear(), Ne(this._dataSources, function(t3, i3) {
  10019. e4.removeDispose(i3);
  10020. }), this.disposeData(), t2.prototype.dispose.call(this);
  10021. }, e3.prototype.disposeData = function() {
  10022. this.mainDataSet.template.clones.clear(), Ut(this._dataDisposers, function(t3) {
  10023. t3.dispose();
  10024. }), ti(this.dataUsers.iterator(), function(t3) {
  10025. t3.disposeData();
  10026. }), this._dataDisposers.length = 0, this._startIndex = void 0, this._endIndex = void 0, this.mainDataSet.clear(), this.mainDataSet.template.clones.clear(), this._dataSets && this._dataSets.clear();
  10027. }, e3.prototype.getDataItem = function(t3) {
  10028. return this.mainDataSet.create();
  10029. }, e3.prototype.validateData = function() {
  10030. if (this.dispatchImmediately("beforedatavalidated"), this.dataInvalid = false, Ii.removeFromInvalidComponents(this), !this.__disabled) {
  10031. if (this.dataValidationProgress = 0, this._prevStartIndex = void 0, this._prevEndIndex = void 0, this._startIndex = void 0, this._endIndex = void 0, this.dataFields.data && this.dataItem) {
  10032. var t3 = this.dataItem.dataContext;
  10033. this._data = t3[this.dataFields.data];
  10034. }
  10035. if (this._parseDataFrom === 0 && this.data.length > 0 && this.disposeData(), this.data.length > 0) {
  10036. var e4 = this.preloader;
  10037. ti(this.dataUsers.iterator(), function(t4) {
  10038. t4._startIndex = void 0, t4._endIndex = void 0;
  10039. });
  10040. for (var i3 = 0, n3 = Date.now(), r3 = this._parseDataFrom, s2 = this.data.length, a2 = function() {
  10041. var t4 = o3.data[r3];
  10042. if (o3._usesData) {
  10043. var s3 = o3.getDataItem(t4);
  10044. o3.processDataItem(s3, t4);
  10045. }
  10046. if (o3.dataUsers.each(function(e5) {
  10047. if (e5.data.length == 0) {
  10048. var i4 = e5.getDataItem(t4);
  10049. e5.processDataItem(i4, t4);
  10050. }
  10051. }), ++i3 == 100 && (i3 = 0, Date.now() - n3 > o3.parsingStepDuration && r3 < o3.data.length - 10))
  10052. return o3._parseDataFrom = r3 + 1, e4 && (r3 / o3.data.length > 0.5 && !e4.visible || (e4.progress = r3 / o3.data.length)), o3.dataValidationProgress = r3 / o3.data.length, r3 = o3.data.length, o3.invalidateData(), { value: void 0 };
  10053. }, o3 = this; r3 < s2; r3++) {
  10054. var l2 = a2();
  10055. if (typeof l2 == "object")
  10056. return l2.value;
  10057. }
  10058. e4 && (e4.progress = 1), this.dataUsers.each(function(t4) {
  10059. t4.hidden && t4.hide(0);
  10060. });
  10061. }
  10062. this.dataValidationProgress = 1, this._parseDataFrom = 0, this.invalidateDataItems(), this._internalDefaultsApplied || this.applyInternalDefaults(), this.dispatch("datavalidated");
  10063. }
  10064. }, e3.prototype.validateDataItems = function() {
  10065. ee(Ii.invalidDataItems, this), this.dataItemsInvalid = false, this.invalidateDataRange(), this.invalidate(), this.dispatch("dataitemsvalidated");
  10066. }, Object.defineProperty(e3.prototype, "data", { get: function() {
  10067. return this._data || (this._data = []), this._adapterO ? this._adapterO.apply("data", this._data) : this._data;
  10068. }, set: function(t3) {
  10069. this.setData(t3);
  10070. }, enumerable: true, configurable: true }), e3.prototype.setData = function(t3) {
  10071. this.isDisposed() || (this._parseDataFrom = 0, this.disposeData(), this._data = t3, t3 && t3.length > 0 ? this.invalidateData() : (this.dispatchImmediately("beforedatavalidated"), this.dispatch("datavalidated")));
  10072. }, e3.prototype.getDataSource = function(t3) {
  10073. var e4 = this;
  10074. return Z(this._dataSources[t3]) || (this._dataSources[t3] = new ao(), this._dataSources[t3].component = this, this.setDataSourceEvents(this._dataSources[t3], t3), this._dataSources[t3].adapter.add("dateFields", function(t4) {
  10075. return e4.dataSourceDateFields(t4);
  10076. }), this._dataSources[t3].adapter.add("numberFields", function(t4) {
  10077. return e4.dataSourceNumberFields(t4);
  10078. }), this.events.on("inited", function() {
  10079. e4.loadData(t3);
  10080. }, this, false)), this._dataSources[t3];
  10081. }, Object.defineProperty(e3.prototype, "dataSource", { get: function() {
  10082. return this._dataSources.data || this.getDataSource("data"), this._dataSources.data;
  10083. }, set: function(t3) {
  10084. var e4 = this;
  10085. this._dataSources.data && this.removeDispose(this._dataSources.data), this._dataSources.data = t3, this._dataSources.data.component = this, this.events.on("inited", function() {
  10086. e4.loadData("data");
  10087. }, this, false), this.setDataSourceEvents(t3, "data");
  10088. }, enumerable: true, configurable: true }), e3.prototype.loadData = function(t3) {
  10089. this._dataSources[t3].load();
  10090. }, e3.prototype.dataSourceDateFields = function(t3) {
  10091. return t3;
  10092. }, e3.prototype.dataSourceNumberFields = function(t3) {
  10093. return t3;
  10094. }, e3.prototype.populateDataSourceFields = function(t3, e4, i3) {
  10095. return Ut(i3, function(i4) {
  10096. e4[i4] && Xt(t3, e4[i4]) === -1 && t3.push(e4[i4]);
  10097. }), t3;
  10098. }, e3.prototype.setDataSourceEvents = function(t3, e4) {
  10099. var i3 = this;
  10100. t3.events.on("started", function(t4) {
  10101. var e5 = i3.preloader;
  10102. e5 && (e5.progress = 0);
  10103. }, void 0, false), t3.events.on("loadstarted", function(t4) {
  10104. var e5 = i3.preloader;
  10105. e5 && (e5.progress = 0.25);
  10106. }, void 0, false), t3.events.on("loadended", function(t4) {
  10107. var e5 = i3.preloader;
  10108. e5 && (e5.progress = 0.5);
  10109. }, void 0, false), t3.events.on("parseended", function(t4) {
  10110. var e5 = i3.preloader;
  10111. e5 && (e5.progress = 0.75);
  10112. }, void 0, false), t3.events.on("ended", function(t4) {
  10113. var e5 = i3.preloader;
  10114. e5 && (e5.progress = 1);
  10115. }, void 0, false), t3.events.on("error", function(t4) {
  10116. var e5 = i3.preloader;
  10117. e5 && (e5.progress = 1), i3.openModal(t4.message);
  10118. }, void 0, false), e4 && t3.events.on("done", function(n3) {
  10119. var r3 = i3.preloader;
  10120. r3 && (r3.progress = 1), e4 != "data" || it(n3.data) || (n3.data = [n3.data]), t3.incremental && e4 == "data" && i3.data.length ? i3.addData(n3.data, t3.keepCount ? n3.data.length : 0) : t3.updateCurrentData && e4 == "data" && i3.data.length ? (Ut(i3.data, function(t4, e5) {
  10121. Z(n3.data[e5]) && Ne(t4, function(i4, r4) {
  10122. Z(n3.data[e5][i4]) && (t4[i4] = n3.data[e5][i4]);
  10123. });
  10124. }), i3.invalidateRawData()) : i3[e4] = n3.data;
  10125. });
  10126. }, Object.defineProperty(e3.prototype, "responsive", { get: function() {
  10127. return this._responsive || (this._responsive = new oo(), this._responsive.component = this), this._responsive;
  10128. }, set: function(t3) {
  10129. this._responsive = t3, this._responsive.component = this;
  10130. }, enumerable: true, configurable: true }), e3.prototype.zoom = function(t3, e4, i3, n3) {
  10131. var r3 = this;
  10132. e4 === void 0 && (e4 = false), i3 === void 0 && (i3 = false);
  10133. var s2 = t3.start, a2 = t3.end, o3 = t3.priority;
  10134. if (t3.start == t3.end && (t3.start = t3.start - 0.5 / this.maxZoomFactor, t3.end = t3.end + 0.5 / this.maxZoomFactor), o3 == "end" && a2 == 1 && s2 != 0 && s2 < this.start && (o3 = "start"), o3 == "start" && s2 == 0 && a2 > this.end && (o3 = "end"), tt(n3) || (n3 = this.maxZoomDeclination), !tt(s2) || !tt(a2))
  10135. return { start: this.start, end: this.end };
  10136. if (this._finalStart != s2 || this._finalEnd != a2) {
  10137. var l2 = this.maxZoomFactor / this.minZoomCount, h2 = this.maxZoomFactor / this.maxZoomCount;
  10138. if (o3 == "start" ? (this.maxZoomCount > 0 && 1 / (a2 - s2) < h2 && (a2 = s2 + 1 / h2), 1 / (a2 - s2) > l2 && (a2 = s2 + 1 / l2), a2 > 1 && a2 - s2 < 1 / l2 && (s2 = a2 - 1 / l2)) : (this.maxZoomCount > 0 && 1 / (a2 - s2) < h2 && (s2 = a2 - 1 / h2), 1 / (a2 - s2) > l2 && (s2 = a2 - 1 / l2), s2 < 0 && a2 - s2 < 1 / l2 && (a2 = s2 + 1 / l2)), s2 < -n3 && (s2 = -n3), 1 / (a2 - s2) > l2 && (a2 = s2 + 1 / l2), a2 > 1 + n3 && (a2 = 1 + n3), 1 / (a2 - s2) > l2 && (s2 = a2 - 1 / l2), this._finalEnd = a2, this._finalStart = s2, this.skipRangeEvent = e4, this.dispatchImmediately("rangechangestarted"), this.rangeChangeDuration > 0 && !i3) {
  10139. var p2 = this.rangeChangeAnimation;
  10140. if (p2 && p2.progress < 1) {
  10141. var u2 = p2.animationOptions;
  10142. if (u2.length > 1) {
  10143. if (u2[0].to == s2 && u2[1].to == a2)
  10144. return { start: s2, end: a2 };
  10145. p2.isDisposed() || p2.stop();
  10146. }
  10147. }
  10148. this.rangeChangeAnimation && this.rangeChangeAnimation.kill(), p2 = this.animate([{ property: "start", to: s2 }, { property: "end", to: a2 }], this.rangeChangeDuration, this.rangeChangeEasing), this.rangeChangeAnimation = p2, p2 && !p2.isFinished() ? p2.events.on("animationended", function() {
  10149. r3.dispatchImmediately("rangechangeended");
  10150. }) : this.dispatchImmediately("rangechangeended");
  10151. } else
  10152. this.start = s2, this.end = a2, this.dispatch("rangechangeended");
  10153. }
  10154. return { start: s2, end: a2 };
  10155. }, e3.prototype.zoomToIndexes = function(t3, e4, i3, n3) {
  10156. if (tt(t3) && tt(e4)) {
  10157. var r3 = t3 / this.dataItems.length, s2 = e4 / this.dataItems.length;
  10158. this.zoom({ start: r3, end: s2 }, i3, n3);
  10159. }
  10160. }, Object.defineProperty(e3.prototype, "zoomFactor", { get: function() {
  10161. return ut(1 / (this.end - this.start), 1, this.maxZoomFactor);
  10162. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomFactor", { get: function() {
  10163. return this.getPropertyValue("maxZoomFactor");
  10164. }, set: function(t3) {
  10165. this.setPropertyValue("maxZoomFactor", t3) && (t3 == 1 && (this.maxZoomDeclination = 0), this.invalidateDataRange());
  10166. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomDeclination", { get: function() {
  10167. return this.getPropertyValue("maxZoomDeclination");
  10168. }, set: function(t3) {
  10169. this.setPropertyValue("maxZoomDeclination", t3) && this.invalidateDataRange();
  10170. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  10171. return tt(this._startIndex) || (this._startIndex = 0), this._startIndex;
  10172. }, set: function(t3) {
  10173. this._startIndex = ut(Math.round(t3), 0, this.dataItems.length), this.start = this.indexToPosition(this._startIndex);
  10174. }, enumerable: true, configurable: true }), e3.prototype.indexToPosition = function(t3) {
  10175. return t3 / this.dataItems.length;
  10176. }, Object.defineProperty(e3.prototype, "endIndex", { get: function() {
  10177. var t3 = this.dataItems.length;
  10178. return (!tt(this._endIndex) || this._endIndex > t3) && (this._endIndex = t3), this._endIndex;
  10179. }, set: function(t3) {
  10180. this._endIndex = ut(Math.round(t3), 0, this.dataItems.length), this.end = this.indexToPosition(this._endIndex);
  10181. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "start", { get: function() {
  10182. return this._adapterO ? this._adapterO.apply("start", this._start) : this._start;
  10183. }, set: function(t3) {
  10184. if (this._start != t3) {
  10185. this._start = t3;
  10186. var e4 = Math.max(0, Math.floor(this.dataItems.length * t3) || 0);
  10187. this._startIndex = Math.min(e4, this.dataItems.length), this.invalidateDataRange(), this.invalidate(), this.dispatchImmediately("startchanged"), this.dispatch("startendchanged");
  10188. }
  10189. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "end", { get: function() {
  10190. return this._adapterO ? this._adapterO.apply("end", this._end) : this._end;
  10191. }, set: function(t3) {
  10192. this._end != t3 && (this._end = t3, this._endIndex = Math.min(this.dataItems.length, Math.ceil(this.dataItems.length * t3) || 0), this.invalidateDataRange(), this.invalidate(), this.dispatchImmediately("endchanged"), this.dispatch("startendchanged"));
  10193. }, enumerable: true, configurable: true }), e3.prototype.removeFromInvalids = function() {
  10194. t2.prototype.removeFromInvalids.call(this), Ii.removeFromInvalidComponents(this), ee(Ii.invalidDataItems, this), ee(Ii.invalidDataRange, this), ee(Ii.invalidRawDatas, this);
  10195. }, Object.defineProperty(e3.prototype, "dataItems", { get: function() {
  10196. if (this._currentDataSetId != "") {
  10197. var t3 = this.dataSets.getKey(this._currentDataSetId);
  10198. if (t3)
  10199. return t3;
  10200. }
  10201. return this._dataItems;
  10202. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dataSets", { get: function() {
  10203. return this._dataSets || (this._dataSets = new Pi()), this._dataSets;
  10204. }, enumerable: true, configurable: true }), e3.prototype.setDataSet = function(t3) {
  10205. if (this._currentDataSetId != t3) {
  10206. if (this.dataSets.getKey(t3))
  10207. return this.dataItems.each(function(t4) {
  10208. t4.__disabled = true;
  10209. }), this._currentDataSetId = t3, this.invalidateDataRange(), this._prevStartIndex = void 0, this.dataItems.each(function(t4) {
  10210. t4.__disabled = false;
  10211. }), true;
  10212. if (this._currentDataSetId != "")
  10213. return this.dataItems.each(function(t4) {
  10214. t4.__disabled = true;
  10215. }), this._currentDataSetId = "", this.invalidateDataRange(), this._prevStartIndex = void 0, this.dataItems.each(function(t4) {
  10216. t4.__disabled = false;
  10217. }), true;
  10218. }
  10219. return false;
  10220. }, Object.defineProperty(e3.prototype, "currentDataSetId", { get: function() {
  10221. return this._currentDataSetId;
  10222. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mainDataSet", { get: function() {
  10223. return this._dataItems;
  10224. }, enumerable: true, configurable: true }), e3.prototype._updateDataItemIndexes = function(t3) {
  10225. for (var e4 = this.mainDataSet.values, i3 = e4.length, n3 = t3; n3 < i3; ++n3)
  10226. e4[n3]._index = n3;
  10227. }, e3.prototype.handleDataItemAdded = function(t3) {
  10228. t3.newValue.component = this, this._updateDataItemIndexes(t3.index), this.dataItemsInvalid || this.invalidateDataItems();
  10229. }, e3.prototype.handleDataItemRemoved = function(t3) {
  10230. this._updateDataItemIndexes(t3.index), this.dataItemsInvalid || this.invalidateDataItems();
  10231. }, e3.prototype.bindDataField = function(t3, e4) {
  10232. this.dataFields[t3] = e4, this.invalidateDataRange();
  10233. }, e3.prototype.invalidateProcessedData = function() {
  10234. this.resetProcessedRange(), this.invalidateDataRange();
  10235. }, e3.prototype.resetProcessedRange = function() {
  10236. this._prevEndIndex = null, this._prevStartIndex = null;
  10237. }, Object.defineProperty(e3.prototype, "dataUsers", { get: function() {
  10238. var t3 = this;
  10239. return this._dataUsers || (this._dataUsers = new Fi(), this._disposers.push(new ye(function() {
  10240. ti(t3._dataUsers.iterator(), function(t4) {
  10241. t4.dispose();
  10242. });
  10243. }))), this._dataUsers;
  10244. }, enumerable: true, configurable: true }), e3.prototype.clone = function() {
  10245. var e4 = t2.prototype.clone.call(this);
  10246. return e4.dataFields = Sn(this.dataFields, {}), e4;
  10247. }, e3.prototype.copyFrom = function(e4) {
  10248. t2.prototype.copyFrom.call(this, e4), this.data = e4.data, this.sequencedInterpolation = e4.sequencedInterpolation, this.sequencedInterpolationDelay = e4.sequencedInterpolationDelay, this.interpolationDuration = e4.interpolationDuration, this.interpolationEasing = e4.interpolationEasing;
  10249. }, e3.prototype.reinit = function() {
  10250. this._inited = false, this.deepInvalidate();
  10251. }, e3.prototype.getExporting = function() {
  10252. var e4 = t2.prototype.getExporting.call(this);
  10253. return e4.adapter.has("data", this._exportData, -1, this) || (e4.adapter.add("data", this._exportData, -1, this), this.events.on("datavalidated", function(t3) {
  10254. e4.handleDataUpdated();
  10255. })), e4;
  10256. }, e3.prototype._exportData = function(t3) {
  10257. return t3.data = this.data, t3;
  10258. }, e3.prototype.setDisabled = function(e4) {
  10259. var i3 = t2.prototype.setDisabled.call(this, e4);
  10260. return i3 && this.invalidateData(), i3;
  10261. }, e3.prototype.setShowOnInit = function(e4) {
  10262. e4 != this.getPropertyValue("showOnInit") && (!e4 || this.inited || this.hidden ? this._showOnInitDisposer2 && this.removeDispose(this._showOnInitDisposer2) : (this._showOnInitDisposer2 = this.events.once("dataitemsvalidated", this.hideInitially, this, false), this._disposers.push(this._showOnInitDisposer2))), t2.prototype.setShowOnInit.call(this, e4);
  10263. }, e3.prototype.setBaseId = function(e4) {
  10264. e4 != this._baseId && this.dataInvalid && (this.dataInvalid = false, Ii.removeFromInvalidComponents(this), this._baseId = e4, this.invalidateData()), t2.prototype.setBaseId.call(this, e4);
  10265. }, Object.defineProperty(e3.prototype, "minZoomCount", { get: function() {
  10266. return this.getPropertyValue("minZoomCount");
  10267. }, set: function(t3) {
  10268. this.setPropertyValue("minZoomCount", t3);
  10269. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomCount", { get: function() {
  10270. return this.getPropertyValue("maxZoomCount");
  10271. }, set: function(t3) {
  10272. this.setPropertyValue("maxZoomCount", t3);
  10273. }, enumerable: true, configurable: true }), e3.prototype._systemCheckIfValidate = function() {
  10274. return !(this.dataInvalid || this.dataProvider && this.dataProvider.dataInvalid);
  10275. }, e3.prototype.asFunction = function(e4) {
  10276. return e4 == "interpolationEasing" || e4 == "rangeChangeEasing" || t2.prototype.asIs.call(this, e4);
  10277. }, e3;
  10278. }($a);
  10279. Ii.registeredClasses.Component = uo;
  10280. var co = function(t2) {
  10281. function e3() {
  10282. var e4 = t2.call(this) || this;
  10283. return e4.isOversized = false, e4.className = "Label", e4.fill = new Ys().getFor("text"), e4.wrap = false, e4.truncate = false, e4.fullWords = true, e4.ellipsis = "\u2026", e4.textAlign = "start", e4.textValign = "top", e4.layout = "absolute", e4.baseLineRatio = -0.27, e4._positionPrecision = 1, e4.events.on("maxsizechanged", function() {
  10284. e4.inited && e4.handleMaxSize();
  10285. }, e4, false), e4.events.once("validated", e4.handleValidate, e4, false), e4.applyTheme(), e4;
  10286. }
  10287. return C(e3, t2), e3.prototype.afterDraw = function() {
  10288. t2.prototype.afterDraw.call(this), this.validatePosition();
  10289. }, e3.prototype.setPaper = function(e4) {
  10290. var i3 = t2.prototype.setPaper.call(this, e4);
  10291. return i3 && this.hardInvalidate(), i3;
  10292. }, e3.prototype.handleValidate = function() {
  10293. !this.currentText && !this.text || this.bbox.width != 0 && this.bbox.height != 0 || Ii.events.once("exitframe", this.hardInvalidate, this);
  10294. }, e3.prototype.handleMaxSize = function() {
  10295. (this.bbox.width > this.availableWidth || this.bbox.width < this.availableWidth && (this.isOversized || this.truncate) || this.bbox.height > this.availableHeight || this.bbox.height < this.availableHeight && this.isOversized) && this.invalidate();
  10296. }, e3.prototype.arrange = function() {
  10297. }, e3.prototype.updateCurrentText = function() {
  10298. var t3, e4;
  10299. An(this.html) && this.paper.supportsForeignObject() ? (t3 = "html", e4 = this.html) : (t3 = "svg", e4 = this.text), et(e4) && (e4 = e4.toString()), Z(e4) && e4 !== "" && (e4 = this.populateString(e4, this.dataItem)), t3 == "html" ? this._adapterO && (e4 = this._adapterO.apply("htmlOutput", e4)) : this._adapterO && (e4 = this._adapterO.apply("textOutput", e4));
  10300. var i3 = e4 != this.currentText || t3 != this._currentFormat;
  10301. return this.currentText = e4, this._currentFormat = t3, i3;
  10302. }, e3.prototype.hardInvalidate = function() {
  10303. this._prevStatus = "", this.invalidate();
  10304. }, e3.prototype.getLineBBox = function(t3) {
  10305. var e4 = t3 && t3.element, i3 = e4 && e4.node;
  10306. i3 && i3.parentNode && (t3.bbox = e4.getBBox());
  10307. }, e3.prototype.draw = function() {
  10308. t2.prototype.draw.call(this);
  10309. var e4 = this.bbox.width, i3 = this.bbox.height, n3 = this.topParent;
  10310. if (!n3 || n3.maxWidth && n3.maxHeight) {
  10311. var r3 = gt(this.availableWidth - this.pixelPaddingLeft - this.pixelPaddingRight, 0), s2 = gt(this.availableHeight - this.pixelPaddingTop - this.pixelPaddingBottom, 0), a2 = s2 + "," + r3 + this.wrap + this.truncate + this.fullWords + this.rtl + this.ellipsis;
  10312. if (this.updateCurrentText() || !this.inited || this._prevStatus != a2) {
  10313. this._measuredWidth = 0, this._measuredHeight = 0, this.isOversized = false;
  10314. var o3 = this._currentFormat, l2 = this.currentText;
  10315. if (Z(l2) && l2 != "") {
  10316. var h2 = l2.split("\n");
  10317. this._prevStatus = a2, this.textAlign = this.textAlign;
  10318. var p2 = this.group.getAttr("display");
  10319. if (p2 == "none" && this.group.removeAttr("display"), this.textPathElement && this.textPathElement.removeChildren(), o3 === "svg") {
  10320. this.element.removeAttr("display");
  10321. var u2 = this.element;
  10322. this.resetBBox();
  10323. for (var d2 = 0, c2 = "", f2 = 0; f2 < h2.length; f2++) {
  10324. var g2 = h2[f2];
  10325. if (g2 != "") {
  10326. var y2 = Va().chunk(g2, null, this.ignoreFormatting), m2 = 0, v2 = true, b2 = false, x2 = this.getLineInfo(f2);
  10327. x2 ? (x2.text = "", x2.element.textContent = "") : (x2 = { text: "", element: this.getSVGLineElement("", 0), complex: false }, u2.add(x2.element)), x2.element.removeAttr("display"), x2.element.removeChildren(), this.textPathElement && x2.element.add(this.textPathElement);
  10328. for (var _2 = 0; _2 < y2.length; _2++) {
  10329. _2 && (x2.complex = true);
  10330. var P2 = y2[_2];
  10331. if (P2.type === "format")
  10332. c2 = P2.text;
  10333. else {
  10334. if (b2)
  10335. continue;
  10336. if (x2.text = P2.text, x2.style = Va().translateStyleShortcuts(c2), this.textPathElement ? this.getSvgElement(x2.text, x2.style, this.textPathElement) : this.getSvgElement(x2.text, x2.style, x2.element), this.getLineBBox(x2), x2.bbox.width = Math.ceil(x2.bbox.width), m2 < x2.bbox.height && (m2 = x2.bbox.height), (this.wrap || this.truncate) && x2.bbox.width > r3) {
  10337. this.isOversized = true;
  10338. var w2 = x2.element.textContent, C2 = x2.bbox.width / w2.length, O2 = yt(Math.ceil((x2.bbox.width - r3) / C2), w2.length);
  10339. if (this.truncate) {
  10340. var S2 = false, I2 = x2.element.node;
  10341. if (I2 && I2.childNodes)
  10342. for (var D2 = x2.element.node.childNodes.length - 1; D2 >= 0; D2--) {
  10343. var k2 = x2.element.node.childNodes[D2];
  10344. if (S2 && x2.bbox.width <= r3 && (k2.textContent += " " + this.ellipsis, x2.bbox = x2.element.getBBox(), x2.bbox.width = Math.floor(x2.bbox.width), x2.bbox.width <= r3))
  10345. break;
  10346. S2 = false;
  10347. var T2 = k2.textContent;
  10348. for (w2 = x2.element.textContent, O2 = yt(Math.ceil((x2.bbox.width - r3) / C2), w2.length); x2.bbox.width > r3 && O2 <= w2.length && O2 > 0; )
  10349. (F2 = gt(w2.length - O2 - this.ellipsis.length, 1)) <= 1 && (O2 = 0, D2 > 0 && (S2 = true, x2.element.node.removeChild(k2))), (T2 = Nn(T2, F2, this.ellipsis, this.fullWords, this.rtl)).length > F2 && this.fullWords && (T2 = Nn(T2, F2, this.ellipsis, false, this.rtl)), k2.textContent = T2, x2.bbox = x2.element.getBBox(), x2.bbox.width = Math.floor(x2.bbox.width), O2 = Math.ceil(1.1 * O2);
  10350. b2 = true;
  10351. }
  10352. } else if (x2.element.node) {
  10353. for (var A2 = x2.element.node.lastChild, V2 = void 0; x2.bbox.width > r3 && O2 <= w2.length && O2 > 0; ) {
  10354. var F2 = gt(P2.text.length - O2, 1);
  10355. if (v2 ? V2 = Hn(P2.text, F2, true, this.rtl) : ((V2 = Hn(P2.text, F2, true, this.rtl, false))[0].length > F2 || F2 === 1) && (x2.element.node.removeChild(A2), O2 = 0), O2 > 0) {
  10356. var M2 = V2.shift();
  10357. v2 && (M2 = Wn(M2)), A2.textContent = Va().cleanUp(M2);
  10358. }
  10359. x2.bbox = x2.element.getBBox(), x2.bbox.width = Math.floor(x2.bbox.width), O2++;
  10360. }
  10361. if (V2.length > 0) {
  10362. var L2 = "";
  10363. Z(V2) && (this.rtl ? L2 += V2.join("") + c2 : L2 += c2 + V2.join("").replace(/([\[\]]{1})/g, "$1$1"));
  10364. for (var j2 = _2 + 1; j2 < y2.length; j2++)
  10365. y2[j2].type == "value" ? L2 += y2[j2].text.replace(/([\[\]]{1})/g, "$1$1") : L2 += y2[j2].text;
  10366. h2.splice(f2 + 1, 0, L2);
  10367. }
  10368. b2 = true;
  10369. }
  10370. }
  10371. this.bbox.width < x2.bbox.width && (this.bbox.width = x2.bbox.width), this.bbox.height = d2 + m2, this.textPathElement ? x2.element.attr({ dy: -this.paddingBottom.toString() }) : x2.element.attr({ x: "0", y: d2 + m2, dy: lt(this.baseLineRatio * m2, 3).toString() }), v2 = false;
  10372. }
  10373. }
  10374. var E2 = x2.element.node;
  10375. E2 && (A2 = E2.lastChild) && (A2.textContent = this.rtl ? Yn(A2.textContent) : Xn(A2.textContent)), d2 += m2, this.addLineInfo(x2, f2);
  10376. } else {
  10377. var R2 = this.getSVGLineElement("", 0);
  10378. R2.add(this.getSvgElement(".", Va().translateStyleShortcuts(c2))), u2.add(R2);
  10379. var B2 = Math.ceil(R2.getBBox().height);
  10380. B2 > 0 && (d2 += B2), u2.removeElement(R2);
  10381. var H2 = this.getLineInfo(f2);
  10382. H2 && (H2.text = "", H2.element.textContent = "");
  10383. }
  10384. }
  10385. this.maybeHideOversized(), this.measureFailed = false, this.bbox.width != 0 && this.bbox.height != 0 || (this.measureFailed = true), this._measuredWidth = lt(gt(this.bbox.width, this.pixelWidth - this.pixelPaddingLeft - this.pixelPaddingRight)), this._measuredHeight = lt(gt(this.bbox.height, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom)), this.alignSVGText(), this.bbox.width = this._measuredWidth, this.bbox.height = this._measuredHeight, i3 == this._measuredHeight && e4 == this._measuredWidth || this.dispatch("transformed"), this.hideUnused(h2.length);
  10386. } else {
  10387. this.element.removeAttr("display"), this.resetBBox(), (u2 = this.element).removeChildren();
  10388. var N2 = this.paper.foreignObject();
  10389. u2.add(N2), this.maxWidth && N2.attr({ width: this.maxWidth - this.pixelPaddingLeft - this.pixelPaddingRight }), this.maxHeight && N2.attr({ height: this.maxHeight - this.pixelPaddingTop - this.pixelPaddingBottom });
  10390. var W2 = this.getHTMLLineElement(l2);
  10391. N2.node.appendChild(W2), W2.style.display = "inline-block";
  10392. var X2 = W2.clientWidth, Y2 = W2.clientHeight;
  10393. W2.style.display = "block", this._bbox = { x: 0, y: 0, width: X2, height: Y2 }, N2.attr({ width: X2 + 1, height: Y2 }), this.maybeHideOversized(), this._measuredWidth = gt(this.bbox.width, this.pixelWidth - this.pixelPaddingLeft - this.pixelPaddingRight), this._measuredHeight = gt(this.bbox.height, this.pixelHeight - this.pixelPaddingTop - this.pixelPaddingBottom), this.bbox.width = this._measuredWidth, this.bbox.height = this._measuredHeight, this.truncate && (W2.style.overflow = "hidden"), (X2 > r3 || Y2 > s2) && (this.isOversized = true);
  10394. }
  10395. this.setStyles(), this.updateCenter(), this.updateBackground(), p2 == "none" && this.group.attr({ display: "none" }), this.pathElement && this.paper.appendDef(this.pathElement);
  10396. } else
  10397. this.element.attr({ display: "none" });
  10398. }
  10399. } else
  10400. n3.events.once("maxsizechanged", this.hardInvalidate, this, false);
  10401. }, e3.prototype.maybeHideOversized = function() {
  10402. this.hideOversized && (this.availableWidth < this.bbox.width || this.availableHeight < this.bbox.height ? (this.element.attr({ display: "none" }), this.isOversized = true) : (this.element.removeAttr("display"), this.isOversized = false));
  10403. }, e3.prototype.alignSVGText = function() {
  10404. var t3 = this.element, e4 = t3.node.children || t3.node.childNodes;
  10405. if (e4 && (!e4 || e4.length != 0)) {
  10406. var i3 = this._measuredWidth, n3 = this._measuredHeight;
  10407. this.pixelPaddingLeft, this.pixelPaddingRight, this.pixelPaddingTop, this.pixelPaddingBottom, this.rtl ? t3.attr({ direction: "rtl" }) : t3.removeAttr("direction");
  10408. for (var r3 = e4.length - 1; r3 >= 0; r3--) {
  10409. var s2 = e4[r3];
  10410. if (s2.setAttribute("text-anchor", this.textAlign), this.textPathElement)
  10411. s2.removeAttribute("x"), s2.removeAttribute("y");
  10412. else {
  10413. switch (this.textAlign) {
  10414. case "middle":
  10415. s2.setAttribute("x", (i3 / 2).toString() + "px");
  10416. break;
  10417. case "end":
  10418. this.rtl || s2.setAttribute("x", i3.toString());
  10419. break;
  10420. default:
  10421. this.rtl ? s2.setAttribute("x", i3.toString()) : s2.removeAttribute("text-anchor");
  10422. }
  10423. var a2 = U(s2.getAttribute("y"));
  10424. switch (this.textValign) {
  10425. case "middle":
  10426. s2.setAttribute("y", ((a2 || 0) + (n3 - this.bbox.height) / 2).toString());
  10427. break;
  10428. case "bottom":
  10429. s2.setAttribute("y", ((a2 || 0) + n3 - this.bbox.height).toString());
  10430. break;
  10431. default:
  10432. s2.setAttribute("y", (a2 || 0).toString());
  10433. }
  10434. }
  10435. }
  10436. }
  10437. }, e3.prototype.getSVGLineElement = function(t3, e4) {
  10438. var i3 = this.paper.addGroup("text");
  10439. return i3.textContent = t3, i3.attr({ x: "0" }), Z(e4) && i3.attr({ y: e4.toString() }), (this.truncate || this.wrap) && i3.attr({ overflow: "hidden" }), i3;
  10440. }, Object.defineProperty(e3.prototype, "rtl", { get: function() {
  10441. return Z(this._rtl) ? this._rtl : !!this._topParent && this._topParent.rtl;
  10442. }, set: function(t3) {
  10443. t3 = z(t3), this._rtl = t3, this.element && this.alignSVGText();
  10444. }, enumerable: true, configurable: true }), e3.prototype.resetBBox = function() {
  10445. this._bbox = { x: 0, y: 0, width: 0, height: 0 };
  10446. }, e3.prototype.getHTMLLineElement = function(t3) {
  10447. var e4 = document.createElement("div");
  10448. switch (e4.innerHTML = t3, this.textAlign) {
  10449. case "middle":
  10450. e4.style.textAlign = "center";
  10451. break;
  10452. case "end":
  10453. e4.style.textAlign = "right";
  10454. }
  10455. return this.wrap ? e4.style.wordWrap = "break-word" : e4.style.whiteSpace = "nowrap", this.rtl && (e4.style.direction = "rtl"), Z(this.fill) && (e4.style.color = this.fill.toString()), e4;
  10456. }, e3.prototype.setStyles = function() {
  10457. var t3 = this.element;
  10458. !this.selectable || this.draggable || this.resizable || this.swipeable ? t3.addStyle({ webkitUserSelect: "none", msUserSelect: "none" }) : this.selectable && (t3.removeStyle("webkitUserSelect"), t3.removeStyle("msUserSelect"));
  10459. }, e3.prototype.hideUnused = function(t3) {
  10460. this.initLineCache();
  10461. var e4 = this.getCache("lineInfo");
  10462. if (e4.length >= t3)
  10463. for (var i3 = t3; i3 < e4.length; i3++) {
  10464. var n3 = e4[i3];
  10465. n3 && n3.element && n3.element.attr({ display: "none" });
  10466. }
  10467. }, Object.defineProperty(e3.prototype, "text", { get: function() {
  10468. return this.getPropertyValue("text");
  10469. }, set: function(t3) {
  10470. this.setPropertyValue("text", t3, true);
  10471. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "path", { get: function() {
  10472. return this.getPropertyValue("path");
  10473. }, set: function(t3) {
  10474. this.setPropertyValue("path", t3, true) && (this.pathElement && this.pathElement.dispose(), this.textPathElement && this.textPathElement.dispose(), this.pathElement = this.paper.add("path"), this.pathElement.attr({ d: t3 }), this.pathElement.attr({ id: "text-path-" + this.uid }), this._disposers.push(this.pathElement), this.textPathElement = this.paper.addGroup("textPath"), this.textPathElement.attrNS(bs, "xlink:href", "#text-path-" + this.uid), this.textPathElement.attr({ path: t3 }), this._disposers.push(this.textPathElement), this.hardInvalidate());
  10475. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationOnPath", { get: function() {
  10476. return this.getPropertyValue("locationOnPath");
  10477. }, set: function(t3) {
  10478. this.setPropertyValue("locationOnPath", t3), this.textPathElement && this.textPathElement.attr({ startOffset: 100 * t3 + "%" });
  10479. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "baseLineRatio", { get: function() {
  10480. return this.getPropertyValue("baseLineRatio");
  10481. }, set: function(t3) {
  10482. this.setPropertyValue("baseLineRatio", t3);
  10483. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wrap", { get: function() {
  10484. return this.getPropertyValue("wrap");
  10485. }, set: function(t3) {
  10486. this.resetBBox(), this.setPropertyValue("wrap", t3, true);
  10487. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "truncate", { get: function() {
  10488. return this.getPropertyValue("truncate");
  10489. }, set: function(t3) {
  10490. this.resetBBox(), this.setPropertyValue("truncate", t3, true);
  10491. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fullWords", { get: function() {
  10492. return this.getPropertyValue("fullWords");
  10493. }, set: function(t3) {
  10494. this.setPropertyValue("fullWords", t3, true);
  10495. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ellipsis", { get: function() {
  10496. return this.getPropertyValue("ellipsis");
  10497. }, set: function(t3) {
  10498. this.setPropertyValue("ellipsis", t3, true);
  10499. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "selectable", { get: function() {
  10500. return this.getPropertyValue("selectable");
  10501. }, set: function(t3) {
  10502. this.setPropertyValue("selectable", t3, true), this.setStyles();
  10503. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "textAlign", { get: function() {
  10504. return this.getPropertyValue("textAlign");
  10505. }, set: function(t3) {
  10506. this.setPropertyValue("textAlign", t3, true);
  10507. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "textValign", { get: function() {
  10508. return this.getPropertyValue("textValign");
  10509. }, set: function(t3) {
  10510. this.setPropertyValue("textValign", t3, true);
  10511. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "html", { get: function() {
  10512. return this.getPropertyValue("html");
  10513. }, set: function(t3) {
  10514. this.setPropertyValue("html", t3, true);
  10515. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideOversized", { get: function() {
  10516. return this.getPropertyValue("hideOversized");
  10517. }, set: function(t3) {
  10518. this.setPropertyValue("hideOversized", t3, true);
  10519. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ignoreFormatting", { get: function() {
  10520. return this.getPropertyValue("ignoreFormatting");
  10521. }, set: function(t3) {
  10522. this.setPropertyValue("ignoreFormatting", t3, true);
  10523. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  10524. }, e3.prototype.getLineInfo = function(t3) {
  10525. this.initLineCache();
  10526. var e4 = this.getCache("lineInfo");
  10527. return e4.length > t3 ? e4[t3] : void 0;
  10528. }, e3.prototype.addLineInfo = function(t3, e4) {
  10529. this.initLineCache(), this.getCache("lineInfo")[e4] = t3;
  10530. }, e3.prototype.initLineCache = function() {
  10531. Z(this.getCache("lineInfo")) || this.setCache("lineInfo", [], 0);
  10532. }, e3.prototype.setDataItem = function(e4) {
  10533. this._sourceDataItemEvents && this._sourceDataItemEvents.dispose(), e4 && (this._sourceDataItemEvents = new me([e4.events.on("valuechanged", this.invalidate, this, false), e4.events.on("workingvaluechanged", this.invalidate, this, false), e4.events.on("calculatedvaluechanged", this.invalidate, this, false), e4.events.on("propertychanged", this.invalidate, this, false)])), t2.prototype.setDataItem.call(this, e4);
  10534. }, Object.defineProperty(e3.prototype, "availableWidth", { get: function() {
  10535. return Z(this.maxWidth) ? this.maxWidth : this.pixelWidth;
  10536. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "availableHeight", { get: function() {
  10537. return Z(this.maxHeight) ? this.maxHeight : this.pixelHeight;
  10538. }, enumerable: true, configurable: true }), e3.prototype.getSvgElement = function(t3, e4, i3) {
  10539. var n3 = this.paper.add("tspan");
  10540. if (n3.textContent = t3, e4)
  10541. if (ls.nonce && i3) {
  10542. var r3 = "amcharts_element_style_" + btoa(e4).replace(/[^\w]*/g, "");
  10543. n3.node.setAttribute("class", r3);
  10544. var s2 = document.createElementNS(ms, "defs");
  10545. i3.node.appendChild(s2);
  10546. var a2 = document.createElement("style");
  10547. a2.type = "text/css", a2.innerHTML = "." + r3 + " { " + e4 + "}", a2.setAttribute("nonce", ls.nonce), s2.appendChild(a2);
  10548. } else
  10549. n3.node.setAttribute("style", e4);
  10550. return i3 && i3.add(n3), n3;
  10551. }, e3.prototype.deepInvalidate = function() {
  10552. t2.prototype.deepInvalidate.call(this), this.hardInvalidate();
  10553. }, Object.defineProperty(e3.prototype, "readerTitle", { get: function() {
  10554. var t3 = this.getPropertyValue("readerTitle");
  10555. return t3 ? this.dataItem && (t3 = this.populateString(t3)) : t3 = this.populateString($n(An(this.html) ? this.html : this.text)), t3;
  10556. }, set: function(t3) {
  10557. t3 = G(t3), this.setPropertyValue("readerTitle", t3) && this.applyAccessibility();
  10558. }, enumerable: true, configurable: true }), e3;
  10559. }($a);
  10560. Ii.registeredClasses.Label = co, lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  10561. if (t2 instanceof co && t2.parent && t2.parent.isBaseSprite) {
  10562. var i3 = t2.states.create(e3);
  10563. return i3.properties.disabled = true, i3;
  10564. }
  10565. return null;
  10566. } });
  10567. var fo = function(t2) {
  10568. function e3() {
  10569. var e4 = t2.call(this) || this;
  10570. return e4.className = "RoundedRectangle", e4.element = e4.paper.add("path"), e4.cornerRadius(3, 3, 3, 3), e4.applyTheme(), e4;
  10571. }
  10572. return C(e3, t2), e3.prototype.draw = function() {
  10573. t2.prototype.draw.call(this);
  10574. var e4 = this.innerWidth, i3 = this.innerHeight;
  10575. if (tt(e4) && tt(i3)) {
  10576. var n3 = yt(e4, i3) / 2, r3 = Vn(this.cornerRadiusTopLeft, n3), s2 = Vn(this.cornerRadiusTopRight, n3), a2 = Vn(this.cornerRadiusBottomRight, n3), o3 = Vn(this.cornerRadiusBottomLeft, n3), l2 = yt(Math.abs(e4 / 2), Math.abs(i3 / 2)), h2 = ut(r3, 0, l2), p2 = ut(s2, 0, l2), u2 = ut(a2, 0, l2), d2 = ut(o3, 0, l2), c2 = "M" + h2 + ",0 L" + (e4 - p2) + ",0 a" + p2 + "," + p2 + " 0 0 1 " + p2 + "," + p2 + " L" + e4 + "," + (i3 - u2) + " a" + u2 + "," + u2 + " 0 0 1 -" + u2 + "," + u2 + " L" + d2 + "," + i3 + " a" + d2 + "," + d2 + " 0 0 1 -" + d2 + ",-" + d2 + " L0," + h2 + " a" + h2 + "," + h2 + " 0 0 1 " + h2 + ",-" + h2 + " Z";
  10577. this.path = c2;
  10578. }
  10579. }, e3.prototype.cornerRadius = function(t3, e4, i3, n3) {
  10580. this.cornerRadiusTopLeft = t3, this.cornerRadiusTopRight = e4, this.cornerRadiusBottomLeft = i3, this.cornerRadiusBottomRight = n3;
  10581. }, Object.defineProperty(e3.prototype, "cornerRadiusTopLeft", { get: function() {
  10582. return this.getPropertyValue("cornerRadiusTopLeft");
  10583. }, set: function(t3) {
  10584. this.setPercentProperty("cornerRadiusTopLeft", t3, true);
  10585. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadiusTopRight", { get: function() {
  10586. return this.getPropertyValue("cornerRadiusTopRight");
  10587. }, set: function(t3) {
  10588. this.setPercentProperty("cornerRadiusTopRight", t3, true);
  10589. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadiusBottomRight", { get: function() {
  10590. return this.getPropertyValue("cornerRadiusBottomRight");
  10591. }, set: function(t3) {
  10592. this.setPercentProperty("cornerRadiusBottomRight", t3, true);
  10593. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadiusBottomLeft", { get: function() {
  10594. return this.getPropertyValue("cornerRadiusBottomLeft");
  10595. }, set: function(t3) {
  10596. this.setPercentProperty("cornerRadiusBottomLeft", t3, true);
  10597. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  10598. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  10599. return this.definedBBox ? this.definedBBox : this.isMeasured ? { x: 0, y: 0, width: this.innerWidth, height: this.innerHeight } : { x: 0, y: 0, width: 0, height: 0 };
  10600. }, enumerable: true, configurable: true }), e3;
  10601. }(Za);
  10602. Ii.registeredClasses.RoundedRectangle = fo;
  10603. var go = function(t2) {
  10604. function e3() {
  10605. var e4 = t2.call(this) || this;
  10606. e4.className = "Button", e4.tooltipY = 0, e4.iconPosition = "left", e4.layout = "horizontal", e4.contentAlign = "center", e4.contentValign = "middle", e4.padding(8, 16, 8, 16), e4.setStateOnChildren = true;
  10607. var i3 = new Ys(), n3 = e4.background;
  10608. n3.fill = i3.getFor("secondaryButton"), n3.stroke = i3.getFor("secondaryButtonStroke"), n3.fillOpacity = 1, n3.strokeOpacity = 1, n3.cornerRadius(3, 3, 3, 3), e4.label = new co(), e4.label.fill = i3.getFor("secondaryButtonText"), e4.label.shouldClone = false;
  10609. var r3 = n3.states.create("hover");
  10610. r3.properties.fillOpacity = 1, r3.properties.fill = i3.getFor("secondaryButtonHover");
  10611. var s2 = n3.states.create("down");
  10612. return s2.transitionDuration = 100, s2.properties.fill = i3.getFor("secondaryButtonDown"), s2.properties.fillOpacity = 1, e4.role = "button", e4.focusable = true, e4.applyTheme(), e4;
  10613. }
  10614. return C(e3, t2), Object.defineProperty(e3.prototype, "icon", { get: function() {
  10615. return this._icon;
  10616. }, set: function(t3) {
  10617. var e4 = this._icon;
  10618. e4 && (e4.parent = void 0), t3 && (this._icon = t3, t3.parent = this, t3.interactionsEnabled = false, t3.shouldClone = false, this.iconPosition = this.iconPosition, this._disposers.push(t3));
  10619. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "iconPosition", { get: function() {
  10620. return this.getPropertyValue("iconPosition");
  10621. }, set: function(t3) {
  10622. this.setPropertyValue("iconPosition", t3), this.icon && (t3 == "left" ? this.icon.toBack() : this.icon.toFront());
  10623. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  10624. return this._label;
  10625. }, set: function(t3) {
  10626. this._label && this.removeDispose(this._label), this._label = t3, t3 && (t3.parent = this, t3.interactionsEnabled = false, this._disposers.push(this._label));
  10627. }, enumerable: true, configurable: true }), e3.prototype.createBackground = function() {
  10628. return new fo();
  10629. }, e3.prototype.copyFrom = function(e4) {
  10630. t2.prototype.copyFrom.call(this, e4), e4.label && this.label.copyFrom(e4.label), e4.icon && (this.icon = e4.icon.clone());
  10631. }, e3;
  10632. }($a);
  10633. Ii.registeredClasses.Button = go;
  10634. var yo = function(t2) {
  10635. function e3() {
  10636. var e4 = t2.call(this) || this;
  10637. return e4.className = "Circle", e4.element = e4.paper.add("circle"), e4.setPercentProperty("radius", V(100)), e4.setPropertyValue("horizontalCenter", "middle"), e4.setPropertyValue("verticalCenter", "middle"), e4.applyTheme(), e4;
  10638. }
  10639. return C(e3, t2), e3.prototype.draw = function() {
  10640. t2.prototype.draw.call(this), this.element.attr({ r: this.pixelRadius });
  10641. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  10642. return this.getPropertyValue("radius");
  10643. }, set: function(t3) {
  10644. this.setPercentProperty("radius", t3, true, false, 10, false);
  10645. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  10646. return Vn(this.radius, yt(this.innerWidth / 2, this.innerHeight / 2));
  10647. }, enumerable: true, configurable: true }), e3.prototype.measureElement = function() {
  10648. var t3 = this.pixelRadius;
  10649. this._bbox = { x: -t3, y: -t3, width: 2 * t3, height: 2 * t3 };
  10650. }, e3;
  10651. }(Za);
  10652. Ii.registeredClasses.Circle = yo;
  10653. var mo = function(t2) {
  10654. function e3() {
  10655. var e4 = t2.call(this) || this;
  10656. return e4.className = "Ellipse", e4.element = e4.paper.add("ellipse"), e4.applyTheme(), e4;
  10657. }
  10658. return C(e3, t2), e3.prototype.draw = function() {
  10659. t2.prototype.draw.call(this), this.element.attr({ rx: this.radius }), this.element.attr({ ry: this.radiusY });
  10660. }, Object.defineProperty(e3.prototype, "radiusY", { get: function() {
  10661. return this.innerHeight / 2;
  10662. }, set: function(t3) {
  10663. this.height = 2 * t3, this.invalidate();
  10664. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  10665. return this.innerWidth / 2;
  10666. }, set: function(t3) {
  10667. this.width = 2 * t3, this.invalidate();
  10668. }, enumerable: true, configurable: true }), e3;
  10669. }(yo);
  10670. Ii.registeredClasses.Ellipse = mo;
  10671. var vo = function(t2) {
  10672. function e3() {
  10673. var e4 = t2.call(this) || this;
  10674. return e4.className = "Image", e4.element = e4.paper.add("image"), e4.applyTheme(), e4.width = 50, e4.height = 50, e4;
  10675. }
  10676. return C(e3, t2), e3.prototype.draw = function() {
  10677. if (t2.prototype.draw.call(this), this.href) {
  10678. var e4 = this.innerWidth, i3 = this.innerHeight;
  10679. tt(this.widthRatio) && (e4 = i3 * this.widthRatio, this.width = e4), tt(this.heightRatio) && (i3 = e4 * this.heightRatio, this.height = i3), this.element.attr({ width: e4, height: i3 }), this.element.attrNS(bs, "xlink:href", this.href);
  10680. }
  10681. }, Object.defineProperty(e3.prototype, "href", { get: function() {
  10682. return this.getPropertyValue("href");
  10683. }, set: function(t3) {
  10684. this.setPropertyValue("href", t3, true);
  10685. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "widthRatio", { get: function() {
  10686. return this.getPropertyValue("widthRatio");
  10687. }, set: function(t3) {
  10688. this.setPropertyValue("widthRatio", t3, true);
  10689. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "heightRatio", { get: function() {
  10690. return this.getPropertyValue("heightRatio");
  10691. }, set: function(t3) {
  10692. this.setPropertyValue("heightRatio", t3, true);
  10693. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bbox", { get: function() {
  10694. return { x: 0, y: 0, width: this.pixelWidth, height: this.pixelHeight };
  10695. }, enumerable: true, configurable: true }), e3;
  10696. }(Za);
  10697. Ii.registeredClasses.Image = vo;
  10698. var bo = function(t2) {
  10699. function e3() {
  10700. var e4 = t2.call(this) || this;
  10701. return e4.className = "Line", e4.element = e4.paper.add("line"), e4.fill = dn(), e4.x1 = 0, e4.y1 = 0, e4.applyTheme(), e4;
  10702. }
  10703. return C(e3, t2), e3.prototype.draw = function() {
  10704. t2.prototype.draw.call(this), this.x1 == this.x2 || this.y1 == this.y2 ? this.pixelPerfect = true : this.pixelPerfect = false, this.x1 = this.x1, this.x2 = this.x2, this.y1 = this.y1, this.y2 = this.y2;
  10705. }, Object.defineProperty(e3.prototype, "x1", { get: function() {
  10706. return this.getPropertyValue("x1");
  10707. }, set: function(t3) {
  10708. tt(t3) || (t3 = 0);
  10709. var e4 = 0;
  10710. this.pixelPerfect && this.stroke instanceof Oa && (e4 = 1e-5), this.setPropertyValue("x1", t3, true), this.element.attr({ x1: t3 + e4 });
  10711. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x2", { get: function() {
  10712. var t3 = this.getPropertyValue("x2");
  10713. return tt(t3) || (t3 = this.pixelWidth), t3;
  10714. }, set: function(t3) {
  10715. tt(t3) || (t3 = 0), this.setPropertyValue("x2", t3, true), this.element.attr({ x2: t3 });
  10716. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y1", { get: function() {
  10717. return this.getPropertyValue("y1");
  10718. }, set: function(t3) {
  10719. tt(t3) || (t3 = 0);
  10720. var e4 = 0;
  10721. this.pixelPerfect && this.stroke instanceof Oa && (e4 = 1e-5), this.setPropertyValue("y1", t3, true), this.element.attr({ y1: t3 + e4 });
  10722. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y2", { get: function() {
  10723. var t3 = this.getPropertyValue("y2");
  10724. return tt(t3) || (t3 = this.pixelHeight), t3;
  10725. }, set: function(t3) {
  10726. tt(t3) || (t3 = 0), this.setPropertyValue("y2", t3, true), this.element.attr({ y2: t3 });
  10727. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3) {
  10728. var e4 = { x: this.x1, y: this.y1 }, i3 = { x: this.x2, y: this.y2 }, n3 = St(e4, i3, t3), r3 = Dt(e4, i3);
  10729. return { x: n3.x, y: n3.y, angle: r3 };
  10730. }, e3;
  10731. }(Za);
  10732. Ii.registeredClasses.Line = bo;
  10733. var xo = function(t2) {
  10734. function e3() {
  10735. var e4 = t2.call(this) || this;
  10736. return e4.className = "PointedShape", e4.pointerBaseWidth = 15, e4.pointerLength = 10, e4.pointerY = 0, e4.pointerX = 0, e4.applyTheme(), e4;
  10737. }
  10738. return C(e3, t2), e3.prototype.draw = function() {
  10739. t2.prototype.draw.call(this), tt(this.pointerX) || (this.pointerX = this.pixelWidth / 2), tt(this.pointerY) || (this.pointerY = this.pixelHeight + 10);
  10740. }, Object.defineProperty(e3.prototype, "pointerBaseWidth", { get: function() {
  10741. return this.getPropertyValue("pointerBaseWidth");
  10742. }, set: function(t3) {
  10743. this.setPropertyValue("pointerBaseWidth", t3, true);
  10744. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pointerLength", { get: function() {
  10745. return this.getPropertyValue("pointerLength");
  10746. }, set: function(t3) {
  10747. this.setPropertyValue("pointerLength", t3, true);
  10748. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pointerX", { get: function() {
  10749. return this.getPropertyValue("pointerX");
  10750. }, set: function(t3) {
  10751. this.setPropertyValue("pointerX", t3, true);
  10752. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pointerY", { get: function() {
  10753. return this.getPropertyValue("pointerY");
  10754. }, set: function(t3) {
  10755. this.setPropertyValue("pointerY", t3, true);
  10756. }, enumerable: true, configurable: true }), e3;
  10757. }(Za), _o = function(t2) {
  10758. function e3() {
  10759. var e4 = t2.call(this) || this;
  10760. return e4.className = "PointedRectangle", e4.element = e4.paper.add("path"), e4.cornerRadius = 6, e4.applyTheme(), e4;
  10761. }
  10762. return C(e3, t2), e3.prototype.draw = function() {
  10763. t2.prototype.draw.call(this);
  10764. var e4 = this.cornerRadius, i3 = this.innerWidth, n3 = this.innerHeight;
  10765. if (i3 > 0 && n3 > 0) {
  10766. var r3, s2, a2 = this.pointerX, o3 = this.pointerY, l2 = this.pointerBaseWidth / 2, h2 = yt(i3 / 2, n3 / 2), p2 = ut(e4, 0, h2), u2 = ut(e4, 0, h2), d2 = ut(e4, 0, h2), c2 = ut(e4, 0, h2), f2 = void 0, g2 = void 0, y2 = void 0, m2 = void 0, v2 = (a2 - 0) * (n3 - 0) - (o3 - 0) * (i3 - 0), b2 = (a2 - 0) * (0 - n3) - (o3 - n3) * (i3 - 0);
  10767. f2 = v2 > 0 && b2 > 0 ? "M" + p2 + ",0 L" + ((r3 = ut(a2, p2 + l2, i3 - l2 - u2)) - l2) + ",0 L" + a2 + "," + (o3 = ut(o3, -1 / 0, 0)) + " L" + (r3 + l2) + ",0 L" + (i3 - u2) + ",0" : "M" + p2 + ",0 L" + (i3 - u2) + ",0", y2 = v2 < 0 && b2 < 0 ? " L" + (i3 - d2) + "," + n3 + " L" + ((r3 = ut(a2, c2 + l2, i3 - l2 - d2)) + l2) + "," + n3 + " L" + a2 + "," + (o3 = ut(o3, n3, 1 / 0)) + " L" + (r3 - l2) + "," + n3 + " L" + c2 + "," + n3 : " L" + c2 + "," + n3, m2 = v2 < 0 && b2 > 0 ? " L0," + (n3 - c2) + " L0," + ((s2 = ut(o3, p2 + l2, n3 - c2 - l2)) + l2) + " L" + (a2 = ut(a2, -1 / 0, 0)) + "," + o3 + " L0," + (s2 - l2) + " L0," + p2 : " L0," + p2, g2 = v2 > 0 && b2 < 0 ? " L" + i3 + "," + u2 + " L" + i3 + "," + ((s2 = ut(o3, u2 + l2, n3 - l2 - d2)) - l2) + " L" + (a2 = ut(a2, i3, 1 / 0)) + "," + o3 + " L" + i3 + "," + (s2 + l2) + " L" + i3 + "," + (n3 - d2) : " L" + i3 + "," + (n3 - d2);
  10768. var x2 = " a" + u2 + "," + u2 + " 0 0 1 " + u2 + "," + u2, _2 = " a" + d2 + "," + d2 + " 0 0 1 -" + d2 + "," + d2, P2 = " a" + c2 + "," + c2 + " 0 0 1 -" + c2 + ",-" + c2, w2 = " a" + p2 + "," + p2 + " 0 0 1 " + p2 + ",-" + p2;
  10769. this.path = f2 + x2 + g2 + _2 + y2 + P2 + m2 + w2;
  10770. }
  10771. }, Object.defineProperty(e3.prototype, "cornerRadius", { get: function() {
  10772. return this.getPropertyValue("cornerRadius");
  10773. }, set: function(t3) {
  10774. this.setPropertyValue("cornerRadius", t3, true);
  10775. }, enumerable: true, configurable: true }), e3;
  10776. }(xo);
  10777. function Po(t2) {
  10778. var e3 = Co(t2[0]), i3 = { x: 0, y: 0 }, n3 = ls.minPolylineStep;
  10779. tt(n3) || (n3 = 0.5);
  10780. for (var r3 = 0, s2 = t2.length; r3 < s2; r3++) {
  10781. var a2 = t2[r3];
  10782. _t(a2, i3) > n3 && (e3 += Co(a2), i3 = a2);
  10783. }
  10784. return e3;
  10785. }
  10786. function wo(t2) {
  10787. return " M" + lt(t2.x, 4) + "," + lt(t2.y, 4) + " ";
  10788. }
  10789. function Co(t2) {
  10790. return " L" + lt(t2.x, 4) + "," + lt(t2.y, 4) + " ";
  10791. }
  10792. function Oo(t2, e3) {
  10793. return " Q" + lt(e3.x, 4) + "," + lt(e3.y, 4) + " " + lt(t2.x, 4) + "," + lt(t2.y, 4);
  10794. }
  10795. function So(t2, e3, i3) {
  10796. return " C" + lt(e3.x, 4) + "," + lt(e3.y, 4) + " " + lt(i3.x, 4) + "," + lt(i3.y, 4) + " " + lt(t2.x, 4) + "," + lt(t2.y, 4);
  10797. }
  10798. function Io() {
  10799. return " Z";
  10800. }
  10801. function Do(t2, e3, i3, n3) {
  10802. if (e3 == 0)
  10803. return "";
  10804. tt(n3) || (n3 = i3);
  10805. var r3 = "", s2 = ",", a2 = Math.ceil(Math.abs(e3) / 180), o3 = 1;
  10806. e3 < 0 && (o3 = 0);
  10807. var l2 = 0, h2 = 0, p2 = -ft(t2) * i3, u2 = -dt(t2) * n3;
  10808. if (e3 < 0.5 && i3 > 3e3)
  10809. return Co({ x: f2 = lt(ft(c2 = t2 + e3) * i3, 4), y: g2 = lt(dt(c2) * n3, 4) });
  10810. for (var d2 = 0; d2 < a2; d2++) {
  10811. var c2, f2, g2;
  10812. r3 += " a" + i3 + s2 + n3 + s2 + 0 + s2 + 0 + s2 + o3 + s2 + (f2 = lt(ft(c2 = t2 + e3 / a2 * (d2 + 1)) * i3 + p2 - l2, 4)) + s2 + (g2 = lt(dt(c2) * n3 + u2 - h2, 4)), l2 = f2, h2 = g2;
  10813. }
  10814. return r3;
  10815. }
  10816. function ko(t2, e3, i3, n3, r3, s2, a2) {
  10817. if (e3 == 0)
  10818. return "";
  10819. if (tt(n3) || (n3 = 0), i3 == 0 && n3 <= 0)
  10820. return "";
  10821. if (i3 < n3) {
  10822. var o3 = i3;
  10823. i3 = n3, n3 = o3, tt(r3) && (r3 = r3 / n3 * i3);
  10824. }
  10825. (e3 = yt(e3, 360)) == 360 && (s2 = 0, a2 = 0);
  10826. var l2 = t2 + e3, h2 = dt(yt(e3, 45) / 2), p2 = (r3 = tt(r3) ? r3 : i3) / i3 * n3, u2 = r3 / i3 * (s2 = s2 || 0), d2 = r3 / i3 * (a2 = tt(a2) ? a2 : s2);
  10827. s2 = ut(s2, 0, (i3 - n3) / 2), u2 = ut(u2, 0, (r3 - p2) / 2), a2 = ut(a2, 0, (i3 - n3) / 2), d2 = ut(d2, 0, (r3 - p2) / 2), s2 = lt(ut(s2, 0, i3 * h2), 4), u2 = lt(ut(u2, 0, r3 * h2), 4), a2 = lt(ut(a2, 0, n3 * h2), 4), d2 = lt(ut(d2, 0, p2 * h2), 4);
  10828. var c2 = Math.asin(s2 / i3 / 2) * at * 2, f2 = Math.asin(u2 / r3 / 2) * at * 2;
  10829. n3 < a2 && (n3 = a2), p2 < d2 && (p2 = d2);
  10830. var g2 = Math.asin(a2 / n3 / 2) * at * 2, y2 = Math.asin(d2 / p2 / 2) * at * 2;
  10831. tt(g2) || (g2 = 0), tt(y2) || (y2 = 0);
  10832. var m2 = t2 + e3 / 2, v2 = { x: lt(ft(m2) * n3, 4), y: dt(m2) * p2 }, b2 = { x: ft(t2) * (n3 + a2), y: dt(t2) * (p2 + d2) }, x2 = { x: ft(t2) * (i3 - s2), y: dt(t2) * (r3 - u2) }, _2 = { x: ft(l2) * (i3 - s2), y: dt(l2) * (r3 - u2) }, P2 = { x: ft(l2) * (n3 + a2), y: dt(l2) * (p2 + d2) }, w2 = { x: ft(t2 + c2) * i3, y: dt(t2 + f2) * r3 }, C2 = { x: ft(l2 - g2) * n3, y: dt(l2 - y2) * p2 };
  10833. a2 += a2 * dt(g2 / 2), d2 += d2 * dt(y2 / 2), g2 > (l2 - t2) / 2 && (C2 = v2);
  10834. var O2 = "";
  10835. return e3 == 360 ? O2 = wo(x2) : (O2 = wo(b2), O2 += Co(x2), O2 += To(w2, s2, u2, true)), O2 += Do(t2 + c2, e3 - 2 * c2, i3, r3), tt(n3) && n3 != 0 ? (e3 == 360 && s2 == 0 ? O2 += wo(P2) : (O2 += To(_2, s2, u2, true), O2 += Co(P2), O2 += To(C2, a2, d2, true)), O2 += Do(l2 - g2, -(e3 - 2 * g2), n3, p2), (e3 < 360 || s2 > 0) && (O2 += To(b2, a2, d2, true)), O2 += Co(b2)) : (O2 += To(_2, s2, u2, true), e3 < 360 && (O2 += Co(b2))), O2;
  10836. }
  10837. function To(t2, e3, i3, n3, r3, s2) {
  10838. if (e3 == 0)
  10839. return "";
  10840. var a2 = ",";
  10841. return " A" + e3 + a2 + i3 + a2 + (s2 = s2 || 0) + a2 + +(r3 = Boolean(r3)) + a2 + +(n3 = Boolean(n3)) + a2 + lt(t2.x, 4) + a2 + lt(t2.y, 4);
  10842. }
  10843. function Ao(t2, e3, i3, n3) {
  10844. return tt(i3) || (i3 = 0), tt(n3) || (n3 = 0), wo({ x: i3, y: n3 }) + Co({ x: i3 + t2, y: n3 }) + Co({ x: i3 + t2, y: n3 + e3 }) + Co({ x: i3, y: n3 + e3 }) + " Z";
  10845. }
  10846. function Vo(t2, e3) {
  10847. var i3 = ",", n3 = " L";
  10848. return e3 ? "M" + t2.x + i3 + t2.y + n3 + t2.x + i3 + (t2.y + t2.height) + n3 + (t2.x + t2.width) + i3 + (t2.y + t2.height) + n3 + (t2.x + t2.width) + i3 + t2.y + n3 + t2.x + i3 + t2.y : "M" + t2.x + i3 + t2.y + n3 + (t2.x + t2.width) + i3 + t2.y + n3 + (t2.x + t2.width) + i3 + (t2.y + t2.height) + n3 + t2.x + i3 + (t2.y + t2.height) + n3 + t2.x + i3 + t2.y;
  10849. }
  10850. function Fo(t2, e3) {
  10851. var i3 = wa().add("path").node;
  10852. if (i3.setAttribute("d", t2), i3.getPointAtLength && i3.getTotalLength) {
  10853. for (var n3 = i3.getTotalLength(), r3 = [], s2 = 0; s2 < e3; s2++) {
  10854. var a2 = i3.getPointAtLength(s2 / e3 * n3);
  10855. r3.push({ x: a2.x, y: a2.y });
  10856. }
  10857. return r3;
  10858. }
  10859. i3.remove();
  10860. }
  10861. function Mo(t2, e3, i3, n3, r3, s2, a2, o3, l2) {
  10862. tt(o3) || (o3 = 0), tt(o3) || (l2 = o3);
  10863. for (var h2 = r3 + 0.01, p2 = o3 * st, u2 = []; h2 < i3 + a2; ) {
  10864. var d2 = s2;
  10865. if (d2 / 2 > h2 && (d2 = 2 * h2), (p2 += 2 * Math.asin(d2 / 2 / h2)) * at > l2 + (i3 - r3) / a2 * 360)
  10866. break;
  10867. var c2 = p2 * at, f2 = { x: t2 + h2 * Math.cos(p2), y: e3 + h2 * n3 / i3 * Math.sin(p2) };
  10868. u2.push(f2), h2 = r3 + c2 / 360 * a2;
  10869. }
  10870. return u2.shift(), u2;
  10871. }
  10872. function Lo(t2) {
  10873. if (!t2 || t2.length == 0)
  10874. return "";
  10875. var e3 = wo(t2[0]);
  10876. if (t2 && t2.length > 0)
  10877. for (var i3 = 1; i3 < t2.length; i3++)
  10878. e3 += Co(t2[i3]);
  10879. return e3;
  10880. }
  10881. var jo = function(t2) {
  10882. function e3() {
  10883. var e4 = t2.call(this) || this;
  10884. return e4._distance = 0, e4.className = "Polyline", e4.element = e4.paper.add("path"), e4.shapeRendering = "auto", e4.fill = dn(), e4.strokeOpacity = 1, e4.applyTheme(), e4;
  10885. }
  10886. return C(e3, t2), e3.prototype.makePath = function() {
  10887. this._distance = 0;
  10888. var t3 = this.segments;
  10889. if (t3 && t3.length > 0) {
  10890. for (var e4 = "", i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  10891. var r3 = t3[i3];
  10892. if (r3.length > 0) {
  10893. e4 += wo(r3[0]);
  10894. for (var s2 = 1; s2 < r3.length; s2++) {
  10895. var a2 = r3[s2];
  10896. e4 += Co(a2), this._distance += _t(r3[s2 - 1], a2);
  10897. }
  10898. }
  10899. }
  10900. this.path = e4;
  10901. }
  10902. this._realSegments = t3;
  10903. }, Object.defineProperty(e3.prototype, "segments", { get: function() {
  10904. return this.getPropertyValue("segments");
  10905. }, set: function(t3) {
  10906. this.setPropertyValue("segments", t3), this.makePath();
  10907. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "distance", { get: function() {
  10908. return this._distance;
  10909. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3) {
  10910. var e4 = 0;
  10911. t3 < 0 && (t3 = Math.abs(t3), e4 = 180);
  10912. var i3 = this._realSegments;
  10913. if (i3) {
  10914. for (var n3 = this.distance, r3 = 0, s2 = 0, a2 = 0, o3 = void 0, l2 = void 0, h2 = 0; h2 < i3.length; h2++) {
  10915. var p2 = i3[h2];
  10916. if (p2.length > 1) {
  10917. for (var u2 = 1; u2 < p2.length; u2++)
  10918. if (s2 = r3 / n3, a2 = (r3 += _t(o3 = p2[u2 - 1], l2 = p2[u2])) / n3, s2 <= t3 && a2 > t3) {
  10919. h2 = i3.length;
  10920. break;
  10921. }
  10922. } else
  10923. p2.length == 1 && (o3 = p2[0], l2 = p2[0], s2 = 0, a2 = 1);
  10924. }
  10925. if (o3 && l2) {
  10926. var d2 = St(o3, l2, (t3 - s2) / (a2 - s2));
  10927. return { x: d2.x, y: d2.y, angle: e4 + Dt(o3, l2) };
  10928. }
  10929. }
  10930. return { x: 0, y: 0, angle: 0 };
  10931. }, Object.defineProperty(e3.prototype, "realSegments", { get: function() {
  10932. return this._realSegments;
  10933. }, enumerable: true, configurable: true }), e3;
  10934. }(Za);
  10935. Ii.registeredClasses.Polyline = jo;
  10936. var Eo = function(t2) {
  10937. function e3() {
  10938. var e4 = t2.call(this) || this;
  10939. return e4.className = "Polyarc", e4.controlPointDistance = 0.5, e4.controlPointPosition = 0.5, e4.applyTheme(), e4;
  10940. }
  10941. return C(e3, t2), e3.prototype.makePath = function() {
  10942. this._distance = 0;
  10943. var t3 = this.segments;
  10944. if (t3 && t3.length > 0) {
  10945. var e4 = "";
  10946. this._realSegments = [];
  10947. for (var i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  10948. var r3 = t3[i3], s2 = [];
  10949. if (this._realSegments.push(s2), r3.length > 0) {
  10950. e4 += wo(r3[0]);
  10951. for (var a2 = 1; a2 < r3.length; a2++) {
  10952. var o3 = r3[a2 - 1], l2 = r3[a2], h2 = _t(l2, o3), p2 = h2 * this.controlPointDistance, u2 = this.controlPointPosition, d2 = -Dt(o3, l2), c2 = { x: o3.x + (l2.x - o3.x) * u2 * 0.5 - p2 * dt(d2), y: o3.y + (l2.y - o3.y) * u2 * 0.5 - p2 * ft(d2) }, f2 = { x: o3.x + (l2.x - o3.x) * u2 * 1.5 - p2 * dt(d2), y: o3.y + (l2.y - o3.y) * u2 * 1.5 - p2 * ft(d2) };
  10953. e4 += So(l2, c2, f2);
  10954. var g2 = Math.ceil(h2), y2 = o3;
  10955. if (g2 > 0)
  10956. for (var m2 = 0; m2 <= g2; m2++) {
  10957. var v2 = Ft(o3, l2, c2, f2, m2 / g2);
  10958. s2.push(v2), this._distance += _t(y2, v2), y2 = v2;
  10959. }
  10960. else
  10961. s2.push(o3);
  10962. }
  10963. }
  10964. }
  10965. this.path = e4;
  10966. }
  10967. }, Object.defineProperty(e3.prototype, "controlPointPosition", { get: function() {
  10968. return this.getPropertyValue("controlPointPosition");
  10969. }, set: function(t3) {
  10970. this.setPropertyValue("controlPointPosition", t3), this.makePath();
  10971. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "controlPointDistance", { get: function() {
  10972. return this.getPropertyValue("controlPointDistance");
  10973. }, set: function(t3) {
  10974. this.setPropertyValue("controlPointDistance", t3), this.makePath();
  10975. }, enumerable: true, configurable: true }), e3;
  10976. }(jo);
  10977. Ii.registeredClasses.Polyarc = Eo;
  10978. var Ro = function(t2) {
  10979. function e3(e4) {
  10980. var i3 = t2.call(this) || this;
  10981. return i3._bboxes = [], i3.morphDuration = 800, i3.morphEasing = zr, i3.morphToSingle = true, i3.scaleRatio = 1, i3.className = "Morpher", i3.morphable = e4, i3.applyTheme(), i3;
  10982. }
  10983. return C(e3, t2), e3.prototype.morphToPolygon = function(t3, e4, i3) {
  10984. var n3 = this.morphable.currentPoints;
  10985. if (n3 && t3) {
  10986. this.sortPoints(n3), this.sortPoints(t3), this._morphFromPointsReal = [], this._morphToPointsReal = [], Z(e4) || (e4 = this.morphDuration), Z(i3) || (i3 = this.morphEasing), this._morphFromPointsReal = this.normalizePoints(t3, n3), this._morphToPointsReal = this.normalizePoints(n3, t3), this.morphable.currentPoints = this._morphFromPointsReal;
  10987. var r3 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, e4, i3);
  10988. return this._disposers.push(r3), r3.start(), r3;
  10989. }
  10990. }, e3.prototype.normalizePoints = function(t3, e4) {
  10991. for (var i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  10992. var r3 = t3[i3][0], s2 = t3[i3][1], a2 = q(Tt(r3)), o3 = a2.x + a2.width, l2 = a2.y + a2.height;
  10993. if (e4[i3] || (e4[i3] = []), r3 && !e4[i3][0] && (e4[i3][0] = [{ x: o3, y: l2 }, { x: o3, y: l2 }]), e4[i3][0]) {
  10994. e4[i3][0] = this.addPoints(e4[i3][0], r3.length);
  10995. for (var h2 = 1 / 0, p2 = 0, u2 = 0; u2 < e4[i3][0].length; u2++) {
  10996. var d2 = _t(e4[i3][0][u2], r3[0]);
  10997. d2 < h2 && (p2 = u2, h2 = d2);
  10998. }
  10999. var c2 = e4[i3][0].slice(0, p2), f2 = e4[i3][0].slice(p2);
  11000. e4[i3][0] = f2.concat(c2);
  11001. }
  11002. s2 && (e4[i3][1] || (e4[i3][1] = [{ x: o3, y: l2 }, { x: o3, y: l2 }]), e4[i3][1] = this.addPoints(e4[i3][1], s2.length));
  11003. }
  11004. return e4;
  11005. }, e3.prototype.sortPoints = function(t3) {
  11006. t3.sort(function(t4, e5) {
  11007. var i4 = q(Tt(t4[0])), n4 = q(Tt(e5[0]));
  11008. return i4.width * i4.height > n4.width * n4.height ? -1 : 1;
  11009. });
  11010. for (var e4 = [], i3 = 0, n3 = t3.length; i3 < n3; i3++) {
  11011. var r3 = t3[i3][0];
  11012. r3 && e4.push(q(Tt(r3)));
  11013. }
  11014. return At(e4);
  11015. }, e3.prototype.morphToCircle = function(t3, e4, i3) {
  11016. var n3 = this.morphable.points, r3 = this.sortPoints(n3);
  11017. this._morphFromPointsReal = [], this._morphToPointsReal = [], Z(e4) || (e4 = this.morphDuration), Z(i3) || (i3 = this.morphEasing);
  11018. for (var s2 = 0, a2 = n3.length; s2 < a2; s2++) {
  11019. var o3 = n3[s2][0], l2 = n3[s2][1];
  11020. if (this._morphFromPointsReal[s2] = [], this._morphToPointsReal[s2] = [], o3) {
  11021. var h2 = o3, p2 = o3, u2 = q(Tt(p2));
  11022. this.morphToSingle && (u2 = q(r3));
  11023. var d2 = u2.x + u2.width / 2, c2 = u2.y + u2.height / 2, f2 = t3;
  11024. tt(f2) || (f2 = Math.min(u2.width / 2, u2.height / 2)), h2 = [];
  11025. var g2 = Dt({ x: d2, y: c2 }, o3[0]), y2 = 100;
  11026. o3.length > y2 && (y2 = o3.length);
  11027. for (var m2 = 360 / ((y2 = (p2 = this.addPoints(o3, y2)).length) - 1), v2 = 0; v2 < y2; v2++) {
  11028. var b2 = m2 * v2 + g2, x2 = { x: d2 + f2 * ft(b2), y: c2 + f2 * dt(b2) };
  11029. h2[v2] = x2;
  11030. }
  11031. if (l2 && l2.length > 0)
  11032. for (var _2 = 0, P2 = l2.length; _2 < P2; _2++)
  11033. h2.push({ x: d2, y: c2 });
  11034. this._morphFromPointsReal[s2][0] = p2, this._morphToPointsReal[s2][0] = h2;
  11035. }
  11036. }
  11037. this.morphable.currentPoints = this._morphFromPointsReal;
  11038. var w2 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, e4, i3);
  11039. return this._disposers.push(w2), w2.start(), w2;
  11040. }, e3.prototype.addPoints = function(t3, e4) {
  11041. for (var i3 = Math.round(e4 / t3.length), n3 = [], r3 = 0, s2 = t3.length; r3 < s2; r3++) {
  11042. var a2, o3 = t3[r3];
  11043. a2 = r3 == t3.length - 1 ? t3[0] : t3[r3 + 1], n3.push(o3);
  11044. for (var l2 = 1; l2 < i3; l2++) {
  11045. var h2 = l2 / i3, p2 = { x: o3.x + (a2.x - o3.x) * h2, y: o3.y + (a2.y - o3.y) * h2 };
  11046. n3.push(p2);
  11047. }
  11048. n3.length + t3.length - r3 == e4 && (i3 = 0);
  11049. }
  11050. if (n3.length < e4 && t3.length > 0) {
  11051. var u2 = t3[t3.length - 1];
  11052. for (l2 = n3.length; l2 < e4; l2++)
  11053. n3.push({ x: u2.x, y: u2.y });
  11054. }
  11055. return n3;
  11056. }, e3.prototype.morphToRectangle = function(t3, e4, i3, n3) {
  11057. var r3 = this.morphable.points;
  11058. this.sortPoints(r3), this._morphFromPointsReal = [], this._morphToPointsReal = [], Z(i3) || (i3 = this.morphDuration), Z(n3) || (n3 = this.morphEasing);
  11059. for (var s2 = 0, a2 = r3.length; s2 < a2; s2++) {
  11060. var o3 = r3[s2][0], l2 = r3[s2][1];
  11061. if (this._morphFromPointsReal[s2] = [], this._morphToPointsReal[s2] = [], o3) {
  11062. var h2 = o3, p2 = o3, u2 = this._bboxes[s2];
  11063. this.morphToSingle;
  11064. var d2 = u2.x, c2 = u2.y, f2 = t3, g2 = e4;
  11065. if (tt(f2) || (f2 = u2.width), tt(g2) || (g2 = u2.height), h2 = [{ x: d2, y: c2 }, { x: d2 + f2, y: c2 }, { x: d2 + f2, y: c2 + g2 }, { x: d2, y: c2 + g2 }], h2 = this.addPoints(h2, o3.length), o3.length < 4)
  11066. for (var y2 = o3.length; y2 < 4; y2++)
  11067. h2.push({ x: o3[y2].x, y: o3[y2].y });
  11068. if (l2 && l2.length > 0)
  11069. for (var m2 = u2.x + u2.width / 2, v2 = u2.y + u2.height / 2, b2 = 0, x2 = l2.length; b2 < x2; b2++)
  11070. h2.push({ x: m2, y: v2 });
  11071. this._morphFromPointsReal[s2][0] = p2, this._morphToPointsReal[s2][0] = h2;
  11072. }
  11073. }
  11074. this.morphable.currentPoints = this._morphFromPointsReal;
  11075. var _2 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, i3, n3);
  11076. return this._disposers.push(_2), _2.start(), _2;
  11077. }, Object.defineProperty(e3.prototype, "morphProgress", { get: function() {
  11078. return this._morphProgress;
  11079. }, set: function(t3) {
  11080. this._morphProgress = t3;
  11081. var e4 = [];
  11082. if (t3 != null) {
  11083. var i3 = this._morphFromPointsReal, n3 = this._morphToPointsReal;
  11084. if (i3 != null && n3 != null)
  11085. for (var r3 = 0, s2 = i3.length; r3 < s2; r3++) {
  11086. var a2 = [];
  11087. e4.push(a2);
  11088. var o3 = i3[r3][0], l2 = i3[r3][1], h2 = n3[r3][0], p2 = n3[r3][1];
  11089. if (o3 && o3.length > 0 && h2 && h2.length > 0) {
  11090. for (var u2 = [], d2 = 0, c2 = o3.length; d2 < c2; d2++) {
  11091. var f2 = o3[d2], g2 = h2[d2], y2 = { x: f2.x + (g2.x * this.scaleRatio - f2.x) * t3, y: f2.y + (g2.y * this.scaleRatio - f2.y) * t3 };
  11092. u2.push(y2);
  11093. }
  11094. a2[0] = u2;
  11095. }
  11096. if (l2 && l2.length > 0 && p2 && p2.length > 0) {
  11097. for (var m2 = [], v2 = 0, b2 = l2.length; v2 < b2; v2++)
  11098. f2 = l2[v2], g2 = p2[v2], y2 = { x: f2.x + (g2.x * this.scaleRatio - f2.x) * t3, y: f2.y + (g2.y * this.scaleRatio - f2.y) * t3 }, m2.push(y2);
  11099. a2[1] = m2;
  11100. }
  11101. }
  11102. }
  11103. this.morphable.currentPoints = e4;
  11104. }, enumerable: true, configurable: true }), e3.prototype.morphBack = function(t3, e4) {
  11105. this._morphToPointsReal = this._morphFromPointsReal, this._morphFromPointsReal = this.morphable.currentPoints, Z(t3) || (t3 = this.morphDuration), Z(e4) || (e4 = this.morphEasing);
  11106. var i3 = new ys(this, { property: "morphProgress", from: 0, to: 1 }, t3, e4);
  11107. return this._disposers.push(i3), i3.start(), i3;
  11108. }, Object.defineProperty(e3.prototype, "animations", { get: function() {
  11109. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  11110. }, enumerable: true, configurable: true }), e3;
  11111. }(yn), Bo = function(t2) {
  11112. function e3() {
  11113. var e4 = t2.call(this) || this;
  11114. return e4.className = "Polygon", e4.element = e4.paper.add("path"), e4.shapeRendering = "auto", e4._currentPoints = [], e4.applyTheme(), e4;
  11115. }
  11116. return C(e3, t2), Object.defineProperty(e3.prototype, "points", { get: function() {
  11117. var t3 = this.getPropertyValue("points"), e4 = this.path;
  11118. if (e4 && (!t3 || t3.length == 0)) {
  11119. for (var i3 = e4.slice(1, e4.length - 1).split("ZM"), n3 = 0; n3 < i3.length; n3++) {
  11120. var r3 = i3[n3];
  11121. if (r3.length > 0) {
  11122. var s2 = r3.split("M"), a2 = s2[0], o3 = s2[1];
  11123. if (a2 && a2.length > 0) {
  11124. var l2 = a2.split("L");
  11125. if (l2.length > 0) {
  11126. var h2 = [], p2 = [h2];
  11127. t3.push(p2);
  11128. for (var u2 = 0; u2 < l2.length; u2++) {
  11129. var d2 = l2[u2].split(",");
  11130. h2.push({ x: +d2[0], y: +d2[1] });
  11131. }
  11132. if (o3 && o3.length > 0) {
  11133. var c2 = o3.split("L");
  11134. if (c2.length > 0) {
  11135. var f2 = [];
  11136. for (p2.push(f2), u2 = c2.length - 1; u2 >= 0; u2--)
  11137. d2 = c2[u2].split(","), f2.push({ x: +d2[0], y: +d2[1] });
  11138. }
  11139. }
  11140. }
  11141. }
  11142. }
  11143. }
  11144. this.setPropertyValue("points", t3), this._currentPoints = t3;
  11145. }
  11146. return t3;
  11147. }, set: function(t3) {
  11148. this.setPropertyValue("points", t3, true), this._currentPoints = t3;
  11149. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "currentPoints", { get: function() {
  11150. return this._currentPoints && this._currentPoints.length != 0 || !this.path || (this._currentPoints = this.points), this._currentPoints;
  11151. }, set: function(t3) {
  11152. this._currentPoints != t3 && (this._currentPoints = t3, this.draw());
  11153. }, enumerable: true, configurable: true }), e3.prototype.draw = function() {
  11154. var e4, i3, n3, r3, s2 = "", a2 = this._currentPoints;
  11155. if (a2.length > 0) {
  11156. for (var o3 = 0, l2 = a2.length; o3 < l2; o3++) {
  11157. var h2 = a2[o3][0], p2 = a2[o3][1];
  11158. if (h2 && h2.length > 0) {
  11159. s2 += wo(d2 = h2[0]);
  11160. for (var u2 = 0; u2 < h2.length; u2++)
  11161. s2 += Co(d2 = h2[u2]), (!tt(i3) || i3 < d2.x) && (i3 = d2.x), (!tt(e4) || e4 > d2.x) && (e4 = d2.x), (!tt(n3) || n3 > d2.y) && (n3 = d2.y), (!tt(r3) || r3 < d2.y) && (r3 = d2.y);
  11162. }
  11163. if (p2 && p2.length > 0) {
  11164. var d2;
  11165. s2 += wo(d2 = p2[0]);
  11166. for (var c2 = 0, f2 = p2.length; c2 < f2; c2++)
  11167. s2 += Co(d2 = p2[c2]);
  11168. }
  11169. }
  11170. s2 && (s2 += " Z"), this.bbox.x = e4, this.bbox.y = n3, this.bbox.width = i3 - e4, this.bbox.height = r3 - n3, t2.prototype.setPath.call(this, s2);
  11171. }
  11172. }, e3.prototype.setPath = function(e4) {
  11173. return !!t2.prototype.setPath.call(this, e4) && (this.points = [], this._bbox = this.group.getBBox(), true);
  11174. }, e3.prototype.measureElement = function() {
  11175. }, Object.defineProperty(e3.prototype, "centerPoint", { get: function() {
  11176. return { x: this.bbox.x + this.bbox.width / 2, y: this.bbox.y + this.bbox.height / 2 };
  11177. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "morpher", { get: function() {
  11178. return this._morpher || (this._morpher = new Ro(this), this._disposers.push(this._morpher)), this._morpher;
  11179. }, enumerable: true, configurable: true }), e3;
  11180. }(Za);
  11181. Ii.registeredClasses.Polygon = Bo;
  11182. var Ho = function(t2) {
  11183. function e3() {
  11184. var e4 = t2.call(this) || this;
  11185. return e4.className = "Polyspline", e4.tensionX = 0.5, e4.tensionY = 0.5, e4.applyTheme(), e4;
  11186. }
  11187. return C(e3, t2), e3.prototype.makePath = function() {
  11188. this._distance = 0;
  11189. var t3 = this.segments, e4 = this.tensionX, i3 = this.tensionY;
  11190. if (this.allPoints = [], t3 && t3.length > 0) {
  11191. var n3 = "";
  11192. this._realSegments = [];
  11193. for (var r3 = 0, s2 = t3.length; r3 < s2; r3++) {
  11194. var a2 = t3[r3], o3 = [];
  11195. if (this._realSegments.push(o3), a2.length > 0) {
  11196. var l2 = a2[0], h2 = a2[a2.length - 1], p2 = false;
  11197. lt(l2.x, 3) == lt(h2.x) && lt(l2.y) == lt(h2.y) && (p2 = true), n3 += wo(a2[0]);
  11198. for (var u2 = 0; u2 < a2.length - 1; u2++) {
  11199. var d2 = a2[u2 - 1], c2 = a2[u2], f2 = a2[u2 + 1], g2 = a2[u2 + 2];
  11200. u2 === 0 ? d2 = a2[u2] : u2 == a2.length - 2 && (g2 = a2[u2 + 1]), g2 || (g2 = f2), u2 === 0 ? d2 = p2 ? a2[a2.length - 2] : a2[r3] : u2 == a2.length - 2 && (g2 = p2 ? a2[1] : a2[u2 + 1]);
  11201. var y2 = Mt(d2, c2, f2, 0, e4, i3), m2 = Lt(0, c2, f2, g2, e4, i3);
  11202. n3 += So(f2, y2, m2);
  11203. var v2 = 1.2 * Math.ceil(Ct(c2, f2, y2, m2, 20)), b2 = c2;
  11204. if (v2 > 0)
  11205. for (var x2 = 0; x2 <= v2; x2++) {
  11206. var _2 = Ft(c2, f2, y2, m2, x2 / v2);
  11207. if (_2.x != b2.x || _2.y != b2.y) {
  11208. o3.push(_2);
  11209. var P2 = lt(Dt(b2, _2), 5);
  11210. this._distance += _t(b2, _2), this.allPoints[Math.floor(this._distance)] = { x: _2.x, y: _2.y, angle: P2 }, b2 = _2;
  11211. }
  11212. }
  11213. else
  11214. o3.push(d2);
  11215. }
  11216. }
  11217. var w2 = this.allPoints;
  11218. if (w2.length > 1) {
  11219. for (var C2 = 0; C2 < w2.length; C2++)
  11220. if (!w2[C2]) {
  11221. if (C2 > 1)
  11222. w2[C2] = w2[C2 - 1];
  11223. else
  11224. for (var O2 = 1; O2 < w2.length; O2++)
  11225. if (w2[O2]) {
  11226. w2[C2] = w2[O2];
  11227. break;
  11228. }
  11229. }
  11230. }
  11231. }
  11232. this.path = n3;
  11233. }
  11234. }, e3.prototype.getClosestPointIndex = function(t3) {
  11235. var e4, i3 = this.allPoints, n3 = 1 / 0;
  11236. if (i3.length > 1)
  11237. for (var r3 = 1; r3 < i3.length; r3++) {
  11238. var s2 = _t(t3, i3[r3]);
  11239. s2 < n3 && (e4 = r3, n3 = s2);
  11240. }
  11241. return e4;
  11242. }, Object.defineProperty(e3.prototype, "tensionX", { get: function() {
  11243. return this.getPropertyValue("tensionX");
  11244. }, set: function(t3) {
  11245. this.setPropertyValue("tensionX", t3), this.makePath();
  11246. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tensionY", { get: function() {
  11247. return this.getPropertyValue("tensionY");
  11248. }, set: function(t3) {
  11249. this.setPropertyValue("tensionY", t3, true), this.makePath();
  11250. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  11251. var i3 = 0, n3 = this.allPoints, r3 = n3.length;
  11252. if (tt(t3) || (t3 = 0), r3 > 1) {
  11253. if (e4 && r3 > 3) {
  11254. if (t3 < 0) {
  11255. t3 < -0.01 && (t3 = -0.01);
  11256. var s2 = n3[0], a2 = n3[1];
  11257. return { x: o3 = s2.x - (s2.x - a2.x) * r3 * t3, y: l2 = s2.y - (s2.y - a2.y) * r3 * t3, angle: Dt(s2, a2) };
  11258. }
  11259. var o3, l2;
  11260. if (t3 > 1)
  11261. return t3 > 1.01 && (t3 = 1.01), s2 = n3[n3.length - 2], a2 = n3[n3.length - 3], { x: o3 = s2.x + (s2.x - a2.x) * r3 * (t3 - 1), y: l2 = s2.y + (s2.y - a2.y) * r3 * (t3 - 1), angle: Dt(s2, { x: o3, y: l2 }) };
  11262. if (t3 == 1) {
  11263. var h2 = n3[n3.length - 1];
  11264. return { x: h2.x, y: h2.y, angle: h2.angle };
  11265. }
  11266. } else
  11267. t3 < 0 && (t3 = Math.abs(t3), i3 = 180), t3 >= 1 && (t3 = 0.9999999999999);
  11268. var p2;
  11269. return { x: (p2 = n3[Math.floor(t3 * r3)]).x, y: p2.y, angle: p2.angle + i3 };
  11270. }
  11271. return r3 == 1 ? { x: (p2 = n3[0]).x, y: p2.y, angle: p2.angle } : { x: 0, y: 0, angle: 0 };
  11272. }, e3;
  11273. }(jo);
  11274. Ii.registeredClasses.Polyspline = Ho;
  11275. var No = function(t2) {
  11276. function e3() {
  11277. var e4 = t2.call(this) || this;
  11278. return e4.className = "Slice", e4.setPropertyValue("cornerRadius", 0), e4.setPropertyValue("startAngle", 0), e4.setPercentProperty("innerRadius", 0), e4.setPercentProperty("radius", 0), e4.setPropertyValue("arc", 0), e4.setPropertyValue("shiftRadius", 0), e4.strokeOpacity = 1, e4.setPropertyValue("layout", "none"), e4.slice = e4.createChild(Za), e4.slice.isMeasured = false, e4._disposers.push(e4.slice), e4.applyTheme(), e4;
  11279. }
  11280. return C(e3, t2), e3.prototype.draw = function() {
  11281. t2.prototype.draw.call(this);
  11282. var e4 = this.radiusY;
  11283. this.radius > 0 && e4 == 0 && (e4 = 0.01), this.slice.path = ko(this.startAngle, this.arc, this.radius, this.pixelInnerRadius, e4, this.cornerRadius, this.innerCornerRadius), this.slice.invalidate(), this.shiftRadius = this.shiftRadius, this.realFill instanceof Sa && this.updateGradient(this.realFill), this.realStroke instanceof Sa && this.updateGradient(this.realStroke);
  11284. }, e3.prototype.updateGradient = function(t3) {
  11285. t3.element.attr({ gradientUnits: "userSpaceOnUse" }), t3.element.attr({ r: this.radius }), t3.cx = 0, t3.cy = 0, t3.element.attr({ radius: this.radius });
  11286. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  11287. return this.definedBBox ? this.definedBBox : this.isMeasured ? At([Bt(this.startAngle, this.startAngle + this.arc, this.pixelInnerRadius), Bt(this.startAngle, this.startAngle + this.arc, this.radius)]) : { x: 0, y: 0, width: 0, height: 0 };
  11288. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  11289. return this.getPropertyValue("startAngle");
  11290. }, set: function(t3) {
  11291. this.setPropertyValue("startAngle", Et(t3), true);
  11292. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "arc", { get: function() {
  11293. return this.getPropertyValue("arc");
  11294. }, set: function(t3) {
  11295. tt(t3) || (t3 = 0), this.setPropertyValue("arc", t3, true);
  11296. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  11297. var t3 = this.getPropertyValue("radius");
  11298. return tt(t3) || (t3 = 0), t3;
  11299. }, set: function(t3) {
  11300. this.setPropertyValue("radius", t3, true);
  11301. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radiusY", { get: function() {
  11302. var t3 = this.getPropertyValue("radiusY");
  11303. return tt(t3) || (t3 = this.radius), t3;
  11304. }, set: function(t3) {
  11305. this.setPropertyValue("radiusY", t3, true);
  11306. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  11307. return this.getPropertyValue("innerRadius");
  11308. }, set: function(t3) {
  11309. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  11310. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  11311. return Vn(this.innerRadius, this.radius);
  11312. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadius", { get: function() {
  11313. return this.getPropertyValue("cornerRadius");
  11314. }, set: function(t3) {
  11315. this.setPropertyValue("cornerRadius", t3, true);
  11316. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerCornerRadius", { get: function() {
  11317. return this.getPropertyValue("innerCornerRadius");
  11318. }, set: function(t3) {
  11319. this.setPropertyValue("innerCornerRadius", t3, true);
  11320. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "shiftRadius", { get: function() {
  11321. return this.getPropertyValue("shiftRadius");
  11322. }, set: function(t3) {
  11323. this.setPropertyValue("shiftRadius", t3), t3 = this.getPropertyValue("shiftRadius"), this.dx = t3 * this.radius * this.ix, this.dy = t3 * this.radiusY * this.iy;
  11324. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ix", { get: function() {
  11325. return ft(this.middleAngle);
  11326. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "iy", { get: function() {
  11327. return dt(this.middleAngle);
  11328. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "middleAngle", { get: function() {
  11329. return this.startAngle + this.arc / 2;
  11330. }, enumerable: true, configurable: true }), e3.prototype.getTooltipX = function() {
  11331. var t3 = this.getPropertyValue("tooltipX");
  11332. if (tt(t3))
  11333. return t3;
  11334. var e4 = 0.5;
  11335. t3 instanceof A && (e4 = t3.value);
  11336. var i3 = Vn(this.innerRadius, this.radius);
  11337. return this.ix * (i3 + (this.radius - i3) * e4);
  11338. }, e3.prototype.getTooltipY = function() {
  11339. var t3 = this.getPropertyValue("tooltipY");
  11340. if (tt(t3))
  11341. return t3;
  11342. var e4 = 0.5;
  11343. t3 instanceof A && (e4 = t3.value);
  11344. var i3 = Vn(this.innerRadius, this.radius);
  11345. return this.iy * (i3 + (this.radius - i3) * e4) + this.slice.dy;
  11346. }, e3;
  11347. }($a);
  11348. Ii.registeredClasses.Slice = No;
  11349. var Wo = function(t2) {
  11350. function e3() {
  11351. var e4 = t2.call(this) || this;
  11352. e4.className = "Preloader", e4.width = V(100), e4.height = V(100);
  11353. var i3 = new Ys(), n3 = e4.createChild($a);
  11354. n3.shouldClone = false;
  11355. var r3 = n3.createChild(No);
  11356. r3.shouldClone = false, r3.radius = 53, r3.arc = 360, r3.fill = i3.getFor("fill"), r3.fillOpacity = 0.8, r3.innerRadius = 42, r3.isMeasured = false, e4.backgroundSlice = r3;
  11357. var s2 = n3.createChild(No);
  11358. s2.shouldClone = false, s2.radius = 50, s2.innerRadius = 45, s2.fill = i3.getFor("alternativeBackground"), s2.fillOpacity = 0.2, s2.isMeasured = false, e4.progressSlice = s2;
  11359. var a2 = n3.createChild(co);
  11360. return a2.shouldClone = false, a2.horizontalCenter = "middle", a2.verticalCenter = "middle", a2.isMeasured = false, a2.fill = i3.getFor("text"), a2.align = "center", a2.valign = "middle", a2.textAlign = "middle", a2.fillOpacity = 0.4, e4.label = a2, e4.background.opacity = 1, e4.background.fill = i3.getFor("background"), e4.contentAlign = "center", e4.contentValign = "middle", e4.delay = 300, e4.states.create("hidden").properties.opacity = 0, e4.visible = false, e4.hide(0), e4.__disabled = true, e4._disposers.push(e4.backgroundSlice), e4._disposers.push(e4.progressSlice), e4._disposers.push(e4.label), e4._disposers.push(n3), e4;
  11361. }
  11362. return C(e3, t2), Object.defineProperty(e3.prototype, "progress", { get: function() {
  11363. return this.getPropertyValue("progress");
  11364. }, set: function(t3) {
  11365. var e4 = this;
  11366. this.__disabled = false, this.validateLayout(), this.setPropertyValue("progress", t3), this.progressSlice.arc = 360 * t3, this.label && (this.label.text = Math.round(100 * t3) + "%"), t3 >= 1 ? (this._started && (this._started = void 0), Ii.events.once("enterframe", function() {
  11367. var t4 = e4.hide();
  11368. t4 && !t4.isFinished() ? t4.events.once("animationended", function() {
  11369. e4.__disabled = true;
  11370. }) : e4.__disabled = true;
  11371. }), this.interactionsEnabled = false, this.setPropertyValue("progress", 0)) : t3 > 0 && (this.delay ? this._started ? this._started + this.delay <= new Date().getTime() && (this.__disabled = false, this.show(), this.interactionsEnabled = true) : this._started = new Date().getTime() : (this.__disabled = false, this.show(), this.interactionsEnabled = true));
  11372. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "delay", { get: function() {
  11373. return this.getPropertyValue("delay");
  11374. }, set: function(t3) {
  11375. this.setPropertyValue("delay", t3);
  11376. }, enumerable: true, configurable: true }), e3;
  11377. }($a);
  11378. Ii.registeredClasses.Preloader = Wo;
  11379. var Xo = function(t2) {
  11380. function e3() {
  11381. var e4 = t2.call(this) || this;
  11382. e4.className = "ResizeButton", e4.orientation = "horizontal", e4.layout = "absolute", e4.horizontalCenter = "middle", e4.verticalCenter = "middle", e4.draggable = true, e4.padding(8, 8, 8, 8), e4.background.cornerRadius(20, 20, 20, 20);
  11383. var i3 = new Za();
  11384. i3.element = e4.paper.add("path");
  11385. var n3 = wo({ x: -2, y: -6 });
  11386. return n3 += Co({ x: -2, y: 6 }), n3 += wo({ x: 2, y: -6 }), n3 += Co({ x: 2, y: 6 }), i3.path = n3, i3.pixelPerfect = true, i3.padding(0, 4, 0, 4), i3.stroke = new Ys().getFor("alternativeText"), i3.strokeOpacity = 0.7, e4.icon = i3, e4.label.dispose(), e4.label = void 0, e4.applyTheme(), e4;
  11387. }
  11388. return C(e3, t2), Object.defineProperty(e3.prototype, "orientation", { set: function(t3) {
  11389. var e4 = this.icon;
  11390. e4 && (e4.rotation = t3 == "horizontal" ? 0 : -90);
  11391. }, enumerable: true, configurable: true }), e3;
  11392. }(go);
  11393. Ii.registeredClasses.ResizeButton = Xo;
  11394. var Yo = function(t2) {
  11395. function e3() {
  11396. var e4 = t2.call(this) || this;
  11397. e4.className = "CloseButton", e4.padding(8, 8, 8, 8), e4.showSystemTooltip = true, e4.width = 30, e4.height = 30;
  11398. var i3 = new Ys();
  11399. e4.cursorOverStyle = Ia.pointer;
  11400. var n3 = e4.background;
  11401. n3.cornerRadius(20, 20, 20, 20);
  11402. var r3 = i3.getFor("background");
  11403. n3.fill = r3, n3.stroke = i3.getFor("primaryButton"), n3.strokeOpacity = 1, n3.strokeWidth = 1;
  11404. var s2 = i3.getFor("primaryButtonActive"), a2 = n3.states.getKey("hover");
  11405. a2.properties.strokeWidth = 3, a2.properties.fill = r3;
  11406. var o3 = n3.states.getKey("down");
  11407. o3.properties.stroke = s2, o3.properties.fill = r3;
  11408. var l2 = new Za();
  11409. return l2.element = e4.paper.add("path"), l2.stroke = n3.stroke, e4.icon = l2, e4.applyTheme(), e4;
  11410. }
  11411. return C(e3, t2), e3.prototype.validate = function() {
  11412. t2.prototype.validate.call(this);
  11413. var e4 = this.pixelWidth / 3, i3 = this.pixelHeight / 3, n3 = wo({ x: -e4 / 2, y: -i3 / 2 });
  11414. n3 += Co({ x: e4 / 2, y: i3 / 2 }), n3 += wo({ x: e4 / 2, y: -i3 / 2 }), n3 += Co({ x: -e4 / 2, y: i3 / 2 }), this.icon.path = n3, this.invalidateLayout();
  11415. }, e3.prototype.applyInternalDefaults = function() {
  11416. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Close"));
  11417. }, e3;
  11418. }(go);
  11419. Ii.registeredClasses.CloseButton = Yo;
  11420. var zo = function(t2) {
  11421. function e3() {
  11422. var e4 = t2.call(this) || this;
  11423. e4.className = "SwitchButton", e4.tooltipY = 0, e4.layout = "horizontal", e4.contentAlign = "center", e4.contentValign = "middle", e4.padding(8, 16, 8, 16), e4.setStateOnChildren = true, e4.states.create("active");
  11424. var i3 = new Ys(), n3 = new co();
  11425. n3.fillOpacity = 0.3, n3.states.create("active").properties.fillOpacity = 1, n3.isActive = true, e4.leftLabel = n3;
  11426. var r3 = new go(), s2 = new yo();
  11427. r3.contentValign = "none", r3.padding(0, 0, 0, 0), s2.radius = 10, r3.icon = s2, r3.icon.valign = "middle", r3.label = void 0;
  11428. var a2 = V(100);
  11429. r3.background.cornerRadius(a2, a2, a2, a2), r3.width = 3.5 * s2.radius, r3.height = 2.1 * s2.radius, r3.marginLeft = 8, r3.marginRight = 8, r3.togglable = true, s2.dx = 0.7 * -s2.radius, s2.fill = i3.getFor("primaryButton"), s2.states.create("hover").properties.fill = i3.getFor("primaryButtonHover");
  11430. var o3 = s2.states.create("active");
  11431. o3.properties.fill = i3.getFor("primaryButtonActive"), o3.properties.dx = 0.7 * s2.radius, e4.switchButton = r3, e4.events.on("toggled", function() {
  11432. e4.leftLabel.isActive = !e4.isActive, e4.rightLabel.isActive = e4.isActive;
  11433. });
  11434. var l2 = new co();
  11435. return l2.fillOpacity = 0.3, l2.states.create("active").properties.fillOpacity = 1, e4.rightLabel = l2, e4.role = "button", e4.focusable = true, l2.valign = "middle", n3.valign = "middle", r3.valign = "middle", e4.applyTheme(), e4;
  11436. }
  11437. return C(e3, t2), Object.defineProperty(e3.prototype, "leftLabel", { get: function() {
  11438. return this._leftLabel;
  11439. }, set: function(t3) {
  11440. this._leftLabel && this.removeDispose(this._leftLabel), this._leftLabel = t3, t3 && (t3.parent = this, t3.interactionsEnabled = false, t3.shouldClone = false, this._disposers.push(this._leftLabel));
  11441. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rightLabel", { get: function() {
  11442. return this._rightLabel;
  11443. }, set: function(t3) {
  11444. this._rightLabel && this.removeDispose(this._rightLabel), this._rightLabel = t3, t3 && (t3.parent = this, t3.interactionsEnabled = false, t3.shouldClone = false, this._disposers.push(this._rightLabel));
  11445. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "switch", { get: function() {
  11446. return this._switchButton;
  11447. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "switchButton", { get: function() {
  11448. return this._switchButton;
  11449. }, set: function(t3) {
  11450. this._switchButton && this.removeDispose(this._switchButton), this._switchButton = t3, t3 && (t3.parent = this, t3.shouldClone = false, this._disposers.push(this._switchButton));
  11451. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  11452. t2.prototype.copyFrom.call(this, e4), e4.leftLabel && this.leftLabel.copyFrom(e4.leftLabel), e4.rightLabel && this.rightLabel.copyFrom(e4.rightLabel), e4.switchButton && this.switchButton.copyFrom(e4.switchButton);
  11453. }, e3;
  11454. }($a);
  11455. Ii.registeredClasses.SwitchButton = zo;
  11456. var Uo = function(t2) {
  11457. function e3() {
  11458. var e4 = t2.call(this) || this;
  11459. e4._previousStart = 0, e4._previousEnd = 1, e4._prevStart = 0, e4._prevEnd = 1, e4._isBusy = false, e4._skipRangeEvents = false, e4.updateWhileMoving = true, e4.className = "Scrollbar", e4.minHeight = 12, e4.minWidth = 12, e4.animationDuration = 0, e4.animationEasing = zr, e4.margin(10, 10, 10, 10);
  11460. var i3 = new Ys(), n3 = e4.background;
  11461. return n3.cornerRadius(10, 10, 10, 10), n3.fill = i3.getFor("fill"), n3.fillOpacity = 0.5, e4.showSystemTooltip = true, e4.startGrip = new Xo(), e4.endGrip = new Xo(), e4.events.on("transformed", function() {
  11462. e4.updateThumb();
  11463. }, e4, false), e4.start = 0, e4.end = 1, e4.role = "scrollbar", e4.thumb.role = "slider", e4.thumb.readerLive = "polite", e4.startGrip.role = "slider", e4.endGrip.role = "slider", e4.events.once("inited", function() {
  11464. e4._previousStart = void 0, e4.dispatchRangeChange();
  11465. }, void 0, false), e4.hideGrips = false, e4.orientation = "horizontal", e4.setSVGAttribute({ "aria-valuemin": "0" }), e4.setSVGAttribute({ "aria-valuemax": "100" }), e4.applyTheme(), e4;
  11466. }
  11467. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  11468. t2.prototype.applyInternalDefaults.call(this), this.orientation === "horizontal" ? (Z(this.readerTitle) || (this.readerTitle = this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")), Z(this.thumb.readerDescription) || (this.thumb.readerDescription = this.language.translate("Use left and right arrows to move selection")), Z(this.startGrip.readerDescription) || (this.startGrip.readerDescription = this.language.translate("Use left and right arrows to move left selection")), Z(this.endGrip.readerDescription) || (this.endGrip.readerDescription = this.language.translate("Use left and right arrows to move right selection")), this.readerOrientation = "horizontal") : (Z(this.readerTitle) || (this.readerTitle = this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")), Z(this.thumb.readerDescription) || (this.thumb.readerDescription = this.language.translate("Use up and down arrows to move selection")), Z(this.startGrip.readerDescription) || (this.startGrip.readerDescription = this.language.translate("Use up and down arrows to move upper selection")), Z(this.endGrip.readerDescription) || (this.endGrip.readerDescription = this.language.translate("Use up and down arrows to move lower selection")), this.readerOrientation = "vertical"), this.readerControls = this.baseSprite.uidAttr();
  11469. }, e3.prototype.validateLayout = function() {
  11470. this.updateSize(), t2.prototype.validateLayout.call(this), this.updateExtremes();
  11471. }, e3.prototype.processBackground = function() {
  11472. t2.prototype.processBackground.call(this);
  11473. var e4 = this.background;
  11474. e4.clickable = true, e4.events.on("hit", this.handleBgHit, this, void 0);
  11475. }, e3.prototype.handleBgHit = function(t3) {
  11476. this.makeBusy();
  11477. var e4 = t3.spritePoint;
  11478. e4 = dr(e4, this.background, this);
  11479. var i3 = this.thumb;
  11480. if (this.orientation == "horizontal") {
  11481. var n3 = e4.x - i3.pixelWidth / 2;
  11482. n3 = ut(n3, 0, this.innerWidth - i3.pixelWidth), this._thumbAnimation = i3.animate({ property: "x", to: n3 }, this.animationDuration, this.animationEasing);
  11483. } else {
  11484. var r3 = e4.y - i3.pixelHeight / 2;
  11485. r3 = ut(r3, 0, this.innerHeight - i3.pixelHeight), this._thumbAnimation = i3.animate({ property: "y", to: r3 }, this.animationDuration, this.animationEasing);
  11486. }
  11487. this.animationDuration > 0 ? this._thumbAnimation.events.on("animationended", this.makeUnbusy, this, false) : (this._thumb.validate(), this.makeUnbusy());
  11488. }, e3.prototype.makeBusy = function() {
  11489. this._isBusy = true, this._skipRangeEvents = false, this._unbusyTimeout && this.removeDispose(this._unbusyTimeout), this._unbusyTimeout = void 0, this.stopAnimations();
  11490. }, e3.prototype.stopAnimations = function() {
  11491. this._thumbAnimation && this._thumbAnimation.stop(true), this._zoomAnimation && this._zoomAnimation.stop(true);
  11492. }, e3.prototype.makeUnbusy = function() {
  11493. this._unbusyTimeout = this.setTimeout(this.makeUnbusyReal.bind(this), 1.1 * this.animationDuration);
  11494. }, e3.prototype.makeUnbusyReal = function() {
  11495. this._usingGrip = void 0, this._isBusy = false, this.updateWhileMoving || this.dispatchRangeChange();
  11496. }, e3.prototype.dispatchRangeChange = function() {
  11497. this._previousEnd == this.end && this._previousStart == this.start || (this._previousStart = this.start, this._previousEnd = this.end, this.dispatch("rangechanged"));
  11498. }, e3.prototype.updateThumb = function(t3) {
  11499. if (t3 === void 0 && (t3 = true), this.parent) {
  11500. var e4 = this.thumb, i3 = this.start, n3 = this.end, r3 = this.startGrip, s2 = this.endGrip;
  11501. if (this.orientation == "horizontal") {
  11502. var a2 = this.innerWidth;
  11503. e4.width = a2 * (n3 - i3), e4.maxX = a2 - e4.pixelWidth, e4.x = i3 * a2, r3.moveTo({ x: e4.pixelX, y: 0 }, void 0, void 0, true), s2.moveTo({ x: e4.pixelX + e4.pixelWidth, y: 0 }, void 0, void 0, true), r3.readerTitle = this.language.translate("From %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * i3) + "%", position: i3 }).value), r3.readerValueNow = "" + Math.round(100 * i3), r3.readerValueText = r3.readerTitle, s2.readerTitle = this.language.translate("To %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * n3) + "%", position: n3 }).value), s2.readerValueNow = "" + Math.round(100 * n3), s2.readerValueText = s2.readerTitle;
  11504. } else {
  11505. var o3 = this.innerHeight;
  11506. e4.height = o3 * (n3 - i3), e4.maxY = o3 - e4.pixelHeight, e4.y = (1 - n3) * o3, r3.moveTo({ x: 0, y: e4.pixelY + e4.pixelHeight }, void 0, void 0, true), s2.moveTo({ x: 0, y: e4.pixelY }, void 0, void 0, true), r3.readerTitle = this.language.translate("To %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * (1 - i3)) + "%", position: 1 - i3 }).value), r3.readerValueNow = "" + Math.round(100 * i3), r3.readerValueText = r3.readerTitle, s2.readerTitle = this.language.translate("From %1", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * (1 - n3)) + "%", position: 1 - n3 }).value), s2.readerValueNow = "" + Math.round(100 * n3), s2.readerValueText = s2.readerTitle;
  11507. }
  11508. e4.readerTitle = this.language.translate("From %1 to %2", void 0, this.adapter.apply("positionValue", { value: Math.round(100 * i3) + "%", position: i3 }).value, this.adapter.apply("positionValue", { value: Math.round(100 * n3) + "%", position: n3 }).value), e4.readerValueNow = "" + Math.round(100 * i3), e4.readerValueText = e4.readerTitle, this.readerValueNow = "" + Math.round(100 * i3), this.readerValueText = e4.readerTitle, !this._skipRangeEvents && this.updateWhileMoving && t3 && this.dispatchRangeChange();
  11509. }
  11510. }, e3.prototype.updateExtremes = function() {
  11511. var t3 = 0, e4 = 0, i3 = 0, n3 = 0;
  11512. this.orientation == "horizontal" ? (i3 = this.innerWidth, e4 = n3 = this.innerHeight / 2) : (n3 = this.innerHeight, t3 = i3 = this.innerWidth / 2);
  11513. var r3 = this.startGrip;
  11514. r3.minX = t3, r3.maxX = i3, r3.minY = e4, r3.maxY = n3;
  11515. var s2 = this.endGrip;
  11516. s2.minX = t3, s2.maxX = i3, s2.minY = e4, s2.maxY = n3;
  11517. var a2 = this.thumb;
  11518. a2.minX = t3, a2.maxX = i3, a2.minY = e4, a2.maxY = n3;
  11519. }, e3.prototype.updateSize = function() {
  11520. var t3 = this.orientation, e4 = this.startGrip;
  11521. e4 && (e4.orientation = t3), this.endGrip && (this.endGrip.orientation = t3);
  11522. var i3 = this.thumb;
  11523. i3 && (t3 == "horizontal" ? (tt(this._pixelWidth) || this.width instanceof A || (this.width = V(100)), Z(this.percentHeight) && (this.height = this.minHeight), i3.height = this.innerHeight, i3.verticalCenter = "middle", i3.horizontalCenter = "left") : (tt(this._pixelHeight) || this.height instanceof A || (this.height = V(100)), Z(this.percentWidth) && (this.width = this.minWidth), i3.width = this.innerWidth, i3.verticalCenter = "top", i3.horizontalCenter = "middle"));
  11524. }, Object.defineProperty(e3.prototype, "isBusy", { get: function() {
  11525. return this._isBusy;
  11526. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "start", { get: function() {
  11527. return Math.min(this.getPosition(this._start), this.getPosition(this._end));
  11528. }, set: function(t3) {
  11529. this._isBusy || (this.__start = t3);
  11530. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "__start", { get: function() {
  11531. return this._start;
  11532. }, set: function(t3) {
  11533. this._start = this.getPosition(t3), this.updateThumb();
  11534. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "end", { get: function() {
  11535. return Math.max(this.getPosition(this._start), this.getPosition(this._end));
  11536. }, set: function(t3) {
  11537. this._isBusy || (this.__end = t3);
  11538. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "__end", { get: function() {
  11539. return this._end;
  11540. }, set: function(t3) {
  11541. this._end = this.getPosition(t3), this.updateThumb();
  11542. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "range", { get: function() {
  11543. return { start: this.start, end: this.end, priority: this._usingGrip };
  11544. }, enumerable: true, configurable: true }), e3.prototype.skipRangeEvents = function() {
  11545. this._isBusy || (this._skipRangeEvents = true);
  11546. }, e3.prototype.fixRange = function(t3) {
  11547. t3.start == lt(this._start, 2) && t3.end == lt(this._end, 2) || (this._start = t3.start, this._end = t3.end, this._skipRangeEvents = true, this.updateThumb(), this._skipRangeEvents = false, this.thumb.validate(), this.thumb.background.validate());
  11548. }, e3.prototype.getPosition = function(t3) {
  11549. return ut(lt(t3, 4), 0, 1);
  11550. }, Object.defineProperty(e3.prototype, "orientation", { get: function() {
  11551. return this.getPropertyValue("orientation");
  11552. }, set: function(t3) {
  11553. this.setPropertyValue("orientation", t3) && (t3 === "horizontal" ? (this.startGrip.cursorOverStyle = Ia.horizontalResize, this.endGrip.cursorOverStyle = Ia.horizontalResize) : (this.startGrip.cursorOverStyle = Ia.verticalResize, this.endGrip.cursorOverStyle = Ia.verticalResize), this.updateByOrientation(), this.invalidate());
  11554. }, enumerable: true, configurable: true }), e3.prototype.updateByOrientation = function() {
  11555. }, Object.defineProperty(e3.prototype, "startGrip", { get: function() {
  11556. return this._startGrip;
  11557. }, set: function(t3) {
  11558. this._startGrip && this.removeDispose(this._startGrip), this._startGrip = t3, this.processGrip(t3);
  11559. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endGrip", { get: function() {
  11560. return this._endGrip;
  11561. }, set: function(t3) {
  11562. this._endGrip && this.removeDispose(this._endGrip), this._endGrip = t3, this.processGrip(t3);
  11563. }, enumerable: true, configurable: true }), e3.prototype.processGrip = function(t3) {
  11564. t3.parent = this, t3.isMeasured = false, t3.focusable = true, t3.shouldClone = false, t3.zIndex = 100, t3.events.on("drag", this.handleGripDrag, this, false), t3.events.on("dragstop", this.makeUnbusy, this, false), t3.events.on("down", this.makeBusy, this, false), t3.events.on("up", this.makeUnbusy, this, false), this._disposers.push(t3);
  11565. }, e3.prototype.handleGripDrag = function(t3) {
  11566. this.makeBusy(), t3.target === this._startGrip ? this._usingGrip = "start" : this._usingGrip = "end", this.orientation == "horizontal" ? (this._start = this.startGrip.pixelX / this.innerWidth, this._end = this.endGrip.pixelX / this.innerWidth) : (this._start = 1 - this.startGrip.pixelY / this.innerHeight, this._end = 1 - this.endGrip.pixelY / this.innerHeight), this.updateThumb();
  11567. }, Object.defineProperty(e3.prototype, "thumb", { get: function() {
  11568. if (!this._thumb) {
  11569. var t3 = new go();
  11570. t3.background.cornerRadius(10, 10, 10, 10), t3.padding(0, 0, 0, 0), this.thumb = t3;
  11571. }
  11572. return this._thumb;
  11573. }, set: function(t3) {
  11574. var e4 = this;
  11575. t3 && (this._thumb && this.removeDispose(this._thumb), this._thumb = t3, t3.parent = this, t3.isMeasured = false, t3.inert = true, t3.draggable = true, t3.clickable = true, t3.hoverable = true, t3.focusable = true, t3.shouldClone = false, t3.zIndex = 0, t3.cursorOverStyle = Ia.grab, t3.cursorDownStyle = Ia.grabbing, t3.events.on("dragstart", this.makeBusy, this, false), t3.events.on("dragstop", this.makeUnbusy, this, false), t3.events.on("positionchanged", this.handleThumbPosition, this, false), t3.events.on("sizechanged", this.handleThumbPosition, this, false), t3.events.on("doublehit", this.handleDoubleClick, this, false), this._disposers.push(ua().body.events.on("keyup", function(t4) {
  11576. $s.isKey(t4.event, ["space", "enter"]) && e4.thumb.isFocused && (t4.event.preventDefault(), e4.handleDoubleClick());
  11577. })), this._disposers.push(this._thumb));
  11578. }, enumerable: true, configurable: true }), e3.prototype.handleDoubleClick = function() {
  11579. this.makeBusy();
  11580. var t3 = 0, e4 = 1;
  11581. this.start != 0 || this.end != 1 ? (this._prevStart = this.start, this._prevEnd = this.end) : (t3 = this._prevStart, e4 = this._prevEnd);
  11582. var i3 = this.animate([{ property: "__start", to: t3 }, { property: "__end", to: e4 }], this.animationDuration, this.animationEasing);
  11583. i3 && !i3.isFinished() ? (i3.events.on("animationended", this.makeUnbusy, this, false), this._zoomAnimation = i3) : this.makeUnbusy();
  11584. }, e3.prototype.handleThumbPosition = function() {
  11585. var t3 = this.thumb;
  11586. if (this.orientation == "horizontal") {
  11587. var e4 = this.innerWidth, i3 = t3.innerWidth, n3 = t3.pixelX;
  11588. this._start = n3 / e4, this._end = (n3 + i3) / e4, this.updateThumb();
  11589. } else {
  11590. var r3 = this.innerHeight, s2 = t3.innerHeight, a2 = t3.pixelY;
  11591. this._start = 1 - (a2 + s2) / r3, this._end = 1 - a2 / r3, this.updateThumb();
  11592. }
  11593. }, e3.prototype.createBackground = function() {
  11594. return new fo();
  11595. }, Object.defineProperty(e3.prototype, "hideGrips", { get: function() {
  11596. return this._hideGrips;
  11597. }, set: function(t3) {
  11598. var e4 = this;
  11599. this._hideGrips = t3, this._overDisposer && this.removeDispose(this._overDisposer), this._outDisposer && this.removeDispose(this._outDisposer), t3 ? (this._overDisposer = this.events.on("over", function() {
  11600. e4.startGrip.show(), e4.endGrip.show();
  11601. }, void 0, false), this._outDisposer = this.events.on("out", function() {
  11602. e4.startGrip.hide(), e4.endGrip.hide();
  11603. }, void 0, false), this.startGrip.hide(), this.endGrip.hide()) : (this.startGrip.show(), this.endGrip.show());
  11604. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationDuration", { get: function() {
  11605. return this.getPropertyValue("animationDuration");
  11606. }, set: function(t3) {
  11607. this.setPropertyValue("animationDuration", t3);
  11608. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationEasing", { get: function() {
  11609. return this.getPropertyValue("animationEasing");
  11610. }, set: function(t3) {
  11611. this.setPropertyValue("animationEasing", t3);
  11612. }, enumerable: true, configurable: true }), e3.prototype.asFunction = function(e4) {
  11613. return e4 == "animationEasing" || t2.prototype.asIs.call(this, e4);
  11614. }, e3;
  11615. }($a);
  11616. Ii.registeredClasses.Scrollbar = Uo;
  11617. var Go = function(t2) {
  11618. function e3() {
  11619. var e4 = t2.call(this) || this;
  11620. return e4.className = "Slider", e4.thumb.opacity = 0, e4.thumb.interactionsEnabled = false, e4.endGrip.opacity = 0, e4.endGrip.interactionsEnabled = false, e4.startGrip.events.on("drag", function() {
  11621. e4.endGrip.x = e4.startGrip.x, e4.endGrip.y = e4.startGrip.y;
  11622. }), e4.applyTheme(), e4;
  11623. }
  11624. return C(e3, t2), Object.defineProperty(e3.prototype, "__end", { get: function() {
  11625. return this._start;
  11626. }, set: function(t3) {
  11627. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "end", { get: function() {
  11628. return this._start;
  11629. }, set: function(t3) {
  11630. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "start", { get: function() {
  11631. return this._start;
  11632. }, set: function(t3) {
  11633. this._isBusy || (this.__start = t3);
  11634. }, enumerable: true, configurable: true }), e3;
  11635. }(Uo);
  11636. Ii.registeredClasses.Slider = Go;
  11637. var Ko = function(t2) {
  11638. function e3() {
  11639. var e4 = t2.call(this) || this;
  11640. e4.className = "TextLink", e4.selectable = true;
  11641. var i3 = new Ys();
  11642. return e4.fill = i3.getFor("primaryButton").brighten(0.3), e4.states.create("hover").properties.fill = i3.getFor("primaryButtonHover").brighten(0.3), e4.states.create("down").properties.fill = i3.getFor("primaryButtonDown").brighten(0.3), e4.cursorOverStyle = Ia.pointer, e4.applyTheme(), e4;
  11643. }
  11644. return C(e3, t2), e3;
  11645. }(co);
  11646. Ii.registeredClasses.TextLink = Ko;
  11647. var Zo = function(t2) {
  11648. function e3() {
  11649. var e4 = t2.call(this) || this;
  11650. return e4.properties = {}, e4.isTemplate = false, e4._scale = 1, e4._nonScaling = true, e4.className = "Filter", e4.filterPrimitives = new Fi(), e4.properties.filterUnits = "objectBoundingBox", e4.filterPrimitives.events.on("inserted", function(t3) {
  11651. e4._disposers.push(t3.newValue);
  11652. }), e4.width = 120, e4.height = 120, e4.applyTheme(), e4;
  11653. }
  11654. return C(e3, t2), e3.prototype.appendPrimitives = function(t3) {
  11655. ti(this.filterPrimitives.iterator(), function(e4) {
  11656. t3.add(e4);
  11657. });
  11658. }, e3.prototype.animate = function(t3, e4, i3) {
  11659. return new ys(this, t3, e4, i3).start();
  11660. }, Object.defineProperty(e3.prototype, "width", { get: function() {
  11661. return this.properties.width;
  11662. }, set: function(t3) {
  11663. this.properties.width = t3;
  11664. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  11665. return this.properties.height;
  11666. }, set: function(t3) {
  11667. this.properties.height = t3;
  11668. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  11669. var i3 = this;
  11670. t2.prototype.copyFrom.call(this, e4), Ne(e4.properties, function(t3, e5) {
  11671. i3[t3] = e5;
  11672. });
  11673. }, Object.defineProperty(e3.prototype, "paper", { get: function() {
  11674. return this._paper ? this._paper : wa();
  11675. }, set: function(t3) {
  11676. this._paper != t3 && (this._paper = t3);
  11677. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animations", { get: function() {
  11678. return this._animations || (this._animations = [], this._disposers.push(new gs(this._animations))), this._animations;
  11679. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scale", { get: function() {
  11680. return this._scale;
  11681. }, set: function(t3) {
  11682. this._scale = t3, this.updateScale();
  11683. }, enumerable: true, configurable: true }), e3.prototype.updateScale = function() {
  11684. }, Object.defineProperty(e3.prototype, "filterUnits", { get: function() {
  11685. return this.properties.filterUnits;
  11686. }, set: function(t3) {
  11687. this.properties.filterUnits = t3;
  11688. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonScaling", { get: function() {
  11689. return this._nonScaling;
  11690. }, set: function(t3) {
  11691. this._nonScaling = t3, t3 || (this._scale = 1), this.updateScale();
  11692. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sprite", { set: function(t3) {
  11693. this.setSprite(t3);
  11694. }, enumerable: true, configurable: true }), e3.prototype.setSprite = function(t3) {
  11695. this._sprite && this._sprite != t3 && this._sprite.filters.removeValue(this), this._sprite = t3;
  11696. }, e3;
  11697. }(yn), qo = function(t2) {
  11698. function e3() {
  11699. var e4 = t2.call(this) || this;
  11700. return e4.className = "DropShadowFilter", e4.color = dn("#000"), e4.feGaussianBlur = e4.paper.add("feGaussianBlur"), e4.feGaussianBlur.attr({ result: "blurOut", in: "SourceGraphic" }), e4.filterPrimitives.push(e4.feGaussianBlur), e4.feOffset = e4.paper.add("feOffset"), e4.feOffset.attr({ result: "offsetBlur" }), e4.filterPrimitives.push(e4.feOffset), e4.feFlood = e4.paper.add("feFlood"), e4.feFlood.attr({ "flood-color": e4.color }), e4.filterPrimitives.push(e4.feFlood), e4.feComposite = e4.paper.add("feComposite"), e4.feComposite.attr({ in2: "offsetBlur", operator: "in" }), e4.filterPrimitives.push(e4.feComposite), e4.feMerge = e4.paper.addGroup("feMerge"), e4.feMerge.add(e4.paper.add("feMergeNode")), e4.feMerge.add(e4.paper.add("feMergeNode").attr({ in: "SourceGraphic" })), e4.filterPrimitives.push(e4.feMerge), e4.width = 200, e4.height = 200, e4.blur = 1.5, e4.dx = 3, e4.dy = 3, e4.opacity = 0.5, e4.applyTheme(), e4;
  11701. }
  11702. return C(e3, t2), Object.defineProperty(e3.prototype, "color", { get: function() {
  11703. return this.properties.color;
  11704. }, set: function(t3) {
  11705. this.properties.color = t3, this.feFlood && this.feFlood.attr({ "flood-color": t3 });
  11706. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opacity", { get: function() {
  11707. return this.properties.opacity;
  11708. }, set: function(t3) {
  11709. this.properties.opacity = t3, this.feFlood.attr({ "flood-opacity": t3 });
  11710. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dx", { get: function() {
  11711. return this.properties.dx;
  11712. }, set: function(t3) {
  11713. this.properties.dx = t3, this.feOffset.attr({ dx: t3 / this.scale });
  11714. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dy", { get: function() {
  11715. return this.properties.dy;
  11716. }, set: function(t3) {
  11717. this.properties.dy = t3, this.feOffset.attr({ dy: t3 / this.scale });
  11718. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "blur", { get: function() {
  11719. return this.properties.blur;
  11720. }, set: function(t3) {
  11721. this.properties.blur = t3, this.feGaussianBlur.attr({ stdDeviation: t3 / this.scale });
  11722. }, enumerable: true, configurable: true }), e3.prototype.updateScale = function() {
  11723. this.dx = this.dx, this.dy = this.dy, this.blur = this.blur;
  11724. }, e3;
  11725. }(Zo);
  11726. Ii.registeredClasses.DropShadowFilter = qo;
  11727. var $o = function(t2) {
  11728. function e3() {
  11729. var e4 = t2.call(this) || this;
  11730. e4._boundingRect = { x: -4e4, y: -4e4, width: 8e4, height: 8e4 }, e4._pointTo = { x: 0, y: 0 }, e4.fitPointerToBounds = false, e4._verticalOrientation = "up", e4.fixDoc = true, e4.className = "Tooltip", e4.isMeasured = false, e4.getFillFromObject = true, e4.margin(5, 5, 5, 5), e4.defaultState.transitionDuration = 1, e4.hiddenState.transitionDuration = 1;
  11731. var i3 = e4.background;
  11732. i3.interactionsEnabled = false, i3.fillOpacity = 0.9, i3.strokeWidth = 1, i3.strokeOpacity = 1, i3.stroke = dn("#ffffff"), i3.cornerRadius = 3, i3.pointerLength = 6, i3.pointerBaseWidth = 10;
  11733. var n3 = new qo();
  11734. n3.dy = 1, n3.dx = 1, n3.opacity = 0.5, i3.filters.push(n3), e4.autoTextColor = true;
  11735. var r3 = e4.createChild(co);
  11736. return r3.shouldClone = false, e4.label = r3, r3.padding(7, 12, 4, 12), r3.interactionsEnabled = false, r3.horizontalCenter = "middle", r3.fill = dn("#ffffff"), e4._disposers.push(r3), e4.label.events.on("sizechanged", e4.drawBackground, e4), e4.label.zIndex = 1, e4.pointerOrientation = "vertical", e4.animationDuration = 0, e4.animationEasing = zr, e4.setPropertyValue("showInViewport", false), e4.role = "tooltip", e4.visible = false, e4.opacity = 0, e4.x = 0, e4.y = 0, e4.events.on("visibilitychanged", e4.handleVisibility, e4), e4.applyTheme(), e4;
  11737. }
  11738. return C(e3, t2), e3.prototype.handleVisibility = function() {
  11739. this.visible && this.label.invalidate();
  11740. }, Object.defineProperty(e3.prototype, "getStrokeFromObject", { get: function() {
  11741. return this.getPropertyValue("getStrokeFromObject");
  11742. }, set: function(t3) {
  11743. this.setPropertyValue("getStrokeFromObject", t3, true);
  11744. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "autoTextColor", { get: function() {
  11745. return this.getPropertyValue("autoTextColor");
  11746. }, set: function(t3) {
  11747. this.setPropertyValue("autoTextColor", t3, true);
  11748. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keepTargetHover", { get: function() {
  11749. return this.getPropertyValue("keepTargetHover");
  11750. }, set: function(t3) {
  11751. var e4 = this;
  11752. this.setPropertyValue("keepTargetHover", t3, true) && t3 && (this.hoverable = true, this.background.interactionsEnabled = true, this._disposers.push(this.events.on("over", function(t4) {
  11753. e4.targetSprite && e4.targetSprite.hoverable && (e4.targetSprite.isHover = true);
  11754. })), this._disposers.push(this.events.on("out", function(t4) {
  11755. e4.targetSprite && e4.targetSprite.hoverable && (e4.targetSprite.isHover = false);
  11756. })));
  11757. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "showInViewport", { get: function() {
  11758. return this.getPropertyValue("showInViewport");
  11759. }, set: function(t3) {
  11760. this.setPropertyValue("showInViewport", t3);
  11761. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "getFillFromObject", { get: function() {
  11762. return this.getPropertyValue("getFillFromObject");
  11763. }, set: function(t3) {
  11764. this.setPropertyValue("getFillFromObject", t3, true);
  11765. }, enumerable: true, configurable: true }), e3.prototype.createBackground = function() {
  11766. return new _o();
  11767. }, Object.defineProperty(e3.prototype, "pointerOrientation", { get: function() {
  11768. return this.getPropertyValue("pointerOrientation");
  11769. }, set: function(t3) {
  11770. this.setPropertyValue("pointerOrientation", t3, true);
  11771. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationDuration", { get: function() {
  11772. return this.getPropertyValue("animationDuration");
  11773. }, set: function(t3) {
  11774. this.setPropertyValue("animationDuration", t3);
  11775. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "animationEasing", { get: function() {
  11776. return this.getPropertyValue("animationEasing");
  11777. }, set: function(t3) {
  11778. this.setPropertyValue("animationEasing", t3);
  11779. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "html", { get: function() {
  11780. return this.label.html;
  11781. }, set: function(t3) {
  11782. this.label.html != t3 && (this.label.html = t3, this.invalidate());
  11783. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "text", { get: function() {
  11784. return this.label.text;
  11785. }, set: function(t3) {
  11786. this.label.text != t3 && (this.label.text = t3, this.invalidate());
  11787. }, enumerable: true, configurable: true }), e3.prototype.draw = function() {
  11788. t2.prototype.draw.call(this);
  11789. var e4 = this.label;
  11790. e4.invalid && e4.validate();
  11791. var i3, n3, r3 = this._pointTo.x, s2 = this._pointTo.y, a2 = this._boundingRect, o3 = e4.measuredWidth, l2 = e4.measuredHeight, h2 = this.background.pointerLength;
  11792. if (this.ignoreBounds && (a2 = void 0), a2 && this.fixDoc && o3 > a2.width) {
  11793. vr({ x: a2.x, y: a2.y }, this.parent);
  11794. var p2 = vr({ x: a2.x + a2.width, y: a2.y + a2.height }, this.parent), u2 = document.body.offsetWidth;
  11795. document.body.offsetHeight, p2.x > u2 / 2 ? a2.x = a2.width - o3 : a2.width = a2.x + o3;
  11796. }
  11797. var d2 = this.pointerOrientation;
  11798. d2 == "horizontal" || d2 == "left" || d2 == "right" ? (n3 = -l2 / 2, i3 = d2 == "horizontal" ? a2 && r3 > a2.x + a2.width / 2 ? -o3 / 2 - h2 : o3 / 2 + h2 : d2 == "left" ? o3 / 2 + h2 : -o3 / 2 - h2) : (a2 && (i3 = ut(0, a2.x - r3 + o3 / 2, a2.x - r3 + a2.width - o3 / 2)), d2 == "vertical" ? a2 && s2 > a2.y + l2 + h2 ? (n3 = -l2 - h2, this._verticalOrientation = "up") : (n3 = h2, this._verticalOrientation = "down") : d2 == "down" ? (n3 = -l2 - h2, this._verticalOrientation = "up") : (n3 = h2, this._verticalOrientation = "down")), a2 && (n3 = ut(n3, a2.y - s2, a2.y + a2.height - l2 - s2)), e4.x = i3, e4.y = n3, this.drawBackground();
  11799. }, e3.prototype.updateBackground = function() {
  11800. this.group.addToBack(this.background.group);
  11801. }, e3.prototype.drawBackground = function() {
  11802. var t3 = this.label, e4 = this.background, i3 = t3.measuredWidth, n3 = t3.measuredHeight, r3 = this._boundingRect, s2 = i3, a2 = t3.pixelX - i3 / 2, o3 = n3, l2 = t3.pixelY, h2 = this._pointTo.x, p2 = this._pointTo.y, u2 = r3.x - h2, d2 = u2 + r3.width, c2 = r3.y - p2, f2 = c2 + r3.height;
  11803. e4.x = a2, e4.y = l2, e4.width = s2, e4.height = o3, this.fitPointerToBounds ? (e4.pointerX = ut(-e4.x, u2 - e4.x, d2 - e4.x), e4.pointerY = ut(-e4.y, c2 - e4.y, f2 - e4.y)) : (e4.pointerX = -e4.x, e4.pointerY = -e4.y), e4.validate();
  11804. }, e3.prototype.delayedPointTo = function(t3, e4) {
  11805. var i3 = this;
  11806. this._pointToDisposer && this._pointToDisposer.dispose(), this._pointToDisposer = Ii.events.once("exitframe", function() {
  11807. i3.pointTo(t3, e4);
  11808. }), this.addDisposer(this._pointToDisposer);
  11809. }, e3.prototype.pointTo = function(t3, e4) {
  11810. this._pointTo.x == t3.x && this._pointTo.y == t3.y || (this._pointTo = t3, this.invalidate(), !this.visible || e4 ? (this.moveTo(this._pointTo), this._animation && this._animation.kill()) : this.pixelX == 0 && this.pixelY == 0 ? this.moveTo(this._pointTo) : (this._animation && this._animation.kill(), this._animation = new ys(this, [{ property: "x", to: t3.x, from: this.pixelX }, { property: "y", to: t3.y, from: this.pixelY }], this.animationDuration, this.animationEasing).start()));
  11811. }, e3.prototype.setBounds = function(t3) {
  11812. var e4 = this._boundingRect;
  11813. e4.x == t3.x && e4.y == t3.y && e4.width == t3.width && e4.height == t3.height || (this._boundingRect = t3, this.invalidate());
  11814. }, Object.defineProperty(e3.prototype, "boundingContainer", { set: function(t3) {
  11815. this._boundingContainer = t3, t3.events.on("sizechanged", this.updateBounds, this), t3.events.on("positionchanged", this.updateBounds, this);
  11816. }, enumerable: true, configurable: true }), e3.prototype.updateBounds = function() {
  11817. var t3 = this._boundingContainer, e4 = fr({ x: t3.pixelX, y: t3.pixelY, width: t3.maxWidth, height: t3.maxHeight }, t3);
  11818. this.setBounds(e4);
  11819. }, Object.defineProperty(e3.prototype, "ignoreBounds", { get: function() {
  11820. return this.getPropertyValue("ignoreBounds");
  11821. }, set: function(t3) {
  11822. this.setPropertyValue("ignoreBounds", t3);
  11823. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalOrientation", { get: function() {
  11824. return this._verticalOrientation;
  11825. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltip", { get: function() {
  11826. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  11827. t2.prototype.copyFrom.call(this, e4), this.label.copyFrom(e4.label), e4._boundingRect && (this._boundingRect = e4._boundingRect);
  11828. }, e3.prototype.asFunction = function(e4) {
  11829. return e4 == "animationEasing" || t2.prototype.asIs.call(this, e4);
  11830. }, e3;
  11831. }($a);
  11832. Ii.registeredClasses.Tooltip = $o;
  11833. var Jo = function(t2) {
  11834. function e3() {
  11835. var e4 = t2.call(this) || this;
  11836. return e4.className = "Trapezoid", e4.element = e4.paper.add("path"), e4.topSide = V(100), e4.bottomSide = V(100), e4.leftSide = V(100), e4.rightSide = V(100), e4.isMeasured = false, e4.applyTheme(), e4;
  11837. }
  11838. return C(e3, t2), e3.prototype.draw = function() {
  11839. t2.prototype.draw.call(this);
  11840. var e4 = this.pixelWidth, i3 = this.pixelHeight, n3 = Vn(this.topSide, e4), r3 = Vn(this.bottomSide, e4), s2 = Vn(this.leftSide, i3), a2 = Vn(this.rightSide, i3), o3 = (e4 - n3) / 2, l2 = (i3 - s2) / 2, h2 = e4 - (e4 - n3) / 2, p2 = (i3 - a2) / 2, u2 = e4 - (e4 - r3) / 2, d2 = i3 - (i3 - a2) / 2, c2 = (e4 - r3) / 2, f2 = i3 - (i3 - s2) / 2, g2 = "", y2 = "", m2 = "", v2 = "";
  11841. if (Z(this.horizontalNeck)) {
  11842. var b2 = this.horizontalNeck.value;
  11843. g2 = Co({ x: e4 * b2, y: Math.max(l2, p2) }), m2 = Co({ x: e4 * b2, y: Math.min(d2, f2) });
  11844. }
  11845. if (Z(this.verticalNeck)) {
  11846. var x2 = this.verticalNeck.value;
  11847. y2 = Co({ x: Math.min(h2, u2), y: i3 * x2 }), v2 = Co({ x: Math.max(o3, c2), y: i3 * x2 });
  11848. }
  11849. var _2 = wo({ x: o3, y: l2 }) + g2 + Co({ x: h2, y: p2 }) + y2 + Co({ x: u2, y: d2 }) + m2 + Co({ x: c2, y: f2 }) + v2;
  11850. this.path = _2;
  11851. }, Object.defineProperty(e3.prototype, "topSide", { get: function() {
  11852. return this.getPropertyValue("topSide");
  11853. }, set: function(t3) {
  11854. this.setPercentProperty("topSide", t3, true, false, 10, false);
  11855. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottomSide", { get: function() {
  11856. return this.getPropertyValue("bottomSide");
  11857. }, set: function(t3) {
  11858. this.setPercentProperty("bottomSide", t3, true, false, 10, false);
  11859. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "leftSide", { get: function() {
  11860. return this.getPropertyValue("leftSide");
  11861. }, set: function(t3) {
  11862. this.setPercentProperty("leftSide", t3, true, false, 10, false);
  11863. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rightSide", { get: function() {
  11864. return this.getPropertyValue("rightSide");
  11865. }, set: function(t3) {
  11866. this.setPercentProperty("rightSide", t3, true, false, 10, false);
  11867. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "horizontalNeck", { get: function() {
  11868. return this.getPropertyValue("horizontalNeck");
  11869. }, set: function(t3) {
  11870. this.setPropertyValue("horizontalNeck", t3, true);
  11871. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "verticalNeck", { get: function() {
  11872. return this.getPropertyValue("verticalNeck");
  11873. }, set: function(t3) {
  11874. this.setPropertyValue("verticalNeck", t3, true);
  11875. }, enumerable: true, configurable: true }), e3;
  11876. }(Za);
  11877. Ii.registeredClasses.Trapezoid = Jo;
  11878. var Qo = function(t2) {
  11879. function e3() {
  11880. var e4 = t2.call(this) || this;
  11881. return e4.className = "Triangle", e4.element = e4.paper.add("path"), e4.direction = "top", e4.applyTheme(), e4;
  11882. }
  11883. return C(e3, t2), e3.prototype.draw = function() {
  11884. t2.prototype.draw.call(this);
  11885. var e4, i3 = this.pixelWidth, n3 = this.pixelHeight;
  11886. switch (this.direction) {
  11887. case "right":
  11888. e4 = wo({ x: 0, y: 0 }) + Co({ x: i3, y: n3 / 2 }) + Co({ x: 0, y: n3 }) + " Z";
  11889. break;
  11890. case "left":
  11891. e4 = wo({ x: i3, y: 0 }) + Co({ x: 0, y: n3 / 2 }) + Co({ x: i3, y: n3 }) + " Z";
  11892. break;
  11893. case "bottom":
  11894. e4 = wo({ x: 0, y: 0 }) + Co({ x: i3, y: 0 }) + Co({ x: i3 / 2, y: n3 }) + " Z";
  11895. break;
  11896. case "top":
  11897. e4 = wo({ x: i3 / 2, y: 0 }) + Co({ x: i3, y: n3 }) + Co({ x: 0, y: n3 }) + " Z";
  11898. }
  11899. this.path = e4;
  11900. }, Object.defineProperty(e3.prototype, "direction", { get: function() {
  11901. return this.getPropertyValue("direction");
  11902. }, set: function(t3) {
  11903. this.setPropertyValue("direction", t3, true);
  11904. }, enumerable: true, configurable: true }), e3;
  11905. }(Za);
  11906. Ii.registeredClasses.Triangle = Qo;
  11907. var tl = function() {
  11908. function t2(t3, e3) {
  11909. this._tensionX = t3, this._tensionY = e3;
  11910. }
  11911. return t2.prototype.smooth = function(t3) {
  11912. for (var e3 = t3.length - 1; e3 > 0; e3--) {
  11913. var i3 = t3[e3], n3 = t3[e3 - 1];
  11914. Math.abs(i3.x - n3.x) < 0.1 && Math.abs(i3.y - n3.y) < 0.1 && t3.splice(e3 - 1, 1);
  11915. }
  11916. var r3 = this._tensionX, s2 = this._tensionY;
  11917. if (t3.length < 3 || r3 >= 1 && s2 >= 1)
  11918. return Po(t3);
  11919. var a2 = t3[0], o3 = t3[t3.length - 1], l2 = false;
  11920. lt(a2.x, 3) == lt(o3.x) && lt(a2.y) == lt(o3.y) && (l2 = true);
  11921. for (var h2 = "", p2 = (e3 = 0, t3.length - 1); e3 < p2; e3++) {
  11922. i3 = t3[e3 - 1], n3 = t3[e3];
  11923. var u2 = t3[e3 + 1], d2 = t3[e3 + 2];
  11924. e3 === 0 ? i3 = l2 ? t3[t3.length - 2] : t3[e3] : e3 == t3.length - 2 && (d2 = l2 ? t3[1] : t3[e3 + 1]), h2 += So(u2, Mt(i3, n3, u2, 0, r3, s2), Lt(0, n3, u2, d2, r3, s2));
  11925. }
  11926. return h2;
  11927. }, t2;
  11928. }();
  11929. function el(t2, e3, i3, n3, r3, s2) {
  11930. var a2 = t2.x, o3 = t2.y, l2 = e3.x, h2 = e3.y, p2 = _t(t2, e3);
  11931. s2 && (i3 = p2 / Math.round(p2 / i3));
  11932. var u2 = Ii.getCache(Rn(["wavedLine", t2.x, e3.x, t2.y, e3.y, i3, n3]));
  11933. if (!u2) {
  11934. if (p2 > 0) {
  11935. var d2 = Math.atan2(h2 - o3, l2 - a2), c2 = Math.cos(d2), f2 = Math.sin(d2), g2 = i3 * c2, y2 = i3 * f2;
  11936. if (i3 <= 1 || n3 <= 1)
  11937. u2 = Co(e3);
  11938. else {
  11939. var m2 = Math.round(2 * p2 / i3), v2 = [], b2 = 1;
  11940. l2 < a2 && (b2 *= -1), h2 < o3 && (b2 *= -1);
  11941. for (var x2 = 0; x2 <= m2; x2++) {
  11942. var _2 = a2 + x2 * g2 / 2 + (b2 *= -1) * n3 / 2 * f2, P2 = o3 + x2 * y2 / 2 - b2 * n3 / 2 * c2;
  11943. v2.push({ x: _2, y: P2 });
  11944. }
  11945. u2 = new tl(r3, r3).smooth(v2);
  11946. }
  11947. } else
  11948. u2 = "";
  11949. Ii.setCache(Rn(["wavedLine", t2.x, e3.x, t2.y, e3.y, i3, n3]), u2);
  11950. }
  11951. return u2;
  11952. }
  11953. var il = function() {
  11954. function t2(t3, e3) {
  11955. this._reversed = t3, this._closed = e3.closed;
  11956. }
  11957. return t2.prototype._curve = function(t3, e3, i3, n3, r3, s2) {
  11958. var a2 = (e3 - t3) / 3;
  11959. return this._reversed ? So({ x: n3, y: e3 }, { x: i3 + a2 * r3, y: t3 + a2 }, { x: n3 - a2 * s2, y: e3 - a2 }) : So({ x: e3, y: n3 }, { x: t3 + a2, y: i3 + a2 * r3 }, { x: e3 - a2, y: n3 - a2 * s2 });
  11960. }, t2.prototype.smooth = function(t3) {
  11961. var e3 = this, i3 = NaN, n3 = NaN, r3 = NaN, s2 = NaN, a2 = NaN, o3 = 0, l2 = "";
  11962. switch (Ut(t3, function(t4) {
  11963. var h2 = t4.x, p2 = t4.y;
  11964. if (e3._reversed) {
  11965. var u2 = h2;
  11966. h2 = p2, p2 = u2;
  11967. }
  11968. var d2 = NaN;
  11969. if (h2 !== n3 || p2 !== s2) {
  11970. switch (o3) {
  11971. case 0:
  11972. o3 = 1, e3._reversed ? l2 += Co({ x: p2, y: h2 }) : l2 += Co({ x: h2, y: p2 });
  11973. break;
  11974. case 1:
  11975. o3 = 2;
  11976. break;
  11977. case 2:
  11978. o3 = 3, l2 += e3._curve(i3, n3, r3, s2, rl(i3, n3, r3, s2, d2 = sl(i3, n3, r3, s2, h2, p2)), d2);
  11979. break;
  11980. default:
  11981. l2 += e3._curve(i3, n3, r3, s2, a2, d2 = sl(i3, n3, r3, s2, h2, p2));
  11982. }
  11983. i3 = n3, n3 = h2, r3 = s2, s2 = p2, a2 = d2;
  11984. }
  11985. }), o3) {
  11986. case 2:
  11987. this._reversed ? l2 += Co({ x: s2, y: n3 }) : l2 += Co({ x: n3, y: s2 });
  11988. break;
  11989. case 3:
  11990. l2 += this._curve(i3, n3, r3, s2, a2, rl(i3, n3, r3, s2, a2));
  11991. }
  11992. return this._closed && (l2 += " Z"), l2;
  11993. }, t2;
  11994. }();
  11995. function nl(t2) {
  11996. return t2 < 0 ? -1 : 1;
  11997. }
  11998. function rl(t2, e3, i3, n3, r3) {
  11999. var s2 = e3 - t2;
  12000. return s2 ? (3 * (n3 - i3) / s2 - r3) / 2 : r3;
  12001. }
  12002. function sl(t2, e3, i3, n3, r3, s2) {
  12003. var a2 = e3 - t2, o3 = r3 - e3, l2 = (n3 - i3) / (a2 || o3 < 0 && -0), h2 = (s2 - n3) / (o3 || a2 < 0 && -0), p2 = (l2 * o3 + h2 * a2) / (a2 + o3);
  12004. return (nl(l2) + nl(h2)) * Math.min(Math.abs(l2), Math.abs(h2), 0.5 * Math.abs(p2)) || 0;
  12005. }
  12006. var al = function(t2) {
  12007. function e3(e4) {
  12008. return t2.call(this, false, e4) || this;
  12009. }
  12010. return C(e3, t2), e3;
  12011. }(il), ol = function(t2) {
  12012. function e3(e4) {
  12013. return t2.call(this, true, e4) || this;
  12014. }
  12015. return C(e3, t2), e3;
  12016. }(il), ll = function() {
  12017. function t2(t3) {
  12018. this._closed = t3.closed;
  12019. }
  12020. return t2.prototype.smooth = function(t3) {
  12021. var e3 = this, i3 = NaN, n3 = NaN, r3 = NaN, s2 = NaN, a2 = NaN, o3 = NaN, l2 = NaN, h2 = NaN, p2 = NaN, u2 = NaN, d2 = 0, c2 = "", f2 = function(t4, e4) {
  12022. c2 += So({ x: (i3 + 4 * n3 + t4) / 6, y: (o3 + 4 * l2 + e4) / 6 }, { x: (2 * i3 + n3) / 3, y: (2 * o3 + l2) / 3 }, { x: (i3 + 2 * n3) / 3, y: (o3 + 2 * l2) / 3 });
  12023. }, g2 = function(t4) {
  12024. var g3 = t4.x, y2 = t4.y;
  12025. switch (d2) {
  12026. case 0:
  12027. d2 = 1, e3._closed ? (r3 = g3, h2 = y2) : c2 += Co({ x: g3, y: y2 });
  12028. break;
  12029. case 1:
  12030. d2 = 2, e3._closed && (s2 = g3, p2 = y2);
  12031. break;
  12032. case 2:
  12033. if (d2 = 3, e3._closed) {
  12034. a2 = g3, u2 = y2, c2 += wo({ x: (i3 + 4 * n3 + g3) / 6, y: (o3 + 4 * l2 + y2) / 6 });
  12035. break;
  12036. }
  12037. c2 += Co({ x: (5 * i3 + n3) / 6, y: (5 * o3 + l2) / 6 });
  12038. default:
  12039. f2(g3, y2);
  12040. }
  12041. i3 = n3, n3 = g3, o3 = l2, l2 = y2;
  12042. };
  12043. if (Ut(t3, g2), this._closed)
  12044. switch (d2) {
  12045. case 1:
  12046. c2 += wo({ x: r3, y: h2 }), c2 += " Z";
  12047. break;
  12048. case 2:
  12049. c2 += wo({ x: (r3 + 2 * s2) / 3, y: (h2 + 2 * p2) / 3 }), c2 += Co({ x: (s2 + 2 * r3) / 3, y: (p2 + 2 * h2) / 3 }), c2 += " Z";
  12050. break;
  12051. case 3:
  12052. g2({ x: r3, y: h2 }), g2({ x: s2, y: p2 }), g2({ x: a2, y: u2 });
  12053. }
  12054. else {
  12055. switch (d2) {
  12056. case 3:
  12057. f2(n3, l2);
  12058. case 2:
  12059. c2 += Co({ x: n3, y: l2 });
  12060. }
  12061. c2 += " Z";
  12062. }
  12063. return c2;
  12064. }, t2;
  12065. }(), hl = function(t2) {
  12066. function e3() {
  12067. var e4 = t2.call(this) || this;
  12068. return e4.className = "WavedCircle", e4.element = e4.paper.add("path"), e4.waveLength = 16, e4.waveHeight = 4, e4.fill = void 0, e4.fillOpacity = 0, e4.tension = 0.8, e4.applyTheme(), e4;
  12069. }
  12070. return C(e3, t2), e3.prototype.draw = function() {
  12071. var t3 = "", e4 = this.pixelRadius;
  12072. e4 > 0 && (t3 = wo((i3 = this.getPoints(e4))[0]) + new tl(this.tension, this.tension).smooth(i3));
  12073. var i3, n3 = this.pixelInnerRadius;
  12074. n3 > 0 && ((i3 = this.getPoints(n3)).reverse(), t3 += wo(i3[0]) + new tl(this.tension, this.tension).smooth(i3)), this.path = t3;
  12075. }, e3.prototype.getPoints = function(t3) {
  12076. for (var e4 = t3 * Math.PI * 2, i3 = this.waveHeight / 2, n3 = e4 / Math.round(e4 / this.waveLength), r3 = n3 / 2, s2 = [], a2 = e4 / n3, o3 = 0; o3 <= a2; o3++) {
  12077. var l2 = o3 * n3 / e4 * 360, h2 = (o3 * n3 + r3) / e4 * 360;
  12078. s2.push({ x: (t3 - i3) * ft(l2), y: (t3 - i3) * dt(l2) }), s2.push({ x: (t3 + i3) * ft(h2), y: (t3 + i3) * dt(h2) });
  12079. }
  12080. return s2.pop(), s2;
  12081. }, Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  12082. return this.getPropertyValue("innerRadius");
  12083. }, set: function(t3) {
  12084. this.setPercentProperty("innerRadius", t3, true, false, 10, false), this.invalidate();
  12085. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  12086. return Vn(this.innerRadius, yt(this.innerWidth / 2, this.innerHeight / 2));
  12087. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveLength", { get: function() {
  12088. return this.getPropertyValue("waveLength");
  12089. }, set: function(t3) {
  12090. this.setPropertyValue("waveLength", t3), this.invalidate();
  12091. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveHeight", { get: function() {
  12092. return this.getPropertyValue("waveHeight");
  12093. }, set: function(t3) {
  12094. this.setPropertyValue("waveHeight", t3), this.invalidate();
  12095. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tension", { get: function() {
  12096. return this.getPropertyValue("tension");
  12097. }, set: function(t3) {
  12098. this.setPropertyValue("tension", t3), this.invalidate();
  12099. }, enumerable: true, configurable: true }), e3;
  12100. }(yo);
  12101. Ii.registeredClasses.WavedCircle = hl;
  12102. var pl = function(t2) {
  12103. function e3() {
  12104. var e4 = t2.call(this) || this;
  12105. return e4.className = "WavedLine", e4.element = e4.paper.add("path"), e4.waveLength = 16, e4.waveHeight = 4, e4.tension = 0.8, e4.pixelPerfect = false, e4.fill = dn(), e4.applyTheme(), e4;
  12106. }
  12107. return C(e3, t2), e3.prototype.draw = function() {
  12108. var t3 = { x: this.x1, y: this.y1 }, e4 = { x: this.x2, y: this.y2 };
  12109. this.path = wo(t3) + el(t3, e4, this.waveLength, this.waveHeight, this.tension, true);
  12110. }, Object.defineProperty(e3.prototype, "waveLength", { get: function() {
  12111. return this.getPropertyValue("waveLength");
  12112. }, set: function(t3) {
  12113. this.setPropertyValue("waveLength", t3), this.invalidate();
  12114. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveHeight", { get: function() {
  12115. return this.getPropertyValue("waveHeight");
  12116. }, set: function(t3) {
  12117. this.setPropertyValue("waveHeight", t3), this.invalidate();
  12118. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tension", { get: function() {
  12119. return this.getPropertyValue("tension");
  12120. }, set: function(t3) {
  12121. this.setPropertyValue("tension", t3), this.invalidate();
  12122. }, enumerable: true, configurable: true }), e3;
  12123. }(bo), ul = function(t2) {
  12124. function e3() {
  12125. var e4 = t2.call(this) || this;
  12126. return e4.className = "WavedRectangle", e4.element = e4.paper.add("path"), e4.waveLength = 16, e4.waveHeight = 4, e4.tension = 0.8, e4.setPropertyValue("wavedLeft", true), e4.setPropertyValue("wavedRight", true), e4.setPropertyValue("wavedTop", true), e4.setPropertyValue("wavedBottom", true), e4.applyTheme(), e4;
  12127. }
  12128. return C(e3, t2), e3.prototype.draw = function() {
  12129. t2.prototype.draw.call(this);
  12130. var e4 = this.pixelWidth, i3 = this.pixelHeight;
  12131. if (e4 > 0 && i3 > 0) {
  12132. var n3 = { x: 0, y: 0 }, r3 = { x: e4, y: 0 }, s2 = { x: e4, y: i3 }, a2 = { x: 0, y: i3 }, o3 = Math.min(e4, this.waveLength), l2 = Math.min(i3, this.waveHeight), h2 = Math.min(i3, this.waveLength), p2 = Math.min(e4, this.waveHeight), u2 = "", d2 = "", c2 = "", f2 = "";
  12133. this.wavedTop && (u2 = el(n3, r3, o3, l2, this.tension, true)), this.wavedRight && (d2 = el(r3, s2, h2, p2, this.tension, true)), this.wavedBottom && (c2 = el(s2, a2, o3, l2, this.tension, true)), this.wavedLeft && (f2 = el(a2, n3, h2, p2, this.tension, true)), this.path = wo(n3) + u2 + Co(r3) + d2 + Co(s2) + c2 + Co(a2) + f2 + "z";
  12134. }
  12135. }, Object.defineProperty(e3.prototype, "waveLength", { get: function() {
  12136. return this.getPropertyValue("waveLength");
  12137. }, set: function(t3) {
  12138. this.setPropertyValue("waveLength", t3), this.invalidate();
  12139. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "waveHeight", { get: function() {
  12140. return this.getPropertyValue("waveHeight");
  12141. }, set: function(t3) {
  12142. this.setPropertyValue("waveHeight", t3), this.invalidate();
  12143. }, enumerable: true, configurable: true }), e3.prototype.setWavedSides = function(t3, e4, i3, n3) {
  12144. this.wavedTop = t3, this.wavedRight = e4, this.wavedBottom = i3, this.wavedLeft = n3;
  12145. }, Object.defineProperty(e3.prototype, "tension", { get: function() {
  12146. return this.getPropertyValue("tension");
  12147. }, set: function(t3) {
  12148. this.setPropertyValue("tension", t3), this.invalidate();
  12149. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedRight", { get: function() {
  12150. return this.getPropertyValue("wavedRight");
  12151. }, set: function(t3) {
  12152. this.setPropertyValue("wavedRight", t3, true);
  12153. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedLeft", { get: function() {
  12154. return this.getPropertyValue("wavedLeft");
  12155. }, set: function(t3) {
  12156. this.setPropertyValue("wavedLeft", t3, true);
  12157. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedTop", { get: function() {
  12158. return this.getPropertyValue("wavedTop");
  12159. }, set: function(t3) {
  12160. this.setPropertyValue("wavedTop", t3, true);
  12161. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "wavedBottom", { get: function() {
  12162. return this.getPropertyValue("wavedBottom");
  12163. }, set: function(t3) {
  12164. this.setPropertyValue("wavedBottom", t3, true);
  12165. }, enumerable: true, configurable: true }), e3;
  12166. }(qa), dl = function(t2) {
  12167. function e3() {
  12168. var e4 = t2.call(this) || this;
  12169. e4.className = "ZoomOutButton", e4.padding(9, 9, 9, 9), e4.showSystemTooltip = true;
  12170. var i3 = new Ys(), n3 = e4.background;
  12171. n3.cornerRadius(20, 20, 20, 20), n3.fill = i3.getFor("primaryButton"), n3.stroke = i3.getFor("primaryButtonStroke"), n3.strokeOpacity = 0, n3.states.getKey("hover").properties.fill = i3.getFor("primaryButtonHover"), n3.states.getKey("down").properties.fill = i3.getFor("primaryButtonActive");
  12172. var r3 = new Za();
  12173. r3.element = e4.paper.add("path");
  12174. var s2 = wo({ x: 0, y: 0 });
  12175. return s2 += Co({ x: 11, y: 0 }), r3.path = s2, r3.pixelPerfect = true, r3.padding(8, 3, 8, 3), r3.stroke = i3.getFor("primaryButtonText"), e4.icon = r3, e4.applyTheme(), e4;
  12176. }
  12177. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  12178. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Zoom Out"));
  12179. }, e3;
  12180. }(go);
  12181. Ii.registeredClasses.ZoomOutButton = dl;
  12182. var cl = function(t2) {
  12183. function e3() {
  12184. var e4 = t2.call(this) || this;
  12185. e4.className = "PlayButton", e4.padding(12, 12, 12, 12), e4.showSystemTooltip = true;
  12186. var i3 = new Ys(), n3 = e4.background;
  12187. n3.cornerRadius(25, 25, 25, 25), n3.fill = i3.getFor("primaryButton"), n3.stroke = i3.getFor("primaryButtonStroke"), n3.strokeOpacity = 0, n3.states.getKey("hover").properties.fill = i3.getFor("primaryButtonHover"), n3.states.getKey("down").properties.fill = i3.getFor("primaryButtonActive");
  12188. var r3 = new Qo();
  12189. r3.direction = "right", r3.width = 9, r3.height = 11, r3.marginLeft = 1, r3.marginRight = 1, r3.horizontalCenter = "middle", r3.verticalCenter = "middle", r3.stroke = i3.getFor("primaryButtonText"), r3.fill = r3.stroke, e4.icon = r3;
  12190. var s2 = new fo();
  12191. s2.width = 11, s2.height = 11, s2.horizontalCenter = "middle", s2.verticalCenter = "middle", s2.cornerRadius(0, 0, 0, 0), s2.stroke = i3.getFor("primaryButtonText"), s2.fill = r3.stroke, e4.togglable = true;
  12192. var a2 = e4.states.create("active");
  12193. return a2.transitionDuration = 0, a2.properties.icon = s2, e4.defaultState.transitionDuration = 0, e4.applyTheme(), e4;
  12194. }
  12195. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  12196. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Play"));
  12197. }, e3;
  12198. }(go);
  12199. Ii.registeredClasses.PlayButton = cl;
  12200. var fl = function(t2) {
  12201. function e3() {
  12202. var e4 = t2.call(this) || this;
  12203. return e4.className = "ColorModifier", e4.applyTheme(), e4;
  12204. }
  12205. return C(e3, t2), e3.prototype.modify = function(t3) {
  12206. return t3;
  12207. }, e3;
  12208. }(yn);
  12209. Ii.registeredClasses.ColorModifier = fl;
  12210. var gl = function(t2) {
  12211. function e3() {
  12212. var e4 = t2.call(this) || this;
  12213. return e4.lightnesses = [], e4.brightnesses = [], e4.opacities = [], e4.offsets = [], e4.className = "GradientModifier", e4.applyTheme(), e4;
  12214. }
  12215. return C(e3, t2), Object.defineProperty(e3.prototype, "lightnesses", { get: function() {
  12216. return this._lightnesses;
  12217. }, set: function(t3) {
  12218. this._lightnesses = t3, this._brightnesses = [];
  12219. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "brightnesses", { get: function() {
  12220. return this._brightnesses;
  12221. }, set: function(t3) {
  12222. this._brightnesses = t3, this._lightnesses = [];
  12223. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opacities", { get: function() {
  12224. return this._opacities;
  12225. }, set: function(t3) {
  12226. this._opacities = t3;
  12227. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "offsets", { get: function() {
  12228. return this._offsets;
  12229. }, set: function(t3) {
  12230. this._offsets = t3;
  12231. }, enumerable: true, configurable: true }), e3.prototype.modify = function(t3) {
  12232. this.gradient.clear();
  12233. var e4 = 0;
  12234. this.opacities && (e4 = gt(e4, this.opacities.length)), this.lightnesses && (e4 = gt(e4, this.lightnesses.length)), this.brightnesses && (e4 = gt(e4, this.brightnesses.length));
  12235. for (var i3, n3, r3 = 1, s2 = 0; s2 < e4; s2++) {
  12236. var a2 = t3;
  12237. this.opacities && tt(this.opacities[s2]) && (r3 = this.opacities[s2]), this.lightnesses && tt(this.lightnesses[s2]) && (i3 = this.lightnesses[s2], n3 = void 0), this.brightnesses && tt(this.brightnesses[s2]) && (n3 = this.brightnesses[s2], i3 = void 0), tt(n3) ? a2 = t3.brighten(this.brightnesses[s2]) : tt(i3) && (a2 = t3.lighten(this.lightnesses[s2]));
  12238. var o3 = this.offsets[s2];
  12239. this.gradient.addColor(a2, r3, o3);
  12240. }
  12241. return this.gradient;
  12242. }, e3.prototype.copyFrom = function(e4) {
  12243. t2.prototype.copyFrom.call(this, e4), this._offsets = e4.offsets, this._brightnesses = e4.brightnesses, this._lightnesses = e4.lightnesses, this._opacities = e4.opacities;
  12244. }, e3;
  12245. }(fl);
  12246. Ii.registeredClasses.GradientModifier = gl;
  12247. var yl = function(t2) {
  12248. function e3() {
  12249. var e4 = t2.call(this) || this;
  12250. return e4.className = "LinearGradientModifier", e4.gradient = new Oa(), e4.applyTheme(), e4;
  12251. }
  12252. return C(e3, t2), e3.prototype.copyFrom = function(e4) {
  12253. t2.prototype.copyFrom.call(this, e4), this.gradient = e4.gradient.clone();
  12254. }, e3;
  12255. }(gl);
  12256. Ii.registeredClasses.LinearGradientModifier = yl;
  12257. var ml = function(t2) {
  12258. function e3() {
  12259. var e4 = t2.call(this) || this;
  12260. return e4.className = "Cone", e4.angle = 30, e4.radius = V(100), e4.topRadius = V(100), e4.top = e4.createChild(mo), e4.top.shouldClone = false, e4.bottom = e4.createChild(mo), e4.bottom.shouldClone = false, e4.body = e4.createChild(Za), e4.body.shouldClone = false, e4.body.setElement(e4.paper.add("path")), e4.layout = "none", e4.bodyFillModifier = new yl(), e4.bodyFillModifier.lightnesses = [0, -0.25, 0], e4.body.fillModifier = e4.bodyFillModifier, e4.applyTheme(), e4;
  12261. }
  12262. return C(e3, t2), e3.prototype.draw = function() {
  12263. t2.prototype.draw.call(this), Ue(this, this.top, Ka), Ue(this, this.bottom, Ka), Ue(this, this.body, Ka);
  12264. var e4, i3, n3, r3 = this.innerWidth, s2 = this.innerHeight, a2 = this.bottom, o3 = this.top, l2 = this.angle;
  12265. this.orientation == "horizontal" ? (e4 = s2 / 2, a2.y = s2 / 2, o3.y = s2 / 2, o3.x = r3, i3 = (90 - l2) / 90, n3 = 0, this.bodyFillModifier.gradient.rotation = 90) : (i3 = 0, n3 = (90 - l2) / 90, e4 = r3 / 2, a2.y = s2, a2.x = r3 / 2, o3.x = r3 / 2, this.bodyFillModifier.gradient.rotation = 0);
  12266. var h2, p2 = this.radius.value * e4, u2 = this.topRadius.value * e4;
  12267. a2.radius = p2 - p2 * i3, a2.radiusY = p2 - p2 * n3, o3.radius = u2 - u2 * i3, o3.radiusY = u2 - u2 * n3, h2 = this.orientation == "horizontal" ? wo({ x: 0, y: s2 / 2 - a2.radiusY }) + Do(-90, -180, a2.radius, a2.radiusY) + Co({ x: r3, y: s2 / 2 + o3.radiusY }) + Do(90, 180, o3.radius, o3.radiusY) + " Z" : wo({ x: r3 / 2 - o3.radius, y: 0 }) + Do(180, -180, o3.radius, o3.radiusY) + Co({ x: r3 / 2 + a2.radius, y: s2 }) + Do(0, 180, a2.radius, a2.radiusY) + " Z", this.body.path = h2;
  12268. }, Object.defineProperty(e3.prototype, "angle", { get: function() {
  12269. return this.getPropertyValue("angle");
  12270. }, set: function(t3) {
  12271. this.setPropertyValue("angle", t3, true);
  12272. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  12273. return this.getPropertyValue("radius");
  12274. }, set: function(t3) {
  12275. this.setPropertyValue("radius", t3, true);
  12276. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "topRadius", { get: function() {
  12277. return this.getPropertyValue("topRadius");
  12278. }, set: function(t3) {
  12279. this.setPropertyValue("topRadius", t3, true);
  12280. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  12281. return this.getPropertyValue("orientation");
  12282. }, set: function(t3) {
  12283. this.setPropertyValue("orientation", t3, true);
  12284. }, enumerable: true, configurable: true }), e3;
  12285. }($a), vl = function(t2) {
  12286. function e3() {
  12287. var e4 = t2.call(this) || this;
  12288. return e4.className = "LightenFilter", e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ type: "matrix" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.lightness = 0, e4.applyTheme(), e4;
  12289. }
  12290. return C(e3, t2), Object.defineProperty(e3.prototype, "lightness", { get: function() {
  12291. return this.properties.lightness;
  12292. }, set: function(t3) {
  12293. this.properties.lightness = t3;
  12294. var e4 = t3 + 1;
  12295. this.feColorMatrix.attr({ values: e4 + " 0 0 0 0 0 " + e4 + " 0 0 0 0 0 " + e4 + " 0 0 0 0 0 1 0" });
  12296. }, enumerable: true, configurable: true }), e3;
  12297. }(Zo);
  12298. Ii.registeredClasses.LightenFilter = vl;
  12299. var bl = function(t2) {
  12300. function e3() {
  12301. var e4 = t2.call(this) || this;
  12302. e4.angle = 30, e4.depth = 30, e4.className = "Rectangle3D", e4.layout = "none";
  12303. var i3 = e4.createChild(Za);
  12304. i3.shouldClone = false, i3.setElement(e4.paper.add("path")), i3.isMeasured = false, e4.sideBack = i3, e4._disposers.push(e4.sideBack);
  12305. var n3 = e4.createChild(Za);
  12306. n3.shouldClone = false, n3.setElement(e4.paper.add("path")), n3.isMeasured = false, e4.sideBottom = n3, e4._disposers.push(e4.sideBottom);
  12307. var r3 = e4.createChild(Za);
  12308. r3.shouldClone = false, r3.setElement(e4.paper.add("path")), r3.isMeasured = false, e4.sideLeft = r3, e4._disposers.push(e4.sideLeft);
  12309. var s2 = e4.createChild(Za);
  12310. s2.shouldClone = false, s2.setElement(e4.paper.add("path")), s2.isMeasured = false, e4.sideRight = s2, e4._disposers.push(e4.sideRight);
  12311. var a2 = e4.createChild(Za);
  12312. a2.shouldClone = false, a2.setElement(e4.paper.add("path")), a2.isMeasured = false, e4.sideTop = a2, e4._disposers.push(e4.sideTop);
  12313. var o3 = e4.createChild(Za);
  12314. return o3.shouldClone = false, o3.setElement(e4.paper.add("path")), o3.isMeasured = false, e4.sideFront = o3, e4._disposers.push(e4.sideFront), e4.applyTheme(), e4;
  12315. }
  12316. return C(e3, t2), e3.prototype.draw = function() {
  12317. t2.prototype.draw.call(this);
  12318. var e4 = this.innerWidth, i3 = this.innerHeight, n3 = this.depth, r3 = this.angle, s2 = dt(r3), a2 = ft(r3), o3 = { x: 0, y: 0 }, l2 = { x: e4, y: 0 }, h2 = { x: e4, y: i3 }, p2 = { x: 0, y: i3 }, u2 = { x: n3 * a2, y: -n3 * s2 }, d2 = { x: n3 * a2 + e4, y: -n3 * s2 }, c2 = { x: n3 * a2 + e4, y: -n3 * s2 + i3 }, f2 = { x: n3 * a2, y: -n3 * s2 + i3 };
  12319. this.sideFront.path = wo(o3) + Co(l2) + Co(h2) + Co(p2) + " Z", this.sideBack.path = wo(u2) + Co(d2) + Co(c2) + Co(f2) + " Z", this.sideLeft.path = wo(o3) + Co(u2) + Co(f2) + Co(p2) + " Z", this.sideRight.path = wo(l2) + Co(d2) + Co(c2) + Co(h2) + " Z", this.sideBottom.path = wo(p2) + Co(f2) + Co(c2) + Co(h2) + " Z", this.sideTop.path = wo(o3) + Co(u2) + Co(d2) + Co(l2) + " Z";
  12320. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  12321. return this.getPropertyValue("depth");
  12322. }, set: function(t3) {
  12323. this.setPropertyValue("depth", t3, true);
  12324. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  12325. return this.getPropertyValue("angle");
  12326. }, set: function(t3) {
  12327. this.setPropertyValue("angle", t3, true);
  12328. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(e4) {
  12329. var i3;
  12330. if (t2.prototype.setFill.call(this, e4), et(e4) && !("r" in e4) || (e4 = gn(e4)), e4 instanceof un)
  12331. i3 = e4.hex;
  12332. else if (e4 instanceof Oa || e4 instanceof Sa)
  12333. i3 = e4.stops.getIndex(0).color.hex;
  12334. else {
  12335. var n3 = new vl();
  12336. n3.lightness = -0.2, this.sideBack.filters.push(n3);
  12337. var r3 = n3.clone();
  12338. r3.lightness = -0.4, this.sideLeft.filters.push(r3);
  12339. var s2 = n3.clone();
  12340. s2.lightness = -0.2, this.sideRight.filters.push(s2);
  12341. var a2 = n3.clone();
  12342. a2.lightness = -0.1, this.sideTop.filters.push(a2);
  12343. var o3 = n3.clone();
  12344. o3.lightness = -0.5, this.sideBottom.filters.push(o3);
  12345. }
  12346. i3 && (this.sideBack.fill = dn(i3).lighten(-0.2), this.sideLeft.fill = dn(i3).lighten(-0.4), this.sideRight.fill = dn(i3).lighten(-0.2), this.sideTop.fill = dn(i3).lighten(-0.1), this.sideBottom.fill = dn(i3).lighten(-0.5));
  12347. }, e3.prototype.copyFrom = function(e4) {
  12348. t2.prototype.copyFrom.call(this, e4), this.sideBack.copyFrom(e4.sideBack), this.sideLeft.copyFrom(e4.sideLeft), this.sideRight.copyFrom(e4.sideRight), this.sideTop.copyFrom(e4.sideTop), this.sideBottom.copyFrom(e4.sideBottom);
  12349. }, e3;
  12350. }($a), xl = function(t2) {
  12351. function e3() {
  12352. var e4 = t2.call(this) || this;
  12353. e4.className = "Slice3D", e4.layout = "none";
  12354. var i3 = e4.createChild(Za);
  12355. e4.edge = i3, i3.shouldClone = false, i3.isMeasured = false, i3.toBack(), e4.angle = 30, e4.depth = 20;
  12356. var n3 = e4.createChild(Za);
  12357. e4.sideA = n3, n3.shouldClone = false, n3.isMeasured = false;
  12358. var r3 = e4.createChild(Za);
  12359. return e4.sideB = r3, r3.shouldClone = false, r3.isMeasured = false, e4.applyTheme(), e4;
  12360. }
  12361. return C(e3, t2), e3.prototype.setFill = function(e4) {
  12362. var i3;
  12363. if (t2.prototype.setFill.call(this, e4), e4 instanceof un)
  12364. i3 = e4.hex;
  12365. else if (e4 instanceof Oa || e4 instanceof Sa)
  12366. i3 = e4.stops.getIndex(0).color.hex;
  12367. else {
  12368. var n3 = new vl();
  12369. n3.lightness = -0.25, this.edge.filters.push(n3), this.sideA.filters.push(n3.clone()), this.sideB.filters.push(n3.clone());
  12370. }
  12371. if (i3) {
  12372. var r3 = dn(i3).lighten(-0.25);
  12373. this.edge.fill = r3, this.sideA.fill = r3, this.sideB.fill = r3, this.edge.stroke = r3, this.sideA.stroke = r3, this.sideB.stroke = r3;
  12374. }
  12375. }, e3.prototype.draw = function() {
  12376. if (this.cornerRadius = 0, this.innerCornerRadius = 0, t2.prototype.draw.call(this), this.arc !== 0 && this.radius > 0 && this.depth > 0) {
  12377. this.sideB.show(0), this.sideA.show(0), this.edge.show(0);
  12378. for (var e4 = this.startAngle, i3 = this.arc, n3 = this.pixelInnerRadius || 0, r3 = this.radiusY || 0, s2 = this.radius, a2 = e4 + i3, o3 = r3 / s2 * n3, l2 = { x: ft(e4) * n3, y: dt(e4) * o3 }, h2 = { x: ft(e4) * s2, y: dt(e4) * r3 }, p2 = { x: ft(a2) * s2, y: dt(a2) * r3 }, u2 = { x: ft(a2) * n3, y: dt(a2) * o3 }, d2 = this.depth, c2 = { x: l2.x, y: l2.y - d2 }, f2 = { x: h2.x, y: h2.y - d2 }, g2 = { x: p2.x, y: p2.y - d2 }, y2 = { x: u2.x, y: u2.y - d2 }, m2 = "", v2 = Math.ceil(i3 / 5), b2 = i3 / v2, x2 = e4, _2 = f2, P2 = 0; P2 < v2; P2++)
  12379. if ((x2 += b2) > 0 && x2 < 180) {
  12380. m2 += wo(_2);
  12381. var w2 = { x: ft(x2) * s2, y: dt(x2) * r3 - d2 };
  12382. m2 += Co({ x: _2.x, y: _2.y + d2 }), m2 += To({ x: w2.x, y: w2.y + d2 }, s2, r3, true), m2 += Co(w2), m2 += To(_2, s2, r3), m2 += "z", _2 = w2;
  12383. } else
  12384. m2 += wo(_2), m2 += To(w2 = { x: ft(x2) * s2, y: dt(x2) * r3 - d2 }, s2, r3, true), m2 += Co({ x: w2.x, y: w2.y + d2 }), m2 += To({ x: _2.x, y: _2.y + d2 }, s2, r3), m2 += Co(_2), m2 += "z", _2 = w2;
  12385. for (_2 = c2, x2 = e4, P2 = 0; P2 < v2; P2++)
  12386. (x2 += b2) > 0 && x2 < 180 ? (m2 += wo(_2), w2 = { x: ft(x2) * n3, y: dt(x2) * o3 - d2 }, m2 += Co({ x: _2.x, y: _2.y + d2 }), m2 += To({ x: w2.x, y: w2.y + d2 }, n3, o3, true), m2 += Co(w2), m2 += To(_2, n3, o3), m2 += "z", _2 = w2) : (m2 += wo(_2), m2 += To(w2 = { x: ft(x2) * n3, y: dt(x2) * o3 - d2 }, n3, o3, true), m2 += Co({ x: w2.x, y: w2.y + d2 }), m2 += To({ x: _2.x, y: _2.y + d2 }, n3, o3), m2 += Co(_2), m2 += "z", _2 = w2);
  12387. this.edge.path = m2, this.sideA.path = wo(l2) + Co(h2) + Co(f2) + Co(c2) + " Z", this.sideB.path = wo(p2) + Co(u2) + Co(y2) + Co(g2) + " Z", this.startAngle < 90 ? this.sideA.toBack() : this.sideA.toFront(), this.startAngle + this.arc > 90 ? this.sideB.toBack() : this.sideB.toFront(), this.slice.dy = -d2;
  12388. } else
  12389. this.sideA.hide(0), this.sideB.hide(0), this.edge.hide(0);
  12390. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  12391. return this.getPropertyValue("depth");
  12392. }, set: function(t3) {
  12393. this.setPropertyValue("depth", t3, true);
  12394. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  12395. var t3 = this.getPropertyValue("angle");
  12396. return tt(t3) || (t3 = 0), t3;
  12397. }, set: function(t3) {
  12398. this.setPropertyValue("angle", t3, true);
  12399. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radiusY", { get: function() {
  12400. var t3 = this.getPropertyValue("radiusY");
  12401. return tt(t3) || (t3 = this.radius - this.radius * this.angle / 90), t3;
  12402. }, set: function(t3) {
  12403. this.setPropertyValue("radiusY", t3, true);
  12404. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  12405. t2.prototype.copyFrom.call(this, e4), this.edge.copyFrom(e4.edge), this.sideA.copyFrom(e4.sideA), this.sideB.copyFrom(e4.sideB);
  12406. }, e3;
  12407. }(No), _l = function(t2) {
  12408. function e3() {
  12409. var e4 = t2.call(this) || this;
  12410. return e4.className = "RadialGradientModifier", e4.gradient = new Sa(), e4.applyTheme(), e4;
  12411. }
  12412. return C(e3, t2), e3.prototype.copyFrom = function(e4) {
  12413. t2.prototype.copyFrom.call(this, e4), this.gradient = e4.gradient.clone();
  12414. }, e3;
  12415. }(gl);
  12416. Ii.registeredClasses.RadialGradientModifier = _l;
  12417. var Pl = function(t2) {
  12418. function e3() {
  12419. var e4 = t2.call(this) || this;
  12420. return e4.properties.gap = 0, e4._line = e4.paper.add("path"), e4.addElement(e4._line), e4;
  12421. }
  12422. return C(e3, t2), e3.prototype.draw = function() {
  12423. if (t2.prototype.draw.call(this), Math.round(this.rotation / 90) != this.rotation / 90 && (this.properties.shapeRendering = "auto"), this._line) {
  12424. var e4 = this.width, i3 = this.height, n3 = "";
  12425. if (this.gap)
  12426. for (var r3 = this.gap + this.strokeWidth, s2 = this.height / r3, a2 = -s2 / 2; a2 < 1.5 * s2; a2++)
  12427. Math.round(this.rotation / 90) != this.rotation / 90 ? (n3 += wo({ x: -e4, y: (a2 + 0.5) * r3 }) + Co({ x: 2 * e4, y: (a2 + 0.5) * r3 }), this.properties.rotationX = this.width / 2, this.properties.rotationY = this.height / 2) : n3 += wo({ x: -e4, y: a2 * r3 }) + Co({ x: 2 * e4, y: a2 * r3 });
  12428. else
  12429. Math.round(this.rotation / 90) != this.rotation / 90 ? (n3 = wo({ x: -e4, y: i3 / 2 }) + Co({ x: 2 * e4, y: i3 / 2 }), this.properties.rotationX = this.width / 2, this.properties.rotationY = this.height / 2) : n3 = wo({ x: 0, y: 0 }) + Co({ x: e4, y: 0 });
  12430. this._line.attr({ d: n3 });
  12431. }
  12432. }, Object.defineProperty(e3.prototype, "gap", { get: function() {
  12433. return this.properties.gap;
  12434. }, set: function(t3) {
  12435. this.properties.gap = t3, this.draw();
  12436. }, enumerable: true, configurable: true }), e3;
  12437. }(Ca);
  12438. Ii.registeredClasses.LinePattern = Pl;
  12439. var wl = function(t2) {
  12440. function e3() {
  12441. var e4 = t2.call(this) || this;
  12442. return e4.properties.radius = 2, e4._circle = e4.paper.add("circle"), e4.addElement(e4._circle), e4.shapeRendering = "auto", e4;
  12443. }
  12444. return C(e3, t2), e3.prototype.draw = function() {
  12445. t2.prototype.draw.call(this), this._circle && this._circle.attr({ r: this.radius, cx: this.width / 2, cy: this.height / 2 });
  12446. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  12447. return this.properties.radius;
  12448. }, set: function(t3) {
  12449. this.properties.radius = t3, this.draw();
  12450. }, enumerable: true, configurable: true }), e3;
  12451. }(Ca);
  12452. Ii.registeredClasses.CirclePattern = wl;
  12453. var Cl = function(t2) {
  12454. function e3() {
  12455. var e4 = t2.call(this) || this;
  12456. return e4.rectHeight = 1, e4.rectWidth = 1, e4._rect = e4.paper.add("rect"), e4.addElement(e4._rect), e4;
  12457. }
  12458. return C(e3, t2), e3.prototype.draw = function() {
  12459. t2.prototype.draw.call(this), this.properties.rotationX = this.width / 2, this.properties.rotationY = this.height / 2, this._rect && this._rect.attr({ width: this.rectWidth, height: this.rectHeight, x: (this.width - this.rectWidth) / 2, y: (this.height - this.rectHeight) / 2 });
  12460. }, Object.defineProperty(e3.prototype, "rectWidth", { get: function() {
  12461. return this.properties.rectWidth;
  12462. }, set: function(t3) {
  12463. this.properties.rectWidth = t3, this.draw();
  12464. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rectHeight", { get: function() {
  12465. return this.properties.rectHeight;
  12466. }, set: function(t3) {
  12467. this.properties.rectHeight = t3, this.draw();
  12468. }, enumerable: true, configurable: true }), e3;
  12469. }(Ca);
  12470. Ii.registeredClasses.RectPattern = Cl;
  12471. var Ol = function(t2) {
  12472. function e3() {
  12473. var e4 = t2.call(this) || this;
  12474. return e4.className = "ColorizeFilter", e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ type: "matrix" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.intensity = 1, e4.applyTheme(), e4;
  12475. }
  12476. return C(e3, t2), e3.prototype.applyFilter = function() {
  12477. var t3, e4, i3, n3 = this.intensity, r3 = 1 - n3, s2 = this.color;
  12478. s2 && s2.rgb ? (t3 = s2.rgb.r / 255 * n3, e4 = s2.rgb.g / 255 * n3, i3 = s2.rgb.b / 255 * n3) : (t3 = 0, e4 = 0, i3 = 0), this.feColorMatrix.attr({ values: r3 + " 0 0 0 " + t3 + " 0 " + r3 + " 0 0 " + e4 + " 0 0 " + r3 + " 0 " + i3 + " 0 0 0 1 0" });
  12479. }, Object.defineProperty(e3.prototype, "color", { get: function() {
  12480. return this.properties.color;
  12481. }, set: function(t3) {
  12482. this.properties.color = t3, this.applyFilter();
  12483. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "intensity", { get: function() {
  12484. return this.properties.intensity;
  12485. }, set: function(t3) {
  12486. this.properties.intensity = t3, this.applyFilter();
  12487. }, enumerable: true, configurable: true }), e3;
  12488. }(Zo);
  12489. Ii.registeredClasses.ColorizeFilter = Ol;
  12490. var Sl = function(t2) {
  12491. function e3() {
  12492. var e4 = t2.call(this) || this;
  12493. return e4.className = "DesaturateFilter", e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ type: "saturate" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.width = 120, e4.height = 120, e4.saturation = 0, e4.applyTheme(), e4;
  12494. }
  12495. return C(e3, t2), Object.defineProperty(e3.prototype, "saturation", { get: function() {
  12496. return this.properties.saturation;
  12497. }, set: function(t3) {
  12498. this.properties.saturation = t3, this.feColorMatrix.attr({ values: t3.toString() });
  12499. }, enumerable: true, configurable: true }), e3;
  12500. }(Zo);
  12501. Ii.registeredClasses.DesaturateFilter = Sl;
  12502. var Il = function(t2) {
  12503. function e3() {
  12504. var e4 = t2.call(this) || this;
  12505. return e4.className = "BlurFilter", e4.feGaussianBlur = e4.paper.add("feGaussianBlur"), e4.feGaussianBlur.attr({ result: "blurOut", in: "SourceGraphic" }), e4.filterPrimitives.push(e4.feGaussianBlur), e4.width = 200, e4.height = 200, e4.blur = 1.5, e4.applyTheme(), e4;
  12506. }
  12507. return C(e3, t2), Object.defineProperty(e3.prototype, "blur", { get: function() {
  12508. return this.properties.blur;
  12509. }, set: function(t3) {
  12510. this.properties.blur = t3, this.feGaussianBlur.attr({ stdDeviation: t3 / this.scale });
  12511. }, enumerable: true, configurable: true }), e3;
  12512. }(Zo);
  12513. Ii.registeredClasses.BlurFilter = Il;
  12514. var Dl = function(t2) {
  12515. function e3() {
  12516. var e4 = t2.call(this) || this;
  12517. return e4.className = "FocusFilter", e4.feFlood = e4.paper.add("feFlood"), e4.feFlood.attr({ "flood-color": new Ys().getFor("primaryButtonHover"), result: "base" }), e4.filterPrimitives.push(e4.feFlood), e4.feMorphology = e4.paper.add("feMorphology"), e4.feMorphology.attr({ result: "bigger", in: "SourceGraphic", operator: "dilate", radius: "2" }), e4.filterPrimitives.push(e4.feMorphology), e4.feColorMatrix = e4.paper.add("feColorMatrix"), e4.feColorMatrix.attr({ result: "mask", in: "bigger", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" }), e4.filterPrimitives.push(e4.feColorMatrix), e4.feComposite = e4.paper.add("feComposite"), e4.feComposite.attr({ result: "drop", in: "base", in2: "mask", operator: "in" }), e4.filterPrimitives.push(e4.feComposite), e4.feBlend = e4.paper.add("feBlend"), e4.feBlend.attr({ in: "SourceGraphic", in2: "drop", mode: "normal" }), e4.filterPrimitives.push(e4.feBlend), e4.width = 130, e4.height = 130, e4.applyTheme(), e4;
  12518. }
  12519. return C(e3, t2), Object.defineProperty(e3.prototype, "stroke", { get: function() {
  12520. return this.properties.stroke;
  12521. }, set: function(t3) {
  12522. this.properties.stroke = t3, this.feFlood.attr({ "flood-color": t3 });
  12523. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "strokeWidth", { get: function() {
  12524. return this.properties.strokeWidth;
  12525. }, set: function(t3) {
  12526. this.properties.strokeWidth = t3, this.feMorphology.attr({ radius: t3 });
  12527. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opacity", { get: function() {
  12528. return this.properties.opacity;
  12529. }, set: function(t3) {
  12530. this.properties.opacity = t3, this.feColorMatrix.attr({ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 " + t3 + " 0" });
  12531. }, enumerable: true, configurable: true }), e3.prototype.setSprite = function(e4) {
  12532. this._sprite && this._sprite != e4 && this._sprite.group.removeStyle("outline"), e4.group.addStyle({ outline: "none" }), t2.prototype.setSprite.call(this, e4);
  12533. }, e3;
  12534. }(Zo), kl = function(t2) {
  12535. function e3() {
  12536. var e4 = t2.call(this) || this;
  12537. return e4._list = [], e4._currentStep = 0, e4._startIndex = 0, e4._currentPass = 0, e4.baseColor = new un({ r: 103, g: 183, b: 220 }), e4.stepOptions = {}, e4.passOptions = { brighten: -0.2 }, e4.step = 1, e4.minColors = 20, e4.minLightness = 0.2, e4.maxLightness = 0.9, e4.shuffle = false, e4.wrap = true, e4.reuse = false, e4.saturation = 1, e4.className = "ColorSet", e4.applyTheme(), e4;
  12538. }
  12539. return C(e3, t2), Object.defineProperty(e3.prototype, "list", { get: function() {
  12540. return this._list || this.generate(this.minColors), this._list;
  12541. }, set: function(t3) {
  12542. this._list = t3, this.reset();
  12543. }, enumerable: true, configurable: true }), e3.prototype.getReusableColor = function(t3) {
  12544. if (this._list.length == 0)
  12545. return this.generate(1), this.list[0];
  12546. var e4 = t3 - Math.floor(t3 / this._list.length) * this.list.length;
  12547. return this.list[e4];
  12548. }, e3.prototype.next = function() {
  12549. var t3;
  12550. return this.list.length <= this._currentStep ? this.reuse ? t3 = this.getReusableColor(this._currentStep) : (this.generate(gt(this.minColors, this._currentStep + 1)), t3 = this.list[this._currentStep]) : t3 = this.list[this._currentStep], this._currentStep += this.step, t3.saturate(this.saturation);
  12551. }, e3.prototype.getIndex = function(t3) {
  12552. var e4;
  12553. return this.list.length <= t3 ? this.reuse ? e4 = this.getReusableColor(t3) : (this.generate(this.minColors), e4 = this.getIndex(t3)) : e4 = this.list[t3], e4.saturate(this.saturation);
  12554. }, e3.prototype.reset = function() {
  12555. this._currentStep = this._startIndex;
  12556. }, Object.defineProperty(e3.prototype, "currentStep", { get: function() {
  12557. return this._currentStep;
  12558. }, set: function(t3) {
  12559. this._currentStep = t3;
  12560. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  12561. return this._startIndex;
  12562. }, set: function(t3) {
  12563. this._startIndex = t3, this.reset();
  12564. }, enumerable: true, configurable: true }), e3.prototype.generate = function(t3) {
  12565. var e4 = on(q(this.currentColor.rgb)), i3 = Z(this.stepOptions.hue) ? this.stepOptions.hue : 1 / t3, n3 = { brighten: 0, lighten: 0, hue: e4.h, lightness: e4.l, saturation: e4.s }, r3 = [], s2 = this.list.length == 0 ? 0 : 1;
  12566. if (this.reuse)
  12567. for (var a2 = s2; a2 <= t3; a2++)
  12568. r3.push(on(q(this._list[a2].rgb)).h);
  12569. else
  12570. for (a2 = s2; a2 <= t3; a2++) {
  12571. var o3 = e4.h + i3 * a2;
  12572. this.wrap && o3 > 1 && (o3 -= 1), r3.push(o3);
  12573. }
  12574. for (this.shuffle && r3.sort(function(t4, e5) {
  12575. return Math.random() - 0.5;
  12576. }), a2 = 0; a2 < t3; a2++) {
  12577. this.reuse ? e4 = on(q(this._list[a2].rgb)) : e4.h = r3.shift(), this.applyStepOptions(e4, n3, a2, this._currentPass);
  12578. var l2 = dn(an(e4)), h2 = (this.stepOptions.brighten || 0) * a2 + (this.passOptions.brighten || 0) * this._currentPass;
  12579. h2 != 0 && (h2 = this.wrap ? hr(h2, this.minLightness, this.maxLightness) : lr(h2, this.minLightness, this.maxLightness), l2 = l2.brighten(h2));
  12580. var p2 = (this.stepOptions.lighten || 0) * a2 + (this.passOptions.lighten || 0) * this._currentPass;
  12581. p2 != 0 && (p2 = this.wrap ? hr(p2, this.minLightness, this.maxLightness) : lr(p2, this.minLightness, this.maxLightness), l2 = l2.lighten(p2)), this._list.push(l2);
  12582. }
  12583. this._currentPass++;
  12584. }, Object.defineProperty(e3.prototype, "currentColor", { get: function() {
  12585. return this._list.length == 0 ? this.baseColor.saturate(this.saturation) : this._list[this._list.length - 1].saturate(this.saturation);
  12586. }, enumerable: true, configurable: true }), e3.prototype.applyStepOptions = function(t3, e4, i3, n3) {
  12587. t3.l = e4.lightness + (this.stepOptions.lightness || 0) * i3 + (this.passOptions.lightness || 0) * n3, this.wrap ? (t3.l > 1 ? t3.l = t3.l - Math.floor(t3.l) : t3.l < 0 && (t3.l = -(t3.l - Math.floor(t3.l))), t3.l = hr(t3.l, this.minLightness, this.maxLightness)) : (t3.l > 1 ? t3.l = 1 : t3.l < 0 && (t3.l = 0), t3.l = lr(t3.l, this.minLightness, this.maxLightness));
  12588. }, e3.prototype.processConfig = function(e4) {
  12589. if (e4) {
  12590. if (Z(e4.list) && it(e4.list))
  12591. for (var i3 = 0, n3 = e4.list.length; i3 < n3; i3++)
  12592. e4.list[i3] instanceof un || (e4.list[i3] = dn(e4.list[i3]));
  12593. !Z(e4.baseColor) || e4.baseColor instanceof un || (e4.baseColor = dn(e4.baseColor));
  12594. }
  12595. t2.prototype.processConfig.call(this, e4);
  12596. }, e3;
  12597. }(yn);
  12598. Ii.registeredClasses.ColorSet = kl;
  12599. var Tl = function(t2) {
  12600. function e3() {
  12601. var e4 = t2.call(this) || this;
  12602. e4._list = [], e4._currentStep = 0, e4._startIndex = 0, e4._currentPass = 0, e4.baseColor = new un({ r: 103, g: 183, b: 220 }), e4.className = "PatternSet";
  12603. var i3 = new Ys();
  12604. return e4.list = [e4.getLinePattern(1e3, 45, 1, 6), e4.getRectPattern(10, 0, 4), e4.getLinePattern(1e3, -45, 1, 6), e4.getCirclePattern(11, 2, true), e4.getLinePattern(6, 90, 1), e4.getRectPattern(12, 45, 6, true), e4.getLinePattern(6, 0, 1), e4.getRectPattern(7, 0, 4), e4.getLinePattern(1e3, 45, 2, 3, "4,2"), e4.getCirclePattern(9, 3, false), e4.getLinePattern(1e3, -45, 2, 3, "4,2"), e4.getRectPattern(10, 45, Math.sqrt(50)), e4.getLinePattern(1e3, -45, 2, 1), e4.getRectPattern(10, 0, 9), e4.getLinePattern(1e3, 45, 2, 1), e4.getLinePattern(1e3, 0, 3, 1), e4.getRectPattern(10, 45, 10), e4.getLinePattern(1e3, 90, 3, 1)], e4.baseColor = i3.getFor("stroke"), e4.applyTheme(), e4;
  12605. }
  12606. return C(e3, t2), e3.prototype.getLinePattern = function(t3, e4, i3, n3, r3) {
  12607. var s2 = new Pl();
  12608. return s2.width = t3, s2.height = t3, s2.stroke = this.baseColor, s2.gap = n3, s2.strokeDasharray = r3, s2.strokeWidth = i3, s2.rotation = e4, s2;
  12609. }, e3.prototype.getRectPattern = function(t3, e4, i3, n3) {
  12610. var r3 = new Cl();
  12611. return r3.width = t3, r3.height = t3, r3.rectWidth = i3, r3.rectHeight = i3, n3 ? (r3.stroke = this.baseColor, r3.strokeWidth = 1, r3.fillOpacity = 0) : (r3.fill = this.baseColor, r3.strokeWidth = 0), e4 != 0 && (r3.shapeRendering = "auto"), r3.rotation = e4, r3;
  12612. }, e3.prototype.getCirclePattern = function(t3, e4, i3) {
  12613. var n3 = new wl();
  12614. return n3.width = t3, n3.height = t3, n3.shapeRendering = "auto", n3.radius = e4, i3 ? (n3.stroke = this.baseColor, n3.strokeWidth = 1, n3.fillOpacity = 0) : (n3.fill = this.baseColor, n3.strokeWidth = 0), n3;
  12615. }, Object.defineProperty(e3.prototype, "list", { get: function() {
  12616. return this._list;
  12617. }, set: function(t3) {
  12618. this._list = t3, this.reset();
  12619. }, enumerable: true, configurable: true }), e3.prototype.next = function() {
  12620. var t3 = this.getIndex(this.currentStep);
  12621. return this._currentStep++, t3;
  12622. }, e3.prototype.getIndex = function(t3) {
  12623. for (; this.list.length <= t3; )
  12624. this.generatePatterns();
  12625. return this.list[t3].clone();
  12626. }, e3.prototype.generatePatterns = function() {
  12627. var t3 = this.list.length / (this._currentPass + 1);
  12628. this._currentPass++;
  12629. for (var e4 = 0; e4 < t3; e4++)
  12630. this.list.push(this.list[e4].clone());
  12631. }, e3.prototype.reset = function() {
  12632. this._currentStep = this._startIndex;
  12633. }, Object.defineProperty(e3.prototype, "currentStep", { get: function() {
  12634. return this._currentStep;
  12635. }, set: function(t3) {
  12636. this._currentStep = t3;
  12637. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  12638. return this._startIndex;
  12639. }, set: function(t3) {
  12640. this._startIndex = t3, this.reset();
  12641. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  12642. t2.prototype.processConfig.call(this, e4);
  12643. }, e3;
  12644. }(yn);
  12645. Ii.registeredClasses.PatternSet = Tl;
  12646. var Al = function() {
  12647. function t2() {
  12648. this._disposed = false, this._disposers = [];
  12649. }
  12650. return t2.prototype.init = function() {
  12651. }, t2.prototype.isDisposed = function() {
  12652. return this._disposed;
  12653. }, t2.prototype.dispose = function() {
  12654. if (!this._disposed) {
  12655. this._disposed = true;
  12656. var t3 = this._disposers;
  12657. for (this._disposers = null; t3.length !== 0; )
  12658. t3.shift().dispose();
  12659. }
  12660. }, t2;
  12661. }(), Vl = function(t2) {
  12662. function e3() {
  12663. var e4 = t2.call(this) || this;
  12664. e4.className = "AmChartsLogo", e4.valign = "bottom", e4.opacity = 0.3, e4.defaultState.properties.opacity = 0.4, e4.url = "https://www.amcharts.com/", e4.urlTarget = "_blank", e4.showSystemTooltip = true, e4.readerTitle = "Chart created using amCharts library", e4.width = 66, e4.height = 21, e4.background.opacity = 0;
  12665. var i3 = dn("#474758");
  12666. new Ys().getFor("background").alternative.hex == "#ffffff" && (i3 = dn("#ffffff"));
  12667. var n3 = new Oa();
  12668. n3.addColor(i3), n3.addColor(i3, 1, 0.75), n3.addColor(dn("#3cabff"), 1, 0.755), n3.rotation = -10;
  12669. var r3 = n3, s2 = e4.createChild(Ho);
  12670. s2.shouldClone = false, s2.isMeasured = false, s2.segments = [[{ x: 15, y: 15 }, { x: 27, y: 15 }, { x: 36, y: 6 }, { x: 40.5, y: 10.5 }, { x: 45, y: 6 }, { x: 54, y: 15 }, { x: 60, y: 15 }]], s2.strokeWidth = 6 * 0.3, s2.tensionX = 0.8, s2.tensionY = 1, s2.stroke = dn("#3cabff");
  12671. var a2 = e4.createChild(Ho);
  12672. a2.shouldClone = false, a2.isMeasured = false, a2.segments = [[{ x: 6, y: 15 }, { x: 15, y: 15 }, { x: 27, y: 12 * 0.3 }, { x: 39.9, y: 15 }, { x: 51, y: 15 }, { x: 60, y: 15 }]], a2.strokeWidth = 6 * 0.3, a2.tensionX = 0.75, a2.tensionY = 1, a2.stroke = r3, e4._disposers.push(a2);
  12673. var o3 = new Sl();
  12674. e4.filters.push(o3);
  12675. var l2 = new Sl();
  12676. l2.saturation = 1;
  12677. var h2 = e4.states.create("hover");
  12678. return h2.properties.opacity = 1, h2.filters.push(l2), e4.applyTheme(), e4;
  12679. }
  12680. return C(e3, t2), e3;
  12681. }($a);
  12682. function Fl(t2, e3) {
  12683. var i3 = _s(t2), n3 = false;
  12684. if (i3 || ((i3 = document.createElement("div")).style.width = "200px", i3.style.height = "200px", i3.style.top = "0", i3.style.left = "0", i3.style.visibility = "hidden", i3.style.position = "absolute", document.body.appendChild(i3), n3 = true), i3) {
  12685. i3.innerHTML = "";
  12686. var r3 = new xa(i3), s2 = new _a(r3.SVGContainer, "svg-" + (ba.length - 1)), a2 = new $a();
  12687. a2.htmlContainer = i3, a2.svgContainer = r3, a2.width = V(100), a2.height = V(100), a2.background.fillOpacity = 0, a2.paper = s2, s2.append(a2.group), n3 && Rs(function() {
  12688. a2.moveHtmlContainer(t2);
  12689. }), a2.relativeWidth = 1, a2.relativeHeight = 1, r3.container = a2;
  12690. var o3 = a2.createChild(e3);
  12691. o3.topParent = a2;
  12692. var l2 = o3.uid;
  12693. Ii.invalidSprites[l2] = [], Ii.invalidDatas[l2] = [], Ii.invalidPositions[l2] = [], Ii.invalidLayouts[l2] = [], a2.baseId = l2, o3.isBaseSprite = true, o3.focusFilter = new Dl(), Ii.baseSprites.push(o3), Ii.baseSpritesByUid[l2] = o3, o3.maskRectangle = { x: 0, y: 0, width: Math.max(r3.width || 0, 0), height: Math.max(r3.height || 0, 0) }, a2.events.on("maxsizechanged", function(t3) {
  12694. t3.previousWidth != 0 && t3.previousHeight != 0 || a2.deepInvalidate(), o3.maskRectangle && (o3.maskRectangle = { x: 0, y: 0, width: Math.max(r3.width || 0, 0), height: Math.max(r3.height || 0, 0) });
  12695. });
  12696. var h2 = null, p2 = function() {
  12697. o3.isDisposed() ? h2 = null : Vs(o3.dom) == null ? (ls.autoDispose ? (a2.htmlContainer = void 0, r3.htmlElement = void 0, o3.dispose()) : fa("Chart was not disposed", o3.uid), h2 = null) : h2 = window.setTimeout(p2, 1e3);
  12698. };
  12699. p2(), o3.addDisposer(new ye(function() {
  12700. h2 !== null && clearTimeout(h2), ee(Ii.baseSprites, o3), Ii.baseSpritesByUid[o3.uid] = void 0;
  12701. })), o3.addDisposer(a2);
  12702. var u2 = a2.createChild($a);
  12703. u2.topParent = a2, u2.width = V(100), u2.height = V(100), u2.isMeasured = false, a2.tooltipContainer = u2, o3.tooltip = new $o(), o3.tooltip.hide(0), o3.tooltip.setBounds({ x: 0, y: 0, width: u2.maxWidth, height: u2.maxHeight }), u2.events.on("maxsizechanged", function() {
  12704. q(o3.tooltip).setBounds({ x: 0, y: 0, width: u2.maxWidth, height: u2.maxHeight });
  12705. }, void 0, false);
  12706. var d2 = new Wo();
  12707. if (d2.events.on("inited", function() {
  12708. d2.__disabled = true;
  12709. }, void 0, false), a2.preloader = d2, o3 instanceof $a && !o3.hasLicense()) {
  12710. var c2 = u2.createChild(Vl);
  12711. u2.events.on("maxsizechanged", function(t3) {
  12712. u2.maxWidth <= 100 || u2.maxHeight <= 50 ? c2.hide() : (c2.isHidden || c2.isHiding) && c2.show();
  12713. }, void 0, false), o3.logo = c2, c2.align = "left", c2.valign = "bottom";
  12714. }
  12715. if (o3.numberFormatter, a2.isStandaloneInstance = true, ls.onlyShowOnViewport)
  12716. if (Ns(i3, ls.viewportTarget))
  12717. ls.queue && Ll(o3);
  12718. else {
  12719. o3.__disabled = true, o3.tooltipContainer.__disabled = true;
  12720. var f2 = [xs(window, "DOMContentLoaded", function() {
  12721. El(o3);
  12722. }), xs(window, "load", function() {
  12723. El(o3);
  12724. }), xs(window, "resize", function() {
  12725. El(o3);
  12726. }), xs(window, "scroll", function() {
  12727. El(o3);
  12728. })];
  12729. if (ls.viewportTarget)
  12730. for (var g2 = it(ls.viewportTarget) ? ls.viewportTarget : ls.viewportTarget ? [ls.viewportTarget] : [], y2 = 0; y2 < g2.length; y2++) {
  12731. var m2 = g2[y2];
  12732. f2.push(xs(m2, "resize", function() {
  12733. El(o3);
  12734. })), f2.push(xs(m2, "scroll", function() {
  12735. El(o3);
  12736. }));
  12737. }
  12738. var v2 = new me(f2);
  12739. o3.addDisposer(v2), o3.vpDisposer = v2;
  12740. }
  12741. else
  12742. ls.queue && Ll(o3);
  12743. return o3;
  12744. }
  12745. throw Qa.log("html container not found"), new Error("html container not found");
  12746. }
  12747. function Ml() {
  12748. for (; Ii.baseSprites.length !== 0; )
  12749. Ii.baseSprites.pop().dispose();
  12750. }
  12751. function Ll(t2) {
  12752. Ii.queue.indexOf(t2) == -1 && (t2.__disabled = true, t2.tooltipContainer.__disabled = true, t2.events.disableType("appeared"), Ii.queue.length == 0 && (Ii.events.once("exitframe", function() {
  12753. Rl(t2);
  12754. }), Qa.requestFrame()), t2.addDisposer(new ye(function() {
  12755. jl(t2);
  12756. })), Ii.queue.push(t2));
  12757. }
  12758. function jl(t2) {
  12759. var e3 = Ii.queue.indexOf(t2);
  12760. if (e3 >= 0) {
  12761. Ii.queue.splice(Ii.queue.indexOf(t2), 1);
  12762. var i3 = Ii.queue[e3];
  12763. i3 && Rl(i3);
  12764. }
  12765. }
  12766. function El(t2) {
  12767. t2.__disabled && Ns(t2.htmlContainer, ls.viewportTarget) && (t2.vpDisposer && t2.vpDisposer.dispose(), Ll(t2));
  12768. }
  12769. function Rl(t2) {
  12770. t2 && t2.tooltipContainer && (t2.__disabled = false, t2.tooltipContainer.__disabled = false, t2.events.enableType("appeared"), t2.dispatch("removedfromqueue"), t2.showOnInit && t2.events.on("appeared", function() {
  12771. jl(t2);
  12772. }), t2.vpDisposer && t2.vpDisposer.dispose(), t2 instanceof $a && t2.invalidateLabels(), t2.tooltipContainer && t2.tooltipContainer.invalidateLayout(), t2 instanceof uo ? (t2.invalidateData(), t2.reinit(), t2.events.once("datavalidated", function() {
  12773. t2.showOnInit ? t2.appear() : jl(t2);
  12774. })) : (t2.reinit(), t2.events.once("inited", function() {
  12775. jl(t2);
  12776. }), t2.showOnInit && t2.appear()));
  12777. }
  12778. function Bl(t2, e3) {
  12779. var i3;
  12780. Q(e3) && (Z(Ii.registeredClasses[e3]) ? e3 = Ii.registeredClasses[e3] : (e3 = Ii.registeredClasses.Container, i3 = new Error("Class [" + e3 + "] is not loaded.")));
  12781. var n3 = Fl(t2, e3);
  12782. return i3 && n3.raiseCriticalError(i3), n3;
  12783. }
  12784. function Hl(t2, e3, i3) {
  12785. var n3, r3;
  12786. Z(i3) || (i3 = t2.type, delete t2.type), Z(e3) || (e3 = t2.container, delete t2.container), Q(i3) && Z(Ii.registeredClasses[i3]) ? n3 = Ii.registeredClasses[i3] : typeof i3 != "function" ? (n3 = $a, r3 = new Error("Class [" + i3 + "] is not loaded.")) : n3 = i3;
  12787. var s2 = Fl(e3, n3);
  12788. return r3 ? s2.raiseCriticalError(r3) : s2.config = t2, s2;
  12789. }
  12790. function Nl(t2, e3) {
  12791. for (var i3 = [], n3 = 2; n3 < arguments.length; n3++)
  12792. i3[n3 - 2] = arguments[n3];
  12793. return new Promise(function(n4, r3) {
  12794. Ii.deferred.push({ scope: e3, callback: t2, args: i3, resolve: n4 }), Ii.deferred.length == 1 && Wl();
  12795. });
  12796. }
  12797. function Wl() {
  12798. var t2, e3 = Ii.deferred[0];
  12799. if (e3) {
  12800. var i3 = (t2 = e3.callback).call.apply(t2, T([e3.scope], e3.args));
  12801. i3.events.on("ready", function() {
  12802. e3.resolve(i3), Ii.deferred.shift(), ls.deferredDelay ? setTimeout(Wl, ls.deferredDelay) : Wl();
  12803. });
  12804. }
  12805. }
  12806. function Xl(t2) {
  12807. Ii.themes.indexOf(t2) === -1 && Ii.themes.push(t2);
  12808. }
  12809. function Yl(t2) {
  12810. ee(Ii.themes, t2);
  12811. }
  12812. function zl() {
  12813. Ii.themes = [];
  12814. }
  12815. function Ul(t2) {
  12816. ls.licenses.push(t2);
  12817. }
  12818. var Gl = function(t2) {
  12819. function e3() {
  12820. var e4 = t2.call(this) || this;
  12821. e4.className = "Grip";
  12822. var i3 = new Ys();
  12823. e4.layout = "absolute", e4.padding(10, 10, 10, 10), e4.margin(3, 3, 3, 3), e4.background.fillOpacity = 0.3, e4.background.cornerRadius(10, 10, 10, 10);
  12824. var n3 = new Za();
  12825. n3.element = e4.paper.add("path");
  12826. var r3 = wo({ x: -6, y: 0 });
  12827. return r3 += Co({ x: 6, y: 0 }), r3 += wo({ x: -8, y: -6 }), r3 += Co({ x: 0, y: -12 }), r3 += Co({ x: 8, y: -6 }), r3 += wo({ x: -8, y: 6 }), r3 += Co({ x: 0, y: 12 }), r3 += Co({ x: 8, y: 6 }), n3.path = r3, n3.strokeWidth = 2, n3.fillOpacity = 0, n3.pixelPerfect = true, n3.padding(0, 4, 0, 4), n3.stroke = i3.getFor("text"), n3.strokeOpacity = 0.7, n3.align = "center", n3.valign = "middle", e4.icon = n3, e4.label.dispose(), e4.label = void 0, e4.position = "right", e4.autoHideDelay = 3e3, e4.events.on("shown", function(t3) {
  12828. e4._autoHideTimeout && e4._autoHideTimeout.dispose(), e4.autoHideDelay && (e4._autoHideTimeout = e4.setTimeout(function() {
  12829. e4.hide();
  12830. }, e4.autoHideDelay));
  12831. }), e4.events.on("down", function(t3) {
  12832. e4._autoHideTimeout && e4._autoHideTimeout.dispose();
  12833. }), e4.events.on("out", function(t3) {
  12834. e4.autoHideDelay && (e4._autoHideTimeout = e4.setTimeout(function() {
  12835. e4.hide();
  12836. }, e4.autoHideDelay));
  12837. }), e4.applyTheme(), e4;
  12838. }
  12839. return C(e3, t2), Object.defineProperty(e3.prototype, "position", { get: function() {
  12840. return this.getPropertyValue("position");
  12841. }, set: function(t3) {
  12842. if (this.setPropertyValue("position", t3))
  12843. switch (t3) {
  12844. case "left":
  12845. this.align = "left", this.valign = "middle", this.horizontalCenter = "left", this.verticalCenter = "middle", this.icon.rotation = 0, this.width = void 0, this.height = V(30);
  12846. break;
  12847. case "right":
  12848. this.align = "right", this.valign = "middle", this.horizontalCenter = "right", this.verticalCenter = "middle", this.icon.rotation = 0, this.width = void 0, this.height = V(30);
  12849. break;
  12850. case "top":
  12851. this.align = "center", this.valign = "top", this.horizontalCenter = "middle", this.verticalCenter = "top", this.icon.rotation = 90, this.width = V(30), this.height = void 0;
  12852. break;
  12853. case "bottom":
  12854. this.align = "center", this.valign = "bottom", this.horizontalCenter = "middle", this.verticalCenter = "bottom", this.icon.rotation = 90, this.width = V(30), this.height = void 0;
  12855. break;
  12856. default:
  12857. this.align = "center", this.valign = "middle", this.horizontalCenter = "middle", this.verticalCenter = "middle", this.icon.rotation = 90, this.width = V(30), this.height = void 0;
  12858. }
  12859. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "autoHideDelay", { get: function() {
  12860. return this.getPropertyValue("autoHideDelay");
  12861. }, set: function(t3) {
  12862. this.setPropertyValue("autoHideDelay", t3);
  12863. }, enumerable: true, configurable: true }), e3;
  12864. }(go);
  12865. Ii.registeredClasses.Grip = Gl;
  12866. var Kl = function(t2) {
  12867. function e3() {
  12868. var e4 = t2.call(this) || this;
  12869. return e4.className = "ChartDataItem", e4.applyTheme(), e4;
  12870. }
  12871. return C(e3, t2), e3;
  12872. }(po), Zl = function(t2) {
  12873. function e3() {
  12874. var i3 = t2.call(this) || this;
  12875. if (i3._legend = new ve(), i3.constructor === e3)
  12876. throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");
  12877. i3.className = "Chart";
  12878. var n3 = new co();
  12879. i3.titles = new Mi(n3), i3._disposers.push(new Ai(i3.titles)), i3._disposers.push(n3), i3.width = V(100), i3.height = V(100), i3.layout = "vertical";
  12880. var r3 = i3.createChild($a);
  12881. r3.shouldClone = false, r3.layout = "vertical", r3.width = V(100), r3.height = V(100), i3.chartAndLegendContainer = r3;
  12882. var s2 = r3.createChild($a);
  12883. return s2.shouldClone = false, s2.width = V(100), s2.height = V(100), i3.chartContainer = s2, i3.showOnInit = true, i3._disposers.push(i3._legend), i3.titles.events.on("inserted", function(t3) {
  12884. i3.processTitle(t3), i3.updateReaderTitleReferences();
  12885. }, i3, false), i3.titles.events.on("removed", function(t3) {
  12886. i3.updateReaderTitleReferences();
  12887. }, i3, false), i3.role = "region", i3.defaultState.transitionDuration = 1, i3.applyTheme(), i3;
  12888. }
  12889. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  12890. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Chart"));
  12891. }, e3.prototype.draw = function() {
  12892. this.fixLayout(), t2.prototype.draw.call(this);
  12893. }, e3.prototype.fixLayout = function() {
  12894. var t3 = this.legend;
  12895. if (t3) {
  12896. var e4 = this.chartAndLegendContainer, i3 = this.chartContainer;
  12897. switch (i3.x = void 0, i3.y = void 0, t3.position != "absolute" && (t3.x = void 0, t3.y = void 0), t3.position) {
  12898. case "left":
  12899. e4.layout = "horizontal", t3.toBack();
  12900. break;
  12901. case "right":
  12902. e4.layout = "horizontal", t3.toFront();
  12903. break;
  12904. case "top":
  12905. e4.layout = "vertical", t3.toBack();
  12906. break;
  12907. case "bottom":
  12908. e4.layout = "vertical", t3.toFront();
  12909. break;
  12910. case "absolute":
  12911. t3.isMeasured = false;
  12912. }
  12913. }
  12914. }, e3.prototype.feedLegend = function() {
  12915. }, e3.prototype.processTitle = function(t3) {
  12916. var e4 = t3.newValue;
  12917. return e4.parent = this, e4.toBack(), e4.shouldClone = false, e4.align = "center", e4.uidAttr(), e4;
  12918. }, e3.prototype.updateReaderTitleReferences = function() {
  12919. if (this.titles.length) {
  12920. var t3 = [];
  12921. ti(this.titles.iterator(), function(e4) {
  12922. t3.push(e4.uid);
  12923. }), this.setSVGAttribute({ "aria-labelledby": t3.join(" ") });
  12924. } else
  12925. this.removeSVGAttribute("aria-labelledby");
  12926. }, Object.defineProperty(e3.prototype, "legend", { get: function() {
  12927. return this._legend.get();
  12928. }, set: function(t3) {
  12929. this.setLegend(t3);
  12930. }, enumerable: true, configurable: true }), e3.prototype.setLegend = function(t3) {
  12931. var e4 = this;
  12932. this._legend.get() !== t3 && (t3 ? (t3.parent = this.chartAndLegendContainer, this._legend.set(t3, t3.events.on("propertychanged", function(t4) {
  12933. t4.property == "position" && e4.fixLayout();
  12934. }, void 0, false)), t3.addDisposer(new ye(function() {
  12935. e4.legend = void 0;
  12936. }))) : this._legend.reset(), this.feedLegend());
  12937. }, e3.prototype.dispose = function() {
  12938. this.legend && this.legend.dispose(), t2.prototype.dispose.call(this);
  12939. }, e3.prototype.processConfig = function(e4) {
  12940. e4 && Z(e4.legend) && !Z(e4.legend.type) && (e4.legend.type = "Legend"), t2.prototype.processConfig.call(this, e4);
  12941. }, e3.prototype.copyFrom = function(e4) {
  12942. this.titles.copyFrom(e4.titles), this.chartContainer.copyFrom(e4.chartContainer), e4.legend && (this.legend = e4.legend.clone(), this.legend.removeChildren()), t2.prototype.copyFrom.call(this, e4);
  12943. }, Object.defineProperty(e3.prototype, "dragGrip", { get: function() {
  12944. var t3 = this;
  12945. if (!this._dragGrip) {
  12946. var e4 = this.tooltipContainer.createChild(Gl);
  12947. e4.align = "right", e4.valign = "middle", e4.hide(0), e4.events.on("down", function(e5) {
  12948. e5.touch && (t3.interactionsEnabled = false);
  12949. }), e4.events.on("up", function(e5) {
  12950. t3.interactionsEnabled = true;
  12951. }), this.events.on("down", function(t4) {
  12952. t4.touch && e4.show();
  12953. }), this._dragGrip = e4;
  12954. }
  12955. return this._dragGrip;
  12956. }, set: function(t3) {
  12957. this._dragGrip = t3;
  12958. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "focusable", { get: function() {
  12959. return this.parent.focusable;
  12960. }, set: function(t3) {
  12961. this.parent.focusable = t3;
  12962. }, enumerable: true, configurable: true }), e3;
  12963. }(uo);
  12964. Ii.registeredClasses.Chart = Zl, lo.push({ relevant: ho.widthXS, state: function(t2, e3) {
  12965. if (t2 instanceof Zl) {
  12966. var i3 = t2.states.create(e3);
  12967. return t2.pixelPaddingLeft > 10 && (i3.properties.paddingLeft = 10), t2.pixelPaddingRight > 10 && (i3.properties.paddingRight = 10), i3;
  12968. }
  12969. return null;
  12970. } }), lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  12971. if (t2 instanceof Zl) {
  12972. var i3 = t2.states.create(e3);
  12973. return t2.pixelPaddingTop > 10 && (i3.properties.paddingTop = 10), t2.pixelPaddingBottom > 10 && (i3.properties.paddingBottom = 10), i3;
  12974. }
  12975. return null;
  12976. } }), lo.push({ relevant: ho.widthXXS, state: function(t2, e3) {
  12977. if (t2 instanceof Zl) {
  12978. var i3 = t2.states.create(e3);
  12979. return i3.properties.paddingLeft = 0, i3.properties.paddingRight = 0, i3;
  12980. }
  12981. return null;
  12982. } }), lo.push({ relevant: ho.heightXXS, state: function(t2, e3) {
  12983. if (t2 instanceof Zl) {
  12984. var i3 = t2.states.create(e3);
  12985. return i3.properties.paddingTop = 0, i3.properties.paddingBottom = 0, i3;
  12986. }
  12987. return null;
  12988. } });
  12989. var ql = function(t2) {
  12990. function e3() {
  12991. var e4 = t2.call(this) || this;
  12992. return e4.className = "Bullet", e4.isMeasured = false, e4.tooltipX = 0, e4.tooltipY = 0, e4.layout = "none", e4.applyOnClones = true, e4.copyToLegendMarker = true, e4.applyTheme(), e4;
  12993. }
  12994. return C(e3, t2), Object.defineProperty(e3.prototype, "locationX", { get: function() {
  12995. return this.getPropertyValue("locationX");
  12996. }, set: function(t3) {
  12997. if (this.setPropertyValue("locationX", t3)) {
  12998. var e4 = this.dataItem;
  12999. e4 && e4.component && e4.component.invalidate();
  13000. }
  13001. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationY", { get: function() {
  13002. return this.getPropertyValue("locationY");
  13003. }, set: function(t3) {
  13004. if (this.setPropertyValue("locationY", t3)) {
  13005. var e4 = this.dataItem;
  13006. e4 && e4.component && e4.component.invalidate();
  13007. }
  13008. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xField", { get: function() {
  13009. return this.getPropertyValue("xField");
  13010. }, set: function(t3) {
  13011. this.setPropertyValue("xField", t3, true);
  13012. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yField", { get: function() {
  13013. return this.getPropertyValue("yField");
  13014. }, set: function(t3) {
  13015. this.setPropertyValue("yField", t3, true);
  13016. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "isDynamic", { get: function() {
  13017. return this.getPropertyValue("isDynamic");
  13018. }, set: function(t3) {
  13019. this.setPropertyValue("isDynamic", t3, true);
  13020. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "copyToLegendMarker", { get: function() {
  13021. return this.getPropertyValue("copyToLegendMarker");
  13022. }, set: function(t3) {
  13023. this.setPropertyValue("copyToLegendMarker", t3);
  13024. }, enumerable: true, configurable: true }), e3;
  13025. }($a);
  13026. Ii.registeredClasses.Bullet = ql, lo.push({ relevant: ho.isXS, state: function(t2, e3) {
  13027. if (t2 instanceof ql) {
  13028. var i3 = t2.states.create(e3);
  13029. return i3.properties.disabled = true, i3;
  13030. }
  13031. return null;
  13032. } });
  13033. var $l = function(t2) {
  13034. function e3() {
  13035. var e4 = t2.call(this) || this;
  13036. return e4.childrenCreated = false, e4.className = "LegendDataItem", e4.applyTheme(), e4;
  13037. }
  13038. return C(e3, t2), Object.defineProperty(e3.prototype, "label", { get: function() {
  13039. var t3 = this;
  13040. if (!this._label) {
  13041. var e4 = this.component.labels.create();
  13042. this._label = e4, this.addSprite(e4), this._disposers.push(e4), e4.parent = this.itemContainer, this._disposers.push(new ye(function() {
  13043. Z(t3.component) && t3.component.labels.removeValue(e4);
  13044. }));
  13045. }
  13046. return this._label;
  13047. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  13048. return this.properties.color;
  13049. }, set: function(t3) {
  13050. this.setProperty("color", t3);
  13051. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueLabel", { get: function() {
  13052. var t3 = this;
  13053. if (!this._valueLabel) {
  13054. var e4 = this.component.valueLabels.create();
  13055. this._valueLabel = e4, this.addSprite(e4), this._disposers.push(e4), e4.parent = this.itemContainer, this._disposers.push(new ye(function() {
  13056. Z(t3.component) && t3.component.valueLabels.removeValue(e4);
  13057. }));
  13058. }
  13059. return this._valueLabel;
  13060. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "itemContainer", { get: function() {
  13061. var t3 = this;
  13062. if (!this._itemContainer) {
  13063. var e4 = this.component, i3 = e4.itemContainers.create();
  13064. i3.parent = e4, this._itemContainer = i3, this.addSprite(i3), this._disposers.push(i3), i3.togglable && i3.events.on("toggled", function(t4) {
  13065. e4.toggleDataItem(t4.target.dataItem);
  13066. }, void 0, false), i3.focusable && (i3.events.on("hit", function(t4) {
  13067. e4.focusedItem = void 0;
  13068. }, void 0, false), i3.events.on("focus", function(t4) {
  13069. e4.focusedItem = t4.target.dataItem;
  13070. }, void 0, false), i3.events.on("blur", function(t4) {
  13071. e4.focusedItem = void 0;
  13072. }, void 0, false)), this._disposers.push(new ye(function() {
  13073. Z(t3.component) && t3.component.itemContainers.removeValue(i3);
  13074. })), this.dataContext.uidAttr && (i3.readerControls = this.dataContext.uidAttr(), i3.readerLabelledBy = this.dataContext.uidAttr());
  13075. var n3 = this.dataContext;
  13076. if ((n3 instanceof po || n3 instanceof Za) && !n3.isDisposed()) {
  13077. var r3 = function(t4) {
  13078. i3.readerChecked = t4.visible, i3.events.disableType("toggled"), i3.isActive = !t4.visible, i3.events.enableType("toggled");
  13079. };
  13080. n3.addDisposer(new ye(function() {
  13081. t3.component && t3.component.dataItems.remove(t3);
  13082. })), n3 instanceof Za ? (i3.addDisposer(n3.events.on("visibilitychanged", r3, void 0, false)), i3.addDisposer(n3.events.on("hidden", function(t4) {
  13083. i3.readerChecked = false, i3.events.disableType("toggled"), i3.isActive = true, i3.events.enableType("toggled");
  13084. }, void 0, false)), i3.addDisposer(n3.events.on("shown", function(t4) {
  13085. i3.readerChecked = true, i3.events.disableType("toggled"), i3.isActive = false, i3.events.enableType("toggled");
  13086. }, void 0, false))) : i3.addDisposer(n3.events.on("visibilitychanged", r3, void 0, false));
  13087. }
  13088. }
  13089. return this._itemContainer;
  13090. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "marker", { get: function() {
  13091. var t3 = this;
  13092. if (!this._marker) {
  13093. var e4 = this.component.markers.create();
  13094. this._marker = e4, e4.parent = this.itemContainer, this.addSprite(e4), this._disposers.push(e4), this._disposers.push(new ye(function() {
  13095. Z(t3.component) && t3.component.markers.removeValue(e4);
  13096. }));
  13097. }
  13098. return this._marker;
  13099. }, enumerable: true, configurable: true }), e3;
  13100. }(po), Jl = function() {
  13101. this.createMarker = true;
  13102. }, Ql = function(t2) {
  13103. function e3() {
  13104. var e4 = t2.call(this) || this;
  13105. e4.className = "Legend", e4.layout = "grid", e4.setPropertyValue("useDefaultMarker", false), e4.setPropertyValue("scrollable", false), e4.setPropertyValue("contentAlign", "center");
  13106. var i3 = new $a();
  13107. i3.applyOnClones = true, i3.padding(8, 0, 8, 0), i3.margin(0, 10, 0, 10), i3.layout = "horizontal", i3.clickable = true, i3.focusable = true, i3.role = "switch", i3.togglable = true, i3.cursorOverStyle = Ia.pointer, i3.background.fillOpacity = 0, e4.itemContainers = new Mi(i3), e4._disposers.push(new Ai(e4.itemContainers)), e4._disposers.push(e4.itemContainers.template), e4._disposers.push(ua().body.events.on("keyup", function(t3) {
  13108. if ($s.isKey(t3.event, "enter") && e4.focusedItem) {
  13109. var i4 = e4.focusedItem, n4 = i4.itemContainer;
  13110. n4.togglable ? e4.toggleDataItem(i4) : n4.clickable && n4.events.isEnabled("hit") && (n4.dispatchImmediately("hit", { event: t3 }), e4.focusedItem = i4);
  13111. }
  13112. }, e4));
  13113. var n3 = new Ys(), r3 = new $a();
  13114. r3.width = 23, r3.height = 23, r3.interactionsEnabled = false, r3.applyOnClones = true, r3.setStateOnChildren = true, r3.background.fillOpacity = 0, r3.background.strokeOpacity = 0, r3.propertyFields.fill = "fill", r3.valign = "middle";
  13115. var s2 = n3.getFor("disabledBackground");
  13116. r3.events.on("childadded", function(t3) {
  13117. var e5 = t3.newValue.states.create("active");
  13118. e5.properties.stroke = s2, e5.properties.fill = s2;
  13119. }), e4.markers = new Mi(r3), e4._disposers.push(new Ai(e4.markers)), e4._disposers.push(e4.markers.template);
  13120. var a2 = r3.createChild(fo);
  13121. a2.width = V(100), a2.height = V(100), a2.applyOnClones = true, a2.propertyFields.fill = "fill", a2.strokeOpacity = 0;
  13122. var o3 = new co();
  13123. o3.text = "{name}", o3.margin(0, 5, 0, 5), o3.valign = "middle", o3.applyOnClones = true, o3.states.create("active").properties.fill = n3.getFor("disabledBackground"), e4.labels = new Mi(o3), e4._disposers.push(new Ai(e4.labels)), e4._disposers.push(e4.labels.template), o3.interactionsEnabled = false, o3.truncate = true, o3.fullWords = false;
  13124. var l2 = new co();
  13125. return l2.margin(0, 5, 0, 0), l2.valign = "middle", l2.width = 50, l2.align = "right", l2.textAlign = "end", l2.applyOnClones = true, l2.states.create("active").properties.fill = n3.getFor("disabledBackground"), l2.interactionsEnabled = false, e4.valueLabels = new Mi(l2), e4._disposers.push(new Ai(e4.valueLabels)), e4._disposers.push(e4.valueLabels.template), e4.position = "bottom", i3.states.create("active"), i3.setStateOnChildren = true, e4.role = "group", e4.events.on("layoutvalidated", e4.handleScrollbar, e4, false), e4.applyTheme(), e4;
  13126. }
  13127. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  13128. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Legend"));
  13129. }, e3.prototype.createDataItem = function() {
  13130. return new $l();
  13131. }, e3.prototype.validateDataElements = function() {
  13132. this.scrollbar && (this.scrollbar.start = 0, this.scrollbar.end = 1), t2.prototype.validateDataElements.call(this);
  13133. }, e3.prototype.validateDataElement = function(e4) {
  13134. t2.prototype.validateDataElement.call(this, e4);
  13135. var i3 = e4.itemContainer, n3 = e4.marker;
  13136. e4.label;
  13137. var r3 = e4.valueLabel;
  13138. i3.readerChecked = e4.dataContext.visible, e4.dataContext.legendDataItem = e4;
  13139. var s2 = e4.label.maxWidth;
  13140. e4.label.width instanceof A || (e4.label.width = void 0), s2 > 0 && (e4.label.maxWidth = s2), r3.align == "right" && (r3.width = void 0);
  13141. var a2 = e4.dataContext.legendSettings, o3 = e4.dataContext;
  13142. !o3.createLegendMarker || this.useDefaultMarker && o3 instanceof Za ? this.markers.template.propertyFields.fill = void 0 : e4.childrenCreated || (o3.createLegendMarker(n3), e4.childrenCreated = true), o3.updateLegendValue && o3.updateLegendValue(), o3.component && o3.component.updateLegendValue && o3.component.updateLegendValue(o3), r3.invalid && r3.validate(), r3.text == "" || r3.text == null ? r3.__disabled = true : r3.__disabled = false, !a2 || a2.itemValueText == null && a2.valueText == null || (r3.__disabled = false);
  13143. var l2 = e4.dataContext.visible;
  13144. l2 === void 0 && (l2 = true), l2 = z(l2), e4.dataContext.visible = l2, i3.events.disableType("toggled"), i3.isActive = !l2, i3.isActive ? i3.setState("active", 0) : i3.setState("default", 0), i3.events.enableType("toggled");
  13145. }, e3.prototype.afterDraw = function() {
  13146. var e4 = this, i3 = this.getPropertyValue("maxWidth"), n3 = 0;
  13147. this.labels.each(function(t3) {
  13148. t3.invalid && (t3.maxWidth = void 0, t3.validate()), t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight > n3 && (n3 = t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight);
  13149. });
  13150. var r3 = 0;
  13151. this.valueLabels.each(function(t3) {
  13152. t3.invalid && t3.validate(), t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight > r3 && (r3 = t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight);
  13153. });
  13154. var s2 = 0;
  13155. this.markers.each(function(t3) {
  13156. t3.invalid && t3.validate(), t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight > s2 && (s2 = t3.measuredWidth + t3.pixelMarginLeft + t3.pixelMarginRight);
  13157. });
  13158. var a2, o3 = this.itemContainers.template, l2 = o3.pixelMarginRight + o3.pixelMarginLeft, h2 = n3 + r3 + s2;
  13159. tt(i3) ? ((i3 -= l2) > h2 && (i3 = h2), a2 = i3 - s2 - r3) : a2 = n3, this.labels.each(function(t3) {
  13160. (e4.valueLabels.template.align == "right" || t3.measuredWidth > a2) && (t3.width instanceof A || (t3.width = Math.min(t3.maxWidth, a2 - t3.pixelMarginLeft - t3.pixelMarginRight), t3.maxWidth = t3.width));
  13161. }), this.valueLabels.template.align == "right" && this.valueLabels.each(function(t3) {
  13162. t3.width = r3 - t3.pixelMarginRight - t3.pixelMarginLeft;
  13163. }), t2.prototype.afterDraw.call(this);
  13164. }, e3.prototype.handleScrollbar = function() {
  13165. var t3 = this.scrollbar;
  13166. this.scrollable && t3 && (t3.height = this.measuredHeight, t3.x = this.measuredWidth - t3.pixelWidth - t3.pixelMarginLeft, this.contentHeight > this.measuredHeight ? (t3.visible = true, t3.thumb.height = t3.height * this.measuredHeight / this.contentHeight, this.paddingRight = t3.pixelWidth + t3.pixelMarginLeft + +t3.pixelMarginRight) : t3.visible = false, this.updateMasks());
  13167. }, Object.defineProperty(e3.prototype, "position", { get: function() {
  13168. return this.getPropertyValue("position");
  13169. }, set: function(t3) {
  13170. this.setPropertyValue("position", t3) && (t3 == "left" || t3 == "right" ? (this.margin(10, 5, 10, 10), this.valign = "middle", this.contentAlign = "none", this.valueLabels.template.align = "right", tt(this.maxColumns) || (this.maxColumns = 1), this.width = void 0, this.maxWidth = 220) : (this.maxColumns = void 0, this.width = V(100), this.valueLabels.template.align = "left"), this.invalidate());
  13171. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "useDefaultMarker", { get: function() {
  13172. return this.getPropertyValue("useDefaultMarker");
  13173. }, set: function(t3) {
  13174. this.setPropertyValue("useDefaultMarker", t3, true);
  13175. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scrollable", { get: function() {
  13176. return this.getPropertyValue("scrollable");
  13177. }, set: function(t3) {
  13178. if (this.setPropertyValue("scrollable", t3, true))
  13179. if (t3) {
  13180. var e4 = this.createChild(Uo);
  13181. this.scrollbar = e4, e4.isMeasured = false, e4.orientation = "vertical", e4.endGrip.__disabled = true, e4.startGrip.__disabled = true, e4.visible = false, e4.marginLeft = 5, this._mouseWheelDisposer = this.events.on("wheel", this.handleWheel, this, false), this._disposers.push(this._mouseWheelDisposer), this._disposers.push(e4.events.on("rangechanged", this.updateMasks, this, false));
  13182. } else
  13183. this._mouseWheelDisposer && (this._mouseWheelDisposer.dispose(), this.scrollbar && (this.scrollbar.dispose(), this.scrollbar = void 0));
  13184. }, enumerable: true, configurable: true }), e3.prototype.handleWheel = function(t3) {
  13185. var e4 = t3.shift.y, i3 = this.scrollbar;
  13186. if (i3) {
  13187. var n3 = e4 / 1e3 * this.measuredHeight / this.contentHeight, r3 = i3.end - i3.start;
  13188. e4 > 0 ? (i3.start = gt(0, i3.start - n3), i3.end = i3.start + r3) : (i3.end = yt(1, i3.end - n3), i3.start = i3.end - r3);
  13189. }
  13190. }, e3.prototype.updateMasks = function() {
  13191. var t3 = this;
  13192. this.scrollbar && this.itemContainers.each(function(e4) {
  13193. e4.dy = -t3.scrollbar.thumb.pixelY * t3.contentHeight / t3.measuredHeight, e4.maskRectangle = { x: 0, y: -e4.dy, width: t3.measuredWidth, height: t3.measuredHeight };
  13194. });
  13195. }, e3.prototype.toggleDataItem = function(t3) {
  13196. var e4 = t3.dataContext;
  13197. !e4.visible || e4.isHiding || e4 instanceof Za && e4.isHidden ? (t3.color = t3.colorOrig, e4.appeared = true, t3.itemContainer.isActive = false, e4.hidden === true && (e4.hidden = false), e4.show ? e4.show() : e4.visible = true, this.svgContainer.readerAlert(this.language.translate("%1 shown", this.language.locale, t3.label.readerTitle))) : (t3.itemContainer.isActive = true, e4.appeared = true, e4.hide ? e4.hide() : e4.visible = false, this.svgContainer.readerAlert(this.language.translate("%1 hidden", this.language.locale, t3.label.readerTitle)), t3.color = new Ys().getFor("disabledBackground"));
  13198. }, Object.defineProperty(e3.prototype, "preloader", { get: function() {
  13199. }, enumerable: true, configurable: true }), e3.prototype.handleDataItemPropertyChange = function(t3, e4) {
  13200. t3.valueLabel.invalidate(), t3.label.invalidate();
  13201. }, e3;
  13202. }(uo);
  13203. Ii.registeredClasses.Legend = Ql, lo.push({ relevant: ho.widthXS, state: function(t2, e3) {
  13204. if (t2 instanceof Ql && (t2.position == "left" || t2.position == "right")) {
  13205. var i3 = t2.states.create(e3);
  13206. return i3.properties.position = "bottom", i3;
  13207. }
  13208. return null;
  13209. } }), lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  13210. if (t2 instanceof Ql && (t2.position == "top" || t2.position == "bottom")) {
  13211. var i3 = t2.states.create(e3);
  13212. return i3.properties.position = "right", i3;
  13213. }
  13214. return null;
  13215. } }), lo.push({ relevant: ho.isXS, state: function(t2, e3) {
  13216. if (t2 instanceof Ql) {
  13217. var i3 = t2.states.create(e3);
  13218. return i3.properties.disabled = true, i3;
  13219. }
  13220. return null;
  13221. } });
  13222. var th = function(t2) {
  13223. function e3() {
  13224. var e4 = t2.call(this) || this;
  13225. return e4.className = "SeriesDataItem", e4.values.value = {}, e4.values.value = {}, e4.applyTheme(), e4;
  13226. }
  13227. return C(e3, t2), Object.defineProperty(e3.prototype, "bullets", { get: function() {
  13228. return this._bullets || (this._bullets = new Pi(), this._disposers.push(new _i(this._bullets))), this._bullets;
  13229. }, enumerable: true, configurable: true }), e3.prototype.dispose = function() {
  13230. this.bullets.clear(), t2.prototype.dispose.call(this);
  13231. }, Object.defineProperty(e3.prototype, "value", { get: function() {
  13232. return this.values.value.value;
  13233. }, set: function(t3) {
  13234. this.setValue("value", t3);
  13235. }, enumerable: true, configurable: true }), e3;
  13236. }(po), eh = function(t2) {
  13237. function e3() {
  13238. var i3 = t2.call(this) || this;
  13239. if (i3._ignoreMinMax = false, i3._showBullets = true, i3.legendSettings = new Jl(), i3._tmin = new Pi(), i3._tmax = new Pi(), i3._smin = new Pi(), i3._smax = new Pi(), i3.dataItemsByAxis = new Pi(), i3.skipFocusThreshold = 20, i3._itemReaderTextChanged = false, i3.calculatePercent = false, i3.usePercentHack = true, i3.autoDispose = true, i3.simplifiedProcessing = false, i3.constructor === e3)
  13240. throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");
  13241. i3.className = "Series", i3.isMeasured = false, i3.layout = "none", i3.shouldClone = false, i3.setPropertyValue("hidden", false), i3.axisRanges = new Fi(), i3.axisRanges.events.on("inserted", i3.processAxisRange, i3, false), i3.minBulletDistance = 0, i3.mainContainer = i3.createChild($a), i3.mainContainer.shouldClone = false, i3.mainContainer.mask = i3.createChild(Za), i3._disposers.push(i3.mainContainer);
  13242. var n3 = i3.mainContainer.createChild($a);
  13243. return i3._shouldBeReady.push(n3), n3.shouldClone = false, n3.layout = "none", n3.virtualParent = i3, i3._disposers.push(n3), i3.bulletsContainer = n3, i3.tooltip = new $o(), i3.tooltip.virtualParent = i3, i3._disposers.push(i3.tooltip), i3.hiddenState.transitionEasing = Yr, i3.dataItem = i3.createDataItem(), i3._disposers.push(i3.dataItem), i3.dataItem.component = i3, i3.role = "group", i3.applyTheme(), i3;
  13244. }
  13245. return C(e3, t2), e3.prototype.applyTheme = function() {
  13246. t2.prototype.applyTheme.call(this), ls.autoSetClassName && this.bulletsContainer && (this.bulletsContainer.className = this.className + "-bullets", this.bulletsContainer.setClassName());
  13247. }, e3.prototype.applyInternalDefaults = function() {
  13248. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Series"));
  13249. }, e3.prototype.createDataItem = function() {
  13250. return new th();
  13251. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  13252. return this._chart;
  13253. }, set: function(t3) {
  13254. this._chart = t3;
  13255. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(t3) {
  13256. }, e3.prototype.processBullet = function(t3) {
  13257. var e4 = this, i3 = t3.newValue;
  13258. i3.isTemplate = true, this.events.once("datavalidated", function(t4) {
  13259. e4.itemsFocusable() && (i3.focusable = true);
  13260. }), this.invalidate();
  13261. }, e3.prototype.removeBullet = function(t3) {
  13262. var e4 = t3.oldValue;
  13263. this.dataItems.each(function(t4) {
  13264. var i3 = t4.bullets.getKey(e4.uid);
  13265. i3 && i3.dispose();
  13266. }), this.invalidate();
  13267. }, e3.prototype.validateDataItems = function() {
  13268. t2.prototype.validateDataItems.call(this), this.processValues(false);
  13269. }, e3.prototype.getFirstValue = function(t3, e4) {
  13270. for (var i3 = e4; i3 >= 0; i3--) {
  13271. var n3 = this.dataItems.getIndex(i3).getActualWorkingValue(t3);
  13272. if (tt(n3))
  13273. return n3;
  13274. }
  13275. return null;
  13276. }, e3.prototype.getAbsoluteFirstValue = function(t3) {
  13277. for (var e4 = 0; e4 < this.dataItems.length; e4++) {
  13278. var i3 = this.dataItems.getIndex(e4).values[t3].value;
  13279. if (tt(i3))
  13280. return i3;
  13281. }
  13282. return null;
  13283. }, e3.prototype.rangeChangeUpdate = function() {
  13284. t2.prototype.rangeChangeUpdate.call(this), this.processValues(true);
  13285. }, e3.prototype.processValues = function(t3) {
  13286. var e4 = this;
  13287. if (!this.simplifiedProcessing) {
  13288. var i3 = this.dataItems, n3 = {}, r3 = {}, s2 = {}, a2 = {}, o3 = {}, l2 = {}, h2 = {}, p2 = {}, u2 = {}, d2 = {}, c2 = gt(0, this.startIndex);
  13289. c2 = yt(c2, this.dataItems.length);
  13290. var f2 = yt(this.endIndex, this.dataItems.length);
  13291. if (tt(c2) || (c2 = 0), tt(f2) || (f2 = this.dataItems.length), c2 > 0) {
  13292. var g2 = i3.getIndex(c2 - 1);
  13293. Ne(g2.values, function(t4, e5) {
  13294. var i4 = g2.getActualWorkingValue(t4);
  13295. tt(i4) && (p2[t4] = i4);
  13296. });
  13297. }
  13298. for (var y2 = function(t4) {
  13299. var f3 = i3.getIndex(t4);
  13300. Ne(f3.values, function(t5, i4) {
  13301. var g3 = f3.getActualWorkingValue(t5);
  13302. if (tt(g3)) {
  13303. tt(n3[t5]) || (n3[t5] = 0), n3[t5]++, tt(r3[t5]) || (r3[t5] = 0), r3[t5] += g3, tt(s2[t5]) || (s2[t5] = 0), s2[t5] += Math.abs(g3), tt(l2[t5]) || (l2[t5] = g3), h2[t5] = g3, tt(a2[t5]) ? a2[t5] > g3 && (a2[t5] = g3) : a2[t5] = g3, tt(o3[t5]) ? o3[t5] < g3 && (o3[t5] = g3) : o3[t5] = g3, tt(u2[t5]) || (u2[t5] = e4.getFirstValue(t5, c2)), tt(d2[t5]) || (d2[t5] = e4.getAbsoluteFirstValue(t5)), f3.setCalculatedValue(t5, g3 - u2[t5], "change"), f3.setCalculatedValue(t5, (g3 - u2[t5]) / u2[t5] * 100, "changePercent"), f3.setCalculatedValue(t5, g3 - d2[t5], "startChange"), f3.setCalculatedValue(t5, (g3 - d2[t5]) / d2[t5] * 100, "startChangePercent");
  13304. var y3 = p2[t5];
  13305. tt(y3) || (y3 = g3), f3.setCalculatedValue(t5, g3 - y3, "previousChange"), f3.setCalculatedValue(t5, (g3 - y3) / y3 * 100, "previousChangePercent"), p2[t5] = g3;
  13306. }
  13307. });
  13308. }, m2 = c2; m2 < f2; m2++)
  13309. y2(m2);
  13310. if (this.calculatePercent) {
  13311. var v2 = function(t4) {
  13312. var n4 = i3.getIndex(t4);
  13313. Ne(n4.values, function(t5) {
  13314. var i4 = s2[t5], r4 = n4.getActualWorkingValue(t5);
  13315. if (tt(r4))
  13316. if (i4 > 0) {
  13317. e4.usePercentHack && r4 == i4 && (i4 = n4.values[t5].value);
  13318. var a3 = r4 / i4 * 100;
  13319. n4.setCalculatedValue(t5, a3, "percent");
  13320. } else
  13321. n4.setCalculatedValue(t5, 0, "percent");
  13322. });
  13323. };
  13324. for (m2 = c2; m2 < f2; m2++)
  13325. v2(m2);
  13326. }
  13327. if (c2 > 0) {
  13328. var b2 = i3.getIndex(c2 - 1);
  13329. Ne(b2.values, function(t4) {
  13330. var e5 = b2.values[t4].value;
  13331. b2.setCalculatedValue(t4, e5 - l2[t4], "change"), b2.setCalculatedValue(t4, (e5 - l2[t4]) / l2[t4] * 100, "changePercent");
  13332. });
  13333. }
  13334. var x2 = this.dataItem;
  13335. Ne(x2.values, function(t4) {
  13336. x2.setCalculatedValue(t4, r3[t4], "sum"), x2.setCalculatedValue(t4, s2[t4], "absoluteSum"), x2.setCalculatedValue(t4, r3[t4] / n3[t4], "average"), x2.setCalculatedValue(t4, l2[t4], "open"), x2.setCalculatedValue(t4, h2[t4], "close"), x2.setCalculatedValue(t4, a2[t4], "low"), x2.setCalculatedValue(t4, o3[t4], "high"), x2.setCalculatedValue(t4, n3[t4], "count");
  13337. });
  13338. }
  13339. }, e3.prototype.validate = function() {
  13340. Ir() && this.filters.clear(), ti(this.axisRanges.iterator(), function(t3) {
  13341. t3.validate();
  13342. }), t2.prototype.validate.call(this);
  13343. var e4 = this.bulletsContainer;
  13344. if (e4.fill = this.fill, e4.stroke = this.stroke, e4.x = this.pixelX, e4.y = this.pixelY, this.bulletsContainer.children.length > 0)
  13345. if (this._showBullets) {
  13346. for (var i3 = 0; i3 < this.startIndex; i3++)
  13347. (n3 = this.dataItems.getIndex(i3)) && n3.bullets.each(function(t3, e5) {
  13348. e5.__disabled = true;
  13349. });
  13350. for (i3 = this.dataItems.length - 1; i3 > this.endIndex; i3--) {
  13351. var n3;
  13352. (n3 = this.dataItems.getIndex(i3)) && n3.bullets.each(function(t3, e5) {
  13353. e5.__disabled = true;
  13354. });
  13355. }
  13356. } else
  13357. this.bulletsContainer.children.each(function(t3) {
  13358. t3.__disabled = true;
  13359. });
  13360. this.updateTooltipBounds();
  13361. }, e3.prototype.updateTooltipBounds = function() {
  13362. if (this.topParent) {
  13363. var t3 = { x: 0, y: 0, width: this.topParent.maxWidth, height: this.topParent.maxHeight };
  13364. this.tooltip.setBounds(t3);
  13365. }
  13366. }, e3.prototype.shouldCreateBullet = function(t3, e4) {
  13367. return true;
  13368. }, e3.prototype.validateDataElement = function(e4) {
  13369. var i3 = this;
  13370. t2.prototype.validateDataElement.call(this, e4), this._showBullets ? (this.isHidden || (this.bulletsContainer.visible = true), this.bullets.each(function(t3) {
  13371. var n3 = e4.bullets.getKey(t3.uid);
  13372. if (i3.shouldCreateBullet(e4, t3)) {
  13373. if (!n3) {
  13374. var r3 = t3.propertyFields.disabled, s2 = e4.dataContext;
  13375. r3 && s2 && s2[r3] === false ? (t3.applyOnClones = false, t3.disabled = false, n3 = t3.clone(), t3.disabled = true, t3.applyOnClones = true) : n3 = t3.clone(), n3.shouldClone = false, e4.addSprite(n3), i3.visible && !i3.isHiding || n3.hide(0);
  13376. }
  13377. var a2 = n3.dataItem;
  13378. if (a2 != e4) {
  13379. a2 && a2.bullets.setKey(t3.uid, void 0);
  13380. var o3 = i3.itemReaderText;
  13381. n3 instanceof ql && (o3 || (o3 = "{" + n3.xField + "}: {" + n3.yField + "}"), n3.isDynamic && (e4.events.on("workingvaluechanged", n3.deepInvalidate, n3, false), i3.dataItem.events.on("workingvaluechanged", n3.deepInvalidate, n3, false)), n3.deepInvalidate()), n3.focusable && (n3.events.on("focus", function(t4) {
  13382. n3.readerTitle = i3.populateString(o3, n3.dataItem);
  13383. }, void 0, false), n3.events.on("blur", function(t4) {
  13384. n3.readerTitle = "";
  13385. }, void 0, false)), n3.hoverable && (n3.events.on("over", function(t4) {
  13386. n3.readerTitle = i3.populateString(o3, n3.dataItem);
  13387. }, void 0, false), n3.events.on("out", function(t4) {
  13388. n3.readerTitle = "";
  13389. }, void 0, false));
  13390. }
  13391. n3.parent = i3.bulletsContainer, e4.bullets.setKey(t3.uid, n3), n3.maxWidth = e4.itemWidth, n3.maxHeight = e4.itemHeight, n3.__disabled = false, i3.positionBullet(n3);
  13392. } else
  13393. n3 && (n3.__disabled = true);
  13394. })) : this.bulletsContainer.visible = false;
  13395. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  13396. this.dataRangeInvalid || this.invalidateProcessedData();
  13397. }, Object.defineProperty(e3.prototype, "ignoreMinMax", { get: function() {
  13398. return this._ignoreMinMax;
  13399. }, set: function(t3) {
  13400. this._ignoreMinMax = t3, this.invalidateDataItems();
  13401. }, enumerable: true, configurable: true }), e3.prototype.createMask = function() {
  13402. }, e3.prototype.processAxisRange = function(t3) {
  13403. this.rangesContainer || (this.rangesContainer = this.createChild($a), this.rangesContainer.shouldClone = false, this.rangesContainer.isMeasured = false);
  13404. var e4 = t3.newValue;
  13405. e4 && (e4.contents.parent = this.rangesContainer, e4.isRange = true, e4.events.on("valuechanged", this.invalidateDataItems, this, false));
  13406. }, e3.prototype.getAxisField = function(t3) {
  13407. }, e3.prototype.showTooltipAtPosition = function(t3, e4) {
  13408. }, Object.defineProperty(e3.prototype, "minBulletDistance", { get: function() {
  13409. return this.getPropertyValue("minBulletDistance");
  13410. }, set: function(t3) {
  13411. this.setPropertyValue("minBulletDistance", t3, true);
  13412. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bullets", { get: function() {
  13413. return this._bullets || (this._bullets = new Mi(new ql()), this._bullets.template.virtualParent = this, this._bullets.events.on("inserted", this.processBullet, this, false), this._bullets.events.on("removed", this.removeBullet, this, false), this._disposers.push(new Ai(this._bullets)), this._disposers.push(this._bullets.template)), this._bullets;
  13414. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  13415. }, Object.defineProperty(e3.prototype, "hiddenInLegend", { get: function() {
  13416. return this.getPropertyValue("hiddenInLegend");
  13417. }, set: function(t3) {
  13418. this.setPropertyValue("hiddenInLegend", t3) && this.chart && this.chart.feedLegend();
  13419. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "name", { get: function() {
  13420. return this.getPropertyValue("name");
  13421. }, set: function(t3) {
  13422. this.setPropertyValue("name", t3);
  13423. var e4 = this.legendDataItem;
  13424. e4 && (e4.component.invalidate(), e4.component.invalidateRawData()), this.readerTitle = t3;
  13425. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "itemReaderText", { get: function() {
  13426. var t3 = this._itemReaderText;
  13427. return t3 || (this.tooltipText ? t3 = $n(this.tooltipText) : this.tooltipHTML && (t3 = $n(this.tooltipHTML))), this._adapterO ? this._adapterO.apply("itemReaderText", t3) : t3;
  13428. }, set: function(t3) {
  13429. this._itemReaderText = t3, this._itemReaderTextChanged = true;
  13430. }, enumerable: true, configurable: true }), e3.prototype.itemsFocusable = function() {
  13431. return !(this.dataItems.length >= this.skipFocusThreshold);
  13432. }, Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  13433. return this._legendDataItem;
  13434. }, set: function(t3) {
  13435. this._legendDataItem = t3, this._legendDataItem.itemContainer.deepInvalidate();
  13436. }, enumerable: true, configurable: true }), e3.prototype.updateLegendValue = function(t3, e4) {
  13437. if (this.legendDataItem) {
  13438. var i3 = this.legendSettings, n3 = this.legendDataItem, r3 = n3.label, s2 = n3.valueLabel;
  13439. t3 && !t3.isDisposed() || e4 ? (s2 && (i3.itemValueText && (s2.text = i3.itemValueText), s2.dataItem = t3), r3 && (i3.itemLabelText && (r3.text = i3.itemLabelText), r3.dataItem = t3)) : (r3 && ((i3.labelText || i3.itemLabelText != null) && (r3.text = i3.labelText), r3.dataItem = this.dataItem), s2 && ((i3.valueText || i3.itemValueText != null) && (s2.text = i3.valueText), s2.dataItem = this.dataItem));
  13440. }
  13441. }, e3.prototype.copyFrom = function(e4) {
  13442. this.bullets.copyFrom(e4.bullets), this.bulletsContainer.copyFrom(e4.bulletsContainer), this.calculatePercent = e4.calculatePercent, this.usePercentHack = e4.usePercentHack, this.simplifiedProcessing = e4.simplifiedProcessing, t2.prototype.copyFrom.call(this, e4);
  13443. }, e3.prototype.raiseCriticalError = function(t3) {
  13444. this._chart && this._chart.modal && (this._chart.modal.content = this._chart.adapter.apply("criticalError", t3).message, this._chart.modal.closable = false, ls.suppressErrors || this._chart.modal.open(), this._chart.disabled = true), ls.verbose && console.log(t3);
  13445. }, e3.prototype.applyFilters = function() {
  13446. var e4 = this;
  13447. t2.prototype.applyFilters.call(this), this.bulletsContainer.filters.clear(), ti(this.filters.iterator(), function(t3) {
  13448. e4.bulletsContainer.filters.push(t3.clone());
  13449. });
  13450. }, Object.defineProperty(e3.prototype, "heatRules", { get: function() {
  13451. var t3 = this;
  13452. return this._heatRules || (this._heatRules = new Fi(), this._heatRules.events.on("inserted", function(e4) {
  13453. var i3 = e4.newValue, n3 = i3.target;
  13454. if (n3) {
  13455. var r3 = i3.dataField;
  13456. Z(r3) || (r3 = "value");
  13457. var s2 = t3.dataItem, a2 = i3.property, o3 = U(i3.minValue), l2 = U(i3.maxValue);
  13458. tt(o3) || tt(l2) || t3.dataItem.events.on("calculatedvaluechanged", function(e5) {
  13459. e5.property == r3 && ti(t3.dataItems.iterator(), function(t4) {
  13460. var e6 = false;
  13461. Ut(t4.sprites, function(t5) {
  13462. if (t5.clonedFrom == n3) {
  13463. var i4 = t5;
  13464. i4[a2] = i4[a2], e6 = true;
  13465. }
  13466. }), e6 || Ut(t4.sprites, function(t5) {
  13467. t5 instanceof $a && ti(t5.children.iterator(), function(t6) {
  13468. if (t6.className == n3.className) {
  13469. var e7 = t6;
  13470. e7[a2] = e7[a2];
  13471. } else
  13472. t6 instanceof $a && t6.deepInvalidate();
  13473. });
  13474. });
  13475. });
  13476. }), t3.dataItems.template.events.on("workingvaluechanged", function(t4) {
  13477. if (t4.property == r3) {
  13478. var e5 = t4.target, i4 = false;
  13479. Ut(e5.sprites, function(t5) {
  13480. if (t5.clonedFrom == n3) {
  13481. var e6 = t5;
  13482. e6[a2] = e6[a2], i4 = true;
  13483. }
  13484. }), i4 || Ut(e5.sprites, function(t5) {
  13485. t5 instanceof $a && ti(t5.children.iterator(), function(t6) {
  13486. if (t6.className == n3.className) {
  13487. var e6 = t6;
  13488. e6[a2] = e6[a2];
  13489. } else
  13490. t6 instanceof $a && t6.deepInvalidate();
  13491. });
  13492. });
  13493. }
  13494. }), n3.adapter.add(a2, function(t4, e5, n4) {
  13495. var a3 = U(i3.minValue), o4 = U(i3.maxValue), l3 = i3.min, h2 = i3.max;
  13496. if (e5 instanceof Za) {
  13497. var p2 = e5.propertyFields[n4];
  13498. if (p2 && e5.dataItem) {
  13499. var u2 = e5.dataItem.dataContext;
  13500. if (u2 && Z(u2[p2]))
  13501. return t4;
  13502. }
  13503. }
  13504. var d2 = e5.dataItem;
  13505. if (tt(a3) || (a3 = s2.values[r3].low), tt(o4) || (o4 = s2.values[r3].high), d2 && d2.values[r3]) {
  13506. var c2 = d2.getActualWorkingValue(r3);
  13507. if (Z(l3) && Z(h2) && tt(a3) && tt(o4) && tt(c2)) {
  13508. var f2 = void 0;
  13509. if (f2 = i3.logarithmic ? (Math.log(c2) * Math.LOG10E - Math.log(a3) * Math.LOG10E) / (Math.log(o4) * Math.LOG10E - Math.log(a3) * Math.LOG10E) : (c2 - a3) / (o4 - a3), !tt(c2) || tt(f2) && Math.abs(f2) != 1 / 0 || (f2 = 0.5), tt(l3))
  13510. return l3 + (h2 - l3) * f2;
  13511. if (l3 instanceof un)
  13512. return new un(Qi(l3.rgb, h2.rgb, f2));
  13513. }
  13514. }
  13515. return t4;
  13516. });
  13517. }
  13518. })), this._heatRules;
  13519. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  13520. var i3;
  13521. if (e4) {
  13522. if (Z(e4.bullets) && it(e4.bullets))
  13523. for (var n3 = 0, r3 = e4.bullets.length; n3 < r3; n3++) {
  13524. var s2 = e4.bullets[n3];
  13525. Z(s2.type) || (s2.type = "Bullet");
  13526. }
  13527. Z(e4.heatRules) && it(e4.heatRules) && (i3 = e4.heatRules, delete e4.heatRules);
  13528. }
  13529. if (t2.prototype.processConfig.call(this, e4), i3) {
  13530. for (n3 = 0, r3 = i3.length; n3 < r3; n3++) {
  13531. var a2 = i3[n3], o3 = this;
  13532. if (Z(a2.target) && Q(a2.target))
  13533. if (this.map.hasKey(a2.target))
  13534. o3 = this.map.getKey(a2.target);
  13535. else
  13536. for (var l2 = a2.target.split("."), h2 = 0; h2 < l2.length; h2++)
  13537. if (o3 instanceof Fi) {
  13538. var p2 = o3.getIndex(U(l2[h2]));
  13539. o3 = p2 || o3[l2[h2]];
  13540. } else {
  13541. var u2 = l2[h2].match(/^(.*)\[([0-9]+)\]/);
  13542. o3 = u2 ? o3[u2[1]] instanceof Fi ? o3[u2[1]].getIndex(U(u2[2])) : o3[u2[1]][U(u2[2])] : o3[l2[h2]];
  13543. }
  13544. a2.target = o3, Z(a2.min) && (a2.min = this.maybeColorOrPercent(a2.min)), Z(a2.max) && (a2.max = this.maybeColorOrPercent(a2.max));
  13545. }
  13546. t2.prototype.processConfig.call(this, { heatRules: i3 });
  13547. }
  13548. }, e3.prototype.configOrder = function(e4, i3) {
  13549. return e4 == i3 ? 0 : e4 == "heatRules" ? 1 : i3 == "heatRules" ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  13550. }, e3.prototype.setVisibility = function(e4) {
  13551. t2.prototype.setVisibility.call(this, e4), this.bulletsContainer.visible = e4;
  13552. }, e3;
  13553. }(uo);
  13554. Ii.registeredClasses.Series = eh, Ii.registeredClasses.SeriesDataItem = th;
  13555. var ih = function(t2) {
  13556. function e3() {
  13557. var e4 = t2.call(this) || this;
  13558. return e4.className = "SerialChartDataItem", e4.applyTheme(), e4;
  13559. }
  13560. return C(e3, t2), e3;
  13561. }(Kl), nh = function(t2) {
  13562. function e3() {
  13563. var e4 = t2.call(this) || this;
  13564. e4.className = "SerialChart", e4.colors = new kl(), e4._usesData = false;
  13565. var i3 = e4.chartContainer.createChild($a);
  13566. i3.shouldClone = false, i3.width = V(100), i3.height = V(100), i3.isMeasured = false, i3.layout = "none", i3.zIndex = 2, e4.seriesContainer = i3;
  13567. var n3 = e4.chartContainer.createChild($a);
  13568. return n3.shouldClone = false, n3.width = V(100), n3.height = V(100), n3.isMeasured = false, n3.zIndex = 3, n3.layout = "none", e4.bulletsContainer = n3, e4.applyTheme(), e4;
  13569. }
  13570. return C(e3, t2), e3.prototype.dispose = function() {
  13571. t2.prototype.dispose.call(this), this.colors && this.colors.dispose(), this.patterns && this.patterns.dispose();
  13572. }, e3.prototype.applyInternalDefaults = function() {
  13573. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Serial chart"));
  13574. }, Object.defineProperty(e3.prototype, "series", { get: function() {
  13575. return this._series || (this._series = new Mi(this.createSeries()), this._series.events.on("inserted", this.handleSeriesAdded, this, false), this._series.events.on("removed", this.handleSeriesRemoved, this, false), this._disposers.push(new Ai(this._series, false)), this._disposers.push(this._series.template)), this._series;
  13576. }, enumerable: true, configurable: true }), e3.prototype.handleSeriesRemoved = function(t3) {
  13577. var e4 = t3.oldValue;
  13578. this.dataUsers.removeValue(e4), this.dataUsers.each(function(t4) {
  13579. t4.invalidateDataItems();
  13580. }), e4.autoDispose ? e4.dispose() : (e4.parent = void 0, e4.bulletsContainer.parent = void 0);
  13581. var i3 = this.legend;
  13582. if (i3) {
  13583. for (var n3 = this.legend.dataItems, r3 = n3.length - 1; r3 >= 0; r3--) {
  13584. var s2 = n3.getIndex(r3);
  13585. s2 && s2.dataContext == e4 && i3.dataItems.remove(s2);
  13586. }
  13587. for (r3 = i3.data.length - 1; r3 >= 0; r3--) {
  13588. var a2 = i3.data[r3];
  13589. a2 && a2 == e4 && ee(i3.data, a2);
  13590. }
  13591. }
  13592. }, e3.prototype.handleSeriesAdded = function(t3) {
  13593. var e4 = this, i3 = t3.newValue;
  13594. i3.isDisposed() || (i3.chart = this, i3.parent = this.seriesContainer, i3.bulletsContainer.parent = this.bulletsContainer, this._dataUsers.moveValue(i3), i3.addDisposer(new ye(function() {
  13595. e4.dataUsers.removeValue(i3);
  13596. })), this.handleSeriesAdded2(i3), this.handleLegendSeriesAdded(i3));
  13597. }, e3.prototype.handleLegendSeriesAdded = function(t3) {
  13598. t3.hiddenInLegend || this.legend && this.legend.addData(t3);
  13599. }, e3.prototype.handleSeriesAdded2 = function(t3) {
  13600. var e4 = this;
  13601. this.dataInvalid || this._disposers.push(Ii.events.once("exitframe", function() {
  13602. t3.data && t3.data.length != 0 || (t3.data = e4.data, t3.showOnInit && (t3.reinit(), t3.setPropertyValue("showOnInit", false), t3.showOnInit = true), t3.isDisposed() || t3.events.once("datavalidated", function() {
  13603. t3.data == e4.data && (t3._data = []);
  13604. }));
  13605. }));
  13606. }, e3.prototype.feedLegend = function() {
  13607. var t3 = this.legend;
  13608. if (t3) {
  13609. var e4 = [];
  13610. ti(this.series.iterator(), function(t4) {
  13611. t4.hiddenInLegend || e4.push(t4);
  13612. }), t3.dataFields.name = "name", t3.data = e4;
  13613. }
  13614. }, e3.prototype.createSeries = function() {
  13615. return new eh();
  13616. }, Object.defineProperty(e3.prototype, "colors", { get: function() {
  13617. return this.getPropertyValue("colors");
  13618. }, set: function(t3) {
  13619. this.setPropertyValue("colors", t3, true);
  13620. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "patterns", { get: function() {
  13621. return this.getPropertyValue("patterns");
  13622. }, set: function(t3) {
  13623. this.setPropertyValue("patterns", t3, true);
  13624. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  13625. t2.prototype.copyFrom.call(this, e4), this.series.copyFrom(e4.series);
  13626. }, e3.prototype.appear = function() {
  13627. t2.prototype.appear.call(this), this.series.each(function(t3) {
  13628. t3.showOnInit && t3.inited && t3.appear();
  13629. });
  13630. }, e3;
  13631. }(Zl);
  13632. Ii.registeredClasses.SerialChart = nh;
  13633. var rh = function(t2) {
  13634. function e3() {
  13635. var e4 = t2.call(this) || this;
  13636. e4._axis = new ve(), e4.dataItems = new Fi(), e4.className = "AxisBreak", e4.breakSize = 0.01, e4.marginLeft = -5, e4.marginRight = -5, e4.marginTop = -5, e4.marginBottom = -5;
  13637. var i3 = new Ys(), n3 = new pl();
  13638. n3.fill = i3.getFor("background"), n3.stroke = dn(), n3.fillOpacity = 0.9, n3.zIndex = 0, e4._fillShape = n3;
  13639. var r3 = new pl();
  13640. r3.fill = dn(), r3.stroke = i3.getFor("grid"), r3.strokeOpacity = 0.3, r3.zIndex = 1, e4._startLine = r3;
  13641. var s2 = new pl();
  13642. return s2.fill = dn(), s2.stroke = dn("#000000"), s2.strokeOpacity = 0.3, s2.zIndex = 2, e4._endLine = s2, e4._disposers.push(e4._axis), e4.applyTheme(), e4;
  13643. }
  13644. return C(e3, t2), e3.prototype.dispose = function() {
  13645. t2.prototype.dispose.call(this), this._fillShape && this._fillShape.dispose(), this._startLine && this._startLine.dispose(), this._endLine && this._endLine.dispose();
  13646. }, Object.defineProperty(e3.prototype, "startLine", { get: function() {
  13647. return this._startLine;
  13648. }, set: function(t3) {
  13649. this._startLine && this._startLine.dispose(), this._startLine = t3, this.addBreakSprite(t3);
  13650. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLine", { get: function() {
  13651. return this._endLine;
  13652. }, set: function(t3) {
  13653. this._endLine && this._endLine.dispose(), this._endLine = t3, this.addBreakSprite(t3);
  13654. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fillShape", { get: function() {
  13655. return this._fillShape;
  13656. }, set: function(t3) {
  13657. this._fillShape && this._fillShape.dispose(), this._fillShape = t3, this.addBreakSprite(t3);
  13658. }, enumerable: true, configurable: true }), e3.prototype.addBreakSprite = function(t3) {
  13659. t3.parent = this, t3.isMeasured = false, this._disposers.push(t3);
  13660. }, Object.defineProperty(e3.prototype, "axis", { get: function() {
  13661. return this._axis.get();
  13662. }, set: function(t3) {
  13663. if (this._axis.get() !== t3) {
  13664. this._axis.set(t3, t3.renderer.gridContainer.events.on("transformed", this.invalidate, this, false)), t3.renderer.createBreakSprites(this);
  13665. var e4 = t3.axisBreaks.template;
  13666. this.startLine.copyFrom(e4.startLine), this.endLine.copyFrom(e4.endLine), this.fillShape.copyFrom(e4.fillShape);
  13667. }
  13668. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "breakSize", { get: function() {
  13669. return this.getPropertyValue("breakSize");
  13670. }, set: function(t3) {
  13671. this.setPropertyValue("breakSize", t3) && this.axis && (this.axis.invalidate(), this.axis.invalidateSeries());
  13672. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startPoint", { get: function() {
  13673. var t3 = this.axis.renderer;
  13674. if (t3)
  13675. return t3.positionToPoint(this.startPosition);
  13676. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPoint", { get: function() {
  13677. var t3 = this.axis.renderer;
  13678. if (t3)
  13679. return t3.positionToPoint(this.endPosition);
  13680. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  13681. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  13682. }, enumerable: true, configurable: true }), e3.prototype.draw = function() {
  13683. t2.prototype.draw.call(this), this.axis && this.axis.renderer.updateBreakElement(this);
  13684. }, Object.defineProperty(e3.prototype, "startValue", { get: function() {
  13685. return this.getPropertyValue("startValue");
  13686. }, set: function(t3) {
  13687. this.setPropertyValue("startValue", t3) && this.axis && (this.axis.invalidate(), this.axis.invalidateSeries());
  13688. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endValue", { get: function() {
  13689. return this.getPropertyValue("endValue");
  13690. }, set: function(t3) {
  13691. this.setPropertyValue("endValue", t3) && this.axis && (this.axis.invalidate(), this.axis.invalidateSeries());
  13692. }, enumerable: true, configurable: true }), e3;
  13693. }($a);
  13694. Ii.registeredClasses.AxisBreak = rh;
  13695. var sh, ah = function(t2) {
  13696. function e3() {
  13697. var e4 = t2.call(this) || this;
  13698. return e4.className = "AxisDataItem", e4.applyTheme(), e4;
  13699. }
  13700. return C(e3, t2), Object.defineProperty(e3.prototype, "grid", { get: function() {
  13701. if (!this._grid) {
  13702. var t3 = this.component;
  13703. if (t3) {
  13704. var e4, i3 = void 0;
  13705. if (this.isRange) {
  13706. if ((i3 = t3.axisRanges.template.grid).disabled)
  13707. return;
  13708. e4 = i3.clone();
  13709. } else {
  13710. if ((i3 = t3.renderer.grid.template).disabled)
  13711. return;
  13712. e4 = t3.renderer.grid.create(), this._disposers.push(new ye(function() {
  13713. t3.renderer.grid.removeValue(e4);
  13714. }));
  13715. }
  13716. this.grid = e4, e4.shouldClone = false, this._disposers.push(e4), e4.axis = this.component;
  13717. }
  13718. }
  13719. return this._grid;
  13720. }, set: function(t3) {
  13721. this._grid && this._grid != t3 && (ee(this.sprites, this._grid), this._grid.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.grid = void 0), this.addSprite(t3)), this._grid = t3;
  13722. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tick", { get: function() {
  13723. if (!this._tick) {
  13724. var t3 = this.component;
  13725. if (t3) {
  13726. var e4, i3 = void 0;
  13727. if (this.isRange) {
  13728. if ((i3 = t3.axisRanges.template.tick).disabled)
  13729. return;
  13730. e4 = i3.clone();
  13731. } else {
  13732. if ((i3 = t3.renderer.ticks.template).disabled)
  13733. return;
  13734. e4 = t3.renderer.ticks.create(), this._disposers.push(new ye(function() {
  13735. t3.renderer.ticks.removeValue(e4);
  13736. }));
  13737. }
  13738. this.tick = e4, e4.axis = this.component, e4.shouldClone = false, this._disposers.push(e4);
  13739. }
  13740. }
  13741. return this._tick;
  13742. }, set: function(t3) {
  13743. this._tick && this._tick != t3 && (ee(this.sprites, this._tick), this._tick.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.tick = void 0), this.addSprite(t3)), this._tick = t3;
  13744. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  13745. if (!this._label) {
  13746. var t3 = this.component;
  13747. if (t3) {
  13748. var e4, i3 = void 0;
  13749. if (this.isRange) {
  13750. if ((i3 = t3.axisRanges.template.label).disabled)
  13751. return;
  13752. e4 = i3.clone();
  13753. } else {
  13754. if ((i3 = t3.renderer.labels.template).disabled)
  13755. return;
  13756. e4 = t3.renderer.labels.create(), this._disposers.push(new ye(function() {
  13757. t3.renderer.labels.removeValue(e4);
  13758. }));
  13759. }
  13760. this._disposers.push(e4), this.label = e4, e4.shouldClone = false, e4.axis = this.component, e4.virtualParent = t3;
  13761. }
  13762. }
  13763. return this._label;
  13764. }, set: function(t3) {
  13765. this._label && this._label != t3 && (ee(this.sprites, this._label), this._label.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.label = void 0), this.addSprite(t3)), this._label = t3;
  13766. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axisFill", { get: function() {
  13767. if (!this._axisFill) {
  13768. var t3 = this.component;
  13769. if (t3) {
  13770. var e4, i3 = void 0;
  13771. if (this.isRange) {
  13772. if (i3 = t3.axisRanges.template.axisFill, !this.isTemplate && i3.disabled)
  13773. return;
  13774. e4 = i3.clone();
  13775. } else {
  13776. if ((i3 = t3.renderer.axisFills.template).disabled)
  13777. return;
  13778. e4 = t3.renderer.axisFills.create(), this._disposers.push(new ye(function() {
  13779. t3.renderer.axisFills.removeValue(e4);
  13780. }));
  13781. }
  13782. this.axisFill = e4, e4.shouldClone = false, this._disposers.push(e4);
  13783. }
  13784. }
  13785. return this._axisFill;
  13786. }, set: function(t3) {
  13787. this._axisFill && this._axisFill != t3 && (ee(this.sprites, this._axisFill), this._axisFill.dataItem = void 0), t3 && (t3.dataItem && t3.dataItem != this && (ee(t3.dataItem.sprites, t3), t3.dataItem.axisFill = void 0), t3.axis = this.component, this.addSprite(t3)), this._axisFill = t3;
  13788. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "text", { get: function() {
  13789. return this._text;
  13790. }, set: function(t3) {
  13791. this._text = t3, this._label && (this._label.text = t3);
  13792. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mask", { get: function() {
  13793. return this._mask;
  13794. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "contents", { get: function() {
  13795. if (!this._contents) {
  13796. var t3 = new $a();
  13797. this.addSprite(t3), t3.isMeasured = false, this._contents = t3;
  13798. var e4 = this.component;
  13799. if (e4) {
  13800. var i3 = e4.renderer.createFill(this.component);
  13801. i3.disabled = false, i3.axis = e4, this.addSprite(i3), this._mask = i3, t3.mask = i3;
  13802. }
  13803. }
  13804. return this._contents;
  13805. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axisBreak", { get: function() {
  13806. return this._axisBreak;
  13807. }, set: function(t3) {
  13808. this._axisBreak && this._axisBreak.dataItems.removeValue(this), t3 && t3.dataItems.push(this), this._axisBreak = t3;
  13809. }, enumerable: true, configurable: true }), e3.prototype.validate = function() {
  13810. this.component && this.component.validateDataElement(this);
  13811. }, e3.prototype.appendChildren = function() {
  13812. this.component && this.component.appendDataItem(this);
  13813. }, e3.prototype.hasProperty = function(e4) {
  13814. return e4 == "component" || t2.prototype.hasProperty.call(this, e4);
  13815. }, e3.prototype.copyFrom = function(e4) {
  13816. t2.prototype.copyFrom.call(this, e4), this.text = e4.text, e4.bullet && (this.bullet = e4.bullet.clone()), this.minPosition = e4.minPosition, this.maxPosition = e4.maxPosition;
  13817. }, e3.prototype.setVisibility = function(e4, i3) {
  13818. t2.prototype.setVisibility.call(this, e4, i3), this._contents && (this._contents.visible = e4);
  13819. }, Object.defineProperty(e3.prototype, "bullet", { get: function() {
  13820. return this._bullet;
  13821. }, set: function(t3) {
  13822. this._bullet && this._bullet != t3 && (ee(this.sprites, this._bullet), this._bullet.dataItem = void 0), this._bullet = t3, t3 && this.addSprite(t3);
  13823. }, enumerable: true, configurable: true }), e3;
  13824. }(po);
  13825. !function(t2) {
  13826. t2[t2.Start = 0] = "Start", t2[t2.Middle = 0.5] = "Middle", t2[t2.End = 1] = "End";
  13827. }(sh || (sh = {}));
  13828. var oh = function(t2) {
  13829. function e3() {
  13830. var i3 = t2.call(this) || this;
  13831. if (i3._gridCount = 10, i3._series = new Fi(), i3.autoDispose = true, i3._axisItemCount = 0, i3.constructor === e3)
  13832. throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");
  13833. i3.hideTooltipWhileZooming = true, i3.minWidth = 1e-4, i3.minHeight = 1e-4, i3.className = "Axis", i3.shouldClone = false, i3.setPropertyValue("cursorTooltipEnabled", true), i3.toggleZoomOutButton = true, i3.zoomable = true;
  13834. var n3 = new Ys();
  13835. i3.title = new co(), i3.title.shouldClone = false, i3._disposers.push(i3.title), i3.setPropertyValue("startLocation", 0), i3.setPropertyValue("endLocation", 1), i3._dataItemsIterator = new mi(i3.dataItems, function() {
  13836. return i3.dataItems.create();
  13837. }), i3._dataItemsIterator.createNewItems = true;
  13838. var r3 = new $o();
  13839. i3._disposers.push(r3), r3.label.padding(5, 10, 5, 10), r3.background.pointerLength = 5, r3.fitPointerToBounds = true, r3.background.filters.clear(), r3.virtualParent = i3;
  13840. var s2 = r3.background;
  13841. return s2.cornerRadius = 0, s2.fill = n3.getFor("alternativeBackground"), s2.stroke = s2.fill, s2.strokeWidth = 1, s2.fillOpacity = 1, r3.label.fill = n3.getFor("alternativeText"), i3.tooltip = r3, i3.readerHidden = true, i3.events.on("rangechangestarted", function() {
  13842. i3.series.each(function(t3) {
  13843. t3.hideTooltipWhileZooming && (t3.tooltip.hide(), t3.tooltip.preventShow = true);
  13844. }), i3.hideTooltipWhileZooming && (i3.tooltip.hide(), i3.tooltip.preventShow = true);
  13845. }, void 0, false), i3.events.on("rangechangeended", function() {
  13846. i3.series.each(function(t3) {
  13847. t3.hideTooltipWhileZooming && (t3.tooltip.hide(), t3.tooltip.preventShow = false);
  13848. }), i3.hideTooltipWhileZooming && (i3.tooltip.hide(), i3.tooltip.preventShow = false);
  13849. }, void 0, false), i3.applyTheme(), i3;
  13850. }
  13851. return C(e3, t2), e3.prototype.fillRule = function(t3, e4) {
  13852. tt(e4) || (e4 = t3.index), e4 / 2 == Math.round(e4 / 2) ? (t3.axisFill.__disabled = true, t3.axisFill.opacity = 0) : (t3.axisFill.opacity = 1, t3.axisFill.__disabled = false);
  13853. }, e3.prototype.createDataItem = function() {
  13854. return new ah();
  13855. }, e3.prototype.invalidateLayout = function() {
  13856. t2.prototype.invalidateLayout.call(this), ti(this.series.iterator(), function(t3) {
  13857. t3.invalidateLayout();
  13858. });
  13859. }, e3.prototype.invalidateSeries = function() {
  13860. ti(this.series.iterator(), function(t3) {
  13861. t3.invalidate();
  13862. });
  13863. }, e3.prototype.validateDataElements = function() {
  13864. this._axisItemCount = 0, this.ghostLabel && (this.renderer.updateLabelElement(this.ghostLabel, this.start, this.end), this.ghostLabel.validate());
  13865. }, e3.prototype.updateGridCount = function() {
  13866. if (this.renderer) {
  13867. var t3 = this.axisLength / this.renderer.minGridDistance;
  13868. t3 != this._gridCount && (this._gridCount = t3, this.clearCache());
  13869. }
  13870. }, e3.prototype.validateLayout = function() {
  13871. this.axisFullLength = this.axisLength / (this.end - this.start), t2.prototype.validateLayout.call(this), this.updateGridCount();
  13872. var e4 = this.renderer;
  13873. e4 && (e4.updateAxisLine(), e4.updateTooltip(), e4.updateBaseGridElement()), this._prevLength != this.axisLength && (this.dispatchImmediately("lengthchanged"), this._prevLength = this.axisLength);
  13874. }, e3.prototype.initRenderer = function() {
  13875. }, e3.prototype.appendDataItem = function(t3) {
  13876. var e4 = this.renderer, i3 = t3.tick;
  13877. i3 && (i3.above ? i3.parent = e4.bulletsContainer : i3.parent = e4.gridContainer), t3.label && (t3.label.parent = e4);
  13878. var n3 = t3.axisFill;
  13879. n3 && (n3.above ? n3.parent = e4.bulletsContainer : n3.parent = e4.gridContainer);
  13880. var r3 = t3.grid;
  13881. r3 && (r3.above ? r3.parent = e4.bulletsContainer : r3.parent = e4.gridContainer), t3.bullet && (t3.bullet.parent = e4.bulletsContainer);
  13882. }, e3.prototype.validate = function() {
  13883. t2.prototype.validate.call(this), this.validateLayout(), this.renderer.updateGridContainer();
  13884. }, e3.prototype.validateAxisRanges = function() {
  13885. var t3 = this;
  13886. ti(this.axisRanges.iterator(), function(e4) {
  13887. t3.appendDataItem(e4), t3.validateDataElement(e4), e4.grid && e4.grid.validate(), e4.tick && e4.tick.validate(), e4.axisFill && e4.axisFill.validate(), e4.label && e4.label.validate();
  13888. });
  13889. }, e3.prototype.validateBreaks = function() {
  13890. this._axisBreaks && ti(this._axisBreaks.iterator(), function(t3) {
  13891. t3.invalidate();
  13892. });
  13893. }, e3.prototype.processBreak = function(t3) {
  13894. var e4 = t3.newValue;
  13895. e4.parent = this.renderer.breakContainer, e4.axis = this;
  13896. }, e3.prototype.registerSeries = function(t3) {
  13897. var e4 = this;
  13898. return this.series.moveValue(t3), new me([new ye(function() {
  13899. e4.series.removeValue(t3);
  13900. }), this.events.on("lengthchanged", t3.invalidate, t3, false), this.events.on("lengthchanged", t3.createMask, t3, false), this.events.on("startchanged", t3.invalidate, t3, false), this.events.on("endchanged", t3.invalidate, t3, false)]);
  13901. }, Object.defineProperty(e3.prototype, "renderer", { get: function() {
  13902. return this._renderer;
  13903. }, set: function(t3) {
  13904. if (t3 != this._renderer) {
  13905. this._renderer = t3, t3.chart = this.chart, t3.axis = this, t3.parent = this, this.title.parent = this, this.initRenderer(), this._disposers.push(t3.gridContainer.events.on("maxsizechanged", this.invalidate, this, false));
  13906. var e4 = this.renderer.labels.create();
  13907. this._disposers.push(e4), e4.dataItem = this.dataItems.template.clone(), e4.text = "L", e4.parent = this.renderer, e4.shouldClone = false, e4.fillOpacity = 0, e4.opacity = 0, e4.strokeOpacity = 0, e4.interactionsEnabled = false, e4.validate(), this.ghostLabel = e4, this.events.on("beforedatavalidated", function() {
  13908. e4.text = "L";
  13909. }, void 0, false);
  13910. }
  13911. }, enumerable: true, configurable: true }), e3.prototype.positionToAngle = function(t3) {
  13912. return this.renderer.positionToAngle(t3);
  13913. }, e3.prototype.pointToPosition = function(t3) {
  13914. return this.renderer.pointToPosition(t3);
  13915. }, e3.prototype.positionToCoordinate = function(t3) {
  13916. return this.renderer.positionToCoordinate(t3);
  13917. }, e3.prototype.getAnyRangePath = function(t3, e4) {
  13918. return this.renderer.getPositionRangePath(t3, e4);
  13919. }, e3.prototype.anyToPosition = function(t3) {
  13920. return 0;
  13921. }, e3.prototype.anyToPoint = function(t3) {
  13922. return { x: 0, y: 0, angle: 0 };
  13923. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  13924. return this.renderer ? this.renderer.getPositionRangePath(t3, e4) : "";
  13925. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  13926. return this.renderer ? this.renderer.axisLength : 0;
  13927. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorTooltipEnabled", { get: function() {
  13928. return this.getPropertyValue("cursorTooltipEnabled");
  13929. }, set: function(t3) {
  13930. this.setPropertyValue("cursorTooltipEnabled", t3) && (t3 && this.renderer ? this.renderer.updateTooltip() : this.tooltip && this.tooltip.hide(0));
  13931. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "toggleZoomOutButton", { get: function() {
  13932. return this.getPropertyValue("toggleZoomOutButton");
  13933. }, set: function(t3) {
  13934. this.setPropertyValue("toggleZoomOutButton", t3);
  13935. }, enumerable: true, configurable: true }), e3.prototype.hideTooltip = function(e4) {
  13936. t2.prototype.hideTooltip.call(this, e4), this._tooltipPosition = void 0;
  13937. }, e3.prototype.showTooltipAtPosition = function(t3, e4) {
  13938. var i3 = this._tooltip;
  13939. if (!i3 || this.dataItems.length <= 0)
  13940. this._tooltipPosition = void 0;
  13941. else {
  13942. if (e4 || (t3 = this.toAxisPosition(t3)), !tt(t3) || t3 < this.start || t3 > this.end)
  13943. return i3.hide(0), void (this._tooltipPosition = void 0);
  13944. var n3 = this.renderer;
  13945. i3.parent || (i3.parent = this.tooltipContainer);
  13946. var r3 = n3.tooltipLocation, s2 = this.getCellStartPosition(t3), a2 = this.getCellEndPosition(t3);
  13947. if (this.tooltipPosition == "fixed" && (t3 = s2 + (a2 - s2) * r3), t3 = ut(t3, this.start, this.end), this._tooltipPosition != t3) {
  13948. this._tooltipPosition = t3;
  13949. var o3 = n3.tooltipLocation2, l2 = n3.positionToPoint(s2, o3), h2 = n3.positionToPoint(a2, o3);
  13950. this.currentItemStartPoint = l2, this.currentItemEndPoint = h2, n3.fullWidthTooltip && (i3.width = h2.x - l2.x, i3.height = h2.y - l2.y);
  13951. var p2 = ur(n3.positionToPoint(t3, o3), this.renderer.line);
  13952. i3.text = this.getTooltipText(t3), i3.text && (i3.delayedPointTo(p2), i3.show());
  13953. }
  13954. this.cursorTooltipEnabled && !this.tooltip.disabled || i3.hide(0);
  13955. }
  13956. }, e3.prototype.toAxisPosition = function(t3) {
  13957. if ((t3 = this.renderer.toAxisPosition(t3)) != null)
  13958. return t3 *= this.end - this.start, this.renderer.inversed ? this.end - t3 : this.start + t3;
  13959. }, e3.prototype.toGlobalPosition = function(t3) {
  13960. return this.renderer.inversed ? t3 = this.end - t3 : t3 -= this.start, t3 / (this.end - this.start);
  13961. }, e3.prototype.getTooltipText = function(t3) {
  13962. }, e3.prototype.updateTooltip = function(t3, e4) {
  13963. var i3 = this._tooltip;
  13964. i3 && (i3.fixDoc = false, i3.pointerOrientation = t3, i3.setBounds(fr(e4, this.renderer.line)));
  13965. }, e3.prototype.roundPosition = function(t3, e4, i3) {
  13966. return t3;
  13967. }, e3.prototype.getCellStartPosition = function(t3) {
  13968. return t3;
  13969. }, e3.prototype.getCellEndPosition = function(t3) {
  13970. return t3;
  13971. }, Object.defineProperty(e3.prototype, "axisRanges", { get: function() {
  13972. if (!this._axisRanges) {
  13973. var t3 = this.createDataItem();
  13974. t3.isRange = true, t3.axisFill = this.renderer.axisFills.template.clone(), t3.grid = this.renderer.grid.template.clone(), t3.tick = this.renderer.ticks.template.clone(), t3.label = this.renderer.labels.template.clone(), t3.isTemplate = true, t3.component = this, t3.axisFill.disabled = false, t3.tick.disabled = false, t3.grid.disabled = false, t3.label.disabled = false, this._axisRanges = new Mi(t3), this._axisRanges.events.on("inserted", this.processAxisRange, this, false), this._disposers.push(new Ai(this._axisRanges)), this._disposers.push(this._axisRanges.template);
  13975. }
  13976. return this._axisRanges;
  13977. }, enumerable: true, configurable: true }), e3.prototype.processAxisRange = function(t3) {
  13978. var e4 = t3.newValue;
  13979. e4.component = this, e4.isRange = true;
  13980. }, Object.defineProperty(e3.prototype, "axisBreaks", { get: function() {
  13981. return this._axisBreaks || (this._axisBreaks = new Ri(this.createAxisBreak(), function(t3, e4) {
  13982. return Bi(t3.adjustedStartValue, e4.adjustedStartValue);
  13983. }), this._axisBreaks.events.on("inserted", this.processBreak, this, false), this._disposers.push(new Ai(this._axisBreaks)), this._disposers.push(this._axisBreaks.template)), this._axisBreaks;
  13984. }, enumerable: true, configurable: true }), e3.prototype.createAxisBreak = function() {
  13985. return new rh();
  13986. }, Object.defineProperty(e3.prototype, "series", { get: function() {
  13987. return this._series || (this._series = new Fi()), this._series;
  13988. }, enumerable: true, configurable: true }), e3.prototype.processSeriesDataItems = function() {
  13989. }, e3.prototype.processSeriesDataItem = function(t3, e4) {
  13990. }, e3.prototype.postProcessSeriesDataItems = function(t3) {
  13991. }, e3.prototype.postProcessSeriesDataItem = function(t3) {
  13992. }, e3.prototype.updateAxisBySeries = function() {
  13993. }, e3.prototype.hideUnusedDataItems = function() {
  13994. var t3 = this, e4 = this._dataItemsIterator;
  13995. e4.createNewItems = false, ti(e4.iterator(), function(e5) {
  13996. t3.validateDataElement(e5), e5.__disabled = true;
  13997. }), e4.clear(), e4.createNewItems = true;
  13998. }, e3.prototype.getSeriesDataItem = function(t3, e4, i3) {
  13999. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  14000. }, e3.prototype.getX = function(t3, e4, i3, n3, r3) {
  14001. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  14002. }, e3.prototype.getY = function(t3, e4, i3, n3, r3) {
  14003. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  14004. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  14005. return { x: 0, y: 0 };
  14006. }, enumerable: true, configurable: true }), e3.prototype.dataChangeUpdate = function() {
  14007. }, e3.prototype.seriesDataChangeUpdate = function(t3) {
  14008. }, e3.prototype.adjustDifference = function(t3, e4) {
  14009. var i3 = e4 - t3;
  14010. if (tt(i3))
  14011. return this._axisBreaks && Qe(this._axisBreaks.iterator(), function(n3) {
  14012. var r3 = n3.adjustedStartValue, s2 = n3.adjustedEndValue;
  14013. if (tt(r3) && tt(s2)) {
  14014. if (r3 > e4)
  14015. return false;
  14016. if (s2 >= t3 && tt(r3) && tt(s2)) {
  14017. var a2 = n3.breakSize, o3 = xt({ start: r3, end: s2 }, { start: t3, end: e4 });
  14018. o3 && (i3 -= (o3.end - o3.start) * (1 - a2));
  14019. }
  14020. return true;
  14021. }
  14022. }), i3;
  14023. }, e3.prototype.isInBreak = function(t3) {
  14024. if (this._axisBreaks)
  14025. return li(this._axisBreaks.iterator(), function(e4) {
  14026. return t3 >= e4.adjustedStartValue && t3 <= e4.adjustedEndValue;
  14027. });
  14028. }, e3.prototype.fixAxisBreaks = function() {
  14029. var t3 = this;
  14030. if (this._axisBreaks) {
  14031. var e4 = this._axisBreaks;
  14032. if (e4.length > 0) {
  14033. Ut(Je(e4.iterator()), function(e5) {
  14034. var i4 = yt(e5.startValue, e5.endValue), n4 = gt(e5.startValue, e5.endValue);
  14035. e5.adjustedStartValue = i4, e5.adjustedEndValue = n4, t3._axisBreaks.update(e5);
  14036. });
  14037. var i3 = e4.first, n3 = Math.min(i3.startValue, i3.endValue);
  14038. ti(e4.iterator(), function(t4) {
  14039. var e5 = t4.adjustedStartValue, i4 = t4.adjustedEndValue;
  14040. e5 < n3 && (e5 = n3, i4 < n3 && (i4 = n3)), t4.adjustedStartValue = e5, t4.adjustedEndValue = i4;
  14041. });
  14042. }
  14043. }
  14044. }, Object.defineProperty(e3.prototype, "startIndex", { get: function() {
  14045. return 0;
  14046. }, set: function(t3) {
  14047. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endIndex", { get: function() {
  14048. return this.dataItems.length;
  14049. }, set: function(t3) {
  14050. }, enumerable: true, configurable: true }), e3.prototype.getPositionLabel = function(t3) {
  14051. return Math.round(100 * t3) + "%x";
  14052. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  14053. return this._chart;
  14054. }, set: function(t3) {
  14055. this._chart = t3;
  14056. }, enumerable: true, configurable: true }), e3.prototype.createSeriesRange = function(t3) {
  14057. var e4 = this.axisRanges.create();
  14058. return e4.component = this, e4.axisFill = this.renderer.axisFills.template.clone(), e4.axisFill.disabled = false, e4.axisFill.fillOpacity = 0, e4.grid = this.renderer.grid.template.clone(), e4.grid.disabled = true, e4.tick = this.renderer.ticks.template.clone(), e4.tick.disabled = true, e4.label = this.renderer.labels.template.clone(), e4.label.disabled = true, e4.addDisposer(new ye(function() {
  14059. t3.axisRanges.removeValue(e4);
  14060. })), t3.axisRanges.push(e4), e4;
  14061. }, e3.prototype.copyFrom = function(e4) {
  14062. t2.prototype.copyFrom.call(this, e4), this.renderer ? this.renderer.copyFrom(e4.renderer) : e4.renderer && (this.renderer = e4.renderer.clone(), this._disposers.push(this.renderer)), e4.title && (this.title ? this.title.copyFrom(e4.title) : (this.title = e4.title.clone(), this.title.parent = this), this._disposers.push(this.title));
  14063. }, e3.prototype.resetIterators = function() {
  14064. this._dataItemsIterator.reset();
  14065. }, e3.prototype.processConfig = function(e4) {
  14066. if (e4 && Z(e4.axisRanges) && it(e4.axisRanges))
  14067. for (var i3 = 0, n3 = e4.axisRanges.length; i3 < n3; i3++) {
  14068. var r3 = e4.axisRanges[i3];
  14069. Z(r3.series) && Q(r3.series) && this.map.hasKey(r3.series) && (e4.axisRanges[i3] = this.createSeriesRange(this.map.getKey(r3.series)), delete r3.series, e4.axisRanges[i3].config = r3);
  14070. }
  14071. t2.prototype.processConfig.call(this, e4);
  14072. }, e3.prototype.configOrder = function(e4, i3) {
  14073. return e4 == i3 ? 0 : e4 == "title" ? 1 : i3 == "title" || e4 == "component" ? -1 : i3 == "component" ? 1 : t2.prototype.configOrder.call(this, e4, i3);
  14074. }, Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  14075. return this.getPropertyValue("startLocation");
  14076. }, set: function(t3) {
  14077. this.setPropertyValue("startLocation", t3, true);
  14078. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  14079. return this.getPropertyValue("endLocation");
  14080. }, set: function(t3) {
  14081. this.setPropertyValue("endLocation", t3, true);
  14082. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14083. var i3 = t2.prototype.setDisabled.call(this, e4);
  14084. return this.renderer && (this.renderer.gridContainer.disabled = e4), i3;
  14085. }, Object.defineProperty(e3.prototype, "title", { get: function() {
  14086. return this._title;
  14087. }, set: function(t3) {
  14088. this._title && this._title != t3 && this._title.dispose(), t3 && (this._title = t3, t3.parent = this, t3.shouldClone = false);
  14089. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideTooltipWhileZooming", { get: function() {
  14090. return this.getPropertyValue("hideTooltipWhileZooming");
  14091. }, set: function(t3) {
  14092. this.setPropertyValue("hideTooltipWhileZooming", t3);
  14093. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "zoomable", { get: function() {
  14094. return this.getPropertyValue("zoomable");
  14095. }, set: function(t3) {
  14096. this.setPropertyValue("zoomable", t3);
  14097. }, enumerable: true, configurable: true }), e3;
  14098. }(uo);
  14099. Ii.registeredClasses.Axis = oh, Ii.registeredClasses.AxisDataItem = ah, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  14100. if (t2 instanceof oh && t2.tooltip) {
  14101. var i3 = t2.states.create(e3);
  14102. return i3.properties.cursorTooltipEnabled = false, i3;
  14103. }
  14104. return null;
  14105. } });
  14106. var lh = function(t2) {
  14107. function e3() {
  14108. var e4 = t2.call(this) || this;
  14109. e4.className = "AxisLine", e4.element = e4.paper.add("path");
  14110. var i3 = new Ys();
  14111. return e4.stroke = i3.getFor("grid"), e4.strokeOpacity = 0.15, e4.pixelPerfect = true, e4.fill = dn(), e4.applyTheme(), e4.interactionsEnabled = false, e4;
  14112. }
  14113. return C(e3, t2), e3;
  14114. }(Za);
  14115. Ii.registeredClasses.AxisLine = lh;
  14116. var hh = function(t2) {
  14117. function e3(e4) {
  14118. var i3 = t2.call(this) || this;
  14119. i3.axis = e4, i3.element = i3.paper.add("path"), i3.className = "AxisFill", i3.isMeasured = false, i3.location = 0, i3.above = false;
  14120. var n3 = new Ys();
  14121. return i3.fill = n3.getFor("alternativeBackground"), i3.fillOpacity = 0, i3.applyTheme(), i3;
  14122. }
  14123. return C(e3, t2), e3.prototype.setDisabled = function(e4) {
  14124. var i3 = t2.prototype.setDisabled.call(this, e4);
  14125. return this.axis && this.axis.invalidateDataItems(), i3;
  14126. }, e3.prototype.draw = function() {
  14127. t2.prototype.draw.call(this), this.__disabled || this.disabled || this.axis && tt(this.startPosition) && tt(this.endPosition) && (this.fillPath = this.axis.getPositionRangePath(this.startPosition, this.endPosition), this.path = this.fillPath, this.isMeasured && this.measure());
  14128. }, Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  14129. return this.getPropertyValue("startPosition");
  14130. }, set: function(t3) {
  14131. this.setPropertyValue("startPosition", t3), this.invalidate();
  14132. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  14133. return this.getPropertyValue("endPosition");
  14134. }, set: function(t3) {
  14135. this.setPropertyValue("endPosition", t3), this.invalidate();
  14136. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "location", { get: function() {
  14137. return this.getPropertyValue("location");
  14138. }, set: function(t3) {
  14139. this.setPropertyValue("location", t3, true);
  14140. }, enumerable: true, configurable: true }), e3.prototype.setPath = function(t3) {
  14141. return !!this.setPropertyValue("path", t3) && (this.element.attr({ d: t3 }), true);
  14142. }, Object.defineProperty(e3.prototype, "above", { get: function() {
  14143. return this.getPropertyValue("above");
  14144. }, set: function(t3) {
  14145. this.setPropertyValue("above", t3, true);
  14146. }, enumerable: true, configurable: true }), e3;
  14147. }(Za);
  14148. Ii.registeredClasses.AxisFill = hh;
  14149. var ph = function(t2) {
  14150. function e3() {
  14151. var e4 = t2.call(this) || this;
  14152. e4.className = "Grid", e4.element = e4.paper.add("path"), e4.location = 0.5, e4.isMeasured = false, e4.above = false;
  14153. var i3 = new Ys();
  14154. return e4.stroke = i3.getFor("grid"), e4.pixelPerfect = true, e4.strokeOpacity = 0.15, e4.fill = dn(), e4.applyTheme(), e4;
  14155. }
  14156. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14157. return this.getPropertyValue("location");
  14158. }, set: function(t3) {
  14159. this.setPropertyValue("location", t3, true);
  14160. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "above", { get: function() {
  14161. return this.getPropertyValue("above");
  14162. }, set: function(t3) {
  14163. this.setPropertyValue("above", t3, true);
  14164. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14165. var i3 = t2.prototype.setDisabled.call(this, e4);
  14166. return this.axis && this.axis.invalidateDataItems(), i3;
  14167. }, e3;
  14168. }(Za);
  14169. Ii.registeredClasses.Grid = ph, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  14170. if (t2 instanceof ph) {
  14171. var i3 = t2.states.create(e3);
  14172. return i3.properties.disabled = true, i3;
  14173. }
  14174. return null;
  14175. } });
  14176. var uh = function(t2) {
  14177. function e3() {
  14178. var e4 = t2.call(this) || this;
  14179. return e4.className = "AxisLabel", e4.isMeasured = false, e4.padding(10, 10, 10, 10), e4.location = 0.5, e4.applyTheme(), e4;
  14180. }
  14181. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14182. return this.getPropertyValue("location");
  14183. }, set: function(t3) {
  14184. this.setPropertyValue("location", t3, true);
  14185. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inside", { get: function() {
  14186. return this.getPropertyValue("inside");
  14187. }, set: function(t3) {
  14188. this.setPropertyValue("inside", t3, true);
  14189. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14190. var i3 = t2.prototype.setDisabled.call(this, e4);
  14191. return this.axis && this.axis.invalidateDataItems(), i3;
  14192. }, e3;
  14193. }(co);
  14194. Ii.registeredClasses.AxisLabel = uh;
  14195. var dh = function(t2) {
  14196. function e3() {
  14197. var e4 = t2.call(this) || this;
  14198. e4.className = "Tick";
  14199. var i3 = new Ys();
  14200. return e4.fillOpacity = 0, e4.length = 6, e4.strokeOpacity = 0.2, e4.stroke = i3.getFor("grid"), e4.isMeasured = false, e4.nonScalingStroke = true, e4.applyTheme(), e4;
  14201. }
  14202. return C(e3, t2), Object.defineProperty(e3.prototype, "length", { get: function() {
  14203. return this.disabled ? 0 : this.getPropertyValue("length");
  14204. }, set: function(t3) {
  14205. this.setPropertyValue("length", t3, true);
  14206. }, enumerable: true, configurable: true }), e3;
  14207. }(Za);
  14208. Ii.registeredClasses.Tick = dh;
  14209. var ch = function(t2) {
  14210. function e3() {
  14211. var e4 = t2.call(this) || this;
  14212. return e4.className = "AxisTick", e4.element = e4.paper.add("path"), e4.location = 0.5, e4.above = false, e4.isMeasured = false, e4.pixelPerfect = true, e4.strokeOpacity = 0, e4.length = 5, e4.applyTheme(), e4;
  14213. }
  14214. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14215. return this.getPropertyValue("location");
  14216. }, set: function(t3) {
  14217. this.setPropertyValue("location", t3, true);
  14218. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inside", { get: function() {
  14219. return this.getPropertyValue("inside");
  14220. }, set: function(t3) {
  14221. this.setPropertyValue("inside", t3, true);
  14222. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "above", { get: function() {
  14223. return this.getPropertyValue("above");
  14224. }, set: function(t3) {
  14225. this.setPropertyValue("above", t3, true);
  14226. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14227. var i3 = t2.prototype.setDisabled.call(this, e4);
  14228. return this.axis && this.axis.invalidateDataItems(), i3;
  14229. }, e3;
  14230. }(dh);
  14231. Ii.registeredClasses.AxisTick = ch;
  14232. var fh = function(t2) {
  14233. function e3() {
  14234. var e4 = t2.call(this) || this;
  14235. e4._chart = new ve(), e4.className = "AxisRenderer", e4.minGridDistance = 50, e4.inside = false, e4.inversed = false, e4.tooltipLocation = 0.5, e4.fullWidthTooltip = false, e4.cellStartLocation = 0, e4.cellEndLocation = 1, e4.minLabelPosition = 0, e4.maxLabelPosition = 1, e4.shouldClone = false;
  14236. var i3 = e4.createChild($a);
  14237. i3.shouldClone = false, i3.layout = "none", i3.virtualParent = e4, i3.width = V(100), i3.height = V(100), e4.gridContainer = i3, i3.events.on("maxsizechanged", function() {
  14238. e4.inited && e4.invalidateAxisItems();
  14239. }, e4, false);
  14240. var n3 = e4.createChild($a);
  14241. n3.shouldClone = false, n3.isMeasured = false, n3.layout = "none", n3.width = V(100), n3.height = V(100), e4.breakContainer = n3;
  14242. var r3 = e4.createChild($a);
  14243. r3.shouldClone = false, r3.isMeasured = false, r3.layout = "none", r3.width = V(100), r3.height = V(100), e4.bulletsContainer = r3, e4.line = e4.createChild(lh), e4.line.shouldClone = false, e4.line.strokeOpacity = 0;
  14244. var s2 = e4.createChild(ph);
  14245. s2.shouldClone = false, e4.baseGrid = s2;
  14246. var a2 = e4._disposers;
  14247. return a2.push(s2), a2.push(e4.line), a2.push(i3), a2.push(n3), a2.push(r3), a2.push(e4._chart), e4.ticks.template.disabled = true, e4.axisFills.template.disabled = true, e4.axisFills.template.interactionsEnabled = false, e4.applyTheme(), e4;
  14248. }
  14249. return C(e3, t2), Object.defineProperty(e3.prototype, "axis", { get: function() {
  14250. return this._axis;
  14251. }, set: function(t3) {
  14252. this.setAxis(t3);
  14253. }, enumerable: true, configurable: true }), e3.prototype.setAxis = function(t3) {
  14254. this._axis = t3, this.baseGrid.parent = t3, this.line.parent = t3, this.gridContainer.bind("opacity", t3);
  14255. }, e3.prototype.processRenderer = function() {
  14256. this.events.on("sizechanged", this.updateTooltip, this, false), this.events.on("positionchanged", this.updateTooltip, this, false), this.labels.template.inside = this.inside, this.ticks.template.inside = this.inside;
  14257. }, e3.prototype.updateTooltip = function() {
  14258. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  14259. return 0;
  14260. }, enumerable: true, configurable: true }), e3.prototype.positionItem = function(t3, e4) {
  14261. t3 && t3.moveTo(e4);
  14262. }, e3.prototype.positionToPoint = function(t3, e4) {
  14263. return { x: 0, y: 0 };
  14264. }, e3.prototype.positionToAngle = function(t3) {
  14265. return 0;
  14266. }, e3.prototype.positionToCoordinate = function(t3) {
  14267. var e4 = this.axis, i3 = e4.axisFullLength;
  14268. return e4.renderer.inversed ? (e4.end - t3) * i3 : (t3 - e4.start) * i3;
  14269. }, e3.prototype.updateGridContainer = function() {
  14270. }, e3.prototype.getHeight = function() {
  14271. var t3 = this.gridContainer;
  14272. return t3.parent ? t3.parent.pixelHeight : this.gridContainer.pixelHeight || 0;
  14273. }, e3.prototype.getWidth = function() {
  14274. var t3 = this.gridContainer;
  14275. return t3.parent ? t3.parent.pixelWidth : this.gridContainer.pixelWidth || 0;
  14276. }, e3.prototype.coordinateToPosition = function(t3, e4) {
  14277. var i3 = this.axis, n3 = i3.axisFullLength;
  14278. return lt(i3.renderer.inversed ? i3.end - t3 / n3 : t3 / n3 + i3.start, 5);
  14279. }, e3.prototype.pointToPosition = function(t3) {
  14280. return 0;
  14281. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  14282. return "";
  14283. }, e3.prototype.invalidateAxisItems = function() {
  14284. var t3 = this.axis;
  14285. t3 && t3.invalidateDataItems();
  14286. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  14287. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  14288. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  14289. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  14290. }, e3.prototype.updateFillElement = function(t3, e4, i3) {
  14291. t3.startPosition = e4, t3.endPosition = i3;
  14292. }, e3.prototype.updateAxisLine = function() {
  14293. }, e3.prototype.updateBaseGridElement = function() {
  14294. }, e3.prototype.updateBreakElement = function(t3) {
  14295. this.positionItem(t3.startLine, t3.startPoint), this.toggleVisibility(t3.startLine, t3.startPosition, 0, 1), this.positionItem(t3.endLine, t3.endPoint), this.toggleVisibility(t3.endLine, t3.endPosition, 0, 1);
  14296. }, Object.defineProperty(e3.prototype, "minGridDistance", { get: function() {
  14297. return this.getPropertyValue("minGridDistance");
  14298. }, set: function(t3) {
  14299. this.setPropertyValue("minGridDistance", t3) && this.axis && this.axis.invalidateDataItems();
  14300. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "chart", { get: function() {
  14301. return this._chart.get();
  14302. }, set: function(t3) {
  14303. this._chart.set(t3, null);
  14304. }, enumerable: true, configurable: true }), e3.prototype.toggleVisibility = function(t3, e4, i3, n3) {
  14305. var r3 = this.axis, s2 = t3.dataItem;
  14306. s2 && s2 instanceof ah && (tt(s2.minPosition) && (i3 = s2.minPosition), tt(s2.maxPosition) && (n3 = s2.maxPosition));
  14307. var a2 = r3.start + (r3.end - r3.start) * (i3 - 1e-4), o3 = r3.start + (r3.end - r3.start) * (n3 + 1e-4);
  14308. t3.disabled || (t3.__disabled = e4 < a2 || e4 > o3);
  14309. }, e3.prototype.createBreakSprites = function(t3) {
  14310. }, Object.defineProperty(e3.prototype, "axisFills", { get: function() {
  14311. if (!this._axisFills) {
  14312. var t3 = this.createFill(this.axis);
  14313. this._axisFills = new Mi(t3), t3.applyOnClones = true, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._disposers.push(new Ai(this._axisFills)), this._disposers.push(this._axisFills.template);
  14314. }
  14315. return this._axisFills;
  14316. }, enumerable: true, configurable: true }), e3.prototype.createFill = function(t3) {
  14317. return new hh(t3);
  14318. }, Object.defineProperty(e3.prototype, "grid", { get: function() {
  14319. if (!this._grid) {
  14320. var t3 = this.createGrid();
  14321. this._grid = new Mi(t3), t3.applyOnClones = true, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._disposers.push(new Ai(this._grid)), this._disposers.push(this._grid.template);
  14322. }
  14323. return this._grid;
  14324. }, enumerable: true, configurable: true }), e3.prototype.createGrid = function() {
  14325. return new ph();
  14326. }, Object.defineProperty(e3.prototype, "ticks", { get: function() {
  14327. if (!this._ticks) {
  14328. var t3 = this.createTick();
  14329. t3.applyOnClones = true, t3.isMeasured = false, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._ticks = new Mi(t3), this._disposers.push(new Ai(this._ticks)), this._disposers.push(this._ticks.template);
  14330. }
  14331. return this._ticks;
  14332. }, enumerable: true, configurable: true }), e3.prototype.createTick = function() {
  14333. return new ch();
  14334. }, Object.defineProperty(e3.prototype, "labels", { get: function() {
  14335. if (!this._labels) {
  14336. var t3 = this.createLabel();
  14337. this._labels = new Mi(t3), t3.applyOnClones = true, t3.events.on("enabled", this.invalidateAxisItems, this, false), this._disposers.push(new Ai(this._labels)), this._disposers.push(this._labels.template);
  14338. }
  14339. return this._labels;
  14340. }, enumerable: true, configurable: true }), e3.prototype.createLabel = function() {
  14341. return new uh();
  14342. }, Object.defineProperty(e3.prototype, "inside", { get: function() {
  14343. return this.getPropertyValue("inside");
  14344. }, set: function(t3) {
  14345. this.setPropertyValue("inside", t3) && this.axis && this.axis.invalidate(), t3 ? (this.width = 0, this.height = 0) : (this.width = void 0, this.height = void 0);
  14346. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "opposite", { get: function() {
  14347. return this.getPropertyValue("opposite");
  14348. }, set: function(t3) {
  14349. this.setPropertyValue("opposite", t3);
  14350. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fullWidthTooltip", { get: function() {
  14351. return this.getPropertyValue("fullWidthTooltip");
  14352. }, set: function(t3) {
  14353. this.setPropertyValue("fullWidthTooltip", t3);
  14354. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipLocation", { get: function() {
  14355. return this.getPropertyValue("tooltipLocation");
  14356. }, set: function(t3) {
  14357. this.setPropertyValue("tooltipLocation", t3);
  14358. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipLocation2", { get: function() {
  14359. return this.getPropertyValue("tooltipLocation2");
  14360. }, set: function(t3) {
  14361. this.setPropertyValue("tooltipLocation2", t3);
  14362. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cellStartLocation", { get: function() {
  14363. return this.getPropertyValue("cellStartLocation");
  14364. }, set: function(t3) {
  14365. this.setPropertyValue("cellStartLocation", t3) && this.axis && this.axis.invalidateSeries();
  14366. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cellEndLocation", { get: function() {
  14367. return this.getPropertyValue("cellEndLocation");
  14368. }, set: function(t3) {
  14369. this.setPropertyValue("cellEndLocation", t3) && this.axis && this.axis.invalidateSeries();
  14370. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "inversed", { get: function() {
  14371. return this.getPropertyValue("inversed");
  14372. }, set: function(t3) {
  14373. this.setPropertyValue("inversed", t3);
  14374. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minLabelPosition", { get: function() {
  14375. return this.getPropertyValue("minLabelPosition");
  14376. }, set: function(t3) {
  14377. this.setPropertyValue("minLabelPosition", t3, true);
  14378. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxLabelPosition", { get: function() {
  14379. return this.getPropertyValue("maxLabelPosition");
  14380. }, set: function(t3) {
  14381. this.setPropertyValue("maxLabelPosition", t3, true);
  14382. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  14383. t2.prototype.copyFrom.call(this, e4), this.grid.template.copyFrom(e4.grid.template), this.ticks.template.copyFrom(e4.ticks.template), this.labels.template.copyFrom(e4.labels.template), this.axisFills.template.copyFrom(e4.axisFills.template), this.line.copyFrom(e4.line), this.baseGrid.copyFrom(e4.baseGrid);
  14384. }, e3.prototype.toAxisPosition = function(t3) {
  14385. return t3;
  14386. }, e3.prototype.setVisibility = function(e4) {
  14387. t2.prototype.setVisibility.call(this, e4), this.bulletsContainer.visible = e4;
  14388. }, e3;
  14389. }($a);
  14390. Ii.registeredClasses.AxisRenderer = fh;
  14391. var gh = function(t2) {
  14392. function e3() {
  14393. var e4 = t2.call(this) || this;
  14394. return e4.className = "AxisBullet", e4.location = 0.5, e4.isMeasured = false, e4.applyTheme(), e4;
  14395. }
  14396. return C(e3, t2), Object.defineProperty(e3.prototype, "location", { get: function() {
  14397. return this.getPropertyValue("location");
  14398. }, set: function(t3) {
  14399. this.setPropertyValue("location", t3, true);
  14400. }, enumerable: true, configurable: true }), e3.prototype.setDisabled = function(e4) {
  14401. var i3 = t2.prototype.setDisabled.call(this, e4);
  14402. return this.axis && this.axis.invalidateDataItems(), i3;
  14403. }, e3;
  14404. }($a);
  14405. Ii.registeredClasses.AxisBullet = gh;
  14406. var yh = function(t2) {
  14407. function e3() {
  14408. var e4 = t2.call(this) || this;
  14409. return e4.className = "AxisRendererY", e4.minGridDistance = 40, e4.opposite = false, e4.height = V(100), e4.labels.template.verticalCenter = "middle", e4.applyTheme(), e4;
  14410. }
  14411. return C(e3, t2), e3.prototype.setAxis = function(e4) {
  14412. t2.prototype.setAxis.call(this, e4), e4.layout = "horizontal";
  14413. }, e3.prototype.updateGridContainer = function() {
  14414. var t3 = this.axis;
  14415. if (t3) {
  14416. var e4 = this.gridContainer;
  14417. e4.y = t3.pixelY, e4.height = t3.axisLength;
  14418. }
  14419. }, e3.prototype.toAxisPosition = function(t3) {
  14420. var e4 = this.axis;
  14421. if (e4) {
  14422. var i3 = 1 - t3, n3 = e4.relativePositionSprite, r3 = e4.pixelY;
  14423. if (n3 ? r3 = dr({ x: 0, y: this.pixelY }, this.parent, n3).y : n3 = e4.parent, n3)
  14424. return 1 - (i3 - r3 / n3.innerHeight) / (e4.axisLength / n3.innerHeight);
  14425. }
  14426. return t3;
  14427. }, e3.prototype.processRenderer = function() {
  14428. t2.prototype.processRenderer.call(this);
  14429. var e4 = this.axis;
  14430. if (e4) {
  14431. var i3 = e4.title;
  14432. i3.valign = "middle", e4.height instanceof A || (e4.height = V(100)), this.opposite ? (i3.rotation = 90, this.line.toBack(), i3.toFront()) : (i3.rotation = -90, i3.toBack(), this.line.toFront());
  14433. }
  14434. }, e3.prototype.updateTooltip = function() {
  14435. if (this.axis) {
  14436. var t3 = 2e3, e4 = 0, i3 = t3, n3 = this.axisLength;
  14437. this.opposite ? this.inside && (e4 = -2e3, i3 = t3) : this.inside || (e4 = -2e3, i3 = t3), this.axis.updateTooltip("horizontal", { x: e4, y: 0, width: i3, height: n3 });
  14438. }
  14439. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  14440. var t3 = this.axis;
  14441. return t3.measuredHeight - t3.pixelPaddingTop - t3.pixelPaddingBottom || 0;
  14442. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  14443. return { x: 0, y: this.positionToCoordinate(t3) };
  14444. }, e3.prototype.pointToPosition = function(t3) {
  14445. return this.coordinateToPosition(t3.y, t3.x);
  14446. }, e3.prototype.coordinateToPosition = function(t3, e4) {
  14447. var i3 = this.axis, n3 = i3.axisFullLength;
  14448. return lt(i3.renderer.inversed ? 1 - i3.start - t3 / n3 : t3 / n3 + (1 - i3.end), 5);
  14449. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  14450. var i3 = ut(this.positionToCoordinate(t3), 0, this.axisLength), n3 = ut(this.positionToCoordinate(e4), 0, this.axisLength), r3 = Math.abs(n3 - i3), s2 = this.getWidth();
  14451. return Vo({ x: 0, y: Math.min(i3, n3), width: s2, height: r3 }, true);
  14452. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  14453. e4 += (i3 - e4) * t3.location;
  14454. var n3 = this.positionToPoint(e4);
  14455. t3.path = wo({ x: 0, y: 0 }) + Co({ x: this.getWidth(), y: 0 }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  14456. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  14457. e4 += (i3 - e4) * t3.location;
  14458. var n3 = this.positionToPoint(e4), r3 = t3.length;
  14459. try {
  14460. this.axis.title.measuredWidth;
  14461. } catch (t4) {
  14462. }
  14463. n3.x = dr({ x: this.line.pixelX, y: 0 }, this.line.parent, this.gridContainer).x, this.opposite ? r3 *= t3.inside ? -1 : 1 : r3 *= t3.inside ? 1 : -1, t3.path = wo({ x: 0, y: 0 }) + Co({ x: r3, y: 0 }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  14464. }, e3.prototype.updateAxisLine = function() {
  14465. this.line.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: this.axisLength });
  14466. }, e3.prototype.updateBaseGridElement = function() {
  14467. t2.prototype.updateBaseGridElement.call(this);
  14468. var e4 = this.axis, i3 = this.getWidth(), n3 = this.axisLength, r3 = e4.basePoint.y, s2 = this.baseGrid;
  14469. if (r3 < -0.2 || r3 > n3 + 0.2)
  14470. s2.hide(0);
  14471. else {
  14472. var a2 = dr({ x: 0, y: 0 }, this.gridContainer, s2.parent).x;
  14473. s2.path = wo({ x: 0, y: 0 }) + Co({ x: i3, y: 0 }), s2.moveTo({ x: a2, y: r3 }), s2.show(0);
  14474. }
  14475. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  14476. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3, t3.isMeasured = !t3.inside;
  14477. var r3, s2 = this.positionToPoint(e4), a2 = 0, o3 = this.gridContainer.maxWidth;
  14478. this.opposite ? (t3.inside ? (r3 = "right", t3.align == "left" && (a2 = -o3, r3 = "left"), t3.align == "center" && (a2 = -o3 / 2, r3 = "middle")) : r3 = "left", s2.x = 0 + a2) : (t3.inside ? (r3 = "left", t3.align == "right" && (a2 = o3, r3 = "right"), t3.align == "center" && (a2 = o3 / 2, r3 = "middle")) : r3 = "right", s2.x = this.measuredWidth + a2), t3.rotation == 0 && (t3.horizontalCenter = r3), this.positionItem(t3, s2), this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  14479. }, e3.prototype.updateBreakElement = function(e4) {
  14480. t2.prototype.updateBreakElement.call(this, e4);
  14481. var i3 = e4.startLine, n3 = e4.endLine, r3 = e4.fillShape, s2 = e4.startPoint, a2 = e4.endPoint, o3 = e4.pixelMarginLeft, l2 = this.getWidth() - e4.pixelMarginLeft - e4.pixelMarginRight;
  14482. s2.y = ut(s2.y, -1, this.axisLength + 1), a2.y = ut(a2.y, -1, this.axisLength + 1), s2.y == a2.y && (s2.y < 0 || s2.y > this.axisLength) ? e4.fillShape.__disabled = true : e4.fillShape.__disabled = false;
  14483. var h2 = Math.abs(l2 - o3);
  14484. i3.x = o3, i3.height = 0, i3.width = h2, n3.x = o3, n3.height = 0, n3.width = h2, r3.width = h2, r3.height = Math.abs(a2.y - s2.y), r3.x = o3, r3.y = a2.y;
  14485. }, e3.prototype.createBreakSprites = function(t3) {
  14486. t3.startLine = new pl(), t3.endLine = new pl();
  14487. var e4 = new ul();
  14488. e4.setWavedSides(true, false, true, false), t3.fillShape = e4;
  14489. }, e3.prototype.positionToCoordinate = function(t3) {
  14490. var e4 = this.axis, i3 = e4.axisFullLength;
  14491. return e4.renderer.inversed ? (t3 - e4.start) * i3 : (e4.end - t3) * i3;
  14492. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  14493. var n3 = 0.5;
  14494. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  14495. var r3 = this.positionToPoint(e4);
  14496. r3.x = dr({ x: this.line.pixelX, y: 0 }, this.line.parent, this.gridContainer).x, this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  14497. }, e3;
  14498. }(fh);
  14499. Ii.registeredClasses.AxisRendererY = yh, lo.push({ relevant: ho.widthS, state: function(t2, e3) {
  14500. if (t2 instanceof yh) {
  14501. var i3 = t2.states.create(e3);
  14502. return i3.properties.inside = true, i3.properties.maxLabelPosition = 0.9, i3.properties.minLabelPosition = 0.1, i3;
  14503. }
  14504. return null;
  14505. } }), lo.push({ relevant: ho.widthXS, state: function(t2, e3) {
  14506. if (t2 instanceof yh) {
  14507. var i3 = t2.states.create(e3);
  14508. return i3.properties.disabled = true, i3;
  14509. }
  14510. return null;
  14511. } });
  14512. var mh = function(t2) {
  14513. function e3() {
  14514. var e4 = t2.call(this) || this;
  14515. return e4.className = "ValueAxisBreak", e4.applyTheme(), e4;
  14516. }
  14517. return C(e3, t2), Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  14518. if (this.axis)
  14519. return this.axis.valueToPosition(this.adjustedStartValue);
  14520. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  14521. if (this.axis)
  14522. return this.axis.valueToPosition(this.adjustedEndValue);
  14523. }, enumerable: true, configurable: true }), e3;
  14524. }(rh);
  14525. Ii.registeredClasses.ValueAxisBreak = mh;
  14526. var vh = function(t2) {
  14527. function e3() {
  14528. var e4 = t2.call(this) || this;
  14529. return e4.className = "ValueAxisDataItem", e4.values.value = {}, e4.values.endValue = {}, e4.applyTheme(), e4;
  14530. }
  14531. return C(e3, t2), Object.defineProperty(e3.prototype, "value", { get: function() {
  14532. return this.values.value.value;
  14533. }, set: function(t3) {
  14534. this.setValue("value", t3);
  14535. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endValue", { get: function() {
  14536. return this.values.endValue.value;
  14537. }, set: function(t3) {
  14538. this.setValue("endValue", t3);
  14539. }, enumerable: true, configurable: true }), e3;
  14540. }(ah), bh = function(t2) {
  14541. function e3() {
  14542. var e4 = t2.call(this) || this;
  14543. return e4._stepDecimalPlaces = 0, e4._prevStepDecimalPlaces = 0, e4._adjustLabelPrecision = true, e4._baseValue = 0, e4._adjustedStart = 0, e4._adjustedEnd = 1, e4._extremesChanged = false, e4._deltaMinMax = 1, e4._dsc = false, e4.calculateTotals = false, e4.className = "ValueAxis", e4.axisFieldName = "value", e4.setPropertyValue("maxZoomFactor", 1e3), e4.setPropertyValue("extraMin", 0), e4.setPropertyValue("extraMax", 0), e4.setPropertyValue("strictMinMax", false), e4.setPropertyValue("maxPrecision", Number.MAX_VALUE), e4.setPropertyValue("adjustLabelPrecision", true), e4.setPropertyValue("extraTooltipPrecision", 0), e4.keepSelection = false, e4.includeRangesInMinMax = false, e4.applyTheme(), e4;
  14544. }
  14545. return C(e3, t2), e3.prototype.fillRule = function(t3) {
  14546. var e4 = t3.value, i3 = t3.component;
  14547. t3.axisFill.disabled || (lt(e4 / i3.step / 2, 5) == Math.round(e4 / i3.step / 2) ? t3.axisFill.__disabled = true : t3.axisFill.__disabled = false);
  14548. }, e3.prototype.createDataItem = function() {
  14549. return new vh();
  14550. }, e3.prototype.createAxisBreak = function() {
  14551. return new mh();
  14552. }, e3.prototype.dataChangeUpdate = function() {
  14553. this.clearCache(), this.keepSelection ? (this._start != 0 && this.dispatchImmediately("startchanged"), this._end != 1 && this.dispatchImmediately("endchanged"), this._start == 0 && this._end == 1 || this.dispatchImmediately("startendchanged")) : this._start == 0 && this._end == 1 || (this._start = 0, this._end = 1, this.dispatchImmediately("startendchanged")), this._maxZoomed = this._maxDefined, this._minZoomed = this._minDefined, this._maxAdjusted = this._maxDefined, this._minAdjusted = this._minDefined;
  14554. }, e3.prototype.processSeriesDataItems = function() {
  14555. if (this.calculateTotals) {
  14556. var t3 = this.series.getIndex(0), e4 = t3.startIndex;
  14557. if (t3.dataItems.length > 0) {
  14558. e4 > 0 && e4--;
  14559. var i3 = t3.endIndex;
  14560. i3 < t3.dataItems.length && i3++;
  14561. for (var n3 = function(t4) {
  14562. var e5 = {}, i4 = {};
  14563. r3.series.each(function(n4) {
  14564. if (!n4.excludeFromTotal) {
  14565. var r4 = n4.dataItems.getIndex(t4);
  14566. r4 && Ne(r4.values, function(t5) {
  14567. var n5 = r4.values[t5].workingValue;
  14568. tt(n5) && (tt(e5[t5]) ? e5[t5] += Math.abs(n5) : e5[t5] = Math.abs(n5), tt(i4[t5]) ? i4[t5] += n5 : i4[t5] = n5);
  14569. });
  14570. }
  14571. }), r3.series.each(function(n4) {
  14572. if (!n4.excludeFromTotal) {
  14573. var r4 = n4.dataItems.getIndex(t4);
  14574. r4 && Ne(r4.values, function(t5) {
  14575. var n5 = r4.values[t5].workingValue;
  14576. tt(n5) && (r4.setCalculatedValue(t5, e5[t5], "total"), r4.setCalculatedValue(t5, 100 * n5 / e5[t5], "totalPercent"), r4.setCalculatedValue(t5, i4[t5], "sum"));
  14577. });
  14578. }
  14579. });
  14580. }, r3 = this, s2 = e4; s2 < i3; ++s2)
  14581. n3(s2);
  14582. }
  14583. }
  14584. }, e3.prototype.validate = function() {
  14585. this.axisLength <= 0 || (t2.prototype.validate.call(this), this.getMinMax(), tt(this._minAdjusted) || this.dataItems.each(function(t3) {
  14586. t3.value = null;
  14587. }), this.fixAxisBreaks(), this.calculateZoom(), this.validateAxisElements(), this.validateAxisRanges(), this.validateBreaks(), this.hideUnusedDataItems(), this.renderer.invalidateLayout());
  14588. }, e3.prototype.calculateZoom = function() {
  14589. if (tt(this.min) && tt(this.max)) {
  14590. var t3 = this.positionToValue(this.start), e4 = this.positionToValue(this.end), i3 = this.adjustDifference(t3, e4), n3 = this.adjustMinMax(t3, e4, i3, this._gridCount, true), r3 = _r(n3.step);
  14591. this._stepDecimalPlaces = r3, t3 = lt(t3, r3), e4 = lt(e4, r3);
  14592. var s2 = (n3 = this.adjustMinMax(t3, e4, i3, this._gridCount, true)).step;
  14593. if (this.syncWithAxis) {
  14594. var a2 = this.getCache(t3 + "-" + e4);
  14595. tt(a2) && (s2 = a2);
  14596. } else
  14597. t3 = n3.min, e4 = n3.max;
  14598. (this._minZoomed != t3 || this._maxZoomed != e4 || this._step != s2 || this._dsc) && (this._dsc = false, this._minZoomed = t3, this._maxZoomed = e4, this._step = s2, this.dispatchImmediately("selectionextremeschanged"));
  14599. }
  14600. }, e3.prototype.fixSmallStep = function(t3) {
  14601. return 1 + t3 == 1 ? (t3 *= 2, this.fixSmallStep(t3)) : t3;
  14602. }, e3.prototype.validateAxisElements = function() {
  14603. var t3 = this;
  14604. if (tt(this.max) && tt(this.min)) {
  14605. var e4 = this.minZoomed - 2 * this._step;
  14606. this.logarithmic ? Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E > 1 ? e4 = Math.pow(10, Math.log(this.min) * Math.LOG10E) : (e4 = Math.floor(this.minZoomed / this._step) * this._step) == 0 && (e4 = this.minZoomed) : e4 = Math.floor(e4 / this._step) * this._step;
  14607. var i3 = this._maxZoomed + this._step;
  14608. this.resetIterators();
  14609. var n3 = this._dataItemsIterator;
  14610. if (this._step == 0)
  14611. return;
  14612. this._step = this.fixSmallStep(this._step);
  14613. var r3 = 0, s2 = this._prevStepDecimalPlaces != this._stepDecimalPlaces;
  14614. for (this._prevStepDecimalPlaces = this._stepDecimalPlaces; e4 <= i3; ) {
  14615. if (!this.isInBreak(e4)) {
  14616. var a2 = n3.find(function(t4) {
  14617. return t4.value === e4;
  14618. });
  14619. a2.__disabled && (a2.__disabled = false), this.appendDataItem(a2), a2.axisBreak = void 0, (a2.value != e4 || s2) && (a2.value = e4, a2.text = this.formatLabel(e4), a2.label && a2.label.invalid && a2.label.validate(), a2.value >= this.min && a2.value <= this.max && a2.label && (this.axisLetter == "Y" && a2.label.measuredWidth > this.ghostLabel.measuredWidth || this.axisLetter == "X" && a2.label.measuredHeight > this.ghostLabel.measuredHeight) && (this.ghostLabel.text = a2.label.currentText, this.ghostLabel.validate())), this.validateDataElement(a2);
  14620. }
  14621. r3++;
  14622. var o3 = e4;
  14623. this.logarithmic && Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E > 1 ? e4 = Math.pow(10, Math.log(this.min) * Math.LOG10E + r3) : e4 += this._step;
  14624. var l2 = Math.pow(10, Math.floor(Math.log(Math.abs(this._step)) * Math.LOG10E));
  14625. if (l2 < 1) {
  14626. var h2 = Math.round(Math.abs(Math.log(Math.abs(l2)) * Math.LOG10E)) + 2;
  14627. if (h2 = Math.min(13, h2), o3 == (e4 = lt(e4, h2))) {
  14628. e4 = i3;
  14629. break;
  14630. }
  14631. }
  14632. }
  14633. var p2 = this._axisBreaks;
  14634. if (p2) {
  14635. var u2 = this.renderer;
  14636. ti(p2.iterator(), function(e5) {
  14637. if (e5.breakSize > 0 && _t(e5.startPoint, e5.endPoint) > u2.minGridDistance)
  14638. for (var i4 = e5.adjustedMin; i4 <= e5.adjustedMax; ) {
  14639. if (i4 >= e5.adjustedStartValue && i4 <= e5.adjustedEndValue) {
  14640. var r4 = n3.find(function(t4) {
  14641. return t4.value === i4;
  14642. });
  14643. r4.__disabled && (r4.__disabled = false), t3.appendDataItem(r4), r4.axisBreak = e5, r4.value != i4 && (r4.value = i4, r4.text = t3.formatLabel(i4), r4.label && r4.label.invalid && r4.label.validate()), t3.validateDataElement(r4);
  14644. }
  14645. i4 += e5.adjustedStep;
  14646. }
  14647. });
  14648. }
  14649. }
  14650. }, e3.prototype.validateDataElement = function(e4) {
  14651. t2.prototype.validateDataElement.call(this, e4), e4.itemIndex = this._axisItemCount, this._axisItemCount++;
  14652. var i3 = this.renderer, n3 = e4.value, r3 = e4.endValue, s2 = this.valueToPosition(n3);
  14653. e4.position = s2;
  14654. var a2 = s2, o3 = this.valueToPosition(n3 + this._step);
  14655. tt(r3) && (o3 = a2 = this.valueToPosition(r3)), e4.point = i3.positionToPoint(s2);
  14656. var l2 = e4.tick;
  14657. l2 && !l2.disabled && i3.updateTickElement(l2, s2, a2);
  14658. var h2 = e4.grid;
  14659. h2 && !h2.disabled && i3.updateGridElement(h2, s2, a2);
  14660. var p2 = e4.label;
  14661. p2 && !p2.disabled && i3.updateLabelElement(p2, s2, a2);
  14662. var u2 = e4.axisFill;
  14663. u2 && !u2.disabled && (i3.updateFillElement(u2, s2, o3), e4.isRange || this.fillRule(e4)), e4.bullet && i3.updateBullet(e4.bullet, s2, a2);
  14664. var d2 = e4.mask;
  14665. d2 && i3.updateFillElement(d2, s2, o3);
  14666. }, e3.prototype.formatLabel = function(t3) {
  14667. return this.adjustLabelPrecision && t3 != 0 ? this.numberFormatter.format(t3, void 0, this._stepDecimalPlaces) : this.numberFormatter.format(t3);
  14668. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  14669. var t3 = this.baseValue, e4 = this.valueToPosition(t3);
  14670. return this.renderer.positionToPoint(e4);
  14671. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "baseValue", { get: function() {
  14672. var t3 = this._baseValue;
  14673. return this.logarithmic && (t3 = this.min), this._adapterO ? this._adapterO.apply("baseValue", t3) : t3;
  14674. }, set: function(t3) {
  14675. this._baseValue = t3, this.invalidateLayout(), this.invalidateSeries();
  14676. }, enumerable: true, configurable: true }), e3.prototype.anyToPosition = function(t3) {
  14677. return this.valueToPosition(t3);
  14678. }, e3.prototype.valueToPoint = function(t3) {
  14679. var e4 = this.valueToPosition(t3), i3 = this.renderer.positionToPoint(e4), n3 = this.renderer.positionToAngle(e4);
  14680. return { x: i3.x, y: i3.y, angle: n3 };
  14681. }, e3.prototype.anyToPoint = function(t3) {
  14682. return this.valueToPoint(t3);
  14683. }, e3.prototype.valueToPosition = function(t3) {
  14684. if (tt(t3)) {
  14685. var e4 = this.min, i3 = this.max;
  14686. if (tt(e4) && tt(i3)) {
  14687. var n3 = this._difference, r3 = this._axisBreaks;
  14688. r3 && r3.length > 0 && Qe(r3.iterator(), function(n4) {
  14689. var r4 = n4.adjustedStartValue, s3 = n4.adjustedEndValue;
  14690. if (tt(r4) && tt(s3)) {
  14691. if (t3 < r4)
  14692. return false;
  14693. if (vt({ start: r4, end: s3 }, { start: e4, end: i3 })) {
  14694. r4 = Math.max(r4, e4), s3 = Math.min(s3, i3);
  14695. var a3 = n4.breakSize;
  14696. t3 > s3 ? e4 += (s3 - r4) * (1 - a3) : t3 < r4 || (t3 = r4 + (t3 - r4) * a3);
  14697. }
  14698. }
  14699. return true;
  14700. });
  14701. var s2 = void 0;
  14702. if (this.logarithmic) {
  14703. var a2 = this.treatZeroAs;
  14704. tt(a2) && t3 <= a2 && (t3 = a2), s2 = (Math.log(t3) * Math.LOG10E - Math.log(this.min) * Math.LOG10E) / (Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E);
  14705. } else
  14706. s2 = (t3 - e4) / n3;
  14707. return s2;
  14708. }
  14709. }
  14710. return 0;
  14711. }, e3.prototype.invalidateLabels = function() {
  14712. t2.prototype.invalidateLabels.call(this), this.dataItems && (this.dataItems.each(function(t3) {
  14713. t3.value = void 0;
  14714. }), this.invalidate());
  14715. }, e3.prototype.positionToValue = function(t3) {
  14716. var e4 = this.min, i3 = this.max;
  14717. if (tt(e4) && tt(i3)) {
  14718. var n3 = i3 - e4, r3 = null, s2 = this._axisBreaks;
  14719. return s2 && s2.length > 0 && Qe(s2.iterator(), function(s3) {
  14720. var a2 = s3.startPosition, o3 = s3.endPosition, l2 = s3.adjustedStartValue, h2 = s3.adjustedEndValue;
  14721. if (tt(l2) && tt(h2)) {
  14722. if (l2 > i3)
  14723. return false;
  14724. if (vt({ start: l2, end: h2 }, { start: e4, end: i3 })) {
  14725. l2 = gt(l2, e4), h2 = yt(h2, i3);
  14726. var p2 = s3.breakSize;
  14727. if (n3 -= (h2 - l2) * (1 - p2), t3 > o3)
  14728. e4 += (h2 - l2) * (1 - p2);
  14729. else if (!(t3 < a2))
  14730. return r3 = l2 + (t3 - a2) / (o3 - a2) * (h2 - l2), false;
  14731. }
  14732. return true;
  14733. }
  14734. }), tt(r3) || (r3 = this.logarithmic ? Math.pow(Math.E, (t3 * (Math.log(this.max) * Math.LOG10E - Math.log(this.min) * Math.LOG10E) + Math.log(this.min) * Math.LOG10E) / Math.LOG10E) : t3 * n3 + e4), r3;
  14735. }
  14736. }, e3.prototype.xToValue = function(t3) {
  14737. return this.positionToValue(this.pointToPosition({ x: t3, y: 0 }));
  14738. }, e3.prototype.yToValue = function(t3) {
  14739. return this.positionToValue(this.pointToPosition({ x: 0, y: t3 }));
  14740. }, e3.prototype.pointToPosition = function(t3) {
  14741. return this.renderer instanceof yh ? 1 - this.renderer.pointToPosition(t3) : this.renderer.pointToPosition(t3);
  14742. }, e3.prototype.animateMinMax = function(t3, e4) {
  14743. return this.animate([{ property: "_minAdjusted", from: this._minAdjusted, to: t3 }, { property: "_maxAdjusted", from: this._maxAdjusted, to: e4 }], this.rangeChangeDuration, this.rangeChangeEasing);
  14744. }, e3.prototype.getMinMax = function() {
  14745. var t3 = this;
  14746. this.updateGridCount();
  14747. var e4 = Number.POSITIVE_INFINITY, i3 = Number.NEGATIVE_INFINITY;
  14748. if (tt(this._minDefined) && tt(this._maxDefined) || (this.series.each(function(n4) {
  14749. if (!n4.ignoreMinMax) {
  14750. var r4 = n4.min(t3);
  14751. tt(r4) && r4 < e4 && (e4 = r4);
  14752. var s3 = n4.max(t3);
  14753. tt(s3) && s3 > i3 && (i3 = s3);
  14754. }
  14755. }), this.includeRangesInMinMax && this.axisRanges.each(function(t4) {
  14756. if (!t4.ignoreMinMax) {
  14757. var n4 = yt(t4.value, t4.endValue), r4 = gt(t4.value, t4.endValue);
  14758. (n4 < e4 || !tt(e4)) && (e4 = n4), (r4 > i3 || !tt(i3)) && (i3 = r4);
  14759. }
  14760. })), this.logarithmic) {
  14761. var n3 = this.treatZeroAs;
  14762. tt(n3) && e4 <= 0 && (e4 = n3), e4 <= 0 && this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."), true);
  14763. }
  14764. if (e4 == 0 && i3 == 0 && (i3 = 0.9, e4 = -0.9), tt(this._minDefined) && (e4 = this._minDefined), tt(this._maxDefined) && (i3 = this._maxDefined), this._adapterO && (e4 = this._adapterO.apply("min", e4)), this._adapterO && (i3 = this._adapterO.apply("max", i3)), tt(e4) && tt(i3)) {
  14765. this._minReal = e4, this._maxReal = i3, e4 == Number.POSITIVE_INFINITY && (e4 = void 0), i3 == Number.NEGATIVE_INFINITY && (i3 = void 0);
  14766. var r3 = this.adjustDifference(e4, i3);
  14767. if (e4 = this.fixMin(e4), (i3 = this.fixMax(i3)) - e4 <= 1 / Math.pow(10, 15)) {
  14768. if (i3 - e4 != 0)
  14769. this._deltaMinMax = (i3 - e4) / 2;
  14770. else {
  14771. var s2 = Math.log(Math.abs(i3)) * Math.LOG10E, a2 = Math.pow(10, Math.floor(s2));
  14772. a2 /= 10, this._deltaMinMax = a2;
  14773. }
  14774. e4 -= this._deltaMinMax, i3 += this._deltaMinMax;
  14775. }
  14776. e4 -= (i3 - e4) * this.extraMin, i3 += (i3 - e4) * this.extraMax;
  14777. var o3 = this.strictMinMax;
  14778. tt(this._maxDefined) && (o3 = true);
  14779. var l2 = this.adjustMinMax(e4, i3, r3, this._gridCount, o3);
  14780. if (e4 = l2.min, r3 = (i3 = l2.max) - e4, l2 = this.adjustMinMax(e4, i3, i3 - e4, this._gridCount, true), e4 = l2.min, i3 = l2.max, this.strictMinMax && (e4 = tt(this._minDefined) ? this._minDefined : this._minReal, (i3 = tt(this._maxDefined) ? this._maxDefined : this._maxReal) - e4 <= 1e-8 && (e4 -= this._deltaMinMax, i3 += this._deltaMinMax), e4 -= (i3 - e4) * this.extraMin, i3 += (i3 - e4) * this.extraMax), this._adapterO && (e4 = this._adapterO.apply("min", e4)), this._adapterO && (i3 = this._adapterO.apply("max", i3)), this._step = l2.step, tt(e4) || tt(i3) || (this.start = 0, this.end = 1, this.renderer.labels.each(function(t4) {
  14781. t4.dataItem.text = "";
  14782. })), (this._minAdjusted != e4 || this._maxAdjusted != i3) && tt(e4) && tt(i3)) {
  14783. var h2 = this._minMaxAnimation;
  14784. if (this._extremesChanged && tt(this._minAdjusted) && tt(this._maxAdjusted) && this.inited) {
  14785. if (h2 && !h2.isFinished() && this._finalMax == i3 && this._finalMin == e4)
  14786. return;
  14787. this._finalMin = e4, this._finalMax = i3, (h2 = this.animateMinMax(e4, i3)) && !h2.isFinished() ? (h2.events.on("animationprogress", this.validateDataItems, this), h2.events.on("animationended", function() {
  14788. t3.series.each(function(t4) {
  14789. t4.validate();
  14790. }), t3.validateDataItems(), t3.handleSelectionExtremesChange();
  14791. }), this._minMaxAnimation = h2) : this.series.each(function(t4) {
  14792. t4.invalidate();
  14793. }), this.validateDataItems(), this.dispatchImmediately("extremeschanged"), this.handleSelectionExtremesChange();
  14794. } else {
  14795. if (h2 && !h2.isFinished() && this._finalMax == i3 && this._finalMin == e4)
  14796. return;
  14797. this._minAdjusted = e4, this._maxAdjusted = i3, this._finalMin = e4, this._finalMax = i3, this.invalidateDataItems(), this.dispatchImmediately("extremeschanged");
  14798. }
  14799. }
  14800. this._extremesChanged = false, this._difference = this.adjustDifference(e4, i3);
  14801. }
  14802. }, e3.prototype.fixMin = function(t3) {
  14803. return t3;
  14804. }, e3.prototype.fixMax = function(t3) {
  14805. return t3;
  14806. }, e3.prototype.adjustMinMax = function(t3, e4, i3, n3, r3) {
  14807. n3 <= 1 && (n3 = 1), n3 = Math.round(n3);
  14808. var s2 = t3, a2 = e4;
  14809. i3 === 0 && (i3 = Math.abs(e4));
  14810. var o3 = Math.log(Math.abs(i3)) * Math.LOG10E, l2 = Math.pow(10, Math.floor(o3)), h2 = l2 /= 10;
  14811. r3 && (h2 = 0), this.logarithmic ? (t3 <= 0 && (t3 = this.baseValue), t3 == 1 / 0 && (t3 = 1), e4 == -1 / 0 && (e4 = 10), this.strictMinMax ? (t3 = this._minDefined > 0 ? this._minDefined : t3, this._maxDefined) : (t3 = Math.pow(10, Math.floor(Math.log(Math.abs(t3)) * Math.LOG10E)), e4 = Math.pow(10, Math.ceil(Math.log(Math.abs(e4)) * Math.LOG10E)))) : (r3 ? (t3 = Math.floor(t3 / l2) * l2, e4 = Math.ceil(e4 / l2) * l2) : (t3 = Math.ceil(t3 / l2) * l2 - h2, e4 = Math.floor(e4 / l2) * l2 + h2), t3 < 0 && s2 >= 0 && (t3 = 0), e4 > 0 && a2 <= 0 && (e4 = 0)), o3 = Math.log(Math.abs(i3)) * Math.LOG10E, l2 = Math.pow(10, Math.floor(o3)), l2 /= 10;
  14812. var p2 = Math.ceil(i3 / n3 / l2) * l2, u2 = Math.pow(10, Math.floor(Math.log(Math.abs(p2)) * Math.LOG10E)), d2 = Math.ceil(p2 / u2);
  14813. d2 > 5 ? d2 = 10 : d2 <= 5 && d2 > 2 && (d2 = 5), p2 = Math.ceil(p2 / (u2 * d2)) * u2 * d2, this.maxPrecision < Number.MAX_VALUE && p2 != ht(p2, this.maxPrecision) && (p2 = ht(p2, this.maxPrecision));
  14814. var c2 = 0;
  14815. if (u2 < 1 && (p2 = lt(p2, c2 = Math.round(Math.abs(Math.log(Math.abs(u2)) * Math.LOG10E)) + 1)), !this.logarithmic) {
  14816. var f2 = Math.floor(t3 / p2);
  14817. t3 = lt(p2 * f2, c2);
  14818. var g2 = void 0;
  14819. (g2 = r3 ? Math.floor(e4 / p2) : Math.ceil(e4 / p2)) == f2 && g2++, (e4 = lt(p2 * g2, c2)) < a2 && (e4 += p2), t3 > s2 && (t3 -= p2);
  14820. }
  14821. return { min: t3, max: e4, step: p2 };
  14822. }, Object.defineProperty(e3.prototype, "min", { get: function() {
  14823. var t3 = this._minAdjusted;
  14824. return tt(t3) || (t3 = this._minDefined), t3;
  14825. }, set: function(t3) {
  14826. this._minDefined != t3 && (this._minDefined = t3, this.invalidate());
  14827. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minDefined", { get: function() {
  14828. return this._minDefined;
  14829. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxDefined", { get: function() {
  14830. return this._maxDefined;
  14831. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraMin", { get: function() {
  14832. return this.getPropertyValue("extraMin");
  14833. }, set: function(t3) {
  14834. this.setPropertyValue("extraMin", t3) && this.invalidateDataItems();
  14835. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraMax", { get: function() {
  14836. return this.getPropertyValue("extraMax");
  14837. }, set: function(t3) {
  14838. this.setPropertyValue("extraMax", t3) && this.invalidateDataItems();
  14839. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "step", { get: function() {
  14840. return this._step;
  14841. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "max", { get: function() {
  14842. var t3 = this._maxAdjusted;
  14843. return tt(t3) || (t3 = this._maxDefined), t3;
  14844. }, set: function(t3) {
  14845. this._maxDefined != t3 && (this._maxDefined = t3, this.invalidate());
  14846. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "adjustLabelPrecision", { get: function() {
  14847. return this.getPropertyValue("adjustLabelPrecision");
  14848. }, set: function(t3) {
  14849. this.setPropertyValue("adjustLabelPrecision", t3) && this.invalidate();
  14850. }, enumerable: true, configurable: true }), e3.prototype.registerSeries = function(e4) {
  14851. return new me([t2.prototype.registerSeries.call(this, e4), e4.events.on("extremeschanged", this.handleExtremesChange, this, false), e4.events.on("selectionextremeschanged", this.handleSelectionExtremesChange, this, false), this.events.on("extremeschanged", e4.invalidate, e4, false)]);
  14852. }, e3.prototype.handleSelectionExtremesChange = function() {
  14853. var t3, e4, i3 = this, n3 = true;
  14854. if (ti(this.series.iterator(), function(r4) {
  14855. if (!r4.ignoreMinMax && !r4.isHidden && !r4.outOfRange) {
  14856. r4.visible && !r4.isHiding && (n3 = false);
  14857. var s3 = r4.selectionMin(i3), a3 = r4.selectionMax(i3);
  14858. tt(s3) && (!tt(t3) || s3 < t3) && (t3 = s3), tt(a3) && (!tt(e4) || a3 > e4) && (e4 = a3);
  14859. }
  14860. }), this.includeRangesInMinMax && this.axisRanges.each(function(i4) {
  14861. if (!i4.ignoreMinMax) {
  14862. var n4 = yt(i4.value, i4.endValue), r4 = gt(i4.value, i4.endValue);
  14863. n4 < t3 && (t3 = n4), r4 > e4 && (e4 = r4);
  14864. }
  14865. }), tt(this._minDefined) ? t3 = this.strictMinMax ? this._minDefined : this.min : this.strictMinMax && (t3 = this._minReal), tt(this._maxDefined) ? e4 = this.strictMinMax ? this._maxDefined : this.max : this.strictMinMax && (e4 = this._maxReal), t3 == e4) {
  14866. t3 -= this._deltaMinMax, e4 += this._deltaMinMax;
  14867. var r3 = this.adjustMinMax(t3, e4, 0, this._gridCount, this.strictMinMax);
  14868. t3 = r3.min, e4 = r3.max;
  14869. }
  14870. var s2 = this.adjustDifference(t3, e4), a2 = this.adjustMinMax(t3, e4, s2, this._gridCount);
  14871. t3 = a2.min, e4 = a2.max, t3 -= (e4 - t3) * this.extraMin, e4 += (e4 - t3) * this.extraMax, t3 = ut(t3, this.min, this.max), e4 = ut(e4, this.min, this.max), s2 = this.adjustDifference(t3, e4), a2 = this.adjustMinMax(t3, e4, s2, this._gridCount, true), t3 = a2.min, e4 = a2.max, this.strictMinMax && (t3 = gt(t3, this._minDefined), e4 = yt(e4, this._maxDefined));
  14872. var o3 = a2.step;
  14873. this.syncWithAxis && (a2 = this.syncAxes(t3, e4, o3), t3 = a2.min, e4 = a2.max, this.invalidate()), o3 = a2.step, this._difference = this.adjustDifference(this.min, this.max);
  14874. var l2 = this.valueToPosition(t3), h2 = this.valueToPosition(e4);
  14875. n3 && !this.syncWithAxis && (l2 = 0, h2 = 1);
  14876. var p2 = 0;
  14877. this.syncWithAxis ? (p2 = 5, this.setCache(t3 + "-" + e4, o3)) : (this._step == o3 && this._minZoomed == t3 && this._maxZoomed == e4 || (this._dsc = true), this._step = o3, this._minZoomed = t3, this._maxZoomed = e4), this.keepSelection || this.zoom({ start: l2, end: h2 }, false, false, p2);
  14878. }, Object.defineProperty(e3.prototype, "strictMinMax", { get: function() {
  14879. return this.getPropertyValue("strictMinMax");
  14880. }, set: function(t3) {
  14881. this.setPropertyValue("strictMinMax", t3) && this.invalidate();
  14882. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "logarithmic", { get: function() {
  14883. return this.getPropertyValue("logarithmic");
  14884. }, set: function(t3) {
  14885. this.setPropertyValue("logarithmic", t3) && (this.invalidate(), this.series.each(function(t4) {
  14886. t4.invalidateDataItems();
  14887. }));
  14888. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "keepSelection", { get: function() {
  14889. return this.getPropertyValue("keepSelection");
  14890. }, set: function(t3) {
  14891. this.setPropertyValue("keepSelection", t3);
  14892. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "includeRangesInMinMax", { get: function() {
  14893. return this.getPropertyValue("includeRangesInMinMax");
  14894. }, set: function(t3) {
  14895. this.setPropertyValue("includeRangesInMinMax", t3);
  14896. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxPrecision", { get: function() {
  14897. return this.getPropertyValue("maxPrecision");
  14898. }, set: function(t3) {
  14899. this.setPropertyValue("maxPrecision", t3) && this.invalidate();
  14900. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "extraTooltipPrecision", { get: function() {
  14901. return this.getPropertyValue("extraTooltipPrecision");
  14902. }, set: function(t3) {
  14903. this.setPropertyValue("extraTooltipPrecision", t3) && this.invalidate();
  14904. }, enumerable: true, configurable: true }), e3.prototype.handleExtremesChange = function() {
  14905. var t3 = this;
  14906. this._extremesChanged = true, this.getMinMax(), this.ghostLabel && this.dataItems.each(function(e4) {
  14907. e4.label && e4.label.pixelWidth > 0 && (t3.ghostLabel.text = e4.label.currentText);
  14908. });
  14909. }, e3.prototype.getX = function(t3, e4, i3, n3, r3) {
  14910. return this.renderer.positionToPoint(this.getPositionX(t3, e4, i3, n3, r3)).x;
  14911. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  14912. var s2 = t3.getWorkingValue(e4);
  14913. Z(n3) || (n3 = "valueX");
  14914. var a2 = t3.getValue(n3, "stack");
  14915. tt(s2) || (s2 = this.baseValue, this.logarithmic && a2 > 0 && (s2 = 0));
  14916. var o3 = this.valueToPosition(s2 + a2);
  14917. return r3 && (o3 = ut(o3, r3.start, r3.end)), o3;
  14918. }, e3.prototype.getY = function(t3, e4, i3, n3, r3) {
  14919. return this.renderer.positionToPoint(this.getPositionY(t3, e4, i3, n3, r3)).y;
  14920. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  14921. var s2 = t3.getWorkingValue(e4);
  14922. Z(n3) || (n3 = "valueY");
  14923. var a2 = t3.getValue(n3, "stack");
  14924. tt(s2) || (s2 = this.baseValue, this.logarithmic && a2 > 0 && (s2 = 0));
  14925. var o3 = this.valueToPosition(s2 + a2);
  14926. return r3 && (o3 = ut(o3, r3.start, r3.end)), o3;
  14927. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  14928. var s2 = t3.getWorkingValue(e4), a2 = t3.getValue(n3, "stack");
  14929. tt(s2) || (s2 = this.baseValue);
  14930. var o3 = this.valueToPosition(s2 + a2);
  14931. return r3 && (o3 = ut(o3, r3.start, r3.end)), this.positionToAngle(o3);
  14932. }, e3.prototype.getAnyRangePath = function(t3, e4, i3) {
  14933. var n3 = this.valueToPosition(t3), r3 = this.valueToPosition(e4);
  14934. return this.getPositionRangePath(n3, r3);
  14935. }, e3.prototype.getTooltipText = function(t3) {
  14936. var e4 = lt(this.positionToValue(t3), this._stepDecimalPlaces + this.extraTooltipPrecision), i3 = this.tooltip.numberFormatter.format(e4);
  14937. return this._adapterO ? this._adapterO.apply("getTooltipText", i3) : i3;
  14938. }, e3.prototype.zoomToValues = function(t3, e4, i3, n3) {
  14939. var r3 = (t3 - this.min) / (this.max - this.min), s2 = (e4 - this.min) / (this.max - this.min);
  14940. this.zoom({ start: r3, end: s2 }, i3, n3);
  14941. }, Object.defineProperty(e3.prototype, "minZoomed", { get: function() {
  14942. return this.syncWithAxis ? this._minZoomed : gt(this.min, this._minZoomed);
  14943. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxZoomed", { get: function() {
  14944. return this.syncWithAxis ? this._maxZoomed : yt(this.max, this._maxZoomed);
  14945. }, enumerable: true, configurable: true }), e3.prototype.fixAxisBreaks = function() {
  14946. var e4 = this;
  14947. t2.prototype.fixAxisBreaks.call(this);
  14948. var i3 = this._axisBreaks;
  14949. i3 && i3.length > 0 && i3.each(function(t3) {
  14950. var i4 = t3.adjustedStartValue, n3 = t3.adjustedEndValue, r3 = n3 - i4, s2 = Math.ceil(r3 * t3.breakSize) * e4._gridCount / (e4.max - e4.min), a2 = e4.adjustMinMax(i4, n3, r3, s2, true);
  14951. t3.adjustedStep = a2.step, t3.adjustedMin = a2.min, t3.adjustedMax = a2.max;
  14952. }), this._difference = this.adjustDifference(this.min, this.max);
  14953. }, e3.prototype.getPositionLabel = function(t3) {
  14954. var e4 = this.positionToValue(t3);
  14955. return this.numberFormatter.format(e4);
  14956. }, e3.prototype.showTooltipAt = function(t3) {
  14957. this.showTooltipAtPosition(this.valueToPosition(t3));
  14958. }, e3.prototype.copyFrom = function(e4) {
  14959. t2.prototype.copyFrom.call(this, e4), this.min = e4.min, this.max = e4.max, this.calculateTotals = e4.calculateTotals, this._baseValue = e4.baseValue;
  14960. }, Object.defineProperty(e3.prototype, "syncWithAxis", { get: function() {
  14961. return this.getPropertyValue("syncWithAxis");
  14962. }, set: function(t3) {
  14963. var e4 = this;
  14964. this.setPropertyValue("syncWithAxis", t3, true) && t3 && (this._disposers.push(t3.events.on("extremeschanged", this.handleSelectionExtremesChange, this, false)), this._disposers.push(t3.events.on("selectionextremeschanged", this.handleSelectionExtremesChange, this, false)), this._disposers.push(t3.events.on("startendchanged", this.handleSelectionExtremesChange, this, false)), this.events.on("shown", this.handleSelectionExtremesChange, this, false), this.events.on("maxsizechanged", function() {
  14965. e4.clearCache(), e4._disposers.push(Ii.events.once("exitframe", function() {
  14966. e4.handleSelectionExtremesChange();
  14967. }));
  14968. }, this, false));
  14969. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "treatZeroAs", { get: function() {
  14970. return this.getPropertyValue("treatZeroAs");
  14971. }, set: function(t3) {
  14972. this.setPropertyValue("treatZeroAs", t3, true);
  14973. }, enumerable: true, configurable: true }), e3.prototype.syncAxes = function(t3, e4, i3) {
  14974. var n3 = this.syncWithAxis;
  14975. if (n3) {
  14976. tt(t3) || (t3 = this.min), tt(e4) || (e4 = this.max), tt(i3) || (i3 = this._step);
  14977. var r3 = Math.round((n3.maxZoomed - n3.minZoomed) / n3.step), s2 = Math.round((e4 - t3) / i3);
  14978. if (tt(r3) && tt(s2))
  14979. for (var a2 = false, o3 = 0, l2 = 0.01 * (e4 - t3), h2 = t3, p2 = e4, u2 = i3; a2 != 1; )
  14980. if (a2 = this.checkSync(h2, p2, u2, r3), ++o3 > 1e3 && (a2 = true), a2)
  14981. t3 = h2, e4 = p2, i3 = u2;
  14982. else {
  14983. o3 / 3 == Math.round(o3 / 3) ? (h2 = t3 - l2 * o3, t3 >= 0 && h2 < 0 && (h2 = 0)) : (p2 = e4 + l2 * o3) <= 0 && p2 > 0 && (p2 = 0);
  14984. var d2 = this.adjustMinMax(h2, p2, p2 - h2, this._gridCount, true);
  14985. h2 = d2.min, p2 = d2.max, u2 = d2.step;
  14986. }
  14987. }
  14988. return { min: t3, max: e4, step: i3 };
  14989. }, e3.prototype.checkSync = function(t3, e4, i3, n3) {
  14990. for (var r3 = (e4 - t3) / i3, s2 = 1; s2 < n3; s2++)
  14991. if (lt(r3 / s2, 1) == n3 || r3 * s2 == n3)
  14992. return true;
  14993. return false;
  14994. }, e3.prototype.processConfig = function(e4) {
  14995. e4 && Z(e4.syncWithAxis) && Q(e4.syncWithAxis) && (this.map.hasKey(e4.syncWithAxis) ? e4.syncWithAxis = this.map.getKey(e4.syncWithAxis) : (this.processingErrors.push('[ValueAxis] No axis with id "' + e4.syncWithAxis + '" found for `syncWithAxis`'), delete e4.xAxis)), t2.prototype.processConfig.call(this, e4);
  14996. }, e3;
  14997. }(oh);
  14998. Ii.registeredClasses.ValueAxis = bh, Ii.registeredClasses.ValueAxisDataItem = vh;
  14999. var xh = function(t2) {
  15000. function e3() {
  15001. var e4 = t2.call(this) || this;
  15002. return e4.className = "DateAxisBreak", e4.applyTheme(), e4;
  15003. }
  15004. return C(e3, t2), Object.defineProperty(e3.prototype, "startDate", { get: function() {
  15005. return this.getPropertyValue("startDate");
  15006. }, set: function(t3) {
  15007. this.setPropertyValue("startDate", t3) && (this.startValue = t3.getTime(), this.axis && (this.axis.invalidate(), this.axis.invalidateSeries()));
  15008. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endDate", { get: function() {
  15009. return this.getPropertyValue("endDate");
  15010. }, set: function(t3) {
  15011. this.setPropertyValue("endDate", t3) && (this.endValue = t3.getTime(), this.axis && (this.axis.invalidate(), this.axis.invalidateSeries()));
  15012. }, enumerable: true, configurable: true }), e3;
  15013. }(mh);
  15014. Ii.registeredClasses.DateAxisBreak = xh;
  15015. var _h = function(t2) {
  15016. function e3() {
  15017. var e4 = t2.call(this) || this;
  15018. return e4.className = "DateAxisDataItem", e4.applyTheme(), e4.values.date = {}, e4.values.endDate = {}, e4;
  15019. }
  15020. return C(e3, t2), Object.defineProperty(e3.prototype, "date", { get: function() {
  15021. return this.dates.date;
  15022. }, set: function(t3) {
  15023. this.setDate("date", t3), this.value = t3.getTime();
  15024. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endDate", { get: function() {
  15025. return this.dates.endDate;
  15026. }, set: function(t3) {
  15027. this.setDate("endDate", t3), this.endValue = t3.getTime();
  15028. }, enumerable: true, configurable: true }), e3;
  15029. }(vh), Ph = function(t2) {
  15030. function e3() {
  15031. var e4 = t2.call(this) || this;
  15032. return e4._gapBreaks = false, e4.gridIntervals = new Fi(), e4.groupIntervals = new Fi(), e4.dateFormats = new Pi(), e4.periodChangeDateFormats = new Pi(), e4._baseIntervalReal = { timeUnit: "day", count: 1 }, e4._prevSeriesTime = {}, e4._minDifference = {}, e4._firstWeekDay = 1, e4.groupMin = {}, e4.groupMax = {}, e4.className = "DateAxis", e4.setPropertyValue("markUnitChange", true), e4.snapTooltip = true, e4.tooltipPosition = "pointer", e4.setPropertyValue("groupData", false), e4.groupCount = 200, e4.events.on("parentset", e4.getDFFormatter, e4, false), e4.gridIntervals.pushAll([{ timeUnit: "millisecond", count: 1 }, { timeUnit: "millisecond", count: 5 }, { timeUnit: "millisecond", count: 10 }, { timeUnit: "millisecond", count: 50 }, { timeUnit: "millisecond", count: 100 }, { timeUnit: "millisecond", count: 500 }, { timeUnit: "second", count: 1 }, { timeUnit: "second", count: 5 }, { timeUnit: "second", count: 10 }, { timeUnit: "second", count: 30 }, { timeUnit: "minute", count: 1 }, { timeUnit: "minute", count: 5 }, { timeUnit: "minute", count: 10 }, { timeUnit: "minute", count: 15 }, { timeUnit: "minute", count: 30 }, { timeUnit: "hour", count: 1 }, { timeUnit: "hour", count: 3 }, { timeUnit: "hour", count: 6 }, { timeUnit: "hour", count: 12 }, { timeUnit: "day", count: 1 }, { timeUnit: "day", count: 2 }, { timeUnit: "day", count: 3 }, { timeUnit: "day", count: 4 }, { timeUnit: "day", count: 5 }, { timeUnit: "week", count: 1 }, { timeUnit: "month", count: 1 }, { timeUnit: "month", count: 2 }, { timeUnit: "month", count: 3 }, { timeUnit: "month", count: 6 }, { timeUnit: "year", count: 1 }, { timeUnit: "year", count: 2 }, { timeUnit: "year", count: 5 }, { timeUnit: "year", count: 10 }, { timeUnit: "year", count: 50 }, { timeUnit: "year", count: 100 }, { timeUnit: "year", count: 200 }, { timeUnit: "year", count: 500 }, { timeUnit: "year", count: 1e3 }, { timeUnit: "year", count: 2e3 }, { timeUnit: "year", count: 5e3 }, { timeUnit: "year", count: 1e4 }, { timeUnit: "year", count: 1e5 }]), e4.groupIntervals.pushAll([{ timeUnit: "millisecond", count: 1 }, { timeUnit: "millisecond", count: 10 }, { timeUnit: "millisecond", count: 100 }, { timeUnit: "second", count: 1 }, { timeUnit: "second", count: 10 }, { timeUnit: "minute", count: 1 }, { timeUnit: "minute", count: 10 }, { timeUnit: "hour", count: 1 }, { timeUnit: "day", count: 1 }, { timeUnit: "week", count: 1 }, { timeUnit: "month", count: 1 }, { timeUnit: "year", count: 1 }]), e4.axisFieldName = "date", e4.applyTheme(), e4;
  15033. }
  15034. return C(e3, t2), e3.prototype.fillRule = function(t3) {
  15035. var e4 = t3.value, i3 = t3.component, n3 = i3._gridInterval, r3 = ta(n3.timeUnit, n3.count);
  15036. Math.round((e4 - i3.min) / r3) / 2 == Math.round(Math.round((e4 - i3.min) / r3) / 2) ? t3.axisFill.__disabled = true : t3.axisFill.__disabled = false;
  15037. }, e3.prototype.applyInternalDefaults = function() {
  15038. t2.prototype.applyInternalDefaults.call(this), this.dateFormats.hasKey("millisecond") || this.dateFormats.setKey("millisecond", this.language.translate("_date_millisecond")), this.dateFormats.hasKey("second") || this.dateFormats.setKey("second", this.language.translate("_date_second")), this.dateFormats.hasKey("minute") || this.dateFormats.setKey("minute", this.language.translate("_date_minute")), this.dateFormats.hasKey("hour") || this.dateFormats.setKey("hour", this.language.translate("_date_hour")), this.dateFormats.hasKey("day") || this.dateFormats.setKey("day", this.language.translate("_date_day")), this.dateFormats.hasKey("week") || this.dateFormats.setKey("week", this.language.translate("_date_day")), this.dateFormats.hasKey("month") || this.dateFormats.setKey("month", this.language.translate("_date_month")), this.dateFormats.hasKey("year") || this.dateFormats.setKey("year", this.language.translate("_date_year")), this.periodChangeDateFormats.hasKey("millisecond") || this.periodChangeDateFormats.setKey("millisecond", this.language.translate("_date_millisecond")), this.periodChangeDateFormats.hasKey("second") || this.periodChangeDateFormats.setKey("second", this.language.translate("_date_second")), this.periodChangeDateFormats.hasKey("minute") || this.periodChangeDateFormats.setKey("minute", this.language.translate("_date_minute")), this.periodChangeDateFormats.hasKey("hour") || this.periodChangeDateFormats.setKey("hour", this.language.translate("_date_day")), this.periodChangeDateFormats.hasKey("day") || this.periodChangeDateFormats.setKey("day", this.language.translate("_date_day")), this.periodChangeDateFormats.hasKey("week") || this.periodChangeDateFormats.setKey("week", this.language.translate("_date_day")), this.periodChangeDateFormats.hasKey("month") || this.periodChangeDateFormats.setKey("month", this.language.translate("_date_month") + " " + this.language.translate("_date_year"));
  15039. }, e3.prototype.createDataItem = function() {
  15040. return new _h();
  15041. }, e3.prototype.createAxisBreak = function() {
  15042. return new xh();
  15043. }, e3.prototype.validateDataItems = function() {
  15044. var e4 = this.start, i3 = this.end, n3 = this.baseDuration, r3 = (this.max - this.min) / n3;
  15045. this._firstWeekDay = this.getFirstWeekDay(), this.getDFFormatter(), t2.prototype.validateDataItems.call(this);
  15046. var s2 = ta(this.mainBaseInterval.timeUnit, this.mainBaseInterval.count);
  15047. this.maxZoomFactor = Math.max(1, (this.max - this.min) / s2), this._deltaMinMax = this.baseDuration / 2, e4 += (i3 - e4) * (1 - r3 / ((this.max - this.min) / n3)), this.zoom({ start: e4, end: i3 }, false, true);
  15048. }, e3.prototype.handleSelectionExtremesChange = function() {
  15049. }, e3.prototype.calculateZoom = function() {
  15050. var e4 = this;
  15051. t2.prototype.calculateZoom.call(this);
  15052. var i3 = this.adjustDifference(this._minZoomed, this._maxZoomed), n3 = false;
  15053. if (this.groupData && Z(i3)) {
  15054. var r3 = this.mainBaseInterval, s2 = i3 + (this.startLocation + (1 - this.endLocation)) * this.baseDuration, a2 = void 0;
  15055. this.groupInterval ? a2 = O({}, this.groupInterval) : ta((a2 = this.chooseInterval(0, s2, this.groupCount, this.groupIntervals)).timeUnit, a2.count) < ta(r3.timeUnit, r3.count) && (a2 = O({}, r3)), this._groupInterval = a2;
  15056. var o3 = a2.timeUnit + a2.count;
  15057. this._currentDataSetId != o3 && (this._currentDataSetId = o3, this.dispatch("groupperiodchanged")), this.series.each(function(t3) {
  15058. t3.baseAxis == e4 && t3.setDataSet(e4._currentDataSetId) && (n3 = true);
  15059. });
  15060. }
  15061. var l2 = this.chooseInterval(0, i3, this._gridCount);
  15062. ta(l2.timeUnit, l2.count) < this.baseDuration && (l2 = O({}, this.baseInterval)), this._gridInterval = l2, this._nextGridUnit = Qs(l2.timeUnit), this._intervalDuration = ta(l2.timeUnit, l2.count), this._gridDate = aa(new Date(this.minZoomed - ta(l2.timeUnit, l2.count)), l2.timeUnit, l2.count, this._firstWeekDay, this._df.utc, new Date(this.min), this._df.timezoneMinutes, this._df.timezone), ti(this.series.iterator(), function(t3) {
  15063. if (t3.baseAxis == e4) {
  15064. var i4 = t3.getAxisField(e4), r4 = aa(new Date(e4._minZoomed + 0.05 * e4.baseDuration), e4.baseInterval.timeUnit, e4.baseInterval.count, e4._firstWeekDay, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone).getTime(), s3 = r4.toString(), a3 = t3.dataItemsByAxis.getKey(e4.uid).getKey(s3 + t3.currentDataSetId), o4 = 0;
  15065. e4.start != 0 && (o4 = a3 ? (a3 = e4.findFirst(a3, r4, i4)).index : t3.dataItems.findClosestIndex(e4._minZoomed, function(t4) {
  15066. return t4[i4];
  15067. }, "left"));
  15068. var l3 = e4.baseInterval, h2 = sa(aa(new Date(e4._maxZoomed), l3.timeUnit, l3.count, e4._firstWeekDay, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone), l3.timeUnit, l3.count, e4._df.utc).getTime(), p2 = h2.toString(), u2 = t3.dataItemsByAxis.getKey(e4.uid).getKey(p2 + t3.currentDataSetId), d2 = t3.dataItems.length;
  15069. e4.end != 1 && (u2 ? d2 = u2.index : (h2 -= 1, d2 = t3.dataItems.findClosestIndex(h2, function(t4) {
  15070. return t4[i4];
  15071. }, "right"), d2++)), t3.max(e4) < r4 ? (t3.startIndex = t3.dataItems.length, t3.endIndex = t3.dataItems.length, t3.outOfRange = true) : t3.min(e4) > h2 ? (t3.startIndex = 0, t3.endIndex = 0, t3.outOfRange = true) : (t3.outOfRange = false, t3.startIndex = o4, t3.endIndex = d2), !n3 && t3.dataRangeInvalid && t3.validateDataRange();
  15072. }
  15073. });
  15074. }, e3.prototype.findFirst = function(t3, e4, i3) {
  15075. var n3 = t3.index;
  15076. if (n3 > 0) {
  15077. var r3 = t3.component.dataItems.getIndex(n3 - 1), s2 = r3[i3];
  15078. return !s2 || s2.getTime() < e4 ? t3 : this.findFirst(r3, e4, i3);
  15079. }
  15080. return t3;
  15081. }, e3.prototype.validateData = function() {
  15082. t2.prototype.validateData.call(this), tt(this.baseInterval.count) || (this.baseInterval.count = 1);
  15083. }, Object.defineProperty(e3.prototype, "minDifference", { get: function() {
  15084. var t3 = this, e4 = Number.MAX_VALUE;
  15085. return this.series.each(function(i3) {
  15086. e4 > t3._minDifference[i3.uid] && (e4 = t3._minDifference[i3.uid]);
  15087. }), e4 != Number.MAX_VALUE && e4 != 0 || (e4 = ta("day")), e4;
  15088. }, enumerable: true, configurable: true }), e3.prototype.seriesDataChangeUpdate = function(t3) {
  15089. this._minDifference[t3.uid] = Number.MAX_VALUE;
  15090. }, e3.prototype.postProcessSeriesDataItems = function(t3) {
  15091. var e4 = this;
  15092. this._firstWeekDay = this.getFirstWeekDay(), t3 ? this.seriesGroupUpdate(t3) : this.series.each(function(t4) {
  15093. e4.seriesGroupUpdate(t4);
  15094. }), this.addEmptyUnitsBreaks();
  15095. }, e3.prototype.seriesGroupUpdate = function(t3) {
  15096. var e4 = this;
  15097. JSON.stringify(t3._baseInterval[this.uid]) != JSON.stringify(this.mainBaseInterval) && (t3._baseInterval[this.uid] = this.mainBaseInterval, t3.mainDataSet.each(function(t4) {
  15098. e4.postProcessSeriesDataItem(t4);
  15099. }), this.groupData && this.groupSeriesData(t3));
  15100. }, e3.prototype.groupSeriesData = function(t3) {
  15101. var e4 = this;
  15102. if (t3.baseAxis == this && t3.dataItems.length > 0 && !t3.dataGrouped) {
  15103. t3.bulletsContainer.removeChildren();
  15104. var i3 = [], n3 = this.mainBaseInterval, r3 = ta(n3.timeUnit, n3.count);
  15105. this.groupIntervals.each(function(t4) {
  15106. var n4 = ta(t4.timeUnit, t4.count);
  15107. (n4 > r3 && n4 < e4.max - e4.min || e4.groupInterval) && i3.push(t4);
  15108. }), t3._dataSets && (t3._dataSets.each(function(t4, e5) {
  15109. e5.each(function(t5) {
  15110. t5.dispose();
  15111. }), e5.clear();
  15112. }), t3._dataSets.clear()), t3.dataGrouped = true, Ut(i3, function(i4) {
  15113. var n4 = "date" + e4.axisLetter, r4 = i4.timeUnit + i4.count, s2 = new Ei(t3.mainDataSet.template.clone());
  15114. t3.dataSets.setKey(r4, s2);
  15115. var a2, o3, l2 = t3.mainDataSet, h2 = Number.NEGATIVE_INFINITY, p2 = 0, u2 = [];
  15116. Ne(t3.dataFields, function(t4, e5) {
  15117. var i5 = t4;
  15118. i5 != n4 && i5.indexOf("Show") == -1 && u2.push(i5);
  15119. }), l2.each(function(r5) {
  15120. var l3 = r5.getDate(n4);
  15121. if (l3) {
  15122. var d2 = l3.getTime(), c2 = (o3 = aa(new Date(d2), i4.timeUnit, i4.count, e4._df.firstDayOfWeek, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone)).getTime();
  15123. h2 < c2 ? (a2 && t3._adapterO && Ut(u2, function(e5) {
  15124. a2.values[e5].value = t3._adapterO.apply("groupDataItem", { dataItem: a2, interval: i4, dataField: e5, date: o3, value: a2.values[e5].value }).value, a2.values[e5].workingValue = a2.values[e5].value;
  15125. }), (a2 = s2.create()).dataContext = {}, a2.setWorkingLocation("dateX", t3.dataItems.template.locations.dateX, 0), a2.setWorkingLocation("openDateX", t3.dataItems.template.locations.openDateX, 0), a2.setWorkingLocation("dateY", t3.dataItems.template.locations.dateY, 0), a2.setWorkingLocation("openDateY", t3.dataItems.template.locations.openDateY, 0), a2.component = t3, a2.setDate(n4, o3), a2._index = p2, p2++, Ut(u2, function(e5) {
  15126. var n5 = r5.values[e5];
  15127. if (n5) {
  15128. var s3 = n5.value;
  15129. t3._adapterO && (s3 = t3._adapterO.apply("groupValue", { dataItem: r5, interval: i4, dataField: e5, date: o3, value: s3 }).value);
  15130. var l4 = a2.values[e5];
  15131. tt(s3) ? (l4.value = s3, l4.workingValue = s3, l4.open = s3, l4.close = s3, l4.low = s3, l4.high = s3, l4.sum = s3, l4.average = s3, l4.count = 1) : l4.count = 0;
  15132. }
  15133. }), e4.postProcessSeriesDataItem(a2, i4), Ne(t3.propertyFields, function(t4, e5) {
  15134. var i5 = t4, n5 = r5.properties[t4];
  15135. Z(n5) && (a2.hasProperties = true, a2.setProperty(i5, n5));
  15136. }), a2.groupDataItems = [r5], h2 = c2) : a2 && (Ut(u2, function(e5) {
  15137. var n5 = t3.groupFields[e5], s3 = r5.values[e5];
  15138. if (s3) {
  15139. var l4 = s3.value;
  15140. if (t3._adapterO && (l4 = t3._adapterO.apply("groupValue", { dataItem: r5, interval: i4, dataField: e5, date: o3, value: l4 }).value), tt(l4)) {
  15141. var h3 = a2.values[e5];
  15142. tt(h3.open) || (h3.open = l4), h3.close = l4, (h3.low > l4 || !tt(h3.low)) && (h3.low = l4), (h3.high < l4 || !tt(h3.high)) && (h3.high = l4), tt(h3.sum) ? h3.sum += l4 : h3.sum = l4, h3.count++, h3.average = h3.sum / h3.count, tt(h3[n5]) && (h3.value = h3[n5], h3.workingValue = h3.value);
  15143. }
  15144. }
  15145. }), Sn(r5.properties, a2.properties), Ne(t3.propertyFields, function(t4, e5) {
  15146. var i5 = t4, n5 = r5.properties[t4];
  15147. Z(n5) && (a2.hasProperties = true, a2.setProperty(i5, n5));
  15148. }), a2.groupDataItems.push(r5));
  15149. }
  15150. a2 && Sn(r5.dataContext, a2.dataContext);
  15151. }), a2 && t3._adapterO && Ut(u2, function(e5) {
  15152. a2.values[e5].value = t3._adapterO.apply("groupDataItem", { dataItem: a2, interval: i4, dataField: e5, date: o3, value: a2.values[e5].value }).value, a2.values[e5].workingValue = a2.values[e5].value;
  15153. });
  15154. }), this.calculateZoom();
  15155. }
  15156. }, e3.prototype.getDFFormatter = function() {
  15157. this._df = this.dateFormatter;
  15158. }, e3.prototype.postProcessSeriesDataItem = function(t3, e4) {
  15159. var i3 = this, n3 = "";
  15160. e4 ? n3 = e4.timeUnit + e4.count : e4 = this.mainBaseInterval;
  15161. var r3 = t3.component.dataItemsByAxis.getKey(this.uid);
  15162. Ne(t3.dates, function(s2) {
  15163. var a2 = t3.getDate(s2).getTime(), o3 = aa(new Date(a2), e4.timeUnit, e4.count, i3._firstWeekDay, i3._df.utc, void 0, i3._df.timezoneMinutes, i3._df.timezone).getTime(), l2 = sa(new Date(o3), e4.timeUnit, e4.count, i3._df.utc);
  15164. t3.setCalculatedValue(s2, o3, "open"), t3.setCalculatedValue(s2, l2.getTime(), "close"), r3.setKey(o3 + n3, t3);
  15165. });
  15166. }, e3.prototype.addEmptyUnitsBreaks = function() {
  15167. var t3 = this;
  15168. if (this.skipEmptyPeriods && tt(this.min) && tt(this.max)) {
  15169. var e4 = this.baseInterval.timeUnit, i3 = this.baseInterval.count;
  15170. this._axisBreaks && this._axisBreaks.clear();
  15171. for (var n3 = aa(new Date(this.min), e4, i3, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), r3 = void 0, s2 = function() {
  15172. sa(n3, e4, i3, a2._df.utc);
  15173. var s3 = n3.getTime(), o3 = s3.toString();
  15174. pi(a2.series.iterator(), function(e5) {
  15175. return !!e5.dataItemsByAxis.getKey(t3.uid).getKey(o3 + e5.currentDataSetId);
  15176. }) ? r3 && (r3.endDate = new Date(s3 - 1), r3 = void 0) : r3 || ((r3 = a2.axisBreaks.create()).startDate = new Date(s3), a2._gapBreaks = true);
  15177. }, a2 = this; n3.getTime() < this.max - this.baseDuration; )
  15178. s2();
  15179. }
  15180. }, e3.prototype.fixAxisBreaks = function() {
  15181. var e4 = this;
  15182. t2.prototype.fixAxisBreaks.call(this);
  15183. var i3 = this._axisBreaks;
  15184. i3 && i3.length > 0 && i3.each(function(t3) {
  15185. var i4 = Math.ceil(e4._gridCount * (Math.min(e4.end, t3.endPosition) - Math.max(e4.start, t3.startPosition)) / (e4.end - e4.start));
  15186. t3.gridInterval = e4.chooseInterval(0, t3.adjustedEndValue - t3.adjustedStartValue, i4);
  15187. var n3 = aa(new Date(t3.adjustedStartValue), t3.gridInterval.timeUnit, t3.gridInterval.count, e4._firstWeekDay, e4._df.utc, void 0, e4._df.timezoneMinutes, e4._df.timezone);
  15188. n3.getTime() > t3.startDate.getTime() && sa(n3, t3.gridInterval.timeUnit, t3.gridInterval.count, e4._df.utc), t3.gridDate = n3;
  15189. });
  15190. }, e3.prototype.getFirstWeekDay = function() {
  15191. return this._df ? this._df.firstDayOfWeek : 1;
  15192. }, e3.prototype.getGridDate = function(t3, e4) {
  15193. var i3 = this._gridInterval.timeUnit, n3 = this._gridInterval.count;
  15194. aa(t3, i3, 1, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone);
  15195. var r3 = t3.getTime(), s2 = na(t3), a2 = sa(s2, i3, e4, this._df.utc).getTime(), o3 = this.isInBreak(a2);
  15196. o3 && o3.endDate && (aa(s2 = new Date(o3.endDate.getTime()), i3, n3, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), s2.getTime() < o3.endDate.getTime() && sa(s2, i3, n3, this._df.utc), a2 = s2.getTime());
  15197. var l2 = this.adjustDifference(r3, a2);
  15198. return Math.round(l2 / ta(i3)) < n3 ? this.getGridDate(t3, e4 + n3) : s2;
  15199. }, e3.prototype.getBreaklessDate = function(t3, e4, i3) {
  15200. var n3 = new Date(t3.endValue);
  15201. aa(n3, e4, i3, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), sa(n3, e4, i3, this._df.utc);
  15202. var r3 = n3.getTime();
  15203. return (t3 = this.isInBreak(r3)) ? this.getBreaklessDate(t3, e4, i3) : n3;
  15204. }, e3.prototype.validateAxisElements = function() {
  15205. var t3 = this;
  15206. if (tt(this.max) && tt(this.min)) {
  15207. this.calculateZoom();
  15208. var e4 = this._gridDate.getTime(), i3 = this._gridInterval.timeUnit, n3 = this._gridInterval.count, r3 = na(this._gridDate), s2 = this._dataItemsIterator;
  15209. this.resetIterators();
  15210. for (var a2 = function() {
  15211. var t4 = o3.getGridDate(na(r3), n3);
  15212. e4 = t4.getTime();
  15213. var a3 = na(t4);
  15214. a3 = sa(a3, i3, n3, o3._df.utc);
  15215. var l3 = o3.dateFormats.getKey(i3);
  15216. o3.markUnitChange && r3 && ra(t4, r3, o3._nextGridUnit, o3._df.utc) && i3 !== "year" && (l3 = o3.periodChangeDateFormats.getKey(i3));
  15217. var h2 = o3._df.format(t4, l3), p2 = s2.find(function(t5) {
  15218. return t5.text === h2;
  15219. });
  15220. p2.__disabled && (p2.__disabled = false), o3.appendDataItem(p2), p2.axisBreak = void 0, p2.date = t4, p2.endDate = a3, p2.text = h2, o3.validateDataElement(p2), r3 = t4;
  15221. }, o3 = this; e4 <= this._maxZoomed; )
  15222. a2();
  15223. var l2 = this.renderer;
  15224. this._axisBreaks && ti(this._axisBreaks.iterator(), function(e5) {
  15225. if (e5.breakSize > 0) {
  15226. var i4 = e5.gridInterval.timeUnit, n4 = e5.gridInterval.count;
  15227. if (_t(e5.startPoint, e5.endPoint) > 4 * l2.minGridDistance)
  15228. for (var r4, a3 = e5.gridDate.getTime(), o4 = 0, h2 = function() {
  15229. var l3 = na(e5.gridDate);
  15230. if (a3 = sa(l3, i4, n4 * o4, t3._df.utc).getTime(), o4++, a3 > e5.adjustedStartValue && a3 < e5.adjustedEndValue) {
  15231. var h3 = na(l3);
  15232. h3 = sa(h3, i4, n4, t3._df.utc);
  15233. var p2 = t3.dateFormats.getKey(i4);
  15234. t3.markUnitChange && r4 && ra(l3, r4, t3._nextGridUnit, t3._df.utc) && i4 !== "year" && (p2 = t3.periodChangeDateFormats.getKey(i4));
  15235. var u2 = t3._df.format(l3, p2), d2 = s2.find(function(t4) {
  15236. return t4.text === u2;
  15237. });
  15238. d2.__disabled && (d2.__disabled = false), t3.appendDataItem(d2), d2.axisBreak = e5, e5.dataItems.moveValue(d2), d2.date = l3, d2.endDate = h3, d2.text = u2, r4 = l3, t3.validateDataElement(d2);
  15239. }
  15240. }; a3 <= e5.adjustedMax; )
  15241. h2();
  15242. }
  15243. });
  15244. }
  15245. }, e3.prototype.validateDataElement = function(t3) {
  15246. if (t3.itemIndex = this._axisItemCount, this._axisItemCount++, tt(this.max) && tt(this.min)) {
  15247. var e4 = this.renderer, i3 = t3.value, n3 = t3.endValue;
  15248. tt(n3) || (n3 = i3);
  15249. var r3 = this.valueToPosition(i3), s2 = this.valueToPosition(n3), a2 = s2;
  15250. !t3.isRange && this._gridInterval.count > this.baseInterval.count && (s2 = r3 + (s2 - r3) / (this._gridInterval.count / this.baseInterval.count)), t3.position = r3;
  15251. var o3 = t3.tick;
  15252. o3 && !o3.disabled && e4.updateTickElement(o3, r3, s2);
  15253. var l2 = t3.grid;
  15254. l2 && !l2.disabled && e4.updateGridElement(l2, r3, s2);
  15255. var h2 = t3.axisFill;
  15256. h2 && !h2.disabled && (e4.updateFillElement(h2, r3, a2), t3.isRange || this.fillRule(t3));
  15257. var p2 = t3.mask;
  15258. p2 && e4.updateFillElement(p2, r3, s2), t3.bullet && e4.updateBullet(t3.bullet, r3, s2);
  15259. var u2 = t3.label;
  15260. if (u2 && !u2.disabled) {
  15261. var d2 = u2.location;
  15262. d2 == 0 && (d2 = this._gridInterval.count != 1 || this._gridInterval.timeUnit == "week" || t3.isRange ? 0 : 0.5), e4.updateLabelElement(u2, r3, s2, d2);
  15263. }
  15264. }
  15265. }, Object.defineProperty(e3.prototype, "baseDuration", { get: function() {
  15266. return ta(this.baseInterval.timeUnit, this.baseInterval.count);
  15267. }, enumerable: true, configurable: true }), e3.prototype.adjustMinMax = function(t3, e4) {
  15268. return { min: t3, max: e4, step: this.baseDuration };
  15269. }, e3.prototype.fixMin = function(t3) {
  15270. var e4 = this.baseInterval, i3 = aa(new Date(t3), e4.timeUnit, e4.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone).getTime();
  15271. return i3 + (sa(new Date(i3), e4.timeUnit, e4.count, this._df.utc).getTime() - i3) * this.startLocation;
  15272. }, e3.prototype.fixMax = function(t3) {
  15273. var e4 = this.baseInterval, i3 = aa(new Date(t3), e4.timeUnit, e4.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone).getTime();
  15274. return i3 + (sa(new Date(i3), e4.timeUnit, e4.count, this._df.utc).getTime() - i3) * this.endLocation;
  15275. }, e3.prototype.chooseInterval = function(t3, e4, i3, n3) {
  15276. n3 || (n3 = this.gridIntervals);
  15277. var r3 = n3.getIndex(t3), s2 = ta(r3.timeUnit, r3.count), a2 = n3.length - 1;
  15278. if (t3 >= a2)
  15279. return O({}, n3.getIndex(a2));
  15280. var o3 = Math.ceil(e4 / s2);
  15281. return e4 < s2 && t3 > 0 ? O({}, n3.getIndex(t3 - 1)) : o3 <= i3 ? O({}, n3.getIndex(t3)) : t3 + 1 < n3.length ? this.chooseInterval(t3 + 1, e4, i3, n3) : O({}, n3.getIndex(t3));
  15282. }, e3.prototype.formatLabel = function(t3) {
  15283. return this._df.format(t3);
  15284. }, e3.prototype.dateToPosition = function(t3) {
  15285. return this.valueToPosition(t3.getTime());
  15286. }, e3.prototype.anyToPosition = function(t3) {
  15287. return t3 instanceof Date ? this.dateToPosition(t3) : this.valueToPosition(t3);
  15288. }, e3.prototype.dateToPoint = function(t3) {
  15289. var e4 = this.dateToPosition(t3), i3 = this.renderer.positionToPoint(e4), n3 = this.renderer.positionToAngle(e4);
  15290. return { x: i3.x, y: i3.y, angle: n3 };
  15291. }, e3.prototype.anyToPoint = function(t3) {
  15292. return t3 instanceof Date ? this.dateToPoint(t3) : this.valueToPoint(t3);
  15293. }, e3.prototype.positionToDate = function(t3) {
  15294. return new Date(this.positionToValue(t3));
  15295. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  15296. var s2 = this.getTimeByLocation(t3, e4, i3);
  15297. tt(s2) || (s2 = this.baseValue);
  15298. var a2 = this.valueToPosition(s2);
  15299. return r3 && (a2 = ut(a2, r3.start, r3.end)), a2;
  15300. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  15301. var s2 = this.getTimeByLocation(t3, e4, i3), a2 = t3.getValue("valueX", "stack");
  15302. tt(s2) || (s2 = this.baseValue);
  15303. var o3 = this.valueToPosition(s2 + a2);
  15304. return r3 && (o3 = ut(o3, r3.start, r3.end)), o3;
  15305. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  15306. var s2 = this.getTimeByLocation(t3, e4, i3), a2 = t3.getValue(n3, "stack");
  15307. tt(s2) || (s2 = this.baseValue);
  15308. var o3 = this.valueToPosition(s2 + a2);
  15309. return r3 && (o3 = ut(o3, r3.start, r3.end)), this.positionToAngle(o3);
  15310. }, e3.prototype.getTimeByLocation = function(t3, e4, i3) {
  15311. if (Z(e4)) {
  15312. tt(i3) || tt(i3 = t3.workingLocations[e4]) || (i3 = 0);
  15313. var n3 = t3.values[e4].open, r3 = t3.values[e4].close, s2 = t3.values[e4].workingValue, a2 = t3.values[e4].value - s2;
  15314. return r3 -= a2, tt(n3 -= a2) && tt(r3) ? n3 + (r3 - n3) * i3 : void 0;
  15315. }
  15316. }, e3.prototype.processSeriesDataItem = function(t3, e4) {
  15317. var i3, n3 = t3.component, r3 = t3["date" + e4];
  15318. if (tt(this.timezoneOffset) ? (r3.setTime(r3.getTime() + 6e4 * (r3.getTimezoneOffset() - this.timezoneOffset)), t3.setValue("date" + e4, r3.getTime(), 0)) : Z(this.timezone) && (r3 = oa(r3, this.timezone), t3.setValue("date" + e4, r3.getTime(), 0), t3["date" + e4] = r3), r3) {
  15319. i3 = r3.getTime();
  15320. var s2, a2 = t3["openDate" + e4], o3 = this._prevSeriesTime[n3.uid];
  15321. if (a2 && (s2 = a2.getTime()), tt(s2)) {
  15322. var l2 = Math.abs(i3 - s2);
  15323. this._minDifference[n3.uid] > l2 && (this._minDifference[n3.uid] = l2);
  15324. }
  15325. var h2 = i3 - o3;
  15326. h2 > 0 && this._minDifference[n3.uid] > h2 && (this._minDifference[n3.uid] = h2), this._prevSeriesTime[n3.uid] = i3, n3._baseInterval[this.uid] && this.postProcessSeriesDataItem(t3);
  15327. }
  15328. }, e3.prototype.updateAxisBySeries = function() {
  15329. t2.prototype.updateAxisBySeries.call(this);
  15330. var e4 = this.chooseInterval(0, this.minDifference, 1);
  15331. this.minDifference >= ta("day", 27) && e4.timeUnit == "week" && (e4.timeUnit = "month", e4.count = 1), e4.timeUnit == "month" && (this.minDifference >= ta("day", 58) && e4.count == 1 && (e4.count = 2), this.minDifference >= ta("day", 87) && e4.count == 2 && (e4.count = 3), this.minDifference >= ta("day", 174) && e4.count == 5 && (e4.count = 6)), this.minDifference >= ta("hour", 23) && e4.timeUnit == "hour" && (e4.timeUnit = "day", e4.count = 1), this.minDifference >= ta("week", 1) - ta("hour", 1) && e4.timeUnit == "day" && (e4.timeUnit = "week", e4.count = 1), this.minDifference >= ta("year", 1) - ta("day", 1.01) && e4.timeUnit == "month" && (e4.timeUnit = "year", e4.count = 1), this._baseIntervalReal = e4, this._mainBaseInterval = e4;
  15332. }, Object.defineProperty(e3.prototype, "baseInterval", { get: function() {
  15333. return this._groupInterval ? this._groupInterval : this._baseInterval ? this._baseInterval : this._baseIntervalReal;
  15334. }, set: function(t3) {
  15335. JSON.stringify(this._baseInterval) != JSON.stringify(t3) && (this._baseInterval = t3, this._mainBaseInterval = t3, tt(t3.count) || (t3.count = 1), this.invalidate(), this.postProcessSeriesDataItems());
  15336. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "mainBaseInterval", { get: function() {
  15337. return this._baseInterval ? this._baseInterval : this._mainBaseInterval ? this._mainBaseInterval : this._baseIntervalReal;
  15338. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "skipEmptyPeriods", { get: function() {
  15339. return this.getPropertyValue("skipEmptyPeriods");
  15340. }, set: function(t3) {
  15341. if (t3) {
  15342. var e4 = this.axisBreaks.template;
  15343. e4.startLine.disabled = true, e4.endLine.disabled = true, e4.fillShape.disabled = true, e4.breakSize = 0;
  15344. } else
  15345. this._gapBreaks && (this.axisBreaks.clear(), this._gapBreaks = false);
  15346. this.setPropertyValue("skipEmptyPeriods", t3) && (this.invalidate(), this.postProcessSeriesDataItems(), this.invalidateSeries());
  15347. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipDateFormat", { get: function() {
  15348. return this.getPropertyValue("tooltipDateFormat");
  15349. }, set: function(t3) {
  15350. this.setPropertyValue("tooltipDateFormat", t3);
  15351. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "markUnitChange", { get: function() {
  15352. return this.getPropertyValue("markUnitChange");
  15353. }, set: function(t3) {
  15354. this.setPropertyValue("markUnitChange", t3) && this.invalidateData();
  15355. }, enumerable: true, configurable: true }), e3.prototype.getTooltipText = function(t3) {
  15356. var e4, i3 = this.positionToDate(t3);
  15357. if (i3 = aa(i3, this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, new Date(this.min), this._df.timezoneMinutes, this._df.timezone), this.tooltipDate = i3, Z(this.tooltipDateFormat))
  15358. e4 = this._df.format(i3, this.tooltipDateFormat, ["day", "month", "week", "year"].indexOf(this.baseInterval.timeUnit) == -1);
  15359. else {
  15360. var n3 = this.dateFormats.getKey(this.baseInterval.timeUnit);
  15361. e4 = n3 ? this._df.format(i3, n3) : this.getPositionLabel(t3);
  15362. }
  15363. return this._adapterO ? this._adapterO.apply("getTooltipText", e4) : e4;
  15364. }, e3.prototype.roundPosition = function(t3, e4, i3) {
  15365. var n3 = this.baseInterval, r3 = n3.timeUnit, s2 = n3.count, a2 = this.positionToDate(t3);
  15366. if (aa(a2, r3, s2, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), e4 > 0 && sa(a2, r3, e4 * s2, this._df.utc), i3 > 0 && i3 < 1 && a2.setTime(a2.getTime() + this.baseDuration * i3), this.isInBreak(a2.getTime()))
  15367. for (; a2.getTime() < this.max && (sa(a2, r3, s2, this._df.utc), this.isInBreak(a2.getTime())); )
  15368. ;
  15369. return this.dateToPosition(a2);
  15370. }, e3.prototype.getCellStartPosition = function(t3) {
  15371. return this.roundPosition(t3, 0);
  15372. }, e3.prototype.getCellEndPosition = function(t3) {
  15373. return this.roundPosition(t3, 1);
  15374. }, e3.prototype.getSeriesDataItem = function(t3, e4, i3) {
  15375. var n3 = this.positionToValue(e4), r3 = n3 - (this.axisLetter == "Y" ? t3.dataItems.template.locations.dateY : t3.dataItems.template.locations.dateX) * this.baseDuration, s2 = aa(new Date(n3), this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), a2 = aa(new Date(n3 + this.baseDuration), this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone);
  15376. a2.getTime() > s2.getTime() && Math.abs(a2.getTime() - r3) < Math.abs(r3 - s2.getTime()) && (s2 = a2);
  15377. var o3, l2 = t3.dataItemsByAxis.getKey(this.uid).getKey(s2.getTime() + t3.currentDataSetId);
  15378. return !l2 && i3 && (o3 = this.axisLetter == "Y" ? "dateY" : "dateX", l2 = t3.dataItems.getIndex(t3.dataItems.findClosestIndex(s2.getTime(), function(t4) {
  15379. return t4[o3] ? t4[o3].getTime() : -1 / 0;
  15380. }, "any"))), l2;
  15381. }, e3.prototype.getPositionLabel = function(t3) {
  15382. var e4 = this.positionToDate(t3);
  15383. return this._df.format(e4, this.getCurrentLabelFormat());
  15384. }, e3.prototype.getCurrentLabelFormat = function() {
  15385. return this.dateFormats.getKey(this._gridInterval ? this._gridInterval.timeUnit : "day");
  15386. }, e3.prototype.initRenderer = function() {
  15387. t2.prototype.initRenderer.call(this);
  15388. var e4 = this.renderer;
  15389. e4 && (e4.ticks.template.location = 0, e4.grid.template.location = 0, e4.labels.template.location = 0, e4.baseGrid.disabled = true);
  15390. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  15391. return { x: 0, y: 0 };
  15392. }, enumerable: true, configurable: true }), e3.prototype.animateMinMax = function(t3, e4) {
  15393. var i3 = this, n3 = this.animate([{ property: "_minAdjusted", from: this._minAdjusted, to: t3 }, { property: "_maxAdjusted", from: this._maxAdjusted, to: e4 }], this.rangeChangeDuration, this.rangeChangeEasing);
  15394. return n3.events.on("animationprogress", function() {
  15395. i3.dispatch("extremeschanged");
  15396. }), n3;
  15397. }, e3.prototype.handleExtremesChange = function() {
  15398. if (t2.prototype.handleExtremesChange.call(this), this.groupData) {
  15399. var e4 = this.baseInterval.timeUnit + this.baseInterval.count;
  15400. this.groupMin[e4] = this._finalMin, this.groupMax[e4] = this._finalMax;
  15401. }
  15402. }, e3.prototype.zoomToDates = function(t3, e4, i3, n3, r3) {
  15403. t3 = this._df.parse(t3), e4 = this._df.parse(e4), this.zoomToValues(t3.getTime(), e4.getTime(), i3, n3, r3);
  15404. }, e3.prototype.zoomToValues = function(t3, e4, i3, n3, r3) {
  15405. var s2 = this;
  15406. if (this.groupData) {
  15407. var a2 = this.adjustDifference(t3, e4), o3 = false;
  15408. e4 == this.max && (o3 = true);
  15409. var l2 = false;
  15410. if (t3 == this.min && (l2 = true), Z(a2)) {
  15411. var h2 = this.mainBaseInterval, p2 = this.chooseInterval(0, a2, this.groupCount, this.groupIntervals);
  15412. (p2.timeUnit == h2.timeUnit && p2.count < h2.count || ta(p2.timeUnit, 1) < ta(h2.timeUnit, 1)) && (p2 = O({}, h2));
  15413. var u2 = p2.timeUnit + p2.count, d2 = this.groupMin[u2], c2 = this.groupMax[u2];
  15414. tt(d2) && tt(c2) || (d2 = Number.POSITIVE_INFINITY, c2 = Number.NEGATIVE_INFINITY, this.series.each(function(t4) {
  15415. var e5 = t4.min(s2), i4 = t4.max(s2);
  15416. if (t4._dataSets) {
  15417. var n4 = t4._dataSets.getKey(p2.timeUnit + p2.count);
  15418. if (n4) {
  15419. var r4 = n4.getIndex(0), a3 = n4.getIndex(n4.length - 1);
  15420. r4 && (t4.xAxis == s2 ? e5 = r4.dateX.getTime() : t4.yAxis == s2 && (e5 = r4.dateY.getTime())), a3 && (t4.xAxis == s2 ? i4 = a3.dateX.getTime() : t4.yAxis == s2 && (i4 = a3.dateY.getTime()));
  15421. }
  15422. }
  15423. i4 = aa(sa(new Date(i4), p2.timeUnit, 1, s2._df.utc), p2.timeUnit, 1, s2._df.firstDayOfWeek, s2._df.utc, void 0, s2._df.timezoneMinutes, s2._df.timezone).getTime(), e5 < d2 && (d2 = e5), i4 > c2 && (c2 = i4);
  15424. }), this.groupMin[u2] = d2, this.groupMax[u2] = c2), t3 = ut(t3, d2, c2), e4 = ut(e4, d2, c2), r3 && (o3 && (t3 = ut(t3 = e4 - a2, d2, c2)), l2 && (e4 = ut(e4 = t3 + a2, d2, c2))), f2 = (t3 - d2) / (c2 - d2), g2 = (e4 - d2) / (c2 - d2), this.zoom({ start: f2, end: g2 }, i3, n3);
  15425. }
  15426. } else {
  15427. var f2 = this.valueToPosition(t3), g2 = this.valueToPosition(e4);
  15428. this.zoom({ start: f2, end: g2 }, i3, n3);
  15429. }
  15430. }, e3.prototype.asIs = function(e4) {
  15431. return e4 == "baseInterval" || t2.prototype.asIs.call(this, e4);
  15432. }, e3.prototype.copyFrom = function(e4) {
  15433. var i3 = this;
  15434. t2.prototype.copyFrom.call(this, e4), this.dateFormats = e4.dateFormats, this.periodChangeDateFormats = e4.periodChangeDateFormats, this.groupIntervals.clear(), e4.groupIntervals.each(function(t3) {
  15435. i3.groupIntervals.push(O({}, t3));
  15436. }), this.gridIntervals.clear(), e4.gridIntervals.each(function(t3) {
  15437. i3.gridIntervals.push(O({}, t3));
  15438. }), e4._baseInterval && (this.baseInterval = e4._baseInterval);
  15439. }, e3.prototype.showTooltipAtPosition = function(e4, i3) {
  15440. var n3 = this;
  15441. if (i3 || (e4 = this.toAxisPosition(e4)), this.snapTooltip) {
  15442. var r3, s2 = this.positionToDate(e4).getTime();
  15443. if (this.series.each(function(t3) {
  15444. if (t3.baseAxis == n3) {
  15445. var i4 = n3.getSeriesDataItem(t3, e4, true);
  15446. if (i4) {
  15447. var a3 = void 0;
  15448. t3.xAxis == n3 && (a3 = i4.dateX), t3.yAxis == n3 && (a3 = i4.dateY), r3 ? Math.abs(r3.getTime() - s2) > Math.abs(a3.getTime() - s2) && (r3 = a3) : r3 = a3;
  15449. }
  15450. }
  15451. }), r3) {
  15452. var a2 = r3.getTime();
  15453. r3 = aa(new Date(a2), this.baseInterval.timeUnit, this.baseInterval.count, this._firstWeekDay, this._df.utc, void 0, this._df.timezoneMinutes, this._df.timezone), a2 = r3.getTime();
  15454. var o3 = this.renderer.tooltipLocation;
  15455. o3 == 0 && (o3 = 1e-4), r3 = new Date(r3.getTime() + this.baseDuration * o3), e4 = this.dateToPosition(r3), this.chart.cursor && this.chart.cursor.snapToSeries || this.series.each(function(t3) {
  15456. var e5 = t3.dataItemsByAxis.getKey(n3.uid).getKey(a2 + t3.currentDataSetId), i4 = t3.showTooltipAtDataItem(e5);
  15457. i4 ? n3.chart._seriesPoints.push({ series: t3, point: i4 }) : (t3.tooltipText || t3.tooltipHTML) && t3.hideTooltip();
  15458. });
  15459. }
  15460. }
  15461. t2.prototype.showTooltipAtPosition.call(this, e4, true);
  15462. }, Object.defineProperty(e3.prototype, "snapTooltip", { get: function() {
  15463. return this.getPropertyValue("snapTooltip");
  15464. }, set: function(t3) {
  15465. this.setPropertyValue("snapTooltip", t3);
  15466. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "groupData", { get: function() {
  15467. return this.getPropertyValue("groupData");
  15468. }, set: function(t3) {
  15469. var e4 = this;
  15470. this.setPropertyValue("groupData", t3) && (this.series.each(function(i3) {
  15471. i3.setDataSet(""), t3 && !i3.dataGrouped && i3.inited && (i3._baseInterval[e4.uid] = e4.mainBaseInterval, e4.groupSeriesData(i3));
  15472. }), this._currentDataSetId = "", this._groupInterval = void 0, this.invalidate(), this.invalidateSeries());
  15473. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "groupInterval", { get: function() {
  15474. return this.getPropertyValue("groupInterval");
  15475. }, set: function(t3) {
  15476. this.setPropertyValue("groupInterval", t3) && (this.invalidate(), this.invalidateSeries());
  15477. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "groupCount", { get: function() {
  15478. return this.getPropertyValue("groupCount");
  15479. }, set: function(t3) {
  15480. this.setPropertyValue("groupCount", t3);
  15481. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezoneOffset", { get: function() {
  15482. return this.getPropertyValue("timezoneOffset");
  15483. }, set: function(t3) {
  15484. this.setPropertyValue("timezoneOffset", t3);
  15485. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "timezone", { get: function() {
  15486. return this.getPropertyValue("timezone");
  15487. }, set: function(t3) {
  15488. this.setPropertyValue("timezone", t3);
  15489. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "gridInterval", { get: function() {
  15490. return this._gridInterval;
  15491. }, enumerable: true, configurable: true }), e3.prototype.makeGap = function(t3, e4) {
  15492. var i3 = t3.component;
  15493. if (t3 && e4 && !i3.connect && tt(i3.autoGapCount) && i3.baseAxis == this) {
  15494. var n3 = t3.dates["date" + this.axisLetter], r3 = e4.dates["date" + this.axisLetter];
  15495. if (n3 && r3 && n3.getTime() - r3.getTime() > i3.autoGapCount * this.baseDuration)
  15496. return true;
  15497. }
  15498. return false;
  15499. }, Object.defineProperty(e3.prototype, "baseValue", { get: function() {
  15500. return this.min;
  15501. }, enumerable: true, configurable: true }), e3;
  15502. }(bh);
  15503. Ii.registeredClasses.DateAxis = Ph, Ii.registeredClasses.DateAxisDataItem = _h;
  15504. var wh = function(t2) {
  15505. function e3() {
  15506. var e4 = t2.call(this) || this;
  15507. return e4.className = "AxisRendererX", e4.minGridDistance = 120, e4.opposite = false, e4.rotation = 0, e4.width = V(100), e4.labels.template.horizontalCenter = "middle", e4.applyTheme(), e4;
  15508. }
  15509. return C(e3, t2), e3.prototype.setAxis = function(e4) {
  15510. t2.prototype.setAxis.call(this, e4), e4.layout = "vertical";
  15511. }, e3.prototype.updateGridContainer = function() {
  15512. var t3 = this.axis;
  15513. if (t3) {
  15514. var e4 = this.gridContainer;
  15515. e4.x = t3.pixelX, e4.width = t3.axisLength;
  15516. }
  15517. }, e3.prototype.processRenderer = function() {
  15518. t2.prototype.processRenderer.call(this);
  15519. var e4 = this.axis;
  15520. if (e4) {
  15521. e4.width instanceof A || (e4.width = V(100)), this.line;
  15522. var i3 = e4.title;
  15523. i3.rotation = 0, i3.align = "center", this.opposite ? (this.line.toFront(), i3.toBack()) : (i3.toFront(), this.toBack(), this.line.toBack());
  15524. }
  15525. }, e3.prototype.updateTooltip = function() {
  15526. if (this.axis) {
  15527. var t3 = 1e3, e4 = this.line.pixelX, i3 = this.line.pixelY, n3 = this.axisLength, r3 = t3;
  15528. this.opposite ? this.inside || (i3 = -1e3, r3 = t3) : this.inside && (i3 = -1e3, r3 = t3), this.axis.updateTooltip("vertical", { x: e4, y: i3, width: n3, height: r3 });
  15529. }
  15530. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  15531. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3;
  15532. var r3 = this.positionToPoint(e4);
  15533. t3.isMeasured = !t3.inside;
  15534. var s2, a2 = 0, o3 = this.gridContainer.maxHeight;
  15535. this.opposite ? (t3.inside ? (s2 = "top", t3.valign == "bottom" && (a2 = o3, s2 = "bottom"), t3.valign == "middle" && (a2 = o3 / 2, s2 = "middle")) : s2 = "bottom", r3.y = a2) : (t3.inside ? (s2 = "bottom", t3.valign == "top" && (a2 = -o3, s2 = "top"), t3.valign == "middle" && (a2 = -o3 / 2, s2 = "middle")) : s2 = "top", r3.y += a2), t3.rotation == 0 && (t3.verticalCenter = s2), this.positionItem(t3, r3), this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  15536. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  15537. var t3 = this.axis;
  15538. return t3.measuredWidth - t3.pixelPaddingRight - t3.pixelPaddingLeft || 0;
  15539. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  15540. return { x: this.positionToCoordinate(t3), y: 0 };
  15541. }, e3.prototype.pointToPosition = function(t3) {
  15542. return this.coordinateToPosition(t3.x, t3.y);
  15543. }, e3.prototype.getPositionRangePath = function(t3, e4) {
  15544. var i3 = ut(this.positionToCoordinate(t3), 0, this.axisLength), n3 = ut(this.positionToCoordinate(e4), 0, this.axisLength), r3 = Math.abs(n3 - i3), s2 = this.getHeight();
  15545. return Vo({ x: Math.min(i3, n3), y: 0, width: r3, height: s2 }, true);
  15546. }, e3.prototype.updateBreakElement = function(e4) {
  15547. t2.prototype.updateBreakElement.call(this, e4);
  15548. var i3 = e4.startLine, n3 = e4.endLine, r3 = e4.fillShape, s2 = e4.startPoint, a2 = e4.endPoint, o3 = e4.pixelMarginLeft, l2 = this.getHeight() - e4.pixelMarginTop - e4.pixelMarginBottom;
  15549. s2.x = ut(s2.x, -1, this.axisLength + 1), a2.x = ut(a2.x, -1, this.axisLength + 1), s2.x == a2.x && (s2.x < 0 || s2.x > this.axisLength) ? e4.fillShape.__disabled = true : e4.fillShape.__disabled = false, i3.y = o3, i3.width = 0, i3.height = l2, n3.y = o3, n3.width = 0, n3.height = l2, r3.height = l2, r3.width = Math.abs(a2.x - s2.x), r3.y = o3, r3.x = s2.x;
  15550. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  15551. e4 += (i3 - e4) * t3.location;
  15552. var n3 = this.positionToPoint(e4);
  15553. t3.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: this.getHeight() }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  15554. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  15555. e4 += (i3 - e4) * t3.location;
  15556. var n3 = this.positionToPoint(e4), r3 = t3.length;
  15557. n3.y = dr({ x: 0, y: this.line.pixelY }, this.line.parent, this.gridContainer).y, this.opposite ? r3 *= t3.inside ? 1 : -1 : r3 *= t3.inside ? -1 : 1, t3.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: r3 }), this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  15558. }, e3.prototype.updateAxisLine = function() {
  15559. this.line.path = wo({ x: 0, y: 0 }) + Co({ x: this.axisLength, y: 0 });
  15560. }, e3.prototype.updateBaseGridElement = function() {
  15561. t2.prototype.updateBaseGridElement.call(this);
  15562. var e4 = this.axis, i3 = this.getHeight(), n3 = this.axisLength, r3 = this.baseGrid, s2 = e4.basePoint.x;
  15563. if (s2 < -0.2 || s2 > n3 + 0.2)
  15564. r3.hide(0);
  15565. else {
  15566. var a2 = dr({ x: 0, y: 0 }, this.gridContainer, r3.parent).y;
  15567. r3.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: i3 }), r3.moveTo({ x: s2, y: a2 }), r3.show(0);
  15568. }
  15569. }, e3.prototype.createBreakSprites = function(t3) {
  15570. t3.startLine = new pl(), t3.endLine = new pl();
  15571. var e4 = new ul();
  15572. e4.setWavedSides(false, true, false, true), t3.fillShape = e4;
  15573. }, e3.prototype.toAxisPosition = function(t3) {
  15574. var e4 = t3, i3 = this.axis;
  15575. if (i3) {
  15576. var n3 = i3.relativePositionSprite, r3 = i3.pixelX;
  15577. if (n3 ? r3 = dr({ x: this.pixelX, y: 0 }, this.parent, n3).x : n3 = i3.parent, n3)
  15578. return (e4 - r3 / n3.innerWidth) / (i3.axisLength / n3.innerWidth);
  15579. }
  15580. return t3;
  15581. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  15582. var n3 = 0.5;
  15583. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  15584. var r3 = this.positionToPoint(e4);
  15585. r3.y = dr({ x: 0, y: this.line.pixelY }, this.line.parent, this.gridContainer).y, this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  15586. }, e3;
  15587. }(fh);
  15588. Ii.registeredClasses.AxisRendererX = wh, lo.push({ relevant: ho.heightXS, state: function(t2, e3) {
  15589. if (t2 instanceof wh) {
  15590. var i3 = t2.states.create(e3);
  15591. return i3.properties.inside = true, i3.properties.maxLabelPosition = 0.9, i3.properties.minLabelPosition = 0.1, i3;
  15592. }
  15593. return null;
  15594. } }), lo.push({ relevant: ho.heightXXS, state: function(t2, e3) {
  15595. if (t2 instanceof wh) {
  15596. var i3 = t2.states.create(e3);
  15597. return i3.properties.disabled = true, i3;
  15598. }
  15599. return null;
  15600. } });
  15601. var Ch = function(t2) {
  15602. function e3() {
  15603. var e4 = t2.call(this) || this;
  15604. return e4.className = "CategoryAxisBreak", e4.properties.startLocation = 0.5, e4.properties.endLocation = 0.5, e4.applyTheme(), e4;
  15605. }
  15606. return C(e3, t2), Object.defineProperty(e3.prototype, "startPosition", { get: function() {
  15607. if (this.axis)
  15608. return this.axis.indexToPosition(this.adjustedStartValue, this.startLocation);
  15609. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endPosition", { get: function() {
  15610. if (this.axis)
  15611. return this.axis.indexToPosition(this.adjustedEndValue, this.endLocation);
  15612. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startCategory", { get: function() {
  15613. return this.getPropertyValue("startCategory");
  15614. }, set: function(t3) {
  15615. this.setPropertyValue("startCategory", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15616. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endCategory", { get: function() {
  15617. return this.getPropertyValue("endCategory");
  15618. }, set: function(t3) {
  15619. this.setPropertyValue("endCategory", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15620. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startValue", { get: function() {
  15621. var t3 = this.getPropertyValue("startCategory");
  15622. return t3 ? this.axis.categoryToIndex(t3) : this.getPropertyValue("startValue");
  15623. }, set: function(t3) {
  15624. this.setPropertyValue("startValue", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15625. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endValue", { get: function() {
  15626. var t3 = this.getPropertyValue("endCategory");
  15627. return t3 ? this.axis.categoryToIndex(t3) : this.getPropertyValue("endValue");
  15628. }, set: function(t3) {
  15629. this.setPropertyValue("endValue", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15630. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  15631. return this.getPropertyValue("startLocation");
  15632. }, set: function(t3) {
  15633. this.setPropertyValue("startLocation", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15634. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  15635. return this.getPropertyValue("endLocation");
  15636. }, set: function(t3) {
  15637. this.setPropertyValue("endLocation", t3) && this.axis && (this.axis.invalidateDataItems(), this.axis.invalidateSeries());
  15638. }, enumerable: true, configurable: true }), e3;
  15639. }(rh);
  15640. Ii.registeredClasses.CategoryAxisBreak = Ch;
  15641. var Oh = function(t2) {
  15642. function e3() {
  15643. var e4 = t2.call(this) || this;
  15644. return e4.seriesDataItems = {}, e4.className = "CategoryAxisDataItem", e4.text = "{category}", e4.locations.category = 0, e4.locations.endCategory = 1, e4.deltaPosition = 0, e4.applyTheme(), e4;
  15645. }
  15646. return C(e3, t2), Object.defineProperty(e3.prototype, "category", { get: function() {
  15647. return this._adapterO && this._adapterO.isEnabled("category") ? this._adapterO.apply("category", this.properties.category) : this.properties.category;
  15648. }, set: function(t3) {
  15649. var e4 = this.properties.category;
  15650. this.setProperty("category", t3), Z(e4) && e4 != t3 && this.component && this.component.validateDataElement(this);
  15651. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endCategory", { get: function() {
  15652. return this.properties.endCategory;
  15653. }, set: function(t3) {
  15654. this.setProperty("endCategory", t3);
  15655. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "deltaPosition", { get: function() {
  15656. return this.properties.deltaCoordinate;
  15657. }, set: function(t3) {
  15658. t3 != this.properties.deltaCoordinate && (this.setProperty("deltaCoordinate", t3), this.component && (this.component.invalidateDataItems(), this.component.invalidateSeries()));
  15659. }, enumerable: true, configurable: true }), e3;
  15660. }(ah), Sh = function(t2) {
  15661. function e3() {
  15662. var e4 = t2.call(this) || this;
  15663. e4.dataItemsByCategory = new Pi(), e4.className = "CategoryAxis", e4.axisFieldName = "category", e4._lastDataItem = e4.createDataItem(), e4._lastDataItem.component = e4, e4._disposers.push(e4._lastDataItem), e4.applyTheme();
  15664. var i3 = e4.dataItemsByCategory;
  15665. return e4.addDisposer(e4.mainDataSet.events.on("removed", function(t3) {
  15666. i3.removeKey(t3.oldValue.category);
  15667. })), e4;
  15668. }
  15669. return C(e3, t2), e3.prototype.createDataItem = function() {
  15670. return new Oh();
  15671. }, e3.prototype.createAxisBreak = function() {
  15672. return new Ch();
  15673. }, e3.prototype.processSeriesDataItem = function(e4, i3) {
  15674. t2.prototype.processSeriesDataItem.call(this, e4, i3);
  15675. var n3 = e4["category" + this.axisLetter];
  15676. if (Z(n3)) {
  15677. var r3 = this.dataItemsByCategory.getKey(n3);
  15678. if (r3) {
  15679. var s2 = e4.component.uid, a2 = r3.seriesDataItems[s2];
  15680. a2 || (a2 = [], r3.seriesDataItems[s2] = a2), a2.push(e4);
  15681. }
  15682. } else
  15683. e4.component.dataItems.remove(e4);
  15684. }, e3.prototype.validateDataRange = function() {
  15685. var i3 = this;
  15686. t2.prototype.validateDataRange.call(this), ti(this._series.iterator(), function(t3) {
  15687. if (t3.xAxis instanceof e3 && t3.yAxis instanceof e3)
  15688. t3.invalidateDataRange();
  15689. else {
  15690. var n3 = i3.positionToIndex(i3.start), r3 = i3.positionToIndex(i3.end);
  15691. r3 >= i3.dataItems.length && r3--;
  15692. for (var s2 = t3.uid, a2 = void 0, o3 = void 0, l2 = n3; l2 <= r3; l2++) {
  15693. var h2 = i3.dataItems.getIndex(l2);
  15694. if (h2) {
  15695. var p2 = h2.seriesDataItems[s2];
  15696. if (p2)
  15697. for (var u2 = 0; u2 < p2.length; u2++) {
  15698. var d2 = p2[u2];
  15699. if (d2) {
  15700. var c2 = d2.index;
  15701. (!tt(a2) || c2 < a2) && (a2 = c2), (!tt(o3) || c2 > o3) && (o3 = c2);
  15702. }
  15703. }
  15704. }
  15705. }
  15706. tt(a2) ? t3.startIndex = a2 : t3.start = i3.start, tt(o3) ? t3.endIndex = o3 + 1 : t3.end = i3.end, i3._axisBreaks && i3._axisBreaks.length > 0 && t3.invalidateDataRange();
  15707. }
  15708. });
  15709. }, e3.prototype.validate = function() {
  15710. var e4 = this;
  15711. t2.prototype.validate.call(this);
  15712. var i3 = this.dataItems.length, n3 = ut(Math.floor(this.start * i3 - 1), 0, i3), r3 = ut(Math.ceil(this.end * i3), 0, i3);
  15713. this.renderer.invalid && this.renderer.validate();
  15714. var s2 = this.renderer.axisLength / Math.max(this.renderer.minGridDistance, 1 / Number.MAX_SAFE_INTEGER), a2 = Math.min(this.dataItems.length, Math.ceil((r3 - n3) / s2));
  15715. if (this._startIndex = Math.floor(n3 / a2) * a2, this._endIndex = Math.ceil(this.end * i3), this.fixAxisBreaks(), this._startIndex == this._endIndex && this._endIndex++, this._frequency = a2, !(this.axisLength <= 0)) {
  15716. this.maxZoomFactor = this.dataItems.length, this.dataItems.length <= 0 && (this.maxZoomFactor = 1), this.resetIterators(), n3 = gt(0, this._startIndex - this._frequency), r3 = yt(this.dataItems.length, this._endIndex + this._frequency);
  15717. for (var o3 = 0, l2 = 0; l2 < n3; l2++)
  15718. (p2 = this.dataItems.getIndex(l2)).__disabled = true;
  15719. l2 = r3;
  15720. for (var h2 = this.dataItems.length; l2 < h2; l2++)
  15721. (p2 = this.dataItems.getIndex(l2)).__disabled = true;
  15722. for (l2 = n3; l2 < r3; l2++)
  15723. if (l2 < this.dataItems.length) {
  15724. var p2 = this.dataItems.getIndex(l2);
  15725. l2 / this._frequency == Math.round(l2 / this._frequency) ? (this.isInBreak(l2) || (this.appendDataItem(p2), this.validateDataElement(p2, o3)), o3++) : p2.__disabled = true;
  15726. }
  15727. this.appendDataItem(this._lastDataItem), this.validateDataElement(this._lastDataItem, o3 + 1, this.dataItems.length), this._axisBreaks && this._axisBreaks.each(function(t3) {
  15728. var i4 = t3.adjustedStartValue, n4 = t3.adjustedEndValue;
  15729. if (vt({ start: i4, end: n4 }, { start: e4._startIndex, end: e4._endIndex })) {
  15730. for (var r4 = i4; r4 <= n4; r4++)
  15731. (o4 = e4.dataItems.getIndex(r4)).__disabled = true;
  15732. var s3 = ut(Math.ceil(e4._frequency / t3.breakSize), 1, n4 - i4), a3 = 0;
  15733. if (t3.breakSize > 0)
  15734. for (r4 = i4; r4 <= n4; r4 += s3) {
  15735. var o4;
  15736. (o4 = e4.dataItems.getIndex(r4)).__disabled = false, e4.appendDataItem(o4), e4.validateDataElement(o4, a3), a3++;
  15737. }
  15738. }
  15739. }), this.validateBreaks(), this.validateAxisRanges(), this.ghostLabel.invalidate(), this.renderer.invalidateLayout();
  15740. }
  15741. }, e3.prototype.validateDataElement = function(e4, i3, n3) {
  15742. t2.prototype.validateDataElement.call(this, e4), e4.itemIndex = this._axisItemCount, this._axisItemCount++;
  15743. var r3 = this.renderer;
  15744. tt(n3) || (n3 = this.categoryToIndex(e4.category));
  15745. var s2 = this.categoryToIndex(e4.endCategory);
  15746. tt(s2) || (s2 = n3);
  15747. var a2, o3, l2, h2 = this.indexToPosition(n3, e4.locations.category), p2 = this.indexToPosition(s2, e4.locations.endCategory);
  15748. e4.position = h2, e4.isRange && (a2 = s2, o3 = this.indexToPosition(n3, e4.locations.category), l2 = this.indexToPosition(a2, e4.locations.endCategory)), e4.point = r3.positionToPoint(h2);
  15749. var u2 = e4.tick;
  15750. u2 && !u2.disabled && r3.updateTickElement(u2, h2, p2);
  15751. var d2 = e4.grid;
  15752. d2 && !d2.disabled && r3.updateGridElement(d2, h2, p2);
  15753. var c2 = e4.label;
  15754. c2 && !c2.disabled && (e4.isRange && c2.text != null || (e4.text = e4.text), r3.updateLabelElement(c2, h2, p2), (r3 instanceof yh && e4.label.measuredWidth > this.ghostLabel.measuredWidth || r3 instanceof wh && e4.label.measuredHeight > this.ghostLabel.measuredHeight) && (e4.label.html ? this.ghostLabel.html = e4.label.currentText : this.ghostLabel.text = e4.label.currentText));
  15755. var f2 = e4.axisFill;
  15756. f2 && !f2.disabled && (e4.isRange || (a2 = n3 + this._frequency, o3 = this.indexToPosition(n3, f2.location), l2 = this.indexToPosition(a2, f2.location)), r3.updateFillElement(f2, o3, l2), e4.isRange || this.fillRule(e4, i3)), e4.bullet && r3.updateBullet(e4.bullet, h2, p2);
  15757. var g2 = e4.mask;
  15758. g2 && r3.updateFillElement(g2, o3, l2);
  15759. }, e3.prototype.disposeData = function() {
  15760. this.dataItemsByCategory.clear(), t2.prototype.disposeData.call(this);
  15761. }, e3.prototype.processDataItem = function(e4, i3) {
  15762. e4 && (t2.prototype.processDataItem.call(this, e4, i3), Z(e4.category) && this.dataItemsByCategory.setKey(e4.category, e4));
  15763. }, e3.prototype.getDataItem = function(t3) {
  15764. var e4 = t3[this.dataFields.category];
  15765. if (Z(e4))
  15766. return this.dataItemsByCategory.getKey(e4) || this.dataItems.create();
  15767. }, e3.prototype.indexToPosition = function(t3, e4) {
  15768. tt(e4) || (e4 = 0.5);
  15769. var i3 = this.startIndex, n3 = this.endIndex, r3 = this.adjustDifference(i3, n3), s2 = this.startLocation;
  15770. r3 -= s2, r3 -= 1 - this.endLocation, this._axisBreaks && Qe(this._axisBreaks.iterator(), function(e5) {
  15771. var r4 = e5.adjustedStartValue, s3 = e5.adjustedEndValue;
  15772. if (t3 < i3 || !tt(r4) || !tt(s3))
  15773. return false;
  15774. if (vt({ start: r4, end: s3 }, { start: i3, end: n3 })) {
  15775. r4 = Math.max(i3, r4), s3 = Math.min(n3, s3);
  15776. var a3 = e5.breakSize;
  15777. t3 > s3 ? i3 += (s3 - r4) * (1 - a3) : t3 < r4 || (t3 = r4 + (t3 - r4) * a3);
  15778. }
  15779. return true;
  15780. });
  15781. var a2 = 0, o3 = this.dataItems.getIndex(t3);
  15782. return o3 && (a2 = o3.deltaPosition), lt(a2 + (t3 + e4 - s2 - i3) / r3, 5);
  15783. }, e3.prototype.categoryToPosition = function(t3, e4) {
  15784. var i3 = this.categoryToIndex(t3);
  15785. return this.indexToPosition(i3, e4);
  15786. }, e3.prototype.categoryToPoint = function(t3, e4) {
  15787. var i3 = this.categoryToPosition(t3, e4), n3 = this.renderer.positionToPoint(i3), r3 = this.renderer.positionToAngle(i3);
  15788. return { x: n3.x, y: n3.y, angle: r3 };
  15789. }, e3.prototype.anyToPoint = function(t3, e4) {
  15790. return this.categoryToPoint(t3, e4);
  15791. }, e3.prototype.anyToPosition = function(t3, e4) {
  15792. return this.categoryToPosition(t3, e4);
  15793. }, e3.prototype.categoryToIndex = function(t3) {
  15794. if (Z(t3)) {
  15795. var e4 = this.dataItemsByCategory.getKey(t3);
  15796. if (e4)
  15797. return e4.index;
  15798. }
  15799. }, e3.prototype.zoomToCategories = function(t3, e4) {
  15800. this.zoomToIndexes(this.categoryToIndex(t3), this.categoryToIndex(e4) + 1);
  15801. }, e3.prototype.getAnyRangePath = function(t3, e4, i3, n3) {
  15802. var r3 = this.categoryToPosition(t3, i3), s2 = this.categoryToPosition(e4, n3);
  15803. return this.getPositionRangePath(r3, s2);
  15804. }, e3.prototype.roundPosition = function(t3, e4) {
  15805. var i3 = this.positionToIndex(t3);
  15806. return this.indexToPosition(i3, e4);
  15807. }, e3.prototype.getFirstSeriesDataItem = function(t3, e4) {
  15808. for (var i3 = 0; i3 < t3.dataItems.length; i3++) {
  15809. var n3 = t3.dataItems.getIndex(i3);
  15810. if (t3.xAxis == this && n3.categoryX == e4)
  15811. return n3;
  15812. if (t3.yAxis == this && n3.categoryY == e4)
  15813. return n3;
  15814. }
  15815. }, e3.prototype.getLastSeriesDataItem = function(t3, e4) {
  15816. for (var i3 = t3.dataItems.length - 1; i3 >= 0; i3--) {
  15817. var n3 = t3.dataItems.getIndex(i3);
  15818. if (t3.xAxis == this && n3.categoryX == e4)
  15819. return n3;
  15820. if (t3.yAxis == this && n3.categoryY == e4)
  15821. return n3;
  15822. }
  15823. }, e3.prototype.getSeriesDataItemByCategory = function(t3, e4) {
  15824. var i3, n3 = this;
  15825. return e4.dataItems.each(function(r3) {
  15826. e4.xAxis == n3 ? r3.categoryX == t3 && (i3 = r3) : e4.yAxis == n3 && r3.categoryY == t3 && (i3 = r3);
  15827. }), i3;
  15828. }, e3.prototype.getSeriesDataItem = function(t3, e4, i3) {
  15829. var n3 = this;
  15830. if (tt(e4)) {
  15831. var r3 = this.positionToIndex(e4);
  15832. r3 >= this.dataItems.length && r3--;
  15833. var s2 = this.dataItems.getIndex(r3);
  15834. if (s2) {
  15835. var a2, o3 = s2.category, l2 = t3.dataItems.getIndex(r3);
  15836. if (l2) {
  15837. if (t3.xAxis == this && l2.categoryX == o3)
  15838. return l2;
  15839. if (t3.yAxis == this && l2.categoryY == o3)
  15840. return l2;
  15841. }
  15842. return t3.dataItems.each(function(e5) {
  15843. t3.xAxis == n3 && e5.categoryX == o3 && (a2 || (a2 = e5), Math.abs(r3 - a2.index) > Math.abs(r3 - e5.index) && (a2 = e5)), t3.yAxis == n3 && e5.categoryY == o3 && (a2 || (a2 = e5), Math.abs(r3 - a2.index) > Math.abs(r3 - e5.index) && (a2 = e5));
  15844. }), a2;
  15845. }
  15846. }
  15847. }, e3.prototype.getX = function(t3, e4, i3, n3, r3) {
  15848. var s2 = this.getPositionX(t3, e4, i3, n3, r3);
  15849. return M(s2) ? this.basePoint.x : this.renderer.positionToPoint(s2).x;
  15850. }, e3.prototype.getPositionX = function(t3, e4, i3, n3, r3) {
  15851. var s2;
  15852. return Z(e4) && (s2 = this.categoryToPosition(t3.categories[e4], i3)), r3 && (s2 = ut(s2, r3.start, r3.end)), s2;
  15853. }, e3.prototype.getY = function(t3, e4, i3, n3, r3) {
  15854. var s2 = this.getPositionY(t3, e4, i3, n3, r3);
  15855. return M(s2) ? this.basePoint.y : this.renderer.positionToPoint(s2).y;
  15856. }, e3.prototype.getPositionY = function(t3, e4, i3, n3, r3) {
  15857. var s2;
  15858. return Z(e4) && (s2 = this.categoryToPosition(t3.categories[e4], i3)), r3 && (s2 = ut(s2, r3.start, r3.end)), s2;
  15859. }, e3.prototype.getAngle = function(t3, e4, i3, n3, r3) {
  15860. var s2 = this.categoryToPosition(t3.categories[e4], i3);
  15861. return r3 && (s2 = ut(s2, r3.start, r3.end)), this.positionToAngle(s2);
  15862. }, e3.prototype.getCellStartPosition = function(t3) {
  15863. return this.roundPosition(t3, 0);
  15864. }, e3.prototype.getCellEndPosition = function(t3) {
  15865. return this.roundPosition(t3, 1);
  15866. }, e3.prototype.getTooltipText = function(t3) {
  15867. var e4 = this.dataItems.getIndex(this.positionToIndex(t3));
  15868. if (e4)
  15869. return this.tooltipDataItem = e4, this.tooltip.dataItem = e4, this.tooltipText ? this.tooltipText : this._adapterO ? this._adapterO.apply("getTooltipText", e4.category) : e4.category;
  15870. }, e3.prototype.positionToIndex = function(t3) {
  15871. (t3 = lt(t3, 10)) < 0 && (t3 = 0), t3 > 1 && (t3 = 1);
  15872. var e4 = this.startIndex, i3 = this.endIndex, n3 = i3 - e4 - this.startLocation - (1 - this.endLocation);
  15873. t3 += 1 / n3 * this.startLocation;
  15874. var r3 = null;
  15875. return this._axisBreaks && Qe(this._axisBreaks.iterator(), function(s2) {
  15876. var a2 = s2.startPosition, o3 = s2.endPosition, l2 = s2.adjustedStartValue, h2 = s2.adjustedEndValue;
  15877. l2 = gt(l2, e4), h2 = yt(h2, i3);
  15878. var p2 = s2.breakSize;
  15879. if (n3 -= (h2 - l2) * (1 - p2), t3 > o3)
  15880. e4 += (h2 - l2) * (1 - p2);
  15881. else if (!(t3 < a2)) {
  15882. var u2 = (t3 - a2) / (o3 - a2);
  15883. return r3 = l2 + Math.round(u2 * (h2 - l2)), false;
  15884. }
  15885. return true;
  15886. }), tt(r3) || (r3 = Math.floor(t3 * n3 + e4)), r3 >= this.dataItems.length && (r3 = this.dataItems.length - 1), r3;
  15887. }, e3.prototype.positionToCategory = function(t3) {
  15888. return this.getPositionLabel(t3);
  15889. }, e3.prototype.getPositionLabel = function(t3) {
  15890. var e4 = this.dataItems.getIndex(this.positionToIndex(t3));
  15891. if (e4)
  15892. return e4.category;
  15893. }, Object.defineProperty(e3.prototype, "basePoint", { get: function() {
  15894. return this.renderer.positionToPoint(1);
  15895. }, enumerable: true, configurable: true }), e3.prototype.initRenderer = function() {
  15896. t2.prototype.initRenderer.call(this), this.renderer.baseGrid.disabled = true;
  15897. }, Object.defineProperty(e3.prototype, "frequency", { get: function() {
  15898. return this._frequency;
  15899. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sortBySeries", { get: function() {
  15900. return this.getPropertyValue("sortBySeries");
  15901. }, set: function(t3) {
  15902. this.setPropertyValue("sortBySeries", t3, true);
  15903. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  15904. e4 && Z(e4.sortBySeries) && Q(e4.sortBySeries) && (this.map.hasKey(e4.sortBySeries) ? e4.sortBySeries = this.map.getKey(e4.sortBySeries) : (this.addDelayedMap("sortBySeries", e4.sortBySeries), delete e4.sortBySeries)), t2.prototype.processConfig.call(this, e4);
  15905. }, e3;
  15906. }(oh);
  15907. Ii.registeredClasses.CategoryAxis = Sh, Ii.registeredClasses.CategoryAxisDataItem = Oh;
  15908. var Ih = function(t2) {
  15909. function e3() {
  15910. var e4 = t2.call(this) || this;
  15911. return e4.className = "XYSeriesDataItem", e4.values.customValue = {}, e4.values.valueX = { stack: 0 }, e4.values.valueY = { stack: 0 }, e4.values.openValueX = {}, e4.values.openValueY = {}, e4.values.dateX = {}, e4.values.dateY = {}, e4.values.openDateX = {}, e4.values.openDateY = {}, e4.setLocation("dateX", 0.5, 0), e4.setLocation("dateY", 0.5, 0), e4.setLocation("categoryX", 0.5, 0), e4.setLocation("categoryY", 0.5, 0), e4.applyTheme(), e4;
  15912. }
  15913. return C(e3, t2), Object.defineProperty(e3.prototype, "valueX", { get: function() {
  15914. return this.values.valueX.value;
  15915. }, set: function(t3) {
  15916. this.setValue("valueX", t3);
  15917. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "customValue", { get: function() {
  15918. return this.values.customValue.value;
  15919. }, set: function(t3) {
  15920. this.setValue("customValue", t3);
  15921. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueY", { get: function() {
  15922. return this.values.valueY.value;
  15923. }, set: function(t3) {
  15924. this.setValue("valueY", t3);
  15925. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateX", { get: function() {
  15926. return this.getDate("dateX");
  15927. }, set: function(t3) {
  15928. this.setDate("dateX", t3);
  15929. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dateY", { get: function() {
  15930. return this.getDate("dateY");
  15931. }, set: function(t3) {
  15932. this.setDate("dateY", t3);
  15933. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "categoryX", { get: function() {
  15934. return this.categories.categoryX;
  15935. }, set: function(t3) {
  15936. this.setCategory("categoryX", t3);
  15937. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "categoryY", { get: function() {
  15938. return this.categories.categoryY;
  15939. }, set: function(t3) {
  15940. this.setCategory("categoryY", t3);
  15941. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openValueX", { get: function() {
  15942. return this.values.openValueX.value;
  15943. }, set: function(t3) {
  15944. this.setValue("openValueX", t3);
  15945. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openValueY", { get: function() {
  15946. return this.values.openValueY.value;
  15947. }, set: function(t3) {
  15948. this.setValue("openValueY", t3);
  15949. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openDateX", { get: function() {
  15950. return this.getDate("openDateX");
  15951. }, set: function(t3) {
  15952. this.setDate("openDateX", t3);
  15953. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openDateY", { get: function() {
  15954. return this.getDate("openDateY");
  15955. }, set: function(t3) {
  15956. this.setDate("openDateY", t3);
  15957. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openCategoryX", { get: function() {
  15958. return this.categories.openCategoryX;
  15959. }, set: function(t3) {
  15960. this.setCategory("openCategoryX", t3);
  15961. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "openCategoryY", { get: function() {
  15962. return this.categories.openCategoryY;
  15963. }, set: function(t3) {
  15964. this.setCategory("openCategoryY", t3);
  15965. }, enumerable: true, configurable: true }), e3.prototype.getMin = function(t3, e4, i3) {
  15966. var n3, r3 = this;
  15967. return tt(i3) || (i3 = 0), Ut(t3, function(t4) {
  15968. var s2;
  15969. s2 = e4 ? r3.getWorkingValue(t4) : r3.getValue(t4), ((s2 += i3) < n3 || !tt(n3)) && (n3 = s2);
  15970. }), n3;
  15971. }, e3.prototype.getMax = function(t3, e4, i3) {
  15972. var n3, r3 = this;
  15973. return tt(i3) || (i3 = 0), Ut(t3, function(t4) {
  15974. var s2;
  15975. s2 = e4 ? r3.getWorkingValue(t4) : r3.getValue(t4), ((s2 += i3) > n3 || !tt(n3)) && (n3 = s2);
  15976. }), n3;
  15977. }, e3;
  15978. }(th), Dh = function(t2) {
  15979. function e3() {
  15980. var e4 = t2.call(this) || this;
  15981. return e4.groupFields = {}, e4._xAxis = new ve(), e4._yAxis = new ve(), e4._xValueFields = [], e4._yValueFields = [], e4._baseInterval = {}, e4.dataGrouped = false, e4.usesShowFields = false, e4._dataSetChanged = false, e4._maxxX = 1e5, e4._maxxY = 1e5, e4._propertiesChanged = false, e4.outOfRange = false, e4.className = "XYSeries", e4.isMeasured = false, e4.groupFields.valueX = "close", e4.groupFields.valueY = "close", e4.groupFields.customValue = "close", e4.groupFields.openValueX = "open", e4.groupFields.openValueY = "open", e4.cursorTooltipEnabled = true, e4.cursorHoverEnabled = true, e4.excludeFromTotal = false, e4.mainContainer.mask = new Za(), e4.mainContainer.mask.setElement(e4.paper.add("path")), e4.stacked = false, e4.snapTooltip = false, e4._showBullets = false, e4.tooltip.pointerOrientation = "horizontal", e4.properties.stackToNegative = true, e4.hideTooltipWhileZooming = true, e4.setPropertyValue("maskBullets", true), e4.tooltip.events.on("hidden", function() {
  15982. e4.returnBulletDefaultState();
  15983. }, void 0, false), e4._disposers.push(e4._xAxis), e4._disposers.push(e4._yAxis), e4.observe(Ka, function() {
  15984. e4.inited && (e4._propertiesChanged = true, e4.legendDataItem && (e4.legendDataItem.childrenCreated = false), e4.chart && e4.chart.legend && e4.chart.legend.invalidateDataItems(), e4.invalidate());
  15985. }, void 0, false), e4.applyTheme(), e4;
  15986. }
  15987. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  15988. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("X/Y Series"));
  15989. }, e3.prototype.createDataItem = function() {
  15990. return new Ih();
  15991. }, e3.prototype.resetExtremes = function() {
  15992. this._tmin.clear(), this._tmax.clear(), this._smin.clear(), this._smax.clear();
  15993. }, e3.prototype.dataChangeUpdate = function() {
  15994. this.dataGrouped = false, this._baseInterval = {}, this._currentDataSetId = "", this.resetExtremes(), this.xAxis && this.xAxis.seriesDataChangeUpdate(this), this.yAxis && this.yAxis.seriesDataChangeUpdate(this);
  15995. }, e3.prototype.validateData = function() {
  15996. this._baseInterval = {};
  15997. var e4 = this.dataFields;
  15998. if (e4.valueYShow || e4.openValueXShow || e4.openValueXShow || e4.openValueYShow ? this.usesShowFields = true : this.usesShowFields = false, this.defineFields(), this.data.length > 0 && this.dataChangeUpdate(), t2.prototype.validateData.call(this), this.updateItemReaderText(), this.chart && (!Z(this.dataFields[this._xField]) || !Z(this.dataFields[this._yField])))
  15999. throw Error('Data fields for series "' + (this.name ? this.name : this.uid) + '" are not properly defined.');
  16000. this.inited && this.isHidden && this.hide(0), this.dataGrouped = false;
  16001. }, e3.prototype.processDataItem = function(e4, i3) {
  16002. try {
  16003. t2.prototype.processDataItem.call(this, e4, i3), this.xAxis.processSeriesDataItem(e4, "X"), this.yAxis.processSeriesDataItem(e4, "Y"), this.setInitialWorkingValues(e4);
  16004. } catch (t3) {
  16005. this._chart && this._chart.raiseCriticalError(t3);
  16006. }
  16007. }, e3.prototype.updateDataItem = function(e4) {
  16008. t2.prototype.updateDataItem.call(this, e4), this.xAxis.processSeriesDataItem(e4, "X"), this.yAxis.processSeriesDataItem(e4, "Y");
  16009. }, e3.prototype.setInitialWorkingValues = function(t3) {
  16010. }, e3.prototype.disposeData = function() {
  16011. t2.prototype.disposeData.call(this);
  16012. var e4 = this.xAxis, i3 = this.yAxis;
  16013. if (e4) {
  16014. var n3 = this.dataItemsByAxis.getKey(e4.uid);
  16015. n3 && n3.clear(), e4 instanceof Sh && this.clearCatAxis(e4);
  16016. }
  16017. if (i3) {
  16018. var r3 = this.dataItemsByAxis.getKey(i3.uid);
  16019. r3 && r3.clear(), i3 instanceof Sh && this.clearCatAxis(i3);
  16020. }
  16021. }, e3.prototype.clearCatAxis = function(t3) {
  16022. var e4 = this.uid;
  16023. t3.dataItems.each(function(t4) {
  16024. t4.seriesDataItems[e4] && (t4.seriesDataItems[e4] = []);
  16025. });
  16026. }, e3.prototype.defineFields = function() {
  16027. var t3 = this.xAxis, e4 = this.yAxis;
  16028. if (t3 && e4) {
  16029. var i3 = t3.axisFieldName, n3 = i3 + "X", r3 = "open" + En(i3) + "X", s2 = e4.axisFieldName, a2 = s2 + "Y", o3 = "open" + En(s2) + "Y";
  16030. this._xField = n3, this._yField = a2, this.dataFields[r3] && (this._xOpenField = r3), this.dataFields[o3] && (this._yOpenField = o3), this.dataFields[o3] || this.baseAxis != e4 || (this._yOpenField = a2), this.dataFields[r3] || this.baseAxis != t3 || (this._xOpenField = n3), this.stacked && this.baseAxis == t3 && (this._xOpenField = n3), this.stacked && this.baseAxis == e4 && (this._yOpenField = a2), t3 instanceof Sh && e4 instanceof Sh && (this._yOpenField || (this._yOpenField = a2)), this._xValueFields = [], this._yValueFields = [], this.addValueField(t3, this._xValueFields, this._xField), this.addValueField(t3, this._xValueFields, this._xOpenField), this.addValueField(e4, this._yValueFields, this._yField), this.addValueField(e4, this._yValueFields, this._yOpenField);
  16031. }
  16032. }, e3.prototype.addValueField = function(t3, e4, i3) {
  16033. t3 instanceof bh && Z(this.dataFields[i3]) && e4.indexOf(i3) == -1 && e4.push(i3);
  16034. }, e3.prototype.setCategoryAxisField = function(t3, e4) {
  16035. Z(this.dataFields[t3]) || (this.dataFields[t3] = e4.dataFields.category);
  16036. }, e3.prototype.setDateAxisField = function(t3, e4) {
  16037. Z(this.dataFields[t3]) || (this.dataFields[t3] = e4.dataFields.date);
  16038. }, e3.prototype.afterDraw = function() {
  16039. t2.prototype.afterDraw.call(this), this.createMask();
  16040. }, e3.prototype.createMask = function() {
  16041. if (this.mainContainer.mask) {
  16042. var t3 = this.getMaskPath();
  16043. ti(this.axisRanges.iterator(), function(e4) {
  16044. e4.axisFill.fillPath && (e4.axisFill.validate(), t3 += e4.axisFill.fillPath);
  16045. }), this.mainContainer.mask.path = t3;
  16046. }
  16047. }, e3.prototype.getMaskPath = function() {
  16048. return this.xAxis && this.yAxis ? Vo({ x: 0, y: 0, width: this.xAxis.axisLength, height: this.yAxis.axisLength }) : "";
  16049. }, e3.prototype.getAxisField = function(t3) {
  16050. return t3 == this.xAxis ? this.xField : t3 == this.yAxis ? this.yField : void 0;
  16051. }, e3.prototype.validateDataItems = function() {
  16052. var e4 = this.chart;
  16053. e4 && (this._maxxX = gt(1e5, 2 * e4.plotContainer.maxWidth), this._maxxY = gt(1e5, 2 * e4.plotContainer.maxHeight));
  16054. var i3 = this.xAxis, n3 = this.yAxis;
  16055. i3 && n3 && (i3.updateAxisBySeries(), n3.updateAxisBySeries()), t2.prototype.validateDataItems.call(this), i3 && n3 && (i3.postProcessSeriesDataItems(this), n3.postProcessSeriesDataItems(this));
  16056. }, e3.prototype.validateDataRange = function() {
  16057. var e4 = this.xAxis, i3 = this.yAxis;
  16058. e4 && i3 && (e4.dataRangeInvalid && e4.validateDataRange(), i3.dataRangeInvalid && i3.validateDataRange()), t2.prototype.validateDataRange.call(this);
  16059. }, e3.prototype.validate = function() {
  16060. var e4 = this.xAxis, i3 = this.yAxis;
  16061. if (e4 && i3) {
  16062. e4.invalid && e4.validate(), i3.invalid && i3.validate(), this.y = i3.pixelY, this.x = e4.pixelX, this._showBullets = true;
  16063. var n3 = this.minBulletDistance;
  16064. tt(n3) && this.baseAxis.axisLength / (this.endIndex - this.startIndex) < n3 && (this._showBullets = false);
  16065. }
  16066. if (this.updateTooltip(), !(e4 instanceof Ph && e4.groupData && !this.dataGrouped || i3 instanceof Ph && i3.groupData && !this.dataGrouped)) {
  16067. t2.prototype.validate.call(this);
  16068. var r3 = this.chart, s2 = this.maskBullets;
  16069. r3 && s2 && r3.className == "XYChart" && (r3.leftAxesContainer.layout != "vertical" && r3.rightAxesContainer.layout != "vertical" || (this.yAxis ? this.bulletsContainer.mask = this.yAxis.renderer.gridContainer : this.bulletsContainer.mask = void 0), r3.topAxesContainer.layout != "horizontal" && r3.bottomAxesContainer.layout != "horizontal" || (this.xAxis ? this.bulletsContainer.mask = this.xAxis.renderer.gridContainer : this.bulletsContainer.mask = void 0));
  16070. }
  16071. }, Object.defineProperty(e3.prototype, "xAxis", { get: function() {
  16072. if (this.chart) {
  16073. if (!this._xAxis.get()) {
  16074. var t3 = this.chart.xAxes.getIndex(0);
  16075. if (!t3)
  16076. throw Error("There are no X axes on chart.");
  16077. this.xAxis = t3;
  16078. }
  16079. return this._xAxis.get();
  16080. }
  16081. }, set: function(t3) {
  16082. this.setXAxis(t3);
  16083. }, enumerable: true, configurable: true }), e3.prototype.setXAxis = function(t3) {
  16084. var e4 = this._xAxis.get();
  16085. e4 != t3 && (e4 && (this.dataItemsByAxis.removeKey(e4.uid), this._xAxis.dispose(), e4.series.removeValue(this)), this._xAxis.set(t3, t3.registerSeries(this)), this.dataItemsByAxis.setKey(t3.uid, new Pi()), this.invalidateData());
  16086. }, Object.defineProperty(e3.prototype, "yAxis", { get: function() {
  16087. if (this.chart) {
  16088. if (!this._yAxis.get()) {
  16089. var t3 = this.chart.yAxes.getIndex(0);
  16090. if (!t3)
  16091. throw Error("There are no Y axes on chart.");
  16092. this.yAxis = t3;
  16093. }
  16094. return this._yAxis.get();
  16095. }
  16096. }, set: function(t3) {
  16097. this.setYAxis(t3);
  16098. }, enumerable: true, configurable: true }), e3.prototype.setYAxis = function(t3) {
  16099. var e4 = this._yAxis.get();
  16100. e4 != t3 && (e4 && (this.dataItemsByAxis.removeKey(e4.uid), this._yAxis.dispose(), e4.series.removeValue(this)), this._yAxis.set(t3, t3.registerSeries(this)), t3.chart instanceof Ah && t3.chart.handleYAxisSet(this), this.dataItemsByAxis.setKey(t3.uid, new Pi()), this.invalidateData());
  16101. }, Object.defineProperty(e3.prototype, "baseAxis", { get: function() {
  16102. var t3 = this.xAxis, e4 = this.yAxis;
  16103. return !this._baseAxis && t3 && e4 && (e4 instanceof Ph && (this._baseAxis = e4), t3 instanceof Ph && (this._baseAxis = t3), e4 instanceof Sh && (this._baseAxis = e4), t3 instanceof Sh && (this._baseAxis = t3), this._baseAxis || (this._baseAxis = t3)), this._baseAxis;
  16104. }, set: function(t3) {
  16105. this._baseAxis != t3 && (this._baseAxis = t3, this.invalidate());
  16106. }, enumerable: true, configurable: true }), e3.prototype.addData = function(e4, i3, n3) {
  16107. t2.prototype.addData.call(this, e4, i3, n3), this.scrollbarSeries && (this.scrollbarSeries.addData(e4, i3, true), this.scrollbarSeries._parseDataFrom = this._parseDataFrom);
  16108. }, e3.prototype.setData = function(e4) {
  16109. t2.prototype.setData.call(this, e4), this.scrollbarSeries && this.scrollbarSeries.setData(e4);
  16110. }, e3.prototype.setDataSet = function(e4) {
  16111. var i3 = t2.prototype.setDataSet.call(this, e4);
  16112. if (i3) {
  16113. this._dataSetChanged = true;
  16114. var n3 = this.dataItems;
  16115. if (this.resetExtremes(), n3 && n3.length > 0) {
  16116. var r3 = this.xAxis, s2 = this.yAxis;
  16117. this._prevStartIndex = void 0, this._prevEndIndex = void 0, this._startIndex = void 0, this._endIndex = void 0, this.appeared || this.processValues(false), r3 instanceof Ph && r3 == this.baseAxis && (this._tmin.setKey(r3.uid, n3.getIndex(0).dateX.getTime()), this._tmax.setKey(r3.uid, n3.getIndex(n3.length - 1).dateX.getTime()), this.dispatch("extremeschanged")), s2 instanceof Ph && s2 == this.baseAxis && (this._tmin.setKey(s2.uid, n3.getIndex(0).dateY.getTime()), this._tmax.setKey(s2.uid, n3.getIndex(n3.length - 1).dateY.getTime()), this.dispatch("extremeschanged"));
  16118. }
  16119. }
  16120. return i3;
  16121. }, e3.prototype.processValues = function(e4) {
  16122. t2.prototype.processValues.call(this, e4);
  16123. var i3 = this.xAxis, n3 = this.yAxis;
  16124. if (i3 && n3) {
  16125. var r3 = this.dataItems, s2 = 1 / 0, a2 = -1 / 0, o3 = 1 / 0, l2 = -1 / 0, h2 = this.startIndex, p2 = this.endIndex, u2 = h2, d2 = p2;
  16126. e4 || (h2 = 0, p2 = this.dataItems.length);
  16127. for (var c2 = h2; c2 < p2; c2++) {
  16128. var f2 = r3.getIndex(c2);
  16129. this.getStackValue(f2, e4);
  16130. var g2 = f2.getValue("valueX", "stack"), y2 = f2.getValue("valueY", "stack");
  16131. s2 = yt(f2.getMin(this._xValueFields, e4, g2), s2), o3 = yt(f2.getMin(this._yValueFields, e4, y2), o3), a2 = gt(f2.getMax(this._xValueFields, e4, g2), a2), l2 = gt(f2.getMax(this._yValueFields, e4, y2), l2), this.stacked && (this.baseAxis == i3 && (y2 < o3 && (o3 = y2), y2 > l2 && (l2 = y2)), this.baseAxis == n3 && (g2 < s2 && (s2 = g2), g2 > a2 && (a2 = g2)));
  16132. }
  16133. i3.processSeriesDataItems(), n3.processSeriesDataItems();
  16134. var m2 = i3.uid, v2 = n3.uid;
  16135. if (this.xAxis instanceof bh && (s2 == 1 / 0 || a2 == -1 / 0))
  16136. return this._smin.setKey(m2, void 0), this._smax.setKey(m2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16137. if (this.yAxis instanceof bh && (o3 == 1 / 0 || l2 == -1 / 0))
  16138. return this._smin.setKey(v2, void 0), this._smax.setKey(v2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16139. if (!e4 && (this._tmin.getKey(m2) != s2 || this._tmax.getKey(m2) != a2 || this._tmin.getKey(v2) != o3 || this._tmax.getKey(v2) != l2)) {
  16140. this._tmin.setKey(m2, s2), this._tmax.setKey(m2, a2), this._tmin.setKey(v2, o3), this._tmax.setKey(v2, l2);
  16141. var b2 = this.stackedSeries;
  16142. b2 && (b2.isDisposed() ? this.stackedSeries = void 0 : b2.processValues(false)), this.dispatchImmediately("extremeschanged");
  16143. }
  16144. if (h2 != u2 || p2 != d2)
  16145. for (s2 = 1 / 0, a2 = -1 / 0, o3 = 1 / 0, l2 = -1 / 0, c2 = u2; c2 < d2; c2++)
  16146. f2 = r3.getIndex(c2), this.getStackValue(f2, e4), g2 = f2.getValue("valueX", "stack"), y2 = f2.getValue("valueY", "stack"), s2 = yt(f2.getMin(this._xValueFields, e4, g2), s2), o3 = yt(f2.getMin(this._yValueFields, e4, y2), o3), a2 = gt(f2.getMax(this._xValueFields, e4, g2), a2), l2 = gt(f2.getMax(this._yValueFields, e4, y2), l2), this.stacked && (this.baseAxis == i3 && (y2 < o3 && (o3 = y2), y2 > l2 && (l2 = y2)), this.baseAxis == n3 && (g2 < s2 && (s2 = g2), g2 > a2 && (a2 = g2)));
  16147. if (this.xAxis instanceof bh && (s2 == 1 / 0 || a2 == -1 / 0))
  16148. return this._smin.setKey(m2, void 0), this._smax.setKey(m2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16149. if (this.yAxis instanceof bh && (o3 == 1 / 0 || l2 == -1 / 0))
  16150. return this._smin.setKey(v2, void 0), this._smax.setKey(v2, void 0), void this.dispatchImmediately("selectionextremeschanged");
  16151. if ((this._smin.getKey(m2) != s2 || this._smax.getKey(m2) != a2 || this._smin.getKey(v2) != o3 || this._smax.getKey(v2) != l2) && (this._smin.setKey(m2, s2), this._smax.setKey(m2, a2), this._smin.setKey(v2, o3), this._smax.setKey(v2, l2), this.appeared || this.start != 0 || this.end != 1 || this.dataItems != this.mainDataSet)) {
  16152. var x2, _2, P2 = false;
  16153. n3 instanceof bh && !(n3 instanceof Ph) && ((!tt(x2 = this._tmin.getKey(v2)) || (this.usesShowFields || this._dataSetChanged || i3 instanceof Ph && i3.groupData && this.isShowing) && o3 < x2 || this.stackedSeries && !this.isHidden) && (this._tmin.setKey(v2, o3), P2 = true), (!tt(_2 = this._tmax.getKey(v2)) || (this.usesShowFields || this._dataSetChanged || i3 instanceof Ph && i3.groupData && this.isShowing) && l2 > _2 || this.stackedSeries && !this.isHidden) && (this._tmax.setKey(v2, l2), P2 = true)), i3 instanceof bh && !(i3 instanceof Ph) && ((!tt(x2 = this._tmin.getKey(m2)) || (this.usesShowFields || this._dataSetChanged || n3 instanceof Ph && n3.groupData && this.isShowing) && s2 < x2 || this.stackedSeries && !this.isHidden) && (this._tmin.setKey(m2, s2), P2 = true), (!tt(_2 = this._tmax.getKey(m2)) || (this.usesShowFields || this._dataSetChanged || n3 instanceof Ph && n3.groupData && this.isShowing) && a2 > _2 || this.stackedSeries && !this.isHidden) && (this._tmax.setKey(m2, a2), P2 = true)), P2 && this.dispatchImmediately("extremeschanged"), this.start == 0 && this.end == 1 && (this._dataSetChanged = false), this.dispatchImmediately("selectionextremeschanged");
  16154. }
  16155. !e4 && this.stacked && this.processValues(true);
  16156. }
  16157. }, e3.prototype.hideTooltip = function(e4) {
  16158. t2.prototype.hideTooltip.call(this, e4), this.returnBulletDefaultState(), this._prevTooltipDataItem = void 0;
  16159. }, e3.prototype.showTooltipAtPosition = function(t3, e4) {
  16160. var i3;
  16161. if (this.visible && !this.isHiding && !this.isShowing) {
  16162. var n3 = this._xAxis.get(), r3 = this._yAxis.get();
  16163. n3 == this.baseAxis && (i3 = n3.getSeriesDataItem(this, n3.toAxisPosition(t3), this.snapTooltip)), r3 == this.baseAxis && (i3 = r3.getSeriesDataItem(this, r3.toAxisPosition(e4), this.snapTooltip));
  16164. var s2 = this.showTooltipAtDataItem(i3);
  16165. if (s2)
  16166. return s2;
  16167. if (!this.tooltipText && !this.tooltipHTML)
  16168. return;
  16169. }
  16170. this.hideTooltip();
  16171. }, e3.prototype.getAdjustedXLocation = function(t3, e4, i3) {
  16172. return t3.locations[e4];
  16173. }, e3.prototype.getAdjustedYLocation = function(t3, e4, i3) {
  16174. return t3.locations[e4];
  16175. }, e3.prototype.showTooltipAtDataItem = function(t3) {
  16176. var e4, i3, n3 = this.chart.cursor;
  16177. if (n3 && n3.hideSeriesTooltipsOnSelection && n3.selection.visible && n3.downPoint)
  16178. this.hideTooltip();
  16179. else if (this.returnBulletDefaultState(t3), t3 && t3.visible) {
  16180. if (this.updateLegendValue(t3), this.cursorTooltipEnabled) {
  16181. this.tooltipDataItem = t3;
  16182. var r3 = this.tooltipXField, s2 = this.tooltipYField;
  16183. if (Z(t3[r3]) && Z(t3[s2])) {
  16184. var a2 = this.getPoint(t3, r3, s2, this.getAdjustedXLocation(t3, r3), this.getAdjustedYLocation(t3, s2));
  16185. if (a2 && (this.chart.className != "XYChart" || !(a2.y < -1 || a2.y > this.yAxis.pixelHeight + 1 || a2.x < -1 || a2.x > this.xAxis.pixelWidth + 1))) {
  16186. if (this.tooltipX = a2.x, this.tooltipY = a2.y, this._prevTooltipDataItem != t3 && (this.dispatchImmediately("tooltipshownat", { type: "tooltipshownat", target: this, dataItem: t3 }), this._prevTooltipDataItem = t3), this.cursorHoverEnabled)
  16187. try {
  16188. for (var o3 = D(t3.sprites), l2 = o3.next(); !l2.done; l2 = o3.next()) {
  16189. var h2 = l2.value;
  16190. !h2.parent.visible || h2.isHidden || h2.__disabled || h2.disabled || h2.isHiding || (h2.interactions.isRealHover || (h2.dispatchImmediately("over"), h2.interactions.isRealHover = true), h2.isHover = true);
  16191. }
  16192. } catch (t4) {
  16193. e4 = { error: t4 };
  16194. } finally {
  16195. try {
  16196. l2 && !l2.done && (i3 = o3.return) && i3.call(o3);
  16197. } finally {
  16198. if (e4)
  16199. throw e4.error;
  16200. }
  16201. }
  16202. return this.showTooltip() ? ur({ x: a2.x, y: a2.y }, this) : void 0;
  16203. }
  16204. }
  16205. }
  16206. } else
  16207. this.updateLegendValue(t3, true);
  16208. }, e3.prototype.returnBulletDefaultState = function(t3) {
  16209. var e4, i3;
  16210. if (this._prevTooltipDataItem && this._prevTooltipDataItem != t3)
  16211. try {
  16212. for (var n3 = D(this._prevTooltipDataItem.sprites), r3 = n3.next(); !r3.done; r3 = n3.next()) {
  16213. var s2 = r3.value;
  16214. if (s2.isDisposed())
  16215. this._prevTooltipDataItem = void 0;
  16216. else {
  16217. var a2 = s2.interactions.isRealHover;
  16218. s2.isHover = false, a2 && s2.dispatchImmediately("out");
  16219. }
  16220. }
  16221. } catch (t4) {
  16222. e4 = { error: t4 };
  16223. } finally {
  16224. try {
  16225. r3 && !r3.done && (i3 = n3.return) && i3.call(n3);
  16226. } finally {
  16227. if (e4)
  16228. throw e4.error;
  16229. }
  16230. }
  16231. }, e3.prototype.shouldCreateBullet = function(t3, e4) {
  16232. var i3 = e4.xField;
  16233. Z(i3) || (i3 = this.xField);
  16234. var n3 = e4.yField;
  16235. if (Z(n3) || (n3 = this.yField), this.xAxis instanceof bh && !t3.hasValue([i3]) || this.yAxis instanceof bh && !t3.hasValue([n3]))
  16236. return false;
  16237. if (e4.disabled) {
  16238. var r3 = e4.propertyFields.disabled, s2 = t3.dataContext;
  16239. return !(!s2 || s2[r3] !== false);
  16240. }
  16241. return true;
  16242. }, e3.prototype.updateTooltip = function() {
  16243. this.hideTooltipWhileZooming || !this.tooltip || this.tooltip.isHidden || this.isHiding || this.isHidden || !this.tooltipDataItem || this.showTooltipAtDataItem(this.tooltipDataItem);
  16244. }, e3.prototype.positionBullet = function(e4) {
  16245. t2.prototype.positionBullet.call(this, e4);
  16246. var i3 = e4.dataItem, n3 = e4.xField;
  16247. Z(n3) || (n3 = this.xField);
  16248. var r3 = e4.yField;
  16249. Z(r3) || (r3 = this.yField);
  16250. var s2 = this.xAxis, a2 = this.yAxis;
  16251. if (s2 instanceof bh && !i3.hasValue([n3]) || a2 instanceof bh && !i3.hasValue([r3]))
  16252. e4.visible = false;
  16253. else {
  16254. var o3 = this.getBulletLocationX(e4, n3), l2 = this.getBulletLocationY(e4, r3);
  16255. if (this.getPoint(i3, n3, r3, o3, l2)) {
  16256. var h2 = this.xOpenField, p2 = this.yOpenField, u2 = void 0, d2 = void 0;
  16257. if (s2 instanceof Ph) {
  16258. tt(o3) || (o3 = 0);
  16259. var c2 = void 0, f2 = i3.getWorkingValue(n3);
  16260. if (h2 ? c2 = i3.getWorkingValue(h2) : s2 == this.baseAxis && (c2 = s2.baseValue), tt(c2) || (c2 = f2), (c2 += _2 = i3.getValue("valueX", "stack")) == (f2 += _2)) {
  16261. var g2 = s2.baseInterval, y2 = s2.dateFormatter;
  16262. c2 = aa(new Date(c2), g2.timeUnit, g2.count, y2.firstDayOfWeek, y2.utc, void 0, y2.timezoneMinutes, y2.timezone).getTime(), f2 = sa(new Date(c2), g2.timeUnit, g2.count, y2.utc).getTime();
  16263. }
  16264. var m2 = void 0;
  16265. m2 = s2 == this.baseAxis ? c2 + (f2 - c2) * o3 : c2 + (f2 - c2) * (1 - o3), u2 = s2.valueToPosition(m2);
  16266. } else if (s2 instanceof bh)
  16267. tt(o3) || (o3 = 0), c2 = void 0, f2 = i3.getWorkingValue(n3), c2 = h2 ? i3.getWorkingValue(h2) : s2.baseValue, m2 = (c2 += _2 = i3.getValue("valueX", "stack")) + ((f2 += _2) - c2) * (1 - o3), u2 = s2.valueToPosition(m2);
  16268. else if (s2 instanceof Sh) {
  16269. var v2 = this.getAdjustedXLocation(i3, n3, e4.locationX), b2 = this.getAdjustedXLocation(i3, h2, e4.locationX);
  16270. u2 = s2.categoryToPosition(i3[n3], v2);
  16271. var x2 = void 0;
  16272. h2 && (x2 = s2.categoryToPosition(i3[h2], b2)), tt(x2) || (x2 = 1), u2 = x2 + (u2 - x2) * o3;
  16273. }
  16274. if (a2 instanceof Ph)
  16275. tt(l2) || (l2 = 0), c2 = void 0, f2 = i3.getWorkingValue(r3), p2 ? c2 = i3.getWorkingValue(p2) : a2 == this.baseAxis && (c2 = a2.baseValue), tt(c2) || (c2 = f2), (c2 += _2 = i3.getValue("valueY", "stack")) == (f2 += _2) && (g2 = a2.baseInterval, y2 = a2.dateFormatter, c2 = aa(new Date(c2), g2.timeUnit, g2.count, y2.firstDayOfWeek, y2.utc, void 0, y2.timezoneMinutes, y2.timezone).getTime(), f2 = sa(new Date(c2), g2.timeUnit, g2.count, y2.utc).getTime()), m2 = void 0, m2 = a2 == this.baseAxis ? c2 + (f2 - c2) * l2 : c2 + (f2 - c2) * (1 - l2), d2 = a2.valueToPosition(m2);
  16276. else if (a2 instanceof bh) {
  16277. var _2;
  16278. tt(l2) || (l2 = 0), c2 = void 0, f2 = i3.getWorkingValue(r3), c2 = p2 ? i3.getWorkingValue(p2) : a2.baseValue, m2 = (c2 += _2 = i3.getValue("valueY", "stack")) + ((f2 += _2) - c2) * (1 - l2), d2 = a2.valueToPosition(m2);
  16279. } else if (a2 instanceof Sh) {
  16280. d2 = a2.categoryToPosition(i3[r3], l2);
  16281. var P2 = this.getAdjustedYLocation(i3, r3, e4.locationY), w2 = this.getAdjustedYLocation(i3, p2, e4.locationY);
  16282. d2 = a2.categoryToPosition(i3[r3], P2);
  16283. var C2 = void 0;
  16284. p2 && (C2 = a2.categoryToPosition(i3[p2], w2)), tt(C2) || (C2 = 1), d2 = C2 + (d2 - C2) * l2;
  16285. }
  16286. e4.visible = true, this.positionBulletReal(e4, u2, d2);
  16287. } else
  16288. e4.visible = false;
  16289. }
  16290. }, e3.prototype.positionBulletReal = function(t3, e4, i3) {
  16291. t3.x = this.xAxis.renderer.positionToPoint(e4, i3).x, t3.y = this.yAxis.renderer.positionToPoint(i3, e4).y;
  16292. }, e3.prototype.getBulletLocationX = function(t3, e4) {
  16293. var i3 = t3.locationX, n3 = t3.dataItem;
  16294. return tt(i3) || (i3 = n3.workingLocations[e4]), i3;
  16295. }, e3.prototype.getBulletLocationY = function(t3, e4) {
  16296. var i3 = t3.locationY, n3 = t3.dataItem;
  16297. return tt(i3) || (i3 = n3.workingLocations[e4]), i3;
  16298. }, e3.prototype.updateStacking = function() {
  16299. var t3 = this;
  16300. this.invalidateDataItems(), this.chart && this.chart.series.each(function(e4) {
  16301. e4.baseAxis == t3.baseAxis && (e4.stackedSeries = void 0, e4.invalidateDataItems(), e4.invalidateProcessedData());
  16302. });
  16303. }, Object.defineProperty(e3.prototype, "stacked", { get: function() {
  16304. return this.getPropertyValue("stacked");
  16305. }, set: function(t3) {
  16306. if (this.setPropertyValue("stacked", t3, true)) {
  16307. this.updateStacking();
  16308. var e4, i3 = this.xAxis, n3 = this.yAxis;
  16309. t3 || (i3 != this.baseAxis && i3 instanceof bh && (e4 = this.xField), n3 != this.baseAxis && n3 instanceof bh && (e4 = this.yField), e4 && this.dataItems.each(function(t4) {
  16310. t4.setCalculatedValue(e4, 0, "stack");
  16311. }));
  16312. }
  16313. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "snapTooltip", { get: function() {
  16314. return this.getPropertyValue("snapTooltip");
  16315. }, set: function(t3) {
  16316. this.setPropertyValue("snapTooltip", t3);
  16317. }, enumerable: true, configurable: true }), e3.prototype.show = function(e4) {
  16318. var i3, n3 = this;
  16319. this.isHidden && (this.appeared && this.xAxis instanceof Ph && this.xAxis.groupData && (this._tmin.setKey(this.yAxis.uid, void 0), this._tmax.setKey(this.yAxis.uid, void 0)), this.appeared && this.yAxis instanceof Ph && this.yAxis.groupData && (this._tmin.setKey(this.xAxis.uid, void 0), this._tmax.setKey(this.xAxis.uid, void 0))), this.xAxis instanceof bh && this.xAxis != this.baseAxis && (i3 = this._xValueFields), this.yAxis instanceof bh && this.yAxis != this.baseAxis && (i3 = this._yValueFields);
  16320. var r3, s2 = this.startIndex, a2 = this.endIndex, o3 = 0, l2 = this.defaultState.transitionDuration;
  16321. tt(e4) && (l2 = e4), ls.animationsEnabled || (l2 = 0), ti(ai(this.dataItems.iterator()), function(t3) {
  16322. var e5 = t3[0], h3 = t3[1], p2 = l2;
  16323. (e5 < n3.startIndex - 10 || e5 > n3.endIndex + 10) && (p2 = 0, o3 = 0), n3.sequencedInterpolation && p2 > 0 && (o3 = n3.sequencedInterpolationDelay * e5 + l2 * (e5 - s2) / (a2 - s2)), r3 = h3.show(p2, o3, i3);
  16324. }), this.dataSets.each(function(t3, e5) {
  16325. e5 != n3.dataItems && e5.each(function(t4) {
  16326. t4.events.disable(), t4.show(0, 0, i3), t4.events.enable();
  16327. });
  16328. }), this.mainDataSet != this.dataItems && this.mainDataSet.each(function(t3) {
  16329. t3.events.disable(), t3.show(0, 0, i3), t3.events.enable();
  16330. });
  16331. var h2 = t2.prototype.show.call(this, e4);
  16332. return r3 && !r3.isFinished() && (h2 = r3), this.hidden && (this.dispatchImmediately("selectionextremeschanged"), this.hidden = false), h2;
  16333. }, e3.prototype.hide = function(e4) {
  16334. var i3, n3, r3 = this, s2 = this.xAxis;
  16335. s2 instanceof bh && s2 != this.baseAxis && (i3 = this._xValueFields, n3 = this.stacked || s2.minZoomed < s2.baseValue && s2.maxZoomed > s2.baseValue || this.stackedSeries ? s2.baseValue : s2.min);
  16336. var a2 = this.yAxis;
  16337. a2 instanceof bh && a2 != this.baseAxis && (i3 = this._yValueFields, n3 = this.stacked || a2.minZoomed < a2.baseValue && a2.maxZoomed > a2.baseValue || this.stackedSeries ? a2.baseValue : a2.min);
  16338. var o3 = this.startIndex, l2 = this.endIndex, h2 = this.hiddenState.transitionDuration;
  16339. tt(e4) && (h2 = e4), ls.animationsEnabled || (h2 = 0);
  16340. var p2, u2 = 0;
  16341. ti(ai(this.dataItems.iterator()), function(t3) {
  16342. var e5 = t3[0], s3 = t3[1], a3 = h2;
  16343. (e5 < r3.startIndex - 10 || e5 > r3.endIndex + 10) && (a3 = 0), a3 == 0 ? s3.hide(0, 0, n3, i3) : (r3.sequencedInterpolation && a3 > 0 && (u2 = r3.sequencedInterpolationDelay * e5 + h2 * (e5 - o3) / (l2 - o3)), p2 = s3.hide(a3, u2, n3, i3));
  16344. }), this.dataSets.each(function(t3, e5) {
  16345. e5 != r3.dataItems && e5.each(function(t4) {
  16346. t4.events.disable(), t4.hide(0, 0, n3, i3), t4.events.enable();
  16347. });
  16348. }), this.mainDataSet != this.dataItems && this.mainDataSet.each(function(t3) {
  16349. t3.events.disable(), t3.hide(0, 0, n3, i3), t3.events.enable();
  16350. });
  16351. var d2 = t2.prototype.hide.call(this, h2);
  16352. return d2 && !d2.isFinished() && d2.delay(u2), p2 && !p2.isFinished() && (d2 = p2), this.validateDataElements(), d2;
  16353. }, e3.prototype.handleDataItemWorkingValueChange = function(e4, i3) {
  16354. t2.prototype.handleDataItemWorkingValueChange.call(this, e4, i3), ti(this.baseAxis.series.iterator(), function(t3) {
  16355. (t3.stacked || t3.stackedSeries) && t3.invalidateProcessedData();
  16356. });
  16357. }, e3.prototype.getStackValue = function(t3, e4) {
  16358. var i3 = this, n3 = this.xAxis, r3 = this.yAxis;
  16359. if (this.stacked && n3 && r3) {
  16360. var s2, a2 = this.chart, o3 = a2.series.indexOf(this);
  16361. n3 != this.baseAxis && n3 instanceof bh && (s2 = this.xField), r3 != this.baseAxis && r3 instanceof bh && (s2 = this.yField), s2 && (t3.setCalculatedValue(s2, 0, "stack"), Qe(a2.series.range(0, o3).backwards().iterator(), function(a3) {
  16362. if (a3.xAxis == n3 && a3.yAxis == r3 && a3.className == i3.className) {
  16363. a3.stackedSeries = i3;
  16364. var o4 = a3.dataItems.getIndex(t3.index);
  16365. if (o4 && o4.hasValue(i3._xValueFields) && o4.hasValue(i3._yValueFields)) {
  16366. var l2, h2 = t3.getValue(s2), p2 = o4.getValue(s2) + o4.getValue(s2, "stack");
  16367. if (l2 = e4 ? o4.getWorkingValue(s2) + o4.getValue(s2, "stack") : o4.getValue(s2) + o4.getValue(s2, "stack"), !i3.stackToNegative)
  16368. return t3.setCalculatedValue(s2, l2, "stack"), false;
  16369. if (h2 >= 0 && p2 >= 0 || h2 < 0 && p2 < 0)
  16370. return t3.setCalculatedValue(s2, l2, "stack"), false;
  16371. if (!a3.stacked)
  16372. return false;
  16373. } else if (!a3.stacked)
  16374. return false;
  16375. }
  16376. return true;
  16377. }));
  16378. }
  16379. }, Object.defineProperty(e3.prototype, "stackToNegative", { get: function() {
  16380. return this.getPropertyValue("stackToNegative");
  16381. }, set: function(t3) {
  16382. this.setPropertyValue("stackToNegative", t3, true);
  16383. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xField", { get: function() {
  16384. return this._xField;
  16385. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yField", { get: function() {
  16386. return this._yField;
  16387. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xOpenField", { get: function() {
  16388. return this._xOpenField;
  16389. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yOpenField", { get: function() {
  16390. return this._yOpenField;
  16391. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipXField", { get: function() {
  16392. return this._tooltipXField ? this._tooltipXField : this._xField;
  16393. }, set: function(t3) {
  16394. this._tooltipXField = t3;
  16395. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipYField", { get: function() {
  16396. return this._tooltipYField ? this._tooltipYField : this._yField;
  16397. }, set: function(t3) {
  16398. this._tooltipYField = t3;
  16399. }, enumerable: true, configurable: true }), e3.prototype.min = function(t3) {
  16400. return this._tmin.getKey(t3.uid);
  16401. }, e3.prototype.max = function(t3) {
  16402. return this._tmax.getKey(t3.uid);
  16403. }, e3.prototype.selectionMin = function(t3) {
  16404. return this._smin.getKey(t3.uid);
  16405. }, e3.prototype.selectionMax = function(t3) {
  16406. return this._smax.getKey(t3.uid);
  16407. }, e3.prototype.processConfig = function(e4) {
  16408. if (e4) {
  16409. if (Z(e4.baseAxis) && Q(e4.baseAxis) && (this.map.hasKey(e4.baseAxis) ? e4.baseAxis = this.map.getKey(e4.baseAxis) : (this.processingErrors.push("[XYSeries (" + (this.name || "unnamed") + ')] No axis with id "' + e4.baseAxis + '" found for `baseAxis`.'), delete e4.baseAxis)), Z(e4.xAxis) && Q(e4.xAxis) && (this.map.hasKey(e4.xAxis) ? e4.xAxis = this.map.getKey(e4.xAxis) : (this.processingErrors.push("[XYSeries (" + (this.name || "unnamed") + ')] No axis with id "' + e4.xAxis + '" found for `xAxis`.'), delete e4.xAxis)), Z(e4.yAxis) && Q(e4.yAxis) && (this.map.hasKey(e4.yAxis) ? e4.yAxis = this.map.getKey(e4.yAxis) : (this.processingErrors.push("[XYSeries (" + (this.name || "unnamed") + ')] No axis with id "' + e4.yAxis + '" found for `yAxis`.'), delete e4.yAxis)), Z(e4.axisRanges) && it(e4.axisRanges))
  16410. for (var i3 = 0, n3 = e4.axisRanges.length; i3 < n3; i3++) {
  16411. var r3 = e4.axisRanges[i3];
  16412. Z(r3.type) || (r3.type = "AxisDataItem"), Z(r3.axis) && Q(r3.axis) && this.map.hasKey(r3.axis) ? r3.component = this.map.getKey(r3.axis) : Z(r3.component) && Q(r3.component) && this.map.hasKey(r3.component) && (r3.component = this.map.getKey(r3.component));
  16413. }
  16414. Z(e4.dataFields) && et(e4.dataFields) || this.processingErrors.push("`dataFields` is not set for series [" + (this.name || "unnamed") + "]");
  16415. }
  16416. t2.prototype.processConfig.call(this, e4);
  16417. }, e3.prototype.getPoint = function(t3, e4, i3, n3, r3, s2, a2) {
  16418. if (this.xAxis && this.yAxis) {
  16419. var o3 = this.xAxis.getX(t3, e4, n3), l2 = this.yAxis.getY(t3, i3, r3);
  16420. return { x: o3 = ut(o3, -this._maxxX, this._maxxX), y: l2 = ut(l2, -this._maxxY, this._maxxY) };
  16421. }
  16422. }, e3.prototype.updateItemReaderText = function() {
  16423. if (!this._itemReaderTextChanged) {
  16424. var t3 = "";
  16425. Ne(this.dataFields, function(e4, i3) {
  16426. t3 += "{" + e4 + "} ";
  16427. }), this.itemReaderText = t3, this._itemReaderTextChanged = false;
  16428. }
  16429. }, Object.defineProperty(e3.prototype, "cursorTooltipEnabled", { get: function() {
  16430. return this.getPropertyValue("cursorTooltipEnabled");
  16431. }, set: function(t3) {
  16432. this.setPropertyValue("cursorTooltipEnabled", t3);
  16433. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cursorHoverEnabled", { get: function() {
  16434. return this.getPropertyValue("cursorHoverEnabled");
  16435. }, set: function(t3) {
  16436. this.setPropertyValue("cursorHoverEnabled", t3);
  16437. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "excludeFromTotal", { get: function() {
  16438. return this.getPropertyValue("excludeFromTotal");
  16439. }, set: function(t3) {
  16440. this.setPropertyValue("excludeFromTotal", t3);
  16441. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideTooltipWhileZooming", { get: function() {
  16442. return this.getPropertyValue("hideTooltipWhileZooming");
  16443. }, set: function(t3) {
  16444. this.setPropertyValue("hideTooltipWhileZooming", t3);
  16445. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maskBullets", { get: function() {
  16446. return this.getPropertyValue("maskBullets");
  16447. }, set: function(t3) {
  16448. this.setPropertyValue("maskBullets", t3);
  16449. var e4 = this.chart;
  16450. e4 && (this.bulletsContainer.parent = t3 ? e4.bulletsContainer : e4.axisBulletsContainer);
  16451. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  16452. this.groupFields = Sn(e4.groupFields, {}), t2.prototype.copyFrom.call(this, e4);
  16453. }, e3.prototype.dispose = function() {
  16454. this.scrollbarSeries && this.scrollbarSeries.dispose(), t2.prototype.dispose.call(this);
  16455. }, e3;
  16456. }(eh);
  16457. Ii.registeredClasses.XYSeries = Dh, Ii.registeredClasses.XYSeriesDataItem = Ih;
  16458. var kh = function(t2) {
  16459. function e3() {
  16460. var e4 = t2.call(this) || this;
  16461. e4._chart = new ve(), e4.className = "XYChartScrollbar";
  16462. var i3 = new Ys();
  16463. e4.padding(0, 0, 0, 0);
  16464. var n3 = e4.createChild(Ah);
  16465. if (n3.shouldClone = false, n3.margin(0, 0, 0, 0), n3.padding(0, 0, 0, 0), n3.interactionsEnabled = false, e4._scrollbarChart = n3, !Ir()) {
  16466. var r3 = new Sl();
  16467. r3.filterUnits = "userSpaceOnUse", n3.plotContainer.filters.push(r3);
  16468. }
  16469. e4._disposers.push(e4._scrollbarChart), e4.minHeight = 60, e4.minWidth = 60;
  16470. var s2 = e4.createChild(Za);
  16471. s2.shouldClone = false, s2.setElement(e4.paper.add("path")), s2.fill = i3.getFor("background"), s2.fillOpacity = 0.8, s2.interactionsEnabled = false, s2.isMeasured = false, s2.toBack(), e4._unselectedOverlay = s2, e4._disposers.push(e4._unselectedOverlay), n3.toBack(), e4.background.cornerRadius(0, 0, 0, 0);
  16472. var a2 = e4.thumb.background;
  16473. a2.cornerRadius(0, 0, 0, 0), a2.fillOpacity = 0, a2.fill = i3.getFor("background");
  16474. var o3 = a2.states.getKey("hover");
  16475. o3 && (o3.properties.fillOpacity = 0.2);
  16476. var l2 = a2.states.getKey("down");
  16477. return l2 && (l2.properties.fillOpacity = 0.4), e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  16478. }
  16479. return C(e3, t2), Object.defineProperty(e3.prototype, "series", { get: function() {
  16480. return this._series || (this._series = new Fi(), this._disposers.push(this._series.events.on("inserted", this.handleSeriesAdded, this, false)), this._disposers.push(this._series.events.on("removed", this.handleSeriesRemoved, this, false))), this._series;
  16481. }, enumerable: true, configurable: true }), e3.prototype.handleSeriesAdded = function(t3) {
  16482. var e4 = this, i3 = t3.newValue;
  16483. if (i3.xAxis && i3.yAxis) {
  16484. var n3 = this.scrollbarChart;
  16485. n3.zoomOutButton.disabled = true, this.chart = i3.chart, n3.dateFormatter.inputDateFormat = this.chart.dateFormatter.inputDateFormat, n3.language.locale = this.chart.language.locale;
  16486. var r3 = true, s2 = true;
  16487. ti(this.series.iterator(), function(t4) {
  16488. t4 != i3 && (t4.xAxis == i3.xAxis && e4.scrollbarChart.xAxes.length > 0 && (r3 = false), t4.yAxis == i3.yAxis && e4.scrollbarChart.yAxes.length > 0 && (s2 = false));
  16489. }), i3.events.on("beforedisposed", function() {
  16490. e4.series.removeValue(i3);
  16491. });
  16492. var a2 = new Ys(), o3 = i3.clone();
  16493. if ((ls.onlyShowOnViewport || ls.queue) && this.addDisposer(this.chart.events.on("removedfromqueue", function() {
  16494. n3.invalidateData();
  16495. })), Ir() && (o3.stroke = dn("#aaaaaa"), o3.fill = o3.stroke, o3.propertyFields.fill = void 0, o3.propertyFields.stroke = void 0), i3.scrollbarSeries = o3, r3) {
  16496. var l2 = i3.xAxis.clone();
  16497. if (n3.xAxes.moveValue(l2), l2.title.disabled = true, l2.rangeChangeDuration = 0, (d2 = l2.renderer).ticks.template.disabled = true, d2.inside = true, d2.labels.template.inside = true, d2.line.strokeOpacity = 0, d2.minLabelPosition = 0.02, d2.maxLabelPosition = 0.98, d2.line.disabled = true, d2.axisFills.template.disabled = true, d2.baseGrid.disabled = true, d2.grid.template.strokeOpacity = 0.05, d2.minWidth = void 0, d2.minHeight = void 0, d2.padding(0, 0, 0, 0), d2.chart = n3, d2.margin(0, 0, 0, 0), l2.width = V(100), d2.labels.template.fillOpacity = 0.5, l2.maxZoomCount = void 0, l2.minZoomCount = void 0, l2 instanceof Ph) {
  16498. var h2 = l2, p2 = i3.xAxis;
  16499. h2.groupCount = 5 * p2.groupCount, h2.min = void 0, h2.max = void 0, this._disposers.push(h2.clonedFrom.events.on("extremeschanged", function() {
  16500. tt(h2.clonedFrom.minDefined) && (h2.min = h2.clonedFrom.minDefined), tt(h2.clonedFrom.maxDefined) && (h2.max = h2.clonedFrom.maxDefined);
  16501. }, void 0, false));
  16502. } else if (l2 instanceof bh) {
  16503. var u2 = l2;
  16504. u2.min = void 0, u2.max = void 0, tt(u2.clonedFrom.minDefined) || (u2.min = void 0), tt(u2.clonedFrom.maxDefined) || (u2.max = void 0), this._disposers.push(u2.clonedFrom.events.on("extremeschanged", function() {
  16505. tt(u2.clonedFrom.minDefined) && (u2.min = u2.clonedFrom.min), tt(u2.clonedFrom.maxDefined) && (u2.max = u2.clonedFrom.max);
  16506. }, void 0, false));
  16507. }
  16508. o3.xAxis = l2;
  16509. } else
  16510. this.scrollbarChart.xAxes.each(function(t4) {
  16511. t4.clonedFrom == i3.xAxis && (o3.xAxis = t4);
  16512. });
  16513. if (s2) {
  16514. var d2, c2 = i3.yAxis.clone();
  16515. if (n3.yAxes.moveValue(c2), c2.title.disabled = true, c2.rangeChangeDuration = 0, (d2 = c2.renderer).ticks.template.disabled = true, d2.inside = true, d2.labels.template.inside = true, d2.line.strokeOpacity = 0, d2.minLabelPosition = 0.02, d2.maxLabelPosition = 0.98, d2.line.disabled = true, d2.axisFills.template.disabled = true, d2.grid.template.stroke = a2.getFor("background"), d2.baseGrid.disabled = true, d2.grid.template.strokeOpacity = 0.05, d2.minWidth = void 0, d2.minHeight = void 0, d2.chart = n3, d2.padding(0, 0, 0, 0), d2.margin(0, 0, 0, 0), c2.height = V(100), d2.labels.template.fillOpacity = 0.5, o3.yAxis = c2, c2.maxZoomCount = void 0, c2.minZoomCount = void 0, c2 instanceof Ph) {
  16516. var f2 = c2;
  16517. f2.min = void 0, f2.max = void 0, p2 = i3.yAxis, c2.groupCount = 5 * p2.groupCount, this._disposers.push(f2.clonedFrom.events.on("extremeschanged", function() {
  16518. tt(f2.clonedFrom.minDefined) && (f2.min = f2.clonedFrom.minDefined), tt(f2.clonedFrom.maxDefined) && (f2.max = f2.clonedFrom.maxDefined);
  16519. }));
  16520. } else if (c2 instanceof bh) {
  16521. var g2 = c2;
  16522. g2.min = void 0, g2.max = void 0, tt(g2.clonedFrom.minDefined) || (g2.min = void 0), tt(g2.clonedFrom.maxDefined) || (g2.max = void 0), this._disposers.push(g2.clonedFrom.events.on("extremeschanged", function() {
  16523. tt(g2.clonedFrom.minDefined) && (g2.min = g2.clonedFrom.minDefined), tt(g2.clonedFrom.maxDefined) && (g2.max = g2.clonedFrom.maxDefined);
  16524. }));
  16525. }
  16526. } else
  16527. this.scrollbarChart.yAxes.each(function(t4) {
  16528. t4.clonedFrom == i3.yAxis && (o3.yAxis = t4);
  16529. });
  16530. o3.rangeChangeDuration = 0, o3.interpolationDuration = 0, o3.defaultState.transitionDuration = 0, o3.showOnInit = false, this._disposers.push(o3.events.on("validated", this.zoomOutAxes, this, false)), this._disposers.push(i3.events.on("datavalidated", function() {
  16531. o3.data != i3.data && (o3.data = i3.data);
  16532. }, void 0, false)), o3.defaultState.properties.visible = true, n3.series.push(o3), this.updateByOrientation();
  16533. }
  16534. }, e3.prototype.updateByOrientation = function() {
  16535. var t3 = this;
  16536. this._scrollbarChart && (ti(this._scrollbarChart.xAxes.iterator(), function(e4) {
  16537. var i3 = e4.renderer;
  16538. t3.orientation == "vertical" ? (i3.grid.template.disabled = true, i3.labels.template.disabled = true, i3.minGridDistance = 10) : (i3.grid.template.disabled = false, i3.labels.template.disabled = false, i3.minGridDistance = e4.clonedFrom.renderer.minGridDistance);
  16539. }), ti(this._scrollbarChart.yAxes.iterator(), function(e4) {
  16540. var i3 = e4.renderer;
  16541. t3.orientation == "horizontal" ? (i3.grid.template.disabled = true, i3.labels.template.disabled = true, i3.minGridDistance = 10) : (i3.grid.template.disabled = false, i3.labels.template.disabled = false, i3.minGridDistance = e4.clonedFrom.renderer.minGridDistance);
  16542. }));
  16543. }, e3.prototype.handleSeriesRemoved = function(t3) {
  16544. var e4 = t3.oldValue, i3 = this.scrollbarChart;
  16545. i3.series.each(function(t4) {
  16546. t4 && t4.clonedFrom == e4 && i3.series.removeValue(t4);
  16547. }), i3.series.length == 0 && (i3.xAxes.clear(), i3.yAxes.clear());
  16548. try {
  16549. e4.events.off("validated", this.zoomOutAxes, this);
  16550. } catch (t4) {
  16551. }
  16552. }, Object.defineProperty(e3.prototype, "scrollbarChart", { get: function() {
  16553. return this._scrollbarChart;
  16554. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "chart", { get: function() {
  16555. return this._chart.get();
  16556. }, set: function(t3) {
  16557. this._chart.get() !== t3 && (this._chart.set(t3, t3.events.on("datavalidated", this.handleDataChanged, this, false)), this.handleDataChanged(), this._scrollbarChart.dataProvider = t3);
  16558. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "unselectedOverlay", { get: function() {
  16559. return this._unselectedOverlay;
  16560. }, enumerable: true, configurable: true }), e3.prototype.handleDataChanged = function() {
  16561. this.chart.data != this.scrollbarChart.data ? this.scrollbarChart.data = this.chart.data : this.scrollbarChart.invalidateRawData();
  16562. }, e3.prototype.zoomOutAxes = function() {
  16563. var t3 = this.scrollbarChart;
  16564. ti(t3.xAxes.iterator(), function(t4) {
  16565. t4.zoom({ start: 0, end: 1 }, true, true);
  16566. }), ti(t3.yAxes.iterator(), function(t4) {
  16567. t4.zoom({ start: 0, end: 1 }, true, true);
  16568. });
  16569. }, e3.prototype.updateThumb = function(e4) {
  16570. if (e4 === void 0 && (e4 = true), t2.prototype.updateThumb.call(this, e4), this._unselectedOverlay) {
  16571. var i3 = this.thumb, n3 = i3.pixelX || 0, r3 = i3.pixelY || 0, s2 = i3.pixelWidth || 0, a2 = i3.pixelHeight || 0, o3 = "";
  16572. this.orientation == "horizontal" ? (o3 = Vo({ x: -1, y: 0, width: n3, height: a2 }), o3 += Vo({ x: n3 + s2, y: 0, width: (this.pixelWidth || 0) - n3 - s2, height: a2 })) : (o3 = Vo({ x: 0, y: 0, width: s2, height: r3 }), o3 += Vo({ x: 0, y: r3 + a2, width: s2, height: (this.pixelHeight || 0) - r3 - a2 })), this._unselectedOverlay.path = o3;
  16573. }
  16574. }, e3.prototype.processConfig = function(e4) {
  16575. if (e4 && Z(e4.series) && it(e4.series))
  16576. for (var i3 = 0, n3 = e4.series.length; i3 < n3; i3++) {
  16577. var r3 = e4.series[i3];
  16578. if (Z(r3) && Q(r3)) {
  16579. if (!this.map.hasKey(r3))
  16580. throw Error("XYChartScrollbar error: Series with id `" + r3 + "` does not exist.");
  16581. e4.series[i3] = this.map.getKey(r3);
  16582. }
  16583. }
  16584. t2.prototype.processConfig.call(this, e4);
  16585. }, e3;
  16586. }(Uo);
  16587. Ii.registeredClasses.XYChartScrollbar = kh;
  16588. var Th = function(t2) {
  16589. function e3() {
  16590. var e4 = t2.call(this) || this;
  16591. return e4.className = "XYChartDataItem", e4.applyTheme(), e4;
  16592. }
  16593. return C(e3, t2), e3;
  16594. }(ih), Ah = function(t2) {
  16595. function e3() {
  16596. var e4 = t2.call(this) || this;
  16597. e4._axisRendererX = wh, e4._axisRendererY = yh, e4._seriesPoints = [], e4.className = "XYChart", e4.maskBullets = true, e4.arrangeTooltips = true;
  16598. var i3 = e4.chartContainer;
  16599. i3.layout = "vertical", e4.padding(15, 15, 15, 15);
  16600. var n3 = i3.createChild($a);
  16601. n3.shouldClone = false, n3.layout = "vertical", n3.width = V(100), n3.zIndex = 1, e4.topAxesContainer = n3;
  16602. var r3 = i3.createChild($a);
  16603. r3.shouldClone = false, r3.layout = "horizontal", r3.width = V(100), r3.height = V(100), r3.zIndex = 0, e4.yAxesAndPlotContainer = r3;
  16604. var s2 = i3.createChild($a);
  16605. s2.shouldClone = false, s2.width = V(100), s2.layout = "vertical", s2.zIndex = 1, e4.bottomAxesContainer = s2;
  16606. var a2 = r3.createChild($a);
  16607. a2.shouldClone = false, a2.layout = "horizontal", a2.height = V(100), a2.contentAlign = "right", a2.events.on("transformed", e4.updateXAxesMargins, e4, false), a2.zIndex = 1, e4.leftAxesContainer = a2;
  16608. var o3 = r3.createChild($a);
  16609. o3.shouldClone = false, o3.height = V(100), o3.width = V(100), o3.background.fillOpacity = 0, e4.plotContainer = o3, e4.mouseWheelBehavior = "none", e4._cursorContainer = o3;
  16610. var l2 = r3.createChild($a);
  16611. l2.shouldClone = false, l2.layout = "horizontal", l2.height = V(100), l2.zIndex = 1, l2.events.on("transformed", e4.updateXAxesMargins, e4, false), e4.rightAxesContainer = l2, e4.seriesContainer.parent = o3, e4.bulletsContainer.parent = o3;
  16612. var h2 = o3.createChild(dl);
  16613. h2.shouldClone = false, h2.align = "right", h2.valign = "top", h2.zIndex = Number.MAX_SAFE_INTEGER, h2.marginTop = 5, h2.marginRight = 5, h2.hide(0), e4.zoomOutButton = h2;
  16614. var p2 = e4.plotContainer.createChild($a);
  16615. return p2.shouldClone = false, p2.width = V(100), p2.height = V(100), p2.isMeasured = false, p2.zIndex = 4, p2.layout = "none", e4.axisBulletsContainer = p2, e4._bulletMask = e4.plotContainer, e4.events.on("beforedatavalidated", function() {
  16616. e4.series.each(function(t3) {
  16617. t3.dataGrouped = false, t3._baseInterval = {};
  16618. });
  16619. }, e4, false), e4.applyTheme(), e4;
  16620. }
  16621. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  16622. t2.prototype.applyInternalDefaults.call(this), this.zoomOutButton.exportable = false, Z(this.readerTitle) || (this.readerTitle = this.language.translate("X/Y chart"));
  16623. }, e3.prototype.draw = function() {
  16624. t2.prototype.draw.call(this), this.seriesContainer.toFront(), this.bulletsContainer.toFront(), this.maskBullets && (this.bulletsContainer.mask = this._bulletMask), this.updateSeriesLegend();
  16625. }, e3.prototype.updatePlotElements = function() {
  16626. ti(this.series.iterator(), function(t3) {
  16627. t3.invalidate();
  16628. });
  16629. }, e3.prototype.validateData = function() {
  16630. this._parseDataFrom == 0 && (ti(this.xAxes.iterator(), function(t3) {
  16631. t3.dataChangeUpdate();
  16632. }), ti(this.yAxes.iterator(), function(t3) {
  16633. t3.dataChangeUpdate();
  16634. }), ti(this.series.iterator(), function(t3) {
  16635. t3.dataChangeUpdate();
  16636. })), t2.prototype.validateData.call(this);
  16637. }, e3.prototype.updateXAxesMargins = function() {
  16638. var t3 = this.leftAxesContainer.measuredWidth, e4 = this.rightAxesContainer.measuredWidth, i3 = this.bottomAxesContainer;
  16639. i3.paddingLeft == t3 && i3.paddingRight == e4 || (i3.paddingLeft = t3, i3.paddingRight = e4);
  16640. var n3 = this.topAxesContainer;
  16641. n3.paddingLeft == t3 && n3.paddingRight == e4 || (n3.paddingLeft = t3, n3.paddingRight = e4);
  16642. }, e3.prototype.reinit = function() {
  16643. t2.prototype.reinit.call(this), this.series.each(function(t3) {
  16644. t3.appeared = false;
  16645. });
  16646. }, e3.prototype.handleXAxisChange = function(t3) {
  16647. this.updateXAxis(t3.target);
  16648. }, e3.prototype.handleYAxisChange = function(t3) {
  16649. this.updateYAxis(t3.target);
  16650. }, e3.prototype.processXAxis = function(t3) {
  16651. var e4 = t3.newValue;
  16652. e4.chart = this, e4.renderer || (e4.renderer = new this._axisRendererX(), e4.renderer.observe(["opposite", "inside", "inversed", "minGridDistance"], this.handleXAxisChange, this, false)), e4.axisLetter = "X", e4.events.on("startendchanged", this.handleXAxisRangeChange, this, false), e4.dataProvider = this, this.updateXAxis(e4.renderer), this.processAxis(e4);
  16653. }, e3.prototype.processYAxis = function(t3) {
  16654. var e4 = t3.newValue;
  16655. e4.chart = this, e4.renderer || (e4.renderer = new this._axisRendererY(), e4.renderer.observe(["opposite", "inside", "inversed", "minGridDistance"], this.handleYAxisChange, this, false)), e4.axisLetter = "Y", e4.events.on("startendchanged", this.handleYAxisRangeChange, this, false), e4.dataProvider = this, this.updateYAxis(e4.renderer), this.processAxis(e4);
  16656. }, e3.prototype.handleXAxisRangeChange = function() {
  16657. var t3 = this.getCommonAxisRange(this.xAxes);
  16658. this.scrollbarX && this.zoomAxes(this.xAxes, t3, true), this.toggleZoomOutButton(), this.updateScrollbar(this.scrollbarX, t3);
  16659. }, e3.prototype.toggleZoomOutButton = function() {
  16660. if (this.zoomOutButton) {
  16661. var t3 = false;
  16662. Qe(this.xAxes.iterator(), function(e4) {
  16663. if (e4.toggleZoomOutButton) {
  16664. if (e4.maxZoomCount > 0) {
  16665. var i3 = e4.maxZoomFactor / e4.maxZoomCount;
  16666. if (lt(e4.end - e4.start, 3) < 1 / i3)
  16667. return t3 = true, false;
  16668. } else if (lt(e4.start, 3) > 0 || lt(e4.end, 3) < 1)
  16669. return t3 = true, false;
  16670. }
  16671. return true;
  16672. }), Qe(this.yAxes.iterator(), function(e4) {
  16673. if (e4.toggleZoomOutButton) {
  16674. if (e4.maxZoomCount > 0) {
  16675. var i3 = e4.maxZoomFactor / e4.maxZoomCount;
  16676. if (lt(e4.end - e4.start, 3) < 1 / i3)
  16677. return t3 = true, false;
  16678. } else if (lt(e4.start, 3) > 0 || lt(e4.end, 3) < 1)
  16679. return t3 = true, false;
  16680. return true;
  16681. }
  16682. }), this.seriesAppeared || (t3 = false), t3 ? this.zoomOutButton.show() : this.zoomOutButton.hide();
  16683. }
  16684. }, e3.prototype.seriesAppeared = function() {
  16685. var t3 = false;
  16686. return ti(this.series.iterator(), function(e4) {
  16687. if (!e4.appeared)
  16688. return t3 = false, false;
  16689. }), t3;
  16690. }, e3.prototype.handleYAxisRangeChange = function() {
  16691. var t3 = this.getCommonAxisRange(this.yAxes);
  16692. this.scrollbarY && this.zoomAxes(this.yAxes, t3, true), this.toggleZoomOutButton(), this.updateScrollbar(this.scrollbarY, t3);
  16693. }, e3.prototype.updateScrollbar = function(t3, e4) {
  16694. t3 && (t3.skipRangeEvents(), t3.start = e4.start, t3.end = e4.end);
  16695. }, e3.prototype.getCommonAxisRange = function(t3) {
  16696. var e4, i3;
  16697. return t3.each(function(t4) {
  16698. if (!t4.zoomable || t4 instanceof bh && t4.syncWithAxis)
  16699. ;
  16700. else {
  16701. var n3 = t4.start, r3 = t4.end;
  16702. t4.renderer.inversed && (n3 = 1 - t4.end, r3 = 1 - t4.start), (!tt(e4) || n3 < e4) && (e4 = n3), (!tt(i3) || r3 > i3) && (i3 = r3);
  16703. }
  16704. }), { start: e4, end: i3 };
  16705. }, e3.prototype.updateXAxis = function(t3) {
  16706. var e4 = t3.axis;
  16707. t3.opposite ? (e4.parent = this.topAxesContainer, e4.toFront()) : (e4.parent = this.bottomAxesContainer, e4.toBack()), e4.renderer && e4.renderer.processRenderer();
  16708. }, e3.prototype.updateYAxis = function(t3) {
  16709. var e4 = t3.axis;
  16710. t3.opposite ? (e4.parent = this.rightAxesContainer, e4.toBack()) : (e4.parent = this.leftAxesContainer, e4.toFront()), e4.renderer && e4.renderer.processRenderer();
  16711. }, e3.prototype.processAxis = function(t3) {
  16712. var e4 = this;
  16713. t3 instanceof Sh && this._dataUsers.moveValue(t3);
  16714. var i3 = t3.renderer;
  16715. i3.gridContainer.parent = this.plotContainer, i3.gridContainer.toBack(), i3.breakContainer.parent = this.plotContainer, i3.breakContainer.toFront(), i3.breakContainer.zIndex = 10, t3.addDisposer(new ye(function() {
  16716. e4.dataUsers.removeValue(t3);
  16717. })), i3.bulletsContainer.parent = this.axisBulletsContainer, this._disposers.push(t3.events.on("positionchanged", function() {
  16718. var n3 = dr({ x: 0, y: 0 }, t3, e4.axisBulletsContainer);
  16719. t3.renderer instanceof yh && (i3.bulletsContainer.y = n3.y), t3.renderer instanceof wh && (i3.bulletsContainer.x = n3.x);
  16720. }, void 0, false)), this.plotContainer.events.on("maxsizechanged", function() {
  16721. e4.inited && (t3.invalidateDataItems(), e4.updateSeriesMasks());
  16722. }, t3, false);
  16723. }, e3.prototype.updateSeriesMasks = function() {
  16724. Ir() && this.series.each(function(t3) {
  16725. var e4 = t3.mainContainer.mask;
  16726. t3.mainContainer.mask = void 0, t3.mainContainer.mask = e4;
  16727. });
  16728. }, e3.prototype.handleSeriesRemoved = function(e4) {
  16729. var i3 = e4.oldValue;
  16730. i3 && (i3.xAxis && (i3.xAxis.series.removeValue(i3), i3.xAxis.invalidateProcessedData()), i3.yAxis && (i3.yAxis.series.removeValue(i3), i3.yAxis.invalidateProcessedData()), this.series.each(function(t3) {
  16731. t3.resetExtremes();
  16732. })), t2.prototype.handleSeriesRemoved.call(this, e4);
  16733. }, Object.defineProperty(e3.prototype, "xAxes", { get: function() {
  16734. return this._xAxes || (this._xAxes = new Fi(), this._xAxes.events.on("inserted", this.processXAxis, this, false), this._xAxes.events.on("removed", this.handleAxisRemoval, this, false), this._disposers.push(new Ai(this._xAxes, false))), this._xAxes;
  16735. }, enumerable: true, configurable: true }), e3.prototype.handleAxisRemoval = function(t3) {
  16736. var e4 = t3.oldValue;
  16737. this.dataUsers.removeValue(e4), e4.autoDispose && e4.dispose();
  16738. }, Object.defineProperty(e3.prototype, "yAxes", { get: function() {
  16739. return this._yAxes || (this._yAxes = new Fi(), this._yAxes.events.on("inserted", this.processYAxis, this, false), this._yAxes.events.on("removed", this.handleAxisRemoval, this, false), this._disposers.push(new Ai(this._yAxes, false))), this._yAxes;
  16740. }, enumerable: true, configurable: true }), e3.prototype.handleSeriesAdded = function(e4) {
  16741. try {
  16742. t2.prototype.handleSeriesAdded.call(this, e4);
  16743. var i3 = e4.newValue;
  16744. this.xAxes.length != 0 && this.yAxes.length != 0 || (Ii.removeFromInvalidComponents(i3), i3.dataInvalid = false), i3.xAxis, i3.yAxis, i3.maskBullets = i3.maskBullets, i3.fill == null && (this.patterns ? (Z(i3.stroke) || (i3.stroke = this.colors.next()), i3.fill = this.patterns.next(), Z(i3.fillOpacity) && (i3.fill.backgroundOpacity = i3.fillOpacity), i3.stroke instanceof un && (i3.fill.stroke = i3.stroke, i3.fill.fill = i3.stroke)) : i3.fill = this.colors.next()), Z(i3.stroke) || (i3.stroke = i3.fill);
  16745. } catch (t3) {
  16746. this.raiseCriticalError(t3);
  16747. }
  16748. }, Object.defineProperty(e3.prototype, "cursor", { get: function() {
  16749. return this._cursor;
  16750. }, set: function(t3) {
  16751. this._cursor != t3 && (this._cursor && this.removeDispose(this._cursor), this._cursor = t3, t3 && (this._disposers.push(t3), t3.chart = this, t3.shouldClone = false, t3.parent = this._cursorContainer, t3.events.on("cursorpositionchanged", this.handleCursorPositionChange, this, false), t3.events.on("zoomstarted", this.handleCursorZoomStart, this, false), t3.events.on("zoomended", this.handleCursorZoomEnd, this, false), t3.events.on("panstarted", this.handleCursorPanStart, this, false), t3.events.on("panning", this.handleCursorPanning, this, false), t3.events.on("panended", this.handleCursorPanEnd, this, false), t3.events.on("behaviorcanceled", this.handleCursorCanceled, this, false), t3.events.on("hidden", this.handleHideCursor, this, false), t3.zIndex = Number.MAX_SAFE_INTEGER - 1, this.tapToActivate && this.setTapToActivate(this.tapToActivate)));
  16752. }, enumerable: true, configurable: true }), e3.prototype.handleCursorPositionChange = function() {
  16753. var t3 = this.cursor;
  16754. if (t3.visible && !t3.isHiding) {
  16755. var e4 = this.cursor.xPosition, i3 = this.cursor.yPosition;
  16756. this.showSeriesTooltip({ x: e4, y: i3 });
  16757. var n3 = [], r3 = t3.snapToSeries;
  16758. if (r3 && !t3.downPoint) {
  16759. r3 instanceof Dh && (r3 = [r3]);
  16760. var s2 = [];
  16761. Ut(r3, function(t4) {
  16762. if (!t4.isHidden && !t4.isHiding) {
  16763. var r4 = t4.xAxis, a3 = t4.yAxis;
  16764. r4 instanceof bh && !(r4 instanceof Ph) && a3 instanceof bh && !(a3 instanceof Ph) ? (t4.dataItems.each(function(t5) {
  16765. s2.push(t5);
  16766. }), ie(n3, t4.yAxis), ie(n3, t4.xAxis)) : (t4.baseAxis == t4.xAxis && (ie(n3, t4.yAxis), s2.push(r4.getSeriesDataItem(t4, r4.toAxisPosition(e4), true))), t4.baseAxis == t4.yAxis && (ie(n3, t4.xAxis), s2.push(a3.getSeriesDataItem(t4, a3.toAxisPosition(i3), true))));
  16767. }
  16768. });
  16769. var a2 = this.getClosest(s2, e4, i3);
  16770. a2 && (this.series.each(function(t4) {
  16771. var e5 = a2.component;
  16772. t4 != e5 && (t4.hideTooltip(), t4.xAxis != e5.xAxis && (t4.xAxis.hideTooltip(), n3.push(t4.xAxis)), t4.yAxis != e5.yAxis && (t4.yAxis.hideTooltip(), n3.push(t4.yAxis)));
  16773. }), a2.component.showTooltipAtDataItem(a2), t3.handleSnap(a2.component));
  16774. }
  16775. this._seriesPoints = [], this._cursorXPosition != e4 && this.showAxisTooltip(this.xAxes, e4, n3), this._cursorYPosition != i3 && this.showAxisTooltip(this.yAxes, i3, n3), this.arrangeTooltips && this.sortSeriesTooltips(this._seriesPoints), this.legend && this.legend.afterDraw();
  16776. }
  16777. }, e3.prototype.getClosest = function(t3, e4, i3) {
  16778. var n3, r3 = 1 / 0;
  16779. return Kt(t3, function(t4) {
  16780. if (t4) {
  16781. var s2 = t4.component.xAxis, a2 = t4.component.yAxis, o3 = s2.positionToCoordinate(s2.toGlobalPosition(s2.toAxisPosition(e4))), l2 = a2.positionToCoordinate(a2.toGlobalPosition(a2.toAxisPosition(i3))), h2 = t4.component.xField, p2 = t4.component.yField;
  16782. if (s2 instanceof bh && !tt(t4.getValue(h2)))
  16783. return true;
  16784. if (a2 instanceof bh && !tt(t4.getValue(p2)))
  16785. return true;
  16786. var u2 = s2.positionToCoordinate(s2.toGlobalPosition(s2.getPositionX(t4, h2, t4.locations[h2], "valueX"))), d2 = a2.positionToCoordinate(a2.toGlobalPosition(a2.getPositionY(t4, p2, t4.locations[p2], "valueY"))), c2 = Math.sqrt(Math.pow(o3 - u2, 2) + Math.pow(l2 - d2, 2));
  16787. return c2 < r3 && (r3 = c2, n3 = t4), true;
  16788. }
  16789. }), n3;
  16790. }, e3.prototype.handleHideCursor = function() {
  16791. this.hideObjectTooltip(this.xAxes), this.hideObjectTooltip(this.yAxes), this.hideObjectTooltip(this.series), this._cursorXPosition = void 0, this._cursorYPosition = void 0, this.updateSeriesLegend();
  16792. }, e3.prototype.updateSeriesLegend = function() {
  16793. ti(this.series.iterator(), function(t3) {
  16794. t3.updateLegendValue();
  16795. });
  16796. }, e3.prototype.hideObjectTooltip = function(t3) {
  16797. ti(t3.iterator(), function(t4) {
  16798. t4.cursorTooltipEnabled && t4.hideTooltip(0);
  16799. });
  16800. }, e3.prototype.showSeriesTooltip = function(t3) {
  16801. var e4 = this;
  16802. if (t3) {
  16803. var i3 = [];
  16804. this.series.each(function(n3) {
  16805. if (n3.xAxis instanceof Ph && n3.xAxis.snapTooltip || n3.yAxis instanceof Ph && n3.yAxis.snapTooltip)
  16806. ;
  16807. else {
  16808. var r3 = n3.showTooltipAtPosition(t3.x, t3.y);
  16809. r3 && (n3.tooltip.setBounds(fr({ x: 0, y: 0, width: e4.pixelWidth, height: e4.pixelHeight }, e4)), i3.push({ series: n3, point: r3 }));
  16810. }
  16811. }), this.arrangeTooltips && this.sortSeriesTooltips(i3);
  16812. } else
  16813. this.series.each(function(t4) {
  16814. t4.hideTooltip();
  16815. });
  16816. }, e3.prototype.sortSeriesTooltips = function(t3) {
  16817. if (t3.length > 0) {
  16818. var e4 = this.cursor;
  16819. if (e4 && tt(e4.maxTooltipDistance)) {
  16820. var i3, n3, r3 = ur({ x: e4.point.x, y: e4.point.y }, e4), s2 = 1 / 0;
  16821. Ut(t3, function(t4) {
  16822. var e5 = t4.series, a3 = t4.point;
  16823. if (a3) {
  16824. var o4 = { x: a3.x, y: a3.y }, l3 = Math.abs(_t(o4, r3));
  16825. l3 < s2 && (n3 = o4, s2 = l3, i3 = e5);
  16826. }
  16827. });
  16828. var a2 = [];
  16829. i3 && (Ut(t3, function(t4) {
  16830. if (Math.abs(_t(t4.point, n3)) <= Math.abs(e4.maxTooltipDistance))
  16831. a2.push({ series: t4.series, point: t4.point });
  16832. else {
  16833. var i4 = t4.series.tooltipDataItem;
  16834. i4 && Ut(i4.sprites, function(t5) {
  16835. t5.isHover = false, t5.handleOutReal();
  16836. }), t4.series.hideTooltip(0);
  16837. }
  16838. }), e4.maxTooltipDistance < 0 && (a2.length > 0 && Ut(a2, function(t4) {
  16839. i3 != t4.series && t4.series.hideTooltip(0);
  16840. }), a2 = [{ series: i3, point: n3 }])), t3 = a2;
  16841. }
  16842. var o3 = ur({ x: -0.5, y: -0.5 }, this.plotContainer), l2 = ur({ x: this.plotContainer.pixelWidth + 0.5, y: this.plotContainer.pixelHeight + 0.5 }, this.plotContainer), h2 = 0, p2 = [];
  16843. Ut(t3, function(t4) {
  16844. var e5 = t4.point;
  16845. e5 && Nt(e5, { x: o3.x, y: o3.y, width: l2.x - o3.x, height: l2.y - o3.y }) && (p2.push({ point: e5, series: t4.series }), h2 += e5.y);
  16846. }), t3 = p2;
  16847. var u2 = this.series.getIndex(0), d2 = false;
  16848. u2 && u2.yAxis && u2.yAxis.renderer.inversed && (d2 = true), d2 ? t3.sort(function(t4, e5) {
  16849. return Bi(t4.point.y, e5.point.y);
  16850. }) : (t3.sort(function(t4, e5) {
  16851. return Bi(e5.point.y, t4.point.y);
  16852. }), t3.reverse());
  16853. var c2 = h2 / t3.length, f2 = yr({ x: 0, y: 0 }, this.svgContainer.SVGContainer).y;
  16854. if (t3.length > 0) {
  16855. var g2 = o3.y, y2 = l2.y;
  16856. vr({ x: 0, y: g2 }, this);
  16857. var m2 = false;
  16858. if (c2 > g2 + (y2 - g2) / 2)
  16859. for (var v2 = y2, b2 = t3.length - 1; b2 >= 0; b2--) {
  16860. var x2 = (C2 = t3[b2].series).tooltip, _2 = t3[b2].point.y;
  16861. if (x2.setBounds({ x: 0, y: -f2, width: this.pixelWidth, height: v2 + f2 }), x2.invalid && x2.validate(), x2.toBack(), (v2 = ur({ x: 0, y: x2.label.pixelY - x2.pixelY + _2 - x2.pixelMarginTop }, x2).y) < -f2) {
  16862. m2 = true;
  16863. break;
  16864. }
  16865. }
  16866. if (c2 <= g2 + (y2 - g2) / 2 || m2)
  16867. for (var P2 = g2, w2 = (b2 = 0, t3.length); b2 < w2; b2++) {
  16868. var C2 = t3[b2].series;
  16869. _2 = t3[b2].point.y, (x2 = C2.tooltip).setBounds({ x: 0, y: P2, width: this.pixelWidth, height: y2 }), x2.invalid && x2.validate(), x2.toBack(), P2 = ur({ x: 0, y: x2.label.pixelY + x2.label.measuredHeight - x2.pixelY + _2 + x2.pixelMarginBottom }, x2).y;
  16870. }
  16871. }
  16872. }
  16873. }, e3.prototype.showAxisTooltip = function(t3, e4, i3) {
  16874. var n3 = this;
  16875. ti(t3.iterator(), function(t4) {
  16876. i3 && i3.indexOf(t4) != -1 || (n3.dataItems.length > 0 || t4.dataItems.length > 0) && t4.showTooltipAtPosition(e4);
  16877. });
  16878. }, e3.prototype.getUpdatedRange = function(t3, e4) {
  16879. if (t3) {
  16880. var i3, n3;
  16881. t3.renderer.inversed ? (bt(e4), i3 = 1 - t3.end, n3 = 1 - t3.start) : (i3 = t3.start, n3 = t3.end);
  16882. var r3 = n3 - i3;
  16883. return { start: i3 + e4.start * r3, end: i3 + e4.end * r3 };
  16884. }
  16885. }, e3.prototype.handleCursorZoomEnd = function(t3) {
  16886. var e4 = this.cursor, i3 = e4.behavior;
  16887. if (i3 == "zoomX" || i3 == "zoomXY") {
  16888. var n3 = e4.xRange;
  16889. n3 && this.xAxes.length > 0 && ((n3 = this.getUpdatedRange(this.xAxes.getIndex(0), n3)).priority = "start", this.zoomAxes(this.xAxes, n3));
  16890. }
  16891. if (i3 == "zoomY" || i3 == "zoomXY") {
  16892. var r3 = e4.yRange;
  16893. r3 && this.yAxes.length > 0 && ((r3 = this.getUpdatedRange(this.yAxes.getIndex(0), r3)).priority = "start", this.zoomAxes(this.yAxes, r3));
  16894. }
  16895. this.handleHideCursor();
  16896. }, e3.prototype.handleCursorPanStart = function(t3) {
  16897. var e4 = this.xAxes.getIndex(0);
  16898. e4 && (this._panStartXRange = { start: e4.start, end: e4.end }, e4.renderer.inversed && (this._panStartXRange = bt(this._panStartXRange)));
  16899. var i3 = this.yAxes.getIndex(0);
  16900. i3 && (this._panStartYRange = { start: i3.start, end: i3.end }, i3.renderer.inversed && (this._panStartYRange = bt(this._panStartYRange)));
  16901. }, e3.prototype.handleCursorPanEnd = function(t3) {
  16902. var e4 = this.cursor, i3 = e4.behavior;
  16903. if (this._panEndXRange && (i3 == "panX" || i3 == "panXY")) {
  16904. var n3 = this._panEndXRange, r3 = this._panStartXRange, s2 = 0;
  16905. n3.start < 0 && (s2 = n3.start), r3.end > 1 ? n3.end > r3.end && (s2 = n3.end - r3.end) : n3.end > 1 && (s2 = n3.end - 1), this.zoomAxes(this.xAxes, { start: n3.start - s2, end: n3.end - s2 }, false, e4.snapOnPan), this._panEndXRange = void 0, this._panStartXRange = void 0;
  16906. }
  16907. !this._panEndYRange || i3 != "panY" && i3 != "panXY" || (s2 = 0, (n3 = this._panEndYRange).start < 0 && (s2 = n3.start), n3.end > 1 && (s2 = n3.end - 1), this.zoomAxes(this.yAxes, { start: n3.start - s2, end: n3.end - s2 }, false, e4.snapOnPan), this._panEndYRange = void 0, this._panStartYRange = void 0);
  16908. }, e3.prototype.handleCursorCanceled = function() {
  16909. this._panEndXRange = void 0, this._panStartXRange = void 0;
  16910. }, e3.prototype.handleCursorPanning = function(t3) {
  16911. var e4 = this.cursor, i3 = e4.behavior, n3 = e4.maxPanOut;
  16912. if (this._panStartXRange && (i3 == "panX" || i3 == "panXY")) {
  16913. var r3 = this._panStartXRange, s2 = e4.xRange, a2 = this.getCommonAxisRange(this.xAxes), o3 = r3.end - r3.start, l2 = s2.start * (a2.end - a2.start), h2 = Math.max(-n3, l2 + r3.start), p2 = Math.min(l2 + r3.end, 1 + n3);
  16914. h2 <= 0 && (p2 = h2 + o3), p2 >= 1 && (h2 = p2 - o3);
  16915. var u2 = { start: h2, end: p2 };
  16916. this._panEndXRange = u2, this.zoomAxes(this.xAxes, u2, false, false, e4.maxPanOut);
  16917. }
  16918. !this._panStartYRange || i3 != "panY" && i3 != "panXY" || (r3 = this._panStartYRange, s2 = e4.yRange, a2 = this.getCommonAxisRange(this.yAxes), o3 = r3.end - r3.start, l2 = s2.start * (a2.end - a2.start), h2 = Math.max(-n3, l2 + r3.start), p2 = Math.min(l2 + r3.end, 1 + n3), h2 <= 0 && (p2 = h2 + o3), p2 >= 1 && (h2 = p2 - o3), u2 = { start: h2, end: p2 }, this._panEndYRange = u2, this.zoomAxes(this.yAxes, u2, false, false, e4.maxPanOut)), this.handleHideCursor();
  16919. }, e3.prototype.handleYAxisSet = function(t3) {
  16920. }, e3.prototype.handleCursorZoomStart = function(t3) {
  16921. }, Object.defineProperty(e3.prototype, "scrollbarX", { get: function() {
  16922. return this._scrollbarX;
  16923. }, set: function(t3) {
  16924. var e4 = this;
  16925. this._scrollbarX && this.removeDispose(this._scrollbarX), this._scrollbarX = t3, t3 && (this._disposers.push(t3), t3.parent = this.topAxesContainer, t3.shouldClone = false, t3.startGrip.exportable = false, t3.endGrip.exportable = false, t3.toBack(), t3.orientation = "horizontal", t3.events.on("rangechanged", this.handleXScrollbarChange, this, false), this.events.on("datavalidated", function() {
  16926. return t3.updateThumb(false);
  16927. }, this, false), t3.adapter.add("positionValue", function(t4) {
  16928. var i3 = e4.xAxes.getIndex(0);
  16929. return i3 && (t4.value = i3.getPositionLabel(i3.renderer.inversed ? 1 - t4.position : t4.position)), t4;
  16930. }));
  16931. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "scrollbarY", { get: function() {
  16932. return this._scrollbarY;
  16933. }, set: function(t3) {
  16934. var e4 = this;
  16935. this._scrollbarY && this.removeDispose(this._scrollbarY), this._scrollbarY = t3, t3 && (this._disposers.push(t3), t3.parent = this.rightAxesContainer, t3.startGrip.exportable = false, t3.shouldClone = false, t3.endGrip.exportable = false, t3.toFront(), t3.orientation = "vertical", t3.events.on("rangechanged", this.handleYScrollbarChange, this, false), this.events.on("datavalidated", function() {
  16936. return t3.updateThumb(false);
  16937. }, this, false), t3.adapter.add("positionValue", function(t4) {
  16938. var i3 = e4.yAxes.getIndex(0);
  16939. return i3 && (t4.value = i3.getPositionLabel(t4.position)), t4;
  16940. }));
  16941. }, enumerable: true, configurable: true }), e3.prototype.handleXScrollbarChange = function(t3) {
  16942. if (this.inited) {
  16943. var e4 = t3.target, i3 = e4.range;
  16944. i3.start == 0 && (i3.priority = "start"), i3.end == 1 && (i3.priority = "end"), i3 = this.zoomAxes(this.xAxes, i3), e4.fixRange(i3);
  16945. }
  16946. }, e3.prototype.handleYScrollbarChange = function(t3) {
  16947. if (this.inited) {
  16948. var e4 = t3.target, i3 = e4.range;
  16949. i3.end == 1 && (i3.priority = "end"), i3.start == 0 && (i3.priority = "start"), i3 = this.zoomAxes(this.yAxes, i3), e4.fixRange(i3);
  16950. }
  16951. }, e3.prototype.zoomAxes = function(t3, e4, i3, n3, r3, s2) {
  16952. var a2 = { start: 0, end: 1 };
  16953. this.showSeriesTooltip();
  16954. var o3 = e4;
  16955. return this.dataInvalid || ti(t3.iterator(), function(t4) {
  16956. var l2 = t4.maxZoomFactor;
  16957. if (tt(t4.minZoomCount) && (l2 /= t4.minZoomCount), s2 && 1 / (e4.end - e4.start) >= l2)
  16958. ;
  16959. else if (t4.zoomable) {
  16960. if (e4 = t4.renderer.inversed ? bt(o3) : o3, t4.hideTooltip(0), n3)
  16961. if (t4 instanceof Sh) {
  16962. var h2 = t4.getCellEndPosition(0) - t4.getCellStartPosition(0);
  16963. e4.start = t4.roundPosition(e4.start + h2 / 2 - t4.startLocation * h2, t4.startLocation), e4.end = t4.roundPosition(e4.end - h2 / 2 + (1 - t4.endLocation) * h2, t4.endLocation);
  16964. } else
  16965. e4.start = t4.roundPosition(e4.start + 1e-4, 0, t4.startLocation), e4.end = t4.roundPosition(e4.end + 1e-4, 0, t4.endLocation);
  16966. var p2 = t4.zoom(e4, i3, i3, r3);
  16967. t4.renderer.inversed && (p2 = bt(p2)), a2 = p2;
  16968. }
  16969. }), a2;
  16970. }, Object.defineProperty(e3.prototype, "maskBullets", { get: function() {
  16971. return this.getPropertyValue("maskBullets");
  16972. }, set: function(t3) {
  16973. this.setPropertyValue("maskBullets", t3, true) && this.bulletsContainer && (this.bulletsContainer.mask = t3 ? this._bulletMask : void 0);
  16974. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "arrangeTooltips", { get: function() {
  16975. return this.getPropertyValue("arrangeTooltips");
  16976. }, set: function(t3) {
  16977. this.setPropertyValue("arrangeTooltips", t3, true);
  16978. }, enumerable: true, configurable: true }), e3.prototype.handleWheel = function(t3) {
  16979. var e4 = this.plotContainer, i3 = pr(gr(t3.point, this.htmlContainer, this.svgContainer.cssScale), e4), n3 = t3.shift.y;
  16980. this.handleWheelReal(n3, this.mouseWheelBehavior, i3);
  16981. }, e3.prototype.handleHorizontalWheel = function(t3) {
  16982. var e4 = this.plotContainer, i3 = pr(gr(t3.point, this.htmlContainer, this.svgContainer.cssScale), e4);
  16983. this.handleWheelReal(t3.shift.x, this.horizontalMouseWheelBehavior, i3);
  16984. }, e3.prototype.handleWheelReal = function(t3, e4, i3) {
  16985. if (t3 != 0) {
  16986. var n3 = this.plotContainer, r3 = this.getCommonAxisRange(this.xAxes), s2 = this.getCommonAxisRange(this.yAxes), a2 = 0.1;
  16987. if (e4 == "panX" || e4 == "panXY") {
  16988. var o3 = r3.end - r3.start, l2 = Math.max(-0, r3.start + a2 * t3 / 100 * (r3.end - r3.start)), h2 = Math.min(r3.end + a2 * t3 / 100 * (r3.end - r3.start), 1);
  16989. l2 <= 0 && (h2 = l2 + o3), h2 >= 1 && (l2 = h2 - o3), this.zoomAxes(this.xAxes, { start: l2, end: h2 });
  16990. }
  16991. if (e4 == "panY" || e4 == "panXY") {
  16992. t3 *= -1;
  16993. var p2 = s2.end - s2.start, u2 = Math.max(-0, s2.start + a2 * t3 / 100 * (s2.end - s2.start)), d2 = Math.min(s2.end + a2 * t3 / 100 * (s2.end - s2.start), 1);
  16994. u2 <= 0 && (d2 = u2 + p2), d2 >= 1 && (u2 = d2 - p2), this.zoomAxes(this.yAxes, { start: u2, end: d2 });
  16995. }
  16996. if (e4 == "zoomX" || e4 == "zoomXY") {
  16997. var c2 = i3.x / n3.maxWidth, f2 = this.xAxes.getIndex(0).toAxisPosition(c2);
  16998. l2 = Math.max(-0, r3.start - a2 * (r3.end - r3.start) * t3 / 100 * c2), l2 = Math.min(l2, f2), h2 = Math.min(r3.end + a2 * (r3.end - r3.start) * t3 / 100 * (1 - c2), 1), h2 = Math.max(h2, f2), this.zoomAxes(this.xAxes, { start: l2, end: h2 }, void 0, void 0, void 0, true);
  16999. }
  17000. if (e4 == "zoomY" || e4 == "zoomXY") {
  17001. var g2 = i3.y / n3.maxHeight, y2 = this.yAxes.getIndex(0).toAxisPosition(g2);
  17002. u2 = Math.max(-0, s2.start - a2 * (s2.end - s2.start) * t3 / 100 * (1 - g2)), u2 = Math.min(u2, y2), d2 = Math.min(s2.end + a2 * t3 / 100 * g2 * (s2.end - s2.start), 1), d2 = Math.max(d2, y2), this.zoomAxes(this.yAxes, { start: u2, end: d2 }, void 0, void 0, void 0, true);
  17003. }
  17004. }
  17005. }, Object.defineProperty(e3.prototype, "mouseWheelBehavior", { get: function() {
  17006. return this.getPropertyValue("mouseWheelBehavior");
  17007. }, set: function(t3) {
  17008. this.setPropertyValue("mouseWheelBehavior", t3) && (t3 != "none" ? (this._mouseWheelDisposer = this.plotContainer.events.on("wheel", this.handleWheel, this, false), this._disposers.push(this._mouseWheelDisposer)) : this._mouseWheelDisposer && (this.plotContainer.wheelable = false, this.plotContainer.hoverable = false, this._mouseWheelDisposer.dispose()));
  17009. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "horizontalMouseWheelBehavior", { get: function() {
  17010. return this.getPropertyValue("horizontalMouseWheelBehavior");
  17011. }, set: function(t3) {
  17012. this.setPropertyValue("horizontalMouseWheelBehavior", t3) && (t3 != "none" ? (this._mouseWheelDisposer2 = this.plotContainer.events.on("wheel", this.handleHorizontalWheel, this, false), this._disposers.push(this._mouseWheelDisposer2)) : this._mouseWheelDisposer2 && (this.plotContainer.wheelable = false, this.plotContainer.hoverable = false, this._mouseWheelDisposer2.dispose()));
  17013. }, enumerable: true, configurable: true }), e3.prototype.dataSourceDateFields = function(e4) {
  17014. var i3 = this;
  17015. return e4 = t2.prototype.dataSourceDateFields.call(this, e4), ti(this.series.iterator(), function(t3) {
  17016. e4 = i3.populateDataSourceFields(e4, t3.dataFields, ["dateX", "dateY", "openDateX", "openDateY"]);
  17017. }), e4;
  17018. }, e3.prototype.dataSourceNumberFields = function(e4) {
  17019. var i3 = this;
  17020. return e4 = t2.prototype.dataSourceDateFields.call(this, e4), ti(this.series.iterator(), function(t3) {
  17021. e4 = i3.populateDataSourceFields(e4, t3.dataFields, ["valueX", "valueY", "openValueX", "openValueY"]);
  17022. }), e4;
  17023. }, e3.prototype.processConfig = function(e4) {
  17024. if (e4) {
  17025. var i3 = [], n3 = [];
  17026. if (Z(e4.xAxes) && it(e4.xAxes))
  17027. for (var r3 = 0, s2 = e4.xAxes.length; r3 < s2; r3++) {
  17028. if (!e4.xAxes[r3].type)
  17029. throw Error("[XYChart error] No type set for xAxes[" + r3 + "].");
  17030. if (Z(e4.xAxes[r3].axisRanges)) {
  17031. for (var a2 = 0, o3 = e4.xAxes[r3].axisRanges.length; a2 < o3; a2++)
  17032. Z((h2 = e4.xAxes[r3].axisRanges[a2]).date) && Q(h2.date) && (h2.date = this.dateFormatter.parse(h2.date)), Z(h2.endDate) && Q(h2.endDate) && (h2.endDate = this.dateFormatter.parse(h2.endDate));
  17033. i3.push({ axisRanges: e4.xAxes[r3].axisRanges, index: r3 }), delete e4.xAxes[r3].axisRanges;
  17034. }
  17035. }
  17036. if (Z(e4.yAxes) && it(e4.yAxes))
  17037. for (r3 = 0, s2 = e4.yAxes.length; r3 < s2; r3++) {
  17038. if (!e4.yAxes[r3].type)
  17039. throw Error("[XYChart error] No type set for yAxes[" + r3 + "].");
  17040. if (Z(e4.yAxes[r3].axisRanges)) {
  17041. a2 = 0;
  17042. for (var l2 = e4.yAxes[r3].axisRanges.length; a2 < l2; a2++) {
  17043. var h2;
  17044. Z((h2 = e4.yAxes[r3].axisRanges[a2]).date) && Q(h2.date) && (h2.date = this.dateFormatter.parse(h2.date)), Z(h2.endDate) && Q(h2.endDate) && (h2.endDate = this.dateFormatter.parse(h2.endDate));
  17045. }
  17046. n3.push({ axisRanges: e4.yAxes[r3].axisRanges, index: r3 }), delete e4.yAxes[r3].axisRanges;
  17047. }
  17048. }
  17049. if (Z(e4.series) && it(e4.series))
  17050. for (r3 = 0, s2 = e4.series.length; r3 < s2; r3++)
  17051. e4.series[r3].type = e4.series[r3].type || "LineSeries";
  17052. if (Z(e4.cursor) && !Z(e4.cursor.type) && (e4.cursor.type = "XYCursor"), Z(e4.scrollbarX) && !Z(e4.scrollbarX.type) && (e4.scrollbarX.type = "Scrollbar"), Z(e4.scrollbarY) && !Z(e4.scrollbarY.type) && (e4.scrollbarY.type = "Scrollbar"), t2.prototype.processConfig.call(this, e4), n3.length)
  17053. for (r3 = 0, s2 = n3.length; r3 < s2; r3++)
  17054. this.yAxes.getIndex(n3[r3].index).config = { axisRanges: n3[r3].axisRanges };
  17055. if (i3.length)
  17056. for (r3 = 0, s2 = i3.length; r3 < s2; r3++)
  17057. this.xAxes.getIndex(i3[r3].index).config = { axisRanges: i3[r3].axisRanges };
  17058. }
  17059. }, e3.prototype.configOrder = function(e4, i3) {
  17060. return e4 == i3 ? 0 : e4 == "scrollbarX" ? 1 : i3 == "scrollbarX" ? -1 : e4 == "scrollbarY" ? 1 : i3 == "scrollbarY" ? -1 : e4 == "cursor" ? 1 : i3 == "cursor" ? -1 : e4 == "series" ? 1 : i3 == "series" ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  17061. }, e3.prototype.createSeries = function() {
  17062. return new Dh();
  17063. }, Object.defineProperty(e3.prototype, "zoomOutButton", { get: function() {
  17064. return this._zoomOutButton;
  17065. }, set: function(t3) {
  17066. var e4 = this;
  17067. this._zoomOutButton = t3, t3 && t3.events.on("hit", function() {
  17068. e4.zoomAxes(e4.xAxes, { start: 0, end: 1 }), e4.zoomAxes(e4.yAxes, { start: 0, end: 1 });
  17069. }, void 0, false);
  17070. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  17071. var i3 = this;
  17072. e4.xAxes.each(function(t3) {
  17073. var e5 = i3.xAxes.push(t3.clone());
  17074. e5.chart = i3, e5.renderer.chart = i3;
  17075. }), e4.yAxes.each(function(t3) {
  17076. var e5 = i3.yAxes.push(t3.clone());
  17077. e5.renderer.chart = i3, e5.chart = i3;
  17078. }), t2.prototype.copyFrom.call(this, e4), e4.cursor && (this.cursor = e4.cursor.clone()), e4.scrollbarX && (this.scrollbarX = e4.scrollbarX.clone()), e4.scrollbarY && (this.scrollbarY = e4.scrollbarY.clone());
  17079. }, e3.prototype.disposeData = function() {
  17080. t2.prototype.disposeData.call(this);
  17081. var e4 = this.scrollbarX;
  17082. e4 && e4 instanceof kh && e4.scrollbarChart.disposeData();
  17083. var i3 = this.scrollbarY;
  17084. i3 && i3 instanceof kh && i3.scrollbarChart.disposeData(), this.xAxes.each(function(t3) {
  17085. t3 instanceof Sh && t3.disposeData();
  17086. }), this.yAxes.each(function(t3) {
  17087. t3 instanceof Sh && t3.disposeData();
  17088. });
  17089. }, e3.prototype.addData = function(e4, i3) {
  17090. this.scrollbarX instanceof kh && this.addScrollbarData(this.scrollbarX, i3), this.scrollbarY instanceof kh && this.addScrollbarData(this.scrollbarY, i3), t2.prototype.addData.call(this, e4, i3);
  17091. }, e3.prototype.addScrollbarData = function(t3, e4) {
  17092. var i3 = t3.scrollbarChart;
  17093. i3._parseDataFrom = i3.data.length, i3.invalidateData();
  17094. }, e3.prototype.removeScrollbarData = function(t3, e4) {
  17095. var i3 = t3.scrollbarChart;
  17096. if (tt(e4)) {
  17097. for (; e4 > 0; ) {
  17098. var n3 = this.dataItems.getIndex(0);
  17099. n3 && i3.dataItems.remove(n3), i3.dataUsers.each(function(t4) {
  17100. var e5 = t4.dataItems.getIndex(0);
  17101. e5 && t4.dataItems.remove(e5);
  17102. }), i3._parseDataFrom--, e4--;
  17103. }
  17104. i3.invalidateData();
  17105. }
  17106. }, e3.prototype.removeData = function(e4) {
  17107. this.scrollbarX instanceof kh && this.removeScrollbarData(this.scrollbarX, e4), this.scrollbarY instanceof kh && this.removeScrollbarData(this.scrollbarY, e4), t2.prototype.removeData.call(this, e4);
  17108. }, e3.prototype.setTapToActivate = function(e4) {
  17109. t2.prototype.setTapToActivate.call(this, e4), this.cursor && (this.cursor.interactions.isTouchProtected = e4, this.plotContainer.interactions.isTouchProtected = e4);
  17110. }, e3.prototype.handleTapToActivate = function() {
  17111. t2.prototype.handleTapToActivate.call(this), this.cursor && (this.cursor.interactions.isTouchProtected = false, this.plotContainer.interactions.isTouchProtected = false);
  17112. }, e3.prototype.handleTapToActivateDeactivation = function() {
  17113. t2.prototype.handleTapToActivateDeactivation.call(this), this.cursor && (this.cursor.interactions.isTouchProtected = true, this.plotContainer.interactions.isTouchProtected = true);
  17114. }, e3;
  17115. }(nh);
  17116. Ii.registeredClasses.XYChart = Ah, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  17117. if (t2 instanceof Ah && t2.scrollbarX) {
  17118. var i3 = t2.states.create(e3);
  17119. return t2.scrollbarX.states.create(e3).properties.disabled = true, i3;
  17120. }
  17121. return null;
  17122. } }), lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  17123. if (t2 instanceof Ah && t2.scrollbarY) {
  17124. var i3 = t2.states.create(e3);
  17125. return t2.scrollbarY.states.create(e3).properties.disabled = true, i3;
  17126. }
  17127. return null;
  17128. } });
  17129. var Vh = function(t2) {
  17130. function e3() {
  17131. var e4 = t2.call(this) || this;
  17132. e4.className = "LineSeriesSegment", e4.isMeasured = false, e4.interactionsEnabled = false, e4.layout = "none";
  17133. var i3 = e4.createChild(Za);
  17134. e4.fillSprite = i3, i3.shouldClone = false, i3.setElement(e4.paper.add("path")), i3.isMeasured = false, e4._disposers.push(i3);
  17135. var n3 = e4.createChild(Za);
  17136. return e4.strokeSprite = n3, n3.shouldClone = false, n3.fill = dn(), n3.setElement(e4.paper.add("path")), n3.isMeasured = false, e4._disposers.push(n3), e4;
  17137. }
  17138. return C(e3, t2), e3.prototype.drawSegment = function(t3, e4, i3, n3) {
  17139. if (!this.disabled)
  17140. if (t3.length > 0 && e4.length > 0 && tt(t3[0].x) && tt(t3[0].y)) {
  17141. var r3 = wo({ x: t3[0].x - 0.2, y: t3[0].y - 0.2 }) + wo(t3[0]), s2 = this.series;
  17142. s2.smoothing == "bezier" ? r3 += new tl(i3, n3).smooth(t3) : s2.smoothing == "monotoneX" ? r3 += new al({ closed: false }).smooth(t3) : s2.smoothing == "monotoneY" && (r3 += new ol({ closed: false }).smooth(t3)), this.strokeOpacity == 0 || this.strokeSprite.strokeOpacity == 0 || (this.strokeSprite.path = r3), (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) && tt(e4[0].x) && tt(e4[0].y) && (r3 += Co(e4[0]), s2.smoothing == "bezier" ? r3 += new tl(i3, n3).smooth(e4) : s2.smoothing == "monotoneX" ? r3 += new al({ closed: false }).smooth(e4) : s2.smoothing == "monotoneY" && (r3 += new ol({ closed: false }).smooth(e4)), r3 += Co(t3[0]), r3 += " Z", this.fillSprite.path = r3);
  17143. } else
  17144. this.fillSprite.path = "", this.strokeSprite.path = "";
  17145. }, e3.prototype.copyFrom = function(e4) {
  17146. t2.prototype.copyFrom.call(this, e4);
  17147. var i3 = this.strokeSprite;
  17148. Ue(e4, i3.properties, Ka), i3.events.copyFrom(e4.strokeSprite.events), i3.fillOpacity = 0;
  17149. var n3 = this.fillSprite;
  17150. Ue(e4, n3.properties, Ka), n3.events.copyFrom(e4.fillSprite.events), n3.strokeOpacity = 0;
  17151. }, e3;
  17152. }($a);
  17153. Ii.registeredClasses.LineSeriesSegment = Vh;
  17154. var Fh = function(t2) {
  17155. function e3() {
  17156. var e4 = t2.call(this) || this;
  17157. return e4.className = "DurationAxisDataItem", e4.applyTheme(), e4;
  17158. }
  17159. return C(e3, t2), e3;
  17160. }(vh), Mh = function(t2) {
  17161. function e3() {
  17162. var e4 = t2.call(this) || this;
  17163. return e4._baseUnit = "second", e4.className = "DurationAxis", e4.setPropertyValue("maxZoomFactor", 1e6), e4.applyTheme(), e4;
  17164. }
  17165. return C(e3, t2), e3.prototype.formatLabel = function(t3, e4) {
  17166. return this.durationFormatter.format(t3, e4 || this.axisDurationFormat);
  17167. }, e3.prototype.adjustMinMax = function(e4, i3, n3, r3, s2) {
  17168. var a2, o3, l2, h2 = this.baseUnit;
  17169. if (this.setPropertyValue("maxPrecision", 0), h2 == "millisecond" || h2 == "second" || h2 == "minute" || h2 == "hour") {
  17170. r3 <= 1 && (r3 = 1), r3 = Math.round(r3);
  17171. var p2 = e4, u2 = i3;
  17172. n3 === 0 && (n3 = Math.abs(i3));
  17173. var d2, c2 = [60, 30, 20, 15, 10, 2, 1], f2 = 1;
  17174. h2 == "hour" && (c2 = [24, 12, 6, 4, 2, 1]);
  17175. try {
  17176. for (var g2 = D(c2), y2 = g2.next(); !y2.done; y2 = g2.next()) {
  17177. var m2 = y2.value;
  17178. if (n3 / m2 > r3) {
  17179. f2 = m2;
  17180. break;
  17181. }
  17182. }
  17183. } catch (t3) {
  17184. a2 = { error: t3 };
  17185. } finally {
  17186. try {
  17187. y2 && !y2.done && (o3 = g2.return) && o3.call(g2);
  17188. } finally {
  17189. if (a2)
  17190. throw a2.error;
  17191. }
  17192. }
  17193. var v2 = Math.ceil((i3 - e4) / f2 / r3), b2 = Math.log(Math.abs(v2)) * Math.LOG10E, x2 = Math.pow(10, Math.floor(b2)) / 10;
  17194. d2 = f2 * (v2 = mt(c2, v2 / x2) * x2), this.durationFormatter.getValueUnit(d2, this.baseUnit), e4 = Math.floor(e4 / d2) * d2, i3 = Math.ceil(i3 / d2) * d2, s2 && ((e4 -= d2) < 0 && p2 >= 0 && (e4 = 0), (i3 += d2) > 0 && u2 <= 0 && (i3 = 0)), l2 = { min: e4, max: i3, step: d2 };
  17195. } else
  17196. l2 = t2.prototype.adjustMinMax.call(this, e4, i3, n3, r3, s2);
  17197. return this.axisDurationFormat = this.durationFormatter.getFormat(l2.step, l2.max, this.baseUnit), l2;
  17198. }, Object.defineProperty(e3.prototype, "tooltipDurationFormat", { get: function() {
  17199. return this._tooltipDurationFormat;
  17200. }, set: function(t3) {
  17201. this._tooltipDurationFormat = t3;
  17202. }, enumerable: true, configurable: true }), e3.prototype.getTooltipText = function(t3) {
  17203. var e4 = lt(this.positionToValue(t3), this._stepDecimalPlaces), i3 = this.formatLabel(e4, this.tooltipDurationFormat);
  17204. return this._adapterO ? this._adapterO.apply("getTooltipText", i3) : i3;
  17205. }, Object.defineProperty(e3.prototype, "baseUnit", { get: function() {
  17206. return this._baseUnit;
  17207. }, set: function(t3) {
  17208. this._baseUnit != t3 && (this._baseUnit = t3, this.durationFormatter.baseUnit = t3, this.invalidate());
  17209. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  17210. t2.prototype.copyFrom.call(this, e4), this.baseUnit = e4.baseUnit;
  17211. }, e3;
  17212. }(bh);
  17213. Ii.registeredClasses.DurationAxis = Mh, Ii.registeredClasses.DurationAxisDataItem = Fh;
  17214. var Lh = function(t2) {
  17215. function e3() {
  17216. var e4 = t2.call(this) || this;
  17217. return e4.className = "LineSeriesDataItem", e4;
  17218. }
  17219. return C(e3, t2), e3;
  17220. }(Ih), jh = function(t2) {
  17221. function e3() {
  17222. var e4 = t2.call(this) || this;
  17223. return e4.minDistance = 0.5, e4.segments = new Mi(e4.createSegment()), e4.segments.template.applyOnClones = true, e4._disposers.push(new Ai(e4.segments)), e4._disposers.push(e4.segments.template), e4._segmentsIterator = new mi(e4.segments, function() {
  17224. return e4.segments.create();
  17225. }), e4._segmentsIterator.createNewItems = true, e4.className = "LineSeries", e4.strokeOpacity = 1, e4.fillOpacity = 0, e4.connect = true, e4.tensionX = 1, e4.tensionY = 1, e4.autoGapCount = 1.1, e4.smoothing = "bezier", e4.segmentsContainer = e4.mainContainer.createChild($a), e4.segmentsContainer.isMeasured = false, e4.bulletsContainer.toFront(), e4.applyTheme(), e4;
  17226. }
  17227. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  17228. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Line Series"));
  17229. }, e3.prototype.createSegment = function() {
  17230. return new Vh();
  17231. }, e3.prototype.createDataItem = function() {
  17232. return new Lh();
  17233. }, e3.prototype.setInitialWorkingValues = function(t3) {
  17234. var e4 = this._yAxis.get(), i3 = this._xAxis.get();
  17235. if (this.appeared && this.visible) {
  17236. var n3 = this.dataItems.getIndex(t3.index - 1);
  17237. if (t3.component = this, this.baseAxis == i3 && e4 instanceof bh) {
  17238. var r3 = e4.minZoomed;
  17239. if (n3 && (r3 = n3.values.valueY.workingValue), t3.setWorkingValue("valueY", r3, 0), t3.setWorkingValue("valueY", t3.values.valueY.value), i3 instanceof Ph)
  17240. t3.setWorkingLocation("dateX", t3.locations.dateX - 1, 0), t3.setWorkingLocation("dateX", t3.locations.dateX);
  17241. else if (i3 instanceof Mh && n3) {
  17242. var s2 = t3.valueX;
  17243. t3.setWorkingValue("valueX", n3.valueX, 0), t3.setWorkingValue("valueX", s2);
  17244. }
  17245. }
  17246. if (this.baseAxis == e4 && i3 instanceof bh) {
  17247. var a2 = i3.minZoomed;
  17248. n3 && (a2 = n3.values.valueX.workingValue), t3.setWorkingValue("valueX", a2, 0), t3.setWorkingValue("valueX", t3.values.valueX.value), e4 instanceof Ph ? (t3.setWorkingLocation("dateY", t3.locations.dateX - 1, 0), t3.setWorkingLocation("dateY", t3.locations.dateY)) : e4 instanceof Mh && n3 && (s2 = t3.valueY, t3.setWorkingValue("valueY", n3.valueY, 0), t3.setWorkingValue("valueY", s2));
  17249. }
  17250. } else
  17251. this.baseAxis == i3 && e4 instanceof bh && (i3 instanceof Ph && t3.setWorkingLocation("dateX", t3.locations.dateX), i3 instanceof Sh && t3.setWorkingLocation("categoryX", t3.locations.categoryX)), this.baseAxis == e4 && i3 instanceof bh && (e4 instanceof Ph && t3.setWorkingLocation("dateY", t3.locations.dateY), e4 instanceof Sh && t3.setWorkingLocation("categoryY", t3.locations.categoryY));
  17252. }, e3.prototype.updateLegendValue = function(e4, i3) {
  17253. t2.prototype.updateLegendValue.call(this, e4, i3), e4 && e4.segment && (this.tooltipColorSource = e4.segment);
  17254. }, e3.prototype.validate = function() {
  17255. var e4 = this;
  17256. t2.prototype.validate.call(this), this.xAxis && this.yAxis && (this._segmentsIterator.reset(), this.openSegmentWrapper(this._adjustedStartIndex), ti(this.axisRanges.iterator(), function(t3) {
  17257. e4.openSegmentWrapper(e4._adjustedStartIndex, t3);
  17258. }), ti(this._segmentsIterator.iterator(), function(t3) {
  17259. t3.__disabled = true;
  17260. }));
  17261. }, e3.prototype.sliceData = function() {
  17262. for (var t3 = this.startIndex, e4 = this.endIndex, i3 = this.startIndex - 1; i3 >= 0; i3--)
  17263. if ((r3 = this.dataItems.getIndex(i3)) && r3.hasValue(this._xValueFields) && r3.hasValue(this._yValueFields)) {
  17264. t3 = i3;
  17265. break;
  17266. }
  17267. this._adjustedStartIndex = this.findAdjustedIndex(t3, ["stroke", "strokeWidth", "strokeDasharray", "strokeOpacity", "fill", "fillOpacity", "opacity"]), i3 = this.endIndex;
  17268. for (var n3 = this.dataItems.length; i3 < n3; i3++) {
  17269. var r3;
  17270. if ((r3 = this.dataItems.getIndex(i3)) && r3.hasValue(this._xValueFields) && r3.hasValue(this._yValueFields)) {
  17271. e4 = i3 + 1;
  17272. break;
  17273. }
  17274. }
  17275. this._workingStartIndex = t3, this._workingEndIndex = e4;
  17276. }, e3.prototype.findAdjustedIndex = function(t3, e4) {
  17277. var i3 = this, n3 = this.propertyFields, r3 = t3;
  17278. return Ut(e4, function(e5) {
  17279. if (Z(n3[e5]))
  17280. for (var s2 = r3; s2 >= 0; s2--) {
  17281. var a2 = i3.dataItems.getIndex(s2);
  17282. if (a2 && Z(a2.properties[e5])) {
  17283. t3 > s2 && (t3 = s2);
  17284. break;
  17285. }
  17286. }
  17287. }), t3;
  17288. }, e3.prototype.openSegmentWrapper = function(t3, e4) {
  17289. var i3 = { index: t3, axisRange: e4 };
  17290. do {
  17291. i3 = this.openSegment(i3.index, i3.axisRange);
  17292. } while (i3);
  17293. }, e3.prototype.getSegment = function() {
  17294. var t3 = this._segmentsIterator.getFirst();
  17295. return t3.series = this, t3.isDisposed() ? (this.segments.removeValue(t3), this.getSegment()) : t3;
  17296. }, e3.prototype.openSegment = function(t3, e4) {
  17297. var i3 = false, n3 = [];
  17298. t3 = Math.min(t3, this.dataItems.length);
  17299. var r3, s2 = Math.min(this._workingEndIndex, this.dataItems.length);
  17300. this._workingEndIndex = Math.min(this._workingEndIndex, this.dataItems.length);
  17301. var a2 = false, o3 = this.getSegment();
  17302. o3.strokeDasharray = void 0, o3.__disabled = false, e4 ? (o3.parent = e4.contents, Ue(e4.contents, o3, Ka)) : (Ue(this, o3, Ka), o3.filters.clear(), o3.parent = this.segmentsContainer), this.group.node.removeAttribute("fill");
  17303. for (var l2 = this.connect, h2 = false, p2 = t3; p2 < s2; p2++) {
  17304. var u2 = this.dataItems.getIndex(p2);
  17305. if (u2.segment = o3, u2.hasProperties && (p2 == t3 ? this.updateSegmentProperties(u2.properties, o3) : a2 = this.updateSegmentProperties(u2.properties, o3, true)), u2.hasValue(this._xValueFields) && u2.hasValue(this._yValueFields))
  17306. this.addPoints(n3, u2, this.xField, this.yField), h2 = true;
  17307. else {
  17308. if (p2 == t3)
  17309. continue;
  17310. if (!l2 && h2) {
  17311. r3 = p2;
  17312. break;
  17313. }
  17314. }
  17315. if (r3 = p2, this.baseAxis instanceof Ph) {
  17316. var d2 = this.dataItems.getIndex(p2 + 1);
  17317. if (d2 && this.baseAxis.makeGap(d2, u2)) {
  17318. i3 = true;
  17319. break;
  17320. }
  17321. }
  17322. if (a2)
  17323. break;
  17324. }
  17325. return this.closeSegment(o3, n3, t3, r3, e4, i3);
  17326. }, e3.prototype.addPoints = function(t3, e4, i3, n3, r3) {
  17327. var s2 = this.getPoint(e4, i3, n3, e4.workingLocations[i3], e4.workingLocations[n3]);
  17328. r3 || (e4.point = s2), t3.push(s2);
  17329. }, e3.prototype.closeSegment = function(t3, e4, i3, n3, r3, s2) {
  17330. var a2 = [];
  17331. if (this.dataFields[this._xOpenField] || this.dataFields[this._yOpenField] || this.stacked)
  17332. for (var o3 = n3; o3 >= i3; o3--) {
  17333. var l2 = this.dataItems.getIndex(o3);
  17334. l2.hasValue(this._xValueFields) && l2.hasValue(this._yValueFields) && this.addPoints(a2, l2, this.xOpenField, this.yOpenField, true);
  17335. }
  17336. else {
  17337. var h2 = this.baseAxis, p2 = e4.length, u2 = this.xAxis, d2 = this.yAxis;
  17338. p2 > 0 && (h2 == u2 ? (a2.push({ x: e4[p2 - 1].x, y: d2.basePoint.y }), a2.push({ x: e4[0].x, y: d2.basePoint.y })) : (a2.push({ x: u2.basePoint.x, y: e4[p2 - 1].y }), a2.push({ x: u2.basePoint.x, y: e4[0].y })));
  17339. }
  17340. return this.drawSegment(t3, e4, a2), s2 && n3++, n3 < this._workingEndIndex - 1 ? { index: n3, axisRange: r3 } : null;
  17341. }, e3.prototype.drawSegment = function(t3, e4, i3) {
  17342. t3.drawSegment(e4, i3, this.tensionX, this.tensionY);
  17343. }, e3.prototype.updateSegmentProperties = function(t3, e4, i3) {
  17344. var n3 = false;
  17345. return Ne(t3, function(t4, r3) {
  17346. if (Z(r3)) {
  17347. var s2 = e4[t4], a2 = void 0;
  17348. s2 && (a2 = s2.toString ? s2.toString() : s2);
  17349. var o3 = void 0;
  17350. r3 && (o3 = r3.toString ? r3.toString() : r3), s2 == r3 || a2 != null && o3 != null && a2 == o3 || (i3 || (e4[t4] = r3), n3 = true);
  17351. }
  17352. }), n3;
  17353. }, Object.defineProperty(e3.prototype, "connect", { get: function() {
  17354. return this.getPropertyValue("connect");
  17355. }, set: function(t3) {
  17356. this.setPropertyValue("connect", t3) && this.invalidate();
  17357. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tensionX", { get: function() {
  17358. return this.getPropertyValue("tensionX");
  17359. }, set: function(t3) {
  17360. this.setPropertyValue("tensionX", t3, true);
  17361. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tensionY", { get: function() {
  17362. return this.getPropertyValue("tensionY");
  17363. }, set: function(t3) {
  17364. this.setPropertyValue("tensionY", t3, true);
  17365. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  17366. var e4 = this, i3 = t3.pixelWidth, n3 = t3.pixelHeight;
  17367. t3.disposeChildren();
  17368. var r3 = t3.createChild(bo);
  17369. if (r3.shouldClone = false, Ue(this, r3, Ka), r3.x2 = i3, r3.y = n3 / 2, r3.y2 = 1e-5, r3.visible = true, this.fillOpacity > 0) {
  17370. var s2 = t3.createChild(qa);
  17371. Ue(this, s2, Ka), s2.width = i3, s2.height = n3, s2.y = 0, s2.strokeOpacity = 0, s2.visible = true, r3.y = 0;
  17372. }
  17373. var a2 = t3.dataItem;
  17374. a2.color = this.stroke, a2.colorOrig = this.fill, Qe(this.bullets.iterator(), function(r4) {
  17375. if (r4 instanceof ql && !r4.copyToLegendMarker)
  17376. return false;
  17377. var s3 = false;
  17378. if (r4 instanceof $a && ti(r4.children.iterator(), function(t4) {
  17379. if (t4 instanceof co)
  17380. return s3 = true, true;
  17381. }), !s3) {
  17382. var a3 = r4.clone();
  17383. return a3.parent = t3, a3.isMeasured = true, a3.tooltipText = void 0, a3.x = i3 / 2, e4.fillOpacity > 0 ? a3.y = 0 : a3.y = n3 / 2, a3.visible = true, Z(a3.fill) || (a3.fill = e4.fill), Z(a3.stroke) || (a3.stroke = e4.stroke), false;
  17384. }
  17385. });
  17386. }, e3.prototype.disposeData = function() {
  17387. t2.prototype.disposeData.call(this), this.segments.clear();
  17388. }, Object.defineProperty(e3.prototype, "autoGapCount", { get: function() {
  17389. return this.getPropertyValue("autoGapCount");
  17390. }, set: function(t3) {
  17391. this.setPropertyValue("autoGapCount", t3, true);
  17392. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "smoothing", { get: function() {
  17393. return this.getPropertyValue("smoothing");
  17394. }, set: function(t3) {
  17395. this.setPropertyValue("smoothing", t3, true);
  17396. }, enumerable: true, configurable: true }), e3;
  17397. }(Dh);
  17398. Ii.registeredClasses.LineSeries = jh, Ii.registeredClasses.LineSeriesDataItem = Lh;
  17399. var Eh = function(t2) {
  17400. function e3() {
  17401. var e4 = t2.call(this) || this;
  17402. return e4.className = "RadarSeriesDataItem", e4.setLocation("dateX", 0, 0), e4.setLocation("dateY", 0, 0), e4.setLocation("categoryX", 0, 0), e4.setLocation("categoryY", 0, 0), e4.applyTheme(), e4;
  17403. }
  17404. return C(e3, t2), e3;
  17405. }(Lh), Rh = function(t2) {
  17406. function e3() {
  17407. var e4 = t2.call(this) || this;
  17408. return e4.className = "RadarSeries", e4.connectEnds = true, e4.applyTheme(), e4;
  17409. }
  17410. return C(e3, t2), e3.prototype.validate = function() {
  17411. this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  17412. }, e3.prototype.createDataItem = function() {
  17413. return new Eh();
  17414. }, e3.prototype.getPoint = function(t3, e4, i3, n3, r3, s2, a2) {
  17415. s2 || (s2 = "valueX"), a2 || (a2 = "valueY");
  17416. var o3 = _t({ x: this.yAxis.getX(t3, i3, r3, a2), y: this.yAxis.getY(t3, i3, r3, a2) });
  17417. o3 == 0 && (o3 = 1e-5);
  17418. var l2 = this.xAxis.getAngle(t3, e4, n3, s2), h2 = this.chart.startAngle, p2 = this.chart.endAngle;
  17419. return l2 < h2 || l2 > p2 ? void 0 : { x: o3 * ft(l2), y: o3 * dt(l2) };
  17420. }, e3.prototype.addPoints = function(t3, e4, i3, n3, r3) {
  17421. var s2 = this.getPoint(e4, i3, n3, e4.locations[i3], e4.locations[n3]);
  17422. s2 && t3.push(s2);
  17423. }, e3.prototype.getMaskPath = function() {
  17424. var t3 = this.yAxis.renderer;
  17425. return ko(t3.startAngle, t3.endAngle - t3.startAngle, t3.pixelRadius, t3.pixelInnerRadius);
  17426. }, e3.prototype.drawSegment = function(e4, i3, n3) {
  17427. var r3 = this.yAxis.renderer;
  17428. this.connectEnds && Math.abs(r3.endAngle - r3.startAngle) == 360 && (this.dataFields[this._xOpenField] || this.dataFields[this._yOpenField] || this.stacked) && (i3.push(i3[0]), n3.length > 0 && n3.unshift(n3[n3.length - 1])), t2.prototype.drawSegment.call(this, e4, i3, n3);
  17429. }, Object.defineProperty(e3.prototype, "connectEnds", { get: function() {
  17430. return this.getPropertyValue("connectEnds");
  17431. }, set: function(t3) {
  17432. this.setPropertyValue("connectEnds", t3, true);
  17433. }, enumerable: true, configurable: true }), e3.prototype.positionBulletReal = function(t3, e4, i3) {
  17434. var n3 = this.xAxis, r3 = this.yAxis;
  17435. (e4 < n3.start || e4 > n3.end || i3 < r3.start || i3 > r3.end) && (t3.visible = false), t3.moveTo(this.xAxis.renderer.positionToPoint(e4, i3));
  17436. }, e3.prototype.setXAxis = function(e4) {
  17437. t2.prototype.setXAxis.call(this, e4), this.updateRendererRefs();
  17438. }, e3.prototype.setYAxis = function(e4) {
  17439. t2.prototype.setYAxis.call(this, e4), this.updateRendererRefs();
  17440. }, e3.prototype.updateRendererRefs = function() {
  17441. var t3 = this.xAxis.renderer, e4 = this.yAxis.renderer;
  17442. t3.axisRendererY = e4;
  17443. }, e3;
  17444. }(jh);
  17445. Ii.registeredClasses.RadarSeries = Rh, Ii.registeredClasses.RadarSeriesDataItem = Eh;
  17446. var Bh = function(t2) {
  17447. function e3(e4) {
  17448. var i3 = t2.call(this, e4) || this;
  17449. return i3.className = "AxisFillCircular", i3.element = i3.paper.add("path"), i3.radius = V(100), i3.applyTheme(), i3;
  17450. }
  17451. return C(e3, t2), e3.prototype.draw = function() {
  17452. if (t2.prototype.draw.call(this), !this.__disabled && !this.disabled && this.axis) {
  17453. var e4 = this.axis.renderer;
  17454. this.fillPath = e4.getPositionRangePath(this.startPosition, this.endPosition, this.radius, Z(this.innerRadius) ? this.innerRadius : e4.innerRadius, this.cornerRadius), this.path = this.fillPath;
  17455. }
  17456. }, Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17457. return this.getPropertyValue("innerRadius");
  17458. }, set: function(t3) {
  17459. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17460. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17461. return this.getPropertyValue("radius");
  17462. }, set: function(t3) {
  17463. this.setPercentProperty("radius", t3, true, false, 10, false);
  17464. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cornerRadius", { get: function() {
  17465. return this.getPropertyValue("cornerRadius");
  17466. }, set: function(t3) {
  17467. this.setPropertyValue("cornerRadius", t3, true);
  17468. }, enumerable: true, configurable: true }), e3;
  17469. }(hh);
  17470. Ii.registeredClasses.AxisFillCircular = Bh;
  17471. var Hh = function(t2) {
  17472. function e3() {
  17473. var e4 = t2.call(this) || this;
  17474. return e4.className = "GridCircular", e4.pixelPerfect = false, e4.applyTheme(), e4;
  17475. }
  17476. return C(e3, t2), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17477. return this.getPropertyValue("innerRadius");
  17478. }, set: function(t3) {
  17479. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17480. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17481. return this.getPropertyValue("radius");
  17482. }, set: function(t3) {
  17483. this.setPercentProperty("radius", t3, true, false, 10, false);
  17484. }, enumerable: true, configurable: true }), e3;
  17485. }(ph);
  17486. Ii.registeredClasses.GridCircular = Hh;
  17487. var Nh = function(t2) {
  17488. function e3() {
  17489. var e4 = t2.call(this) || this;
  17490. return e4.fdx = 0, e4.fdy = 0, e4.className = "AxisLabelCircular", e4.padding(0, 0, 0, 0), e4.location = 0.5, e4.locationOnPath = 0.5, e4.radius = 0, e4.isMeasured = false, e4.applyTheme(), e4;
  17491. }
  17492. return C(e3, t2), Object.defineProperty(e3.prototype, "relativeRotation", { get: function() {
  17493. return this.getPropertyValue("relativeRotation");
  17494. }, set: function(t3) {
  17495. if (this.setPropertyValue("relativeRotation", t3, true), !Z(t3)) {
  17496. this.rotation = void 0;
  17497. var e4 = this.dataItem;
  17498. e4 && e4.component && e4.component.invalidateDataItems();
  17499. }
  17500. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17501. return this.getPropertyValue("radius");
  17502. }, set: function(t3) {
  17503. this.setPercentProperty("radius", t3, true, false, 10, false);
  17504. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bent", { get: function() {
  17505. return this.getPropertyValue("bent");
  17506. }, set: function(t3) {
  17507. this.setPropertyValue("bent", t3, true), this.setPropertyValue("wrap", false), this.setPropertyValue("horizontalCenter", "none"), this.setPropertyValue("verticalCenter", "none"), t3 ? (this.setPropertyValue("dx", 0), this.setPropertyValue("dy", 0), this.setPropertyValue("x", 0), this.setPropertyValue("y", 0), this.setPropertyValue("rotation", 0), this.fdx = 0, this.fdy = 0, this.textAlign = "middle") : this.textPathElement && (this.textPathElement.dispose(), this.textPathElement = void 0);
  17508. }, enumerable: true, configurable: true }), e3.prototype.pixelRadius = function(t3) {
  17509. var e4 = 1;
  17510. return this.inside && (e4 = -1), Vn(this.radius, t3) * e4;
  17511. }, e3.prototype.pixelRadiusY = function(t3, e4) {
  17512. var i3 = 1;
  17513. this.inside && (i3 = -1);
  17514. var n3 = this.radius;
  17515. return tt(n3) ? Vn(n3 *= e4 / t3, t3) * i3 : Vn(n3, e4) * i3;
  17516. }, e3.prototype.fixPosition = function(t3, e4, i3, n3, r3) {
  17517. tt(i3) || (i3 = e4), tt(n3) || (n3 = 0), tt(r3) || (r3 = 0);
  17518. var s2 = { x: e4 * ft(t3), y: i3 * dt(t3) };
  17519. this.invalid && this.validate();
  17520. var a2 = false, o3 = this.radius;
  17521. (o3 instanceof A && o3.value < 0 || o3 < 0) && (a2 = true);
  17522. var l2 = this.relativeRotation, h2 = this.pixelRadius(e4);
  17523. if (this.bent) {
  17524. var p2 = { x: (e4 + h2) * ft(t3 + 180), y: (i3 + h2 * i3 / e4) * dt(t3 + 180) };
  17525. return this.path = wo(p2) + Do(t3 + 180, 360, e4 + h2, i3 + h2 * i3 / e4), void (this.textPathElement && this.textPathElement.attr({ startOffset: 100 * this.locationOnPath + "%" }));
  17526. }
  17527. if (tt(l2)) {
  17528. this.horizontalCenter = "none", this.verticalCenter = "none", t3 = Rt(t3, -180, 180);
  17529. var u2 = this.bbox.width, d2 = this.bbox.height, c2 = this.pixelPaddingBottom, f2 = this.pixelPaddingTop, g2 = this.pixelPaddingLeft, y2 = this.pixelPaddingRight;
  17530. t3 > 90 || t3 < -90 ? l2 == -90 && (l2 = 90, u2 = 0) : (l2 == -90 && (d2 = -d2), l2 == 90 && (l2 = -90, u2 = -g2 - y2, d2 = -d2 - f2 - c2)), this.rotation = l2 + t3 + 90;
  17531. var m2 = dt(l2) / 2, v2 = ft(l2) / 2, b2 = this.rotation;
  17532. this.dx = d2 * m2 * dt(b2) - u2 * v2 * ft(b2), this.dy = -d2 * m2 * ft(b2) - u2 * v2 * dt(b2), this.inside ? t3 > 90 || t3 < -90 ? h2 -= (c2 + f2) * ft(l2) + (g2 + y2) * dt(l2) : h2 += (c2 + this.bbox.height + f2) * ft(l2) + (g2 + y2 + this.bbox.width) * dt(l2) : h2 += (d2 + c2 + f2) * ft(l2) + (u2 + g2 + y2) * dt(l2), s2.x += ft(t3) * h2, s2.y += dt(t3) * h2 * i3 / e4;
  17533. } else
  17534. this.horizontalCenter = "middle", this.verticalCenter = "middle", a2 ? (this.dx = 0, this.dy = 0, s2.x = (e4 + h2) * ft(t3), s2.y = (i3 + h2 * i3 / e4) * dt(t3)) : (this.dy = this._measuredHeight / 2 * dt(t3), this.dx = this._measuredWidth / 2 * ft(t3), s2.x += ft(t3) * h2, s2.y += dt(t3) * h2 * i3 / e4);
  17535. s2.x += n3, s2.y += r3, this.fdx = this.dx, this.fdy = this.dy, this.moveTo(s2);
  17536. }, e3;
  17537. }(uh);
  17538. Ii.registeredClasses.AxisLabelCircular = Nh;
  17539. var Wh = function(t2) {
  17540. function e3() {
  17541. var e4 = t2.call(this) || this;
  17542. return e4.pixelRadiusReal = 0, e4.layout = "none", e4.className = "AxisRendererCircular", e4.isMeasured = false, e4.startAngle = -90, e4.endAngle = 270, e4.useChartAngles = true, e4.radius = V(100), e4.isMeasured = false, e4.grid.template.location = 0, e4.labels.template.location = 0, e4.labels.template.radius = 15, e4.ticks.template.location = 0, e4.ticks.template.pixelPerfect = false, e4.tooltipLocation = 0, e4.line.strokeOpacity = 0, e4.applyTheme(), e4;
  17543. }
  17544. return C(e3, t2), e3.prototype.setAxis = function(e4) {
  17545. var i3 = this;
  17546. t2.prototype.setAxis.call(this, e4), e4.isMeasured = false;
  17547. var n3 = e4.tooltip;
  17548. n3.adapter.add("dx", function(t3, e5) {
  17549. var n4 = pr({ x: e5.pixelX, y: e5.pixelY }, i3);
  17550. return i3.pixelRadius * Math.cos(Math.atan2(n4.y, n4.x)) - n4.x;
  17551. }), n3.adapter.add("dy", function(t3, e5) {
  17552. var n4 = pr({ x: e5.pixelX, y: e5.pixelY }, i3);
  17553. return i3.pixelRadius * Math.sin(Math.atan2(n4.y, n4.x)) - n4.y;
  17554. });
  17555. }, e3.prototype.validate = function() {
  17556. this.chart && this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  17557. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  17558. return 2 * Math.PI * this.pixelRadius;
  17559. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17560. return this.getPropertyValue("radius");
  17561. }, set: function(t3) {
  17562. this.setPercentProperty("radius", t3, false, false, 10, false) && this.axis && this.axis.invalidate();
  17563. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  17564. return Fn(this.radius, this.pixelRadiusReal) || 0;
  17565. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17566. var t3 = this.chart, e4 = this.getPropertyValue("innerRadius");
  17567. if (t3) {
  17568. if (Z(e4)) {
  17569. if (e4 instanceof A && t3) {
  17570. var i3 = t3.mr, n3 = e4.value;
  17571. e4 = V(100 * (n3 = Math.max(i3 * n3, i3 - Math.min(t3.plotContainer.innerHeight, t3.plotContainer.innerWidth)) / i3));
  17572. }
  17573. } else
  17574. (e4 = t3.innerRadius) instanceof A && t3 && (e4 = V(e4.value * t3.innerRadiusModifyer * 100));
  17575. return e4;
  17576. }
  17577. }, set: function(t3) {
  17578. this.setPercentProperty("innerRadius", t3, false, false, 10, false) && this.axis && this.axis.invalidate();
  17579. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "useChartAngles", { get: function() {
  17580. return this.getPropertyValue("useChartAngles");
  17581. }, set: function(t3) {
  17582. this.setPropertyValue("useChartAngles", t3);
  17583. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  17584. return Fn(this.innerRadius, this.pixelRadiusReal) || 0;
  17585. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  17586. tt(e4) || (e4 = 1);
  17587. var i3 = this.positionToCoordinate(t3), n3 = this.startAngle + (this.endAngle - this.startAngle) * i3 / this.axisLength, r3 = this.pixelRadius, s2 = this.pixelInnerRadius;
  17588. if (this.axisRendererY) {
  17589. var a2 = ut(this.axisRendererY.positionToCoordinate(e4), 0, 1 / 0);
  17590. return a2 == 0 && (a2 = 1e-6), { x: a2 * ft(n3), y: a2 * dt(n3) };
  17591. }
  17592. return { x: ft(n3) * s2 + (r3 - s2) * ft(n3) * e4, y: dt(n3) * s2 + (r3 - s2) * dt(n3) * e4 };
  17593. }, e3.prototype.positionToAngle = function(t3) {
  17594. var e4 = this.axis, i3 = (this.endAngle - this.startAngle) / (e4.end - e4.start);
  17595. return lt(e4.renderer.inversed ? this.startAngle + (e4.end - t3) * i3 : this.startAngle + (t3 - e4.start) * i3, 3);
  17596. }, e3.prototype.angleToPosition = function(t3) {
  17597. var e4 = this.axis, i3 = (this.endAngle - this.startAngle) / (e4.end - e4.start);
  17598. return lt(e4.renderer.inversed ? e4.end - (t3 - this.startAngle) / i3 : (t3 - this.startAngle) / i3 + e4.start, 5);
  17599. }, e3.prototype.updateAxisLine = function() {
  17600. var t3 = this.pixelRadius, e4 = this.startAngle, i3 = yt(360, this.endAngle - e4);
  17601. this.line.path = wo({ x: t3 * ft(e4), y: t3 * dt(e4) }) + Do(e4, i3, t3, t3);
  17602. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  17603. e4 += (i3 - e4) * t3.location;
  17604. var n3 = this.positionToPoint(e4);
  17605. if (tt(n3.x) && tt(n3.y) && t3.element) {
  17606. var r3 = at * Math.atan2(n3.y, n3.x), s2 = Fn(Z(t3.radius) ? t3.radius : V(100), this.pixelRadius), a2 = Fn(t3.innerRadius, this.pixelRadius);
  17607. t3.zIndex = 0;
  17608. var o3 = Fn(tt(a2) ? a2 : this.innerRadius, this.pixelRadiusReal, true);
  17609. tt(o3) || (o3 = 0), t3.path = wo({ x: o3 * ft(r3), y: o3 * dt(r3) }) + Co({ x: s2 * ft(r3), y: s2 * dt(r3) });
  17610. }
  17611. this.toggleVisibility(t3, e4, 0, 1);
  17612. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  17613. e4 += (i3 - e4) * t3.location;
  17614. var n3 = this.positionToPoint(e4);
  17615. if (t3.element) {
  17616. var r3 = this.pixelRadius, s2 = at * Math.atan2(n3.y, n3.x), a2 = t3.length;
  17617. t3.inside && (a2 = -a2), t3.zIndex = 1, t3.path = wo({ x: r3 * ft(s2), y: r3 * dt(s2) }) + Co({ x: (r3 + a2) * ft(s2), y: (r3 + a2) * dt(s2) });
  17618. }
  17619. this.toggleVisibility(t3, e4, 0, 1);
  17620. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  17621. var n3 = 0.5;
  17622. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  17623. var r3 = this.positionToPoint(e4), s2 = this.pixelRadius, a2 = at * Math.atan2(r3.y, r3.x);
  17624. r3 = { x: s2 * ft(a2), y: s2 * dt(a2) }, this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  17625. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  17626. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3, t3.fixPosition(this.positionToAngle(e4), this.pixelRadius), t3.zIndex = 2, this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  17627. }, e3.prototype.fitsToBounds = function(t3) {
  17628. return true;
  17629. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  17630. return this.getPropertyValue("startAngle");
  17631. }, set: function(t3) {
  17632. this.setPropertyValue("startAngle", t3) && (this.invalidateAxisItems(), this.axis && this.axis.invalidateSeries());
  17633. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  17634. return this.getPropertyValue("endAngle");
  17635. }, set: function(t3) {
  17636. this.setPropertyValue("endAngle", t3) && (this.invalidateAxisItems(), this.axis && this.axis.invalidateSeries());
  17637. }, enumerable: true, configurable: true }), e3.prototype.getPositionRangePath = function(t3, e4, i3, n3, r3) {
  17638. var s2 = "";
  17639. if (tt(t3) && tt(e4)) {
  17640. Z(i3) || (i3 = this.radius), t3 = gt(t3, this.axis.start), (e4 = yt(e4, this.axis.end)) < t3 && (e4 = t3);
  17641. var a2 = Fn(i3, this.pixelRadius), o3 = Fn(n3, this.pixelRadius, true), l2 = this.positionToAngle(t3);
  17642. s2 = ko(l2, this.positionToAngle(e4) - l2, a2, o3, a2, r3);
  17643. }
  17644. return s2;
  17645. }, e3.prototype.createGrid = function() {
  17646. return new Hh();
  17647. }, e3.prototype.createFill = function(t3) {
  17648. return new Bh(t3);
  17649. }, e3.prototype.createLabel = function() {
  17650. return new Nh();
  17651. }, e3.prototype.pointToPosition = function(t3) {
  17652. var e4 = Rt(Dt(t3), this.startAngle, this.endAngle);
  17653. return this.coordinateToPosition((e4 - this.startAngle) / 360 * this.axisLength);
  17654. }, e3;
  17655. }(fh);
  17656. Ii.registeredClasses.AxisRendererCircular = Wh;
  17657. var Xh = function(t2) {
  17658. function e3() {
  17659. var e4 = t2.call(this) || this;
  17660. return e4._chart = new ve(), e4.pixelRadiusReal = 0, e4.className = "AxisRendererRadial", e4.isMeasured = false, e4.startAngle = -90, e4.endAngle = 270, e4.minGridDistance = 30, e4.gridType = "circles", e4.axisAngle = -90, e4.isMeasured = false, e4.layout = "none", e4.radius = V(100), e4.line.strokeOpacity = 0, e4.labels.template.horizontalCenter = "middle", e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  17661. }
  17662. return C(e3, t2), e3.prototype.validate = function() {
  17663. this.chart && this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  17664. }, Object.defineProperty(e3.prototype, "axisLength", { get: function() {
  17665. return this.pixelRadius - this.pixelInnerRadius;
  17666. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17667. return this.getPropertyValue("radius");
  17668. }, set: function(t3) {
  17669. this.setPercentProperty("radius", t3, false, false, 10, false);
  17670. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  17671. return Fn(this.radius, this.pixelRadiusReal) || 0;
  17672. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17673. var t3 = this.chart, e4 = this.getPropertyValue("innerRadius");
  17674. if (t3)
  17675. if (Z(e4)) {
  17676. if (e4 instanceof A && t3) {
  17677. var i3 = t3.mr, n3 = e4.value;
  17678. e4 = V(100 * (n3 = Math.max(i3 * n3, i3 - Math.min(t3.plotContainer.innerHeight, t3.plotContainer.innerWidth)) / i3));
  17679. }
  17680. } else
  17681. (e4 = t3.innerRadius) instanceof A && t3 && (e4 = V(e4.value * t3.innerRadiusModifyer * 100));
  17682. return e4;
  17683. }, set: function(t3) {
  17684. this.setPercentProperty("innerRadius", t3, false, false, 10, false);
  17685. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  17686. return Fn(this.innerRadius, this.pixelRadiusReal) || 0;
  17687. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3, e4) {
  17688. var i3 = ut(this.positionToCoordinate(t3), 0, 1 / 0);
  17689. return { x: i3 * ft(this.axisAngle), y: i3 * dt(this.axisAngle) };
  17690. }, e3.prototype.updateAxisLine = function() {
  17691. this.line.path = wo({ x: this.pixelInnerRadius * ft(this.axisAngle), y: this.pixelInnerRadius * dt(this.axisAngle) }) + Co({ x: this.pixelRadius * ft(this.axisAngle), y: this.pixelRadius * dt(this.axisAngle) });
  17692. var t3 = this.axis.title;
  17693. t3.valign = "none", t3.horizontalCenter = "middle", t3.verticalCenter = "bottom", t3.y = -this.axisLength / 2;
  17694. var e4 = 90;
  17695. this.opposite ? this.inside || (e4 = -90) : this.inside && (e4 = -90), t3.rotation = e4;
  17696. }, e3.prototype.updateGridElement = function(t3, e4, i3) {
  17697. e4 += (i3 - e4) * t3.location;
  17698. var n3, r3 = _t(this.positionToPoint(e4)), s2 = this.startAngle, a2 = this.endAngle, o3 = this.chart;
  17699. if (tt(r3) && t3.element && o3) {
  17700. var l2 = o3.xAxes.getIndex(0), h2 = 0, p2 = o3.series.getIndex(0);
  17701. if (p2 && (h2 = p2.dataItems.length), this.gridType == "polygons" && h2 > 0 && p2 && l2 && l2 instanceof Sh) {
  17702. var u2 = l2.renderer.grid.template.location, d2 = l2.getAngle(p2.dataItems.getIndex(0), "categoryX", u2);
  17703. n3 = wo({ x: r3 * ft(d2), y: r3 * dt(d2) });
  17704. for (var c2 = 1; c2 < h2; c2++)
  17705. n3 += Co({ x: r3 * ft(d2 = l2.getAngle(p2.dataItems.getIndex(c2), "categoryX", u2)), y: r3 * dt(d2) });
  17706. n3 += Co({ x: r3 * ft(d2 = l2.getAngle(p2.dataItems.getIndex(h2 - 1), "categoryX", l2.renderer.cellEndLocation)), y: r3 * dt(d2) });
  17707. } else
  17708. n3 = wo({ x: r3 * ft(s2), y: r3 * dt(s2) }) + Do(s2, a2 - s2, r3, r3);
  17709. t3.path = n3;
  17710. }
  17711. this.toggleVisibility(t3, e4, 0, 1);
  17712. }, e3.prototype.updateLabelElement = function(t3, e4, i3, n3) {
  17713. Z(n3) || (n3 = t3.location), e4 += (i3 - e4) * n3;
  17714. var r3 = this.positionToPoint(e4);
  17715. this.positionItem(t3, r3), this.toggleVisibility(t3, e4, this.minLabelPosition, this.maxLabelPosition);
  17716. }, e3.prototype.updateBaseGridElement = function() {
  17717. }, e3.prototype.fitsToBounds = function(t3) {
  17718. return true;
  17719. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  17720. return this.getPropertyValue("startAngle");
  17721. }, set: function(t3) {
  17722. this.setPropertyValue("startAngle", t3) && this.invalidateAxisItems();
  17723. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  17724. return this.getPropertyValue("endAngle");
  17725. }, set: function(t3) {
  17726. this.setPropertyValue("endAngle", t3) && this.invalidateAxisItems();
  17727. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axisAngle", { get: function() {
  17728. return this.getPropertyValue("axisAngle");
  17729. }, set: function(t3) {
  17730. this.setPropertyValue("axisAngle", Et(t3)), this.invalidateAxisItems();
  17731. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "gridType", { get: function() {
  17732. return this.chart.xAxes.getIndex(0) instanceof Sh ? this.getPropertyValue("gridType") : "circles";
  17733. }, set: function(t3) {
  17734. this.setPropertyValue("gridType", t3, true);
  17735. }, enumerable: true, configurable: true }), e3.prototype.getPositionRangePath = function(t3, e4) {
  17736. var i3, n3 = this.pixelInnerRadius, r3 = this.axisLength + n3, s2 = ut(this.positionToCoordinate(t3), n3, r3), a2 = ut(this.positionToCoordinate(e4), n3, r3), o3 = this.startAngle, l2 = this.endAngle - o3, h2 = this.chart, p2 = h2.xAxes.getIndex(0), u2 = h2.series.getIndex(0), d2 = 0;
  17737. if (u2 && (d2 = u2.dataItems.length), this.gridType == "polygons" && d2 > 0 && u2 && p2 && p2 instanceof Sh) {
  17738. var c2 = p2.renderer.grid.template.location, f2 = p2.getAngle(u2.dataItems.getIndex(0), "categoryX", c2);
  17739. i3 = wo({ x: a2 * ft(f2), y: a2 * dt(f2) });
  17740. for (var g2 = 1; g2 < d2; g2++)
  17741. i3 += Co({ x: a2 * ft(f2 = p2.getAngle(u2.dataItems.getIndex(g2), "categoryX", c2)), y: a2 * dt(f2) });
  17742. for (i3 += Co({ x: a2 * ft(f2 = p2.getAngle(u2.dataItems.getIndex(d2 - 1), "categoryX", p2.renderer.cellEndLocation)), y: a2 * dt(f2) }), i3 += wo({ x: s2 * ft(f2), y: s2 * dt(f2) }), g2 = d2 - 1; g2 >= 0; g2--)
  17743. i3 += Co({ x: s2 * ft(f2 = p2.getAngle(u2.dataItems.getIndex(g2), "categoryX", c2)), y: s2 * dt(f2) });
  17744. } else
  17745. i3 = ko(o3, l2, a2, s2);
  17746. return i3;
  17747. }, e3.prototype.updateBreakElement = function(t3) {
  17748. var e4 = t3.startLine, i3 = t3.endLine, n3 = t3.fillShape, r3 = t3.startPoint, s2 = t3.endPoint;
  17749. e4.radius = Math.abs(r3.y), i3.radius = Math.abs(s2.y), n3.radius = Math.abs(s2.y), n3.innerRadius = Math.abs(r3.y);
  17750. }, e3.prototype.createBreakSprites = function(t3) {
  17751. t3.startLine = new hl(), t3.endLine = new hl(), t3.fillShape = new hl();
  17752. }, e3.prototype.updateTooltip = function() {
  17753. if (this.axis) {
  17754. var t3 = this.axisAngle;
  17755. t3 < 0 && (t3 += 360);
  17756. var e4 = "vertical";
  17757. (t3 > 45 && t3 < 135 || t3 > 225 && t3 < 315) && (e4 = "horizontal"), this.axis.updateTooltip(e4, { x: -4e3, y: -4e3, width: 8e3, height: 8e3 });
  17758. }
  17759. }, e3.prototype.updateTickElement = function(t3, e4, i3) {
  17760. e4 += (i3 - e4) * t3.location;
  17761. var n3 = this.positionToPoint(e4);
  17762. if (t3.element) {
  17763. var r3 = Et(this.axisAngle + 90);
  17764. r3 / 90 != Math.round(r3 / 90) ? t3.pixelPerfect = false : t3.pixelPerfect = true;
  17765. var s2 = -t3.length;
  17766. t3.inside && (s2 *= -1), t3.path = wo({ x: 0, y: 0 }) + Co({ x: s2 * ft(r3), y: s2 * dt(r3) });
  17767. }
  17768. this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  17769. }, e3.prototype.updateBullet = function(t3, e4, i3) {
  17770. var n3 = 0.5;
  17771. t3 instanceof gh && (n3 = t3.location), e4 += (i3 - e4) * n3;
  17772. var r3 = this.positionToPoint(e4);
  17773. this.positionItem(t3, r3), this.toggleVisibility(t3, e4, 0, 1);
  17774. }, e3.prototype.positionToCoordinate = function(t3) {
  17775. var e4 = this.axis, i3 = e4.axisFullLength, n3 = this.pixelInnerRadius;
  17776. return lt(e4.renderer.inversed ? (e4.end - t3) * i3 + n3 : (t3 - e4.start) * i3 + n3, 1);
  17777. }, e3.prototype.pointToPosition = function(t3) {
  17778. var e4 = _t(t3) - this.pixelInnerRadius;
  17779. return this.coordinateToPosition(e4);
  17780. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  17781. return this._chart.get();
  17782. }, set: function(t3) {
  17783. this._chart.set(t3, null);
  17784. }, enumerable: true, configurable: true }), e3;
  17785. }(yh);
  17786. Ii.registeredClasses.AxisRendererRadial = Xh;
  17787. var Yh = function(t2) {
  17788. function e3() {
  17789. var e4 = t2.call(this) || this;
  17790. return e4.className = "RadarChartDataItem", e4.applyTheme(), e4;
  17791. }
  17792. return C(e3, t2), e3;
  17793. }(Th), zh = function(t2) {
  17794. function e3() {
  17795. var e4 = t2.call(this) || this;
  17796. e4._axisRendererX = Wh, e4._axisRendererY = Xh, e4.innerRadiusModifyer = 1, e4.mr = 1, e4.className = "RadarChart", e4.startAngle = -90, e4.endAngle = 270, e4.radius = V(80), e4.innerRadius = 0;
  17797. var i3 = e4.plotContainer.createChild($a);
  17798. return i3.shouldClone = false, i3.layout = "absolute", i3.align = "center", i3.valign = "middle", e4.seriesContainer.parent = i3, e4.radarContainer = i3, e4.bulletsContainer.parent = i3, e4.axisBulletsContainer = i3, e4._cursorContainer = i3, e4.chartContainer.events.on("maxsizechanged", e4.invalidate, e4, false), e4._bulletMask = i3.createChild(yo), e4._bulletMask.shouldClone = false, e4._bulletMask.element = e4.paper.add("path"), e4._bulletMask.opacity = 0, e4.applyTheme(), e4;
  17799. }
  17800. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  17801. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Radar chart"));
  17802. }, e3.prototype.processAxis = function(e4) {
  17803. t2.prototype.processAxis.call(this, e4);
  17804. var i3 = e4.renderer;
  17805. i3.gridContainer.parent = i3, i3.breakContainer.parent = i3, e4.parent = this.radarContainer, i3.toBack();
  17806. }, e3.prototype.handleXAxisRangeChange = function() {
  17807. t2.prototype.handleXAxisRangeChange.call(this), ti(this.yAxes.iterator(), function(t3) {
  17808. t3.invalidate();
  17809. });
  17810. }, e3.prototype.handleYAxisRangeChange = function() {
  17811. t2.prototype.handleYAxisRangeChange.call(this), ti(this.xAxes.iterator(), function(t3) {
  17812. t3.invalidate();
  17813. });
  17814. }, e3.prototype.processConfig = function(e4) {
  17815. if (e4 && (Z(e4.cursor) && !Z(e4.cursor.type) && (e4.cursor.type = "RadarCursor"), Z(e4.series) && it(e4.series)))
  17816. for (var i3 = 0, n3 = e4.series.length; i3 < n3; i3++)
  17817. e4.series[i3].type = e4.series[i3].type || "RadarSeries";
  17818. t2.prototype.processConfig.call(this, e4);
  17819. }, e3.prototype.beforeDraw = function() {
  17820. t2.prototype.beforeDraw.call(this);
  17821. var e4 = this.plotContainer, i3 = Bt(this.startAngle, this.endAngle, 1), n3 = { x: 0, y: 0, width: 0, height: 0 }, r3 = e4.innerWidth / i3.width, s2 = e4.innerHeight / i3.height, a2 = this.innerRadius;
  17822. if (a2 instanceof A) {
  17823. var o3 = a2.value, l2 = Math.min(r3, s2);
  17824. this.mr = l2, o3 = Math.max(l2 * o3, l2 - Math.min(e4.innerHeight, e4.innerWidth)) / l2, n3 = Bt(this.startAngle, this.endAngle, o3), this.innerRadiusModifyer = o3 / a2.value, a2 = V(100 * o3);
  17825. }
  17826. i3 = At([i3, n3]);
  17827. var h2 = Math.min(e4.innerWidth / i3.width, e4.innerHeight / i3.height), p2 = 2 * Fn(this.radius, h2) || 0, u2 = p2 / 2, d2 = this.startAngle, c2 = this.endAngle;
  17828. this._pixelInnerRadius = Fn(a2, u2), this._bulletMask.path = ko(d2, c2 - d2, u2, this._pixelInnerRadius), ti(this.xAxes.iterator(), function(t3) {
  17829. t3.renderer.useChartAngles && (t3.renderer.startAngle = d2, t3.renderer.endAngle = c2), t3.width = p2, t3.height = p2, t3.renderer.pixelRadiusReal = u2;
  17830. }), ti(this.yAxes.iterator(), function(t3) {
  17831. t3.renderer.startAngle = d2, t3.renderer.endAngle = c2, t3.width = p2, t3.height = p2, t3.renderer.pixelRadiusReal = u2;
  17832. });
  17833. var f2 = this.cursor;
  17834. f2 && (f2.width = p2, f2.height = p2, f2.startAngle = d2, f2.endAngle = c2), this.radarContainer.definedBBox = { x: u2 * i3.x, y: u2 * i3.y, width: u2 * i3.width, height: u2 * i3.height }, this.radarContainer.validatePosition();
  17835. }, e3.prototype.createSeries = function() {
  17836. return new Rh();
  17837. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  17838. return this.getPropertyValue("startAngle");
  17839. }, set: function(t3) {
  17840. this.setPropertyValue("startAngle", t3, true);
  17841. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  17842. return this.getPropertyValue("endAngle");
  17843. }, set: function(t3) {
  17844. this.setPropertyValue("endAngle", t3, true);
  17845. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17846. return this.getPropertyValue("radius");
  17847. }, set: function(t3) {
  17848. this.setPercentProperty("radius", t3, true, false, 10, false);
  17849. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  17850. return this._pixelInnerRadius;
  17851. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17852. return this.getPropertyValue("innerRadius");
  17853. }, set: function(t3) {
  17854. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17855. }, enumerable: true, configurable: true }), e3.prototype.updateXAxis = function(t3) {
  17856. t3 && t3.processRenderer();
  17857. }, e3.prototype.updateYAxis = function(t3) {
  17858. t3 && t3.processRenderer();
  17859. }, e3;
  17860. }(Ah);
  17861. Ii.registeredClasses.RadarChart = zh;
  17862. var Uh = function(t2) {
  17863. function e3() {
  17864. var e4 = t2.call(this) || this;
  17865. e4._axis = new ve(), e4.className = "ClockHand";
  17866. var i3 = new Ys();
  17867. e4.fill = i3.getFor("alternativeBackground"), e4.stroke = e4.fill;
  17868. var n3 = new yo();
  17869. n3.radius = 5, e4.pin = n3, e4.isMeasured = false, e4.startWidth = 5, e4.endWidth = 1, e4.width = V(100), e4.height = V(100), e4.radius = V(100), e4.innerRadius = V(0);
  17870. var r3 = new Jo();
  17871. return e4.hand = r3, e4._disposers.push(e4._axis), e4.applyTheme(), e4;
  17872. }
  17873. return C(e3, t2), e3.prototype.validate = function() {
  17874. t2.prototype.validate.call(this);
  17875. var e4 = this.hand;
  17876. e4.width = this.pixelWidth;
  17877. var i3 = Math.max(this.startWidth, this.endWidth);
  17878. if (e4.height = i3, e4.leftSide = V(this.startWidth / i3 * 100), e4.rightSide = V(this.endWidth / i3 * 100), this.axis) {
  17879. var n3 = this.axis.renderer, r3 = Fn(this.innerRadius, n3.pixelRadius), s2 = Fn(this.radius, n3.pixelRadius);
  17880. e4.x = r3, e4.y = -i3 / 2, e4.width = s2 - r3;
  17881. }
  17882. }, Object.defineProperty(e3.prototype, "pin", { get: function() {
  17883. return this._pin;
  17884. }, set: function(t3) {
  17885. this._pin && this.removeDispose(this._pin), t3 && (this._pin = t3, t3.parent = this, this._disposers.push(t3));
  17886. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hand", { get: function() {
  17887. return this._hand;
  17888. }, set: function(t3) {
  17889. this._hand && this.removeDispose(this._hand), t3 && (this._hand = t3, t3.parent = this, this._disposers.push(t3));
  17890. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  17891. return this.getPropertyValue("radius");
  17892. }, set: function(t3) {
  17893. this.setPercentProperty("radius", t3, true, false, 10, false);
  17894. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  17895. return this.getPropertyValue("innerRadius");
  17896. }, set: function(t3) {
  17897. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  17898. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startWidth", { get: function() {
  17899. return this.getPropertyValue("startWidth");
  17900. }, set: function(t3) {
  17901. this.setPropertyValue("startWidth", t3, true);
  17902. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endWidth", { get: function() {
  17903. return this.getPropertyValue("endWidth");
  17904. }, set: function(t3) {
  17905. this.setPropertyValue("endWidth", t3, true);
  17906. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rotationDirection", { get: function() {
  17907. return this.getPropertyValue("rotationDirection");
  17908. }, set: function(t3) {
  17909. this.setPropertyValue("rotationDirection", t3);
  17910. }, enumerable: true, configurable: true }), e3.prototype.showValue = function(t3, e4, i3) {
  17911. if (this._value = t3, t3 != null && (tt(e4) || (e4 = 0), this.axis)) {
  17912. var n3 = this.axis.renderer.positionToAngle(this.axis.anyToPosition(t3)), r3 = this.rotation;
  17913. this.rotationDirection == "clockWise" && n3 < r3 && (this.rotation = r3 - 360), this.rotationDirection == "counterClockWise" && n3 > r3 && (this.rotation = r3 + 360), this.animate({ property: "rotation", to: n3 }, e4, i3);
  17914. }
  17915. }, Object.defineProperty(e3.prototype, "currentPosition", { get: function() {
  17916. if (this.axis)
  17917. return this.axis.renderer.angleToPosition(this.rotation);
  17918. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "value", { get: function() {
  17919. return this._value;
  17920. }, set: function(t3) {
  17921. this.showValue(t3);
  17922. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "axis", { get: function() {
  17923. return this._axis.get();
  17924. }, set: function(t3) {
  17925. if (this.axis != t3 && this._axis.set(t3, new me([t3.events.on("datavalidated", this.updateValue, this, false), t3.events.on("datarangechanged", this.updateValue, this, false), t3.events.on("dataitemsvalidated", this.updateValue, this, false), t3.events.on("propertychanged", this.invalidate, this, false)])), t3) {
  17926. var e4 = t3.chart;
  17927. e4 && (this.rotation = e4.startAngle);
  17928. }
  17929. this.parent = t3.renderer, this.zIndex = 5;
  17930. }, enumerable: true, configurable: true }), e3.prototype.updateValue = function() {
  17931. this.value = this.value;
  17932. }, e3.prototype.processConfig = function(e4) {
  17933. e4 && Z(e4.axis) && Q(e4.axis) && this.map.hasKey(e4.axis) && (e4.axis = this.map.getKey(e4.axis)), t2.prototype.processConfig.call(this, e4);
  17934. }, e3;
  17935. }($a);
  17936. Ii.registeredClasses.ClockHand = Uh;
  17937. var Gh = function(t2) {
  17938. function e3() {
  17939. var e4 = t2.call(this) || this;
  17940. return e4.className = "GaugeChartDataItem", e4.applyTheme(), e4;
  17941. }
  17942. return C(e3, t2), e3;
  17943. }(Yh), Kh = function(t2) {
  17944. function e3() {
  17945. var e4 = t2.call(this) || this;
  17946. return e4.className = "GaugeChart", e4.startAngle = 180, e4.endAngle = 360, e4.hands = new Mi(new Uh()), e4.hands.events.on("inserted", e4.processHand, e4, false), e4._disposers.push(new Ai(e4.hands)), e4._disposers.push(e4.hands.template), e4.applyTheme(), e4;
  17947. }
  17948. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  17949. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Gauge chart"));
  17950. }, e3.prototype.processHand = function(t3) {
  17951. var e4 = t3.newValue;
  17952. e4.axis || (e4.axis = this.xAxes.getIndex(0));
  17953. }, e3.prototype.configOrder = function(e4, i3) {
  17954. return e4 == i3 ? 0 : e4 == "hands" ? 1 : i3 == "hands" ? -1 : t2.prototype.configOrder.call(this, e4, i3);
  17955. }, e3;
  17956. }(zh);
  17957. Ii.registeredClasses.GaugeChart = Kh;
  17958. var Zh = function(t2) {
  17959. function e3() {
  17960. var e4 = t2.call(this) || this;
  17961. return e4.className = "PercentSeriesDataItem", e4.applyTheme(), e4;
  17962. }
  17963. return C(e3, t2), e3.prototype.uidAttr = function() {
  17964. return this.slice.uidAttr();
  17965. }, e3.prototype.hide = function(e4, i3, n3, r3) {
  17966. return r3 || (r3 = ["value"]), t2.prototype.hide.call(this, e4, i3, 0, r3);
  17967. }, e3.prototype.setVisibility = function(e4, i3) {
  17968. i3 || (e4 ? this.setWorkingValue("value", this.values.value.value, 0, 0) : this.setWorkingValue("value", 0, 0, 0)), t2.prototype.setVisibility.call(this, e4, i3);
  17969. }, e3.prototype.show = function(e4, i3, n3) {
  17970. return n3 || (n3 = ["value"]), t2.prototype.show.call(this, e4, i3, n3);
  17971. }, Object.defineProperty(e3.prototype, "category", { get: function() {
  17972. return this.properties.category;
  17973. }, set: function(t3) {
  17974. this.setProperty("category", t3);
  17975. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  17976. this.component.createLegendMarker(t3, this);
  17977. }, Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  17978. return this._legendDataItem;
  17979. }, set: function(t3) {
  17980. this._legendDataItem = t3, t3.label && (t3.label.dataItem = this), t3.valueLabel && (t3.valueLabel.dataItem = this);
  17981. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tick", { get: function() {
  17982. var t3 = this;
  17983. if (!this._tick) {
  17984. var e4 = this.component.ticks.create();
  17985. this._tick = e4, this.addSprite(e4), this._disposers.push(e4), e4.parent = this.component.ticksContainer, this._disposers.push(new ye(function() {
  17986. t3.component && t3.component.ticks.removeValue(e4);
  17987. })), e4.visible = this.visible;
  17988. }
  17989. return this._tick;
  17990. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  17991. var t3 = this;
  17992. if (!this._label) {
  17993. var e4 = this.component.labels.create();
  17994. this.addSprite(e4), this._label = e4, this._disposers.push(e4), e4.parent = this.component.labelsContainer, this._disposers.push(new ye(function() {
  17995. t3.component && t3.component.labels.removeValue(e4);
  17996. })), e4.visible = this.visible;
  17997. }
  17998. return this._label;
  17999. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "slice", { get: function() {
  18000. var t3 = this;
  18001. if (!this._slice) {
  18002. var e4 = this.component, i3 = e4.slices.create();
  18003. this.addSprite(i3), this._slice = i3, this._disposers.push(i3), i3.parent = e4.slicesContainer, this._disposers.push(new ye(function() {
  18004. e4.slices.removeValue(i3);
  18005. })), i3.visible = this.visible, e4.itemsFocusable() ? (Z(this.component.role) || (this.component.role = "menu"), Z(i3.role) || (i3.role = "menuitem"), i3.focusable = true) : (Z(this.component.role) || (this.component.role = "list"), Z(i3.role) || (i3.role = "listitem"), i3.focusable = false), i3.focusable && (i3.events.on("focus", function(n3) {
  18006. i3.readerTitle = e4.populateString(e4.itemReaderText, t3);
  18007. }, void 0, false), i3.events.on("blur", function(t4) {
  18008. i3.readerTitle = "";
  18009. }, void 0, false)), i3.hoverable && (i3.events.on("over", function(n3) {
  18010. i3.readerTitle = e4.populateString(e4.itemReaderText, t3);
  18011. }, void 0, false), i3.events.on("out", function(t4) {
  18012. i3.readerTitle = "";
  18013. }, void 0, false));
  18014. }
  18015. return this._slice;
  18016. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hiddenInLegend", { get: function() {
  18017. return this.properties.hiddenInLegend;
  18018. }, set: function(t3) {
  18019. this.setProperty("hiddenInLegend", t3);
  18020. }, enumerable: true, configurable: true }), e3;
  18021. }(th), qh = function(t2) {
  18022. function e3() {
  18023. var e4 = t2.call(this) || this;
  18024. e4.className = "PercentSeries", e4._addAllDataItems = false, e4.colors = new kl(), e4.colors.step = 1, e4.isMeasured = true, e4.calculatePercent = true;
  18025. var i3 = e4.createChild($a);
  18026. i3.shouldClone = false, i3.isMeasured = false, e4.slicesContainer = i3;
  18027. var n3 = e4.createChild($a);
  18028. n3.shouldClone = false, n3.isMeasured = false, n3.layout = "none", e4.ticksContainer = n3;
  18029. var r3 = e4.createChild($a);
  18030. return r3.shouldClone = false, r3.isMeasured = false, r3.layout = "none", e4.labelsContainer = r3, e4.alignLabels = false, e4.bulletsContainer.toFront(), e4.skipFocusThreshold = 50, e4.defaultState.transitionEasing = Wr, e4.itemReaderText = "{category}: {value.percent.formatNumber('#.#')}%", e4.applyTheme(), e4;
  18031. }
  18032. return C(e3, t2), e3.prototype.createSlice = function() {
  18033. return new Za();
  18034. }, e3.prototype.createTick = function() {
  18035. return new dh();
  18036. }, e3.prototype.createLabel = function() {
  18037. return new co();
  18038. }, Object.defineProperty(e3.prototype, "slices", { get: function() {
  18039. if (!this._slices) {
  18040. var t3 = this.createSlice();
  18041. t3.applyOnClones = true, this._disposers.push(t3), this.initSlice(t3), this._slices = new Mi(t3), this._disposers.push(new Ai(this._slices));
  18042. }
  18043. return this._slices;
  18044. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "ticks", { get: function() {
  18045. if (!this._ticks) {
  18046. var t3 = this.createTick();
  18047. t3.applyOnClones = true, this._disposers.push(t3), this.initTick(t3), this._ticks = new Mi(t3), this._disposers.push(new Ai(this._ticks));
  18048. }
  18049. return this._ticks;
  18050. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "labels", { get: function() {
  18051. if (!this._labels) {
  18052. var t3 = this.createLabel();
  18053. t3.applyOnClones = true, this._disposers.push(t3), this.initLabel(t3), this._labels = new Mi(t3), this._disposers.push(new Ai(this._labels));
  18054. }
  18055. return this._labels;
  18056. }, enumerable: true, configurable: true }), e3.prototype.createDataItem = function() {
  18057. return new Zh();
  18058. }, e3.prototype.initSlice = function(t3) {
  18059. }, e3.prototype.initLabel = function(t3) {
  18060. t3.text = "{category}: {value.percent.formatNumber('#.0')}%", t3.isMeasured = false, t3.padding(5, 5, 5, 5);
  18061. }, e3.prototype.initTick = function(t3) {
  18062. }, e3.prototype.validateDataItems = function() {
  18063. this.colors.reset(), this.patterns && this.patterns.reset(), t2.prototype.validateDataItems.call(this);
  18064. }, e3.prototype.validateDataElement = function(e4) {
  18065. var i3 = e4.slice;
  18066. i3 && (i3.fill == null ? this.patterns ? (Z(i3.stroke) || (i3.stroke = this.colors.next()), i3.fill = this.patterns.next(), Z(i3.fillOpacity) && (i3.fill.backgroundOpacity = i3.fillOpacity), i3.stroke instanceof un && (i3.fill.stroke = i3.stroke, i3.fill.fill = i3.stroke)) : i3.fill = this.colors.next() : this.colors.currentStep += this.colors.step, i3.stroke == null && (i3.stroke = i3.fill)), t2.prototype.validateDataElement.call(this, e4), i3 && e4.bullets.each(function(t3, e5) {
  18067. e5.fill == null && (e5.fill = i3.fill), e5.stroke == null && (e5.stroke = i3.stroke);
  18068. }), this.updateLegendValue(e4);
  18069. }, e3.prototype.validateData = function() {
  18070. t2.prototype.validateData.call(this), this.chart && this.chart.feedLegend();
  18071. }, e3.prototype.arrangeLabels = function(t3) {
  18072. for (var e4 = 0, i3 = t3.length; e4 < i3; e4++) {
  18073. var n3 = t3[e4].label;
  18074. if (n3) {
  18075. n3.invalid && n3.validate();
  18076. var r3 = n3.measuredHeight;
  18077. n3.visible || (r3 = 0), n3.pixelY - r3 / 2 < -this.maxHeight / 2 && (n3.y = -this.maxHeight / 2 + r3 / 2);
  18078. var s2 = this.getNextLabel(e4 + 1, t3), a2 = n3.pixelY + r3;
  18079. s2 && s2.y < a2 && (s2.y = a2);
  18080. }
  18081. }
  18082. }, e3.prototype.arrangeLabels2 = function(t3) {
  18083. for (var e4 = this.maxHeight / 2, i3 = t3.length - 1; i3 >= 0; i3--) {
  18084. var n3 = t3[i3].label;
  18085. if (n3) {
  18086. n3.invalid && n3.validate();
  18087. var r3 = n3.measuredHeight;
  18088. n3.visible || (r3 = 0), i3 == t3.length - 1 && (e4 += r3 / 2), n3.pixelY + r3 > e4 && (n3.y = e4 - r3, e4 = n3.y);
  18089. }
  18090. }
  18091. }, e3.prototype.getNextLabel = function(t3, e4) {
  18092. if (e4.length >= t3) {
  18093. var i3 = e4[t3];
  18094. if (i3)
  18095. return i3.label && i3.visible ? i3.label : this.getNextLabel(t3 + 1, e4);
  18096. }
  18097. }, Object.defineProperty(e3.prototype, "colors", { get: function() {
  18098. return this.getPropertyValue("colors");
  18099. }, set: function(t3) {
  18100. this.setPropertyValue("colors", t3, true);
  18101. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "patterns", { get: function() {
  18102. return this.getPropertyValue("patterns");
  18103. }, set: function(t3) {
  18104. this.setPropertyValue("patterns", t3, true);
  18105. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3, e4) {
  18106. ti(t3.children.iterator(), function(i3) {
  18107. var n3 = e4.slice;
  18108. i3.defaultState.properties.fill = n3.fill, i3.defaultState.properties.stroke = n3.stroke, i3.defaultState.properties.fillOpacity = n3.fillOpacity, i3.defaultState.properties.strokeOpacity = n3.strokeOpacity, i3.fill = n3.fill, i3.stroke = n3.stroke, i3.fillOpacity = n3.fillOpacity, i3.strokeOpacity = n3.strokeOpacity, i3.fill == null && (i3.__disabled = true);
  18109. var r3 = t3.dataItem;
  18110. r3.color = n3.fill, r3.colorOrig = n3.fill, i3.addDisposer(n3.events.on("propertychanged", function(t4) {
  18111. t4.property == "fill" && (i3.__disabled = false, i3.isActive || (i3.fill = n3.fill), i3.defaultState.properties.fill = n3.fill, r3.color = n3.fill, r3.colorOrig = n3.fill), t4.property == "stroke" && (i3.isActive || (i3.stroke = n3.stroke), i3.defaultState.properties.stroke = n3.stroke);
  18112. }, void 0, false));
  18113. });
  18114. }, e3.prototype.handleSliceScale = function(t3) {
  18115. var e4 = this, i3 = t3.target.dataItem;
  18116. i3 && i3.bullets && ti(i3.bullets.iterator(), function(t4) {
  18117. var i4 = t4[1];
  18118. e4.positionBullet(i4);
  18119. });
  18120. }, e3.prototype.handleSliceMove = function(t3) {
  18121. }, e3.prototype.copyFrom = function(e4) {
  18122. t2.prototype.copyFrom.call(this, e4), this.slices.template.copyFrom(e4.slices.template), this.labels.template.copyFrom(e4.labels.template), this.ticks.template.copyFrom(e4.ticks.template), this.colors = e4.colors.clone();
  18123. }, Object.defineProperty(e3.prototype, "alignLabels", { get: function() {
  18124. return this.getPropertyValue("alignLabels");
  18125. }, set: function(t3) {
  18126. this.setAlignLabels(t3);
  18127. }, enumerable: true, configurable: true }), e3.prototype.setAlignLabels = function(t3) {
  18128. this.setPropertyValue("alignLabels", t3, true);
  18129. }, Object.defineProperty(e3.prototype, "ignoreZeroValues", { get: function() {
  18130. return this.getPropertyValue("ignoreZeroValues");
  18131. }, set: function(t3) {
  18132. this.setPropertyValue("ignoreZeroValues", t3, true);
  18133. }, enumerable: true, configurable: true }), e3.prototype.updateLegendValue = function(t3) {
  18134. if (t3) {
  18135. var e4 = t3.legendDataItem, i3 = t3.legendSettings;
  18136. e4 && i3 && i3 && (i3.labelText && (e4.label.text = i3.labelText), i3.itemLabelText && (e4.label.text = i3.itemLabelText), i3.valueText && (e4.valueLabel.text = i3.valueText), i3.itemValueText && (e4.valueLabel.text = i3.itemValueText));
  18137. }
  18138. }, e3;
  18139. }(eh);
  18140. Ii.registeredClasses.PercentSeries = qh, Ii.registeredClasses.PercentSeriesDataItem = Zh, lo.push({ relevant: ho.maybeXS, state: function(t2, e3) {
  18141. if (t2 instanceof qh) {
  18142. var i3 = t2.states.create(e3);
  18143. return t2.labels.template.states.create(e3).properties.disabled = true, t2.ticks.template.states.create(e3).properties.disabled = true, i3;
  18144. }
  18145. return null;
  18146. } });
  18147. var $h = function(t2) {
  18148. function e3() {
  18149. var e4 = t2.call(this) || this;
  18150. return e4.className = "PercentChartDataItem", e4.applyTheme(), e4;
  18151. }
  18152. return C(e3, t2), e3;
  18153. }(ih), Jh = function(t2) {
  18154. function e3() {
  18155. var e4 = t2.call(this) || this;
  18156. return e4.className = "PercentChart", e4.align = "none", e4.valign = "none", e4.chartContainer.minHeight = 50, e4.chartContainer.minWidth = 50, e4.applyTheme(), e4;
  18157. }
  18158. return C(e3, t2), e3.prototype.validateData = function() {
  18159. t2.prototype.validateData.call(this), this.feedLegend();
  18160. }, e3.prototype.feedLegend = function() {
  18161. var t3 = this.legend;
  18162. if (t3) {
  18163. var e4 = [];
  18164. ti(this.series.iterator(), function(t4) {
  18165. t4.hiddenInLegend || ti(t4.dataItems.iterator(), function(i3) {
  18166. i3.hiddenInLegend || (e4.push(i3), i3.legendSettings || (i3.legendSettings = t4.legendSettings));
  18167. });
  18168. }), t3.data = e4, t3.dataFields.name = "category";
  18169. }
  18170. }, e3.prototype.createSeries = function() {
  18171. return new qh();
  18172. }, e3.prototype.setLegend = function(e4) {
  18173. t2.prototype.setLegend.call(this, e4), e4 && (e4.labels.template.text = "{category}", e4.valueLabels.template.text = "{value.percent.formatNumber('#.0')}%", e4.itemContainers.template.events.on("over", function(t3) {
  18174. var e5 = t3.target.dataItem.dataContext;
  18175. if (e5.visible && !e5.isHiding) {
  18176. var i3 = e5.slice;
  18177. i3.dispatchImmediately("over"), i3.isHover = true, i3.interactions.isRealHover = true;
  18178. }
  18179. }), e4.itemContainers.template.events.on("out", function(t3) {
  18180. var e5 = t3.target.dataItem.dataContext.slice;
  18181. e5.dispatchImmediately("out"), e5.isHover = false;
  18182. }));
  18183. }, e3;
  18184. }(nh);
  18185. Ii.registeredClasses.PercentChart = Jh, Ii.registeredClasses.PercentChartDataItem = $h;
  18186. var Qh = function(t2) {
  18187. function e3() {
  18188. var e4 = t2.call(this) || this;
  18189. return e4._label = new ve(), e4._slice = new ve(), e4.className = "PieTick", e4.element = e4.paper.add("polyline"), e4._disposers.push(e4._label), e4._disposers.push(e4._slice), e4.applyTheme(), e4;
  18190. }
  18191. return C(e3, t2), e3.prototype.draw = function() {
  18192. t2.prototype.draw.call(this);
  18193. var e4 = this.slice, i3 = this.label, n3 = e4.dataItem.component;
  18194. if (e4 && e4.radius > 0 && i3 && i3.text) {
  18195. var r3 = e4.dx + e4.slice.dx + e4.pixelX + e4.ix * e4.radius * e4.scale, s2 = e4.dy + e4.slice.dy + e4.pixelY + e4.iy * e4.radiusY * e4.scale, a2 = void 0, o3 = void 0, l2 = void 0, h2 = void 0;
  18196. if (n3.alignLabels)
  18197. a2 = i3.pixelX - this.length, o3 = i3.pixelY, l2 = i3.pixelX, h2 = o3, i3.horizontalCenter == "right" && (l2 = (a2 += 2 * this.length) - this.length);
  18198. else {
  18199. var p2 = i3.pixelRadius(e4.radius);
  18200. l2 = a2 = r3 + p2 * e4.ix, h2 = o3 = s2 + p2 * e4.iy;
  18201. }
  18202. this.element.attr({ points: [r3, s2, a2, o3, l2, h2] });
  18203. }
  18204. }, Object.defineProperty(e3.prototype, "slice", { get: function() {
  18205. return this._slice.get();
  18206. }, set: function(t3) {
  18207. this._slice.set(t3, new me([t3.events.on("transformed", this.invalidate, this), t3.events.on("validated", this.invalidate, this)]));
  18208. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  18209. return this._label.get();
  18210. }, set: function(t3) {
  18211. this._label.set(t3, t3.events.on("transformed", this.invalidate, this, false));
  18212. }, enumerable: true, configurable: true }), e3;
  18213. }(dh);
  18214. Ii.registeredClasses.PieTick = Qh;
  18215. var tp = function(t2) {
  18216. function e3() {
  18217. var e4 = t2.call(this) || this;
  18218. return e4.className = "PieSeriesDataItem", e4.values.radiusValue = {}, e4.applyTheme(), e4;
  18219. }
  18220. return C(e3, t2), Object.defineProperty(e3.prototype, "radiusValue", { get: function() {
  18221. return this.values.radiusValue.value;
  18222. }, set: function(t3) {
  18223. this.setValue("radiusValue", t3);
  18224. }, enumerable: true, configurable: true }), e3.prototype.hide = function(e4, i3, n3, r3) {
  18225. return t2.prototype.hide.call(this, e4, i3, 0, ["value", "radiusValue"]);
  18226. }, e3.prototype.show = function(e4, i3, n3) {
  18227. return t2.prototype.show.call(this, e4, i3, ["value", "radiusValue"]);
  18228. }, e3;
  18229. }(Zh), ep = function(t2) {
  18230. function e3() {
  18231. var e4 = t2.call(this) || this;
  18232. return e4.className = "PieSeries", e4.alignLabels = true, e4.layout = "none", e4.labels.template.radius = V(5), e4.addDisposer(e4.labels.template.events.on("enabled", e4.invalidate, e4, false)), e4.applyTheme(), e4;
  18233. }
  18234. return C(e3, t2), e3.prototype.createSlice = function() {
  18235. return new No();
  18236. }, e3.prototype.createTick = function() {
  18237. return new Qh();
  18238. }, e3.prototype.createLabel = function() {
  18239. return new Nh();
  18240. }, e3.prototype.applyInternalDefaults = function() {
  18241. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pie Slice Series"));
  18242. }, e3.prototype.createDataItem = function() {
  18243. return new tp();
  18244. }, e3.prototype.initSlice = function(t3) {
  18245. t3.isMeasured = false, t3.defaultState.properties.scale = 1, t3.observe("scale", this.handleSliceScale, this), t3.observe(["dx", "dy", "x", "y", "shiftRadius"], this.handleSliceMove, this), t3.tooltipText = "{category}: {value.percent.formatNumber('#.#')}% ({value.value})", t3.states.create("hover").properties.scale = 1.05, t3.defaultState.properties.shiftRadius = 0, t3.togglable = true, t3.events.on("toggled", function(t4) {
  18246. t4.target.hideTooltip(), t4.target.interactions.lastHitPointer && t4.target.interactions.lastHitPointer.touch && !t4.target.isActive && (t4.target.isHover = false);
  18247. }), t3.states.create("active").properties.shiftRadius = 0.1;
  18248. }, e3.prototype.validate = function() {
  18249. this._leftItems = [], this._rightItems = [], this._currentStartAngle = this.startAngle, this._arcRect = Bt(this.startAngle, this.endAngle), this._maxRadiusPercent = 0;
  18250. for (var e4 = this.startIndex; e4 < this.endIndex; e4++) {
  18251. var i3 = this.dataItems.getIndex(e4).values.radiusValue.percent;
  18252. i3 > this._maxRadiusPercent && (this._maxRadiusPercent = i3);
  18253. }
  18254. t2.prototype.validate.call(this), this.alignLabels && (this.startAngle > this.endAngle ? this._rightItems.reverse() : this._leftItems.reverse(), this._rightItems.sort(function(t3, e5) {
  18255. var i4 = (t3.slice.middleAngle + 360) % 360, n3 = (e5.slice.middleAngle + 360) % 360;
  18256. return i4 > 270 && (i4 -= 360), n3 > 270 && (n3 -= 360), i4 < n3 ? -1 : i4 > n3 ? 1 : 0;
  18257. }), this._leftItems.sort(function(t3, e5) {
  18258. var i4 = (t3.slice.middleAngle + 360) % 360, n3 = (e5.slice.middleAngle + 360) % 360;
  18259. return i4 < n3 ? 1 : i4 > n3 ? -1 : 0;
  18260. }), this.arrangeLabels(this._rightItems), this.arrangeLabels2(this._rightItems), this.arrangeLabels(this._leftItems), this.arrangeLabels2(this._leftItems));
  18261. }, e3.prototype.validateDataElement = function(e4) {
  18262. if (this.pixelRadius > 0) {
  18263. !this.ignoreZeroValues || e4.value != 0 && e4.value != null ? e4.__disabled = false : e4.__disabled = true;
  18264. var i3 = e4.slice;
  18265. if (i3.radius = this.pixelRadius, tt(e4.radiusValue) && (i3.radius = this.pixelInnerRadius + (this.pixelRadius - this.pixelInnerRadius) * e4.values.radiusValue.percent / this._maxRadiusPercent), i3.innerRadius instanceof A || (i3.innerRadius = this.pixelInnerRadius), i3.startAngle = this._currentStartAngle, i3.arc = Math.abs(e4.values.value.percent) * (this.endAngle - this.startAngle) / 100, !this.labels.template.disabled) {
  18266. var n3 = e4.label, r3 = e4.tick;
  18267. r3.slice = i3, r3.label = n3;
  18268. var s2 = (i3.middleAngle + 360) % 360, a2 = void 0;
  18269. if (this.alignLabels) {
  18270. var o3 = n3.pixelRadius(i3.radius), l2 = r3.length + o3;
  18271. n3.dx = 0, n3.dy = 0, n3.verticalCenter = "middle";
  18272. var h2 = this._arcRect;
  18273. s2 > 270 || s2 <= 90 ? (l2 += (h2.width + h2.x) * this.pixelRadius, n3.horizontalCenter = "left", this._rightItems.push(e4)) : (l2 -= h2.x * this.pixelRadius, n3.horizontalCenter = "right", this._leftItems.push(e4), l2 *= -1);
  18274. var p2 = i3.radius + r3.length + o3;
  18275. a2 = { x: l2, y: i3.iy * p2 }, n3.moveTo(a2);
  18276. } else {
  18277. var u2 = i3.depth;
  18278. tt(u2) || (u2 = 0), n3.fixPosition(i3.middleAngle, i3.radius, i3.radiusY, 0, -u2);
  18279. }
  18280. }
  18281. this._currentStartAngle += i3.arc, t2.prototype.validateDataElement.call(this, e4);
  18282. }
  18283. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  18284. return this.getPropertyValue("radius");
  18285. }, set: function(t3) {
  18286. this.setPercentProperty("radius", t3, true, false, 10, false) && this.invalidateDataItems();
  18287. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  18288. return this._pixelRadius;
  18289. }, set: function(t3) {
  18290. this._pixelRadius != t3 && (this._pixelRadius = t3, this.invalidateDataItems());
  18291. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  18292. return this._pixelInnerRadius;
  18293. }, set: function(t3) {
  18294. this._pixelInnerRadius != t3 && (this._pixelInnerRadius = t3, this.invalidateDataItems());
  18295. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  18296. return this.getPropertyValue("innerRadius");
  18297. }, set: function(t3) {
  18298. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  18299. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  18300. var t3 = this.getPropertyValue("startAngle");
  18301. return tt(t3) ? t3 : this._startAngleInternal;
  18302. }, set: function(t3) {
  18303. this.setPropertyValue("startAngle", Et(t3), true);
  18304. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  18305. var t3 = this.getPropertyValue("endAngle");
  18306. return tt(t3) ? t3 : this._endAngleInternal;
  18307. }, set: function(t3) {
  18308. this.setPropertyValue("endAngle", t3, true);
  18309. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(e4) {
  18310. t2.prototype.positionBullet.call(this, e4);
  18311. var i3 = e4.dataItem.slice, n3 = e4.locationX;
  18312. tt(n3) || (n3 = 0.5);
  18313. var r3 = e4.locationY;
  18314. tt(r3) || (r3 = 1);
  18315. var s2 = i3.startAngle + i3.arc * n3;
  18316. e4.x = r3 * i3.radius * ft(s2), e4.y = r3 * i3.radiusY * dt(s2);
  18317. }, e3.prototype.handleSliceMove = function(t3) {
  18318. if (!this.alignLabels) {
  18319. var e4 = t3.target, i3 = e4.dataItem;
  18320. if (i3) {
  18321. var n3 = i3.label;
  18322. n3 && (n3.dx = n3.fdx + e4.dx + e4.pixelX, n3.dy = n3.fdy + e4.dy + e4.pixelY);
  18323. }
  18324. }
  18325. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  18326. if (this.definedBBox)
  18327. return this.definedBBox;
  18328. var t3 = this.chart;
  18329. return t3 ? Bt(t3.startAngle, t3.endAngle, this.pixelRadius) : Bt(this.startAngle, this.endAngle, this.pixelRadius);
  18330. }, enumerable: true, configurable: true }), e3;
  18331. }(qh);
  18332. Ii.registeredClasses.PieSeries = ep, Ii.registeredClasses.PieSeriesDataItem = tp;
  18333. var ip = function(t2) {
  18334. function e3() {
  18335. var e4 = t2.call(this) || this;
  18336. return e4.className = "PieChartDataItem", e4.applyTheme(), e4;
  18337. }
  18338. return C(e3, t2), e3;
  18339. }($h), np = function(t2) {
  18340. function e3() {
  18341. var e4 = t2.call(this) || this;
  18342. e4.className = "PieChart", e4.innerRadius = 0, e4.radius = V(80), e4.align = "none", e4.valign = "none", e4.startAngle = -90, e4.endAngle = 270;
  18343. var i3 = e4.seriesContainer;
  18344. return i3.isMeasured = true, i3.valign = "middle", i3.align = "center", i3.layout = "absolute", i3.width = void 0, i3.height = void 0, e4.chartContainer.minHeight = 50, e4.chartContainer.minWidth = 50, e4.chartContainer.events.on("maxsizechanged", e4.updateRadius, e4, false), e4.applyTheme(), e4;
  18345. }
  18346. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  18347. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pie chart"));
  18348. }, e3.prototype.validateLayout = function() {
  18349. t2.prototype.validateLayout.call(this), this.updateRadius();
  18350. }, e3.prototype.handleSeriesAdded = function(e4) {
  18351. t2.prototype.handleSeriesAdded.call(this, e4), this._chartPixelRadius = void 0, this.updateSeriesAngles();
  18352. }, e3.prototype.updateSeriesAngles = function() {
  18353. var t3 = this;
  18354. this.series.each(function(e4) {
  18355. e4._startAngleInternal = t3.startAngle, e4._endAngleInternal = t3.endAngle;
  18356. });
  18357. }, e3.prototype.updateRadius = function() {
  18358. var t3 = this.chartContainer, e4 = Bt(this.startAngle, this.endAngle, 1), i3 = { x: 0, y: 0, width: 0, height: 0 }, n3 = this.innerRadius;
  18359. n3 instanceof A && (i3 = Bt(this.startAngle, this.endAngle, n3.value)), e4 = At([e4, i3]);
  18360. var r3 = Math.min(t3.innerWidth / e4.width, t3.innerHeight / e4.height);
  18361. tt(r3) || (r3 = 0);
  18362. var s2 = Fn(this.radius, r3), a2 = Fn(this.innerRadius, r3), o3 = (s2 - a2) / this.series.length;
  18363. s2 == this._chartPixelRadius && a2 == this._chartPixelInnerRadius || (this._chartPixelRadius = s2, this._chartPixelInnerRadius = a2, ti(ai(this.series.iterator()), function(t4) {
  18364. var e5 = t4[0], i4 = t4[1], n4 = a2 + Fn(i4.radius, s2 - a2), r4 = a2 + Fn(i4.innerRadius, s2 - a2);
  18365. tt(n4) || (n4 = a2 + o3 * (e5 + 1)), tt(r4) || (r4 = a2 + o3 * e5), i4.pixelRadius = n4, i4.pixelInnerRadius = r4;
  18366. }), this.seriesContainer.definedBBox = { x: s2 * e4.x, y: s2 * e4.y, width: s2 * e4.width, height: s2 * e4.height }, this.seriesContainer.invalidateLayout(), this.bulletsContainer.x = this.seriesContainer.x, this.bulletsContainer.y = this.seriesContainer.y);
  18367. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  18368. return this.getPropertyValue("radius");
  18369. }, set: function(t3) {
  18370. this.setPercentProperty("radius", t3, true, false, 10, false) && this.invalidateLayout();
  18371. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  18372. return this.getPropertyValue("innerRadius");
  18373. }, set: function(t3) {
  18374. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  18375. }, enumerable: true, configurable: true }), e3.prototype.createSeries = function() {
  18376. return new ep();
  18377. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  18378. return this.getPropertyValue("startAngle");
  18379. }, set: function(t3) {
  18380. this.setPropertyValue("startAngle", t3) && (this.updateRadius(), this.updateSeriesAngles());
  18381. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  18382. return this.getPropertyValue("endAngle");
  18383. }, set: function(t3) {
  18384. this.setPropertyValue("endAngle", t3) && (this.updateRadius(), this.updateSeriesAngles());
  18385. }, enumerable: true, configurable: true }), e3;
  18386. }(Jh);
  18387. Ii.registeredClasses.PieChart = np, Ii.registeredClasses.PieChartDataItem = ip;
  18388. var rp = function(t2) {
  18389. function e3() {
  18390. var e4 = t2.call(this) || this;
  18391. return e4.className = "PieSeries3DDataItem", e4.values.depthValue = {}, e4.applyTheme(), e4;
  18392. }
  18393. return C(e3, t2), Object.defineProperty(e3.prototype, "depthValue", { get: function() {
  18394. return this.values.depthValue.value;
  18395. }, set: function(t3) {
  18396. this.setValue("depthValue", t3);
  18397. }, enumerable: true, configurable: true }), e3;
  18398. }(tp), sp = function(t2) {
  18399. function e3() {
  18400. var e4 = t2.call(this) || this;
  18401. return e4.className = "PieSeries3D", e4.applyTheme(), e4;
  18402. }
  18403. return C(e3, t2), e3.prototype.createDataItem = function() {
  18404. return new rp();
  18405. }, e3.prototype.createSlice = function() {
  18406. return new xl();
  18407. }, e3.prototype.validateDataElement = function(e4) {
  18408. var i3 = e4.slice, n3 = this.depth;
  18409. tt(n3) || (n3 = this.chart.depth);
  18410. var r3 = e4.values.depthValue.percent;
  18411. tt(r3) || (r3 = 100), i3.depth = r3 * n3 / 100;
  18412. var s2 = this.angle;
  18413. tt(s2) || (s2 = this.chart.angle), i3.angle = s2, t2.prototype.validateDataElement.call(this, e4);
  18414. }, e3.prototype.validate = function() {
  18415. t2.prototype.validate.call(this);
  18416. for (var e4 = this._workingStartIndex; e4 < this._workingEndIndex; e4++) {
  18417. var i3 = this.dataItems.getIndex(e4).slice, n3 = i3.startAngle;
  18418. n3 >= -90 && n3 < 90 ? i3.toFront() : n3 >= 90 && i3.toBack();
  18419. }
  18420. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  18421. return this.getPropertyValue("depth");
  18422. }, set: function(t3) {
  18423. this.setPropertyValue("depth", t3, true);
  18424. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  18425. return this.getPropertyValue("angle");
  18426. }, set: function(t3) {
  18427. this.setPropertyValue("angle", t3);
  18428. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(e4) {
  18429. t2.prototype.positionBullet.call(this, e4);
  18430. var i3 = e4.dataItem.slice;
  18431. e4.y = e4.pixelY - i3.depth;
  18432. }, e3;
  18433. }(ep);
  18434. Ii.registeredClasses.PieSeries3D = sp, Ii.registeredClasses.PieSeries3DDataItem = rp;
  18435. var ap = function(t2) {
  18436. function e3() {
  18437. var e4 = t2.call(this) || this;
  18438. return e4.className = "PieChart3DDataItem", e4.applyTheme(), e4;
  18439. }
  18440. return C(e3, t2), e3;
  18441. }(ip), op = function(t2) {
  18442. function e3() {
  18443. var e4 = t2.call(this) || this;
  18444. return e4.className = "PieChart3D", e4.depth = 20, e4.angle = 10, e4.applyTheme(), e4;
  18445. }
  18446. return C(e3, t2), Object.defineProperty(e3.prototype, "depth", { get: function() {
  18447. return this.getPropertyValue("depth");
  18448. }, set: function(t3) {
  18449. this.setPropertyValue("depth", t3) && this.invalidateDataUsers();
  18450. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  18451. return this.getPropertyValue("angle");
  18452. }, set: function(t3) {
  18453. t3 = ut(t3, 0, 90), this.setPropertyValue("angle", t3) && this.invalidateDataUsers();
  18454. }, enumerable: true, configurable: true }), e3.prototype.createSeries = function() {
  18455. return new sp();
  18456. }, e3;
  18457. }(np);
  18458. Ii.registeredClasses.PieChart3D = op;
  18459. var lp = function(t2) {
  18460. function e3() {
  18461. var e4 = t2.call(this) || this;
  18462. return e4.className = "SlicedChartDataItem", e4.applyTheme(), e4;
  18463. }
  18464. return C(e3, t2), e3;
  18465. }($h), hp = function(t2) {
  18466. function e3() {
  18467. var e4 = t2.call(this) || this;
  18468. return e4.className = "SlicedChart", e4.seriesContainer.layout = "horizontal", e4.padding(15, 15, 15, 15), e4.applyTheme(), e4;
  18469. }
  18470. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  18471. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Sliced chart"));
  18472. }, e3.prototype.validate = function() {
  18473. t2.prototype.validate.call(this);
  18474. }, e3;
  18475. }(Jh);
  18476. Ii.registeredClasses.SlicedChart = hp, Ii.registeredClasses.SlicedChartDataItem = lp;
  18477. var pp = function(t2) {
  18478. function e3() {
  18479. var e4 = t2.call(this) || this;
  18480. return e4.legendSettings = new Jl(), e4.className = "FlowDiagramNode", e4.isMeasured = false, new Ys(), e4.draggable = true, e4.inert = true, e4.setStateOnChildren = true, e4.events.on("positionchanged", e4.invalidateLinks, e4, false), e4.events.on("sizechanged", e4.invalidateLinks, e4, false), e4;
  18481. }
  18482. return C(e3, t2), e3.prototype.handleHit = function(t3) {
  18483. this.isHidden || this.isHiding ? this.show() : this.hide();
  18484. }, e3.prototype.show = function(e4) {
  18485. var i3 = t2.prototype.show.call(this, e4);
  18486. return this.outgoingDataItems.each(function(t3) {
  18487. (!t3.toNode || t3.toNode && !t3.toNode.isHidden) && (t3.setWorkingValue("value", t3.getValue("value"), e4), t3.link.show());
  18488. }), this.incomingDataItems.each(function(t3) {
  18489. (!t3.fromNode || t3.fromNode && !t3.fromNode.isHidden) && (t3.setWorkingValue("value", t3.getValue("value"), e4), t3.link.show());
  18490. }), i3;
  18491. }, e3.prototype.hide = function(e4) {
  18492. var i3 = t2.prototype.hide.call(this, e4);
  18493. return this.outgoingDataItems.each(function(t3) {
  18494. t3.setWorkingValue("value", 0, e4), t3.link.hide();
  18495. }), this.incomingDataItems.each(function(t3) {
  18496. t3.setWorkingValue("value", 0, e4), t3.link.hide();
  18497. }), i3;
  18498. }, e3.prototype.validate = function() {
  18499. this.isDisposed() || (t2.prototype.validate.call(this), this.invalidateLinks());
  18500. }, e3.prototype.invalidateLinks = function() {
  18501. var t3 = this;
  18502. this.outgoingDataItems.each(function(e4) {
  18503. var i3 = e4.link;
  18504. if (i3.colorMode == "fromNode" && (i3.fill = i3.dataItem.fromNode.color), i3.colorMode == "gradient") {
  18505. i3.fill = i3.gradient, i3.stroke = i3.gradient;
  18506. var n3 = i3.gradient.stops.getIndex(0);
  18507. n3 && (n3.color = t3.color, i3.gradient.validate());
  18508. }
  18509. }), this.incomingDataItems.each(function(e4) {
  18510. var i3 = e4.link;
  18511. if (i3.colorMode == "toNode" && (i3.fill = i3.dataItem.toNode.color), i3.colorMode == "gradient") {
  18512. i3.fill = i3.gradient, i3.stroke = i3.gradient;
  18513. var n3 = i3.gradient.stops.getIndex(1);
  18514. n3 && (n3.color = t3.color, i3.gradient.validate());
  18515. }
  18516. });
  18517. }, Object.defineProperty(e3.prototype, "incomingDataItems", { get: function() {
  18518. var t3 = this;
  18519. if (!this._incomingDataItems) {
  18520. var e4 = new Fi();
  18521. e4.events.on("inserted", function() {
  18522. t3.chart.sortBy == "name" ? t3._incomingSorted = ei(t3._incomingDataItems.iterator(), function(t4, e5) {
  18523. return vi(t4.fromName, e5.fromName);
  18524. }) : t3.chart.sortBy == "value" ? t3._incomingSorted = ei(t3._incomingDataItems.iterator(), function(t4, e5) {
  18525. return Hi(Bi(t4.value, e5.value));
  18526. }) : t3._incomingSorted = t3._incomingDataItems.iterator();
  18527. }, void 0, false), this._incomingDataItems = e4;
  18528. }
  18529. return this._incomingDataItems;
  18530. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "outgoingDataItems", { get: function() {
  18531. var t3 = this;
  18532. if (!this._outgoingDataItems) {
  18533. var e4 = new Fi();
  18534. e4.events.on("inserted", function() {
  18535. t3.chart.sortBy == "name" ? t3._outgoingSorted = ei(t3._outgoingDataItems.iterator(), function(t4, e5) {
  18536. return vi(t4.fromName, e5.fromName);
  18537. }) : t3.chart.sortBy == "value" ? t3._outgoingSorted = ei(t3._outgoingDataItems.iterator(), function(t4, e5) {
  18538. return Hi(Bi(t4.value, e5.value));
  18539. }) : t3._outgoingSorted = t3._outgoingDataItems.iterator();
  18540. }, void 0, false), this._outgoingDataItems = e4;
  18541. }
  18542. return this._outgoingDataItems;
  18543. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "name", { get: function() {
  18544. return this.getPropertyValue("name");
  18545. }, set: function(t3) {
  18546. this.setPropertyValue("name", t3, true);
  18547. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "total", { get: function() {
  18548. return this.getPropertyValue("total");
  18549. }, set: function(t3) {
  18550. this.setPropertyValue("total", t3, true);
  18551. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "totalIncoming", { get: function() {
  18552. return this.getPropertyValue("totalIncoming");
  18553. }, set: function(t3) {
  18554. this.setPropertyValue("totalIncoming", t3, true);
  18555. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "totalOutgoing", { get: function() {
  18556. return this.getPropertyValue("totalOutgoing");
  18557. }, set: function(t3) {
  18558. this.setPropertyValue("totalOutgoing", t3, true);
  18559. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  18560. return this.getPropertyValue("color");
  18561. }, set: function(t3) {
  18562. this.setColorProperty("color", t3), this._background && (this._background.fill = t3), this.fill = t3;
  18563. }, enumerable: true, configurable: true }), e3.prototype.createLegendMarker = function(t3) {
  18564. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  18565. t3.removeChildren();
  18566. var n3 = t3.createChild(fo);
  18567. n3.shouldClone = false, Ue(this, n3, Ka), n3.stroke = this.fill, n3.copyFrom(this), n3.padding(0, 0, 0, 0), n3.width = e4, n3.height = i3;
  18568. var r3 = t3.dataItem;
  18569. r3.color = n3.fill, r3.colorOrig = n3.fill;
  18570. }, Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  18571. return this._legendDataItem;
  18572. }, set: function(t3) {
  18573. this._legendDataItem = t3, this._legendDataItem.itemContainer.deepInvalidate();
  18574. }, enumerable: true, configurable: true }), e3;
  18575. }($a);
  18576. Ii.registeredClasses.FlowDiagramNode = pp;
  18577. var up = function(t2) {
  18578. function e3() {
  18579. var e4 = t2.call(this) || this;
  18580. e4.className = "FlowDiagramLink";
  18581. var i3 = new Ys();
  18582. return e4.maskBullets = false, e4.colorMode = "fromNode", e4.layout = "none", e4.isMeasured = false, e4.startAngle = 0, e4.endAngle = 0, e4.strokeOpacity = 0, e4.verticalCenter = "none", e4.horizontalCenter = "none", e4.tooltipText = "{fromName}\u2192{toName}:{value.value}", e4.tooltipLocation = 0.5, e4.link = e4.createChild(Za), e4.link.shouldClone = false, e4.link.setElement(e4.paper.add("path")), e4.link.isMeasured = false, e4.fillOpacity = 0.2, e4.fill = i3.getFor("alternativeBackground"), e4.applyTheme(), e4;
  18583. }
  18584. return C(e3, t2), e3.prototype.positionBullets = function() {
  18585. var t3 = this;
  18586. ti(this.bullets.iterator(), function(e4) {
  18587. e4.parent = t3.bulletsContainer, e4.maxWidth = t3.maxWidth, e4.maxHeight = t3.maxHeight, t3.positionBullet(e4);
  18588. });
  18589. }, Object.defineProperty(e3.prototype, "bulletsContainer", { get: function() {
  18590. if (!this._bulletsContainer) {
  18591. var t3 = this.createChild($a);
  18592. t3.shouldClone = false, t3.layout = "none", this._bulletsContainer = t3;
  18593. }
  18594. return this._bulletsContainer;
  18595. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bulletsMask", { get: function() {
  18596. if (!this._bulletsMask) {
  18597. var t3 = this.createChild(Za);
  18598. t3.shouldClone = false, t3.setElement(this.paper.add("path")), t3.isMeasured = false, this._bulletsMask = t3;
  18599. }
  18600. return this._bulletsMask;
  18601. }, enumerable: true, configurable: true }), e3.prototype.positionBullet = function(t3) {
  18602. var e4 = t3.locationX;
  18603. tt(e4) || (e4 = t3.locationY), tt(e4) || (e4 = 0.5);
  18604. var i3 = this.middleLine.positionToPoint(e4);
  18605. t3.moveTo(i3);
  18606. var n3, r3 = t3.propertyFields.rotation;
  18607. t3.dataItem && (n3 = t3.dataItem.dataContext[r3]), tt(n3) || (n3 = i3.angle), t3.rotation = n3;
  18608. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  18609. return this.getPropertyValue("startAngle");
  18610. }, set: function(t3) {
  18611. this.setPropertyValue("startAngle", t3, true);
  18612. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  18613. return this.getPropertyValue("endAngle");
  18614. }, set: function(t3) {
  18615. this.setPropertyValue("endAngle", t3, true);
  18616. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "colorMode", { get: function() {
  18617. return this.getPropertyValue("colorMode");
  18618. }, set: function(t3) {
  18619. if (t3 == "gradient") {
  18620. var e4 = this.fill;
  18621. this.gradient.stops.clear(), e4 instanceof un && (this.gradient.addColor(e4), this.gradient.addColor(e4)), this.fill = this.gradient, this.stroke = this.gradient;
  18622. }
  18623. this.setPropertyValue("colorMode", t3, true);
  18624. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maskBullets", { get: function() {
  18625. return this.getPropertyValue("maskBullets");
  18626. }, set: function(t3) {
  18627. this.setPropertyValue("maskBullets", t3, true);
  18628. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tooltipLocation", { get: function() {
  18629. return this.getPropertyValue("tooltipLocation");
  18630. }, set: function(t3) {
  18631. this.setPropertyValue("tooltipLocation", t3, true);
  18632. }, enumerable: true, configurable: true }), e3.prototype.setFill = function(e4) {
  18633. t2.prototype.setFill.call(this, e4);
  18634. var i3 = this._gradient;
  18635. i3 && e4 instanceof un && (i3.stops.clear(), i3.addColor(e4), i3.addColor(e4));
  18636. }, e3.prototype.measureElement = function() {
  18637. }, Object.defineProperty(e3.prototype, "bullets", { get: function() {
  18638. var t3 = this;
  18639. return this._bullets || (this._bullets = new Mi(new ql()), this._disposers.push(new Ai(this._bullets)), this._disposers.push(this._bullets.template), this._bullets.events.on("inserted", function(e4) {
  18640. e4.newValue.events.on("propertychanged", function(e5) {
  18641. e5.property != "locationX" && e5.property != "locationY" || t3.positionBullet(e5.target);
  18642. }, void 0, false);
  18643. }, void 0, false)), this._bullets;
  18644. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  18645. t2.prototype.copyFrom.call(this, e4), this.bullets.copyFrom(e4.bullets);
  18646. var i3 = this.middleLine;
  18647. i3 && (i3 instanceof bo && e4.middleLine instanceof bo && i3.copyFrom(e4.middleLine), i3 instanceof jo && e4.middleLine instanceof jo && i3.copyFrom(e4.middleLine)), this.link.copyFrom(e4.link);
  18648. }, e3.prototype.getTooltipX = function() {
  18649. if (this.middleLine)
  18650. return this.middleLine.positionToPoint(this.tooltipLocation).x;
  18651. }, e3.prototype.getTooltipY = function() {
  18652. if (this.middleLine)
  18653. return this.middleLine.positionToPoint(this.tooltipLocation).y;
  18654. }, Object.defineProperty(e3.prototype, "gradient", { get: function() {
  18655. return this._gradient || (this._gradient = new Oa()), this._gradient;
  18656. }, enumerable: true, configurable: true }), e3;
  18657. }($a);
  18658. Ii.registeredClasses.FlowDiagramLink = up;
  18659. var dp = function(t2) {
  18660. function e3() {
  18661. var e4 = t2.call(this) || this;
  18662. return e4.className = "FlowDiagramDataItem", e4.values.value = {}, e4.applyTheme(), e4;
  18663. }
  18664. return C(e3, t2), Object.defineProperty(e3.prototype, "fromName", { get: function() {
  18665. return this.properties.fromName;
  18666. }, set: function(t3) {
  18667. this.setProperty("fromName", t3);
  18668. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "toName", { get: function() {
  18669. return this.properties.toName;
  18670. }, set: function(t3) {
  18671. this.setProperty("toName", t3);
  18672. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  18673. return this.properties.color;
  18674. }, set: function(t3) {
  18675. this.setProperty("color", gn(t3));
  18676. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "value", { get: function() {
  18677. return this.values.value.value;
  18678. }, set: function(t3) {
  18679. this.setValue("value", t3);
  18680. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "link", { get: function() {
  18681. var t3 = this;
  18682. if (!this._link) {
  18683. var e4 = this.component.links.create();
  18684. this._link = e4, this.addSprite(e4), this._disposers.push(new ye(function() {
  18685. t3.component && t3.component.links.removeValue(e4);
  18686. }));
  18687. }
  18688. return this._link;
  18689. }, enumerable: true, configurable: true }), e3;
  18690. }(Kl), cp = function(t2) {
  18691. function e3() {
  18692. var e4 = t2.call(this) || this;
  18693. e4.colors = new kl(), e4.className = "FlowDiagram", e4.nodePadding = 20, e4.sortBy = "none", e4.sequencedInterpolation = true, e4.colors.step = 2, e4.minNodeSize = 0.02;
  18694. var i3 = e4.chartContainer.createChild($a);
  18695. i3.shouldClone = false, i3.layout = "none", i3.isMeasured = false, e4.linksContainer = i3;
  18696. var n3 = e4.chartContainer.createChild($a);
  18697. return n3.shouldClone = false, n3.layout = "none", n3.isMeasured = false, e4.nodesContainer = n3, e4.dataItem = e4.createDataItem(), e4.dataItem.component = e4, e4.applyTheme(), e4;
  18698. }
  18699. return C(e3, t2), e3.prototype.dispose = function() {
  18700. t2.prototype.dispose.call(this), this.dataItem.dispose();
  18701. }, e3.prototype.validateData = function() {
  18702. var e4 = this;
  18703. this._parseDataFrom == 0 && this.nodes.clear(), this.sortNodes(), this.colors.reset(), t2.prototype.validateData.call(this);
  18704. var i3, n3, r3 = 0, s2 = 0;
  18705. ti(this.dataItems.iterator(), function(t3) {
  18706. var a3 = t3.fromName;
  18707. a3 && ((o3 = e4.nodes.getKey(a3)) || ((o3 = e4.nodes.create(a3)).name = a3, o3.chart = e4, o3.dataItem = t3), t3.fromNode = o3, t3.fromNode.outgoingDataItems.push(t3));
  18708. var o3, l2 = t3.toName;
  18709. if (l2 && ((o3 = e4.nodes.getKey(l2)) || ((o3 = e4.nodes.create(l2)).name = l2, o3.chart = e4, o3.dataItem = t3), t3.toNode = o3, t3.toNode.incomingDataItems.push(t3)), !t3.fromNode) {
  18710. var h2 = new yl();
  18711. h2.opacities = [0, 1], t3.link.strokeModifier = h2;
  18712. }
  18713. if (!t3.toNode) {
  18714. var p2 = new yl();
  18715. p2.opacities = [1, 0], t3.link.strokeModifier = p2;
  18716. }
  18717. var u2 = t3.value;
  18718. tt(u2) && (r3 += u2, s2++, (i3 > u2 || !tt(i3)) && (i3 = u2), (n3 < u2 || !tt(n3)) && (n3 = u2));
  18719. });
  18720. var a2 = "value";
  18721. this.dataItem.setCalculatedValue(a2, n3, "high"), this.dataItem.setCalculatedValue(a2, i3, "low"), this.dataItem.setCalculatedValue(a2, r3, "sum"), this.dataItem.setCalculatedValue(a2, r3 / s2, "average"), this.dataItem.setCalculatedValue(a2, s2, "count"), ti(this.nodes.iterator(), function(t3) {
  18722. var i4 = t3[1];
  18723. i4.fill instanceof un && (i4.color = i4.fill), i4.color == null && (i4.color = e4.colors.next()), i4.dataItem.color != null && (i4.color = i4.dataItem.color), i4.dataItem.visible || i4.hide(0), e4.getNodeValue(i4);
  18724. }), this.sortNodes(), this.feedLegend();
  18725. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  18726. this.invalidate();
  18727. }, e3.prototype.sortNodes = function() {
  18728. this.sortBy == "name" ? this._sorted = this.nodes.sortedIterator() : this.sortBy == "value" ? this._sorted = ei(this.nodes.iterator(), function(t3, e4) {
  18729. return Hi(Bi(t3[1].total, e4[1].total));
  18730. }) : this._sorted = this.nodes.iterator();
  18731. }, e3.prototype.getNodeValue = function(t3) {
  18732. var e4 = 0, i3 = 0;
  18733. ti(t3.incomingDataItems.iterator(), function(t4) {
  18734. var i4 = t4.getWorkingValue("value");
  18735. tt(i4) && (e4 += i4);
  18736. }), ti(t3.outgoingDataItems.iterator(), function(t4) {
  18737. var e5 = t4.getWorkingValue("value");
  18738. tt(e5) && (i3 += e5);
  18739. }), t3.total = e4 + i3, t3.totalIncoming = e4, t3.totalOutgoing = i3;
  18740. }, e3.prototype.changeSorting = function() {
  18741. this.sortNodes();
  18742. }, e3.prototype.applyInternalDefaults = function() {
  18743. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Flow diagram"));
  18744. }, e3.prototype.createDataItem = function() {
  18745. return new dp();
  18746. }, Object.defineProperty(e3.prototype, "nodePadding", { get: function() {
  18747. return this.getPropertyValue("nodePadding");
  18748. }, set: function(t3) {
  18749. this.setPropertyValue("nodePadding", t3, true);
  18750. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sortBy", { get: function() {
  18751. return this.getPropertyValue("sortBy");
  18752. }, set: function(t3) {
  18753. this.setPropertyValue("sortBy", t3), this.changeSorting();
  18754. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minNodeSize", { get: function() {
  18755. return this.getPropertyValue("minNodeSize");
  18756. }, set: function(t3) {
  18757. this.setPropertyValue("minNodeSize", t3, true);
  18758. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nodes", { get: function() {
  18759. if (!this._nodes) {
  18760. var t3 = this.createNode();
  18761. t3.events.on("hit", function(t4) {
  18762. t4.target.handleHit(t4);
  18763. }), this._nodes = new wi(t3), this._disposers.push(new _i(this._nodes));
  18764. }
  18765. return this._nodes;
  18766. }, enumerable: true, configurable: true }), e3.prototype.createNode = function() {
  18767. var t3 = new pp();
  18768. return this._disposers.push(t3), t3;
  18769. }, Object.defineProperty(e3.prototype, "links", { get: function() {
  18770. return this._links || (this._links = new Mi(this.createLink()), this._disposers.push(new Ai(this._links))), this._links;
  18771. }, enumerable: true, configurable: true }), e3.prototype.createLink = function() {
  18772. var t3 = new up();
  18773. return this._disposers.push(t3), t3;
  18774. }, e3.prototype.feedLegend = function() {
  18775. var t3 = this.legend;
  18776. if (t3) {
  18777. var e4 = [];
  18778. this.nodes.each(function(t4, i3) {
  18779. e4.push(i3);
  18780. }), t3.data = e4, t3.dataFields.name = "name";
  18781. }
  18782. }, e3.prototype.disposeData = function() {
  18783. t2.prototype.disposeData.call(this), this.nodes.clear();
  18784. }, e3;
  18785. }(Zl);
  18786. Ii.registeredClasses.FlowDiagram = cp;
  18787. var fp = function(t2) {
  18788. function e3() {
  18789. var e4 = t2.call(this) || this;
  18790. e4.className = "LabelBullet";
  18791. var i3 = e4.createChild(co);
  18792. return i3.shouldClone = false, i3.verticalCenter = "middle", i3.horizontalCenter = "middle", i3.truncate = true, i3.hideOversized = false, i3.maxWidth = 500, i3.maxHeight = 500, i3.stroke = dn(), i3.strokeOpacity = 0, i3.fill = new Ys().getFor("text"), e4.events.on("maxsizechanged", e4.handleMaxSize, e4, false), e4.label = i3, e4.applyTheme(), e4;
  18793. }
  18794. return C(e3, t2), e3.prototype.handleMaxSize = function() {
  18795. this.label.maxWidth = this.maxWidth, this.label.maxHeight = this.maxHeight;
  18796. }, e3.prototype.copyFrom = function(e4) {
  18797. t2.prototype.copyFrom.call(this, e4), this.label.copyFrom(e4.label);
  18798. }, e3;
  18799. }(ql);
  18800. Ii.registeredClasses.LabelBullet = fp;
  18801. var gp = function(t2) {
  18802. function e3() {
  18803. var e4 = t2.call(this) || this;
  18804. e4.nextInCoord = 0, e4.nextOutCoord = 0, e4.className = "SankeyNode", e4.width = 10, e4.height = 10;
  18805. var i3 = e4.createChild(fp);
  18806. i3.shouldClone = false, i3.locationX = 1, i3.locationY = 0.5, i3.label.text = "{name}", i3.width = 150, i3.height = 150, i3.label.horizontalCenter = "left", i3.label.padding(0, 5, 0, 5), e4.nameLabel = i3;
  18807. var n3 = e4.createChild(fp);
  18808. n3.shouldClone = false, n3.label.hideOversized = false, n3.locationX = 0.5, n3.locationY = 0.5, n3.width = 150, n3.height = 150, n3.label.horizontalCenter = "middle", e4.valueLabel = n3;
  18809. var r3 = e4.hiddenState;
  18810. return r3.properties.fill = new Ys().getFor("disabledBackground"), r3.properties.opacity = 0.5, r3.properties.visible = true, e4.background.hiddenState.copyFrom(r3), e4;
  18811. }
  18812. return C(e3, t2), e3.prototype.invalidateLinks = function() {
  18813. var e4 = this;
  18814. t2.prototype.invalidateLinks.call(this), this.nextInCoord = 0, this.nextOutCoord = 0;
  18815. var i3 = this.chart;
  18816. if (i3) {
  18817. var n3 = i3.orientation;
  18818. this._incomingSorted && ti(this._incomingSorted, function(t3) {
  18819. var r3 = t3.link, s2 = t3.getWorkingValue("value");
  18820. if (tt(s2)) {
  18821. r3.parent = e4.chart.linksContainer;
  18822. var a2 = void 0, o3 = void 0, l2 = void 0;
  18823. if (n3 == "horizontal" ? (a2 = e4.pixelX + e4.dx, o3 = e4.nextInCoord + e4.pixelY + e4.dy, l2 = 0) : (o3 = e4.pixelY + e4.dy, a2 = e4.nextInCoord + e4.pixelX + e4.dx, l2 = 90), r3.endX = a2, r3.endY = o3, r3.startAngle = l2, r3.endAngle = l2, r3.gradient.rotation = l2, r3.linkWidth = s2 * i3.valueHeight, !t3.fromNode) {
  18824. n3 == "horizontal" ? (r3.maxWidth = 200, r3.startX = e4.pixelX + e4.dx - r3.maxWidth, r3.startY = r3.endY) : (r3.maxHeight = 200, r3.startX = r3.endX, r3.startY = e4.pixelY + e4.dy - r3.maxHeight), r3.gradient, r3.fill = t3.toNode.color;
  18825. var h2 = r3.gradient.stops.getIndex(0);
  18826. h2 && (r3.colorMode == "gradient" && (h2.color = e4.color), h2.opacity = 0, r3.fill = r3.gradient, r3.stroke = r3.gradient, r3.gradient.validate());
  18827. }
  18828. e4.nextInCoord += r3.linkWidth;
  18829. }
  18830. }), this._outgoingSorted && ti(this._outgoingSorted, function(t3) {
  18831. var i4 = t3.link;
  18832. i4.parent = e4.chart.linksContainer;
  18833. var r3 = t3.getWorkingValue("value");
  18834. if (tt(r3)) {
  18835. var s2 = void 0, a2 = void 0, o3 = void 0;
  18836. if (n3 == "horizontal" ? (o3 = 0, s2 = e4.pixelX + e4.pixelWidth + e4.dx - 1, a2 = e4.nextOutCoord + e4.pixelY + e4.dy) : (o3 = 90, s2 = e4.nextOutCoord + e4.pixelX + e4.dx, a2 = e4.pixelY + e4.pixelHeight + e4.dy - 1), i4.startX = s2, i4.startY = a2, i4.startAngle = o3, i4.endAngle = o3, i4.gradient.rotation = o3, i4.linkWidth = r3 * e4.chart.valueHeight, !t3.toNode) {
  18837. n3 == "horizontal" ? (i4.maxWidth = 200, i4.endX = e4.pixelX + i4.maxWidth + e4.dx, i4.endY = i4.startY) : (i4.maxHeight = 200, i4.endX = i4.startX, i4.endY = e4.pixelY + i4.maxHeight + e4.dy), i4.opacity = e4.opacity;
  18838. var l2 = i4.gradient.stops.getIndex(1);
  18839. l2 && (i4.colorMode == "gradient" && (l2.color = e4.color), l2.opacity = 0, i4.fill = i4.gradient, i4.stroke = i4.gradient, i4.gradient.validate());
  18840. }
  18841. e4.nextOutCoord += i4.linkWidth;
  18842. }
  18843. });
  18844. }
  18845. this.positionBullet(this.nameLabel), this.positionBullet(this.valueLabel);
  18846. }, e3.prototype.positionBullet = function(t3) {
  18847. t3 && (t3.x = this.measuredWidth * t3.locationX, t3.y = this.measuredHeight * t3.locationY);
  18848. }, Object.defineProperty(e3.prototype, "level", { get: function() {
  18849. return this.getPropertyValue("level");
  18850. }, set: function(t3) {
  18851. this.setPropertyValue("level", t3, true);
  18852. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  18853. t2.prototype.copyFrom.call(this, e4), this.nameLabel.copyFrom(e4.nameLabel), this.valueLabel.copyFrom(e4.valueLabel);
  18854. }, e3;
  18855. }(pp);
  18856. Ii.registeredClasses.SankeyNode = gp;
  18857. var yp = function(t2) {
  18858. function e3() {
  18859. var e4 = t2.call(this) || this;
  18860. return e4.className = "SankeyLink", new Ys(), e4.tension = 0.8, e4.controlPointDistance = 0.2, e4.startAngle = 0, e4.endAngle = 0, e4.linkWidth = 0, e4.startX = 0, e4.endX = 0, e4.startY = 0, e4.endY = 0, e4.middleLine = e4.createChild(Ho), e4.middleLine.shouldClone = false, e4.middleLine.strokeOpacity = 0, e4.applyTheme(), e4;
  18861. }
  18862. return C(e3, t2), e3.prototype.makeBackwards = function() {
  18863. this.states.getKey("backwards") != null && this.setState("backwards");
  18864. }, e3.prototype.validate = function() {
  18865. var e4, i3, n3, r3;
  18866. if (t2.prototype.validate.call(this), !this.isTemplate) {
  18867. var s2 = this.startX, a2 = this.startY, o3 = this.endX, l2 = this.endY;
  18868. if (this.states.getKey("backwards") && this.setState("default"), this.dataItem) {
  18869. var h2 = this.dataItem.component;
  18870. h2 && (h2.orientation == "horizontal" ? o3 < s2 && (s2 = (e4 = k([o3, s2], 2))[0], o3 = e4[1], a2 = (i3 = k([l2, a2], 2))[0], l2 = i3[1], this.makeBackwards()) : l2 < a2 && (a2 = (n3 = k([l2, a2], 2))[0], l2 = n3[1], s2 = (r3 = k([o3, s2], 2))[0], o3 = r3[1], this.makeBackwards()));
  18871. }
  18872. tt(o3) || (o3 = s2), tt(l2) || (l2 = a2);
  18873. var p2 = this.startAngle, u2 = this.endAngle, d2 = this.linkWidth, c2 = "", f2 = s2, g2 = a2, y2 = o3, m2 = l2, v2 = s2 + d2 * dt(p2), b2 = o3 + d2 * dt(u2), x2 = a2 + d2 * ft(p2), _2 = l2 + d2 * ft(u2), P2 = s2 + d2 / 2 * dt(p2), w2 = o3 + d2 / 2 * dt(u2), C2 = a2 + d2 / 2 * ft(p2), O2 = l2 + d2 / 2 * ft(u2);
  18874. this.zIndex = this.zIndex || this.dataItem.index;
  18875. var S2 = this.tension + (1 - this.tension) * dt(p2), I2 = this.tension + (1 - this.tension) * ft(p2);
  18876. if (this.middleLine.tensionX = S2, this.middleLine.tensionY = I2, tt(d2) && tt(s2) && tt(o3) && tt(a2) && tt(l2)) {
  18877. lt(f2, 3) == lt(y2, 3) && (y2 += 0.01), lt(g2, 3) == lt(m2, 3) && (m2 += 0.01), lt(v2, 3) == lt(b2, 3) && (b2 += 0.01), lt(x2, 3) == lt(_2, 3) && (_2 += 0.01);
  18878. var D2 = Math.min(v2, b2, f2, y2), T2 = Math.min(x2, _2, g2, m2), A2 = Math.max(v2, b2, f2, y2), V2 = Math.max(x2, _2, g2, m2);
  18879. this._bbox = { x: D2, y: T2, width: A2 - D2, height: V2 - T2 };
  18880. var F2 = this.controlPointDistance, M2 = f2 + (y2 - f2) * F2 * ft(p2), L2 = g2 + (m2 - g2) * F2 * dt(p2), j2 = y2 - (y2 - f2) * F2 * ft(u2), E2 = m2 - (m2 - g2) * F2 * dt(u2), R2 = P2 + (w2 - P2) * F2 * ft(p2), B2 = C2 + (O2 - C2) * F2 * dt(p2), H2 = w2 - (w2 - P2) * F2 * ft(u2), N2 = O2 - (O2 - C2) * F2 * dt(u2), W2 = Dt({ x: M2, y: L2 }, { x: j2, y: E2 }), X2 = (d2 / ft(W2) - d2) / ct(W2) * ft(p2), Y2 = (d2 / dt(W2) - d2) * ct(W2) * dt(p2), z2 = -X2 / 2 + v2 + (b2 - v2) * F2 * ft(p2), U2 = -Y2 / 2 + x2 + (_2 - x2) * F2 * dt(p2), G2 = -X2 / 2 + b2 - (b2 - v2) * F2 * ft(u2), K2 = -Y2 / 2 + _2 - (_2 - x2) * F2 * dt(u2);
  18881. this.middleLine.segments = [[{ x: P2, y: C2 }, { x: R2, y: B2 }, { x: H2, y: N2 }, { x: w2, y: O2 }]], M2 += X2 / 2, L2 += Y2 / 2, j2 += X2 / 2, E2 += Y2 / 2, c2 += wo({ x: f2, y: g2 }), c2 += new tl(S2, I2).smooth([{ x: f2, y: g2 }, { x: M2, y: L2 }, { x: j2, y: E2 }, { x: y2, y: m2 }]), c2 += Co({ x: b2, y: _2 }), c2 += new tl(S2, I2).smooth([{ x: b2, y: _2 }, { x: G2, y: K2 }, { x: z2, y: U2 }, { x: v2, y: x2 }]), c2 += " Z";
  18882. }
  18883. this.link.path = c2, this.maskBullets && (this.bulletsMask.path = c2, this.bulletsContainer.mask = this.bulletsMask), this.positionBullets();
  18884. }
  18885. }, Object.defineProperty(e3.prototype, "startX", { get: function() {
  18886. return this.getPropertyValue("startX");
  18887. }, set: function(t3) {
  18888. this.setPropertyValue("startX", t3, true);
  18889. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endX", { get: function() {
  18890. return this.getPropertyValue("endX");
  18891. }, set: function(t3) {
  18892. this.setPropertyValue("endX", t3, true);
  18893. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startY", { get: function() {
  18894. return this.getPropertyValue("startY");
  18895. }, set: function(t3) {
  18896. this.setPropertyValue("startY", t3, true);
  18897. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endY", { get: function() {
  18898. return this.getPropertyValue("endY");
  18899. }, set: function(t3) {
  18900. this.setPropertyValue("endY", t3, true);
  18901. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "linkWidth", { get: function() {
  18902. return this.getPropertyValue("linkWidth");
  18903. }, set: function(t3) {
  18904. this.setPropertyValue("linkWidth", t3, true);
  18905. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "controlPointDistance", { get: function() {
  18906. return this.getPropertyValue("controlPointDistance");
  18907. }, set: function(t3) {
  18908. this.setPropertyValue("controlPointDistance", t3, true);
  18909. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "tension", { get: function() {
  18910. return this.getPropertyValue("tension");
  18911. }, set: function(t3) {
  18912. this.setPropertyValue("tension", t3, true);
  18913. }, enumerable: true, configurable: true }), e3;
  18914. }(up);
  18915. Ii.registeredClasses.SankeyLink = yp;
  18916. var mp = function(t2) {
  18917. function e3() {
  18918. var e4 = t2.call(this) || this;
  18919. return e4.className = "SankeyDiagramDataItem", e4.applyTheme(), e4;
  18920. }
  18921. return C(e3, t2), e3;
  18922. }(dp), vp = function(t2) {
  18923. function e3() {
  18924. var e4 = t2.call(this) || this;
  18925. return e4.className = "SankeyDiagram", e4.orientation = "horizontal", e4.nodeAlign = "middle", e4.nodesContainer.width = V(100), e4.nodesContainer.height = V(100), e4.linksContainer.width = V(100), e4.linksContainer.height = V(100), e4.applyTheme(), e4;
  18926. }
  18927. return C(e3, t2), e3.prototype.validateData = function() {
  18928. var e4 = this;
  18929. this._valueHeight = void 0, t2.prototype.validateData.call(this), this._levelCount = 0, this.nodes.each(function(t3, e5) {
  18930. e5.level = void 0;
  18931. }), this.nodes.each(function(t3, i3) {
  18932. i3.level = e4.getNodeLevel(i3, 0), e4._levelCount = gt(e4._levelCount, i3.level);
  18933. });
  18934. }, e3.prototype.getNodeLevel = function(t3, e4) {
  18935. var i3 = this, n3 = [e4];
  18936. return ti(t3.incomingDataItems.iterator(), function(t4) {
  18937. t4.fromNode && (tt(t4.fromNode.level) ? n3.push(t4.fromNode.level + 1) : (i3._counter = 0, i3.checkLoop(t4.fromNode), i3._counter < i3.dataItems.length && n3.push(i3.getNodeLevel(t4.fromNode, e4 + 1))));
  18938. }), Math.max.apply(Math, T(n3));
  18939. }, e3.prototype.checkLoop = function(t3) {
  18940. var e4 = this;
  18941. this._counter++, this._counter > this.dataItems.length || ti(t3.incomingDataItems.iterator(), function(t4) {
  18942. e4.checkLoop(t4.fromNode);
  18943. });
  18944. }, e3.prototype.calculateValueHeight = function() {
  18945. var t3 = this;
  18946. this._levelSum = {}, this._levelNodesCount = {}, this.maxSum = 0;
  18947. var e4, i3, n3, r3 = this.dataItem.values.value.sum;
  18948. ti(this._sorted, function(e5) {
  18949. var i4 = e5[1];
  18950. t3.getNodeValue(i4);
  18951. }), this.nodes.each(function(e5, i4) {
  18952. var n4 = i4.level, s3 = Math.max(i4.totalIncoming, i4.totalOutgoing);
  18953. s3 / r3 < t3.minNodeSize && (s3 = r3 * t3.minNodeSize), tt(t3._levelSum[n4]) ? t3._levelSum[n4] += s3 : t3._levelSum[n4] = s3, tt(t3._levelNodesCount[n4]) ? t3._levelNodesCount[n4]++ : t3._levelNodesCount[n4] = 1;
  18954. }), e4 = this.orientation == "horizontal" ? this.chartContainer.maxHeight - 1 : this.chartContainer.maxWidth - 1, Ne(this._levelSum, function(r4, s3) {
  18955. var a3 = s3, o4 = t3._levelNodesCount[r4], l3 = (e4 - (o4 - 1) * t3.nodePadding) / a3;
  18956. l3 == 1 / 0 && (l3 = 0), (n3 > l3 || !tt(n3)) && (n3 = l3, t3.maxSum = a3, i3 = U(r4));
  18957. }), this._maxSumLevel = i3;
  18958. var s2 = this._levelNodesCount[this._maxSumLevel], a2 = (e4 - (s2 - 1) * this.nodePadding) / this.maxSum;
  18959. if (a2 == 1 / 0 && (a2 = 0), tt(this.valueHeight)) {
  18960. var o3 = void 0;
  18961. try {
  18962. o3 = this._heightAnimation.animationOptions[0].to;
  18963. } catch (t4) {
  18964. }
  18965. if (o3 != a2) {
  18966. var l2 = this.interpolationDuration;
  18967. try {
  18968. l2 = this.nodes.template.states.getKey("active").transitionDuration;
  18969. } catch (t4) {
  18970. }
  18971. this._heightAnimation = new ys(this, { property: "valueHeight", from: this.valueHeight, to: a2 }, l2, this.interpolationEasing).start(), this._disposers.push(this._heightAnimation);
  18972. }
  18973. } else
  18974. this.valueHeight = a2;
  18975. }, e3.prototype.validate = function() {
  18976. var e4 = this;
  18977. t2.prototype.validate.call(this), this.calculateValueHeight();
  18978. var i3, n3 = this.nodesContainer, r3 = {}, s2 = this._levelNodesCount[this._maxSumLevel], a2 = this.dataItem.values.value.sum;
  18979. i3 = this.orientation == "horizontal" ? this.chartContainer.maxHeight - 1 : this.chartContainer.maxWidth - 1, ti(this._sorted, function(t3) {
  18980. var o3, l2, h2, p2 = t3[1], u2 = p2.level, d2 = 0, c2 = e4._levelNodesCount[u2];
  18981. switch (e4.nodeAlign) {
  18982. case "bottom":
  18983. d2 = (e4.maxSum - e4._levelSum[u2]) * e4.valueHeight - (c2 - s2) * e4.nodePadding;
  18984. break;
  18985. case "middle":
  18986. d2 = (e4.maxSum - e4._levelSum[u2]) * e4.valueHeight / 2 - (c2 - s2) * e4.nodePadding / 2;
  18987. }
  18988. if (e4.maxSum == 0)
  18989. switch (e4.nodeAlign) {
  18990. case "bottom":
  18991. d2 = i3 - c2 * (e4.minNodeSize * i3 + e4.nodePadding);
  18992. break;
  18993. case "middle":
  18994. d2 = i3 / 2 - c2 / 2 * (e4.minNodeSize * i3 + e4.nodePadding);
  18995. }
  18996. p2.parent = n3;
  18997. var f2 = Math.max(p2.totalIncoming, p2.totalOutgoing);
  18998. if (f2 / a2 < e4.minNodeSize && (f2 = a2 * e4.minNodeSize), e4.orientation == "horizontal") {
  18999. l2 = (o3 = (e4.innerWidth - p2.pixelWidth) / e4._levelCount) * p2.level, h2 = r3[u2] || d2;
  19000. var g2 = f2 * e4.valueHeight;
  19001. a2 == 0 && g2 == 0 && (g2 = e4.minNodeSize * i3), p2.height = g2, p2.minX = l2, p2.maxX = l2, r3[u2] = h2 + g2 + e4.nodePadding;
  19002. } else {
  19003. o3 = (e4.innerHeight - p2.pixelHeight) / e4._levelCount, l2 = r3[u2] || d2, h2 = o3 * p2.level;
  19004. var y2 = f2 * e4.valueHeight;
  19005. a2 == 0 && y2 == 0 && (y2 = e4.minNodeSize * i3), p2.width = y2, p2.minY = h2, p2.maxY = h2, r3[u2] = l2 + y2 + e4.nodePadding;
  19006. }
  19007. p2.x = l2, p2.y = h2;
  19008. });
  19009. }, e3.prototype.showReal = function(e4) {
  19010. var i3 = this;
  19011. if (!this.preventShow) {
  19012. if (this.interpolationDuration > 0) {
  19013. var n3 = this.nodesContainer, r3 = 0;
  19014. ti(this.links.iterator(), function(t3) {
  19015. t3.hide(0);
  19016. }), ti(this._sorted, function(t3) {
  19017. var e5, s2 = t3[1];
  19018. i3.orientation == "horizontal" ? (s2.dx = -(n3.pixelWidth - s2.pixelWidth) / Math.max(i3._levelCount, 1), e5 = "dx") : (s2.dy = -(n3.pixelHeight - s2.pixelHeight) / Math.max(i3._levelCount, 1), e5 = "dy");
  19019. var a2 = 0, o3 = i3.interpolationDuration;
  19020. i3.sequencedInterpolation && (a2 = i3.sequencedInterpolationDelay * r3 + o3 * r3 / $e(i3.nodes.iterator())), s2.opacity = 0, s2.invalidateLinks(), s2.animate([{ property: "opacity", from: 0, to: 1 }, { property: e5, to: 0 }], i3.interpolationDuration, i3.interpolationEasing).delay(a2), ti(s2.outgoingDataItems.iterator(), function(t4) {
  19021. var e6 = t4.link.show(i3.interpolationDuration);
  19022. e6 && !e6.isFinished() && e6.delay(a2);
  19023. }), ti(s2.incomingDataItems.iterator(), function(t4) {
  19024. if (!t4.fromNode) {
  19025. var e6 = t4.link.show(i3.interpolationDuration);
  19026. e6 && !e6.isFinished() && e6.delay(a2);
  19027. }
  19028. }), r3++;
  19029. });
  19030. }
  19031. return t2.prototype.showReal.call(this);
  19032. }
  19033. }, e3.prototype.changeSorting = function() {
  19034. var t3 = this;
  19035. this.sortNodes();
  19036. var e4 = {};
  19037. ti(this._sorted, function(i3) {
  19038. var n3, r3, s2 = i3[1], a2 = s2.level, o3 = (t3.maxSum - t3._levelSum[a2]) * t3.valueHeight / 2;
  19039. t3.orientation == "horizontal" ? (n3 = "y", r3 = s2.pixelHeight) : (n3 = "x", r3 = s2.pixelWidth), s2.animate({ property: n3, to: e4[a2] || o3 }, t3.interpolationDuration, t3.interpolationEasing), e4[a2] = (e4[a2] || o3) + r3 + t3.nodePadding, s2.invalidateLinks();
  19040. });
  19041. }, e3.prototype.applyInternalDefaults = function() {
  19042. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Sankey diagram"));
  19043. }, e3.prototype.createDataItem = function() {
  19044. return new mp();
  19045. }, Object.defineProperty(e3.prototype, "nodeAlign", { get: function() {
  19046. return this.getPropertyValue("nodeAlign");
  19047. }, set: function(t3) {
  19048. this.setPropertyValue("nodeAlign", t3), this.changeSorting();
  19049. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  19050. return this.getPropertyValue("orientation");
  19051. }, set: function(t3) {
  19052. this.setPropertyValue("orientation", t3, true);
  19053. var e4 = this.nodes.template.nameLabel;
  19054. t3 == "vertical" ? (this.nodes.template.width = void 0, e4.label.horizontalCenter = "middle", e4.locationX = 0.5) : (this.nodes.template.height = void 0, e4.label.horizontalCenter = "left", e4.locationX = 1);
  19055. }, enumerable: true, configurable: true }), e3.prototype.createNode = function() {
  19056. var t3 = new gp();
  19057. return this._disposers.push(t3), t3;
  19058. }, e3.prototype.createLink = function() {
  19059. var t3 = new yp();
  19060. return this._disposers.push(t3), t3;
  19061. }, Object.defineProperty(e3.prototype, "valueHeight", { get: function() {
  19062. return this._valueHeight;
  19063. }, set: function(t3) {
  19064. t3 != this._valueHeight && (this._valueHeight = t3, this.invalidate());
  19065. }, enumerable: true, configurable: true }), e3.prototype.disposeData = function() {
  19066. t2.prototype.disposeData.call(this), this._sorted = this.nodes.iterator();
  19067. }, e3;
  19068. }(cp);
  19069. Ii.registeredClasses.SankeyDiagram = vp;
  19070. var bp = function(t2) {
  19071. function e3() {
  19072. var e4 = t2.call(this) || this;
  19073. e4.className = "ChordNode";
  19074. var i3 = e4.createChild(Nh);
  19075. i3.location = 0.5, i3.radius = 5, i3.text = "{name}", i3.zIndex = 1, i3.shouldClone = false, e4.label = i3, e4.layout = "none", e4.events.on("positionchanged", e4.updateRotation, e4, false), e4.isMeasured = false, e4.slice = e4.createChild(No), e4.slice.isMeasured = false;
  19076. var n3 = e4.hiddenState;
  19077. return n3.properties.fill = new Ys().getFor("disabledBackground"), n3.properties.opacity = 0.5, n3.properties.visible = true, e4.setStateOnChildren = false, e4.slice.hiddenState.properties.visible = true, e4.adapter.add("tooltipX", function(t3, e5) {
  19078. return e5.slice.ix * (e5.slice.radius - (e5.slice.radius - e5.slice.pixelInnerRadius) / 2);
  19079. }), e4.adapter.add("tooltipY", function(t3, e5) {
  19080. return e5.slice.iy * (e5.slice.radius - (e5.slice.radius - e5.slice.pixelInnerRadius) / 2);
  19081. }), e4;
  19082. }
  19083. return C(e3, t2), e3.prototype.invalidateLinks = function() {
  19084. var e4 = this;
  19085. t2.prototype.invalidateLinks.call(this);
  19086. var i3 = this.label, n3 = this.slice, r3 = this.chart;
  19087. if (r3 && n3) {
  19088. var s2 = this.total, a2 = n3.arc, o3 = n3.startAngle;
  19089. this.children.each(function(t3) {
  19090. if (t3 instanceof ql) {
  19091. var e5 = t3.locationX;
  19092. tt(e5) || (e5 = 0.5);
  19093. var i4 = t3.locationY;
  19094. tt(i4) || (i4 = 1);
  19095. var r4 = o3 + a2 * e5, s3 = i4 * n3.radius;
  19096. t3.x = s3 * ft(r4), t3.y = s3 * dt(r4);
  19097. }
  19098. });
  19099. var l2 = o3 + a2 * i3.location, h2 = o3 + (1 - s2 / this.adjustedTotal) * a2 * 0.5;
  19100. M(h2) && (h2 = o3), i3.fixPosition(l2, n3.radius), this.nextAngle = h2, this._outgoingSorted && ti(this._outgoingSorted, function(t3) {
  19101. var i4 = t3.link;
  19102. i4.parent = e4.chart.linksContainer;
  19103. var s3 = t3.getWorkingValue("value");
  19104. if (tt(s3)) {
  19105. if (r3.nonRibbon) {
  19106. var l3 = i4.percentWidth;
  19107. tt(l3) || (l3 = 5), l3 /= 100, i4.startAngle = o3 + a2 / 2 - a2 / 2 * l3, i4.arc = a2 * l3;
  19108. } else
  19109. i4.arc = s3 * r3.valueAngle, i4.startAngle = e4.nextAngle, e4.nextAngle += i4.arc;
  19110. t3.toNode || (i4.endAngle = i4.startAngle), i4.radius = n3.pixelInnerRadius;
  19111. }
  19112. }), this._incomingSorted && ti(this._incomingSorted, function(t3) {
  19113. var i4 = t3.link;
  19114. if (i4.radius = n3.pixelInnerRadius, r3.nonRibbon) {
  19115. var s3 = i4.percentWidth;
  19116. tt(s3) || (s3 = 5), s3 /= 100, i4.endAngle = o3 + a2 / 2 - a2 / 2 * s3, i4.arc = a2 * s3;
  19117. } else {
  19118. i4.endAngle = e4.nextAngle;
  19119. var l3 = t3.getWorkingValue("value");
  19120. tt(l3) && (i4.arc = l3 * r3.valueAngle, e4.nextAngle += i4.arc);
  19121. }
  19122. t3.fromNode || (i4.startAngle = i4.endAngle);
  19123. });
  19124. }
  19125. }, e3.prototype.updateRotation = function() {
  19126. var t3 = this.slice, e4 = this.trueStartAngle + t3.arc / 2, i3 = t3.radius, n3 = i3 * ft(e4), r3 = i3 * dt(e4), s2 = Dt({ x: n3 + this.pixelX, y: r3 + this.pixelY });
  19127. t3.startAngle = this.trueStartAngle + (s2 - e4), this.dx = -this.pixelX, this.dy = -this.pixelY;
  19128. }, e3.prototype.copyFrom = function(e4) {
  19129. t2.prototype.copyFrom.call(this, e4), this.label.copyFrom(e4.label), this.slice.copyFrom(e4.slice);
  19130. }, e3;
  19131. }(pp);
  19132. Ii.registeredClasses.ChordNode = bp;
  19133. var xp = function(t2) {
  19134. function e3() {
  19135. var e4 = t2.call(this) || this;
  19136. return e4.className = "QuadraticCurve", e4.element = e4.paper.add("path"), e4.pixelPerfect = false, e4.fill = dn(), e4.applyTheme(), e4;
  19137. }
  19138. return C(e3, t2), e3.prototype.draw = function() {
  19139. if (tt(this.x1 + this.x2 + this.y1 + this.y2 + this.cpx + this.cpy)) {
  19140. var t3 = { x: this.x1, y: this.y1 }, e4 = { x: this.x2, y: this.y2 }, i3 = { x: this.cpx, y: this.cpy }, n3 = wo(t3) + Oo(e4, i3);
  19141. this.path = n3;
  19142. }
  19143. }, Object.defineProperty(e3.prototype, "cpx", { get: function() {
  19144. return this.getPropertyValue("cpx");
  19145. }, set: function(t3) {
  19146. this.setPropertyValue("cpx", t3, true);
  19147. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "cpy", { get: function() {
  19148. return this.getPropertyValue("cpy");
  19149. }, set: function(t3) {
  19150. this.setPropertyValue("cpy", t3, true);
  19151. }, enumerable: true, configurable: true }), e3.prototype.positionToPoint = function(t3) {
  19152. var e4 = { x: this.x1, y: this.y1 }, i3 = { x: this.cpx, y: this.cpy }, n3 = { x: this.x2, y: this.y2 }, r3 = Vt(e4, n3, i3, t3), s2 = Vt(e4, n3, i3, t3 + 1e-3);
  19153. return { x: r3.x, y: r3.y, angle: Dt(r3, s2) };
  19154. }, e3;
  19155. }(bo), _p = function(t2) {
  19156. function e3() {
  19157. var e4 = t2.call(this) || this;
  19158. return e4.className = "ChordLink", e4.middleLine = e4.createChild(xp), e4.middleLine.shouldClone = false, e4.middleLine.strokeOpacity = 0, e4.applyTheme(), e4;
  19159. }
  19160. return C(e3, t2), e3.prototype.validate = function() {
  19161. if (t2.prototype.validate.call(this), !this.isTemplate) {
  19162. var e4 = this.startAngle, i3 = this.endAngle, n3 = this.arc, r3 = this.radius, s2 = this.dataItem.fromNode, a2 = this.dataItem.toNode, o3 = 0, l2 = 0;
  19163. s2 && (o3 = s2.pixelX + s2.dx, l2 = s2.pixelY + s2.dy);
  19164. var h2 = 0, p2 = 0;
  19165. if (a2 && (h2 = a2.pixelX + a2.dx, p2 = a2.pixelY + a2.dy), r3 > 0) {
  19166. var u2 = r3 * ft(e4) + o3, d2 = r3 * dt(e4) + l2, c2 = r3 * ft(i3) + h2, f2 = r3 * dt(i3) + p2, g2 = { x: 0, y: 0 }, y2 = wo({ x: u2, y: d2 });
  19167. y2 += Do(e4, n3, r3), y2 += Oo({ x: c2, y: f2 }, g2), y2 += Do(i3, n3, r3), y2 += Oo({ x: u2, y: d2 }, g2), this.link.path = n3 > 0 ? y2 : "", this.maskBullets && (this.bulletsMask.path = y2, this.bulletsContainer.mask = this.bulletsMask);
  19168. var m2 = e4 + n3 / 2, v2 = i3 + n3 / 2, b2 = this.middleLine;
  19169. b2.x1 = r3 * ft(m2) + o3, b2.y1 = r3 * dt(m2) + l2, b2.x2 = r3 * ft(v2) + h2, b2.y2 = r3 * dt(v2) + p2, b2.cpx = 0, b2.cpy = 0, b2.stroke = this.fill, this.positionBullets();
  19170. }
  19171. }
  19172. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  19173. return this.getPropertyValue("radius");
  19174. }, set: function(t3) {
  19175. this.setPropertyValue("radius", t3, true);
  19176. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "arc", { get: function() {
  19177. return this.getPropertyValue("arc");
  19178. }, set: function(t3) {
  19179. this.setPropertyValue("arc", t3, true);
  19180. }, enumerable: true, configurable: true }), e3;
  19181. }(up);
  19182. Ii.registeredClasses.ChordLink = _p;
  19183. var Pp = function(t2) {
  19184. function e3() {
  19185. var e4 = t2.call(this) || this;
  19186. return e4.className = "ChordDiagramDataItem", e4.applyTheme(), e4;
  19187. }
  19188. return C(e3, t2), e3;
  19189. }(dp), wp = function(t2) {
  19190. function e3() {
  19191. var e4 = t2.call(this) || this;
  19192. e4.valueAngle = 0, e4.className = "ChordDiagram", e4.startAngle = -90, e4.endAngle = 270, e4.radius = V(80), e4.innerRadius = -15, e4.nodePadding = 5;
  19193. var i3 = e4.chartContainer.createChild($a);
  19194. return i3.align = "center", i3.valign = "middle", i3.shouldClone = false, i3.layout = "absolute", e4.chordContainer = i3, e4.nodesContainer.parent = i3, e4.linksContainer.parent = i3, e4.chartContainer.events.on("maxsizechanged", e4.invalidate, e4, false), e4.applyTheme(), e4;
  19195. }
  19196. return C(e3, t2), e3.prototype.validate = function() {
  19197. var e4 = this, i3 = this.chartContainer, n3 = this.endAngle, r3 = this.startAngle + this.nodePadding / 2, s2 = Bt(this.startAngle, this.endAngle, 1);
  19198. s2 = At([s2, { x: 0, y: 0, width: 0, height: 0 }]);
  19199. var a2 = Math.min(i3.innerWidth / s2.width, i3.innerHeight / s2.height);
  19200. tt(a2) || (a2 = 0);
  19201. var o3 = Fn(this.radius, a2), l2 = Fn(this.innerRadius, o3, true), h2 = this.dataItem.values.value.sum, p2 = 0, u2 = 0;
  19202. ti(this._sorted, function(t3) {
  19203. var i4 = t3[1];
  19204. e4.getNodeValue(i4), p2++;
  19205. var n4 = i4.total;
  19206. i4.total / h2 < e4.minNodeSize && (n4 = h2 * e4.minNodeSize), u2 += n4;
  19207. }), this.valueAngle = (n3 - this.startAngle - this.nodePadding * p2) / u2, ti(this._sorted, function(t3) {
  19208. var i4 = t3[1], s3 = i4.slice;
  19209. s3.radius = o3, s3.innerRadius = l2;
  19210. var a3, u3 = i4.total;
  19211. i4.total / h2 < e4.minNodeSize && (u3 = h2 * e4.minNodeSize), i4.adjustedTotal = u3, a3 = e4.nonRibbon ? (n3 - e4.startAngle) / p2 - e4.nodePadding : e4.valueAngle * u3, s3.arc = a3, s3.startAngle = r3, i4.trueStartAngle = r3, i4.parent = e4.nodesContainer, i4.validate(), r3 += a3 + e4.nodePadding;
  19212. }), this.chordContainer.definedBBox = { x: o3 * s2.x, y: o3 * s2.y, width: o3 * s2.width, height: o3 * s2.height }, this.chordContainer.invalidateLayout(), t2.prototype.validate.call(this);
  19213. }, e3.prototype.applyInternalDefaults = function() {
  19214. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Chord diagram"));
  19215. }, e3.prototype.createDataItem = function() {
  19216. return new Pp();
  19217. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  19218. return this.getPropertyValue("startAngle");
  19219. }, set: function(t3) {
  19220. this.setPropertyValue("startAngle", t3, true);
  19221. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  19222. return this.getPropertyValue("endAngle");
  19223. }, set: function(t3) {
  19224. this.setPropertyValue("endAngle", t3, true);
  19225. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "radius", { get: function() {
  19226. return this.getPropertyValue("radius");
  19227. }, set: function(t3) {
  19228. this.setPercentProperty("radius", t3, true, false, 10, false);
  19229. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  19230. return this.getPropertyValue("innerRadius");
  19231. }, set: function(t3) {
  19232. this.setPercentProperty("innerRadius", t3, true, false, 10, false);
  19233. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "nonRibbon", { get: function() {
  19234. return this.getPropertyValue("nonRibbon");
  19235. }, set: function(t3) {
  19236. this.setPropertyValue("nonRibbon", t3, true), this.links.template.middleLine.strokeOpacity = 1, this.links.template.link.fillOpacity = 0;
  19237. }, enumerable: true, configurable: true }), e3.prototype.createNode = function() {
  19238. var t3 = new bp();
  19239. return this._disposers.push(t3), t3;
  19240. }, e3.prototype.createLink = function() {
  19241. var t3 = new _p();
  19242. return this._disposers.push(t3), t3;
  19243. }, e3;
  19244. }(cp);
  19245. Ii.registeredClasses.ChordDiagram = wp;
  19246. var Cp = function(t2) {
  19247. function e3() {
  19248. var e4 = t2.call(this) || this;
  19249. return e4.className = "Column", e4.width = V(80), e4.height = V(80), e4.events.disableType("transformed"), e4.applyOnClones = true, e4.strokeOpacity = 1, e4.layout = "none", e4.createAssets(), e4.events.on("childadded", e4.handleKidAdded, e4, false), e4;
  19250. }
  19251. return C(e3, t2), e3.prototype.handleKidAdded = function() {
  19252. this.layout == "none" && (this.layout = "absolute");
  19253. }, e3.prototype.createAssets = function() {
  19254. this.column = this.createChild(fo), this.column.shouldClone = false, this.column.isMeasured = false, this.column.cornerRadius(0, 0, 0, 0), this._disposers.push(this.column);
  19255. }, e3.prototype.validate = function() {
  19256. t2.prototype.validate.call(this);
  19257. var e4 = this.column;
  19258. e4 && (e4.width = yt(this.pixelWidth, this.maxWidth), e4.height = yt(this.pixelHeight, this.maxHeight), e4.invalid && e4.validate());
  19259. }, e3.prototype.copyFrom = function(e4) {
  19260. t2.prototype.copyFrom.call(this, e4), this.column && this.column.copyFrom(e4.column);
  19261. }, Object.defineProperty(e3.prototype, "bbox", { get: function() {
  19262. return this.definedBBox ? this.definedBBox : this.column ? { x: 0, y: 0, width: this.column.measuredWidth, height: this.column.measuredHeight } : { x: 0, y: 0, width: yt(this.pixelWidth, this.maxWidth), height: yt(this.pixelHeight, this.maxHeight) };
  19263. }, enumerable: true, configurable: true }), e3;
  19264. }($a);
  19265. Ii.registeredClasses.Column = Cp;
  19266. var Op = function(t2) {
  19267. function e3() {
  19268. var e4 = t2.call(this) || this;
  19269. return e4.className = "ColumnSeriesDataItem", e4.locations.dateX = 0.5, e4.locations.dateY = 0.5, e4.locations.categoryX = 0.5, e4.locations.categoryY = 0.5, e4.applyTheme(), e4;
  19270. }
  19271. return C(e3, t2), Object.defineProperty(e3.prototype, "column", { get: function() {
  19272. return this._column;
  19273. }, set: function(t3) {
  19274. this.setColumn(t3);
  19275. }, enumerable: true, configurable: true }), e3.prototype.setColumn = function(t3) {
  19276. var e4 = this;
  19277. if (this._column && t3 != this._column && ee(this.sprites, this._column), this._column = t3, t3) {
  19278. var i3 = t3.dataItem;
  19279. i3 && i3 != this && (i3.column = void 0), this.addSprite(t3), this._disposers.push(new ye(function() {
  19280. e4.component && e4.component.columns.removeValue(t3);
  19281. }));
  19282. }
  19283. }, Object.defineProperty(e3.prototype, "width", { get: function() {
  19284. var t3 = this.properties.width;
  19285. return this._adapterO && (t3 = this._adapterO.apply("width", t3)), t3;
  19286. }, set: function(t3) {
  19287. this.properties.width != t3 && (this.properties.width = t3, this.component && this.component.validateDataElement(this));
  19288. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "height", { get: function() {
  19289. var t3 = this.properties.height;
  19290. return this._adapterO && (t3 = this._adapterO.apply("height", t3)), t3;
  19291. }, set: function(t3) {
  19292. this.properties.height != t3 && (this.properties.height = t3, this.component && this.component.validateDataElement(this));
  19293. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "rangesColumns", { get: function() {
  19294. return this._rangesColumns || (this._rangesColumns = new Pi()), this._rangesColumns;
  19295. }, enumerable: true, configurable: true }), e3;
  19296. }(Ih), Sp = function(t2) {
  19297. function e3() {
  19298. var e4 = t2.call(this) || this;
  19299. e4._startLocation = 0, e4._endLocation = 1, e4.className = "ColumnSeries", e4.width = V(100), e4.height = V(100), e4.strokeOpacity = 0, e4.fillOpacity = 1, e4.clustered = true;
  19300. var i3 = e4.mainContainer.createChild($a);
  19301. return i3.shouldClone = false, i3.isMeasured = false, i3.layout = "none", e4._columnsContainer = i3, e4.columns.template.pixelPerfect = false, e4.tooltipColorSource = e4.columns.template, e4.applyTheme(), e4;
  19302. }
  19303. return C(e3, t2), Object.defineProperty(e3.prototype, "columnsContainer", { get: function() {
  19304. return this._columnsContainer;
  19305. }, enumerable: true, configurable: true }), e3.prototype.applyInternalDefaults = function() {
  19306. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Column Series"));
  19307. }, e3.prototype.createDataItem = function() {
  19308. return new Op();
  19309. }, e3.prototype.validate = function() {
  19310. var i3 = this;
  19311. if (this.group.node.removeAttribute("fill"), this.chart && this.xAxis && this.yAxis) {
  19312. var n3, r3 = this.chart.series, s2 = 0, a2 = 0, o3 = [];
  19313. ti(r3.iterator(), function(t3) {
  19314. var n4;
  19315. t3 instanceof e3 && i3.baseAxis == t3.baseAxis && (n4 = i3.baseAxis == i3.xAxis ? i3.chart.yAxes.indexOf(t3.yAxis) : i3.chart.xAxes.indexOf(t3.xAxis), o3.push({ series: t3, axis: n4 }));
  19316. }), o3.sort(function(t3, e4) {
  19317. return t3.axis - e4.axis;
  19318. }), Ut(o3, function(t3) {
  19319. var r4 = t3.series;
  19320. r4 instanceof e3 && ((!r4.stacked && r4.clustered || n3 != t3.axis && r4.clustered) && s2++, r4 == i3 && (a2 = s2 - 1)), n3 = t3.axis;
  19321. }), this.clustered || (a2 = 0, s2 = 1);
  19322. var l2 = this.baseAxis.renderer, h2 = l2.cellStartLocation, p2 = l2.cellEndLocation;
  19323. this._startLocation = h2 + a2 / s2 * (p2 - h2), this._endLocation = h2 + (a2 + 1) / s2 * (p2 - h2);
  19324. var u2 = this.xAxis, d2 = this.yAxis;
  19325. u2 instanceof Sh && d2 instanceof bh && u2.sortBySeries == this && this.sortCategoryAxis(u2, "valueY"), d2 instanceof Sh && u2 instanceof bh && d2.sortBySeries == this && this.sortCategoryAxis(d2, "valueX");
  19326. }
  19327. t2.prototype.validate.call(this);
  19328. for (var c2 = 0; c2 < this.startIndex; c2++) {
  19329. var f2 = this.dataItems.getIndex(c2);
  19330. this.disableUnusedColumns(f2);
  19331. }
  19332. for (c2 = this.dataItems.length - 1; c2 > this.endIndex; c2--)
  19333. f2 = this.dataItems.getIndex(c2), this.disableUnusedColumns(f2);
  19334. this._propertiesChanged = false;
  19335. }, e3.prototype.sortCategoryAxis = function(t3, e4) {
  19336. var i3 = this;
  19337. this.dataItems.values.sort(function(t4, i4) {
  19338. return i4.values[e4].workingValue - t4.values[e4].workingValue;
  19339. });
  19340. var n3 = 0;
  19341. this.dataItems.each(function(t4) {
  19342. t4._index = n3, n3++;
  19343. }), t3.dataItems.each(function(t4) {
  19344. var e5 = t4.component, n4 = e5.categoryToPosition(t4.category) - t4.deltaPosition, r3 = e5.getSeriesDataItemByCategory(t4.category, i3);
  19345. if (r3) {
  19346. var s2 = i3.dataItems.indexOf(r3);
  19347. t4._index = s2;
  19348. var a2 = lt((s2 + 0.5) / i3.dataItems.length - n4, 3);
  19349. t4.deltaAnimation && !t4.deltaAnimation.isDisposed() && t4.deltaAnimation.animationOptions[0].to == a2 || a2 != lt(t4.deltaPosition, 3) && (t4.deltaAnimation && t4.deltaAnimation.stop(), t4.deltaAnimation = t4.animate({ property: "deltaPosition", from: -a2, to: 0 }, e5.interpolationDuration, e5.interpolationEasing), i3._disposers.push(t4.deltaAnimation));
  19350. }
  19351. }), t3.dataItems.values.sort(function(t4, e5) {
  19352. return t4.index - e5.index;
  19353. });
  19354. }, e3.prototype.validateDataElement = function(e4) {
  19355. this.chart && this.xAxis && this.yAxis && (this.validateDataElementReal(e4), t2.prototype.validateDataElement.call(this, e4));
  19356. }, e3.prototype.getStartLocation = function(t3) {
  19357. var e4 = this._startLocation;
  19358. return this.baseAxis == this.xAxis ? e4 += t3.locations[this.xOpenField] - 0.5 : e4 += t3.locations[this.yOpenField] - 0.5, e4;
  19359. }, e3.prototype.getEndLocation = function(t3) {
  19360. var e4 = this._endLocation;
  19361. return this.baseAxis == this.xAxis ? e4 += t3.locations[this.xField] - 0.5 : e4 += t3.locations[this.yField] - 0.5, e4;
  19362. }, e3.prototype.validateDataElementReal = function(t3) {
  19363. var e4, i3, n3, r3, s2 = this, a2 = this.getStartLocation(t3), o3 = this.getEndLocation(t3), l2 = this.xField, h2 = this.xOpenField, p2 = this.yField, u2 = this.yOpenField, d2 = this.columns.template, c2 = d2.percentWidth, f2 = d2.percentHeight, g2 = d2.pixelWidth, y2 = d2.pixelHeight, m2 = d2.maxWidth, v2 = d2.maxHeight, b2 = d2.pixelPaddingLeft, x2 = d2.pixelPaddingRight, _2 = d2.pixelPaddingTop, P2 = d2.pixelPaddingBottom, w2 = false, C2 = t3.width;
  19364. Z(C2) && (tt(C2) && (g2 = C2), C2 instanceof A && (c2 = 100 * C2.value));
  19365. var O2 = t3.height;
  19366. if (Z(O2) && (tt(O2) && (y2 = O2), O2 instanceof A && (f2 = 100 * O2.value)), this.xAxis instanceof Sh && this.yAxis instanceof Sh) {
  19367. if (!t3.hasValue(this._xValueFields) || !t3.hasValue(this._yValueFields))
  19368. return;
  19369. a2 = 0, o3 = 1, M(c2) || (a2 += k2 = lt((o3 - a2) * (1 - c2 / 100) / 2, 5), o3 -= k2), e4 = this.xAxis.getX(t3, h2, a2), i3 = this.xAxis.getX(t3, l2, o3), M(c2) && (e4 += k2 = (i3 - e4 - g2) / 2, i3 -= k2), !M(m2) && m2 < Math.abs(i3 - e4) && (e4 += k2 = (i3 - e4 - m2) / 2, i3 -= k2), a2 = 0, o3 = 1, M(f2) || (a2 += k2 = lt((1 - f2 / 100) / 2, 5), o3 -= k2), n3 = this.yAxis.getY(t3, u2, a2), r3 = this.yAxis.getY(t3, p2, o3), M(f2) && (r3 += k2 = (r3 - n3 - y2) / 2, n3 -= k2), !M(v2) && v2 < Math.abs(r3 - n3) && (r3 += k2 = (r3 - n3 - v2) / 2, n3 -= k2), i3 = this.fixHorizontalCoordinate(i3), e4 = this.fixHorizontalCoordinate(e4), n3 = this.fixVerticalCoordinate(n3), r3 = this.fixVerticalCoordinate(r3);
  19370. } else if (this.baseAxis == this.xAxis) {
  19371. if (!t3.hasValue(this._yValueFields))
  19372. return;
  19373. M(c2) || (a2 += k2 = lt((o3 - a2) * (1 - c2 / 100) / 2, 5), o3 -= k2), e4 = this.xAxis.getX(t3, h2, a2), i3 = this.xAxis.getX(t3, l2, o3), M(c2) && (e4 += k2 = (i3 - e4 - g2) / 2, i3 -= k2), !M(m2) && m2 < Math.abs(i3 - e4) && (e4 += k2 = (i3 - e4 - m2) / 2, i3 -= k2);
  19374. var S2 = t3.locations[u2], I2 = t3.locations[p2];
  19375. this.yAxis instanceof bh && this.dataFields[this.yField] != this.dataFields[this.yOpenField] && (S2 = 0, I2 = 0), r3 = this.yAxis.getY(t3, u2, S2), n3 = this.yAxis.getY(t3, p2, I2);
  19376. var D2 = Math.ceil(this.yAxis.axisLength);
  19377. (n3 < 0 && r3 < 0 || n3 > D2 && r3 > D2) && (w2 = true), n3 = this.fixVerticalCoordinate(n3), r3 = this.fixVerticalCoordinate(r3), Math.abs(i3 - e4) - b2 - x2 == 0 && (w2 = true);
  19378. } else {
  19379. if (!t3.hasValue(this._xValueFields))
  19380. return;
  19381. var k2;
  19382. M(f2) || (a2 += k2 = lt((o3 - a2) * (1 - f2 / 100) / 2, 5), o3 -= k2), n3 = this.yAxis.getY(t3, u2, a2), r3 = this.yAxis.getY(t3, p2, o3), M(f2) && (r3 -= k2 = (r3 - n3 - y2) / 2, n3 += k2), !M(v2) && v2 < Math.abs(r3 - n3) && (r3 -= k2 = (r3 - n3 - v2) / 2, n3 += k2);
  19383. var T2 = t3.locations[l2], V2 = t3.locations[h2];
  19384. this.xAxis instanceof bh && this.dataFields[this.xField] != this.dataFields[this.xOpenField] && (T2 = 0, V2 = 0), i3 = this.xAxis.getX(t3, l2, T2), e4 = this.xAxis.getX(t3, h2, V2), D2 = Math.ceil(this.xAxis.axisLength), (i3 < 0 && e4 < 0 || i3 > D2 && e4 > D2) && (w2 = true), i3 = this.fixHorizontalCoordinate(i3), e4 = this.fixHorizontalCoordinate(e4), Math.abs(n3 - r3) - _2 - P2 == 0 && (w2 = true);
  19385. }
  19386. var F2, L2 = Math.abs(i3 - e4), j2 = Math.abs(r3 - n3), E2 = Math.min(e4, i3), R2 = Math.min(n3, r3);
  19387. w2 ? this.disableUnusedColumns(t3) : (t3.column ? (F2 = t3.column, this._propertiesChanged && (Ue(this, F2, Ka), Ue(this.columns.template, F2, Ka), Ut(Ka, function(t4) {
  19388. F2[t4] = F2[t4];
  19389. }))) : (Ue(this, F2 = this.columns.create(), Ka), Ue(this.columns.template, F2, Ka), t3.addSprite(F2), t3.column = F2, F2.paper = this.paper, this.itemsFocusable() ? (Z(this.role) || (this.role = "menu"), Z(F2.role) || (F2.role = "menuitem"), F2.focusable = true) : (Z(this.role) || (this.role = "list"), Z(F2.role) || (F2.role = "listitem"), F2.focusable = false), F2.focusable && (F2.events.on("focus", function(e5) {
  19390. F2.readerTitle = s2.populateString(s2.itemReaderText, t3);
  19391. }, void 0, false), F2.events.on("blur", function(t4) {
  19392. F2.readerTitle = "";
  19393. }, void 0, false)), F2.hoverable && (F2.events.on("over", function(e5) {
  19394. F2.readerTitle = s2.populateString(s2.itemReaderText, t3);
  19395. }, void 0, false), F2.events.on("out", function(t4) {
  19396. F2.readerTitle = "";
  19397. }, void 0, false)), F2.parent = this.columnsContainer, F2.virtualParent = this), F2.width = L2, F2.height = j2, F2.x = E2, F2.y = R2, F2.realX = e4, F2.realY = n3, F2.realWidth = i3 - e4, F2.realHeight = r3 - n3, this.setColumnStates(F2), F2.invalid && F2.validate(), F2.__disabled = false, ti(this.axisRanges.iterator(), function(e5) {
  19398. var i4 = t3.rangesColumns.getKey(e5.uid);
  19399. i4 || (i4 = s2.columns.create(), Ue(e5.contents, i4, Ka), t3.addSprite(i4), t3.rangesColumns.setKey(e5.uid, i4), i4.paper = s2.paper), i4.parent = e5.contents, i4.width = L2, i4.height = j2, i4.x = E2, i4.y = R2, s2.setColumnStates(i4), i4.invalid && i4.validate(), i4.__disabled = false;
  19400. })), t3.itemWidth = L2, t3.itemHeight = j2;
  19401. }, e3.prototype.disableUnusedColumns = function(t3) {
  19402. t3 && (t3.column && (t3.column.width = 0, t3.column.height = 0, t3.column.__disabled = true), ti(this.axisRanges.iterator(), function(e4) {
  19403. var i3 = t3.rangesColumns.getKey(e4.uid);
  19404. i3 && (i3.width = 0, i3.height = 0, i3.__disabled = true);
  19405. }));
  19406. }, e3.prototype.setColumnStates = function(t3) {
  19407. if (this._dropFromOpenState || this._dropFromPreviousState || this._riseFromOpenState || this._riseFromPreviousState) {
  19408. var e4 = t3.dataItem;
  19409. if (this.xAxis instanceof bh || this.yAxis instanceof bh) {
  19410. var i3, n3 = void 0, r3 = void 0;
  19411. this.baseAxis == this.yAxis ? (this.xOpenField && this.xField && this.xAxis instanceof bh && (i3 = e4.getValue(this.xOpenField), n3 = e4.getValue(this.xField)), r3 = e4.getValue(this.xAxis.axisFieldName + "X", "previousChange")) : (this.yOpenField && this.yField && this.yAxis instanceof bh && (i3 = e4.getValue(this.yOpenField), n3 = e4.getValue(this.yField)), r3 = e4.getValue(this.yAxis.axisFieldName + "Y", "previousChange")), n3 < i3 ? (e4.droppedFromOpen = true, t3.defaultState.copyFrom(this._dropFromOpenState), t3.setState(this._dropFromOpenState, 0)) : (e4.droppedFromOpen = false, t3.defaultState.copyFrom(this._riseFromOpenState), t3.setState(this._riseFromOpenState, 0)), r3 < 0 ? (e4.droppedFromPrevious = true, t3.defaultState.copyFrom(this._dropFromPreviousState), t3.setState(this._dropFromPreviousState, 0)) : (e4.droppedFromPrevious = false, t3.defaultState.copyFrom(this._riseFromPreviousState), t3.setState(this._riseFromPreviousState, 0));
  19412. }
  19413. }
  19414. }, Object.defineProperty(e3.prototype, "columns", { get: function() {
  19415. return this._columns || (this._columns = new Mi(this.createColumnTemplate()), this._disposers.push(new Ai(this._columns)), this._disposers.push(this._columns.template)), this._columns;
  19416. }, enumerable: true, configurable: true }), e3.prototype.createColumnTemplate = function() {
  19417. return new Cp();
  19418. }, Object.defineProperty(e3.prototype, "clustered", { get: function() {
  19419. return this.getPropertyValue("clustered");
  19420. }, set: function(t3) {
  19421. this.setPropertyValue("clustered", t3, true);
  19422. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dropFromOpenState", { get: function() {
  19423. return this._dropFromOpenState || (this._dropFromOpenState = this.states.create("dropFromOpenState")), this._dropFromOpenState;
  19424. }, set: function(t3) {
  19425. this._dropFromOpenState = t3;
  19426. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dropFromPreviousState", { get: function() {
  19427. return this._dropFromPreviousState || (this._dropFromPreviousState = this.states.create("dropFromPreviousState")), this._dropFromPreviousState;
  19428. }, set: function(t3) {
  19429. this._dropFromPreviousState = t3;
  19430. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "riseFromOpenState", { get: function() {
  19431. return this._riseFromOpenState || (this._riseFromOpenState = this.states.create("riseFromOpenState")), this._riseFromOpenState;
  19432. }, set: function(t3) {
  19433. this._riseFromOpenState = t3;
  19434. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "riseFromPreviousState", { get: function() {
  19435. return this._riseFromPreviousState || (this._riseFromPreviousState = this.states.create("riseFromPreviousState")), this._riseFromPreviousState;
  19436. }, set: function(t3) {
  19437. this._riseFromPreviousState = t3;
  19438. }, enumerable: true, configurable: true }), e3.prototype.updateLegendValue = function(e4, i3) {
  19439. var n3 = this;
  19440. if (t2.prototype.updateLegendValue.call(this, e4, i3), this.legendDataItem) {
  19441. var r3, s2, a2 = this.legendDataItem.marker;
  19442. e4 && (r3 = e4.droppedFromOpen ? this._dropFromOpenState : this._riseFromOpenState, s2 = e4.droppedFromPrevious ? this._dropFromPreviousState : this._riseFromPreviousState), ti(a2.children.iterator(), function(t3) {
  19443. e4 ? (t3.setState(s2), t3.setState(r3)) : (t3.setState(n3._riseFromPreviousState), t3.setState(n3._riseFromOpenState));
  19444. });
  19445. }
  19446. }, e3.prototype.createLegendMarker = function(t3) {
  19447. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  19448. t3.removeChildren();
  19449. var n3 = t3.createChild(fo);
  19450. n3.shouldClone = false, Ue(this, n3, Ka), n3.copyFrom(this.columns.template), n3.padding(0, 0, 0, 0), n3.width = e4, n3.height = i3;
  19451. var r3 = t3.dataItem;
  19452. r3.color = this.fill, r3.colorOrig = this.fill;
  19453. }, e3.prototype.copyFrom = function(e4) {
  19454. t2.prototype.copyFrom.call(this, e4), this.columns.template.copyFrom(e4.columns.template);
  19455. }, e3.prototype.getBulletLocationX = function(e4, i3) {
  19456. if (this.baseAxis == this.xAxis) {
  19457. var n3 = e4.locationX;
  19458. tt(n3) || (n3 = 0.5);
  19459. var r3 = this.getEndLocation(e4.dataItem);
  19460. return r3 - (r3 - this.getStartLocation(e4.dataItem)) * n3;
  19461. }
  19462. return t2.prototype.getBulletLocationX.call(this, e4, i3);
  19463. }, e3.prototype.getBulletLocationY = function(e4, i3) {
  19464. if (this.baseAxis == this.yAxis) {
  19465. var n3 = e4.locationY;
  19466. tt(n3) || (n3 = 0.5);
  19467. var r3 = this.getEndLocation(e4.dataItem);
  19468. return r3 - (r3 - this.getStartLocation(e4.dataItem)) * n3;
  19469. }
  19470. return t2.prototype.getBulletLocationY.call(this, e4, i3);
  19471. }, e3.prototype.getAdjustedXLocation = function(t3, e4, i3) {
  19472. return tt(i3) || (i3 = t3 ? t3.locations[e4] : 0.5), this._endLocation - (this._endLocation - this._startLocation) * (1 - i3);
  19473. }, e3.prototype.getAdjustedYLocation = function(t3, e4, i3) {
  19474. return tt(i3) || (i3 = t3 ? t3.locations[e4] : 0.5), this._endLocation - (this._endLocation - this._startLocation) * i3;
  19475. }, e3.prototype.fixVerticalCoordinate = function(t3) {
  19476. var e4 = this.columns.template.pixelPaddingBottom;
  19477. return ut(t3, -this.columns.template.pixelPaddingTop, this.yAxis.axisLength + e4);
  19478. }, e3.prototype.fixHorizontalCoordinate = function(t3) {
  19479. var e4 = this.columns.template.pixelPaddingLeft, i3 = this.columns.template.pixelPaddingRight;
  19480. return ut(t3, -e4, this.xAxis.axisLength + i3);
  19481. }, e3.prototype.disposeData = function() {
  19482. t2.prototype.disposeData.call(this), this.columns.clear();
  19483. }, e3;
  19484. }(Dh);
  19485. Ii.registeredClasses.ColumnSeries = Sp, Ii.registeredClasses.ColumnSeriesDataItem = Op;
  19486. var Ip = function(t2) {
  19487. function e3() {
  19488. var e4 = t2.call(this) || this;
  19489. return e4.className = "TreeMapSeriesDataItem", e4.applyTheme(), e4;
  19490. }
  19491. return C(e3, t2), Object.defineProperty(e3.prototype, "parentName", { get: function() {
  19492. var t3 = this.treeMapDataItem;
  19493. if (t3 && t3.parent)
  19494. return t3.parent.name;
  19495. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "value", { get: function() {
  19496. var t3 = this.treeMapDataItem;
  19497. if (t3)
  19498. return t3.value;
  19499. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "treeMapDataItem", { get: function() {
  19500. return this._dataContext;
  19501. }, enumerable: true, configurable: true }), e3.prototype.hide = function(e4, i3, n3, r3) {
  19502. var s2 = this.treeMapDataItem;
  19503. return s2 && s2.hide(e4), t2.prototype.hide.call(this, e4, i3, n3, r3);
  19504. }, e3.prototype.show = function(e4, i3, n3) {
  19505. var r3 = this.treeMapDataItem;
  19506. return r3 && r3.show(e4, i3, n3), t2.prototype.show.call(this, e4, i3, n3);
  19507. }, e3;
  19508. }(Op), Dp = function(t2) {
  19509. function e3() {
  19510. var e4 = t2.call(this) || this;
  19511. e4.className = "TreeMapSeries", e4.applyTheme(), e4.fillOpacity = 1, e4.strokeOpacity = 1, e4.minBulletDistance = 0, e4.columns.template.tooltipText = "{parentName} {name}: {value}", e4.columns.template.configField = "config";
  19512. var i3 = new Ys();
  19513. return e4.stroke = i3.getFor("background"), e4.dataFields.openValueX = "x0", e4.dataFields.valueX = "x1", e4.dataFields.openValueY = "y0", e4.dataFields.valueY = "y1", e4.sequencedInterpolation = false, e4.showOnInit = false, e4.columns.template.pixelPerfect = false, e4;
  19514. }
  19515. return C(e3, t2), e3.prototype.processDataItem = function(e4, i3) {
  19516. i3.seriesDataItem = e4, t2.prototype.processDataItem.call(this, e4, i3);
  19517. }, e3.prototype.createDataItem = function() {
  19518. return new Ip();
  19519. }, e3.prototype.show = function(e4) {
  19520. if (!this.preventShow) {
  19521. var i3 = this.defaultState.transitionDuration;
  19522. return tt(e4) && (i3 = e4), this.dataItems.each(function(t3) {
  19523. t3.show(e4);
  19524. }), t2.prototype.showReal.call(this, i3);
  19525. }
  19526. }, e3.prototype.hide = function(e4) {
  19527. var i3 = this.defaultState.transitionDuration;
  19528. tt(e4) && (i3 = e4);
  19529. var n3 = t2.prototype.hideReal.call(this, i3);
  19530. return this.dataItems.each(function(t3) {
  19531. t3.hide(e4);
  19532. }), n3;
  19533. }, e3.prototype.processValues = function() {
  19534. }, e3.prototype.getStartLocation = function(t3) {
  19535. return 0;
  19536. }, e3.prototype.getEndLocation = function(t3) {
  19537. return 1;
  19538. }, e3.prototype.dataChangeUpdate = function() {
  19539. }, e3.prototype.processConfig = function(e4) {
  19540. e4 && (Z(e4.dataFields) && et(e4.dataFields) || (e4.dataFields = {})), t2.prototype.processConfig.call(this, e4);
  19541. }, e3.prototype.createLegendMarker = function(t3) {
  19542. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  19543. t3.removeChildren();
  19544. var n3 = t3.createChild(fo);
  19545. n3.shouldClone = false, Ue(this, n3, Ka), n3.padding(0, 0, 0, 0), n3.width = e4, n3.height = i3;
  19546. var r3 = t3.dataItem;
  19547. r3.color = n3.fill, r3.colorOrig = n3.fill;
  19548. }, e3.prototype.disableUnusedColumns = function(e4) {
  19549. t2.prototype.disableUnusedColumns.call(this, e4), e4.column && (e4.column.__disabled = false);
  19550. }, e3;
  19551. }(Sp);
  19552. Ii.registeredClasses.TreeMapSeries = Dp, Ii.registeredClasses.TreeMapSeriesDataItem = Ip;
  19553. var kp = function(t2) {
  19554. function e3() {
  19555. var e4 = t2.call(this) || this;
  19556. return e4.rows = [], e4.className = "TreeMapDataItem", e4.values.value = { workingValue: 0 }, e4.values.x0 = {}, e4.values.y0 = {}, e4.values.x1 = {}, e4.values.y1 = {}, e4.hasChildren.children = true, e4.applyTheme(), e4;
  19557. }
  19558. return C(e3, t2), Object.defineProperty(e3.prototype, "legendDataItem", { get: function() {
  19559. return this._legendDataItem;
  19560. }, set: function(t3) {
  19561. this._legendDataItem = t3, t3.label && (t3.label.dataItem = this), t3.valueLabel && (t3.valueLabel.dataItem = this);
  19562. }, enumerable: true, configurable: true }), e3.prototype.getDuration = function() {
  19563. return 0;
  19564. }, Object.defineProperty(e3.prototype, "value", { get: function() {
  19565. var t3 = 0;
  19566. return this.children && this.children.length != 0 ? ti(this.children.iterator(), function(e4) {
  19567. var i3 = e4.value;
  19568. tt(i3) && (t3 += i3);
  19569. }) : t3 = this.values.value.workingValue, t3;
  19570. }, set: function(t3) {
  19571. this.setValue("value", t3);
  19572. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "percent", { get: function() {
  19573. return this.parent ? this.value / this.parent.value * 100 : 100;
  19574. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x0", { get: function() {
  19575. return this.values.x0.value;
  19576. }, set: function(t3) {
  19577. this.setValue("x0", t3);
  19578. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "x1", { get: function() {
  19579. return this.values.x1.value;
  19580. }, set: function(t3) {
  19581. this.setValue("x1", t3);
  19582. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y0", { get: function() {
  19583. return this.values.y0.value;
  19584. }, set: function(t3) {
  19585. this.setValue("y0", t3);
  19586. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "y1", { get: function() {
  19587. return this.values.y1.value;
  19588. }, set: function(t3) {
  19589. this.setValue("y1", t3);
  19590. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "name", { get: function() {
  19591. return this.properties.name;
  19592. }, set: function(t3) {
  19593. this.setProperty("name", t3);
  19594. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "children", { get: function() {
  19595. return this.properties.children;
  19596. }, set: function(t3) {
  19597. this.setProperty("children", t3);
  19598. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "level", { get: function() {
  19599. return this.parent ? this.parent.level + 1 : 0;
  19600. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "color", { get: function() {
  19601. var t3 = this.properties.color;
  19602. return t3 == null && this.parent && (t3 = this.parent.color), t3 == null && this.component && (t3 = this.component.colors.getIndex(this.component.colors.step * this.index)), t3;
  19603. }, set: function(t3) {
  19604. this.setProperty("color", t3);
  19605. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fill", { get: function() {
  19606. return this.color;
  19607. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "series", { get: function() {
  19608. return this._series;
  19609. }, set: function(t3) {
  19610. t3 != this._series && (this._series && (this.component.series.removeValue(this._series), this._series.dispose()), this._series = t3, this._disposers.push(t3));
  19611. }, enumerable: true, configurable: true }), e3.prototype.hide = function(e4, i3, n3, r3) {
  19612. this.setWorkingValue("value", 0), this.children && this.children.each(function(t3) {
  19613. t3.hide(e4, i3, n3, r3);
  19614. });
  19615. var s2 = this.seriesDataItem;
  19616. return s2 && s2.bullets.each(function(t3, e5) {
  19617. e5.hide(), e5.preventShow = true;
  19618. }), t2.prototype.hide.call(this, e4, i3, n3, r3);
  19619. }, e3.prototype.show = function(e4, i3, n3) {
  19620. this.setWorkingValue("value", this.values.value.value), this.children && this.children.each(function(t3) {
  19621. t3.show(e4, i3, n3);
  19622. });
  19623. var r3 = this.seriesDataItem;
  19624. return r3 && r3.bullets.each(function(t3, e5) {
  19625. e5.preventShow = false;
  19626. }), t2.prototype.show.call(this, e4, i3, n3);
  19627. }, e3;
  19628. }(Th), Tp = function(t2) {
  19629. function e3() {
  19630. var e4 = t2.call(this) || this;
  19631. e4.layoutAlgorithm = e4.squarify, e4.zoomable = true, e4.className = "TreeMap", e4._usesData = true, e4.maxLevels = 2, e4.currentLevel = 0, e4.hideParentColumns = false, e4.colors = new kl(), e4.sorting = "descending";
  19632. var i3 = e4.xAxes.push(new bh());
  19633. i3.title.disabled = true, i3.strictMinMax = true;
  19634. var n3 = i3.renderer;
  19635. n3.inside = true, n3.labels.template.disabled = true, n3.ticks.template.disabled = true, n3.grid.template.disabled = true, n3.axisFills.template.disabled = true, n3.minGridDistance = 100, n3.line.disabled = true, n3.baseGrid.disabled = true;
  19636. var r3 = e4.yAxes.push(new bh());
  19637. r3.title.disabled = true, r3.strictMinMax = true;
  19638. var s2 = r3.renderer;
  19639. s2.inside = true, s2.labels.template.disabled = true, s2.ticks.template.disabled = true, s2.grid.template.disabled = true, s2.axisFills.template.disabled = true, s2.minGridDistance = 100, s2.line.disabled = true, s2.baseGrid.disabled = true, s2.inversed = true, e4.xAxis = i3, e4.yAxis = r3;
  19640. var a2 = new Dp();
  19641. return e4.seriesTemplates = new wi(a2), a2.virtualParent = e4, e4._disposers.push(new _i(e4.seriesTemplates)), e4._disposers.push(a2), e4.zoomOutButton.events.on("hit", function() {
  19642. e4.zoomToChartDataItem(e4._homeDataItem);
  19643. }, void 0, false), e4.seriesTemplates.events.on("insertKey", function(t3) {
  19644. t3.newValue.isTemplate = true;
  19645. }, void 0, false), e4.applyTheme(), e4;
  19646. }
  19647. return C(e3, t2), Object.defineProperty(e3.prototype, "navigationBar", { get: function() {
  19648. return this._navigationBar;
  19649. }, set: function(t3) {
  19650. var e4 = this;
  19651. this._navigationBar != t3 && (this._navigationBar = t3, t3.parent = this, t3.toBack(), t3.links.template.events.on("hit", function(t4) {
  19652. var i3 = t4.target.dataItem.dataContext;
  19653. i3.isDisposed() || (e4.zoomToChartDataItem(i3), e4.createTreeSeries(i3));
  19654. }, void 0, true), this._disposers.push(t3));
  19655. }, enumerable: true, configurable: true }), e3.prototype.validateData = function() {
  19656. this.series.clear(), this._tempSeries = [], t2.prototype.validateData.call(this), this._homeDataItem && this._homeDataItem.dispose();
  19657. var e4 = this.dataItems.template.clone();
  19658. this._homeDataItem = e4, ti(this.dataItems.iterator(), function(t3) {
  19659. t3.parent = e4;
  19660. }), e4.children = this.dataItems, e4.x0 = 0, e4.y0 = 0, e4.name = this._homeText;
  19661. var i3 = 1e3, n3 = 10 * Math.round(i3 * this.pixelHeight / this.pixelWidth / 10) || 1e3;
  19662. e4.x1 = i3, e4.y1 = n3, this.xAxis.min = 0, this.xAxis.max = i3, this.xAxis.getMinMax(), this.yAxis.min = 0, this.yAxis.max = n3, this.yAxis.getMinMax(), this.layoutItems(e4), this.createTreeSeries(e4), this.feedLegend();
  19663. }, e3.prototype.layoutItems = function(t3, e4) {
  19664. if (t3) {
  19665. var i3 = t3.children;
  19666. e4 || (e4 = this.sorting), e4 == "ascending" && i3.values.sort(function(t4, e5) {
  19667. return t4.value - e5.value;
  19668. }), e4 == "descending" && i3.values.sort(function(t4, e5) {
  19669. return e5.value - t4.value;
  19670. }), this._updateDataItemIndexes(0), this.layoutAlgorithm(t3);
  19671. for (var n3 = 0, r3 = i3.length; n3 < r3; n3++) {
  19672. var s2 = i3.getIndex(n3);
  19673. s2.children && this.layoutItems(s2);
  19674. }
  19675. }
  19676. }, e3.prototype.createTreeSeries = function(t3) {
  19677. var e4 = this;
  19678. this._tempSeries = [];
  19679. for (var i3 = [t3], n3 = t3.parent; n3 != null; )
  19680. this.initSeries(n3), i3.push(n3), n3 = n3.parent;
  19681. i3.reverse(), this.navigationBar && (this.navigationBar.data = i3), this.createTreeSeriesReal(t3), Ut(this._tempSeries, function(t4) {
  19682. e4.series.indexOf(t4) == -1 && e4.series.push(t4), t4.zIndex = t4.level;
  19683. });
  19684. }, e3.prototype.createTreeSeriesReal = function(t3) {
  19685. if (t3.children && t3.level < this.currentLevel + this.maxLevels) {
  19686. this.initSeries(t3);
  19687. for (var e4 = 0; e4 < t3.children.length; e4++) {
  19688. var i3 = t3.children.getIndex(e4);
  19689. i3.children && this.createTreeSeriesReal(i3);
  19690. }
  19691. }
  19692. }, e3.prototype.setData = function(e4) {
  19693. this.currentLevel = 0, this.currentlyZoomed = void 0, this.xAxis.start = 0, this.xAxis.end = 1, this.yAxis.start = 0, this.yAxis.end = 1, t2.prototype.setData.call(this, e4);
  19694. }, e3.prototype.seriesAppeared = function() {
  19695. return true;
  19696. }, e3.prototype.initSeries = function(t3) {
  19697. var e4 = this;
  19698. if (!t3.series) {
  19699. var i3 = void 0, n3 = this.seriesTemplates.getKey(t3.level.toString());
  19700. (i3 = n3 ? n3.clone() : this.series.create()).dataItem.dataContext = t3, i3.name = t3.name, i3.parentDataItem = t3, t3.series = i3;
  19701. var r3 = t3.level;
  19702. i3.level = r3;
  19703. var s2 = t3.dataContext;
  19704. s2 && (i3.config = s2.config), this.dataUsers.removeValue(i3), i3.data = t3.children.values, i3.fill = t3.color, i3.columnsContainer.hide(0), i3.bulletsContainer.hide(0), i3.columns.template.adapter.add("fill", function(t4, e5) {
  19705. var i4 = e5.dataItem;
  19706. if (i4) {
  19707. var n4 = i4.treeMapDataItem;
  19708. if (n4)
  19709. return e5.fill = n4.color, e5.adapter.remove("fill"), n4.color;
  19710. }
  19711. }), this.zoomable && (t3.level > this.currentLevel || t3.children && t3.children.length > 0) && (i3.columns.template.cursorOverStyle = Ia.pointer, this.zoomable && i3.columns.template.events.on("hit", function(i4) {
  19712. var n4 = i4.target.dataItem;
  19713. t3.level > e4.currentLevel ? e4.zoomToChartDataItem(n4.treeMapDataItem.parent) : e4.zoomToSeriesDataItem(n4);
  19714. }, this, void 0));
  19715. }
  19716. this._tempSeries.push(t3.series);
  19717. }, e3.prototype.toggleBullets = function(t3) {
  19718. var e4 = this;
  19719. ti(this.series.iterator(), function(i3) {
  19720. e4._tempSeries.indexOf(i3) == -1 ? (i3.columnsContainer.hide(), i3.bulletsContainer.hide(t3)) : (i3.columnsContainer.show(), i3.bulletsContainer.show(t3), i3.dataItems.each(function(t4) {
  19721. t4.bullets.each(function(t5, e5) {
  19722. e5.show();
  19723. });
  19724. }), i3.level < e4.currentLevel ? (e4.hideParentColumns && i3.columnsContainer.hide(), i3.bulletsContainer.hide(t3)) : i3.level == e4.currentLevel && e4.maxLevels > 1 && i3.dataItems.each(function(t4) {
  19725. t4.treeMapDataItem.children && t4.bullets.each(function(t5, e5) {
  19726. e5.hide();
  19727. });
  19728. }));
  19729. });
  19730. }, e3.prototype.zoomToSeriesDataItem = function(t3) {
  19731. this.zoomToChartDataItem(t3.treeMapDataItem);
  19732. }, e3.prototype.zoomToChartDataItem = function(t3) {
  19733. var e4 = this;
  19734. t3 || (t3 = this._homeDataItem);
  19735. var i3 = this.zoomOutButton;
  19736. if (i3 && (t3 != this._homeDataItem ? i3.show() : i3.hide()), t3 && t3.children) {
  19737. this.xAxis.zoomToValues(t3.x0, t3.x1), this.yAxis.zoomToValues(t3.y0, t3.y1), this.currentLevel = t3.level, this.currentlyZoomed = t3, this.createTreeSeries(t3);
  19738. var n3 = this.xAxis.rangeChangeAnimation || this.yAxis.rangeChangeAnimation;
  19739. !n3 || n3.isDisposed() || n3.isFinished() ? this.toggleBullets() : (this._dataDisposers.push(n3), n3.events.once("animationended", function() {
  19740. e4.toggleBullets();
  19741. }));
  19742. }
  19743. }, e3.prototype.applyInternalDefaults = function() {
  19744. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("TreeMap chart"));
  19745. }, e3.prototype.createDataItem = function() {
  19746. return new kp();
  19747. }, Object.defineProperty(e3.prototype, "maxLevels", { get: function() {
  19748. return this.getPropertyValue("maxLevels");
  19749. }, set: function(t3) {
  19750. this.setPropertyValue("maxLevels", t3, true);
  19751. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "currentLevel", { get: function() {
  19752. return this.getPropertyValue("currentLevel");
  19753. }, set: function(t3) {
  19754. this.setPropertyValue("currentLevel", t3, true);
  19755. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideParentColumns", { get: function() {
  19756. return this.getPropertyValue("hideParentColumns");
  19757. }, set: function(t3) {
  19758. this.setPropertyValue("hideParentColumns", t3);
  19759. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sorting", { get: function() {
  19760. return this.getPropertyValue("sorting");
  19761. }, set: function(t3) {
  19762. this.setPropertyValue("sorting", t3, true);
  19763. }, enumerable: true, configurable: true }), e3.prototype.createSeries = function() {
  19764. return new Dp();
  19765. }, Object.defineProperty(e3.prototype, "homeText", { get: function() {
  19766. return this._homeText;
  19767. }, set: function(t3) {
  19768. this._homeText = t3, this._homeDataItem && (this._homeDataItem.name = this._homeText);
  19769. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  19770. if (e4) {
  19771. if (Z(e4.layoutAlgorithm) && Q(e4.layoutAlgorithm))
  19772. switch (e4.layoutAlgorithm) {
  19773. case "squarify":
  19774. e4.layoutAlgorithm = this.squarify;
  19775. break;
  19776. case "binaryTree":
  19777. e4.layoutAlgorithm = this.binaryTree;
  19778. break;
  19779. case "slice":
  19780. e4.layoutAlgorithm = this.slice;
  19781. break;
  19782. case "dice":
  19783. e4.layoutAlgorithm = this.dice;
  19784. break;
  19785. case "sliceDice":
  19786. e4.layoutAlgorithm = this.sliceDice;
  19787. break;
  19788. default:
  19789. delete e4.layoutAlgorithm;
  19790. }
  19791. Z(e4.navigationBar) && !Z(e4.navigationBar.type) && (e4.navigationBar.type = "NavigationBar"), t2.prototype.processConfig.call(this, e4);
  19792. }
  19793. }, e3.prototype.validateLayout = function() {
  19794. t2.prototype.validateLayout.call(this), this.layoutItems(this.currentlyZoomed);
  19795. }, e3.prototype.validateDataItems = function() {
  19796. t2.prototype.validateDataItems.call(this), this.layoutItems(this._homeDataItem), ti(this.series.iterator(), function(t3) {
  19797. t3.validateRawData();
  19798. }), this.zoomToChartDataItem(this._homeDataItem);
  19799. }, e3.prototype.binaryTree = function(t3) {
  19800. var e4, i3, n3 = t3.children, r3 = n3.length, s2 = new Array(r3 + 1);
  19801. for (s2[0] = i3 = e4 = 0; e4 < r3; ++e4)
  19802. s2[e4 + 1] = i3 += n3.getIndex(e4).value;
  19803. r3 > 0 && function t4(e5, i4, r4, a2, o3, l2, h2) {
  19804. if (e5 >= i4 - 1)
  19805. return (g2 = n3.getIndex(e5)).x0 = a2, g2.y0 = o3, g2.x1 = l2, void (g2.y1 = h2);
  19806. for (var p2 = s2[e5], u2 = r4 / 2 + p2, d2 = e5 + 1, c2 = i4 - 1; d2 < c2; ) {
  19807. var f2 = d2 + c2 >>> 1;
  19808. s2[f2] < u2 ? d2 = f2 + 1 : c2 = f2;
  19809. }
  19810. u2 - s2[d2 - 1] < s2[d2] - u2 && e5 + 1 < d2 && --d2;
  19811. var g2, y2 = s2[d2] - p2, m2 = r4 - y2;
  19812. if (r4 == 0)
  19813. return (g2 = n3.getIndex(e5)).x0 = a2, g2.y0 = o3, g2.x1 = l2, void (g2.y1 = h2);
  19814. if (l2 - a2 > h2 - o3) {
  19815. var v2 = (a2 * m2 + l2 * y2) / r4;
  19816. t4(e5, d2, y2, a2, o3, v2, h2), t4(d2, i4, m2, v2, o3, l2, h2);
  19817. } else {
  19818. var b2 = (o3 * m2 + h2 * y2) / r4;
  19819. t4(e5, d2, y2, a2, o3, l2, b2), t4(d2, i4, m2, a2, b2, l2, h2);
  19820. }
  19821. }(0, r3, t3.value, t3.x0, t3.y0, t3.x1, t3.y1);
  19822. }, e3.prototype.slice = function(t3) {
  19823. for (var e4, i3 = t3.x0, n3 = t3.x1, r3 = t3.y0, s2 = t3.y1, a2 = t3.children, o3 = -1, l2 = a2.length, h2 = t3.value && (s2 - r3) / t3.value; ++o3 < l2; )
  19824. (e4 = a2.getIndex(o3)).x0 = i3, e4.x1 = n3, e4.y0 = r3, r3 += e4.value * h2, e4.y1 = r3;
  19825. }, e3.prototype.dice = function(t3) {
  19826. for (var e4, i3 = t3.x0, n3 = t3.x1, r3 = t3.y0, s2 = t3.y1, a2 = t3.children, o3 = -1, l2 = a2.length, h2 = t3.value && (n3 - i3) / t3.value; ++o3 < l2; )
  19827. (e4 = a2.getIndex(o3)).y0 = r3, e4.y1 = s2, e4.x0 = i3, i3 += e4.value * h2, e4.x1 = i3;
  19828. }, e3.prototype.sliceDice = function(t3) {
  19829. 1 & t3.level ? this.slice(t3) : this.dice(t3);
  19830. }, e3.prototype.squarify = function(t3) {
  19831. for (var e4, i3, n3, r3, s2, a2, o3, l2, h2, p2, u2 = (1 + Math.sqrt(5)) / 2, d2 = t3.x0, c2 = t3.x1, f2 = t3.y0, g2 = t3.y1, y2 = t3.children, m2 = 0, v2 = 0, b2 = y2.length, x2 = t3.value; m2 < b2; ) {
  19832. i3 = c2 - d2, n3 = g2 - f2;
  19833. do {
  19834. r3 = y2.getIndex(v2++).value;
  19835. } while (!r3 && v2 < b2);
  19836. for (s2 = a2 = r3, p2 = r3 * r3 * (h2 = Math.max(n3 / i3, i3 / n3) / (x2 * u2)), l2 = Math.max(a2 / p2, p2 / s2); v2 < b2; ++v2) {
  19837. if (r3 += e4 = y2.getIndex(v2).value, e4 < s2 && (s2 = e4), e4 > a2 && (a2 = e4), p2 = r3 * r3 * h2, (o3 = Math.max(a2 / p2, p2 / s2)) > l2) {
  19838. r3 -= e4;
  19839. break;
  19840. }
  19841. l2 = o3;
  19842. }
  19843. var _2 = this.dataItems.template.clone();
  19844. _2.value = r3, _2.dice = i3 < n3, _2.children = y2.slice(m2, v2), _2.x0 = d2, _2.y0 = f2, _2.x1 = c2, _2.y1 = g2, _2.dice ? (_2.y1 = x2 ? f2 += n3 * r3 / x2 : g2, this.dice(_2)) : (_2.x1 = x2 ? d2 += i3 * r3 / x2 : c2, this.slice(_2)), x2 -= r3, m2 = v2;
  19845. }
  19846. }, e3.prototype.handleSeriesAdded2 = function() {
  19847. }, e3.prototype.handleDataItemValueChange = function(t3, e4) {
  19848. e4 == "value" && this.invalidateDataItems();
  19849. }, e3.prototype.handleDataItemWorkingValueChange = function(t3, e4) {
  19850. e4 == "value" && this.invalidateDataItems();
  19851. }, e3.prototype.getLegendLevel = function(t3) {
  19852. if (t3 && t3.children) {
  19853. if (t3.children.length > 1)
  19854. return t3;
  19855. if (t3.children.length == 1) {
  19856. var e4 = t3.children.getIndex(0);
  19857. return e4.children ? this.getLegendLevel(e4) : t3;
  19858. }
  19859. return t3;
  19860. }
  19861. }, e3.prototype.handleLegendSeriesAdded = function(t3) {
  19862. }, Object.defineProperty(e3.prototype, "homeDataItem", { get: function() {
  19863. return this._homeDataItem;
  19864. }, enumerable: true, configurable: true }), e3.prototype.feedLegend = function() {
  19865. var t3 = this.legend;
  19866. if (t3) {
  19867. t3.dataFields.name = "name";
  19868. var e4 = this.getLegendLevel(this._homeDataItem);
  19869. if (e4) {
  19870. var i3 = [];
  19871. e4.children.each(function(t4) {
  19872. i3.push(t4);
  19873. }), t3.data = i3;
  19874. }
  19875. }
  19876. }, e3.prototype.disposeData = function() {
  19877. t2.prototype.disposeData.call(this), this._homeDataItem = void 0, this.series.clear(), this.navigationBar && this.navigationBar.disposeData(), this.xAxis.disposeData(), this.yAxis.disposeData();
  19878. }, e3.prototype.getExporting = function() {
  19879. var e4 = this, i3 = t2.prototype.getExporting.call(this);
  19880. return i3.adapter.add("formatDataFields", function(t3) {
  19881. return t3.format != "csv" && t3.format != "xlsx" || Z(e4.dataFields.children) && delete t3.dataFields[e4.dataFields.children], t3;
  19882. }), i3;
  19883. }, e3;
  19884. }(Ah);
  19885. Ii.registeredClasses.TreeMap = Tp;
  19886. var Ap = function(t2) {
  19887. function e3() {
  19888. var e4 = t2.call(this) || this;
  19889. return e4._chart = new ve(), e4.className = "AxisRendererX3D", e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  19890. }
  19891. return C(e3, t2), e3.prototype.updateGridElement = function(t3, e4, i3) {
  19892. e4 += (i3 - e4) * t3.location;
  19893. var n3 = this.positionToPoint(e4);
  19894. if (t3.element) {
  19895. var r3 = this.chart.dx3D || 0, s2 = this.chart.dy3D || 0, a2 = this.getHeight();
  19896. t3.path = wo({ x: r3, y: s2 }) + Co({ x: r3, y: a2 + s2 }) + Co({ x: 0, y: a2 });
  19897. }
  19898. this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  19899. }, e3.prototype.updateBaseGridElement = function() {
  19900. t2.prototype.updateBaseGridElement.call(this);
  19901. var e4 = this.getHeight(), i3 = this.chart.dx3D || 0, n3 = this.chart.dy3D || 0;
  19902. this.baseGrid.path = wo({ x: i3, y: n3 }) + Co({ x: 0, y: 0 }) + Co({ x: 0, y: e4 });
  19903. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  19904. return this._chart.get();
  19905. }, set: function(t3) {
  19906. t3 && this._chart.set(t3, t3.events.on("propertychanged", this.handle3DChanged, this, false));
  19907. }, enumerable: true, configurable: true }), e3.prototype.handle3DChanged = function(t3) {
  19908. t3.property != "depth" && t3.property != "angle" || this.invalidate();
  19909. }, e3;
  19910. }(wh);
  19911. Ii.registeredClasses.AxisRendererX3D = Ap;
  19912. var Vp = function(t2) {
  19913. function e3() {
  19914. var e4 = t2.call(this) || this;
  19915. return e4._chart = new ve(), e4.className = "AxisRendererY3D", e4._disposers.push(e4._chart), e4.applyTheme(), e4;
  19916. }
  19917. return C(e3, t2), e3.prototype.updateGridElement = function(t3, e4, i3) {
  19918. e4 += (i3 - e4) * t3.location;
  19919. var n3 = this.positionToPoint(e4);
  19920. if (t3.element) {
  19921. var r3 = this.chart.dx3D || 0, s2 = this.chart.dy3D || 0, a2 = this.getWidth();
  19922. t3.path = wo({ x: 0, y: 0 }) + Co({ x: r3, y: s2 }) + Co({ x: a2 + r3, y: s2 });
  19923. }
  19924. this.positionItem(t3, n3), this.toggleVisibility(t3, e4, 0, 1);
  19925. }, e3.prototype.updateBaseGridElement = function() {
  19926. t2.prototype.updateBaseGridElement.call(this);
  19927. var e4 = this.chart.dx3D || 0, i3 = this.chart.dy3D || 0, n3 = this.getWidth();
  19928. this.baseGrid.path = wo({ x: 0, y: 0 }) + Co({ x: n3, y: 0 }) + Co({ x: n3 + e4, y: i3 });
  19929. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  19930. return this._chart.get();
  19931. }, set: function(t3) {
  19932. t3 && this._chart.set(t3, t3.events.on("propertychanged", this.handle3DChanged, this, false));
  19933. }, enumerable: true, configurable: true }), e3.prototype.handle3DChanged = function(t3) {
  19934. t3.property != "depth" && t3.property != "angle" || this.invalidate();
  19935. }, e3;
  19936. }(yh), Fp = function(t2) {
  19937. function e3() {
  19938. var e4 = t2.call(this) || this;
  19939. return e4.className = "Column3D", e4;
  19940. }
  19941. return C(e3, t2), e3.prototype.createAssets = function() {
  19942. this.column3D = this.createChild(bl), this.column3D.shouldClone = false, this.column3D.strokeOpacity = 0, this.column = this.column3D;
  19943. }, e3.prototype.validate = function() {
  19944. t2.prototype.validate.call(this), this.column3D && (this.column3D.width = this.pixelWidth, this.column3D.height = this.pixelHeight, this.column3D.invalid && this.column3D.validate());
  19945. }, e3.prototype.copyFrom = function(e4) {
  19946. t2.prototype.copyFrom.call(this, e4), this.column3D && this.column3D.copyFrom(e4.column3D);
  19947. }, e3.prototype.setFill = function(e4) {
  19948. t2.prototype.setFill.call(this, e4), this.column.fill = e4;
  19949. }, e3;
  19950. }(Cp);
  19951. Ii.registeredClasses.Column3D = Fp;
  19952. var Mp = function(t2) {
  19953. function e3() {
  19954. var e4 = t2.call(this) || this;
  19955. return e4.className = "ColumnSeries3DDataItem", e4.applyTheme(), e4;
  19956. }
  19957. return C(e3, t2), e3;
  19958. }(Op), Lp = function(t2) {
  19959. function e3() {
  19960. var e4 = t2.call(this) || this;
  19961. return e4.className = "ColumnSeries3D", e4.columns.template.column3D.applyOnClones = true, e4.columns.template.hiddenState.properties.visible = true, e4.applyTheme(), e4;
  19962. }
  19963. return C(e3, t2), Object.defineProperty(e3.prototype, "columnsContainer", { get: function() {
  19964. var t3 = this.chart;
  19965. return t3 && t3.columnsContainer && t3.leftAxesContainer.layout != "vertical" && t3.rightAxesContainer.layout != "vertical" && t3.bottomAxesContainer.layout != "horizontal" && t3.topAxesContainer.layout != "horizontal" ? t3.columnsContainer : this._columnsContainer;
  19966. }, enumerable: true, configurable: true }), e3.prototype.validateDataElementReal = function(e4) {
  19967. t2.prototype.validateDataElementReal.call(this, e4), e4.column && (e4.column.dx = this.dx, e4.column.dy = this.dy, e4.column.visible = this.visible);
  19968. }, e3.prototype.validateDataElements = function() {
  19969. t2.prototype.validateDataElements.call(this), this.chart && this.chart.invalidateLayout();
  19970. }, e3.prototype.createColumnTemplate = function() {
  19971. return new Fp();
  19972. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  19973. return this.getPropertyValue("depth");
  19974. }, set: function(t3) {
  19975. this.setPropertyValue("depth", t3, true), this.columns.template.column3D.depth = t3;
  19976. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  19977. return this.getPropertyValue("angle");
  19978. }, set: function(t3) {
  19979. this.setPropertyValue("angle", t3), this.columns.template.column3D.angle = t3;
  19980. }, enumerable: true, configurable: true }), e3;
  19981. }(Sp);
  19982. Ii.registeredClasses.ColumnSeries3D = Lp, Ii.registeredClasses.ColumnSeries3DDataItem = Mp;
  19983. var jp = function(t2) {
  19984. function e3() {
  19985. var e4 = t2.call(this) || this;
  19986. return e4.className = "XYChart3DDataItem", e4.applyTheme(), e4;
  19987. }
  19988. return C(e3, t2), e3;
  19989. }(Th), Ep = function(t2) {
  19990. function e3() {
  19991. var e4 = t2.call(this) || this;
  19992. e4._axisRendererX = Ap, e4._axisRendererY = Vp, e4.className = "XYChart3D", e4.depth = 30, e4.angle = 30;
  19993. var i3 = e4.seriesContainer.createChild($a);
  19994. return i3.shouldClone = false, i3.isMeasured = false, i3.layout = "none", e4.columnsContainer = i3, e4.columnsContainer.mask = e4.createChild(Za), e4.applyTheme(), e4;
  19995. }
  19996. return C(e3, t2), e3.prototype.updateSeriesMasks = function() {
  19997. if (t2.prototype.updateSeriesMasks.call(this), Ir()) {
  19998. var e4 = this.columnsContainer, i3 = e4.mask;
  19999. e4.mask = void 0, e4.mask = i3;
  20000. }
  20001. }, Object.defineProperty(e3.prototype, "depth", { get: function() {
  20002. return this.getPropertyValue("depth");
  20003. }, set: function(t3) {
  20004. this.setPropertyValue("depth", t3), this.fixLayout(), this.invalidateDataUsers();
  20005. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "angle", { get: function() {
  20006. return this.getPropertyValue("angle");
  20007. }, set: function(t3) {
  20008. this.setPropertyValue("angle", t3), this.fixLayout(), this.invalidateDataUsers();
  20009. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dx3D", { get: function() {
  20010. return ft(this.angle) * this.depth;
  20011. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "dy3D", { get: function() {
  20012. return -dt(this.angle) * this.depth;
  20013. }, enumerable: true, configurable: true }), e3.prototype.validateLayout = function() {
  20014. t2.prototype.validateLayout.call(this), this.fixColumns();
  20015. }, e3.prototype.fixLayout = function() {
  20016. this.chartContainer.paddingTop = -this.dy3D, this.chartContainer.paddingRight = this.dx3D, this.scrollbarX && (this.scrollbarX.dy = this.dy3D, this.scrollbarX.dx = this.dx3D), this.scrollbarY && (this.scrollbarY.dy = this.dy3D, this.scrollbarY.dx = this.dx3D), this.fixColumns(), t2.prototype.fixLayout.call(this);
  20017. }, e3.prototype.fixColumns = function() {
  20018. var t3 = this, e4 = 1, i3 = 0;
  20019. ti(this.series.iterator(), function(t4) {
  20020. t4 instanceof Lp && (!t4.clustered && i3 > 0 && e4++, t4.depthIndex = e4 - 1, i3++);
  20021. });
  20022. var n3 = 0;
  20023. ti(this.series.iterator(), function(i4) {
  20024. if (i4 instanceof Lp) {
  20025. i4.depth = t3.depth / e4, i4.angle = t3.angle, i4.columnsContainer == t3.columnsContainer && (i4.dx = t3.depth / e4 * ft(t3.angle) * i4.depthIndex, i4.dy = -t3.depth / e4 * dt(t3.angle) * i4.depthIndex);
  20026. var r3 = false;
  20027. (i4.baseAxis == i4.xAxis && i4.xAxis.renderer.inversed || i4.baseAxis == i4.yAxis && i4.yAxis.renderer.inversed) && (r3 = true);
  20028. var s2 = 1;
  20029. i4.dataItems.each(function(t4) {
  20030. var e5 = t4.column;
  20031. e5 && (e5.zIndex = r3 ? 1e3 * (1e3 - s2) + n3 - 100 * i4.depthIndex : 1e3 * s2 + n3 - 100 * i4.depthIndex), s2++;
  20032. }), r3 ? n3-- : n3++;
  20033. }
  20034. }), this.maskColumns();
  20035. }, e3.prototype.processConfig = function(e4) {
  20036. if (e4 && Z(e4.series) && it(e4.series))
  20037. for (var i3 = 0, n3 = e4.series.length; i3 < n3; i3++)
  20038. e4.series[i3].type = e4.series[i3].type || "ColumnSeries3D";
  20039. t2.prototype.processConfig.call(this, e4);
  20040. }, e3.prototype.maskColumns = function() {
  20041. var t3 = this.plotContainer.pixelWidth, e4 = this.plotContainer.pixelHeight, i3 = this.dx3D, n3 = this.dy3D, r3 = wo({ x: 0, y: 0 }) + Co({ x: i3, y: n3 }) + Co({ x: t3 + i3, y: n3 }) + Co({ x: t3 + i3, y: e4 + n3 }) + Co({ x: t3, y: e4 }) + Co({ x: t3, y: e4 }) + Co({ x: 0, y: e4 }) + " Z", s2 = this.columnsContainer;
  20042. s2 && s2.mask && (s2.mask.path = r3);
  20043. }, e3;
  20044. }(Ah);
  20045. Ii.registeredClasses.XYChart3D = Ep;
  20046. var Rp = function(t2) {
  20047. function e3() {
  20048. var e4 = t2.call(this) || this;
  20049. e4.className = "HeatLegend", e4.markerContainer = e4.createChild($a), e4.markerContainer.shouldClone = false, e4.markerCount = 1;
  20050. var i3 = new fo();
  20051. return i3.minHeight = 20, i3.minWidth = 20, i3.interactionsEnabled = false, i3.fillOpacity = 1, i3.cornerRadius(0, 0, 0, 0), e4.markerContainer.minHeight = 20, e4.markerContainer.minWidth = 20, e4.orientation = "horizontal", e4.markers = new Mi(i3), e4._disposers.push(new Ai(e4.markers)), e4._disposers.push(e4.markers.template), e4.applyTheme(), e4;
  20052. }
  20053. return C(e3, t2), e3.prototype.getMinFromRules = function(t3) {
  20054. var e4, i3 = this.series;
  20055. if (i3)
  20056. return Qe(i3.heatRules.iterator(), function(i4) {
  20057. return i4.property != t3 || (e4 = i4.min, false);
  20058. }), e4;
  20059. }, e3.prototype.getMaxFromRules = function(t3) {
  20060. var e4, i3 = this.series;
  20061. if (i3)
  20062. return ti(i3.heatRules.iterator(), function(i4) {
  20063. return i4.property != t3 || (e4 = i4.max, false);
  20064. }), e4;
  20065. }, e3.prototype.validate = function() {
  20066. t2.prototype.validate.call(this), this.valueAxis.renderer.inversed = this.reverseOrder;
  20067. var e4 = this.series, i3 = this.minColor, n3 = this.maxColor;
  20068. if (Z(i3) || (i3 = gn(this.getMinFromRules("fill"))), Z(n3) || (n3 = gn(this.getMaxFromRules("fill"))), e4) {
  20069. var r3 = e4.fill;
  20070. !Z(i3) && r3 instanceof un && (i3 = r3), !Z(n3) && r3 instanceof un && (n3 = r3);
  20071. }
  20072. Z(n3) || (n3 = gn(this.getMaxFromRules("fill")));
  20073. var s2 = U(this.getMinFromRules("fillOpacity"));
  20074. tt(s2) || (s2 = 1);
  20075. var a2 = U(this.getMaxFromRules("fillOpacity"));
  20076. tt(a2) || (a2 = 1);
  20077. var o3 = U(this.getMinFromRules("strokeOpacity"));
  20078. tt(o3) || (o3 = 1);
  20079. var l2 = U(this.getMaxFromRules("strokeOpacity"));
  20080. tt(l2) || (l2 = 1);
  20081. for (var h2 = gn(this.getMinFromRules("stroke")), p2 = gn(this.getMaxFromRules("stroke")), u2 = 0; u2 < this.markerCount; u2++) {
  20082. var d2 = this.markers.getIndex(u2);
  20083. if (d2 || ((d2 = this.markers.create()).parent = this.markerContainer, d2.height = V(100), d2.width = V(100)), this.markerCount == 1) {
  20084. var c2 = new Oa();
  20085. if (this.reverseOrder ? (c2.addColor(n3, a2), c2.addColor(i3, s2)) : (c2.addColor(i3, s2), c2.addColor(n3, a2)), this.orientation == "vertical" && (c2.rotation = -90), d2.fill = c2, Z(h2) && Z(p2)) {
  20086. var f2 = new Oa();
  20087. this.reverseOrder ? (f2.addColor(p2, l2), f2.addColor(h2, o3)) : (f2.addColor(h2, o3), f2.addColor(p2, l2)), this.orientation == "vertical" && (f2.rotation = -90), d2.stroke = f2;
  20088. }
  20089. } else {
  20090. var g2 = u2;
  20091. this.reverseOrder && (g2 = this.markerCount - u2 - 1);
  20092. var y2 = new un(Qi(i3.rgb, n3.rgb, g2 / this.markerCount));
  20093. d2.fill = y2;
  20094. var m2 = s2 + (a2 - s2) * g2 / this.markerCount;
  20095. if (d2.fillOpacity = m2, Z(h2) && Z(p2)) {
  20096. var v2 = new un(Qi(h2.rgb, p2.rgb, g2 / this.markerCount));
  20097. d2.stroke = v2;
  20098. var b2 = o3 + (l2 - o3) * g2 / this.markerCount;
  20099. d2.strokeOpacity = b2;
  20100. }
  20101. }
  20102. }
  20103. var x2 = this.valueAxis.renderer;
  20104. this.markerCount > 1 && (this.orientation == "horizontal" ? x2.minGridDistance = this.measuredWidth / this.markerCount : x2.minGridDistance = this.measuredHeight / this.markerCount), this.valueAxis.invalidate(), u2 = this.markerCount;
  20105. for (var _2 = this.markers.length; u2 < _2; u2++)
  20106. this.markers.getIndex(u2).parent = void 0;
  20107. }, Object.defineProperty(e3.prototype, "minColor", { get: function() {
  20108. return this.getPropertyValue("minColor");
  20109. }, set: function(t3) {
  20110. t3 instanceof un || (t3 = gn(t3)), this.setColorProperty("minColor", t3, true);
  20111. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxColor", { get: function() {
  20112. return this.getPropertyValue("maxColor");
  20113. }, set: function(t3) {
  20114. t3 instanceof un || (t3 = gn(t3)), this.setColorProperty("maxColor", t3, true);
  20115. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "markerCount", { get: function() {
  20116. return this.getPropertyValue("markerCount");
  20117. }, set: function(t3) {
  20118. this.setPropertyValue("markerCount", t3, true);
  20119. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "minValue", { get: function() {
  20120. return this.getPropertyValue("minValue");
  20121. }, set: function(t3) {
  20122. this.setPropertyValue("minValue", t3), this.valueAxis.min = t3;
  20123. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxValue", { get: function() {
  20124. return this.getPropertyValue("maxValue");
  20125. }, set: function(t3) {
  20126. this.setPropertyValue("maxValue", t3), this.valueAxis.max = t3;
  20127. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20128. return this.getPropertyValue("orientation");
  20129. }, set: function(t3) {
  20130. this.setPropertyValue("orientation", t3, true);
  20131. var e4 = this.markerContainer, i3 = this.valueAxis;
  20132. t3 == "horizontal" ? (Z(this.width) || (this.width = 200), this.height = void 0, i3.width = V(100), i3.height = void 0, i3.tooltip.pointerOrientation = "vertical", this.layout = "vertical", e4.width = V(100), e4.height = void 0, i3.renderer instanceof wh || (i3.renderer = new wh())) : (Z(this.height) || (this.height = 200), this.width = void 0, this.layout = "horizontal", e4.width = void 0, e4.height = V(100), i3.height = V(100), i3.width = void 0, i3.tooltip.pointerOrientation = "horizontal", i3.renderer instanceof yh || (i3.renderer = new yh()), i3.renderer.inside = true, i3.renderer.labels.template.inside = true, this.markerContainer.reverseOrder = true);
  20133. var n3 = i3.renderer;
  20134. n3.grid.template.disabled = true, n3.axisFills.template.disabled = true, n3.baseGrid.disabled = true, n3.labels.template.padding(2, 3, 2, 3), n3.minHeight = void 0, n3.minWidth = void 0, this.markerContainer.layout = t3;
  20135. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueAxis", { get: function() {
  20136. return this._valueAxis || (this.valueAxis = this.createChild(bh), this.valueAxis.shouldClone = false), this._valueAxis;
  20137. }, set: function(t3) {
  20138. this._valueAxis = t3, t3.parent = this, t3.strictMinMax = true, this.orientation = this.orientation;
  20139. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "series", { get: function() {
  20140. return this._series;
  20141. }, set: function(t3) {
  20142. var e4 = this;
  20143. this._series = t3;
  20144. var i3 = "value";
  20145. try {
  20146. var n3 = t3.heatRules.getIndex(0).dataField;
  20147. n3 && (i3 = n3);
  20148. } catch (t4) {
  20149. }
  20150. this.updateMinMax(t3.dataItem.values[i3].low, t3.dataItem.values[i3].high), t3.dataItem.events.on("calculatedvaluechanged", function(n4) {
  20151. e4.updateMinMax(t3.dataItem.values[i3].low, t3.dataItem.values[i3].high);
  20152. }, void 0, false), t3.heatRules.events.on("inserted", this.invalidate, this, false), t3.heatRules.events.on("removed", this.invalidate, this, false);
  20153. }, enumerable: true, configurable: true }), e3.prototype.updateMinMax = function(t3, e4) {
  20154. var i3 = this.valueAxis;
  20155. tt(this.minValue) || (i3.min = t3, i3.invalidate()), tt(this.maxValue) || (i3.max = e4, i3.invalidate());
  20156. }, e3.prototype.processConfig = function(e4) {
  20157. if (e4 && Z(e4.series) && Q(e4.series) && Q(e4.series))
  20158. if (this.map.hasKey(e4.series))
  20159. e4.series = this.map.getKey(e4.series);
  20160. else {
  20161. var i3 = e4.series, n3 = this.map.events.on("insertKey", function(t3) {
  20162. t3.key == i3 && (this.series = t3.newValue, n3.dispose());
  20163. }, this);
  20164. this._disposers.push(n3), delete e4.series;
  20165. }
  20166. t2.prototype.processConfig.call(this, e4);
  20167. }, e3;
  20168. }($a);
  20169. Ii.registeredClasses.HeatLegend = Rp;
  20170. var Bp = function(t2) {
  20171. function e3() {
  20172. var e4 = t2.call(this) || this;
  20173. return e4.className = "Candlestick", e4.layout = "none", e4;
  20174. }
  20175. return C(e3, t2), e3.prototype.createAssets = function() {
  20176. t2.prototype.createAssets.call(this), this.lowLine = this.createChild(bo), this.lowLine.shouldClone = false, this.highLine = this.createChild(bo), this.highLine.shouldClone = false;
  20177. }, e3.prototype.copyFrom = function(e4) {
  20178. t2.prototype.copyFrom.call(this, e4), this.lowLine && this.lowLine.copyFrom(e4.lowLine), this.highLine && this.highLine.copyFrom(e4.highLine);
  20179. }, e3;
  20180. }(Cp);
  20181. Ii.registeredClasses.Candlestick = Bp;
  20182. var Hp = function(t2) {
  20183. function e3() {
  20184. var e4 = t2.call(this) || this;
  20185. return e4.values.lowValueX = {}, e4.values.lowValueY = {}, e4.values.highValueX = {}, e4.values.highValueY = {}, e4.className = "CandlestickSeriesDataItem", e4.applyTheme(), e4;
  20186. }
  20187. return C(e3, t2), Object.defineProperty(e3.prototype, "lowValueX", { get: function() {
  20188. return this.values.lowValueX.value;
  20189. }, set: function(t3) {
  20190. this.setValue("lowValueX", t3);
  20191. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "lowValueY", { get: function() {
  20192. return this.values.lowValueY.value;
  20193. }, set: function(t3) {
  20194. this.setValue("lowValueY", t3);
  20195. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "highValueX", { get: function() {
  20196. return this.values.highValueX.value;
  20197. }, set: function(t3) {
  20198. this.setValue("highValueX", t3);
  20199. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "highValueY", { get: function() {
  20200. return this.values.highValueY.value;
  20201. }, set: function(t3) {
  20202. this.setValue("highValueY", t3);
  20203. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "closeValueX", { get: function() {
  20204. return this.values.valueX.value;
  20205. }, set: function(t3) {
  20206. this.setValue("valueX", t3);
  20207. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "closeValueY", { get: function() {
  20208. return this.values.valueY.value;
  20209. }, set: function(t3) {
  20210. this.setValue("valueY", t3);
  20211. }, enumerable: true, configurable: true }), e3;
  20212. }(Op), Np = function(t2) {
  20213. function e3() {
  20214. var e4 = t2.call(this) || this;
  20215. e4.className = "CandlestickSeries", e4.groupFields.lowValueX = "low", e4.groupFields.lowValueY = "low", e4.groupFields.highValueX = "high", e4.groupFields.highValueY = "high", e4.strokeOpacity = 1;
  20216. var i3 = new Ys(), n3 = i3.getFor("positive"), r3 = i3.getFor("negative");
  20217. return e4.dropFromOpenState.properties.fill = r3, e4.dropFromOpenState.properties.stroke = r3, e4.riseFromOpenState.properties.fill = n3, e4.riseFromOpenState.properties.stroke = n3, e4.applyTheme(), e4;
  20218. }
  20219. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  20220. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Candlestick Series"));
  20221. }, e3.prototype.createDataItem = function() {
  20222. return new Hp();
  20223. }, e3.prototype.validateDataElementReal = function(e4) {
  20224. t2.prototype.validateDataElementReal.call(this, e4), this.validateCandlestick(e4);
  20225. }, e3.prototype.validateCandlestick = function(t3) {
  20226. var e4 = t3.column;
  20227. if (e4) {
  20228. var i3 = e4.lowLine, n3 = e4.highLine;
  20229. if (this.baseAxis == this.xAxis) {
  20230. var r3 = e4.pixelWidth / 2;
  20231. i3.x = r3, n3.x = r3;
  20232. var s2 = t3.getWorkingValue(this.yOpenField), a2 = t3.getWorkingValue(this.yField), o3 = this.yAxis.getY(t3, this.yOpenField), l2 = this.yAxis.getY(t3, this.yField), h2 = this.yAxis.getY(t3, this.yLowField), p2 = this.yAxis.getY(t3, this.yHighField), u2 = e4.pixelY;
  20233. i3.y1 = h2 - u2, n3.y1 = p2 - u2, s2 < a2 ? (i3.y2 = o3 - u2, n3.y2 = l2 - u2) : (i3.y2 = l2 - u2, n3.y2 = o3 - u2);
  20234. }
  20235. if (this.baseAxis == this.yAxis) {
  20236. var d2 = e4.pixelHeight / 2;
  20237. i3.y = d2, n3.y = d2;
  20238. var c2 = t3.getWorkingValue(this.xOpenField), f2 = t3.getWorkingValue(this.xField), g2 = this.xAxis.getX(t3, this.xOpenField), y2 = this.xAxis.getX(t3, this.xField), m2 = this.xAxis.getX(t3, this.xLowField), v2 = this.xAxis.getX(t3, this.xHighField), b2 = e4.pixelX;
  20239. i3.x1 = m2 - b2, n3.x1 = v2 - b2, c2 < f2 ? (i3.x2 = g2 - b2, n3.x2 = y2 - b2) : (i3.x2 = y2 - b2, n3.x2 = g2 - b2);
  20240. }
  20241. ti(this.axisRanges.iterator(), function(e5) {
  20242. var r4 = t3.rangesColumns.getKey(e5.uid);
  20243. if (r4) {
  20244. var s3 = r4.lowLine;
  20245. s3.x = i3.x, s3.y = i3.y, s3.x1 = i3.x1, s3.x2 = i3.x2, s3.y1 = i3.y1, s3.y2 = i3.y2;
  20246. var a3 = r4.highLine;
  20247. a3.x = n3.x, a3.y = n3.y, a3.x1 = n3.x1, a3.x2 = n3.x2, a3.y1 = n3.y1, a3.y2 = n3.y2;
  20248. }
  20249. });
  20250. }
  20251. }, Object.defineProperty(e3.prototype, "xLowField", { get: function() {
  20252. return this._xLowField;
  20253. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yLowField", { get: function() {
  20254. return this._yLowField;
  20255. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xHighField", { get: function() {
  20256. return this._xHighField;
  20257. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yHighField", { get: function() {
  20258. return this._yHighField;
  20259. }, enumerable: true, configurable: true }), e3.prototype.defineFields = function() {
  20260. t2.prototype.defineFields.call(this);
  20261. var e4 = this.xAxis, i3 = this.yAxis;
  20262. if (e4 && i3) {
  20263. if (this.baseAxis == e4) {
  20264. var n3 = En(i3.axisFieldName);
  20265. this._yLowField = "low" + n3 + "Y", this._yHighField = "high" + n3 + "Y";
  20266. }
  20267. if (this.baseAxis == i3) {
  20268. var r3 = En(e4.axisFieldName);
  20269. this._xLowField = "low" + r3 + "X", this._xHighField = "high" + r3 + "X";
  20270. }
  20271. this.addValueField(e4, this._xValueFields, this._xLowField), this.addValueField(e4, this._xValueFields, this._xHighField), this.addValueField(i3, this._yValueFields, this._yLowField), this.addValueField(i3, this._yValueFields, this._yHighField);
  20272. }
  20273. }, e3.prototype.createLegendMarker = function(t3) {
  20274. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  20275. t3.removeChildren();
  20276. var n3, r3, s2 = t3.createChild(Bp);
  20277. s2.shouldClone = false, s2.copyFrom(this.columns.template);
  20278. var a2 = s2.lowLine, o3 = s2.highLine;
  20279. this.baseAxis == this.yAxis ? (n3 = e4 / 3, r3 = i3, a2.y = i3 / 2, o3.y = i3 / 2, a2.x2 = e4 / 3, o3.x2 = e4 / 3, o3.x = e4 / 3 * 2, s2.column.x = e4 / 3) : (n3 = e4, r3 = i3 / 3, a2.x = e4 / 2, o3.x = e4 / 2, a2.y2 = i3 / 3, o3.y2 = i3 / 3, o3.y = i3 / 3 * 2, s2.column.y = i3 / 3), s2.width = n3, s2.height = r3, Ue(this, t3, Ka), Ue(this.columns.template, s2, Ka), s2.stroke = this.riseFromOpenState.properties.stroke, s2.fill = s2.stroke;
  20280. var l2 = t3.dataItem;
  20281. l2.color = s2.fill, l2.colorOrig = s2.fill;
  20282. }, e3.prototype.createColumnTemplate = function() {
  20283. return new Bp();
  20284. }, e3;
  20285. }(Sp);
  20286. Ii.registeredClasses.CandlestickSeries = Np, Ii.registeredClasses.CandlestickSeriesDataItem = Hp;
  20287. var Wp = function(t2) {
  20288. function e3() {
  20289. var e4 = t2.call(this) || this;
  20290. return e4.className = "OHLC", e4.layout = "none", e4;
  20291. }
  20292. return C(e3, t2), e3.prototype.createAssets = function() {
  20293. this.openLine = this.createChild(bo), this.openLine.shouldClone = false, this.highLowLine = this.createChild(bo), this.highLowLine.shouldClone = false, this.closeLine = this.createChild(bo), this.closeLine.shouldClone = false;
  20294. }, e3.prototype.copyFrom = function(e4) {
  20295. t2.prototype.copyFrom.call(this, e4), this.openLine && this.openLine.copyFrom(e4.openLine), this.highLowLine && this.highLowLine.copyFrom(e4.highLowLine), this.closeLine && this.closeLine.copyFrom(e4.closeLine);
  20296. }, e3;
  20297. }(Bp);
  20298. Ii.registeredClasses.OHLC = Wp;
  20299. var Xp = function(t2) {
  20300. function e3() {
  20301. var e4 = t2.call(this) || this;
  20302. return e4.className = "OHLCSeriesDataItem", e4.applyTheme(), e4;
  20303. }
  20304. return C(e3, t2), e3;
  20305. }(Hp), Yp = function(t2) {
  20306. function e3() {
  20307. var e4 = t2.call(this) || this;
  20308. return e4.className = "OHLCSeries", e4.applyTheme(), e4;
  20309. }
  20310. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  20311. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("OHLC Series"));
  20312. }, e3.prototype.createDataItem = function() {
  20313. return new Xp();
  20314. }, e3.prototype.validateCandlestick = function(t3) {
  20315. var e4 = t3.column;
  20316. if (e4) {
  20317. var i3 = e4.openLine, n3 = e4.highLowLine, r3 = e4.closeLine;
  20318. if (this.baseAxis == this.xAxis) {
  20319. var s2 = e4.pixelWidth / 2;
  20320. n3.x = s2, t3.getWorkingValue(this.yOpenField), t3.getWorkingValue(this.yField);
  20321. var a2 = this.yAxis.getY(t3, this.yOpenField), o3 = this.yAxis.getY(t3, this.yField), l2 = this.yAxis.getY(t3, this.yLowField), h2 = this.yAxis.getY(t3, this.yHighField), p2 = e4.pixelY;
  20322. i3.y1 = a2 - p2, i3.y2 = a2 - p2, i3.x1 = 0, i3.x2 = s2, r3.y1 = o3 - p2, r3.y2 = o3 - p2, r3.x1 = s2, r3.x2 = 2 * s2, n3.y1 = h2 - p2, n3.y2 = l2 - p2;
  20323. }
  20324. if (this.baseAxis == this.yAxis) {
  20325. var u2 = e4.pixelHeight / 2;
  20326. n3.y = u2, t3.getWorkingValue(this.xOpenField), t3.getWorkingValue(this.xField);
  20327. var d2 = this.xAxis.getX(t3, this.xOpenField), c2 = this.xAxis.getX(t3, this.xField), f2 = this.xAxis.getX(t3, this.xLowField), g2 = this.xAxis.getX(t3, this.xHighField), y2 = e4.pixelX;
  20328. i3.x1 = d2 - y2, i3.x2 = d2 - y2, i3.y1 = u2, i3.y2 = 2 * u2, r3.x1 = c2 - y2, r3.x2 = c2 - y2, r3.y1 = 0, r3.y2 = u2, n3.x1 = g2 - y2, n3.x2 = f2 - y2;
  20329. }
  20330. ti(this.axisRanges.iterator(), function(e5) {
  20331. var s3 = t3.rangesColumns.getKey(e5.uid);
  20332. if (s3) {
  20333. var a3 = s3.openLine;
  20334. a3.x = i3.x, a3.y = i3.y, a3.x1 = i3.x1, a3.x2 = i3.x2, a3.y1 = i3.y1, a3.y2 = i3.y2;
  20335. var o4 = s3.closeLine;
  20336. o4.x = r3.x, o4.y = r3.y, o4.x1 = r3.x1, o4.x2 = r3.x2, o4.y1 = r3.y1, o4.y2 = r3.y2;
  20337. var l3 = s3.highLowLine;
  20338. l3.x = n3.x, l3.y = n3.y, l3.x1 = n3.x1, l3.x2 = n3.x2, l3.y1 = n3.y1, l3.y2 = n3.y2;
  20339. }
  20340. });
  20341. }
  20342. }, e3.prototype.createLegendMarker = function(t3) {
  20343. var e4 = t3.pixelWidth, i3 = t3.pixelHeight;
  20344. t3.removeChildren();
  20345. var n3, r3, s2 = t3.createChild(Wp);
  20346. s2.shouldClone = false, s2.copyFrom(this.columns.template);
  20347. var a2 = s2.openLine, o3 = s2.closeLine, l2 = s2.highLowLine;
  20348. this.baseAxis == this.yAxis ? (n3 = e4 / 3, r3 = i3, l2.y = i3 / 2, l2.x2 = e4, a2.x = e4 / 3 * 2, a2.y2 = i3 / 2, o3.x = e4 / 3, o3.y2 = i3, o3.y1 = i3 / 2) : (n3 = e4, r3 = i3 / 3, l2.x = e4 / 2, l2.y2 = i3, a2.y = i3 / 3 * 2, a2.x2 = e4 / 2, o3.y = i3 / 3, o3.x2 = e4, o3.x1 = e4 / 2), s2.width = n3, s2.height = r3, Ue(this, t3, Ka), Ue(this.columns.template, s2, Ka), s2.stroke = this.riseFromOpenState.properties.stroke;
  20349. var h2 = t3.dataItem;
  20350. h2.color = s2.stroke, h2.colorOrig = s2.stroke;
  20351. }, e3.prototype.createColumnTemplate = function() {
  20352. return new Wp();
  20353. }, e3;
  20354. }(Np);
  20355. Ii.registeredClasses.OHLCSeries = Yp, Ii.registeredClasses.OHLCSeriesDataItem = Xp;
  20356. var zp = function(t2) {
  20357. function e3() {
  20358. var e4 = t2.call(this) || this;
  20359. return e4.className = "StepLineSeriesSegment", e4;
  20360. }
  20361. return C(e3, t2), e3.prototype.drawSegment = function(t3, e4, i3, n3, r3, s2) {
  20362. if (t3.length > 0 && e4.length > 0)
  20363. if (r3) {
  20364. var a2 = wo(t3[0]);
  20365. if (t3.length > 0)
  20366. for (var o3 = 1; o3 < t3.length; o3++) {
  20367. var l2 = t3[o3];
  20368. o3 / 2 == Math.round(o3 / 2) ? a2 += wo(l2) : a2 += Co(l2);
  20369. }
  20370. this.strokeSprite.path = a2, (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) && (a2 = wo(t3[0]) + Po(t3), a2 += Co(e4[0]) + Po(e4), a2 += Co(t3[0]), a2 += " Z", this.fillSprite.path = a2);
  20371. } else
  20372. a2 = wo(t3[0]) + Po(t3), this.strokeSprite.path = a2, (this.fillOpacity > 0 || this.fillSprite.fillOpacity > 0) && (a2 += Co(e4[0]) + Po(e4), a2 += Co(t3[0]), a2 += " Z", this.fillSprite.path = a2);
  20373. else
  20374. this.strokeSprite.path = "", this.fillSprite.path = "";
  20375. }, e3;
  20376. }(Vh);
  20377. Ii.registeredClasses.StepLineSeriesSegment = zp;
  20378. var Up = function(t2) {
  20379. function e3() {
  20380. var e4 = t2.call(this) || this;
  20381. return e4.className = "StepLineSeriesDataItem", e4.applyTheme(), e4;
  20382. }
  20383. return C(e3, t2), e3;
  20384. }(Lh), Gp = function(t2) {
  20385. function e3() {
  20386. var e4 = t2.call(this) || this;
  20387. return e4.className = "StepLineSeries", e4.applyTheme(), e4.startLocation = 0, e4.endLocation = 1, e4;
  20388. }
  20389. return C(e3, t2), e3.prototype.createDataItem = function() {
  20390. return new Up();
  20391. }, e3.prototype.addPoints = function(t3, e4, i3, n3, r3) {
  20392. var s2, a2, o3, l2;
  20393. this.baseAxis == this.xAxis && (s2 = this.startLocation, a2 = this.endLocation, o3 = this.getAdjustedXLocation(e4, this.yOpenField), l2 = this.getAdjustedXLocation(e4, this.yField)), this.baseAxis == this.yAxis && (o3 = this.startLocation, l2 = this.endLocation, s2 = this.getAdjustedXLocation(e4, this.xOpenField), a2 = this.getAdjustedXLocation(e4, this.xField));
  20394. var h2 = this.xAxis.getX(e4, i3, s2), p2 = this.yAxis.getY(e4, n3, o3), u2 = this.xAxis.getX(e4, i3, a2), d2 = this.yAxis.getY(e4, n3, l2);
  20395. if (h2 = ut(h2, -1e5, 1e5), p2 = ut(p2, -1e5, 1e5), u2 = ut(u2, -1e5, 1e5), d2 = ut(d2, -1e5, 1e5), !this.noRisers && t3.length > 1) {
  20396. var c2 = t3[t3.length - 1];
  20397. this.baseAxis == this.xAxis && (r3 ? t3.push({ x: c2.x, y: d2 }) : t3.push({ x: h2, y: c2.y })), this.baseAxis == this.yAxis && (r3 ? t3.push({ x: u2, y: c2.y }) : t3.push({ x: c2.x, y: p2 }));
  20398. }
  20399. var f2 = { x: h2, y: p2 }, g2 = { x: u2, y: d2 };
  20400. r3 ? t3.push(g2, f2) : t3.push(f2, g2);
  20401. }, e3.prototype.drawSegment = function(t3, e4, i3) {
  20402. var n3 = false;
  20403. this.yAxis == this.baseAxis && (n3 = true), t3.drawSegment(e4, i3, this.tensionX, this.tensionY, this.noRisers, n3);
  20404. }, e3.prototype.createSegment = function() {
  20405. return new zp();
  20406. }, Object.defineProperty(e3.prototype, "noRisers", { get: function() {
  20407. return this.getPropertyValue("noRisers");
  20408. }, set: function(t3) {
  20409. this.setPropertyValue("noRisers", t3, true);
  20410. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  20411. return this.getPropertyValue("startLocation");
  20412. }, set: function(t3) {
  20413. this.setPropertyValue("startLocation", t3, true);
  20414. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  20415. return this.getPropertyValue("endLocation");
  20416. }, set: function(t3) {
  20417. this.setPropertyValue("endLocation", t3, true);
  20418. }, enumerable: true, configurable: true }), e3;
  20419. }(jh);
  20420. Ii.registeredClasses.StepLineSeries = Gp, Ii.registeredClasses.StepLineSeriesDataItem = Up;
  20421. var Kp = function(t2) {
  20422. function e3() {
  20423. var e4 = t2.call(this) || this;
  20424. return e4.className = "RadarColumn", e4;
  20425. }
  20426. return C(e3, t2), e3.prototype.createAssets = function() {
  20427. this.radarColumn = this.createChild(No), this.radarColumn.shouldClone = false, this.radarColumn.strokeOpacity = void 0, this.column = this.radarColumn;
  20428. }, e3.prototype.copyFrom = function(e4) {
  20429. t2.prototype.copyFrom.call(this, e4), this.radarColumn && this.radarColumn.copyFrom(e4.radarColumn);
  20430. }, e3.prototype.getTooltipX = function() {
  20431. var t3 = this.getPropertyValue("tooltipX");
  20432. return tt(t3) ? t3 : this.radarColumn.getTooltipX();
  20433. }, e3.prototype.getTooltipY = function() {
  20434. var t3 = this.getPropertyValue("tooltipX");
  20435. return tt(t3) ? t3 : this.radarColumn.getTooltipY();
  20436. }, e3;
  20437. }(Cp);
  20438. Ii.registeredClasses.RadarColumn = Kp;
  20439. var Zp = function(t2) {
  20440. function e3() {
  20441. var e4 = t2.call(this) || this;
  20442. return e4.className = "ColumnSeriesDataItem", e4.applyTheme(), e4;
  20443. }
  20444. return C(e3, t2), e3;
  20445. }(Op), qp = function(t2) {
  20446. function e3() {
  20447. var e4 = t2.call(this) || this;
  20448. return e4.className = "RadarColumnSeries", e4.applyTheme(), e4;
  20449. }
  20450. return C(e3, t2), e3.prototype.createColumnTemplate = function() {
  20451. return new Kp();
  20452. }, e3.prototype.validate = function() {
  20453. this.chart.invalid && this.chart.validate(), t2.prototype.validate.call(this);
  20454. }, e3.prototype.disableUnusedColumns = function(t3) {
  20455. t3 && (t3.column && (t3.column.__disabled = true), ti(this.axisRanges.iterator(), function(e4) {
  20456. var i3 = t3.rangesColumns.getKey(e4.uid);
  20457. i3 && (i3.__disabled = true);
  20458. }));
  20459. }, e3.prototype.validateDataElementReal = function(t3) {
  20460. var e4, i3, n3, r3, s2 = this, a2 = this.chart.startAngle, o3 = this.chart.endAngle, l2 = this.yField, h2 = this.yOpenField, p2 = this.xField, u2 = this.xOpenField, d2 = this.getStartLocation(t3), c2 = this.getEndLocation(t3), f2 = (o3 - a2) / (this.dataItems.length * (this.end - this.start)), g2 = t3.column;
  20461. g2 || (g2 = this.columns.create(), t3.column = g2, Ue(this, g2, Ka), Ue(this.columns.template, g2, Ka), t3.addSprite(g2), g2.paper = this.paper, this.setColumnStates(g2));
  20462. var y2 = g2.width, m2 = 100;
  20463. y2 instanceof A && (m2 = y2.percent);
  20464. var v2 = lt((c2 - d2) * (1 - m2 / 100) / 2, 5);
  20465. if (d2 += v2, c2 -= v2, this.xAxis instanceof Sh && this.yAxis instanceof Sh)
  20466. n3 = _t({ x: this.yAxis.getX(t3, l2, 0, "valueY"), y: this.yAxis.getY(t3, l2, 0, "valueY") }), r3 = _t({ x: this.yAxis.getX(t3, h2, 1, "valueY"), y: this.yAxis.getY(t3, h2, 1, "valueY") }), e4 = this.xAxis.getAngle(t3, u2, 0, "valueX"), i3 = this.xAxis.getAngle(t3, p2, 1, "valueX"), a2 += d2 * f2, o3 -= (1 - c2) * f2;
  20467. else if (this.baseAxis == this.xAxis)
  20468. n3 = _t({ x: this.yAxis.getX(t3, l2, t3.locations[l2], "valueY"), y: this.yAxis.getY(t3, l2, t3.locations[l2], "valueY") }), r3 = _t({ x: this.yAxis.getX(t3, h2, t3.locations[h2], "valueY"), y: this.yAxis.getY(t3, h2, t3.locations[h2], "valueY") }), e4 = this.xAxis.getAngle(t3, u2, d2, "valueX"), i3 = this.xAxis.getAngle(t3, p2, c2, "valueX"), a2 += d2 * f2, o3 -= (1 - c2) * f2;
  20469. else {
  20470. if (n3 = _t({ x: this.yAxis.getX(t3, l2, d2, "valueY"), y: this.yAxis.getY(t3, l2, d2, "valueY") }), r3 = _t({ x: this.yAxis.getX(t3, h2, c2, "valueY"), y: this.yAxis.getY(t3, h2, c2, "valueY") }), tt(y2)) {
  20471. var b2 = Math.abs(n3 - r3);
  20472. if (b2 > y2) {
  20473. var x2 = (b2 - y2) / 2;
  20474. n3 += x2, r3 -= x2;
  20475. }
  20476. }
  20477. e4 = this.xAxis.getAngle(t3, p2, t3.locations[p2], "valueX"), i3 = this.xAxis.getAngle(t3, u2, t3.locations[u2], "valueX");
  20478. }
  20479. if (i3 < e4) {
  20480. var _2 = i3;
  20481. i3 = e4, e4 = _2;
  20482. }
  20483. e4 = ut(e4, a2, o3), i3 = ut(i3, a2, o3);
  20484. var P2 = g2.radarColumn;
  20485. P2.startAngle = e4;
  20486. var w2 = i3 - e4;
  20487. w2 > 0 ? (P2.arc = w2, P2.radius = n3, P2.innerRadius = r3, g2.__disabled = false, g2.parent = this.columnsContainer, ti(this.axisRanges.iterator(), function(i4) {
  20488. var a3 = t3.rangesColumns.getKey(i4.uid);
  20489. a3 || (a3 = s2.columns.create(), Ke(s2.columns.template, a3, Ka), Ue(i4.contents, a3, Ka), a3.dataItem && ee(a3.dataItem.sprites, a3), t3.addSprite(a3), a3.paper = s2.paper, s2.setColumnStates(a3), t3.rangesColumns.setKey(i4.uid, a3));
  20490. var o4 = a3.radarColumn;
  20491. o4.startAngle = e4, o4.arc = w2, o4.radius = n3, o4.innerRadius = r3, o4.invalid && (o4.paper = s2.paper, o4.validate()), a3.__disabled = false, a3.parent = i4.contents;
  20492. })) : this.disableUnusedColumns(t3);
  20493. }, e3.prototype.getPoint = function(t3, e4, i3, n3, r3, s2, a2) {
  20494. s2 || (s2 = "valueX"), a2 || (a2 = "valueY");
  20495. var o3 = _t({ x: this.yAxis.getX(t3, i3, r3, a2), y: this.yAxis.getY(t3, i3, r3, a2) });
  20496. o3 == 0 && (o3 = 1e-5);
  20497. var l2 = this.xAxis.getAngle(t3, e4, n3, s2);
  20498. return { x: o3 * ft(l2), y: o3 * dt(l2) };
  20499. }, e3.prototype.getMaskPath = function() {
  20500. var t3 = this.yAxis.renderer;
  20501. return ko(t3.startAngle, t3.endAngle - t3.startAngle, t3.pixelRadius, t3.pixelInnerRadius);
  20502. }, e3.prototype.positionBulletReal = function(t3, e4, i3) {
  20503. var n3 = this.xAxis, r3 = this.yAxis;
  20504. (e4 < n3.start || e4 > n3.end || i3 < r3.start || i3 > r3.end) && (t3.visible = false), t3.moveTo(this.xAxis.renderer.positionToPoint(e4, i3));
  20505. }, e3.prototype.setXAxis = function(e4) {
  20506. t2.prototype.setXAxis.call(this, e4), this.updateRendererRefs();
  20507. }, e3.prototype.setYAxis = function(e4) {
  20508. t2.prototype.setYAxis.call(this, e4), this.updateRendererRefs();
  20509. }, e3.prototype.updateRendererRefs = function() {
  20510. var t3 = this.xAxis.renderer, e4 = this.yAxis.renderer;
  20511. t3.axisRendererY = e4;
  20512. }, e3;
  20513. }(Sp);
  20514. Ii.registeredClasses.RadarColumnSeries = qp, Ii.registeredClasses.RadarColumnSeriesDataItem = Zp;
  20515. var $p = function(t2) {
  20516. function e3() {
  20517. var e4 = t2.call(this) || this;
  20518. return e4.slice = e4.createChild(Za), e4.slice.shouldClone = false, e4.slice.setElement(e4.paper.add("path")), e4.slice.isMeasured = false, e4.orientation = "vertical", e4.bottomWidth = V(100), e4.topWidth = V(100), e4.isMeasured = false, e4.width = 10, e4.height = 10, e4.expandDistance = 0, e4.className = "FunnelSlice", e4.applyTheme(), e4;
  20519. }
  20520. return C(e3, t2), e3.prototype.draw = function() {
  20521. t2.prototype.draw.call(this);
  20522. var e4 = this.pixelPaddingTop, i3 = this.pixelPaddingBottom, n3 = this.pixelPaddingRight, r3 = this.pixelPaddingLeft, s2 = this.pixelWidth - n3 - r3, a2 = this.pixelHeight - e4 - i3, o3 = this.expandDistance, l2 = "";
  20523. if (this.orientation == "vertical") {
  20524. var h2 = { x: (s2 - (m2 = Vn(this.topWidth, s2))) / 2 + r3, y: e4 }, p2 = { x: (s2 + m2) / 2 + r3, y: e4 }, u2 = { x: (s2 + (v2 = Vn(this.bottomWidth, s2))) / 2 + r3, y: e4 + a2 }, d2 = { x: (s2 - v2) / 2 + r3, y: e4 + a2 }, c2 = { x: p2.x + (u2.x - p2.x) / 2 + o3 * a2, y: p2.y + 0.5 * a2 }, f2 = { x: h2.x + (d2.x - h2.x) / 2 - o3 * a2, y: h2.y + 0.5 * a2 }, g2 = Co(u2), y2 = Co(h2);
  20525. o3 != 0 && (g2 = Oo(u2, c2), y2 = Oo(h2, f2)), l2 = wo(h2) + Co(p2) + g2 + Co(d2) + y2, this.tickPoint = { x: p2.x + (u2.x - p2.x) / 2, y: p2.y + (u2.y - p2.y) / 2 };
  20526. } else {
  20527. var m2, v2, b2 = { x: r3, y: (a2 - (m2 = Vn(this.topWidth, a2))) / 2 + e4 }, x2 = { x: r3, y: (a2 + m2) / 2 + e4 }, _2 = { x: r3 + s2, y: (a2 - (v2 = Vn(this.bottomWidth, a2))) / 2 + e4 }, P2 = { x: r3 + s2, y: (a2 + v2) / 2 + e4 };
  20528. c2 = { y: b2.y + (_2.y - b2.y) / 2 - o3 * s2, x: b2.x + 0.5 * s2 }, f2 = { y: x2.y + (P2.y - x2.y) / 2 + o3 * s2, x: x2.x + 0.5 * s2 }, g2 = Co(_2), y2 = Co(x2), o3 != 0 && (g2 = Oo(_2, c2), y2 = Oo(x2, f2)), l2 = wo(x2) + Co(b2) + g2 + Co(P2) + y2, this.tickPoint = { y: x2.y + (P2.y - x2.y) / 2, x: x2.x + (P2.x - x2.x) / 2 };
  20529. }
  20530. this.slice.path = l2, this.invalidateLayout();
  20531. }, e3.prototype.getPoint = function(t3, e4) {
  20532. var i3 = this.pixelPaddingTop, n3 = this.pixelPaddingBottom, r3 = this.pixelPaddingRight, s2 = this.pixelPaddingLeft, a2 = this.pixelWidth - r3 - s2, o3 = this.pixelHeight - i3 - n3;
  20533. if (this.orientation == "vertical") {
  20534. var l2 = { x: (a2 - (d2 = Vn(this.topWidth, a2))) / 2 + s2, y: i3 }, h2 = { x: (a2 + d2) / 2 + s2, y: i3 }, p2 = { x: (a2 + (c2 = Vn(this.bottomWidth, a2))) / 2 + s2, y: i3 + o3 }, u2 = l2.x + ((a2 - c2) / 2 + s2 - l2.x) * e4;
  20535. return { x: u2 + (h2.x + (p2.x - h2.x) * e4 - u2) * t3, y: h2.y + (p2.y - h2.y) * e4 };
  20536. }
  20537. var d2, c2, f2 = s2, g2 = (o3 - (d2 = Vn(this.topWidth, o3))) / 2 + i3, y2 = (o3 + d2) / 2 + i3, m2 = s2 + a2, v2 = g2 + ((o3 - (c2 = Vn(this.bottomWidth, o3))) / 2 + i3 - g2) * t3;
  20538. return { y: v2 + (y2 + ((o3 + c2) / 2 + i3 - y2) * t3 - v2) * e4, x: f2 + (m2 - f2) * t3 };
  20539. }, Object.defineProperty(e3.prototype, "bottomWidth", { get: function() {
  20540. return this.getPropertyValue("bottomWidth");
  20541. }, set: function(t3) {
  20542. this.setPercentProperty("bottomWidth", t3, true, false, 10, false);
  20543. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "topWidth", { get: function() {
  20544. return this.getPropertyValue("topWidth");
  20545. }, set: function(t3) {
  20546. this.setPercentProperty("topWidth", t3, true, false, 10, false);
  20547. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20548. return this.getPropertyValue("orientation");
  20549. }, set: function(t3) {
  20550. this.setPropertyValue("orientation", t3, true);
  20551. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "expandDistance", { get: function() {
  20552. return this.getPropertyValue("expandDistance");
  20553. }, set: function(t3) {
  20554. this.setPropertyValue("expandDistance", t3, true);
  20555. }, enumerable: true, configurable: true }), e3.prototype.copyFrom = function(e4) {
  20556. t2.prototype.copyFrom.call(this, e4), this.slice && this.slice.copyFrom(e4.slice);
  20557. }, e3;
  20558. }($a);
  20559. Ii.registeredClasses.FunnelSlice = $p;
  20560. var Jp = function(t2) {
  20561. function e3() {
  20562. var e4 = t2.call(this) || this;
  20563. return e4._label = new ve(), e4._slice = new ve(), e4.className = "FunnelTick", e4.element = e4.paper.add("path"), e4._disposers.push(e4._label), e4._disposers.push(e4._slice), e4.setPropertyValue("locationX", 0), e4.setPropertyValue("locationY", 0), e4.applyTheme(), e4;
  20564. }
  20565. return C(e3, t2), e3.prototype.draw = function() {
  20566. t2.prototype.draw.call(this);
  20567. var e4 = this.slice, i3 = e4.getPoint(this.locationX, this.locationY);
  20568. if (i3) {
  20569. var n3 = this.label, r3 = e4.dataItem.component, s2 = void 0, a2 = void 0, o3 = void 0;
  20570. if (r3.orientation == "vertical") {
  20571. var l2 = n3.pixelX, h2 = n3.pixelY;
  20572. r3.labelsOpposite || (l2 += n3.maxRight), s2 = dr(i3, e4, this.parent), o3 = dr({ x: l2, y: h2 }, n3.parent, this.parent), a2 = { x: n3.parent.pixelX - this.length, y: o3.y }, r3.labelsOpposite || (a2.x = n3.parent.measuredWidth + this.length);
  20573. } else
  20574. l2 = n3.pixelX, h2 = n3.pixelY, r3.labelsOpposite || (h2 += n3.maxBottom), s2 = dr(i3, e4, this.parent), a2 = { x: (o3 = dr({ x: l2, y: h2 }, n3.parent, this.parent)).x, y: n3.parent.pixelY - this.length }, r3.labelsOpposite || (a2.y = n3.parent.measuredHeight + this.length);
  20575. this.path = wo(s2) + Co(a2) + Co(o3);
  20576. }
  20577. }, Object.defineProperty(e3.prototype, "slice", { get: function() {
  20578. return this._slice.get();
  20579. }, set: function(t3) {
  20580. this._slice.set(t3, new me([t3.events.on("transformed", this.invalidate, this, false), t3.events.on("validated", this.invalidate, this, false)]));
  20581. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "label", { get: function() {
  20582. return this._label.get();
  20583. }, set: function(t3) {
  20584. this._label.set(t3, t3.events.on("transformed", this.invalidate, this, false));
  20585. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationX", { get: function() {
  20586. return this.getPropertyValue("locationX");
  20587. }, set: function(t3) {
  20588. this.setPropertyValue("locationX", t3, false, true);
  20589. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "locationY", { get: function() {
  20590. return this.getPropertyValue("locationY");
  20591. }, set: function(t3) {
  20592. this.setPropertyValue("locationY", t3, false, true);
  20593. }, enumerable: true, configurable: true }), e3;
  20594. }(dh);
  20595. Ii.registeredClasses.FunnelTick = Jp;
  20596. var Qp = function(t2) {
  20597. function e3() {
  20598. var e4 = t2.call(this) || this;
  20599. return e4.className = "FunnelSeriesDataItem", e4.events.on("visibilitychanged", function() {
  20600. e4.component && e4.component.invalidateDataItems();
  20601. }, e4, false), e4.applyTheme(), e4;
  20602. }
  20603. return C(e3, t2), Object.defineProperty(e3.prototype, "sliceLink", { get: function() {
  20604. var t3 = this;
  20605. if (!this._sliceLink) {
  20606. var e4 = this.component.sliceLinks.create();
  20607. this._sliceLink = e4, this._disposers.push(e4), e4.parent = this.component.slicesContainer, this._disposers.push(new ye(function() {
  20608. t3.component && t3.component.sliceLinks.removeValue(e4);
  20609. })), this.addSprite(e4), e4.visible = this.visible;
  20610. }
  20611. return this._sliceLink;
  20612. }, enumerable: true, configurable: true }), e3;
  20613. }(Zh), tu = function(t2) {
  20614. function e3() {
  20615. var e4 = t2.call(this) || this;
  20616. return e4._nextY = 0, e4.className = "FunnelSeries", e4.orientation = "vertical", e4.width = V(100), e4.height = V(100), e4.slicesContainer.width = V(100), e4.slicesContainer.height = V(100), e4._disposers.push(e4.slicesContainer.events.on("maxsizechanged", e4.invalidateDataItems, e4, false)), e4.labelsOpposite = true, e4.labelsContainer.layout = "absolute", e4.bottomRatio = 0, e4.applyTheme(), e4;
  20617. }
  20618. return C(e3, t2), e3.prototype.createSlice = function() {
  20619. return new $p();
  20620. }, e3.prototype.createTick = function() {
  20621. return new Jp();
  20622. }, e3.prototype.applyInternalDefaults = function() {
  20623. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Funnel Series"));
  20624. }, e3.prototype.createDataItem = function() {
  20625. return new Qp();
  20626. }, e3.prototype.initSlice = function(t3) {
  20627. t3.isMeasured = false, t3.defaultState.properties.scale = 1, t3.observe("scale", this.handleSliceScale, this), t3.observe(["dx", "dy", "x", "y"], this.handleSliceMove, this), t3.tooltipText = "{category}: {value.percent.formatNumber('#.#')}% ({value.value})", t3.states.create("hover").properties.expandDistance = 0.2;
  20628. }, e3.prototype.initLabel = function(e4) {
  20629. t2.prototype.initLabel.call(this, e4), e4.verticalCenter = "middle", e4.horizontalCenter = "middle", e4.isMeasured = true, e4.padding(5, 5, 5, 5);
  20630. }, e3.prototype.validate = function() {
  20631. t2.prototype.validate.call(this), this._nextY = 0;
  20632. }, e3.prototype.validateDataElements = function() {
  20633. var e4 = this, i3 = this.slicesContainer, n3 = this.labelsContainer, r3 = this.labels.template;
  20634. this.alignLabels ? (r3.interactionsEnabled = true, i3.isMeasured = true, n3.isMeasured = true) : (r3.interactionsEnabled = false, i3.isMeasured = false, n3.isMeasured = false);
  20635. var s2 = 0, a2 = 0;
  20636. this.dataItems.each(function(t3) {
  20637. Z(t3.value) && (a2++, t3.value > 0 ? s2 += Math.abs(t3.getWorkingValue("value") / t3.value) : e4.ignoreZeroValues || !t3.visible || t3.__disabled || t3.isHiding ? a2-- : s2 += 1);
  20638. }), this._total = 1 / a2 * s2, this._count = a2, t2.prototype.validateDataElements.call(this), this.arrangeLabels();
  20639. }, e3.prototype.getNextValue = function(t3) {
  20640. var e4 = t3.index, i3 = t3.getWorkingValue("value");
  20641. if (e4 < this.dataItems.length - 1) {
  20642. var n3 = this.dataItems.getIndex(e4 + 1);
  20643. if (i3 = n3.getWorkingValue("value"), !n3.visible || n3.isHiding || n3.__disabled || n3.value == 0 && this.ignoreZeroValues)
  20644. return this.getNextValue(n3);
  20645. }
  20646. return i3;
  20647. }, e3.prototype.formDataElement = function() {
  20648. }, e3.prototype.validateDataElement = function(e4) {
  20649. var i3 = this, n3 = e4.slice;
  20650. n3.orientation = this.orientation;
  20651. var r3 = e4.sliceLink;
  20652. r3.orientation = this.orientation;
  20653. var s2 = e4.tick, a2 = e4.label;
  20654. s2.slice = n3, s2.label = a2, Z(e4.value) ? (this.decorateSlice(e4), Ut(e4.sprites, function(t3) {
  20655. e4.value == 0 && i3.ignoreZeroValues ? t3.__disabled = true : t3.__disabled = false;
  20656. })) : Ut(e4.sprites, function(t3) {
  20657. t3.__disabled = true;
  20658. }), e4.index == this.dataItems.length - 1 && (r3.disabled = true), t2.prototype.validateDataElement.call(this, e4), r3.fill = n3.fill;
  20659. }, e3.prototype.decorateSlice = function(t3) {
  20660. var e4 = t3.slice, i3 = t3.sliceLink, n3 = t3.label, r3 = t3.tick, s2 = this.slicesContainer.innerWidth, a2 = this.slicesContainer.innerHeight, o3 = this.getNextValue(t3), l2 = Math.abs(t3.getWorkingValue("value")), h2 = this.bottomRatio, p2 = 1;
  20661. if (t3.value != 0 ? p2 = l2 / Math.abs(t3.value) : (t3.__disabled || t3.isHiding || !t3.visible) && (p2 = 1e-6), this.ignoreZeroValues && t3.value == 0)
  20662. t3.__disabled = true;
  20663. else if (t3.__disabled = false, this._nextY == 1 / 0 && (this._nextY = 0), this.orientation == "vertical") {
  20664. var u2 = i3.pixelHeight * p2;
  20665. a2 += u2, e4.topWidth = l2 / this.dataItem.values.value.high * s2, e4.bottomWidth = (l2 - (l2 - o3) * h2) / this.dataItem.values.value.high * s2, i3.topWidth = e4.bottomWidth, i3.bottomWidth = (l2 - (l2 - o3)) / this.dataItem.values.value.high * s2, e4.y = this._nextY, e4.height = Math.min(1e5, gt(0, a2 / this._count * p2 / this._total - u2)), e4.x = s2 / 2, this.alignLabels ? n3.x = void 0 : n3.x = e4.x, n3.y = e4.pixelY + e4.pixelHeight * r3.locationY, this._nextY += e4.pixelHeight + u2, i3.y = this._nextY - u2, i3.x = e4.x;
  20666. } else {
  20667. var d2 = i3.pixelWidth * p2;
  20668. s2 += d2, e4.topWidth = l2 / this.dataItem.values.value.high * a2, e4.bottomWidth = (l2 - (l2 - o3) * h2) / this.dataItem.values.value.high * a2, i3.topWidth = e4.bottomWidth, i3.bottomWidth = (l2 - (l2 - o3)) / this.dataItem.values.value.high * a2, e4.x = this._nextY, e4.width = Math.min(1e5, s2 / this._count * p2 * 1 / this._total - d2), e4.y = a2 / 2, this.alignLabels ? n3.y = this.labelsContainer.measuredHeight : n3.y = e4.y, n3.x = e4.pixelX + e4.pixelWidth * r3.locationX, this._nextY += e4.pixelWidth + d2, i3.x = this._nextY - d2, i3.y = e4.y;
  20669. }
  20670. }, e3.prototype.getLastLabel = function(t3) {
  20671. if (t3 > 0) {
  20672. var e4 = this.labels.getIndex(t3);
  20673. return e4.__disabled || !e4.visible ? this.getLastLabel(t3 - 1) : e4;
  20674. }
  20675. }, e3.prototype.arrangeLabels = function() {
  20676. if (this.alignLabels) {
  20677. var t3 = this.labels.length;
  20678. if (t3 > 1) {
  20679. var e4 = this.getLastLabel(t3 - 1);
  20680. if (e4) {
  20681. var i3 = e4.pixelY, n3 = e4.pixelX;
  20682. if (t3 > 1) {
  20683. for (var r3 = t3 - 2; r3 >= 0; r3--)
  20684. (s2 = this.labels.getIndex(r3)).visible && !s2.__disabled && (s2.invalid && s2.validate(), this.orientation == "vertical" ? s2.pixelY + s2.measuredHeight > i3 && (s2.y = Math.min(1e6, i3 - s2.measuredHeight)) : s2.pixelX + s2.measuredWidth > n3 && (s2.x = Math.min(1e6, n3 - s2.measuredWidth)), i3 = s2.pixelY, n3 = s2.pixelX);
  20685. for (i3 = 0, n3 = 0, r3 = 0; r3 < t3; r3++) {
  20686. var s2;
  20687. (s2 = this.labels.getIndex(r3)).visible && !s2.__disabled && (s2.invalid && s2.validate(), this.orientation == "vertical" ? s2.pixelY < i3 && (s2.y = Math.min(1e6, i3)) : s2.pixelX < n3 && (s2.x = Math.min(1e6, n3)), i3 += s2.measuredHeight, n3 += s2.measuredWidth);
  20688. }
  20689. }
  20690. }
  20691. }
  20692. }
  20693. }, e3.prototype.positionBullet = function(e4) {
  20694. t2.prototype.positionBullet.call(this, e4);
  20695. var i3 = e4.dataItem.slice, n3 = e4.locationX;
  20696. tt(n3) || (n3 = 0.5);
  20697. var r3 = e4.locationY;
  20698. tt(r3) || (r3 = 1), e4.x = i3.pixelX + i3.measuredWidth * n3, e4.y = i3.pixelY + i3.measuredHeight * r3;
  20699. }, Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20700. return this.getPropertyValue("orientation");
  20701. }, set: function(t3) {
  20702. this.setPropertyValue("orientation", t3) && (this.labelsOpposite = this.labelsOpposite, this.invalidate(), t3 == "vertical" ? (this.ticks.template.locationX = 1, this.ticks.template.locationY = 0.5, this.labels.template.rotation = 0, this.layout = "horizontal") : (this.ticks.template.locationX = 0.5, this.ticks.template.locationY = 1, this.labels.template.rotation = -90, this.layout = "vertical"));
  20703. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottomRatio", { get: function() {
  20704. return this.getPropertyValue("bottomRatio");
  20705. }, set: function(t3) {
  20706. this.setPropertyValue("bottomRatio", t3) && this.invalidate();
  20707. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "sliceLinks", { get: function() {
  20708. if (!this._sliceLinks) {
  20709. var t3 = new $p();
  20710. t3.applyOnClones = true, t3.fillOpacity = 0.5, t3.expandDistance = -0.3, t3.hiddenState.properties.opacity = 0, this._disposers.push(t3), this._sliceLinks = new Mi(t3), this._disposers.push(new Ai(this._sliceLinks));
  20711. }
  20712. return this._sliceLinks;
  20713. }, enumerable: true, configurable: true }), e3.prototype.show = function(e4) {
  20714. var i3 = this, n3 = this.startIndex, r3 = this.endIndex, s2 = this.defaultState.transitionDuration;
  20715. tt(e4) && (s2 = e4), ls.animationsEnabled || (s2 = 0);
  20716. var a2 = 0;
  20717. return ti(ai(this.dataItems.iterator()), function(t3) {
  20718. var e5 = t3[0], o3 = t3[1];
  20719. i3.sequencedInterpolation && (a2 = i3.sequencedInterpolationDelay * e5 + s2 * (e5 - n3) / (r3 - n3)), o3.show(s2, a2, ["value"]);
  20720. }), t2.prototype.show.call(this, e4);
  20721. }, e3.prototype.hide = function(e4) {
  20722. var i3 = this, n3 = ["value"], r3 = this.startIndex, s2 = this.endIndex, a2 = 0, o3 = this.hiddenState.transitionDuration;
  20723. tt(e4) && (o3 = e4), ls.animationsEnabled || (o3 = 0), ti(ai(this.dataItems.iterator()), function(t3) {
  20724. var e5 = t3[0], l3 = t3[1];
  20725. i3.sequencedInterpolation && (a2 = i3.sequencedInterpolationDelay * e5 + o3 * (e5 - r3) / (s2 - r3)), l3.hide(o3, a2, 0, n3);
  20726. });
  20727. var l2 = t2.prototype.hide.call(this, e4);
  20728. return l2 && !l2.isFinished() && l2.delay(a2), l2;
  20729. }, e3.prototype.setAlignLabels = function(e4) {
  20730. t2.prototype.setAlignLabels.call(this, e4), this.ticks.template.disabled = !e4;
  20731. var i3 = this.labelsContainer;
  20732. i3 && (e4 ? (i3.height = void 0, i3.width = void 0, i3.margin(10, 10, 10, 10)) : (i3.width = V(100), i3.height = V(100))), this.labelsOpposite = this.labelsOpposite;
  20733. }, Object.defineProperty(e3.prototype, "labelsOpposite", { get: function() {
  20734. return this.getPropertyValue("labelsOpposite");
  20735. }, set: function(t3) {
  20736. this.setPropertyValue("labelsOpposite", t3);
  20737. var e4 = this.labels.template, i3 = "none", n3 = "none";
  20738. this.alignLabels ? t3 ? (this.labelsContainer.toFront(), this.orientation == "vertical" ? (this.ticks.template.locationX = 1, e4.horizontalCenter = "left", i3 = "right") : (this.ticks.template.locationY = 1, e4.horizontalCenter = "right", n3 = "bottom")) : (this.labelsContainer.toBack(), this.orientation == "vertical" ? (this.ticks.template.locationX = 0, i3 = "left") : (n3 = "top", this.ticks.template.locationY = 0)) : this.orientation == "vertical" ? i3 = "center" : n3 = "middle", e4.align = i3, e4.valign = n3, this.validateLayout(), this.ticks.each(function(t4) {
  20739. t4.invalidate();
  20740. }), this.invalidateDataItems();
  20741. }, enumerable: true, configurable: true }), e3;
  20742. }(qh);
  20743. Ii.registeredClasses.FunnelSeries = tu, Ii.registeredClasses.FunnelSeriesDataItem = Qp;
  20744. var eu = function(t2) {
  20745. function e3() {
  20746. var e4 = t2.call(this) || this;
  20747. return e4.className = "PyramidSeriesDataItem", e4.applyTheme(), e4;
  20748. }
  20749. return C(e3, t2), e3;
  20750. }(Qp), iu = function(t2) {
  20751. function e3() {
  20752. var e4 = t2.call(this) || this;
  20753. return e4.className = "PyramidSeries", e4.topWidth = V(0), e4.bottomWidth = V(100), e4.pyramidHeight = V(100), e4.valueIs = "area", e4.sliceLinks.template.width = 0, e4.sliceLinks.template.height = 0, e4.applyTheme(), e4;
  20754. }
  20755. return C(e3, t2), e3.prototype.applyInternalDefaults = function() {
  20756. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pyramid Series"));
  20757. }, e3.prototype.createDataItem = function() {
  20758. return new eu();
  20759. }, e3.prototype.validate = function() {
  20760. t2.prototype.validate.call(this), this._nextWidth = void 0;
  20761. }, e3.prototype.getNextValue = function(t3) {
  20762. var e4 = t3.index, i3 = t3.getWorkingValue("value");
  20763. return e4 < this.dataItems.length - 1 && (i3 = this.dataItems.getIndex(e4 + 1).getWorkingValue("value")), i3 == 0 && (i3 = 1e-6), i3;
  20764. }, e3.prototype.validateDataElements = function() {
  20765. var e4 = this, i3 = this.slicesContainer.innerWidth, n3 = this.slicesContainer.innerHeight;
  20766. if (this.dataItems.each(function(t3) {
  20767. if (t3.value > 0) {
  20768. var r4 = t3.getWorkingValue("value") / t3.value, s3 = t3.sliceLink;
  20769. e4.orientation == "vertical" ? n3 -= s3.pixelHeight * r4 : i3 -= s3.pixelWidth * r4;
  20770. }
  20771. }), this._pyramidHeight = Vn(this.pyramidHeight, n3), this._pyramidWidth = Vn(this.pyramidHeight, i3), this.orientation == "vertical") {
  20772. var r3 = (n3 - this._pyramidHeight) / 2;
  20773. this.slicesContainer.y = r3, this.labelsContainer.y = r3, this.ticksContainer.y = r3;
  20774. } else {
  20775. var s2 = (i3 - this._pyramidWidth) / 2;
  20776. this.slicesContainer.x = s2, this.labelsContainer.x = s2, this.ticksContainer.x = s2;
  20777. }
  20778. t2.prototype.validateDataElements.call(this);
  20779. }, e3.prototype.decorateSlice = function(t3) {
  20780. var e4 = this.dataItem.values.value.absoluteSum;
  20781. if (e4 != 0) {
  20782. var i3 = t3.slice, n3 = t3.sliceLink, r3 = t3.label, s2 = t3.tick;
  20783. this.getNextValue(t3);
  20784. var a2 = Math.abs(t3.getWorkingValue("value")), o3 = this._pyramidWidth, l2 = this._pyramidHeight, h2 = this.slicesContainer.innerWidth, p2 = this.slicesContainer.innerHeight, u2 = n3.pixelWidth, d2 = n3.pixelHeight;
  20785. if (t3.value != 0 && t3.value != null || !this.ignoreZeroValues ? t3.__disabled = false : t3.__disabled = true, this.orientation == "vertical") {
  20786. var c2 = Vn(this.topWidth, h2);
  20787. tt(this._nextWidth) || (this._nextWidth = c2);
  20788. var f2 = Vn(this.bottomWidth, h2), g2 = this._nextWidth, y2 = Math.atan2(l2, c2 - f2);
  20789. (_2 = Math.tan(Math.PI / 2 - y2)) == 0 && (_2 = 1e-8);
  20790. var m2 = void 0, v2 = void 0;
  20791. if (this.valueIs == "area") {
  20792. var b2 = (c2 + f2) / 2 * l2 * a2 / e4, x2 = Math.abs(g2 * g2 - 2 * b2 * _2);
  20793. v2 = (m2 = (g2 - Math.sqrt(x2)) / _2) > 0 ? (2 * b2 - m2 * g2) / m2 : g2;
  20794. } else
  20795. v2 = g2 - (m2 = l2 * a2 / e4) * _2;
  20796. i3.height = m2, i3.width = h2, i3.bottomWidth = v2, i3.topWidth = g2, n3.topWidth = i3.bottomWidth, n3.bottomWidth = i3.bottomWidth, i3.y = this._nextY, this.alignLabels ? r3.x = 0 : r3.x = h2 / 2, r3.y = i3.pixelY + i3.pixelHeight * s2.locationY + i3.dy, this._nextY += i3.pixelHeight + d2 * a2 / Math.max(Math.abs(t3.value), 1e-8), n3.y = this._nextY - d2, n3.x = h2 / 2;
  20797. } else {
  20798. var _2;
  20799. c2 = Vn(this.topWidth, p2), tt(this._nextWidth) || (this._nextWidth = c2), f2 = Vn(this.bottomWidth, p2), g2 = this._nextWidth, y2 = Math.atan2(o3, c2 - f2), (_2 = Math.tan(Math.PI / 2 - y2)) == 0 && (_2 = 1e-8);
  20800. var P2 = void 0;
  20801. v2 = void 0, v2 = this.valueIs == "area" ? (2 * (b2 = (c2 + f2) / 2 * o3 * a2 / e4) - (P2 = (g2 - Math.sqrt(g2 * g2 - 2 * b2 * _2)) / _2) * g2) / P2 : g2 - (P2 = o3 * a2 / e4) * _2, i3.width = P2, i3.height = p2, i3.bottomWidth = v2, i3.topWidth = g2, n3.topWidth = i3.bottomWidth, n3.bottomWidth = i3.bottomWidth, i3.x = this._nextY, this.alignLabels ? r3.y = this.labelsContainer.measuredHeight : r3.y = p2 / 2, r3.x = i3.pixelX + i3.pixelWidth * s2.locationX + i3.dx, this._nextY += i3.pixelWidth + u2 * a2 / Math.max(Math.abs(t3.value), 1e-8), n3.x = this._nextY - u2, n3.y = p2 / 2;
  20802. }
  20803. this._nextWidth = i3.bottomWidth;
  20804. }
  20805. }, Object.defineProperty(e3.prototype, "topWidth", { get: function() {
  20806. return this.getPropertyValue("topWidth");
  20807. }, set: function(t3) {
  20808. this.setPercentProperty("topWidth", t3, false, false, 10, false) && this.invalidate();
  20809. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pyramidHeight", { get: function() {
  20810. return this.getPropertyValue("pyramidHeight");
  20811. }, set: function(t3) {
  20812. this.setPercentProperty("pyramidHeight", t3, false, false, 10, false) && this.invalidate();
  20813. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "bottomWidth", { get: function() {
  20814. return this.getPropertyValue("bottomWidth");
  20815. }, set: function(t3) {
  20816. this.setPercentProperty("bottomWidth", t3, false, false, 10, false) && this.invalidate();
  20817. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "valueIs", { get: function() {
  20818. return this.getPropertyValue("valueIs");
  20819. }, set: function(t3) {
  20820. this.setPropertyValue("valueIs", t3) && this.invalidate();
  20821. }, enumerable: true, configurable: true }), e3;
  20822. }(tu);
  20823. Ii.registeredClasses.PyramidSeries = iu, Ii.registeredClasses.PyramidSeriesDataItem = eu;
  20824. var nu = function(t2) {
  20825. function e3() {
  20826. var e4 = t2.call(this) || this;
  20827. return e4.className = "PictorialStackedSeriesDataItem", e4.applyTheme(), e4;
  20828. }
  20829. return C(e3, t2), e3;
  20830. }(eu), ru = function(t2) {
  20831. function e3() {
  20832. var e4 = t2.call(this) || this;
  20833. return e4.className = "PictorialStackedSeries", e4.topWidth = V(100), e4.bottomWidth = V(100), e4.valueIs = "height", e4.applyTheme(), e4.startLocation = 0, e4.endLocation = 1, e4.align = "center", e4.valign = "middle", e4._maskSprite = e4.slicesContainer.createChild(Za), e4._maskSprite.visible = false, e4._maskSprite.zIndex = 100, e4._maskSprite.shouldClone = false, e4;
  20834. }
  20835. return C(e3, t2), e3.prototype.validateDataElements = function() {
  20836. var e4 = this.slicesContainer.maxWidth, i3 = this.slicesContainer.maxHeight, n3 = this._maskSprite, r3 = n3.measuredWidth / n3.scale, s2 = n3.measuredHeight / n3.scale, a2 = yt(i3 / s2, e4 / r3);
  20837. a2 == 1 / 0 && (a2 = 1), a2 = gt(1e-3, a2);
  20838. var o3, l2, h2 = this.startLocation, p2 = this.endLocation, u2 = yt(e4, r3 * a2), d2 = yt(i3, s2 * a2);
  20839. n3.scale = a2, this.orientation == "vertical" ? (this.topWidth = u2 + 4, this.bottomWidth = u2 + 4, this.pyramidHeight = d2 * (p2 - h2), n3.x = e4 / 2, n3.y = d2 / 2) : (this.topWidth = d2 + 4, this.bottomWidth = d2 + 4, this.pyramidHeight = u2 * (p2 - h2), n3.valign = "middle", n3.x = u2 / 2, n3.y = i3 / 2), n3.verticalCenter = "middle", n3.horizontalCenter = "middle", t2.prototype.validateDataElements.call(this), this.orientation == "vertical" ? (this.valign == "bottom" && (o3 = i3 - d2), this.valign == "middle" && (o3 = (i3 - d2) / 2), this.valign == "top" && (o3 = 0), this.align == "left" && (l2 = -(e4 - u2) / 2), this.align == "center" && (l2 = 0), this.align == "right" && (l2 = (e4 - u2) / 2), this.slices.template.dy = h2 * d2, this.alignLabels && (this.slicesContainer.dx = l2)) : (this.valign == "bottom" && (o3 = (i3 - d2) / 2), this.valign == "middle" && (o3 = 0), this.valign == "top" && (o3 = -(i3 - d2) / 2), this.align == "left" && (l2 = 0), this.align == "center" && (l2 = (e4 - u2) / 2), this.align == "right" && (l2 = e4 - u2), this.slices.template.dx = h2 * u2, this.alignLabels && (this.slicesContainer.dy = o3)), this.slicesContainer.x = l2, this.labelsContainer.x = l2, this.ticksContainer.x = l2, this.slicesContainer.y = o3, this.labelsContainer.y = o3, this.ticksContainer.y = o3, u2 > 0 && d2 > 0 && (this.slicesContainer.mask = n3);
  20840. }, e3.prototype.applyInternalDefaults = function() {
  20841. t2.prototype.applyInternalDefaults.call(this), Z(this.readerTitle) || (this.readerTitle = this.language.translate("Pyramid Series"));
  20842. }, e3.prototype.createDataItem = function() {
  20843. return new nu();
  20844. }, Object.defineProperty(e3.prototype, "maskSprite", { get: function() {
  20845. return this._maskSprite;
  20846. }, enumerable: true, configurable: true }), e3.prototype.initSlice = function(e4) {
  20847. t2.prototype.initSlice.call(this, e4);
  20848. var i3 = e4.states.getKey("hover");
  20849. i3 && (i3.properties.expandDistance = 0);
  20850. }, Object.defineProperty(e3.prototype, "startLocation", { get: function() {
  20851. return this.getPropertyValue("startLocation");
  20852. }, set: function(t3) {
  20853. this.setPropertyValue("startLocation", t3) && this.invalidateDataItems();
  20854. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endLocation", { get: function() {
  20855. return this.getPropertyValue("endLocation");
  20856. }, set: function(t3) {
  20857. this.setPropertyValue("endLocation", t3) && this.invalidateDataItems();
  20858. }, enumerable: true, configurable: true }), e3;
  20859. }(iu);
  20860. Ii.registeredClasses.PictorialStackedSeries = ru, Ii.registeredClasses.PictorialStackedSeriesDataItem = nu;
  20861. var su = function(t2) {
  20862. function e3() {
  20863. var e4 = t2.call(this) || this;
  20864. return e4.className = "ConeColumn", e4;
  20865. }
  20866. return C(e3, t2), e3.prototype.createAssets = function() {
  20867. this.coneColumn = this.createChild(ml), this.coneColumn.shouldClone = false, this.column = this.coneColumn;
  20868. }, e3.prototype.copyFrom = function(e4) {
  20869. t2.prototype.copyFrom.call(this, e4), this.coneColumn && this.coneColumn.copyFrom(e4.coneColumn);
  20870. }, e3;
  20871. }(Cp);
  20872. Ii.registeredClasses.ConeColumn = su;
  20873. var au = function(t2) {
  20874. function e3() {
  20875. var e4 = t2.call(this) || this;
  20876. return e4.className = "ConeSeriesDataItem", e4.applyTheme(), e4;
  20877. }
  20878. return C(e3, t2), e3;
  20879. }(Op), ou = function(t2) {
  20880. function e3() {
  20881. var e4 = t2.call(this) || this;
  20882. return e4.className = "ConeSeries", e4.applyTheme(), e4;
  20883. }
  20884. return C(e3, t2), e3.prototype.createColumnTemplate = function() {
  20885. return new su();
  20886. }, e3.prototype.getMaskPath = function() {
  20887. var t3 = 0, e4 = 0, i3 = this.columns.getIndex(0);
  20888. if (i3)
  20889. return this.baseAxis == this.xAxis ? e4 = i3.coneColumn.innerWidth / 2 + 1 : t3 = i3.coneColumn.innerHeight / 2 + 1, Vo({ x: -t3, y: 0, width: this.xAxis.axisLength + t3, height: this.yAxis.axisLength + e4 });
  20890. }, e3.prototype.validateDataElementReal = function(e4) {
  20891. if (t2.prototype.validateDataElementReal.call(this, e4), e4.column) {
  20892. var i3 = e4.column.coneColumn;
  20893. i3.fill = e4.column.fill, this.baseAxis == this.yAxis ? i3.orientation = "horizontal" : i3.orientation = "vertical";
  20894. }
  20895. }, e3;
  20896. }(Sp);
  20897. Ii.registeredClasses.ConeSeries = ou, Ii.registeredClasses.ConeSeriesDataItem = au;
  20898. var lu = function(t2) {
  20899. function e3() {
  20900. var e4 = t2.call(this) || this;
  20901. return e4.className = "CurvedColumn", e4;
  20902. }
  20903. return C(e3, t2), e3.prototype.createAssets = function() {
  20904. this.curvedColumn = this.createChild(Za), this.curvedColumn.shouldClone = false, this.setPropertyValue("tension", 0.7), this.width = V(120), this.height = V(120), this.column = this.curvedColumn;
  20905. }, e3.prototype.draw = function() {
  20906. t2.prototype.draw.call(this);
  20907. var e4, i3 = this.realWidth, n3 = this.realHeight, r3 = this.realX - this.pixelX, s2 = this.realY - this.pixelY;
  20908. this.width;
  20909. var a2 = 1, o3 = 1;
  20910. this.orientation == "vertical" ? (a2 = this.tension, e4 = [{ x: 0, y: n3 + s2 }, { x: i3 / 2, y: s2 }, { x: i3, y: n3 + s2 }]) : (o3 = this.tension, e4 = [{ x: r3, y: n3 = Math.abs(n3) }, { x: r3 + i3, y: n3 / 2 }, { x: r3, y: 0 }]);
  20911. var l2 = wo(e4[0]) + new tl(a2, o3).smooth(e4);
  20912. this.column.path = l2;
  20913. }, e3.prototype.copyFrom = function(e4) {
  20914. t2.prototype.copyFrom.call(this, e4), this.curvedColumn && this.curvedColumn.copyFrom(e4.curvedColumn);
  20915. }, Object.defineProperty(e3.prototype, "tension", { get: function() {
  20916. return this.getPropertyValue("tension");
  20917. }, set: function(t3) {
  20918. this.setPropertyValue("tension", t3, true);
  20919. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "orientation", { get: function() {
  20920. return this.getPropertyValue("orientation");
  20921. }, set: function(t3) {
  20922. this.setPropertyValue("orientation", t3, true);
  20923. }, enumerable: true, configurable: true }), e3;
  20924. }(Cp);
  20925. Ii.registeredClasses.CurvedColumn = lu;
  20926. var hu = function(t2) {
  20927. function e3() {
  20928. var e4 = t2.call(this) || this;
  20929. return e4.className = "CurvedColumnSeriesDataItem", e4.applyTheme(), e4;
  20930. }
  20931. return C(e3, t2), e3;
  20932. }(Op), pu = function(t2) {
  20933. function e3() {
  20934. var e4 = t2.call(this) || this;
  20935. return e4.className = "CurvedColumnSeries", e4.applyTheme(), e4;
  20936. }
  20937. return C(e3, t2), e3.prototype.createColumnTemplate = function() {
  20938. return new lu();
  20939. }, e3.prototype.validateDataElementReal = function(e4) {
  20940. t2.prototype.validateDataElementReal.call(this, e4);
  20941. var i3 = e4.column;
  20942. (i3 = e4.column) && (e4.column.curvedColumn.fill = e4.column.fill, this.baseAxis == this.yAxis ? i3.orientation = "horizontal" : i3.orientation = "vertical");
  20943. }, e3;
  20944. }(Sp);
  20945. Ii.registeredClasses.CurvedColumnSeries = pu, Ii.registeredClasses.CurvedColumnSeriesDataItem = hu;
  20946. var uu = function(t2) {
  20947. function e3() {
  20948. var e4 = t2.call(this) || this;
  20949. e4.className = "CircleBullet";
  20950. var i3 = e4.createChild(yo);
  20951. return i3.shouldClone = false, i3.radius = 5, i3.isMeasured = false, e4.circle = i3, e4.applyTheme(), e4;
  20952. }
  20953. return C(e3, t2), e3.prototype.copyFrom = function(e4) {
  20954. t2.prototype.copyFrom.call(this, e4), this.circle.copyFrom(e4.circle);
  20955. }, e3;
  20956. }(ql);
  20957. Ii.registeredClasses.CircleBullet = uu;
  20958. var du = function(t2) {
  20959. function e3() {
  20960. var e4 = t2.call(this) || this;
  20961. return e4.className = "ErrorBullet", e4.errorLine = e4.createChild(Za), e4.errorLine.shouldClone = false, e4.width = 20, e4.height = 20, e4.strokeOpacity = 1, e4.isDynamic = true, e4;
  20962. }
  20963. return C(e3, t2), e3.prototype.validatePosition = function() {
  20964. t2.prototype.validatePosition.call(this);
  20965. var e4 = this.pixelWidth / 2, i3 = this.pixelHeight / 2;
  20966. this.errorLine.path = wo({ x: -e4, y: -i3 }) + Co({ x: e4, y: -i3 }) + wo({ x: 0, y: -i3 }) + Co({ x: 0, y: i3 }) + wo({ x: -e4, y: i3 }) + Co({ x: e4, y: i3 });
  20967. }, e3.prototype.copyFrom = function(e4) {
  20968. t2.prototype.copyFrom.call(this, e4), this.errorLine.copyFrom(e4.errorLine);
  20969. }, e3;
  20970. }(ql);
  20971. Ii.registeredClasses.ErrorBullet = du;
  20972. var cu = function(t2) {
  20973. function e3() {
  20974. var e4 = t2.call(this) || this;
  20975. return e4.className = "NavigationBarDataItem", e4.applyTheme(), e4;
  20976. }
  20977. return C(e3, t2), Object.defineProperty(e3.prototype, "name", { get: function() {
  20978. return this.properties.name;
  20979. }, set: function(t3) {
  20980. this.setProperty("name", t3);
  20981. }, enumerable: true, configurable: true }), e3;
  20982. }(po), fu = function(t2) {
  20983. function e3() {
  20984. var e4 = t2.call(this) || this;
  20985. e4.className = "NavigationBar";
  20986. var i3 = new Ys(), n3 = new Ko();
  20987. n3.valign = "middle", n3.paddingTop = 8, n3.paddingBottom = 8, e4.paddingBottom = 2, e4.links = new Mi(n3), e4._disposers.push(new Ai(e4.links)), e4._disposers.push(n3), e4._linksIterator = new mi(e4.links, function() {
  20988. return e4.links.create();
  20989. }), e4._linksIterator.createNewItems = true;
  20990. var r3 = new Qo();
  20991. r3.direction = "right", r3.width = 8, r3.height = 12, r3.fill = i3.getFor("alternativeBackground"), r3.fillOpacity = 0.5, r3.valign = "middle", r3.marginLeft = 10, r3.marginRight = 10, e4.separators = new Mi(r3), e4._disposers.push(new Ai(e4.separators)), e4._disposers.push(r3);
  20992. var s2 = new Ko();
  20993. return e4.activeLink = s2, s2.copyFrom(n3), s2.valign = "middle", s2.fontWeight = "bold", e4.width = V(100), e4.layout = "grid", e4.dataFields.name = "name", e4.applyTheme(), e4;
  20994. }
  20995. return C(e3, t2), e3.prototype.validateDataElements = function() {
  20996. this.removeChildren(), this._linksIterator.reset(), t2.prototype.validateDataElements.call(this);
  20997. }, e3.prototype.validateDataElement = function(e4) {
  20998. var i3;
  20999. if (t2.prototype.validateDataElement.call(this, e4), e4.index < this.dataItems.length - 1) {
  21000. (i3 = this._linksIterator.getLast()).parent = this;
  21001. var n3 = this.separators.create();
  21002. n3.parent = this, n3.valign = "middle";
  21003. } else
  21004. (i3 = this.activeLink).events.copyFrom(this.links.template.events), i3.hide(0), i3.show(), i3.parent = this;
  21005. i3.dataItem = e4, i3.text = e4.name, i3.validate();
  21006. }, e3;
  21007. }(uo);
  21008. Ii.registeredClasses.NavigationBar = fu, Ii.registeredClasses.NavigationBarDataItem = cu;
  21009. var gu = function(t2) {
  21010. function e3() {
  21011. var e4 = t2.call(this) || this;
  21012. e4.point = { x: 0, y: 0 }, e4._stick = "none", e4.className = "Cursor", e4.width = V(100), e4.height = V(100), e4.shouldClone = false, e4.hide(0), e4.trackable = true, e4.clickable = true, e4.isMeasured = false;
  21013. var i3 = ua();
  21014. return e4._disposers.push(i3.body.events.on("down", e4.handleCursorDown, e4)), e4._disposers.push(i3.body.events.on("up", e4.handleCursorUp, e4)), e4._disposers.push(i3.body.events.on("track", e4.handleCursorMove, e4)), e4.applyTheme(), e4;
  21015. }
  21016. return C(e3, t2), e3.prototype.handleCursorMove = function(t3) {
  21017. if (!(!this.interactionsEnabled || this.interactions.isTouchProtected && t3.touch)) {
  21018. if ((this._generalBehavior == "zoom" || this._generalBehavior == "pan") && this.downPoint || ua().isLocalElement(t3.pointer, this.paper.svg, this.uid)) {
  21019. var e4 = mr(t3.pointer.point, this);
  21020. return this._stick == "hard" && this._stickPoint && (e4 = this._stickPoint), this._stick == "soft" && this._stickPoint && (this.fitsToBounds(e4) || (e4 = this._stickPoint)), this._adapterO && this._adapterO.apply("cursorPoint", e4), this.triggerMove(e4), e4;
  21021. }
  21022. this.isHidden && this.isHiding || this.hide();
  21023. }
  21024. }, e3.prototype.hideReal = function(e4) {
  21025. if (this._stick != "hard" && this._stick != "soft" || !this._stickPoint)
  21026. return t2.prototype.hideReal.call(this, e4);
  21027. }, e3.prototype.triggerMove = function(t3, e4, i3) {
  21028. t3.x = lt(t3.x, 1), t3.y = lt(t3.y, 1), e4 && (this._stick = e4), e4 != "hard" && e4 != "soft" || (this._stickPoint = t3), this.triggerMoveReal(t3, i3);
  21029. }, e3.prototype.triggerMoveReal = function(t3, e4) {
  21030. (this.point.x != t3.x || this.point.y != t3.y || e4) && (this.point = t3, this.invalidatePosition(), this.fitsToBounds(t3) ? this.show(0) : this.downPoint || this.hide(0), this.visible && (this.getPositions(), this.dispatch("cursorpositionchanged")));
  21031. }, e3.prototype.triggerDown = function(t3) {
  21032. this.triggerDownReal(t3);
  21033. }, e3.prototype.triggerDownReal = function(t3) {
  21034. switch (this._generalBehavior) {
  21035. case "zoom":
  21036. this.dispatchImmediately("zoomstarted");
  21037. break;
  21038. case "select":
  21039. this.dispatchImmediately("selectstarted");
  21040. break;
  21041. case "pan":
  21042. this.dispatchImmediately("panstarted"), ua().setGlobalStyle(Ia.grabbing);
  21043. }
  21044. }, e3.prototype.triggerUp = function(t3) {
  21045. this.triggerUpReal(t3);
  21046. }, e3.prototype.triggerUpReal = function(t3) {
  21047. Qa.requestFrame(), this.updatePoint(this.upPoint);
  21048. var e4 = ua();
  21049. if (_t(this._upPointOrig, this._downPointOrig) > e4.getHitOption(this.interactions, "hitTolerance")) {
  21050. switch (this._generalBehavior) {
  21051. case "zoom":
  21052. this.dispatch("zoomended");
  21053. break;
  21054. case "select":
  21055. this.dispatch("selectended");
  21056. break;
  21057. case "pan":
  21058. this.dispatch("panended"), e4.setGlobalStyle(Ia.default);
  21059. }
  21060. this.downPoint = void 0, this.updateSelection();
  21061. }
  21062. }, e3.prototype.updateSelection = function() {
  21063. }, e3.prototype.getPositions = function() {
  21064. this.xPosition = this.point.x / this.innerWidth, this.yPosition = 1 - this.point.y / this.innerHeight;
  21065. }, e3.prototype.handleCursorDown = function(t3) {
  21066. if (!(!this.interactionsEnabled || this.interactions.isTouchProtected && t3.touch) && ua().isLocalElement(t3.pointer, this.paper.svg, this.uid)) {
  21067. Ss();
  21068. var e4 = mr(t3.pointer.point, this);
  21069. this._stick == "hard" && this._stickPoint && (e4 = this._stickPoint), this._adapterO && this._adapterO.apply("cursorPoint", e4), this.fitsToBounds(e4) && (this._downPointOrig = { x: e4.x, y: e4.y }, t3.event.cancelable && this.shouldPreventGestures(t3.touch) && this.fitsToBounds(e4) && t3.event.preventDefault(), this.triggerMove(e4), this.triggerDown(e4));
  21070. }
  21071. }, e3.prototype.shouldPreventGestures = function(t3) {
  21072. return true;
  21073. }, e3.prototype.updatePoint = function(t3) {
  21074. }, e3.prototype.handleCursorUp = function(t3) {
  21075. if (this.interactionsEnabled && (this.downPoint || ua().isLocalElement(t3.pointer, this.paper.svg, this.uid))) {
  21076. var e4 = mr(t3.pointer.point, this);
  21077. this._adapterO && this._adapterO.apply("cursorPoint", e4), this.downPoint && this.fitsToBounds(this.downPoint) && (this._stick == "hard" && this._stickPoint && (e4 = this._stickPoint), this._upPointOrig = { x: e4.x, y: e4.y }, this.triggerMove(e4), this.triggerUp(e4));
  21078. }
  21079. }, Object.defineProperty(e3.prototype, "chart", { get: function() {
  21080. return this._chart;
  21081. }, set: function(t3) {
  21082. this._chart = t3, Z(this._chart.plotContainer) && ua().lockElement(this._chart.plotContainer.interactions);
  21083. }, enumerable: true, configurable: true }), e3;
  21084. }($a);
  21085. Ii.registeredClasses.Cursor = gu;
  21086. var yu = function(t2) {
  21087. function e3() {
  21088. var e4 = t2.call(this) || this;
  21089. e4._lineX = new ve(), e4._lineY = new ve(), e4._xAxis = new ve(), e4._yAxis = new ve(), e4._snapToDisposers = [], e4.className = "XYCursor", e4.behavior = "zoomX", e4.maxPanOut = 0.1;
  21090. var i3 = new Ys();
  21091. e4.snapOnPan = true;
  21092. var n3 = e4.createChild(Za);
  21093. n3.shouldClone = false, n3.fillOpacity = 0.2, n3.fill = i3.getFor("alternativeBackground"), n3.isMeasured = false, n3.visible = false, n3.interactionsEnabled = false, e4.selection = n3, e4._disposers.push(e4.selection);
  21094. var r3 = e4.createChild(Za);
  21095. r3.shouldClone = false, r3.stroke = i3.getFor("grid"), r3.fill = dn(), r3.strokeDasharray = "3,3", r3.isMeasured = false, r3.strokeOpacity = 0.4, r3.interactionsEnabled = false, r3.y = 0, e4.lineX = r3, e4._disposers.push(e4.lineX);
  21096. var s2 = e4.createChild(Za);
  21097. return s2.shouldClone = false, s2.stroke = i3.getFor("grid"), s2.fill = dn(), s2.strokeDasharray = "3,3", s2.isMeasured = false, s2.strokeOpacity = 0.4, s2.interactionsEnabled = false, s2.x = 0, e4.lineY = s2, e4._disposers.push(e4.lineY), e4.events.on("sizechanged", e4.updateSize, e4, false), e4._disposers.push(e4._lineX), e4._disposers.push(e4._lineY), e4._disposers.push(e4._xAxis), e4._disposers.push(e4._yAxis), e4.mask = e4, e4.hideSeriesTooltipsOnSelection = true, e4.applyTheme(), e4;
  21098. }
  21099. return C(e3, t2), e3.prototype.updateSize = function() {
  21100. this.lineX && (this.lineX.path = wo({ x: 0, y: 0 }) + Co({ x: 0, y: this.innerHeight })), this.lineY && (this.lineY.path = wo({ x: 0, y: 0 }) + Co({ x: this.innerWidth, y: 0 }));
  21101. }, e3.prototype.updateSelection = function() {
  21102. if (this._usesSelection) {
  21103. var t3 = this.downPoint, e4 = this.behavior;
  21104. if (t3) {
  21105. var i3 = this.point;
  21106. this.lineX && (i3.x = this.lineX.pixelX), this.lineY && (i3.y = this.lineY.pixelY);
  21107. var n3 = this.selection, r3 = Math.min(i3.x, t3.x), s2 = Math.min(i3.y, t3.y), a2 = lt(Math.abs(t3.x - i3.x), this._positionPrecision), o3 = lt(Math.abs(t3.y - i3.y), this._positionPrecision);
  21108. switch (e4) {
  21109. case "zoomX":
  21110. case "selectX":
  21111. s2 = 0, o3 = this.pixelHeight;
  21112. break;
  21113. case "zoomY":
  21114. case "selectY":
  21115. r3 = 0, a2 = this.pixelWidth;
  21116. }
  21117. n3.x = r3, n3.y = s2, n3.path = Ao(a2, o3), n3.validatePosition();
  21118. } else
  21119. this._generalBehavior != "select" && this.selection.hide();
  21120. }
  21121. }, e3.prototype.fixPoint = function(t3) {
  21122. return t3.x = Math.max(0, t3.x), t3.y = Math.max(0, t3.y), t3.x = Math.min(this.pixelWidth, t3.x), t3.y = Math.min(this.pixelHeight, t3.y), t3;
  21123. }, e3.prototype.triggerMoveReal = function(e4, i3) {
  21124. t2.prototype.triggerMoveReal.call(this, e4, i3);
  21125. var n3 = this.snapToSeries;
  21126. if (n3 && !this.downPoint)
  21127. if (n3 instanceof Dh)
  21128. n3.isHidden && this.updateLinePositions(e4);
  21129. else {
  21130. var r3 = true;
  21131. Ut(n3, function(t3) {
  21132. t3.isHidden || (r3 = false);
  21133. }), r3 && this.updateLinePositions(e4);
  21134. }
  21135. else
  21136. this.updateLinePositions(e4);
  21137. this.downPoint && _t(this.downPoint, e4) > 3 && this._generalBehavior == "pan" && (this.getPanningRanges(), this.dispatch("panning"));
  21138. }, e3.prototype.updateLinePositions = function(t3) {
  21139. t3 = this.fixPoint(this.point), this.lineX && this.lineX.visible && !this.xAxis && (this.lineX.x = t3.x), this.lineY && this.lineY.visible && !this.yAxis && (this.lineY.y = t3.y), this.updateSelection();
  21140. }, e3.prototype.triggerDownReal = function(e4) {
  21141. if (this.visible && !this.isHiding)
  21142. if (this._generalBehavior == "select" && (this.selection.parent = this.parent), this.fitsToBounds(e4)) {
  21143. this.downPoint = { x: e4.x, y: e4.y }, this.updatePoint(e4), this.point.x = this.downPoint.x, this.point.y = this.downPoint.y;
  21144. var i3 = this.selection, n3 = this.downPoint.x, r3 = this.downPoint.y;
  21145. this._usesSelection && (i3.x = n3, i3.y = r3, i3.path = "", i3.show()), t2.prototype.triggerDownReal.call(this, e4);
  21146. } else
  21147. this.downPoint = void 0;
  21148. else
  21149. this.downPoint = void 0;
  21150. }, e3.prototype.updatePoint = function(t3) {
  21151. this.lineX && (t3.x = this.lineX.pixelX), this.lineY && (t3.y = this.lineY.pixelY);
  21152. }, e3.prototype.triggerUpReal = function(e4) {
  21153. this.hasMoved() ? this.downPoint && (this.upPoint = e4, this.updatePoint(this.upPoint), this._generalBehavior != "pan" && this.getRanges(), this._generalBehavior != "select" && this.selection.hide(), t2.prototype.triggerUpReal.call(this, e4)) : (this._generalBehavior != "select" ? this.selection.hide(0) : (this.xRange = void 0, this.yRange = void 0, this.dispatchImmediately("selectended")), this._generalBehavior == "pan" && ua().setGlobalStyle(Ia.default), this.dispatchImmediately("behaviorcanceled")), this.downPoint = void 0, this.dispatch("cursorpositionchanged");
  21154. }, e3.prototype.hasMoved = function() {
  21155. return (this.behavior == "zoomX" || this.behavior == "panX" ? Pt(this._upPointOrig, this._downPointOrig) : this.behavior == "zoomY" || this.behavior == "panY" ? wt(this._upPointOrig, this._downPointOrig) : _t(this._upPointOrig, this._downPointOrig)) > ua().getHitOption(this.interactions, "hitTolerance");
  21156. }, e3.prototype.getPanningRanges = function() {
  21157. var t3 = lt(this.downPoint.x / this.innerWidth, 5), e4 = 1 - lt(this.downPoint.y / this.innerHeight, 5), i3 = t3 - lt(this.point.x / this.innerWidth, 5), n3 = e4 - (1 - lt(this.point.y / this.innerHeight, 5));
  21158. this.xRange = { start: i3, end: 1 + i3 }, this.yRange = { start: n3, end: 1 + n3 }, this.behavior == "panX" && (this.yRange.start = 0, this.yRange.end = 1), this.behavior == "panY" && (this.xRange.start = 0, this.xRange.end = 1);
  21159. }, e3.prototype.getRanges = function() {
  21160. this.lineX && (this.upPoint.x = this.lineX.pixelX), this.lineY && (this.upPoint.y = this.lineY.pixelY), this.selection;
  21161. var t3 = lt(this.downPoint.x / this.innerWidth, 5), e4 = lt(this.upPoint.x / this.innerWidth, 5), i3 = 1 - lt(this.downPoint.y / this.innerHeight, 5), n3 = 1 - lt(this.upPoint.y / this.innerHeight, 5);
  21162. this.xRange = { start: yt(t3, e4), end: gt(t3, e4) }, this.yRange = { start: yt(i3, n3), end: gt(i3, n3) };
  21163. }, Object.defineProperty(e3.prototype, "behavior", { get: function() {
  21164. return this.getPropertyValue("behavior");
  21165. }, set: function(t3) {
  21166. this.setPropertyValue("behavior", t3, true), this._usesSelection = false, t3.indexOf("zoom") != -1 && (this._generalBehavior = "zoom", this._usesSelection = true), t3.indexOf("select") != -1 && (this._generalBehavior = "select", this._usesSelection = true), t3.indexOf("pan") != -1 && (this._generalBehavior = "pan", this._usesSelection = false);
  21167. }, enumerable: true, configurable: true }), e3.prototype.shouldPreventGestures = function(t3) {
  21168. return !(this.interactions.isTouchProtected && t3 || this.behavior == "none");
  21169. }, Object.defineProperty(e3.prototype, "fullWidthLineX", { get: function() {
  21170. return this.getPropertyValue("fullWidthLineX");
  21171. }, set: function(t3) {
  21172. this.setPropertyValue("fullWidthLineX", t3), t3 || this.updateSize();
  21173. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "fullWidthLineY", { get: function() {
  21174. return this.getPropertyValue("fullWidthLineY");
  21175. }, set: function(t3) {
  21176. this.setPropertyValue("fullWidthLineY", t3), t3 || this.updateSize();
  21177. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "hideSeriesTooltipsOnSelection", { get: function() {
  21178. return this.getPropertyValue("hideSeriesTooltipsOnSelection");
  21179. }, set: function(t3) {
  21180. this.setPropertyValue("hideSeriesTooltipsOnSelection", t3);
  21181. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxTooltipDistance", { get: function() {
  21182. return this.getPropertyValue("maxTooltipDistance");
  21183. }, set: function(t3) {
  21184. this.setPropertyValue("maxTooltipDistance", t3);
  21185. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "maxPanOut", { get: function() {
  21186. return this.getPropertyValue("maxPanOut");
  21187. }, set: function(t3) {
  21188. this.setPropertyValue("maxPanOut", t3);
  21189. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "xAxis", { get: function() {
  21190. return this._xAxis.get();
  21191. }, set: function(t3) {
  21192. var e4 = this;
  21193. this._xAxis.get() != t3 && this._xAxis.set(t3, new me([t3.tooltip.events.on("positionchanged", this.handleXTooltipPosition, this, false), t3.events.on("rangechangestarted", function(t4) {
  21194. e4.hide(0), e4.preventShow = true;
  21195. }, void 0, false), t3.events.on("rangechangeended", function(t4) {
  21196. e4.preventShow = false, e4.hide(0), e4.dispatch("cursorpositionchanged");
  21197. }, void 0, false)]));
  21198. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "yAxis", { get: function() {
  21199. return this._yAxis.get();
  21200. }, set: function(t3) {
  21201. var e4 = this;
  21202. this._yAxis.get() != t3 && this._yAxis.set(t3, new me([t3.tooltip.events.on("positionchanged", this.handleYTooltipPosition, this, false), t3.events.on("rangechangestarted", function(t4) {
  21203. e4.hide(0), e4.__disabled = true;
  21204. }, void 0, false), t3.events.on("rangechangeended", function(t4) {
  21205. e4.__disabled = false, e4.hide(0), e4.dispatch("cursorpositionchanged");
  21206. }, void 0, false)]));
  21207. }, enumerable: true, configurable: true }), e3.prototype.handleXTooltipPosition = function(t3) {
  21208. var e4 = this.xAxis.tooltip, i3 = pr({ x: e4.pixelX, y: e4.pixelY }, this), n3 = i3.x;
  21209. if (i3.y = 1, this.lineX && (this.lineX.x = n3, this.fitsToBounds(i3) || this.hide()), this.xAxis && this.fullWidthLineX) {
  21210. var r3 = this.xAxis.currentItemStartPoint, s2 = this.xAxis.currentItemEndPoint;
  21211. if (r3 && s2) {
  21212. this.lineX.x = n3;
  21213. var a2 = s2.x - r3.x;
  21214. this.lineX.path = Ao(a2, this.innerHeight, -a2 / 2);
  21215. }
  21216. }
  21217. }, e3.prototype.handleYTooltipPosition = function(t3) {
  21218. var e4 = this.yAxis.tooltip, i3 = pr({ x: e4.pixelX, y: e4.pixelY }, this), n3 = i3.y;
  21219. if (i3.x = 1, this.lineY && (this.lineY.y = n3, this.fitsToBounds(i3) || this.hide()), this.yAxis && this.fullWidthLineY) {
  21220. var r3 = this.yAxis.currentItemStartPoint, s2 = this.yAxis.currentItemEndPoint;
  21221. if (r3 && s2) {
  21222. this.lineY.y = n3;
  21223. var a2 = s2.y - r3.y;
  21224. this.lineY.path = Ao(this.innerWidth, a2, 0, -a2 / 2);
  21225. }
  21226. }
  21227. }, Object.defineProperty(e3.prototype, "lineX", { get: function() {
  21228. return this._lineX.get();
  21229. }, set: function(t3) {
  21230. t3 ? (t3.setElement(this.paper.add("path")), this._lineX.set(t3, t3.events.on("positionchanged", this.updateSelection, this, false)), t3.interactionsEnabled = false, t3.parent = this) : this._lineX.reset();
  21231. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "lineY", { get: function() {
  21232. return this._lineY.get();
  21233. }, set: function(t3) {
  21234. t3 ? (t3.setElement(this.paper.add("path")), this._lineY.set(t3, t3.events.on("positionchanged", this.updateSelection, this, false)), t3.parent = this, t3.interactionsEnabled = false) : this._lineY.reset();
  21235. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "selection", { get: function() {
  21236. return this._selection;
  21237. }, set: function(t3) {
  21238. this._selection = t3, t3 && (t3.element = this.paper.add("path"), t3.parent = this);
  21239. }, enumerable: true, configurable: true }), e3.prototype.processConfig = function(e4) {
  21240. var i3 = this;
  21241. if (e4 && (Z(e4.xAxis) && Q(e4.xAxis) && (this.map.hasKey(e4.xAxis) ? e4.xAxis = this.map.getKey(e4.xAxis) : (this.processingErrors.push('[XYCursor] No axis with id "' + e4.xAxis + '" found for `xAxis`'), delete e4.xAxis)), Z(e4.yAxis) && Q(e4.yAxis) && (this.map.hasKey(e4.yAxis) ? e4.yAxis = this.map.getKey(e4.yAxis) : (this.processingErrors.push('[XYCursor] No axis with id "' + e4.yAxis + '" found for `yAxis`'), delete e4.yAxis)), Z(e4.snapToSeries))) {
  21242. var n3 = it(e4.snapToSeries) ? e4.snapToSeries : [e4.snapToSeries], r3 = false;
  21243. Ut(n3, function(t3, e5) {
  21244. Q(t3) && (i3.map.hasKey(t3) ? n3[e5] = i3.map.getKey(t3) : (i3.processingErrors.push('[XYCursor] No series with id "' + t3 + '" found for `series`'), r3 = true));
  21245. }), r3 ? delete e4.snapToSeries : e4.snapToSeries = n3;
  21246. }
  21247. t2.prototype.processConfig.call(this, e4);
  21248. }, Object.defineProperty(e3.prototype, "snapToSeries", { get: function() {
  21249. return this.getPropertyValue("snapToSeries");
  21250. }, set: function(t3) {
  21251. var e4 = this;
  21252. this.setPropertyValue("snapToSeries", t3) && (t3 instanceof Dh && (t3 = [t3]), this._snapToDisposers && Ut(this._snapToDisposers, function(t4) {
  21253. t4.dispose();
  21254. }), this._snapToDisposers = [], t3 && Ut(t3, function(t4) {
  21255. e4._snapToDisposers.push(t4.events.on("tooltipshownat", function() {
  21256. e4.handleSnap(t4);
  21257. }, void 0, false));
  21258. }));
  21259. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "snapOnPan", { get: function() {
  21260. return this.getPropertyValue("snapOnPan");
  21261. }, set: function(t3) {
  21262. this.setPropertyValue("snapOnPan", t3);
  21263. }, enumerable: true, configurable: true }), e3.prototype.handleSnap = function(t3) {
  21264. if (!this.downPoint) {
  21265. var e4 = t3.getTooltipX() + t3.xAxis.pixelX, i3 = t3.getTooltipY() + t3.yAxis.pixelY, n3 = t3.xAxis, r3 = t3.yAxis;
  21266. n3 && n3.renderer.opposite && (i3 -= this.pixelHeight), this.point = { x: e4, y: i3 }, this.getPositions();
  21267. var s2 = e4, a2 = i3;
  21268. e4 -= this.pixelWidth, r3 && r3.renderer.opposite && (e4 += this.pixelWidth);
  21269. var o3 = t3.tooltip, l2 = o3.animationDuration, h2 = o3.animationEasing;
  21270. n3 instanceof bh && !(n3 instanceof Ph) && r3 instanceof bh && !(r3 instanceof Ph) ? (t3.yAxis.showTooltipAtPosition(this.yPosition), t3.xAxis.showTooltipAtPosition(this.xPosition)) : (t3.baseAxis == t3.xAxis && t3.yAxis.showTooltipAtPosition(this.yPosition), t3.baseAxis == t3.yAxis && t3.xAxis.showTooltipAtPosition(this.xPosition)), this.lineY.x = e4, this.lineX.y = i3, this.xAxis || this.lineX.animate([{ property: "x", to: s2 }], l2, h2), this.yAxis || this.lineY.animate([{ property: "y", to: a2 }], l2, h2);
  21271. }
  21272. }, e3.prototype.dispose = function() {
  21273. this.hide(0), t2.prototype.dispose.call(this);
  21274. }, e3;
  21275. }(gu);
  21276. Ii.registeredClasses.XYCursor = yu;
  21277. var mu = function(t2) {
  21278. function e3() {
  21279. var e4 = t2.call(this) || this;
  21280. return e4.className = "RadarCursor", e4.radius = V(100), e4.innerRadius = V(0), e4.applyTheme(), e4.mask = void 0, e4;
  21281. }
  21282. return C(e3, t2), e3.prototype.fitsToBounds = function(t3) {
  21283. var e4 = _t(t3);
  21284. return e4 < this.truePixelRadius + 1 && e4 > this.pixelInnerRadius - 1;
  21285. }, Object.defineProperty(e3.prototype, "startAngle", { get: function() {
  21286. return this.getPropertyValue("startAngle");
  21287. }, set: function(t3) {
  21288. this.setPropertyValue("startAngle", t3, true);
  21289. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "endAngle", { get: function() {
  21290. return this.getPropertyValue("endAngle");
  21291. }, set: function(t3) {
  21292. this.setPropertyValue("endAngle", t3, true);
  21293. }, enumerable: true, configurable: true }), e3.prototype.triggerMoveReal = function(e4, i3) {
  21294. this.xAxis && (!this.xAxis || this.xAxis.cursorTooltipEnabled && !this.xAxis.tooltip.disabled) || this.updateLineX(this.point), this.yAxis && (!this.yAxis || this.yAxis.cursorTooltipEnabled && !this.yAxis.tooltip.disabled) || this.updateLineY(this.point), this.updateSelection(), t2.prototype.triggerMoveReal.call(this, e4, i3);
  21295. }, e3.prototype.updateLineX = function(t3) {
  21296. var e4 = this.pixelRadius, i3 = this.startAngle, n3 = this.endAngle, r3 = this.pixelInnerRadius;
  21297. if (e4 > 0 && tt(i3) && tt(n3) && tt(r3)) {
  21298. var s2 = Rt(Dt(t3), i3, n3), a2 = void 0;
  21299. if (this.lineX && this.lineX.visible) {
  21300. if (this.lineX.moveTo({ x: 0, y: 0 }), this.xAxis && this.fullWidthLineX) {
  21301. var o3 = this.xAxis.currentItemStartPoint, l2 = this.xAxis.currentItemEndPoint;
  21302. if (o3 && l2) {
  21303. var h2 = Rt(Dt(o3), i3, n3), p2 = Rt(Dt(l2), i3, n3) - h2;
  21304. i3 < n3 ? p2 < 0 && (p2 += 360) : p2 > 0 && (p2 -= 360), a2 = wo({ x: r3 * ft(s2 -= p2 / 2), y: r3 * dt(s2) }) + Co({ x: e4 * ft(s2), y: e4 * dt(s2) }) + Do(s2, p2, e4) + Co({ x: r3 * ft(s2 + p2), y: r3 * dt(s2 + p2) }) + Do(s2 + p2, -p2, r3);
  21305. }
  21306. }
  21307. a2 || (a2 = wo({ x: r3 * ft(s2), y: r3 * dt(s2) }) + Co({ x: e4 * ft(s2), y: e4 * dt(s2) })), this.lineX.path = a2;
  21308. }
  21309. }
  21310. }, e3.prototype.updateLineY = function(t3) {
  21311. if (this.lineY && this.lineY.visible) {
  21312. var e4 = this.startAngle, i3 = this.endAngle, n3 = this.truePixelRadius, r3 = ut(_t(t3), 0, this.truePixelRadius);
  21313. if (tt(r3) && tt(e4)) {
  21314. this.lineY.moveTo({ x: 0, y: 0 });
  21315. var s2 = void 0, a2 = i3 - e4;
  21316. if (this.yAxis && this.fullWidthLineY) {
  21317. var o3 = this.yAxis.currentItemStartPoint, l2 = this.yAxis.currentItemEndPoint;
  21318. if (o3 && l2) {
  21319. var h2 = ut(_t(o3), 0, n3);
  21320. s2 = wo({ x: (r3 = ut(_t(l2), 0, n3)) * ft(e4), y: r3 * dt(e4) }) + Do(e4, a2, r3), s2 += wo({ x: h2 * ft(i3), y: h2 * dt(i3) }) + Do(i3, -a2, h2);
  21321. }
  21322. }
  21323. s2 || (s2 = wo({ x: r3 * ft(e4), y: r3 * dt(e4) }) + Do(e4, i3 - e4, r3)), this.lineY.path = s2;
  21324. }
  21325. }
  21326. }, e3.prototype.updateSelection = function() {
  21327. if (this._usesSelection) {
  21328. var t3 = this.downPoint;
  21329. if (t3) {
  21330. var e4 = this.point, i3 = this.pixelRadius, n3 = this.truePixelRadius, r3 = this.pixelInnerRadius, s2 = Math.min(this.startAngle, this.endAngle), a2 = Math.max(this.startAngle, this.endAngle), o3 = Rt(Dt(t3), s2, a2), l2 = Rt(Dt(e4), s2, a2), h2 = _t(t3);
  21331. if (h2 < n3) {
  21332. var p2 = ut(_t(e4), 0, n3);
  21333. this._prevAngle = l2;
  21334. var u2 = wo({ x: 0, y: 0 }), d2 = dt(o3), c2 = ft(o3), f2 = dt(l2), g2 = ft(l2), y2 = this.behavior;
  21335. y2 == "zoomX" || y2 == "selectX" ? u2 += Co({ x: i3 * c2, y: i3 * d2 }) + Do(o3, l2 - o3, i3) + Co({ x: r3 * g2, y: r3 * f2 }) + Do(l2, o3 - l2, r3) : y2 == "zoomY" || y2 == "selectY" ? u2 = wo({ x: p2 * ft(s2), y: p2 * dt(s2) }) + Do(s2, a2 - s2, p2) + Co({ x: h2 * ft(a2), y: h2 * dt(a2) }) + Do(a2, s2 - a2, h2) + " Z" : y2 == "zoomXY" && (u2 = wo({ x: p2 * ft(o3), y: p2 * dt(o3) }) + Do(o3, l2 - o3, p2) + Co({ x: h2 * ft(l2), y: h2 * dt(l2) }) + Do(l2, o3 - l2, h2) + " Z"), this.selection.path = u2;
  21336. }
  21337. this.selection.moveTo({ x: 0, y: 0 });
  21338. }
  21339. }
  21340. }, e3.prototype.getPositions = function() {
  21341. if (this.chart) {
  21342. var t3 = this.pixelInnerRadius, e4 = this.truePixelRadius - t3, i3 = this.startAngle, n3 = this.endAngle, r3 = (Rt(Dt(this.point), i3, n3) - i3) / (n3 - i3);
  21343. this.xPosition = r3, this.yPosition = ut((_t(this.point) - t3) / e4, 0, 1);
  21344. }
  21345. }, e3.prototype.updatePoint = function(t3) {
  21346. }, e3.prototype.handleXTooltipPosition = function(t3) {
  21347. if (this.xAxis.cursorTooltipEnabled) {
  21348. var e4 = this.xAxis.tooltip;
  21349. this.updateLineX(pr({ x: e4.pixelX, y: e4.pixelY }, this));
  21350. }
  21351. }, e3.prototype.handleYTooltipPosition = function(t3) {
  21352. if (this.yAxis.cursorTooltipEnabled) {
  21353. var e4 = this.yAxis.tooltip;
  21354. this.updateLineY(pr({ x: e4.pixelX, y: e4.pixelY }, this));
  21355. }
  21356. }, e3.prototype.updateLinePositions = function(t3) {
  21357. }, e3.prototype.getRanges = function() {
  21358. var t3 = this.downPoint;
  21359. if (t3) {
  21360. var e4 = this.upPoint;
  21361. if (this.chart) {
  21362. var i3 = this.pixelRadius, n3 = this.startAngle, r3 = this.endAngle, s2 = Rt(Dt(t3), this.startAngle, this.endAngle), a2 = Rt(Dt(e4), this.startAngle, this.endAngle), o3 = ut(_t(t3), 0, i3), l2 = ut(_t(e4), 0, i3), h2 = 0, p2 = 1, u2 = 0, d2 = 1, c2 = this.behavior;
  21363. if (c2 == "zoomX" || c2 == "selectX" || c2 == "zoomXY" || c2 == "selectXY") {
  21364. var f2 = r3 - n3;
  21365. h2 = lt((s2 - n3) / f2, 5), p2 = lt((a2 - n3) / f2, 5);
  21366. }
  21367. c2 != "zoomY" && c2 != "selectY" && c2 != "zoomXY" && c2 != "selectXY" || (u2 = lt(o3 / i3, 5), d2 = lt(l2 / i3, 5)), this.xRange = { start: Math.min(h2, p2), end: Math.max(h2, p2) }, this.yRange = { start: Math.min(u2, d2), end: Math.max(u2, d2) }, this.behavior == "selectX" || this.behavior == "selectY" || this.behavior == "selectXY" || this.selection.hide();
  21368. }
  21369. }
  21370. }, e3.prototype.updateSize = function() {
  21371. }, Object.defineProperty(e3.prototype, "radius", { get: function() {
  21372. return this.getPropertyValue("radius");
  21373. }, set: function(t3) {
  21374. this.setPercentProperty("radius", t3, false, false, 10, false);
  21375. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelRadius", { get: function() {
  21376. return Fn(this.radius, this.truePixelRadius);
  21377. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "truePixelRadius", { get: function() {
  21378. return Vn(V(100), yt(this.innerWidth / 2, this.innerHeight / 2));
  21379. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "innerRadius", { get: function() {
  21380. return this.getPropertyValue("innerRadius");
  21381. }, set: function(t3) {
  21382. this.setPercentProperty("innerRadius", t3, false, false, 10, false);
  21383. }, enumerable: true, configurable: true }), Object.defineProperty(e3.prototype, "pixelInnerRadius", { get: function() {
  21384. var t3 = this.innerRadius;
  21385. return t3 instanceof A && (t3 = V(100 * t3.value * this.chart.innerRadiusModifyer)), Fn(t3, this.truePixelRadius) || 0;
  21386. }, enumerable: true, configurable: true }), e3.prototype.fixPoint = function(t3) {
  21387. return t3;
  21388. }, e3;
  21389. }(yu);
  21390. Ii.registeredClasses.RadarCursor = mu;
  21391. const vu = function(t2) {
  21392. Di(t2, "SpriteState") && (t2.transitionDuration = 400), Di(t2, "Component") && (t2.rangeChangeDuration = 500, t2.interpolationDuration = 500, t2.sequencedInterpolation = false, Di(t2, "SankeyDiagram") && (t2.sequencedInterpolation = true), Di(t2, "FunnelSeries") && (t2.sequencedInterpolation = true)), Di(t2, "Chart") && (t2.defaultState.transitionDuration = 2e3, t2.hiddenState.transitionDuration = 1e3), Di(t2, "Tooltip") && (t2.animationDuration = 400, t2.defaultState.transitionDuration = 400, t2.hiddenState.transitionDuration = 400), Di(t2, "Scrollbar") && (t2.animationDuration = 500), Di(t2, "Series") && (t2.defaultState.transitionDuration = 1e3, t2.hiddenState.transitionDuration = 700, t2.hiddenState.properties.opacity = 1, t2.showOnInit = true), Di(t2, "MapSeries") && (t2.hiddenState.properties.opacity = 0), Di(t2, "PercentSeries") && (t2.hiddenState.properties.opacity = 0), Di(t2, "FunnelSlice") && (t2.defaultState.transitionDuration = 800, t2.hiddenState.transitionDuration = 1e3, t2.hiddenState.properties.opacity = 1), Di(t2, "Slice") && (t2.defaultState.transitionDuration = 700, t2.hiddenState.transitionDuration = 1e3, t2.hiddenState.properties.opacity = 1), Di(t2, "Preloader") && (t2.hiddenState.transitionDuration = 2e3), Di(t2, "Column") && (t2.defaultState.transitionDuration = 700, t2.hiddenState.transitionDuration = 1e3, t2.hiddenState.properties.opacity = 1), Di(t2, "Column3D") && (t2.hiddenState.properties.opacity = 0);
  21393. }, bu = function(t2) {
  21394. Di(t2, "InterfaceColorSet") && (t2.setFor("stroke", dn("#000000")), t2.setFor("fill", dn("#2b2b2b")), t2.setFor("primaryButton", dn("#6794dc").lighten(-0.2)), t2.setFor("primaryButtonHover", dn("#6771dc").lighten(-0.2)), t2.setFor("primaryButtonDown", dn("#68dc75").lighten(-0.2)), t2.setFor("primaryButtonActive", dn("#68dc75").lighten(-0.2)), t2.setFor("primaryButtonText", dn("#FFFFFF")), t2.setFor("primaryButtonStroke", dn("#6794dc")), t2.setFor("secondaryButton", dn("#3b3b3b")), t2.setFor("secondaryButtonHover", dn("#3b3b3b").lighten(0.1)), t2.setFor("secondaryButtonDown", dn("#3b3b3b").lighten(0.15)), t2.setFor("secondaryButtonActive", dn("#3b3b3b").lighten(0.15)), t2.setFor("secondaryButtonText", dn("#bbbbbb")), t2.setFor("secondaryButtonStroke", dn("#3b3b3b").lighten(-0.2)), t2.setFor("grid", dn("#bbbbbb")), t2.setFor("background", dn("#000000")), t2.setFor("alternativeBackground", dn("#ffffff")), t2.setFor("text", dn("#ffffff")), t2.setFor("alternativeText", dn("#000000")), t2.setFor("disabledBackground", dn("#bbbbbb"))), Di(t2, "Scrollbar") && (t2.background.fillOpacity = 0.4, t2.thumb.background.fillOpacity = 0.5);
  21395. };
  21396. return ls.commercialLicense = true, o2;
  21397. })();
  21398. }, n.exports = i();
  21399. var r = e({ __proto__: null, default: o(n.exports) }, [n.exports]);
  21400. export {
  21401. r as i
  21402. };
  21403. //# sourceMappingURL=chunks-SZQ34Y5K.js.map