d1c094931efbb54dc5b82baf9419f47ba3dff690dffb9a0fdaf3a93e5129c321263040a4968652c4993a9976ca3da3d2b4ee7ce30e97c2c7a0174f4c080d76 399 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039
  1. import './style.css';
  2. import { openBlock as le, createElementBlock as se, createElementVNode as ae, createStaticVNode as Tt, defineComponent as Le, useCssVars as pt, unref as i, computed as be, createBlock as ja, resolveDynamicComponent as Ea, renderSlot as Me, getCurrentScope as za, onScopeDispose as qa, watch as ke, ref as me, onMounted as Re, onUnmounted as Ft, onActivated as Ia, onDeactivated as Ha, nextTick as Bt, reactive as Pe, Fragment as Ae, renderList as Se, toDisplayString as We, createCommentVNode as $e, onBeforeUnmount as Va, normalizeStyle as Ge, getCurrentInstance as Ca, createVNode as Z, normalizeClass as Ua, toRef as Ee, h as Xa } from "vue";
  3. var $a = /* @__PURE__ */ ((e) => (e.transparent = "rgba(0,0,0,0)", e.black = "#000000", e.silver = "#C0C0C0", e.gray = "#808080", e.white = "#FFFFFF", e.maroon = "#800000", e.red = "#FF0000", e.purple = "#800080", e.fuchsia = "#FF00FF", e.green = "#008000", e.lime = "#00FF00", e.olive = "#808000", e.yellow = "#FFFF00", e.navy = "#000080", e.blue = "#0000FF", e.teal = "#008080", e.aqua = "#00FFFF", e.aliceblue = "#f0f8ff", e.antiquewhite = "#faebd7", e.aquamarine = "#7fffd4", e.azure = "#f0ffff", e.beige = "#f5f5dc", e.bisque = "#ffe4c4", e.blanchedalmond = "#ffebcd", e.blueviolet = "#8a2be2", e.brown = "#a52a2a", e.burlywood = "#deb887", e.cadetblue = "#5f9ea0", e.chartreuse = "#7fff00", e.chocolate = "#d2691e", e.coral = "#ff7f50", e.cornflowerblue = "#6495ed", e.cornsilk = "#fff8dc", e.crimson = "#dc143c", e.cyan = "#00ffff", e.darkblue = "#00008b", e.darkcyan = "#008b8b", e.darkgoldenrod = "#b8860b", e.darkgray = "#a9a9a9", e.darkgreen = "#006400", e.darkgrey = "#a9a9a9", e.darkkhaki = "#bdb76b", e.darkmagenta = "#8b008b", e.darkolivegreen = "#556b2f", e.darkorange = "#ff8c00", e.darkorchid = "#9932cc", e.darkred = "#8b0000", e.darksalmon = "#e9967a", e.darkseagreen = "#8fbc8f", e.darkslateblue = "#483d8b", e.darkslategray = "#2f4f4f", e.darkslategrey = "#2f4f4f", e.darkturquoise = "#00ced1", e.darkviolet = "#9400d3", e.deeppink = "#ff1493", e.deepskyblue = "#00bfff", e.dimgray = "#696969", e.dimgrey = "#696969", e.dodgerblue = "#1e90ff", e.firebrick = "#b22222", e.floralwhite = "#fffaf0", e.forestgreen = "#228b22", e.gainsboro = "#dcdcdc", e.ghostwhite = "#f8f8ff", e.gold = "#ffd700", e.goldenrod = "#daa520", e.greenyellow = "#adff2f", e.grey = "#808080", e.honeydew = "#f0fff0", e.hotpink = "#ff69b4", e.indianred = "#cd5c5c", e.indigo = "#4b0082", e.ivory = "#fffff0", e.khaki = "#f0e68c", e.lavender = "#e6e6fa", e.lavenderblush = "#fff0f5", e.lawngreen = "#7cfc00", e.lemonchiffon = "#fffacd", e.lightblue = "#add8e6", e.lightcoral = "#f08080", e.lightcyan = "#e0ffff", e.lightgoldenrodyellow = "#fafad2", e.lightgray = "#d3d3d3", e.lightgreen = "#90ee90", e.lightgrey = "#d3d3d3", e.lightpink = "#ffb6c1", e.lightsalmon = "#ffa07a", e.lightseagreen = "#20b2aa", e.lightskyblue = "#87cefa", e.lightslategray = "#778899", e.lightslategrey = "#778899", e.lightsteelblue = "#b0c4de", e.lightyellow = "#ffffe0", e.limegreen = "#32cd32", e.linen = "#faf0e6", e.magenta = "#ff00ff", e.mediumaquamarine = "#66cdaa", e.mediumblue = "#0000cd", e.mediumorchid = "#ba55d3", e.mediumpurple = "#9370db", e.mediumseagreen = "#3cb371", e.mediumslateblue = "#7b68ee", e.mediumspringgreen = "#00fa9a", e.mediumturquoise = "#48d1cc", e.mediumvioletred = "#c71585", e.midnightblue = "#191970", e.mintcream = "#f5fffa", e.mistyrose = "#ffe4e1", e.moccasin = "#ffe4b5", e.navajowhite = "#ffdead", e.oldlace = "#fdf5e6", e.olivedrab = "#6b8e23", e.orange = "#ffa500", e.orangered = "#ff4500", e.orchid = "#da70d6", e.palegoldenrod = "#eee8aa", e.palegreen = "#98fb98", e.paleturquoise = "#afeeee", e.palevioletred = "#db7093", e.papayawhip = "#ffefd5", e.peachpuff = "#ffdab9", e.peru = "#cd853f", e.pink = "#ffc0cb", e.plum = "#dda0dd", e.powderblue = "#b0e0e6", e.rosybrown = "#bc8f8f", e.royalblue = "#4169e1", e.saddlebrown = "#8b4513", e.salmon = "#fa8072", e.sandybrown = "#f4a460", e.seagreen = "#2e8b57", e.seashell = "#fff5ee", e.sienna = "#a0522d", e.skyblue = "#87ceeb", e.slateblue = "#6a5acd", e.slategray = "#708090", e.snow = "#fffafa", e.springgreen = "#00ff7f", e.steelblue = "#4682b4", e.tan = "#d2b48c", e.thistle = "#d8bfd8", e.tomato = "#ff6347", e.turquoise = "#40e0d0", e.violet = "#ee82ee", e.wheat = "#f5deb3", e.whitesmoke = "#f5f5f5", e.yellowgreen = "#9acd32", e))($a || {});
  4. function Nt(e) {
  5. return typeof e != "string" ? !1 : (e = e.toLowerCase(), /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e));
  6. }
  7. function Qa(e) {
  8. return typeof e != "string" ? !1 : (e = e.toLowerCase(), /^(rgb\(|RGB\()/.test(e));
  9. }
  10. function _a(e) {
  11. return typeof e != "string" ? !1 : (e = e.toLowerCase(), /^(rgba|RGBA)/.test(e));
  12. }
  13. function Pa(e) {
  14. return /^(rgb|rgba|RGB|RGBA)/.test(e);
  15. }
  16. function Ya(e) {
  17. return $a[e];
  18. }
  19. function wa(e) {
  20. if (Nt(e) || Pa(e))
  21. return e;
  22. const r = Ya(e);
  23. if (!r)
  24. throw new Error(`Color: Invalid Input of ${e}`);
  25. return r;
  26. }
  27. function Ka(e) {
  28. e = e.replace("#", ""), e.length === 3 && (e = Array.from(e).map((a) => a + a).join(""));
  29. const r = e.split("");
  30. return new Array(3).fill(0).map((a, t) => parseInt(`0x${r[t * 2]}${r[t * 2 + 1]}`));
  31. }
  32. function Ja(e) {
  33. return e.replace(/rgb\(|rgba\(|\)/g, "").split(",").slice(0, 3).map((r) => parseInt(r));
  34. }
  35. function gt(e) {
  36. const r = wa(e).toLowerCase();
  37. return Nt(r) ? Ka(r) : Ja(r);
  38. }
  39. function ka(e) {
  40. const r = wa(e);
  41. return _a(r) ? Number(
  42. r.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g, "")
  43. ) : 1;
  44. }
  45. function un(e) {
  46. const r = gt(e);
  47. return r && [...r, ka(e)];
  48. }
  49. function Za(e, r) {
  50. const a = gt(e);
  51. return typeof r == "number" ? `rgba(${a.join(",")},${r})` : `rgb(${a.join(",")})`;
  52. }
  53. function ei(e) {
  54. if (Nt(e))
  55. return e;
  56. const r = gt(e), a = (t) => Number(t).toString(16).padStart(2, "0");
  57. return `#${r.map(a).join("")}`;
  58. }
  59. function Wt(e) {
  60. if (!Array.isArray(e))
  61. throw new Error(`getColorFromRgbValue: ${e} is not an array`);
  62. const { length: r } = e;
  63. if (r !== 3 && r !== 4)
  64. throw new Error("getColorFromRgbValue: value length should be 3 or 4");
  65. return (r === 3 ? "rgb(" : "rgba(") + e.join(",") + ")";
  66. }
  67. function ti(e, r = 0) {
  68. let a = un(e);
  69. return a = a.map((t, n) => n === 3 ? t : t - Math.ceil(2.55 * r)).map((t) => t < 0 ? 0 : t), Wt(a);
  70. }
  71. function ln(e, r = 0) {
  72. let a = un(e);
  73. return a = a.map((t, n) => n === 3 ? t : t + Math.ceil(2.55 * r)).map((t) => t > 255 ? 255 : t), Wt(a);
  74. }
  75. function De(e, r = 100) {
  76. const a = gt(e);
  77. return Wt([...a, r / 100]);
  78. }
  79. const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  80. __proto__: null,
  81. darken: ti,
  82. fade: De,
  83. getColorFromRgbValue: Wt,
  84. getOpacity: ka,
  85. getRgbValue: gt,
  86. getRgbaValue: un,
  87. isHex: Nt,
  88. isRgb: Qa,
  89. isRgbOrRgba: Pa,
  90. isRgba: _a,
  91. lighten: ln,
  92. toHex: ei,
  93. toRgb: Za
  94. }, Symbol.toStringTag, { value: "Module" })), Ke = (e, r) => {
  95. const a = e.__vccOpts || e;
  96. for (const [t, n] of r)
  97. a[t] = n;
  98. return a;
  99. }, ni = {}, ai = {
  100. viewBox: "0 0 187 38",
  101. preserveAspectRatio: "none",
  102. class: "dv-button-svg"
  103. };
  104. function ii(e, r) {
  105. return le(), se("svg", ai, r[0] || (r[0] = [
  106. ae("g", { style: { transform: "translate(2px, 2px)" } }, [
  107. ae("g", null, [
  108. ae("path", {
  109. "data-type": "shape",
  110. d: "M0,0 L0,34 L168,34 L183,19 L183,0",
  111. class: "dv-button-svg-bg"
  112. })
  113. ]),
  114. ae("path", {
  115. "data-type": "polyline",
  116. d: "M0,34 L168,34 L183,19",
  117. class: "dv-button-svg-line"
  118. })
  119. ], -1)
  120. ]));
  121. }
  122. const oi = /* @__PURE__ */ Ke(ni, [["render", ii]]), li = {}, si = {
  123. viewBox: "0 0 167 38",
  124. preserveAspectRatio: "none",
  125. class: "dv-button-svg"
  126. };
  127. function ui(e, r) {
  128. return le(), se("svg", si, r[0] || (r[0] = [
  129. Tt('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L164.1,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L0,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M1.1,34 L1.1,0" class="dv-button-svg-line"></path></g>', 1)
  130. ]));
  131. }
  132. const ci = /* @__PURE__ */ Ke(li, [["render", ui]]), fi = {}, di = {
  133. viewBox: "0 0 167 38",
  134. preserveAspectRatio: "none",
  135. class: "dv-button-svg"
  136. };
  137. function hi(e, r) {
  138. return le(), se("svg", di, r[0] || (r[0] = [
  139. Tt('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M1,1 L1,33 L162,33 L162,1" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L0,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,0 L10,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,0 L153,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L153,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L163,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L0,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,34 L10,34" class="dv-button-svg-line"></path></g>', 1)
  140. ]));
  141. }
  142. const vi = /* @__PURE__ */ Ke(fi, [["render", hi]]), pi = {}, gi = {
  143. viewBox: "0 0 187 38",
  144. preserveAspectRatio: "none",
  145. class: "dv-button-svg"
  146. };
  147. function mi(e, r) {
  148. return le(), se("svg", gi, r[0] || (r[0] = [
  149. ae("g", { style: { transform: "translate(2px, 2px)" } }, [
  150. ae("g", null, [
  151. ae("path", {
  152. "data-type": "shape",
  153. d: "M0,34 L168,34 L183,19 L183,0 L0,0",
  154. class: "dv-button-svg-bg"
  155. })
  156. ]),
  157. ae("path", {
  158. "data-type": "polyline",
  159. d: "M0,34 L168,34 L183,19 L183,0",
  160. class: "dv-button-svg-line"
  161. }),
  162. ae("path", {
  163. "data-type": "polyline",
  164. d: "M184.1,0 L0,0 L0,34.7",
  165. class: "dv-button-svg-line"
  166. })
  167. ], -1)
  168. ]));
  169. }
  170. const yi = /* @__PURE__ */ Ke(pi, [["render", mi]]), bi = {}, xi = {
  171. viewBox: "0 0 187 38",
  172. preserveAspectRatio: "none",
  173. class: "dv-button-svg"
  174. };
  175. function Ci(e, r) {
  176. return le(), se("svg", xi, r[0] || (r[0] = [
  177. ae("g", { style: { transform: "translate(2px, 2px)" } }, [
  178. ae("g", null, [
  179. ae("path", {
  180. "data-type": "shape",
  181. d: "M0,34 L168,34 L183,19 L183,0 L15,0 L0,15",
  182. class: "dv-button-svg-bg"
  183. })
  184. ]),
  185. ae("path", {
  186. "data-type": "polyline",
  187. d: "M0,34 L168,34 L183,19 L183,0",
  188. class: "dv-button-svg-line"
  189. }),
  190. ae("path", {
  191. "data-type": "polyline",
  192. d: "M183,0 L15,0 L0,15 L0,34",
  193. class: "dv-button-svg-line"
  194. })
  195. ], -1)
  196. ]));
  197. }
  198. const $i = /* @__PURE__ */ Ke(bi, [["render", Ci]]), _i = {}, Pi = {
  199. viewBox: "0 0 167 38",
  200. preserveAspectRatio: "none",
  201. class: "dv-button-svg"
  202. };
  203. function wi(e, r) {
  204. return le(), se("svg", Pi, r[0] || (r[0] = [
  205. Tt('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L81.6,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L81.4,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L81.6,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L81.4,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,1 L10,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,1 L153,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,33 L10,33" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,33 L153,33" class="dv-button-svg-line"></path></g>', 1)
  206. ]));
  207. }
  208. const ki = /* @__PURE__ */ Ke(_i, [["render", wi]]), Ai = { class: "dv-button-wrapper" }, Li = { class: "dv-button" }, Si = { class: "dv-button-svg-container" }, Oi = { class: "dv-button-text" }, Gi = /* @__PURE__ */ Le({
  209. components: {
  210. Border1: oi,
  211. Border2: ci,
  212. Border3: vi,
  213. Border4: yi,
  214. Border5: $i,
  215. Border6: ki
  216. },
  217. __name: "index",
  218. props: {
  219. color: { default: "#2058c7" },
  220. fontColor: { default: "" },
  221. bg: { type: Boolean, default: !0 },
  222. border: { default: "Border1" },
  223. fontSize: { default: 14 }
  224. },
  225. setup(e) {
  226. pt((_) => ({
  227. "108fc75d": i(o),
  228. "45ef2fd4": _.color,
  229. fc71f308: i(t),
  230. "6ca41ab4": i(a),
  231. "1faf6725": i(n),
  232. "9aee3820": i(l)
  233. }));
  234. const r = e, a = be(() => ln(r.color, 40)), t = be(() => r.fontColor === "" ? r.color : r.fontColor), n = be(() => ln(t.value, 40)), l = be(() => r.bg ? 0.1 : 0), o = be(() => `${r.fontSize}px`);
  235. return (_, x) => (le(), se("div", Ai, [
  236. ae("button", Li, [
  237. ae("div", Si, [
  238. (le(), ja(Ea(_.border)))
  239. ]),
  240. ae("div", Oi, [
  241. Me(_.$slots, "default")
  242. ])
  243. ])
  244. ]));
  245. }
  246. }), zt = {
  247. install(e) {
  248. e.component("DvButton", Gi);
  249. }
  250. };
  251. function Mi(e) {
  252. return za() ? (qa(e), !0) : !1;
  253. }
  254. function Rt(e) {
  255. return typeof e == "function" ? e() : i(e);
  256. }
  257. const Ri = typeof window < "u" && typeof document < "u";
  258. typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
  259. const Di = Object.prototype.toString, Ti = (e) => Di.call(e) === "[object Object]", sn = () => {
  260. };
  261. function Fi(e, r) {
  262. function a(...t) {
  263. return new Promise((n, l) => {
  264. Promise.resolve(e(() => r.apply(this, t), { fn: r, thisArg: this, args: t })).then(n).catch(l);
  265. });
  266. }
  267. return a;
  268. }
  269. function Bi(e, r = {}) {
  270. let a, t, n = sn;
  271. const l = (_) => {
  272. clearTimeout(_), n(), n = sn;
  273. };
  274. return (_) => {
  275. const x = Rt(e), z = Rt(r.maxWait);
  276. return a && l(a), x <= 0 || z !== void 0 && z <= 0 ? (t && (l(t), t = null), Promise.resolve(_())) : new Promise((E, U) => {
  277. n = r.rejectOnCancel ? U : E, z && !t && (t = setTimeout(() => {
  278. a && l(a), t = null, E(_());
  279. }, z)), a = setTimeout(() => {
  280. t && l(t), t = null, E(_());
  281. }, x);
  282. });
  283. };
  284. }
  285. function Ni(e, r = 200, a = {}) {
  286. return Fi(
  287. Bi(r, a),
  288. e
  289. );
  290. }
  291. function Wi(e) {
  292. var r;
  293. const a = Rt(e);
  294. return (r = a == null ? void 0 : a.$el) != null ? r : a;
  295. }
  296. const ji = Ri ? window : void 0;
  297. function Ei(...e) {
  298. let r, a, t, n;
  299. if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([a, t, n] = e, r = ji) : [r, a, t, n] = e, !r)
  300. return sn;
  301. Array.isArray(a) || (a = [a]), Array.isArray(t) || (t = [t]);
  302. const l = [], o = () => {
  303. l.forEach((E) => E()), l.length = 0;
  304. }, _ = (E, U, T, L) => (E.addEventListener(U, T, L), () => E.removeEventListener(U, T, L)), x = ke(
  305. () => [Wi(r), Rt(n)],
  306. ([E, U]) => {
  307. if (o(), !E)
  308. return;
  309. const T = Ti(U) ? { ...U } : U;
  310. l.push(
  311. ...a.flatMap((L) => t.map((d) => _(E, L, d, T)))
  312. );
  313. },
  314. { immediate: !0, flush: "post" }
  315. ), z = () => {
  316. x(), o();
  317. };
  318. return Mi(z), z;
  319. }
  320. function ht(e, r) {
  321. return arguments.length === 1 ? Number.parseInt((Math.random() * e + 1).toString(), 10) : Number.parseInt((Math.random() * (r - e + 1) + e).toString(), 10);
  322. }
  323. function zi(e, r) {
  324. const a = window.MutationObserver, t = new a(r);
  325. return t.observe(e, { attributes: !0, attributeFilter: ["style"], attributeOldValue: !0 }), t;
  326. }
  327. function Dt(e, r) {
  328. const a = Math.abs(e[0] - r[0]), t = Math.abs(e[1] - r[1]);
  329. return Math.sqrt(a * a + t * t);
  330. }
  331. function et(e, r, a, t) {
  332. return [e + Math.cos(t) * a, r + Math.sin(t) * a];
  333. }
  334. function qi(e) {
  335. return e.filter((r) => typeof r == "number");
  336. }
  337. function Ii(e) {
  338. return e = qi(e), e.reduce((r, a) => r + a, 0);
  339. }
  340. function Hi(e, r) {
  341. const a = Math.abs(e.x - r.x), t = Math.abs(e.y - r.y);
  342. return Math.sqrt(a * a + t * t);
  343. }
  344. function hn(e) {
  345. const a = Array.from({ length: e.length - 1 }).fill(0).map((t, n) => [e[n], e[n + 1]]).map((t) => Hi(t[0], t[1]));
  346. return Ii(a);
  347. }
  348. function Vi(e) {
  349. return `${e.x},${e.y}`;
  350. }
  351. function vn(e) {
  352. return e.map(Vi).join(" ");
  353. }
  354. function He(e) {
  355. return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, (r) => {
  356. const a = Math.random() * 16 | 0;
  357. return (r === "x" ? a : a & 3 | 8).toString(16);
  358. });
  359. }
  360. function Ce(e, r) {
  361. for (const a in r) {
  362. if (e[a] && typeof e[a] == "object") {
  363. Ce(e[a], r[a]);
  364. continue;
  365. }
  366. if (typeof r[a] == "object") {
  367. e[a] = _e(r[a]);
  368. continue;
  369. }
  370. e[a] = r[a];
  371. }
  372. return e;
  373. }
  374. function _e(e, r) {
  375. if (!e)
  376. return e;
  377. const a = Array.isArray(e) ? [] : {};
  378. if (e && typeof e == "object")
  379. for (const t in e)
  380. Object.prototype.hasOwnProperty.call(e, t) && (e[t] && typeof e[t] == "object" ? a[t] = _e(e[t]) : a[t] = e[t]);
  381. return a;
  382. }
  383. function xe(e, r, a) {
  384. const t = me(0), n = me(0);
  385. let l, o = null, _ = null;
  386. const x = (L = !0) => new Promise((d) => {
  387. Bt(() => {
  388. _ = e.value, t.value = e.value ? e.value.clientWidth : 0, n.value = e.value ? e.value.clientHeight : 0, e.value ? (!t.value || !n.value) && console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!") : console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"), typeof r == "function" && L && r(), d(!0);
  389. });
  390. }), z = () => {
  391. l = Ni(x, 200);
  392. }, E = () => {
  393. o = zi(_, l), Ei(window, "resize", l);
  394. }, U = () => {
  395. o && (o.disconnect(), o.takeRecords(), o = null);
  396. }, T = async () => {
  397. await x(!1), z(), E(), typeof a == "function" && a();
  398. };
  399. return Re(() => {
  400. T();
  401. }), Ft(() => {
  402. U();
  403. }), Ia(T), Ha(U), {
  404. width: t,
  405. height: n,
  406. initWH: x
  407. };
  408. }
  409. const Ui = ["width", "height"], Xi = ["d", "fill"], Qi = ["fill", "x", "y"], Yi = ["xlink:href", "width", "height", "x", "y"], Ki = ["fill", "x", "y"], Ji = {
  410. __name: "index",
  411. props: {
  412. config: {
  413. type: Object,
  414. default: () => ({})
  415. }
  416. },
  417. setup(e) {
  418. pt((L) => ({
  419. "51c9737a": i(o)
  420. }));
  421. const r = e, a = me(null), { width: t, height: n } = xe(a, x, _), l = Pe({
  422. defaultConfig: {
  423. /**
  424. * @description Chart data
  425. * @type {Array<object>}
  426. * @default data = []
  427. */
  428. data: [],
  429. /**
  430. * @description Chart img
  431. * @type {Array<string>}
  432. * @default img = []
  433. */
  434. img: [],
  435. /**
  436. * @description Chart font size
  437. * @type {number}
  438. * @default fontSize = 12
  439. */
  440. fontSize: 12,
  441. /**
  442. * @description Img side length
  443. * @type {number}
  444. * @default imgSideLength = 30
  445. */
  446. imgSideLength: 30,
  447. /**
  448. * @description Column color
  449. * @type {string}
  450. * @default columnColor = 'rgba(0, 194, 255, 0.4)'
  451. */
  452. columnColor: "rgba(0, 194, 255, 0.4)",
  453. /**
  454. * @description Text color
  455. * @type {string}
  456. * @default textColor = '#fff'
  457. */
  458. textColor: "#fff",
  459. /**
  460. * @description Show value
  461. * @type {boolean}
  462. * @default showValue = false
  463. */
  464. showValue: !1,
  465. /**
  466. * @description Auto sort by value
  467. * @type {boolean}
  468. * @default sort = true
  469. */
  470. sort: !0
  471. },
  472. mergedConfig: null,
  473. column: []
  474. }), o = be(() => `${r.config.fontSize ? r.config.fontSize : l.defaultConfig.fontSize}px`);
  475. ke(() => r.config, () => {
  476. z();
  477. }, {
  478. deep: !0
  479. });
  480. function _() {
  481. z();
  482. }
  483. function x() {
  484. z();
  485. }
  486. function z() {
  487. E(), U(), T();
  488. }
  489. function E() {
  490. l.mergedConfig = Ce(_e(l.defaultConfig), r.config || {});
  491. }
  492. function U() {
  493. let { data: L } = l.mergedConfig;
  494. const { sort: d } = l.mergedConfig;
  495. L = _e(L), d && L.sort(({ value: W }, { value: q }) => W > q ? -1 : W < q ? 1 : 0);
  496. const B = Math.max(...L.map((W) => W.value));
  497. L = L.map((W) => ({
  498. ...W,
  499. percent: B === 0 ? 0 : W.value / B
  500. })), l.mergedConfig.data = L;
  501. }
  502. function T() {
  503. const { imgSideLength: L, fontSize: d, data: B } = l.mergedConfig, W = B.length, q = t.value / (W + 1), G = n.value - L - d - 5, m = n.value - d - 5;
  504. l.column = B.map((y, f) => {
  505. const { percent: D } = y, k = q * (f + 1), C = q * f, $ = q * (f + 2), c = m - G * D, M = G * D * 0.6 + c, A = `
  506. M${C}, ${m}
  507. Q${k}, ${M} ${k},${c}
  508. M${k},${c}
  509. Q${k}, ${M} ${$},${m}
  510. L${C}, ${m}
  511. Z
  512. `, p = (m + c) / 2 + d / 2;
  513. return {
  514. ...y,
  515. d: A,
  516. x: k,
  517. y: c,
  518. textY: p
  519. };
  520. });
  521. }
  522. return (L, d) => (le(), se("div", {
  523. ref_key: "conicalColumnChart",
  524. ref: a,
  525. class: "dv-conical-column-chart"
  526. }, [
  527. (le(), se("svg", {
  528. width: i(t),
  529. height: i(n)
  530. }, [
  531. (le(!0), se(Ae, null, Se(i(l).column, (B, W) => (le(), se("g", { key: W }, [
  532. ae("path", {
  533. d: B.d,
  534. fill: i(l).mergedConfig.columnColor
  535. }, null, 8, Xi),
  536. ae("text", {
  537. fill: i(l).mergedConfig.textColor,
  538. x: B.x,
  539. y: i(n) - 4
  540. }, We(B.name), 9, Qi),
  541. i(l).mergedConfig.img.length ? (le(), se("image", {
  542. key: 0,
  543. "xlink:href": i(l).mergedConfig.img[W % i(l).mergedConfig.img.length],
  544. width: i(l).mergedConfig.imgSideLength,
  545. height: i(l).mergedConfig.imgSideLength,
  546. x: B.x - i(l).mergedConfig.imgSideLength / 2,
  547. y: B.y - i(l).mergedConfig.imgSideLength
  548. }, null, 8, Yi)) : $e("", !0),
  549. i(l).mergedConfig.showValue ? (le(), se("text", {
  550. key: 1,
  551. fill: i(l).mergedConfig.textColor,
  552. x: B.x,
  553. y: B.textY
  554. }, We(B.value), 9, Ki)) : $e("", !0)
  555. ]))), 128))
  556. ], 8, Ui))
  557. ], 512));
  558. }
  559. }, qt = {
  560. install(e) {
  561. e.component("DvConicalColumnChart", Ji);
  562. }
  563. }, Zi = ["id"], eo = ["offset", "stop-color"], to = ["id", "x2"], ro = ["offset", "stop-color"], no = ["x", "y", "rx", "ry", "stroke-width", "stroke", "width", "height"], ao = ["stroke-width", "stroke-dasharray", "stroke", "points"], io = ["stroke", "fill", "x", "y"], oo = {
  564. __name: "index",
  565. props: {
  566. config: {
  567. type: Object,
  568. default: () => ({})
  569. }
  570. },
  571. setup(e) {
  572. const r = e, a = He(), t = me(null), n = Pe({
  573. gradientId1: `percent-pond-gradientId1-${a}`,
  574. gradientId2: `percent-pond-gradientId2-${a}`,
  575. width: 0,
  576. height: 0,
  577. defaultConfig: {
  578. /**
  579. * @description Value
  580. * @type {number}
  581. * @default value = 0
  582. */
  583. value: 0,
  584. /**
  585. * @description Colors (hex|rgb|rgba|color keywords)
  586. * @type {Array<string>}
  587. * @default colors = ['#00BAFF', '#3DE7C9']
  588. * @example colors = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
  589. */
  590. colors: ["#3DE7C9", "#00BAFF"],
  591. /**
  592. * @description Border width
  593. * @type {number}
  594. * @default borderWidth = 3
  595. */
  596. borderWidth: 3,
  597. /**
  598. * @description Gap between border and pond
  599. * @type {number}
  600. * @default borderGap = 3
  601. */
  602. borderGap: 3,
  603. /**
  604. * @description Line dash
  605. * @type {Array<number>}
  606. * @default lineDash = [5, 1]
  607. */
  608. lineDash: [5, 1],
  609. /**
  610. * @description Text color
  611. * @type {string}
  612. * @default textColor = '#fff'
  613. */
  614. textColor: "#fff",
  615. /**
  616. * @description Border radius
  617. * @type {number}
  618. * @default borderRadius = 5
  619. */
  620. borderRadius: 5,
  621. /**
  622. * @description Local Gradient
  623. * @type {boolean}
  624. * @default localGradient = false
  625. * @example localGradient = false | true
  626. */
  627. localGradient: !1,
  628. /**
  629. * @description Formatter
  630. * @type {string}
  631. * @default formatter = '{value}%'
  632. */
  633. formatter: "{value}%"
  634. },
  635. mergedConfig: null
  636. }), l = be(() => {
  637. if (!n.mergedConfig)
  638. return 0;
  639. const { borderWidth: W } = n.mergedConfig;
  640. return n.width - W;
  641. }), o = be(() => {
  642. if (!n.mergedConfig)
  643. return 0;
  644. const { borderWidth: W } = n.mergedConfig;
  645. return n.height - W;
  646. }), _ = be(() => {
  647. const W = n.height / 2;
  648. if (!n.mergedConfig)
  649. return `0, ${W} 0, ${W}`;
  650. const { borderWidth: q, borderGap: G, value: m } = n.mergedConfig, y = (n.width - (q + G) * 2) / 100 * m;
  651. return `
  652. ${q + G}, ${W}
  653. ${q + G + y}, ${W + 1e-3}
  654. `;
  655. }), x = be(() => {
  656. if (!n.mergedConfig)
  657. return 0;
  658. const { borderWidth: W, borderGap: q } = n.mergedConfig;
  659. return n.height - (W + q) * 2;
  660. }), z = be(() => {
  661. if (!n.mergedConfig)
  662. return [];
  663. const { colors: W } = n.mergedConfig, G = 100 / (W.length - 1);
  664. return W.map((m, y) => [G * y, m]);
  665. }), E = be(() => n.mergedConfig && n.mergedConfig.localGradient ? n.gradientId1 : n.gradientId2), U = be(() => {
  666. if (!n.mergedConfig)
  667. return "100%";
  668. const { value: W } = n.mergedConfig;
  669. return `${200 - W}%`;
  670. }), T = be(() => {
  671. if (!n.mergedConfig)
  672. return "";
  673. const { value: W, formatter: q } = n.mergedConfig;
  674. return q.replace("{value}", W);
  675. });
  676. ke(() => r.config, () => {
  677. B();
  678. }, {
  679. deep: !0
  680. }), Re(() => {
  681. L();
  682. });
  683. async function L() {
  684. await d(), r.config && B();
  685. }
  686. async function d() {
  687. await Bt();
  688. const { clientWidth: W, clientHeight: q } = t.value;
  689. n.width = W, n.height = q;
  690. }
  691. function B() {
  692. n.mergedConfig = Ce(_e(n.defaultConfig), r.config || {});
  693. }
  694. return (W, q) => (le(), se("div", {
  695. ref_key: "percentPond",
  696. ref: t,
  697. class: "dv-percent-pond"
  698. }, [
  699. (le(), se("svg", null, [
  700. ae("defs", null, [
  701. ae("linearGradient", {
  702. id: i(n).gradientId1,
  703. x1: "0%",
  704. y1: "0%",
  705. x2: "100%",
  706. y2: "0%"
  707. }, [
  708. (le(!0), se(Ae, null, Se(i(z), (G) => (le(), se("stop", {
  709. key: G[0],
  710. offset: `${G[0]}%`,
  711. "stop-color": G[1]
  712. }, null, 8, eo))), 128))
  713. ], 8, Zi),
  714. ae("linearGradient", {
  715. id: i(n).gradientId2,
  716. x1: "0%",
  717. y1: "0%",
  718. x2: i(U),
  719. y2: "0%"
  720. }, [
  721. (le(!0), se(Ae, null, Se(i(z), (G) => (le(), se("stop", {
  722. key: G[0],
  723. offset: `${G[0]}%`,
  724. "stop-color": G[1]
  725. }, null, 8, ro))), 128))
  726. ], 8, to)
  727. ]),
  728. ae("rect", {
  729. x: i(n).mergedConfig ? i(n).mergedConfig.borderWidth / 2 : "0",
  730. y: i(n).mergedConfig ? i(n).mergedConfig.borderWidth / 2 : "0",
  731. rx: i(n).mergedConfig ? i(n).mergedConfig.borderRadius : "0",
  732. ry: i(n).mergedConfig ? i(n).mergedConfig.borderRadius : "0",
  733. fill: "transparent",
  734. "stroke-width": i(n).mergedConfig ? i(n).mergedConfig.borderWidth : "0",
  735. stroke: `url(#${i(n).gradientId1})`,
  736. width: i(l) > 0 ? i(l) : 0,
  737. height: i(o) > 0 ? i(o) : 0
  738. }, null, 8, no),
  739. ae("polyline", {
  740. "stroke-width": i(x),
  741. "stroke-dasharray": i(n).mergedConfig ? i(n).mergedConfig.lineDash.join(",") : "0",
  742. stroke: `url(#${i(E)})`,
  743. points: i(_)
  744. }, null, 8, ao),
  745. ae("text", {
  746. stroke: i(n).mergedConfig ? i(n).mergedConfig.textColor : "#fff",
  747. fill: i(n).mergedConfig ? i(n).mergedConfig.textColor : "#fff",
  748. x: i(n).width / 2,
  749. y: i(n).height / 2
  750. }, We(i(T)), 9, io)
  751. ]))
  752. ], 512));
  753. }
  754. }, It = {
  755. install(e) {
  756. e.component("DvPercentPond", oo);
  757. }
  758. };
  759. function Aa(e) {
  760. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  761. }
  762. function lo(e) {
  763. if (e.__esModule) return e;
  764. var r = e.default;
  765. if (typeof r == "function") {
  766. var a = function t() {
  767. return this instanceof t ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
  768. };
  769. a.prototype = r.prototype;
  770. } else a = {};
  771. return Object.defineProperty(a, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
  772. var n = Object.getOwnPropertyDescriptor(e, t);
  773. Object.defineProperty(a, t, n.get ? n : {
  774. enumerable: !0,
  775. get: function() {
  776. return e[t];
  777. }
  778. });
  779. }), a;
  780. }
  781. var jt = {}, La = { exports: {} };
  782. (function(e) {
  783. function r(a) {
  784. return a && a.__esModule ? a : {
  785. default: a
  786. };
  787. }
  788. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  789. })(La);
  790. var we = La.exports, Ht = {}, Vt = { exports: {} }, Ut = { exports: {} }, Xt = { exports: {} }, pn;
  791. function Be() {
  792. return pn || (pn = 1, function(e) {
  793. function r(a) {
  794. "@babel/helpers - typeof";
  795. return e.exports = r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
  796. return typeof t;
  797. } : function(t) {
  798. return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
  799. }, e.exports.__esModule = !0, e.exports.default = e.exports, r(a);
  800. }
  801. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  802. }(Xt)), Xt.exports;
  803. }
  804. var Qt = { exports: {} }, gn;
  805. function so() {
  806. return gn || (gn = 1, function(e) {
  807. var r = Be().default;
  808. function a(t, n) {
  809. if (r(t) != "object" || !t) return t;
  810. var l = t[Symbol.toPrimitive];
  811. if (l !== void 0) {
  812. var o = l.call(t, n || "default");
  813. if (r(o) != "object") return o;
  814. throw new TypeError("@@toPrimitive must return a primitive value.");
  815. }
  816. return (n === "string" ? String : Number)(t);
  817. }
  818. e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
  819. }(Qt)), Qt.exports;
  820. }
  821. var mn;
  822. function uo() {
  823. return mn || (mn = 1, function(e) {
  824. var r = Be().default, a = so();
  825. function t(n) {
  826. var l = a(n, "string");
  827. return r(l) == "symbol" ? l : String(l);
  828. }
  829. e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
  830. }(Ut)), Ut.exports;
  831. }
  832. var yn;
  833. function Ve() {
  834. return yn || (yn = 1, function(e) {
  835. var r = uo();
  836. function a(t, n, l) {
  837. return n = r(n), n in t ? Object.defineProperty(t, n, {
  838. value: l,
  839. enumerable: !0,
  840. configurable: !0,
  841. writable: !0
  842. }) : t[n] = l, t;
  843. }
  844. e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
  845. }(Vt)), Vt.exports;
  846. }
  847. var Yt = { exports: {} }, Kt = { exports: {} }, Jt = { exports: {} }, bn;
  848. function Sa() {
  849. return bn || (bn = 1, function(e) {
  850. function r(a, t) {
  851. (t == null || t > a.length) && (t = a.length);
  852. for (var n = 0, l = new Array(t); n < t; n++) l[n] = a[n];
  853. return l;
  854. }
  855. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  856. }(Jt)), Jt.exports;
  857. }
  858. var xn;
  859. function co() {
  860. return xn || (xn = 1, function(e) {
  861. var r = Sa();
  862. function a(t) {
  863. if (Array.isArray(t)) return r(t);
  864. }
  865. e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
  866. }(Kt)), Kt.exports;
  867. }
  868. var Zt = { exports: {} }, Cn;
  869. function fo() {
  870. return Cn || (Cn = 1, function(e) {
  871. function r(a) {
  872. if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
  873. }
  874. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  875. }(Zt)), Zt.exports;
  876. }
  877. var er = { exports: {} }, $n;
  878. function Oa() {
  879. return $n || ($n = 1, function(e) {
  880. var r = Sa();
  881. function a(t, n) {
  882. if (t) {
  883. if (typeof t == "string") return r(t, n);
  884. var l = Object.prototype.toString.call(t).slice(8, -1);
  885. if (l === "Object" && t.constructor && (l = t.constructor.name), l === "Map" || l === "Set") return Array.from(t);
  886. if (l === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)) return r(t, n);
  887. }
  888. }
  889. e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
  890. }(er)), er.exports;
  891. }
  892. var tr = { exports: {} }, _n;
  893. function ho() {
  894. return _n || (_n = 1, function(e) {
  895. function r() {
  896. throw new TypeError(`Invalid attempt to spread non-iterable instance.
  897. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  898. }
  899. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  900. }(tr)), tr.exports;
  901. }
  902. var Pn;
  903. function Te() {
  904. return Pn || (Pn = 1, function(e) {
  905. var r = co(), a = fo(), t = Oa(), n = ho();
  906. function l(o) {
  907. return r(o) || a(o) || t(o) || n();
  908. }
  909. e.exports = l, e.exports.__esModule = !0, e.exports.default = e.exports;
  910. }(Yt)), Yt.exports;
  911. }
  912. var rr = { exports: {} }, wn;
  913. function mt() {
  914. return wn || (wn = 1, function(e) {
  915. function r(a, t) {
  916. if (!(a instanceof t))
  917. throw new TypeError("Cannot call a class as a function");
  918. }
  919. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  920. }(rr)), rr.exports;
  921. }
  922. const yt = /* @__PURE__ */ lo(ri);
  923. var nr = {}, ar = {}, ir = { exports: {} }, or = { exports: {} }, kn;
  924. function vo() {
  925. return kn || (kn = 1, function(e) {
  926. function r(a) {
  927. if (Array.isArray(a)) return a;
  928. }
  929. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  930. }(or)), or.exports;
  931. }
  932. var lr = { exports: {} }, An;
  933. function po() {
  934. return An || (An = 1, function(e) {
  935. function r(a, t) {
  936. var n = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
  937. if (n != null) {
  938. var l, o, _, x, z = [], E = !0, U = !1;
  939. try {
  940. if (_ = (n = n.call(a)).next, t === 0) {
  941. if (Object(n) !== n) return;
  942. E = !1;
  943. } else for (; !(E = (l = _.call(n)).done) && (z.push(l.value), z.length !== t); E = !0) ;
  944. } catch (T) {
  945. U = !0, o = T;
  946. } finally {
  947. try {
  948. if (!E && n.return != null && (x = n.return(), Object(x) !== x)) return;
  949. } finally {
  950. if (U) throw o;
  951. }
  952. }
  953. return z;
  954. }
  955. }
  956. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  957. }(lr)), lr.exports;
  958. }
  959. var sr = { exports: {} }, Ln;
  960. function go() {
  961. return Ln || (Ln = 1, function(e) {
  962. function r() {
  963. throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  964. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
  965. }
  966. e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
  967. }(sr)), sr.exports;
  968. }
  969. var Sn;
  970. function Ne() {
  971. return Sn || (Sn = 1, function(e) {
  972. var r = vo(), a = po(), t = Oa(), n = go();
  973. function l(o, _) {
  974. return r(o) || a(o, _) || t(o, _) || n();
  975. }
  976. e.exports = l, e.exports.__esModule = !0, e.exports.default = e.exports;
  977. }(ir)), ir.exports;
  978. }
  979. var On;
  980. function mo() {
  981. return On || (On = 1, function(e) {
  982. var r = we;
  983. Object.defineProperty(e, "__esModule", {
  984. value: !0
  985. }), e.bezierCurveToPolyline = q, e.getBezierCurveLength = G, e.default = void 0;
  986. var a = r(Ne()), t = r(Te()), n = Math.sqrt, l = Math.pow, o = Math.ceil, _ = Math.abs, x = 50;
  987. function z(y) {
  988. var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5, D = y.length - 1, k = y[0], C = y[D][2], $ = y.slice(1), c = $.map(function(V, X) {
  989. var ee = X === 0 ? k : $[X - 1][2];
  990. return E.apply(void 0, [ee].concat((0, t.default)(V)));
  991. }), M = new Array(D).fill(x), A = d(c, M), p = W(A, c, $, f);
  992. return p.segmentPoints.push(C), p;
  993. }
  994. function E(y, f, D, k) {
  995. return function(C) {
  996. var $ = 1 - C, c = l($, 3), M = l($, 2), A = l(C, 3), p = l(C, 2);
  997. return [y[0] * c + 3 * f[0] * C * M + 3 * D[0] * p * $ + k[0] * A, y[1] * c + 3 * f[1] * C * M + 3 * D[1] * p * $ + k[1] * A];
  998. };
  999. }
  1000. function U(y, f) {
  1001. var D = (0, a.default)(y, 2), k = D[0], C = D[1], $ = (0, a.default)(f, 2), c = $[0], M = $[1];
  1002. return n(l(k - c, 2) + l(C - M, 2));
  1003. }
  1004. function T(y) {
  1005. return y.reduce(function(f, D) {
  1006. return f + D;
  1007. }, 0);
  1008. }
  1009. function L(y) {
  1010. return y.map(function(f, D) {
  1011. return new Array(f.length - 1).fill(0).map(function(k, C) {
  1012. return U(f[C], f[C + 1]);
  1013. });
  1014. });
  1015. }
  1016. function d(y, f) {
  1017. return y.map(function(D, k) {
  1018. var C = 1 / f[k];
  1019. return new Array(f[k]).fill("").map(function($, c) {
  1020. return D(c * C);
  1021. });
  1022. });
  1023. }
  1024. function B(y, f) {
  1025. return y.map(function(D) {
  1026. return D.map(function(k) {
  1027. return _(k - f);
  1028. });
  1029. }).map(function(D) {
  1030. return T(D);
  1031. }).reduce(function(D, k) {
  1032. return D + k;
  1033. }, 0);
  1034. }
  1035. function W(y, f, D, k) {
  1036. var C = 4, $ = 1, c = function() {
  1037. var p = y.reduce(function(Q, te) {
  1038. return Q + te.length;
  1039. }, 0);
  1040. y.forEach(function(Q, te) {
  1041. return Q.push(D[te][2]);
  1042. });
  1043. var V = L(y), X = V.reduce(function(Q, te) {
  1044. return Q + te.length;
  1045. }, 0), ee = V.map(function(Q) {
  1046. return T(Q);
  1047. }), u = T(ee), I = u / X, g = B(V, I);
  1048. if (g <= k) return "break";
  1049. p = o(I / k * p * 1.1);
  1050. var v = ee.map(function(Q) {
  1051. return o(Q / u * p);
  1052. });
  1053. y = d(f, v), p = y.reduce(function(Q, te) {
  1054. return Q + te.length;
  1055. }, 0);
  1056. var S = JSON.parse(JSON.stringify(y));
  1057. S.forEach(function(Q, te) {
  1058. return Q.push(D[te][2]);
  1059. }), V = L(S), X = V.reduce(function(Q, te) {
  1060. return Q + te.length;
  1061. }, 0), ee = V.map(function(Q) {
  1062. return T(Q);
  1063. }), u = T(ee), I = u / X;
  1064. var J = 1 / p / 10;
  1065. f.forEach(function(Q, te) {
  1066. for (var oe = v[te], ve = new Array(oe).fill("").map(function(w, O) {
  1067. return O / v[te];
  1068. }), Y = 0; Y < C; Y++)
  1069. for (var ie = L([y[te]])[0], ce = ie.map(function(w) {
  1070. return w - I;
  1071. }), fe = 0, N = 0; N < oe; N++) {
  1072. if (N === 0) return;
  1073. fe += ce[N - 1], ve[N] -= J * fe, ve[N] > 1 && (ve[N] = 1), ve[N] < 0 && (ve[N] = 0), y[te][N] = Q(ve[N]);
  1074. }
  1075. }), C *= 4, $++;
  1076. };
  1077. do {
  1078. var M = c();
  1079. if (M === "break") break;
  1080. } while (C <= 1025);
  1081. return y = y.reduce(function(A, p) {
  1082. return A.concat(p);
  1083. }, []), {
  1084. segmentPoints: y,
  1085. cycles: $,
  1086. rounds: C
  1087. };
  1088. }
  1089. function q(y) {
  1090. var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5;
  1091. if (!y)
  1092. return console.error("bezierCurveToPolyline: Missing parameters!"), !1;
  1093. if (!(y instanceof Array))
  1094. return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"), !1;
  1095. if (typeof f != "number")
  1096. return console.error("bezierCurveToPolyline: Parameter precision must be a number!"), !1;
  1097. var D = z(y, f), k = D.segmentPoints;
  1098. return k;
  1099. }
  1100. function G(y) {
  1101. var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5;
  1102. if (!y)
  1103. return console.error("getBezierCurveLength: Missing parameters!"), !1;
  1104. if (!(y instanceof Array))
  1105. return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"), !1;
  1106. if (typeof f != "number")
  1107. return console.error("getBezierCurveLength: Parameter precision must be a number!"), !1;
  1108. var D = z(y, f), k = D.segmentPoints, C = L([k])[0], $ = T(C);
  1109. return $;
  1110. }
  1111. var m = q;
  1112. e.default = m;
  1113. }(ar)), ar;
  1114. }
  1115. var ur = {}, Gn;
  1116. function yo() {
  1117. return Gn || (Gn = 1, function(e) {
  1118. var r = we;
  1119. Object.defineProperty(e, "__esModule", {
  1120. value: !0
  1121. }), e.default = void 0;
  1122. var a = r(Ne()), t = r(Te());
  1123. function n(z) {
  1124. var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0.25, T = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0.25;
  1125. if (!(z instanceof Array))
  1126. return console.error("polylineToBezierCurve: Parameter polyline must be an array!"), !1;
  1127. if (z.length <= 2)
  1128. return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"), !1;
  1129. var L = z[0], d = z.length - 1, B = new Array(d).fill(0).map(function(W, q) {
  1130. return [].concat((0, t.default)(l(z, q, E, U, T)), [z[q + 1]]);
  1131. });
  1132. return E && o(B, L), B.unshift(z[0]), B;
  1133. }
  1134. function l(z, E) {
  1135. var U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, T = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0.25, L = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0.25, d = z.length;
  1136. if (!(d < 3 || E >= d)) {
  1137. var B = E - 1;
  1138. B < 0 && (B = U ? d + B : 0);
  1139. var W = E + 1;
  1140. W >= d && (W = U ? W - d : d - 1);
  1141. var q = E + 2;
  1142. q >= d && (q = U ? q - d : d - 1);
  1143. var G = z[B], m = z[E], y = z[W], f = z[q];
  1144. return [[m[0] + T * (y[0] - G[0]), m[1] + T * (y[1] - G[1])], [y[0] - L * (f[0] - m[0]), y[1] - L * (f[1] - m[1])]];
  1145. }
  1146. }
  1147. function o(z, E) {
  1148. var U = z[0], T = z.slice(-1)[0];
  1149. return z.push([_(T[1], T[2]), _(U[0], E), E]), z;
  1150. }
  1151. function _(z, E) {
  1152. var U = (0, a.default)(z, 2), T = U[0], L = U[1], d = (0, a.default)(E, 2), B = d[0], W = d[1], q = B - T, G = W - L;
  1153. return [B + q, W + G];
  1154. }
  1155. var x = n;
  1156. e.default = x;
  1157. }(ur)), ur;
  1158. }
  1159. var Mn;
  1160. function cn() {
  1161. return Mn || (Mn = 1, function(e) {
  1162. var r = we;
  1163. Object.defineProperty(e, "__esModule", {
  1164. value: !0
  1165. }), Object.defineProperty(e, "bezierCurveToPolyline", {
  1166. enumerable: !0,
  1167. get: function() {
  1168. return a.bezierCurveToPolyline;
  1169. }
  1170. }), Object.defineProperty(e, "getBezierCurveLength", {
  1171. enumerable: !0,
  1172. get: function() {
  1173. return a.getBezierCurveLength;
  1174. }
  1175. }), Object.defineProperty(e, "polylineToBezierCurve", {
  1176. enumerable: !0,
  1177. get: function() {
  1178. return t.default;
  1179. }
  1180. }), e.default = void 0;
  1181. var a = mo(), t = r(yo()), n = {
  1182. bezierCurveToPolyline: a.bezierCurveToPolyline,
  1183. getBezierCurveLength: a.getBezierCurveLength,
  1184. polylineToBezierCurve: t.default
  1185. };
  1186. e.default = n;
  1187. }(nr)), nr;
  1188. }
  1189. var cr = {}, Rn;
  1190. function Fe() {
  1191. return Rn || (Rn = 1, function(e) {
  1192. var r = we;
  1193. Object.defineProperty(e, "__esModule", {
  1194. value: !0
  1195. }), e.deepClone = T, e.eliminateBlur = L, e.checkPointIsInCircle = d, e.getTwoPointDistance = B, e.checkPointIsInPolygon = W, e.checkPointIsInSector = q, e.checkPointIsNearPolyline = m, e.checkPointIsInRect = y, e.getRotatePointPos = f, e.getScalePointPos = D, e.getTranslatePointPos = k, e.getDistanceBetweenPointAndLine = C, e.getCircleRadianPoint = $, e.getRegularPolygonPoints = c, e.default = void 0;
  1196. var a = r(Te()), t = r(Ne()), n = r(Be()), l = Math.abs, o = Math.sqrt, _ = Math.sin, x = Math.cos, z = Math.max, E = Math.min, U = Math.PI;
  1197. function T(A) {
  1198. var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  1199. if (!A) return A;
  1200. var V = JSON.parse, X = JSON.stringify;
  1201. if (!p) return V(X(A));
  1202. var ee = A instanceof Array ? [] : {};
  1203. if (A && (0, n.default)(A) === "object")
  1204. for (var u in A)
  1205. A.hasOwnProperty(u) && (A[u] && (0, n.default)(A[u]) === "object" ? ee[u] = T(A[u], !0) : ee[u] = A[u]);
  1206. return ee;
  1207. }
  1208. function L(A) {
  1209. return A.map(function(p) {
  1210. var V = (0, t.default)(p, 2), X = V[0], ee = V[1];
  1211. return [parseInt(X) + 0.5, parseInt(ee) + 0.5];
  1212. });
  1213. }
  1214. function d(A, p, V, X) {
  1215. return B(A, [p, V]) <= X;
  1216. }
  1217. function B(A, p) {
  1218. var V = (0, t.default)(A, 2), X = V[0], ee = V[1], u = (0, t.default)(p, 2), I = u[0], g = u[1], v = l(X - I), S = l(ee - g);
  1219. return o(v * v + S * S);
  1220. }
  1221. function W(A, p) {
  1222. for (var V = 0, X = (0, t.default)(A, 2), ee = X[0], u = X[1], I = p.length, g = 1, v = p[0]; g <= I; g++) {
  1223. var S = p[g % I];
  1224. if (ee > E(v[0], S[0]) && ee <= z(v[0], S[0]) && u <= z(v[1], S[1]) && v[0] !== S[0]) {
  1225. var J = (ee - v[0]) * (S[1] - v[1]) / (S[0] - v[0]) + v[1];
  1226. (v[1] === S[1] || u <= J) && V++;
  1227. }
  1228. v = S;
  1229. }
  1230. return V % 2 === 1;
  1231. }
  1232. function q(A, p, V, X, ee, u, I) {
  1233. if (!A || B(A, [p, V]) > X) return !1;
  1234. if (!I) {
  1235. var g = T([u, ee]), v = (0, t.default)(g, 2);
  1236. ee = v[0], u = v[1];
  1237. }
  1238. var S = ee > u;
  1239. if (S) {
  1240. var J = [u, ee];
  1241. ee = J[0], u = J[1];
  1242. }
  1243. var Q = u - ee;
  1244. if (Q >= U * 2) return !0;
  1245. var te = (0, t.default)(A, 2), oe = te[0], ve = te[1], Y = $(p, V, X, ee), ie = (0, t.default)(Y, 2), ce = ie[0], fe = ie[1], N = $(p, V, X, u), w = (0, t.default)(N, 2), O = w[0], F = w[1], H = [oe - p, ve - V], re = [ce - p, fe - V], h = [O - p, F - V], j = Q > U;
  1246. if (j) {
  1247. var s = T([h, re]), b = (0, t.default)(s, 2);
  1248. re = b[0], h = b[1];
  1249. }
  1250. var P = G(re, H) && !G(h, H);
  1251. return j && (P = !P), S && (P = !P), P;
  1252. }
  1253. function G(A, p) {
  1254. var V = (0, t.default)(A, 2), X = V[0], ee = V[1], u = (0, t.default)(p, 2), I = u[0], g = u[1];
  1255. return -ee * I + X * g > 0;
  1256. }
  1257. function m(A, p, V) {
  1258. var X = V / 2, ee = p.map(function(g) {
  1259. var v = (0, t.default)(g, 2), S = v[0], J = v[1];
  1260. return [S, J - X];
  1261. }), u = p.map(function(g) {
  1262. var v = (0, t.default)(g, 2), S = v[0], J = v[1];
  1263. return [S, J + X];
  1264. }), I = [].concat((0, a.default)(ee), (0, a.default)(u.reverse()));
  1265. return W(A, I);
  1266. }
  1267. function y(A, p, V, X, ee) {
  1268. var u = (0, t.default)(A, 2), I = u[0], g = u[1];
  1269. return !(I < p || g < V || I > p + X || g > V + ee);
  1270. }
  1271. function f() {
  1272. var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, p = arguments.length > 1 ? arguments[1] : void 0, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [0, 0];
  1273. if (!p) return !1;
  1274. if (A % 360 === 0) return p;
  1275. var X = (0, t.default)(p, 2), ee = X[0], u = X[1], I = (0, t.default)(V, 2), g = I[0], v = I[1];
  1276. return A *= U / 180, [(ee - g) * x(A) - (u - v) * _(A) + g, (ee - g) * _(A) + (u - v) * x(A) + v];
  1277. }
  1278. function D() {
  1279. var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [1, 1], p = arguments.length > 1 ? arguments[1] : void 0, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [0, 0];
  1280. if (!p) return !1;
  1281. if (A === 1) return p;
  1282. var X = (0, t.default)(p, 2), ee = X[0], u = X[1], I = (0, t.default)(V, 2), g = I[0], v = I[1], S = (0, t.default)(A, 2), J = S[0], Q = S[1], te = ee - g, oe = u - v;
  1283. return [te * J + g, oe * Q + v];
  1284. }
  1285. function k(A, p) {
  1286. if (!A || !p) return !1;
  1287. var V = (0, t.default)(p, 2), X = V[0], ee = V[1], u = (0, t.default)(A, 2), I = u[0], g = u[1];
  1288. return [X + I, ee + g];
  1289. }
  1290. function C(A, p, V) {
  1291. if (!A || !p || !V) return !1;
  1292. var X = (0, t.default)(A, 2), ee = X[0], u = X[1], I = (0, t.default)(p, 2), g = I[0], v = I[1], S = (0, t.default)(V, 2), J = S[0], Q = S[1], te = Q - v, oe = g - J, ve = v * (J - g) - g * (Q - v), Y = l(te * ee + oe * u + ve), ie = o(te * te + oe * oe);
  1293. return Y / ie;
  1294. }
  1295. function $(A, p, V, X) {
  1296. return [A + x(X) * V, p + _(X) * V];
  1297. }
  1298. function c(A, p, V, X) {
  1299. var ee = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : U * -0.5, u = U * 2 / X, I = new Array(X).fill("").map(function(g, v) {
  1300. return v * u + ee;
  1301. });
  1302. return I.map(function(g) {
  1303. return $(A, p, V, g);
  1304. });
  1305. }
  1306. var M = {
  1307. deepClone: T,
  1308. eliminateBlur: L,
  1309. checkPointIsInCircle: d,
  1310. checkPointIsInPolygon: W,
  1311. checkPointIsInSector: q,
  1312. checkPointIsNearPolyline: m,
  1313. getTwoPointDistance: B,
  1314. getRotatePointPos: f,
  1315. getScalePointPos: D,
  1316. getTranslatePointPos: k,
  1317. getCircleRadianPoint: $,
  1318. getRegularPolygonPoints: c,
  1319. getDistanceBetweenPointAndLine: C
  1320. };
  1321. e.default = M;
  1322. }(cr)), cr;
  1323. }
  1324. var fr = {}, dr = {}, Dn;
  1325. function bo() {
  1326. return Dn || (Dn = 1, function(e) {
  1327. var r = we;
  1328. Object.defineProperty(e, "__esModule", {
  1329. value: !0
  1330. }), e.drawPolylinePath = t, e.drawBezierCurvePath = n, e.default = void 0;
  1331. var a = r(Te());
  1332. function t(o, _) {
  1333. var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
  1334. if (!o || _.length < 2) return !1;
  1335. x && o.beginPath(), _.forEach(function(E, U) {
  1336. return E && (U === 0 ? o.moveTo.apply(o, (0, a.default)(E)) : o.lineTo.apply(o, (0, a.default)(E)));
  1337. }), z && o.closePath();
  1338. }
  1339. function n(o, _) {
  1340. var x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, z = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, E = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
  1341. if (!o || !_) return !1;
  1342. z && o.beginPath(), x && o.moveTo.apply(o, (0, a.default)(x)), _.forEach(function(U) {
  1343. return U && o.bezierCurveTo.apply(o, (0, a.default)(U[0]).concat((0, a.default)(U[1]), (0, a.default)(U[2])));
  1344. }), E && o.closePath();
  1345. }
  1346. var l = {
  1347. drawPolylinePath: t,
  1348. drawBezierCurvePath: n
  1349. };
  1350. e.default = l;
  1351. }(dr)), dr;
  1352. }
  1353. var Tn;
  1354. function fn() {
  1355. return Tn || (Tn = 1, function(e) {
  1356. var r = we;
  1357. Object.defineProperty(e, "__esModule", {
  1358. value: !0
  1359. }), e.extendNewGraph = D, e.default = e.text = e.bezierCurve = e.smoothline = e.polyline = e.regPolygon = e.sector = e.arc = e.ring = e.rect = e.ellipse = e.circle = void 0;
  1360. var a = r(Te()), t = r(Ne()), n = r(cn()), l = Fe(), o = bo(), _ = n.default.polylineToBezierCurve, x = n.default.bezierCurveToPolyline, z = {
  1361. shape: {
  1362. rx: 0,
  1363. ry: 0,
  1364. r: 0
  1365. },
  1366. validator: function(C) {
  1367. var $ = C.shape, c = $.rx, M = $.ry, A = $.r;
  1368. return typeof c != "number" || typeof M != "number" || typeof A != "number" ? (console.error("Circle shape configuration is abnormal!"), !1) : !0;
  1369. },
  1370. draw: function(C, $) {
  1371. var c = C.ctx, M = $.shape;
  1372. c.beginPath();
  1373. var A = M.rx, p = M.ry, V = M.r;
  1374. c.arc(A, p, V > 0 ? V : 0.01, 0, Math.PI * 2), c.fill(), c.stroke(), c.closePath();
  1375. },
  1376. hoverCheck: function(C, $) {
  1377. var c = $.shape, M = c.rx, A = c.ry, p = c.r;
  1378. return (0, l.checkPointIsInCircle)(C, M, A, p);
  1379. },
  1380. setGraphCenter: function(C, $) {
  1381. var c = $.shape, M = $.style, A = c.rx, p = c.ry;
  1382. M.graphCenter = [A, p];
  1383. },
  1384. move: function(C, $) {
  1385. var c = C.movementX, M = C.movementY, A = $.shape;
  1386. this.attr("shape", {
  1387. rx: A.rx + c,
  1388. ry: A.ry + M
  1389. });
  1390. }
  1391. };
  1392. e.circle = z;
  1393. var E = {
  1394. shape: {
  1395. rx: 0,
  1396. ry: 0,
  1397. hr: 0,
  1398. vr: 0
  1399. },
  1400. validator: function(C) {
  1401. var $ = C.shape, c = $.rx, M = $.ry, A = $.hr, p = $.vr;
  1402. return typeof c != "number" || typeof M != "number" || typeof A != "number" || typeof p != "number" ? (console.error("Ellipse shape configuration is abnormal!"), !1) : !0;
  1403. },
  1404. draw: function(C, $) {
  1405. var c = C.ctx, M = $.shape;
  1406. c.beginPath();
  1407. var A = M.rx, p = M.ry, V = M.hr, X = M.vr;
  1408. c.ellipse(A, p, V > 0 ? V : 0.01, X > 0 ? X : 0.01, 0, 0, Math.PI * 2), c.fill(), c.stroke(), c.closePath();
  1409. },
  1410. hoverCheck: function(C, $) {
  1411. var c = $.shape, M = c.rx, A = c.ry, p = c.hr, V = c.vr, X = Math.max(p, V), ee = Math.min(p, V), u = Math.sqrt(X * X - ee * ee), I = [M - u, A], g = [M + u, A], v = (0, l.getTwoPointDistance)(C, I) + (0, l.getTwoPointDistance)(C, g);
  1412. return v <= 2 * X;
  1413. },
  1414. setGraphCenter: function(C, $) {
  1415. var c = $.shape, M = $.style, A = c.rx, p = c.ry;
  1416. M.graphCenter = [A, p];
  1417. },
  1418. move: function(C, $) {
  1419. var c = C.movementX, M = C.movementY, A = $.shape;
  1420. this.attr("shape", {
  1421. rx: A.rx + c,
  1422. ry: A.ry + M
  1423. });
  1424. }
  1425. };
  1426. e.ellipse = E;
  1427. var U = {
  1428. shape: {
  1429. x: 0,
  1430. y: 0,
  1431. w: 0,
  1432. h: 0
  1433. },
  1434. validator: function(C) {
  1435. var $ = C.shape, c = $.x, M = $.y, A = $.w, p = $.h;
  1436. return typeof c != "number" || typeof M != "number" || typeof A != "number" || typeof p != "number" ? (console.error("Rect shape configuration is abnormal!"), !1) : !0;
  1437. },
  1438. draw: function(C, $) {
  1439. var c = C.ctx, M = $.shape;
  1440. c.beginPath();
  1441. var A = M.x, p = M.y, V = M.w, X = M.h;
  1442. c.rect(A, p, V, X), c.fill(), c.stroke(), c.closePath();
  1443. },
  1444. hoverCheck: function(C, $) {
  1445. var c = $.shape, M = c.x, A = c.y, p = c.w, V = c.h;
  1446. return (0, l.checkPointIsInRect)(C, M, A, p, V);
  1447. },
  1448. setGraphCenter: function(C, $) {
  1449. var c = $.shape, M = $.style, A = c.x, p = c.y, V = c.w, X = c.h;
  1450. M.graphCenter = [A + V / 2, p + X / 2];
  1451. },
  1452. move: function(C, $) {
  1453. var c = C.movementX, M = C.movementY, A = $.shape;
  1454. this.attr("shape", {
  1455. x: A.x + c,
  1456. y: A.y + M
  1457. });
  1458. }
  1459. };
  1460. e.rect = U;
  1461. var T = {
  1462. shape: {
  1463. rx: 0,
  1464. ry: 0,
  1465. r: 0
  1466. },
  1467. validator: function(C) {
  1468. var $ = C.shape, c = $.rx, M = $.ry, A = $.r;
  1469. return typeof c != "number" || typeof M != "number" || typeof A != "number" ? (console.error("Ring shape configuration is abnormal!"), !1) : !0;
  1470. },
  1471. draw: function(C, $) {
  1472. var c = C.ctx, M = $.shape;
  1473. c.beginPath();
  1474. var A = M.rx, p = M.ry, V = M.r;
  1475. c.arc(A, p, V > 0 ? V : 0.01, 0, Math.PI * 2), c.stroke(), c.closePath();
  1476. },
  1477. hoverCheck: function(C, $) {
  1478. var c = $.shape, M = $.style, A = c.rx, p = c.ry, V = c.r, X = M.lineWidth, ee = X / 2, u = V - ee, I = V + ee, g = (0, l.getTwoPointDistance)(C, [A, p]);
  1479. return g >= u && g <= I;
  1480. },
  1481. setGraphCenter: function(C, $) {
  1482. var c = $.shape, M = $.style, A = c.rx, p = c.ry;
  1483. M.graphCenter = [A, p];
  1484. },
  1485. move: function(C, $) {
  1486. var c = C.movementX, M = C.movementY, A = $.shape;
  1487. this.attr("shape", {
  1488. rx: A.rx + c,
  1489. ry: A.ry + M
  1490. });
  1491. }
  1492. };
  1493. e.ring = T;
  1494. var L = {
  1495. shape: {
  1496. rx: 0,
  1497. ry: 0,
  1498. r: 0,
  1499. startAngle: 0,
  1500. endAngle: 0,
  1501. clockWise: !0
  1502. },
  1503. validator: function(C) {
  1504. var $ = C.shape, c = ["rx", "ry", "r", "startAngle", "endAngle"];
  1505. return c.find(function(M) {
  1506. return typeof $[M] != "number";
  1507. }) ? (console.error("Arc shape configuration is abnormal!"), !1) : !0;
  1508. },
  1509. draw: function(C, $) {
  1510. var c = C.ctx, M = $.shape;
  1511. c.beginPath();
  1512. var A = M.rx, p = M.ry, V = M.r, X = M.startAngle, ee = M.endAngle, u = M.clockWise;
  1513. c.arc(A, p, V > 0 ? V : 1e-3, X, ee, !u), c.stroke(), c.closePath();
  1514. },
  1515. hoverCheck: function(C, $) {
  1516. var c = $.shape, M = $.style, A = c.rx, p = c.ry, V = c.r, X = c.startAngle, ee = c.endAngle, u = c.clockWise, I = M.lineWidth, g = I / 2, v = V - g, S = V + g;
  1517. return !(0, l.checkPointIsInSector)(C, A, p, v, X, ee, u) && (0, l.checkPointIsInSector)(C, A, p, S, X, ee, u);
  1518. },
  1519. setGraphCenter: function(C, $) {
  1520. var c = $.shape, M = $.style, A = c.rx, p = c.ry;
  1521. M.graphCenter = [A, p];
  1522. },
  1523. move: function(C, $) {
  1524. var c = C.movementX, M = C.movementY, A = $.shape;
  1525. this.attr("shape", {
  1526. rx: A.rx + c,
  1527. ry: A.ry + M
  1528. });
  1529. }
  1530. };
  1531. e.arc = L;
  1532. var d = {
  1533. shape: {
  1534. rx: 0,
  1535. ry: 0,
  1536. r: 0,
  1537. startAngle: 0,
  1538. endAngle: 0,
  1539. clockWise: !0
  1540. },
  1541. validator: function(C) {
  1542. var $ = C.shape, c = ["rx", "ry", "r", "startAngle", "endAngle"];
  1543. return c.find(function(M) {
  1544. return typeof $[M] != "number";
  1545. }) ? (console.error("Sector shape configuration is abnormal!"), !1) : !0;
  1546. },
  1547. draw: function(C, $) {
  1548. var c = C.ctx, M = $.shape;
  1549. c.beginPath();
  1550. var A = M.rx, p = M.ry, V = M.r, X = M.startAngle, ee = M.endAngle, u = M.clockWise;
  1551. c.arc(A, p, V > 0 ? V : 0.01, X, ee, !u), c.lineTo(A, p), c.closePath(), c.stroke(), c.fill();
  1552. },
  1553. hoverCheck: function(C, $) {
  1554. var c = $.shape, M = c.rx, A = c.ry, p = c.r, V = c.startAngle, X = c.endAngle, ee = c.clockWise;
  1555. return (0, l.checkPointIsInSector)(C, M, A, p, V, X, ee);
  1556. },
  1557. setGraphCenter: function(C, $) {
  1558. var c = $.shape, M = $.style, A = c.rx, p = c.ry;
  1559. M.graphCenter = [A, p];
  1560. },
  1561. move: function(C, $) {
  1562. var c = C.movementX, M = C.movementY, A = $.shape, p = A.rx, V = A.ry;
  1563. this.attr("shape", {
  1564. rx: p + c,
  1565. ry: V + M
  1566. });
  1567. }
  1568. };
  1569. e.sector = d;
  1570. var B = {
  1571. shape: {
  1572. rx: 0,
  1573. ry: 0,
  1574. r: 0,
  1575. side: 0
  1576. },
  1577. validator: function(C) {
  1578. var $ = C.shape, c = $.side, M = ["rx", "ry", "r", "side"];
  1579. return M.find(function(A) {
  1580. return typeof $[A] != "number";
  1581. }) ? (console.error("RegPolygon shape configuration is abnormal!"), !1) : c < 3 ? (console.error("RegPolygon at least trigon!"), !1) : !0;
  1582. },
  1583. draw: function(C, $) {
  1584. var c = C.ctx, M = $.shape, A = $.cache;
  1585. c.beginPath();
  1586. var p = M.rx, V = M.ry, X = M.r, ee = M.side;
  1587. if (!A.points || A.rx !== p || A.ry !== V || A.r !== X || A.side !== ee) {
  1588. var u = (0, l.getRegularPolygonPoints)(p, V, X, ee);
  1589. Object.assign(A, {
  1590. points: u,
  1591. rx: p,
  1592. ry: V,
  1593. r: X,
  1594. side: ee
  1595. });
  1596. }
  1597. var I = A.points;
  1598. (0, o.drawPolylinePath)(c, I), c.closePath(), c.stroke(), c.fill();
  1599. },
  1600. hoverCheck: function(C, $) {
  1601. var c = $.cache, M = c.points;
  1602. return (0, l.checkPointIsInPolygon)(C, M);
  1603. },
  1604. setGraphCenter: function(C, $) {
  1605. var c = $.shape, M = $.style, A = c.rx, p = c.ry;
  1606. M.graphCenter = [A, p];
  1607. },
  1608. move: function(C, $) {
  1609. var c = C.movementX, M = C.movementY, A = $.shape, p = $.cache, V = A.rx, X = A.ry;
  1610. p.rx += c, p.ry += M, this.attr("shape", {
  1611. rx: V + c,
  1612. ry: X + M
  1613. }), p.points = p.points.map(function(ee) {
  1614. var u = (0, t.default)(ee, 2), I = u[0], g = u[1];
  1615. return [I + c, g + M];
  1616. });
  1617. }
  1618. };
  1619. e.regPolygon = B;
  1620. var W = {
  1621. shape: {
  1622. points: [],
  1623. close: !1
  1624. },
  1625. validator: function(C) {
  1626. var $ = C.shape, c = $.points;
  1627. return c instanceof Array ? !0 : (console.error("Polyline points should be an array!"), !1);
  1628. },
  1629. draw: function(C, $) {
  1630. var c = C.ctx, M = $.shape, A = $.style.lineWidth;
  1631. c.beginPath();
  1632. var p = M.points, V = M.close;
  1633. A === 1 && (p = (0, l.eliminateBlur)(p)), (0, o.drawPolylinePath)(c, p), V && (c.closePath(), c.fill()), c.stroke();
  1634. },
  1635. hoverCheck: function(C, $) {
  1636. var c = $.shape, M = $.style, A = c.points, p = c.close, V = M.lineWidth;
  1637. return p ? (0, l.checkPointIsInPolygon)(C, A) : (0, l.checkPointIsNearPolyline)(C, A, V);
  1638. },
  1639. setGraphCenter: function(C, $) {
  1640. var c = $.shape, M = $.style, A = c.points;
  1641. M.graphCenter = A[0];
  1642. },
  1643. move: function(C, $) {
  1644. var c = C.movementX, M = C.movementY, A = $.shape, p = A.points, V = p.map(function(X) {
  1645. var ee = (0, t.default)(X, 2), u = ee[0], I = ee[1];
  1646. return [u + c, I + M];
  1647. });
  1648. this.attr("shape", {
  1649. points: V
  1650. });
  1651. }
  1652. };
  1653. e.polyline = W;
  1654. var q = {
  1655. shape: {
  1656. points: [],
  1657. close: !1
  1658. },
  1659. validator: function(C) {
  1660. var $ = C.shape, c = $.points;
  1661. return c instanceof Array ? !0 : (console.error("Smoothline points should be an array!"), !1);
  1662. },
  1663. draw: function(C, $) {
  1664. var c = C.ctx, M = $.shape, A = $.cache, p = M.points, V = M.close;
  1665. if (!A.points || A.points.toString() !== p.toString()) {
  1666. var X = _(p, V), ee = x(X);
  1667. Object.assign(A, {
  1668. points: (0, l.deepClone)(p, !0),
  1669. bezierCurve: X,
  1670. hoverPoints: ee
  1671. });
  1672. }
  1673. var u = A.bezierCurve;
  1674. c.beginPath(), (0, o.drawBezierCurvePath)(c, u.slice(1), u[0]), V && (c.closePath(), c.fill()), c.stroke();
  1675. },
  1676. hoverCheck: function(C, $) {
  1677. var c = $.cache, M = $.shape, A = $.style, p = c.hoverPoints, V = M.close, X = A.lineWidth;
  1678. return V ? (0, l.checkPointIsInPolygon)(C, p) : (0, l.checkPointIsNearPolyline)(C, p, X);
  1679. },
  1680. setGraphCenter: function(C, $) {
  1681. var c = $.shape, M = $.style, A = c.points;
  1682. M.graphCenter = A[0];
  1683. },
  1684. move: function(C, $) {
  1685. var c = C.movementX, M = C.movementY, A = $.shape, p = $.cache, V = A.points, X = V.map(function(v) {
  1686. var S = (0, t.default)(v, 2), J = S[0], Q = S[1];
  1687. return [J + c, Q + M];
  1688. });
  1689. p.points = X;
  1690. var ee = (0, t.default)(p.bezierCurve[0], 2), u = ee[0], I = ee[1], g = p.bezierCurve.slice(1);
  1691. p.bezierCurve = [[u + c, I + M]].concat((0, a.default)(g.map(function(v) {
  1692. return v.map(function(S) {
  1693. var J = (0, t.default)(S, 2), Q = J[0], te = J[1];
  1694. return [Q + c, te + M];
  1695. });
  1696. }))), p.hoverPoints = p.hoverPoints.map(function(v) {
  1697. var S = (0, t.default)(v, 2), J = S[0], Q = S[1];
  1698. return [J + c, Q + M];
  1699. }), this.attr("shape", {
  1700. points: X
  1701. });
  1702. }
  1703. };
  1704. e.smoothline = q;
  1705. var G = {
  1706. shape: {
  1707. points: [],
  1708. close: !1
  1709. },
  1710. validator: function(C) {
  1711. var $ = C.shape, c = $.points;
  1712. return c instanceof Array ? !0 : (console.error("BezierCurve points should be an array!"), !1);
  1713. },
  1714. draw: function(C, $) {
  1715. var c = C.ctx, M = $.shape, A = $.cache, p = M.points, V = M.close;
  1716. if (!A.points || A.points.toString() !== p.toString()) {
  1717. var X = x(p, 20);
  1718. Object.assign(A, {
  1719. points: (0, l.deepClone)(p, !0),
  1720. hoverPoints: X
  1721. });
  1722. }
  1723. c.beginPath(), (0, o.drawBezierCurvePath)(c, p.slice(1), p[0]), V && (c.closePath(), c.fill()), c.stroke();
  1724. },
  1725. hoverCheck: function(C, $) {
  1726. var c = $.cache, M = $.shape, A = $.style, p = c.hoverPoints, V = M.close, X = A.lineWidth;
  1727. return V ? (0, l.checkPointIsInPolygon)(C, p) : (0, l.checkPointIsNearPolyline)(C, p, X);
  1728. },
  1729. setGraphCenter: function(C, $) {
  1730. var c = $.shape, M = $.style, A = c.points;
  1731. M.graphCenter = A[0];
  1732. },
  1733. move: function(C, $) {
  1734. var c = C.movementX, M = C.movementY, A = $.shape, p = $.cache, V = A.points, X = (0, t.default)(V[0], 2), ee = X[0], u = X[1], I = V.slice(1), g = [[ee + c, u + M]].concat((0, a.default)(I.map(function(v) {
  1735. return v.map(function(S) {
  1736. var J = (0, t.default)(S, 2), Q = J[0], te = J[1];
  1737. return [Q + c, te + M];
  1738. });
  1739. })));
  1740. p.points = g, p.hoverPoints = p.hoverPoints.map(function(v) {
  1741. var S = (0, t.default)(v, 2), J = S[0], Q = S[1];
  1742. return [J + c, Q + M];
  1743. }), this.attr("shape", {
  1744. points: g
  1745. });
  1746. }
  1747. };
  1748. e.bezierCurve = G;
  1749. var m = {
  1750. shape: {
  1751. content: "",
  1752. position: [],
  1753. maxWidth: void 0,
  1754. rowGap: 0
  1755. },
  1756. validator: function(C) {
  1757. var $ = C.shape, c = $.content, M = $.position, A = $.rowGap;
  1758. return typeof c != "string" ? (console.error("Text content should be a string!"), !1) : M instanceof Array ? typeof A != "number" ? (console.error("Text rowGap should be a number!"), !1) : !0 : (console.error("Text position should be an array!"), !1);
  1759. },
  1760. draw: function(C, $) {
  1761. var c = C.ctx, M = $.shape, A = M.content, p = M.position, V = M.maxWidth, X = M.rowGap, ee = c.textBaseline, u = c.font, I = parseInt(u.replace(/\D/g, "")), g = p, v = (0, t.default)(g, 2), S = v[0], J = v[1];
  1762. A = A.split(`
  1763. `);
  1764. var Q = A.length, te = I + X, oe = Q * te - X, ve = 0;
  1765. ee === "middle" && (ve = oe / 2, J += I / 2), ee === "bottom" && (ve = oe, J += I), p = new Array(Q).fill(0).map(function(Y, ie) {
  1766. return [S, J + ie * te - ve];
  1767. }), c.beginPath(), A.forEach(function(Y, ie) {
  1768. c.fillText.apply(c, [Y].concat((0, a.default)(p[ie]), [V])), c.strokeText.apply(c, [Y].concat((0, a.default)(p[ie]), [V]));
  1769. }), c.closePath();
  1770. },
  1771. hoverCheck: function(C, $) {
  1772. return $.shape, $.style, !1;
  1773. },
  1774. setGraphCenter: function(C, $) {
  1775. var c = $.shape, M = $.style, A = c.position;
  1776. M.graphCenter = (0, a.default)(A);
  1777. },
  1778. move: function(C, $) {
  1779. var c = C.movementX, M = C.movementY, A = $.shape, p = (0, t.default)(A.position, 2), V = p[0], X = p[1];
  1780. this.attr("shape", {
  1781. position: [V + c, X + M]
  1782. });
  1783. }
  1784. };
  1785. e.text = m;
  1786. var y = /* @__PURE__ */ new Map([["circle", z], ["ellipse", E], ["rect", U], ["ring", T], ["arc", L], ["sector", d], ["regPolygon", B], ["polyline", W], ["smoothline", q], ["bezierCurve", G], ["text", m]]), f = y;
  1787. e.default = f;
  1788. function D(k, C) {
  1789. if (!k || !C) {
  1790. console.error("ExtendNewGraph Missing Parameters!");
  1791. return;
  1792. }
  1793. if (!C.shape) {
  1794. console.error("Required attribute of shape to extendNewGraph!");
  1795. return;
  1796. }
  1797. if (!C.validator) {
  1798. console.error("Required function of validator to extendNewGraph!");
  1799. return;
  1800. }
  1801. if (!C.draw) {
  1802. console.error("Required function of draw to extendNewGraph!");
  1803. return;
  1804. }
  1805. y.set(k, C);
  1806. }
  1807. }(fr)), fr;
  1808. }
  1809. var hr = {}, vr = { exports: {} }, Fn;
  1810. function xo() {
  1811. return Fn || (Fn = 1, function(e) {
  1812. var r = Be().default;
  1813. function a() {
  1814. e.exports = a = function() {
  1815. return n;
  1816. }, e.exports.__esModule = !0, e.exports.default = e.exports;
  1817. var t, n = {}, l = Object.prototype, o = l.hasOwnProperty, _ = Object.defineProperty || function(g, v, S) {
  1818. g[v] = S.value;
  1819. }, x = typeof Symbol == "function" ? Symbol : {}, z = x.iterator || "@@iterator", E = x.asyncIterator || "@@asyncIterator", U = x.toStringTag || "@@toStringTag";
  1820. function T(g, v, S) {
  1821. return Object.defineProperty(g, v, {
  1822. value: S,
  1823. enumerable: !0,
  1824. configurable: !0,
  1825. writable: !0
  1826. }), g[v];
  1827. }
  1828. try {
  1829. T({}, "");
  1830. } catch {
  1831. T = function(S, J, Q) {
  1832. return S[J] = Q;
  1833. };
  1834. }
  1835. function L(g, v, S, J) {
  1836. var Q = v && v.prototype instanceof y ? v : y, te = Object.create(Q.prototype), oe = new u(J || []);
  1837. return _(te, "_invoke", {
  1838. value: p(g, S, oe)
  1839. }), te;
  1840. }
  1841. function d(g, v, S) {
  1842. try {
  1843. return {
  1844. type: "normal",
  1845. arg: g.call(v, S)
  1846. };
  1847. } catch (J) {
  1848. return {
  1849. type: "throw",
  1850. arg: J
  1851. };
  1852. }
  1853. }
  1854. n.wrap = L;
  1855. var B = "suspendedStart", W = "suspendedYield", q = "executing", G = "completed", m = {};
  1856. function y() {
  1857. }
  1858. function f() {
  1859. }
  1860. function D() {
  1861. }
  1862. var k = {};
  1863. T(k, z, function() {
  1864. return this;
  1865. });
  1866. var C = Object.getPrototypeOf, $ = C && C(C(I([])));
  1867. $ && $ !== l && o.call($, z) && (k = $);
  1868. var c = D.prototype = y.prototype = Object.create(k);
  1869. function M(g) {
  1870. ["next", "throw", "return"].forEach(function(v) {
  1871. T(g, v, function(S) {
  1872. return this._invoke(v, S);
  1873. });
  1874. });
  1875. }
  1876. function A(g, v) {
  1877. function S(Q, te, oe, ve) {
  1878. var Y = d(g[Q], g, te);
  1879. if (Y.type !== "throw") {
  1880. var ie = Y.arg, ce = ie.value;
  1881. return ce && r(ce) == "object" && o.call(ce, "__await") ? v.resolve(ce.__await).then(function(fe) {
  1882. S("next", fe, oe, ve);
  1883. }, function(fe) {
  1884. S("throw", fe, oe, ve);
  1885. }) : v.resolve(ce).then(function(fe) {
  1886. ie.value = fe, oe(ie);
  1887. }, function(fe) {
  1888. return S("throw", fe, oe, ve);
  1889. });
  1890. }
  1891. ve(Y.arg);
  1892. }
  1893. var J;
  1894. _(this, "_invoke", {
  1895. value: function(te, oe) {
  1896. function ve() {
  1897. return new v(function(Y, ie) {
  1898. S(te, oe, Y, ie);
  1899. });
  1900. }
  1901. return J = J ? J.then(ve, ve) : ve();
  1902. }
  1903. });
  1904. }
  1905. function p(g, v, S) {
  1906. var J = B;
  1907. return function(Q, te) {
  1908. if (J === q) throw new Error("Generator is already running");
  1909. if (J === G) {
  1910. if (Q === "throw") throw te;
  1911. return {
  1912. value: t,
  1913. done: !0
  1914. };
  1915. }
  1916. for (S.method = Q, S.arg = te; ; ) {
  1917. var oe = S.delegate;
  1918. if (oe) {
  1919. var ve = V(oe, S);
  1920. if (ve) {
  1921. if (ve === m) continue;
  1922. return ve;
  1923. }
  1924. }
  1925. if (S.method === "next") S.sent = S._sent = S.arg;
  1926. else if (S.method === "throw") {
  1927. if (J === B) throw J = G, S.arg;
  1928. S.dispatchException(S.arg);
  1929. } else S.method === "return" && S.abrupt("return", S.arg);
  1930. J = q;
  1931. var Y = d(g, v, S);
  1932. if (Y.type === "normal") {
  1933. if (J = S.done ? G : W, Y.arg === m) continue;
  1934. return {
  1935. value: Y.arg,
  1936. done: S.done
  1937. };
  1938. }
  1939. Y.type === "throw" && (J = G, S.method = "throw", S.arg = Y.arg);
  1940. }
  1941. };
  1942. }
  1943. function V(g, v) {
  1944. var S = v.method, J = g.iterator[S];
  1945. if (J === t) return v.delegate = null, S === "throw" && g.iterator.return && (v.method = "return", v.arg = t, V(g, v), v.method === "throw") || S !== "return" && (v.method = "throw", v.arg = new TypeError("The iterator does not provide a '" + S + "' method")), m;
  1946. var Q = d(J, g.iterator, v.arg);
  1947. if (Q.type === "throw") return v.method = "throw", v.arg = Q.arg, v.delegate = null, m;
  1948. var te = Q.arg;
  1949. return te ? te.done ? (v[g.resultName] = te.value, v.next = g.nextLoc, v.method !== "return" && (v.method = "next", v.arg = t), v.delegate = null, m) : te : (v.method = "throw", v.arg = new TypeError("iterator result is not an object"), v.delegate = null, m);
  1950. }
  1951. function X(g) {
  1952. var v = {
  1953. tryLoc: g[0]
  1954. };
  1955. 1 in g && (v.catchLoc = g[1]), 2 in g && (v.finallyLoc = g[2], v.afterLoc = g[3]), this.tryEntries.push(v);
  1956. }
  1957. function ee(g) {
  1958. var v = g.completion || {};
  1959. v.type = "normal", delete v.arg, g.completion = v;
  1960. }
  1961. function u(g) {
  1962. this.tryEntries = [{
  1963. tryLoc: "root"
  1964. }], g.forEach(X, this), this.reset(!0);
  1965. }
  1966. function I(g) {
  1967. if (g || g === "") {
  1968. var v = g[z];
  1969. if (v) return v.call(g);
  1970. if (typeof g.next == "function") return g;
  1971. if (!isNaN(g.length)) {
  1972. var S = -1, J = function Q() {
  1973. for (; ++S < g.length; ) if (o.call(g, S)) return Q.value = g[S], Q.done = !1, Q;
  1974. return Q.value = t, Q.done = !0, Q;
  1975. };
  1976. return J.next = J;
  1977. }
  1978. }
  1979. throw new TypeError(r(g) + " is not iterable");
  1980. }
  1981. return f.prototype = D, _(c, "constructor", {
  1982. value: D,
  1983. configurable: !0
  1984. }), _(D, "constructor", {
  1985. value: f,
  1986. configurable: !0
  1987. }), f.displayName = T(D, U, "GeneratorFunction"), n.isGeneratorFunction = function(g) {
  1988. var v = typeof g == "function" && g.constructor;
  1989. return !!v && (v === f || (v.displayName || v.name) === "GeneratorFunction");
  1990. }, n.mark = function(g) {
  1991. return Object.setPrototypeOf ? Object.setPrototypeOf(g, D) : (g.__proto__ = D, T(g, U, "GeneratorFunction")), g.prototype = Object.create(c), g;
  1992. }, n.awrap = function(g) {
  1993. return {
  1994. __await: g
  1995. };
  1996. }, M(A.prototype), T(A.prototype, E, function() {
  1997. return this;
  1998. }), n.AsyncIterator = A, n.async = function(g, v, S, J, Q) {
  1999. Q === void 0 && (Q = Promise);
  2000. var te = new A(L(g, v, S, J), Q);
  2001. return n.isGeneratorFunction(v) ? te : te.next().then(function(oe) {
  2002. return oe.done ? oe.value : te.next();
  2003. });
  2004. }, M(c), T(c, U, "Generator"), T(c, z, function() {
  2005. return this;
  2006. }), T(c, "toString", function() {
  2007. return "[object Generator]";
  2008. }), n.keys = function(g) {
  2009. var v = Object(g), S = [];
  2010. for (var J in v) S.push(J);
  2011. return S.reverse(), function Q() {
  2012. for (; S.length; ) {
  2013. var te = S.pop();
  2014. if (te in v) return Q.value = te, Q.done = !1, Q;
  2015. }
  2016. return Q.done = !0, Q;
  2017. };
  2018. }, n.values = I, u.prototype = {
  2019. constructor: u,
  2020. reset: function(v) {
  2021. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(ee), !v) for (var S in this) S.charAt(0) === "t" && o.call(this, S) && !isNaN(+S.slice(1)) && (this[S] = t);
  2022. },
  2023. stop: function() {
  2024. this.done = !0;
  2025. var v = this.tryEntries[0].completion;
  2026. if (v.type === "throw") throw v.arg;
  2027. return this.rval;
  2028. },
  2029. dispatchException: function(v) {
  2030. if (this.done) throw v;
  2031. var S = this;
  2032. function J(ie, ce) {
  2033. return oe.type = "throw", oe.arg = v, S.next = ie, ce && (S.method = "next", S.arg = t), !!ce;
  2034. }
  2035. for (var Q = this.tryEntries.length - 1; Q >= 0; --Q) {
  2036. var te = this.tryEntries[Q], oe = te.completion;
  2037. if (te.tryLoc === "root") return J("end");
  2038. if (te.tryLoc <= this.prev) {
  2039. var ve = o.call(te, "catchLoc"), Y = o.call(te, "finallyLoc");
  2040. if (ve && Y) {
  2041. if (this.prev < te.catchLoc) return J(te.catchLoc, !0);
  2042. if (this.prev < te.finallyLoc) return J(te.finallyLoc);
  2043. } else if (ve) {
  2044. if (this.prev < te.catchLoc) return J(te.catchLoc, !0);
  2045. } else {
  2046. if (!Y) throw new Error("try statement without catch or finally");
  2047. if (this.prev < te.finallyLoc) return J(te.finallyLoc);
  2048. }
  2049. }
  2050. }
  2051. },
  2052. abrupt: function(v, S) {
  2053. for (var J = this.tryEntries.length - 1; J >= 0; --J) {
  2054. var Q = this.tryEntries[J];
  2055. if (Q.tryLoc <= this.prev && o.call(Q, "finallyLoc") && this.prev < Q.finallyLoc) {
  2056. var te = Q;
  2057. break;
  2058. }
  2059. }
  2060. te && (v === "break" || v === "continue") && te.tryLoc <= S && S <= te.finallyLoc && (te = null);
  2061. var oe = te ? te.completion : {};
  2062. return oe.type = v, oe.arg = S, te ? (this.method = "next", this.next = te.finallyLoc, m) : this.complete(oe);
  2063. },
  2064. complete: function(v, S) {
  2065. if (v.type === "throw") throw v.arg;
  2066. return v.type === "break" || v.type === "continue" ? this.next = v.arg : v.type === "return" ? (this.rval = this.arg = v.arg, this.method = "return", this.next = "end") : v.type === "normal" && S && (this.next = S), m;
  2067. },
  2068. finish: function(v) {
  2069. for (var S = this.tryEntries.length - 1; S >= 0; --S) {
  2070. var J = this.tryEntries[S];
  2071. if (J.finallyLoc === v) return this.complete(J.completion, J.afterLoc), ee(J), m;
  2072. }
  2073. },
  2074. catch: function(v) {
  2075. for (var S = this.tryEntries.length - 1; S >= 0; --S) {
  2076. var J = this.tryEntries[S];
  2077. if (J.tryLoc === v) {
  2078. var Q = J.completion;
  2079. if (Q.type === "throw") {
  2080. var te = Q.arg;
  2081. ee(J);
  2082. }
  2083. return te;
  2084. }
  2085. }
  2086. throw new Error("illegal catch attempt");
  2087. },
  2088. delegateYield: function(v, S, J) {
  2089. return this.delegate = {
  2090. iterator: I(v),
  2091. resultName: S,
  2092. nextLoc: J
  2093. }, this.method === "next" && (this.arg = t), m;
  2094. }
  2095. }, n;
  2096. }
  2097. e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
  2098. }(vr)), vr.exports;
  2099. }
  2100. var pr, Bn;
  2101. function Co() {
  2102. if (Bn) return pr;
  2103. Bn = 1;
  2104. var e = xo()();
  2105. pr = e;
  2106. try {
  2107. regeneratorRuntime = e;
  2108. } catch {
  2109. typeof globalThis == "object" ? globalThis.regeneratorRuntime = e : Function("r", "regeneratorRuntime = r")(e);
  2110. }
  2111. return pr;
  2112. }
  2113. var gr = { exports: {} }, Nn;
  2114. function $o() {
  2115. return Nn || (Nn = 1, function(e) {
  2116. function r(t, n, l, o, _, x, z) {
  2117. try {
  2118. var E = t[x](z), U = E.value;
  2119. } catch (T) {
  2120. l(T);
  2121. return;
  2122. }
  2123. E.done ? n(U) : Promise.resolve(U).then(o, _);
  2124. }
  2125. function a(t) {
  2126. return function() {
  2127. var n = this, l = arguments;
  2128. return new Promise(function(o, _) {
  2129. var x = t.apply(n, l);
  2130. function z(U) {
  2131. r(x, o, _, z, E, "next", U);
  2132. }
  2133. function E(U) {
  2134. r(x, o, _, z, E, "throw", U);
  2135. }
  2136. z(void 0);
  2137. });
  2138. };
  2139. }
  2140. e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
  2141. }(gr)), gr.exports;
  2142. }
  2143. var mr = {}, Wn;
  2144. function _o() {
  2145. return Wn || (Wn = 1, function(e) {
  2146. var r = we;
  2147. Object.defineProperty(e, "__esModule", {
  2148. value: !0
  2149. }), e.default = void 0;
  2150. var a = r(Te()), t = r(mt()), n = yt, l = Fe(), o = function L(d) {
  2151. (0, t.default)(this, L), this.colorProcessor(d);
  2152. var B = {
  2153. /**
  2154. * @description Rgba value of graph fill color
  2155. * @type {Array}
  2156. * @default fill = [0, 0, 0, 1]
  2157. */
  2158. fill: [0, 0, 0, 1],
  2159. /**
  2160. * @description Rgba value of graph stroke color
  2161. * @type {Array}
  2162. * @default stroke = [0, 0, 0, 1]
  2163. */
  2164. stroke: [0, 0, 0, 0],
  2165. /**
  2166. * @description Opacity of graph
  2167. * @type {Number}
  2168. * @default opacity = 1
  2169. */
  2170. opacity: 1,
  2171. /**
  2172. * @description LineCap of Ctx
  2173. * @type {String}
  2174. * @default lineCap = null
  2175. * @example lineCap = 'butt'|'round'|'square'
  2176. */
  2177. lineCap: null,
  2178. /**
  2179. * @description Linejoin of Ctx
  2180. * @type {String}
  2181. * @default lineJoin = null
  2182. * @example lineJoin = 'round'|'bevel'|'miter'
  2183. */
  2184. lineJoin: null,
  2185. /**
  2186. * @description LineDash of Ctx
  2187. * @type {Array}
  2188. * @default lineDash = null
  2189. * @example lineDash = [10, 10]
  2190. */
  2191. lineDash: null,
  2192. /**
  2193. * @description LineDashOffset of Ctx
  2194. * @type {Number}
  2195. * @default lineDashOffset = null
  2196. * @example lineDashOffset = 10
  2197. */
  2198. lineDashOffset: null,
  2199. /**
  2200. * @description ShadowBlur of Ctx
  2201. * @type {Number}
  2202. * @default shadowBlur = 0
  2203. */
  2204. shadowBlur: 0,
  2205. /**
  2206. * @description Rgba value of graph shadow color
  2207. * @type {Array}
  2208. * @default shadowColor = [0, 0, 0, 0]
  2209. */
  2210. shadowColor: [0, 0, 0, 0],
  2211. /**
  2212. * @description ShadowOffsetX of Ctx
  2213. * @type {Number}
  2214. * @default shadowOffsetX = 0
  2215. */
  2216. shadowOffsetX: 0,
  2217. /**
  2218. * @description ShadowOffsetY of Ctx
  2219. * @type {Number}
  2220. * @default shadowOffsetY = 0
  2221. */
  2222. shadowOffsetY: 0,
  2223. /**
  2224. * @description LineWidth of Ctx
  2225. * @type {Number}
  2226. * @default lineWidth = 0
  2227. */
  2228. lineWidth: 0,
  2229. /**
  2230. * @description Center point of the graph
  2231. * @type {Array}
  2232. * @default graphCenter = null
  2233. * @example graphCenter = [10, 10]
  2234. */
  2235. graphCenter: null,
  2236. /**
  2237. * @description Graph scale
  2238. * @type {Array}
  2239. * @default scale = null
  2240. * @example scale = [1.5, 1.5]
  2241. */
  2242. scale: null,
  2243. /**
  2244. * @description Graph rotation degree
  2245. * @type {Number}
  2246. * @default rotate = null
  2247. * @example rotate = 10
  2248. */
  2249. rotate: null,
  2250. /**
  2251. * @description Graph translate distance
  2252. * @type {Array}
  2253. * @default translate = null
  2254. * @example translate = [10, 10]
  2255. */
  2256. translate: null,
  2257. /**
  2258. * @description Cursor status when hover
  2259. * @type {String}
  2260. * @default hoverCursor = 'pointer'
  2261. * @example hoverCursor = 'default'|'pointer'|'auto'|'crosshair'|'move'|'wait'|...
  2262. */
  2263. hoverCursor: "pointer",
  2264. /**
  2265. * @description Font style of Ctx
  2266. * @type {String}
  2267. * @default fontStyle = 'normal'
  2268. * @example fontStyle = 'normal'|'italic'|'oblique'
  2269. */
  2270. fontStyle: "normal",
  2271. /**
  2272. * @description Font varient of Ctx
  2273. * @type {String}
  2274. * @default fontVarient = 'normal'
  2275. * @example fontVarient = 'normal'|'small-caps'
  2276. */
  2277. fontVarient: "normal",
  2278. /**
  2279. * @description Font weight of Ctx
  2280. * @type {String|Number}
  2281. * @default fontWeight = 'normal'
  2282. * @example fontWeight = 'normal'|'bold'|'bolder'|'lighter'|Number
  2283. */
  2284. fontWeight: "normal",
  2285. /**
  2286. * @description Font size of Ctx
  2287. * @type {Number}
  2288. * @default fontSize = 10
  2289. */
  2290. fontSize: 10,
  2291. /**
  2292. * @description Font family of Ctx
  2293. * @type {String}
  2294. * @default fontFamily = 'Arial'
  2295. */
  2296. fontFamily: "Arial",
  2297. /**
  2298. * @description TextAlign of Ctx
  2299. * @type {String}
  2300. * @default textAlign = 'center'
  2301. * @example textAlign = 'start'|'end'|'left'|'right'|'center'
  2302. */
  2303. textAlign: "center",
  2304. /**
  2305. * @description TextBaseline of Ctx
  2306. * @type {String}
  2307. * @default textBaseline = 'middle'
  2308. * @example textBaseline = 'top'|'bottom'|'middle'|'alphabetic'|'hanging'
  2309. */
  2310. textBaseline: "middle",
  2311. /**
  2312. * @description The color used to create the gradient
  2313. * @type {Array}
  2314. * @default gradientColor = null
  2315. * @example gradientColor = ['#000', '#111', '#222']
  2316. */
  2317. gradientColor: null,
  2318. /**
  2319. * @description Gradient type
  2320. * @type {String}
  2321. * @default gradientType = 'linear'
  2322. * @example gradientType = 'linear' | 'radial'
  2323. */
  2324. gradientType: "linear",
  2325. /**
  2326. * @description Gradient params
  2327. * @type {Array}
  2328. * @default gradientParams = null
  2329. * @example gradientParams = [x0, y0, x1, y1] (Linear Gradient)
  2330. * @example gradientParams = [x0, y0, r0, x1, y1, r1] (Radial Gradient)
  2331. */
  2332. gradientParams: null,
  2333. /**
  2334. * @description When to use gradients
  2335. * @type {String}
  2336. * @default gradientWith = 'stroke'
  2337. * @example gradientWith = 'stroke' | 'fill'
  2338. */
  2339. gradientWith: "stroke",
  2340. /**
  2341. * @description Gradient color stops
  2342. * @type {String}
  2343. * @default gradientStops = 'auto'
  2344. * @example gradientStops = 'auto' | [0, .2, .3, 1]
  2345. */
  2346. gradientStops: "auto",
  2347. /**
  2348. * @description Extended color that supports animation transition
  2349. * @type {Array|Object}
  2350. * @default colors = null
  2351. * @example colors = ['#000', '#111', '#222', 'red' ]
  2352. * @example colors = { a: '#000', b: '#111' }
  2353. */
  2354. colors: null
  2355. };
  2356. Object.assign(this, B, d);
  2357. };
  2358. e.default = o, o.prototype.colorProcessor = function(L) {
  2359. var d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, B = d ? n.getColorFromRgbValue : n.getRgbaValue, W = ["fill", "stroke", "shadowColor"], q = Object.keys(L), G = q.filter(function(D) {
  2360. return W.find(function(k) {
  2361. return k === D;
  2362. });
  2363. });
  2364. G.forEach(function(D) {
  2365. return L[D] = B(L[D]);
  2366. });
  2367. var m = L.gradientColor, y = L.colors;
  2368. if (m && (L.gradientColor = m.map(function(D) {
  2369. return B(D);
  2370. })), y) {
  2371. var f = Object.keys(y);
  2372. f.forEach(function(D) {
  2373. return y[D] = B(y[D]);
  2374. });
  2375. }
  2376. }, o.prototype.initStyle = function(L) {
  2377. _(L, this), z(L, this), E(L, this);
  2378. };
  2379. function _(L, d) {
  2380. L.save();
  2381. var B = d.graphCenter, W = d.rotate, q = d.scale, G = d.translate;
  2382. B instanceof Array && (L.translate.apply(L, (0, a.default)(B)), W && L.rotate(W * Math.PI / 180), q instanceof Array && L.scale.apply(L, (0, a.default)(q)), G && L.translate.apply(L, (0, a.default)(G)), L.translate(-B[0], -B[1]));
  2383. }
  2384. var x = ["lineCap", "lineJoin", "lineDashOffset", "shadowOffsetX", "shadowOffsetY", "lineWidth", "textAlign", "textBaseline"];
  2385. function z(L, d) {
  2386. var B = d.fill, W = d.stroke, q = d.shadowColor, G = d.opacity;
  2387. x.forEach(function(c) {
  2388. (c || typeof c == "number") && (L[c] = d[c]);
  2389. }), B = (0, a.default)(B), W = (0, a.default)(W), q = (0, a.default)(q), B[3] *= G, W[3] *= G, q[3] *= G, L.fillStyle = (0, n.getColorFromRgbValue)(B), L.strokeStyle = (0, n.getColorFromRgbValue)(W), L.shadowColor = (0, n.getColorFromRgbValue)(q);
  2390. var m = d.lineDash, y = d.shadowBlur;
  2391. m && (m = m.map(function(c) {
  2392. return c >= 0 ? c : 0;
  2393. }), L.setLineDash(m)), typeof y == "number" && (L.shadowBlur = y > 0 ? y : 1e-3);
  2394. var f = d.fontStyle, D = d.fontVarient, k = d.fontWeight, C = d.fontSize, $ = d.fontFamily;
  2395. L.font = f + " " + D + " " + k + " " + C + "px " + $;
  2396. }
  2397. function E(L, d) {
  2398. if (U(d)) {
  2399. var B = d.gradientColor, W = d.gradientParams, q = d.gradientType, G = d.gradientWith, m = d.gradientStops, y = d.opacity;
  2400. B = B.map(function(D) {
  2401. var k = D[3] * y, C = (0, a.default)(D);
  2402. return C[3] = k, C;
  2403. }), B = B.map(function(D) {
  2404. return (0, n.getColorFromRgbValue)(D);
  2405. }), m === "auto" && (m = T(B));
  2406. var f = L["create".concat(q.slice(0, 1).toUpperCase() + q.slice(1), "Gradient")].apply(L, (0, a.default)(W));
  2407. m.forEach(function(D, k) {
  2408. return f.addColorStop(D, B[k]);
  2409. }), L["".concat(G, "Style")] = f;
  2410. }
  2411. }
  2412. function U(L) {
  2413. var d = L.gradientColor, B = L.gradientParams, W = L.gradientType, q = L.gradientWith, G = L.gradientStops;
  2414. if (!d || !B) return !1;
  2415. if (d.length === 1)
  2416. return console.warn("The gradient needs to provide at least two colors"), !1;
  2417. if (W !== "linear" && W !== "radial")
  2418. return console.warn("GradientType only supports linear or radial, current value is " + W), !1;
  2419. var m = B.length;
  2420. return W === "linear" && m !== 4 || W === "radial" && m !== 6 ? (console.warn("The expected length of gradientParams is " + (W === "linear" ? "4" : "6")), !1) : q !== "fill" && q !== "stroke" ? (console.warn("GradientWith only supports fill or stroke, current value is " + q), !1) : G !== "auto" && !(G instanceof Array) ? (console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is " + G), !1) : !0;
  2421. }
  2422. function T(L) {
  2423. var d = 1 / (L.length - 1);
  2424. return L.map(function(B, W) {
  2425. return d * W;
  2426. });
  2427. }
  2428. o.prototype.restoreTransform = function(L) {
  2429. L.restore();
  2430. }, o.prototype.update = function(L) {
  2431. this.colorProcessor(L), Object.assign(this, L);
  2432. }, o.prototype.getStyle = function() {
  2433. var L = (0, l.deepClone)(this, !0);
  2434. return this.colorProcessor(L, !0), L;
  2435. };
  2436. }(mr)), mr;
  2437. }
  2438. var yr = {}, br = {}, jn;
  2439. function Po() {
  2440. return jn || (jn = 1, function(e) {
  2441. Object.defineProperty(e, "__esModule", {
  2442. value: !0
  2443. }), e.default = e.easeInOutBounce = e.easeOutBounce = e.easeInBounce = e.easeInOutElastic = e.easeOutElastic = e.easeInElastic = e.easeInOutBack = e.easeOutBack = e.easeInBack = e.easeInOutQuint = e.easeOutQuint = e.easeInQuint = e.easeInOutQuart = e.easeOutQuart = e.easeInQuart = e.easeInOutCubic = e.easeOutCubic = e.easeInCubic = e.easeInOutQuad = e.easeOutQuad = e.easeInQuad = e.easeInOutSine = e.easeOutSine = e.easeInSine = e.linear = void 0;
  2444. var r = [[[0, 1], "", [0.33, 0.67]], [[1, 0], [0.67, 0.33]]];
  2445. e.linear = r;
  2446. var a = [[[0, 1]], [[0.538, 0.564], [0.169, 0.912], [0.88, 0.196]], [[1, 0]]];
  2447. e.easeInSine = a;
  2448. var t = [[[0, 1]], [[0.444, 0.448], [0.169, 0.736], [0.718, 0.16]], [[1, 0]]];
  2449. e.easeOutSine = t;
  2450. var n = [[[0, 1]], [[0.5, 0.5], [0.2, 1], [0.8, 0]], [[1, 0]]];
  2451. e.easeInOutSine = n;
  2452. var l = [[[0, 1]], [[0.55, 0.584], [0.231, 0.904], [0.868, 0.264]], [[1, 0]]];
  2453. e.easeInQuad = l;
  2454. var o = [[[0, 1]], [[0.413, 0.428], [0.065, 0.816], [0.76, 0.04]], [[1, 0]]];
  2455. e.easeOutQuad = o;
  2456. var _ = [[[0, 1]], [[0.5, 0.5], [0.3, 0.9], [0.7, 0.1]], [[1, 0]]];
  2457. e.easeInOutQuad = _;
  2458. var x = [[[0, 1]], [[0.679, 0.688], [0.366, 0.992], [0.992, 0.384]], [[1, 0]]];
  2459. e.easeInCubic = x;
  2460. var z = [[[0, 1]], [[0.321, 0.312], [8e-3, 0.616], [0.634, 8e-3]], [[1, 0]]];
  2461. e.easeOutCubic = z;
  2462. var E = [[[0, 1]], [[0.5, 0.5], [0.3, 1], [0.7, 0]], [[1, 0]]];
  2463. e.easeInOutCubic = E;
  2464. var U = [[[0, 1]], [[0.812, 0.74], [0.611, 0.988], [1.013, 0.492]], [[1, 0]]];
  2465. e.easeInQuart = U;
  2466. var T = [[[0, 1]], [[0.152, 0.244], [1e-3, 0.448], [0.285, -0.02]], [[1, 0]]];
  2467. e.easeOutQuart = T;
  2468. var L = [[[0, 1]], [[0.5, 0.5], [0.4, 1], [0.6, 0]], [[1, 0]]];
  2469. e.easeInOutQuart = L;
  2470. var d = [[[0, 1]], [[0.857, 0.856], [0.714, 1], [1, 0.712]], [[1, 0]]];
  2471. e.easeInQuint = d;
  2472. var B = [[[0, 1]], [[0.108, 0.2], [1e-3, 0.4], [0.214, -0.012]], [[1, 0]]];
  2473. e.easeOutQuint = B;
  2474. var W = [[[0, 1]], [[0.5, 0.5], [0.5, 1], [0.5, 0]], [[1, 0]]];
  2475. e.easeInOutQuint = W;
  2476. var q = [[[0, 1]], [[0.667, 0.896], [0.38, 1.184], [0.955, 0.616]], [[1, 0]]];
  2477. e.easeInBack = q;
  2478. var G = [[[0, 1]], [[0.335, 0.028], [0.061, 0.22], [0.631, -0.18]], [[1, 0]]];
  2479. e.easeOutBack = G;
  2480. var m = [[[0, 1]], [[0.5, 0.5], [0.4, 1.4], [0.6, -0.4]], [[1, 0]]];
  2481. e.easeInOutBack = m;
  2482. var y = [[[0, 1]], [[0.474, 0.964], [0.382, 0.988], [0.557, 0.952]], [[0.619, 1.076], [0.565, 1.088], [0.669, 1.08]], [[0.77, 0.916], [0.712, 0.924], [0.847, 0.904]], [[0.911, 1.304], [0.872, 1.316], [0.961, 1.34]], [[1, 0]]];
  2483. e.easeInElastic = y;
  2484. var f = [[[0, 1]], [[0.073, -0.32], [0.034, -0.328], [0.104, -0.344]], [[0.191, 0.092], [0.11, 0.06], [0.256, 0.08]], [[0.31, -0.076], [0.26, -0.068], [0.357, -0.076]], [[0.432, 0.032], [0.362, 0.028], [0.683, -4e-3]], [[1, 0]]];
  2485. e.easeOutElastic = f;
  2486. var D = [[[0, 1]], [[0.21, 0.94], [0.167, 0.884], [0.252, 0.98]], [[0.299, 1.104], [0.256, 1.092], [0.347, 1.108]], [[0.5, 0.496], [0.451, 0.672], [0.548, 0.324]], [[0.696, -0.108], [0.652, -0.112], [0.741, -0.124]], [[0.805, 0.064], [0.756, 0.012], [0.866, 0.096]], [[1, 0]]];
  2487. e.easeInOutElastic = D;
  2488. var k = [[[0, 1]], [[0.148, 1], [0.075, 0.868], [0.193, 0.848]], [[0.326, 1], [0.276, 0.836], [0.405, 0.712]], [[0.6, 1], [0.511, 0.708], [0.671, 0.348]], [[1, 0]]];
  2489. e.easeInBounce = k;
  2490. var C = [[[0, 1]], [[0.357, 4e-3], [0.27, 0.592], [0.376, 0.252]], [[0.604, -4e-3], [0.548, 0.312], [0.669, 0.184]], [[0.82, 0], [0.749, 0.184], [0.905, 0.132]], [[1, 0]]];
  2491. e.easeOutBounce = C;
  2492. var $ = [[[0, 1]], [[0.102, 1], [0.05, 0.864], [0.117, 0.86]], [[0.216, 0.996], [0.208, 0.844], [0.227, 0.808]], [[0.347, 0.996], [0.343, 0.8], [0.48, 0.292]], [[0.635, 4e-3], [0.511, 0.676], [0.656, 0.208]], [[0.787, 0], [0.76, 0.2], [0.795, 0.144]], [[0.905, -4e-3], [0.899, 0.164], [0.944, 0.144]], [[1, 0]]];
  2493. e.easeInOutBounce = $;
  2494. var c = /* @__PURE__ */ new Map([["linear", r], ["easeInSine", a], ["easeOutSine", t], ["easeInOutSine", n], ["easeInQuad", l], ["easeOutQuad", o], ["easeInOutQuad", _], ["easeInCubic", x], ["easeOutCubic", z], ["easeInOutCubic", E], ["easeInQuart", U], ["easeOutQuart", T], ["easeInOutQuart", L], ["easeInQuint", d], ["easeOutQuint", B], ["easeInOutQuint", W], ["easeInBack", q], ["easeOutBack", G], ["easeInOutBack", m], ["easeInElastic", y], ["easeOutElastic", f], ["easeInOutElastic", D], ["easeInBounce", k], ["easeOutBounce", C], ["easeInOutBounce", $]]);
  2495. e.default = c;
  2496. }(br)), br;
  2497. }
  2498. var En;
  2499. function wo() {
  2500. return En || (En = 1, function(e) {
  2501. var r = we;
  2502. Object.defineProperty(e, "__esModule", {
  2503. value: !0
  2504. }), e.transition = o, e.injectNewCurve = m, e.default = void 0;
  2505. var a = r(Ne()), t = r(Be()), n = r(Po()), l = "linear";
  2506. function o(f) {
  2507. var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, C = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 30, $ = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
  2508. if (!_.apply(void 0, arguments)) return !1;
  2509. try {
  2510. var c = x(f), M = z(c, C);
  2511. return !$ || typeof k == "number" ? d(D, k, M) : G(D, k, M);
  2512. } catch {
  2513. return console.warn("Transition parameter may be abnormal!"), [k];
  2514. }
  2515. }
  2516. function _(f) {
  2517. var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, C = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 30;
  2518. if (!f || D === !1 || k === !1 || !C)
  2519. return console.error("transition: Missing Parameters!"), !1;
  2520. if ((0, t.default)(D) !== (0, t.default)(k))
  2521. return console.error("transition: Inconsistent Status Types!"), !1;
  2522. var $ = (0, t.default)(k);
  2523. return $ === "string" || $ === "boolean" || !f.length ? (console.error("transition: Unsupported Data Type of State!"), !1) : (!n.default.has(f) && !(f instanceof Array) && console.warn("transition: Transition curve not found, default curve will be used!"), !0);
  2524. }
  2525. function x(f) {
  2526. var D = "";
  2527. return n.default.has(f) ? D = n.default.get(f) : f instanceof Array ? D = f : D = n.default.get(l), D;
  2528. }
  2529. function z(f, D) {
  2530. var k = 1 / (D - 1), C = new Array(D).fill(0).map(function(c, M) {
  2531. return M * k;
  2532. }), $ = C.map(function(c) {
  2533. return E(f, c);
  2534. });
  2535. return $;
  2536. }
  2537. function E(f, D) {
  2538. var k = U(f, D), C = T(k, D);
  2539. return L(k, C);
  2540. }
  2541. function U(f, D) {
  2542. var k = f.length - 1, C = "", $ = "";
  2543. f.findIndex(function(V, X) {
  2544. if (X !== k) {
  2545. C = V, $ = f[X + 1];
  2546. var ee = C[0][0], u = $[0][0];
  2547. return D >= ee && D < u;
  2548. }
  2549. });
  2550. var c = C[0], M = C[2] || C[0], A = $[1] || $[0], p = $[0];
  2551. return [c, M, A, p];
  2552. }
  2553. function T(f, D) {
  2554. var k = f[0][0], C = f[3][0], $ = C - k, c = D - k;
  2555. return c / $;
  2556. }
  2557. function L(f, D) {
  2558. var k = (0, a.default)(f, 4), C = (0, a.default)(k[0], 2), $ = C[1], c = (0, a.default)(k[1], 2), M = c[1], A = (0, a.default)(k[2], 2), p = A[1], V = (0, a.default)(k[3], 2), X = V[1], ee = Math.pow, u = 1 - D, I = $ * ee(u, 3), g = 3 * M * D * ee(u, 2), v = 3 * p * ee(D, 2) * u, S = X * ee(D, 3);
  2559. return 1 - (I + g + v + S);
  2560. }
  2561. function d(f, D, k) {
  2562. var C = "object";
  2563. return typeof f == "number" && (C = "number"), f instanceof Array && (C = "array"), C === "number" ? B(f, D, k) : C === "array" ? W(f, D, k) : C === "object" ? q(f, D, k) : k.map(function($) {
  2564. return D;
  2565. });
  2566. }
  2567. function B(f, D, k) {
  2568. var C = D - f;
  2569. return k.map(function($) {
  2570. return f + C * $;
  2571. });
  2572. }
  2573. function W(f, D, k) {
  2574. var C = D.map(function($, c) {
  2575. return typeof $ != "number" ? !1 : $ - f[c];
  2576. });
  2577. return k.map(function($) {
  2578. return C.map(function(c, M) {
  2579. return c === !1 ? D[M] : f[M] + c * $;
  2580. });
  2581. });
  2582. }
  2583. function q(f, D, k) {
  2584. var C = Object.keys(D), $ = C.map(function(A) {
  2585. return f[A];
  2586. }), c = C.map(function(A) {
  2587. return D[A];
  2588. }), M = W($, c, k);
  2589. return M.map(function(A) {
  2590. var p = {};
  2591. return A.forEach(function(V, X) {
  2592. return p[C[X]] = V;
  2593. }), p;
  2594. });
  2595. }
  2596. function G(f, D, k) {
  2597. var C = d(f, D, k), $ = function(p) {
  2598. var V = f[p], X = D[p];
  2599. if ((0, t.default)(X) !== "object") return "continue";
  2600. var ee = G(V, X, k);
  2601. C.forEach(function(u, I) {
  2602. return u[p] = ee[I];
  2603. });
  2604. };
  2605. for (var c in D)
  2606. var M = $(c);
  2607. return C;
  2608. }
  2609. function m(f, D) {
  2610. if (!f || !D) {
  2611. console.error("InjectNewCurve Missing Parameters!");
  2612. return;
  2613. }
  2614. n.default.set(f, D);
  2615. }
  2616. var y = o;
  2617. e.default = y;
  2618. }(yr)), yr;
  2619. }
  2620. var zn;
  2621. function ko() {
  2622. return zn || (zn = 1, function(e) {
  2623. var r = we;
  2624. Object.defineProperty(e, "__esModule", {
  2625. value: !0
  2626. }), e.default = void 0;
  2627. var a = r(Co()), t = r($o()), n = r(Be()), l = r(Te()), o = r(mt()), _ = r(_o()), x = r(wo()), z = Fe(), E = function T(L, d) {
  2628. (0, o.default)(this, T), d = (0, z.deepClone)(d, !0);
  2629. var B = {
  2630. /**
  2631. * @description Weather to render graph
  2632. * @type {Boolean}
  2633. * @default visible = true
  2634. */
  2635. visible: !0,
  2636. /**
  2637. * @description Whether to enable drag
  2638. * @type {Boolean}
  2639. * @default drag = false
  2640. */
  2641. drag: !1,
  2642. /**
  2643. * @description Whether to enable hover
  2644. * @type {Boolean}
  2645. * @default hover = false
  2646. */
  2647. hover: !1,
  2648. /**
  2649. * @description Graph rendering index
  2650. * Give priority to index high graph in rendering
  2651. * @type {Number}
  2652. * @example index = 1
  2653. */
  2654. index: 1,
  2655. /**
  2656. * @description Animation delay time(ms)
  2657. * @type {Number}
  2658. * @default animationDelay = 0
  2659. */
  2660. animationDelay: 0,
  2661. /**
  2662. * @description Number of animation frames
  2663. * @type {Number}
  2664. * @default animationFrame = 30
  2665. */
  2666. animationFrame: 30,
  2667. /**
  2668. * @description Animation dynamic curve (Supported by transition)
  2669. * @type {String}
  2670. * @default animationCurve = 'linear'
  2671. * @link https://github.com/jiaming743/Transition
  2672. */
  2673. animationCurve: "linear",
  2674. /**
  2675. * @description Weather to pause graph animation
  2676. * @type {Boolean}
  2677. * @default animationPause = false
  2678. */
  2679. animationPause: !1,
  2680. /**
  2681. * @description Rectangular hover detection zone
  2682. * Use this method for hover detection first
  2683. * @type {Null|Array}
  2684. * @default hoverRect = null
  2685. * @example hoverRect = [0, 0, 100, 100] // [Rect start x, y, Rect width, height]
  2686. */
  2687. hoverRect: null,
  2688. /**
  2689. * @description Mouse enter event handler
  2690. * @type {Function|Null}
  2691. * @default mouseEnter = null
  2692. */
  2693. mouseEnter: null,
  2694. /**
  2695. * @description Mouse outer event handler
  2696. * @type {Function|Null}
  2697. * @default mouseOuter = null
  2698. */
  2699. mouseOuter: null,
  2700. /**
  2701. * @description Mouse click event handler
  2702. * @type {Function|Null}
  2703. * @default click = null
  2704. */
  2705. click: null
  2706. }, W = {
  2707. status: "static",
  2708. animationRoot: [],
  2709. animationKeys: [],
  2710. animationFrameState: [],
  2711. cache: {}
  2712. };
  2713. d.shape || (d.shape = {}), d.style || (d.style = {});
  2714. var q = Object.assign({}, L.shape, d.shape);
  2715. Object.assign(B, d, W), Object.assign(this, L, B), this.shape = q, this.style = new _.default(d.style), this.addedProcessor();
  2716. };
  2717. e.default = E, E.prototype.addedProcessor = function() {
  2718. typeof this.setGraphCenter == "function" && this.setGraphCenter(null, this), typeof this.added == "function" && this.added(this);
  2719. }, E.prototype.drawProcessor = function(T, L) {
  2720. var d = T.ctx;
  2721. L.style.initStyle(d), typeof this.beforeDraw == "function" && this.beforeDraw(this, T), L.draw(T, L), typeof this.drawed == "function" && this.drawed(this, T), L.style.restoreTransform(d);
  2722. }, E.prototype.hoverCheckProcessor = function(T, L) {
  2723. var d = L.hoverRect, B = L.style, W = L.hoverCheck, q = B.graphCenter, G = B.rotate, m = B.scale, y = B.translate;
  2724. return q && (G && (T = (0, z.getRotatePointPos)(-G, T, q)), m && (T = (0, z.getScalePointPos)(m.map(function(f) {
  2725. return 1 / f;
  2726. }), T, q)), y && (T = (0, z.getTranslatePointPos)(y.map(function(f) {
  2727. return f * -1;
  2728. }), T))), d ? z.checkPointIsInRect.apply(void 0, [T].concat((0, l.default)(d))) : W(T, this);
  2729. }, E.prototype.moveProcessor = function(T) {
  2730. this.move(T, this), typeof this.beforeMove == "function" && this.beforeMove(T, this), typeof this.setGraphCenter == "function" && this.setGraphCenter(T, this), typeof this.moved == "function" && this.moved(T, this);
  2731. }, E.prototype.attr = function(T) {
  2732. var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0;
  2733. if (!T || L === void 0) return !1;
  2734. var d = (0, n.default)(this[T]) === "object";
  2735. d && (L = (0, z.deepClone)(L, !0));
  2736. var B = this.render;
  2737. T === "style" ? this.style.update(L) : d ? Object.assign(this[T], L) : this[T] = L, T === "index" && B.sortGraphsByIndex(), B.drawAllGraph();
  2738. }, E.prototype.animation = /* @__PURE__ */ function() {
  2739. var T = (0, t.default)(
  2740. /* @__PURE__ */ a.default.mark(function L(d, B) {
  2741. var W, q, G, m, y, f, D, k, C, $ = arguments;
  2742. return a.default.wrap(function(M) {
  2743. for (; ; )
  2744. switch (M.prev = M.next) {
  2745. case 0:
  2746. if (W = $.length > 2 && $[2] !== void 0 ? $[2] : !1, !(d !== "shape" && d !== "style")) {
  2747. M.next = 4;
  2748. break;
  2749. }
  2750. return console.error("Only supported shape and style animation!"), M.abrupt("return");
  2751. case 4:
  2752. if (B = (0, z.deepClone)(B, !0), d === "style" && this.style.colorProcessor(B), q = this[d], G = Object.keys(B), m = {}, G.forEach(function(A) {
  2753. return m[A] = q[A];
  2754. }), y = this.animationFrame, f = this.animationCurve, D = this.animationDelay, k = (0, x.default)(f, m, B, y, !0), this.animationRoot.push(q), this.animationKeys.push(G), this.animationFrameState.push(k), !W) {
  2755. M.next = 17;
  2756. break;
  2757. }
  2758. return M.abrupt("return");
  2759. case 17:
  2760. if (!(D > 0)) {
  2761. M.next = 20;
  2762. break;
  2763. }
  2764. return M.next = 20, U(D);
  2765. case 20:
  2766. return C = this.render, M.abrupt("return", new Promise(
  2767. /* @__PURE__ */ function() {
  2768. var A = (0, t.default)(
  2769. /* @__PURE__ */ a.default.mark(function p(V) {
  2770. return a.default.wrap(function(ee) {
  2771. for (; ; )
  2772. switch (ee.prev = ee.next) {
  2773. case 0:
  2774. return ee.next = 2, C.launchAnimation();
  2775. case 2:
  2776. V();
  2777. case 3:
  2778. case "end":
  2779. return ee.stop();
  2780. }
  2781. }, p);
  2782. })
  2783. );
  2784. return function(p) {
  2785. return A.apply(this, arguments);
  2786. };
  2787. }()
  2788. ));
  2789. case 22:
  2790. case "end":
  2791. return M.stop();
  2792. }
  2793. }, L, this);
  2794. })
  2795. );
  2796. return function(L, d) {
  2797. return T.apply(this, arguments);
  2798. };
  2799. }(), E.prototype.turnNextAnimationFrame = function(T) {
  2800. var L = this.animationDelay, d = this.animationRoot, B = this.animationKeys, W = this.animationFrameState, q = this.animationPause;
  2801. q || Date.now() - T < L || (d.forEach(function(G, m) {
  2802. B[m].forEach(function(y) {
  2803. G[y] = W[m][0][y];
  2804. });
  2805. }), W.forEach(function(G, m) {
  2806. G.shift();
  2807. var y = G.length === 0;
  2808. y && (d[m] = null), y && (B[m] = null);
  2809. }), this.animationFrameState = W.filter(function(G) {
  2810. return G.length;
  2811. }), this.animationRoot = d.filter(function(G) {
  2812. return G;
  2813. }), this.animationKeys = B.filter(function(G) {
  2814. return G;
  2815. }));
  2816. }, E.prototype.animationEnd = function() {
  2817. var T = this.animationFrameState, L = this.animationKeys, d = this.animationRoot, B = this.render;
  2818. return d.forEach(function(W, q) {
  2819. var G = L[q], m = T[q].pop();
  2820. G.forEach(function(y) {
  2821. return W[y] = m[y];
  2822. });
  2823. }), this.animationFrameState = [], this.animationKeys = [], this.animationRoot = [], B.drawAllGraph();
  2824. }, E.prototype.pauseAnimation = function() {
  2825. this.attr("animationPause", !0);
  2826. }, E.prototype.playAnimation = function() {
  2827. var T = this.render;
  2828. return this.attr("animationPause", !1), new Promise(
  2829. /* @__PURE__ */ function() {
  2830. var L = (0, t.default)(
  2831. /* @__PURE__ */ a.default.mark(function d(B) {
  2832. return a.default.wrap(function(q) {
  2833. for (; ; )
  2834. switch (q.prev = q.next) {
  2835. case 0:
  2836. return q.next = 2, T.launchAnimation();
  2837. case 2:
  2838. B();
  2839. case 3:
  2840. case "end":
  2841. return q.stop();
  2842. }
  2843. }, d);
  2844. })
  2845. );
  2846. return function(d) {
  2847. return L.apply(this, arguments);
  2848. };
  2849. }()
  2850. );
  2851. }, E.prototype.delProcessor = function(T) {
  2852. var L = this, d = T.graphs, B = d.findIndex(function(W) {
  2853. return W === L;
  2854. });
  2855. B !== -1 && (typeof this.beforeDelete == "function" && this.beforeDelete(this), d.splice(B, 1, null), typeof this.deleted == "function" && this.deleted(this));
  2856. };
  2857. function U(T) {
  2858. return new Promise(function(L) {
  2859. setTimeout(L, T);
  2860. });
  2861. }
  2862. }(hr)), hr;
  2863. }
  2864. var qn;
  2865. function Ao() {
  2866. return qn || (qn = 1, function(e) {
  2867. var r = we;
  2868. Object.defineProperty(e, "__esModule", {
  2869. value: !0
  2870. }), e.default = void 0;
  2871. var a = r(Ve()), t = r(Te()), n = r(mt()), l = r(yt), o = r(cn()), _ = Fe(), x = r(fn()), z = r(ko());
  2872. function E(G, m) {
  2873. var y = Object.keys(G);
  2874. if (Object.getOwnPropertySymbols) {
  2875. var f = Object.getOwnPropertySymbols(G);
  2876. m && (f = f.filter(function(D) {
  2877. return Object.getOwnPropertyDescriptor(G, D).enumerable;
  2878. })), y.push.apply(y, f);
  2879. }
  2880. return y;
  2881. }
  2882. function U(G) {
  2883. for (var m = 1; m < arguments.length; m++) {
  2884. var y = arguments[m] != null ? arguments[m] : {};
  2885. m % 2 ? E(y, !0).forEach(function(f) {
  2886. (0, a.default)(G, f, y[f]);
  2887. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(G, Object.getOwnPropertyDescriptors(y)) : E(y).forEach(function(f) {
  2888. Object.defineProperty(G, f, Object.getOwnPropertyDescriptor(y, f));
  2889. });
  2890. }
  2891. return G;
  2892. }
  2893. var T = function G(m) {
  2894. if ((0, n.default)(this, G), !m) {
  2895. console.error("CRender Missing parameters!");
  2896. return;
  2897. }
  2898. var y = m.getContext("2d"), f = m.clientWidth, D = m.clientHeight, k = [f, D];
  2899. m.setAttribute("width", f), m.setAttribute("height", D), this.ctx = y, this.area = k, this.animationStatus = !1, this.graphs = [], this.color = l.default, this.bezierCurve = o.default, m.addEventListener("mousedown", B.bind(this)), m.addEventListener("mousemove", W.bind(this)), m.addEventListener("mouseup", q.bind(this));
  2900. };
  2901. e.default = T, T.prototype.clearArea = function() {
  2902. var G, m = this.area;
  2903. (G = this.ctx).clearRect.apply(G, [0, 0].concat((0, t.default)(m)));
  2904. }, T.prototype.add = function() {
  2905. var G = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, m = G.name;
  2906. if (!m) {
  2907. console.error("add Missing parameters!");
  2908. return;
  2909. }
  2910. var y = x.default.get(m);
  2911. if (!y) {
  2912. console.warn("No corresponding graph configuration found!");
  2913. return;
  2914. }
  2915. var f = new z.default(y, G);
  2916. if (f.validator(f))
  2917. return f.render = this, this.graphs.push(f), this.sortGraphsByIndex(), this.drawAllGraph(), f;
  2918. }, T.prototype.sortGraphsByIndex = function() {
  2919. var G = this.graphs;
  2920. G.sort(function(m, y) {
  2921. if (m.index > y.index) return 1;
  2922. if (m.index === y.index) return 0;
  2923. if (m.index < y.index) return -1;
  2924. });
  2925. }, T.prototype.delGraph = function(G) {
  2926. typeof G.delProcessor == "function" && (G.delProcessor(this), this.graphs = this.graphs.filter(function(m) {
  2927. return m;
  2928. }), this.drawAllGraph());
  2929. }, T.prototype.delAllGraph = function() {
  2930. var G = this;
  2931. this.graphs.forEach(function(m) {
  2932. return m.delProcessor(G);
  2933. }), this.graphs = this.graphs.filter(function(m) {
  2934. return m;
  2935. }), this.drawAllGraph();
  2936. }, T.prototype.drawAllGraph = function() {
  2937. var G = this;
  2938. this.clearArea(), this.graphs.filter(function(m) {
  2939. return m && m.visible;
  2940. }).forEach(function(m) {
  2941. return m.drawProcessor(G, m);
  2942. });
  2943. }, T.prototype.launchAnimation = function() {
  2944. var G = this, m = this.animationStatus;
  2945. if (!m)
  2946. return this.animationStatus = !0, new Promise(function(y) {
  2947. L.call(G, function() {
  2948. G.animationStatus = !1, y();
  2949. }, Date.now());
  2950. });
  2951. };
  2952. function L(G, m) {
  2953. var y = this.graphs;
  2954. if (!d(y)) {
  2955. G();
  2956. return;
  2957. }
  2958. y.forEach(function(f) {
  2959. return f.turnNextAnimationFrame(m);
  2960. }), this.drawAllGraph(), requestAnimationFrame(L.bind(this, G, m));
  2961. }
  2962. function d(G) {
  2963. return G.find(function(m) {
  2964. return !m.animationPause && m.animationFrameState.length;
  2965. });
  2966. }
  2967. function B(G) {
  2968. var m = this.graphs, y = m.find(function(f) {
  2969. return f.status === "hover";
  2970. });
  2971. y && (y.status = "active");
  2972. }
  2973. function W(G) {
  2974. var m = G.offsetX, y = G.offsetY, f = [m, y], D = this.graphs, k = D.find(function(p) {
  2975. return p.status === "active" || p.status === "drag";
  2976. });
  2977. if (k) {
  2978. if (!k.drag) return;
  2979. if (typeof k.move != "function") {
  2980. console.error("No move method is provided, cannot be dragged!");
  2981. return;
  2982. }
  2983. k.moveProcessor(G), k.status = "drag";
  2984. return;
  2985. }
  2986. var C = D.find(function(p) {
  2987. return p.status === "hover";
  2988. }), $ = D.filter(function(p) {
  2989. return p.hover && (typeof p.hoverCheck == "function" || p.hoverRect);
  2990. }), c = $.find(function(p) {
  2991. return p.hoverCheckProcessor(f, p);
  2992. });
  2993. c ? document.body.style.cursor = c.style.hoverCursor : document.body.style.cursor = "default";
  2994. var M = !1, A = !1;
  2995. if (C && (M = typeof C.mouseOuter == "function"), c && (A = typeof c.mouseEnter == "function"), !(!c && !C)) {
  2996. if (!c && C) {
  2997. M && C.mouseOuter(G, C), C.status = "static";
  2998. return;
  2999. }
  3000. if (!(c && c === C)) {
  3001. if (c && !C) {
  3002. A && c.mouseEnter(G, c), c.status = "hover";
  3003. return;
  3004. }
  3005. c && C && c !== C && (M && C.mouseOuter(G, C), C.status = "static", A && c.mouseEnter(G, c), c.status = "hover");
  3006. }
  3007. }
  3008. }
  3009. function q(G) {
  3010. var m = this.graphs, y = m.find(function(D) {
  3011. return D.status === "active";
  3012. }), f = m.find(function(D) {
  3013. return D.status === "drag";
  3014. });
  3015. y && typeof y.click == "function" && y.click(G, y), m.forEach(function(D) {
  3016. return D && (D.status = "static");
  3017. }), y && (y.status = "hover"), f && (f.status = "hover");
  3018. }
  3019. T.prototype.clone = function(G) {
  3020. var m = G.style.getStyle(), y = U({}, G, {
  3021. style: m
  3022. });
  3023. return delete y.render, y = (0, _.deepClone)(y, !0), this.add(y);
  3024. };
  3025. }(Ht)), Ht;
  3026. }
  3027. (function(e) {
  3028. var r = we;
  3029. Object.defineProperty(e, "__esModule", {
  3030. value: !0
  3031. }), Object.defineProperty(e, "CRender", {
  3032. enumerable: !0,
  3033. get: function() {
  3034. return a.default;
  3035. }
  3036. }), Object.defineProperty(e, "extendNewGraph", {
  3037. enumerable: !0,
  3038. get: function() {
  3039. return t.extendNewGraph;
  3040. }
  3041. }), e.default = void 0;
  3042. var a = r(Ao()), t = fn(), n = a.default;
  3043. e.default = n;
  3044. })(jt);
  3045. const Ga = /* @__PURE__ */ Aa(jt), Lo = { class: "dv-water-pond-level" }, So = { key: 0 }, Oo = ["id"], Go = ["offset", "stop-color"], Mo = ["stroke", "fill", "x", "y"], Ro = ["cx", "cy", "rx", "ry", "stroke"], Do = ["rx", "ry", "width", "height", "stroke"], To = {
  3046. __name: "index",
  3047. props: {
  3048. config: Object,
  3049. default: () => ({})
  3050. },
  3051. setup(e) {
  3052. const r = e, a = He(), t = me(null), n = Pe({
  3053. gradientId: `water-level-pond-${a}`,
  3054. defaultConfig: {
  3055. /**
  3056. * @description Data
  3057. * @type {Array<number>}
  3058. * @default data = []
  3059. * @example data = [60, 40]
  3060. */
  3061. data: [],
  3062. /**
  3063. * @description Shape of wanter level pond
  3064. * @type {string}
  3065. * @default shape = 'rect'
  3066. * @example shape = 'rect' | 'roundRect' | 'round'
  3067. */
  3068. shape: "rect",
  3069. /**
  3070. * @description Water wave number
  3071. * @type {number}
  3072. * @default waveNum = 3
  3073. */
  3074. waveNum: 3,
  3075. /**
  3076. * @description Water wave height (px)
  3077. * @type {number}
  3078. * @default waveHeight = 40
  3079. */
  3080. waveHeight: 40,
  3081. /**
  3082. * @description Wave opacity
  3083. * @type {number}
  3084. * @default waveOpacity = 0.4
  3085. */
  3086. waveOpacity: 0.4,
  3087. /**
  3088. * @description Colors (hex|rgb|rgba|color keywords)
  3089. * @type {Array<string>}
  3090. * @default colors = ['#00BAFF', '#3DE7C9']
  3091. * @example colors = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
  3092. */
  3093. colors: ["#3DE7C9", "#00BAFF"],
  3094. /**
  3095. * @description Formatter
  3096. * @type {string}
  3097. * @default formatter = '{value}%'
  3098. */
  3099. formatter: "{value}%"
  3100. },
  3101. mergedConfig: {},
  3102. renderer: null,
  3103. svgBorderGradient: [],
  3104. details: "",
  3105. waves: [],
  3106. animation: !1
  3107. }), l = be(() => {
  3108. const { shape: m } = n.mergedConfig;
  3109. return m === "round" ? "50%" : m === "rect" ? "0" : m === "roundRect" ? "10px" : "0";
  3110. }), o = be(() => {
  3111. const { shape: m } = n.mergedConfig;
  3112. return m || "rect";
  3113. });
  3114. ke(() => r.config, () => {
  3115. n.renderer.delAllGraph(), n.waves = [], setTimeout(z, 0);
  3116. }, {
  3117. deep: !0
  3118. }), Re(() => {
  3119. _();
  3120. }), Va(() => {
  3121. n.renderer.delAllGraph(), n.waves = [];
  3122. });
  3123. function _() {
  3124. x(), r.config && z();
  3125. }
  3126. function x() {
  3127. n.renderer = new Ga(t.value);
  3128. }
  3129. function z() {
  3130. E(), U(), T(), L(), G();
  3131. }
  3132. function E() {
  3133. n.mergedConfig = Ce(_e(n.defaultConfig), r.config);
  3134. }
  3135. function U() {
  3136. const { colors: m } = n.mergedConfig, f = 100 / (m.length - 1);
  3137. n.svgBorderGradient = m.map((D, k) => [f * k, D]);
  3138. }
  3139. function T() {
  3140. const { data: m, formatter: y } = n.mergedConfig;
  3141. if (!m.length) {
  3142. n.details = "";
  3143. return;
  3144. }
  3145. const f = Math.max(...m);
  3146. n.details = y.replace("{value}", f);
  3147. }
  3148. function L() {
  3149. const m = d(), y = W();
  3150. n.waves = m.map((f) => n.renderer.add({
  3151. name: "smoothline",
  3152. animationFrame: 300,
  3153. shape: f,
  3154. style: y,
  3155. drawed: q
  3156. }));
  3157. }
  3158. function d() {
  3159. const { waveNum: m, waveHeight: y, data: f } = n.mergedConfig, [D, k] = n.renderer.area, C = m * 4 + 4, $ = D / m / 2;
  3160. return f.map((c) => {
  3161. let M = Array.from({ length: C }).fill(0).map((A, p) => {
  3162. const V = D - $ * p, X = (1 - c / 100) * k, ee = p % 2 === 0 ? X : X - y;
  3163. return [V, ee];
  3164. });
  3165. return M = M.map((A) => B(A, [$ * 2, 0])), { points: M };
  3166. });
  3167. }
  3168. function B([m, y], [f, D]) {
  3169. return [m + f, y + D];
  3170. }
  3171. function W() {
  3172. const m = n.renderer.area[1];
  3173. return {
  3174. gradientColor: n.mergedConfig.colors,
  3175. gradientType: "linear",
  3176. gradientParams: [0, 0, 0, m],
  3177. gradientWith: "fill",
  3178. opacity: n.mergedConfig.waveOpacity,
  3179. translate: [0, 0]
  3180. };
  3181. }
  3182. function q({ shape: { points: m } }, { ctx: y, area: f }) {
  3183. const D = m[0], k = m.slice(-1)[0], C = f[1];
  3184. y.lineTo(k[0], C), y.lineTo(D[0], C), y.closePath(), y.fill();
  3185. }
  3186. async function G(m = 1) {
  3187. if (n.animation)
  3188. return;
  3189. n.animation = !0;
  3190. const y = n.renderer.area[0];
  3191. n.waves.forEach((f) => {
  3192. f.attr("style", { translate: [0, 0] }), f.animation("style", {
  3193. translate: [y, 0]
  3194. }, !0);
  3195. }), await n.renderer.launchAnimation(), n.animation = !1, n.renderer.graphs.length && G(m + 1);
  3196. }
  3197. return (m, y) => (le(), se("div", Lo, [
  3198. i(n).renderer ? (le(), se("svg", So, [
  3199. ae("defs", null, [
  3200. ae("linearGradient", {
  3201. id: i(n).gradientId,
  3202. x1: "0%",
  3203. y1: "0%",
  3204. x2: "0%",
  3205. y2: "100%"
  3206. }, [
  3207. (le(!0), se(Ae, null, Se(i(n).svgBorderGradient, (f) => (le(), se("stop", {
  3208. key: f[0],
  3209. offset: f[0],
  3210. "stop-color": f[1]
  3211. }, null, 8, Go))), 128))
  3212. ], 8, Oo)
  3213. ]),
  3214. i(n).renderer ? (le(), se("text", {
  3215. key: 0,
  3216. stroke: `url(#${i(n).gradientId})`,
  3217. fill: `url(#${i(n).gradientId})`,
  3218. x: i(n).renderer.area[0] / 2 + 8,
  3219. y: i(n).renderer.area[1] / 2 + 8
  3220. }, We(i(n).details), 9, Mo)) : $e("", !0),
  3221. !i(o) || i(o) === "round" ? (le(), se("ellipse", {
  3222. key: 1,
  3223. cx: i(n).renderer.area[0] / 2 + 8,
  3224. cy: i(n).renderer.area[1] / 2 + 8,
  3225. rx: i(n).renderer.area[0] / 2 + 5,
  3226. ry: i(n).renderer.area[1] / 2 + 5,
  3227. stroke: `url(#${i(n).gradientId})`
  3228. }, null, 8, Ro)) : (le(), se("rect", {
  3229. key: 2,
  3230. x: "2",
  3231. y: "2",
  3232. rx: i(o) === "roundRect" ? 10 : 0,
  3233. ry: i(o) === "roundRect" ? 10 : 0,
  3234. width: i(n).renderer.area[0] + 12,
  3235. height: i(n).renderer.area[1] + 12,
  3236. stroke: `url(#${i(n).gradientId})`
  3237. }, null, 8, Do))
  3238. ])) : $e("", !0),
  3239. ae("canvas", {
  3240. ref_key: "waterPondLevel",
  3241. ref: t,
  3242. style: Ge(`border-radius: ${i(l)};`)
  3243. }, null, 4)
  3244. ]));
  3245. }
  3246. }, xr = {
  3247. install(e) {
  3248. e.component("DvWaterLevelPond", To);
  3249. }
  3250. }, Fo = {}, Bo = { class: "dv-loading" }, No = { class: "loading-tip" };
  3251. function Wo(e, r) {
  3252. return le(), se("div", Bo, [
  3253. r[0] || (r[0] = Tt('<svg width="50px" height="50px"><circle cx="25" cy="25" r="20" fill="transparent" stroke-width="3" stroke-dasharray="31.415, 31.415" stroke="#02bcfe" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="0, 25 25;360, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#02bcfe;#3be6cb;#02bcfe" dur="3s" repeatCount="indefinite"></animate></circle><circle cx="25" cy="25" r="10" fill="transparent" stroke-width="3" stroke-dasharray="15.7, 15.7" stroke="#3be6cb" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="360, 25 25;0, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#3be6cb;#02bcfe;#3be6cb" dur="3s" repeatCount="indefinite"></animate></circle></svg>', 1)),
  3254. ae("div", No, [
  3255. Me(e.$slots, "default")
  3256. ])
  3257. ]);
  3258. }
  3259. const jo = /* @__PURE__ */ Ke(Fo, [["render", Wo]]), Cr = {
  3260. install(e) {
  3261. e.component("DvLoading", jo);
  3262. }
  3263. }, Eo = ["width", "height"], zo = ["id"], qo = ["id"], Io = ["id", "cx", "cy"], Ho = ["values", "dur"], Vo = ["dur"], Uo = ["id"], Xo = ["xlink:href", "fill"], Qo = ["xlink:href", "fill", "mask"], Yo = ["xlink:href", "width", "height", "x", "y"], Ko = ["fill", "x", "y"], Jo = ["id", "d"], Zo = ["xlink:href", "stroke-width", "stroke"], el = ["id"], tl = ["r", "fill"], rl = ["dur", "path"], nl = ["xlink:href", "stroke-width", "stroke", "mask"], al = ["from", "to", "dur"], il = {
  3264. __name: "index",
  3265. props: {
  3266. config: {
  3267. type: Object,
  3268. default: () => ({})
  3269. },
  3270. dev: {
  3271. type: Boolean,
  3272. default: !1
  3273. }
  3274. },
  3275. setup(e) {
  3276. const r = e, a = He(), t = me(null), { width: n, height: l } = xe(t, z, x), o = Pe({
  3277. unique: Math.random(),
  3278. flylineGradientId: `flyline-gradient-id-${a}`,
  3279. haloGradientId: `halo-gradient-id-${a}`,
  3280. /**
  3281. * @description Type Declaration
  3282. *
  3283. * interface Halo {
  3284. * show?: boolean
  3285. * duration?: [number, number]
  3286. * color?: string
  3287. * radius?: number
  3288. * }
  3289. *
  3290. * interface Text {
  3291. * show?: boolean
  3292. * offset?: [number, number]
  3293. * color?: string
  3294. * fontSize?: number
  3295. * }
  3296. *
  3297. * interface Icon {
  3298. * show?: boolean
  3299. * src?: string
  3300. * width?: number
  3301. * height?: number
  3302. * }
  3303. *
  3304. * interface Point {
  3305. * name: string
  3306. * coordinate: [number, number]
  3307. * halo?: Halo
  3308. * text?: Text
  3309. * icon?: Icon
  3310. * }
  3311. *
  3312. * interface Line {
  3313. * width?: number
  3314. * color?: string
  3315. * orbitColor?: string
  3316. * duration?: [number, number]
  3317. * radius?: string
  3318. * }
  3319. *
  3320. * interface Flyline extends Line {
  3321. * source: string
  3322. * target: string
  3323. * }
  3324. *
  3325. * interface FlylineWithPath extends Flyline {
  3326. * d: string
  3327. * path: [[number, number], [number, number], [number, number]]
  3328. * key: string
  3329. * }
  3330. */
  3331. defaultConfig: {
  3332. /**
  3333. * @description Flyline chart points
  3334. * @type {FlylineChartPoint[]}
  3335. * @default points = []
  3336. */
  3337. points: [],
  3338. /**
  3339. * @description Lines
  3340. * @type {Flyline[]}
  3341. * @default lines = []
  3342. */
  3343. lines: [],
  3344. /**
  3345. * @description Global halo configuration
  3346. * @type {Halo}
  3347. */
  3348. halo: {
  3349. /**
  3350. * @description Whether to show halo
  3351. * @type {boolean}
  3352. * @default show = false
  3353. */
  3354. show: !1,
  3355. /**
  3356. * @description Halo animation duration (1s = 10)
  3357. * @type {[number, number]}
  3358. */
  3359. duration: [20, 30],
  3360. /**
  3361. * @description Halo color
  3362. * @type {string}
  3363. * @default color = '#fb7293'
  3364. */
  3365. color: "#fb7293",
  3366. /**
  3367. * @description Halo radius
  3368. * @type {number}
  3369. * @default radius = 120
  3370. */
  3371. radius: 120
  3372. },
  3373. /**
  3374. * @description Global text configuration
  3375. * @type {Text}
  3376. */
  3377. text: {
  3378. /**
  3379. * @description Whether to show text
  3380. * @type {boolean}
  3381. * @default show = false
  3382. */
  3383. show: !1,
  3384. /**
  3385. * @description Text offset
  3386. * @type {[number, number]}
  3387. * @default offset = [0, 15]
  3388. */
  3389. offset: [0, 15],
  3390. /**
  3391. * @description Text color
  3392. * @type {string}
  3393. * @default color = '#ffdb5c'
  3394. */
  3395. color: "#ffdb5c",
  3396. /**
  3397. * @description Text font size
  3398. * @type {number}
  3399. * @default fontSize = 12
  3400. */
  3401. fontSize: 12
  3402. },
  3403. /**
  3404. * @description Global icon configuration
  3405. * @type {Icon}
  3406. */
  3407. icon: {
  3408. /**
  3409. * @description Whether to show icon
  3410. * @type {boolean}
  3411. * @default show = false
  3412. */
  3413. show: !1,
  3414. /**
  3415. * @description Icon src
  3416. * @type {string}
  3417. * @default src = ''
  3418. */
  3419. src: "",
  3420. /**
  3421. * @description Icon width
  3422. * @type {number}
  3423. * @default width = 15
  3424. */
  3425. width: 15,
  3426. /**
  3427. * @description Icon height
  3428. * @type {number}
  3429. * @default width = 15
  3430. */
  3431. height: 15
  3432. },
  3433. /**
  3434. * @description Global line configuration
  3435. * @type {Line}
  3436. */
  3437. line: {
  3438. /**
  3439. * @description Line width
  3440. * @type {number}
  3441. * @default width = 1
  3442. */
  3443. width: 1,
  3444. /**
  3445. * @description Flyline color
  3446. * @type {string}
  3447. * @default color = '#ffde93'
  3448. */
  3449. color: "#ffde93",
  3450. /**
  3451. * @description Orbit color
  3452. * @type {string}
  3453. * @default orbitColor = 'rgba(103, 224, 227, .2)'
  3454. */
  3455. orbitColor: "rgba(103, 224, 227, .2)",
  3456. /**
  3457. * @description Flyline animation duration
  3458. * @type {[number, number]}
  3459. * @default duration = [20, 30]
  3460. */
  3461. duration: [20, 30],
  3462. /**
  3463. * @description Flyline radius
  3464. * @type {number}
  3465. * @default radius = 100
  3466. */
  3467. radius: 100
  3468. },
  3469. /**
  3470. * @description Back ground image url
  3471. * @type {string}
  3472. * @default bgImgSrc = ''
  3473. */
  3474. bgImgSrc: "",
  3475. /**
  3476. * @description K value
  3477. * @type {number}
  3478. * @default k = -0.5
  3479. * @example k = -1 ~ 1
  3480. */
  3481. k: -0.5,
  3482. /**
  3483. * @description Flyline curvature
  3484. * @type {number}
  3485. * @default curvature = 5
  3486. */
  3487. curvature: 5,
  3488. /**
  3489. * @description Relative points position
  3490. * @type {boolean}
  3491. * @default relative = true
  3492. */
  3493. relative: !0
  3494. },
  3495. /**
  3496. * @description Fly line data
  3497. * @type {FlylineWithPath[]}
  3498. * @default flylines = []
  3499. */
  3500. flylines: [],
  3501. /**
  3502. * @description Fly line lengths
  3503. * @type {number[]}
  3504. * @default flylineLengths = []
  3505. */
  3506. flylineLengths: [],
  3507. /**
  3508. * @description Fly line points
  3509. * @default flylinePoints = []
  3510. */
  3511. flylinePoints: [],
  3512. mergedConfig: null
  3513. });
  3514. let _;
  3515. Re(() => {
  3516. _ = Ca();
  3517. }), ke(() => r.config, () => {
  3518. E();
  3519. }, {
  3520. deep: !0
  3521. });
  3522. function x() {
  3523. E();
  3524. }
  3525. function z() {
  3526. E();
  3527. }
  3528. async function E() {
  3529. U(), T(), L(), await q();
  3530. }
  3531. function U() {
  3532. const m = Ce(_e(o.defaultConfig), r.config || {}), { points: y, lines: f, halo: D, text: k, icon: C, line: $ } = m;
  3533. m.points = y.map((c) => (c.halo = Ce(_e(D), c.halo || {}), c.text = Ce(_e(k), c.text || {}), c.icon = Ce(_e(C), c.icon || {}), c)), m.lines = f.map((c) => Ce(_e($), c)), o.mergedConfig = m;
  3534. }
  3535. function T() {
  3536. const { relative: m, points: y } = o.mergedConfig;
  3537. o.flylinePoints = y.map((f, D) => {
  3538. const { coordinate: [k, C], halo: $, icon: c, text: M } = f;
  3539. m && (f.coordinate = [k * n.value, C * l.value]), f.halo.time = ht(...$.duration) / 10;
  3540. const { width: A, height: p } = c;
  3541. f.icon.x = f.coordinate[0] - A / 2, f.icon.y = f.coordinate[1] - p / 2;
  3542. const [V, X] = M.offset;
  3543. return f.text.x = f.coordinate[0] + V, f.text.y = f.coordinate[1] + X, f.key = `${f.coordinate.toString()}${D}`, f;
  3544. });
  3545. }
  3546. function L() {
  3547. const { points: m, lines: y } = o.mergedConfig;
  3548. o.flylines = y.map((f) => {
  3549. const { source: D, target: k, duration: C } = f, $ = m.find(({ name: X }) => X === D).coordinate, c = m.find(({ name: X }) => X === k).coordinate, M = d($, c).map((X) => X.map((ee) => Number.parseFloat(ee.toFixed(10)))), A = `M${M[0].toString()} Q${M[1].toString()} ${M[2].toString()}`, p = `path${M.toString()}`, V = ht(...C) / 10;
  3550. return { ...f, path: M, key: p, d: A, time: V };
  3551. });
  3552. }
  3553. function d(m, y) {
  3554. const f = B(m, y);
  3555. return [m, f, y];
  3556. }
  3557. function B([m, y], [f, D]) {
  3558. const { curvature: k, k: C } = o.mergedConfig, [$, c] = [(m + f) / 2, (y + D) / 2], A = Dt([m, y], [f, D]) / k, p = A / 2;
  3559. let [V, X] = [$, c];
  3560. do
  3561. V += p, X = W(C, [$, c], V)[1];
  3562. while (Dt([$, c], [V, X]) < A);
  3563. return [V, X];
  3564. }
  3565. function W(m, [y, f], D) {
  3566. const k = f - m * y + m * D;
  3567. return [D, k];
  3568. }
  3569. async function q() {
  3570. await Bt(), o.flylineLengths = o.flylines.map(({ key: m }) => _.proxy.$refs[m][0].getTotalLength());
  3571. }
  3572. function G({ offsetX: m, offsetY: y }) {
  3573. if (!r.dev)
  3574. return;
  3575. const f = (m / n.value).toFixed(2), D = (y / l.value).toFixed(2);
  3576. console.warn(`dv-flyline-chart-enhanced DEV:
  3577. Click Position is [${m}, ${y}]
  3578. Relative Position is [${f}, ${D}]`);
  3579. }
  3580. return (m, y) => (le(), se("div", {
  3581. ref_key: "flylineChartEnhanced",
  3582. ref: t,
  3583. class: "dv-flyline-chart-enhanced",
  3584. style: Ge(`background-image: url(${i(o).mergedConfig ? i(o).mergedConfig.bgImgSrc : ""})`),
  3585. onClick: G
  3586. }, [
  3587. i(o).flylines.length ? (le(), se("svg", {
  3588. key: 0,
  3589. width: i(n),
  3590. height: i(l)
  3591. }, [
  3592. ae("defs", null, [
  3593. ae("radialGradient", {
  3594. id: i(o).flylineGradientId,
  3595. cx: "50%",
  3596. cy: "50%",
  3597. r: "50%"
  3598. }, y[0] || (y[0] = [
  3599. ae("stop", {
  3600. offset: "0%",
  3601. "stop-color": "#fff",
  3602. "stop-opacity": "1"
  3603. }, null, -1),
  3604. ae("stop", {
  3605. offset: "100%",
  3606. "stop-color": "#fff",
  3607. "stop-opacity": "0"
  3608. }, null, -1)
  3609. ]), 8, zo),
  3610. ae("radialGradient", {
  3611. id: i(o).haloGradientId,
  3612. cx: "50%",
  3613. cy: "50%",
  3614. r: "50%"
  3615. }, y[1] || (y[1] = [
  3616. ae("stop", {
  3617. offset: "0%",
  3618. "stop-color": "#fff",
  3619. "stop-opacity": "0"
  3620. }, null, -1),
  3621. ae("stop", {
  3622. offset: "100%",
  3623. "stop-color": "#fff",
  3624. "stop-opacity": "1"
  3625. }, null, -1)
  3626. ]), 8, qo)
  3627. ]),
  3628. (le(!0), se(Ae, null, Se(i(o).flylinePoints, (f) => (le(), se("g", {
  3629. key: f.key + Math.random()
  3630. }, [
  3631. ae("defs", null, [
  3632. f.halo.show ? (le(), se("circle", {
  3633. key: 0,
  3634. id: `halo${i(o).unique}${f.key}`,
  3635. cx: f.coordinate[0],
  3636. cy: f.coordinate[1]
  3637. }, [
  3638. ae("animate", {
  3639. attributeName: "r",
  3640. values: `1;${f.halo.radius}`,
  3641. dur: `${f.halo.time}s`,
  3642. repeatCount: "indefinite"
  3643. }, null, 8, Ho),
  3644. ae("animate", {
  3645. attributeName: "opacity",
  3646. values: "1;0",
  3647. dur: `${f.halo.time}s`,
  3648. repeatCount: "indefinite"
  3649. }, null, 8, Vo)
  3650. ], 8, Io)) : $e("", !0)
  3651. ]),
  3652. ae("mask", {
  3653. id: `mask${i(o).unique}${f.key}`
  3654. }, [
  3655. f.halo.show ? (le(), se("use", {
  3656. key: 0,
  3657. "xlink:href": `#halo${i(o).unique}${f.key}`,
  3658. fill: `url(#${i(o).haloGradientId})`
  3659. }, null, 8, Xo)) : $e("", !0)
  3660. ], 8, Uo),
  3661. f.halo.show ? (le(), se("use", {
  3662. key: 0,
  3663. "xlink:href": `#halo${i(o).unique}${f.key}`,
  3664. fill: f.halo.color,
  3665. mask: `url(#mask${i(o).unique}${f.key})`
  3666. }, null, 8, Qo)) : $e("", !0),
  3667. f.icon.show ? (le(), se("image", {
  3668. key: 1,
  3669. "xlink:href": f.icon.src,
  3670. width: f.icon.width,
  3671. height: f.icon.height,
  3672. x: f.icon.x,
  3673. y: f.icon.y
  3674. }, null, 8, Yo)) : $e("", !0),
  3675. f.text.show ? (le(), se("text", {
  3676. key: 2,
  3677. style: Ge(`fontSize:${f.text.fontSize}px;color:${f.text.color}`),
  3678. fill: f.text.color,
  3679. x: f.text.x,
  3680. y: f.text.y
  3681. }, We(f.name), 13, Ko)) : $e("", !0)
  3682. ]))), 128)),
  3683. (le(!0), se(Ae, null, Se(i(o).flylines, (f, D) => (le(), se("g", {
  3684. key: f.key + Math.random()
  3685. }, [
  3686. ae("defs", null, [
  3687. ae("path", {
  3688. id: f.key,
  3689. ref_for: !0,
  3690. ref: f.key,
  3691. d: f.d,
  3692. fill: "transparent"
  3693. }, null, 8, Jo)
  3694. ]),
  3695. ae("use", {
  3696. "xlink:href": `#${f.key}`,
  3697. "stroke-width": f.width,
  3698. stroke: f.orbitColor
  3699. }, null, 8, Zo),
  3700. ae("mask", {
  3701. id: `mask${i(o).unique}${f.key}`
  3702. }, [
  3703. ae("circle", {
  3704. cx: "0",
  3705. cy: "0",
  3706. r: f.radius,
  3707. fill: `url(#${i(o).flylineGradientId})`
  3708. }, [
  3709. ae("animateMotion", {
  3710. dur: f.time,
  3711. path: f.d,
  3712. rotate: "auto",
  3713. repeatCount: "indefinite"
  3714. }, null, 8, rl)
  3715. ], 8, tl)
  3716. ], 8, el),
  3717. i(o).flylineLengths[D] ? (le(), se("use", {
  3718. key: 0,
  3719. "xlink:href": `#${f.key}`,
  3720. "stroke-width": f.width,
  3721. stroke: f.color,
  3722. mask: `url(#mask${i(o).unique}${f.key})`
  3723. }, [
  3724. ae("animate", {
  3725. attributeName: "stroke-dasharray",
  3726. from: `0, ${i(o).flylineLengths[D]}`,
  3727. to: `${i(o).flylineLengths[D]}, 0`,
  3728. dur: f.time,
  3729. repeatCount: "indefinite"
  3730. }, null, 8, al)
  3731. ], 8, nl)) : $e("", !0)
  3732. ]))), 128))
  3733. ], 8, Eo)) : $e("", !0)
  3734. ], 4));
  3735. }
  3736. }, $r = {
  3737. install(e) {
  3738. e.component("DvFlylineChartEnhanced", il);
  3739. }
  3740. }, ol = ["width", "height"], ll = ["id"], sl = ["id"], ul = ["id", "cx", "cy"], cl = ["values", "dur"], fl = ["dur"], dl = ["xlink:href", "width", "height", "x", "y"], hl = ["id"], vl = ["xlink:href", "fill"], pl = ["xlink:href", "fill", "mask"], gl = ["id", "d"], ml = ["xlink:href", "stroke-width", "stroke"], yl = ["xlink:href", "stroke-width", "stroke", "mask"], bl = ["from", "to", "dur"], xl = ["id"], Cl = ["r", "fill"], $l = ["dur", "path"], _l = ["xlink:href", "width", "height", "x", "y"], Pl = ["fill", "x", "y"], wl = {
  3741. __name: "index",
  3742. props: {
  3743. config: {
  3744. type: Object,
  3745. default: () => ({})
  3746. },
  3747. dev: {
  3748. type: Boolean,
  3749. default: !1
  3750. }
  3751. },
  3752. setup(e) {
  3753. const r = e, a = He(), t = me(null), { width: n, height: l } = xe(t, z, x), o = Pe({
  3754. unique: Math.random(),
  3755. maskId: `flyline-mask-id-${a}`,
  3756. maskCircleId: `mask-circle-id-${a}`,
  3757. gradientId: `gradient-id-${a}`,
  3758. gradient2Id: `gradient2-id-${a}`,
  3759. defaultConfig: {
  3760. /**
  3761. * @description Flyline chart center point
  3762. * @type {Array<number>}
  3763. * @default centerPoint = [0, 0]
  3764. */
  3765. centerPoint: [0, 0],
  3766. /**
  3767. * @description Flyline start points
  3768. * @type {Array<Array<number>>}
  3769. * @default points = []
  3770. * @example points = [[10, 10], [100, 100]]
  3771. */
  3772. points: [],
  3773. /**
  3774. * @description Flyline width
  3775. * @type {number}
  3776. * @default lineWidth = 1
  3777. */
  3778. lineWidth: 1,
  3779. /**
  3780. * @description Orbit color
  3781. * @type {string}
  3782. * @default orbitColor = 'rgba(103, 224, 227, .2)'
  3783. */
  3784. orbitColor: "rgba(103, 224, 227, .2)",
  3785. /**
  3786. * @description Flyline color
  3787. * @type {string}
  3788. * @default orbitColor = '#ffde93'
  3789. */
  3790. flylineColor: "#ffde93",
  3791. /**
  3792. * @description K value
  3793. * @type {number}
  3794. * @default k = -0.5
  3795. * @example k = -1 ~ 1
  3796. */
  3797. k: -0.5,
  3798. /**
  3799. * @description Flyline curvature
  3800. * @type {number}
  3801. * @default curvature = 5
  3802. */
  3803. curvature: 5,
  3804. /**
  3805. * @description Flyline radius
  3806. * @type {number}
  3807. * @default flylineRadius = 100
  3808. */
  3809. flylineRadius: 100,
  3810. /**
  3811. * @description Flyline animation duration
  3812. * @type {Array<number>}
  3813. * @default duration = [20, 30]
  3814. */
  3815. duration: [20, 30],
  3816. /**
  3817. * @description Relative points position
  3818. * @type {boolean}
  3819. * @default relative = true
  3820. */
  3821. relative: !0,
  3822. /**
  3823. * @description Back ground image url
  3824. * @type {string}
  3825. * @default bgImgUrl = ''
  3826. * @example bgImgUrl = './img/bg.jpg'
  3827. */
  3828. bgImgUrl: "",
  3829. /**
  3830. * @description Text configuration
  3831. * @type {object}
  3832. */
  3833. text: {
  3834. /**
  3835. * @description Text offset
  3836. * @type {Array<number>}
  3837. * @default offset = [0, 15]
  3838. */
  3839. offset: [0, 15],
  3840. /**
  3841. * @description Text color
  3842. * @type {string}
  3843. * @default color = '#ffdb5c'
  3844. */
  3845. color: "#ffdb5c",
  3846. /**
  3847. * @description Text font size
  3848. * @type {number}
  3849. * @default fontSize = 12
  3850. */
  3851. fontSize: 12
  3852. },
  3853. /**
  3854. * @description Halo configuration
  3855. * @type {object}
  3856. */
  3857. halo: {
  3858. /**
  3859. * @description Weather to show halo
  3860. * @type {boolean}
  3861. * @default show = true
  3862. * @example show = true | false
  3863. */
  3864. show: !0,
  3865. /**
  3866. * @description Halo animation duration (10 = 1s)
  3867. * @type {number}
  3868. * @default duration = 30
  3869. */
  3870. duration: 30,
  3871. /**
  3872. * @description Halo color
  3873. * @type {string}
  3874. * @default color = '#fb7293'
  3875. */
  3876. color: "#fb7293",
  3877. /**
  3878. * @description Halo max radius
  3879. * @type {number}
  3880. * @default radius = 120
  3881. */
  3882. radius: 120
  3883. },
  3884. /**
  3885. * @description Center point img configuration
  3886. * @type {object}
  3887. */
  3888. centerPointImg: {
  3889. /**
  3890. * @description Center point img width
  3891. * @type {number}
  3892. * @default width = 40
  3893. */
  3894. width: 40,
  3895. /**
  3896. * @description Center point img height
  3897. * @type {number}
  3898. * @default height = 40
  3899. */
  3900. height: 40,
  3901. /**
  3902. * @description Center point img url
  3903. * @type {string}
  3904. * @default url = ''
  3905. */
  3906. url: ""
  3907. },
  3908. /**
  3909. * @description Points img configuration
  3910. * @type {object}
  3911. * @default radius = 120
  3912. */
  3913. pointsImg: {
  3914. /**
  3915. * @description Points img width
  3916. * @type {number}
  3917. * @default width = 15
  3918. */
  3919. width: 15,
  3920. /**
  3921. * @description Points img height
  3922. * @type {number}
  3923. * @default height = 15
  3924. */
  3925. height: 15,
  3926. /**
  3927. * @description Points img url
  3928. * @type {string}
  3929. * @default url = ''
  3930. */
  3931. url: ""
  3932. }
  3933. },
  3934. mergedConfig: null,
  3935. paths: [],
  3936. lengths: [],
  3937. times: [],
  3938. texts: []
  3939. });
  3940. let _;
  3941. Re(() => {
  3942. _ = Ca();
  3943. }), ke(() => r.config, () => {
  3944. E();
  3945. }, {
  3946. deep: !0
  3947. });
  3948. function x() {
  3949. E();
  3950. }
  3951. function z() {
  3952. E();
  3953. }
  3954. async function E() {
  3955. U(), T(), await W(), q(), G();
  3956. }
  3957. function U() {
  3958. const y = Ce(_e(o.defaultConfig), r.config || {}), { points: f } = y;
  3959. y.points = f.map((D) => Array.isArray(D) ? { position: D, text: "" } : D), o.mergedConfig = y;
  3960. }
  3961. function T() {
  3962. let { centerPoint: y, points: f } = o.mergedConfig;
  3963. const { relative: D } = o.mergedConfig;
  3964. f = f.map(({ position: k }) => k), D && (y = [n.value * y[0], l.value * y[1]], f = f.map(([k, C]) => [n.value * k, l.value * C])), o.paths = f.map((k) => L(y, k));
  3965. }
  3966. function L(y, f) {
  3967. const D = d(y, f);
  3968. return [f, D, y];
  3969. }
  3970. function d([y, f], [D, k]) {
  3971. const { curvature: C, k: $ } = o.mergedConfig, [c, M] = [(y + D) / 2, (f + k) / 2], p = Dt([y, f], [D, k]) / C, V = p / 2;
  3972. let [X, ee] = [c, M];
  3973. do
  3974. X += V, ee = B($, [c, M], X)[1];
  3975. while (Dt([c, M], [X, ee]) < p);
  3976. return [X, ee];
  3977. }
  3978. function B(y, [f, D], k) {
  3979. const C = D - y * f + y * k;
  3980. return [k, C];
  3981. }
  3982. async function W() {
  3983. await Bt(), o.lengths = o.paths.map((y, f) => _.proxy.$refs[`path${f}`][0].getTotalLength());
  3984. }
  3985. function q() {
  3986. const { duration: y, points: f } = o.mergedConfig;
  3987. o.times = f.map(() => ht(...y) / 10);
  3988. }
  3989. function G() {
  3990. const { points: y } = o.mergedConfig;
  3991. o.texts = y.map(({ text: f }) => f);
  3992. }
  3993. function m({ offsetX: y, offsetY: f }) {
  3994. if (!r.dev)
  3995. return;
  3996. const D = (y / n.value).toFixed(2), k = (f / l.value).toFixed(2);
  3997. console.warn(`dv-flyline-chart DEV:
  3998. Click Position is [${y}, ${f}]
  3999. Relative Position is [${D}, ${k}]`);
  4000. }
  4001. return (y, f) => (le(), se("div", {
  4002. ref_key: "flylineChart",
  4003. ref: t,
  4004. class: "dv-flyline-chart",
  4005. style: Ge(`background-image: url(${i(o).mergedConfig ? i(o).mergedConfig.bgImgUrl : ""})`),
  4006. onClick: m
  4007. }, [
  4008. i(o).mergedConfig ? (le(), se("svg", {
  4009. key: 0,
  4010. width: i(n),
  4011. height: i(l)
  4012. }, [
  4013. ae("defs", null, [
  4014. ae("radialGradient", {
  4015. id: i(o).gradientId,
  4016. cx: "50%",
  4017. cy: "50%",
  4018. r: "50%"
  4019. }, f[0] || (f[0] = [
  4020. ae("stop", {
  4021. offset: "0%",
  4022. "stop-color": "#fff",
  4023. "stop-opacity": "1"
  4024. }, null, -1),
  4025. ae("stop", {
  4026. offset: "100%",
  4027. "stop-color": "#fff",
  4028. "stop-opacity": "0"
  4029. }, null, -1)
  4030. ]), 8, ll),
  4031. ae("radialGradient", {
  4032. id: i(o).gradient2Id,
  4033. cx: "50%",
  4034. cy: "50%",
  4035. r: "50%"
  4036. }, f[1] || (f[1] = [
  4037. ae("stop", {
  4038. offset: "0%",
  4039. "stop-color": "#fff",
  4040. "stop-opacity": "0"
  4041. }, null, -1),
  4042. ae("stop", {
  4043. offset: "100%",
  4044. "stop-color": "#fff",
  4045. "stop-opacity": "1"
  4046. }, null, -1)
  4047. ]), 8, sl),
  4048. i(o).paths[0] ? (le(), se("circle", {
  4049. key: 0,
  4050. id: `circle${i(o).paths[0].toString()}`,
  4051. cx: i(o).paths[0][2][0],
  4052. cy: i(o).paths[0][2][1]
  4053. }, [
  4054. ae("animate", {
  4055. attributeName: "r",
  4056. values: `1;${i(o).mergedConfig.halo.radius}`,
  4057. dur: `${i(o).mergedConfig.halo.duration / 10}s`,
  4058. repeatCount: "indefinite"
  4059. }, null, 8, cl),
  4060. ae("animate", {
  4061. attributeName: "opacity",
  4062. values: "1;0",
  4063. dur: `${i(o).mergedConfig.halo.duration / 10}s`,
  4064. repeatCount: "indefinite"
  4065. }, null, 8, fl)
  4066. ], 8, ul)) : $e("", !0)
  4067. ]),
  4068. i(o).paths[0] ? (le(), se("image", {
  4069. key: 0,
  4070. "xlink:href": i(o).mergedConfig.centerPointImg.url,
  4071. width: i(o).mergedConfig.centerPointImg.width,
  4072. height: i(o).mergedConfig.centerPointImg.height,
  4073. x: i(o).paths[0][2][0] - i(o).mergedConfig.centerPointImg.width / 2,
  4074. y: i(o).paths[0][2][1] - i(o).mergedConfig.centerPointImg.height / 2
  4075. }, null, 8, dl)) : $e("", !0),
  4076. ae("mask", {
  4077. id: `maskhalo${i(o).paths[0].toString()}`
  4078. }, [
  4079. i(o).paths[0] ? (le(), se("use", {
  4080. key: 0,
  4081. "xlink:href": `#circle${i(o).paths[0].toString()}`,
  4082. fill: `url(#${i(o).gradient2Id})`
  4083. }, null, 8, vl)) : $e("", !0)
  4084. ], 8, hl),
  4085. i(o).paths[0] && i(o).mergedConfig.halo.show ? (le(), se("use", {
  4086. key: 1,
  4087. "xlink:href": `#circle${i(o).paths[0].toString()}`,
  4088. fill: i(o).mergedConfig.halo.color,
  4089. mask: `url(#maskhalo${i(o).paths[0].toString()})`
  4090. }, null, 8, pl)) : $e("", !0),
  4091. (le(!0), se(Ae, null, Se(i(o).paths, (D, k) => (le(), se("g", { key: k }, [
  4092. ae("defs", null, [
  4093. ae("path", {
  4094. id: `path${D.toString()}`,
  4095. ref_for: !0,
  4096. ref: `path${k}`,
  4097. d: `M${D[0].toString()} Q${D[1].toString()} ${D[2].toString()}`,
  4098. fill: "transparent"
  4099. }, null, 8, gl)
  4100. ]),
  4101. ae("use", {
  4102. "xlink:href": `#path${D.toString()}`,
  4103. "stroke-width": i(o).mergedConfig.lineWidth,
  4104. stroke: i(o).mergedConfig.orbitColor
  4105. }, null, 8, ml),
  4106. i(o).lengths[k] ? (le(), se("use", {
  4107. key: 0,
  4108. "xlink:href": `#path${D.toString()}`,
  4109. "stroke-width": i(o).mergedConfig.lineWidth,
  4110. stroke: i(o).mergedConfig.flylineColor,
  4111. mask: `url(#mask${i(o).unique}${D.toString()})`
  4112. }, [
  4113. ae("animate", {
  4114. attributeName: "stroke-dasharray",
  4115. from: `0, ${i(o).lengths[k]}`,
  4116. to: `${i(o).lengths[k]}, 0`,
  4117. dur: i(o).times[k] || 0,
  4118. repeatCount: "indefinite"
  4119. }, null, 8, bl)
  4120. ], 8, yl)) : $e("", !0),
  4121. ae("mask", {
  4122. id: `mask${i(o).unique}${D.toString()}`
  4123. }, [
  4124. ae("circle", {
  4125. cx: "0",
  4126. cy: "0",
  4127. r: i(o).mergedConfig.flylineRadius,
  4128. fill: `url(#${i(o).gradientId})`
  4129. }, [
  4130. ae("animateMotion", {
  4131. dur: i(o).times[k] || 0,
  4132. path: `M${D[0].toString()} Q${D[1].toString()} ${D[2].toString()}`,
  4133. rotate: "auto",
  4134. repeatCount: "indefinite"
  4135. }, null, 8, $l)
  4136. ], 8, Cl)
  4137. ], 8, xl),
  4138. ae("image", {
  4139. "xlink:href": i(o).mergedConfig.pointsImg.url,
  4140. width: i(o).mergedConfig.pointsImg.width,
  4141. height: i(o).mergedConfig.pointsImg.height,
  4142. x: D[0][0] - i(o).mergedConfig.pointsImg.width / 2,
  4143. y: D[0][1] - i(o).mergedConfig.pointsImg.height / 2
  4144. }, null, 8, _l),
  4145. ae("text", {
  4146. style: Ge(`fontSize:${i(o).mergedConfig.text.fontSize}px;`),
  4147. fill: i(o).mergedConfig.text.color,
  4148. x: D[0][0] + i(o).mergedConfig.text.offset[0],
  4149. y: D[0][1] + i(o).mergedConfig.text.offset[1]
  4150. }, We(i(o).texts[k]), 13, Pl)
  4151. ]))), 128))
  4152. ], 8, ol)) : $e("", !0)
  4153. ], 4));
  4154. }
  4155. }, _r = {
  4156. install(e) {
  4157. e.component("DvFlylineChart", wl);
  4158. }
  4159. }, kl = { class: "ranking-info" }, Al = { class: "rank" }, Ll = ["innerHTML"], Sl = { class: "ranking-value" }, Ol = { class: "ranking-column" }, Gl = {
  4160. __name: "index",
  4161. props: {
  4162. config: {
  4163. type: Object,
  4164. default: () => ({})
  4165. }
  4166. },
  4167. setup(e) {
  4168. pt((G) => ({
  4169. fdc8fe50: i(o),
  4170. "442085aa": i(l),
  4171. ca44414a: i(x),
  4172. "31d0b588": i(_)
  4173. }));
  4174. const r = e, a = me(null), { height: t } = xe(a, E, z), n = Pe({
  4175. defaultConfig: {
  4176. /**
  4177. * @description Board data
  4178. * @type {Array<object>}
  4179. * @default data = []
  4180. */
  4181. data: [],
  4182. /**
  4183. * @description Row num
  4184. * @type {number}
  4185. * @default rowNum = 5
  4186. */
  4187. rowNum: 5,
  4188. /**
  4189. * @description Scroll wait time
  4190. * @type {number}
  4191. * @default waitTime = 2000
  4192. */
  4193. waitTime: 2e3,
  4194. /**
  4195. * @description Carousel type
  4196. * @type {string}
  4197. * @default carousel = 'single'
  4198. * @example carousel = 'single' | 'page'
  4199. */
  4200. carousel: "single",
  4201. /**
  4202. * @description Value unit
  4203. * @type {string}
  4204. * @default unit = ''
  4205. * @example unit = 'ton'
  4206. */
  4207. unit: "",
  4208. /**
  4209. * @description Auto sort by value
  4210. * @type {boolean}
  4211. * @default sort = true
  4212. */
  4213. sort: !0,
  4214. /**
  4215. * @description Value formatter
  4216. * @type {Function}
  4217. * @default valueFormatter = null
  4218. */
  4219. valueFormatter: null,
  4220. /**
  4221. * @description Text color
  4222. * @type {string}
  4223. * @default textColor = '#fff'
  4224. */
  4225. textColor: "#fff",
  4226. /**
  4227. * @description Main theme color
  4228. * @type {string}
  4229. * @default color = '#1370fb'
  4230. */
  4231. color: "#1370fb",
  4232. /**
  4233. * @description Font size
  4234. * @type {number}
  4235. * @default fontSize = 13
  4236. */
  4237. fontSize: 13
  4238. },
  4239. mergedConfig: null,
  4240. rowsData: [],
  4241. rows: [],
  4242. heights: [],
  4243. avgHeight: 0,
  4244. animationIndex: 0,
  4245. animationHandler: "",
  4246. updater: 0
  4247. });
  4248. ke(() => r.config, () => {
  4249. q(), U();
  4250. }, {
  4251. deep: !0
  4252. });
  4253. const l = be(() => r.config.textColor ? r.config.textColor : n.defaultConfig.textColor), o = be(() => r.config.color ? r.config.color : n.defaultConfig.color), _ = be(() => De(o.value, 50)), x = be(() => `${r.config.fontSize ? r.config.fontSize : n.defaultConfig.fontSize}px`);
  4254. Ft(() => {
  4255. q();
  4256. });
  4257. function z() {
  4258. U();
  4259. }
  4260. function E() {
  4261. n.mergedConfig && d(!0);
  4262. }
  4263. function U() {
  4264. T(), L(), d(), W(!0);
  4265. }
  4266. function T() {
  4267. n.mergedConfig = Ce(_e(n.defaultConfig), r.config || {});
  4268. }
  4269. function L() {
  4270. let { data: G } = n.mergedConfig;
  4271. const { rowNum: m, sort: y } = n.mergedConfig;
  4272. y && G.sort(({ value: M }, { value: A }) => M > A ? -1 : M < A ? 1 : 0);
  4273. const f = G.map(({ value: M }) => M), D = Math.min(...f) || 0, k = Math.abs(D), $ = (Math.max(...f) || 0) + k;
  4274. G = G.map((M, A) => ({ ...M, ranking: A + 1, percent: (M.value + k) / $ * 100 }));
  4275. const c = G.length;
  4276. c > m && c < 2 * m && (G = [...G, ...G]), G = G.map((M, A) => ({ ...M, scroll: A })), n.rowsData = G, n.rows = G;
  4277. }
  4278. function d(G = !1) {
  4279. const { rowNum: m, data: y } = n.mergedConfig, f = t.value / m;
  4280. n.avgHeight = f, G || (n.heights = Array.from({ length: y.length }).fill(f));
  4281. }
  4282. const B = be(() => n.mergedConfig.carousel === "single");
  4283. async function W(G = !1) {
  4284. const { waitTime: m, rowNum: y } = n.mergedConfig, f = n.rowsData.length;
  4285. if (y >= f)
  4286. return;
  4287. const { updater: D } = n;
  4288. if (G && (await new Promise((c) => setTimeout(c, m)), D !== n.updater))
  4289. return;
  4290. const k = B.value ? 1 : y, C = n.rowsData.slice(n.animationIndex);
  4291. if (C.push(...n.rowsData.slice(0, n.animationIndex)), n.rows = C.slice(0, B.value ? y + 1 : y * 2), n.heights = Array.from({ length: f }).fill(n.avgHeight), await new Promise((c) => setTimeout(c, 300)), D !== n.updater)
  4292. return;
  4293. n.heights.fill(0, 0, k), n.animationIndex += k;
  4294. const $ = n.animationIndex - f;
  4295. $ >= 0 && (n.animationIndex = $), n.animationHandler = setTimeout(W, m - 300);
  4296. }
  4297. function q() {
  4298. n.updater = (n.updater + 1) % 999999, n.animationHandler && clearTimeout(n.animationHandler);
  4299. }
  4300. return (G, m) => (le(), se("div", {
  4301. ref_key: "scrollRankingBoard",
  4302. ref: a,
  4303. class: "dv-scroll-ranking-board"
  4304. }, [
  4305. (le(!0), se(Ae, null, Se(i(n).rows, (y, f) => (le(), se("div", {
  4306. key: y.toString() + y.scroll,
  4307. class: "row-item",
  4308. style: Ge(`height: ${i(n).heights[f]}px;`)
  4309. }, [
  4310. ae("div", kl, [
  4311. ae("div", Al, " No." + We(y.ranking), 1),
  4312. ae("div", {
  4313. class: "info-name",
  4314. innerHTML: y.name
  4315. }, null, 8, Ll),
  4316. ae("div", Sl, We(i(n).mergedConfig.valueFormatter ? i(n).mergedConfig.valueFormatter(y) : y.value + i(n).mergedConfig.unit), 1)
  4317. ]),
  4318. ae("div", Ol, [
  4319. ae("div", {
  4320. class: "inside-column",
  4321. style: Ge(`width: ${y.percent}%;`)
  4322. }, m[0] || (m[0] = [
  4323. ae("div", { class: "shine" }, null, -1)
  4324. ]), 4)
  4325. ])
  4326. ], 4))), 128))
  4327. ], 512));
  4328. }
  4329. }, Ml = /* @__PURE__ */ Ke(Gl, [["__scopeId", "data-v-26f5f75f"]]), Pr = {
  4330. install(e) {
  4331. e.component("DvScrollRankingBoard", Ml);
  4332. }
  4333. }, Rl = ["align", "innerHTML"], Dl = ["align", "onClick", "onMouseenter", "innerHTML"], Tl = {
  4334. __name: "index",
  4335. props: {
  4336. config: {
  4337. type: Object,
  4338. default: () => ({})
  4339. }
  4340. },
  4341. emits: ["mouseover", "click", "getFirstRow"],
  4342. setup(e, { expose: r, emit: a }) {
  4343. const t = e, n = a, l = me(null), { width: o, height: _ } = xe(l, T, U), x = Pe({
  4344. defaultConfig: {
  4345. /**
  4346. * @description Board header
  4347. * @type {Array<string>}
  4348. * @default header = []
  4349. * @example header = ['column1', 'column2', 'column3']
  4350. */
  4351. header: [],
  4352. /**
  4353. * @description Board data
  4354. * @type {Array<Array>}
  4355. * @default data = []
  4356. */
  4357. data: [],
  4358. /**
  4359. * @description Row num
  4360. * @type {number}
  4361. * @default rowNum = 5
  4362. */
  4363. rowNum: 5,
  4364. /**
  4365. * @description Header background color
  4366. * @type {string}
  4367. * @default headerBGC = '#00BAFF'
  4368. */
  4369. headerBGC: "#00BAFF",
  4370. /**
  4371. * @description Odd row background color
  4372. * @type {string}
  4373. * @default oddRowBGC = '#003B51'
  4374. */
  4375. oddRowBGC: "#003B51",
  4376. /**
  4377. * @description Even row background color
  4378. * @type {string}
  4379. * @default evenRowBGC = '#003B51'
  4380. */
  4381. evenRowBGC: "#0A2732",
  4382. /**
  4383. * @description Scroll wait time
  4384. * @type {number}
  4385. * @default waitTime = 2000
  4386. */
  4387. waitTime: 2e3,
  4388. /**
  4389. * @description Header height
  4390. * @type {number}
  4391. * @default headerHeight = 35
  4392. */
  4393. headerHeight: 35,
  4394. /**
  4395. * @description Column width
  4396. * @type {Array<number>}
  4397. * @default columnWidth = []
  4398. */
  4399. columnWidth: [],
  4400. /**
  4401. * @description Column align
  4402. * @type {Array<string>}
  4403. * @default align = []
  4404. * @example align = ['left', 'center', 'right']
  4405. */
  4406. align: [],
  4407. /**
  4408. * @description Show index
  4409. * @type {boolean}
  4410. * @default index = false
  4411. */
  4412. index: !1,
  4413. /**
  4414. * @description index Header
  4415. * @type {string}
  4416. * @default indexHeader = '#'
  4417. */
  4418. indexHeader: "#",
  4419. /**
  4420. * @description Carousel type
  4421. * @type {string}
  4422. * @default carousel = 'single'
  4423. * @example carousel = 'single' | 'page'
  4424. */
  4425. carousel: "single",
  4426. /**
  4427. * @description Pause scroll when mouse hovered
  4428. * @type {boolean}
  4429. * @default hoverPause = true
  4430. * @example hoverPause = true | false
  4431. */
  4432. hoverPause: !0
  4433. },
  4434. mergedConfig: null,
  4435. header: [],
  4436. rowsData: [],
  4437. rows: [],
  4438. widths: [],
  4439. heights: [],
  4440. avgHeight: 0,
  4441. aligns: [],
  4442. animationIndex: 0,
  4443. animationHandler: "",
  4444. updater: 0,
  4445. needCalc: !1
  4446. });
  4447. ke(() => t.config, () => {
  4448. f(), L();
  4449. }, { deep: !0 }), Ft(() => {
  4450. f();
  4451. }), r({
  4452. updateRows: D
  4453. });
  4454. function z(k, C, $, c) {
  4455. const { ceils: M, rowIndex: A } = $;
  4456. n("click", {
  4457. row: M,
  4458. ceil: c,
  4459. rowIndex: A,
  4460. columnIndex: C
  4461. });
  4462. }
  4463. function E(k, C, $, c, M) {
  4464. if (k) {
  4465. const { ceils: A, rowIndex: p } = c;
  4466. n("mouseover", {
  4467. row: A,
  4468. ceil: M,
  4469. rowIndex: p,
  4470. columnIndex: $
  4471. });
  4472. }
  4473. x.mergedConfig.hoverPause && (k ? f() : y(!0));
  4474. }
  4475. function U() {
  4476. L();
  4477. }
  4478. function T() {
  4479. x.mergedConfig && (q(), G());
  4480. }
  4481. function L() {
  4482. d(), B(), W(), q(), G(), m(), y(!0);
  4483. }
  4484. function d() {
  4485. x.mergedConfig = Ce(_e(x.defaultConfig), t.config || {});
  4486. }
  4487. function B() {
  4488. let { header: k } = x.mergedConfig;
  4489. const { index: C, indexHeader: $ } = x.mergedConfig;
  4490. if (!k.length) {
  4491. k = [];
  4492. return;
  4493. }
  4494. k = [...k], C && k.unshift($), x.header = k;
  4495. }
  4496. function W() {
  4497. let { data: k } = x.mergedConfig;
  4498. const { index: C, headerBGC: $, rowNum: c } = x.mergedConfig;
  4499. C && (k = k.map((A, p) => {
  4500. A = [...A];
  4501. const V = `<span class="index" style="background-color: ${$};">${p + 1}</span>`;
  4502. return A.unshift(V), A;
  4503. })), k = k.map((A, p) => ({ ceils: A, rowIndex: p }));
  4504. const M = k.length;
  4505. M > c && M < 2 * c && (k = [...k, ...k]), k = k.map((A, p) => ({ ...A, scroll: p })), x.rowsData = k, x.rows = k;
  4506. }
  4507. function q() {
  4508. const { columnWidth: k, header: C } = x.mergedConfig, $ = k.reduce((p, V) => p + V, 0);
  4509. let c = 0;
  4510. x.rowsData[0] ? c = x.rowsData[0].ceils.length : C.length && (c = C.length);
  4511. const M = (o.value - $) / (c - k.length), A = Array.from({ length: c }).fill(M);
  4512. x.widths = Ce(A, k);
  4513. }
  4514. function G(k = !1) {
  4515. const { headerHeight: C, rowNum: $, data: c } = x.mergedConfig;
  4516. let M = _.value;
  4517. x.header.length && (M -= C);
  4518. const A = M / $;
  4519. x.avgHeight = A, k || (x.heights = Array.from({ length: c.length }).fill(A));
  4520. }
  4521. function m() {
  4522. const k = x.header.length, C = Array.from({ length: k }).fill("left"), { align: $ } = x.mergedConfig;
  4523. x.aligns = Ce(C, $);
  4524. }
  4525. async function y(k = !1) {
  4526. x.needCalc && (W(), G(), x.needCalc = !1);
  4527. const { waitTime: C, carousel: $, rowNum: c } = x.mergedConfig, { updater: M } = x, A = x.rowsData.length;
  4528. if (c >= A || (k && await new Promise((ee) => setTimeout(ee, C)), M !== x.updater))
  4529. return;
  4530. const p = $ === "single" ? 1 : c, V = x.rowsData.slice(x.animationIndex);
  4531. if (V.push(...x.rowsData.slice(0, x.animationIndex)), x.rows = V.slice(0, $ === "page" ? c * 2 : c + 1), x.heights = Array.from({ length: A }).fill(x.avgHeight), await new Promise((ee) => setTimeout(ee, 300)), M !== x.updater)
  4532. return;
  4533. x.heights.splice(0, p, ...Array.from({ length: p }).fill(0)), x.animationIndex += p;
  4534. const X = x.animationIndex - A;
  4535. X >= 0 && (x.animationIndex = X), x.animationHandler = setTimeout(y, C - 300), n("getFirstRow", V[1]);
  4536. }
  4537. function f() {
  4538. x.updater = (x.updater + 1) % 999999, x.animationHandler && clearTimeout(x.animationHandler);
  4539. }
  4540. function D(k, C) {
  4541. x.mergedConfig = {
  4542. ...x.mergedConfig,
  4543. data: [...k]
  4544. }, x.needCalc = !0, typeof C == "number" && (x.animationIndex = C), x.animationHandler || y(!0);
  4545. }
  4546. return (k, C) => (le(), se("div", {
  4547. ref_key: "scrollBoard",
  4548. ref: l,
  4549. class: "dv-scroll-board"
  4550. }, [
  4551. i(x).header.length && i(x).mergedConfig ? (le(), se("div", {
  4552. key: 0,
  4553. class: "header",
  4554. style: Ge(`background-color: ${i(x).mergedConfig.headerBGC};`)
  4555. }, [
  4556. (le(!0), se(Ae, null, Se(i(x).header, ($, c) => (le(), se("div", {
  4557. key: `${$}${c}`,
  4558. class: "header-item",
  4559. style: Ge(`
  4560. height: ${i(x).mergedConfig.headerHeight}px;
  4561. line-height: ${i(x).mergedConfig.headerHeight}px;
  4562. width: ${i(x).widths[c]}px;
  4563. `),
  4564. align: i(x).aligns[c],
  4565. innerHTML: $
  4566. }, null, 12, Rl))), 128))
  4567. ], 4)) : $e("", !0),
  4568. i(x).mergedConfig ? (le(), se("div", {
  4569. key: 1,
  4570. class: "rows",
  4571. style: Ge(`height: ${i(_) - (i(x).header.length ? i(x).mergedConfig.headerHeight : 0)}px;`)
  4572. }, [
  4573. (le(!0), se(Ae, null, Se(i(x).rows, ($, c) => (le(), se("div", {
  4574. key: `${$.toString()}${$.scroll}`,
  4575. class: "row-item",
  4576. style: Ge(`
  4577. height: ${i(x).heights[c]}px;
  4578. line-height: ${i(x).heights[c]}px;
  4579. background-color: ${i(x).mergedConfig[$.rowIndex % 2 === 0 ? "evenRowBGC" : "oddRowBGC"]};
  4580. `)
  4581. }, [
  4582. (le(!0), se(Ae, null, Se($.ceils, (M, A) => (le(), se("div", {
  4583. key: `${M}${c}${A}`,
  4584. class: "ceil",
  4585. style: Ge(`width: ${i(x).widths[A]}px;`),
  4586. align: i(x).aligns[A],
  4587. onClick: (p) => z(c, A, $, M),
  4588. onMouseenter: (p) => E(!0, c, A, $, M),
  4589. onMouseleave: C[0] || (C[0] = (p) => E(!1)),
  4590. innerHTML: M
  4591. }, null, 44, Dl))), 128))
  4592. ], 4))), 128))
  4593. ], 4)) : $e("", !0)
  4594. ], 512));
  4595. }
  4596. }, wr = {
  4597. install(e) {
  4598. e.component("DvScrollBoard", Tl);
  4599. }
  4600. };
  4601. var Ma = {}, kr = {}, je = {}, In;
  4602. function ze() {
  4603. if (In) return je;
  4604. In = 1;
  4605. var e = we;
  4606. Object.defineProperty(je, "__esModule", {
  4607. value: !0
  4608. }), je.filterNonNumber = n, je.deepMerge = l, je.mulAdd = o, je.mergeSameStackData = _, je.getTwoPointDistance = x, je.getLinearGradientColor = z, je.getPolylineLength = E, je.getPointToLineDistance = U, je.initNeedSeries = T, je.radianToAngle = L;
  4609. var r = e(Te()), a = e(Be()), t = Fe();
  4610. function n(d) {
  4611. return d.filter(function(B) {
  4612. return typeof B == "number";
  4613. });
  4614. }
  4615. function l(d, B) {
  4616. for (var W in B) {
  4617. if (d[W] && (0, a.default)(d[W]) === "object") {
  4618. l(d[W], B[W]);
  4619. continue;
  4620. }
  4621. if ((0, a.default)(B[W]) === "object") {
  4622. d[W] = (0, t.deepClone)(B[W], !0);
  4623. continue;
  4624. }
  4625. d[W] = B[W];
  4626. }
  4627. return d;
  4628. }
  4629. function o(d) {
  4630. return d = n(d), d.reduce(function(B, W) {
  4631. return B + W;
  4632. }, 0);
  4633. }
  4634. function _(d, B) {
  4635. var W = d.stack;
  4636. if (!W) return (0, r.default)(d.data);
  4637. var q = B.filter(function(f) {
  4638. var D = f.stack;
  4639. return D === W;
  4640. }), G = q.findIndex(function(f) {
  4641. var D = f.data;
  4642. return D === d.data;
  4643. }), m = q.splice(0, G + 1).map(function(f) {
  4644. var D = f.data;
  4645. return D;
  4646. }), y = m[0].length;
  4647. return new Array(y).fill(0).map(function(f, D) {
  4648. return o(m.map(function(k) {
  4649. return k[D];
  4650. }));
  4651. });
  4652. }
  4653. function x(d, B) {
  4654. var W = Math.abs(d[0] - B[0]), q = Math.abs(d[1] - B[1]);
  4655. return Math.sqrt(W * W + q * q);
  4656. }
  4657. function z(d, B, W, q) {
  4658. if (!(!d || !B || !W || !q.length)) {
  4659. var G = q;
  4660. typeof G == "string" && (G = [q, q]);
  4661. var m = d.createLinearGradient.apply(d, (0, r.default)(B).concat((0, r.default)(W))), y = 1 / (G.length - 1);
  4662. return G.forEach(function(f, D) {
  4663. return m.addColorStop(y * D, f);
  4664. }), m;
  4665. }
  4666. }
  4667. function E(d) {
  4668. var B = new Array(d.length - 1).fill(0).map(function(q, G) {
  4669. return [d[G], d[G + 1]];
  4670. }), W = B.map(function(q) {
  4671. return x.apply(void 0, (0, r.default)(q));
  4672. });
  4673. return o(W);
  4674. }
  4675. function U(d, B, W) {
  4676. var q = x(d, B), G = x(d, W), m = x(B, W);
  4677. return 0.5 * Math.sqrt((q + G + m) * (q + G - m) * (q + m - G) * (G + m - q)) / m;
  4678. }
  4679. function T(d, B, W) {
  4680. return d = d.filter(function(q) {
  4681. var G = q.type;
  4682. return G === W;
  4683. }), d = d.map(function(q) {
  4684. return l((0, t.deepClone)(B, !0), q);
  4685. }), d.filter(function(q) {
  4686. var G = q.show;
  4687. return G;
  4688. });
  4689. }
  4690. function L(d) {
  4691. return d / Math.PI * 180;
  4692. }
  4693. return je;
  4694. }
  4695. var Ra = we, Fl = Ra(Ve()), Hn = Ra(Te()), Et = jt, Bl = fn(), vt = Fe(), Nl = yt, Wl = ze();
  4696. function Vn(e, r) {
  4697. var a = Object.keys(e);
  4698. if (Object.getOwnPropertySymbols) {
  4699. var t = Object.getOwnPropertySymbols(e);
  4700. r && (t = t.filter(function(n) {
  4701. return Object.getOwnPropertyDescriptor(e, n).enumerable;
  4702. })), a.push.apply(a, t);
  4703. }
  4704. return a;
  4705. }
  4706. function Un(e) {
  4707. for (var r = 1; r < arguments.length; r++) {
  4708. var a = arguments[r] != null ? arguments[r] : {};
  4709. r % 2 ? Vn(Object(a), !0).forEach(function(t) {
  4710. (0, Fl.default)(e, t, a[t]);
  4711. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Vn(Object(a)).forEach(function(t) {
  4712. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(a, t));
  4713. });
  4714. }
  4715. return e;
  4716. }
  4717. var jl = {
  4718. shape: {
  4719. rx: 0,
  4720. ry: 0,
  4721. ir: 0,
  4722. or: 0,
  4723. startAngle: 0,
  4724. endAngle: 0,
  4725. clockWise: !0
  4726. },
  4727. validator: function(r) {
  4728. var a = r.shape, t = ["rx", "ry", "ir", "or", "startAngle", "endAngle"];
  4729. return t.find(function(n) {
  4730. return typeof a[n] != "number";
  4731. }) ? (console.error("Pie shape configuration is abnormal!"), !1) : !0;
  4732. },
  4733. draw: function(r, a) {
  4734. var t = r.ctx, n = a.shape;
  4735. t.beginPath();
  4736. var l = n.rx, o = n.ry, _ = n.ir, x = n.or, z = n.startAngle, E = n.endAngle, U = n.clockWise;
  4737. l = parseInt(l) + 0.5, o = parseInt(o) + 0.5, t.arc(l, o, _ > 0 ? _ : 0, z, E, !U);
  4738. var T = (0, vt.getCircleRadianPoint)(l, o, x, E).map(function(d) {
  4739. return parseInt(d) + 0.5;
  4740. }), L = (0, vt.getCircleRadianPoint)(l, o, _, z).map(function(d) {
  4741. return parseInt(d) + 0.5;
  4742. });
  4743. t.lineTo.apply(t, (0, Hn.default)(T)), t.arc(l, o, x > 0 ? x : 0, E, z, U), t.lineTo.apply(t, (0, Hn.default)(L)), t.closePath(), t.stroke(), t.fill();
  4744. }
  4745. }, El = {
  4746. shape: {
  4747. rx: 0,
  4748. ry: 0,
  4749. r: 0,
  4750. startAngle: 0,
  4751. endAngle: 0,
  4752. gradientStartAngle: null,
  4753. gradientEndAngle: null
  4754. },
  4755. validator: function(r) {
  4756. var a = r.shape, t = ["rx", "ry", "r", "startAngle", "endAngle"];
  4757. return t.find(function(n) {
  4758. return typeof a[n] != "number";
  4759. }) ? (console.error("AgArc shape configuration is abnormal!"), !1) : !0;
  4760. },
  4761. draw: function(r, a) {
  4762. var t = r.ctx, n = a.shape, l = a.style, o = l.gradient;
  4763. o = o.map(function(k) {
  4764. return (0, Nl.getColorFromRgbValue)(k);
  4765. }), o.length === 1 && (o = [o[0], o[0]]);
  4766. var _ = o.length - 1, x = n.gradientStartAngle, z = n.gradientEndAngle, E = n.startAngle, U = n.endAngle, T = n.r, L = n.rx, d = n.ry;
  4767. x === null && (x = E), z === null && (z = U);
  4768. var B = (z - x) / _;
  4769. B === Math.PI * 2 && (B = Math.PI * 2 - 1e-3);
  4770. for (var W = 0; W < _; W++) {
  4771. t.beginPath();
  4772. var q = (0, vt.getCircleRadianPoint)(L, d, T, E + B * W), G = (0, vt.getCircleRadianPoint)(L, d, T, E + B * (W + 1)), m = (0, Wl.getLinearGradientColor)(t, q, G, [o[W], o[W + 1]]), y = E + B * W, f = E + B * (W + 1), D = !1;
  4773. if (f > U && (f = U, D = !0), t.arc(L, d, T, y, f), t.strokeStyle = m, t.stroke(), D) break;
  4774. }
  4775. }
  4776. }, zl = {
  4777. shape: {
  4778. number: [],
  4779. content: "",
  4780. position: [0, 0],
  4781. toFixed: 0,
  4782. rowGap: 0,
  4783. formatter: null
  4784. },
  4785. validator: function(r) {
  4786. var a = r.shape, t = a.number, n = a.content, l = a.position;
  4787. return !(t instanceof Array) || typeof n != "string" || !(l instanceof Array) ? (console.error("NumberText shape configuration is abnormal!"), !1) : !0;
  4788. },
  4789. draw: function(r, a) {
  4790. var t = r.ctx, n = a.shape, l = n.number, o = n.content, _ = n.toFixed, x = n.rowGap, z = n.formatter, E = o.split("{nt}"), U = "";
  4791. E.forEach(function(T, L) {
  4792. var d = l[L];
  4793. typeof d != "number" && (d = ""), typeof d == "number" && (d = d.toFixed(_), typeof z == "function" && (d = z(d))), U += T + (d || "");
  4794. }), Bl.text.draw({
  4795. ctx: t
  4796. }, {
  4797. shape: Un(Un({}, n), {}, {
  4798. content: U,
  4799. rowGap: x
  4800. })
  4801. });
  4802. }
  4803. }, ql = {
  4804. shape: {
  4805. x: 0,
  4806. y: 0,
  4807. w: 0,
  4808. h: 0
  4809. },
  4810. validator: function(r) {
  4811. var a = r.shape, t = a.x, n = a.y, l = a.w, o = a.h;
  4812. return typeof t != "number" || typeof n != "number" || typeof l != "number" || typeof o != "number" ? (console.error("lineIcon shape configuration is abnormal!"), !1) : !0;
  4813. },
  4814. draw: function(r, a) {
  4815. var t = r.ctx, n = a.shape;
  4816. t.beginPath();
  4817. var l = n.x, o = n.y, _ = n.w, x = n.h, z = x / 2;
  4818. t.strokeStyle = t.fillStyle, t.moveTo(l, o + z), t.lineTo(l + _, o + z), t.lineWidth = 1, t.stroke(), t.beginPath();
  4819. var E = z - 5 * 2;
  4820. E <= 0 && (E = 3), t.arc(l + _ / 2, o + z, E, 0, Math.PI * 2), t.lineWidth = 5, t.stroke(), t.fillStyle = "#fff", t.fill();
  4821. },
  4822. hoverCheck: function(r, a) {
  4823. var t = a.shape, n = t.x, l = t.y, o = t.w, _ = t.h;
  4824. return (0, vt.checkPointIsInRect)(r, n, l, o, _);
  4825. },
  4826. setGraphCenter: function(r, a) {
  4827. var t = a.shape, n = a.style, l = t.x, o = t.y, _ = t.w, x = t.h;
  4828. n.graphCenter = [l + _ / 2, o + x / 2];
  4829. }
  4830. };
  4831. (0, Et.extendNewGraph)("pie", jl);
  4832. (0, Et.extendNewGraph)("agArc", El);
  4833. (0, Et.extendNewGraph)("numberText", zl);
  4834. (0, Et.extendNewGraph)("lineIcon", ql);
  4835. var Ar = {}, Ct = {}, Lr = {}, rt = {}, Xn;
  4836. function Il() {
  4837. if (Xn) return rt;
  4838. Xn = 1, Object.defineProperty(rt, "__esModule", {
  4839. value: !0
  4840. }), rt.colorConfig = void 0;
  4841. var e = ["#37a2da", "#32c5e9", "#67e0e3", "#9fe6b8", "#ffdb5c", "#ff9f7f", "#fb7293", "#e062ae", "#e690d1", "#e7bcf3", "#9d96f5", "#8378ea", "#96bfff"];
  4842. return rt.colorConfig = e, rt;
  4843. }
  4844. var nt = {}, Qn;
  4845. function Hl() {
  4846. if (Qn) return nt;
  4847. Qn = 1, Object.defineProperty(nt, "__esModule", {
  4848. value: !0
  4849. }), nt.gridConfig = void 0;
  4850. var e = {
  4851. /**
  4852. * @description Grid left margin
  4853. * @type {String|Number}
  4854. * @default left = '10%'
  4855. * @example left = '10%' | 10
  4856. */
  4857. left: "10%",
  4858. /**
  4859. * @description Grid right margin
  4860. * @type {String|Number}
  4861. * @default right = '10%'
  4862. * @example right = '10%' | 10
  4863. */
  4864. right: "10%",
  4865. /**
  4866. * @description Grid top margin
  4867. * @type {String|Number}
  4868. * @default top = 60
  4869. * @example top = '10%' | 60
  4870. */
  4871. top: 60,
  4872. /**
  4873. * @description Grid bottom margin
  4874. * @type {String|Number}
  4875. * @default bottom = 60
  4876. * @example bottom = '10%' | 60
  4877. */
  4878. bottom: 60,
  4879. /**
  4880. * @description Grid default style configuration
  4881. * @type {Object}
  4882. * @default style = {Configuration Of Class Style}
  4883. */
  4884. style: {
  4885. fill: "rgba(0, 0, 0, 0)"
  4886. },
  4887. /**
  4888. * @description Grid render level
  4889. * Priority rendering high level
  4890. * @type {Number}
  4891. * @default rLevel = -30
  4892. */
  4893. rLevel: -30,
  4894. /**
  4895. * @description Grid animation curve
  4896. * @type {String}
  4897. * @default animationCurve = 'easeOutCubic'
  4898. */
  4899. animationCurve: "easeOutCubic",
  4900. /**
  4901. * @description Grid animation frame
  4902. * @type {Number}
  4903. * @default animationFrame = 50
  4904. */
  4905. animationFrame: 30
  4906. };
  4907. return nt.gridConfig = e, nt;
  4908. }
  4909. var Ze = {}, Yn;
  4910. function Vl() {
  4911. if (Yn) return Ze;
  4912. Yn = 1, Object.defineProperty(Ze, "__esModule", {
  4913. value: !0
  4914. }), Ze.yAxisConfig = Ze.xAxisConfig = void 0;
  4915. var e = {
  4916. /**
  4917. * @description Axis name
  4918. * @type {String}
  4919. * @default name = ''
  4920. */
  4921. name: "",
  4922. /**
  4923. * @description Whether to display this axis
  4924. * @type {Boolean}
  4925. * @default show = true
  4926. */
  4927. show: !0,
  4928. /**
  4929. * @description Axis position
  4930. * @type {String}
  4931. * @default position = 'bottom'
  4932. * @example position = 'bottom' | 'top'
  4933. */
  4934. position: "bottom",
  4935. /**
  4936. * @description Name gap
  4937. * @type {Number}
  4938. * @default nameGap = 15
  4939. */
  4940. nameGap: 15,
  4941. /**
  4942. * @description Name location
  4943. * @type {String}
  4944. * @default nameLocation = 'end'
  4945. * @example nameLocation = 'end' | 'center' | 'start'
  4946. */
  4947. nameLocation: "end",
  4948. /**
  4949. * @description Name default style configuration
  4950. * @type {Object}
  4951. * @default style = {Configuration Of Class Style}
  4952. */
  4953. nameTextStyle: {
  4954. fill: "#333",
  4955. fontSize: 10
  4956. },
  4957. /**
  4958. * @description Axis min value
  4959. * @type {String|Number}
  4960. * @default min = '20%'
  4961. * @example min = '20%' | 0
  4962. */
  4963. min: "20%",
  4964. /**
  4965. * @description Axis max value
  4966. * @type {String|Number}
  4967. * @default max = '20%'
  4968. * @example max = '20%' | 0
  4969. */
  4970. max: "20%",
  4971. /**
  4972. * @description Axis value interval
  4973. * @type {Number}
  4974. * @default interval = null
  4975. * @example interval = 100
  4976. */
  4977. interval: null,
  4978. /**
  4979. * @description Min interval
  4980. * @type {Number}
  4981. * @default minInterval = null
  4982. * @example minInterval = 1
  4983. */
  4984. minInterval: null,
  4985. /**
  4986. * @description Max interval
  4987. * @type {Number}
  4988. * @default maxInterval = null
  4989. * @example maxInterval = 100
  4990. */
  4991. maxInterval: null,
  4992. /**
  4993. * @description Boundary gap
  4994. * @type {Boolean}
  4995. * @default boundaryGap = null
  4996. * @example boundaryGap = true
  4997. */
  4998. boundaryGap: null,
  4999. /**
  5000. * @description Axis split number
  5001. * @type {Number}
  5002. * @default splitNumber = 5
  5003. */
  5004. splitNumber: 5,
  5005. /**
  5006. * @description Axis line configuration
  5007. * @type {Object}
  5008. */
  5009. axisLine: {
  5010. /**
  5011. * @description Whether to display axis line
  5012. * @type {Boolean}
  5013. * @default show = true
  5014. */
  5015. show: !0,
  5016. /**
  5017. * @description Axis line default style configuration
  5018. * @type {Object}
  5019. * @default style = {Configuration Of Class Style}
  5020. */
  5021. style: {
  5022. stroke: "#333",
  5023. lineWidth: 1
  5024. }
  5025. },
  5026. /**
  5027. * @description Axis tick configuration
  5028. * @type {Object}
  5029. */
  5030. axisTick: {
  5031. /**
  5032. * @description Whether to display axis tick
  5033. * @type {Boolean}
  5034. * @default show = true
  5035. */
  5036. show: !0,
  5037. /**
  5038. * @description Axis tick default style configuration
  5039. * @type {Object}
  5040. * @default style = {Configuration Of Class Style}
  5041. */
  5042. style: {
  5043. stroke: "#333",
  5044. lineWidth: 1
  5045. }
  5046. },
  5047. /**
  5048. * @description Axis label configuration
  5049. * @type {Object}
  5050. */
  5051. axisLabel: {
  5052. /**
  5053. * @description Whether to display axis label
  5054. * @type {Boolean}
  5055. * @default show = true
  5056. */
  5057. show: !0,
  5058. /**
  5059. * @description Axis label formatter
  5060. * @type {String|Function}
  5061. * @default formatter = null
  5062. * @example formatter = '{value}件'
  5063. * @example formatter = (dataItem) => (dataItem.value)
  5064. */
  5065. formatter: null,
  5066. /**
  5067. * @description Axis label default style configuration
  5068. * @type {Object}
  5069. * @default style = {Configuration Of Class Style}
  5070. */
  5071. style: {
  5072. fill: "#333",
  5073. fontSize: 10,
  5074. rotate: 0
  5075. }
  5076. },
  5077. /**
  5078. * @description Axis split line configuration
  5079. * @type {Object}
  5080. */
  5081. splitLine: {
  5082. /**
  5083. * @description Whether to display axis split line
  5084. * @type {Boolean}
  5085. * @default show = false
  5086. */
  5087. show: !1,
  5088. /**
  5089. * @description Axis split line default style configuration
  5090. * @type {Object}
  5091. * @default style = {Configuration Of Class Style}
  5092. */
  5093. style: {
  5094. stroke: "#d4d4d4",
  5095. lineWidth: 1
  5096. }
  5097. },
  5098. /**
  5099. * @description X axis render level
  5100. * Priority rendering high level
  5101. * @type {Number}
  5102. * @default rLevel = -20
  5103. */
  5104. rLevel: -20,
  5105. /**
  5106. * @description X axis animation curve
  5107. * @type {String}
  5108. * @default animationCurve = 'easeOutCubic'
  5109. */
  5110. animationCurve: "easeOutCubic",
  5111. /**
  5112. * @description X axis animation frame
  5113. * @type {Number}
  5114. * @default animationFrame = 50
  5115. */
  5116. animationFrame: 50
  5117. };
  5118. Ze.xAxisConfig = e;
  5119. var r = {
  5120. /**
  5121. * @description Axis name
  5122. * @type {String}
  5123. * @default name = ''
  5124. */
  5125. name: "",
  5126. /**
  5127. * @description Whether to display this axis
  5128. * @type {Boolean}
  5129. * @default show = true
  5130. */
  5131. show: !0,
  5132. /**
  5133. * @description Axis position
  5134. * @type {String}
  5135. * @default position = 'left'
  5136. * @example position = 'left' | 'right'
  5137. */
  5138. position: "left",
  5139. /**
  5140. * @description Name gap
  5141. * @type {Number}
  5142. * @default nameGap = 15
  5143. */
  5144. nameGap: 15,
  5145. /**
  5146. * @description Name location
  5147. * @type {String}
  5148. * @default nameLocation = 'end'
  5149. * @example nameLocation = 'end' | 'center' | 'start'
  5150. */
  5151. nameLocation: "end",
  5152. /**
  5153. * @description name default style configuration
  5154. * @type {Object}
  5155. * @default style = {Configuration Of Class Style}
  5156. */
  5157. nameTextStyle: {
  5158. fill: "#333",
  5159. fontSize: 10
  5160. },
  5161. /**
  5162. * @description Axis min value
  5163. * @type {String|Number}
  5164. * @default min = '20%'
  5165. * @example min = '20%' | 0
  5166. */
  5167. min: "20%",
  5168. /**
  5169. * @description Axis max value
  5170. * @type {String|Number}
  5171. * @default max = '20%'
  5172. * @example max = '20%' | 0
  5173. */
  5174. max: "20%",
  5175. /**
  5176. * @description Axis value interval
  5177. * @type {Number}
  5178. * @default interval = null
  5179. * @example interval = 100
  5180. */
  5181. interval: null,
  5182. /**
  5183. * @description Min interval
  5184. * @type {Number}
  5185. * @default minInterval = null
  5186. * @example minInterval = 1
  5187. */
  5188. minInterval: null,
  5189. /**
  5190. * @description Max interval
  5191. * @type {Number}
  5192. * @default maxInterval = null
  5193. * @example maxInterval = 100
  5194. */
  5195. maxInterval: null,
  5196. /**
  5197. * @description Boundary gap
  5198. * @type {Boolean}
  5199. * @default boundaryGap = null
  5200. * @example boundaryGap = true
  5201. */
  5202. boundaryGap: null,
  5203. /**
  5204. * @description Axis split number
  5205. * @type {Number}
  5206. * @default splitNumber = 5
  5207. */
  5208. splitNumber: 5,
  5209. /**
  5210. * @description Axis line configuration
  5211. * @type {Object}
  5212. */
  5213. axisLine: {
  5214. /**
  5215. * @description Whether to display axis line
  5216. * @type {Boolean}
  5217. * @default show = true
  5218. */
  5219. show: !0,
  5220. /**
  5221. * @description Axis line default style configuration
  5222. * @type {Object}
  5223. * @default style = {Configuration Of Class Style}
  5224. */
  5225. style: {
  5226. stroke: "#333",
  5227. lineWidth: 1
  5228. }
  5229. },
  5230. /**
  5231. * @description Axis tick configuration
  5232. * @type {Object}
  5233. */
  5234. axisTick: {
  5235. /**
  5236. * @description Whether to display axis tick
  5237. * @type {Boolean}
  5238. * @default show = true
  5239. */
  5240. show: !0,
  5241. /**
  5242. * @description Axis tick default style configuration
  5243. * @type {Object}
  5244. * @default style = {Configuration Of Class Style}
  5245. */
  5246. style: {
  5247. stroke: "#333",
  5248. lineWidth: 1
  5249. }
  5250. },
  5251. /**
  5252. * @description Axis label configuration
  5253. * @type {Object}
  5254. */
  5255. axisLabel: {
  5256. /**
  5257. * @description Whether to display axis label
  5258. * @type {Boolean}
  5259. * @default show = true
  5260. */
  5261. show: !0,
  5262. /**
  5263. * @description Axis label formatter
  5264. * @type {String|Function}
  5265. * @default formatter = null
  5266. * @example formatter = '{value}件'
  5267. * @example formatter = (dataItem) => (dataItem.value)
  5268. */
  5269. formatter: null,
  5270. /**
  5271. * @description Axis label default style configuration
  5272. * @type {Object}
  5273. * @default style = {Configuration Of Class Style}
  5274. */
  5275. style: {
  5276. fill: "#333",
  5277. fontSize: 10,
  5278. rotate: 0
  5279. }
  5280. },
  5281. /**
  5282. * @description Axis split line configuration
  5283. * @type {Object}
  5284. */
  5285. splitLine: {
  5286. /**
  5287. * @description Whether to display axis split line
  5288. * @type {Boolean}
  5289. * @default show = true
  5290. */
  5291. show: !0,
  5292. /**
  5293. * @description Axis split line default style configuration
  5294. * @type {Object}
  5295. * @default style = {Configuration Of Class Style}
  5296. */
  5297. style: {
  5298. stroke: "#d4d4d4",
  5299. lineWidth: 1
  5300. }
  5301. },
  5302. /**
  5303. * @description Y axis render level
  5304. * Priority rendering high level
  5305. * @type {Number}
  5306. * @default rLevel = -20
  5307. */
  5308. rLevel: -20,
  5309. /**
  5310. * @description Y axis animation curve
  5311. * @type {String}
  5312. * @default animationCurve = 'easeOutCubic'
  5313. */
  5314. animationCurve: "easeOutCubic",
  5315. /**
  5316. * @description Y axis animation frame
  5317. * @type {Number}
  5318. * @default animationFrame = 50
  5319. */
  5320. animationFrame: 50
  5321. };
  5322. return Ze.yAxisConfig = r, Ze;
  5323. }
  5324. var at = {}, Kn;
  5325. function Ul() {
  5326. if (Kn) return at;
  5327. Kn = 1, Object.defineProperty(at, "__esModule", {
  5328. value: !0
  5329. }), at.titleConfig = void 0;
  5330. var e = {
  5331. /**
  5332. * @description Whether to display title
  5333. * @type {Boolean}
  5334. * @default show = true
  5335. */
  5336. show: !0,
  5337. /**
  5338. * @description Title text
  5339. * @type {String}
  5340. * @default text = ''
  5341. */
  5342. text: "",
  5343. /**
  5344. * @description Title offset
  5345. * @type {Array}
  5346. * @default offset = [0, -20]
  5347. */
  5348. offset: [0, -20],
  5349. /**
  5350. * @description Title default style configuration
  5351. * @type {Object}
  5352. * @default style = {Configuration Of Class Style}
  5353. */
  5354. style: {
  5355. fill: "#333",
  5356. fontSize: 17,
  5357. fontWeight: "bold",
  5358. textAlign: "center",
  5359. textBaseline: "bottom"
  5360. },
  5361. /**
  5362. * @description Title render level
  5363. * Priority rendering high level
  5364. * @type {Number}
  5365. * @default rLevel = 20
  5366. */
  5367. rLevel: 20,
  5368. /**
  5369. * @description Title animation curve
  5370. * @type {String}
  5371. * @default animationCurve = 'easeOutCubic'
  5372. */
  5373. animationCurve: "easeOutCubic",
  5374. /**
  5375. * @description Title animation frame
  5376. * @type {Number}
  5377. * @default animationFrame = 50
  5378. */
  5379. animationFrame: 50
  5380. };
  5381. return at.titleConfig = e, at;
  5382. }
  5383. var it = {}, Jn;
  5384. function Xl() {
  5385. if (Jn) return it;
  5386. Jn = 1, Object.defineProperty(it, "__esModule", {
  5387. value: !0
  5388. }), it.lineConfig = void 0;
  5389. var e = {
  5390. /**
  5391. * @description Whether to display this line chart
  5392. * @type {Boolean}
  5393. * @default show = true
  5394. */
  5395. show: !0,
  5396. /**
  5397. * @description Legend name
  5398. * @type {String}
  5399. * @default name = ''
  5400. */
  5401. name: "",
  5402. /**
  5403. * @description Data stacking
  5404. * The data value of the series element of the same stack
  5405. * will be superimposed (the latter value will be superimposed on the previous value)
  5406. * @type {String}
  5407. * @default stack = ''
  5408. */
  5409. stack: "",
  5410. /**
  5411. * @description Smooth line
  5412. * @type {Boolean}
  5413. * @default smooth = false
  5414. */
  5415. smooth: !1,
  5416. /**
  5417. * @description Line x axis index
  5418. * @type {Number}
  5419. * @default xAxisIndex = 0
  5420. * @example xAxisIndex = 0 | 1
  5421. */
  5422. xAxisIndex: 0,
  5423. /**
  5424. * @description Line y axis index
  5425. * @type {Number}
  5426. * @default yAxisIndex = 0
  5427. * @example yAxisIndex = 0 | 1
  5428. */
  5429. yAxisIndex: 0,
  5430. /**
  5431. * @description Line chart data
  5432. * @type {Array}
  5433. * @default data = []
  5434. * @example data = [100, 200, 300]
  5435. */
  5436. data: [],
  5437. /**
  5438. * @description Line default style configuration
  5439. * @type {Object}
  5440. * @default style = {Configuration Of Class Style}
  5441. */
  5442. lineStyle: {
  5443. lineWidth: 1
  5444. },
  5445. /**
  5446. * @description Line point configuration
  5447. * @type {Object}
  5448. */
  5449. linePoint: {
  5450. /**
  5451. * @description Whether to display line point
  5452. * @type {Boolean}
  5453. * @default show = true
  5454. */
  5455. show: !0,
  5456. /**
  5457. * @description Line point radius
  5458. * @type {Number}
  5459. * @default radius = 2
  5460. */
  5461. radius: 2,
  5462. /**
  5463. * @description Line point default style configuration
  5464. * @type {Object}
  5465. * @default style = {Configuration Of Class Style}
  5466. */
  5467. style: {
  5468. fill: "#fff",
  5469. lineWidth: 1
  5470. }
  5471. },
  5472. /**
  5473. * @description Line area configuration
  5474. * @type {Object}
  5475. */
  5476. lineArea: {
  5477. /**
  5478. * @description Whether to display line area
  5479. * @type {Boolean}
  5480. * @default show = false
  5481. */
  5482. show: !1,
  5483. /**
  5484. * @description Line area gradient color (Hex|rgb|rgba)
  5485. * @type {Array}
  5486. * @default gradient = []
  5487. */
  5488. gradient: [],
  5489. /**
  5490. * @description Line area style default configuration
  5491. * @type {Object}
  5492. * @default style = {Configuration Of Class Style}
  5493. */
  5494. style: {
  5495. opacity: 0.5
  5496. }
  5497. },
  5498. /**
  5499. * @description Line label configuration
  5500. * @type {Object}
  5501. */
  5502. label: {
  5503. /**
  5504. * @description Whether to display line label
  5505. * @type {Boolean}
  5506. * @default show = false
  5507. */
  5508. show: !1,
  5509. /**
  5510. * @description Line label position
  5511. * @type {String}
  5512. * @default position = 'top'
  5513. * @example position = 'top' | 'center' | 'bottom'
  5514. */
  5515. position: "top",
  5516. /**
  5517. * @description Line label offset
  5518. * @type {Array}
  5519. * @default offset = [0, -10]
  5520. */
  5521. offset: [0, -10],
  5522. /**
  5523. * @description Line label formatter
  5524. * @type {String|Function}
  5525. * @default formatter = null
  5526. * @example formatter = '{value}件'
  5527. * @example formatter = (dataItem) => (dataItem.value)
  5528. */
  5529. formatter: null,
  5530. /**
  5531. * @description Line label default style configuration
  5532. * @type {Object}
  5533. * @default style = {Configuration Of Class Style}
  5534. */
  5535. style: {
  5536. fontSize: 10
  5537. }
  5538. },
  5539. /**
  5540. * @description Line chart render level
  5541. * Priority rendering high level
  5542. * @type {Number}
  5543. * @default rLevel = 10
  5544. */
  5545. rLevel: 10,
  5546. /**
  5547. * @description Line animation curve
  5548. * @type {String}
  5549. * @default animationCurve = 'easeOutCubic'
  5550. */
  5551. animationCurve: "easeOutCubic",
  5552. /**
  5553. * @description Line animation frame
  5554. * @type {Number}
  5555. * @default animationFrame = 50
  5556. */
  5557. animationFrame: 50
  5558. };
  5559. return it.lineConfig = e, it;
  5560. }
  5561. var ot = {}, Zn;
  5562. function Ql() {
  5563. if (Zn) return ot;
  5564. Zn = 1, Object.defineProperty(ot, "__esModule", {
  5565. value: !0
  5566. }), ot.barConfig = void 0;
  5567. var e = {
  5568. /**
  5569. * @description Whether to display this bar chart
  5570. * @type {Boolean}
  5571. * @default show = true
  5572. */
  5573. show: !0,
  5574. /**
  5575. * @description Legend name
  5576. * @type {String}
  5577. * @default name = ''
  5578. */
  5579. name: "",
  5580. /**
  5581. * @description Data stacking
  5582. * The data value of the series element of the same stack
  5583. * will be superimposed (the latter value will be superimposed on the previous value)
  5584. * @type {String}
  5585. * @default stack = ''
  5586. */
  5587. stack: "",
  5588. /**
  5589. * @description Bar shape type
  5590. * @type {String}
  5591. * @default shapeType = 'normal'
  5592. * @example shapeType = 'normal' | 'leftEchelon' | 'rightEchelon'
  5593. */
  5594. shapeType: "normal",
  5595. /**
  5596. * @description Echelon bar sharpness offset
  5597. * @type {Number}
  5598. * @default echelonOffset = 10
  5599. */
  5600. echelonOffset: 10,
  5601. /**
  5602. * @description Bar width
  5603. * This property should be set on the last 'bar' series
  5604. * in this coordinate system to take effect and will be in effect
  5605. * for all 'bar' series in this coordinate system
  5606. * @type {String|Number}
  5607. * @default barWidth = 'auto'
  5608. * @example barWidth = 'auto' | '10%' | 20
  5609. */
  5610. barWidth: "auto",
  5611. /**
  5612. * @description Bar gap
  5613. * This property should be set on the last 'bar' series
  5614. * in this coordinate system to take effect and will be in effect
  5615. * for all 'bar' series in this coordinate system
  5616. * @type {String|Number}
  5617. * @default barGap = '30%'
  5618. * @example barGap = '30%' | 30
  5619. */
  5620. barGap: "30%",
  5621. /**
  5622. * @description Bar category gap
  5623. * This property should be set on the last 'bar' series
  5624. * in this coordinate system to take effect and will be in effect
  5625. * for all 'bar' series in this coordinate system
  5626. * @type {String|Number}
  5627. * @default barCategoryGap = '20%'
  5628. * @example barCategoryGap = '20%' | 20
  5629. */
  5630. barCategoryGap: "20%",
  5631. /**
  5632. * @description Bar x axis index
  5633. * @type {Number}
  5634. * @default xAxisIndex = 0
  5635. * @example xAxisIndex = 0 | 1
  5636. */
  5637. xAxisIndex: 0,
  5638. /**
  5639. * @description Bar y axis index
  5640. * @type {Number}
  5641. * @default yAxisIndex = 0
  5642. * @example yAxisIndex = 0 | 1
  5643. */
  5644. yAxisIndex: 0,
  5645. /**
  5646. * @description Bar chart data
  5647. * @type {Array}
  5648. * @default data = []
  5649. * @example data = [100, 200, 300]
  5650. */
  5651. data: [],
  5652. /**
  5653. * @description Background bar configuration
  5654. * @type {Object}
  5655. */
  5656. backgroundBar: {
  5657. /**
  5658. * @description Whether to display background bar
  5659. * @type {Boolean}
  5660. * @default show = false
  5661. */
  5662. show: !1,
  5663. /**
  5664. * @description Background bar width
  5665. * @type {String|Number}
  5666. * @default width = 'auto'
  5667. * @example width = 'auto' | '30%' | 30
  5668. */
  5669. width: "auto",
  5670. /**
  5671. * @description Background bar default style configuration
  5672. * @type {Object}
  5673. * @default style = {Configuration Of Class Style}
  5674. */
  5675. style: {
  5676. fill: "rgba(200, 200, 200, .4)"
  5677. }
  5678. },
  5679. /**
  5680. * @description Bar label configuration
  5681. * @type {Object}
  5682. */
  5683. label: {
  5684. /**
  5685. * @description Whether to display bar label
  5686. * @type {Boolean}
  5687. * @default show = false
  5688. */
  5689. show: !1,
  5690. /**
  5691. * @description Bar label position
  5692. * @type {String}
  5693. * @default position = 'top'
  5694. * @example position = 'top' | 'center' | 'bottom'
  5695. */
  5696. position: "top",
  5697. /**
  5698. * @description Bar label offset
  5699. * @type {Array}
  5700. * @default offset = [0, -10]
  5701. */
  5702. offset: [0, -10],
  5703. /**
  5704. * @description Bar label formatter
  5705. * @type {String|Function}
  5706. * @default formatter = null
  5707. * @example formatter = '{value}件'
  5708. * @example formatter = (dataItem) => (dataItem.value)
  5709. */
  5710. formatter: null,
  5711. /**
  5712. * @description Bar label default style configuration
  5713. * @type {Object}
  5714. * @default style = {Configuration Of Class Style}
  5715. */
  5716. style: {
  5717. fontSize: 10
  5718. }
  5719. },
  5720. /**
  5721. * @description Bar gradient configuration
  5722. * @type {Object}
  5723. */
  5724. gradient: {
  5725. /**
  5726. * @description Gradient color (Hex|rgb|rgba)
  5727. * @type {Array}
  5728. * @default color = []
  5729. */
  5730. color: [],
  5731. /**
  5732. * @description Local gradient
  5733. * @type {Boolean}
  5734. * @default local = true
  5735. */
  5736. local: !0
  5737. },
  5738. /**
  5739. * @description Bar style default configuration
  5740. * @type {Object}
  5741. * @default style = {Configuration Of Class Style}
  5742. */
  5743. barStyle: {},
  5744. /**
  5745. * @description Independent color mode
  5746. * When set to true, independent color mode is enabled
  5747. * @type {Boolean}
  5748. * @default independentColor = false
  5749. */
  5750. independentColor: !1,
  5751. /**
  5752. * @description Independent colors
  5753. * Only effective when independent color mode is enabled
  5754. * Default value is the same as the color in the root configuration
  5755. * Two-dimensional color array can produce gradient colors
  5756. * @type {Array}
  5757. * @example independentColor = ['#fff', '#000']
  5758. * @example independentColor = [['#fff', '#000'], '#000']
  5759. */
  5760. independentColors: [],
  5761. /**
  5762. * @description Bar chart render level
  5763. * Priority rendering high level
  5764. * @type {Number}
  5765. * @default rLevel = 0
  5766. */
  5767. rLevel: 0,
  5768. /**
  5769. * @description Bar animation curve
  5770. * @type {String}
  5771. * @default animationCurve = 'easeOutCubic'
  5772. */
  5773. animationCurve: "easeOutCubic",
  5774. /**
  5775. * @description Bar animation frame
  5776. * @type {Number}
  5777. * @default animationFrame = 50
  5778. */
  5779. animationFrame: 50
  5780. };
  5781. return ot.barConfig = e, ot;
  5782. }
  5783. var lt = {}, ea;
  5784. function Da() {
  5785. if (ea) return lt;
  5786. ea = 1, Object.defineProperty(lt, "__esModule", {
  5787. value: !0
  5788. }), lt.pieConfig = void 0;
  5789. var e = {
  5790. /**
  5791. * @description Whether to display this pie chart
  5792. * @type {Boolean}
  5793. * @default show = true
  5794. */
  5795. show: !0,
  5796. /**
  5797. * @description Legend name
  5798. * @type {String}
  5799. * @default name = ''
  5800. */
  5801. name: "",
  5802. /**
  5803. * @description Radius of pie
  5804. * @type {String|Number}
  5805. * @default radius = '50%'
  5806. * @example radius = '50%' | 100
  5807. */
  5808. radius: "50%",
  5809. /**
  5810. * @description Center point of pie
  5811. * @type {Array}
  5812. * @default center = ['50%','50%']
  5813. * @example center = ['50%','50%'] | [100, 100]
  5814. */
  5815. center: ["50%", "50%"],
  5816. /**
  5817. * @description Pie chart start angle
  5818. * @type {Number}
  5819. * @default startAngle = -Math.PI / 2
  5820. * @example startAngle = -Math.PI
  5821. */
  5822. startAngle: -Math.PI / 2,
  5823. /**
  5824. * @description Whether to enable rose type
  5825. * @type {Boolean}
  5826. * @default roseType = false
  5827. */
  5828. roseType: !1,
  5829. /**
  5830. * @description Automatic sorting in rose type
  5831. * @type {Boolean}
  5832. * @default roseSort = true
  5833. */
  5834. roseSort: !0,
  5835. /**
  5836. * @description Rose radius increasing
  5837. * @type {String|Number}
  5838. * @default roseIncrement = 'auto'
  5839. * @example roseIncrement = 'auto' | '10%' | 10
  5840. */
  5841. roseIncrement: "auto",
  5842. /**
  5843. * @description Pie chart data
  5844. * @type {Array}
  5845. * @default data = []
  5846. */
  5847. data: [],
  5848. /**
  5849. * @description Pie inside label configuration
  5850. * @type {Object}
  5851. */
  5852. insideLabel: {
  5853. /**
  5854. * @description Whether to display inside label
  5855. * @type {Boolean}
  5856. * @default show = false
  5857. */
  5858. show: !1,
  5859. /**
  5860. * @description Label formatter
  5861. * @type {String|Function}
  5862. * @default formatter = '{percent}%'
  5863. * @example formatter = '${name}-{value}-{percent}%'
  5864. * @example formatter = (dataItem) => (dataItem.name)
  5865. */
  5866. formatter: "{percent}%",
  5867. /**
  5868. * @description Label default style configuration
  5869. * @type {Object}
  5870. * @default style = {Configuration Of Class Style}
  5871. */
  5872. style: {
  5873. fontSize: 10,
  5874. fill: "#fff",
  5875. textAlign: "center",
  5876. textBaseline: "middle"
  5877. }
  5878. },
  5879. /**
  5880. * @description Pie Outside label configuration
  5881. * @type {Object}
  5882. */
  5883. outsideLabel: {
  5884. /**
  5885. * @description Whether to display outside label
  5886. * @type {Boolean}
  5887. * @default show = false
  5888. */
  5889. show: !0,
  5890. /**
  5891. * @description Label formatter
  5892. * @type {String|Function}
  5893. * @default formatter = '{name}'
  5894. * @example formatter = '${name}-{value}-{percent}%'
  5895. * @example formatter = (dataItem) => (dataItem.name)
  5896. */
  5897. formatter: "{name}",
  5898. /**
  5899. * @description Label default style configuration
  5900. * @type {Object}
  5901. * @default style = {Configuration Of Class Style}
  5902. */
  5903. style: {
  5904. fontSize: 11
  5905. },
  5906. /**
  5907. * @description Gap beteen label line bended place and pie
  5908. * @type {String|Number}
  5909. * @default labelLineBendGap = '20%'
  5910. * @example labelLineBendGap = '20%' | 20
  5911. */
  5912. labelLineBendGap: "20%",
  5913. /**
  5914. * @description Label line end length
  5915. * @type {Number}
  5916. * @default labelLineEndLength = 50
  5917. */
  5918. labelLineEndLength: 50,
  5919. /**
  5920. * @description Label line default style configuration
  5921. * @type {Object}
  5922. * @default style = {Configuration Of Class Style}
  5923. */
  5924. labelLineStyle: {
  5925. lineWidth: 1
  5926. }
  5927. },
  5928. /**
  5929. * @description Pie default style configuration
  5930. * @type {Object}
  5931. * @default style = {Configuration Of Class Style}
  5932. */
  5933. pieStyle: {},
  5934. /**
  5935. * @description Percentage fractional precision
  5936. * @type {Number}
  5937. * @default percentToFixed = 0
  5938. */
  5939. percentToFixed: 0,
  5940. /**
  5941. * @description Pie chart render level
  5942. * Priority rendering high level
  5943. * @type {Number}
  5944. * @default rLevel = 10
  5945. */
  5946. rLevel: 10,
  5947. /**
  5948. * @description Animation delay gap
  5949. * @type {Number}
  5950. * @default animationDelayGap = 60
  5951. */
  5952. animationDelayGap: 60,
  5953. /**
  5954. * @description Pie animation curve
  5955. * @type {String}
  5956. * @default animationCurve = 'easeOutCubic'
  5957. */
  5958. animationCurve: "easeOutCubic",
  5959. /**
  5960. * @description Pie start animation curve
  5961. * @type {String}
  5962. * @default startAnimationCurve = 'easeOutBack'
  5963. */
  5964. startAnimationCurve: "easeOutBack",
  5965. /**
  5966. * @description Pie animation frame
  5967. * @type {Number}
  5968. * @default animationFrame = 50
  5969. */
  5970. animationFrame: 50
  5971. };
  5972. return lt.pieConfig = e, lt;
  5973. }
  5974. var st = {}, ta;
  5975. function Yl() {
  5976. if (ta) return st;
  5977. ta = 1, Object.defineProperty(st, "__esModule", {
  5978. value: !0
  5979. }), st.radarAxisConfig = void 0;
  5980. var e = {
  5981. /**
  5982. * @description Whether to display this radar axis
  5983. * @type {Boolean}
  5984. * @default show = true
  5985. */
  5986. show: !0,
  5987. /**
  5988. * @description Center point of radar axis
  5989. * @type {Array}
  5990. * @default center = ['50%','50%']
  5991. * @example center = ['50%','50%'] | [100, 100]
  5992. */
  5993. center: ["50%", "50%"],
  5994. /**
  5995. * @description Radius of radar axis
  5996. * @type {String|Number}
  5997. * @default radius = '65%'
  5998. * @example radius = '65%' | 100
  5999. */
  6000. radius: "65%",
  6001. /**
  6002. * @description Radar axis start angle
  6003. * @type {Number}
  6004. * @default startAngle = -Math.PI / 2
  6005. * @example startAngle = -Math.PI
  6006. */
  6007. startAngle: -Math.PI / 2,
  6008. /**
  6009. * @description Radar axis split number
  6010. * @type {Number}
  6011. * @default splitNum = 5
  6012. */
  6013. splitNum: 5,
  6014. /**
  6015. * @description Whether to enable polygon radar axis
  6016. * @type {Boolean}
  6017. * @default polygon = false
  6018. */
  6019. polygon: !1,
  6020. /**
  6021. * @description Axis label configuration
  6022. * @type {Object}
  6023. */
  6024. axisLabel: {
  6025. /**
  6026. * @description Whether to display axis label
  6027. * @type {Boolean}
  6028. * @default show = true
  6029. */
  6030. show: !0,
  6031. /**
  6032. * @description Label gap between label and radar axis
  6033. * @type {Number}
  6034. * @default labelGap = 15
  6035. */
  6036. labelGap: 15,
  6037. /**
  6038. * @description Label color (Hex|rgb|rgba), will cover style.fill
  6039. * @type {Array}
  6040. * @default color = []
  6041. */
  6042. color: [],
  6043. /**
  6044. * @description Axis label default style configuration
  6045. * @type {Object}
  6046. * @default style = {Configuration Of Class Style}
  6047. */
  6048. style: {
  6049. fill: "#333"
  6050. }
  6051. },
  6052. /**
  6053. * @description Axis line configuration
  6054. * @type {Object}
  6055. */
  6056. axisLine: {
  6057. /**
  6058. * @description Whether to display axis line
  6059. * @type {Boolean}
  6060. * @default show = true
  6061. */
  6062. show: !0,
  6063. /**
  6064. * @description Line color (Hex|rgb|rgba), will cover style.stroke
  6065. * @type {Array}
  6066. * @default color = []
  6067. */
  6068. color: [],
  6069. /**
  6070. * @description Axis label default style configuration
  6071. * @type {Object}
  6072. * @default style = {Configuration Of Class Style}
  6073. */
  6074. style: {
  6075. stroke: "#999",
  6076. lineWidth: 1
  6077. }
  6078. },
  6079. /**
  6080. * @description Split line configuration
  6081. * @type {Object}
  6082. */
  6083. splitLine: {
  6084. /**
  6085. * @description Whether to display split line
  6086. * @type {Boolean}
  6087. * @default show = true
  6088. */
  6089. show: !0,
  6090. /**
  6091. * @description Line color (Hex|rgb|rgba), will cover style.stroke
  6092. * @type {Array}
  6093. * @default color = []
  6094. */
  6095. color: [],
  6096. /**
  6097. * @description Split line default style configuration
  6098. * @type {Object}
  6099. * @default style = {Configuration Of Class Style}
  6100. */
  6101. style: {
  6102. stroke: "#d4d4d4",
  6103. lineWidth: 1
  6104. }
  6105. },
  6106. /**
  6107. * @description Split area configuration
  6108. * @type {Object}
  6109. */
  6110. splitArea: {
  6111. /**
  6112. * @description Whether to display split area
  6113. * @type {Boolean}
  6114. * @default show = false
  6115. */
  6116. show: !1,
  6117. /**
  6118. * @description Area color (Hex|rgb|rgba), will cover style.stroke
  6119. * @type {Array}
  6120. * @default color = []
  6121. */
  6122. color: ["#f5f5f5", "#e6e6e6"],
  6123. /**
  6124. * @description Split area default style configuration
  6125. * @type {Object}
  6126. * @default style = {Configuration Of Class Style}
  6127. */
  6128. style: {}
  6129. },
  6130. /**
  6131. * @description Bar chart render level
  6132. * Priority rendering high level
  6133. * @type {Number}
  6134. * @default rLevel = -10
  6135. */
  6136. rLevel: -10,
  6137. /**
  6138. * @description Radar axis animation curve
  6139. * @type {String}
  6140. * @default animationCurve = 'easeOutCubic'
  6141. */
  6142. animationCurve: "easeOutCubic",
  6143. /**
  6144. * @description Radar axis animation frame
  6145. * @type {Number}
  6146. * @default animationFrame = 50
  6147. */
  6148. animationFrane: 50
  6149. };
  6150. return st.radarAxisConfig = e, st;
  6151. }
  6152. var ut = {}, ra;
  6153. function Kl() {
  6154. if (ra) return ut;
  6155. ra = 1, Object.defineProperty(ut, "__esModule", {
  6156. value: !0
  6157. }), ut.radarConfig = void 0;
  6158. var e = {
  6159. /**
  6160. * @description Whether to display this radar
  6161. * @type {Boolean}
  6162. * @default show = true
  6163. */
  6164. show: !0,
  6165. /**
  6166. * @description Legend name
  6167. * @type {String}
  6168. * @default name = ''
  6169. */
  6170. name: "",
  6171. /**
  6172. * @description Radar chart data
  6173. * @type {Array}
  6174. * @default data = []
  6175. * @example data = [100, 200, 300]
  6176. */
  6177. data: [],
  6178. /**
  6179. * @description Radar default style configuration
  6180. * @type {Object}
  6181. * @default style = {Configuration Of Class Style}
  6182. */
  6183. radarStyle: {
  6184. lineWidth: 1
  6185. },
  6186. /**
  6187. * @description Radar point configuration
  6188. * @type {Object}
  6189. */
  6190. point: {
  6191. /**
  6192. * @description Whether to display radar point
  6193. * @type {Boolean}
  6194. * @default show = true
  6195. */
  6196. show: !0,
  6197. /**
  6198. * @description Point radius
  6199. * @type {Number}
  6200. * @default radius = 2
  6201. */
  6202. radius: 2,
  6203. /**
  6204. * @description Radar point default style configuration
  6205. * @type {Object}
  6206. * @default style = {Configuration Of Class Style}
  6207. */
  6208. style: {
  6209. fill: "#fff"
  6210. }
  6211. },
  6212. /**
  6213. * @description Radar label configuration
  6214. * @type {Object}
  6215. */
  6216. label: {
  6217. /**
  6218. * @description Whether to display radar label
  6219. * @type {Boolean}
  6220. * @default show = true
  6221. */
  6222. show: !0,
  6223. /**
  6224. * @description Label position offset
  6225. * @type {Array}
  6226. * @default offset = [0, 0]
  6227. */
  6228. offset: [0, 0],
  6229. /**
  6230. * @description Label gap between label and radar
  6231. * @type {Number}
  6232. * @default labelGap = 5
  6233. */
  6234. labelGap: 5,
  6235. /**
  6236. * @description Label formatter
  6237. * @type {String|Function}
  6238. * @default formatter = null
  6239. * @example formatter = 'Score-{value}'
  6240. * @example formatter = (label) => (label)
  6241. */
  6242. formatter: null,
  6243. /**
  6244. * @description Radar label default style configuration
  6245. * @type {Object}
  6246. * @default style = {Configuration Of Class Style}
  6247. */
  6248. style: {
  6249. fontSize: 10
  6250. }
  6251. },
  6252. /**
  6253. * @description Radar chart render level
  6254. * Priority rendering high level
  6255. * @type {Number}
  6256. * @default rLevel = 10
  6257. */
  6258. rLevel: 10,
  6259. /**
  6260. * @description Radar animation curve
  6261. * @type {String}
  6262. * @default animationCurve = 'easeOutCubic'
  6263. */
  6264. animationCurve: "easeOutCubic",
  6265. /**
  6266. * @description Radar animation frame
  6267. * @type {Number}
  6268. * @default animationFrame = 50
  6269. */
  6270. animationFrane: 50
  6271. };
  6272. return ut.radarConfig = e, ut;
  6273. }
  6274. var ct = {}, na;
  6275. function Ta() {
  6276. if (na) return ct;
  6277. na = 1, Object.defineProperty(ct, "__esModule", {
  6278. value: !0
  6279. }), ct.gaugeConfig = void 0;
  6280. var e = {
  6281. /**
  6282. * @description Whether to display this gauge
  6283. * @type {Boolean}
  6284. * @default show = true
  6285. */
  6286. show: !0,
  6287. /**
  6288. * @description Legend name
  6289. * @type {String}
  6290. * @default name = ''
  6291. */
  6292. name: "",
  6293. /**
  6294. * @description Radius of gauge
  6295. * @type {String|Number}
  6296. * @default radius = '60%'
  6297. * @example radius = '60%' | 100
  6298. */
  6299. radius: "60%",
  6300. /**
  6301. * @description Center point of gauge
  6302. * @type {Array}
  6303. * @default center = ['50%','50%']
  6304. * @example center = ['50%','50%'] | [100, 100]
  6305. */
  6306. center: ["50%", "50%"],
  6307. /**
  6308. * @description Gauge start angle
  6309. * @type {Number}
  6310. * @default startAngle = -(Math.PI / 4) * 5
  6311. * @example startAngle = -Math.PI
  6312. */
  6313. startAngle: -(Math.PI / 4) * 5,
  6314. /**
  6315. * @description Gauge end angle
  6316. * @type {Number}
  6317. * @default endAngle = Math.PI / 4
  6318. * @example endAngle = 0
  6319. */
  6320. endAngle: Math.PI / 4,
  6321. /**
  6322. * @description Gauge min value
  6323. * @type {Number}
  6324. * @default min = 0
  6325. */
  6326. min: 0,
  6327. /**
  6328. * @description Gauge max value
  6329. * @type {Number}
  6330. * @default max = 100
  6331. */
  6332. max: 100,
  6333. /**
  6334. * @description Gauge split number
  6335. * @type {Number}
  6336. * @default splitNum = 5
  6337. */
  6338. splitNum: 5,
  6339. /**
  6340. * @description Gauge arc line width
  6341. * @type {Number}
  6342. * @default arcLineWidth = 15
  6343. */
  6344. arcLineWidth: 15,
  6345. /**
  6346. * @description Gauge chart data
  6347. * @type {Array}
  6348. * @default data = []
  6349. */
  6350. data: [],
  6351. /**
  6352. * @description Data item arc default style configuration
  6353. * @type {Object}
  6354. * @default dataItemStyle = {Configuration Of Class Style}
  6355. */
  6356. dataItemStyle: {},
  6357. /**
  6358. * @description Axis tick configuration
  6359. * @type {Object}
  6360. */
  6361. axisTick: {
  6362. /**
  6363. * @description Whether to display axis tick
  6364. * @type {Boolean}
  6365. * @default show = true
  6366. */
  6367. show: !0,
  6368. /**
  6369. * @description Axis tick length
  6370. * @type {Number}
  6371. * @default tickLength = 6
  6372. */
  6373. tickLength: 6,
  6374. /**
  6375. * @description Axis tick default style configuration
  6376. * @type {Object}
  6377. * @default style = {Configuration Of Class Style}
  6378. */
  6379. style: {
  6380. stroke: "#999",
  6381. lineWidth: 1
  6382. }
  6383. },
  6384. /**
  6385. * @description Axis label configuration
  6386. * @type {Object}
  6387. */
  6388. axisLabel: {
  6389. /**
  6390. * @description Whether to display axis label
  6391. * @type {Boolean}
  6392. * @default show = true
  6393. */
  6394. show: !0,
  6395. /**
  6396. * @description Axis label data (Can be calculated automatically)
  6397. * @type {Array}
  6398. * @default data = [Number...]
  6399. */
  6400. data: [],
  6401. /**
  6402. * @description Axis label formatter
  6403. * @type {String|Function}
  6404. * @default formatter = null
  6405. * @example formatter = '{value}%'
  6406. * @example formatter = (labelItem) => (labelItem.value)
  6407. */
  6408. formatter: null,
  6409. /**
  6410. * @description Axis label gap between label and axis tick
  6411. * @type {String|Function}
  6412. * @default labelGap = 5
  6413. */
  6414. labelGap: 5,
  6415. /**
  6416. * @description Axis label default style configuration
  6417. * @type {Object}
  6418. * @default style = {Configuration Of Class Style}
  6419. */
  6420. style: {}
  6421. },
  6422. /**
  6423. * @description Gauge pointer configuration
  6424. * @type {Object}
  6425. */
  6426. pointer: {
  6427. /**
  6428. * @description Whether to display pointer
  6429. * @type {Boolean}
  6430. * @default show = true
  6431. */
  6432. show: !0,
  6433. /**
  6434. * @description Pointer value index of data
  6435. * @type {Number}
  6436. * @default valueIndex = 0 (pointer.value = data[0].value)
  6437. */
  6438. valueIndex: 0,
  6439. /**
  6440. * @description Pointer default style configuration
  6441. * @type {Object}
  6442. * @default style = {Configuration Of Class Style}
  6443. */
  6444. style: {
  6445. scale: [1, 1],
  6446. fill: "#fb7293"
  6447. }
  6448. },
  6449. /**
  6450. * @description Data item arc detail configuration
  6451. * @type {Object}
  6452. */
  6453. details: {
  6454. /**
  6455. * @description Whether to display details
  6456. * @type {Boolean}
  6457. * @default show = false
  6458. */
  6459. show: !1,
  6460. /**
  6461. * @description Details formatter
  6462. * @type {String|Function}
  6463. * @default formatter = null
  6464. * @example formatter = '{value}%'
  6465. * @example formatter = '{name}%'
  6466. * @example formatter = (dataItem) => (dataItem.value)
  6467. */
  6468. formatter: null,
  6469. /**
  6470. * @description Details position offset
  6471. * @type {Array}
  6472. * @default offset = [0, 0]
  6473. * @example offset = [10, 10]
  6474. */
  6475. offset: [0, 0],
  6476. /**
  6477. * @description Value fractional precision
  6478. * @type {Number}
  6479. * @default valueToFixed = 0
  6480. */
  6481. valueToFixed: 0,
  6482. /**
  6483. * @description Details position
  6484. * @type {String}
  6485. * @default position = 'center'
  6486. * @example position = 'start' | 'center' | 'end'
  6487. */
  6488. position: "center",
  6489. /**
  6490. * @description Details default style configuration
  6491. * @type {Object}
  6492. * @default style = {Configuration Of Class Style}
  6493. */
  6494. style: {
  6495. fontSize: 20,
  6496. fontWeight: "bold",
  6497. textAlign: "center",
  6498. textBaseline: "middle"
  6499. }
  6500. },
  6501. /**
  6502. * @description Gauge background arc configuration
  6503. * @type {Object}
  6504. */
  6505. backgroundArc: {
  6506. /**
  6507. * @description Whether to display background arc
  6508. * @type {Boolean}
  6509. * @default show = true
  6510. */
  6511. show: !0,
  6512. /**
  6513. * @description Background arc default style configuration
  6514. * @type {Object}
  6515. * @default style = {Configuration Of Class Style}
  6516. */
  6517. style: {
  6518. stroke: "#e0e0e0"
  6519. }
  6520. },
  6521. /**
  6522. * @description Gauge chart render level
  6523. * Priority rendering high level
  6524. * @type {Number}
  6525. * @default rLevel = 10
  6526. */
  6527. rLevel: 10,
  6528. /**
  6529. * @description Gauge animation curve
  6530. * @type {String}
  6531. * @default animationCurve = 'easeOutCubic'
  6532. */
  6533. animationCurve: "easeOutCubic",
  6534. /**
  6535. * @description Gauge animation frame
  6536. * @type {Number}
  6537. * @default animationFrame = 50
  6538. */
  6539. animationFrame: 50
  6540. };
  6541. return ct.gaugeConfig = e, ct;
  6542. }
  6543. var ft = {}, aa;
  6544. function Jl() {
  6545. if (aa) return ft;
  6546. aa = 1, Object.defineProperty(ft, "__esModule", {
  6547. value: !0
  6548. }), ft.legendConfig = void 0;
  6549. var e = {
  6550. /**
  6551. * @description Whether to display legend
  6552. * @type {Boolean}
  6553. * @default show = true
  6554. */
  6555. show: !0,
  6556. /**
  6557. * @description Legend orient
  6558. * @type {String}
  6559. * @default orient = 'horizontal'
  6560. * @example orient = 'horizontal' | 'vertical'
  6561. */
  6562. orient: "horizontal",
  6563. /**
  6564. * @description Legend left
  6565. * @type {String|Number}
  6566. * @default left = 'auto'
  6567. * @example left = 'auto' | '10%' | 10
  6568. */
  6569. left: "auto",
  6570. /**
  6571. * @description Legend right
  6572. * @type {String|Number}
  6573. * @default right = 'auto'
  6574. * @example right = 'auto' | '10%' | 10
  6575. */
  6576. right: "auto",
  6577. /**
  6578. * @description Legend top
  6579. * @type {String|Number}
  6580. * @default top = 'auto'
  6581. * @example top = 'auto' | '10%' | 10
  6582. */
  6583. top: "auto",
  6584. /**
  6585. * @description Legend bottom
  6586. * @type {String|Number}
  6587. * @default bottom = 'auto'
  6588. * @example bottom = 'auto' | '10%' | 10
  6589. */
  6590. bottom: "auto",
  6591. /**
  6592. * @description Legend item gap
  6593. * @type {Number}
  6594. * @default itemGap = 10
  6595. */
  6596. itemGap: 10,
  6597. /**
  6598. * @description Icon width
  6599. * @type {Number}
  6600. * @default iconWidth = 25
  6601. */
  6602. iconWidth: 25,
  6603. /**
  6604. * @description Icon height
  6605. * @type {Number}
  6606. * @default iconHeight = 10
  6607. */
  6608. iconHeight: 10,
  6609. /**
  6610. * @description Whether legend is optional
  6611. * @type {Boolean}
  6612. * @default selectAble = true
  6613. */
  6614. selectAble: !0,
  6615. /**
  6616. * @description Legend data
  6617. * @type {Array}
  6618. * @default data = []
  6619. */
  6620. data: [],
  6621. /**
  6622. * @description Legend text default style configuration
  6623. * @type {Object}
  6624. * @default style = {Configuration Of Class Style}
  6625. */
  6626. textStyle: {
  6627. fontFamily: "Arial",
  6628. fontSize: 13,
  6629. fill: "#000"
  6630. },
  6631. /**
  6632. * @description Legend icon default style configuration
  6633. * @type {Object}
  6634. * @default style = {Configuration Of Class Style}
  6635. */
  6636. iconStyle: {},
  6637. /**
  6638. * @description Legend text unselected default style configuration
  6639. * @type {Object}
  6640. * @default style = {Configuration Of Class Style}
  6641. */
  6642. textUnselectedStyle: {
  6643. fontFamily: "Arial",
  6644. fontSize: 13,
  6645. fill: "#999"
  6646. },
  6647. /**
  6648. * @description Legend icon unselected default style configuration
  6649. * @type {Object}
  6650. * @default style = {Configuration Of Class Style}
  6651. */
  6652. iconUnselectedStyle: {
  6653. fill: "#999"
  6654. },
  6655. /**
  6656. * @description Legend render level
  6657. * Priority rendering high level
  6658. * @type {Number}
  6659. * @default rLevel = 20
  6660. */
  6661. rLevel: 20,
  6662. /**
  6663. * @description Legend animation curve
  6664. * @type {String}
  6665. * @default animationCurve = 'easeOutCubic'
  6666. */
  6667. animationCurve: "easeOutCubic",
  6668. /**
  6669. * @description Legend animation frame
  6670. * @type {Number}
  6671. * @default animationFrame = 50
  6672. */
  6673. animationFrame: 50
  6674. };
  6675. return ft.legendConfig = e, ft;
  6676. }
  6677. var ia;
  6678. function Ue() {
  6679. return ia || (ia = 1, function(e) {
  6680. Object.defineProperty(e, "__esModule", {
  6681. value: !0
  6682. }), e.changeDefaultConfig = d, Object.defineProperty(e, "colorConfig", {
  6683. enumerable: !0,
  6684. get: function() {
  6685. return r.colorConfig;
  6686. }
  6687. }), Object.defineProperty(e, "gridConfig", {
  6688. enumerable: !0,
  6689. get: function() {
  6690. return a.gridConfig;
  6691. }
  6692. }), Object.defineProperty(e, "xAxisConfig", {
  6693. enumerable: !0,
  6694. get: function() {
  6695. return t.xAxisConfig;
  6696. }
  6697. }), Object.defineProperty(e, "yAxisConfig", {
  6698. enumerable: !0,
  6699. get: function() {
  6700. return t.yAxisConfig;
  6701. }
  6702. }), Object.defineProperty(e, "titleConfig", {
  6703. enumerable: !0,
  6704. get: function() {
  6705. return n.titleConfig;
  6706. }
  6707. }), Object.defineProperty(e, "lineConfig", {
  6708. enumerable: !0,
  6709. get: function() {
  6710. return l.lineConfig;
  6711. }
  6712. }), Object.defineProperty(e, "barConfig", {
  6713. enumerable: !0,
  6714. get: function() {
  6715. return o.barConfig;
  6716. }
  6717. }), Object.defineProperty(e, "pieConfig", {
  6718. enumerable: !0,
  6719. get: function() {
  6720. return _.pieConfig;
  6721. }
  6722. }), Object.defineProperty(e, "radarAxisConfig", {
  6723. enumerable: !0,
  6724. get: function() {
  6725. return x.radarAxisConfig;
  6726. }
  6727. }), Object.defineProperty(e, "radarConfig", {
  6728. enumerable: !0,
  6729. get: function() {
  6730. return z.radarConfig;
  6731. }
  6732. }), Object.defineProperty(e, "gaugeConfig", {
  6733. enumerable: !0,
  6734. get: function() {
  6735. return E.gaugeConfig;
  6736. }
  6737. }), Object.defineProperty(e, "legendConfig", {
  6738. enumerable: !0,
  6739. get: function() {
  6740. return U.legendConfig;
  6741. }
  6742. }), e.keys = void 0;
  6743. var r = Il(), a = Hl(), t = Vl(), n = Ul(), l = Xl(), o = Ql(), _ = Da(), x = Yl(), z = Kl(), E = Ta(), U = Jl(), T = ze(), L = {
  6744. colorConfig: r.colorConfig,
  6745. gridConfig: a.gridConfig,
  6746. xAxisConfig: t.xAxisConfig,
  6747. yAxisConfig: t.yAxisConfig,
  6748. titleConfig: n.titleConfig,
  6749. lineConfig: l.lineConfig,
  6750. barConfig: o.barConfig,
  6751. pieConfig: _.pieConfig,
  6752. radarAxisConfig: x.radarAxisConfig,
  6753. radarConfig: z.radarConfig,
  6754. gaugeConfig: E.gaugeConfig,
  6755. legendConfig: U.legendConfig
  6756. };
  6757. function d(W, q) {
  6758. if (!L["".concat(W, "Config")]) {
  6759. console.warn("Change default config Error - Invalid key!");
  6760. return;
  6761. }
  6762. (0, T.deepMerge)(L["".concat(W, "Config")], q);
  6763. }
  6764. var B = ["color", "title", "legend", "xAxis", "yAxis", "grid", "radarAxis", "line", "bar", "pie", "radar", "gauge"];
  6765. e.keys = B;
  6766. }(Lr)), Lr;
  6767. }
  6768. var oa;
  6769. function Zl() {
  6770. if (oa) return Ct;
  6771. oa = 1, Object.defineProperty(Ct, "__esModule", {
  6772. value: !0
  6773. }), Ct.mergeColor = t;
  6774. var e = Ue(), r = Fe(), a = ze();
  6775. function t(n) {
  6776. var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = (0, r.deepClone)(e.colorConfig, !0), _ = l.color, x = l.series;
  6777. if (x || (x = []), _ || (_ = []), l.color = _ = (0, a.deepMerge)(o, _), !!x.length) {
  6778. var z = _.length;
  6779. x.forEach(function(L, d) {
  6780. L.color || (L.color = _[d % z]);
  6781. });
  6782. var E = x.filter(function(L) {
  6783. var d = L.type;
  6784. return d === "pie";
  6785. });
  6786. E.forEach(function(L) {
  6787. return L.data.forEach(function(d, B) {
  6788. return d.color = _[B % z];
  6789. });
  6790. });
  6791. var U = x.filter(function(L) {
  6792. var d = L.type;
  6793. return d === "gauge";
  6794. });
  6795. U.forEach(function(L) {
  6796. return L.data.forEach(function(d, B) {
  6797. return d.color = _[B % z];
  6798. });
  6799. });
  6800. var T = x.filter(function(L) {
  6801. var d = L.type, B = L.independentColor;
  6802. return d === "bar" && B;
  6803. });
  6804. T.forEach(function(L) {
  6805. L.independentColors || (L.independentColors = _);
  6806. });
  6807. }
  6808. }
  6809. return Ct;
  6810. }
  6811. var $t = {}, tt = {}, la;
  6812. function Xe() {
  6813. if (la) return tt;
  6814. la = 1;
  6815. var e = we;
  6816. Object.defineProperty(tt, "__esModule", {
  6817. value: !0
  6818. }), tt.doUpdate = E, tt.Updater = void 0;
  6819. var r = e(Te()), a = e(Be()), t = e(mt()), n = function U(T, L) {
  6820. (0, t.default)(this, U);
  6821. var d = T.chart, B = T.key, W = T.getGraphConfig;
  6822. if (typeof W != "function") {
  6823. console.warn("Updater need function getGraphConfig!");
  6824. return;
  6825. }
  6826. d[B] || (this.graphs = d[B] = []), Object.assign(this, T), this.update(L);
  6827. };
  6828. tt.Updater = n, n.prototype.update = function(U) {
  6829. var T = this, L = this.graphs, d = this.beforeUpdate;
  6830. if (l(this, U), !!U.length) {
  6831. var B = (0, a.default)(d);
  6832. U.forEach(function(W, q) {
  6833. B === "function" && d(L, W, q, T);
  6834. var G = L[q];
  6835. G ? o(G, W, q, T) : x(L, W, q, T);
  6836. });
  6837. }
  6838. };
  6839. function l(U, T) {
  6840. var L = U.graphs, d = U.chart.render, B = L.length, W = T.length;
  6841. if (B > W) {
  6842. var q = L.splice(W);
  6843. q.forEach(function(G) {
  6844. return G.forEach(function(m) {
  6845. return d.delGraph(m);
  6846. });
  6847. });
  6848. }
  6849. }
  6850. function o(U, T, L, d) {
  6851. var B = d.getGraphConfig, W = d.chart.render, q = d.beforeChange, G = B(T, d);
  6852. _(U, G, W), U.forEach(function(m, y) {
  6853. var f = G[y];
  6854. typeof q == "function" && q(m, f), z(m, f);
  6855. });
  6856. }
  6857. function _(U, T, L) {
  6858. var d = U.length, B = T.length;
  6859. if (B > d) {
  6860. var W = U.slice(-1)[0], q = B - d, G = new Array(q).fill(0).map(function(y) {
  6861. return L.clone(W);
  6862. });
  6863. U.push.apply(U, (0, r.default)(G));
  6864. } else if (B < d) {
  6865. var m = U.splice(B);
  6866. m.forEach(function(y) {
  6867. return L.delGraph(y);
  6868. });
  6869. }
  6870. }
  6871. function x(U, T, L, d) {
  6872. var B = d.getGraphConfig, W = d.getStartGraphConfig, q = d.chart, G = q.render, m = null;
  6873. typeof W == "function" && (m = W(T, d));
  6874. var y = B(T, d);
  6875. if (y.length) {
  6876. m ? (U[L] = m.map(function(D) {
  6877. return G.add(D);
  6878. }), U[L].forEach(function(D, k) {
  6879. var C = y[k];
  6880. z(D, C);
  6881. })) : U[L] = y.map(function(D) {
  6882. return G.add(D);
  6883. });
  6884. var f = d.afterAddGraph;
  6885. typeof f == "function" && f(U[L]);
  6886. }
  6887. }
  6888. function z(U, T) {
  6889. var L = Object.keys(T);
  6890. L.forEach(function(d) {
  6891. d === "shape" || d === "style" ? U.animation(d, T[d], !0) : U[d] = T[d];
  6892. });
  6893. }
  6894. function E() {
  6895. var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = U.chart, L = U.series, d = U.key, B = U.getGraphConfig, W = U.getStartGraphConfig, q = U.beforeChange, G = U.beforeUpdate, m = U.afterAddGraph;
  6896. T[d] ? T[d].update(L) : T[d] = new n({
  6897. chart: T,
  6898. key: d,
  6899. getGraphConfig: B,
  6900. getStartGraphConfig: W,
  6901. beforeChange: q,
  6902. beforeUpdate: G,
  6903. afterAddGraph: m
  6904. }, L);
  6905. }
  6906. return tt;
  6907. }
  6908. var sa;
  6909. function es() {
  6910. if (sa) return $t;
  6911. sa = 1;
  6912. var e = we;
  6913. Object.defineProperty($t, "__esModule", {
  6914. value: !0
  6915. }), $t.title = o;
  6916. var r = e(Ne()), a = Xe(), t = Fe(), n = Ue(), l = ze();
  6917. function o(E) {
  6918. var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, T = [];
  6919. U.title && (T[0] = (0, l.deepMerge)((0, t.deepClone)(n.titleConfig, !0), U.title)), (0, a.doUpdate)({
  6920. chart: E,
  6921. series: T,
  6922. key: "title",
  6923. getGraphConfig: _
  6924. });
  6925. }
  6926. function _(E, U) {
  6927. var T = n.titleConfig.animationCurve, L = n.titleConfig.animationFrame, d = n.titleConfig.rLevel, B = x(E, U), W = z(E);
  6928. return [{
  6929. name: "text",
  6930. index: d,
  6931. visible: E.show,
  6932. animationCurve: T,
  6933. animationFrame: L,
  6934. shape: B,
  6935. style: W
  6936. }];
  6937. }
  6938. function x(E, U) {
  6939. var T = E.offset, L = E.text, d = U.chart.gridArea, B = d.x, W = d.y, q = d.w, G = (0, r.default)(T, 2), m = G[0], y = G[1];
  6940. return {
  6941. content: L,
  6942. position: [B + q / 2 + m, W + y]
  6943. };
  6944. }
  6945. function z(E) {
  6946. var U = E.style;
  6947. return U;
  6948. }
  6949. return $t;
  6950. }
  6951. var _t = {}, ua;
  6952. function ts() {
  6953. if (ua) return _t;
  6954. ua = 1;
  6955. var e = we;
  6956. Object.defineProperty(_t, "__esModule", {
  6957. value: !0
  6958. }), _t.grid = z;
  6959. var r = e(Ne()), a = e(Ve()), t = Xe(), n = Fe(), l = Ue(), o = ze();
  6960. function _(d, B) {
  6961. var W = Object.keys(d);
  6962. if (Object.getOwnPropertySymbols) {
  6963. var q = Object.getOwnPropertySymbols(d);
  6964. B && (q = q.filter(function(G) {
  6965. return Object.getOwnPropertyDescriptor(d, G).enumerable;
  6966. })), W.push.apply(W, q);
  6967. }
  6968. return W;
  6969. }
  6970. function x(d) {
  6971. for (var B = 1; B < arguments.length; B++) {
  6972. var W = arguments[B] != null ? arguments[B] : {};
  6973. B % 2 ? _(Object(W), !0).forEach(function(q) {
  6974. (0, a.default)(d, q, W[q]);
  6975. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(W)) : _(Object(W)).forEach(function(q) {
  6976. Object.defineProperty(d, q, Object.getOwnPropertyDescriptor(W, q));
  6977. });
  6978. }
  6979. return d;
  6980. }
  6981. function z(d) {
  6982. var B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, W = B.grid;
  6983. W = (0, o.deepMerge)((0, n.deepClone)(l.gridConfig, !0), W || {}), (0, t.doUpdate)({
  6984. chart: d,
  6985. series: [W],
  6986. key: "grid",
  6987. getGraphConfig: E
  6988. });
  6989. }
  6990. function E(d, B) {
  6991. var W = d.animationCurve, q = d.animationFrame, G = d.rLevel, m = U(d, B), y = L(d);
  6992. return B.chart.gridArea = x({}, m), [{
  6993. name: "rect",
  6994. index: G,
  6995. animationCurve: W,
  6996. animationFrame: q,
  6997. shape: m,
  6998. style: y
  6999. }];
  7000. }
  7001. function U(d, B) {
  7002. var W = (0, r.default)(B.chart.render.area, 2), q = W[0], G = W[1], m = T(d.left, q), y = T(d.right, q), f = T(d.top, G), D = T(d.bottom, G), k = q - m - y, C = G - f - D;
  7003. return {
  7004. x: m,
  7005. y: f,
  7006. w: k,
  7007. h: C
  7008. };
  7009. }
  7010. function T(d, B) {
  7011. return typeof d == "number" ? d : typeof d != "string" ? 0 : B * parseInt(d) / 100;
  7012. }
  7013. function L(d) {
  7014. var B = d.style;
  7015. return B;
  7016. }
  7017. return _t;
  7018. }
  7019. var Pt = {}, ca;
  7020. function rs() {
  7021. if (ca) return Pt;
  7022. ca = 1;
  7023. var e = we;
  7024. Object.defineProperty(Pt, "__esModule", {
  7025. value: !0
  7026. }), Pt.axis = d;
  7027. var r = e(Be()), a = e(Ne()), t = e(Ve()), n = e(Te()), l = Xe(), o = Ue(), _ = ze(), x = Fe();
  7028. function z(s, b) {
  7029. var P = Object.keys(s);
  7030. if (Object.getOwnPropertySymbols) {
  7031. var R = Object.getOwnPropertySymbols(s);
  7032. b && (R = R.filter(function(K) {
  7033. return Object.getOwnPropertyDescriptor(s, K).enumerable;
  7034. })), P.push.apply(P, R);
  7035. }
  7036. return P;
  7037. }
  7038. function E(s) {
  7039. for (var b = 1; b < arguments.length; b++) {
  7040. var P = arguments[b] != null ? arguments[b] : {};
  7041. b % 2 ? z(Object(P), !0).forEach(function(R) {
  7042. (0, t.default)(s, R, P[R]);
  7043. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(P)) : z(Object(P)).forEach(function(R) {
  7044. Object.defineProperty(s, R, Object.getOwnPropertyDescriptor(P, R));
  7045. });
  7046. }
  7047. return s;
  7048. }
  7049. var U = {
  7050. xAxisConfig: o.xAxisConfig,
  7051. yAxisConfig: o.yAxisConfig
  7052. }, T = Math.abs, L = Math.pow;
  7053. function d(s) {
  7054. var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = b.xAxis, R = b.yAxis, K = b.series, ne = [];
  7055. P && R && K && (ne = B(P, R), ne = W(ne), ne = ne.filter(function(ue) {
  7056. var de = ue.show;
  7057. return de;
  7058. }), ne = q(ne), ne = G(ne, K), ne = X(ne), ne = ee(ne, s), ne = u(ne), ne = g(ne), ne = v(ne, s)), (0, l.doUpdate)({
  7059. chart: s,
  7060. series: ne,
  7061. key: "axisLine",
  7062. getGraphConfig: S
  7063. }), (0, l.doUpdate)({
  7064. chart: s,
  7065. series: ne,
  7066. key: "axisTick",
  7067. getGraphConfig: te
  7068. }), (0, l.doUpdate)({
  7069. chart: s,
  7070. series: ne,
  7071. key: "axisLabel",
  7072. getGraphConfig: Y
  7073. }), (0, l.doUpdate)({
  7074. chart: s,
  7075. series: ne,
  7076. key: "axisName",
  7077. getGraphConfig: w
  7078. }), (0, l.doUpdate)({
  7079. chart: s,
  7080. series: ne,
  7081. key: "splitLine",
  7082. getGraphConfig: re
  7083. }), s.axisData = ne;
  7084. }
  7085. function B(s, b) {
  7086. var P = [], R = [];
  7087. if (s instanceof Array) {
  7088. var K;
  7089. (K = P).push.apply(K, (0, n.default)(s));
  7090. } else
  7091. P.push(s);
  7092. if (b instanceof Array) {
  7093. var ne;
  7094. (ne = R).push.apply(ne, (0, n.default)(b));
  7095. } else
  7096. R.push(b);
  7097. return P.splice(2), R.splice(2), P = P.map(function(ue, de) {
  7098. return E(E({}, ue), {}, {
  7099. index: de,
  7100. axis: "x"
  7101. });
  7102. }), R = R.map(function(ue, de) {
  7103. return E(E({}, ue), {}, {
  7104. index: de,
  7105. axis: "y"
  7106. });
  7107. }), [].concat((0, n.default)(P), (0, n.default)(R));
  7108. }
  7109. function W(s) {
  7110. var b = s.filter(function(R) {
  7111. var K = R.axis;
  7112. return K === "x";
  7113. }), P = s.filter(function(R) {
  7114. var K = R.axis;
  7115. return K === "y";
  7116. });
  7117. return b = b.map(function(R) {
  7118. return (0, _.deepMerge)((0, x.deepClone)(o.xAxisConfig), R);
  7119. }), P = P.map(function(R) {
  7120. return (0, _.deepMerge)((0, x.deepClone)(o.yAxisConfig), R);
  7121. }), [].concat((0, n.default)(b), (0, n.default)(P));
  7122. }
  7123. function q(s) {
  7124. var b = s.filter(function(R) {
  7125. var K = R.data;
  7126. return K === "value";
  7127. }), P = s.filter(function(R) {
  7128. var K = R.data;
  7129. return K !== "value";
  7130. });
  7131. return b.forEach(function(R) {
  7132. typeof R.boundaryGap != "boolean" && (R.boundaryGap = !1);
  7133. }), P.forEach(function(R) {
  7134. typeof R.boundaryGap != "boolean" && (R.boundaryGap = !0);
  7135. }), [].concat((0, n.default)(b), (0, n.default)(P));
  7136. }
  7137. function G(s, b) {
  7138. var P = s.filter(function(K) {
  7139. var ne = K.data;
  7140. return ne === "value";
  7141. }), R = s.filter(function(K) {
  7142. var ne = K.data;
  7143. return ne instanceof Array;
  7144. });
  7145. return P = m(P, b), R = p(R), [].concat((0, n.default)(P), (0, n.default)(R));
  7146. }
  7147. function m(s, b) {
  7148. return s.map(function(P) {
  7149. var R = y(P, b), K = k(P, R), ne = (0, a.default)(K, 2), ue = ne[0], de = ne[1], he = V(ue, de, P), pe = P.axisLabel.formatter, ge = [];
  7150. return ue < 0 && de > 0 ? ge = c(ue, de, he) : ge = M(ue, de, he), ge = ge.map(function(ye) {
  7151. return parseFloat(ye.toFixed(2));
  7152. }), E(E({}, P), {}, {
  7153. maxValue: ge.slice(-1)[0],
  7154. minValue: ge[0],
  7155. label: A(ge, pe)
  7156. });
  7157. });
  7158. }
  7159. function y(s, b) {
  7160. if (b = b.filter(function(ue) {
  7161. var de = ue.show, he = ue.type;
  7162. return !(de === !1 || he === "pie");
  7163. }), b.length === 0) return [0, 0];
  7164. var P = s.index, R = s.axis;
  7165. b = D(b);
  7166. var K = R + "Axis", ne = b.filter(function(ue) {
  7167. return ue[K] === P;
  7168. });
  7169. return ne.length || (ne = b), f(ne);
  7170. }
  7171. function f(s) {
  7172. if (s) {
  7173. var b = Math.min.apply(Math, (0, n.default)(s.map(function(R) {
  7174. var K = R.data;
  7175. return Math.min.apply(Math, (0, n.default)((0, _.filterNonNumber)(K)));
  7176. }))), P = Math.max.apply(Math, (0, n.default)(s.map(function(R) {
  7177. var K = R.data;
  7178. return Math.max.apply(Math, (0, n.default)((0, _.filterNonNumber)(K)));
  7179. })));
  7180. return [b, P];
  7181. }
  7182. }
  7183. function D(s) {
  7184. var b = (0, x.deepClone)(s, !0);
  7185. return s.forEach(function(P, R) {
  7186. var K = (0, _.mergeSameStackData)(P, s);
  7187. b[R].data = K;
  7188. }), b;
  7189. }
  7190. function k(s, b) {
  7191. var P = s.min, R = s.max, K = s.axis, ne = (0, a.default)(b, 2), ue = ne[0], de = ne[1], he = (0, r.default)(P), pe = (0, r.default)(R);
  7192. if ($(P) || (P = U[K + "AxisConfig"].min, he = "string"), $(R) || (R = U[K + "AxisConfig"].max, pe = "string"), he === "string") {
  7193. P = parseInt(ue - T(ue * parseFloat(P) / 100));
  7194. var ge = C(P);
  7195. P = parseFloat((P / ge - 0.1).toFixed(1)) * ge;
  7196. }
  7197. if (pe === "string") {
  7198. R = parseInt(de + T(de * parseFloat(R) / 100));
  7199. var ye = C(R);
  7200. R = parseFloat((R / ye + 0.1).toFixed(1)) * ye;
  7201. }
  7202. return [P, R];
  7203. }
  7204. function C(s) {
  7205. var b = T(s).toString(), P = b.length, R = b.replace(/0*$/g, "").indexOf("0"), K = P - 1;
  7206. return R !== -1 && (K -= R), L(10, K);
  7207. }
  7208. function $(s) {
  7209. var b = (0, r.default)(s), P = b === "string" && /^\d+%$/.test(s), R = b === "number";
  7210. return P || R;
  7211. }
  7212. function c(s, b, P) {
  7213. var R = [], K = [], ne = 0, ue = 0;
  7214. do
  7215. R.push(ne -= P);
  7216. while (ne > s);
  7217. do
  7218. K.push(ue += P);
  7219. while (ue < b);
  7220. return [].concat((0, n.default)(R.reverse()), [0], (0, n.default)(K));
  7221. }
  7222. function M(s, b, P) {
  7223. var R = [s], K = s;
  7224. do
  7225. R.push(K += P);
  7226. while (K < b);
  7227. return R;
  7228. }
  7229. function A(s, b) {
  7230. return b && (typeof b == "string" && (s = s.map(function(P) {
  7231. return b.replace("{value}", P);
  7232. })), typeof b == "function" && (s = s.map(function(P, R) {
  7233. return b({
  7234. value: P,
  7235. index: R
  7236. });
  7237. }))), s;
  7238. }
  7239. function p(s) {
  7240. return s.map(function(b) {
  7241. var P = b.data, R = b.axisLabel.formatter;
  7242. return E(E({}, b), {}, {
  7243. label: A(P, R)
  7244. });
  7245. });
  7246. }
  7247. function V(s, b, P) {
  7248. var R = P.interval, K = P.minInterval, ne = P.maxInterval, ue = P.splitNumber, de = P.axis, he = U[de + "AxisConfig"];
  7249. if (typeof R != "number" && (R = he.interval), typeof K != "number" && (K = he.minInterval), typeof ne != "number" && (ne = he.maxInterval), typeof ue != "number" && (ue = he.splitNumber), typeof R == "number") return R;
  7250. var pe = parseInt((b - s) / (ue - 1));
  7251. return pe.toString().length > 1 && (pe = parseInt(pe.toString().replace(/\d$/, "0"))), pe === 0 && (pe = 1), typeof K == "number" && pe < K ? K : typeof ne == "number" && pe > ne ? ne : pe;
  7252. }
  7253. function X(s) {
  7254. var b = s.filter(function(R) {
  7255. var K = R.axis;
  7256. return K === "x";
  7257. }), P = s.filter(function(R) {
  7258. var K = R.axis;
  7259. return K === "y";
  7260. });
  7261. return b[0] && !b[0].position && (b[0].position = o.xAxisConfig.position), b[1] && !b[1].position && (b[1].position = b[0].position === "bottom" ? "top" : "bottom"), P[0] && !P[0].position && (P[0].position = o.yAxisConfig.position), P[1] && !P[1].position && (P[1].position = P[0].position === "left" ? "right" : "left"), [].concat((0, n.default)(b), (0, n.default)(P));
  7262. }
  7263. function ee(s, b) {
  7264. var P = b.gridArea, R = P.x, K = P.y, ne = P.w, ue = P.h;
  7265. return s = s.map(function(de) {
  7266. var he = de.position, pe = [];
  7267. return he === "left" ? pe = [[R, K], [R, K + ue]].reverse() : he === "right" ? pe = [[R + ne, K], [R + ne, K + ue]].reverse() : he === "top" ? pe = [[R, K], [R + ne, K]] : he === "bottom" && (pe = [[R, K + ue], [R + ne, K + ue]]), E(E({}, de), {}, {
  7268. linePosition: pe
  7269. });
  7270. }), s;
  7271. }
  7272. function u(s, b) {
  7273. return s.map(function(P) {
  7274. var R = P.axis, K = P.linePosition, ne = P.position, ue = P.label, de = P.boundaryGap;
  7275. typeof de != "boolean" && (de = U[R + "AxisConfig"].boundaryGap);
  7276. var he = ue.length, pe = (0, a.default)(K, 2), ge = (0, a.default)(pe[0], 2), ye = ge[0], Oe = ge[1], Qe = (0, a.default)(pe[1], 2), Je = Qe[0], Ye = Qe[1], Na = R === "x" ? Je - ye : Ye - Oe, bt = Na / (de ? he : he - 1), dn = new Array(he).fill(0).map(function(af, xt) {
  7277. return R === "x" ? [ye + bt * (de ? xt + 0.5 : xt), Oe] : [ye, Oe + bt * (de ? xt + 0.5 : xt)];
  7278. }), Wa = I(R, de, ne, dn, bt);
  7279. return E(E({}, P), {}, {
  7280. tickPosition: dn,
  7281. tickLinePosition: Wa,
  7282. tickGap: bt
  7283. });
  7284. });
  7285. }
  7286. function I(s, b, P, R, K) {
  7287. var ne = s === "x" ? 1 : 0, ue = 5;
  7288. s === "x" && P === "top" && (ue = -5), s === "y" && P === "left" && (ue = -5);
  7289. var de = R.map(function(he) {
  7290. var pe = (0, x.deepClone)(he);
  7291. return pe[ne] += ue, [(0, x.deepClone)(he), pe];
  7292. });
  7293. return b && (ne = s === "x" ? 0 : 1, ue = K / 2, de.forEach(function(he) {
  7294. var pe = (0, a.default)(he, 2), ge = pe[0], ye = pe[1];
  7295. ge[ne] += ue, ye[ne] += ue;
  7296. })), de;
  7297. }
  7298. function g(s, b) {
  7299. return s.map(function(P) {
  7300. var R = P.nameGap, K = P.nameLocation, ne = P.position, ue = P.linePosition, de = (0, a.default)(ue, 2), he = de[0], pe = de[1], ge = (0, n.default)(he);
  7301. K === "end" && (ge = (0, n.default)(pe)), K === "center" && (ge[0] = (he[0] + pe[0]) / 2, ge[1] = (he[1] + pe[1]) / 2);
  7302. var ye = 0;
  7303. ne === "top" && K === "center" && (ye = 1), ne === "bottom" && K === "center" && (ye = 1), ne === "left" && K !== "center" && (ye = 1), ne === "right" && K !== "center" && (ye = 1);
  7304. var Oe = R;
  7305. return ne === "top" && K !== "end" && (Oe *= -1), ne === "left" && K !== "start" && (Oe *= -1), ne === "bottom" && K === "start" && (Oe *= -1), ne === "right" && K === "end" && (Oe *= -1), ge[ye] += Oe, E(E({}, P), {}, {
  7306. namePosition: ge
  7307. });
  7308. });
  7309. }
  7310. function v(s, b) {
  7311. var P = b.gridArea, R = P.w, K = P.h;
  7312. return s.map(function(ne) {
  7313. var ue = ne.tickLinePosition, de = ne.position, he = ne.boundaryGap, pe = 0, ge = R;
  7314. (de === "top" || de === "bottom") && (pe = 1), (de === "top" || de === "bottom") && (ge = K), (de === "right" || de === "bottom") && (ge *= -1);
  7315. var ye = ue.map(function(Oe) {
  7316. var Qe = (0, a.default)(Oe, 1), Je = Qe[0], Ye = (0, n.default)(Je);
  7317. return Ye[pe] += ge, [(0, n.default)(Je), Ye];
  7318. });
  7319. return he || ye.shift(), E(E({}, ne), {}, {
  7320. splitLinePosition: ye
  7321. });
  7322. });
  7323. }
  7324. function S(s) {
  7325. var b = s.animationCurve, P = s.animationFrame, R = s.rLevel;
  7326. return [{
  7327. name: "polyline",
  7328. index: R,
  7329. visible: s.axisLine.show,
  7330. animationCurve: b,
  7331. animationFrame: P,
  7332. shape: J(s),
  7333. style: Q(s)
  7334. }];
  7335. }
  7336. function J(s) {
  7337. var b = s.linePosition;
  7338. return {
  7339. points: b
  7340. };
  7341. }
  7342. function Q(s) {
  7343. return s.axisLine.style;
  7344. }
  7345. function te(s) {
  7346. var b = s.animationCurve, P = s.animationFrame, R = s.rLevel, K = oe(s), ne = ve(s);
  7347. return K.map(function(ue) {
  7348. return {
  7349. name: "polyline",
  7350. index: R,
  7351. visible: s.axisTick.show,
  7352. animationCurve: b,
  7353. animationFrame: P,
  7354. shape: ue,
  7355. style: ne
  7356. };
  7357. });
  7358. }
  7359. function oe(s) {
  7360. var b = s.tickLinePosition;
  7361. return b.map(function(P) {
  7362. return {
  7363. points: P
  7364. };
  7365. });
  7366. }
  7367. function ve(s) {
  7368. return s.axisTick.style;
  7369. }
  7370. function Y(s) {
  7371. var b = s.animationCurve, P = s.animationFrame, R = s.rLevel, K = ie(s), ne = fe(s, K);
  7372. return K.map(function(ue, de) {
  7373. return {
  7374. name: "text",
  7375. index: R,
  7376. visible: s.axisLabel.show,
  7377. animationCurve: b,
  7378. animationFrame: P,
  7379. shape: ue,
  7380. style: ne[de],
  7381. setGraphCenter: function() {
  7382. }
  7383. };
  7384. });
  7385. }
  7386. function ie(s) {
  7387. var b = s.label, P = s.tickPosition, R = s.position;
  7388. return P.map(function(K, ne) {
  7389. return {
  7390. position: ce(K, R),
  7391. content: b[ne].toString()
  7392. };
  7393. });
  7394. }
  7395. function ce(s, b) {
  7396. var P = 0, R = 10;
  7397. return (b === "top" || b === "bottom") && (P = 1), (b === "top" || b === "left") && (R = -10), s = (0, x.deepClone)(s), s[P] += R, s;
  7398. }
  7399. function fe(s, b) {
  7400. var P = s.position, R = s.axisLabel.style, K = N(P);
  7401. R = (0, _.deepMerge)(K, R);
  7402. var ne = b.map(function(ue) {
  7403. var de = ue.position;
  7404. return E(E({}, R), {}, {
  7405. graphCenter: de
  7406. });
  7407. });
  7408. return ne;
  7409. }
  7410. function N(s) {
  7411. if (s === "left") return {
  7412. textAlign: "right",
  7413. textBaseline: "middle"
  7414. };
  7415. if (s === "right") return {
  7416. textAlign: "left",
  7417. textBaseline: "middle"
  7418. };
  7419. if (s === "top") return {
  7420. textAlign: "center",
  7421. textBaseline: "bottom"
  7422. };
  7423. if (s === "bottom") return {
  7424. textAlign: "center",
  7425. textBaseline: "top"
  7426. };
  7427. }
  7428. function w(s) {
  7429. var b = s.animationCurve, P = s.animationFrame, R = s.rLevel;
  7430. return [{
  7431. name: "text",
  7432. index: R,
  7433. animationCurve: b,
  7434. animationFrame: P,
  7435. shape: O(s),
  7436. style: F(s)
  7437. }];
  7438. }
  7439. function O(s) {
  7440. var b = s.name, P = s.namePosition;
  7441. return {
  7442. content: b,
  7443. position: P
  7444. };
  7445. }
  7446. function F(s) {
  7447. var b = s.nameLocation, P = s.position, R = s.nameTextStyle, K = H(P, b);
  7448. return (0, _.deepMerge)(K, R);
  7449. }
  7450. function H(s, b) {
  7451. if (s === "top" && b === "start" || s === "bottom" && b === "start" || s === "left" && b === "center") return {
  7452. textAlign: "right",
  7453. textBaseline: "middle"
  7454. };
  7455. if (s === "top" && b === "end" || s === "bottom" && b === "end" || s === "right" && b === "center") return {
  7456. textAlign: "left",
  7457. textBaseline: "middle"
  7458. };
  7459. if (s === "top" && b === "center" || s === "left" && b === "end" || s === "right" && b === "end") return {
  7460. textAlign: "center",
  7461. textBaseline: "bottom"
  7462. };
  7463. if (s === "bottom" && b === "center" || s === "left" && b === "start" || s === "right" && b === "start") return {
  7464. textAlign: "center",
  7465. textBaseline: "top"
  7466. };
  7467. }
  7468. function re(s) {
  7469. var b = s.animationCurve, P = s.animationFrame, R = s.rLevel, K = h(s), ne = j(s);
  7470. return K.map(function(ue) {
  7471. return {
  7472. name: "polyline",
  7473. index: R,
  7474. visible: s.splitLine.show,
  7475. animationCurve: b,
  7476. animationFrame: P,
  7477. shape: ue,
  7478. style: ne
  7479. };
  7480. });
  7481. }
  7482. function h(s) {
  7483. var b = s.splitLinePosition;
  7484. return b.map(function(P) {
  7485. return {
  7486. points: P
  7487. };
  7488. });
  7489. }
  7490. function j(s) {
  7491. return s.splitLine.style;
  7492. }
  7493. return Pt;
  7494. }
  7495. var wt = {}, fa;
  7496. function ns() {
  7497. if (fa) return wt;
  7498. fa = 1;
  7499. var e = we;
  7500. Object.defineProperty(wt, "__esModule", {
  7501. value: !0
  7502. }), wt.line = L;
  7503. var r = e(Be()), a = e(Ne()), t = e(Te()), n = e(Ve()), l = Xe(), o = Ue(), _ = e(cn()), x = ze();
  7504. function z(Y, ie) {
  7505. var ce = Object.keys(Y);
  7506. if (Object.getOwnPropertySymbols) {
  7507. var fe = Object.getOwnPropertySymbols(Y);
  7508. ie && (fe = fe.filter(function(N) {
  7509. return Object.getOwnPropertyDescriptor(Y, N).enumerable;
  7510. })), ce.push.apply(ce, fe);
  7511. }
  7512. return ce;
  7513. }
  7514. function E(Y) {
  7515. for (var ie = 1; ie < arguments.length; ie++) {
  7516. var ce = arguments[ie] != null ? arguments[ie] : {};
  7517. ie % 2 ? z(Object(ce), !0).forEach(function(fe) {
  7518. (0, n.default)(Y, fe, ce[fe]);
  7519. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(Y, Object.getOwnPropertyDescriptors(ce)) : z(Object(ce)).forEach(function(fe) {
  7520. Object.defineProperty(Y, fe, Object.getOwnPropertyDescriptor(ce, fe));
  7521. });
  7522. }
  7523. return Y;
  7524. }
  7525. var U = _.default.polylineToBezierCurve, T = _.default.getBezierCurveLength;
  7526. function L(Y) {
  7527. var ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ce = ie.xAxis, fe = ie.yAxis, N = ie.series, w = [];
  7528. ce && fe && N && (w = (0, x.initNeedSeries)(N, o.lineConfig, "line"), w = d(w, Y)), (0, l.doUpdate)({
  7529. chart: Y,
  7530. series: w,
  7531. key: "lineArea",
  7532. getGraphConfig: m,
  7533. getStartGraphConfig: C,
  7534. beforeUpdate: $,
  7535. beforeChange: c
  7536. }), (0, l.doUpdate)({
  7537. chart: Y,
  7538. series: w,
  7539. key: "line",
  7540. getGraphConfig: M,
  7541. getStartGraphConfig: X,
  7542. beforeUpdate: $,
  7543. beforeChange: c
  7544. }), (0, l.doUpdate)({
  7545. chart: Y,
  7546. series: w,
  7547. key: "linePoint",
  7548. getGraphConfig: ee,
  7549. getStartGraphConfig: g
  7550. }), (0, l.doUpdate)({
  7551. chart: Y,
  7552. series: w,
  7553. key: "lineLabel",
  7554. getGraphConfig: v
  7555. });
  7556. }
  7557. function d(Y, ie) {
  7558. var ce = ie.axisData;
  7559. return Y.map(function(fe) {
  7560. var N = (0, x.mergeSameStackData)(fe, Y);
  7561. N = B(fe, N);
  7562. var w = W(fe, ce), O = q(N, w), F = G(w);
  7563. return E(E({}, fe), {}, {
  7564. linePosition: O.filter(function(H) {
  7565. return H;
  7566. }),
  7567. lineFillBottomPos: F
  7568. });
  7569. });
  7570. }
  7571. function B(Y, ie) {
  7572. var ce = Y.data;
  7573. return ie.map(function(fe, N) {
  7574. return typeof ce[N] == "number" ? fe : null;
  7575. });
  7576. }
  7577. function W(Y, ie) {
  7578. var ce = Y.xAxisIndex, fe = Y.yAxisIndex, N = ie.find(function(O) {
  7579. var F = O.axis, H = O.index;
  7580. return F === "x" && H === ce;
  7581. }), w = ie.find(function(O) {
  7582. var F = O.axis, H = O.index;
  7583. return F === "y" && H === fe;
  7584. });
  7585. return [N, w];
  7586. }
  7587. function q(Y, ie) {
  7588. var ce = ie.findIndex(function(ne) {
  7589. var ue = ne.data;
  7590. return ue === "value";
  7591. }), fe = ie[ce], N = ie[1 - ce], w = fe.linePosition, O = fe.axis, F = N.tickPosition, H = F.length, re = O === "x" ? 0 : 1, h = w[0][re], j = w[1][re], s = j - h, b = fe.maxValue, P = fe.minValue, R = b - P, K = new Array(H).fill(0).map(function(ne, ue) {
  7592. var de = Y[ue];
  7593. if (typeof de != "number") return null;
  7594. var he = (de - P) / R;
  7595. return R === 0 && (he = 0), he * s + h;
  7596. });
  7597. return K.map(function(ne, ue) {
  7598. if (ue >= H || typeof ne != "number") return null;
  7599. var de = [ne, F[ue][1 - re]];
  7600. return re === 0 || de.reverse(), de;
  7601. });
  7602. }
  7603. function G(Y) {
  7604. var ie = Y.find(function(j) {
  7605. var s = j.data;
  7606. return s === "value";
  7607. }), ce = ie.axis, fe = ie.linePosition, N = ie.minValue, w = ie.maxValue, O = ce === "x" ? 0 : 1, F = fe[0][O];
  7608. if (N < 0 && w > 0) {
  7609. var H = w - N, re = Math.abs(fe[0][O] - fe[1][O]), h = Math.abs(N) / H * re;
  7610. ce === "y" && (h *= -1), F += h;
  7611. }
  7612. return {
  7613. changeIndex: O,
  7614. changeValue: F
  7615. };
  7616. }
  7617. function m(Y) {
  7618. var ie = Y.animationCurve, ce = Y.animationFrame, fe = Y.lineFillBottomPos, N = Y.rLevel;
  7619. return [{
  7620. name: A(Y),
  7621. index: N,
  7622. animationCurve: ie,
  7623. animationFrame: ce,
  7624. visible: Y.lineArea.show,
  7625. lineFillBottomPos: fe,
  7626. shape: y(Y),
  7627. style: f(Y),
  7628. drawed: k
  7629. }];
  7630. }
  7631. function y(Y) {
  7632. var ie = Y.linePosition;
  7633. return {
  7634. points: ie
  7635. };
  7636. }
  7637. function f(Y) {
  7638. var ie = Y.lineArea, ce = Y.color, fe = ie.gradient, N = ie.style, w = [N.fill || ce], O = (0, x.deepMerge)(w, fe);
  7639. O.length === 1 && O.push(O[0]);
  7640. var F = D(Y);
  7641. return N = E(E({}, N), {}, {
  7642. stroke: "rgba(0, 0, 0, 0)"
  7643. }), (0, x.deepMerge)({
  7644. gradientColor: O,
  7645. gradientParams: F,
  7646. gradientType: "linear",
  7647. gradientWith: "fill"
  7648. }, N);
  7649. }
  7650. function D(Y) {
  7651. var ie = Y.lineFillBottomPos, ce = Y.linePosition, fe = ie.changeIndex, N = ie.changeValue, w = ce.map(function(re) {
  7652. return re[fe];
  7653. }), O = Math.max.apply(Math, (0, t.default)(w)), F = Math.min.apply(Math, (0, t.default)(w)), H = O;
  7654. return fe === 1 && (H = F), fe === 1 ? [0, H, 0, N] : [H, 0, N, 0];
  7655. }
  7656. function k(Y, ie) {
  7657. var ce = Y.lineFillBottomPos, fe = Y.shape, N = ie.ctx, w = fe.points, O = ce.changeIndex, F = ce.changeValue, H = (0, t.default)(w[w.length - 1]), re = (0, t.default)(w[0]);
  7658. H[O] = F, re[O] = F, N.lineTo.apply(N, (0, t.default)(H)), N.lineTo.apply(N, (0, t.default)(re)), N.closePath(), N.fill();
  7659. }
  7660. function C(Y) {
  7661. var ie = m(Y)[0], ce = E({}, ie.style);
  7662. return ce.opacity = 0, ie.style = ce, [ie];
  7663. }
  7664. function $(Y, ie, ce, fe) {
  7665. var N = Y[ce];
  7666. if (N) {
  7667. var w = A(ie), O = fe.chart.render, F = N[0].name, H = w !== F;
  7668. H && (N.forEach(function(re) {
  7669. return O.delGraph(re);
  7670. }), Y[ce] = null);
  7671. }
  7672. }
  7673. function c(Y, ie) {
  7674. var ce = ie.shape.points, fe = Y.shape.points, N = fe.length, w = ce.length;
  7675. if (w > N) {
  7676. var O = fe.slice(-1)[0], F = new Array(w - N).fill(0).map(function(H) {
  7677. return (0, t.default)(O);
  7678. });
  7679. fe.push.apply(fe, (0, t.default)(F));
  7680. } else w < N && fe.splice(w);
  7681. }
  7682. function M(Y) {
  7683. var ie = Y.animationCurve, ce = Y.animationFrame, fe = Y.rLevel;
  7684. return [{
  7685. name: A(Y),
  7686. index: fe + 1,
  7687. animationCurve: ie,
  7688. animationFrame: ce,
  7689. shape: y(Y),
  7690. style: p(Y)
  7691. }];
  7692. }
  7693. function A(Y) {
  7694. var ie = Y.smooth;
  7695. return ie ? "smoothline" : "polyline";
  7696. }
  7697. function p(Y) {
  7698. var ie = Y.lineStyle, ce = Y.color, fe = Y.smooth, N = Y.linePosition, w = V(N, fe);
  7699. return (0, x.deepMerge)({
  7700. stroke: ce,
  7701. lineDash: [w, 0]
  7702. }, ie);
  7703. }
  7704. function V(Y) {
  7705. var ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  7706. if (!ie) return (0, x.getPolylineLength)(Y);
  7707. var ce = U(Y);
  7708. return T(ce);
  7709. }
  7710. function X(Y) {
  7711. var ie = Y.lineStyle.lineDash, ce = M(Y)[0], fe = ce.style.lineDash;
  7712. return ie ? fe = [0, 0] : fe = (0, t.default)(fe).reverse(), ce.style.lineDash = fe, [ce];
  7713. }
  7714. function ee(Y) {
  7715. var ie = Y.animationCurve, ce = Y.animationFrame, fe = Y.rLevel, N = u(Y), w = I(Y);
  7716. return N.map(function(O) {
  7717. return {
  7718. name: "circle",
  7719. index: fe + 2,
  7720. visible: Y.linePoint.show,
  7721. animationCurve: ie,
  7722. animationFrame: ce,
  7723. shape: O,
  7724. style: w
  7725. };
  7726. });
  7727. }
  7728. function u(Y) {
  7729. var ie = Y.linePosition, ce = Y.linePoint.radius;
  7730. return ie.map(function(fe) {
  7731. var N = (0, a.default)(fe, 2), w = N[0], O = N[1];
  7732. return {
  7733. r: ce,
  7734. rx: w,
  7735. ry: O
  7736. };
  7737. });
  7738. }
  7739. function I(Y) {
  7740. var ie = Y.color, ce = Y.linePoint.style;
  7741. return (0, x.deepMerge)({
  7742. stroke: ie
  7743. }, ce);
  7744. }
  7745. function g(Y) {
  7746. var ie = ee(Y);
  7747. return ie.forEach(function(ce) {
  7748. ce.shape.r = 0.1;
  7749. }), ie;
  7750. }
  7751. function v(Y) {
  7752. var ie = Y.animationCurve, ce = Y.animationFrame, fe = Y.rLevel, N = S(Y), w = ve(Y);
  7753. return N.map(function(O, F) {
  7754. return {
  7755. name: "text",
  7756. index: fe + 3,
  7757. visible: Y.label.show,
  7758. animationCurve: ie,
  7759. animationFrame: ce,
  7760. shape: O,
  7761. style: w
  7762. };
  7763. });
  7764. }
  7765. function S(Y) {
  7766. var ie = oe(Y), ce = J(Y);
  7767. return ie.map(function(fe, N) {
  7768. return {
  7769. content: fe,
  7770. position: ce[N]
  7771. };
  7772. });
  7773. }
  7774. function J(Y) {
  7775. var ie = Y.linePosition, ce = Y.lineFillBottomPos, fe = Y.label, N = fe.position, w = fe.offset, O = ce.changeIndex, F = ce.changeValue;
  7776. return ie.map(function(H) {
  7777. if (N === "bottom" && (H = (0, t.default)(H), H[O] = F), N === "center") {
  7778. var re = (0, t.default)(H);
  7779. re[O] = F, H = te(H, re);
  7780. }
  7781. return Q(H, w);
  7782. });
  7783. }
  7784. function Q(Y, ie) {
  7785. var ce = (0, a.default)(Y, 2), fe = ce[0], N = ce[1], w = (0, a.default)(ie, 2), O = w[0], F = w[1];
  7786. return [fe + O, N + F];
  7787. }
  7788. function te(Y, ie) {
  7789. var ce = (0, a.default)(Y, 2), fe = ce[0], N = ce[1], w = (0, a.default)(ie, 2), O = w[0], F = w[1];
  7790. return [(fe + O) / 2, (N + F) / 2];
  7791. }
  7792. function oe(Y) {
  7793. var ie = Y.data, ce = Y.label.formatter;
  7794. if (ie = ie.filter(function(N) {
  7795. return typeof N == "number";
  7796. }).map(function(N) {
  7797. return N.toString();
  7798. }), !ce) return ie;
  7799. var fe = (0, r.default)(ce);
  7800. return fe === "string" ? ie.map(function(N) {
  7801. return ce.replace("{value}", N);
  7802. }) : fe === "function" ? ie.map(function(N, w) {
  7803. return ce({
  7804. value: N,
  7805. index: w
  7806. });
  7807. }) : ie;
  7808. }
  7809. function ve(Y) {
  7810. var ie = Y.color, ce = Y.label.style;
  7811. return (0, x.deepMerge)({
  7812. fill: ie
  7813. }, ce);
  7814. }
  7815. return wt;
  7816. }
  7817. var kt = {}, da;
  7818. function as() {
  7819. if (da) return kt;
  7820. da = 1;
  7821. var e = we;
  7822. Object.defineProperty(kt, "__esModule", {
  7823. value: !0
  7824. }), kt.bar = U;
  7825. var r = e(Be()), a = e(Ve()), t = e(Ne()), n = e(Te()), l = Xe(), o = Ue(), _ = Fe(), x = ze();
  7826. function z(h, j) {
  7827. var s = Object.keys(h);
  7828. if (Object.getOwnPropertySymbols) {
  7829. var b = Object.getOwnPropertySymbols(h);
  7830. j && (b = b.filter(function(P) {
  7831. return Object.getOwnPropertyDescriptor(h, P).enumerable;
  7832. })), s.push.apply(s, b);
  7833. }
  7834. return s;
  7835. }
  7836. function E(h) {
  7837. for (var j = 1; j < arguments.length; j++) {
  7838. var s = arguments[j] != null ? arguments[j] : {};
  7839. j % 2 ? z(Object(s), !0).forEach(function(b) {
  7840. (0, a.default)(h, b, s[b]);
  7841. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(h, Object.getOwnPropertyDescriptors(s)) : z(Object(s)).forEach(function(b) {
  7842. Object.defineProperty(h, b, Object.getOwnPropertyDescriptor(s, b));
  7843. });
  7844. }
  7845. return h;
  7846. }
  7847. function U(h) {
  7848. var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = j.xAxis, b = j.yAxis, P = j.series, R = [];
  7849. s && b && P && (R = (0, x.initNeedSeries)(P, o.barConfig, "bar"), R = T(R, h), R = L(R), R = k(R)), (0, l.doUpdate)({
  7850. chart: h,
  7851. series: R.slice(-1),
  7852. key: "backgroundBar",
  7853. getGraphConfig: V
  7854. }), R.reverse(), (0, l.doUpdate)({
  7855. chart: h,
  7856. series: R,
  7857. key: "bar",
  7858. getGraphConfig: I,
  7859. getStartGraphConfig: ve,
  7860. beforeUpdate: fe
  7861. }), (0, l.doUpdate)({
  7862. chart: h,
  7863. series: R,
  7864. key: "barLabel",
  7865. getGraphConfig: N
  7866. });
  7867. }
  7868. function T(h, j) {
  7869. var s = j.axisData;
  7870. return h.forEach(function(b) {
  7871. var P = b.xAxisIndex, R = b.yAxisIndex;
  7872. typeof P != "number" && (P = 0), typeof R != "number" && (R = 0);
  7873. var K = s.find(function(he) {
  7874. var pe = he.axis, ge = he.index;
  7875. return "".concat(pe).concat(ge) === "x".concat(P);
  7876. }), ne = s.find(function(he) {
  7877. var pe = he.axis, ge = he.index;
  7878. return "".concat(pe).concat(ge) === "y".concat(R);
  7879. }), ue = [K, ne], de = ue.findIndex(function(he) {
  7880. var pe = he.data;
  7881. return pe === "value";
  7882. });
  7883. b.valueAxis = ue[de], b.labelAxis = ue[1 - de];
  7884. }), h;
  7885. }
  7886. function L(h, j) {
  7887. var s = B(h);
  7888. return s.forEach(function(b) {
  7889. d(b), q(b), G(b), m(b), D(b);
  7890. }), h;
  7891. }
  7892. function d(h) {
  7893. var j = W(h);
  7894. j = j.map(function(b) {
  7895. return {
  7896. stack: b,
  7897. index: -1
  7898. };
  7899. });
  7900. var s = 0;
  7901. h.forEach(function(b) {
  7902. var P = b.stack;
  7903. if (!P)
  7904. b.barIndex = s, s++;
  7905. else {
  7906. var R = j.find(function(K) {
  7907. var ne = K.stack;
  7908. return ne === P;
  7909. });
  7910. R.index === -1 && (R.index = s, s++), b.barIndex = R.index;
  7911. }
  7912. });
  7913. }
  7914. function B(h) {
  7915. var j = h.map(function(s) {
  7916. var b = s.labelAxis, P = b.axis, R = b.index;
  7917. return P + R;
  7918. });
  7919. return j = (0, n.default)(new Set(j)), j.map(function(s) {
  7920. return h.filter(function(b) {
  7921. var P = b.labelAxis, R = P.axis, K = P.index;
  7922. return R + K === s;
  7923. });
  7924. });
  7925. }
  7926. function W(h) {
  7927. var j = [];
  7928. return h.forEach(function(s) {
  7929. var b = s.stack;
  7930. b && j.push(b);
  7931. }), (0, n.default)(new Set(j));
  7932. }
  7933. function q(h) {
  7934. var j = (0, n.default)(new Set(h.map(function(s) {
  7935. var b = s.barIndex;
  7936. return b;
  7937. }))).length;
  7938. h.forEach(function(s) {
  7939. return s.barNum = j;
  7940. });
  7941. }
  7942. function G(h) {
  7943. var j = h.slice(-1)[0], s = j.barCategoryGap, b = j.labelAxis.tickGap, P = 0;
  7944. typeof s == "number" ? P = s : P = (1 - parseInt(s) / 100) * b, h.forEach(function(R) {
  7945. return R.barCategoryWidth = P;
  7946. });
  7947. }
  7948. function m(h) {
  7949. var j = h.slice(-1)[0], s = j.barCategoryWidth, b = j.barWidth, P = j.barGap, R = j.barNum, K = [];
  7950. typeof b == "number" || b !== "auto" ? K = y(s, b, P) : b === "auto" && (K = f(s, b, P, R));
  7951. var ne = K, ue = (0, t.default)(ne, 2), de = ue[0], he = ue[1];
  7952. h.forEach(function(pe) {
  7953. pe.barWidth = de, pe.barGap = he;
  7954. });
  7955. }
  7956. function y(h, j, s) {
  7957. var b = 0, P = 0;
  7958. return typeof j == "number" ? b = j : b = parseInt(j) / 100 * h, typeof s == "number" ? P = s : P = parseInt(s) / 100 * b, [b, P];
  7959. }
  7960. function f(h, j, s, b) {
  7961. var P = 0, R = 0, K = h / b;
  7962. if (typeof s == "number")
  7963. R = s, P = K - R;
  7964. else {
  7965. var ne = 10 + parseInt(s) / 10;
  7966. ne === 0 ? (P = K * 2, R = -P) : (P = K / ne * 10, R = K - P);
  7967. }
  7968. return [P, R];
  7969. }
  7970. function D(h) {
  7971. var j = h.slice(-1)[0], s = j.barGap, b = j.barWidth, P = j.barNum, R = (s + b) * P - s;
  7972. h.forEach(function(K) {
  7973. return K.barAllWidthAndGap = R;
  7974. });
  7975. }
  7976. function k(h, j) {
  7977. return h = $(h), h = C(h), h = M(h), h = A(h), h;
  7978. }
  7979. function C(h) {
  7980. return h.map(function(j) {
  7981. var s = j.labelAxis, b = j.barAllWidthAndGap, P = j.barGap, R = j.barWidth, K = j.barIndex, ne = s.tickGap, ue = s.tickPosition, de = s.axis, he = de === "x" ? 0 : 1, pe = ue.map(function(ge, ye) {
  7982. var Oe = ue[ye][he] - ne / 2, Qe = Oe + (ne - b) / 2;
  7983. return Qe + (K + 0.5) * R + K * P;
  7984. });
  7985. return E(E({}, j), {}, {
  7986. barLabelAxisPos: pe
  7987. });
  7988. });
  7989. }
  7990. function $(h) {
  7991. return h.map(function(j) {
  7992. var s = (0, x.mergeSameStackData)(j, h);
  7993. s = c(j, s);
  7994. var b = j.valueAxis, P = b.axis, R = b.minValue, K = b.maxValue, ne = b.linePosition, ue = p(R, K, R < 0 ? 0 : R, ne, P), de = s.map(function(pe) {
  7995. return p(R, K, pe, ne, P);
  7996. }), he = de.map(function(pe) {
  7997. return [ue, pe];
  7998. });
  7999. return E(E({}, j), {}, {
  8000. barValueAxisPos: he
  8001. });
  8002. });
  8003. }
  8004. function c(h, j) {
  8005. var s = h.data;
  8006. return j.map(function(b, P) {
  8007. return typeof s[P] == "number" ? b : null;
  8008. }).filter(function(b) {
  8009. return b !== null;
  8010. });
  8011. }
  8012. function M(h) {
  8013. return h.map(function(j) {
  8014. var s = j.barLabelAxisPos, b = j.data;
  8015. return b.forEach(function(P, R) {
  8016. typeof P != "number" && (s[R] = null);
  8017. }), E(E({}, j), {}, {
  8018. barLabelAxisPos: s.filter(function(P) {
  8019. return P !== null;
  8020. })
  8021. });
  8022. });
  8023. }
  8024. function A(h) {
  8025. return h.forEach(function(j) {
  8026. var s = j.data, b = j.barLabelAxisPos, P = j.barValueAxisPos, R = s.filter(function(ne) {
  8027. return typeof ne == "number";
  8028. }).length, K = b.length;
  8029. K > R && (b.splice(R), P.splice(R));
  8030. }), h;
  8031. }
  8032. function p(h, j, s, b, P) {
  8033. if (typeof s != "number") return null;
  8034. var R = j - h, K = P === "x" ? 0 : 1, ne = b[1][K] - b[0][K], ue = (s - h) / R;
  8035. R === 0 && (ue = 0);
  8036. var de = ue * ne;
  8037. return de + b[0][K];
  8038. }
  8039. function V(h) {
  8040. var j = h.animationCurve, s = h.animationFrame, b = h.rLevel, P = X(h), R = u(h);
  8041. return P.map(function(K) {
  8042. return {
  8043. name: "rect",
  8044. index: b,
  8045. visible: h.backgroundBar.show,
  8046. animationCurve: j,
  8047. animationFrame: s,
  8048. shape: K,
  8049. style: R
  8050. };
  8051. });
  8052. }
  8053. function X(h) {
  8054. var j = h.labelAxis, s = h.valueAxis, b = j.tickPosition, P = s.axis, R = s.linePosition, K = ee(h), ne = K / 2, ue = P === "x" ? 0 : 1, de = b.map(function(ye) {
  8055. return ye[1 - ue];
  8056. }), he = [R[0][ue], R[1][ue]], pe = he[0], ge = he[1];
  8057. return de.map(function(ye) {
  8058. return P === "x" ? {
  8059. x: pe,
  8060. y: ye - ne,
  8061. w: ge - pe,
  8062. h: K
  8063. } : {
  8064. x: ye - ne,
  8065. y: ge,
  8066. w: K,
  8067. h: pe - ge
  8068. };
  8069. });
  8070. }
  8071. function ee(h) {
  8072. var j = h.barAllWidthAndGap, s = h.barCategoryWidth, b = h.backgroundBar, P = b.width;
  8073. return typeof P == "number" ? P : P === "auto" ? j : parseInt(P) / 100 * s;
  8074. }
  8075. function u(h) {
  8076. return h.backgroundBar.style;
  8077. }
  8078. function I(h) {
  8079. var j = h.barLabelAxisPos, s = h.animationCurve, b = h.animationFrame, P = h.rLevel, R = g(h);
  8080. return j.map(function(K, ne) {
  8081. return {
  8082. name: R,
  8083. index: P,
  8084. animationCurve: s,
  8085. animationFrame: b,
  8086. shape: v(h, ne),
  8087. style: te(h, ne)
  8088. };
  8089. });
  8090. }
  8091. function g(h) {
  8092. var j = h.shapeType;
  8093. return j === "leftEchelon" || j === "rightEchelon" ? "polyline" : "rect";
  8094. }
  8095. function v(h, j) {
  8096. var s = h.shapeType;
  8097. return s === "leftEchelon" ? S(h, j) : s === "rightEchelon" ? J(h, j) : Q(h, j);
  8098. }
  8099. function S(h, j) {
  8100. var s = h.barValueAxisPos, b = h.barLabelAxisPos, P = h.barWidth, R = h.echelonOffset, K = (0, t.default)(s[j], 2), ne = K[0], ue = K[1], de = b[j], he = P / 2, pe = h.valueAxis.axis, ge = [];
  8101. return pe === "x" ? (ge[0] = [ue, de - he], ge[1] = [ue, de + he], ge[2] = [ne, de + he], ge[3] = [ne + R, de - he], ue - ne < R && ge.splice(3, 1)) : (ge[0] = [de - he, ue], ge[1] = [de + he, ue], ge[2] = [de + he, ne], ge[3] = [de - he, ne - R], ne - ue < R && ge.splice(3, 1)), {
  8102. points: ge,
  8103. close: !0
  8104. };
  8105. }
  8106. function J(h, j) {
  8107. var s = h.barValueAxisPos, b = h.barLabelAxisPos, P = h.barWidth, R = h.echelonOffset, K = (0, t.default)(s[j], 2), ne = K[0], ue = K[1], de = b[j], he = P / 2, pe = h.valueAxis.axis, ge = [];
  8108. return pe === "x" ? (ge[0] = [ue, de + he], ge[1] = [ue, de - he], ge[2] = [ne, de - he], ge[3] = [ne + R, de + he], ue - ne < R && ge.splice(2, 1)) : (ge[0] = [de + he, ue], ge[1] = [de - he, ue], ge[2] = [de - he, ne], ge[3] = [de + he, ne - R], ne - ue < R && ge.splice(2, 1)), {
  8109. points: ge,
  8110. close: !0
  8111. };
  8112. }
  8113. function Q(h, j) {
  8114. var s = h.barValueAxisPos, b = h.barLabelAxisPos, P = h.barWidth, R = (0, t.default)(s[j], 2), K = R[0], ne = R[1], ue = b[j], de = h.valueAxis.axis, he = {};
  8115. return de === "x" ? (he.x = K, he.y = ue - P / 2, he.w = ne - K, he.h = P) : (he.x = ue - P / 2, he.y = ne, he.w = P, he.h = K - ne), he;
  8116. }
  8117. function te(h, j) {
  8118. var s = h.barStyle, b = h.gradient, P = h.color, R = h.independentColor, K = h.independentColors, ne = [s.fill || P], ue = (0, x.deepMerge)(ne, b.color);
  8119. if (R) {
  8120. var de = K[j % K.length];
  8121. ue = de instanceof Array ? de : [de];
  8122. }
  8123. ue.length === 1 && ue.push(ue[0]);
  8124. var he = oe(h, j);
  8125. return (0, x.deepMerge)({
  8126. gradientColor: ue,
  8127. gradientParams: he,
  8128. gradientType: "linear",
  8129. gradientWith: "fill"
  8130. }, s);
  8131. }
  8132. function oe(h, j) {
  8133. var s = h.barValueAxisPos, b = h.barLabelAxisPos, P = h.data, R = h.valueAxis, K = R.linePosition, ne = R.axis, ue = (0, t.default)(s[j], 2), de = ue[0], he = ue[1], pe = b[j], ge = P[j], ye = (0, t.default)(K, 2), Oe = ye[0], Qe = ye[1], Je = ne === "x" ? 0 : 1, Ye = he;
  8134. return h.gradient.local || (Ye = ge < 0 ? Oe[Je] : Qe[Je]), ne === "y" ? [pe, Ye, pe, de] : [Ye, pe, de, pe];
  8135. }
  8136. function ve(h) {
  8137. var j = I(h), s = h.shapeType;
  8138. return j.forEach(function(b) {
  8139. var P = b.shape;
  8140. s === "leftEchelon" ? P = Y(P, h) : s === "rightEchelon" ? P = ie(P, h) : P = ce(P, h), b.shape = P;
  8141. }), j;
  8142. }
  8143. function Y(h, j) {
  8144. var s = j.valueAxis.axis;
  8145. h = (0, _.deepClone)(h);
  8146. var b = h, P = b.points, R = s === "x" ? 0 : 1, K = P[2][R];
  8147. return P.forEach(function(ne) {
  8148. return ne[R] = K;
  8149. }), h;
  8150. }
  8151. function ie(h, j) {
  8152. var s = j.valueAxis.axis;
  8153. h = (0, _.deepClone)(h);
  8154. var b = h, P = b.points, R = s === "x" ? 0 : 1, K = P[2][R];
  8155. return P.forEach(function(ne) {
  8156. return ne[R] = K;
  8157. }), h;
  8158. }
  8159. function ce(h, j) {
  8160. var s = j.valueAxis.axis, b = h.x, P = h.y, R = h.w, K = h.h;
  8161. return s === "x" ? R = 0 : (P = P + K, K = 0), {
  8162. x: b,
  8163. y: P,
  8164. w: R,
  8165. h: K
  8166. };
  8167. }
  8168. function fe(h, j, s, b) {
  8169. var P = b.chart.render, R = g(j);
  8170. h[s] && h[s][0].name !== R && (h[s].forEach(function(K) {
  8171. return P.delGraph(K);
  8172. }), h[s] = null);
  8173. }
  8174. function N(h) {
  8175. var j = h.animationCurve, s = h.animationFrame, b = h.rLevel, P = w(h), R = re(h);
  8176. return P.map(function(K) {
  8177. return {
  8178. name: "text",
  8179. index: b,
  8180. visible: h.label.show,
  8181. animationCurve: j,
  8182. animationFrame: s,
  8183. shape: K,
  8184. style: R
  8185. };
  8186. });
  8187. }
  8188. function w(h) {
  8189. var j = O(h), s = F(h);
  8190. return s.map(function(b, P) {
  8191. return {
  8192. position: b,
  8193. content: j[P]
  8194. };
  8195. });
  8196. }
  8197. function O(h) {
  8198. var j = h.data, s = h.label, b = s.formatter;
  8199. if (j = j.filter(function(R) {
  8200. return typeof R == "number";
  8201. }).map(function(R) {
  8202. return R.toString();
  8203. }), !b) return j;
  8204. var P = (0, r.default)(b);
  8205. return P === "string" ? j.map(function(R) {
  8206. return b.replace("{value}", R);
  8207. }) : P === "function" ? j.map(function(R, K) {
  8208. return b({
  8209. value: R,
  8210. index: K
  8211. });
  8212. }) : j;
  8213. }
  8214. function F(h) {
  8215. var j = h.label, s = h.barValueAxisPos, b = h.barLabelAxisPos, P = j.position, R = j.offset, K = h.valueAxis.axis;
  8216. return s.map(function(ne, ue) {
  8217. var de = (0, t.default)(ne, 2), he = de[0], pe = de[1], ge = b[ue], ye = [pe, ge];
  8218. return P === "bottom" && (ye = [he, ge]), P === "center" && (ye = [(he + pe) / 2, ge]), K === "y" && ye.reverse(), H(ye, R);
  8219. });
  8220. }
  8221. function H(h, j) {
  8222. var s = (0, t.default)(h, 2), b = s[0], P = s[1], R = (0, t.default)(j, 2), K = R[0], ne = R[1];
  8223. return [b + K, P + ne];
  8224. }
  8225. function re(h) {
  8226. var j = h.color, s = h.label.style, b = h.gradient.color;
  8227. return b.length && (j = b[0]), s = (0, x.deepMerge)({
  8228. fill: j
  8229. }, s), s;
  8230. }
  8231. return kt;
  8232. }
  8233. var At = {}, ha;
  8234. function is() {
  8235. if (ha) return At;
  8236. ha = 1;
  8237. var e = we;
  8238. Object.defineProperty(At, "__esModule", {
  8239. value: !0
  8240. }), At.pie = U;
  8241. var r = e(Ve()), a = e(Be()), t = e(Ne()), n = e(Te()), l = Xe(), o = Da(), _ = Fe(), x = ze();
  8242. function z(w, O) {
  8243. var F = Object.keys(w);
  8244. if (Object.getOwnPropertySymbols) {
  8245. var H = Object.getOwnPropertySymbols(w);
  8246. O && (H = H.filter(function(re) {
  8247. return Object.getOwnPropertyDescriptor(w, re).enumerable;
  8248. })), F.push.apply(F, H);
  8249. }
  8250. return F;
  8251. }
  8252. function E(w) {
  8253. for (var O = 1; O < arguments.length; O++) {
  8254. var F = arguments[O] != null ? arguments[O] : {};
  8255. O % 2 ? z(Object(F), !0).forEach(function(H) {
  8256. (0, r.default)(w, H, F[H]);
  8257. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(w, Object.getOwnPropertyDescriptors(F)) : z(Object(F)).forEach(function(H) {
  8258. Object.defineProperty(w, H, Object.getOwnPropertyDescriptor(F, H));
  8259. });
  8260. }
  8261. return w;
  8262. }
  8263. function U(w) {
  8264. var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, F = O.series;
  8265. F || (F = []);
  8266. var H = (0, x.initNeedSeries)(F, o.pieConfig, "pie");
  8267. H = T(H, w), H = L(H, w), H = B(H), H = G(H), H = f(H), H = k(H), H = $(H), H = c(H), (0, l.doUpdate)({
  8268. chart: w,
  8269. series: H,
  8270. key: "pie",
  8271. getGraphConfig: ee,
  8272. getStartGraphConfig: u,
  8273. beforeChange: I
  8274. }), (0, l.doUpdate)({
  8275. chart: w,
  8276. series: H,
  8277. key: "pieInsideLabel",
  8278. getGraphConfig: S
  8279. }), (0, l.doUpdate)({
  8280. chart: w,
  8281. series: H,
  8282. key: "pieOutsideLabelLine",
  8283. getGraphConfig: te,
  8284. getStartGraphConfig: oe
  8285. }), (0, l.doUpdate)({
  8286. chart: w,
  8287. series: H,
  8288. key: "pieOutsideLabel",
  8289. getGraphConfig: ie,
  8290. getStartGraphConfig: ce
  8291. });
  8292. }
  8293. function T(w, O) {
  8294. var F = O.render.area;
  8295. return w.forEach(function(H) {
  8296. var re = H.center;
  8297. re = re.map(function(h, j) {
  8298. return typeof h == "number" ? h : parseInt(h) / 100 * F[j];
  8299. }), H.center = re;
  8300. }), w;
  8301. }
  8302. function L(w, O) {
  8303. var F = Math.min.apply(Math, (0, n.default)(O.render.area)) / 2;
  8304. return w.forEach(function(H) {
  8305. var re = H.radius, h = H.data;
  8306. re = d(re, F), h.forEach(function(j) {
  8307. var s = j.radius;
  8308. s || (s = re), s = d(s, F), j.radius = s;
  8309. }), H.radius = re;
  8310. }), w;
  8311. }
  8312. function d(w, O) {
  8313. return w instanceof Array || (w = [0, w]), w = w.map(function(F) {
  8314. return typeof F == "number" ? F : parseInt(F) / 100 * O;
  8315. }), w;
  8316. }
  8317. function B(w, O) {
  8318. var F = w.filter(function(H) {
  8319. var re = H.roseType;
  8320. return re;
  8321. });
  8322. return F.forEach(function(H) {
  8323. var re = H.radius, h = H.data, j = H.roseSort, s = q(H), b = (0, n.default)(h);
  8324. h = W(h), h.forEach(function(P, R) {
  8325. P.radius[1] = re[1] - s * R;
  8326. }), j ? h.reverse() : H.data = b, H.roseIncrement = s;
  8327. }), w;
  8328. }
  8329. function W(w) {
  8330. return w.sort(function(O, F) {
  8331. var H = O.value, re = F.value;
  8332. if (H === re) return 0;
  8333. if (H > re) return -1;
  8334. if (H < re) return 1;
  8335. });
  8336. }
  8337. function q(w) {
  8338. var O = w.radius, F = w.roseIncrement;
  8339. if (typeof F == "number") return F;
  8340. if (F === "auto") {
  8341. var H = w.data, re = H.reduce(function(s, b) {
  8342. var P = b.radius;
  8343. return [].concat((0, n.default)(s), (0, n.default)(P));
  8344. }, []), h = Math.min.apply(Math, (0, n.default)(re)), j = Math.max.apply(Math, (0, n.default)(re));
  8345. return (j - h) * 0.6 / (H.length - 1 || 1);
  8346. }
  8347. return parseInt(F) / 100 * O[1];
  8348. }
  8349. function G(w) {
  8350. return w.forEach(function(O) {
  8351. var F = O.data, H = O.percentToFixed, re = y(F);
  8352. F.forEach(function(j) {
  8353. var s = j.value;
  8354. j.percent = s / re * 100, j.percentForLabel = m(s / re * 100, H);
  8355. });
  8356. var h = (0, x.mulAdd)(F.slice(0, -1).map(function(j) {
  8357. var s = j.percent;
  8358. return s;
  8359. }));
  8360. F.slice(-1)[0].percent = 100 - h, F.slice(-1)[0].percentForLabel = m(100 - h, H);
  8361. }), w;
  8362. }
  8363. function m(w) {
  8364. var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, F = w.toString(), H = F.split("."), re = H[1] || "0", h = re.slice(0, O);
  8365. return H[1] = h, parseFloat(H.join("."));
  8366. }
  8367. function y(w) {
  8368. return (0, x.mulAdd)(w.map(function(O) {
  8369. var F = O.value;
  8370. return F;
  8371. }));
  8372. }
  8373. function f(w) {
  8374. return w.forEach(function(O) {
  8375. var F = O.startAngle, H = O.data;
  8376. H.forEach(function(re, h) {
  8377. var j = D(H, h), s = (0, t.default)(j, 2), b = s[0], P = s[1];
  8378. re.startAngle = F + b, re.endAngle = F + P;
  8379. });
  8380. }), w;
  8381. }
  8382. function D(w, O) {
  8383. var F = Math.PI * 2, H = w.slice(0, O + 1), re = (0, x.mulAdd)(H.map(function(s) {
  8384. var b = s.percent;
  8385. return b;
  8386. })), h = w[O].percent, j = re - h;
  8387. return [F * j / 100, F * re / 100];
  8388. }
  8389. function k(w) {
  8390. return w.forEach(function(O) {
  8391. var F = O.data;
  8392. F.forEach(function(H) {
  8393. H.insideLabelPos = C(O, H);
  8394. });
  8395. }), w;
  8396. }
  8397. function C(w, O) {
  8398. var F = w.center, H = O.startAngle, re = O.endAngle, h = (0, t.default)(O.radius, 2), j = h[0], s = h[1], b = (j + s) / 2, P = (H + re) / 2;
  8399. return _.getCircleRadianPoint.apply(void 0, (0, n.default)(F).concat([b, P]));
  8400. }
  8401. function $(w) {
  8402. return w.forEach(function(O) {
  8403. var F = O.data, H = O.center;
  8404. F.forEach(function(re) {
  8405. var h = re.startAngle, j = re.endAngle, s = re.radius, b = (h + j) / 2, P = _.getCircleRadianPoint.apply(void 0, (0, n.default)(H).concat([s[1], b]));
  8406. re.edgeCenterPos = P;
  8407. });
  8408. }), w;
  8409. }
  8410. function c(w) {
  8411. return w.forEach(function(O) {
  8412. var F = p(O), H = p(O, !1);
  8413. F = V(F), H = V(H), X(F, O), X(H, O, !1);
  8414. }), w;
  8415. }
  8416. function M(w) {
  8417. var O = w.outsideLabel.labelLineBendGap, F = A(w);
  8418. return typeof O != "number" && (O = parseInt(O) / 100 * F), O + F;
  8419. }
  8420. function A(w) {
  8421. var O = w.data, F = O.map(function(H) {
  8422. var re = (0, t.default)(H.radius, 2);
  8423. re[0];
  8424. var h = re[1];
  8425. return h;
  8426. });
  8427. return Math.max.apply(Math, (0, n.default)(F));
  8428. }
  8429. function p(w) {
  8430. var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, F = w.data, H = w.center, re = H[0];
  8431. return F.filter(function(h) {
  8432. var j = h.edgeCenterPos, s = j[0];
  8433. return O ? s <= re : s > re;
  8434. });
  8435. }
  8436. function V(w) {
  8437. return w.sort(function(O, F) {
  8438. var H = (0, t.default)(O.edgeCenterPos, 2);
  8439. H[0];
  8440. var re = H[1], h = (0, t.default)(F.edgeCenterPos, 2);
  8441. h[0];
  8442. var j = h[1];
  8443. if (re > j) return 1;
  8444. if (re < j) return -1;
  8445. if (re === j) return 0;
  8446. }), w;
  8447. }
  8448. function X(w, O) {
  8449. var F = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, H = O.center, re = O.outsideLabel, h = M(O);
  8450. w.forEach(function(j) {
  8451. var s = j.edgeCenterPos, b = j.startAngle, P = j.endAngle, R = re.labelLineEndLength, K = (b + P) / 2, ne = _.getCircleRadianPoint.apply(void 0, (0, n.default)(H).concat([h, K])), ue = (0, n.default)(ne);
  8452. ue[0] += R * (F ? -1 : 1), j.labelLine = [s, ne, ue], j.labelLineLength = (0, x.getPolylineLength)(j.labelLine), j.align = {
  8453. textAlign: "left",
  8454. textBaseline: "middle"
  8455. }, F && (j.align.textAlign = "right");
  8456. });
  8457. }
  8458. function ee(w) {
  8459. var O = w.data, F = w.animationCurve, H = w.animationFrame, re = w.rLevel;
  8460. return O.map(function(h, j) {
  8461. return {
  8462. name: "pie",
  8463. index: re,
  8464. animationCurve: F,
  8465. animationFrame: H,
  8466. shape: g(w, j),
  8467. style: v(w, j)
  8468. };
  8469. });
  8470. }
  8471. function u(w) {
  8472. var O = w.animationDelayGap, F = w.startAnimationCurve, H = ee(w);
  8473. return H.forEach(function(re, h) {
  8474. re.animationCurve = F, re.animationDelay = h * O, re.shape.or = re.shape.ir;
  8475. }), H;
  8476. }
  8477. function I(w) {
  8478. w.animationDelay = 0;
  8479. }
  8480. function g(w, O) {
  8481. var F = w.center, H = w.data, re = H[O], h = re.radius, j = re.startAngle, s = re.endAngle;
  8482. return {
  8483. startAngle: j,
  8484. endAngle: s,
  8485. ir: h[0],
  8486. or: h[1],
  8487. rx: F[0],
  8488. ry: F[1]
  8489. };
  8490. }
  8491. function v(w, O) {
  8492. var F = w.pieStyle, H = w.data, re = H[O], h = re.color;
  8493. return (0, x.deepMerge)({
  8494. fill: h
  8495. }, F);
  8496. }
  8497. function S(w) {
  8498. var O = w.animationCurve, F = w.animationFrame, H = w.data, re = w.rLevel;
  8499. return H.map(function(h, j) {
  8500. return {
  8501. name: "text",
  8502. index: re,
  8503. visible: w.insideLabel.show,
  8504. animationCurve: O,
  8505. animationFrame: F,
  8506. shape: J(w, j),
  8507. style: Q(w)
  8508. };
  8509. });
  8510. }
  8511. function J(w, O) {
  8512. var F = w.insideLabel, H = w.data, re = F.formatter, h = H[O], j = (0, a.default)(re), s = "";
  8513. return j === "string" && (s = re.replace("{name}", h.name), s = s.replace("{percent}", h.percentForLabel), s = s.replace("{value}", h.value)), j === "function" && (s = re(h)), {
  8514. content: s,
  8515. position: h.insideLabelPos
  8516. };
  8517. }
  8518. function Q(w, O) {
  8519. var F = w.insideLabel.style;
  8520. return F;
  8521. }
  8522. function te(w) {
  8523. var O = w.animationCurve, F = w.animationFrame, H = w.data, re = w.rLevel;
  8524. return H.map(function(h, j) {
  8525. return {
  8526. name: "polyline",
  8527. index: re,
  8528. visible: w.outsideLabel.show,
  8529. animationCurve: O,
  8530. animationFrame: F,
  8531. shape: ve(w, j),
  8532. style: Y(w, j)
  8533. };
  8534. });
  8535. }
  8536. function oe(w) {
  8537. var O = w.data, F = te(w);
  8538. return F.forEach(function(H, re) {
  8539. H.style.lineDash = [0, O[re].labelLineLength];
  8540. }), F;
  8541. }
  8542. function ve(w, O) {
  8543. var F = w.data, H = F[O];
  8544. return {
  8545. points: H.labelLine
  8546. };
  8547. }
  8548. function Y(w, O) {
  8549. var F = w.outsideLabel, H = w.data, re = F.labelLineStyle, h = H[O].color;
  8550. return (0, x.deepMerge)({
  8551. stroke: h,
  8552. lineDash: [H[O].labelLineLength, 0]
  8553. }, re);
  8554. }
  8555. function ie(w) {
  8556. var O = w.animationCurve, F = w.animationFrame, H = w.data, re = w.rLevel;
  8557. return H.map(function(h, j) {
  8558. return {
  8559. name: "text",
  8560. index: re,
  8561. visible: w.outsideLabel.show,
  8562. animationCurve: O,
  8563. animationFrame: F,
  8564. shape: fe(w, j),
  8565. style: N(w, j)
  8566. };
  8567. });
  8568. }
  8569. function ce(w) {
  8570. var O = w.data, F = ie(w);
  8571. return F.forEach(function(H, re) {
  8572. H.shape.position = O[re].labelLine[1];
  8573. }), F;
  8574. }
  8575. function fe(w, O) {
  8576. var F = w.outsideLabel, H = w.data, re = F.formatter, h = H[O], j = h.labelLine, s = h.name, b = h.percentForLabel, P = h.value, R = (0, a.default)(re), K = "";
  8577. return R === "string" && (K = re.replace("{name}", s), K = K.replace("{percent}", b), K = K.replace("{value}", P)), R === "function" && (K = re(H[O])), {
  8578. content: K,
  8579. position: j[2]
  8580. };
  8581. }
  8582. function N(w, O) {
  8583. var F = w.outsideLabel, H = w.data, re = H[O], h = re.color, j = re.align, s = F.style;
  8584. return (0, x.deepMerge)(E({
  8585. fill: h
  8586. }, j), s);
  8587. }
  8588. return At;
  8589. }
  8590. var Lt = {}, va;
  8591. function os() {
  8592. if (va) return Lt;
  8593. va = 1;
  8594. var e = we;
  8595. Object.defineProperty(Lt, "__esModule", {
  8596. value: !0
  8597. }), Lt.radarAxis = E;
  8598. var r = e(Ne()), a = e(Ve()), t = e(Te()), n = Xe(), l = Ue(), o = Fe(), _ = ze();
  8599. function x(u, I) {
  8600. var g = Object.keys(u);
  8601. if (Object.getOwnPropertySymbols) {
  8602. var v = Object.getOwnPropertySymbols(u);
  8603. I && (v = v.filter(function(S) {
  8604. return Object.getOwnPropertyDescriptor(u, S).enumerable;
  8605. })), g.push.apply(g, v);
  8606. }
  8607. return g;
  8608. }
  8609. function z(u) {
  8610. for (var I = 1; I < arguments.length; I++) {
  8611. var g = arguments[I] != null ? arguments[I] : {};
  8612. I % 2 ? x(Object(g), !0).forEach(function(v) {
  8613. (0, a.default)(u, v, g[v]);
  8614. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(g)) : x(Object(g)).forEach(function(v) {
  8615. Object.defineProperty(u, v, Object.getOwnPropertyDescriptor(g, v));
  8616. });
  8617. }
  8618. return u;
  8619. }
  8620. function E(u) {
  8621. var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = I.radar, v = [];
  8622. g && (v = U(g), v = T(v, u), v = L(v, u), v = d(v), v = B(v), v = W(v), v = [v]);
  8623. var S = v;
  8624. v.length && !v[0].show && (S = []), (0, n.doUpdate)({
  8625. chart: u,
  8626. series: S,
  8627. key: "radarAxisSplitArea",
  8628. getGraphConfig: q,
  8629. beforeUpdate: y,
  8630. beforeChange: f
  8631. }), (0, n.doUpdate)({
  8632. chart: u,
  8633. series: S,
  8634. key: "radarAxisSplitLine",
  8635. getGraphConfig: D,
  8636. beforeUpdate: $,
  8637. beforeChange: c
  8638. }), (0, n.doUpdate)({
  8639. chart: u,
  8640. series: S,
  8641. key: "radarAxisLine",
  8642. getGraphConfig: M
  8643. }), (0, n.doUpdate)({
  8644. chart: u,
  8645. series: S,
  8646. key: "radarAxisLable",
  8647. getGraphConfig: V
  8648. }), u.radarAxis = v[0];
  8649. }
  8650. function U(u) {
  8651. return (0, _.deepMerge)((0, o.deepClone)(l.radarAxisConfig), u);
  8652. }
  8653. function T(u, I) {
  8654. var g = I.render.area, v = u.center;
  8655. return u.centerPos = v.map(function(S, J) {
  8656. return typeof S == "number" ? S : parseInt(S) / 100 * g[J];
  8657. }), u;
  8658. }
  8659. function L(u, I) {
  8660. var g = I.render.area, v = u.splitNum, S = u.radius, J = Math.min.apply(Math, (0, t.default)(g)) / 2;
  8661. typeof S != "number" && (S = parseInt(S) / 100 * J);
  8662. var Q = S / v;
  8663. return u.ringRadius = new Array(v).fill(0).map(function(te, oe) {
  8664. return Q * (oe + 1);
  8665. }), u.radius = S, u;
  8666. }
  8667. function d(u) {
  8668. var I = u.indicator, g = u.centerPos, v = u.radius, S = u.startAngle, J = Math.PI * 2, Q = I.length, te = J / Q, oe = new Array(Q).fill(0).map(function(ve, Y) {
  8669. return te * Y + S;
  8670. });
  8671. return u.axisLineAngles = oe, u.axisLinePosition = oe.map(function(ve) {
  8672. return o.getCircleRadianPoint.apply(void 0, (0, t.default)(g).concat([v, ve]));
  8673. }), u;
  8674. }
  8675. function B(u) {
  8676. var I = u.ringRadius, g = I[0] / 2;
  8677. return u.areaRadius = I.map(function(v) {
  8678. return v - g;
  8679. }), u;
  8680. }
  8681. function W(u) {
  8682. var I = u.axisLineAngles, g = u.centerPos, v = u.radius, S = u.axisLabel;
  8683. return v += S.labelGap, u.axisLabelPosition = I.map(function(J) {
  8684. return o.getCircleRadianPoint.apply(void 0, (0, t.default)(g).concat([v, J]));
  8685. }), u;
  8686. }
  8687. function q(u) {
  8688. var I = u.areaRadius, g = u.polygon, v = u.animationCurve, S = u.animationFrame, J = u.rLevel, Q = g ? "regPolygon" : "ring";
  8689. return I.map(function(te, oe) {
  8690. return {
  8691. name: Q,
  8692. index: J,
  8693. visible: u.splitArea.show,
  8694. animationCurve: v,
  8695. animationFrame: S,
  8696. shape: G(u, oe),
  8697. style: m(u, oe)
  8698. };
  8699. });
  8700. }
  8701. function G(u, I) {
  8702. var g = u.polygon, v = u.areaRadius, S = u.indicator, J = u.centerPos, Q = S.length, te = {
  8703. rx: J[0],
  8704. ry: J[1],
  8705. r: v[I]
  8706. };
  8707. return g && (te.side = Q), te;
  8708. }
  8709. function m(u, I) {
  8710. var g = u.splitArea, v = u.ringRadius, S = u.axisLineAngles, J = u.polygon, Q = u.centerPos, te = g.color, oe = g.style;
  8711. oe = z({
  8712. fill: "rgba(0, 0, 0, 0)"
  8713. }, oe);
  8714. var ve = v[0] - 0;
  8715. if (J) {
  8716. var Y = o.getCircleRadianPoint.apply(void 0, (0, t.default)(Q).concat([v[0], S[0]])), ie = o.getCircleRadianPoint.apply(void 0, (0, t.default)(Q).concat([v[0], S[1]]));
  8717. ve = (0, _.getPointToLineDistance)(Q, Y, ie);
  8718. }
  8719. if (oe = (0, _.deepMerge)((0, o.deepClone)(oe, !0), {
  8720. lineWidth: ve
  8721. }), !te.length) return oe;
  8722. var ce = te.length;
  8723. return (0, _.deepMerge)(oe, {
  8724. stroke: te[I % ce]
  8725. });
  8726. }
  8727. function y(u, I, g, v) {
  8728. var S = u[g];
  8729. if (S) {
  8730. var J = v.chart.render, Q = I.polygon, te = S[0].name, oe = Q ? "regPolygon" : "ring", ve = oe !== te;
  8731. ve && (S.forEach(function(Y) {
  8732. return J.delGraph(Y);
  8733. }), u[g] = null);
  8734. }
  8735. }
  8736. function f(u, I) {
  8737. var g = I.shape.side;
  8738. typeof g == "number" && (u.shape.side = g);
  8739. }
  8740. function D(u) {
  8741. var I = u.ringRadius, g = u.polygon, v = u.animationCurve, S = u.animationFrame, J = u.rLevel, Q = g ? "regPolygon" : "ring";
  8742. return I.map(function(te, oe) {
  8743. return {
  8744. name: Q,
  8745. index: J,
  8746. animationCurve: v,
  8747. animationFrame: S,
  8748. visible: u.splitLine.show,
  8749. shape: k(u, oe),
  8750. style: C(u, oe)
  8751. };
  8752. });
  8753. }
  8754. function k(u, I) {
  8755. var g = u.ringRadius, v = u.centerPos, S = u.indicator, J = u.polygon, Q = {
  8756. rx: v[0],
  8757. ry: v[1],
  8758. r: g[I]
  8759. }, te = S.length;
  8760. return J && (Q.side = te), Q;
  8761. }
  8762. function C(u, I) {
  8763. var g = u.splitLine, v = g.color, S = g.style;
  8764. if (S = z({
  8765. fill: "rgba(0, 0, 0, 0)"
  8766. }, S), !v.length) return S;
  8767. var J = v.length;
  8768. return (0, _.deepMerge)(S, {
  8769. stroke: v[I % J]
  8770. });
  8771. }
  8772. function $(u, I, g, v) {
  8773. var S = u[g];
  8774. if (S) {
  8775. var J = v.chart.render, Q = I.polygon, te = S[0].name, oe = Q ? "regPolygon" : "ring", ve = oe !== te;
  8776. ve && (S.forEach(function(Y) {
  8777. return J.delGraph(Y);
  8778. }), u[g] = null);
  8779. }
  8780. }
  8781. function c(u, I) {
  8782. var g = I.shape.side;
  8783. typeof g == "number" && (u.shape.side = g);
  8784. }
  8785. function M(u) {
  8786. var I = u.axisLinePosition, g = u.animationCurve, v = u.animationFrame, S = u.rLevel;
  8787. return I.map(function(J, Q) {
  8788. return {
  8789. name: "polyline",
  8790. index: S,
  8791. visible: u.axisLine.show,
  8792. animationCurve: g,
  8793. animationFrame: v,
  8794. shape: A(u, Q),
  8795. style: p(u, Q)
  8796. };
  8797. });
  8798. }
  8799. function A(u, I) {
  8800. var g = u.centerPos, v = u.axisLinePosition, S = [g, v[I]];
  8801. return {
  8802. points: S
  8803. };
  8804. }
  8805. function p(u, I) {
  8806. var g = u.axisLine, v = g.color, S = g.style;
  8807. if (!v.length) return S;
  8808. var J = v.length;
  8809. return (0, _.deepMerge)(S, {
  8810. stroke: v[I % J]
  8811. });
  8812. }
  8813. function V(u) {
  8814. var I = u.axisLabelPosition, g = u.animationCurve, v = u.animationFrame, S = u.rLevel;
  8815. return I.map(function(J, Q) {
  8816. return {
  8817. name: "text",
  8818. index: S,
  8819. visible: u.axisLabel.show,
  8820. animationCurve: g,
  8821. animationFrame: v,
  8822. shape: X(u, Q),
  8823. style: ee(u, Q)
  8824. };
  8825. });
  8826. }
  8827. function X(u, I) {
  8828. var g = u.axisLabelPosition, v = u.indicator;
  8829. return {
  8830. content: v[I].name,
  8831. position: g[I]
  8832. };
  8833. }
  8834. function ee(u, I) {
  8835. var g = u.axisLabel, v = (0, r.default)(u.centerPos, 2), S = v[0], J = v[1], Q = u.axisLabelPosition, te = g.color, oe = g.style, ve = (0, r.default)(Q[I], 2), Y = ve[0], ie = ve[1], ce = Y > S ? "left" : "right", fe = ie > J ? "top" : "bottom";
  8836. if (oe = (0, _.deepMerge)({
  8837. textAlign: ce,
  8838. textBaseline: fe
  8839. }, oe), !te.length) return oe;
  8840. var N = te.length;
  8841. return (0, _.deepMerge)(oe, {
  8842. fill: te[I % N]
  8843. });
  8844. }
  8845. return Lt;
  8846. }
  8847. var St = {}, pa;
  8848. function ls() {
  8849. if (pa) return St;
  8850. pa = 1;
  8851. var e = we;
  8852. Object.defineProperty(St, "__esModule", {
  8853. value: !0
  8854. }), St.radar = T;
  8855. var r = e(Ve()), a = e(Be()), t = e(Ne()), n = e(Te()), l = Xe(), o = Ue(), _ = Fe(), x = yt, z = ze();
  8856. function E(p, V) {
  8857. var X = Object.keys(p);
  8858. if (Object.getOwnPropertySymbols) {
  8859. var ee = Object.getOwnPropertySymbols(p);
  8860. V && (ee = ee.filter(function(u) {
  8861. return Object.getOwnPropertyDescriptor(p, u).enumerable;
  8862. })), X.push.apply(X, ee);
  8863. }
  8864. return X;
  8865. }
  8866. function U(p) {
  8867. for (var V = 1; V < arguments.length; V++) {
  8868. var X = arguments[V] != null ? arguments[V] : {};
  8869. V % 2 ? E(Object(X), !0).forEach(function(ee) {
  8870. (0, r.default)(p, ee, X[ee]);
  8871. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(p, Object.getOwnPropertyDescriptors(X)) : E(Object(X)).forEach(function(ee) {
  8872. Object.defineProperty(p, ee, Object.getOwnPropertyDescriptor(X, ee));
  8873. });
  8874. }
  8875. return p;
  8876. }
  8877. function T(p) {
  8878. var V = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, X = V.series;
  8879. X || (X = []);
  8880. var ee = (0, z.initNeedSeries)(X, o.radarConfig, "radar");
  8881. ee = L(ee, p), ee = d(ee, p), ee = B(ee, p), (0, l.doUpdate)({
  8882. chart: p,
  8883. series: ee,
  8884. key: "radar",
  8885. getGraphConfig: W,
  8886. getStartGraphConfig: q,
  8887. beforeChange: y
  8888. }), (0, l.doUpdate)({
  8889. chart: p,
  8890. series: ee,
  8891. key: "radarPoint",
  8892. getGraphConfig: f,
  8893. getStartGraphConfig: D
  8894. }), (0, l.doUpdate)({
  8895. chart: p,
  8896. series: ee,
  8897. key: "radarLabel",
  8898. getGraphConfig: $
  8899. });
  8900. }
  8901. function L(p, V) {
  8902. var X = V.radarAxis;
  8903. if (!X) return [];
  8904. var ee = X.indicator, u = X.axisLineAngles, I = X.radius, g = X.centerPos;
  8905. return p.forEach(function(v) {
  8906. var S = v.data;
  8907. v.dataRadius = [], v.radarPosition = ee.map(function(J, Q) {
  8908. var te = J.max, oe = J.min, ve = S[Q];
  8909. typeof te != "number" && (te = ve), typeof oe != "number" && (oe = 0), typeof ve != "number" && (ve = oe);
  8910. var Y = (ve - oe) / (te - oe) * I;
  8911. return v.dataRadius[Q] = Y, _.getCircleRadianPoint.apply(void 0, (0, n.default)(g).concat([Y, u[Q]]));
  8912. });
  8913. }), p;
  8914. }
  8915. function d(p, V) {
  8916. var X = V.radarAxis;
  8917. if (!X) return [];
  8918. var ee = X.centerPos, u = X.axisLineAngles;
  8919. return p.forEach(function(I) {
  8920. var g = I.dataRadius, v = I.label, S = v.labelGap;
  8921. I.labelPosition = g.map(function(J, Q) {
  8922. return _.getCircleRadianPoint.apply(void 0, (0, n.default)(ee).concat([J + S, u[Q]]));
  8923. });
  8924. }), p;
  8925. }
  8926. function B(p, V) {
  8927. var X = V.radarAxis;
  8928. if (!X) return [];
  8929. var ee = (0, t.default)(X.centerPos, 2), u = ee[0], I = ee[1];
  8930. return p.forEach(function(g) {
  8931. var v = g.labelPosition, S = v.map(function(J) {
  8932. var Q = (0, t.default)(J, 2), te = Q[0], oe = Q[1], ve = te > u ? "left" : "right", Y = oe > I ? "top" : "bottom";
  8933. return {
  8934. textAlign: ve,
  8935. textBaseline: Y
  8936. };
  8937. });
  8938. g.labelAlign = S;
  8939. }), p;
  8940. }
  8941. function W(p) {
  8942. var V = p.animationCurve, X = p.animationFrame, ee = p.rLevel;
  8943. return [{
  8944. name: "polyline",
  8945. index: ee,
  8946. animationCurve: V,
  8947. animationFrame: X,
  8948. shape: G(p),
  8949. style: m(p)
  8950. }];
  8951. }
  8952. function q(p, V) {
  8953. var X = V.chart.radarAxis.centerPos, ee = W(p)[0], u = ee.shape.points.length, I = new Array(u).fill(0).map(function(g) {
  8954. return (0, n.default)(X);
  8955. });
  8956. return ee.shape.points = I, [ee];
  8957. }
  8958. function G(p) {
  8959. var V = p.radarPosition;
  8960. return {
  8961. points: V,
  8962. close: !0
  8963. };
  8964. }
  8965. function m(p) {
  8966. var V = p.radarStyle, X = p.color, ee = (0, x.getRgbaValue)(X);
  8967. ee[3] = 0.5;
  8968. var u = {
  8969. stroke: X,
  8970. fill: (0, x.getColorFromRgbValue)(ee)
  8971. };
  8972. return (0, z.deepMerge)(u, V);
  8973. }
  8974. function y(p, V) {
  8975. var X = V.shape, ee = p.shape.points, u = ee.length, I = X.points.length;
  8976. if (I > u) {
  8977. var g = ee.slice(-1)[0], v = new Array(I - u).fill(0).map(function(S) {
  8978. return (0, n.default)(g);
  8979. });
  8980. ee.push.apply(ee, (0, n.default)(v));
  8981. } else I < u && ee.splice(I);
  8982. }
  8983. function f(p) {
  8984. var V = p.radarPosition, X = p.animationCurve, ee = p.animationFrame, u = p.rLevel;
  8985. return V.map(function(I, g) {
  8986. return {
  8987. name: "circle",
  8988. index: u,
  8989. animationCurve: X,
  8990. animationFrame: ee,
  8991. visible: p.point.show,
  8992. shape: k(p, g),
  8993. style: C(p)
  8994. };
  8995. });
  8996. }
  8997. function D(p) {
  8998. var V = f(p);
  8999. return V.forEach(function(X) {
  9000. return X.shape.r = 0.01;
  9001. }), V;
  9002. }
  9003. function k(p, V) {
  9004. var X = p.radarPosition, ee = p.point, u = ee.radius, I = X[V];
  9005. return {
  9006. rx: I[0],
  9007. ry: I[1],
  9008. r: u
  9009. };
  9010. }
  9011. function C(p, V) {
  9012. var X = p.point, ee = p.color, u = X.style;
  9013. return (0, z.deepMerge)({
  9014. stroke: ee
  9015. }, u);
  9016. }
  9017. function $(p) {
  9018. var V = p.labelPosition, X = p.animationCurve, ee = p.animationFrame, u = p.rLevel;
  9019. return V.map(function(I, g) {
  9020. return {
  9021. name: "text",
  9022. index: u,
  9023. visible: p.label.show,
  9024. animationCurve: X,
  9025. animationFrame: ee,
  9026. shape: c(p, g),
  9027. style: A(p, g)
  9028. };
  9029. });
  9030. }
  9031. function c(p, V) {
  9032. var X = p.labelPosition, ee = p.label, u = p.data, I = ee.offset, g = ee.formatter, v = M(X[V], I), S = u[V] ? u[V].toString() : "0", J = (0, a.default)(g);
  9033. return J === "string" && (S = g.replace("{value}", S)), J === "function" && (S = g(S)), {
  9034. content: S,
  9035. position: v
  9036. };
  9037. }
  9038. function M(p, V) {
  9039. var X = (0, t.default)(p, 2), ee = X[0], u = X[1], I = (0, t.default)(V, 2), g = I[0], v = I[1];
  9040. return [ee + g, u + v];
  9041. }
  9042. function A(p, V) {
  9043. var X = p.label, ee = p.color, u = p.labelAlign, I = X.style, g = U({
  9044. fill: ee
  9045. }, u[V]);
  9046. return (0, z.deepMerge)(g, I);
  9047. }
  9048. return St;
  9049. }
  9050. var Ot = {}, ga;
  9051. function ss() {
  9052. if (ga) return Ot;
  9053. ga = 1;
  9054. var e = we;
  9055. Object.defineProperty(Ot, "__esModule", {
  9056. value: !0
  9057. }), Ot.gauge = T;
  9058. var r = e(Ve()), a = e(Be()), t = e(Ne()), n = e(Te()), l = Xe(), o = Ta(), _ = Fe(), x = ze(), z = yt;
  9059. function E(N, w) {
  9060. var O = Object.keys(N);
  9061. if (Object.getOwnPropertySymbols) {
  9062. var F = Object.getOwnPropertySymbols(N);
  9063. w && (F = F.filter(function(H) {
  9064. return Object.getOwnPropertyDescriptor(N, H).enumerable;
  9065. })), O.push.apply(O, F);
  9066. }
  9067. return O;
  9068. }
  9069. function U(N) {
  9070. for (var w = 1; w < arguments.length; w++) {
  9071. var O = arguments[w] != null ? arguments[w] : {};
  9072. w % 2 ? E(Object(O), !0).forEach(function(F) {
  9073. (0, r.default)(N, F, O[F]);
  9074. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(N, Object.getOwnPropertyDescriptors(O)) : E(Object(O)).forEach(function(F) {
  9075. Object.defineProperty(N, F, Object.getOwnPropertyDescriptor(O, F));
  9076. });
  9077. }
  9078. return N;
  9079. }
  9080. function T(N) {
  9081. var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, O = w.series;
  9082. O || (O = []);
  9083. var F = (0, x.initNeedSeries)(O, o.gaugeConfig, "gauge");
  9084. F = L(F, N), F = d(F, N), F = B(F, N), F = W(F), F = q(F), F = G(F), F = m(F), F = y(F), F = f(F), F = D(F), (0, l.doUpdate)({
  9085. chart: N,
  9086. series: F,
  9087. key: "gaugeAxisTick",
  9088. getGraphConfig: C
  9089. }), (0, l.doUpdate)({
  9090. chart: N,
  9091. series: F,
  9092. key: "gaugeAxisLabel",
  9093. getGraphConfig: M
  9094. }), (0, l.doUpdate)({
  9095. chart: N,
  9096. series: F,
  9097. key: "gaugeBackgroundArc",
  9098. getGraphConfig: V,
  9099. getStartGraphConfig: u
  9100. }), (0, l.doUpdate)({
  9101. chart: N,
  9102. series: F,
  9103. key: "gaugeArc",
  9104. getGraphConfig: I,
  9105. getStartGraphConfig: S,
  9106. beforeChange: J
  9107. }), (0, l.doUpdate)({
  9108. chart: N,
  9109. series: F,
  9110. key: "gaugePointer",
  9111. getGraphConfig: Q,
  9112. getStartGraphConfig: Y
  9113. }), (0, l.doUpdate)({
  9114. chart: N,
  9115. series: F,
  9116. key: "gaugeDetails",
  9117. getGraphConfig: ie
  9118. });
  9119. }
  9120. function L(N, w) {
  9121. var O = w.render.area;
  9122. return N.forEach(function(F) {
  9123. var H = F.center;
  9124. H = H.map(function(re, h) {
  9125. return typeof re == "number" ? re : parseInt(re) / 100 * O[h];
  9126. }), F.center = H;
  9127. }), N;
  9128. }
  9129. function d(N, w) {
  9130. var O = w.render.area, F = Math.min.apply(Math, (0, n.default)(O)) / 2;
  9131. return N.forEach(function(H) {
  9132. var re = H.radius;
  9133. typeof re != "number" && (re = parseInt(re) / 100 * F), H.radius = re;
  9134. }), N;
  9135. }
  9136. function B(N, w) {
  9137. var O = w.render.area, F = Math.min.apply(Math, (0, n.default)(O)) / 2;
  9138. return N.forEach(function(H) {
  9139. var re = H.radius, h = H.data, j = H.arcLineWidth;
  9140. h.forEach(function(s) {
  9141. var b = s.radius, P = s.lineWidth;
  9142. b || (b = re), typeof b != "number" && (b = parseInt(b) / 100 * F), s.radius = b, P || (P = j), s.lineWidth = P;
  9143. });
  9144. }), N;
  9145. }
  9146. function W(N, w) {
  9147. return N.forEach(function(O) {
  9148. var F = O.startAngle, H = O.endAngle, re = O.data, h = O.min, j = O.max, s = H - F, b = j - h;
  9149. re.forEach(function(P) {
  9150. var R = P.value, K = Math.abs((R - h) / b * s);
  9151. P.startAngle = F, P.endAngle = F + K;
  9152. });
  9153. }), N;
  9154. }
  9155. function q(N, w) {
  9156. return N.forEach(function(O) {
  9157. var F = O.data;
  9158. F.forEach(function(H) {
  9159. var re = H.color, h = H.gradient;
  9160. (!h || !h.length) && (h = re), h instanceof Array || (h = [h]), H.gradient = h;
  9161. });
  9162. }), N;
  9163. }
  9164. function G(N, w) {
  9165. return N.forEach(function(O) {
  9166. var F = O.startAngle, H = O.endAngle, re = O.splitNum, h = O.center, j = O.radius, s = O.arcLineWidth, b = O.axisTick, P = b.tickLength, R = b.style.lineWidth, K = H - F, ne = j - s / 2, ue = ne - P, de = K / (re - 1), he = 2 * Math.PI * j * K / (Math.PI * 2), pe = Math.ceil(R / 2) / he * K;
  9167. O.tickAngles = [], O.tickInnerRadius = [], O.tickPosition = new Array(re).fill(0).map(function(ge, ye) {
  9168. var Oe = F + de * ye;
  9169. return ye === 0 && (Oe += pe), ye === re - 1 && (Oe -= pe), O.tickAngles[ye] = Oe, O.tickInnerRadius[ye] = ue, [_.getCircleRadianPoint.apply(void 0, (0, n.default)(h).concat([ne, Oe])), _.getCircleRadianPoint.apply(void 0, (0, n.default)(h).concat([ue, Oe]))];
  9170. });
  9171. }), N;
  9172. }
  9173. function m(N, w) {
  9174. return N.forEach(function(O) {
  9175. var F = O.center, H = O.tickInnerRadius, re = O.tickAngles, h = O.axisLabel.labelGap, j = re.map(function(b, P) {
  9176. return _.getCircleRadianPoint.apply(void 0, (0, n.default)(F).concat([H[P] - h, re[P]]));
  9177. }), s = j.map(function(b) {
  9178. var P = (0, t.default)(b, 2), R = P[0], K = P[1];
  9179. return {
  9180. textAlign: R > F[0] ? "right" : "left",
  9181. textBaseline: K > F[1] ? "bottom" : "top"
  9182. };
  9183. });
  9184. O.labelPosition = j, O.labelAlign = s;
  9185. }), N;
  9186. }
  9187. function y(N, w) {
  9188. return N.forEach(function(O) {
  9189. var F = O.axisLabel, H = O.min, re = O.max, h = O.splitNum, j = F.data, s = F.formatter, b = (re - H) / (h - 1), P = new Array(h).fill(0).map(function(K, ne) {
  9190. return parseInt(H + b * ne);
  9191. }), R = (0, a.default)(s);
  9192. j = (0, x.deepMerge)(P, j).map(function(K, ne) {
  9193. var ue = K;
  9194. return R === "string" && (ue = s.replace("{value}", K)), R === "function" && (ue = s({
  9195. value: K,
  9196. index: ne
  9197. })), ue;
  9198. }), F.data = j;
  9199. }), N;
  9200. }
  9201. function f(N, w) {
  9202. return N.forEach(function(O) {
  9203. var F = O.data, H = O.details, re = O.center, h = H.position, j = H.offset, s = F.map(function(b) {
  9204. var P = b.startAngle, R = b.endAngle, K = b.radius, ne = null;
  9205. return h === "center" ? ne = re : h === "start" ? ne = _.getCircleRadianPoint.apply(void 0, (0, n.default)(re).concat([K, P])) : h === "end" && (ne = _.getCircleRadianPoint.apply(void 0, (0, n.default)(re).concat([K, R]))), k(ne, j);
  9206. });
  9207. O.detailsPosition = s;
  9208. }), N;
  9209. }
  9210. function D(N, w) {
  9211. return N.forEach(function(O) {
  9212. var F = O.data, H = O.details, re = H.formatter, h = (0, a.default)(re), j = F.map(function(s) {
  9213. var b = s.value;
  9214. return h === "string" && (b = re.replace("{value}", "{nt}"), b = b.replace("{name}", s.name)), h === "function" && (b = re(s)), b.toString();
  9215. });
  9216. O.detailsContent = j;
  9217. }), N;
  9218. }
  9219. function k(N, w) {
  9220. var O = (0, t.default)(N, 2), F = O[0], H = O[1], re = (0, t.default)(w, 2), h = re[0], j = re[1];
  9221. return [F + h, H + j];
  9222. }
  9223. function C(N) {
  9224. var w = N.tickPosition, O = N.animationCurve, F = N.animationFrame, H = N.rLevel;
  9225. return w.map(function(re, h) {
  9226. return {
  9227. name: "polyline",
  9228. index: H,
  9229. visible: N.axisTick.show,
  9230. animationCurve: O,
  9231. animationFrame: F,
  9232. shape: $(N, h),
  9233. style: c(N)
  9234. };
  9235. });
  9236. }
  9237. function $(N, w) {
  9238. var O = N.tickPosition;
  9239. return {
  9240. points: O[w]
  9241. };
  9242. }
  9243. function c(N, w) {
  9244. var O = N.axisTick.style;
  9245. return O;
  9246. }
  9247. function M(N) {
  9248. var w = N.labelPosition, O = N.animationCurve, F = N.animationFrame, H = N.rLevel;
  9249. return w.map(function(re, h) {
  9250. return {
  9251. name: "text",
  9252. index: H,
  9253. visible: N.axisLabel.show,
  9254. animationCurve: O,
  9255. animationFrame: F,
  9256. shape: A(N, h),
  9257. style: p(N, h)
  9258. };
  9259. });
  9260. }
  9261. function A(N, w) {
  9262. var O = N.labelPosition, F = N.axisLabel.data;
  9263. return {
  9264. content: F[w].toString(),
  9265. position: O[w]
  9266. };
  9267. }
  9268. function p(N, w) {
  9269. var O = N.labelAlign, F = N.axisLabel, H = F.style;
  9270. return (0, x.deepMerge)(U({}, O[w]), H);
  9271. }
  9272. function V(N) {
  9273. var w = N.animationCurve, O = N.animationFrame, F = N.rLevel;
  9274. return [{
  9275. name: "arc",
  9276. index: F,
  9277. visible: N.backgroundArc.show,
  9278. animationCurve: w,
  9279. animationFrame: O,
  9280. shape: X(N),
  9281. style: ee(N)
  9282. }];
  9283. }
  9284. function X(N) {
  9285. var w = N.startAngle, O = N.endAngle, F = N.center, H = N.radius;
  9286. return {
  9287. rx: F[0],
  9288. ry: F[1],
  9289. r: H,
  9290. startAngle: w,
  9291. endAngle: O
  9292. };
  9293. }
  9294. function ee(N) {
  9295. var w = N.backgroundArc, O = N.arcLineWidth, F = w.style;
  9296. return (0, x.deepMerge)({
  9297. lineWidth: O
  9298. }, F);
  9299. }
  9300. function u(N) {
  9301. var w = V(N)[0], O = U({}, w.shape);
  9302. return O.endAngle = w.shape.startAngle, w.shape = O, [w];
  9303. }
  9304. function I(N) {
  9305. var w = N.data, O = N.animationCurve, F = N.animationFrame, H = N.rLevel;
  9306. return w.map(function(re, h) {
  9307. return {
  9308. name: "agArc",
  9309. index: H,
  9310. animationCurve: O,
  9311. animationFrame: F,
  9312. shape: g(N, h),
  9313. style: v(N, h)
  9314. };
  9315. });
  9316. }
  9317. function g(N, w) {
  9318. var O = N.data, F = N.center, H = N.endAngle, re = O[w], h = re.radius, j = re.startAngle, s = re.endAngle, b = re.localGradient;
  9319. return b && (H = s), {
  9320. rx: F[0],
  9321. ry: F[1],
  9322. r: h,
  9323. startAngle: j,
  9324. endAngle: s,
  9325. gradientEndAngle: H
  9326. };
  9327. }
  9328. function v(N, w) {
  9329. var O = N.data, F = N.dataItemStyle, H = O[w], re = H.lineWidth, h = H.gradient;
  9330. return h = h.map(function(j) {
  9331. return (0, z.getRgbaValue)(j);
  9332. }), (0, x.deepMerge)({
  9333. lineWidth: re,
  9334. gradient: h
  9335. }, F);
  9336. }
  9337. function S(N) {
  9338. var w = I(N);
  9339. return w.map(function(O) {
  9340. var F = U({}, O.shape);
  9341. F.endAngle = O.shape.startAngle, O.shape = F;
  9342. }), w;
  9343. }
  9344. function J(N, w) {
  9345. var O = N.style.gradient, F = O.length, H = w.style.gradient.length;
  9346. if (F > H)
  9347. O.splice(H);
  9348. else {
  9349. var re = O.slice(-1)[0];
  9350. O.push.apply(O, (0, n.default)(new Array(H - F).fill(0).map(function(h) {
  9351. return (0, n.default)(re);
  9352. })));
  9353. }
  9354. }
  9355. function Q(N) {
  9356. var w = N.animationCurve, O = N.animationFrame, F = N.center, H = N.rLevel;
  9357. return [{
  9358. name: "polyline",
  9359. index: H,
  9360. visible: N.pointer.show,
  9361. animationCurve: w,
  9362. animationFrame: O,
  9363. shape: te(N),
  9364. style: oe(N),
  9365. setGraphCenter: function(h, j) {
  9366. j.style.graphCenter = F;
  9367. }
  9368. }];
  9369. }
  9370. function te(N) {
  9371. var w = N.center;
  9372. return {
  9373. points: ve(w),
  9374. close: !0
  9375. };
  9376. }
  9377. function oe(N) {
  9378. var w = N.startAngle, O = N.endAngle, F = N.min, H = N.max, re = N.data, h = N.pointer, j = N.center, s = h.valueIndex, b = h.style, P = re[s] ? re[s].value : 0, R = (P - F) / (H - F) * (O - w) + w + Math.PI / 2;
  9379. return (0, x.deepMerge)({
  9380. rotate: (0, x.radianToAngle)(R),
  9381. scale: [1, 1],
  9382. graphCenter: j
  9383. }, b);
  9384. }
  9385. function ve(N) {
  9386. var w = (0, t.default)(N, 2), O = w[0], F = w[1], H = [O, F - 40], re = [O + 5, F], h = [O, F + 10], j = [O - 5, F];
  9387. return [H, re, h, j];
  9388. }
  9389. function Y(N) {
  9390. var w = N.startAngle, O = Q(N)[0];
  9391. return O.style.rotate = (0, x.radianToAngle)(w + Math.PI / 2), [O];
  9392. }
  9393. function ie(N) {
  9394. var w = N.detailsPosition, O = N.animationCurve, F = N.animationFrame, H = N.rLevel, re = N.details.show;
  9395. return w.map(function(h, j) {
  9396. return {
  9397. name: "numberText",
  9398. index: H,
  9399. visible: re,
  9400. animationCurve: O,
  9401. animationFrame: F,
  9402. shape: ce(N, j),
  9403. style: fe(N, j)
  9404. };
  9405. });
  9406. }
  9407. function ce(N, w) {
  9408. var O = N.detailsPosition, F = N.detailsContent, H = N.data, re = N.details, h = O[w], j = F[w], s = H[w].value, b = re.valueToFixed;
  9409. return {
  9410. number: [s],
  9411. content: j,
  9412. position: h,
  9413. toFixed: b
  9414. };
  9415. }
  9416. function fe(N, w) {
  9417. var O = N.details, F = N.data, H = O.style, re = F[w].color;
  9418. return (0, x.deepMerge)({
  9419. fill: re
  9420. }, H);
  9421. }
  9422. return Ot;
  9423. }
  9424. var Gt = {}, ma;
  9425. function us() {
  9426. if (ma) return Gt;
  9427. ma = 1;
  9428. var e = we;
  9429. Object.defineProperty(Gt, "__esModule", {
  9430. value: !0
  9431. }), Gt.legend = x;
  9432. var r = e(Ve()), a = e(Ne()), t = e(Be()), n = Xe(), l = Fe(), o = Ue(), _ = ze();
  9433. function x(u) {
  9434. var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = I.legend;
  9435. g ? (g = (0, _.deepMerge)((0, l.deepClone)(o.legendConfig, !0), g), g = z(g), g = E(g, I, u), g = U(g, u), g = d(g, u), g = [g]) : g = [], (0, n.doUpdate)({
  9436. chart: u,
  9437. series: g,
  9438. key: "legendIcon",
  9439. getGraphConfig: $
  9440. }), (0, n.doUpdate)({
  9441. chart: u,
  9442. series: g,
  9443. key: "legendText",
  9444. getGraphConfig: A
  9445. });
  9446. }
  9447. function z(u) {
  9448. var I = u.data;
  9449. return u.data = I.map(function(g) {
  9450. var v = (0, t.default)(g);
  9451. return v === "string" ? {
  9452. name: g
  9453. } : v === "object" ? g : {
  9454. name: ""
  9455. };
  9456. }), u;
  9457. }
  9458. function E(u, I, g) {
  9459. var v = I.series, S = g.legendStatus, J = u.data.filter(function(Q) {
  9460. var te = Q.name, oe = v.find(function(ve) {
  9461. var Y = ve.name;
  9462. return te === Y;
  9463. });
  9464. return oe ? (Q.color || (Q.color = oe.color), Q.icon || (Q.icon = oe.type), Q) : !1;
  9465. });
  9466. return (!S || S.length !== u.data.length) && (S = new Array(u.data.length).fill(!0)), J.forEach(function(Q, te) {
  9467. return Q.status = S[te];
  9468. }), u.data = J, g.legendStatus = S, u;
  9469. }
  9470. function U(u, I) {
  9471. var g = I.render.ctx, v = u.data, S = u.textStyle, J = u.textUnselectedStyle;
  9472. return v.forEach(function(Q) {
  9473. var te = Q.status, oe = Q.name;
  9474. Q.textWidth = T(g, oe, te ? S : J);
  9475. }), u;
  9476. }
  9477. function T(u, I, g) {
  9478. return u.font = L(g), u.measureText(I).width;
  9479. }
  9480. function L(u) {
  9481. var I = u.fontFamily, g = u.fontSize;
  9482. return "".concat(g, "px ").concat(I);
  9483. }
  9484. function d(u, I) {
  9485. var g = u.orient;
  9486. return g === "vertical" ? f(u, I) : B(u, I), u;
  9487. }
  9488. function B(u, I) {
  9489. var g = u.iconHeight, v = u.itemGap, S = W(u, I), J = S.map(function(oe) {
  9490. return G(oe, u, I);
  9491. }), Q = m(u, I), te = {
  9492. textAlign: "left",
  9493. textBaseline: "middle"
  9494. };
  9495. S.forEach(function(oe, ve) {
  9496. return oe.forEach(function(Y) {
  9497. var ie = Y.iconPosition, ce = Y.textPosition, fe = J[ve], N = Q + ve * (v + g);
  9498. Y.iconPosition = y(ie, [fe, N]), Y.textPosition = y(ce, [fe, N]), Y.align = te;
  9499. });
  9500. });
  9501. }
  9502. function W(u, I) {
  9503. var g = u.data, v = u.iconWidth, S = I.render.area[0], J = 0, Q = [[]];
  9504. return g.forEach(function(te, oe) {
  9505. var ve = q(J, oe, u), Y = ve + v + 5 + te.textWidth;
  9506. Y >= S && (J = oe, ve = q(J, oe, u), Q.push([])), te.iconPosition = [ve, 0], te.textPosition = [ve + v + 5, 0], Q.slice(-1)[0].push(te);
  9507. }), Q;
  9508. }
  9509. function q(u, I, g) {
  9510. var v = g.data, S = g.iconWidth, J = g.itemGap, Q = v.slice(u, I);
  9511. return (0, _.mulAdd)(Q.map(function(te) {
  9512. var oe = te.textWidth;
  9513. return oe;
  9514. })) + (I - u) * (J + 5 + S);
  9515. }
  9516. function G(u, I, g) {
  9517. var v = I.left, S = I.right, J = I.iconWidth, Q = I.itemGap, te = g.render.area[0], oe = u.length, ve = (0, _.mulAdd)(u.map(function(ie) {
  9518. var ce = ie.textWidth;
  9519. return ce;
  9520. })) + oe * (5 + J) + (oe - 1) * Q, Y = [v, S].findIndex(function(ie) {
  9521. return ie !== "auto";
  9522. });
  9523. return Y === -1 ? (te - ve) / 2 : Y === 0 ? typeof v == "number" ? v : parseInt(v) / 100 * te : (typeof S != "number" && (S = parseInt(S) / 100 * te), te - (ve + S));
  9524. }
  9525. function m(u, I) {
  9526. var g = u.top, v = u.bottom, S = u.iconHeight, J = I.render.area[1], Q = [g, v].findIndex(function(ie) {
  9527. return ie !== "auto";
  9528. }), te = S / 2;
  9529. if (Q === -1) {
  9530. var oe = I.gridArea, ve = oe.y, Y = oe.h;
  9531. return ve + Y + 45 - te;
  9532. } else return Q === 0 ? typeof g == "number" ? g - te : parseInt(g) / 100 * J - te : (typeof v != "number" && (v = parseInt(v) / 100 * J), J - v - te);
  9533. }
  9534. function y(u, I) {
  9535. var g = (0, a.default)(u, 2), v = g[0], S = g[1], J = (0, a.default)(I, 2), Q = J[0], te = J[1];
  9536. return [v + Q, S + te];
  9537. }
  9538. function f(u, I) {
  9539. var g = D(u, I), v = (0, a.default)(g, 2), S = v[0], J = v[1], Q = k(u, I);
  9540. C(u, S);
  9541. var te = {
  9542. textAlign: "left",
  9543. textBaseline: "middle"
  9544. };
  9545. u.data.forEach(function(oe) {
  9546. var ve = oe.textPosition, Y = oe.iconPosition;
  9547. oe.textPosition = y(ve, [J, Q]), oe.iconPosition = y(Y, [J, Q]), oe.align = te;
  9548. });
  9549. }
  9550. function D(u, I) {
  9551. var g = u.left, v = u.right, S = I.render.area[0], J = [g, v].findIndex(function(te) {
  9552. return te !== "auto";
  9553. });
  9554. if (J === -1)
  9555. return [!0, S - 10];
  9556. var Q = [g, v][J];
  9557. return typeof Q != "number" && (Q = parseInt(Q) / 100 * S), [!!J, Q];
  9558. }
  9559. function k(u, I) {
  9560. var g = u.iconHeight, v = u.itemGap, S = u.data, J = u.top, Q = u.bottom, te = I.render.area[1], oe = S.length, ve = oe * g + (oe - 1) * v, Y = [J, Q].findIndex(function(ce) {
  9561. return ce !== "auto";
  9562. });
  9563. if (Y === -1)
  9564. return (te - ve) / 2;
  9565. var ie = [J, Q][Y];
  9566. return typeof ie != "number" && (ie = parseInt(ie) / 100 * te), Y === 1 && (ie = te - ie - ve), ie;
  9567. }
  9568. function C(u, I) {
  9569. var g = u.data, v = u.iconWidth, S = u.iconHeight, J = u.itemGap, Q = S / 2;
  9570. g.forEach(function(te, oe) {
  9571. var ve = te.textWidth, Y = (S + J) * oe + Q, ie = I ? 0 - v : 0, ce = I ? ie - 5 - ve : v + 5;
  9572. te.iconPosition = [ie, Y], te.textPosition = [ce, Y];
  9573. });
  9574. }
  9575. function $(u, I) {
  9576. var g = u.data, v = u.selectAble, S = u.animationCurve, J = u.animationFrame, Q = u.rLevel;
  9577. return g.map(function(te, oe) {
  9578. return (0, r.default)({
  9579. name: te.icon === "line" ? "lineIcon" : "rect",
  9580. index: Q,
  9581. visible: u.show,
  9582. hover: v,
  9583. click: v,
  9584. animationCurve: S,
  9585. animationFrame: J,
  9586. shape: c(u, oe),
  9587. style: M(u, oe)
  9588. }, "click", ee(u, oe, I));
  9589. });
  9590. }
  9591. function c(u, I) {
  9592. var g = u.data, v = u.iconWidth, S = u.iconHeight, J = (0, a.default)(g[I].iconPosition, 2), Q = J[0], te = J[1], oe = S / 2;
  9593. return {
  9594. x: Q,
  9595. y: te - oe,
  9596. w: v,
  9597. h: S
  9598. };
  9599. }
  9600. function M(u, I) {
  9601. var g = u.data, v = u.iconStyle, S = u.iconUnselectedStyle, J = g[I], Q = J.status, te = J.color, oe = Q ? v : S;
  9602. return (0, _.deepMerge)({
  9603. fill: te
  9604. }, oe);
  9605. }
  9606. function A(u, I) {
  9607. var g = u.data, v = u.selectAble, S = u.animationCurve, J = u.animationFrame, Q = u.rLevel;
  9608. return g.map(function(te, oe) {
  9609. return {
  9610. name: "text",
  9611. index: Q,
  9612. visible: u.show,
  9613. hover: v,
  9614. animationCurve: S,
  9615. animationFrame: J,
  9616. hoverRect: X(u, oe),
  9617. shape: p(u, oe),
  9618. style: V(u, oe),
  9619. click: ee(u, oe, I)
  9620. };
  9621. });
  9622. }
  9623. function p(u, I) {
  9624. var g = u.data[I], v = g.textPosition, S = g.name;
  9625. return {
  9626. content: S,
  9627. position: v
  9628. };
  9629. }
  9630. function V(u, I) {
  9631. var g = u.textStyle, v = u.textUnselectedStyle, S = u.data[I], J = S.status, Q = S.align, te = J ? g : v;
  9632. return (0, _.deepMerge)((0, l.deepClone)(te, !0), Q);
  9633. }
  9634. function X(u, I) {
  9635. var g = u.textStyle, v = u.textUnselectedStyle, S = u.data[I], J = S.status, Q = (0, a.default)(S.textPosition, 2), te = Q[0], oe = Q[1], ve = S.textWidth, Y = J ? g : v, ie = Y.fontSize;
  9636. return [te, oe - ie / 2, ve, ie];
  9637. }
  9638. function ee(u, I, g) {
  9639. var v = u.data[I].name;
  9640. return function() {
  9641. var S = g.chart, J = S.legendStatus, Q = S.option, te = !J[I], oe = Q.series.find(function(ve) {
  9642. var Y = ve.name;
  9643. return Y === v;
  9644. });
  9645. oe.show = te, J[I] = te, g.chart.setOption(Q);
  9646. };
  9647. }
  9648. return Gt;
  9649. }
  9650. var ya;
  9651. function cs() {
  9652. return ya || (ya = 1, function(e) {
  9653. Object.defineProperty(e, "__esModule", {
  9654. value: !0
  9655. }), Object.defineProperty(e, "mergeColor", {
  9656. enumerable: !0,
  9657. get: function() {
  9658. return r.mergeColor;
  9659. }
  9660. }), Object.defineProperty(e, "title", {
  9661. enumerable: !0,
  9662. get: function() {
  9663. return a.title;
  9664. }
  9665. }), Object.defineProperty(e, "grid", {
  9666. enumerable: !0,
  9667. get: function() {
  9668. return t.grid;
  9669. }
  9670. }), Object.defineProperty(e, "axis", {
  9671. enumerable: !0,
  9672. get: function() {
  9673. return n.axis;
  9674. }
  9675. }), Object.defineProperty(e, "line", {
  9676. enumerable: !0,
  9677. get: function() {
  9678. return l.line;
  9679. }
  9680. }), Object.defineProperty(e, "bar", {
  9681. enumerable: !0,
  9682. get: function() {
  9683. return o.bar;
  9684. }
  9685. }), Object.defineProperty(e, "pie", {
  9686. enumerable: !0,
  9687. get: function() {
  9688. return _.pie;
  9689. }
  9690. }), Object.defineProperty(e, "radarAxis", {
  9691. enumerable: !0,
  9692. get: function() {
  9693. return x.radarAxis;
  9694. }
  9695. }), Object.defineProperty(e, "radar", {
  9696. enumerable: !0,
  9697. get: function() {
  9698. return z.radar;
  9699. }
  9700. }), Object.defineProperty(e, "gauge", {
  9701. enumerable: !0,
  9702. get: function() {
  9703. return E.gauge;
  9704. }
  9705. }), Object.defineProperty(e, "legend", {
  9706. enumerable: !0,
  9707. get: function() {
  9708. return U.legend;
  9709. }
  9710. });
  9711. var r = Zl(), a = es(), t = ts(), n = rs(), l = ns(), o = as(), _ = is(), x = os(), z = ls(), E = ss(), U = us();
  9712. }(Ar)), Ar;
  9713. }
  9714. var ba;
  9715. function fs() {
  9716. return ba || (ba = 1, function(e) {
  9717. var r = we;
  9718. Object.defineProperty(e, "__esModule", {
  9719. value: !0
  9720. }), e.default = void 0;
  9721. var a = r(Be()), t = r(mt()), n = r(jt), l = Fe(), o = cs(), _ = function x(z) {
  9722. if ((0, t.default)(this, x), !z)
  9723. return console.error("Charts Missing parameters!"), !1;
  9724. var E = z.clientWidth, U = z.clientHeight, T = document.createElement("canvas");
  9725. T.setAttribute("width", E), T.setAttribute("height", U), z.appendChild(T);
  9726. var L = {
  9727. container: z,
  9728. canvas: T,
  9729. render: new n.default(T),
  9730. option: null
  9731. };
  9732. Object.assign(this, L);
  9733. };
  9734. e.default = _, _.prototype.setOption = function(x) {
  9735. var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
  9736. if (!x || (0, a.default)(x) !== "object")
  9737. return console.error("setOption Missing parameters!"), !1;
  9738. z && this.render.graphs.forEach(function(U) {
  9739. return U.animationEnd();
  9740. });
  9741. var E = (0, l.deepClone)(x, !0);
  9742. (0, o.mergeColor)(this, E), (0, o.grid)(this, E), (0, o.axis)(this, E), (0, o.radarAxis)(this, E), (0, o.title)(this, E), (0, o.bar)(this, E), (0, o.line)(this, E), (0, o.pie)(this, E), (0, o.radar)(this, E), (0, o.gauge)(this, E), (0, o.legend)(this, E), this.option = x, this.render.launchAnimation();
  9743. }, _.prototype.resize = function() {
  9744. var x = this.container, z = this.canvas, E = this.render, U = this.option, T = x.clientWidth, L = x.clientHeight;
  9745. z.setAttribute("width", T), z.setAttribute("height", L), E.area = [T, L], this.setOption(U);
  9746. };
  9747. }(kr)), kr;
  9748. }
  9749. (function(e) {
  9750. var r = we;
  9751. Object.defineProperty(e, "__esModule", {
  9752. value: !0
  9753. }), Object.defineProperty(e, "changeDefaultConfig", {
  9754. enumerable: !0,
  9755. get: function() {
  9756. return t.changeDefaultConfig;
  9757. }
  9758. }), e.default = void 0;
  9759. var a = r(fs()), t = Ue(), n = a.default;
  9760. e.default = n;
  9761. })(Ma);
  9762. const Fa = /* @__PURE__ */ Aa(Ma), ds = {
  9763. __name: "index",
  9764. props: {
  9765. option: {
  9766. type: Object,
  9767. default: () => ({})
  9768. }
  9769. },
  9770. setup(e) {
  9771. const r = e, a = me(null), t = me(null);
  9772. let n = Pe({});
  9773. xe(t, _, l), ke(() => r.option, () => {
  9774. n && n.setOption(r.option, !0);
  9775. }, { deep: !0 });
  9776. function l() {
  9777. o();
  9778. }
  9779. function o() {
  9780. n = new Fa(t.value), r.option && n.setOption(r.option);
  9781. }
  9782. function _() {
  9783. n && n.resize();
  9784. }
  9785. return (x, z) => (le(), se("div", {
  9786. ref_key: "chartsContainerRef",
  9787. ref: a,
  9788. class: "dv-charts-container"
  9789. }, [
  9790. ae("div", {
  9791. ref_key: "chartRef",
  9792. ref: t,
  9793. class: "charts-canvas-container"
  9794. }, null, 512)
  9795. ], 512));
  9796. }
  9797. }, Sr = {
  9798. install(e) {
  9799. e.component("DvCharts", ds);
  9800. }
  9801. }, hs = { class: "dv-capsule-chart" }, vs = { class: "label-column" }, ps = { class: "capsule-container" }, gs = {
  9802. key: 0,
  9803. class: "capsule-item-value"
  9804. }, ms = { class: "unit-label" }, ys = {
  9805. key: 0,
  9806. class: "unit-text"
  9807. }, bs = {
  9808. __name: "index",
  9809. props: {
  9810. config: {
  9811. type: Object,
  9812. default: () => ({})
  9813. }
  9814. },
  9815. setup(e) {
  9816. pt((x) => ({
  9817. "1b634ae3": i(n),
  9818. "63348aba": i(t)
  9819. }));
  9820. const r = e, a = Pe({
  9821. defaultConfig: {
  9822. /**
  9823. * @description Capsule chart data
  9824. * @type {Array<object>}
  9825. * @default data = []
  9826. * @example data = [{ name: 'foo1', value: 100 }, { name: 'foo2', value: 100 }]
  9827. */
  9828. data: [],
  9829. /**
  9830. * @description Colors (hex|rgb|rgba|color keywords)
  9831. * @type {Array<string>}
  9832. * @default color = ['#37a2da', '#32c5e9', '#67e0e3', '#9fe6b8', '#ffdb5c', '#ff9f7f', '#fb7293']
  9833. * @example color = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
  9834. */
  9835. colors: [
  9836. "#37a2da",
  9837. "#32c5e9",
  9838. "#67e0e3",
  9839. "#9fe6b8",
  9840. "#ffdb5c",
  9841. "#ff9f7f",
  9842. "#fb7293"
  9843. ],
  9844. /**
  9845. * @description Chart unit
  9846. * @type {string}
  9847. * @default unit = ''
  9848. */
  9849. unit: "",
  9850. /**
  9851. * @description Show item value
  9852. * @type {boolean}
  9853. * @default showValue = false
  9854. */
  9855. showValue: !1,
  9856. /**
  9857. * @description Text color
  9858. * @type {string}
  9859. * @default textColor = '#fff'
  9860. */
  9861. textColor: "#fff",
  9862. /**
  9863. * @description Chart font size
  9864. * @type {number}
  9865. * @default fontSize = 12
  9866. */
  9867. fontSize: 12,
  9868. /**
  9869. * @description num of labels
  9870. * @type {number}
  9871. * @default labelNum = 6
  9872. */
  9873. labelNum: 6
  9874. },
  9875. mergedConfig: null,
  9876. capsuleLength: [],
  9877. capsuleValue: [],
  9878. labelData: [],
  9879. labelDataLength: []
  9880. });
  9881. ke(() => r.config, () => {
  9882. l();
  9883. }, {
  9884. deep: !0
  9885. });
  9886. const t = be(() => `${r.config.fontSize ? r.config.fontSize : a.defaultConfig.fontSize}px`), n = be(() => r.config.textColor ? r.config.textColor : a.defaultConfig.textColor);
  9887. function l() {
  9888. o(), _();
  9889. }
  9890. function o() {
  9891. a.mergedConfig = Ce(
  9892. _e(a.defaultConfig),
  9893. r.config || {}
  9894. );
  9895. }
  9896. function _() {
  9897. const { data: x, labelNum: z } = a.mergedConfig;
  9898. if (!x.length || x.length === 0) {
  9899. a.labelData = [], a.capsuleLength = [];
  9900. return;
  9901. }
  9902. const E = x.map(({ value: d }) => d), U = Math.max(...E);
  9903. a.capsuleValue = E, a.capsuleLength = E.map((d) => U ? d / U : 0);
  9904. const T = U / 5, L = Array.from(
  9905. new Set(Array.from({ length: z }).fill(0).map((d, B) => Math.ceil(B * T)))
  9906. );
  9907. a.labelData = L, a.labelDataLength = Array.from(L).map(
  9908. (d) => U ? d / U : 0
  9909. );
  9910. }
  9911. return Re(() => {
  9912. l();
  9913. }), (x, z) => (le(), se("div", hs, [
  9914. i(a).mergedConfig ? (le(), se(Ae, { key: 0 }, [
  9915. ae("div", vs, [
  9916. (le(!0), se(Ae, null, Se(i(a).mergedConfig.data, (E) => (le(), se("div", {
  9917. key: E.name
  9918. }, We(E.name), 1))), 128)),
  9919. z[0] || (z[0] = ae("div", null, " ", -1))
  9920. ]),
  9921. ae("div", ps, [
  9922. (le(!0), se(Ae, null, Se(i(a).capsuleLength, (E, U) => (le(), se("div", {
  9923. key: U,
  9924. class: "capsule-item"
  9925. }, [
  9926. ae("div", {
  9927. class: "capsule-item-column",
  9928. style: Ge(`width: ${E * 100}%; background-color: ${i(a).mergedConfig.colors[U % i(a).mergedConfig.colors.length]};`)
  9929. }, [
  9930. i(a).mergedConfig.showValue ? (le(), se("div", gs, We(i(a).capsuleValue[U]), 1)) : $e("", !0)
  9931. ], 4)
  9932. ]))), 128)),
  9933. ae("div", ms, [
  9934. (le(!0), se(Ae, null, Se(i(a).labelData, (E, U) => (le(), se("div", {
  9935. key: E + U
  9936. }, We(E), 1))), 128))
  9937. ])
  9938. ]),
  9939. i(a).mergedConfig.unit ? (le(), se("div", ys, We(i(a).mergedConfig.unit), 1)) : $e("", !0)
  9940. ], 64)) : $e("", !0)
  9941. ]));
  9942. }
  9943. }, Or = {
  9944. install(e) {
  9945. e.component("DvCapsuleChart", bs);
  9946. }
  9947. }, xs = { class: "dv-digital-flop" }, Ba = {
  9948. __name: "index",
  9949. props: {
  9950. config: {
  9951. type: Object,
  9952. default: () => {
  9953. }
  9954. }
  9955. },
  9956. setup(e) {
  9957. const r = e, a = me(null), t = Pe({
  9958. renderer: null,
  9959. defaultConfig: {
  9960. /**
  9961. * @description Number for digital flop
  9962. * @type {Array<number>}
  9963. * @default number = []
  9964. * @example number = [10]
  9965. */
  9966. number: [],
  9967. /**
  9968. * @description Content formatter
  9969. * @type {string}
  9970. * @default content = ''
  9971. * @example content = '{nt}个'
  9972. */
  9973. content: "",
  9974. /**
  9975. * @description Number toFixed
  9976. * @type {number}
  9977. * @default toFixed = 0
  9978. */
  9979. toFixed: 0,
  9980. /**
  9981. * @description Text align
  9982. * @type {string}
  9983. * @default textAlign = 'center'
  9984. * @example textAlign = 'center' | 'left' | 'right'
  9985. */
  9986. textAlign: "center",
  9987. /**
  9988. * @description rowGap
  9989. * @type {number}
  9990. @default rowGap = 0
  9991. */
  9992. rowGap: 0,
  9993. /**
  9994. * @description Text style configuration
  9995. * @type {object} {CRender Class Style}
  9996. */
  9997. style: {
  9998. fontSize: 30,
  9999. fill: "#3de7c9"
  10000. },
  10001. /**
  10002. * @description Number formatter
  10003. * @type {null | Function}
  10004. */
  10005. formatter: void 0,
  10006. /**
  10007. * @description CRender animationCurve
  10008. * @type {string}
  10009. * @default animationCurve = 'easeOutCubic'
  10010. */
  10011. animationCurve: "easeOutCubic",
  10012. /**
  10013. * @description CRender animationFrame
  10014. * @type {string}
  10015. * @default animationFrame = 50
  10016. */
  10017. animationFrame: 50
  10018. },
  10019. mergedConfig: null,
  10020. graph: null
  10021. });
  10022. ke(() => r.config, () => {
  10023. E();
  10024. }, { deep: !0 }), Re(() => {
  10025. n();
  10026. });
  10027. function n() {
  10028. l(), o(), _();
  10029. }
  10030. function l() {
  10031. t.renderer = new Ga(a.value);
  10032. }
  10033. function o() {
  10034. t.mergedConfig = Ce(_e(t.defaultConfig), r.config || {});
  10035. }
  10036. function _() {
  10037. const T = x(), L = z();
  10038. t.graph = t.renderer.add({
  10039. name: "numberText",
  10040. animationCurve: t.mergedConfig.animationCurve,
  10041. animationFrame: t.mergedConfig.animationFrame,
  10042. shape: T,
  10043. style: L
  10044. });
  10045. }
  10046. function x() {
  10047. const { number: T, content: L, toFixed: d, textAlign: B, rowGap: W, formatter: q } = t.mergedConfig, [G, m] = t.renderer.area, y = [G / 2, m / 2];
  10048. return B === "left" && (y[0] = 0), B === "right" && (y[0] = G), {
  10049. number: T,
  10050. content: L,
  10051. toFixed: d,
  10052. position: y,
  10053. rowGap: W,
  10054. formatter: q
  10055. };
  10056. }
  10057. function z() {
  10058. const { style: T, textAlign: L } = t.mergedConfig;
  10059. return Ce(T, {
  10060. textAlign: L,
  10061. textBaseline: "middle"
  10062. });
  10063. }
  10064. function E() {
  10065. if (t.graph.animationEnd(), o(), !t.graph)
  10066. return;
  10067. const { animationCurve: T, animationFrame: L } = t.mergedConfig, d = x(), B = z();
  10068. U(t.graph, d), t.graph.animationCurve = T, t.graph.animationFrame = L, t.graph.animation("style", B, !0), t.graph.animation("shape", d);
  10069. }
  10070. function U(T, L) {
  10071. const d = T.shape.number.length, B = L.number.length;
  10072. d !== B && (T.shape.number = L.number);
  10073. }
  10074. return (T, L) => (le(), se("div", xs, [
  10075. ae("canvas", {
  10076. ref_key: "digitalFlop",
  10077. ref: a
  10078. }, null, 512)
  10079. ]));
  10080. }
  10081. }, Cs = { class: "dv-active-ring-chart" }, $s = { class: "active-ring-info" }, _s = { key: 0 }, Ps = {
  10082. __name: "index",
  10083. props: {
  10084. config: {
  10085. type: Object,
  10086. default: () => ({})
  10087. },
  10088. isDigitalFlop: {
  10089. type: Boolean,
  10090. default: !0
  10091. }
  10092. },
  10093. setup(e) {
  10094. pt((q) => ({
  10095. "18d51787": i(z)
  10096. }));
  10097. const r = e, a = me(null), t = Pe({
  10098. defaultConfig: {
  10099. /**
  10100. * @description Ring radius
  10101. * @type {string | number}
  10102. * @default radius = '50%'
  10103. * @example radius = '50%' | 100
  10104. */
  10105. radius: "50%",
  10106. /**
  10107. * @description Active ring radius
  10108. * @type {string | number}
  10109. * @default activeRadius = '55%'
  10110. * @example activeRadius = '55%' | 110
  10111. */
  10112. activeRadius: "55%",
  10113. /**
  10114. * @description Ring data
  10115. * @type {Array<object>}
  10116. * @default data = [{ name: '', value: 0 }]
  10117. */
  10118. data: [{ name: "", value: 0 }],
  10119. /**
  10120. * @description Ring line width
  10121. * @type {number}
  10122. * @default lineWidth = 20
  10123. */
  10124. lineWidth: 20,
  10125. /**
  10126. * @description Active time gap (ms)
  10127. * @type {number}
  10128. * @default activeTimeGap = 3000
  10129. */
  10130. activeTimeGap: 3e3,
  10131. /**
  10132. * @description Ring color (hex|rgb|rgba|color keywords)
  10133. * @type {Array<string>}
  10134. * @default color = [Charts Default Color]
  10135. * @example color = ['#000', 'rgb(0, 0, 0)', 'rgba(0, 0, 0, 1)', 'red']
  10136. */
  10137. color: [],
  10138. /**
  10139. * @description Text color
  10140. * @type {string}
  10141. * @default textColor = '#fff'
  10142. */
  10143. textColor: "#fff",
  10144. /**
  10145. * @description Digital flop style
  10146. * @type {object}
  10147. */
  10148. digitalFlopStyle: {
  10149. fontSize: 25,
  10150. fill: "#fff"
  10151. },
  10152. /**
  10153. * @description Digital flop toFixed
  10154. * @type {number}
  10155. */
  10156. digitalFlopToFixed: 0,
  10157. /**
  10158. * @description percent number toFixed
  10159. * @type {number}
  10160. */
  10161. numToFixed: 0,
  10162. /**
  10163. * @description Digital flop unit
  10164. * @type {string}
  10165. */
  10166. digitalFlopUnit: "",
  10167. /**
  10168. * @description CRender animationCurve
  10169. * @type {string}
  10170. * @default animationCurve = 'easeOutCubic'
  10171. */
  10172. animationCurve: "easeOutCubic",
  10173. /**
  10174. * @description CRender animationFrame
  10175. * @type {string}
  10176. * @default animationFrame = 50
  10177. */
  10178. animationFrame: 50,
  10179. /**
  10180. * @description showOriginValue
  10181. * @type {boolean}
  10182. * @default showOriginValue = false
  10183. */
  10184. showOriginValue: !1
  10185. },
  10186. mergedConfig: null,
  10187. chart: null,
  10188. activeIndex: 0,
  10189. animationHandler: ""
  10190. }), n = be(() => {
  10191. if (!t.mergedConfig)
  10192. return 0;
  10193. const { data: q, showOriginValue: G } = t.mergedConfig, m = q.map(({ value: f }) => f);
  10194. let y;
  10195. if (G)
  10196. y = m[t.activeIndex];
  10197. else {
  10198. const f = m.reduce((k, C) => k + C, 0);
  10199. y = Number.parseFloat(m[t.activeIndex] / f * 100) || 0;
  10200. }
  10201. return y;
  10202. }), l = be(() => {
  10203. if (!t.mergedConfig)
  10204. return n.value.toFixed(t.defaultConfig.numToFixed);
  10205. const { numToFixed: q, showOriginValue: G } = t.mergedConfig;
  10206. return `${G ? n.value.toFixed(q) : `${n.value.toFixed(q)}%`}`;
  10207. }), o = be(() => {
  10208. if (!t.mergedConfig)
  10209. return {};
  10210. const {
  10211. digitalFlopStyle: q,
  10212. digitalFlopToFixed: G,
  10213. showOriginValue: m,
  10214. digitalFlopUnit: y
  10215. } = t.mergedConfig;
  10216. return {
  10217. content: m ? `{nt}${y}` : `{nt}${y || "%"}`,
  10218. number: [n.value],
  10219. style: q,
  10220. toFixed: G
  10221. };
  10222. }), _ = be(() => t.mergedConfig ? t.mergedConfig.data[t.activeIndex].name : ""), x = be(() => t.mergedConfig ? `font-size: ${t.mergedConfig.digitalFlopStyle.fontSize}px;` : ""), z = be(() => r.config.textColor ? r.config.textColor : t.defaultConfig.textColor);
  10223. ke(() => r.config, () => {
  10224. clearTimeout(t.animationHandler), t.activeIndex = 0, T(), L();
  10225. }, {
  10226. deep: !0
  10227. }), Re(() => {
  10228. E();
  10229. }), Ft(() => {
  10230. clearTimeout(t.animationHandler);
  10231. });
  10232. function E() {
  10233. U(), T(), L();
  10234. }
  10235. function U() {
  10236. t.chart = new Fa(a.value);
  10237. }
  10238. function T() {
  10239. t.mergedConfig = Ce(
  10240. _e(t.defaultConfig),
  10241. r.config || {}
  10242. );
  10243. }
  10244. function L() {
  10245. const q = d();
  10246. t.chart.setOption(q, !0), W();
  10247. }
  10248. function d() {
  10249. const q = B();
  10250. return t.mergedConfig.data.forEach((G) => {
  10251. G.radius = q;
  10252. }), {
  10253. series: [
  10254. {
  10255. type: "pie",
  10256. ...t.mergedConfig,
  10257. outsideLabel: {
  10258. show: !1
  10259. }
  10260. }
  10261. ],
  10262. color: t.mergedConfig.color
  10263. };
  10264. }
  10265. function B(q = !1) {
  10266. const { radius: G, activeRadius: m, lineWidth: y } = t.mergedConfig, f = Math.min(...t.chart.render.area) / 2, D = y / 2;
  10267. let k = q ? m : G;
  10268. typeof k != "number" && (k = Number.parseInt(k) / 100 * f);
  10269. const C = k - D, $ = k + D;
  10270. return [C, $];
  10271. }
  10272. function W() {
  10273. const q = B(), G = B(!0), m = d(), { data: y } = m.series[0];
  10274. y.forEach((D, k) => {
  10275. k === t.activeIndex ? D.radius = G : D.radius = q;
  10276. }), t.chart.setOption(m, !0);
  10277. const { activeTimeGap: f } = m.series[0];
  10278. t.animationHandler = setTimeout(() => {
  10279. t.activeIndex += 1, t.activeIndex >= y.length && (t.activeIndex = 0), W();
  10280. }, f);
  10281. }
  10282. return (q, G) => (le(), se("div", Cs, [
  10283. ae("div", {
  10284. ref_key: "activeRingChart",
  10285. ref: a,
  10286. class: "active-ring-chart-container"
  10287. }, null, 512),
  10288. ae("div", $s, [
  10289. e.isDigitalFlop ? (le(), se("div", _s, [
  10290. Z(Ba, { config: i(o) }, null, 8, ["config"])
  10291. ])) : (le(), se("div", {
  10292. key: 1,
  10293. class: "active-ring-name",
  10294. style: Ge(i(x))
  10295. }, We(i(l)), 5)),
  10296. ae("div", {
  10297. class: "active-ring-name",
  10298. style: Ge(i(x))
  10299. }, We(i(_)), 5)
  10300. ])
  10301. ]));
  10302. }
  10303. }, Gr = {
  10304. install(e) {
  10305. e.component("DvActiveRingChart", Ps);
  10306. }
  10307. }, Mr = {
  10308. install(e) {
  10309. e.component("DvDigitalFlop", Ba);
  10310. }
  10311. }, ws = /* @__PURE__ */ Le({
  10312. __name: "index",
  10313. setup(e) {
  10314. const r = me(null), a = Pe({
  10315. allWidth: 0,
  10316. scale: 0,
  10317. datavRoot: "",
  10318. ready: !1
  10319. });
  10320. function t() {
  10321. const { width: _, height: x } = screen;
  10322. a.allWidth = _, r.value && (r.value.style.width = `${_}px`, r.value.style.height = `${x}px`);
  10323. }
  10324. function n() {
  10325. const _ = document.body.clientWidth;
  10326. r.value && (r.value.style.transform = `scale(${_ / a.allWidth})`);
  10327. }
  10328. function l() {
  10329. n();
  10330. }
  10331. function o() {
  10332. t(), n(), a.ready = !0;
  10333. }
  10334. return xe(r, l, o), (_, x) => (le(), se("div", {
  10335. id: "dv-full-screen-container",
  10336. ref_key: "fullScreenContainer",
  10337. ref: r
  10338. }, [
  10339. i(a).ready ? Me(_.$slots, "default", { key: 0 }) : $e("", !0)
  10340. ], 512));
  10341. }
  10342. }), Rr = {
  10343. install(e) {
  10344. e.component("DvFullScreenContainer", ws);
  10345. }
  10346. }, ks = ["width", "height"], As = ["fill", "x", "y", "width", "height"], Ls = ["values", "begin"], Ss = ["fill", "x", "y", "width", "height"], Os = ["values"], Gs = ["values"], Ms = ["values"], Rs = ["values"], Ds = ["fill", "x", "y", "height"], Ts = ["values"], Fs = /* @__PURE__ */ Le({
  10347. __name: "index",
  10348. props: {
  10349. color: {
  10350. type: Array,
  10351. default: () => []
  10352. }
  10353. },
  10354. setup(e) {
  10355. const r = e, a = me(null), t = Pe([200, 50]), n = me(4), l = me(20), o = me(2.5), _ = me(o.value / 2), x = Pe(["#fff", "#0de7c2"]), z = Pe({
  10356. mergedColor: [],
  10357. rects: [],
  10358. points: [],
  10359. svgScale: [1, 1]
  10360. });
  10361. function E() {
  10362. q();
  10363. }
  10364. function U() {
  10365. q();
  10366. }
  10367. const { width: T, height: L } = xe(a, E, U);
  10368. function d() {
  10369. const [m, y] = t, f = m / (l.value + 1), D = y / (n.value + 1), k = Array.from({ length: n.value }).fill(0).map((C, $) => Array.from({ length: l.value }).fill(0).map((c, M) => [
  10370. f * (M + 1),
  10371. D * ($ + 1)
  10372. ]));
  10373. z.points = k.reduce((C, $) => [...C, ...$], []);
  10374. }
  10375. function B() {
  10376. const m = z.points[l.value * 2 - 1], y = z.points[l.value * 2 - 3];
  10377. z.rects = [m, y];
  10378. }
  10379. function W() {
  10380. const [m, y] = t;
  10381. z.svgScale = [T.value / m, L.value / y];
  10382. }
  10383. function q() {
  10384. d(), B(), W();
  10385. }
  10386. function G() {
  10387. z.mergedColor = Ce(_e(x), r.color || []);
  10388. }
  10389. return ke(() => r.color, () => {
  10390. G();
  10391. }, { deep: !0 }), Re(() => {
  10392. G();
  10393. }), (m, y) => (le(), se("div", {
  10394. ref_key: "dvDecoration1",
  10395. ref: a,
  10396. class: "dv-decoration-1"
  10397. }, [
  10398. (le(), se("svg", {
  10399. width: `${i(t)[0]}px`,
  10400. height: `${i(t)[1]}px`,
  10401. style: Ge(`transform:scale(${i(z).svgScale[0]}, ${i(z).svgScale[1]});`)
  10402. }, [
  10403. (le(!0), se(Ae, null, Se(i(z).points, (f) => (le(), se(Ae, { key: f }, [
  10404. Math.random() > 0.6 ? (le(), se("rect", {
  10405. key: 0,
  10406. fill: i(z).mergedColor[0],
  10407. x: f[0] - i(_),
  10408. y: f[1] - i(_),
  10409. width: i(o),
  10410. height: i(o)
  10411. }, [
  10412. Math.random() > 0.6 ? (le(), se("animate", {
  10413. key: 0,
  10414. attributeName: "fill",
  10415. values: `${i(z).mergedColor[0]};transparent`,
  10416. dur: "1s",
  10417. begin: Math.random() * 2,
  10418. repeatCount: "indefinite"
  10419. }, null, 8, Ls)) : $e("", !0)
  10420. ], 8, As)) : $e("", !0)
  10421. ], 64))), 128)),
  10422. i(z).rects[0] ? (le(), se("rect", {
  10423. key: 0,
  10424. fill: i(z).mergedColor[1],
  10425. x: i(z).rects[0][0] - i(o),
  10426. y: i(z).rects[0][1] - i(o),
  10427. width: i(o) * 2,
  10428. height: i(o) * 2
  10429. }, [
  10430. ae("animate", {
  10431. attributeName: "width",
  10432. values: `0;${i(o) * 2}`,
  10433. dur: "2s",
  10434. repeatCount: "indefinite"
  10435. }, null, 8, Os),
  10436. ae("animate", {
  10437. attributeName: "height",
  10438. values: `0;${i(o) * 2}`,
  10439. dur: "2s",
  10440. repeatCount: "indefinite"
  10441. }, null, 8, Gs),
  10442. ae("animate", {
  10443. attributeName: "x",
  10444. values: `${i(z).rects[0][0]};${i(z).rects[0][0] - i(o)}`,
  10445. dur: "2s",
  10446. repeatCount: "indefinite"
  10447. }, null, 8, Ms),
  10448. ae("animate", {
  10449. attributeName: "y",
  10450. values: `${i(z).rects[0][1]};${i(z).rects[0][1] - i(o)}`,
  10451. dur: "2s",
  10452. repeatCount: "indefinite"
  10453. }, null, 8, Rs)
  10454. ], 8, Ss)) : $e("", !0),
  10455. i(z).rects[1] ? (le(), se("rect", {
  10456. key: 1,
  10457. fill: i(z).mergedColor[1],
  10458. x: i(z).rects[1][0] - 40,
  10459. y: i(z).rects[1][1] - i(o),
  10460. width: 40,
  10461. height: i(o) * 2
  10462. }, [
  10463. y[0] || (y[0] = ae("animate", {
  10464. attributeName: "width",
  10465. values: "0;40;0",
  10466. dur: "2s",
  10467. repeatCount: "indefinite"
  10468. }, null, -1)),
  10469. ae("animate", {
  10470. attributeName: "x",
  10471. values: `${i(z).rects[1][0]};${i(z).rects[1][0] - 40};${i(z).rects[1][0]}`,
  10472. dur: "2s",
  10473. repeatCount: "indefinite"
  10474. }, null, 8, Ts)
  10475. ], 8, Ds)) : $e("", !0)
  10476. ], 12, ks))
  10477. ], 512));
  10478. }
  10479. }), Dr = {
  10480. install(e) {
  10481. e.component("DvDecoration1", Fs);
  10482. }
  10483. }, Bs = ["width", "height"], Ns = ["x", "y", "width", "height", "fill"], Ws = ["attributeName", "to", "dur"], js = ["x", "y", "fill"], Es = ["attributeName", "to", "dur"], zs = /* @__PURE__ */ Le({
  10484. __name: "index",
  10485. props: {
  10486. color: {
  10487. type: Array,
  10488. default: () => []
  10489. },
  10490. reverse: {
  10491. type: Boolean,
  10492. default: !1
  10493. },
  10494. dur: {
  10495. type: Number,
  10496. default: 6
  10497. }
  10498. },
  10499. setup(e) {
  10500. const r = e, a = me(null), t = Pe({
  10501. x: 0,
  10502. y: 0,
  10503. w: 0,
  10504. h: 0,
  10505. defaultColor: ["#3faacb", "#fff"],
  10506. mergedColor: []
  10507. });
  10508. function n() {
  10509. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  10510. }
  10511. function l() {
  10512. z();
  10513. }
  10514. function o() {
  10515. z();
  10516. }
  10517. const { width: _, height: x } = xe(a, l, o);
  10518. function z() {
  10519. r.reverse ? (t.w = 1, t.h = x.value, t.x = _.value / 2, t.y = 0) : (t.w = _.value, t.h = 1, t.x = 0, t.y = x.value / 2);
  10520. }
  10521. return ke(() => r.color, () => {
  10522. n();
  10523. }, { deep: !0 }), ke(() => r.reverse, () => {
  10524. z();
  10525. }), Re(() => {
  10526. n();
  10527. }), (E, U) => (le(), se("div", {
  10528. ref_key: "decoration2",
  10529. ref: a,
  10530. class: "dv-decoration-2"
  10531. }, [
  10532. (le(), se("svg", {
  10533. width: `${i(_)}px`,
  10534. height: `${i(x)}px`
  10535. }, [
  10536. ae("rect", {
  10537. x: i(t).x,
  10538. y: i(t).y,
  10539. width: i(t).w,
  10540. height: i(t).h,
  10541. fill: i(t).mergedColor[0]
  10542. }, [
  10543. ae("animate", {
  10544. attributeName: e.reverse ? "height" : "width",
  10545. from: "0",
  10546. to: e.reverse ? i(x) : i(_),
  10547. dur: `${e.dur}s`,
  10548. calcMode: "spline",
  10549. keyTimes: "0;1",
  10550. keySplines: ".42,0,.58,1",
  10551. repeatCount: "indefinite"
  10552. }, null, 8, Ws)
  10553. ], 8, Ns),
  10554. ae("rect", {
  10555. x: i(t).x,
  10556. y: i(t).y,
  10557. width: "1",
  10558. height: "1",
  10559. fill: i(t).mergedColor[1]
  10560. }, [
  10561. ae("animate", {
  10562. attributeName: e.reverse ? "y" : "x",
  10563. from: "0",
  10564. to: e.reverse ? i(x) : i(_),
  10565. dur: `${e.dur}s`,
  10566. calcMode: "spline",
  10567. keyTimes: "0;1",
  10568. keySplines: "0.42,0,0.58,1",
  10569. repeatCount: "indefinite"
  10570. }, null, 8, Es)
  10571. ], 8, js)
  10572. ], 8, Bs))
  10573. ], 512));
  10574. }
  10575. }), Tr = {
  10576. install(e) {
  10577. e.component("DvDecoration2", zs);
  10578. }
  10579. }, qs = ["width", "height"], Is = ["fill", "x", "y"], Hs = ["values", "dur", "begin"], Mt = 7, Vs = /* @__PURE__ */ Le({
  10580. __name: "index",
  10581. props: {
  10582. color: {
  10583. type: Array,
  10584. default: () => []
  10585. }
  10586. },
  10587. setup(e) {
  10588. const r = e, a = me(null), t = Pe({
  10589. svgWH: [300, 35],
  10590. svgScale: [1, 1],
  10591. rowNum: 2,
  10592. rowPoints: 25,
  10593. pointSideLength: Mt,
  10594. halfPointSideLength: Mt / 2,
  10595. points: [],
  10596. defaultColor: ["#7acaec", "transparent"],
  10597. mergedColor: []
  10598. });
  10599. function n() {
  10600. const [T, L] = t.svgWH, d = T / (t.rowPoints + 1), B = L / (t.rowNum + 1), W = Array.from({ length: t.rowNum }).fill(0).map((q, G) => Array.from({ length: t.rowPoints }).fill(0).map((m, y) => [
  10601. d * (y + 1),
  10602. B * (G + 1)
  10603. ]));
  10604. t.points = W.reduce((q, G) => [...q, ...G], []);
  10605. }
  10606. function l() {
  10607. o();
  10608. }
  10609. function o() {
  10610. n(), E();
  10611. }
  10612. function _() {
  10613. o();
  10614. }
  10615. const { width: x, height: z } = xe(a, _, l);
  10616. function E() {
  10617. const [T, L] = t.svgWH;
  10618. t.svgScale = [x.value / T, z.value / L];
  10619. }
  10620. function U() {
  10621. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  10622. }
  10623. return ke(() => r.color, () => {
  10624. U();
  10625. }, { deep: !0 }), Re(() => {
  10626. U();
  10627. }), (T, L) => (le(), se("div", {
  10628. ref_key: "decoration3",
  10629. ref: a,
  10630. class: "dv-decoration-3"
  10631. }, [
  10632. (le(), se("svg", {
  10633. width: `${i(t).svgWH[0]}px`,
  10634. height: `${i(t).svgWH[1]}px`,
  10635. style: Ge(`transform:scale(${i(t).svgScale[0]},${i(t).svgScale[1]});`)
  10636. }, [
  10637. (le(!0), se(Ae, null, Se(i(t).points, (d) => (le(), se("rect", {
  10638. key: d,
  10639. fill: i(t).mergedColor[0],
  10640. x: d[0] - i(t).halfPointSideLength,
  10641. y: d[1] - i(t).halfPointSideLength,
  10642. width: Mt,
  10643. height: Mt
  10644. }, [
  10645. Math.random() > 0.6 ? (le(), se("animate", {
  10646. key: 0,
  10647. attributeName: "fill",
  10648. values: `${i(t).mergedColor.join(";")}`,
  10649. dur: `${Math.random() + 1}s`,
  10650. begin: Math.random() * 2,
  10651. repeatCount: "indefinite"
  10652. }, null, 8, Hs)) : $e("", !0)
  10653. ], 8, Is))), 128))
  10654. ], 12, qs))
  10655. ], 512));
  10656. }
  10657. }), Fr = {
  10658. install(e) {
  10659. e.component("DvDecoration3", Vs);
  10660. }
  10661. }, Us = ["width", "height"], Xs = ["stroke", "points"], Qs = ["stroke", "points"], Ys = /* @__PURE__ */ Le({
  10662. __name: "index",
  10663. props: {
  10664. color: {
  10665. type: Array,
  10666. default: () => []
  10667. },
  10668. reverse: {
  10669. type: Boolean,
  10670. default: !1
  10671. },
  10672. dur: {
  10673. type: Number,
  10674. default: 3
  10675. }
  10676. },
  10677. setup(e) {
  10678. const r = e, a = me(null), t = Pe({
  10679. defaultColor: ["rgba(255, 255, 255, 0.3)", "rgba(255, 255, 255, 0.3)"],
  10680. mergedColor: []
  10681. });
  10682. function n() {
  10683. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  10684. }
  10685. const { width: l, height: o } = xe(a);
  10686. return ke(() => r.color, () => {
  10687. n();
  10688. }, { deep: !0 }), Re(() => {
  10689. n();
  10690. }), (_, x) => (le(), se("div", {
  10691. ref_key: "decoration3",
  10692. ref: a,
  10693. class: "dv-decoration-4"
  10694. }, [
  10695. ae("div", {
  10696. class: Ua(`container ${e.reverse ? "reverse" : "normal"}`),
  10697. style: Ge(e.reverse ? `width:${i(l)}px;height:5px;animation-duration:${e.dur}s` : `width:5px;height:${i(o)}px;animation-duration:${e.dur}s`)
  10698. }, [
  10699. (le(), se("svg", {
  10700. width: e.reverse ? i(l) : 5,
  10701. height: e.reverse ? 5 : i(o)
  10702. }, [
  10703. ae("polyline", {
  10704. stroke: i(t).mergedColor[0],
  10705. points: e.reverse ? `0, 2.5 ${i(l)}, 2.5` : `2.5, 0 2.5, ${i(o)}`
  10706. }, null, 8, Xs),
  10707. ae("polyline", {
  10708. class: "bold-line",
  10709. stroke: i(t).mergedColor[1],
  10710. "stroke-width": "3",
  10711. "stroke-dasharray": "20, 80",
  10712. "stroke-dashoffset": "-30",
  10713. points: e.reverse ? `0, 2.5 ${i(l)}, 2.5` : `2.5, 0 2.5, ${i(o)}`
  10714. }, null, 8, Qs)
  10715. ], 8, Us))
  10716. ], 6)
  10717. ], 512));
  10718. }
  10719. }), Br = {
  10720. install(e) {
  10721. e.component("DvDecoration4", Ys);
  10722. }
  10723. }, Ks = ["width", "height"], Js = ["stroke", "points"], Zs = ["from", "to", "dur"], eu = ["stroke", "points"], tu = ["from", "to", "dur"], ru = /* @__PURE__ */ Le({
  10724. __name: "index",
  10725. props: {
  10726. color: {
  10727. type: Array,
  10728. default: () => []
  10729. },
  10730. dur: {
  10731. type: Number,
  10732. default: 1.2
  10733. }
  10734. },
  10735. setup(e) {
  10736. const r = e, a = me(null), t = Pe({
  10737. line1Points: "",
  10738. line2Points: "",
  10739. line1Length: 0,
  10740. line2Length: 0,
  10741. defaultColor: ["#3f96a5", "#3f96a5"],
  10742. mergedColor: []
  10743. });
  10744. function n() {
  10745. x();
  10746. }
  10747. function l() {
  10748. x();
  10749. }
  10750. const { width: o, height: _ } = xe(a, l, n);
  10751. function x() {
  10752. const E = [
  10753. { x: 0, y: _.value * 0.2 },
  10754. { x: o.value * 0.18, y: _.value * 0.2 },
  10755. { x: o.value * 0.2, y: _.value * 0.4 },
  10756. { x: o.value * 0.25, y: _.value * 0.4 },
  10757. { x: o.value * 0.27, y: _.value * 0.6 },
  10758. { x: o.value * 0.72, y: _.value * 0.6 },
  10759. { x: o.value * 0.75, y: _.value * 0.4 },
  10760. { x: o.value * 0.8, y: _.value * 0.4 },
  10761. { x: o.value * 0.82, y: _.value * 0.2 },
  10762. { x: o.value, y: _.value * 0.2 }
  10763. ], U = [
  10764. { x: o.value * 0.3, y: _.value * 0.8 },
  10765. { x: o.value * 0.7, y: _.value * 0.8 }
  10766. ], T = hn(E), L = hn(U);
  10767. t.line1Points = vn(E), t.line2Points = vn(U), t.line1Length = T, t.line2Length = L;
  10768. }
  10769. function z() {
  10770. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  10771. }
  10772. return ke(() => r.color, () => {
  10773. z();
  10774. }, { deep: !0 }), Re(() => {
  10775. z();
  10776. }), (E, U) => (le(), se("div", {
  10777. ref_key: "decoration5",
  10778. ref: a,
  10779. class: "dv-decoration-5"
  10780. }, [
  10781. (le(), se("svg", {
  10782. width: i(o),
  10783. height: i(_)
  10784. }, [
  10785. ae("polyline", {
  10786. fill: "transparent",
  10787. stroke: i(t).mergedColor[0],
  10788. "stroke-width": "3",
  10789. points: i(t).line1Points
  10790. }, [
  10791. ae("animate", {
  10792. attributeName: "stroke-dasharray",
  10793. attributeType: "XML",
  10794. from: `0, ${i(t).line1Length / 2}, 0, ${i(t).line1Length / 2}`,
  10795. to: `0, 0, ${i(t).line1Length}, 0`,
  10796. dur: `${e.dur}s`,
  10797. begin: "0s",
  10798. calcMode: "spline",
  10799. keyTimes: "0;1",
  10800. keySplines: "0.4,1,0.49,0.98",
  10801. repeatCount: "indefinite"
  10802. }, null, 8, Zs)
  10803. ], 8, Js),
  10804. ae("polyline", {
  10805. fill: "transparent",
  10806. stroke: i(t).mergedColor[1],
  10807. "stroke-width": "2",
  10808. points: i(t).line2Points
  10809. }, [
  10810. ae("animate", {
  10811. attributeName: "stroke-dasharray",
  10812. attributeType: "XML",
  10813. from: `0, ${i(t).line2Length / 2}, 0, ${i(t).line2Length / 2}`,
  10814. to: `0, 0, ${i(t).line2Length}, 0`,
  10815. dur: `${e.dur}s`,
  10816. begin: "0s",
  10817. calcMode: "spline",
  10818. keyTimes: "0;1",
  10819. keySplines: ".4,1,.49,.98",
  10820. repeatCount: "indefinite"
  10821. }, null, 8, tu)
  10822. ], 8, eu)
  10823. ], 8, Ks))
  10824. ], 512));
  10825. }
  10826. }), Nr = {
  10827. install(e) {
  10828. e.component("DvDecoration5", ru);
  10829. }
  10830. }, nu = ["width", "height"], au = ["fill", "x", "y", "height"], iu = ["values", "dur"], ou = ["values", "dur"], Wr = 7, lu = /* @__PURE__ */ Le({
  10831. __name: "index",
  10832. props: {
  10833. color: {
  10834. type: Array,
  10835. default: () => []
  10836. }
  10837. },
  10838. setup(e) {
  10839. const r = e, a = me(null), t = Pe({
  10840. svgWH: [300, 35],
  10841. svgScale: [1, 1],
  10842. rowNum: 1,
  10843. rowPoints: 40,
  10844. rectWidth: Wr,
  10845. halfRectWidth: Wr / 2,
  10846. points: [],
  10847. heights: [],
  10848. minHeights: [],
  10849. randoms: [],
  10850. defaultColor: ["#7acaec", "#7acaec"],
  10851. mergedColor: []
  10852. });
  10853. ke(() => r.color, () => {
  10854. U();
  10855. }, { deep: !0 }), Re(() => {
  10856. U();
  10857. });
  10858. const { width: n, height: l } = xe(a, E, o);
  10859. function o() {
  10860. _();
  10861. }
  10862. function _() {
  10863. x(), z();
  10864. }
  10865. function x() {
  10866. const [T, L] = t.svgWH, d = T / (t.rowPoints + 1), B = L / (t.rowNum + 1), W = Array.from({ length: t.rowNum }).fill(0).map((G, m) => Array.from({ length: t.rowPoints }).fill(0).map((y, f) => [
  10867. d * (f + 1),
  10868. B * (m + 1)
  10869. ]));
  10870. t.points = W.reduce((G, m) => [...G, ...m], []);
  10871. const q = t.heights = Array.from({ length: t.rowNum * t.rowPoints }).fill(0).map(() => Math.random() > 0.8 ? ht(0.7 * L, L) : ht(0.2 * L, 0.5 * L));
  10872. t.minHeights = Array.from({ length: t.rowNum * t.rowPoints }).fill(0).map((G, m) => q[m] * Math.random()), t.randoms = Array.from({ length: t.rowNum * t.rowPoints }).fill(0).map(() => Math.random() + 1.5);
  10873. }
  10874. function z() {
  10875. const [T, L] = t.svgWH;
  10876. t.svgScale = [n.value / T, l.value / L];
  10877. }
  10878. function E() {
  10879. _();
  10880. }
  10881. function U() {
  10882. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  10883. }
  10884. return (T, L) => (le(), se("div", {
  10885. ref_key: "decoration6",
  10886. ref: a,
  10887. class: "dv-decoration-6"
  10888. }, [
  10889. (le(), se("svg", {
  10890. width: `${i(t).svgWH[0]}px`,
  10891. height: `${i(t).svgWH[1]}px`,
  10892. style: Ge(`transform:scale(${i(t).svgScale[0]},${i(t).svgScale[1]});`)
  10893. }, [
  10894. (le(!0), se(Ae, null, Se(i(t).points, (d, B) => (le(), se("rect", {
  10895. key: B,
  10896. fill: i(t).mergedColor[Math.random() > 0.5 ? 0 : 1],
  10897. x: d[0] - i(t).halfRectWidth,
  10898. y: d[1] - i(t).heights[B] / 2,
  10899. width: Wr,
  10900. height: i(t).heights[B]
  10901. }, [
  10902. ae("animate", {
  10903. attributeName: "y",
  10904. values: `${d[1] - i(t).minHeights[B] / 2};${d[1] - i(t).heights[B] / 2};${d[1] - i(t).minHeights[B] / 2}`,
  10905. dur: `${i(t).randoms[B]}s`,
  10906. keyTimes: "0;0.5;1",
  10907. calcMode: "spline",
  10908. keySplines: "0.42,0,0.58,1;0.42,0,0.58,1",
  10909. begin: "0s",
  10910. repeatCount: "indefinite"
  10911. }, null, 8, iu),
  10912. ae("animate", {
  10913. attributeName: "height",
  10914. values: `${i(t).minHeights[B]};${i(t).heights[B]};${i(t).minHeights[B]}`,
  10915. dur: `${i(t).randoms[B]}s`,
  10916. keyTimes: "0;0.5;1",
  10917. calcMode: "spline",
  10918. keySplines: "0.42,0,0.58,1;0.42,0,0.58,1",
  10919. begin: "0s",
  10920. repeatCount: "indefinite"
  10921. }, null, 8, ou)
  10922. ], 8, au))), 128))
  10923. ], 12, nu))
  10924. ], 512));
  10925. }
  10926. }), jr = {
  10927. install(e) {
  10928. e.component("DvDecoration6", lu);
  10929. }
  10930. }, su = { class: "dv-decoration-7" }, uu = {
  10931. width: "21px",
  10932. height: "20px"
  10933. }, cu = ["stroke"], fu = ["stroke"], du = {
  10934. width: "21px",
  10935. height: "20px"
  10936. }, hu = ["stroke"], vu = ["stroke"], pu = /* @__PURE__ */ Le({
  10937. __name: "index",
  10938. props: {
  10939. color: {
  10940. type: Array,
  10941. default: () => []
  10942. }
  10943. },
  10944. setup(e) {
  10945. const r = e, a = Pe({
  10946. defaultColor: ["#1dc1f5", "#1dc1f5"],
  10947. mergedColor: []
  10948. });
  10949. ke(() => r.color, () => {
  10950. t();
  10951. }, { deep: !0 }), Re(() => {
  10952. t();
  10953. });
  10954. function t() {
  10955. a.mergedColor = Ce(_e(a.defaultColor), r.color || []);
  10956. }
  10957. return (n, l) => (le(), se("div", su, [
  10958. (le(), se("svg", uu, [
  10959. ae("polyline", {
  10960. "stroke-width": "4",
  10961. fill: "transparent",
  10962. stroke: i(a).mergedColor[0],
  10963. points: "10, 0 19, 10 10, 20"
  10964. }, null, 8, cu),
  10965. ae("polyline", {
  10966. "stroke-width": "2",
  10967. fill: "transparent",
  10968. stroke: i(a).mergedColor[1],
  10969. points: "2, 0 11, 10 2, 20"
  10970. }, null, 8, fu)
  10971. ])),
  10972. Me(n.$slots, "default"),
  10973. (le(), se("svg", du, [
  10974. ae("polyline", {
  10975. "stroke-width": "4",
  10976. fill: "transparent",
  10977. stroke: i(a).mergedColor[0],
  10978. points: "11, 0 2, 10 11, 20"
  10979. }, null, 8, hu),
  10980. ae("polyline", {
  10981. "stroke-width": "2",
  10982. fill: "transparent",
  10983. stroke: i(a).mergedColor[1],
  10984. points: "19, 0 10, 10 19, 20"
  10985. }, null, 8, vu)
  10986. ]))
  10987. ]));
  10988. }
  10989. }), Er = {
  10990. install(e) {
  10991. e.component("DvDecoration7", pu);
  10992. }
  10993. }, gu = ["width", "height"], mu = ["stroke", "points"], yu = ["stroke", "points"], bu = ["stroke", "points"], xu = /* @__PURE__ */ Le({
  10994. __name: "index",
  10995. props: {
  10996. color: {
  10997. type: Array,
  10998. default: () => []
  10999. },
  11000. reverse: {
  11001. type: Boolean,
  11002. default: !1
  11003. }
  11004. },
  11005. setup(e) {
  11006. const r = e, a = me(null), t = Pe({
  11007. defaultColor: ["#3f96a5", "#3f96a5"],
  11008. mergedColor: []
  11009. });
  11010. ke(() => r.color, () => {
  11011. _();
  11012. }, { deep: !0 }), Re(() => {
  11013. _();
  11014. });
  11015. const { width: n, height: l } = xe(a);
  11016. function o(x) {
  11017. return r.reverse ? n.value - x : x;
  11018. }
  11019. function _() {
  11020. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  11021. }
  11022. return (x, z) => (le(), se("div", {
  11023. ref_key: "decoration8",
  11024. ref: a,
  11025. class: "dv-decoration-8"
  11026. }, [
  11027. (le(), se("svg", {
  11028. width: i(n),
  11029. height: i(l)
  11030. }, [
  11031. ae("polyline", {
  11032. stroke: i(t).mergedColor[0],
  11033. "stroke-width": "2",
  11034. fill: "transparent",
  11035. points: `${o(0)}, 0 ${o(30)}, ${i(l) / 2}`
  11036. }, null, 8, mu),
  11037. ae("polyline", {
  11038. stroke: i(t).mergedColor[0],
  11039. "stroke-width": "2",
  11040. fill: "transparent",
  11041. points: `${o(20)}, 0 ${o(50)}, ${i(l) / 2} ${o(i(n))}, ${i(l) / 2}`
  11042. }, null, 8, yu),
  11043. ae("polyline", {
  11044. stroke: i(t).mergedColor[1],
  11045. fill: "transparent",
  11046. "stroke-width": "3",
  11047. points: `${o(0)}, ${i(l) - 3}, ${o(200)}, ${i(l) - 3}`
  11048. }, null, 8, bu)
  11049. ], 8, gu))
  11050. ], 512));
  11051. }
  11052. }), zr = {
  11053. install(e) {
  11054. e.component("DvDecoration8", xu);
  11055. }
  11056. }, Cu = ["width", "height"], $u = ["id"], _u = ["stroke"], Pu = ["dur"], wu = ["stroke"], ku = ["dur"], Au = ["stroke"], Lu = ["xlink:href", "stroke", "fill"], Su = ["dur", "begin"], Ou = ["stroke"], Gu = {
  11057. __name: "index",
  11058. props: {
  11059. color: {
  11060. type: Array,
  11061. default: () => []
  11062. },
  11063. dur: {
  11064. type: Number,
  11065. default: 3
  11066. }
  11067. },
  11068. setup(e) {
  11069. const r = e, a = He(), t = me(null), n = Pe({
  11070. polygonId: `decoration-9-polygon-${a}`,
  11071. svgWH: [100, 100],
  11072. svgScale: [1, 1],
  11073. defaultColor: ["rgba(3, 166, 224, 0.8)", "rgba(3, 166, 224, 0.5)"],
  11074. mergedColor: []
  11075. });
  11076. ke(() => r.color, () => {
  11077. E();
  11078. }, { deep: !0 }), Re(() => {
  11079. E();
  11080. });
  11081. const { width: l, height: o } = xe(t, z, _);
  11082. function _() {
  11083. x();
  11084. }
  11085. function x() {
  11086. const [U, T] = n.svgWH;
  11087. n.svgScale = [l.value / U, o.value / T];
  11088. }
  11089. function z() {
  11090. x();
  11091. }
  11092. function E() {
  11093. n.mergedColor = Ce(_e(n.defaultColor), r.color || []);
  11094. }
  11095. return (U, T) => (le(), se("div", {
  11096. ref_key: "decoration9",
  11097. ref: t,
  11098. class: "dv-decoration-9"
  11099. }, [
  11100. (le(), se("svg", {
  11101. width: `${i(n).svgWH[0]}px`,
  11102. height: `${i(n).svgWH[1]}px`,
  11103. style: Ge(`transform:scale(${i(n).svgScale[0]},${i(n).svgScale[1]});`)
  11104. }, [
  11105. ae("defs", null, [
  11106. ae("polygon", {
  11107. id: i(n).polygonId,
  11108. points: "15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"
  11109. }, null, 8, $u)
  11110. ]),
  11111. ae("circle", {
  11112. cx: "50",
  11113. cy: "50",
  11114. r: "45",
  11115. fill: "transparent",
  11116. stroke: i(n).mergedColor[1],
  11117. "stroke-width": "10",
  11118. "stroke-dasharray": "80, 100, 30, 100"
  11119. }, [
  11120. ae("animateTransform", {
  11121. attributeName: "transform",
  11122. type: "rotate",
  11123. values: "0 50 50;360 50 50",
  11124. dur: `${e.dur}s`,
  11125. repeatCount: "indefinite"
  11126. }, null, 8, Pu)
  11127. ], 8, _u),
  11128. ae("circle", {
  11129. cx: "50",
  11130. cy: "50",
  11131. r: "45",
  11132. fill: "transparent",
  11133. stroke: i(n).mergedColor[0],
  11134. "stroke-width": "6",
  11135. "stroke-dasharray": "50, 66, 100, 66"
  11136. }, [
  11137. ae("animateTransform", {
  11138. attributeName: "transform",
  11139. type: "rotate",
  11140. values: "0 50 50;-360 50 50",
  11141. dur: `${e.dur}s`,
  11142. repeatCount: "indefinite"
  11143. }, null, 8, ku)
  11144. ], 8, wu),
  11145. ae("circle", {
  11146. cx: "50",
  11147. cy: "50",
  11148. r: "38",
  11149. fill: "transparent",
  11150. stroke: i(De)(i(n).mergedColor[1] || i(n).defaultColor[1], 30),
  11151. "stroke-width": "1",
  11152. "stroke-dasharray": "5, 1"
  11153. }, null, 8, Au),
  11154. (le(!0), se(Ae, null, Se(new Array(20).fill(0), (L, d) => (le(), se("use", {
  11155. key: d,
  11156. "xlink:href": `#${i(n).polygonId}`,
  11157. stroke: i(n).mergedColor[1],
  11158. fill: Math.random() > 0.4 ? "transparent" : i(n).mergedColor[0]
  11159. }, [
  11160. ae("animateTransform", {
  11161. attributeName: "transform",
  11162. type: "rotate",
  11163. values: "0 50 50;360 50 50",
  11164. dur: `${e.dur}s`,
  11165. begin: `${d * e.dur / 20}s`,
  11166. repeatCount: "indefinite"
  11167. }, null, 8, Su)
  11168. ], 8, Lu))), 128)),
  11169. ae("circle", {
  11170. cx: "50",
  11171. cy: "50",
  11172. r: "26",
  11173. fill: "transparent",
  11174. stroke: i(De)(i(n).mergedColor[1] || i(n).defaultColor[1], 30),
  11175. "stroke-width": "1",
  11176. "stroke-dasharray": "5, 1"
  11177. }, null, 8, Ou)
  11178. ], 12, Cu)),
  11179. Me(U.$slots, "default")
  11180. ], 512));
  11181. }
  11182. }, qr = {
  11183. install(e) {
  11184. e.component("DvDecoration9", Gu);
  11185. }
  11186. }, Mu = ["width", "height"], Ru = ["stroke", "points"], Du = ["stroke", "points", "stroke-dasharray"], Tu = ["id", "values", "begin"], Fu = ["values", "begin"], Bu = ["stroke", "points", "stroke-dasharray"], Nu = ["id", "values", "begin"], Wu = ["values", "begin"], ju = ["stroke", "points", "stroke-dasharray"], Eu = ["id", "values", "begin"], zu = ["values", "begin"], qu = ["cy", "fill"], Iu = ["id", "values", "begin"], Hu = ["cx", "cy", "fill"], Vu = ["id", "values", "begin"], Uu = ["values", "begin"], Xu = ["cx", "cy", "fill"], Qu = ["id", "values", "begin"], Yu = ["values", "begin"], Ku = ["cx", "cy", "fill"], Ju = ["id", "values", "begin"], Zu = ["values", "begin"], ec = /* @__PURE__ */ Le({
  11187. __name: "index",
  11188. props: {
  11189. color: {
  11190. type: Array,
  11191. default: () => []
  11192. }
  11193. },
  11194. setup(e) {
  11195. const r = e, a = He(), t = me(null), n = Pe({
  11196. animationId1: `d10ani1${a}`,
  11197. animationId2: `d10ani2${a}`,
  11198. animationId3: `d10ani3${a}`,
  11199. animationId4: `d10ani4${a}`,
  11200. animationId5: `d10ani5${a}`,
  11201. animationId6: `d10ani6${a}`,
  11202. animationId7: `d10ani7${a}`,
  11203. defaultColor: ["#00c2ff", "rgba(0, 194, 255, 0.3)"],
  11204. mergedColor: []
  11205. }), { width: l, height: o } = xe(t);
  11206. ke(() => r.color, () => {
  11207. _();
  11208. }, { deep: !0 }), Re(() => {
  11209. _();
  11210. });
  11211. function _() {
  11212. n.mergedColor = Ce(_e(n.defaultColor), r.color || []);
  11213. }
  11214. return (x, z) => (le(), se("div", {
  11215. ref_key: "decoration10",
  11216. ref: t,
  11217. class: "dv-decoration-10"
  11218. }, [
  11219. (le(), se("svg", {
  11220. width: i(l),
  11221. height: i(o)
  11222. }, [
  11223. ae("polyline", {
  11224. stroke: i(n).mergedColor[1],
  11225. "stroke-width": "2",
  11226. points: `0, ${i(o) / 2} ${i(l)}, ${i(o) / 2}`
  11227. }, null, 8, Ru),
  11228. ae("polyline", {
  11229. stroke: i(n).mergedColor[0],
  11230. "stroke-width": "2",
  11231. points: `5, ${i(o) / 2} ${i(l) * 0.2 - 3}, ${i(o) / 2}`,
  11232. "stroke-dasharray": `0, ${i(l) * 0.2}`,
  11233. fill: "freeze"
  11234. }, [
  11235. ae("animate", {
  11236. id: i(n).animationId2,
  11237. attributeName: "stroke-dasharray",
  11238. values: `0, ${i(l) * 0.2};${i(l) * 0.2}, 0;`,
  11239. dur: "3s",
  11240. begin: `${i(n).animationId1}.end`,
  11241. fill: "freeze"
  11242. }, null, 8, Tu),
  11243. ae("animate", {
  11244. attributeName: "stroke-dasharray",
  11245. values: `${i(l) * 0.2}, 0;0, ${i(l) * 0.2}`,
  11246. dur: "0.01s",
  11247. begin: `${i(n).animationId7}.end`,
  11248. fill: "freeze"
  11249. }, null, 8, Fu)
  11250. ], 8, Du),
  11251. ae("polyline", {
  11252. stroke: i(n).mergedColor[0],
  11253. "stroke-width": "2",
  11254. points: `${i(l) * 0.2 + 3}, ${i(o) / 2} ${i(l) * 0.8 - 3}, ${i(o) / 2}`,
  11255. "stroke-dasharray": `0, ${i(l) * 0.6}`
  11256. }, [
  11257. ae("animate", {
  11258. id: i(n).animationId4,
  11259. attributeName: "stroke-dasharray",
  11260. values: `0, ${i(l) * 0.6};${i(l) * 0.6}, 0`,
  11261. dur: "3s",
  11262. begin: `${i(n).animationId3}.end + 1s`,
  11263. fill: "freeze"
  11264. }, null, 8, Nu),
  11265. ae("animate", {
  11266. attributeName: "stroke-dasharray",
  11267. values: `${i(l) * 0.6}, 0;0, ${i(l) * 0.6}`,
  11268. dur: "0.01s",
  11269. begin: `${i(n).animationId7}.end`,
  11270. fill: "freeze"
  11271. }, null, 8, Wu)
  11272. ], 8, Bu),
  11273. ae("polyline", {
  11274. stroke: i(n).mergedColor[0],
  11275. "stroke-width": "2",
  11276. points: `${i(l) * 0.8 + 3}, ${i(o) / 2} ${i(l) - 5}, ${i(o) / 2}`,
  11277. "stroke-dasharray": `0, ${i(l) * 0.2}`
  11278. }, [
  11279. ae("animate", {
  11280. id: i(n).animationId6,
  11281. attributeName: "stroke-dasharray",
  11282. values: `0, ${i(l) * 0.2};${i(l) * 0.2}, 0`,
  11283. dur: "3s",
  11284. begin: `${i(n).animationId5}.end + 1s`,
  11285. fill: "freeze"
  11286. }, null, 8, Eu),
  11287. ae("animate", {
  11288. attributeName: "stroke-dasharray",
  11289. values: `${i(l) * 0.2}, 0;0, ${i(l) * 0.3}`,
  11290. dur: "0.01s",
  11291. begin: `${i(n).animationId7}.end`,
  11292. fill: "freeze"
  11293. }, null, 8, zu)
  11294. ], 8, ju),
  11295. ae("circle", {
  11296. cx: "2",
  11297. cy: i(o) / 2,
  11298. r: "2",
  11299. fill: i(n).mergedColor[1]
  11300. }, [
  11301. ae("animate", {
  11302. id: i(n).animationId1,
  11303. attributeName: "fill",
  11304. values: `${i(n).mergedColor[1]};${i(n).mergedColor[0]}`,
  11305. begin: `0s;${i(n).animationId7}.end`,
  11306. dur: "0.3s",
  11307. fill: "freeze"
  11308. }, null, 8, Iu)
  11309. ], 8, qu),
  11310. ae("circle", {
  11311. cx: i(l) * 0.2,
  11312. cy: i(o) / 2,
  11313. r: "2",
  11314. fill: i(n).mergedColor[1]
  11315. }, [
  11316. ae("animate", {
  11317. id: i(n).animationId3,
  11318. attributeName: "fill",
  11319. values: `${i(n).mergedColor[1]};${i(n).mergedColor[0]}`,
  11320. begin: `${i(n).animationId2}.end`,
  11321. dur: "0.3s",
  11322. fill: "freeze"
  11323. }, null, 8, Vu),
  11324. ae("animate", {
  11325. attributeName: "fill",
  11326. values: `${i(n).mergedColor[1]};${i(n).mergedColor[1]}`,
  11327. dur: "0.01s",
  11328. begin: `${i(n).animationId7}.end`,
  11329. fill: "freeze"
  11330. }, null, 8, Uu)
  11331. ], 8, Hu),
  11332. ae("circle", {
  11333. cx: i(l) * 0.8,
  11334. cy: i(o) / 2,
  11335. r: "2",
  11336. fill: i(n).mergedColor[1]
  11337. }, [
  11338. ae("animate", {
  11339. id: i(n).animationId5,
  11340. attributeName: "fill",
  11341. values: `${i(n).mergedColor[1]};${i(n).mergedColor[0]}`,
  11342. begin: `${i(n).animationId4}.end`,
  11343. dur: "0.3s",
  11344. fill: "freeze"
  11345. }, null, 8, Qu),
  11346. ae("animate", {
  11347. attributeName: "fill",
  11348. values: `${i(n).mergedColor[1]};${i(n).mergedColor[1]}`,
  11349. dur: "0.01s",
  11350. begin: `${i(n).animationId7}.end`,
  11351. fill: "freeze"
  11352. }, null, 8, Yu)
  11353. ], 8, Xu),
  11354. ae("circle", {
  11355. cx: i(l) - 2,
  11356. cy: i(o) / 2,
  11357. r: "2",
  11358. fill: i(n).mergedColor[1]
  11359. }, [
  11360. ae("animate", {
  11361. id: i(n).animationId7,
  11362. attributeName: "fill",
  11363. values: `${i(n).mergedColor[1]};${i(n).mergedColor[0]}`,
  11364. begin: `${i(n).animationId6}.end`,
  11365. dur: "0.3s",
  11366. fill: "freeze"
  11367. }, null, 8, Ju),
  11368. ae("animate", {
  11369. attributeName: "fill",
  11370. values: `${i(n).mergedColor[1]};${i(n).mergedColor[1]}`,
  11371. dur: "0.01s",
  11372. begin: `${i(n).animationId7}.end`,
  11373. fill: "freeze"
  11374. }, null, 8, Zu)
  11375. ], 8, Ku)
  11376. ], 8, Mu))
  11377. ], 512));
  11378. }
  11379. }), Ir = {
  11380. install(e) {
  11381. e.component("DvDecoration10", ec);
  11382. }
  11383. }, tc = ["width", "height"], rc = ["fill", "stroke"], nc = ["fill", "stroke", "points"], ac = ["fill", "stroke", "points"], ic = ["fill", "stroke", "points"], oc = ["fill", "stroke", "points"], lc = ["stroke", "points"], sc = ["stroke", "points"], uc = { class: "decoration-content" }, cc = {
  11384. __name: "index",
  11385. props: {
  11386. color: {
  11387. type: Array,
  11388. default: () => []
  11389. }
  11390. },
  11391. setup(e) {
  11392. const r = e, a = me(null), t = Pe({
  11393. defaultColor: ["#1a98fc", "#2cf7fe"],
  11394. mergedColor: []
  11395. }), { width: n, height: l } = xe(a);
  11396. ke(() => r.color, () => {
  11397. o();
  11398. }, { deep: !0 }), Re(() => {
  11399. o();
  11400. });
  11401. function o() {
  11402. t.mergedColor = Ce(_e(t.defaultColor), r.color || []);
  11403. }
  11404. return (_, x) => (le(), se("div", {
  11405. ref_key: "decoration11",
  11406. ref: a,
  11407. class: "dv-decoration-11"
  11408. }, [
  11409. (le(), se("svg", {
  11410. width: i(n),
  11411. height: i(l)
  11412. }, [
  11413. ae("polygon", {
  11414. fill: i(De)(i(t).mergedColor[1] || i(t).defaultColor[1], 10),
  11415. stroke: i(t).mergedColor[1],
  11416. points: "20 10, 25 4, 55 4 60 10"
  11417. }, null, 8, rc),
  11418. ae("polygon", {
  11419. fill: i(De)(i(t).mergedColor[1] || i(t).defaultColor[1], 10),
  11420. stroke: i(t).mergedColor[1],
  11421. points: `20 ${i(l) - 10}, 25 ${i(l) - 4}, 55 ${i(l) - 4} 60 ${i(l) - 10}`
  11422. }, null, 8, nc),
  11423. ae("polygon", {
  11424. fill: i(De)(i(t).mergedColor[1] || i(t).defaultColor[1], 10),
  11425. stroke: i(t).mergedColor[1],
  11426. points: `${i(n) - 20} 10, ${i(n) - 25} 4, ${i(n) - 55} 4 ${i(n) - 60} 10`
  11427. }, null, 8, ac),
  11428. ae("polygon", {
  11429. fill: i(De)(i(t).mergedColor[1] || i(t).defaultColor[1], 10),
  11430. stroke: i(t).mergedColor[1],
  11431. points: `${i(n) - 20} ${i(l) - 10}, ${i(n) - 25} ${i(l) - 4}, ${i(n) - 55} ${i(l) - 4} ${i(n) - 60} ${i(l) - 10}`
  11432. }, null, 8, ic),
  11433. ae("polygon", {
  11434. fill: i(De)(i(t).mergedColor[0] || i(t).defaultColor[0], 20),
  11435. stroke: i(t).mergedColor[0],
  11436. points: `
  11437. 20 10, 5 ${i(l) / 2} 20 ${i(l) - 10}
  11438. ${i(n) - 20} ${i(l) - 10} ${i(n) - 5} ${i(l) / 2} ${i(n) - 20} 10
  11439. `
  11440. }, null, 8, oc),
  11441. ae("polyline", {
  11442. fill: "transparent",
  11443. stroke: i(De)(i(t).mergedColor[0] || i(t).defaultColor[0], 70),
  11444. points: `25 18, 15 ${i(l) / 2} 25 ${i(l) - 18}`
  11445. }, null, 8, lc),
  11446. ae("polyline", {
  11447. fill: "transparent",
  11448. stroke: i(De)(i(t).mergedColor[0] || i(t).defaultColor[0], 70),
  11449. points: `${i(n) - 25} 18, ${i(n) - 15} ${i(l) / 2} ${i(n) - 25} ${i(l) - 18}`
  11450. }, null, 8, sc)
  11451. ], 8, tc)),
  11452. ae("div", uc, [
  11453. Me(_.$slots, "default")
  11454. ])
  11455. ], 512));
  11456. }
  11457. }, Hr = {
  11458. install(e) {
  11459. e.component("DvDecoration11", cc);
  11460. }
  11461. }, fc = ["width", "height"], dc = ["id"], hc = ["stroke", "stroke-width", "d"], vc = ["id"], pc = ["stop-color"], gc = ["r", "cx", "cy", "stroke"], mc = ["cx", "cy", "fill"], yc = ["values", "dur"], bc = ["dur"], xc = ["cx", "cy", "fill"], Cc = { key: 0 }, $c = ["points", "stroke"], _c = ["d", "stroke"], Pc = ["xlink:href"], wc = ["values", "dur"], kc = { class: "decoration-content" }, Ac = {
  11462. __name: "index",
  11463. props: {
  11464. color: {
  11465. type: Array,
  11466. default: () => []
  11467. },
  11468. /**
  11469. * @description Scan animation dur
  11470. */
  11471. scanDur: {
  11472. type: Number,
  11473. default: 3
  11474. },
  11475. /**
  11476. * @description Halo animation dur
  11477. */
  11478. haloDur: {
  11479. type: Number,
  11480. default: 2
  11481. }
  11482. },
  11483. setup(e) {
  11484. const r = e, a = He(), t = me(null), { width: n, height: l } = xe(t, () => {
  11485. }, W), o = Pe({
  11486. gId: `decoration-12-g-${a}`,
  11487. gradientId: `decoration-12-gradient-${a}`,
  11488. defaultColor: ["#2783ce", "#2cf7fe"],
  11489. mergedColor: [],
  11490. pathD: [],
  11491. pathColor: [],
  11492. circleR: [],
  11493. splitLinePoints: [],
  11494. arcD: [],
  11495. segment: 30,
  11496. sectorAngle: Math.PI / 3,
  11497. ringNum: 3,
  11498. ringWidth: 1,
  11499. showSplitLine: !0
  11500. }), _ = be(() => n.value / 2), x = be(() => l.value / 2);
  11501. ke(() => r.color, () => {
  11502. E(), T();
  11503. }, { deep: !0 });
  11504. function z() {
  11505. E(), U(), T(), L(), d(), B();
  11506. }
  11507. function E() {
  11508. o.mergedColor = Ce(_e(o.defaultColor), r.color || []);
  11509. }
  11510. function U() {
  11511. const q = -Math.PI / 2, G = o.sectorAngle / o.segment, m = n.value / 4;
  11512. let y = et(_.value, x.value, m, q);
  11513. o.pathD = Array.from({ length: o.segment }).fill("").map((f, D) => {
  11514. const k = et(_.value, x.value, m, q - (D + 1) * G).map(($) => Number.parseFloat($.toFixed(5))), C = `M${y.join(",")} A${m}, ${m} 0 0 0 ${k.join(",")}`;
  11515. return y = k, C;
  11516. });
  11517. }
  11518. function T() {
  11519. const q = 100 / (o.segment - 1);
  11520. o.pathColor = Array.from({ length: o.segment }).fill(o.mergedColor[0]).map((G, m) => De(o.mergedColor[0], 100 - m * q));
  11521. }
  11522. function L() {
  11523. const q = (n.value / 2 - o.ringWidth / 2) / o.ringNum;
  11524. o.circleR = Array.from({ length: o.ringNum }).fill(0).map((G, m) => q * (m + 1));
  11525. }
  11526. function d() {
  11527. const q = Math.PI / 6, G = n.value / 2;
  11528. o.splitLinePoints = Array.from({ length: 6 }).fill("").map((m, y) => {
  11529. const f = q * (y + 1), D = f + Math.PI, k = et(_.value, x.value, G, f), C = et(_.value, x.value, G, D);
  11530. return `${k.join(",")} ${C.join(",")}`;
  11531. });
  11532. }
  11533. function B() {
  11534. const q = Math.PI / 6, G = n.value / 2 - 1;
  11535. o.arcD = Array.from({ length: 4 }).fill("").map((m, y) => {
  11536. const f = q * (3 * y + 1), D = f + q, k = et(_.value, x.value, G, f), C = et(_.value, x.value, G, D);
  11537. return `M${k.join(",")} A${_.value}, ${x.value} 0 0 1 ${C.join(",")}`;
  11538. });
  11539. }
  11540. function W() {
  11541. z();
  11542. }
  11543. return (q, G) => (le(), se("div", {
  11544. ref_key: "decoration12",
  11545. ref: t,
  11546. class: "dv-decoration-12"
  11547. }, [
  11548. (le(), se("svg", {
  11549. width: i(n),
  11550. height: i(l)
  11551. }, [
  11552. ae("defs", null, [
  11553. ae("g", {
  11554. id: i(o).gId
  11555. }, [
  11556. (le(!0), se(Ae, null, Se(i(o).pathD, (m, y) => (le(), se("path", {
  11557. key: m,
  11558. stroke: i(o).pathColor[y],
  11559. "stroke-width": i(n) / 2,
  11560. fill: "transparent",
  11561. d: m
  11562. }, null, 8, hc))), 128))
  11563. ], 8, dc),
  11564. ae("radialGradient", {
  11565. id: i(o).gradientId,
  11566. cx: "50%",
  11567. cy: "50%",
  11568. r: "50%"
  11569. }, [
  11570. G[0] || (G[0] = ae("stop", {
  11571. offset: "0%",
  11572. "stop-color": "transparent",
  11573. "stop-opacity": "1"
  11574. }, null, -1)),
  11575. ae("stop", {
  11576. offset: "100%",
  11577. "stop-color": i(De)(i(o).mergedColor[1] || i(o).defaultColor[1], 30),
  11578. "stop-opacity": "1"
  11579. }, null, 8, pc)
  11580. ], 8, vc)
  11581. ]),
  11582. (le(!0), se(Ae, null, Se(i(o).circleR, (m) => (le(), se("circle", {
  11583. key: m,
  11584. r: m,
  11585. cx: i(_),
  11586. cy: i(x),
  11587. stroke: i(o).mergedColor[1],
  11588. "stroke-width": 0.8,
  11589. fill: "transparent"
  11590. }, null, 8, gc))), 128)),
  11591. ae("circle", {
  11592. r: "1",
  11593. cx: i(_),
  11594. cy: i(x),
  11595. stroke: "transparent",
  11596. fill: `url(#${i(o).gradientId})`
  11597. }, [
  11598. ae("animate", {
  11599. attributeName: "r",
  11600. values: `1;${i(n) / 2}`,
  11601. dur: `${e.haloDur}s`,
  11602. repeatCount: "indefinite"
  11603. }, null, 8, yc),
  11604. ae("animate", {
  11605. attributeName: "opacity",
  11606. values: "1;0",
  11607. dur: `${e.haloDur}s`,
  11608. repeatCount: "indefinite"
  11609. }, null, 8, bc)
  11610. ], 8, mc),
  11611. ae("circle", {
  11612. r: "2",
  11613. cx: i(_),
  11614. cy: i(x),
  11615. fill: i(o).mergedColor[1]
  11616. }, null, 8, xc),
  11617. i(o).showSplitLine ? (le(), se("g", Cc, [
  11618. (le(!0), se(Ae, null, Se(i(o).splitLinePoints, (m) => (le(), se("polyline", {
  11619. key: m,
  11620. points: m,
  11621. stroke: i(o).mergedColor[1],
  11622. "stroke-width": 0.5,
  11623. opacity: "50"
  11624. }, null, 8, $c))), 128))
  11625. ])) : $e("", !0),
  11626. (le(!0), se(Ae, null, Se(i(o).arcD, (m) => (le(), se("path", {
  11627. key: m,
  11628. d: m,
  11629. stroke: i(o).mergedColor[1],
  11630. "stroke-width": "2.3",
  11631. fill: "transparent"
  11632. }, null, 8, _c))), 128)),
  11633. ae("use", {
  11634. "xlink:href": `#${i(o).gId}`
  11635. }, [
  11636. ae("animateTransform", {
  11637. attributeName: "transform",
  11638. type: "rotate",
  11639. values: `0, ${i(_)} ${i(x)};360, ${i(_)} ${i(x)}`,
  11640. dur: `${e.scanDur}s`,
  11641. repeatCount: "indefinite"
  11642. }, null, 8, wc)
  11643. ], 8, Pc)
  11644. ], 8, fc)),
  11645. ae("div", kc, [
  11646. Me(q.$slots, "default")
  11647. ])
  11648. ], 512));
  11649. }
  11650. }, Vr = {
  11651. install(e) {
  11652. e.component("DvDecoration12", Ac);
  11653. }
  11654. }, qe = {
  11655. color: {
  11656. type: Array,
  11657. default: () => []
  11658. },
  11659. backgroundColor: {
  11660. type: String,
  11661. default: "transparent"
  11662. }
  11663. };
  11664. function Ie(e, r) {
  11665. return be(() => r.value.length === 0 ? e : r.value);
  11666. }
  11667. const Lc = ["left-top", "right-top", "left-bottom", "right-bottom"], Sc = ["#4fd2dd", "#235fa7"], Oc = /* @__PURE__ */ Le({
  11668. props: qe,
  11669. setup(e) {
  11670. const r = me(null), a = Ie(Sc, Ee(e, "color")), {
  11671. width: t,
  11672. height: n,
  11673. initWH: l
  11674. } = xe(r);
  11675. return {
  11676. width: t,
  11677. height: n,
  11678. initWH: l,
  11679. mergedColor: a,
  11680. borderBox1: r
  11681. };
  11682. },
  11683. render() {
  11684. const {
  11685. backgroundColor: e,
  11686. width: r,
  11687. height: a,
  11688. mergedColor: t,
  11689. $slots: n
  11690. } = this;
  11691. return Z("div", {
  11692. ref: "borderBox1",
  11693. class: "dv-border-box-1"
  11694. }, [Z("svg", {
  11695. class: "dv-border",
  11696. width: r,
  11697. height: a
  11698. }, [Z("polygon", {
  11699. fill: e,
  11700. points: `10, 27 10, ${a - 27} 13, ${a - 24} 13, ${a - 21} 24, ${a - 11}
  11701. 38, ${a - 11} 41, ${a - 8} 73, ${a - 8} 75, ${a - 10} 81, ${a - 10}
  11702. 85, ${a - 6} ${r - 85}, ${a - 6} ${r - 81}, ${a - 10} ${r - 75}, ${a - 10}
  11703. ${r - 73}, ${a - 8} ${r - 41}, ${a - 8} ${r - 38}, ${a - 11}
  11704. ${r - 10}, ${a - 27} ${r - 10}, 27 ${r - 13}, 25 ${r - 13}, 21
  11705. ${r - 24}, 11 ${r - 38}, 11 ${r - 41}, 8 ${r - 73}, 8 ${r - 75}, 10
  11706. ${r - 81}, 10 ${r - 85}, 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24`
  11707. }, null)]), Lc.map((l) => Z("svg", {
  11708. key: l,
  11709. width: "150px",
  11710. height: "150px",
  11711. class: `${l} dv-border`
  11712. }, [Z("polygon", {
  11713. fill: t[0],
  11714. points: "6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"
  11715. }, [Z("animate", {
  11716. attributeName: "fill",
  11717. values: `${t[0]};${t[1]};${t[0]}`,
  11718. dur: "0.5s",
  11719. begin: "0s",
  11720. repeatCount: "indefinite"
  11721. }, null)]), Z("polygon", {
  11722. fill: t[1],
  11723. points: "27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"
  11724. }, [Z("animate", {
  11725. attributeName: "fill",
  11726. values: `${t[1]};${t[0]};${t[1]}`,
  11727. dur: "0.5s",
  11728. begin: "0s",
  11729. repeatCount: "indefinite"
  11730. }, null)]), Z("polygon", {
  11731. fill: t[0],
  11732. points: "9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"
  11733. }, [Z("animate", {
  11734. attributeName: "fill",
  11735. values: `${t[0]};${t[1]};transparent`,
  11736. dur: "1s",
  11737. begin: "0s",
  11738. repeatCount: "indefinite"
  11739. }, null)])])), Z("div", {
  11740. class: "border-box-content"
  11741. }, [Me(n, "default")])]);
  11742. }
  11743. }), Ur = {
  11744. install(e) {
  11745. e.component("DvBorderBox1", Oc);
  11746. }
  11747. }, Gc = ["#fff", "rgba(255, 255, 255, 0.6)"], Mc = /* @__PURE__ */ Le({
  11748. props: qe,
  11749. setup(e) {
  11750. const r = me(null), a = Ie(Gc, Ee(e, "color")), {
  11751. width: t,
  11752. height: n,
  11753. initWH: l
  11754. } = xe(r);
  11755. return {
  11756. width: t,
  11757. height: n,
  11758. initWH: l,
  11759. mergedColor: a,
  11760. borderBox2: r
  11761. };
  11762. },
  11763. render() {
  11764. const {
  11765. $slots: e,
  11766. backgroundColor: r,
  11767. width: a,
  11768. height: t,
  11769. mergedColor: n
  11770. } = this;
  11771. return Z("div", {
  11772. ref: "borderBox2",
  11773. class: "dv-border-box-2"
  11774. }, [Z("svg", {
  11775. class: "dv-border-svg-container",
  11776. width: a,
  11777. height: t
  11778. }, [Z("polygon", {
  11779. fill: r,
  11780. points: `
  11781. 7, 7 ${a - 7}, 7 ${a - 7}, ${t - 7} 7, ${t - 7}
  11782. `
  11783. }, null), Z("polyline", {
  11784. stroke: n[0],
  11785. points: `2, 2 ${a - 2} ,2 ${a - 2}, ${t - 2} 2, ${t - 2} 2, 2`
  11786. }, null), Z("polyline", {
  11787. stroke: n[1],
  11788. points: `6, 6 ${a - 6}, 6 ${a - 6}, ${t - 6} 6, ${t - 6} 6, 6`
  11789. }, null), Z("circle", {
  11790. fill: n[0],
  11791. cx: "11",
  11792. cy: "11",
  11793. r: "1"
  11794. }, null), Z("circle", {
  11795. fill: n[0],
  11796. cx: a - 11,
  11797. cy: "11",
  11798. r: "1"
  11799. }, null), Z("circle", {
  11800. fill: n[0],
  11801. cx: a - 11,
  11802. cy: t - 11,
  11803. r: "1"
  11804. }, null), Z("circle", {
  11805. fill: n[0],
  11806. cx: "11",
  11807. cy: t - 11,
  11808. r: "1"
  11809. }, null)]), Z("div", {
  11810. class: "border-box-content"
  11811. }, [Me(e, "default")])]);
  11812. }
  11813. }), Xr = {
  11814. install(e) {
  11815. e.component("DvBorderBox2", Mc);
  11816. }
  11817. }, Rc = ["#2862b7", "#2862b7"], Dc = /* @__PURE__ */ Le({
  11818. props: qe,
  11819. setup(e) {
  11820. const r = me(null), {
  11821. width: a,
  11822. height: t,
  11823. initWH: n
  11824. } = xe(r), l = Ie(Rc, Ee(e, "color"));
  11825. return {
  11826. width: a,
  11827. height: t,
  11828. mergedColor: l,
  11829. initWH: n,
  11830. borderBox3: r
  11831. };
  11832. },
  11833. render() {
  11834. const {
  11835. $slots: e,
  11836. width: r,
  11837. height: a,
  11838. backgroundColor: t,
  11839. mergedColor: n
  11840. } = this;
  11841. return Z("div", {
  11842. ref: "borderBox3",
  11843. class: "dv-border-box-3"
  11844. }, [Z("svg", {
  11845. class: "dv-border-svg-container",
  11846. width: r,
  11847. height: a
  11848. }, [Z("polygon", {
  11849. fill: t,
  11850. points: `
  11851. 23, 23 ${r - 24}, 23 ${r - 24}, ${a - 24} 23, ${a - 24}
  11852. `
  11853. }, null), Z("polyline", {
  11854. class: "dv-bb3-line1",
  11855. stroke: n[0],
  11856. points: `4, 4 ${r - 22} ,4 ${r - 22}, ${a - 22} 4, ${a - 22} 4, 4`
  11857. }, null), Z("polyline", {
  11858. class: "dv-bb3-line2",
  11859. stroke: n[1],
  11860. points: `10, 10 ${r - 16}, 10 ${r - 16}, ${a - 16} 10, ${a - 16} 10, 10`
  11861. }, null), Z("polyline", {
  11862. class: "dv-bb3-line2",
  11863. stroke: n[1],
  11864. points: `16, 16 ${r - 10}, 16 ${r - 10}, ${a - 10} 16, ${a - 10} 16, 16`
  11865. }, null), Z("polyline", {
  11866. class: "dv-bb3-line2",
  11867. stroke: n[1],
  11868. points: `22, 22 ${r - 4}, 22 ${r - 4}, ${a - 4} 22, ${a - 4} 22, 22`
  11869. }, null)]), Z("div", {
  11870. class: "border-box-content"
  11871. }, [Me(e, "default")])]);
  11872. }
  11873. }), Qr = {
  11874. install(e) {
  11875. e.component("DvBorderBox3", Dc);
  11876. }
  11877. }, Tc = {
  11878. ...qe,
  11879. reverse: {
  11880. type: Boolean,
  11881. default: !1
  11882. }
  11883. }, Fc = ["red", "rgba(0,0,255,0.8)"], Bc = /* @__PURE__ */ Le({
  11884. props: Tc,
  11885. setup(e) {
  11886. const r = me(null), {
  11887. width: a,
  11888. height: t,
  11889. initWH: n
  11890. } = xe(r), l = Ie(Fc, Ee(e, "color"));
  11891. return {
  11892. width: a,
  11893. height: t,
  11894. initWH: n,
  11895. mergedColor: l,
  11896. borderBox4: r
  11897. };
  11898. },
  11899. render() {
  11900. const {
  11901. $slots: e,
  11902. backgroundColor: r,
  11903. reverse: a,
  11904. width: t,
  11905. height: n,
  11906. mergedColor: l
  11907. } = this;
  11908. return Z("div", {
  11909. ref: "borderBox4",
  11910. class: "dv-border-box-4"
  11911. }, [Z("svg", {
  11912. class: `dv-border-svg-container ${a && "dv-reverse"}`,
  11913. width: t,
  11914. height: n
  11915. }, [Z("polygon", {
  11916. fill: r,
  11917. points: `
  11918. ${t - 15}, 22 170, 22 150, 7 40, 7 28, 21 32, 24
  11919. 16, 42 16, ${n - 32} 41, ${n - 7} ${t - 15}, ${n - 7}
  11920. `
  11921. }, null), Z("polyline", {
  11922. class: "dv-bb4-line-1",
  11923. stroke: l[0],
  11924. points: `145, ${n - 5} 40, ${n - 5} 10, ${n - 35}
  11925. 10, 40 40, 5 150, 5 170, 20 ${t - 15}, 20`
  11926. }, null), Z("polyline", {
  11927. stroke: l[1],
  11928. class: "dv-bb4-line-2",
  11929. points: `245, ${n - 1} 36, ${n - 1} 14, ${n - 23}
  11930. 14, ${n - 100}`
  11931. }, null), Z("polyline", {
  11932. class: "dv-bb4-line-3",
  11933. stroke: l[0],
  11934. points: `7, ${n - 40} 7, ${n - 75}`
  11935. }, null), Z("polyline", {
  11936. class: "dv-bb4-line-4",
  11937. stroke: l[0],
  11938. points: "28, 24 13, 41 13, 64"
  11939. }, null), Z("polyline", {
  11940. class: "dv-bb4-line-5",
  11941. stroke: l[0],
  11942. points: "5, 45 5, 140"
  11943. }, null), Z("polyline", {
  11944. class: "dv-bb4-line-6",
  11945. stroke: l[1],
  11946. points: "14, 75 14, 180"
  11947. }, null), Z("polyline", {
  11948. class: "dv-bb4-line-7",
  11949. stroke: l[1],
  11950. points: "55, 11 147, 11 167, 26 250, 26"
  11951. }, null), Z("polyline", {
  11952. class: "dv-bb4-line-8",
  11953. stroke: l[1],
  11954. points: "158, 5 173, 16"
  11955. }, null), Z("polyline", {
  11956. class: "dv-bb4-line-9",
  11957. stroke: l[0],
  11958. points: `200, 17 ${t - 10}, 17`
  11959. }, null), Z("polyline", {
  11960. class: "dv-bb4-line-10",
  11961. stroke: l[1],
  11962. points: `385, 17 ${t - 10}, 17`
  11963. }, null)]), Z("div", {
  11964. class: "border-box-content"
  11965. }, [Me(e, "default")])]);
  11966. }
  11967. }), Yr = {
  11968. install(e) {
  11969. e.component("DvBorderBox4", Bc);
  11970. }
  11971. }, Nc = {
  11972. ...qe,
  11973. reverse: {
  11974. type: Boolean,
  11975. default: !1
  11976. }
  11977. }, Wc = ["rgba(255, 255, 255, 0.35)", "rgba(255, 255, 255, 0.20)"], jc = /* @__PURE__ */ Le({
  11978. props: Nc,
  11979. setup(e) {
  11980. const r = me(null), {
  11981. width: a,
  11982. height: t,
  11983. initWH: n
  11984. } = xe(r), l = Ie(Wc, Ee(e, "color"));
  11985. return {
  11986. width: a,
  11987. height: t,
  11988. initWH: n,
  11989. mergedColor: l,
  11990. borderBox5: r
  11991. };
  11992. },
  11993. render() {
  11994. const {
  11995. $slots: e,
  11996. width: r,
  11997. height: a,
  11998. mergedColor: t,
  11999. backgroundColor: n,
  12000. reverse: l
  12001. } = this;
  12002. return Z("div", {
  12003. ref: "borderBox5",
  12004. class: "dv-border-box-5"
  12005. }, [Z("svg", {
  12006. class: `dv-border-svg-container ${l && "dv-reverse"}`,
  12007. width: r,
  12008. height: a
  12009. }, [Z("polygon", {
  12010. fill: n,
  12011. points: `
  12012. 10, 22 ${r - 22}, 22 ${r - 22}, ${a - 86} ${r - 84}, ${a - 24} 10, ${a - 24}
  12013. `
  12014. }, null), Z("polyline", {
  12015. class: "dv-bb5-line-1",
  12016. stroke: t[0],
  12017. points: `8, 5 ${r - 5}, 5 ${r - 5}, ${a - 100}
  12018. ${r - 100}, ${a - 5} 8, ${a - 5} 8, 5`
  12019. }, null), Z("polyline", {
  12020. class: "dv-bb5-line-2",
  12021. stroke: t[1],
  12022. points: `3, 5 ${r - 20}, 5 ${r - 20}, ${a - 60}
  12023. ${r - 74}, ${a - 5} 3, ${a - 5} 3, 5`
  12024. }, null), Z("polyline", {
  12025. class: "dv-bb5-line-3",
  12026. stroke: t[1],
  12027. points: `50, 13 ${r - 35}, 13`
  12028. }, null), Z("polyline", {
  12029. class: "dv-bb5-line-4",
  12030. stroke: t[1],
  12031. points: `15, 20 ${r - 35}, 20`
  12032. }, null), Z("polyline", {
  12033. class: "dv-bb5-line-5",
  12034. stroke: t[1],
  12035. points: `15, ${a - 20} ${r - 110}, ${a - 20}`
  12036. }, null), Z("polyline", {
  12037. class: "dv-bb5-line-6",
  12038. stroke: t[1],
  12039. points: `15, ${a - 13} ${r - 110}, ${a - 13}`
  12040. }, null)]), Z("div", {
  12041. class: "border-box-content"
  12042. }, [Me(e, "default")])]);
  12043. }
  12044. }), Kr = {
  12045. install(e) {
  12046. e.component("DvBorderBox5", jc);
  12047. }
  12048. }, Ec = ["rgba(255, 255, 255, 0.35)", "gray"], zc = /* @__PURE__ */ Le({
  12049. props: qe,
  12050. setup(e) {
  12051. const r = me(null), {
  12052. width: a,
  12053. height: t,
  12054. initWH: n
  12055. } = xe(r), l = Ie(Ec, Ee(e, "color"));
  12056. return {
  12057. width: a,
  12058. height: t,
  12059. initWH: n,
  12060. mergedColor: l,
  12061. borderBox6: r
  12062. };
  12063. },
  12064. render() {
  12065. const {
  12066. $slots: e,
  12067. width: r,
  12068. height: a,
  12069. mergedColor: t,
  12070. backgroundColor: n
  12071. } = this;
  12072. return Z("div", {
  12073. ref: "borderBox6",
  12074. class: "dv-border-box-6"
  12075. }, [Z("svg", {
  12076. class: "dv-border-svg-container",
  12077. width: r,
  12078. height: a
  12079. }, [Z("polygon", {
  12080. fill: n,
  12081. points: `
  12082. 9, 7 ${r - 9}, 7 ${r - 9}, ${a - 7} 9, ${a - 7}
  12083. `
  12084. }, null), Z("circle", {
  12085. fill: t[1],
  12086. cx: "5",
  12087. cy: "5",
  12088. r: "2"
  12089. }, null), Z("circle", {
  12090. fill: t[1],
  12091. cx: r - 5,
  12092. cy: "5",
  12093. r: "2"
  12094. }, null), Z("circle", {
  12095. fill: t[1],
  12096. cx: r - 5,
  12097. cy: a - 5,
  12098. r: "2"
  12099. }, null), Z("circle", {
  12100. fill: t[1],
  12101. cx: "5",
  12102. cy: a - 5,
  12103. r: "2"
  12104. }, null), Z("polyline", {
  12105. stroke: t[0],
  12106. points: `10, 4 ${r - 10}, 4`
  12107. }, null), Z("polyline", {
  12108. stroke: t[0],
  12109. points: `10, ${a - 4} ${r - 10}, ${a - 4}`
  12110. }, null), Z("polyline", {
  12111. stroke: t[0],
  12112. points: `5, 70 5, ${a - 70}`
  12113. }, null), Z("polyline", {
  12114. stroke: t[0],
  12115. points: `${r - 5}, 70 ${r - 5}, ${a - 70}`
  12116. }, null), Z("polyline", {
  12117. stroke: t[0],
  12118. points: "3, 10, 3, 50"
  12119. }, null), Z("polyline", {
  12120. stroke: t[0],
  12121. points: "7, 30 7, 80"
  12122. }, null), Z("polyline", {
  12123. stroke: t[0],
  12124. points: `${r - 3}, 10 ${r - 3}, 50`
  12125. }, null), Z("polyline", {
  12126. stroke: t[0],
  12127. points: `${r - 7}, 30 ${r - 7}, 80`
  12128. }, null), Z("polyline", {
  12129. stroke: t[0],
  12130. points: `3, ${a - 10} 3, ${a - 50}`
  12131. }, null), Z("polyline", {
  12132. stroke: t[0],
  12133. points: `7, ${a - 30} 7, ${a - 80}`
  12134. }, null), Z("polyline", {
  12135. stroke: t[0],
  12136. points: `${r - 3}, ${a - 10} ${r - 3}, ${a - 50}`
  12137. }, null), Z("polyline", {
  12138. stroke: t[0],
  12139. points: `${r - 7}, ${a - 30} ${r - 7}, ${a - 80}`
  12140. }, null)]), Z("div", {
  12141. class: "border-box-content"
  12142. }, [Me(e, "default")])]);
  12143. }
  12144. }), Jr = {
  12145. install(e) {
  12146. e.component("DvBorderBox6", zc);
  12147. }
  12148. }, qc = ["rgba(128,128,128,0.3)", "rgba(128,128,128,0.5)"], Ic = /* @__PURE__ */ Le({
  12149. props: qe,
  12150. setup(e) {
  12151. const r = me(null), {
  12152. width: a,
  12153. height: t,
  12154. initWH: n
  12155. } = xe(r), l = Ie(qc, Ee(e, "color"));
  12156. return {
  12157. width: a,
  12158. height: t,
  12159. initWH: n,
  12160. mergedColor: l,
  12161. borderBox7: r
  12162. };
  12163. },
  12164. render() {
  12165. const {
  12166. $slots: e,
  12167. width: r,
  12168. height: a,
  12169. mergedColor: t,
  12170. backgroundColor: n
  12171. } = this;
  12172. return Z("div", {
  12173. ref: "borderBox7",
  12174. class: "dv-border-box-7",
  12175. style: `box-shadow: inset 0 0 40px ${t[0]}; border: 1px solid ${t[0]}; background-color: ${n}`
  12176. }, [Z("svg", {
  12177. class: "dv-border-svg-container",
  12178. width: r,
  12179. height: a
  12180. }, [Z("polyline", {
  12181. class: "dv-bb7-line-width-2",
  12182. stroke: t[0],
  12183. points: "0, 25 0, 0 25, 0"
  12184. }, null), Z("polyline", {
  12185. class: "dv-bb7-line-width-2",
  12186. stroke: t[0],
  12187. points: `${r - 25}, 0 ${r}, 0 ${r}, 25`
  12188. }, null), Z("polyline", {
  12189. class: "dv-bb7-line-width-2",
  12190. stroke: t[0],
  12191. points: `${r - 25}, ${a} ${r}, ${a} ${r}, ${a - 25}`
  12192. }, null), Z("polyline", {
  12193. class: "dv-bb7-line-width-2",
  12194. stroke: t[0],
  12195. points: `0, ${a - 25} 0, ${a} 25, ${a}`
  12196. }, null), Z("polyline", {
  12197. class: "dv-bb7-line-width-5",
  12198. stroke: t[1],
  12199. points: "0, 10 0, 0 10, 0"
  12200. }, null), Z("polyline", {
  12201. class: "dv-bb7-line-width-5",
  12202. stroke: t[1],
  12203. points: `${r - 10}, 0 ${r}, 0 ${r}, 10`
  12204. }, null), Z("polyline", {
  12205. class: "dv-bb7-line-width-5",
  12206. stroke: t[1],
  12207. points: `${r - 10}, ${a} ${r}, ${a} ${r}, ${a - 10}`
  12208. }, null), Z("polyline", {
  12209. class: "dv-bb7-line-width-5",
  12210. stroke: t[1],
  12211. points: `0, ${a - 10} 0, ${a} 10, ${a}`
  12212. }, null)]), Z("div", {
  12213. class: "border-box-content"
  12214. }, [Me(e, "default")])]);
  12215. }
  12216. }), Zr = {
  12217. install(e) {
  12218. e.component("DvBorderBox7", Ic);
  12219. }
  12220. }, Hc = {
  12221. ...qe,
  12222. reverse: {
  12223. type: Boolean,
  12224. default: !1
  12225. },
  12226. dur: {
  12227. type: Number,
  12228. default: 3
  12229. }
  12230. }, Vc = ["#235fa7", "#4fd2dd"], Uc = /* @__PURE__ */ Le({
  12231. props: Hc,
  12232. setup(e) {
  12233. const r = He(), a = me(null), t = Pe({
  12234. path: `border-box-8-path-${r}`,
  12235. gradient: `border-box-8-gradient-${r}`,
  12236. mask: `border-box-8-mask-${r}`
  12237. }), {
  12238. width: n,
  12239. height: l,
  12240. initWH: o
  12241. } = xe(a), _ = be(() => (n.value + l.value - 5) * 2), x = be(() => e.reverse ? `M 2.5, 2.5 L 2.5, ${l.value - 2.5} L ${n.value - 2.5}, ${l.value - 2.5} L ${n.value - 2.5}, 2.5 L 2.5, 2.5` : `M2.5, 2.5 L${n.value - 2.5}, 2.5 L${n.value - 2.5}, ${l.value - 2.5} L2.5, ${l.value - 2.5} L2.5, 2.5`), z = Ie(Vc, Ee(e, "color"));
  12242. return {
  12243. width: n,
  12244. height: l,
  12245. initWH: o,
  12246. state: t,
  12247. mergedColor: z,
  12248. pathD: x,
  12249. length: _,
  12250. borderBox8: a
  12251. };
  12252. },
  12253. render() {
  12254. const {
  12255. $slots: e,
  12256. width: r,
  12257. height: a,
  12258. state: t,
  12259. mergedColor: n,
  12260. pathD: l,
  12261. length: o,
  12262. backgroundColor: _,
  12263. dur: x
  12264. } = this;
  12265. return Z("div", {
  12266. ref: "borderBox8",
  12267. class: "dv-border-box-8"
  12268. }, [Z("svg", {
  12269. class: "dv-border-svg-container",
  12270. width: r,
  12271. height: a
  12272. }, [Z("defs", null, [Z("path", {
  12273. id: t.path,
  12274. d: l,
  12275. fill: "transparent"
  12276. }, null), Z("radialGradient", {
  12277. id: t.gradient,
  12278. cx: "50%",
  12279. cy: "50%",
  12280. r: "50%"
  12281. }, [Z("stop", {
  12282. offset: "0%",
  12283. "stop-color": "#fff",
  12284. "stop-opacity": "1"
  12285. }, null), Z("stop", {
  12286. offset: "100%",
  12287. "stop-color": "#fff",
  12288. "stop-opacity": "0"
  12289. }, null)]), Z("mask", {
  12290. id: t.mask
  12291. }, [Z("circle", {
  12292. cx: "0",
  12293. cy: "0",
  12294. r: "150",
  12295. fill: `url(#${t.gradient})`
  12296. }, [Xa("animateMotion", {
  12297. dur: `${x}s`,
  12298. path: l,
  12299. rotate: "auto",
  12300. repeatCount: "indefinite"
  12301. })])])]), Z("polygon", {
  12302. fill: _,
  12303. points: `5, 5 ${r - 5}, 5 ${r - 5} ${a - 5} 5, ${a - 5}`
  12304. }, null), Z("use", {
  12305. stroke: n[0],
  12306. "stroke-width": "1",
  12307. "xlink:href": `#${t.path}`
  12308. }, null), Z("use", {
  12309. stroke: n[1],
  12310. "stroke-width": "3",
  12311. "xlink:href": `#${t.path}`,
  12312. mask: `url(#${t.mask})`
  12313. }, [Z("animate", {
  12314. attributeName: "stroke-dasharray",
  12315. from: `0, ${o}`,
  12316. to: `${o}, 0`,
  12317. dur: `${x}s`,
  12318. repeatCount: "indefinite"
  12319. }, null)])]), Z("div", {
  12320. class: "border-box-content"
  12321. }, [Me(e, "default")])]);
  12322. }
  12323. }), en = {
  12324. install(e) {
  12325. e.component("DvBorderBox8", Uc);
  12326. }
  12327. }, Xc = ["#11eefd", "#0078d2"], Qc = /* @__PURE__ */ Le({
  12328. props: qe,
  12329. setup(e) {
  12330. const r = He(), a = me(null), {
  12331. width: t,
  12332. height: n,
  12333. initWH: l
  12334. } = xe(a), o = Pe({
  12335. gradientId: `border-box-9-gradient-${r}`,
  12336. maskId: `border-box-9-mask-${r}`
  12337. }), _ = Ie(Xc, Ee(e, "color"));
  12338. return {
  12339. width: t,
  12340. height: n,
  12341. initWH: l,
  12342. state: o,
  12343. mergedColor: _,
  12344. borderBox9: a
  12345. };
  12346. },
  12347. render() {
  12348. const {
  12349. $slots: e,
  12350. width: r,
  12351. height: a,
  12352. state: t,
  12353. mergedColor: n,
  12354. backgroundColor: l
  12355. } = this;
  12356. return Z("div", {
  12357. ref: "borderBox9",
  12358. class: "dv-border-box-9"
  12359. }, [Z("svg", {
  12360. class: "dv-border-svg-container",
  12361. width: r,
  12362. height: a
  12363. }, [Z("defs", null, [Z("linearGradient", {
  12364. id: t.gradientId,
  12365. x1: "0%",
  12366. y1: "0%",
  12367. x2: "100%",
  12368. y2: "100%"
  12369. }, [Z("animate", {
  12370. attributeName: "x1",
  12371. values: "0%;100%;0%",
  12372. dur: "10s",
  12373. begin: "0s",
  12374. repeatCount: "indefinite"
  12375. }, null), Z("animate", {
  12376. attributeName: "x2",
  12377. values: "100%;0%;100%",
  12378. dur: "10s",
  12379. begin: "0s",
  12380. repeatCount: "indefinite"
  12381. }, null), Z("stop", {
  12382. offset: "0%",
  12383. "stop-color": n[0]
  12384. }, [Z("animate", {
  12385. attributeName: "stop-color",
  12386. values: `${n[0]};${n[1]};${n[0]}`,
  12387. dur: "10s",
  12388. begin: "0s",
  12389. repeatCount: "indefinite"
  12390. }, null)]), Z("stop", {
  12391. offset: "100%",
  12392. "stop-color": n[1]
  12393. }, [Z("animate", {
  12394. attributeName: "stop-color",
  12395. values: `${n[1]};${n[0]};${n[1]}`,
  12396. dur: "10s",
  12397. begin: "0s",
  12398. repeatCount: "indefinite"
  12399. }, null)])]), Z("mask", {
  12400. id: t.maskId
  12401. }, [Z("polyline", {
  12402. stroke: "#fff",
  12403. "stroke-width": "3",
  12404. fill: "transparent",
  12405. points: `8, ${a * 0.4} 8, 3, ${r * 0.4 + 7}, 3`
  12406. }, null), Z("polyline", {
  12407. fill: "#fff",
  12408. points: `8, ${a * 0.15} 8, 3, ${r * 0.1 + 7}, 3
  12409. ${r * 0.1}, 8 14, 8 14, ${a * 0.15 - 7}
  12410. `
  12411. }, null), Z("polyline", {
  12412. stroke: "#fff",
  12413. "stroke-width": "3",
  12414. fill: "transparent",
  12415. points: `${r * 0.5}, 3 ${r - 3}, 3, ${r - 3}, ${a * 0.25}`
  12416. }, null), Z("polyline", {
  12417. fill: "#fff",
  12418. points: `
  12419. ${r * 0.52}, 3 ${r * 0.58}, 3
  12420. ${r * 0.58 - 7}, 9 ${r * 0.52 + 7}, 9
  12421. `
  12422. }, null), Z("polyline", {
  12423. fill: "#fff",
  12424. points: `
  12425. ${r * 0.9}, 3 ${r - 3}, 3 ${r - 3}, ${a * 0.1}
  12426. ${r - 9}, ${a * 0.1 - 7} ${r - 9}, 9 ${r * 0.9 + 7}, 9
  12427. `
  12428. }, null), Z("polyline", {
  12429. stroke: "#fff",
  12430. "stroke-width": "3",
  12431. fill: "transparent",
  12432. points: `8, ${a * 0.5} 8, ${a - 3} ${r * 0.3 + 7}, ${a - 3}`
  12433. }, null), Z("polyline", {
  12434. fill: "#fff",
  12435. points: `
  12436. 8, ${a * 0.55} 8, ${a * 0.7}
  12437. 2, ${a * 0.7 - 7} 2, ${a * 0.55 + 7}
  12438. `
  12439. }, null), Z("polyline", {
  12440. stroke: "#fff",
  12441. "stroke-width": "3",
  12442. fill: "transparent",
  12443. points: `${r * 0.35}, ${a - 3} ${r - 3}, ${a - 3} ${r - 3}, ${a * 0.35}`
  12444. }, null), Z("polyline", {
  12445. fill: "#fff",
  12446. points: `
  12447. ${r * 0.92}, ${a - 3} ${r - 3}, ${a - 3} ${r - 3}, ${a * 0.8}
  12448. ${r - 9}, ${a * 0.8 + 7} ${r - 9}, ${a - 9} ${r * 0.92 + 7}, ${a - 9}
  12449. `
  12450. }, null)])]), Z("polygon", {
  12451. fill: l,
  12452. points: `
  12453. 15, 9 ${r * 0.1 + 1}, 9 ${r * 0.1 + 4}, 6 ${r * 0.52 + 2}, 6
  12454. ${r * 0.52 + 6}, 10 ${r * 0.58 - 7}, 10 ${r * 0.58 - 2}, 6
  12455. ${r * 0.9 + 2}, 6 ${r * 0.9 + 6}, 10 ${r - 10}, 10 ${r - 10}, ${a * 0.1 - 6}
  12456. ${r - 6}, ${a * 0.1 - 1} ${r - 6}, ${a * 0.8 + 1} ${r - 10}, ${a * 0.8 + 6}
  12457. ${r - 10}, ${a - 10} ${r * 0.92 + 7}, ${a - 10} ${r * 0.92 + 2}, ${a - 6}
  12458. 11, ${a - 6} 11, ${a * 0.15 - 2} 15, ${a * 0.15 - 7}
  12459. `
  12460. }, null), Z("rect", {
  12461. x: "0",
  12462. y: "0",
  12463. width: r,
  12464. height: a,
  12465. fill: `url(#${t.gradientId})`,
  12466. mask: `url(#${t.maskId})`
  12467. }, null)]), Z("div", {
  12468. class: "border-box-content"
  12469. }, [Me(e, "default")])]);
  12470. }
  12471. }), tn = {
  12472. install(e) {
  12473. e.component("DvBorderBox9", Qc);
  12474. }
  12475. }, Yc = ["left-top", "right-top", "left-bottom", "right-bottom"], Kc = ["#1d48c4", "#d3e1f8"], Jc = /* @__PURE__ */ Le({
  12476. props: qe,
  12477. setup(e) {
  12478. const r = me(null), {
  12479. width: a,
  12480. height: t,
  12481. initWH: n
  12482. } = xe(r), l = Ie(Kc, Ee(e, "color"));
  12483. return {
  12484. width: a,
  12485. height: t,
  12486. initWH: n,
  12487. mergedColor: l,
  12488. borderBox10: r
  12489. };
  12490. },
  12491. render() {
  12492. const {
  12493. $slots: e,
  12494. width: r,
  12495. height: a,
  12496. mergedColor: t,
  12497. backgroundColor: n
  12498. } = this;
  12499. return Z("div", {
  12500. ref: "borderBox10",
  12501. class: "dv-border-box-10",
  12502. style: `box-shadow: inset 0 0 25px 3px ${t[0]}`
  12503. }, [Z("svg", {
  12504. class: "dv-border-svg-container",
  12505. width: r,
  12506. height: a
  12507. }, [Z("polygon", {
  12508. fill: n,
  12509. points: `
  12510. 4, 0 ${r - 4}, 0 ${r}, 4 ${r}, ${a - 4} ${r - 4}, ${a}
  12511. 4, ${a} 0, ${a - 4} 0, 4
  12512. `
  12513. }, null)]), Yc.map((l) => Z("svg", {
  12514. width: "150px",
  12515. height: "150px",
  12516. class: `${l} dv-border-svg-container`
  12517. }, [Z("polygon", {
  12518. fill: t[1],
  12519. points: "40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"
  12520. }, null)])), Z("div", {
  12521. class: "border-box-content"
  12522. }, [Me(e, "default")])]);
  12523. }
  12524. }), rn = {
  12525. install(e) {
  12526. e.component("DvBorderBox10", Jc);
  12527. }
  12528. }, Zc = {
  12529. ...qe,
  12530. title: {
  12531. type: String,
  12532. default: ""
  12533. },
  12534. titleWidth: {
  12535. type: Number,
  12536. default: 250
  12537. },
  12538. animate: {
  12539. type: Boolean,
  12540. default: !0
  12541. }
  12542. }, xa = ["#8aaafb", "#1f33a2"], ef = /* @__PURE__ */ Le({
  12543. props: Zc,
  12544. setup(e) {
  12545. const r = He(), a = me(null), {
  12546. width: t,
  12547. height: n,
  12548. initWH: l
  12549. } = xe(a), o = me(`border-box-11-filterId-${r}`), _ = Ie(xa, Ee(e, "color"));
  12550. return {
  12551. width: t,
  12552. height: n,
  12553. initWH: l,
  12554. filterId: o,
  12555. mergedColor: _,
  12556. borderBox11: a
  12557. };
  12558. },
  12559. render() {
  12560. const {
  12561. $slots: e,
  12562. width: r,
  12563. height: a,
  12564. filterId: t,
  12565. mergedColor: n,
  12566. backgroundColor: l,
  12567. title: o,
  12568. titleWidth: _,
  12569. animate: x
  12570. } = this;
  12571. return Z("div", {
  12572. ref: "borderBox11",
  12573. class: "dv-border-box-11"
  12574. }, [Z("svg", {
  12575. class: "dv-border-svg-container",
  12576. width: r,
  12577. height: a
  12578. }, [Z("defs", null, [Z("filter", {
  12579. id: t,
  12580. height: "150%",
  12581. width: "150%",
  12582. x: "-25%",
  12583. y: "-25%"
  12584. }, [Z("feMorphology", {
  12585. operator: "dilate",
  12586. radius: "2",
  12587. in: "SourceAlpha",
  12588. result: "thicken"
  12589. }, null), Z("feGaussianBlur", {
  12590. in: "thicken",
  12591. stdDeviation: "3",
  12592. result: "blurred"
  12593. }, null), Z("feFlood", {
  12594. "flood-color": n[1],
  12595. result: "glowColor"
  12596. }, null), Z("feComposite", {
  12597. in: "glowColor",
  12598. in2: "blurred",
  12599. operator: "in",
  12600. result: "softGlowColored"
  12601. }, null), Z("feMerge", null, [Z("feMergeNode", {
  12602. in: "softGlowColored"
  12603. }, null), Z("feMergeNode", {
  12604. in: "SourceGraphic"
  12605. }, null)])])]), Z("polygon", {
  12606. fill: l,
  12607. points: `
  12608. 20, 32 ${r * 0.5 - _ / 2}, 32 ${r * 0.5 - _ / 2 + 20}, 53
  12609. ${r * 0.5 + _ / 2 - 20}, 53 ${r * 0.5 + _ / 2}, 32
  12610. ${r - 20}, 32 ${r - 8}, 48 ${r - 8}, ${a - 25} ${r - 20}, ${a - 8}
  12611. 20, ${a - 8} 8, ${a - 25} 8, 50
  12612. `
  12613. }, null), Z("polyline", {
  12614. stroke: n[0],
  12615. filter: `url(#${t})`,
  12616. points: `
  12617. ${(r - _) / 2}, 30
  12618. 20, 30 7, 50 7, ${50 + (a - 167) / 2}
  12619. 13, ${55 + (a - 167) / 2} 13, ${135 + (a - 167) / 2}
  12620. 7, ${140 + (a - 167) / 2} 7, ${a - 27}
  12621. 20, ${a - 7} ${r - 20}, ${a - 7} ${r - 7}, ${a - 27}
  12622. ${r - 7}, ${140 + (a - 167) / 2} ${r - 13}, ${135 + (a - 167) / 2}
  12623. ${r - 13}, ${55 + (a - 167) / 2} ${r - 7}, ${50 + (a - 167) / 2}
  12624. ${r - 7}, 50 ${r - 20}, 30 ${(r + _) / 2}, 30
  12625. ${(r + _) / 2 - 20}, 7 ${(r - _) / 2 + 20}, 7
  12626. ${(r - _) / 2}, 30 ${(r - _) / 2 + 20}, 52
  12627. ${(r + _) / 2 - 20}, 52 ${(r + _) / 2}, 30
  12628. `
  12629. }, null), Z("polygon", {
  12630. stroke: n[0],
  12631. fill: "transparent",
  12632. points: `
  12633. ${(r + _) / 2 - 5}, 30 ${(r + _) / 2 - 21}, 11
  12634. ${(r + _) / 2 - 27}, 11 ${(r + _) / 2 - 8}, 34
  12635. `
  12636. }, null), Z("polygon", {
  12637. stroke: n[0],
  12638. fill: "transparent",
  12639. points: `
  12640. ${(r - _) / 2 + 5}, 30 ${(r - _) / 2 + 22}, 49
  12641. ${(r - _) / 2 + 28}, 49 ${(r - _) / 2 + 8}, 26
  12642. `
  12643. }, null), Z("polygon", {
  12644. stroke: n[0],
  12645. fill: De(n[1] || xa[1], 30),
  12646. filter: `url(#${t})`,
  12647. points: `
  12648. ${(r + _) / 2 - 11}, 37 ${(r + _) / 2 - 32}, 11
  12649. ${(r - _) / 2 + 23}, 11 ${(r - _) / 2 + 11}, 23
  12650. ${(r - _) / 2 + 33}, 49 ${(r + _) / 2 - 22}, 49
  12651. `
  12652. }, null), Z("polygon", {
  12653. filter: `url(#${t})`,
  12654. fill: n[0],
  12655. opacity: "1",
  12656. points: `
  12657. ${(r - _) / 2 - 10}, 37 ${(r - _) / 2 - 31}, 37
  12658. ${(r - _) / 2 - 25}, 46 ${(r - _) / 2 - 4}, 46
  12659. `
  12660. }, [x && Z("animate", {
  12661. attributeName: "opacity",
  12662. values: "1;0.7;1",
  12663. dur: "2s",
  12664. begin: "0s",
  12665. repeatCount: "indefinite"
  12666. }, null)]), Z("polygon", {
  12667. filter: `url(#${t})`,
  12668. fill: n[0],
  12669. opacity: "0.7",
  12670. points: `
  12671. ${(r - _) / 2 - 40}, 37 ${(r - _) / 2 - 61}, 37
  12672. ${(r - _) / 2 - 55}, 46 ${(r - _) / 2 - 34}, 46
  12673. `
  12674. }, [x && Z("animate", {
  12675. attributeName: "opacity",
  12676. values: "0.7;0.4;0.7",
  12677. dur: "2s",
  12678. begin: "0s",
  12679. repeatCount: "indefinite"
  12680. }, null)]), Z("polygon", {
  12681. filter: `url(#${t})`,
  12682. fill: n[0],
  12683. opacity: "0.5",
  12684. points: `
  12685. ${(r - _) / 2 - 70}, 37 ${(r - _) / 2 - 91}, 37
  12686. ${(r - _) / 2 - 85}, 46 ${(r - _) / 2 - 64}, 46
  12687. `
  12688. }, [x && Z("animate", {
  12689. attributeName: "opacity",
  12690. values: "0.5;0.2;0.5",
  12691. dur: "2s",
  12692. begin: "0s",
  12693. repeatCount: "indefinite"
  12694. }, null)]), Z("polygon", {
  12695. filter: `url(#${t})`,
  12696. fill: n[0],
  12697. opacity: "1",
  12698. points: `
  12699. ${(r + _) / 2 + 30}, 37 ${(r + _) / 2 + 9}, 37
  12700. ${(r + _) / 2 + 3}, 46 ${(r + _) / 2 + 24}, 46
  12701. `
  12702. }, [x && Z("animate", {
  12703. attributeName: "opacity",
  12704. values: "1;0.7;1",
  12705. dur: "2s",
  12706. begin: "0s",
  12707. repeatCount: "indefinite"
  12708. }, null)]), Z("polygon", {
  12709. filter: `url(#${t})`,
  12710. fill: n[0],
  12711. opacity: "0.7",
  12712. points: `
  12713. ${(r + _) / 2 + 60}, 37 ${(r + _) / 2 + 39}, 37
  12714. ${(r + _) / 2 + 33}, 46 ${(r + _) / 2 + 54}, 46
  12715. `
  12716. }, [x && Z("animate", {
  12717. attributeName: "opacity",
  12718. values: "0.7;0.4;0.7",
  12719. dur: "2s",
  12720. begin: "0s",
  12721. repeatCount: "indefinite"
  12722. }, null)]), Z("polygon", {
  12723. filter: `url(#${t})`,
  12724. fill: n[0],
  12725. opacity: "0.5",
  12726. points: `
  12727. ${(r + _) / 2 + 90}, 37 ${(r + _) / 2 + 69}, 37
  12728. ${(r + _) / 2 + 63}, 46 ${(r + _) / 2 + 84}, 46
  12729. `
  12730. }, [x && Z("animate", {
  12731. attributeName: "opacity",
  12732. values: "0.5;0.2;0.5",
  12733. dur: "2s",
  12734. begin: "0s",
  12735. repeatCount: "indefinite"
  12736. }, null)]), Z("text", {
  12737. class: "dv-border-box-11-title",
  12738. x: `${r / 2}`,
  12739. y: "32",
  12740. fill: "#fff",
  12741. "font-size": "18",
  12742. "text-anchor": "middle",
  12743. "dominant-baseline": "middle"
  12744. }, [o]), Z("polygon", {
  12745. fill: n[0],
  12746. filter: `url(#${t})`,
  12747. points: `
  12748. 7, ${53 + (a - 167) / 2} 11, ${57 + (a - 167) / 2}
  12749. 11, ${133 + (a - 167) / 2} 7, ${137 + (a - 167) / 2}
  12750. `
  12751. }, null), Z("polygon", {
  12752. fill: n[0],
  12753. filter: `url(#${t})`,
  12754. points: `
  12755. ${r - 7}, ${53 + (a - 167) / 2} ${r - 11}, ${57 + (a - 167) / 2}
  12756. ${r - 11}, ${133 + (a - 167) / 2} ${r - 7}, ${137 + (a - 167) / 2}
  12757. `
  12758. }, null)]), Z("div", {
  12759. class: "border-box-content"
  12760. }, [Me(e, "default")])]);
  12761. }
  12762. }), nn = {
  12763. install(e) {
  12764. e.component("DvBorderBox11", ef);
  12765. }
  12766. }, dt = ["#2e6099", "#7ce7fd"], tf = /* @__PURE__ */ Le({
  12767. props: qe,
  12768. setup(e) {
  12769. const r = He(), a = me(null), {
  12770. width: t,
  12771. height: n,
  12772. initWH: l
  12773. } = xe(a), o = me(`borderr-box-12-filterId-${r}`), _ = Ie(dt, Ee(e, "color"));
  12774. return {
  12775. width: t,
  12776. height: n,
  12777. filterId: o,
  12778. mergedColor: _,
  12779. initWH: l,
  12780. borderBox12: a
  12781. };
  12782. },
  12783. render() {
  12784. const {
  12785. $slots: e,
  12786. width: r,
  12787. height: a,
  12788. filterId: t,
  12789. mergedColor: n,
  12790. backgroundColor: l
  12791. } = this;
  12792. return Z("div", {
  12793. ref: "borderBox12",
  12794. class: "dv-border-box-12"
  12795. }, [Z("svg", {
  12796. class: "dv-border-svg-container",
  12797. width: r,
  12798. height: a
  12799. }, [Z("defs", null, [Z("filter", {
  12800. id: t,
  12801. height: "150%",
  12802. width: "150%",
  12803. x: "-25%",
  12804. y: "-25%"
  12805. }, [Z("feMorphology", {
  12806. operator: "dilate",
  12807. radius: "1",
  12808. in: "SourceAlpha",
  12809. result: "thicken"
  12810. }, null), Z("feGaussianBlur", {
  12811. in: "thicken",
  12812. stdDeviation: "2",
  12813. result: "blurred"
  12814. }, null), Z("feFlood", {
  12815. "flood-color": De(n[1] || dt[1], 70),
  12816. result: "glowColor"
  12817. }, [Z("animate", {
  12818. attributeName: "flood-color",
  12819. values: `
  12820. ${De(n[1] || dt[1], 70)};
  12821. ${De(n[1] || dt[1], 30)};
  12822. ${De(n[1] || dt[1], 70)};
  12823. `,
  12824. dur: "3s",
  12825. begin: "0s",
  12826. repeatCount: "indefinite"
  12827. }, null)]), Z("feComposite", {
  12828. in: "glowColor",
  12829. in2: "blurred",
  12830. operator: "in",
  12831. result: "softGlowColored"
  12832. }, null), Z("feMerge", null, [Z("feMergeNode", {
  12833. in: "softGlowColored"
  12834. }, null), Z("feMergeNode", {
  12835. in: "SourceGraphic"
  12836. }, null)])])]), r && a && Z("path", {
  12837. fill: l,
  12838. "stroke-width": "2",
  12839. stroke: n[0],
  12840. d: `
  12841. M15 5 L ${r - 15} 5 Q ${r - 5} 5, ${r - 5} 15
  12842. L ${r - 5} ${a - 15} Q ${r - 5} ${a - 5}, ${r - 15} ${a - 5}
  12843. L 15, ${a - 5} Q 5 ${a - 5} 5 ${a - 15} L 5 15
  12844. Q 5 5 15 5
  12845. `
  12846. }, null), Z("path", {
  12847. "stroke-width": "2",
  12848. fill: "transparent",
  12849. "stroke-linecap": "round",
  12850. filter: `url(#${t})`,
  12851. stroke: n[1],
  12852. d: "M 20 5 L 15 5 Q 5 5 5 15 L 5 20"
  12853. }, null), Z("path", {
  12854. "stroke-width": "2",
  12855. fill: "transparent",
  12856. "stroke-linecap": "round",
  12857. filter: `url(#${t})`,
  12858. stroke: n[1],
  12859. d: `M ${r - 20} 5 L ${r - 15} 5 Q ${r - 5} 5 ${r - 5} 15 L ${r - 5} 20`
  12860. }, null), Z("path", {
  12861. "stroke-width": "2",
  12862. fill: "transparent",
  12863. "stroke-linecap": "round",
  12864. filter: `url(#${t})`,
  12865. stroke: n[1],
  12866. d: `
  12867. M ${r - 20} ${a - 5} L ${r - 15} ${a - 5}
  12868. Q ${r - 5} ${a - 5} ${r - 5} ${a - 15}
  12869. L ${r - 5} ${a - 20}
  12870. `
  12871. }, null), Z("path", {
  12872. "stroke-width": "2",
  12873. fill: "transparent",
  12874. "stroke-linecap": "round",
  12875. filter: `url(#${t})`,
  12876. stroke: n[1],
  12877. d: `
  12878. M 20 ${a - 5} L 15 ${a - 5}
  12879. Q 5 ${a - 5} 5 ${a - 15}
  12880. L 5 ${a - 20}
  12881. `
  12882. }, null)]), Z("div", {
  12883. class: "border-box-content"
  12884. }, [Me(e, "default")])]);
  12885. }
  12886. }), an = {
  12887. install(e) {
  12888. e.component("DvBorderBox12", tf);
  12889. }
  12890. }, rf = ["#6586ec", "#2cf7fe"], nf = /* @__PURE__ */ Le({
  12891. props: qe,
  12892. setup(e) {
  12893. const r = me(null), {
  12894. width: a,
  12895. height: t,
  12896. initWH: n
  12897. } = xe(r), l = Ie(rf, Ee(e, "color"));
  12898. return {
  12899. width: a,
  12900. height: t,
  12901. mergedColor: l,
  12902. initWH: n,
  12903. borderBox13: r
  12904. };
  12905. },
  12906. render() {
  12907. const {
  12908. $slots: e,
  12909. width: r,
  12910. height: a,
  12911. mergedColor: t,
  12912. backgroundColor: n
  12913. } = this;
  12914. return Z("div", {
  12915. ref: "borderBox13",
  12916. class: "dv-border-box-13"
  12917. }, [Z("svg", {
  12918. class: "dv-border-svg-container",
  12919. width: r,
  12920. height: a
  12921. }, [Z("path", {
  12922. fill: n,
  12923. stroke: t[0],
  12924. d: `
  12925. M 5 20 L 5 10 L 12 3 L 60 3 L 68 10
  12926. L ${r - 20} 10 L ${r - 5} 25
  12927. L ${r - 5} ${a - 5} L 20 ${a - 5}
  12928. L 5 ${a - 20} L 5 20
  12929. `
  12930. }, null), Z("path", {
  12931. fill: "transparent",
  12932. "stroke-width": "3",
  12933. "stroke-linecap": "round",
  12934. "stroke-dasharray": "10, 5",
  12935. stroke: t[0],
  12936. d: "M 16 9 L 61 9"
  12937. }, null), Z("path", {
  12938. fill: "transparent",
  12939. stroke: t[1],
  12940. d: "M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"
  12941. }, null), Z("path", {
  12942. fill: "transparent",
  12943. stroke: t[1],
  12944. d: `M ${r - 5} ${a - 30} L ${r - 5} ${a - 5} L ${r - 30} ${a - 5}`
  12945. }, null)]), Z("div", {
  12946. class: "border-box-content"
  12947. }, [Me(e, "default")])]);
  12948. }
  12949. }), on = {
  12950. install(e) {
  12951. e.component("DvBorderBox13", nf);
  12952. }
  12953. }, lf = {
  12954. install(e) {
  12955. var r, a, t, n, l, o, _, x, z, E, U, T, L, d, B, W, q, G, m, y, f, D, k, C, $, c, M, A, p, V, X, ee, u, I, g, v, S, J, Q;
  12956. (r = zt.install) == null || r.call(zt, e), (a = qt.install) == null || a.call(qt, e), (t = It.install) == null || t.call(It, e), (n = xr.install) == null || n.call(xr, e), (l = Cr.install) == null || l.call(Cr, e), (o = $r.install) == null || o.call($r, e), (_ = _r.install) == null || _.call(_r, e), (x = Pr.install) == null || x.call(Pr, e), (z = wr.install) == null || z.call(wr, e), (E = Sr.install) == null || E.call(Sr, e), (U = Or.install) == null || U.call(Or, e), (T = Gr.install) == null || T.call(Gr, e), (L = Mr.install) == null || L.call(Mr, e), (d = Rr.install) == null || d.call(Rr, e), (B = Dr.install) == null || B.call(Dr, e), (W = Tr.install) == null || W.call(Tr, e), (q = Fr.install) == null || q.call(Fr, e), (G = Br.install) == null || G.call(Br, e), (m = Nr.install) == null || m.call(Nr, e), (y = jr.install) == null || y.call(jr, e), (f = Er.install) == null || f.call(Er, e), (D = zr.install) == null || D.call(zr, e), (k = qr.install) == null || k.call(qr, e), (C = Ir.install) == null || C.call(Ir, e), ($ = Hr.install) == null || $.call(Hr, e), (c = Vr.install) == null || c.call(Vr, e), (M = Ur.install) == null || M.call(Ur, e), (A = Xr.install) == null || A.call(Xr, e), (p = Qr.install) == null || p.call(Qr, e), (V = Yr.install) == null || V.call(Yr, e), (X = Kr.install) == null || X.call(Kr, e), (ee = Jr.install) == null || ee.call(Jr, e), (u = Zr.install) == null || u.call(Zr, e), (I = en.install) == null || I.call(en, e), (g = tn.install) == null || g.call(tn, e), (v = rn.install) == null || v.call(rn, e), (S = nn.install) == null || S.call(nn, e), (J = an.install) == null || J.call(an, e), (Q = on.install) == null || Q.call(on, e);
  12957. }
  12958. };
  12959. export {
  12960. Ps as ActiveRingChart,
  12961. Gr as ActiveRingChartPlugin,
  12962. Oc as BorderBox1,
  12963. Jc as BorderBox10,
  12964. rn as BorderBox10Plugin,
  12965. ef as BorderBox11,
  12966. nn as BorderBox11Plugin,
  12967. tf as BorderBox12,
  12968. an as BorderBox12Plugin,
  12969. nf as BorderBox13,
  12970. on as BorderBox13Plugin,
  12971. Ur as BorderBox1Plugin,
  12972. Mc as BorderBox2,
  12973. Xr as BorderBox2Plugin,
  12974. Dc as BorderBox3,
  12975. Qr as BorderBox3Plugin,
  12976. Bc as BorderBox4,
  12977. Yr as BorderBox4Plugin,
  12978. jc as BorderBox5,
  12979. Kr as BorderBox5Plugin,
  12980. zc as BorderBox6,
  12981. Jr as BorderBox6Plugin,
  12982. Ic as BorderBox7,
  12983. Zr as BorderBox7Plugin,
  12984. Uc as BorderBox8,
  12985. en as BorderBox8Plugin,
  12986. Qc as BorderBox9,
  12987. tn as BorderBox9Plugin,
  12988. Gi as Button,
  12989. zt as ButtonPlugin,
  12990. bs as CapsuleChart,
  12991. Or as CapsuleChartPlugin,
  12992. ds as Charts,
  12993. Sr as ChartsPlugin,
  12994. Ji as ConicalColumnChart,
  12995. qt as ConicalColumnChartPlugin,
  12996. Fs as Decoration1,
  12997. ec as Decoration10,
  12998. Ir as Decoration10Plugin,
  12999. cc as Decoration11,
  13000. Hr as Decoration11Plugin,
  13001. Ac as Decoration12,
  13002. Vr as Decoration12Plugin,
  13003. Dr as Decoration1Plugin,
  13004. zs as Decoration2,
  13005. Tr as Decoration2Plugin,
  13006. Vs as Decoration3,
  13007. Fr as Decoration3Plugin,
  13008. Ys as Decoration4,
  13009. Br as Decoration4Plugin,
  13010. ru as Decoration5,
  13011. Nr as Decoration5Plugin,
  13012. lu as Decoration6,
  13013. jr as Decoration6Plugin,
  13014. pu as Decoration7,
  13015. Er as Decoration7Plugin,
  13016. xu as Decoration8,
  13017. zr as Decoration8Plugin,
  13018. Gu as Decoration9,
  13019. qr as Decoration9Plugin,
  13020. Ba as DigitalFlop,
  13021. Mr as DigitalFlopPlugin,
  13022. wl as FlylineChart,
  13023. il as FlylineChartEnhanced,
  13024. $r as FlylineChartEnhancedPlugin,
  13025. _r as FlylineChartPlugin,
  13026. ws as FullScreenContainer,
  13027. Rr as FullScreenContainerPlugin,
  13028. jo as Loading,
  13029. Cr as LoadingPlugin,
  13030. oo as PercentPond,
  13031. It as PercentPondPlugin,
  13032. Tl as ScrollBoard,
  13033. wr as ScrollBoardPlugin,
  13034. Ml as ScrollRankingBoard,
  13035. Pr as ScrollRankingBoardPlugin,
  13036. To as WaterLevelPond,
  13037. xr as WaterLevelPondPlugin,
  13038. lf as default
  13039. };